From 27e0b1c58cf5ca0ff8668c10a5e34d5c6670f921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20M=C3=BCller?= Date: Sun, 3 Nov 2024 15:55:44 +0100 Subject: [PATCH] chore: release v2.1.0 * (crycode-de) Allow `setStateAsync` and `setForeignStateAsync` in custom parser scripts * (crycode-de) Allow `setTimeout` and `clearTimeout` in custom parser scripts (using the adapters setTimeout implementation) * (crycode-de) Added `wait` function to custom parser scripts --- CHANGELOG_OLD.md | 5 +++ README.md | 7 +--- admin/build/index.js | 90 ++++++++++++++++++++++------------------ admin/build/index.js.map | 6 +-- io-package.json | 28 ++++++------- package-lock.json | 4 +- package.json | 2 +- 7 files changed, 75 insertions(+), 67 deletions(-) diff --git a/CHANGELOG_OLD.md b/CHANGELOG_OLD.md index 2fbde17..acb4a1b 100644 --- a/CHANGELOG_OLD.md +++ b/CHANGELOG_OLD.md @@ -34,6 +34,11 @@ The newest change log is in README.md ### 0.0.1 * (crycode-de) initial development release +## 1.2.2 (2021-08-22) + +* (crycode-de) Fixed text colors in dark theme of admin 5 +* (crycode-de) Updated dependencies + ## 1.2.1 (2021-06-22) * (crycode-de) Added option to automatically set a certain value in a given interval for each parser diff --git a/README.md b/README.md index 17b71d8..7f76f80 100644 --- a/README.md +++ b/README.md @@ -166,7 +166,7 @@ By writing JSON data to the `raw.send` state you are able to send CAN messages c Placeholder for the next version (at the beginning of the line): ### **WORK IN PROGRESS** --> -### **WORK IN PROGRESS** +### 2.1.0 (2024-11-03) * (crycode-de) Allow `setStateAsync` and `setForeignStateAsync` in custom parser scripts * (crycode-de) Allow `setTimeout` and `clearTimeout` in custom parser scripts (using the adapters setTimeout implementation) @@ -196,11 +196,6 @@ By writing JSON data to the `raw.send` state you are able to send CAN messages c * (crycode-de) Fixed `TypeError: Method Promise.prototype.then called on incompatible receiver [object Object]` triggered by a bug in an old `vm2` version * (crycode-de) Updated dependencies -### 1.2.2 (2021-08-22) - -* (crycode-de) Fixed text colors in dark theme of admin 5 -* (crycode-de) Updated dependencies - ## License Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) diff --git a/admin/build/index.js b/admin/build/index.js index cd95933..ab060cc 100644 --- a/admin/build/index.js +++ b/admin/build/index.js @@ -1,12 +1,12 @@ -"use strict";(()=>{var Cse=Object.create;var YI=Object.defineProperty;var _B=Object.getOwnPropertyDescriptor;var Ise=Object.getOwnPropertyNames;var kse=Object.getPrototypeOf,Pse=Object.prototype.hasOwnProperty;var Th=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(e,r)=>(typeof require!="undefined"?require:e)[r]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var _=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Ose=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ise(e))!Pse.call(t,o)&&o!==r&&YI(t,o,{get:()=>e[o],enumerable:!(n=_B(e,o))||n.enumerable});return t};var q=(t,e,r)=>(r=t!=null?Cse(kse(t)):{},Ose(e||!t||!t.__esModule?YI(r,"default",{value:t,enumerable:!0}):r,t));var Et=(t,e,r,n)=>{for(var o=n>1?void 0:n?_B(e,r):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(o=(n?i(e,r,o):i(o))||o);return n&&o&&YI(e,r,o),o};var JI=_((WVe,SB)=>{"use strict";var bB=Object.getOwnPropertySymbols,Rse=Object.prototype.hasOwnProperty,Dse=Object.prototype.propertyIsEnumerable;function Nse(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function Ase(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(e).map(function(a){return e[a]});if(n.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(a){o[a]=a}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}SB.exports=Ase()?Object.assign:function(t,e){for(var r,n=Nse(t),o,a=1;a{"use strict";var ZI=JI(),zd=60103,wB=60106;mt.Fragment=60107;mt.StrictMode=60108;mt.Profiler=60114;var xB=60109,CB=60110,IB=60112;mt.Suspense=60113;var kB=60115,PB=60116;typeof Symbol=="function"&&Symbol.for&&(jo=Symbol.for,zd=jo("react.element"),wB=jo("react.portal"),mt.Fragment=jo("react.fragment"),mt.StrictMode=jo("react.strict_mode"),mt.Profiler=jo("react.profiler"),xB=jo("react.provider"),CB=jo("react.context"),IB=jo("react.forward_ref"),mt.Suspense=jo("react.suspense"),kB=jo("react.memo"),PB=jo("react.lazy"));var jo,EB=typeof Symbol=="function"&&Symbol.iterator;function Mse(t){return t===null||typeof t!="object"?null:(t=EB&&t[EB]||t["@@iterator"],typeof t=="function"?t:null)}function wh(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r{"use strict";jB.exports=qB()});var $B=_(xt=>{"use strict";var Hd,Ih,sb,lk;typeof performance=="object"&&typeof performance.now=="function"?(LB=performance,xt.unstable_now=function(){return LB.now()}):(nk=Date,BB=nk.now(),xt.unstable_now=function(){return nk.now()-BB});var LB,nk,BB;typeof window=="undefined"||typeof MessageChannel!="function"?($d=null,ok=null,ak=function(){if($d!==null)try{var t=xt.unstable_now();$d(!0,t),$d=null}catch(e){throw setTimeout(ak,0),e}},Hd=function(t){$d!==null?setTimeout(Hd,0,t):($d=t,setTimeout(ak,0))},Ih=function(t,e){ok=setTimeout(t,e)},sb=function(){clearTimeout(ok)},xt.unstable_shouldYield=function(){return!1},lk=xt.unstable_forceFrameRate=function(){}):(UB=window.setTimeout,zB=window.clearTimeout,typeof console!="undefined"&&(WB=window.cancelAnimationFrame,typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof WB!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")),xh=!1,Ch=null,ob=-1,ik=5,sk=0,xt.unstable_shouldYield=function(){return xt.unstable_now()>=sk},lk=function(){},xt.unstable_forceFrameRate=function(t){0>t||125>>1,o=t[n];if(o!==void 0&&0ib(i,r))u!==void 0&&0>ib(u,i)?(t[n]=u,t[s]=r,n=s):(t[n]=i,t[a]=r,n=a);else if(u!==void 0&&0>ib(u,r))t[n]=u,t[s]=r,n=s;else break e}}return e}return null}function ib(t,e){var r=t.sortIndex-e.sortIndex;return r!==0?r:t.id-e.id}var Wa=[],ru=[],Bse=1,Lo=null,pn=3,lb=!1,jl=!1,kh=!1;function dk(t){for(var e=pa(ru);e!==null;){if(e.callback===null)ub(ru);else if(e.startTime<=t)ub(ru),e.sortIndex=e.expirationTime,ck(Wa,e);else break;e=pa(ru)}}function fk(t){if(kh=!1,dk(t),!jl)if(pa(Wa)!==null)jl=!0,Hd(pk);else{var e=pa(ru);e!==null&&Ih(fk,e.startTime-t)}}function pk(t,e){jl=!1,kh&&(kh=!1,sb()),lb=!0;var r=pn;try{for(dk(e),Lo=pa(Wa);Lo!==null&&(!(Lo.expirationTime>e)||t&&!xt.unstable_shouldYield());){var n=Lo.callback;if(typeof n=="function"){Lo.callback=null,pn=Lo.priorityLevel;var o=n(Lo.expirationTime<=e);e=xt.unstable_now(),typeof o=="function"?Lo.callback=o:Lo===pa(Wa)&&ub(Wa),dk(e)}else ub(Wa);Lo=pa(Wa)}if(Lo!==null)var a=!0;else{var i=pa(ru);i!==null&&Ih(fk,i.startTime-e),a=!1}return a}finally{Lo=null,pn=r,lb=!1}}var Use=lk;xt.unstable_IdlePriority=5;xt.unstable_ImmediatePriority=1;xt.unstable_LowPriority=4;xt.unstable_NormalPriority=3;xt.unstable_Profiling=null;xt.unstable_UserBlockingPriority=2;xt.unstable_cancelCallback=function(t){t.callback=null};xt.unstable_continueExecution=function(){jl||lb||(jl=!0,Hd(pk))};xt.unstable_getCurrentPriorityLevel=function(){return pn};xt.unstable_getFirstCallbackNode=function(){return pa(Wa)};xt.unstable_next=function(t){switch(pn){case 1:case 2:case 3:var e=3;break;default:e=pn}var r=pn;pn=e;try{return t()}finally{pn=r}};xt.unstable_pauseExecution=function(){};xt.unstable_requestPaint=Use;xt.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var r=pn;pn=t;try{return e()}finally{pn=r}};xt.unstable_scheduleCallback=function(t,e,r){var n=xt.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0n?(t.sortIndex=r,ck(ru,t),pa(Wa)===null&&t===pa(ru)&&(kh?sb():kh=!0,Ih(fk,r-n))):(t.sortIndex=o,ck(Wa,t),jl||lb||(jl=!0,Hd(pk))),t};xt.unstable_wrapCallback=function(t){var e=pn;return function(){var r=pn;pn=e;try{return t.apply(this,arguments)}finally{pn=r}}}});var GB=_((VVe,HB)=>{"use strict";HB.exports=$B()});var Dz=_(Ho=>{"use strict";var r0=z(),er=JI(),Gr=GB();function pe(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;re}return!1}function Nn(t,e,r,n,o,a,i){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=a,this.removeEmptyString=i}var sn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){sn[t]=new Nn(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];sn[e]=new Nn(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){sn[t]=new Nn(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){sn[t]=new Nn(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){sn[t]=new Nn(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){sn[t]=new Nn(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){sn[t]=new Nn(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){sn[t]=new Nn(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){sn[t]=new Nn(t,5,!1,t.toLowerCase(),null,!1,!1)});var EP=/[\-:]([a-z])/g;function TP(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(EP,TP);sn[e]=new Nn(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(EP,TP);sn[e]=new Nn(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(EP,TP);sn[e]=new Nn(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){sn[t]=new Nn(t,1,!1,t.toLowerCase(),null,!1,!1)});sn.xlinkHref=new Nn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){sn[t]=new Nn(t,1,!1,t.toLowerCase(),null,!0,!0)});function wP(t,e,r,n){var o=sn.hasOwnProperty(e)?sn[e]:null,a=o!==null?o.type===0:n?!1:!(!(2{var Cse=Object.create;var YI=Object.defineProperty;var _B=Object.getOwnPropertyDescriptor;var Ise=Object.getOwnPropertyNames;var kse=Object.getPrototypeOf,Pse=Object.prototype.hasOwnProperty;var Th=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(e,r)=>(typeof require!="undefined"?require:e)[r]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var _=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Ose=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ise(e))!Pse.call(t,o)&&o!==r&&YI(t,o,{get:()=>e[o],enumerable:!(n=_B(e,o))||n.enumerable});return t};var q=(t,e,r)=>(r=t!=null?Cse(kse(t)):{},Ose(e||!t||!t.__esModule?YI(r,"default",{value:t,enumerable:!0}):r,t));var Et=(t,e,r,n)=>{for(var o=n>1?void 0:n?_B(e,r):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(o=(n?i(e,r,o):i(o))||o);return n&&o&&YI(e,r,o),o};var JI=_((WVe,SB)=>{"use strict";var bB=Object.getOwnPropertySymbols,Rse=Object.prototype.hasOwnProperty,Dse=Object.prototype.propertyIsEnumerable;function Nse(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function Ase(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(e).map(function(a){return e[a]});if(n.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(a){o[a]=a}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}SB.exports=Ase()?Object.assign:function(t,e){for(var r,n=Nse(t),o,a=1;a{"use strict";var ZI=JI(),zd=60103,wB=60106;mt.Fragment=60107;mt.StrictMode=60108;mt.Profiler=60114;var xB=60109,CB=60110,IB=60112;mt.Suspense=60113;var kB=60115,PB=60116;typeof Symbol=="function"&&Symbol.for&&(jo=Symbol.for,zd=jo("react.element"),wB=jo("react.portal"),mt.Fragment=jo("react.fragment"),mt.StrictMode=jo("react.strict_mode"),mt.Profiler=jo("react.profiler"),xB=jo("react.provider"),CB=jo("react.context"),IB=jo("react.forward_ref"),mt.Suspense=jo("react.suspense"),kB=jo("react.memo"),PB=jo("react.lazy"));var jo,EB=typeof Symbol=="function"&&Symbol.iterator;function Mse(t){return t===null||typeof t!="object"?null:(t=EB&&t[EB]||t["@@iterator"],typeof t=="function"?t:null)}function wh(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r{"use strict";jB.exports=qB()});var $B=_(xt=>{"use strict";var Hd,Ih,sb,lk;typeof performance=="object"&&typeof performance.now=="function"?(LB=performance,xt.unstable_now=function(){return LB.now()}):(nk=Date,BB=nk.now(),xt.unstable_now=function(){return nk.now()-BB});var LB,nk,BB;typeof window=="undefined"||typeof MessageChannel!="function"?($d=null,ok=null,ak=function(){if($d!==null)try{var t=xt.unstable_now();$d(!0,t),$d=null}catch(e){throw setTimeout(ak,0),e}},Hd=function(t){$d!==null?setTimeout(Hd,0,t):($d=t,setTimeout(ak,0))},Ih=function(t,e){ok=setTimeout(t,e)},sb=function(){clearTimeout(ok)},xt.unstable_shouldYield=function(){return!1},lk=xt.unstable_forceFrameRate=function(){}):(UB=window.setTimeout,zB=window.clearTimeout,typeof console!="undefined"&&(WB=window.cancelAnimationFrame,typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof WB!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")),xh=!1,Ch=null,ob=-1,ik=5,sk=0,xt.unstable_shouldYield=function(){return xt.unstable_now()>=sk},lk=function(){},xt.unstable_forceFrameRate=function(t){0>t||125>>1,o=t[n];if(o!==void 0&&0ib(i,r))u!==void 0&&0>ib(u,i)?(t[n]=u,t[s]=r,n=s):(t[n]=i,t[a]=r,n=a);else if(u!==void 0&&0>ib(u,r))t[n]=u,t[s]=r,n=s;else break e}}return e}return null}function ib(t,e){var r=t.sortIndex-e.sortIndex;return r!==0?r:t.id-e.id}var Wa=[],ru=[],Bse=1,Lo=null,fn=3,lb=!1,jl=!1,kh=!1;function dk(t){for(var e=fa(ru);e!==null;){if(e.callback===null)ub(ru);else if(e.startTime<=t)ub(ru),e.sortIndex=e.expirationTime,ck(Wa,e);else break;e=fa(ru)}}function pk(t){if(kh=!1,dk(t),!jl)if(fa(Wa)!==null)jl=!0,Hd(fk);else{var e=fa(ru);e!==null&&Ih(pk,e.startTime-t)}}function fk(t,e){jl=!1,kh&&(kh=!1,sb()),lb=!0;var r=fn;try{for(dk(e),Lo=fa(Wa);Lo!==null&&(!(Lo.expirationTime>e)||t&&!xt.unstable_shouldYield());){var n=Lo.callback;if(typeof n=="function"){Lo.callback=null,fn=Lo.priorityLevel;var o=n(Lo.expirationTime<=e);e=xt.unstable_now(),typeof o=="function"?Lo.callback=o:Lo===fa(Wa)&&ub(Wa),dk(e)}else ub(Wa);Lo=fa(Wa)}if(Lo!==null)var a=!0;else{var i=fa(ru);i!==null&&Ih(pk,i.startTime-e),a=!1}return a}finally{Lo=null,fn=r,lb=!1}}var Use=lk;xt.unstable_IdlePriority=5;xt.unstable_ImmediatePriority=1;xt.unstable_LowPriority=4;xt.unstable_NormalPriority=3;xt.unstable_Profiling=null;xt.unstable_UserBlockingPriority=2;xt.unstable_cancelCallback=function(t){t.callback=null};xt.unstable_continueExecution=function(){jl||lb||(jl=!0,Hd(fk))};xt.unstable_getCurrentPriorityLevel=function(){return fn};xt.unstable_getFirstCallbackNode=function(){return fa(Wa)};xt.unstable_next=function(t){switch(fn){case 1:case 2:case 3:var e=3;break;default:e=fn}var r=fn;fn=e;try{return t()}finally{fn=r}};xt.unstable_pauseExecution=function(){};xt.unstable_requestPaint=Use;xt.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var r=fn;fn=t;try{return e()}finally{fn=r}};xt.unstable_scheduleCallback=function(t,e,r){var n=xt.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0n?(t.sortIndex=r,ck(ru,t),fa(Wa)===null&&t===fa(ru)&&(kh?sb():kh=!0,Ih(pk,r-n))):(t.sortIndex=o,ck(Wa,t),jl||lb||(jl=!0,Hd(fk))),t};xt.unstable_wrapCallback=function(t){var e=fn;return function(){var r=fn;fn=e;try{return t.apply(this,arguments)}finally{fn=r}}}});var GB=_((VVe,HB)=>{"use strict";HB.exports=$B()});var Dz=_(Ho=>{"use strict";var r0=z(),er=JI(),Gr=GB();function fe(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;re}return!1}function Nn(t,e,r,n,o,a,i){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=a,this.removeEmptyString=i}var sn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){sn[t]=new Nn(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];sn[e]=new Nn(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){sn[t]=new Nn(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){sn[t]=new Nn(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){sn[t]=new Nn(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){sn[t]=new Nn(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){sn[t]=new Nn(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){sn[t]=new Nn(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){sn[t]=new Nn(t,5,!1,t.toLowerCase(),null,!1,!1)});var EP=/[\-:]([a-z])/g;function TP(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(EP,TP);sn[e]=new Nn(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(EP,TP);sn[e]=new Nn(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(EP,TP);sn[e]=new Nn(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){sn[t]=new Nn(t,1,!1,t.toLowerCase(),null,!1,!1)});sn.xlinkHref=new Nn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){sn[t]=new Nn(t,1,!1,t.toLowerCase(),null,!0,!0)});function wP(t,e,r,n){var o=sn.hasOwnProperty(e)?sn[e]:null,a=o!==null?o.type===0:n?!1:!(!(2s||o[i]!==a[s])return` -`+o[i].replace(" at new "," at ");while(1<=i&&0<=s);break}}}finally{hk=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?zh(t):""}function Gse(t){switch(t.tag){case 5:return zh(t.type);case 16:return zh("Lazy");case 13:return zh("Suspense");case 19:return zh("SuspenseList");case 0:case 2:case 15:return t=cb(t.type,!1),t;case 11:return t=cb(t.type.render,!1),t;case 22:return t=cb(t.type._render,!1),t;case 1:return t=cb(t.type,!0),t;default:return""}}function rf(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case ou:return"Fragment";case Bl:return"Portal";case Gh:return"Profiler";case xP:return"StrictMode";case Vh:return"Suspense";case Nb:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case IP:return(t.displayName||"Context")+".Consumer";case CP:return(t._context.displayName||"Context")+".Provider";case n0:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case o0:return rf(t.type);case PP:return rf(t._render);case kP:e=t._payload,t=t._init;try{return rf(t(e))}catch(r){}}return null}function gu(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function s5(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Vse(t){var e=s5(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r!="undefined"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,a=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(i){n=""+i,a.call(this,i)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function db(t){t._valueTracker||(t._valueTracker=Vse(t))}function u5(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=s5(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function Ab(t){if(t=t||(typeof document!="undefined"?document:void 0),typeof t=="undefined")return null;try{return t.activeElement||t.body}catch(e){return t.body}}function qk(t,e){var r=e.checked;return er({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:t._wrapperState.initialChecked})}function XB(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=gu(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function l5(t,e){e=e.checked,e!=null&&wP(t,"checked",e,!1)}function jk(t,e){l5(t,e);var r=gu(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Lk(t,e.type,r):e.hasOwnProperty("defaultValue")&&Lk(t,e.type,gu(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function ZB(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function Lk(t,e,r){(e!=="number"||Ab(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}function Kse(t){var e="";return r0.Children.forEach(t,function(r){r!=null&&(e+=r)}),e}function Bk(t,e){return t=er({children:void 0},e),(e=Kse(e.children))&&(t.children=e),t}function nf(t,e,r,n){if(t=t.options,e){e={};for(var o=0;o=r.length))throw Error(pe(93));r=r[0]}e=r}e==null&&(e=""),r=e}t._wrapperState={initialValue:gu(r)}}function c5(t,e){var r=gu(e.value),n=gu(e.defaultValue);r!=null&&(r=""+r,r!==t.value&&(t.value=r),e.defaultValue==null&&t.defaultValue!==r&&(t.defaultValue=r)),n!=null&&(t.defaultValue=""+n)}function eU(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}var zk={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function d5(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Wk(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?d5(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var fb,f5=function(t){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(e,r,n,o){MSApp.execUnsafeLocalFunction(function(){return t(e,r,n,o)})}:t}(function(t,e){if(t.namespaceURI!==zk.svg||"innerHTML"in t)t.innerHTML=e;else{for(fb=fb||document.createElement("div"),fb.innerHTML=""+e.valueOf().toString()+"",e=fb.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function ag(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var Kh={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Yse=["Webkit","ms","Moz","O"];Object.keys(Kh).forEach(function(t){Yse.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Kh[e]=Kh[t]})});function p5(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||Kh.hasOwnProperty(t)&&Kh[t]?(""+e).trim():e+"px"}function m5(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=p5(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,o):t[r]=o}}var Jse=er({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $k(t,e){if(e){if(Jse[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(pe(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(pe(60));if(!(typeof e.dangerouslySetInnerHTML=="object"&&"__html"in e.dangerouslySetInnerHTML))throw Error(pe(61))}if(e.style!=null&&typeof e.style!="object")throw Error(pe(62))}}function Hk(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function DP(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Gk=null,of=null,af=null;function tU(t){if(t=_g(t)){if(typeof Gk!="function")throw Error(pe(280));var e=t.stateNode;e&&(e=c0(e),Gk(t.stateNode,t.type,e))}}function h5(t){of?af?af.push(t):af=[t]:of=t}function g5(){if(of){var t=of,e=af;if(af=of=null,tU(t),e)for(t=0;tn?0:1<r;r++)e.push(t);return e}function i0(t,e,r){t.pendingLanes|=e;var n=e-1;t.suspendedLanes&=n,t.pingedLanes&=n,t=t.eventTimes,e=31-vu(e),t[e]=r}var vu=Math.clz32?Math.clz32:fue,cue=Math.log,due=Math.LN2;function fue(t){return t===0?32:31-(cue(t)/due|0)|0}var pue=Gr.unstable_UserBlockingPriority,mue=Gr.unstable_runWithPriority,wb=!0;function hue(t,e,r,n){Ul||AP();var o=LP,a=Ul;Ul=!0;try{v5(o,t,e,r,n)}finally{(Ul=a)||MP()}}function gue(t,e,r,n){mue(pue,LP.bind(null,t,e,r,n))}function LP(t,e,r,n){if(wb){var o;if((o=(e&4)===0)&&0<$a.length&&-1=Jh),dU=" ",fU=!1;function A5(t,e){switch(t){case"keyup":return Lue.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function M5(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Xd=!1;function Uue(t,e){switch(t){case"compositionend":return M5(e);case"keypress":return e.which!==32?null:(fU=!0,dU);case"textInput":return t=e.data,t===dU&&fU?null:t;default:return null}}function zue(t,e){if(Xd)return t==="compositionend"||!$P&&A5(t,e)?(t=D5(),xb=UP=au=null,Xd=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=hU(r)}}function L5(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?L5(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function vU(){for(var t=window,e=Ab();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch(n){r=!1}if(r)t=e.contentWindow;else break;e=Ab(t.document)}return e}function Xk(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Zue=Zi&&"documentMode"in document&&11>=document.documentMode,Zd=null,Zk=null,Zh=null,Qk=!1;function yU(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Qk||Zd==null||Zd!==Ab(n)||(n=Zd,"selectionStart"in n&&Xk(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Zh&&dg(Zh,n)||(Zh=n,n=jb(Zk,"onSelect"),0ef||(t.current=tP[ef],tP[ef]=null,ef--)}function dr(t,e){ef++,tP[ef]=t.current,t.current=e}var yu={},vn=Su(yu),Gn=Su(!1),Gl=yu;function mf(t,e){var r=t.type.contextTypes;if(!r)return yu;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in r)o[a]=e[a];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function Vn(t){return t=t.childContextTypes,t!=null}function Ub(){Xt(Gn),Xt(vn)}function CU(t,e,r){if(vn.current!==yu)throw Error(pe(168));dr(vn,e),dr(Gn,r)}function V5(t,e,r){var n=t.stateNode;if(t=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(pe(108,rf(e)||"Unknown",o));return er({},r,n)}function Ib(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||yu,Gl=vn.current,dr(vn,t),dr(Gn,Gn.current),!0}function IU(t,e,r){var n=t.stateNode;if(!n)throw Error(pe(169));r?(t=V5(t,e,Gl),n.__reactInternalMemoizedMergedChildContext=t,Xt(Gn),Xt(vn),dr(vn,t)):Xt(Gn),dr(Gn,r)}var GP=null,Hl=null,tle=Gr.unstable_runWithPriority,VP=Gr.unstable_scheduleCallback,rP=Gr.unstable_cancelCallback,rle=Gr.unstable_shouldYield,kU=Gr.unstable_requestPaint,nP=Gr.unstable_now,nle=Gr.unstable_getCurrentPriorityLevel,d0=Gr.unstable_ImmediatePriority,K5=Gr.unstable_UserBlockingPriority,Y5=Gr.unstable_NormalPriority,J5=Gr.unstable_LowPriority,X5=Gr.unstable_IdlePriority,Ik={},ole=kU!==void 0?kU:function(){},Vi=null,kb=null,kk=!1,PU=nP(),hn=1e4>PU?nP:function(){return nP()-PU};function hf(){switch(nle()){case d0:return 99;case K5:return 98;case Y5:return 97;case J5:return 96;case X5:return 95;default:throw Error(pe(332))}}function Z5(t){switch(t){case 99:return d0;case 98:return K5;case 97:return Y5;case 96:return J5;case 95:return X5;default:throw Error(pe(332))}}function Vl(t,e){return t=Z5(t),tle(t,e)}function pg(t,e,r){return t=Z5(t),VP(t,e,r)}function Ya(){if(kb!==null){var t=kb;kb=null,rP(t)}Q5()}function Q5(){if(!kk&&Vi!==null){kk=!0;var t=0;try{var e=Vi;Vl(99,function(){for(;tC?(P=S,S=null):P=S.sibling;var k=d(v,S,y[C],b);if(k===null){S===null&&(S=P);break}t&&S&&k.alternate===null&&e(v,S),h=a(k,h,C),w===null?E=k:w.sibling=k,w=k,S=P}if(C===y.length)return r(v,S),E;if(S===null){for(;CC?(P=S,S=null):P=S.sibling;var O=d(v,S,k.value,b);if(O===null){S===null&&(S=P);break}t&&S&&O.alternate===null&&e(v,S),h=a(O,h,C),w===null?E=O:w.sibling=O,w=O,S=P}if(k.done)return r(v,S),E;if(S===null){for(;!k.done;C++,k=y.next())k=f(v,k.value,b),k!==null&&(h=a(k,h,C),w===null?E=k:w.sibling=k,w=k);return E}for(S=n(v,S);!k.done;C++,k=y.next())k=p(S,v,C,k.value,b),k!==null&&(t&&k.alternate!==null&&S.delete(k.key===null?C:k.key),h=a(k,h,C),w===null?E=k:w.sibling=k,w=k);return t&&S.forEach(function(F){return e(v,F)}),E}return function(v,h,y,b){var E=typeof y=="object"&&y!==null&&y.type===ou&&y.key===null;E&&(y=y.props.children);var w=typeof y=="object"&&y!==null;if(w)switch(y.$$typeof){case Uh:e:{for(w=y.key,E=h;E!==null;){if(E.key===w){switch(E.tag){case 7:if(y.type===ou){r(v,E.sibling),h=o(E,y.props.children),h.return=v,v=h;break e}break;default:if(E.elementType===y.type){r(v,E.sibling),h=o(E,y.props),h.ref=Ah(v,E,y),h.return=v,v=h;break e}}r(v,E);break}else e(v,E);E=E.sibling}y.type===ou?(h=ff(y.props.children,v.mode,b,y.key),h.return=v,v=h):(b=Db(y.type,y.key,y.props,null,v.mode,b),b.ref=Ah(v,h,y),b.return=v,v=b)}return i(v);case Bl:e:{for(E=y.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){r(v,h.sibling),h=o(h,y.children||[]),h.return=v,v=h;break e}else{r(v,h);break}else e(v,h);h=h.sibling}h=Ak(y,v.mode,b),h.return=v,v=h}return i(v)}if(typeof y=="string"||typeof y=="number")return y=""+y,h!==null&&h.tag===6?(r(v,h.sibling),h=o(h,y),h.return=v,v=h):(r(v,h),h=Nk(y,v.mode,b),h.return=v,v=h),i(v);if(yb(y))return m(v,h,y,b);if(Ph(y))return g(v,h,y,b);if(w&&_b(v,y),typeof y=="undefined"&&!E)switch(v.tag){case 1:case 22:case 0:case 11:case 15:throw Error(pe(152,rf(v.type)||"Component"))}return r(v,h)}}var Gb=oz(!0),az=oz(!1),bg={},Va=Su(bg),hg=Su(bg),gg=Su(bg);function Wl(t){if(t===bg)throw Error(pe(174));return t}function aP(t,e){switch(dr(gg,e),dr(hg,t),dr(Va,bg),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Wk(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Wk(e,t)}Xt(Va),dr(Va,e)}function gf(){Xt(Va),Xt(hg),Xt(gg)}function AU(t){Wl(gg.current);var e=Wl(Va.current),r=Wk(e,t.type);e!==r&&(dr(hg,t),dr(Va,r))}function XP(t){hg.current===t&&(Xt(Va),Xt(hg))}var cr=Su(0);function Vb(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&64)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Yi=null,su=null,Ka=!1;function iz(t,e){var r=Uo(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=e,r.return=t,r.flags=8,t.lastEffect!==null?(t.lastEffect.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r}function MU(t,e){switch(t.tag){case 5:var r=t.type;return e=e.nodeType!==1||r.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,!0):!1;case 13:return!1;default:return!1}}function iP(t){if(Ka){var e=su;if(e){var r=e;if(!MU(t,e)){if(e=sf(r.nextSibling),!e||!MU(t,e)){t.flags=t.flags&-1025|2,Ka=!1,Yi=t;return}iz(Yi,r)}Yi=t,su=sf(e.firstChild)}else t.flags=t.flags&-1025|2,Ka=!1,Yi=t}}function FU(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Yi=t}function bb(t){if(t!==Yi)return!1;if(!Ka)return FU(t),Ka=!0,!1;var e=t.type;if(t.tag!==5||e!=="head"&&e!=="body"&&!eP(e,t.memoizedProps))for(e=su;e;)iz(t,e),e=sf(e.nextSibling);if(FU(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(pe(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"){if(e===0){su=sf(t.nextSibling);break e}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++}t=t.nextSibling}su=null}}else su=Yi?sf(t.stateNode.nextSibling):null;return!0}function Pk(){su=Yi=null,Ka=!1}var lf=[];function ZP(){for(var t=0;ta))throw Error(pe(301));a+=1,on=mn=null,e.updateQueue=null,Qh.current=lle,t=r(n,o)}while(eg)}if(Qh.current=Zb,e=mn!==null&&mn.next!==null,vg=0,on=mn=Er=null,Kb=!1,e)throw Error(pe(300));return t}function $l(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return on===null?Er.memoizedState=on=t:on=on.next=t,on}function Zl(){if(mn===null){var t=Er.alternate;t=t!==null?t.memoizedState:null}else t=mn.next;var e=on===null?Er.memoizedState:on.next;if(e!==null)on=e,mn=t;else{if(t===null)throw Error(pe(310));mn=t,t={memoizedState:mn.memoizedState,baseState:mn.baseState,baseQueue:mn.baseQueue,queue:mn.queue,next:null},on===null?Er.memoizedState=on=t:on=on.next=t}return on}function Ha(t,e){return typeof e=="function"?e(t):e}function Mh(t){var e=Zl(),r=e.queue;if(r===null)throw Error(pe(311));r.lastRenderedReducer=t;var n=mn,o=n.baseQueue,a=r.pending;if(a!==null){if(o!==null){var i=o.next;o.next=a.next,a.next=i}n.baseQueue=o=a,r.pending=null}if(o!==null){o=o.next,n=n.baseState;var s=i=a=null,u=o;do{var l=u.lane;if((vg&l)===l)s!==null&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),n=u.eagerReducer===t?u.eagerState:t(n,u.action);else{var c={lane:l,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};s===null?(i=s=c,a=n):s=s.next=c,Er.lanes|=l,Sg|=l}u=u.next}while(u!==null&&u!==o);s===null?a=n:s.next=i,Bo(n,e.memoizedState)||(ha=!0),e.memoizedState=n,e.baseState=a,e.baseQueue=s,r.lastRenderedState=n}return[e.memoizedState,r.dispatch]}function Fh(t){var e=Zl(),r=e.queue;if(r===null)throw Error(pe(311));r.lastRenderedReducer=t;var n=r.dispatch,o=r.pending,a=e.memoizedState;if(o!==null){r.pending=null;var i=o=o.next;do a=t(a,i.action),i=i.next;while(i!==o);Bo(a,e.memoizedState)||(ha=!0),e.memoizedState=a,e.baseQueue===null&&(e.baseState=a),r.lastRenderedState=a}return[a,n]}function qU(t,e,r){var n=e._getVersion;n=n(e._source);var o=e._workInProgressVersionPrimary;if(o!==null?t=o===n:(t=t.mutableReadLanes,(t=(vg&t)===t)&&(e._workInProgressVersionPrimary=n,lf.push(e))),t)return r(e._source);throw lf.push(e),Error(pe(350))}function sz(t,e,r,n){var o=Dn;if(o===null)throw Error(pe(349));var a=e._getVersion,i=a(e._source),s=Qh.current,u=s.useState(function(){return qU(o,e,r)}),l=u[1],c=u[0];u=on;var f=t.memoizedState,d=f.refs,p=d.getSnapshot,m=f.source;f=f.subscribe;var g=Er;return t.memoizedState={refs:d,source:e,subscribe:n},s.useEffect(function(){d.getSnapshot=r,d.setSnapshot=l;var v=a(e._source);if(!Bo(i,v)){v=r(e._source),Bo(c,v)||(l(v),v=pu(g),o.mutableReadLanes|=v&o.pendingLanes),v=o.mutableReadLanes,o.entangledLanes|=v;for(var h=o.entanglements,y=v;0r?98:r,function(){t(!0)}),Vl(97<\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=i.createElement(r,{is:n.is}):(t=i.createElement(r),r==="select"&&(i=t,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):t=i.createElementNS(t,r),t[iu]=e,t[Bb]=n,gz(t,e,!1,!1),e.stateNode=t,i=Hk(r,n),r){case"dialog":Jt("cancel",t),Jt("close",t),o=n;break;case"iframe":case"object":case"embed":Jt("load",t),o=n;break;case"video":case"audio":for(o=0;ogP&&(e.flags|=64,a=!0,jh(n,!1),e.lanes=33554432)}else{if(!a)if(t=Vb(i),t!==null){if(e.flags|=64,a=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),jh(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!Ka)return e=e.lastEffect=n.lastEffect,e!==null&&(e.nextEffect=null),null}else 2*hn()-n.renderingStartTime>gP&&r!==1073741824&&(e.flags|=64,a=!0,jh(n,!1),e.lanes=33554432);n.isBackwards?(i.sibling=e.child,e.child=i):(r=n.last,r!==null?r.sibling=i:e.child=i,n.last=i)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=e.lastEffect,n.renderingStartTime=hn(),r.sibling=null,e=cr.current,dr(cr,a?e&1|2:e&1),r):null;case 23:case 24:return u1(),t!==null&&t.memoizedState!==null!=(e.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(e.flags|=4),null}throw Error(pe(156,e.tag))}function fle(t){switch(t.tag){case 1:Vn(t.type)&&Ub();var e=t.flags;return e&4096?(t.flags=e&-4097|64,t):null;case 3:if(gf(),Xt(Gn),Xt(vn),ZP(),e=t.flags,e&64)throw Error(pe(285));return t.flags=e&-4097|64,t;case 5:return XP(t),null;case 13:return Xt(cr),e=t.flags,e&4096?(t.flags=e&-4097|64,t):null;case 19:return Xt(cr),null;case 4:return gf(),null;case 10:return YP(t),null;case 23:case 24:return u1(),null;default:return null}}function o1(t,e){try{var r="",n=e;do r+=Gse(n),n=n.return;while(n);var o=r}catch(a){o=` +`+o[i].replace(" at new "," at ");while(1<=i&&0<=s);break}}}finally{hk=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?zh(t):""}function Gse(t){switch(t.tag){case 5:return zh(t.type);case 16:return zh("Lazy");case 13:return zh("Suspense");case 19:return zh("SuspenseList");case 0:case 2:case 15:return t=cb(t.type,!1),t;case 11:return t=cb(t.type.render,!1),t;case 22:return t=cb(t.type._render,!1),t;case 1:return t=cb(t.type,!0),t;default:return""}}function rp(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case ou:return"Fragment";case Bl:return"Portal";case Gh:return"Profiler";case xP:return"StrictMode";case Vh:return"Suspense";case Nb:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case IP:return(t.displayName||"Context")+".Consumer";case CP:return(t._context.displayName||"Context")+".Provider";case n0:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case o0:return rp(t.type);case PP:return rp(t._render);case kP:e=t._payload,t=t._init;try{return rp(t(e))}catch(r){}}return null}function gu(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function s5(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Vse(t){var e=s5(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r!="undefined"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,a=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(i){n=""+i,a.call(this,i)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function db(t){t._valueTracker||(t._valueTracker=Vse(t))}function u5(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=s5(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function Ab(t){if(t=t||(typeof document!="undefined"?document:void 0),typeof t=="undefined")return null;try{return t.activeElement||t.body}catch(e){return t.body}}function qk(t,e){var r=e.checked;return er({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:t._wrapperState.initialChecked})}function XB(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=gu(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function l5(t,e){e=e.checked,e!=null&&wP(t,"checked",e,!1)}function jk(t,e){l5(t,e);var r=gu(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Lk(t,e.type,r):e.hasOwnProperty("defaultValue")&&Lk(t,e.type,gu(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function ZB(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function Lk(t,e,r){(e!=="number"||Ab(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}function Kse(t){var e="";return r0.Children.forEach(t,function(r){r!=null&&(e+=r)}),e}function Bk(t,e){return t=er({children:void 0},e),(e=Kse(e.children))&&(t.children=e),t}function np(t,e,r,n){if(t=t.options,e){e={};for(var o=0;o=r.length))throw Error(fe(93));r=r[0]}e=r}e==null&&(e=""),r=e}t._wrapperState={initialValue:gu(r)}}function c5(t,e){var r=gu(e.value),n=gu(e.defaultValue);r!=null&&(r=""+r,r!==t.value&&(t.value=r),e.defaultValue==null&&t.defaultValue!==r&&(t.defaultValue=r)),n!=null&&(t.defaultValue=""+n)}function eU(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}var zk={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function d5(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Wk(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?d5(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var pb,p5=function(t){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(e,r,n,o){MSApp.execUnsafeLocalFunction(function(){return t(e,r,n,o)})}:t}(function(t,e){if(t.namespaceURI!==zk.svg||"innerHTML"in t)t.innerHTML=e;else{for(pb=pb||document.createElement("div"),pb.innerHTML=""+e.valueOf().toString()+"",e=pb.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function ag(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var Kh={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Yse=["Webkit","ms","Moz","O"];Object.keys(Kh).forEach(function(t){Yse.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Kh[e]=Kh[t]})});function f5(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||Kh.hasOwnProperty(t)&&Kh[t]?(""+e).trim():e+"px"}function m5(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=f5(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,o):t[r]=o}}var Jse=er({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $k(t,e){if(e){if(Jse[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(fe(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(fe(60));if(!(typeof e.dangerouslySetInnerHTML=="object"&&"__html"in e.dangerouslySetInnerHTML))throw Error(fe(61))}if(e.style!=null&&typeof e.style!="object")throw Error(fe(62))}}function Hk(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function DP(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Gk=null,op=null,ap=null;function tU(t){if(t=_g(t)){if(typeof Gk!="function")throw Error(fe(280));var e=t.stateNode;e&&(e=c0(e),Gk(t.stateNode,t.type,e))}}function h5(t){op?ap?ap.push(t):ap=[t]:op=t}function g5(){if(op){var t=op,e=ap;if(ap=op=null,tU(t),e)for(t=0;tn?0:1<r;r++)e.push(t);return e}function i0(t,e,r){t.pendingLanes|=e;var n=e-1;t.suspendedLanes&=n,t.pingedLanes&=n,t=t.eventTimes,e=31-vu(e),t[e]=r}var vu=Math.clz32?Math.clz32:pue,cue=Math.log,due=Math.LN2;function pue(t){return t===0?32:31-(cue(t)/due|0)|0}var fue=Gr.unstable_UserBlockingPriority,mue=Gr.unstable_runWithPriority,wb=!0;function hue(t,e,r,n){Ul||AP();var o=LP,a=Ul;Ul=!0;try{v5(o,t,e,r,n)}finally{(Ul=a)||MP()}}function gue(t,e,r,n){mue(fue,LP.bind(null,t,e,r,n))}function LP(t,e,r,n){if(wb){var o;if((o=(e&4)===0)&&0<$a.length&&-1=Jh),dU=" ",pU=!1;function A5(t,e){switch(t){case"keyup":return Lue.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function M5(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Xd=!1;function Uue(t,e){switch(t){case"compositionend":return M5(e);case"keypress":return e.which!==32?null:(pU=!0,dU);case"textInput":return t=e.data,t===dU&&pU?null:t;default:return null}}function zue(t,e){if(Xd)return t==="compositionend"||!$P&&A5(t,e)?(t=D5(),xb=UP=au=null,Xd=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=hU(r)}}function L5(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?L5(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function vU(){for(var t=window,e=Ab();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch(n){r=!1}if(r)t=e.contentWindow;else break;e=Ab(t.document)}return e}function Xk(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Zue=Zi&&"documentMode"in document&&11>=document.documentMode,Zd=null,Zk=null,Zh=null,Qk=!1;function yU(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Qk||Zd==null||Zd!==Ab(n)||(n=Zd,"selectionStart"in n&&Xk(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Zh&&dg(Zh,n)||(Zh=n,n=jb(Zk,"onSelect"),0ep||(t.current=tP[ep],tP[ep]=null,ep--)}function dr(t,e){ep++,tP[ep]=t.current,t.current=e}var yu={},vn=Su(yu),Gn=Su(!1),Gl=yu;function fp(t,e){var r=t.type.contextTypes;if(!r)return yu;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in r)o[a]=e[a];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function Vn(t){return t=t.childContextTypes,t!=null}function Ub(){Xt(Gn),Xt(vn)}function CU(t,e,r){if(vn.current!==yu)throw Error(fe(168));dr(vn,e),dr(Gn,r)}function V5(t,e,r){var n=t.stateNode;if(t=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(fe(108,rp(e)||"Unknown",o));return er({},r,n)}function Ib(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||yu,Gl=vn.current,dr(vn,t),dr(Gn,Gn.current),!0}function IU(t,e,r){var n=t.stateNode;if(!n)throw Error(fe(169));r?(t=V5(t,e,Gl),n.__reactInternalMemoizedMergedChildContext=t,Xt(Gn),Xt(vn),dr(vn,t)):Xt(Gn),dr(Gn,r)}var GP=null,Hl=null,tle=Gr.unstable_runWithPriority,VP=Gr.unstable_scheduleCallback,rP=Gr.unstable_cancelCallback,rle=Gr.unstable_shouldYield,kU=Gr.unstable_requestPaint,nP=Gr.unstable_now,nle=Gr.unstable_getCurrentPriorityLevel,d0=Gr.unstable_ImmediatePriority,K5=Gr.unstable_UserBlockingPriority,Y5=Gr.unstable_NormalPriority,J5=Gr.unstable_LowPriority,X5=Gr.unstable_IdlePriority,Ik={},ole=kU!==void 0?kU:function(){},Vi=null,kb=null,kk=!1,PU=nP(),hn=1e4>PU?nP:function(){return nP()-PU};function mp(){switch(nle()){case d0:return 99;case K5:return 98;case Y5:return 97;case J5:return 96;case X5:return 95;default:throw Error(fe(332))}}function Z5(t){switch(t){case 99:return d0;case 98:return K5;case 97:return Y5;case 96:return J5;case 95:return X5;default:throw Error(fe(332))}}function Vl(t,e){return t=Z5(t),tle(t,e)}function fg(t,e,r){return t=Z5(t),VP(t,e,r)}function Ya(){if(kb!==null){var t=kb;kb=null,rP(t)}Q5()}function Q5(){if(!kk&&Vi!==null){kk=!0;var t=0;try{var e=Vi;Vl(99,function(){for(;tC?(P=S,S=null):P=S.sibling;var k=d(v,S,y[C],b);if(k===null){S===null&&(S=P);break}t&&S&&k.alternate===null&&e(v,S),h=a(k,h,C),w===null?E=k:w.sibling=k,w=k,S=P}if(C===y.length)return r(v,S),E;if(S===null){for(;CC?(P=S,S=null):P=S.sibling;var O=d(v,S,k.value,b);if(O===null){S===null&&(S=P);break}t&&S&&O.alternate===null&&e(v,S),h=a(O,h,C),w===null?E=O:w.sibling=O,w=O,S=P}if(k.done)return r(v,S),E;if(S===null){for(;!k.done;C++,k=y.next())k=p(v,k.value,b),k!==null&&(h=a(k,h,C),w===null?E=k:w.sibling=k,w=k);return E}for(S=n(v,S);!k.done;C++,k=y.next())k=f(S,v,C,k.value,b),k!==null&&(t&&k.alternate!==null&&S.delete(k.key===null?C:k.key),h=a(k,h,C),w===null?E=k:w.sibling=k,w=k);return t&&S.forEach(function(F){return e(v,F)}),E}return function(v,h,y,b){var E=typeof y=="object"&&y!==null&&y.type===ou&&y.key===null;E&&(y=y.props.children);var w=typeof y=="object"&&y!==null;if(w)switch(y.$$typeof){case Uh:e:{for(w=y.key,E=h;E!==null;){if(E.key===w){switch(E.tag){case 7:if(y.type===ou){r(v,E.sibling),h=o(E,y.props.children),h.return=v,v=h;break e}break;default:if(E.elementType===y.type){r(v,E.sibling),h=o(E,y.props),h.ref=Ah(v,E,y),h.return=v,v=h;break e}}r(v,E);break}else e(v,E);E=E.sibling}y.type===ou?(h=dp(y.props.children,v.mode,b,y.key),h.return=v,v=h):(b=Db(y.type,y.key,y.props,null,v.mode,b),b.ref=Ah(v,h,y),b.return=v,v=b)}return i(v);case Bl:e:{for(E=y.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){r(v,h.sibling),h=o(h,y.children||[]),h.return=v,v=h;break e}else{r(v,h);break}else e(v,h);h=h.sibling}h=Ak(y,v.mode,b),h.return=v,v=h}return i(v)}if(typeof y=="string"||typeof y=="number")return y=""+y,h!==null&&h.tag===6?(r(v,h.sibling),h=o(h,y),h.return=v,v=h):(r(v,h),h=Nk(y,v.mode,b),h.return=v,v=h),i(v);if(yb(y))return m(v,h,y,b);if(Ph(y))return g(v,h,y,b);if(w&&_b(v,y),typeof y=="undefined"&&!E)switch(v.tag){case 1:case 22:case 0:case 11:case 15:throw Error(fe(152,rp(v.type)||"Component"))}return r(v,h)}}var Gb=oz(!0),az=oz(!1),bg={},Va=Su(bg),hg=Su(bg),gg=Su(bg);function Wl(t){if(t===bg)throw Error(fe(174));return t}function aP(t,e){switch(dr(gg,e),dr(hg,t),dr(Va,bg),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Wk(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Wk(e,t)}Xt(Va),dr(Va,e)}function hp(){Xt(Va),Xt(hg),Xt(gg)}function AU(t){Wl(gg.current);var e=Wl(Va.current),r=Wk(e,t.type);e!==r&&(dr(hg,t),dr(Va,r))}function XP(t){hg.current===t&&(Xt(Va),Xt(hg))}var cr=Su(0);function Vb(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&64)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Yi=null,su=null,Ka=!1;function iz(t,e){var r=Uo(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=e,r.return=t,r.flags=8,t.lastEffect!==null?(t.lastEffect.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r}function MU(t,e){switch(t.tag){case 5:var r=t.type;return e=e.nodeType!==1||r.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,!0):!1;case 13:return!1;default:return!1}}function iP(t){if(Ka){var e=su;if(e){var r=e;if(!MU(t,e)){if(e=ip(r.nextSibling),!e||!MU(t,e)){t.flags=t.flags&-1025|2,Ka=!1,Yi=t;return}iz(Yi,r)}Yi=t,su=ip(e.firstChild)}else t.flags=t.flags&-1025|2,Ka=!1,Yi=t}}function FU(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Yi=t}function bb(t){if(t!==Yi)return!1;if(!Ka)return FU(t),Ka=!0,!1;var e=t.type;if(t.tag!==5||e!=="head"&&e!=="body"&&!eP(e,t.memoizedProps))for(e=su;e;)iz(t,e),e=ip(e.nextSibling);if(FU(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(fe(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"){if(e===0){su=ip(t.nextSibling);break e}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++}t=t.nextSibling}su=null}}else su=Yi?ip(t.stateNode.nextSibling):null;return!0}function Pk(){su=Yi=null,Ka=!1}var up=[];function ZP(){for(var t=0;ta))throw Error(fe(301));a+=1,on=mn=null,e.updateQueue=null,Qh.current=lle,t=r(n,o)}while(eg)}if(Qh.current=Zb,e=mn!==null&&mn.next!==null,vg=0,on=mn=Er=null,Kb=!1,e)throw Error(fe(300));return t}function $l(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return on===null?Er.memoizedState=on=t:on=on.next=t,on}function Zl(){if(mn===null){var t=Er.alternate;t=t!==null?t.memoizedState:null}else t=mn.next;var e=on===null?Er.memoizedState:on.next;if(e!==null)on=e,mn=t;else{if(t===null)throw Error(fe(310));mn=t,t={memoizedState:mn.memoizedState,baseState:mn.baseState,baseQueue:mn.baseQueue,queue:mn.queue,next:null},on===null?Er.memoizedState=on=t:on=on.next=t}return on}function Ha(t,e){return typeof e=="function"?e(t):e}function Mh(t){var e=Zl(),r=e.queue;if(r===null)throw Error(fe(311));r.lastRenderedReducer=t;var n=mn,o=n.baseQueue,a=r.pending;if(a!==null){if(o!==null){var i=o.next;o.next=a.next,a.next=i}n.baseQueue=o=a,r.pending=null}if(o!==null){o=o.next,n=n.baseState;var s=i=a=null,u=o;do{var l=u.lane;if((vg&l)===l)s!==null&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),n=u.eagerReducer===t?u.eagerState:t(n,u.action);else{var c={lane:l,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};s===null?(i=s=c,a=n):s=s.next=c,Er.lanes|=l,Sg|=l}u=u.next}while(u!==null&&u!==o);s===null?a=n:s.next=i,Bo(n,e.memoizedState)||(ha=!0),e.memoizedState=n,e.baseState=a,e.baseQueue=s,r.lastRenderedState=n}return[e.memoizedState,r.dispatch]}function Fh(t){var e=Zl(),r=e.queue;if(r===null)throw Error(fe(311));r.lastRenderedReducer=t;var n=r.dispatch,o=r.pending,a=e.memoizedState;if(o!==null){r.pending=null;var i=o=o.next;do a=t(a,i.action),i=i.next;while(i!==o);Bo(a,e.memoizedState)||(ha=!0),e.memoizedState=a,e.baseQueue===null&&(e.baseState=a),r.lastRenderedState=a}return[a,n]}function qU(t,e,r){var n=e._getVersion;n=n(e._source);var o=e._workInProgressVersionPrimary;if(o!==null?t=o===n:(t=t.mutableReadLanes,(t=(vg&t)===t)&&(e._workInProgressVersionPrimary=n,up.push(e))),t)return r(e._source);throw up.push(e),Error(fe(350))}function sz(t,e,r,n){var o=Dn;if(o===null)throw Error(fe(349));var a=e._getVersion,i=a(e._source),s=Qh.current,u=s.useState(function(){return qU(o,e,r)}),l=u[1],c=u[0];u=on;var p=t.memoizedState,d=p.refs,f=d.getSnapshot,m=p.source;p=p.subscribe;var g=Er;return t.memoizedState={refs:d,source:e,subscribe:n},s.useEffect(function(){d.getSnapshot=r,d.setSnapshot=l;var v=a(e._source);if(!Bo(i,v)){v=r(e._source),Bo(c,v)||(l(v),v=fu(g),o.mutableReadLanes|=v&o.pendingLanes),v=o.mutableReadLanes,o.entangledLanes|=v;for(var h=o.entanglements,y=v;0r?98:r,function(){t(!0)}),Vl(97<\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=i.createElement(r,{is:n.is}):(t=i.createElement(r),r==="select"&&(i=t,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):t=i.createElementNS(t,r),t[iu]=e,t[Bb]=n,gz(t,e,!1,!1),e.stateNode=t,i=Hk(r,n),r){case"dialog":Jt("cancel",t),Jt("close",t),o=n;break;case"iframe":case"object":case"embed":Jt("load",t),o=n;break;case"video":case"audio":for(o=0;ogP&&(e.flags|=64,a=!0,jh(n,!1),e.lanes=33554432)}else{if(!a)if(t=Vb(i),t!==null){if(e.flags|=64,a=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),jh(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!Ka)return e=e.lastEffect=n.lastEffect,e!==null&&(e.nextEffect=null),null}else 2*hn()-n.renderingStartTime>gP&&r!==1073741824&&(e.flags|=64,a=!0,jh(n,!1),e.lanes=33554432);n.isBackwards?(i.sibling=e.child,e.child=i):(r=n.last,r!==null?r.sibling=i:e.child=i,n.last=i)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=e.lastEffect,n.renderingStartTime=hn(),r.sibling=null,e=cr.current,dr(cr,a?e&1|2:e&1),r):null;case 23:case 24:return u1(),t!==null&&t.memoizedState!==null!=(e.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(e.flags|=4),null}throw Error(fe(156,e.tag))}function ple(t){switch(t.tag){case 1:Vn(t.type)&&Ub();var e=t.flags;return e&4096?(t.flags=e&-4097|64,t):null;case 3:if(hp(),Xt(Gn),Xt(vn),ZP(),e=t.flags,e&64)throw Error(fe(285));return t.flags=e&-4097|64,t;case 5:return XP(t),null;case 13:return Xt(cr),e=t.flags,e&4096?(t.flags=e&-4097|64,t):null;case 19:return Xt(cr),null;case 4:return hp(),null;case 10:return YP(t),null;case 23:case 24:return u1(),null;default:return null}}function o1(t,e){try{var r="",n=e;do r+=Gse(n),n=n.return;while(n);var o=r}catch(a){o=` Error generating stack: `+a.message+` -`+a.stack}return{value:t,source:e,stack:o}}function dP(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var ple=typeof WeakMap=="function"?WeakMap:Map;function _z(t,e,r){r=du(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){e0||(e0=!0,vP=n),dP(t,e)},r}function bz(t,e,r){r=du(-1,r),r.tag=3;var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var o=e.value;r.payload=function(){return dP(t,e),n(o)}}var a=t.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(Ga===null?Ga=new Set([this]):Ga.add(this),dP(t,e));var i=e.stack;this.componentDidCatch(e.value,{componentStack:i!==null?i:""})}),r}var mle=typeof WeakSet=="function"?WeakSet:Set;function JU(t){var e=t.ref;if(e!==null)if(typeof e=="function")try{e(null)}catch(r){hu(t,r)}else e.current=null}function hle(t,e){switch(e.tag){case 0:case 11:case 15:case 22:return;case 1:if(e.flags&256&&t!==null){var r=t.memoizedProps,n=t.memoizedState;t=e.stateNode,e=t.getSnapshotBeforeUpdate(e.elementType===e.type?r:ma(e.type,r),n),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:e.flags&256&&HP(e.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(pe(163))}function gle(t,e,r){switch(r.tag){case 0:case 11:case 15:case 22:if(e=r.updateQueue,e=e!==null?e.lastEffect:null,e!==null){t=e=e.next;do{if((t.tag&3)===3){var n=t.create;t.destroy=n()}t=t.next}while(t!==e)}if(e=r.updateQueue,e=e!==null?e.lastEffect:null,e!==null){t=e=e.next;do{var o=t;n=o.next,o=o.tag,o&4&&o&1&&(Pz(r,t),wle(r,t)),t=n}while(t!==e)}return;case 1:t=r.stateNode,r.flags&4&&(e===null?t.componentDidMount():(n=r.elementType===r.type?e.memoizedProps:ma(r.type,e.memoizedProps),t.componentDidUpdate(n,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate))),e=r.updateQueue,e!==null&&RU(r,e,t);return;case 3:if(e=r.updateQueue,e!==null){if(t=null,r.child!==null)switch(r.child.tag){case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}RU(r,e,t)}return;case 5:t=r.stateNode,e===null&&r.flags&4&&H5(r.type,r.memoizedProps)&&t.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&w5(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(pe(163))}function XU(t,e){for(var r=t;;){if(r.tag===5){var n=r.stateNode;if(e)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var o=r.memoizedProps.style;o=o!=null&&o.hasOwnProperty("display")?o.display:null,n.style.display=p5("display",o)}}else if(r.tag===6)r.stateNode.nodeValue=e?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function ZU(t,e){if(Hl&&typeof Hl.onCommitFiberUnmount=="function")try{Hl.onCommitFiberUnmount(GP,e)}catch(a){}switch(e.tag){case 0:case 11:case 14:case 15:case 22:if(t=e.updateQueue,t!==null&&(t=t.lastEffect,t!==null)){var r=t=t.next;do{var n=r,o=n.destroy;if(n=n.tag,o!==void 0)if(n&4)Pz(e,r);else{n=e;try{o()}catch(a){hu(n,a)}}r=r.next}while(r!==t)}break;case 1:if(JU(e),t=e.stateNode,typeof t.componentWillUnmount=="function")try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(a){hu(e,a)}break;case 5:JU(e);break;case 4:Sz(t,e)}}function QU(t){t.alternate=null,t.child=null,t.dependencies=null,t.firstEffect=null,t.lastEffect=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.return=null,t.updateQueue=null}function e5(t){return t.tag===5||t.tag===3||t.tag===4}function t5(t){e:{for(var e=t.return;e!==null;){if(e5(e))break e;e=e.return}throw Error(pe(160))}var r=e;switch(e=r.stateNode,r.tag){case 5:var n=!1;break;case 3:e=e.containerInfo,n=!0;break;case 4:e=e.containerInfo,n=!0;break;default:throw Error(pe(161))}r.flags&16&&(ag(e,""),r.flags&=-17);e:t:for(r=t;;){for(;r.sibling===null;){if(r.return===null||e5(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?fP(t,r,e):pP(t,r,e)}function fP(t,e,r){var n=t.tag,o=n===5||n===6;if(o)t=o?t.stateNode:t.stateNode.instance,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=Lb));else if(n!==4&&(t=t.child,t!==null))for(fP(t,e,r),t=t.sibling;t!==null;)fP(t,e,r),t=t.sibling}function pP(t,e,r){var n=t.tag,o=n===5||n===6;if(o)t=o?t.stateNode:t.stateNode.instance,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(pP(t,e,r),t=t.sibling;t!==null;)pP(t,e,r),t=t.sibling}function Sz(t,e){for(var r=e,n=!1,o,a;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(pe(160));switch(o=n.stateNode,n.tag){case 5:a=!1;break e;case 3:o=o.containerInfo,a=!0;break e;case 4:o=o.containerInfo,a=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var i=t,s=r,u=s;;)if(ZU(i,u),u.child!==null&&u.tag!==4)u.child.return=u,u=u.child;else{if(u===s)break e;for(;u.sibling===null;){if(u.return===null||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}a?(i=o,s=r.stateNode,i.nodeType===8?i.parentNode.removeChild(s):i.removeChild(s)):o.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){o=r.stateNode.containerInfo,a=!0,r.child.return=r,r=r.child;continue}}else if(ZU(t,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function Dk(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)===3&&(t=n.destroy,n.destroy=void 0,t!==void 0&&t()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=e.stateNode,r!=null){n=e.memoizedProps;var o=t!==null?t.memoizedProps:n;t=e.type;var a=e.updateQueue;if(e.updateQueue=null,a!==null){for(r[Bb]=n,t==="input"&&n.type==="radio"&&n.name!=null&&l5(r,n),Hk(t,o),e=Hk(t,n),o=0;oo&&(o=i),r&=~a}if(r=o,r=hn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yle(r/1960))-r,10o&&(o=i),r&=~a}if(r=o,r=hn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yle(r/1960))-r,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}an!==5&&(an=2),u=o1(u,s),d=i;do{switch(d.tag){case 3:a=u,d.flags|=4096,e&=-e,d.lanes|=e;var w=_z(d,a,e);OU(d,w);break e;case 1:a=u;var S=d.type,C=d.stateNode;if(!(d.flags&64)&&(typeof S.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Ga===null||!Ga.has(C)))){d.flags|=4096,e&=-e,d.lanes|=e;var P=bz(d,a,e);OU(d,P);break e}}d=d.return}while(d!==null)}kz(r)}catch(k){e=k,qr===r&&r!==null&&(qr=r=r.return);continue}break}while(!0)}function Cz(){var t=Qb.current;return Qb.current=Zb,t===null?Zb:t}function Hh(t,e){var r=Ve;Ve|=16;var n=Cz();Dn===t&&gn===e||df(t,e);do try{ble();break}catch(o){xz(t,o)}while(!0);if(KP(),Ve=r,Qb.current=n,qr!==null)throw Error(pe(261));return Dn=null,gn=0,an}function ble(){for(;qr!==null;)Iz(qr)}function Sle(){for(;qr!==null&&!rle();)Iz(qr)}function Iz(t){var e=Oz(t.alternate,t,Kl);t.memoizedProps=t.pendingProps,e===null?kz(t):qr=e,a1.current=null}function kz(t){var e=t;do{var r=e.alternate;if(t=e.return,e.flags&2048){if(r=fle(e),r!==null){r.flags&=2047,qr=r;return}t!==null&&(t.firstEffect=t.lastEffect=null,t.flags|=2048)}else{if(r=dle(r,e,Kl),r!==null){qr=r;return}if(r=e,r.tag!==24&&r.tag!==23||r.memoizedState===null||Kl&1073741824||!(r.mode&4)){for(var n=0,o=r.child;o!==null;)n|=o.lanes|o.childLanes,o=o.sibling;r.childLanes=n}t!==null&&!(t.flags&2048)&&(t.firstEffect===null&&(t.firstEffect=e.firstEffect),e.lastEffect!==null&&(t.lastEffect!==null&&(t.lastEffect.nextEffect=e.firstEffect),t.lastEffect=e.lastEffect),1i&&(s=i,i=w,w=s),s=gU(y,w),a=gU(y,i),s&&a&&(E.rangeCount!==1||E.anchorNode!==s.node||E.anchorOffset!==s.offset||E.focusNode!==a.node||E.focusOffset!==a.offset)&&(b=b.createRange(),b.setStart(s.node,s.offset),E.removeAllRanges(),w>i?(E.addRange(b),E.extend(a.node,a.offset)):(b.setEnd(a.node,a.offset),E.addRange(b)))))),b=[],E=y;E=E.parentNode;)E.nodeType===1&&b.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;yhn()-s1?df(t,0):i1|=r),$o(t,e)}function Ile(t,e){var r=t.stateNode;r!==null&&r.delete(e),e=0,e===0&&(e=t.mode,e&2?e&4?(Ki===0&&(Ki=_f),e=Yd(62914560&~Ki),e===0&&(e=4194304)):e=hf()===99?1:2:e=1),r=lo(),t=m0(t,e),t!==null&&(i0(t,e,r),$o(t,r))}var Oz;Oz=function(t,e,r){var n=e.lanes;if(t!==null)if(t.memoizedProps!==e.pendingProps||Gn.current)ha=!0;else if(r&n)ha=!!(t.flags&16384);else{switch(ha=!1,e.tag){case 3:WU(e),Pk();break;case 5:AU(e);break;case 1:Vn(e.type)&&Ib(e);break;case 4:aP(e,e.stateNode.containerInfo);break;case 10:n=e.memoizedProps.value;var o=e.type._context;dr(zb,o._currentValue),o._currentValue=n;break;case 13:if(e.memoizedState!==null)return r&e.child.childLanes?$U(t,e,r):(dr(cr,cr.current&1),e=Ji(t,e,r),e!==null?e.sibling:null);dr(cr,cr.current&1);break;case 19:if(n=(r&e.childLanes)!==0,t.flags&64){if(n)return YU(t,e,r);e.flags|=64}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),dr(cr,cr.current),n)break;return null;case 23:case 24:return e.lanes=0,Ok(t,e,r)}return Ji(t,e,r)}else ha=!1;switch(e.lanes=0,e.tag){case 2:if(n=e.type,t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,o=mf(e,vn.current),uf(e,r),o=e1(null,e,n,t,o,r),e.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,Vn(n)){var a=!0;Ib(e)}else a=!1;e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,JP(e);var i=n.getDerivedStateFromProps;typeof i=="function"&&Hb(e,n,i,t),o.updater=f0,e.stateNode=o,o._reactInternals=e,oP(e,n,t,r),e=lP(null,e,n,!0,a,r)}else e.tag=0,Hn(null,e,o,r),e=e.child;return e;case 16:o=e.elementType;e:{switch(t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,a=o._init,o=a(o._payload),e.type=o,a=e.tag=Ple(o),t=ma(o,t),a){case 0:e=uP(null,e,o,t,r);break e;case 1:e=zU(null,e,o,t,r);break e;case 11:e=BU(null,e,o,t,r);break e;case 14:e=UU(null,e,o,ma(o.type,t),n,r);break e}throw Error(pe(306,o,""))}return e;case 0:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:ma(n,o),uP(t,e,n,o,r);case 1:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:ma(n,o),zU(t,e,n,o,r);case 3:if(WU(e),n=e.updateQueue,t===null||n===null)throw Error(pe(282));if(n=e.pendingProps,o=e.memoizedState,o=o!==null?o.element:null,tz(t,e),mg(e,n,null,r),n=e.memoizedState.element,n===o)Pk(),e=Ji(t,e,r);else{if(o=e.stateNode,(a=o.hydrate)&&(su=sf(e.stateNode.containerInfo.firstChild),Yi=e,a=Ka=!0),a){if(t=o.mutableSourceEagerHydrationData,t!=null)for(o=0;o{"use strict";function Nz(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Nz)}catch(t){console.error(t)}}Nz(),Az.exports=Dz()});var $=_((JVe,Tg)=>{"use strict";function Fle(t){return t&&t.__esModule?t:{default:t}}Tg.exports=Fle,Tg.exports.__esModule=!0,Tg.exports.default=Tg.exports});var Go=_((XVe,Qi)=>{"use strict";function p1(t){"@babel/helpers - typeof";return Qi.exports=p1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qi.exports.__esModule=!0,Qi.exports.default=Qi.exports,p1(t)}Qi.exports=p1,Qi.exports.__esModule=!0,Qi.exports.default=Qi.exports});var Ne=_((ZVe,wg)=>{"use strict";var qle=Go().default;function Mz(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return(Mz=function(o){return o?r:e})(t)}function jle(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||qle(t)!="object"&&typeof t!="function")return{default:t};var r=Mz(e);if(r&&r.has(t))return r.get(t);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&{}.hasOwnProperty.call(t,a)){var i=o?Object.getOwnPropertyDescriptor(t,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=t[a]}return n.default=t,r&&r.set(t,n),n}wg.exports=jle,wg.exports.__esModule=!0,wg.exports.default=wg.exports});var g0=_(m1=>{"use strict";Object.defineProperty(m1,"__esModule",{value:!0});m1.default=Lle;function Lle(t,e){return function(){return null}}});var We=_((e7e,es)=>{"use strict";function h1(){return es.exports=h1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{"use strict";var Fz=$();Object.defineProperty(y0,"__esModule",{value:!0});y0.isPlainObject=v0;y0.default=qz;var Ble=Fz(We()),Ule=Fz(Go());function v0(t){return t&&(0,Ule.default)(t)==="object"&&t.constructor===Object}function qz(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},n=r.clone?(0,Ble.default)({},t):t;return v0(t)&&v0(e)&&Object.keys(e).forEach(function(o){o!=="__proto__"&&(v0(e[o])&&o in t?n[o]=qz(t[o],e[o],r):n[o]=e[o])}),n}});var Bz=_((r7e,Lz)=>{"use strict";var zle="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Lz.exports=zle});var $z=_((n7e,Wz)=>{"use strict";var Wle=Bz();function Uz(){}function zz(){}zz.resetWarningCache=Uz;Wz.exports=function(){function t(n,o,a,i,s,u){if(u!==Wle){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}t.isRequired=t;function e(){return t}var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:zz,resetWarningCache:Uz};return r.PropTypes=r,r}});var je=_((i7e,Hz)=>{"use strict";Hz.exports=$z()();var o7e,a7e});var Xz=_(_0=>{"use strict";var Gz=$();Object.defineProperty(_0,"__esModule",{value:!0});_0.default=void 0;var Vz=Gz(je()),Kz=Gz(g0());function $le(t){var e=t.prototype,r=e===void 0?{}:e;return!!r.isReactComponent}function Yz(t,e,r,n,o){var a=t[e],i=o||e;if(a==null)return null;var s,u=a.type;return typeof u=="function"&&!$le(u)&&(s="Did you accidentally use a plain function component for an element instead?"),s!==void 0?new Error("Invalid ".concat(n," `").concat(i,"` supplied to `").concat(r,"`. ")+"Expected an element that can hold a ref. ".concat(s," ")+"For more information see https://mui.com/r/caveat-with-refs-guide"):null}var Jz=(0,Kz.default)(Vz.default.element,Yz);Jz.isRequired=(0,Kz.default)(Vz.default.element.isRequired,Yz);var Hle=Jz;_0.default=Hle});var Zz=_(b0=>{"use strict";var Gle=$(),Vle=Ne();Object.defineProperty(b0,"__esModule",{value:!0});b0.default=void 0;var Kle=Vle(je()),Yle=Gle(g0());function Jle(t){var e=t.prototype,r=e===void 0?{}:e;return!!r.isReactComponent}function Xle(t,e,r,n,o){var a=t[e],i=o||e;if(a==null)return null;var s;return typeof a=="function"&&!Jle(a)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error("Invalid ".concat(n," `").concat(i,"` supplied to `").concat(r,"`. ")+"Expected an element type that can hold a ref. ".concat(s," ")+"For more information see https://mui.com/r/caveat-with-refs-guide"):null}var Zle=(0,Yle.default)(Kle.elementType,Xle);b0.default=Zle});var eW=_((l7e,xg)=>{"use strict";var Qz=Go().default;function Qle(t,e){if(Qz(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Qz(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}xg.exports=Qle,xg.exports.__esModule=!0,xg.exports.default=xg.exports});var g1=_((c7e,Cg)=>{"use strict";var ece=Go().default,tce=eW();function rce(t){var e=tce(t,"string");return ece(e)=="symbol"?e:e+""}Cg.exports=rce,Cg.exports.__esModule=!0,Cg.exports.default=Cg.exports});var fo=_((d7e,Ig)=>{"use strict";var nce=g1();function oce(t,e,r){return(e=nce(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Ig.exports=oce,Ig.exports.__esModule=!0,Ig.exports.default=Ig.exports});var nW=_(kg=>{"use strict";var tW=$();Object.defineProperty(kg,"__esModule",{value:!0});kg.default=sce;kg.specialProperty=void 0;var ace=tW(fo()),ice=tW(We()),rW="exact-prop: \u200B";kg.specialProperty=rW;function sce(t){return t}});var oW=_(v1=>{"use strict";Object.defineProperty(v1,"__esModule",{value:!0});v1.default=uce;function uce(t){for(var e="https://mui.com/production-error/?code="+t,r=1;r{"use strict";var S0=60103,E0=60106,Pg=60107,Og=60108,Rg=60114,Dg=60109,Ng=60110,Ag=60112,Mg=60113,y1=60120,Fg=60115,qg=60116,aW=60121,iW=60122,sW=60117,uW=60129,lW=60131;typeof Symbol=="function"&&Symbol.for&&(Vr=Symbol.for,S0=Vr("react.element"),E0=Vr("react.portal"),Pg=Vr("react.fragment"),Og=Vr("react.strict_mode"),Rg=Vr("react.profiler"),Dg=Vr("react.provider"),Ng=Vr("react.context"),Ag=Vr("react.forward_ref"),Mg=Vr("react.suspense"),y1=Vr("react.suspense_list"),Fg=Vr("react.memo"),qg=Vr("react.lazy"),aW=Vr("react.block"),iW=Vr("react.server.block"),sW=Vr("react.fundamental"),uW=Vr("react.debug_trace_mode"),lW=Vr("react.legacy_hidden"));var Vr;function ga(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case S0:switch(t=t.type,t){case Pg:case Rg:case Og:case Mg:case y1:return t;default:switch(t=t&&t.$$typeof,t){case Ng:case Ag:case qg:case Fg:case Dg:return t;default:return e}}case E0:return e}}}var lce=Dg,cce=S0,dce=Ag,fce=Pg,pce=qg,mce=Fg,hce=E0,gce=Rg,vce=Og,yce=Mg;jt.ContextConsumer=Ng;jt.ContextProvider=lce;jt.Element=cce;jt.ForwardRef=dce;jt.Fragment=fce;jt.Lazy=pce;jt.Memo=mce;jt.Portal=hce;jt.Profiler=gce;jt.StrictMode=vce;jt.Suspense=yce;jt.isAsyncMode=function(){return!1};jt.isConcurrentMode=function(){return!1};jt.isContextConsumer=function(t){return ga(t)===Ng};jt.isContextProvider=function(t){return ga(t)===Dg};jt.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===S0};jt.isForwardRef=function(t){return ga(t)===Ag};jt.isFragment=function(t){return ga(t)===Pg};jt.isLazy=function(t){return ga(t)===qg};jt.isMemo=function(t){return ga(t)===Fg};jt.isPortal=function(t){return ga(t)===E0};jt.isProfiler=function(t){return ga(t)===Rg};jt.isStrictMode=function(t){return ga(t)===Og};jt.isSuspense=function(t){return ga(t)===Mg};jt.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===Pg||t===Rg||t===uW||t===Og||t===Mg||t===y1||t===lW||typeof t=="object"&&t!==null&&(t.$$typeof===qg||t.$$typeof===Fg||t.$$typeof===Dg||t.$$typeof===Ng||t.$$typeof===Ag||t.$$typeof===sW||t.$$typeof===aW||t[0]===iW)};jt.typeOf=ga});var Ef=_((h7e,dW)=>{"use strict";dW.exports=cW()});var gW=_(T0=>{"use strict";var _ce=$();Object.defineProperty(T0,"__esModule",{value:!0});T0.getFunctionName=mW;T0.default=Ece;var bce=_ce(Go()),fW=Ef(),Sce=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function mW(t){var e="".concat(t).match(Sce),r=e&&e[1];return r||""}function hW(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return t.displayName||t.name||mW(t)||e}function pW(t,e,r){var n=hW(e);return t.displayName||(n!==""?"".concat(r,"(").concat(n,")"):r)}function Ece(t){if(t!=null){if(typeof t=="string")return t;if(typeof t=="function")return hW(t,"Component");if((0,bce.default)(t)==="object")switch(t.$$typeof){case fW.ForwardRef:return pW(t,t.render,"ForwardRef");case fW.Memo:return pW(t,t.type,"memo");default:return}}}});var vW=_(_1=>{"use strict";Object.defineProperty(_1,"__esModule",{value:!0});_1.default=Tce;function Tce(t,e,r,n,o){return null;var a,i}});var yW=_(w0=>{"use strict";Object.defineProperty(w0,"__esModule",{value:!0});w0.default=void 0;var wce=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();w0.default=wce});var _W=_(x0=>{"use strict";var xce=$();Object.defineProperty(x0,"__esModule",{value:!0});x0.default=void 0;var b1=xce(je()),Cce=b1.default.oneOfType([b1.default.func,b1.default.object]),Ice=Cce;x0.default=Ice});var at=_(Vo=>{"use strict";var Ja=$();Object.defineProperty(Vo,"__esModule",{value:!0});Object.defineProperty(Vo,"chainPropTypes",{enumerable:!0,get:function(){return kce.default}});Object.defineProperty(Vo,"deepmerge",{enumerable:!0,get:function(){return Pce.default}});Object.defineProperty(Vo,"elementAcceptingRef",{enumerable:!0,get:function(){return Oce.default}});Object.defineProperty(Vo,"elementTypeAcceptingRef",{enumerable:!0,get:function(){return Rce.default}});Object.defineProperty(Vo,"exactProp",{enumerable:!0,get:function(){return Dce.default}});Object.defineProperty(Vo,"formatMuiErrorMessage",{enumerable:!0,get:function(){return Nce.default}});Object.defineProperty(Vo,"getDisplayName",{enumerable:!0,get:function(){return Ace.default}});Object.defineProperty(Vo,"HTMLElementType",{enumerable:!0,get:function(){return Mce.default}});Object.defineProperty(Vo,"ponyfillGlobal",{enumerable:!0,get:function(){return Fce.default}});Object.defineProperty(Vo,"refType",{enumerable:!0,get:function(){return qce.default}});var kce=Ja(g0()),Pce=Ja(jz()),Oce=Ja(Xz()),Rce=Ja(Zz()),Dce=Ja(nW()),Nce=Ja(oW()),Ace=Ja(gW()),Mce=Ja(vW()),Fce=Ja(yW()),qce=Ja(_W())});var Ql=_(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.hexToRgb=bW;Kn.rgbToHex=Bce;Kn.hslToRgb=SW;Kn.decomposeColor=ts;Kn.recomposeColor=jg;Kn.getContrastRatio=Uce;Kn.getLuminance=C0;Kn.emphasize=zce;Kn.fade=Wce;Kn.alpha=EW;Kn.darken=TW;Kn.lighten=wW;var jce=at();function S1(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.min(Math.max(e,t),r)}function bW(t){t=t.substr(1);var e=new RegExp(".{1,".concat(t.length>=6?2:1,"}"),"g"),r=t.match(e);return r&&r[0].length===1&&(r=r.map(function(n){return n+n})),r?"rgb".concat(r.length===4?"a":"","(").concat(r.map(function(n,o){return o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3}).join(", "),")"):""}function Lce(t){var e=t.toString(16);return e.length===1?"0".concat(e):e}function Bce(t){if(t.indexOf("#")===0)return t;var e=ts(t),r=e.values;return"#".concat(r.map(function(n){return Lce(n)}).join(""))}function SW(t){t=ts(t);var e=t,r=e.values,n=r[0],o=r[1]/100,a=r[2]/100,i=o*Math.min(a,1-a),s=function(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:(f+n/30)%12;return a-i*Math.max(Math.min(d-3,9-d,1),-1)},u="rgb",l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return t.type==="hsla"&&(u+="a",l.push(r[3])),jg({type:u,values:l})}function ts(t){if(t.type)return t;if(t.charAt(0)==="#")return ts(bW(t));var e=t.indexOf("("),r=t.substring(0,e);if(["rgb","rgba","hsl","hsla"].indexOf(r)===-1)throw new Error((0,jce.formatMuiErrorMessage)(3,t));var n=t.substring(e+1,t.length-1).split(",");return n=n.map(function(o){return parseFloat(o)}),{type:r,values:n}}function jg(t){var e=t.type,r=t.values;return e.indexOf("rgb")!==-1?r=r.map(function(n,o){return o<3?parseInt(n,10):n}):e.indexOf("hsl")!==-1&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(e,"(").concat(r.join(", "),")")}function Uce(t,e){var r=C0(t),n=C0(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function C0(t){t=ts(t);var e=t.type==="hsl"?ts(SW(t)).values:t.values;return e=e.map(function(r){return r/=255,r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function zce(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.15;return C0(t)>.5?TW(t,e):wW(t,e)}function Wce(t,e){return EW(t,e)}function EW(t,e){return t=ts(t),e=S1(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.values[3]=e,jg(t)}function TW(t,e){if(t=ts(t),e=S1(e),t.type.indexOf("hsl")!==-1)t.values[2]*=1-e;else if(t.type.indexOf("rgb")!==-1)for(var r=0;r<3;r+=1)t.values[r]*=1-e;return jg(t)}function wW(t,e){if(t=ts(t),e=S1(e),t.type.indexOf("hsl")!==-1)t.values[2]+=(100-t.values[2])*e;else if(t.type.indexOf("rgb")!==-1)for(var r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;return jg(t)}});var E1=_((E7e,Lg)=>{"use strict";function $ce(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;r[n]=t[n]}return r}Lg.exports=$ce,Lg.exports.__esModule=!0,Lg.exports.default=Lg.exports});var ut=_((T7e,Bg)=>{"use strict";var Hce=E1();function Gce(t,e){if(t==null)return{};var r,n,o=Hce(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n{"use strict";var xW=$();Object.defineProperty(Ug,"__esModule",{value:!0});Ug.default=Yce;Ug.keys=void 0;var Vce=xW(We()),Kce=xW(ut()),rs=["xs","sm","md","lg","xl"];Ug.keys=rs;function Yce(t){var e=t.values,r=e===void 0?{xs:0,sm:600,md:960,lg:1280,xl:1920}:e,n=t.unit,o=n===void 0?"px":n,a=t.step,i=a===void 0?5:a,s=(0,Kce.default)(t,["values","unit","step"]);function u(m){var g=typeof r[m]=="number"?r[m]:m;return"@media (min-width:".concat(g).concat(o,")")}function l(m){var g=rs.indexOf(m)+1,v=r[rs[g]];if(g===rs.length)return u("xs");var h=typeof v=="number"&&g>0?v:m;return"@media (max-width:".concat(h-i/100).concat(o,")")}function c(m,g){var v=rs.indexOf(g);return v===rs.length-1?u(m):"@media (min-width:".concat(typeof r[m]=="number"?r[m]:m).concat(o,") and ")+"(max-width:".concat((v!==-1&&typeof r[rs[v+1]]=="number"?r[rs[v+1]]:g)-i/100).concat(o,")")}function f(m){return c(m,m)}var d=!1;function p(m){return r[m]}return(0,Vce.default)({keys:rs,values:r,up:u,down:l,between:c,only:f,width:p},s)}});var kW=_(x1=>{"use strict";var IW=$();Object.defineProperty(x1,"__esModule",{value:!0});x1.default=Jce;var T1=IW(fo()),w1=IW(We());function Jce(t,e,r){var n;return(0,w1.default)({gutters:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:",` +Add a component higher in the tree to provide a loading indicator or placeholder to display.`)}an!==5&&(an=2),u=o1(u,s),d=i;do{switch(d.tag){case 3:a=u,d.flags|=4096,e&=-e,d.lanes|=e;var w=_z(d,a,e);OU(d,w);break e;case 1:a=u;var S=d.type,C=d.stateNode;if(!(d.flags&64)&&(typeof S.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Ga===null||!Ga.has(C)))){d.flags|=4096,e&=-e,d.lanes|=e;var P=bz(d,a,e);OU(d,P);break e}}d=d.return}while(d!==null)}kz(r)}catch(k){e=k,qr===r&&r!==null&&(qr=r=r.return);continue}break}while(!0)}function Cz(){var t=Qb.current;return Qb.current=Zb,t===null?Zb:t}function Hh(t,e){var r=Ve;Ve|=16;var n=Cz();Dn===t&&gn===e||cp(t,e);do try{ble();break}catch(o){xz(t,o)}while(!0);if(KP(),Ve=r,Qb.current=n,qr!==null)throw Error(fe(261));return Dn=null,gn=0,an}function ble(){for(;qr!==null;)Iz(qr)}function Sle(){for(;qr!==null&&!rle();)Iz(qr)}function Iz(t){var e=Oz(t.alternate,t,Kl);t.memoizedProps=t.pendingProps,e===null?kz(t):qr=e,a1.current=null}function kz(t){var e=t;do{var r=e.alternate;if(t=e.return,e.flags&2048){if(r=ple(e),r!==null){r.flags&=2047,qr=r;return}t!==null&&(t.firstEffect=t.lastEffect=null,t.flags|=2048)}else{if(r=dle(r,e,Kl),r!==null){qr=r;return}if(r=e,r.tag!==24&&r.tag!==23||r.memoizedState===null||Kl&1073741824||!(r.mode&4)){for(var n=0,o=r.child;o!==null;)n|=o.lanes|o.childLanes,o=o.sibling;r.childLanes=n}t!==null&&!(t.flags&2048)&&(t.firstEffect===null&&(t.firstEffect=e.firstEffect),e.lastEffect!==null&&(t.lastEffect!==null&&(t.lastEffect.nextEffect=e.firstEffect),t.lastEffect=e.lastEffect),1i&&(s=i,i=w,w=s),s=gU(y,w),a=gU(y,i),s&&a&&(E.rangeCount!==1||E.anchorNode!==s.node||E.anchorOffset!==s.offset||E.focusNode!==a.node||E.focusOffset!==a.offset)&&(b=b.createRange(),b.setStart(s.node,s.offset),E.removeAllRanges(),w>i?(E.addRange(b),E.extend(a.node,a.offset)):(b.setEnd(a.node,a.offset),E.addRange(b)))))),b=[],E=y;E=E.parentNode;)E.nodeType===1&&b.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;yhn()-s1?cp(t,0):i1|=r),$o(t,e)}function Ile(t,e){var r=t.stateNode;r!==null&&r.delete(e),e=0,e===0&&(e=t.mode,e&2?e&4?(Ki===0&&(Ki=yp),e=Yd(62914560&~Ki),e===0&&(e=4194304)):e=mp()===99?1:2:e=1),r=lo(),t=m0(t,e),t!==null&&(i0(t,e,r),$o(t,r))}var Oz;Oz=function(t,e,r){var n=e.lanes;if(t!==null)if(t.memoizedProps!==e.pendingProps||Gn.current)ha=!0;else if(r&n)ha=!!(t.flags&16384);else{switch(ha=!1,e.tag){case 3:WU(e),Pk();break;case 5:AU(e);break;case 1:Vn(e.type)&&Ib(e);break;case 4:aP(e,e.stateNode.containerInfo);break;case 10:n=e.memoizedProps.value;var o=e.type._context;dr(zb,o._currentValue),o._currentValue=n;break;case 13:if(e.memoizedState!==null)return r&e.child.childLanes?$U(t,e,r):(dr(cr,cr.current&1),e=Ji(t,e,r),e!==null?e.sibling:null);dr(cr,cr.current&1);break;case 19:if(n=(r&e.childLanes)!==0,t.flags&64){if(n)return YU(t,e,r);e.flags|=64}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),dr(cr,cr.current),n)break;return null;case 23:case 24:return e.lanes=0,Ok(t,e,r)}return Ji(t,e,r)}else ha=!1;switch(e.lanes=0,e.tag){case 2:if(n=e.type,t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,o=fp(e,vn.current),sp(e,r),o=e1(null,e,n,t,o,r),e.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,Vn(n)){var a=!0;Ib(e)}else a=!1;e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,JP(e);var i=n.getDerivedStateFromProps;typeof i=="function"&&Hb(e,n,i,t),o.updater=p0,e.stateNode=o,o._reactInternals=e,oP(e,n,t,r),e=lP(null,e,n,!0,a,r)}else e.tag=0,Hn(null,e,o,r),e=e.child;return e;case 16:o=e.elementType;e:{switch(t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,a=o._init,o=a(o._payload),e.type=o,a=e.tag=Ple(o),t=ma(o,t),a){case 0:e=uP(null,e,o,t,r);break e;case 1:e=zU(null,e,o,t,r);break e;case 11:e=BU(null,e,o,t,r);break e;case 14:e=UU(null,e,o,ma(o.type,t),n,r);break e}throw Error(fe(306,o,""))}return e;case 0:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:ma(n,o),uP(t,e,n,o,r);case 1:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:ma(n,o),zU(t,e,n,o,r);case 3:if(WU(e),n=e.updateQueue,t===null||n===null)throw Error(fe(282));if(n=e.pendingProps,o=e.memoizedState,o=o!==null?o.element:null,tz(t,e),mg(e,n,null,r),n=e.memoizedState.element,n===o)Pk(),e=Ji(t,e,r);else{if(o=e.stateNode,(a=o.hydrate)&&(su=ip(e.stateNode.containerInfo.firstChild),Yi=e,a=Ka=!0),a){if(t=o.mutableSourceEagerHydrationData,t!=null)for(o=0;o{"use strict";function Nz(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Nz)}catch(t){console.error(t)}}Nz(),Az.exports=Dz()});var $=_((JVe,Tg)=>{"use strict";function Fle(t){return t&&t.__esModule?t:{default:t}}Tg.exports=Fle,Tg.exports.__esModule=!0,Tg.exports.default=Tg.exports});var Go=_((XVe,Qi)=>{"use strict";function f1(t){"@babel/helpers - typeof";return Qi.exports=f1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qi.exports.__esModule=!0,Qi.exports.default=Qi.exports,f1(t)}Qi.exports=f1,Qi.exports.__esModule=!0,Qi.exports.default=Qi.exports});var Ne=_((ZVe,wg)=>{"use strict";var qle=Go().default;function Mz(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return(Mz=function(o){return o?r:e})(t)}function jle(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||qle(t)!="object"&&typeof t!="function")return{default:t};var r=Mz(e);if(r&&r.has(t))return r.get(t);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&{}.hasOwnProperty.call(t,a)){var i=o?Object.getOwnPropertyDescriptor(t,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=t[a]}return n.default=t,r&&r.set(t,n),n}wg.exports=jle,wg.exports.__esModule=!0,wg.exports.default=wg.exports});var g0=_(m1=>{"use strict";Object.defineProperty(m1,"__esModule",{value:!0});m1.default=Lle;function Lle(t,e){return function(){return null}}});var We=_((e7e,es)=>{"use strict";function h1(){return es.exports=h1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{"use strict";var Fz=$();Object.defineProperty(y0,"__esModule",{value:!0});y0.isPlainObject=v0;y0.default=qz;var Ble=Fz(We()),Ule=Fz(Go());function v0(t){return t&&(0,Ule.default)(t)==="object"&&t.constructor===Object}function qz(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},n=r.clone?(0,Ble.default)({},t):t;return v0(t)&&v0(e)&&Object.keys(e).forEach(function(o){o!=="__proto__"&&(v0(e[o])&&o in t?n[o]=qz(t[o],e[o],r):n[o]=e[o])}),n}});var Bz=_((r7e,Lz)=>{"use strict";var zle="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Lz.exports=zle});var $z=_((n7e,Wz)=>{"use strict";var Wle=Bz();function Uz(){}function zz(){}zz.resetWarningCache=Uz;Wz.exports=function(){function t(n,o,a,i,s,u){if(u!==Wle){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}t.isRequired=t;function e(){return t}var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:zz,resetWarningCache:Uz};return r.PropTypes=r,r}});var je=_((i7e,Hz)=>{"use strict";Hz.exports=$z()();var o7e,a7e});var Xz=_(_0=>{"use strict";var Gz=$();Object.defineProperty(_0,"__esModule",{value:!0});_0.default=void 0;var Vz=Gz(je()),Kz=Gz(g0());function $le(t){var e=t.prototype,r=e===void 0?{}:e;return!!r.isReactComponent}function Yz(t,e,r,n,o){var a=t[e],i=o||e;if(a==null)return null;var s,u=a.type;return typeof u=="function"&&!$le(u)&&(s="Did you accidentally use a plain function component for an element instead?"),s!==void 0?new Error("Invalid ".concat(n," `").concat(i,"` supplied to `").concat(r,"`. ")+"Expected an element that can hold a ref. ".concat(s," ")+"For more information see https://mui.com/r/caveat-with-refs-guide"):null}var Jz=(0,Kz.default)(Vz.default.element,Yz);Jz.isRequired=(0,Kz.default)(Vz.default.element.isRequired,Yz);var Hle=Jz;_0.default=Hle});var Zz=_(b0=>{"use strict";var Gle=$(),Vle=Ne();Object.defineProperty(b0,"__esModule",{value:!0});b0.default=void 0;var Kle=Vle(je()),Yle=Gle(g0());function Jle(t){var e=t.prototype,r=e===void 0?{}:e;return!!r.isReactComponent}function Xle(t,e,r,n,o){var a=t[e],i=o||e;if(a==null)return null;var s;return typeof a=="function"&&!Jle(a)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error("Invalid ".concat(n," `").concat(i,"` supplied to `").concat(r,"`. ")+"Expected an element type that can hold a ref. ".concat(s," ")+"For more information see https://mui.com/r/caveat-with-refs-guide"):null}var Zle=(0,Yle.default)(Kle.elementType,Xle);b0.default=Zle});var eW=_((l7e,xg)=>{"use strict";var Qz=Go().default;function Qle(t,e){if(Qz(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Qz(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}xg.exports=Qle,xg.exports.__esModule=!0,xg.exports.default=xg.exports});var g1=_((c7e,Cg)=>{"use strict";var ece=Go().default,tce=eW();function rce(t){var e=tce(t,"string");return ece(e)=="symbol"?e:e+""}Cg.exports=rce,Cg.exports.__esModule=!0,Cg.exports.default=Cg.exports});var po=_((d7e,Ig)=>{"use strict";var nce=g1();function oce(t,e,r){return(e=nce(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Ig.exports=oce,Ig.exports.__esModule=!0,Ig.exports.default=Ig.exports});var nW=_(kg=>{"use strict";var tW=$();Object.defineProperty(kg,"__esModule",{value:!0});kg.default=sce;kg.specialProperty=void 0;var ace=tW(po()),ice=tW(We()),rW="exact-prop: \u200B";kg.specialProperty=rW;function sce(t){return t}});var oW=_(v1=>{"use strict";Object.defineProperty(v1,"__esModule",{value:!0});v1.default=uce;function uce(t){for(var e="https://mui.com/production-error/?code="+t,r=1;r{"use strict";var S0=60103,E0=60106,Pg=60107,Og=60108,Rg=60114,Dg=60109,Ng=60110,Ag=60112,Mg=60113,y1=60120,Fg=60115,qg=60116,aW=60121,iW=60122,sW=60117,uW=60129,lW=60131;typeof Symbol=="function"&&Symbol.for&&(Vr=Symbol.for,S0=Vr("react.element"),E0=Vr("react.portal"),Pg=Vr("react.fragment"),Og=Vr("react.strict_mode"),Rg=Vr("react.profiler"),Dg=Vr("react.provider"),Ng=Vr("react.context"),Ag=Vr("react.forward_ref"),Mg=Vr("react.suspense"),y1=Vr("react.suspense_list"),Fg=Vr("react.memo"),qg=Vr("react.lazy"),aW=Vr("react.block"),iW=Vr("react.server.block"),sW=Vr("react.fundamental"),uW=Vr("react.debug_trace_mode"),lW=Vr("react.legacy_hidden"));var Vr;function ga(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case S0:switch(t=t.type,t){case Pg:case Rg:case Og:case Mg:case y1:return t;default:switch(t=t&&t.$$typeof,t){case Ng:case Ag:case qg:case Fg:case Dg:return t;default:return e}}case E0:return e}}}var lce=Dg,cce=S0,dce=Ag,pce=Pg,fce=qg,mce=Fg,hce=E0,gce=Rg,vce=Og,yce=Mg;jt.ContextConsumer=Ng;jt.ContextProvider=lce;jt.Element=cce;jt.ForwardRef=dce;jt.Fragment=pce;jt.Lazy=fce;jt.Memo=mce;jt.Portal=hce;jt.Profiler=gce;jt.StrictMode=vce;jt.Suspense=yce;jt.isAsyncMode=function(){return!1};jt.isConcurrentMode=function(){return!1};jt.isContextConsumer=function(t){return ga(t)===Ng};jt.isContextProvider=function(t){return ga(t)===Dg};jt.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===S0};jt.isForwardRef=function(t){return ga(t)===Ag};jt.isFragment=function(t){return ga(t)===Pg};jt.isLazy=function(t){return ga(t)===qg};jt.isMemo=function(t){return ga(t)===Fg};jt.isPortal=function(t){return ga(t)===E0};jt.isProfiler=function(t){return ga(t)===Rg};jt.isStrictMode=function(t){return ga(t)===Og};jt.isSuspense=function(t){return ga(t)===Mg};jt.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===Pg||t===Rg||t===uW||t===Og||t===Mg||t===y1||t===lW||typeof t=="object"&&t!==null&&(t.$$typeof===qg||t.$$typeof===Fg||t.$$typeof===Dg||t.$$typeof===Ng||t.$$typeof===Ag||t.$$typeof===sW||t.$$typeof===aW||t[0]===iW)};jt.typeOf=ga});var Sp=_((h7e,dW)=>{"use strict";dW.exports=cW()});var gW=_(T0=>{"use strict";var _ce=$();Object.defineProperty(T0,"__esModule",{value:!0});T0.getFunctionName=mW;T0.default=Ece;var bce=_ce(Go()),pW=Sp(),Sce=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function mW(t){var e="".concat(t).match(Sce),r=e&&e[1];return r||""}function hW(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return t.displayName||t.name||mW(t)||e}function fW(t,e,r){var n=hW(e);return t.displayName||(n!==""?"".concat(r,"(").concat(n,")"):r)}function Ece(t){if(t!=null){if(typeof t=="string")return t;if(typeof t=="function")return hW(t,"Component");if((0,bce.default)(t)==="object")switch(t.$$typeof){case pW.ForwardRef:return fW(t,t.render,"ForwardRef");case pW.Memo:return fW(t,t.type,"memo");default:return}}}});var vW=_(_1=>{"use strict";Object.defineProperty(_1,"__esModule",{value:!0});_1.default=Tce;function Tce(t,e,r,n,o){return null;var a,i}});var yW=_(w0=>{"use strict";Object.defineProperty(w0,"__esModule",{value:!0});w0.default=void 0;var wce=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();w0.default=wce});var _W=_(x0=>{"use strict";var xce=$();Object.defineProperty(x0,"__esModule",{value:!0});x0.default=void 0;var b1=xce(je()),Cce=b1.default.oneOfType([b1.default.func,b1.default.object]),Ice=Cce;x0.default=Ice});var at=_(Vo=>{"use strict";var Ja=$();Object.defineProperty(Vo,"__esModule",{value:!0});Object.defineProperty(Vo,"chainPropTypes",{enumerable:!0,get:function(){return kce.default}});Object.defineProperty(Vo,"deepmerge",{enumerable:!0,get:function(){return Pce.default}});Object.defineProperty(Vo,"elementAcceptingRef",{enumerable:!0,get:function(){return Oce.default}});Object.defineProperty(Vo,"elementTypeAcceptingRef",{enumerable:!0,get:function(){return Rce.default}});Object.defineProperty(Vo,"exactProp",{enumerable:!0,get:function(){return Dce.default}});Object.defineProperty(Vo,"formatMuiErrorMessage",{enumerable:!0,get:function(){return Nce.default}});Object.defineProperty(Vo,"getDisplayName",{enumerable:!0,get:function(){return Ace.default}});Object.defineProperty(Vo,"HTMLElementType",{enumerable:!0,get:function(){return Mce.default}});Object.defineProperty(Vo,"ponyfillGlobal",{enumerable:!0,get:function(){return Fce.default}});Object.defineProperty(Vo,"refType",{enumerable:!0,get:function(){return qce.default}});var kce=Ja(g0()),Pce=Ja(jz()),Oce=Ja(Xz()),Rce=Ja(Zz()),Dce=Ja(nW()),Nce=Ja(oW()),Ace=Ja(gW()),Mce=Ja(vW()),Fce=Ja(yW()),qce=Ja(_W())});var Ql=_(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.hexToRgb=bW;Kn.rgbToHex=Bce;Kn.hslToRgb=SW;Kn.decomposeColor=ts;Kn.recomposeColor=jg;Kn.getContrastRatio=Uce;Kn.getLuminance=C0;Kn.emphasize=zce;Kn.fade=Wce;Kn.alpha=EW;Kn.darken=TW;Kn.lighten=wW;var jce=at();function S1(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.min(Math.max(e,t),r)}function bW(t){t=t.substr(1);var e=new RegExp(".{1,".concat(t.length>=6?2:1,"}"),"g"),r=t.match(e);return r&&r[0].length===1&&(r=r.map(function(n){return n+n})),r?"rgb".concat(r.length===4?"a":"","(").concat(r.map(function(n,o){return o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3}).join(", "),")"):""}function Lce(t){var e=t.toString(16);return e.length===1?"0".concat(e):e}function Bce(t){if(t.indexOf("#")===0)return t;var e=ts(t),r=e.values;return"#".concat(r.map(function(n){return Lce(n)}).join(""))}function SW(t){t=ts(t);var e=t,r=e.values,n=r[0],o=r[1]/100,a=r[2]/100,i=o*Math.min(a,1-a),s=function(p){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:(p+n/30)%12;return a-i*Math.max(Math.min(d-3,9-d,1),-1)},u="rgb",l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return t.type==="hsla"&&(u+="a",l.push(r[3])),jg({type:u,values:l})}function ts(t){if(t.type)return t;if(t.charAt(0)==="#")return ts(bW(t));var e=t.indexOf("("),r=t.substring(0,e);if(["rgb","rgba","hsl","hsla"].indexOf(r)===-1)throw new Error((0,jce.formatMuiErrorMessage)(3,t));var n=t.substring(e+1,t.length-1).split(",");return n=n.map(function(o){return parseFloat(o)}),{type:r,values:n}}function jg(t){var e=t.type,r=t.values;return e.indexOf("rgb")!==-1?r=r.map(function(n,o){return o<3?parseInt(n,10):n}):e.indexOf("hsl")!==-1&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(e,"(").concat(r.join(", "),")")}function Uce(t,e){var r=C0(t),n=C0(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function C0(t){t=ts(t);var e=t.type==="hsl"?ts(SW(t)).values:t.values;return e=e.map(function(r){return r/=255,r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function zce(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.15;return C0(t)>.5?TW(t,e):wW(t,e)}function Wce(t,e){return EW(t,e)}function EW(t,e){return t=ts(t),e=S1(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.values[3]=e,jg(t)}function TW(t,e){if(t=ts(t),e=S1(e),t.type.indexOf("hsl")!==-1)t.values[2]*=1-e;else if(t.type.indexOf("rgb")!==-1)for(var r=0;r<3;r+=1)t.values[r]*=1-e;return jg(t)}function wW(t,e){if(t=ts(t),e=S1(e),t.type.indexOf("hsl")!==-1)t.values[2]+=(100-t.values[2])*e;else if(t.type.indexOf("rgb")!==-1)for(var r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;return jg(t)}});var E1=_((E7e,Lg)=>{"use strict";function $ce(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;r[n]=t[n]}return r}Lg.exports=$ce,Lg.exports.__esModule=!0,Lg.exports.default=Lg.exports});var ut=_((T7e,Bg)=>{"use strict";var Hce=E1();function Gce(t,e){if(t==null)return{};var r,n,o=Hce(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n{"use strict";var xW=$();Object.defineProperty(Ug,"__esModule",{value:!0});Ug.default=Yce;Ug.keys=void 0;var Vce=xW(We()),Kce=xW(ut()),rs=["xs","sm","md","lg","xl"];Ug.keys=rs;function Yce(t){var e=t.values,r=e===void 0?{xs:0,sm:600,md:960,lg:1280,xl:1920}:e,n=t.unit,o=n===void 0?"px":n,a=t.step,i=a===void 0?5:a,s=(0,Kce.default)(t,["values","unit","step"]);function u(m){var g=typeof r[m]=="number"?r[m]:m;return"@media (min-width:".concat(g).concat(o,")")}function l(m){var g=rs.indexOf(m)+1,v=r[rs[g]];if(g===rs.length)return u("xs");var h=typeof v=="number"&&g>0?v:m;return"@media (max-width:".concat(h-i/100).concat(o,")")}function c(m,g){var v=rs.indexOf(g);return v===rs.length-1?u(m):"@media (min-width:".concat(typeof r[m]=="number"?r[m]:m).concat(o,") and ")+"(max-width:".concat((v!==-1&&typeof r[rs[v+1]]=="number"?r[rs[v+1]]:g)-i/100).concat(o,")")}function p(m){return c(m,m)}var d=!1;function f(m){return r[m]}return(0,Vce.default)({keys:rs,values:r,up:u,down:l,between:c,only:p,width:f},s)}});var kW=_(x1=>{"use strict";var IW=$();Object.defineProperty(x1,"__esModule",{value:!0});x1.default=Jce;var T1=IW(po()),w1=IW(We());function Jce(t,e,r){var n;return(0,w1.default)({gutters:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:",` paddingLeft: theme.spacing(2), paddingRight: theme.spacing(2), [theme.breakpoints.up('sm')]: { @@ -14,53 +14,53 @@ Add a component higher in the tree to provide a loading paddingRight: theme.spacing(3), }, `].join(` -`)),(0,w1.default)({paddingLeft:e(2),paddingRight:e(2)},a,(0,T1.default)({},t.up("sm"),(0,w1.default)({paddingLeft:e(3),paddingRight:e(3)},a[t.up("sm")])))},toolbar:(n={minHeight:56},(0,T1.default)(n,"".concat(t.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,T1.default)(n,t.up("sm"),{minHeight:64}),n)},r)}});var PW=_(I0=>{"use strict";Object.defineProperty(I0,"__esModule",{value:!0});I0.default=void 0;var Xce={black:"#000",white:"#fff"},Zce=Xce;I0.default=Zce});var OW=_(k0=>{"use strict";Object.defineProperty(k0,"__esModule",{value:!0});k0.default=void 0;var Qce={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},ede=Qce;k0.default=ede});var RW=_(P0=>{"use strict";Object.defineProperty(P0,"__esModule",{value:!0});P0.default=void 0;var tde={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},rde=tde;P0.default=rde});var DW=_(O0=>{"use strict";Object.defineProperty(O0,"__esModule",{value:!0});O0.default=void 0;var nde={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},ode=nde;O0.default=ode});var NW=_(R0=>{"use strict";Object.defineProperty(R0,"__esModule",{value:!0});R0.default=void 0;var ade={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ide=ade;R0.default=ide});var C1=_(D0=>{"use strict";Object.defineProperty(D0,"__esModule",{value:!0});D0.default=void 0;var sde={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ude=sde;D0.default=ude});var AW=_(N0=>{"use strict";Object.defineProperty(N0,"__esModule",{value:!0});N0.default=void 0;var lde={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},cde=lde;N0.default=cde});var MW=_(A0=>{"use strict";Object.defineProperty(A0,"__esModule",{value:!0});A0.default=void 0;var dde={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},fde=dde;A0.default=fde});var LW=_(ec=>{"use strict";var Xa=$();Object.defineProperty(ec,"__esModule",{value:!0});ec.default=mde;ec.dark=ec.light=void 0;var FW=Xa(We()),pde=Xa(ut()),qW=at(),F0=Xa(PW()),M1=Xa(OW()),I1=Xa(RW()),k1=Xa(DW()),P1=Xa(NW()),O1=Xa(C1()),R1=Xa(AW()),D1=Xa(MW()),N1=Ql(),A1={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:F0.default.white,default:M1.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};ec.light=A1;var M0={text:{primary:F0.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:M1.default[800],default:"#303030"},action:{active:F0.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};ec.dark=M0;function jW(t,e,r,n){var o=n.light||n,a=n.dark||n*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=(0,N1.lighten)(t.main,o):e==="dark"&&(t.dark=(0,N1.darken)(t.main,a)))}function mde(t){var e=t.primary,r=e===void 0?{light:I1.default[300],main:I1.default[500],dark:I1.default[700]}:e,n=t.secondary,o=n===void 0?{light:k1.default.A200,main:k1.default.A400,dark:k1.default.A700}:n,a=t.error,i=a===void 0?{light:P1.default[300],main:P1.default[500],dark:P1.default[700]}:a,s=t.warning,u=s===void 0?{light:O1.default[300],main:O1.default[500],dark:O1.default[700]}:s,l=t.info,c=l===void 0?{light:R1.default[300],main:R1.default[500],dark:R1.default[700]}:l,f=t.success,d=f===void 0?{light:D1.default[300],main:D1.default[500],dark:D1.default[700]}:f,p=t.type,m=p===void 0?"light":p,g=t.contrastThreshold,v=g===void 0?3:g,h=t.tonalOffset,y=h===void 0?.2:h,b=(0,pde.default)(t,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function E(P){var k=(0,N1.getContrastRatio)(P,M0.text.primary)>=v?M0.text.primary:A1.text.primary;if(0)var O;return k}var w=function(k){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:500,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:300,U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:700;if(k=(0,FW.default)({},k),!k.main&&k[O]&&(k.main=k[O]),!k.main)throw new Error((0,qW.formatMuiErrorMessage)(4,O));if(typeof k.main!="string")throw new Error(_formatMuiErrorMessage(5,JSON.stringify(k.main)));return jW(k,"light",F,y),jW(k,"dark",U,y),k.contrastText||(k.contrastText=E(k.main)),k},S={dark:M0,light:A1},C=(0,qW.deepmerge)((0,FW.default)({common:F0.default,type:m,primary:w(r),secondary:w(o,"A400","A200","A700"),error:w(i),warning:w(u),info:w(c),success:w(d),grey:M1.default,contrastThreshold:v,getContrastText:E,augmentColor:w,tonalOffset:y},S[m]),b);return C}});var HW=_(F1=>{"use strict";var WW=$();Object.defineProperty(F1,"__esModule",{value:!0});F1.default=yde;var BW=WW(We()),hde=WW(ut()),gde=at();function $W(t){return Math.round(t*1e5)/1e5}function vde(t){return $W(t)}var UW={textTransform:"uppercase"},zW='"Roboto", "Helvetica", "Arial", sans-serif';function yde(t,e){var r=typeof e=="function"?e(t):e,n=r.fontFamily,o=n===void 0?zW:n,a=r.fontSize,i=a===void 0?14:a,s=r.fontWeightLight,u=s===void 0?300:s,l=r.fontWeightRegular,c=l===void 0?400:l,f=r.fontWeightMedium,d=f===void 0?500:f,p=r.fontWeightBold,m=p===void 0?700:p,g=r.htmlFontSize,v=g===void 0?16:g,h=r.allVariants,y=r.pxToRem,b=(0,hde.default)(r,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),E=i/14,w=y||function(P){return"".concat(P/v*E,"rem")},S=function(k,O,F,U,J){return(0,BW.default)({fontFamily:o,fontWeight:k,fontSize:w(O),lineHeight:F},o===zW?{letterSpacing:"".concat($W(U/O),"em")}:{},J,h)},C={h1:S(u,96,1.167,-1.5),h2:S(u,60,1.2,-.5),h3:S(c,48,1.167,0),h4:S(c,34,1.235,.25),h5:S(c,24,1.334,0),h6:S(d,20,1.6,.15),subtitle1:S(c,16,1.75,.15),subtitle2:S(d,14,1.57,.1),body1:S(c,16,1.5,.15),body2:S(c,14,1.43,.15),button:S(d,14,1.75,.4,UW),caption:S(c,12,1.66,.4),overline:S(c,12,2.66,1,UW)};return(0,gde.deepmerge)((0,BW.default)({htmlFontSize:v,pxToRem:w,round:vde,fontFamily:o,fontSize:i,fontWeightLight:u,fontWeightRegular:c,fontWeightMedium:d,fontWeightBold:m},C),b,{clone:!1})}});var GW=_(q0=>{"use strict";Object.defineProperty(q0,"__esModule",{value:!0});q0.default=void 0;var _de=.2,bde=.14,Sde=.12;function tr(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(_de,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(bde,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(Sde,")")].join(",")}var Ede=["none",tr(0,2,1,-1,0,1,1,0,0,1,3,0),tr(0,3,1,-2,0,2,2,0,0,1,5,0),tr(0,3,3,-2,0,3,4,0,0,1,8,0),tr(0,2,4,-1,0,4,5,0,0,1,10,0),tr(0,3,5,-1,0,5,8,0,0,1,14,0),tr(0,3,5,-1,0,6,10,0,0,1,18,0),tr(0,4,5,-2,0,7,10,1,0,2,16,1),tr(0,5,5,-3,0,8,10,1,0,3,14,2),tr(0,5,6,-3,0,9,12,1,0,3,16,2),tr(0,6,6,-3,0,10,14,1,0,4,18,3),tr(0,6,7,-4,0,11,15,1,0,4,20,3),tr(0,7,8,-4,0,12,17,2,0,5,22,4),tr(0,7,8,-4,0,13,19,2,0,5,24,4),tr(0,7,9,-4,0,14,21,2,0,5,26,4),tr(0,8,9,-5,0,15,22,2,0,6,28,5),tr(0,8,10,-5,0,16,24,2,0,6,30,5),tr(0,8,11,-5,0,17,26,2,0,6,32,5),tr(0,9,11,-5,0,18,28,2,0,7,34,6),tr(0,9,12,-6,0,19,29,2,0,7,36,6),tr(0,10,13,-6,0,20,31,3,0,8,38,7),tr(0,10,13,-6,0,21,33,3,0,8,40,7),tr(0,10,14,-6,0,22,35,3,0,8,42,7),tr(0,11,14,-7,0,23,36,3,0,9,44,8),tr(0,11,15,-7,0,24,38,3,0,9,46,8)],Tde=Ede;q0.default=Tde});var VW=_(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0});j0.default=void 0;var wde={borderRadius:4},xde=wde;j0.default=xde});var q1=_(L0=>{"use strict";var Cde=$();Object.defineProperty(L0,"__esModule",{value:!0});L0.default=void 0;var j7e=Cde(je()),Ide={},kde=Ide;L0.default=kde});var j1=_((B7e,zg)=>{"use strict";function Pde(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r{"use strict";var Ode=j1();function Rde(t){if(Array.isArray(t))return Ode(t)}Wg.exports=Rde,Wg.exports.__esModule=!0,Wg.exports.default=Wg.exports});var YW=_((z7e,$g)=>{"use strict";function Dde(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}$g.exports=Dde,$g.exports.__esModule=!0,$g.exports.default=$g.exports});var L1=_((W7e,Hg)=>{"use strict";var JW=j1();function Nde(t,e){if(t){if(typeof t=="string")return JW(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?JW(t,e):void 0}}Hg.exports=Nde,Hg.exports.__esModule=!0,Hg.exports.default=Hg.exports});var XW=_(($7e,Gg)=>{"use strict";function Ade(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}Gg.exports=Ade,Gg.exports.__esModule=!0,Gg.exports.default=Gg.exports});var Tf=_((H7e,Vg)=>{"use strict";var Mde=KW(),Fde=YW(),qde=L1(),jde=XW();function Lde(t){return Mde(t)||Fde(t)||qde(t)||jde()}Vg.exports=Lde,Vg.exports.__esModule=!0,Vg.exports.default=Vg.exports});var Kg=_(B0=>{"use strict";Object.defineProperty(B0,"__esModule",{value:!0});B0.default=void 0;var Bde=at();function Ude(t,e){return e?(0,Bde.deepmerge)(t,e,{clone:!1}):t}var zde=Ude;B0.default=zde});var U0=_(Jg=>{"use strict";var Yg=$();Object.defineProperty(Jg,"__esModule",{value:!0});Jg.handleBreakpoints=Kde;Jg.default=void 0;var Wde=Yg(Tf()),$de=Yg(We()),Hde=Yg(Go()),V7e=Yg(je()),Gde=Yg(Kg()),Vde={xs:0,sm:600,md:960,lg:1280,xl:1920},B1={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Vde[e],"px)")}};function Kde(t,e,r){if(Array.isArray(e)){var n=t.theme.breakpoints||B1;return e.reduce(function(i,s,u){return i[n.up(n.keys[u])]=r(e[u]),i},{})}if((0,Hde.default)(e)==="object"){var o=t.theme.breakpoints||B1;return Object.keys(e).reduce(function(i,s){return i[o.up(s)]=r(e[s]),i},{})}var a=r(e);return a}function Yde(t){var e=function(n){var o=t(n),a=n.theme.breakpoints||B1,i=a.keys.reduce(function(s,u){return n[u]&&(s=s||{},s[a.up(u)]=t((0,$de.default)({theme:n.theme},n[u]))),s},null);return(0,Gde.default)(o,i)};return e.propTypes={},e.filterProps=["xs","sm","md","lg","xl"].concat((0,Wde.default)(t.filterProps)),e}var Jde=Yde;Jg.default=Jde});var va=_(z0=>{"use strict";var QW=$();Object.defineProperty(z0,"__esModule",{value:!0});z0.default=void 0;var Xde=QW(fo()),Y7e=QW(q1()),Zde=U0();function ZW(t,e){return!e||typeof e!="string"?null:e.split(".").reduce(function(r,n){return r&&r[n]?r[n]:null},t)}function Qde(t){var e=t.prop,r=t.cssProperty,n=r===void 0?t.prop:r,o=t.themeKey,a=t.transform,i=function(u){if(u[e]==null)return null;var l=u[e],c=u.theme,f=ZW(c,o)||{},d=function(m){var g;return typeof f=="function"?g=f(m):Array.isArray(f)?g=f[m]||m:(g=ZW(f,m)||m,a&&(g=a(g))),n===!1?g:(0,Xde.default)({},n,g)};return(0,Zde.handleBreakpoints)(u,l,d)};return i.propTypes={},i.filterProps=[e],i}var efe=Qde;z0.default=efe});var Za=_(W0=>{"use strict";var e3=$();Object.defineProperty(W0,"__esModule",{value:!0});W0.default=void 0;var X7e=e3(We()),tfe=e3(Kg());function rfe(){for(var t=arguments.length,e=new Array(t),r=0;r{"use strict";var t3=$();Object.defineProperty(Kr,"__esModule",{value:!0});Kr.default=Kr.borderRadius=Kr.borderColor=Kr.borderLeft=Kr.borderBottom=Kr.borderRight=Kr.borderTop=Kr.border=void 0;var tc=t3(va()),ofe=t3(Za());function Xg(t){return typeof t!="number"?t:"".concat(t,"px solid")}var r3=(0,tc.default)({prop:"border",themeKey:"borders",transform:Xg});Kr.border=r3;var n3=(0,tc.default)({prop:"borderTop",themeKey:"borders",transform:Xg});Kr.borderTop=n3;var o3=(0,tc.default)({prop:"borderRight",themeKey:"borders",transform:Xg});Kr.borderRight=o3;var a3=(0,tc.default)({prop:"borderBottom",themeKey:"borders",transform:Xg});Kr.borderBottom=a3;var i3=(0,tc.default)({prop:"borderLeft",themeKey:"borders",transform:Xg});Kr.borderLeft=i3;var s3=(0,tc.default)({prop:"borderColor",themeKey:"palette"});Kr.borderColor=s3;var u3=(0,tc.default)({prop:"borderRadius",themeKey:"shape"});Kr.borderRadius=u3;var afe=(0,ofe.default)(r3,n3,o3,a3,i3,s3,u3),ife=afe;Kr.default=ife});var p3=_(Zg=>{"use strict";var H0=$();Object.defineProperty(Zg,"__esModule",{value:!0});Zg.css=ufe;Zg.default=void 0;var sfe=H0(Tf()),$0=H0(We()),eKe=H0(je()),tKe=at(),c3=H0(Kg());function d3(t,e){var r={};return Object.keys(t).forEach(function(n){e.indexOf(n)===-1&&(r[n]=t[n])}),r}function f3(t){var e=function(n){var o=t(n);return n.css?(0,$0.default)({},(0,c3.default)(o,t((0,$0.default)({theme:n.theme},n.css))),d3(n.css,[t.filterProps])):n.sx?(0,$0.default)({},(0,c3.default)(o,t((0,$0.default)({theme:n.theme},n.sx))),d3(n.sx,[t.filterProps])):o};return e.propTypes={},e.filterProps=["css","sx"].concat((0,sfe.default)(t.filterProps)),e}function ufe(t){return f3(t)}var lfe=f3;Zg.default=lfe});var S3=_(yn=>{"use strict";var m3=$();Object.defineProperty(yn,"__esModule",{value:!0});yn.default=yn.whiteSpace=yn.visibility=yn.textOverflow=yn.overflow=yn.displayRaw=yn.displayPrint=void 0;var wf=m3(va()),cfe=m3(Za()),h3=(0,wf.default)({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}});yn.displayPrint=h3;var g3=(0,wf.default)({prop:"display"});yn.displayRaw=g3;var v3=(0,wf.default)({prop:"overflow"});yn.overflow=v3;var y3=(0,wf.default)({prop:"textOverflow"});yn.textOverflow=y3;var _3=(0,wf.default)({prop:"visibility"});yn.visibility=_3;var b3=(0,wf.default)({prop:"whiteSpace"});yn.whiteSpace=b3;var dfe=(0,cfe.default)(h3,g3,v3,y3,_3,b3);yn.default=dfe});var F3=_(Ct=>{"use strict";var E3=$();Object.defineProperty(Ct,"__esModule",{value:!0});Ct.default=Ct.justifySelf=Ct.justifyItems=Ct.alignSelf=Ct.flexShrink=Ct.flexGrow=Ct.flex=Ct.order=Ct.alignContent=Ct.alignItems=Ct.justifyContent=Ct.flexWrap=Ct.flexDirection=Ct.flexBasis=void 0;var po=E3(va()),ffe=E3(Za()),T3=(0,po.default)({prop:"flexBasis"});Ct.flexBasis=T3;var w3=(0,po.default)({prop:"flexDirection"});Ct.flexDirection=w3;var x3=(0,po.default)({prop:"flexWrap"});Ct.flexWrap=x3;var C3=(0,po.default)({prop:"justifyContent"});Ct.justifyContent=C3;var I3=(0,po.default)({prop:"alignItems"});Ct.alignItems=I3;var k3=(0,po.default)({prop:"alignContent"});Ct.alignContent=k3;var P3=(0,po.default)({prop:"order"});Ct.order=P3;var O3=(0,po.default)({prop:"flex"});Ct.flex=O3;var R3=(0,po.default)({prop:"flexGrow"});Ct.flexGrow=R3;var D3=(0,po.default)({prop:"flexShrink"});Ct.flexShrink=D3;var N3=(0,po.default)({prop:"alignSelf"});Ct.alignSelf=N3;var A3=(0,po.default)({prop:"justifyItems"});Ct.justifyItems=A3;var M3=(0,po.default)({prop:"justifySelf"});Ct.justifySelf=M3;var pfe=(0,ffe.default)(T3,w3,x3,C3,I3,k3,P3,O3,R3,D3,N3,A3,M3),mfe=pfe;Ct.default=mfe});var J3=_(Nt=>{"use strict";var q3=$();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.default=Nt.gridArea=Nt.gridTemplateAreas=Nt.gridTemplateRows=Nt.gridTemplateColumns=Nt.gridAutoRows=Nt.gridAutoColumns=Nt.gridAutoFlow=Nt.gridRow=Nt.gridColumn=Nt.gridRowGap=Nt.gridColumnGap=Nt.gridGap=void 0;var Ko=q3(va()),hfe=q3(Za()),j3=(0,Ko.default)({prop:"gridGap"});Nt.gridGap=j3;var L3=(0,Ko.default)({prop:"gridColumnGap"});Nt.gridColumnGap=L3;var B3=(0,Ko.default)({prop:"gridRowGap"});Nt.gridRowGap=B3;var U3=(0,Ko.default)({prop:"gridColumn"});Nt.gridColumn=U3;var z3=(0,Ko.default)({prop:"gridRow"});Nt.gridRow=z3;var W3=(0,Ko.default)({prop:"gridAutoFlow"});Nt.gridAutoFlow=W3;var $3=(0,Ko.default)({prop:"gridAutoColumns"});Nt.gridAutoColumns=$3;var H3=(0,Ko.default)({prop:"gridAutoRows"});Nt.gridAutoRows=H3;var G3=(0,Ko.default)({prop:"gridTemplateColumns"});Nt.gridTemplateColumns=G3;var V3=(0,Ko.default)({prop:"gridTemplateRows"});Nt.gridTemplateRows=V3;var K3=(0,Ko.default)({prop:"gridTemplateAreas"});Nt.gridTemplateAreas=K3;var Y3=(0,Ko.default)({prop:"gridArea"});Nt.gridArea=Y3;var gfe=(0,hfe.default)(j3,L3,B3,U3,z3,W3,$3,H3,G3,V3,K3,Y3),vfe=gfe;Nt.default=vfe});var t$=_(Tu=>{"use strict";var X3=$();Object.defineProperty(Tu,"__esModule",{value:!0});Tu.default=Tu.bgcolor=Tu.color=void 0;var Z3=X3(va()),yfe=X3(Za()),Q3=(0,Z3.default)({prop:"color",themeKey:"palette"});Tu.color=Q3;var e$=(0,Z3.default)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"});Tu.bgcolor=e$;var _fe=(0,yfe.default)(Q3,e$),bfe=_fe;Tu.default=bfe});var l$=_(_n=>{"use strict";var r$=$();Object.defineProperty(_n,"__esModule",{value:!0});_n.default=_n.left=_n.bottom=_n.right=_n.top=_n.zIndex=_n.position=void 0;var xf=r$(va()),Sfe=r$(Za()),n$=(0,xf.default)({prop:"position"});_n.position=n$;var o$=(0,xf.default)({prop:"zIndex",themeKey:"zIndex"});_n.zIndex=o$;var a$=(0,xf.default)({prop:"top"});_n.top=a$;var i$=(0,xf.default)({prop:"right"});_n.right=i$;var s$=(0,xf.default)({prop:"bottom"});_n.bottom=s$;var u$=(0,xf.default)({prop:"left"});_n.left=u$;var Efe=(0,Sfe.default)(n$,o$,a$,i$,s$,u$);_n.default=Efe});var c$=_(G0=>{"use strict";var Tfe=$();Object.defineProperty(G0,"__esModule",{value:!0});G0.default=void 0;var wfe=Tfe(va()),xfe=(0,wfe.default)({prop:"boxShadow",themeKey:"shadows"}),Cfe=xfe;G0.default=Cfe});var _$=_(fr=>{"use strict";var d$=$();Object.defineProperty(fr,"__esModule",{value:!0});fr.default=fr.boxSizing=fr.sizeHeight=fr.sizeWidth=fr.minHeight=fr.maxHeight=fr.height=fr.minWidth=fr.maxWidth=fr.width=void 0;var ns=d$(va()),Ife=d$(Za());function wu(t){return t<=1?"".concat(t*100,"%"):t}var f$=(0,ns.default)({prop:"width",transform:wu});fr.width=f$;var p$=(0,ns.default)({prop:"maxWidth",transform:wu});fr.maxWidth=p$;var m$=(0,ns.default)({prop:"minWidth",transform:wu});fr.minWidth=m$;var h$=(0,ns.default)({prop:"height",transform:wu});fr.height=h$;var g$=(0,ns.default)({prop:"maxHeight",transform:wu});fr.maxHeight=g$;var v$=(0,ns.default)({prop:"minHeight",transform:wu});fr.minHeight=v$;var kfe=(0,ns.default)({prop:"size",cssProperty:"width",transform:wu});fr.sizeWidth=kfe;var Pfe=(0,ns.default)({prop:"size",cssProperty:"height",transform:wu});fr.sizeHeight=Pfe;var y$=(0,ns.default)({prop:"boxSizing"});fr.boxSizing=y$;var Ofe=(0,Ife.default)(f$,p$,m$,h$,g$,v$,y$),Rfe=Ofe;fr.default=Rfe});var b$=_((cKe,Qg)=>{"use strict";function Dfe(t){if(Array.isArray(t))return t}Qg.exports=Dfe,Qg.exports.__esModule=!0,Qg.exports.default=Qg.exports});var S$=_((dKe,ev)=>{"use strict";function Nfe(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,o,a,i,s=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(c){l=!0,o=c}finally{try{if(!u&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}ev.exports=Nfe,ev.exports.__esModule=!0,ev.exports.default=ev.exports});var E$=_((fKe,tv)=>{"use strict";function Afe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}tv.exports=Afe,tv.exports.__esModule=!0,tv.exports.default=tv.exports});var rc=_((pKe,rv)=>{"use strict";var Mfe=b$(),Ffe=S$(),qfe=L1(),jfe=E$();function Lfe(t,e){return Mfe(t)||Ffe(t,e)||qfe(t,e)||jfe()}rv.exports=Lfe,rv.exports.__esModule=!0,rv.exports.default=rv.exports});var T$=_(U1=>{"use strict";Object.defineProperty(U1,"__esModule",{value:!0});U1.default=Bfe;function Bfe(t){var e={};return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}});var I$=_(nv=>{"use strict";var V0=$();Object.defineProperty(nv,"__esModule",{value:!0});nv.createUnarySpacing=C$;nv.default=void 0;var Ufe=V0(rc()),hKe=V0(q1()),zfe=U0(),Wfe=V0(Kg()),$fe=V0(T$()),Hfe={m:"margin",p:"padding"},Gfe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},w$={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Vfe=(0,$fe.default)(function(t){if(t.length>2)if(w$[t])t=w$[t];else return[t];var e=t.split(""),r=(0,Ufe.default)(e,2),n=r[0],o=r[1],a=Hfe[n],i=Gfe[o]||"";return Array.isArray(i)?i.map(function(s){return a+s}):[a+i]}),x$=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function C$(t){var e=t.spacing||8;return typeof e=="number"?function(r){return e*r}:Array.isArray(e)?function(r){return e[r]}:typeof e=="function"?e:function(){}}function Kfe(t,e){if(typeof e=="string"||e==null)return e;var r=Math.abs(e),n=t(r);return e>=0?n:typeof n=="number"?-n:"-".concat(n)}function Yfe(t,e){return function(r){return t.reduce(function(n,o){return n[o]=Kfe(e,r),n},{})}}function z1(t){var e=t.theme,r=C$(e);return Object.keys(t).map(function(n){if(x$.indexOf(n)===-1)return null;var o=Vfe(n),a=Yfe(o,r),i=t[n];return(0,zfe.handleBreakpoints)(t,i,a)}).reduce(Wfe.default,{})}z1.propTypes={};z1.filterProps=x$;var Jfe=z1;nv.default=Jfe});var F$=_(Yr=>{"use strict";var k$=$();Object.defineProperty(Yr,"__esModule",{value:!0});Yr.default=Yr.textAlign=Yr.lineHeight=Yr.letterSpacing=Yr.fontWeight=Yr.fontStyle=Yr.fontSize=Yr.fontFamily=void 0;var nc=k$(va()),Xfe=k$(Za()),P$=(0,nc.default)({prop:"fontFamily",themeKey:"typography"});Yr.fontFamily=P$;var O$=(0,nc.default)({prop:"fontSize",themeKey:"typography"});Yr.fontSize=O$;var R$=(0,nc.default)({prop:"fontStyle",themeKey:"typography"});Yr.fontStyle=R$;var D$=(0,nc.default)({prop:"fontWeight",themeKey:"typography"});Yr.fontWeight=D$;var N$=(0,nc.default)({prop:"letterSpacing"});Yr.letterSpacing=N$;var A$=(0,nc.default)({prop:"lineHeight"});Yr.lineHeight=A$;var M$=(0,nc.default)({prop:"textAlign"});Yr.textAlign=M$;var Zfe=(0,Xfe.default)(P$,O$,R$,D$,N$,A$,M$),Qfe=Zfe;Yr.default=Qfe});var K0=_(Zt=>{"use strict";var ov=$(),os=Ne();Object.defineProperty(Zt,"__esModule",{value:!0});var as={borders:!0,breakpoints:!0,compose:!0,styleFunctionSx:!0,display:!0,flexbox:!0,grid:!0,palette:!0,positions:!0,shadows:!0,sizing:!0,spacing:!0,style:!0,typography:!0};Object.defineProperty(Zt,"borders",{enumerable:!0,get:function(){return W1.default}});Object.defineProperty(Zt,"breakpoints",{enumerable:!0,get:function(){return epe.default}});Object.defineProperty(Zt,"compose",{enumerable:!0,get:function(){return tpe.default}});Object.defineProperty(Zt,"styleFunctionSx",{enumerable:!0,get:function(){return $1.default}});Object.defineProperty(Zt,"display",{enumerable:!0,get:function(){return rpe.default}});Object.defineProperty(Zt,"flexbox",{enumerable:!0,get:function(){return H1.default}});Object.defineProperty(Zt,"grid",{enumerable:!0,get:function(){return G1.default}});Object.defineProperty(Zt,"palette",{enumerable:!0,get:function(){return V1.default}});Object.defineProperty(Zt,"positions",{enumerable:!0,get:function(){return K1.default}});Object.defineProperty(Zt,"shadows",{enumerable:!0,get:function(){return npe.default}});Object.defineProperty(Zt,"sizing",{enumerable:!0,get:function(){return Y1.default}});Object.defineProperty(Zt,"spacing",{enumerable:!0,get:function(){return J1.default}});Object.defineProperty(Zt,"style",{enumerable:!0,get:function(){return ope.default}});Object.defineProperty(Zt,"typography",{enumerable:!0,get:function(){return X1.default}});var W1=os(l3());Object.keys(W1).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(as,t)||Object.defineProperty(Zt,t,{enumerable:!0,get:function(){return W1[t]}})});var epe=ov(U0()),tpe=ov(Za()),$1=os(p3());Object.keys($1).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(as,t)||Object.defineProperty(Zt,t,{enumerable:!0,get:function(){return $1[t]}})});var rpe=ov(S3()),H1=os(F3());Object.keys(H1).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(as,t)||Object.defineProperty(Zt,t,{enumerable:!0,get:function(){return H1[t]}})});var G1=os(J3());Object.keys(G1).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(as,t)||Object.defineProperty(Zt,t,{enumerable:!0,get:function(){return G1[t]}})});var V1=os(t$());Object.keys(V1).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(as,t)||Object.defineProperty(Zt,t,{enumerable:!0,get:function(){return V1[t]}})});var K1=os(l$());Object.keys(K1).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(as,t)||Object.defineProperty(Zt,t,{enumerable:!0,get:function(){return K1[t]}})});var npe=ov(c$()),Y1=os(_$());Object.keys(Y1).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(as,t)||Object.defineProperty(Zt,t,{enumerable:!0,get:function(){return Y1[t]}})});var J1=os(I$());Object.keys(J1).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(as,t)||Object.defineProperty(Zt,t,{enumerable:!0,get:function(){return J1[t]}})});var ope=ov(va()),X1=os(F$());Object.keys(X1).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(as,t)||Object.defineProperty(Zt,t,{enumerable:!0,get:function(){return X1[t]}})})});var q$=_(Z1=>{"use strict";Object.defineProperty(Z1,"__esModule",{value:!0});Z1.default=ipe;var ape=K0();function ipe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8;if(t.mui)return t;var e=(0,ape.createUnarySpacing)({spacing:t}),r=function(){for(var o=arguments.length,a=new Array(o),i=0;i{"use strict";var spe=$();Object.defineProperty(xu,"__esModule",{value:!0});xu.default=xu.duration=xu.easing=void 0;var upe=spe(ut()),Q1={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};xu.easing=Q1;var eO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};xu.duration=eO;function j$(t){return"".concat(Math.round(t),"ms")}var lpe={easing:Q1,duration:eO,create:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["all"],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.duration,o=n===void 0?eO.standard:n,a=r.easing,i=a===void 0?Q1.easeInOut:a,s=r.delay,u=s===void 0?0:s,l=(0,upe.default)(r,["duration","easing","delay"]);if(0)var c,f;return(Array.isArray(e)?e:[e]).map(function(d){return"".concat(d," ").concat(typeof o=="string"?o:j$(o)," ").concat(i," ").concat(typeof u=="string"?u:j$(u))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var r=e/36;return Math.round((4+15*Math.pow(r,.25)+r/5)*10)}};xu.default=lpe});var tO=_(Y0=>{"use strict";Object.defineProperty(Y0,"__esModule",{value:!0});Y0.default=void 0;var cpe={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},dpe=cpe;Y0.default=dpe});var J0=_(av=>{"use strict";var ya=$();Object.defineProperty(av,"__esModule",{value:!0});av.createMuiTheme=Epe;av.default=void 0;var EKe=ya(fo()),fpe=ya(ut()),L$=at(),ppe=ya(CW()),mpe=ya(kW()),hpe=ya(LW()),gpe=ya(HW()),vpe=ya(GW()),ype=ya(VW()),_pe=ya(q$()),bpe=ya(Cf()),Spe=ya(tO());function B$(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.breakpoints,r=e===void 0?{}:e,n=t.mixins,o=n===void 0?{}:n,a=t.palette,i=a===void 0?{}:a,s=t.spacing,u=t.typography,l=u===void 0?{}:u,c=(0,fpe.default)(t,["breakpoints","mixins","palette","spacing","typography"]),f=(0,hpe.default)(i),d=(0,ppe.default)(r),p=(0,_pe.default)(s),m=(0,L$.deepmerge)({breakpoints:d,direction:"ltr",mixins:(0,mpe.default)(d,p,o),overrides:{},palette:f,props:{},shadows:vpe.default,typography:(0,gpe.default)(f,l),spacing:p,shape:ype.default,transitions:bpe.default,zIndex:Spe.default},c),g=arguments.length,v=new Array(g>1?g-1:0),h=1;h{"use strict";var wpe=$();Object.defineProperty(rO,"__esModule",{value:!0});rO.default=Ipe;var xpe=at(),Cpe=wpe(J0());function Ipe(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n{"use strict";Object.defineProperty(X0,"__esModule",{value:!0});X0.default=void 0;var kpe=typeof Symbol=="function"&&Symbol.for,Ppe=kpe?Symbol.for("mui.nested"):"__THEME_NESTED__";X0.default=Ppe});var z$=_(oO=>{"use strict";var Ope=$();Object.defineProperty(oO,"__esModule",{value:!0});oO.default=Npe;var Rpe=Ope(nO()),Dpe=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Npe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.disableGlobal,r=e===void 0?!1:e,n=t.productionPrefix,o=n===void 0?"jss":n,a=t.seed,i=a===void 0?"":a,s=i===""?"":"".concat(i,"-"),u=0,l=function(){return u+=1,u};return function(c,f){var d=f.options.name;if(d&&d.indexOf("Mui")===0&&!f.options.link&&!r){if(Dpe.indexOf(c.key)!==-1)return"Mui-".concat(c.key);var p="".concat(s).concat(d,"-").concat(c.key);return!f.options.theme[Rpe.default]||i!==""?p:"".concat(p,"-").concat(l())}return"".concat(s).concat(o).concat(l());var m}}});var Z0=_(aO=>{"use strict";var Ape=$();Object.defineProperty(aO,"__esModule",{value:!0});Object.defineProperty(aO,"default",{enumerable:!0,get:function(){return Mpe.default}});var Mpe=Ape(z$())});var W$=_(iO=>{"use strict";Object.defineProperty(iO,"__esModule",{value:!0});iO.default=Fpe;function Fpe(t){return t}});var $$=_(sO=>{"use strict";var qpe=$();Object.defineProperty(sO,"__esModule",{value:!0});Object.defineProperty(sO,"default",{enumerable:!0,get:function(){return jpe.default}});var jpe=qpe(W$())});var H$=_(uO=>{"use strict";Object.defineProperty(uO,"__esModule",{value:!0});uO.default=Lpe;function Lpe(t){var e=t.theme,r=t.name,n=t.props;if(!e||!e.props||!e.props[r])return n;var o=e.props[r],a;for(a in o)n[a]===void 0&&(n[a]=o[a]);return n}});var cO=_(lO=>{"use strict";var Bpe=$();Object.defineProperty(lO,"__esModule",{value:!0});Object.defineProperty(lO,"default",{enumerable:!0,get:function(){return Upe.default}});var Upe=Bpe(H$())});var Q0=_((DKe,G$)=>{"use strict";var zpe=!0;function Wpe(t,e){if(!zpe){if(t)return;var r="Warning: "+e;typeof console!="undefined"&&console.warn(r);try{throw Error(r)}catch(n){}}}G$.exports=Wpe});var dO=_(eS=>{"use strict";Object.defineProperty(eS,"__esModule",{value:!0});var V$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$pe=eS.isBrowser=(typeof window=="undefined"?"undefined":V$(window))==="object"&&(typeof document=="undefined"?"undefined":V$(document))==="object"&&document.nodeType===9;eS.default=$pe});var Yn=_((AKe,iv)=>{"use strict";var Hpe=g1();function K$(t,e){for(var r=0;r{"use strict";function fO(t,e){return is.exports=fO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},is.exports.__esModule=!0,is.exports.default=is.exports,fO(t,e)}is.exports=fO,is.exports.__esModule=!0,is.exports.default=is.exports});var Y$=_((FKe,sv)=>{"use strict";var Vpe=pO();function Kpe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Vpe(t,e)}sv.exports=Kpe,sv.exports.__esModule=!0,sv.exports.default=sv.exports});var lv=_((qKe,uv)=>{"use strict";function Ype(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}uv.exports=Ype,uv.exports.__esModule=!0,uv.exports.default=uv.exports});var Cu=_(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});var Jpe=We(),Xpe=dO(),Zpe=Q0(),Qpe=Yn(),eme=Y$(),tme=lv(),rme=E1();function oc(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var _a=oc(Jpe),nme=oc(Xpe),J$=oc(Zpe),TO=oc(Qpe),i4=oc(eme),X$=oc(tme),ome=oc(rme),ame={}.constructor;function gO(t){if(t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(gO);if(t.constructor!==ame)return t;var e={};for(var r in t)e[r]=gO(t[r]);return e}function wO(t,e,r){t===void 0&&(t="unnamed");var n=r.jss,o=gO(e),a=n.plugins.onCreateRule(t,o,r);return a||(t[0],null)}var Z$=function(e,r){for(var n="",o=0;o<+~=|^:(),"'`\s])/g,Q$=typeof CSS!="undefined"&&CSS.escape,xO=function(t){return Q$?Q$(t):t.replace(ime,"\\$1")},s4=function(){function t(r,n,o){this.type="style",this.isProcessed=!1;var a=o.sheet,i=o.Renderer;this.key=r,this.options=o,this.style=n,a?this.renderer=a.renderer:i&&(this.renderer=new i)}var e=t.prototype;return e.prop=function(n,o,a){if(o===void 0)return this.style[n];var i=a?a.force:!1;if(!i&&this.style[n]===o)return this;var s=o;(!a||a.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(o,n,this));var u=s==null||s===!1,l=n in this.style;if(u&&!l&&!i)return this;var c=u&&l;if(c?delete this.style[n]:this.style[n]=s,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,n):this.renderer.setProperty(this.renderable,n,s),this;var f=this.options.sheet;return f&&f.attached,this},t}(),vO=function(t){i4.default(e,t);function e(n,o,a){var i;i=t.call(this,n,o,a)||this;var s=a.selector,u=a.scoped,l=a.sheet,c=a.generateId;return s?i.selectorText=s:u!==!1&&(i.id=c(X$.default(X$.default(i)),l),i.selectorText="."+xO(i.id)),i}var r=e.prototype;return r.applyTo=function(o){var a=this.renderer;if(a){var i=this.toJSON();for(var s in i)a.setProperty(o,s,i[s])}return this},r.toJSON=function(){var o={};for(var a in this.style){var i=this.style[a];typeof i!="object"?o[a]=i:Array.isArray(i)&&(o[a]=If(i))}return o},r.toString=function(o){var a=this.options.sheet,i=a?a.options.link:!1,s=i?_a.default({},o,{allowEmpty:!0}):o;return dv(this.selectorText,this.style,s)},TO.default(e,[{key:"selector",set:function(o){if(o!==this.selectorText){this.selectorText=o;var a=this.renderer,i=this.renderable;if(!(!i||!a)){var s=a.setSelector(i,o);s||a.replaceRule(i,this)}}},get:function(){return this.selectorText}}]),e}(s4),sme={onCreateRule:function(e,r,n){return e[0]==="@"||n.parent&&n.parent.type==="keyframes"?null:new vO(e,r,n)}},mO={indent:1,children:!0},ume=/@([\w-]+)/,lme=function(){function t(r,n,o){this.type="conditional",this.isProcessed=!1,this.key=r;var a=r.match(ume);this.at=a?a[1]:"unknown",this.query=o.name||"@"+this.at,this.options=o,this.rules=new tS(_a.default({},o,{parent:this}));for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var e=t.prototype;return e.getRule=function(n){return this.rules.get(n)},e.indexOf=function(n){return this.rules.indexOf(n)},e.addRule=function(n,o,a){var i=this.rules.add(n,o,a);return i?(this.options.jss.plugins.onProcessRule(i),i):null},e.replaceRule=function(n,o,a){var i=this.rules.replace(n,o,a);return i&&this.options.jss.plugins.onProcessRule(i),i},e.toString=function(n){n===void 0&&(n=mO);var o=Pf(n),a=o.linebreak;if(n.indent==null&&(n.indent=mO.indent),n.children==null&&(n.children=mO.children),n.children===!1)return this.query+" {}";var i=this.rules.toString(n);return i?this.query+" {"+a+i+a+"}":""},t}(),cme=/@container|@media|@supports\s+/,dme={onCreateRule:function(e,r,n){return cme.test(e)?new lme(e,r,n):null}},hO={indent:1,children:!0},fme=/@keyframes\s+([\w-]+)/,yO=function(){function t(r,n,o){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var a=r.match(fme);a&&a[1]?this.name=a[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=o;var i=o.scoped,s=o.sheet,u=o.generateId;this.id=i===!1?this.name:xO(u(this,s)),this.rules=new tS(_a.default({},o,{parent:this}));for(var l in n)this.rules.add(l,n[l],_a.default({},o,{parent:this}));this.rules.process()}var e=t.prototype;return e.toString=function(n){n===void 0&&(n=hO);var o=Pf(n),a=o.linebreak;if(n.indent==null&&(n.indent=hO.indent),n.children==null&&(n.children=hO.children),n.children===!1)return this.at+" "+this.id+" {}";var i=this.rules.toString(n);return i&&(i=""+a+i+a),this.at+" "+this.id+" {"+i+"}"},t}(),pme=/@keyframes\s+/,mme=/\$([\w-]+)/g,_O=function(e,r){return typeof e=="string"?e.replace(mme,function(n,o){return o in r?r[o]:n}):e},e4=function(e,r,n){var o=e[r],a=_O(o,n);a!==o&&(e[r]=a)},hme={onCreateRule:function(e,r,n){return typeof e=="string"&&pme.test(e)?new yO(e,r,n):null},onProcessStyle:function(e,r,n){return r.type!=="style"||!n||("animation-name"in e&&e4(e,"animation-name",n.keyframes),"animation"in e&&e4(e,"animation",n.keyframes)),e},onChangeValue:function(e,r,n){var o=n.options.sheet;if(!o)return e;switch(r){case"animation":return _O(e,o.keyframes);case"animation-name":return _O(e,o.keyframes);default:return e}}},gme=function(t){i4.default(e,t);function e(){return t.apply(this,arguments)||this}var r=e.prototype;return r.toString=function(o){var a=this.options.sheet,i=a?a.options.link:!1,s=i?_a.default({},o,{allowEmpty:!0}):o;return dv(this.key,this.style,s)},e}(s4),vme={onCreateRule:function(e,r,n){return n.parent&&n.parent.type==="keyframes"?new gme(e,r,n):null}},yme=function(){function t(r,n,o){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=r,this.style=n,this.options=o}var e=t.prototype;return e.toString=function(n){var o=Pf(n),a=o.linebreak;if(Array.isArray(this.style)){for(var i="",s=0;s=this.index){o.push(n);return}for(var i=0;ia){o.splice(i,0,n);return}}},e.reset=function(){this.registry=[]},e.remove=function(n){var o=this.registry.indexOf(n);this.registry.splice(o,1)},e.toString=function(n){for(var o=n===void 0?{}:n,a=o.attached,i=ome.default(o,["attached"]),s=Pf(i),u=s.linebreak,l="",c=0;ckme;var s="",u="";return i&&(i.options.classNamePrefix&&(u=i.options.classNamePrefix),i.options.jss.id!=null&&(s=String(i.options.jss.id))),e.minify?""+(u||"c")+n4+s+r:u+a.key+"-"+n4+(s?"-"+s:"")+"-"+r};return n},c4=function(e){var r;return function(){return r||(r=e()),r}},Pme=function(e,r){try{return e.attributeStyleMap?e.attributeStyleMap.get(r):e.style.getPropertyValue(r)}catch(n){return""}},Ome=function(e,r,n){try{var o=n;if(Array.isArray(n)&&(o=If(n)),e.attributeStyleMap)e.attributeStyleMap.set(r,o);else{var a=o?o.indexOf("!important"):-1,i=a>-1?o.substr(0,a-1):o;e.style.setProperty(r,i,a>-1?"important":"")}}catch(s){return!1}return!0},Rme=function(e,r){try{e.attributeStyleMap?e.attributeStyleMap.delete(r):e.style.removeProperty(r)}catch(n){}},Dme=function(e,r){return e.selectorText=r,e.selectorText===r},d4=c4(function(){return document.querySelector("head")});function Nme(t,e){for(var r=0;re.index&&n.options.insertionPoint===e.insertionPoint)return n}return null}function Ame(t,e){for(var r=t.length-1;r>=0;r--){var n=t[r];if(n.attached&&n.options.insertionPoint===e.insertionPoint)return n}return null}function Mme(t){for(var e=d4(),r=0;r0){var r=Nme(e,t);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=Ame(e,t),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=t.insertionPoint;if(n&&typeof n=="string"){var o=Mme(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}function qme(t,e){var r=e.insertionPoint,n=Fme(e);if(n!==!1&&n.parent){n.parent.insertBefore(t,n.node);return}if(r&&typeof r.nodeType=="number"){var o=r,a=o.parentNode;a&&a.insertBefore(t,o.nextSibling);return}d4().appendChild(t)}var jme=c4(function(){var t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}),o4=function(e,r,n){try{"insertRule"in e?e.insertRule(r,n):"appendRule"in e&&e.appendRule(r)}catch(o){return!1}return e.cssRules[n]},a4=function(e,r){var n=e.cssRules.length;return r===void 0||r>n?n:r},Lme=function(){var e=document.createElement("style");return e.textContent=` -`,e},Bme=function(){function t(r){this.getPropertyValue=Pme,this.setProperty=Ome,this.removeProperty=Rme,this.setSelector=Dme,this.hasInsertedRules=!1,this.cssRules=[],r&&kf.add(r),this.sheet=r;var n=this.sheet?this.sheet.options:{},o=n.media,a=n.meta,i=n.element;this.element=i||Lme(),this.element.setAttribute("data-jss",""),o&&this.element.setAttribute("media",o),a&&this.element.setAttribute("data-meta",a);var s=jme();s&&this.element.setAttribute("nonce",s)}var e=t.prototype;return e.attach=function(){if(!(this.element.parentNode||!this.sheet)){qme(this.element,this.sheet.options);var n=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&n&&(this.hasInsertedRules=!1,this.deploy())}},e.detach=function(){if(this.sheet){var n=this.element.parentNode;n&&n.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=` +`)),(0,w1.default)({paddingLeft:e(2),paddingRight:e(2)},a,(0,T1.default)({},t.up("sm"),(0,w1.default)({paddingLeft:e(3),paddingRight:e(3)},a[t.up("sm")])))},toolbar:(n={minHeight:56},(0,T1.default)(n,"".concat(t.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,T1.default)(n,t.up("sm"),{minHeight:64}),n)},r)}});var PW=_(I0=>{"use strict";Object.defineProperty(I0,"__esModule",{value:!0});I0.default=void 0;var Xce={black:"#000",white:"#fff"},Zce=Xce;I0.default=Zce});var OW=_(k0=>{"use strict";Object.defineProperty(k0,"__esModule",{value:!0});k0.default=void 0;var Qce={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},ede=Qce;k0.default=ede});var RW=_(P0=>{"use strict";Object.defineProperty(P0,"__esModule",{value:!0});P0.default=void 0;var tde={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},rde=tde;P0.default=rde});var DW=_(O0=>{"use strict";Object.defineProperty(O0,"__esModule",{value:!0});O0.default=void 0;var nde={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},ode=nde;O0.default=ode});var NW=_(R0=>{"use strict";Object.defineProperty(R0,"__esModule",{value:!0});R0.default=void 0;var ade={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ide=ade;R0.default=ide});var C1=_(D0=>{"use strict";Object.defineProperty(D0,"__esModule",{value:!0});D0.default=void 0;var sde={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ude=sde;D0.default=ude});var AW=_(N0=>{"use strict";Object.defineProperty(N0,"__esModule",{value:!0});N0.default=void 0;var lde={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},cde=lde;N0.default=cde});var MW=_(A0=>{"use strict";Object.defineProperty(A0,"__esModule",{value:!0});A0.default=void 0;var dde={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},pde=dde;A0.default=pde});var LW=_(ec=>{"use strict";var Xa=$();Object.defineProperty(ec,"__esModule",{value:!0});ec.default=mde;ec.dark=ec.light=void 0;var FW=Xa(We()),fde=Xa(ut()),qW=at(),F0=Xa(PW()),M1=Xa(OW()),I1=Xa(RW()),k1=Xa(DW()),P1=Xa(NW()),O1=Xa(C1()),R1=Xa(AW()),D1=Xa(MW()),N1=Ql(),A1={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:F0.default.white,default:M1.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};ec.light=A1;var M0={text:{primary:F0.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:M1.default[800],default:"#303030"},action:{active:F0.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};ec.dark=M0;function jW(t,e,r,n){var o=n.light||n,a=n.dark||n*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=(0,N1.lighten)(t.main,o):e==="dark"&&(t.dark=(0,N1.darken)(t.main,a)))}function mde(t){var e=t.primary,r=e===void 0?{light:I1.default[300],main:I1.default[500],dark:I1.default[700]}:e,n=t.secondary,o=n===void 0?{light:k1.default.A200,main:k1.default.A400,dark:k1.default.A700}:n,a=t.error,i=a===void 0?{light:P1.default[300],main:P1.default[500],dark:P1.default[700]}:a,s=t.warning,u=s===void 0?{light:O1.default[300],main:O1.default[500],dark:O1.default[700]}:s,l=t.info,c=l===void 0?{light:R1.default[300],main:R1.default[500],dark:R1.default[700]}:l,p=t.success,d=p===void 0?{light:D1.default[300],main:D1.default[500],dark:D1.default[700]}:p,f=t.type,m=f===void 0?"light":f,g=t.contrastThreshold,v=g===void 0?3:g,h=t.tonalOffset,y=h===void 0?.2:h,b=(0,fde.default)(t,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function E(P){var k=(0,N1.getContrastRatio)(P,M0.text.primary)>=v?M0.text.primary:A1.text.primary;if(0)var O;return k}var w=function(k){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:500,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:300,U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:700;if(k=(0,FW.default)({},k),!k.main&&k[O]&&(k.main=k[O]),!k.main)throw new Error((0,qW.formatMuiErrorMessage)(4,O));if(typeof k.main!="string")throw new Error(_formatMuiErrorMessage(5,JSON.stringify(k.main)));return jW(k,"light",F,y),jW(k,"dark",U,y),k.contrastText||(k.contrastText=E(k.main)),k},S={dark:M0,light:A1},C=(0,qW.deepmerge)((0,FW.default)({common:F0.default,type:m,primary:w(r),secondary:w(o,"A400","A200","A700"),error:w(i),warning:w(u),info:w(c),success:w(d),grey:M1.default,contrastThreshold:v,getContrastText:E,augmentColor:w,tonalOffset:y},S[m]),b);return C}});var HW=_(F1=>{"use strict";var WW=$();Object.defineProperty(F1,"__esModule",{value:!0});F1.default=yde;var BW=WW(We()),hde=WW(ut()),gde=at();function $W(t){return Math.round(t*1e5)/1e5}function vde(t){return $W(t)}var UW={textTransform:"uppercase"},zW='"Roboto", "Helvetica", "Arial", sans-serif';function yde(t,e){var r=typeof e=="function"?e(t):e,n=r.fontFamily,o=n===void 0?zW:n,a=r.fontSize,i=a===void 0?14:a,s=r.fontWeightLight,u=s===void 0?300:s,l=r.fontWeightRegular,c=l===void 0?400:l,p=r.fontWeightMedium,d=p===void 0?500:p,f=r.fontWeightBold,m=f===void 0?700:f,g=r.htmlFontSize,v=g===void 0?16:g,h=r.allVariants,y=r.pxToRem,b=(0,hde.default)(r,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),E=i/14,w=y||function(P){return"".concat(P/v*E,"rem")},S=function(k,O,F,U,J){return(0,BW.default)({fontFamily:o,fontWeight:k,fontSize:w(O),lineHeight:F},o===zW?{letterSpacing:"".concat($W(U/O),"em")}:{},J,h)},C={h1:S(u,96,1.167,-1.5),h2:S(u,60,1.2,-.5),h3:S(c,48,1.167,0),h4:S(c,34,1.235,.25),h5:S(c,24,1.334,0),h6:S(d,20,1.6,.15),subtitle1:S(c,16,1.75,.15),subtitle2:S(d,14,1.57,.1),body1:S(c,16,1.5,.15),body2:S(c,14,1.43,.15),button:S(d,14,1.75,.4,UW),caption:S(c,12,1.66,.4),overline:S(c,12,2.66,1,UW)};return(0,gde.deepmerge)((0,BW.default)({htmlFontSize:v,pxToRem:w,round:vde,fontFamily:o,fontSize:i,fontWeightLight:u,fontWeightRegular:c,fontWeightMedium:d,fontWeightBold:m},C),b,{clone:!1})}});var GW=_(q0=>{"use strict";Object.defineProperty(q0,"__esModule",{value:!0});q0.default=void 0;var _de=.2,bde=.14,Sde=.12;function tr(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(_de,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(bde,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(Sde,")")].join(",")}var Ede=["none",tr(0,2,1,-1,0,1,1,0,0,1,3,0),tr(0,3,1,-2,0,2,2,0,0,1,5,0),tr(0,3,3,-2,0,3,4,0,0,1,8,0),tr(0,2,4,-1,0,4,5,0,0,1,10,0),tr(0,3,5,-1,0,5,8,0,0,1,14,0),tr(0,3,5,-1,0,6,10,0,0,1,18,0),tr(0,4,5,-2,0,7,10,1,0,2,16,1),tr(0,5,5,-3,0,8,10,1,0,3,14,2),tr(0,5,6,-3,0,9,12,1,0,3,16,2),tr(0,6,6,-3,0,10,14,1,0,4,18,3),tr(0,6,7,-4,0,11,15,1,0,4,20,3),tr(0,7,8,-4,0,12,17,2,0,5,22,4),tr(0,7,8,-4,0,13,19,2,0,5,24,4),tr(0,7,9,-4,0,14,21,2,0,5,26,4),tr(0,8,9,-5,0,15,22,2,0,6,28,5),tr(0,8,10,-5,0,16,24,2,0,6,30,5),tr(0,8,11,-5,0,17,26,2,0,6,32,5),tr(0,9,11,-5,0,18,28,2,0,7,34,6),tr(0,9,12,-6,0,19,29,2,0,7,36,6),tr(0,10,13,-6,0,20,31,3,0,8,38,7),tr(0,10,13,-6,0,21,33,3,0,8,40,7),tr(0,10,14,-6,0,22,35,3,0,8,42,7),tr(0,11,14,-7,0,23,36,3,0,9,44,8),tr(0,11,15,-7,0,24,38,3,0,9,46,8)],Tde=Ede;q0.default=Tde});var VW=_(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0});j0.default=void 0;var wde={borderRadius:4},xde=wde;j0.default=xde});var q1=_(L0=>{"use strict";var Cde=$();Object.defineProperty(L0,"__esModule",{value:!0});L0.default=void 0;var j7e=Cde(je()),Ide={},kde=Ide;L0.default=kde});var j1=_((B7e,zg)=>{"use strict";function Pde(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r{"use strict";var Ode=j1();function Rde(t){if(Array.isArray(t))return Ode(t)}Wg.exports=Rde,Wg.exports.__esModule=!0,Wg.exports.default=Wg.exports});var YW=_((z7e,$g)=>{"use strict";function Dde(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}$g.exports=Dde,$g.exports.__esModule=!0,$g.exports.default=$g.exports});var L1=_((W7e,Hg)=>{"use strict";var JW=j1();function Nde(t,e){if(t){if(typeof t=="string")return JW(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?JW(t,e):void 0}}Hg.exports=Nde,Hg.exports.__esModule=!0,Hg.exports.default=Hg.exports});var XW=_(($7e,Gg)=>{"use strict";function Ade(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}Gg.exports=Ade,Gg.exports.__esModule=!0,Gg.exports.default=Gg.exports});var Ep=_((H7e,Vg)=>{"use strict";var Mde=KW(),Fde=YW(),qde=L1(),jde=XW();function Lde(t){return Mde(t)||Fde(t)||qde(t)||jde()}Vg.exports=Lde,Vg.exports.__esModule=!0,Vg.exports.default=Vg.exports});var Kg=_(B0=>{"use strict";Object.defineProperty(B0,"__esModule",{value:!0});B0.default=void 0;var Bde=at();function Ude(t,e){return e?(0,Bde.deepmerge)(t,e,{clone:!1}):t}var zde=Ude;B0.default=zde});var U0=_(Jg=>{"use strict";var Yg=$();Object.defineProperty(Jg,"__esModule",{value:!0});Jg.handleBreakpoints=Kde;Jg.default=void 0;var Wde=Yg(Ep()),$de=Yg(We()),Hde=Yg(Go()),V7e=Yg(je()),Gde=Yg(Kg()),Vde={xs:0,sm:600,md:960,lg:1280,xl:1920},B1={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Vde[e],"px)")}};function Kde(t,e,r){if(Array.isArray(e)){var n=t.theme.breakpoints||B1;return e.reduce(function(i,s,u){return i[n.up(n.keys[u])]=r(e[u]),i},{})}if((0,Hde.default)(e)==="object"){var o=t.theme.breakpoints||B1;return Object.keys(e).reduce(function(i,s){return i[o.up(s)]=r(e[s]),i},{})}var a=r(e);return a}function Yde(t){var e=function(n){var o=t(n),a=n.theme.breakpoints||B1,i=a.keys.reduce(function(s,u){return n[u]&&(s=s||{},s[a.up(u)]=t((0,$de.default)({theme:n.theme},n[u]))),s},null);return(0,Gde.default)(o,i)};return e.propTypes={},e.filterProps=["xs","sm","md","lg","xl"].concat((0,Wde.default)(t.filterProps)),e}var Jde=Yde;Jg.default=Jde});var va=_(z0=>{"use strict";var QW=$();Object.defineProperty(z0,"__esModule",{value:!0});z0.default=void 0;var Xde=QW(po()),Y7e=QW(q1()),Zde=U0();function ZW(t,e){return!e||typeof e!="string"?null:e.split(".").reduce(function(r,n){return r&&r[n]?r[n]:null},t)}function Qde(t){var e=t.prop,r=t.cssProperty,n=r===void 0?t.prop:r,o=t.themeKey,a=t.transform,i=function(u){if(u[e]==null)return null;var l=u[e],c=u.theme,p=ZW(c,o)||{},d=function(m){var g;return typeof p=="function"?g=p(m):Array.isArray(p)?g=p[m]||m:(g=ZW(p,m)||m,a&&(g=a(g))),n===!1?g:(0,Xde.default)({},n,g)};return(0,Zde.handleBreakpoints)(u,l,d)};return i.propTypes={},i.filterProps=[e],i}var epe=Qde;z0.default=epe});var Za=_(W0=>{"use strict";var e3=$();Object.defineProperty(W0,"__esModule",{value:!0});W0.default=void 0;var X7e=e3(We()),tpe=e3(Kg());function rpe(){for(var t=arguments.length,e=new Array(t),r=0;r{"use strict";var t3=$();Object.defineProperty(Kr,"__esModule",{value:!0});Kr.default=Kr.borderRadius=Kr.borderColor=Kr.borderLeft=Kr.borderBottom=Kr.borderRight=Kr.borderTop=Kr.border=void 0;var tc=t3(va()),ope=t3(Za());function Xg(t){return typeof t!="number"?t:"".concat(t,"px solid")}var r3=(0,tc.default)({prop:"border",themeKey:"borders",transform:Xg});Kr.border=r3;var n3=(0,tc.default)({prop:"borderTop",themeKey:"borders",transform:Xg});Kr.borderTop=n3;var o3=(0,tc.default)({prop:"borderRight",themeKey:"borders",transform:Xg});Kr.borderRight=o3;var a3=(0,tc.default)({prop:"borderBottom",themeKey:"borders",transform:Xg});Kr.borderBottom=a3;var i3=(0,tc.default)({prop:"borderLeft",themeKey:"borders",transform:Xg});Kr.borderLeft=i3;var s3=(0,tc.default)({prop:"borderColor",themeKey:"palette"});Kr.borderColor=s3;var u3=(0,tc.default)({prop:"borderRadius",themeKey:"shape"});Kr.borderRadius=u3;var ape=(0,ope.default)(r3,n3,o3,a3,i3,s3,u3),ipe=ape;Kr.default=ipe});var f3=_(Zg=>{"use strict";var H0=$();Object.defineProperty(Zg,"__esModule",{value:!0});Zg.css=upe;Zg.default=void 0;var spe=H0(Ep()),$0=H0(We()),eKe=H0(je()),tKe=at(),c3=H0(Kg());function d3(t,e){var r={};return Object.keys(t).forEach(function(n){e.indexOf(n)===-1&&(r[n]=t[n])}),r}function p3(t){var e=function(n){var o=t(n);return n.css?(0,$0.default)({},(0,c3.default)(o,t((0,$0.default)({theme:n.theme},n.css))),d3(n.css,[t.filterProps])):n.sx?(0,$0.default)({},(0,c3.default)(o,t((0,$0.default)({theme:n.theme},n.sx))),d3(n.sx,[t.filterProps])):o};return e.propTypes={},e.filterProps=["css","sx"].concat((0,spe.default)(t.filterProps)),e}function upe(t){return p3(t)}var lpe=p3;Zg.default=lpe});var S3=_(yn=>{"use strict";var m3=$();Object.defineProperty(yn,"__esModule",{value:!0});yn.default=yn.whiteSpace=yn.visibility=yn.textOverflow=yn.overflow=yn.displayRaw=yn.displayPrint=void 0;var Tp=m3(va()),cpe=m3(Za()),h3=(0,Tp.default)({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}});yn.displayPrint=h3;var g3=(0,Tp.default)({prop:"display"});yn.displayRaw=g3;var v3=(0,Tp.default)({prop:"overflow"});yn.overflow=v3;var y3=(0,Tp.default)({prop:"textOverflow"});yn.textOverflow=y3;var _3=(0,Tp.default)({prop:"visibility"});yn.visibility=_3;var b3=(0,Tp.default)({prop:"whiteSpace"});yn.whiteSpace=b3;var dpe=(0,cpe.default)(h3,g3,v3,y3,_3,b3);yn.default=dpe});var F3=_(Ct=>{"use strict";var E3=$();Object.defineProperty(Ct,"__esModule",{value:!0});Ct.default=Ct.justifySelf=Ct.justifyItems=Ct.alignSelf=Ct.flexShrink=Ct.flexGrow=Ct.flex=Ct.order=Ct.alignContent=Ct.alignItems=Ct.justifyContent=Ct.flexWrap=Ct.flexDirection=Ct.flexBasis=void 0;var fo=E3(va()),ppe=E3(Za()),T3=(0,fo.default)({prop:"flexBasis"});Ct.flexBasis=T3;var w3=(0,fo.default)({prop:"flexDirection"});Ct.flexDirection=w3;var x3=(0,fo.default)({prop:"flexWrap"});Ct.flexWrap=x3;var C3=(0,fo.default)({prop:"justifyContent"});Ct.justifyContent=C3;var I3=(0,fo.default)({prop:"alignItems"});Ct.alignItems=I3;var k3=(0,fo.default)({prop:"alignContent"});Ct.alignContent=k3;var P3=(0,fo.default)({prop:"order"});Ct.order=P3;var O3=(0,fo.default)({prop:"flex"});Ct.flex=O3;var R3=(0,fo.default)({prop:"flexGrow"});Ct.flexGrow=R3;var D3=(0,fo.default)({prop:"flexShrink"});Ct.flexShrink=D3;var N3=(0,fo.default)({prop:"alignSelf"});Ct.alignSelf=N3;var A3=(0,fo.default)({prop:"justifyItems"});Ct.justifyItems=A3;var M3=(0,fo.default)({prop:"justifySelf"});Ct.justifySelf=M3;var fpe=(0,ppe.default)(T3,w3,x3,C3,I3,k3,P3,O3,R3,D3,N3,A3,M3),mpe=fpe;Ct.default=mpe});var J3=_(Nt=>{"use strict";var q3=$();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.default=Nt.gridArea=Nt.gridTemplateAreas=Nt.gridTemplateRows=Nt.gridTemplateColumns=Nt.gridAutoRows=Nt.gridAutoColumns=Nt.gridAutoFlow=Nt.gridRow=Nt.gridColumn=Nt.gridRowGap=Nt.gridColumnGap=Nt.gridGap=void 0;var Ko=q3(va()),hpe=q3(Za()),j3=(0,Ko.default)({prop:"gridGap"});Nt.gridGap=j3;var L3=(0,Ko.default)({prop:"gridColumnGap"});Nt.gridColumnGap=L3;var B3=(0,Ko.default)({prop:"gridRowGap"});Nt.gridRowGap=B3;var U3=(0,Ko.default)({prop:"gridColumn"});Nt.gridColumn=U3;var z3=(0,Ko.default)({prop:"gridRow"});Nt.gridRow=z3;var W3=(0,Ko.default)({prop:"gridAutoFlow"});Nt.gridAutoFlow=W3;var $3=(0,Ko.default)({prop:"gridAutoColumns"});Nt.gridAutoColumns=$3;var H3=(0,Ko.default)({prop:"gridAutoRows"});Nt.gridAutoRows=H3;var G3=(0,Ko.default)({prop:"gridTemplateColumns"});Nt.gridTemplateColumns=G3;var V3=(0,Ko.default)({prop:"gridTemplateRows"});Nt.gridTemplateRows=V3;var K3=(0,Ko.default)({prop:"gridTemplateAreas"});Nt.gridTemplateAreas=K3;var Y3=(0,Ko.default)({prop:"gridArea"});Nt.gridArea=Y3;var gpe=(0,hpe.default)(j3,L3,B3,U3,z3,W3,$3,H3,G3,V3,K3,Y3),vpe=gpe;Nt.default=vpe});var t$=_(Tu=>{"use strict";var X3=$();Object.defineProperty(Tu,"__esModule",{value:!0});Tu.default=Tu.bgcolor=Tu.color=void 0;var Z3=X3(va()),ype=X3(Za()),Q3=(0,Z3.default)({prop:"color",themeKey:"palette"});Tu.color=Q3;var e$=(0,Z3.default)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"});Tu.bgcolor=e$;var _pe=(0,ype.default)(Q3,e$),bpe=_pe;Tu.default=bpe});var l$=_(_n=>{"use strict";var r$=$();Object.defineProperty(_n,"__esModule",{value:!0});_n.default=_n.left=_n.bottom=_n.right=_n.top=_n.zIndex=_n.position=void 0;var wp=r$(va()),Spe=r$(Za()),n$=(0,wp.default)({prop:"position"});_n.position=n$;var o$=(0,wp.default)({prop:"zIndex",themeKey:"zIndex"});_n.zIndex=o$;var a$=(0,wp.default)({prop:"top"});_n.top=a$;var i$=(0,wp.default)({prop:"right"});_n.right=i$;var s$=(0,wp.default)({prop:"bottom"});_n.bottom=s$;var u$=(0,wp.default)({prop:"left"});_n.left=u$;var Epe=(0,Spe.default)(n$,o$,a$,i$,s$,u$);_n.default=Epe});var c$=_(G0=>{"use strict";var Tpe=$();Object.defineProperty(G0,"__esModule",{value:!0});G0.default=void 0;var wpe=Tpe(va()),xpe=(0,wpe.default)({prop:"boxShadow",themeKey:"shadows"}),Cpe=xpe;G0.default=Cpe});var _$=_(pr=>{"use strict";var d$=$();Object.defineProperty(pr,"__esModule",{value:!0});pr.default=pr.boxSizing=pr.sizeHeight=pr.sizeWidth=pr.minHeight=pr.maxHeight=pr.height=pr.minWidth=pr.maxWidth=pr.width=void 0;var ns=d$(va()),Ipe=d$(Za());function wu(t){return t<=1?"".concat(t*100,"%"):t}var p$=(0,ns.default)({prop:"width",transform:wu});pr.width=p$;var f$=(0,ns.default)({prop:"maxWidth",transform:wu});pr.maxWidth=f$;var m$=(0,ns.default)({prop:"minWidth",transform:wu});pr.minWidth=m$;var h$=(0,ns.default)({prop:"height",transform:wu});pr.height=h$;var g$=(0,ns.default)({prop:"maxHeight",transform:wu});pr.maxHeight=g$;var v$=(0,ns.default)({prop:"minHeight",transform:wu});pr.minHeight=v$;var kpe=(0,ns.default)({prop:"size",cssProperty:"width",transform:wu});pr.sizeWidth=kpe;var Ppe=(0,ns.default)({prop:"size",cssProperty:"height",transform:wu});pr.sizeHeight=Ppe;var y$=(0,ns.default)({prop:"boxSizing"});pr.boxSizing=y$;var Ope=(0,Ipe.default)(p$,f$,m$,h$,g$,v$,y$),Rpe=Ope;pr.default=Rpe});var b$=_((cKe,Qg)=>{"use strict";function Dpe(t){if(Array.isArray(t))return t}Qg.exports=Dpe,Qg.exports.__esModule=!0,Qg.exports.default=Qg.exports});var S$=_((dKe,ev)=>{"use strict";function Npe(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,o,a,i,s=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(c){l=!0,o=c}finally{try{if(!u&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}ev.exports=Npe,ev.exports.__esModule=!0,ev.exports.default=ev.exports});var E$=_((pKe,tv)=>{"use strict";function Ape(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}tv.exports=Ape,tv.exports.__esModule=!0,tv.exports.default=tv.exports});var rc=_((fKe,rv)=>{"use strict";var Mpe=b$(),Fpe=S$(),qpe=L1(),jpe=E$();function Lpe(t,e){return Mpe(t)||Fpe(t,e)||qpe(t,e)||jpe()}rv.exports=Lpe,rv.exports.__esModule=!0,rv.exports.default=rv.exports});var T$=_(U1=>{"use strict";Object.defineProperty(U1,"__esModule",{value:!0});U1.default=Bpe;function Bpe(t){var e={};return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}});var I$=_(nv=>{"use strict";var V0=$();Object.defineProperty(nv,"__esModule",{value:!0});nv.createUnarySpacing=C$;nv.default=void 0;var Upe=V0(rc()),hKe=V0(q1()),zpe=U0(),Wpe=V0(Kg()),$pe=V0(T$()),Hpe={m:"margin",p:"padding"},Gpe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},w$={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Vpe=(0,$pe.default)(function(t){if(t.length>2)if(w$[t])t=w$[t];else return[t];var e=t.split(""),r=(0,Upe.default)(e,2),n=r[0],o=r[1],a=Hpe[n],i=Gpe[o]||"";return Array.isArray(i)?i.map(function(s){return a+s}):[a+i]}),x$=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function C$(t){var e=t.spacing||8;return typeof e=="number"?function(r){return e*r}:Array.isArray(e)?function(r){return e[r]}:typeof e=="function"?e:function(){}}function Kpe(t,e){if(typeof e=="string"||e==null)return e;var r=Math.abs(e),n=t(r);return e>=0?n:typeof n=="number"?-n:"-".concat(n)}function Ype(t,e){return function(r){return t.reduce(function(n,o){return n[o]=Kpe(e,r),n},{})}}function z1(t){var e=t.theme,r=C$(e);return Object.keys(t).map(function(n){if(x$.indexOf(n)===-1)return null;var o=Vpe(n),a=Ype(o,r),i=t[n];return(0,zpe.handleBreakpoints)(t,i,a)}).reduce(Wpe.default,{})}z1.propTypes={};z1.filterProps=x$;var Jpe=z1;nv.default=Jpe});var F$=_(Yr=>{"use strict";var k$=$();Object.defineProperty(Yr,"__esModule",{value:!0});Yr.default=Yr.textAlign=Yr.lineHeight=Yr.letterSpacing=Yr.fontWeight=Yr.fontStyle=Yr.fontSize=Yr.fontFamily=void 0;var nc=k$(va()),Xpe=k$(Za()),P$=(0,nc.default)({prop:"fontFamily",themeKey:"typography"});Yr.fontFamily=P$;var O$=(0,nc.default)({prop:"fontSize",themeKey:"typography"});Yr.fontSize=O$;var R$=(0,nc.default)({prop:"fontStyle",themeKey:"typography"});Yr.fontStyle=R$;var D$=(0,nc.default)({prop:"fontWeight",themeKey:"typography"});Yr.fontWeight=D$;var N$=(0,nc.default)({prop:"letterSpacing"});Yr.letterSpacing=N$;var A$=(0,nc.default)({prop:"lineHeight"});Yr.lineHeight=A$;var M$=(0,nc.default)({prop:"textAlign"});Yr.textAlign=M$;var Zpe=(0,Xpe.default)(P$,O$,R$,D$,N$,A$,M$),Qpe=Zpe;Yr.default=Qpe});var K0=_(Zt=>{"use strict";var ov=$(),os=Ne();Object.defineProperty(Zt,"__esModule",{value:!0});var as={borders:!0,breakpoints:!0,compose:!0,styleFunctionSx:!0,display:!0,flexbox:!0,grid:!0,palette:!0,positions:!0,shadows:!0,sizing:!0,spacing:!0,style:!0,typography:!0};Object.defineProperty(Zt,"borders",{enumerable:!0,get:function(){return W1.default}});Object.defineProperty(Zt,"breakpoints",{enumerable:!0,get:function(){return efe.default}});Object.defineProperty(Zt,"compose",{enumerable:!0,get:function(){return tfe.default}});Object.defineProperty(Zt,"styleFunctionSx",{enumerable:!0,get:function(){return $1.default}});Object.defineProperty(Zt,"display",{enumerable:!0,get:function(){return rfe.default}});Object.defineProperty(Zt,"flexbox",{enumerable:!0,get:function(){return H1.default}});Object.defineProperty(Zt,"grid",{enumerable:!0,get:function(){return G1.default}});Object.defineProperty(Zt,"palette",{enumerable:!0,get:function(){return V1.default}});Object.defineProperty(Zt,"positions",{enumerable:!0,get:function(){return K1.default}});Object.defineProperty(Zt,"shadows",{enumerable:!0,get:function(){return nfe.default}});Object.defineProperty(Zt,"sizing",{enumerable:!0,get:function(){return Y1.default}});Object.defineProperty(Zt,"spacing",{enumerable:!0,get:function(){return J1.default}});Object.defineProperty(Zt,"style",{enumerable:!0,get:function(){return ofe.default}});Object.defineProperty(Zt,"typography",{enumerable:!0,get:function(){return X1.default}});var W1=os(l3());Object.keys(W1).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(as,t)||Object.defineProperty(Zt,t,{enumerable:!0,get:function(){return W1[t]}})});var efe=ov(U0()),tfe=ov(Za()),$1=os(f3());Object.keys($1).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(as,t)||Object.defineProperty(Zt,t,{enumerable:!0,get:function(){return $1[t]}})});var rfe=ov(S3()),H1=os(F3());Object.keys(H1).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(as,t)||Object.defineProperty(Zt,t,{enumerable:!0,get:function(){return H1[t]}})});var G1=os(J3());Object.keys(G1).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(as,t)||Object.defineProperty(Zt,t,{enumerable:!0,get:function(){return G1[t]}})});var V1=os(t$());Object.keys(V1).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(as,t)||Object.defineProperty(Zt,t,{enumerable:!0,get:function(){return V1[t]}})});var K1=os(l$());Object.keys(K1).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(as,t)||Object.defineProperty(Zt,t,{enumerable:!0,get:function(){return K1[t]}})});var nfe=ov(c$()),Y1=os(_$());Object.keys(Y1).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(as,t)||Object.defineProperty(Zt,t,{enumerable:!0,get:function(){return Y1[t]}})});var J1=os(I$());Object.keys(J1).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(as,t)||Object.defineProperty(Zt,t,{enumerable:!0,get:function(){return J1[t]}})});var ofe=ov(va()),X1=os(F$());Object.keys(X1).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(as,t)||Object.defineProperty(Zt,t,{enumerable:!0,get:function(){return X1[t]}})})});var q$=_(Z1=>{"use strict";Object.defineProperty(Z1,"__esModule",{value:!0});Z1.default=ife;var afe=K0();function ife(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8;if(t.mui)return t;var e=(0,afe.createUnarySpacing)({spacing:t}),r=function(){for(var o=arguments.length,a=new Array(o),i=0;i{"use strict";var sfe=$();Object.defineProperty(xu,"__esModule",{value:!0});xu.default=xu.duration=xu.easing=void 0;var ufe=sfe(ut()),Q1={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};xu.easing=Q1;var eO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};xu.duration=eO;function j$(t){return"".concat(Math.round(t),"ms")}var lfe={easing:Q1,duration:eO,create:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["all"],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.duration,o=n===void 0?eO.standard:n,a=r.easing,i=a===void 0?Q1.easeInOut:a,s=r.delay,u=s===void 0?0:s,l=(0,ufe.default)(r,["duration","easing","delay"]);if(0)var c,p;return(Array.isArray(e)?e:[e]).map(function(d){return"".concat(d," ").concat(typeof o=="string"?o:j$(o)," ").concat(i," ").concat(typeof u=="string"?u:j$(u))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var r=e/36;return Math.round((4+15*Math.pow(r,.25)+r/5)*10)}};xu.default=lfe});var tO=_(Y0=>{"use strict";Object.defineProperty(Y0,"__esModule",{value:!0});Y0.default=void 0;var cfe={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},dfe=cfe;Y0.default=dfe});var J0=_(av=>{"use strict";var ya=$();Object.defineProperty(av,"__esModule",{value:!0});av.createMuiTheme=Efe;av.default=void 0;var EKe=ya(po()),pfe=ya(ut()),L$=at(),ffe=ya(CW()),mfe=ya(kW()),hfe=ya(LW()),gfe=ya(HW()),vfe=ya(GW()),yfe=ya(VW()),_fe=ya(q$()),bfe=ya(xp()),Sfe=ya(tO());function B$(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.breakpoints,r=e===void 0?{}:e,n=t.mixins,o=n===void 0?{}:n,a=t.palette,i=a===void 0?{}:a,s=t.spacing,u=t.typography,l=u===void 0?{}:u,c=(0,pfe.default)(t,["breakpoints","mixins","palette","spacing","typography"]),p=(0,hfe.default)(i),d=(0,ffe.default)(r),f=(0,_fe.default)(s),m=(0,L$.deepmerge)({breakpoints:d,direction:"ltr",mixins:(0,mfe.default)(d,f,o),overrides:{},palette:p,props:{},shadows:vfe.default,typography:(0,gfe.default)(p,l),spacing:f,shape:yfe.default,transitions:bfe.default,zIndex:Sfe.default},c),g=arguments.length,v=new Array(g>1?g-1:0),h=1;h{"use strict";var wfe=$();Object.defineProperty(rO,"__esModule",{value:!0});rO.default=Ife;var xfe=at(),Cfe=wfe(J0());function Ife(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n{"use strict";Object.defineProperty(X0,"__esModule",{value:!0});X0.default=void 0;var kfe=typeof Symbol=="function"&&Symbol.for,Pfe=kfe?Symbol.for("mui.nested"):"__THEME_NESTED__";X0.default=Pfe});var z$=_(oO=>{"use strict";var Ofe=$();Object.defineProperty(oO,"__esModule",{value:!0});oO.default=Nfe;var Rfe=Ofe(nO()),Dfe=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Nfe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.disableGlobal,r=e===void 0?!1:e,n=t.productionPrefix,o=n===void 0?"jss":n,a=t.seed,i=a===void 0?"":a,s=i===""?"":"".concat(i,"-"),u=0,l=function(){return u+=1,u};return function(c,p){var d=p.options.name;if(d&&d.indexOf("Mui")===0&&!p.options.link&&!r){if(Dfe.indexOf(c.key)!==-1)return"Mui-".concat(c.key);var f="".concat(s).concat(d,"-").concat(c.key);return!p.options.theme[Rfe.default]||i!==""?f:"".concat(f,"-").concat(l())}return"".concat(s).concat(o).concat(l());var m}}});var Z0=_(aO=>{"use strict";var Afe=$();Object.defineProperty(aO,"__esModule",{value:!0});Object.defineProperty(aO,"default",{enumerable:!0,get:function(){return Mfe.default}});var Mfe=Afe(z$())});var W$=_(iO=>{"use strict";Object.defineProperty(iO,"__esModule",{value:!0});iO.default=Ffe;function Ffe(t){return t}});var $$=_(sO=>{"use strict";var qfe=$();Object.defineProperty(sO,"__esModule",{value:!0});Object.defineProperty(sO,"default",{enumerable:!0,get:function(){return jfe.default}});var jfe=qfe(W$())});var H$=_(uO=>{"use strict";Object.defineProperty(uO,"__esModule",{value:!0});uO.default=Lfe;function Lfe(t){var e=t.theme,r=t.name,n=t.props;if(!e||!e.props||!e.props[r])return n;var o=e.props[r],a;for(a in o)n[a]===void 0&&(n[a]=o[a]);return n}});var cO=_(lO=>{"use strict";var Bfe=$();Object.defineProperty(lO,"__esModule",{value:!0});Object.defineProperty(lO,"default",{enumerable:!0,get:function(){return Ufe.default}});var Ufe=Bfe(H$())});var Q0=_((DKe,G$)=>{"use strict";var zfe=!0;function Wfe(t,e){if(!zfe){if(t)return;var r="Warning: "+e;typeof console!="undefined"&&console.warn(r);try{throw Error(r)}catch(n){}}}G$.exports=Wfe});var dO=_(eS=>{"use strict";Object.defineProperty(eS,"__esModule",{value:!0});var V$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$fe=eS.isBrowser=(typeof window=="undefined"?"undefined":V$(window))==="object"&&(typeof document=="undefined"?"undefined":V$(document))==="object"&&document.nodeType===9;eS.default=$fe});var Yn=_((AKe,iv)=>{"use strict";var Hfe=g1();function K$(t,e){for(var r=0;r{"use strict";function pO(t,e){return is.exports=pO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},is.exports.__esModule=!0,is.exports.default=is.exports,pO(t,e)}is.exports=pO,is.exports.__esModule=!0,is.exports.default=is.exports});var Y$=_((FKe,sv)=>{"use strict";var Vfe=fO();function Kfe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Vfe(t,e)}sv.exports=Kfe,sv.exports.__esModule=!0,sv.exports.default=sv.exports});var lv=_((qKe,uv)=>{"use strict";function Yfe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}uv.exports=Yfe,uv.exports.__esModule=!0,uv.exports.default=uv.exports});var Cu=_(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});var Jfe=We(),Xfe=dO(),Zfe=Q0(),Qfe=Yn(),eme=Y$(),tme=lv(),rme=E1();function oc(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var _a=oc(Jfe),nme=oc(Xfe),J$=oc(Zfe),TO=oc(Qfe),i4=oc(eme),X$=oc(tme),ome=oc(rme),ame={}.constructor;function gO(t){if(t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(gO);if(t.constructor!==ame)return t;var e={};for(var r in t)e[r]=gO(t[r]);return e}function wO(t,e,r){t===void 0&&(t="unnamed");var n=r.jss,o=gO(e),a=n.plugins.onCreateRule(t,o,r);return a||(t[0],null)}var Z$=function(e,r){for(var n="",o=0;o<+~=|^:(),"'`\s])/g,Q$=typeof CSS!="undefined"&&CSS.escape,xO=function(t){return Q$?Q$(t):t.replace(ime,"\\$1")},s4=function(){function t(r,n,o){this.type="style",this.isProcessed=!1;var a=o.sheet,i=o.Renderer;this.key=r,this.options=o,this.style=n,a?this.renderer=a.renderer:i&&(this.renderer=new i)}var e=t.prototype;return e.prop=function(n,o,a){if(o===void 0)return this.style[n];var i=a?a.force:!1;if(!i&&this.style[n]===o)return this;var s=o;(!a||a.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(o,n,this));var u=s==null||s===!1,l=n in this.style;if(u&&!l&&!i)return this;var c=u&&l;if(c?delete this.style[n]:this.style[n]=s,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,n):this.renderer.setProperty(this.renderable,n,s),this;var p=this.options.sheet;return p&&p.attached,this},t}(),vO=function(t){i4.default(e,t);function e(n,o,a){var i;i=t.call(this,n,o,a)||this;var s=a.selector,u=a.scoped,l=a.sheet,c=a.generateId;return s?i.selectorText=s:u!==!1&&(i.id=c(X$.default(X$.default(i)),l),i.selectorText="."+xO(i.id)),i}var r=e.prototype;return r.applyTo=function(o){var a=this.renderer;if(a){var i=this.toJSON();for(var s in i)a.setProperty(o,s,i[s])}return this},r.toJSON=function(){var o={};for(var a in this.style){var i=this.style[a];typeof i!="object"?o[a]=i:Array.isArray(i)&&(o[a]=Cp(i))}return o},r.toString=function(o){var a=this.options.sheet,i=a?a.options.link:!1,s=i?_a.default({},o,{allowEmpty:!0}):o;return dv(this.selectorText,this.style,s)},TO.default(e,[{key:"selector",set:function(o){if(o!==this.selectorText){this.selectorText=o;var a=this.renderer,i=this.renderable;if(!(!i||!a)){var s=a.setSelector(i,o);s||a.replaceRule(i,this)}}},get:function(){return this.selectorText}}]),e}(s4),sme={onCreateRule:function(e,r,n){return e[0]==="@"||n.parent&&n.parent.type==="keyframes"?null:new vO(e,r,n)}},mO={indent:1,children:!0},ume=/@([\w-]+)/,lme=function(){function t(r,n,o){this.type="conditional",this.isProcessed=!1,this.key=r;var a=r.match(ume);this.at=a?a[1]:"unknown",this.query=o.name||"@"+this.at,this.options=o,this.rules=new tS(_a.default({},o,{parent:this}));for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var e=t.prototype;return e.getRule=function(n){return this.rules.get(n)},e.indexOf=function(n){return this.rules.indexOf(n)},e.addRule=function(n,o,a){var i=this.rules.add(n,o,a);return i?(this.options.jss.plugins.onProcessRule(i),i):null},e.replaceRule=function(n,o,a){var i=this.rules.replace(n,o,a);return i&&this.options.jss.plugins.onProcessRule(i),i},e.toString=function(n){n===void 0&&(n=mO);var o=kp(n),a=o.linebreak;if(n.indent==null&&(n.indent=mO.indent),n.children==null&&(n.children=mO.children),n.children===!1)return this.query+" {}";var i=this.rules.toString(n);return i?this.query+" {"+a+i+a+"}":""},t}(),cme=/@container|@media|@supports\s+/,dme={onCreateRule:function(e,r,n){return cme.test(e)?new lme(e,r,n):null}},hO={indent:1,children:!0},pme=/@keyframes\s+([\w-]+)/,yO=function(){function t(r,n,o){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var a=r.match(pme);a&&a[1]?this.name=a[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=o;var i=o.scoped,s=o.sheet,u=o.generateId;this.id=i===!1?this.name:xO(u(this,s)),this.rules=new tS(_a.default({},o,{parent:this}));for(var l in n)this.rules.add(l,n[l],_a.default({},o,{parent:this}));this.rules.process()}var e=t.prototype;return e.toString=function(n){n===void 0&&(n=hO);var o=kp(n),a=o.linebreak;if(n.indent==null&&(n.indent=hO.indent),n.children==null&&(n.children=hO.children),n.children===!1)return this.at+" "+this.id+" {}";var i=this.rules.toString(n);return i&&(i=""+a+i+a),this.at+" "+this.id+" {"+i+"}"},t}(),fme=/@keyframes\s+/,mme=/\$([\w-]+)/g,_O=function(e,r){return typeof e=="string"?e.replace(mme,function(n,o){return o in r?r[o]:n}):e},e4=function(e,r,n){var o=e[r],a=_O(o,n);a!==o&&(e[r]=a)},hme={onCreateRule:function(e,r,n){return typeof e=="string"&&fme.test(e)?new yO(e,r,n):null},onProcessStyle:function(e,r,n){return r.type!=="style"||!n||("animation-name"in e&&e4(e,"animation-name",n.keyframes),"animation"in e&&e4(e,"animation",n.keyframes)),e},onChangeValue:function(e,r,n){var o=n.options.sheet;if(!o)return e;switch(r){case"animation":return _O(e,o.keyframes);case"animation-name":return _O(e,o.keyframes);default:return e}}},gme=function(t){i4.default(e,t);function e(){return t.apply(this,arguments)||this}var r=e.prototype;return r.toString=function(o){var a=this.options.sheet,i=a?a.options.link:!1,s=i?_a.default({},o,{allowEmpty:!0}):o;return dv(this.key,this.style,s)},e}(s4),vme={onCreateRule:function(e,r,n){return n.parent&&n.parent.type==="keyframes"?new gme(e,r,n):null}},yme=function(){function t(r,n,o){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=r,this.style=n,this.options=o}var e=t.prototype;return e.toString=function(n){var o=kp(n),a=o.linebreak;if(Array.isArray(this.style)){for(var i="",s=0;s=this.index){o.push(n);return}for(var i=0;ia){o.splice(i,0,n);return}}},e.reset=function(){this.registry=[]},e.remove=function(n){var o=this.registry.indexOf(n);this.registry.splice(o,1)},e.toString=function(n){for(var o=n===void 0?{}:n,a=o.attached,i=ome.default(o,["attached"]),s=kp(i),u=s.linebreak,l="",c=0;ckme;var s="",u="";return i&&(i.options.classNamePrefix&&(u=i.options.classNamePrefix),i.options.jss.id!=null&&(s=String(i.options.jss.id))),e.minify?""+(u||"c")+n4+s+r:u+a.key+"-"+n4+(s?"-"+s:"")+"-"+r};return n},c4=function(e){var r;return function(){return r||(r=e()),r}},Pme=function(e,r){try{return e.attributeStyleMap?e.attributeStyleMap.get(r):e.style.getPropertyValue(r)}catch(n){return""}},Ome=function(e,r,n){try{var o=n;if(Array.isArray(n)&&(o=Cp(n)),e.attributeStyleMap)e.attributeStyleMap.set(r,o);else{var a=o?o.indexOf("!important"):-1,i=a>-1?o.substr(0,a-1):o;e.style.setProperty(r,i,a>-1?"important":"")}}catch(s){return!1}return!0},Rme=function(e,r){try{e.attributeStyleMap?e.attributeStyleMap.delete(r):e.style.removeProperty(r)}catch(n){}},Dme=function(e,r){return e.selectorText=r,e.selectorText===r},d4=c4(function(){return document.querySelector("head")});function Nme(t,e){for(var r=0;re.index&&n.options.insertionPoint===e.insertionPoint)return n}return null}function Ame(t,e){for(var r=t.length-1;r>=0;r--){var n=t[r];if(n.attached&&n.options.insertionPoint===e.insertionPoint)return n}return null}function Mme(t){for(var e=d4(),r=0;r0){var r=Nme(e,t);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=Ame(e,t),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=t.insertionPoint;if(n&&typeof n=="string"){var o=Mme(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}function qme(t,e){var r=e.insertionPoint,n=Fme(e);if(n!==!1&&n.parent){n.parent.insertBefore(t,n.node);return}if(r&&typeof r.nodeType=="number"){var o=r,a=o.parentNode;a&&a.insertBefore(t,o.nextSibling);return}d4().appendChild(t)}var jme=c4(function(){var t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}),o4=function(e,r,n){try{"insertRule"in e?e.insertRule(r,n):"appendRule"in e&&e.appendRule(r)}catch(o){return!1}return e.cssRules[n]},a4=function(e,r){var n=e.cssRules.length;return r===void 0||r>n?n:r},Lme=function(){var e=document.createElement("style");return e.textContent=` +`,e},Bme=function(){function t(r){this.getPropertyValue=Pme,this.setProperty=Ome,this.removeProperty=Rme,this.setSelector=Dme,this.hasInsertedRules=!1,this.cssRules=[],r&&Ip.add(r),this.sheet=r;var n=this.sheet?this.sheet.options:{},o=n.media,a=n.meta,i=n.element;this.element=i||Lme(),this.element.setAttribute("data-jss",""),o&&this.element.setAttribute("media",o),a&&this.element.setAttribute("data-meta",a);var s=jme();s&&this.element.setAttribute("nonce",s)}var e=t.prototype;return e.attach=function(){if(!(this.element.parentNode||!this.sheet)){qme(this.element,this.sheet.options);var n=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&n&&(this.hasInsertedRules=!1,this.deploy())}},e.detach=function(){if(this.sheet){var n=this.element.parentNode;n&&n.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=` `)}},e.deploy=function(){var n=this.sheet;if(n){if(n.options.link){this.insertRules(n.rules);return}this.element.textContent=` `+n.toString()+` -`}},e.insertRules=function(n,o){for(var a=0;a0&&(o.refs--,o.refs===0&&o.sheet.detach()):J$.default(!1,"SheetsManager: can't find sheet to unmanage")},TO.default(t,[{key:"size",get:function(){return this.length}}]),t}(),$me=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function p4(t){var e=null;for(var r in t){var n=t[r],o=typeof n;if(o==="function")e||(e={}),e[r]=n;else if(o==="object"&&n!==null&&!Array.isArray(n)){var a=p4(n);a&&(e||(e={}),e[r]=a)}}return e}var Hme=f4();mo.RuleList=tS;mo.SheetsManager=Wme;mo.SheetsRegistry=l4;mo.create=f4;mo.createGenerateId=EO;mo.createRule=wO;mo.default=Hme;mo.getDynamicStyles=p4;mo.hasCSSTOMSupport=$me;mo.sheets=kf;mo.toCssValue=If});var h4=_(kO=>{"use strict";Object.defineProperty(kO,"__esModule",{value:!0});var LKe=Q0(),Gme=Cu(),m4=Date.now(),CO="fnValues"+m4,IO="fnStyle"+ ++m4,Vme=function(){return{onCreateRule:function(r,n,o){if(typeof n!="function")return null;var a=Gme.createRule(r,{},o);return a[IO]=n,a},onProcessStyle:function(r,n){if(CO in n||IO in n)return r;var o={};for(var a in r){var i=r[a];typeof i=="function"&&(delete r[a],o[a]=i)}return n[CO]=o,r},onUpdate:function(r,n,o,a){var i=n,s=i[IO];if(s&&(i.style=s(r)||{},0))for(var u in i.style);var l=i[CO];if(l)for(var c in l)i.prop(c,l[c](r),a)}}};kO.default=Vme});var v4=_(OO=>{"use strict";Object.defineProperty(OO,"__esModule",{value:!0});var Kme=We(),Yme=Cu();function Jme(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var rS=Jme(Kme),Iu="@global",PO="@global ",Xme=function(){function t(r,n,o){this.type="global",this.at=Iu,this.isProcessed=!1,this.key=r,this.options=o,this.rules=new Yme.RuleList(rS.default({},o,{parent:this}));for(var a in n)this.rules.add(a,n[a]);this.rules.process()}var e=t.prototype;return e.getRule=function(n){return this.rules.get(n)},e.addRule=function(n,o,a){var i=this.rules.add(n,o,a);return i&&this.options.jss.plugins.onProcessRule(i),i},e.replaceRule=function(n,o,a){var i=this.rules.replace(n,o,a);return i&&this.options.jss.plugins.onProcessRule(i),i},e.indexOf=function(n){return this.rules.indexOf(n)},e.toString=function(n){return this.rules.toString(n)},t}(),Zme=function(){function t(r,n,o){this.type="global",this.at=Iu,this.isProcessed=!1,this.key=r,this.options=o;var a=r.substr(PO.length);this.rule=o.jss.createRule(a,n,rS.default({},o,{parent:this}))}var e=t.prototype;return e.toString=function(n){return this.rule?this.rule.toString(n):""},t}(),Qme=/\s*,\s*/g;function g4(t,e){for(var r=t.split(Qme),n="",o=0;o{"use strict";Object.defineProperty(RO,"__esModule",{value:!0});var nhe=We(),zKe=Q0();function ohe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var nS=ohe(nhe),y4=/\s*,\s*/g,ahe=/&/g,ihe=/\$([\w-]+)/g;function she(){function t(o,a){return function(i,s){var u=o.getRule(s)||a&&a.getRule(s);return u?u.selector:s}}function e(o,a){for(var i=a.split(y4),s=o.split(y4),u="",l=0;l{"use strict";var uhe=/[A-Z]/g,lhe=/^ms-/,DO={};function che(t){return"-"+t.toLowerCase()}function dhe(t){if(DO.hasOwnProperty(t))return DO[t];var e=t.replace(uhe,che);return DO[t]=lhe.test(e)?"-"+e:e}b4.exports=dhe});var T4=_(NO=>{"use strict";Object.defineProperty(NO,"__esModule",{value:!0});var fhe=S4();function phe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var E4=phe(fhe);function oS(t){var e={};for(var r in t){var n=r.indexOf("--")===0?r:E4.default(r);e[n]=t[r]}return t.fallbacks&&(Array.isArray(t.fallbacks)?e.fallbacks=t.fallbacks.map(oS):e.fallbacks=oS(t.fallbacks)),e}function mhe(){function t(r){if(Array.isArray(r)){for(var n=0;n{"use strict";Object.defineProperty(MO,"__esModule",{value:!0});var AO=Cu(),te=AO.hasCSSTOMSupport&&CSS?CSS.px:"px",aS=AO.hasCSSTOMSupport&&CSS?CSS.ms:"ms",Of=AO.hasCSSTOMSupport&&CSS?CSS.percent:"%",hhe={"animation-delay":aS,"animation-duration":aS,"background-position":te,"background-position-x":te,"background-position-y":te,"background-size":te,border:te,"border-bottom":te,"border-bottom-left-radius":te,"border-bottom-right-radius":te,"border-bottom-width":te,"border-left":te,"border-left-width":te,"border-radius":te,"border-right":te,"border-right-width":te,"border-top":te,"border-top-left-radius":te,"border-top-right-radius":te,"border-top-width":te,"border-width":te,"border-block":te,"border-block-end":te,"border-block-end-width":te,"border-block-start":te,"border-block-start-width":te,"border-block-width":te,"border-inline":te,"border-inline-end":te,"border-inline-end-width":te,"border-inline-start":te,"border-inline-start-width":te,"border-inline-width":te,"border-start-start-radius":te,"border-start-end-radius":te,"border-end-start-radius":te,"border-end-end-radius":te,margin:te,"margin-bottom":te,"margin-left":te,"margin-right":te,"margin-top":te,"margin-block":te,"margin-block-end":te,"margin-block-start":te,"margin-inline":te,"margin-inline-end":te,"margin-inline-start":te,padding:te,"padding-bottom":te,"padding-left":te,"padding-right":te,"padding-top":te,"padding-block":te,"padding-block-end":te,"padding-block-start":te,"padding-inline":te,"padding-inline-end":te,"padding-inline-start":te,"mask-position-x":te,"mask-position-y":te,"mask-size":te,height:te,width:te,"min-height":te,"max-height":te,"min-width":te,"max-width":te,bottom:te,left:te,top:te,right:te,inset:te,"inset-block":te,"inset-block-end":te,"inset-block-start":te,"inset-inline":te,"inset-inline-end":te,"inset-inline-start":te,"box-shadow":te,"text-shadow":te,"column-gap":te,"column-rule":te,"column-rule-width":te,"column-width":te,"font-size":te,"font-size-delta":te,"letter-spacing":te,"text-decoration-thickness":te,"text-indent":te,"text-stroke":te,"text-stroke-width":te,"word-spacing":te,motion:te,"motion-offset":te,outline:te,"outline-offset":te,"outline-width":te,perspective:te,"perspective-origin-x":Of,"perspective-origin-y":Of,"transform-origin":Of,"transform-origin-x":Of,"transform-origin-y":Of,"transform-origin-z":Of,"transition-delay":aS,"transition-duration":aS,"vertical-align":te,"flex-basis":te,"shape-margin":te,size:te,gap:te,grid:te,"grid-gap":te,"row-gap":te,"grid-row-gap":te,"grid-column-gap":te,"grid-template-rows":te,"grid-template-columns":te,"grid-auto-rows":te,"grid-auto-columns":te,"box-shadow-x":te,"box-shadow-y":te,"box-shadow-blur":te,"box-shadow-spread":te,"font-line-height":te,"text-shadow-x":te,"text-shadow-y":te,"text-shadow-blur":te};function w4(t){var e=/(-[a-z])/g,r=function(i){return i[1].toUpperCase()},n={};for(var o in t)n[o]=t[o],n[o.replace(e,r)]=t[o];return n}var ghe=w4(hhe);function fv(t,e,r){if(e==null)return e;if(Array.isArray(e))for(var n=0;n{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});function P4(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var dS=P4(dO()),yhe=P4(Tf()),pv="",FO="",O4="",R4="",_he=dS&&"ontouchstart"in document.documentElement;if(dS){iS={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},C4=document.createElement("p"),sS=C4.style,I4="Transform";for(uS in iS)if(uS+I4 in sS){pv=uS,FO=iS[uS];break}pv==="Webkit"&&"msHyphens"in sS&&(pv="ms",FO=iS.ms,R4="edge"),pv==="Webkit"&&"-apple-trailing-word"in sS&&(O4="apple")}var iS,C4,sS,I4,uS,Ye={js:pv,css:FO,vendor:O4,browser:R4,isTouch:_he};function bhe(t){return t[1]==="-"||Ye.js==="ms"?t:"@"+Ye.css+"keyframes"+t.substr(10)}var She={noPrefill:["appearance"],supportedProperty:function(e){return e!=="appearance"?!1:Ye.js==="ms"?"-webkit-"+e:Ye.css+e}},Ehe={noPrefill:["color-adjust"],supportedProperty:function(e){return e!=="color-adjust"?!1:Ye.js==="Webkit"?Ye.css+"print-"+e:e}},The=/[-\s]+(.)?/g;function whe(t,e){return e?e.toUpperCase():""}function jO(t){return t.replace(The,whe)}function Pu(t){return jO("-"+t)}var xhe={noPrefill:["mask"],supportedProperty:function(e,r){if(!/^mask/.test(e))return!1;if(Ye.js==="Webkit"){var n="mask-image";if(jO(n)in r)return e;if(Ye.js+Pu(n)in r)return Ye.css+e}return e}},Che={noPrefill:["text-orientation"],supportedProperty:function(e){return e!=="text-orientation"?!1:Ye.vendor==="apple"&&!Ye.isTouch?Ye.css+e:e}},Ihe={noPrefill:["transform"],supportedProperty:function(e,r,n){return e!=="transform"?!1:n.transform?e:Ye.css+e}},khe={noPrefill:["transition"],supportedProperty:function(e,r,n){return e!=="transition"?!1:n.transition?e:Ye.css+e}},Phe={noPrefill:["writing-mode"],supportedProperty:function(e){return e!=="writing-mode"?!1:Ye.js==="Webkit"||Ye.js==="ms"&&Ye.browser!=="edge"?Ye.css+e:e}},Ohe={noPrefill:["user-select"],supportedProperty:function(e){return e!=="user-select"?!1:Ye.js==="Moz"||Ye.js==="ms"||Ye.vendor==="apple"?Ye.css+e:e}},Rhe={supportedProperty:function(e,r){if(!/^break-/.test(e))return!1;if(Ye.js==="Webkit"){var n="WebkitColumn"+Pu(e);return n in r?Ye.css+"column-"+e:!1}if(Ye.js==="Moz"){var o="page"+Pu(e);return o in r?"page-"+e:!1}return!1}},Dhe={supportedProperty:function(e,r){if(!/^(border|margin|padding)-inline/.test(e))return!1;if(Ye.js==="Moz")return e;var n=e.replace("-inline","");return Ye.js+Pu(n)in r?Ye.css+n:!1}},Nhe={supportedProperty:function(e,r){return jO(e)in r?e:!1}},Ahe={supportedProperty:function(e,r){var n=Pu(e);return e[0]==="-"||e[0]==="-"&&e[1]==="-"?e:Ye.js+n in r?Ye.css+e:Ye.js!=="Webkit"&&"Webkit"+n in r?"-webkit-"+e:!1}},Mhe={supportedProperty:function(e){return e.substring(0,11)!=="scroll-snap"?!1:Ye.js==="ms"?""+Ye.css+e:e}},Fhe={supportedProperty:function(e){return e!=="overscroll-behavior"?!1:Ye.js==="ms"?Ye.css+"scroll-chaining":e}},qhe={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},jhe={supportedProperty:function(e,r){var n=qhe[e];return n&&Ye.js+Pu(n)in r?Ye.css+n:!1}},D4={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Lhe=Object.keys(D4),Bhe=function(e){return Ye.css+e},Uhe={supportedProperty:function(e,r,n){var o=n.multiple;if(Lhe.indexOf(e)>-1){var a=D4[e];if(!Array.isArray(a))return Ye.js+Pu(a)in r?Ye.css+a:!1;if(!o)return!1;for(var i=0;i{"use strict";Object.defineProperty(LO,"__esModule",{value:!0});var fS=A4(),M4=Cu();function Vhe(){function t(o){if(o.type==="keyframes"){var a=o;a.at=fS.supportedKeyframes(a.at)}}function e(o){for(var a in o){var i=o[a];if(a==="fallbacks"&&Array.isArray(i)){o[a]=i.map(e);continue}var s=!1,u=fS.supportedProperty(a);u&&u!==a&&(s=!0);var l=!1,c=fS.supportedValue(u,M4.toCssValue(i));c&&c!==i&&(l=!0),(s||l)&&(s&&delete o[a],o[u||a]=c||i)}return o}function r(o,a){return a.type!=="style"?o:e(o)}function n(o,a){return fS.supportedValue(a,M4.toCssValue(o))||o}return{onProcessRule:t,onProcessStyle:r,onChangeValue:n}}LO.default=Vhe});var q4=_(BO=>{"use strict";Object.defineProperty(BO,"__esModule",{value:!0});function Khe(){var t=function(r,n){return r.length===n.length?r>n?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var o={},a=Object.keys(r).sort(t),i=0;i{"use strict";var ic=$();Object.defineProperty(UO,"__esModule",{value:!0});UO.default=rge;var Yhe=ic(h4()),Jhe=ic(v4()),Xhe=ic(_4()),Zhe=ic(T4()),Qhe=ic(x4()),ege=ic(F4()),tge=ic(q4());function rge(){return{plugins:[(0,Yhe.default)(),(0,Jhe.default)(),(0,Xhe.default)(),(0,Zhe.default)(),(0,Qhe.default)(),typeof window=="undefined"?null:(0,ege.default)(),(0,tge.default)()]}}});var WO=_(zO=>{"use strict";var nge=$();Object.defineProperty(zO,"__esModule",{value:!0});Object.defineProperty(zO,"default",{enumerable:!0,get:function(){return oge.default}});var oge=nge(j4())});var L4=_($O=>{"use strict";var age=$();Object.defineProperty($O,"__esModule",{value:!0});$O.default=sge;var ige=age(We()),ZKe=at();function sge(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.baseClasses,r=t.newClasses,n=t.Component;if(!r)return e;var o=(0,ige.default)({},e);return Object.keys(r).forEach(function(a){r[a]&&(o[a]="".concat(e[a]," ").concat(r[a]))}),o}});var GO=_(HO=>{"use strict";var uge=$();Object.defineProperty(HO,"__esModule",{value:!0});Object.defineProperty(HO,"default",{enumerable:!0,get:function(){return lge.default}});var lge=uge(L4())});var B4=_(pS=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0});pS.default=void 0;var cge={set:function(e,r,n,o){var a=e.get(r);a||(a=new Map,e.set(r,a)),a.set(n,o)},get:function(e,r,n){var o=e.get(r);return o?o.get(n):void 0},delete:function(e,r,n){var o=e.get(r);o.delete(n)}},dge=cge;pS.default=dge});var VO=_(mS=>{"use strict";var fge=$();Object.defineProperty(mS,"__esModule",{value:!0});mS.default=void 0;var pge=fge(z()),mge=pge.default.createContext(null),hge=mge;mS.default=hge});var z4=_(KO=>{"use strict";var U4=$();Object.defineProperty(KO,"__esModule",{value:!0});KO.default=yge;var gge=U4(z()),vge=U4(VO());function yge(){var t=gge.default.useContext(vge.default);return t}});var Nf=_(YO=>{"use strict";var _ge=$();Object.defineProperty(YO,"__esModule",{value:!0});Object.defineProperty(YO,"default",{enumerable:!0,get:function(){return bge.default}});var bge=_ge(z4())});var G4=_(sc=>{"use strict";var Af=$();Object.defineProperty(sc,"__esModule",{value:!0});sc.default=Ige;sc.StylesContext=sc.sheetsManager=void 0;var Sge=Af(We()),Ege=Af(ut()),JO=Af(z()),aYe=Af(je()),iYe=at(),Tge=Af(Z0()),W4=Cu(),$4=Af(WO()),wge=(0,W4.create)((0,$4.default)()),xge=(0,Tge.default)(),H4=new Map;sc.sheetsManager=H4;var Cge={disableGeneration:!1,generateClassName:xge,jss:wge,sheetsCache:null,sheetsManager:H4,sheetsRegistry:null},XO=JO.default.createContext(Cge);sc.StylesContext=XO;var hS;function Ige(t){var e=t.children,r=t.injectFirst,n=r===void 0?!1:r,o=t.disableGeneration,a=o===void 0?!1:o,i=(0,Ege.default)(t,["children","injectFirst","disableGeneration"]),s=JO.default.useContext(XO),u=(0,Sge.default)({},s,{disableGeneration:a},i);if(!u.jss.options.insertionPoint&&n&&typeof window!="undefined"){if(!hS){var l=document.head;hS=document.createComment("mui-inject-first"),l.insertBefore(hS,l.firstChild)}u.jss=(0,W4.create)({plugins:(0,$4.default)().plugins,insertionPoint:hS})}return JO.default.createElement(XO.Provider,{value:u},e)}});var vS=_(gS=>{"use strict";var kge=Ne();Object.defineProperty(gS,"__esModule",{value:!0});var Pge={};Object.defineProperty(gS,"default",{enumerable:!0,get:function(){return ZO.default}});var ZO=kge(G4());Object.keys(ZO).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(Pge,t)||Object.defineProperty(gS,t,{enumerable:!0,get:function(){return ZO[t]}})})});var K4=_(QO=>{"use strict";Object.defineProperty(QO,"__esModule",{value:!0});QO.increment=Oge;var V4=-1e9;function Oge(){return V4+=1,V4}});var eR=_(yS=>{"use strict";Object.defineProperty(yS,"__esModule",{value:!0});yS.default=void 0;var Rge={},Dge=Rge;yS.default=Dge});var Y4=_(rR=>{"use strict";var tR=$();Object.defineProperty(rR,"__esModule",{value:!0});rR.default=Mge;var Nge=tR(We()),dYe=tR(Go()),Age=at(),fYe=tR(eR());function Mge(t){var e=typeof t=="function";return{create:function(n,o){var a;try{a=e?t(n):t}catch(u){throw u}if(!o||!n.overrides||!n.overrides[o])return a;var i=n.overrides[o],s=(0,Nge.default)({},a);return Object.keys(i).forEach(function(u){s[u]=(0,Age.deepmerge)(s[u],i[u])}),s},options:{}}}});var J4=_(nR=>{"use strict";var Fge=$();Object.defineProperty(nR,"__esModule",{value:!0});Object.defineProperty(nR,"default",{enumerable:!0,get:function(){return qge.default}});var qge=Fge(Y4())});var Z4=_(oR=>{"use strict";var Ou=$();Object.defineProperty(oR,"__esModule",{value:!0});oR.default=Jge;var jge=Ou(ut()),_S=Ou(We()),uc=Ou(z()),Lge=Cu(),X4=Ou(GO()),Mf=Ou(B4()),Bge=Ou(Nf()),Uge=vS(),zge=K4(),Wge=Ou(J4()),$ge=Ou(eR());function Hge(t,e,r){var n=t.state,o=t.stylesOptions;if(o.disableGeneration)return e||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var a=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,a=!0),e!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=e,a=!0),a&&(n.cacheClasses.value=(0,X4.default)({baseClasses:n.cacheClasses.lastJSS,newClasses:e,Component:r})),n.cacheClasses.value}function Gge(t,e){var r=t.state,n=t.theme,o=t.stylesOptions,a=t.stylesCreator,i=t.name;if(!o.disableGeneration){var s=Mf.default.get(o.sheetsManager,a,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Mf.default.set(o.sheetsManager,a,n,s));var u=(0,_S.default)({},a.options,o,{theme:n,flip:typeof o.flip=="boolean"?o.flip:n.direction==="rtl"});u.generateId=u.serverGenerateClassName||u.generateClassName;var l=o.sheetsRegistry;if(s.refs===0){var c;o.sheetsCache&&(c=Mf.default.get(o.sheetsCache,a,n));var f=a.create(n,i);c||(c=o.jss.createStyleSheet(f,(0,_S.default)({link:!1},u)),c.attach(),o.sheetsCache&&Mf.default.set(o.sheetsCache,a,n,c)),l&&l.add(c),s.staticSheet=c,s.dynamicStyles=(0,Lge.getDynamicStyles)(f)}if(s.dynamicStyles){var d=o.jss.createStyleSheet(s.dynamicStyles,(0,_S.default)({link:!0},u));d.update(e),d.attach(),r.dynamicSheet=d,r.classes=(0,X4.default)({baseClasses:s.staticSheet.classes,newClasses:d.classes}),l&&l.add(d)}else r.classes=s.staticSheet.classes;s.refs+=1}}function Vge(t,e){var r=t.state;r.dynamicSheet&&r.dynamicSheet.update(e)}function Kge(t){var e=t.state,r=t.theme,n=t.stylesOptions,o=t.stylesCreator;if(!n.disableGeneration){var a=Mf.default.get(n.sheetsManager,o,r);a.refs-=1;var i=n.sheetsRegistry;a.refs===0&&(Mf.default.delete(n.sheetsManager,o,r),n.jss.removeStyleSheet(a.staticSheet),i&&i.remove(a.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),i&&i.remove(e.dynamicSheet))}}function Yge(t,e){var r=uc.default.useRef([]),n,o=uc.default.useMemo(function(){return{}},e);r.current!==o&&(r.current=o,n=t()),uc.default.useEffect(function(){return function(){n&&n()}},[o])}function Jge(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.name,n=e.classNamePrefix,o=e.Component,a=e.defaultTheme,i=a===void 0?$ge.default:a,s=(0,jge.default)(e,["name","classNamePrefix","Component","defaultTheme"]),u=(0,Wge.default)(t),l=r||n||"makeStyles";u.options={index:(0,zge.increment)(),name:r,meta:l,classNamePrefix:l};var c=function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=(0,Bge.default)()||i,m=(0,_S.default)({},uc.default.useContext(Uge.StylesContext),s),g=uc.default.useRef(),v=uc.default.useRef();Yge(function(){var y={name:r,state:{},stylesCreator:u,stylesOptions:m,theme:p};return Gge(y,d),v.current=!1,g.current=y,function(){Kge(y)}},[p,u]),uc.default.useEffect(function(){v.current&&Vge(g.current,d),v.current=!0});var h=Hge(g.current,d.classes,o);return h};return c}});var bS=_(aR=>{"use strict";var Xge=$();Object.defineProperty(aR,"__esModule",{value:!0});Object.defineProperty(aR,"default",{enumerable:!0,get:function(){return Zge.default}});var Zge=Xge(Z4())});var ho=_((vYe,hv)=>{"use strict";function Qge(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}hv.exports=Qge,hv.exports.__esModule=!0,hv.exports.default=hv.exports});var tH=_(SS=>{"use strict";var Ff=$();Object.defineProperty(SS,"__esModule",{value:!0});SS.default=void 0;var Q4=Ff(We()),eve=Ff(ho()),tve=Ff(Yn()),eH=Ff(z()),rve=Cu(),nve=Ff(vS()),ove=Ff(Z0()),ave=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,eve.default)(this,t),this.options=e}return(0,tve.default)(t,[{key:"collect",value:function(r){var n=new Map;this.sheetsRegistry=new rve.SheetsRegistry;var o=(0,ove.default)();return eH.default.createElement(nve.default,(0,Q4.default)({sheetsManager:n,serverGenerateClassName:o,sheetsRegistry:this.sheetsRegistry},this.options),r)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(r){return eH.default.createElement("style",(0,Q4.default)({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},r))}}]),t}();SS.default=ave});var rH=_(iR=>{"use strict";var ive=$();Object.defineProperty(iR,"__esModule",{value:!0});Object.defineProperty(iR,"default",{enumerable:!0,get:function(){return sve.default}});var sve=ive(tH())});var Le=_((bYe,sR)=>{"use strict";function oH(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e{"use strict";var Jr=typeof Symbol=="function"&&Symbol.for,uR=Jr?Symbol.for("react.element"):60103,lR=Jr?Symbol.for("react.portal"):60106,ES=Jr?Symbol.for("react.fragment"):60107,TS=Jr?Symbol.for("react.strict_mode"):60108,wS=Jr?Symbol.for("react.profiler"):60114,xS=Jr?Symbol.for("react.provider"):60109,CS=Jr?Symbol.for("react.context"):60110,cR=Jr?Symbol.for("react.async_mode"):60111,IS=Jr?Symbol.for("react.concurrent_mode"):60111,kS=Jr?Symbol.for("react.forward_ref"):60112,PS=Jr?Symbol.for("react.suspense"):60113,uve=Jr?Symbol.for("react.suspense_list"):60120,OS=Jr?Symbol.for("react.memo"):60115,RS=Jr?Symbol.for("react.lazy"):60116,lve=Jr?Symbol.for("react.block"):60121,cve=Jr?Symbol.for("react.fundamental"):60117,dve=Jr?Symbol.for("react.responder"):60118,fve=Jr?Symbol.for("react.scope"):60119;function go(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case uR:switch(t=t.type,t){case cR:case IS:case ES:case wS:case TS:case PS:return t;default:switch(t=t&&t.$$typeof,t){case CS:case kS:case RS:case OS:case xS:return t;default:return e}}case lR:return e}}}function aH(t){return go(t)===IS}Rt.AsyncMode=cR;Rt.ConcurrentMode=IS;Rt.ContextConsumer=CS;Rt.ContextProvider=xS;Rt.Element=uR;Rt.ForwardRef=kS;Rt.Fragment=ES;Rt.Lazy=RS;Rt.Memo=OS;Rt.Portal=lR;Rt.Profiler=wS;Rt.StrictMode=TS;Rt.Suspense=PS;Rt.isAsyncMode=function(t){return aH(t)||go(t)===cR};Rt.isConcurrentMode=aH;Rt.isContextConsumer=function(t){return go(t)===CS};Rt.isContextProvider=function(t){return go(t)===xS};Rt.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===uR};Rt.isForwardRef=function(t){return go(t)===kS};Rt.isFragment=function(t){return go(t)===ES};Rt.isLazy=function(t){return go(t)===RS};Rt.isMemo=function(t){return go(t)===OS};Rt.isPortal=function(t){return go(t)===lR};Rt.isProfiler=function(t){return go(t)===wS};Rt.isStrictMode=function(t){return go(t)===TS};Rt.isSuspense=function(t){return go(t)===PS};Rt.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===ES||t===IS||t===wS||t===TS||t===PS||t===uve||typeof t=="object"&&t!==null&&(t.$$typeof===RS||t.$$typeof===OS||t.$$typeof===xS||t.$$typeof===CS||t.$$typeof===kS||t.$$typeof===cve||t.$$typeof===dve||t.$$typeof===fve||t.$$typeof===lve)};Rt.typeOf=go});var uH=_((EYe,sH)=>{"use strict";sH.exports=iH()});var gv=_((TYe,mH)=>{"use strict";var dR=uH(),pve={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},mve={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},hve={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fH={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},fR={};fR[dR.ForwardRef]=hve;fR[dR.Memo]=fH;function lH(t){return dR.isMemo(t)?fH:fR[t.$$typeof]||pve}var gve=Object.defineProperty,vve=Object.getOwnPropertyNames,cH=Object.getOwnPropertySymbols,yve=Object.getOwnPropertyDescriptor,_ve=Object.getPrototypeOf,dH=Object.prototype;function pH(t,e,r){if(typeof e!="string"){if(dH){var n=_ve(e);n&&n!==dH&&pH(t,n,r)}var o=vve(e);cH&&(o=o.concat(cH(e)));for(var a=lH(t),i=lH(e),s=0;s{"use strict";var lc=$();Object.defineProperty(mR,"__esModule",{value:!0});mR.default=Tve;var vv=lc(We()),hH=lc(ut()),pR=lc(z()),gH=lc(Le()),wYe=lc(je()),xYe=at(),bve=lc(gv()),Sve=lc(bS());function Eve(t,e){var r={};return Object.keys(t).forEach(function(n){e.indexOf(n)===-1&&(r[n]=t[n])}),r}function Tve(t){var e=function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.name,i=(0,hH.default)(o,["name"]),s=a;if(0&&!a)var u;var l=typeof n=="function"?function(m){return{root:function(v){return n((0,vv.default)({theme:m},v))}}}:{root:n},c=(0,Sve.default)(l,(0,vv.default)({Component:t,name:a||t.displayName,classNamePrefix:s},i)),f,d={};n.filterProps&&(f=n.filterProps,delete n.filterProps),n.propTypes&&(d=n.propTypes,delete n.propTypes);var p=pR.default.forwardRef(function(g,v){var h=g.children,y=g.className,b=g.clone,E=g.component,w=(0,hH.default)(g,["children","className","clone","component"]),S=c(g),C=(0,gH.default)(S.root,y),P=w;if(f&&(P=Eve(P,f)),b)return pR.default.cloneElement(h,(0,vv.default)({className:(0,gH.default)(h.props.className,C)},P));if(typeof h=="function")return h((0,vv.default)({className:C},P));var k=E||t;return pR.default.createElement(k,(0,vv.default)({ref:v,className:C},P),h)});return(0,bve.default)(p,t),p};return e}});var yH=_(hR=>{"use strict";var wve=$();Object.defineProperty(hR,"__esModule",{value:!0});Object.defineProperty(hR,"default",{enumerable:!0,get:function(){return xve.default}});var xve=wve(vH())});var bH=_(DS=>{"use strict";var qf=$();Object.defineProperty(DS,"__esModule",{value:!0});DS.default=void 0;var Cve=qf(We()),_H=qf(z()),kYe=qf(je()),PYe=at(),Ive=qf(VO()),kve=qf(Nf()),Pve=qf(nO());function Ove(t,e){if(typeof e=="function"){var r=e(t);return r}return(0,Cve.default)({},t,e)}function Rve(t){var e=t.children,r=t.theme,n=(0,kve.default)(),o=_H.default.useMemo(function(){var a=n===null?r:Ove(n,r);return a!=null&&(a[Pve.default]=n!==null),a},[r,n]);return _H.default.createElement(Ive.default.Provider,{value:o},e)}var Dve=Rve;DS.default=Dve});var SH=_(gR=>{"use strict";var Nve=$();Object.defineProperty(gR,"__esModule",{value:!0});Object.defineProperty(gR,"default",{enumerable:!0,get:function(){return Ave.default}});var Ave=Nve(bH())});var wH=_(NS=>{"use strict";var Ru=$();Object.defineProperty(NS,"__esModule",{value:!0});NS.default=void 0;var vR=Ru(We()),EH=Ru(ut()),TH=Ru(z()),DYe=Ru(je()),Mve=Ru(gv()),NYe=at(),Fve=Ru(bS()),qve=Ru(cO()),jve=Ru(Nf()),Lve=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(n){var o=r.defaultTheme,a=r.withTheme,i=a===void 0?!1:a,s=r.name,u=(0,EH.default)(r,["defaultTheme","withTheme","name"]),l=s;if(0&&!s)var c;var f=(0,Fve.default)(e,(0,vR.default)({defaultTheme:o,Component:n,name:s||n.displayName,classNamePrefix:l},u)),d=TH.default.forwardRef(function(m,g){var v=m.classes,h=m.innerRef,y=(0,EH.default)(m,["classes","innerRef"]),b=f((0,vR.default)({},n.defaultProps,m)),E,w=y;return(typeof s=="string"||i)&&(E=(0,jve.default)()||o,s&&(w=(0,qve.default)({theme:E,name:s,props:y})),i&&!w.theme&&(w.theme=E)),TH.default.createElement(n,(0,vR.default)({ref:h||g,classes:b},w))});return(0,Mve.default)(d,n),d}},Bve=Lve;NS.default=Bve});var xH=_(yR=>{"use strict";var Uve=$();Object.defineProperty(yR,"__esModule",{value:!0});Object.defineProperty(yR,"default",{enumerable:!0,get:function(){return zve.default}});var zve=Uve(wH())});var kH=_(yv=>{"use strict";var jf=$();Object.defineProperty(yv,"__esModule",{value:!0});yv.withThemeCreator=IH;yv.default=void 0;var Wve=jf(We()),$ve=jf(ut()),CH=jf(z()),FYe=jf(je()),Hve=jf(gv()),qYe=at(),Gve=jf(Nf());function IH(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.defaultTheme,r=function(o){var a=CH.default.forwardRef(function(s,u){var l=s.innerRef,c=(0,$ve.default)(s,["innerRef"]),f=(0,Gve.default)()||e;return CH.default.createElement(o,(0,Wve.default)({theme:f,ref:l||u},c))});return(0,Hve.default)(a,o),a};return r}var Vve=IH(),Kve=Vve;yv.default=Kve});var PH=_(AS=>{"use strict";var Yve=Ne();Object.defineProperty(AS,"__esModule",{value:!0});var Jve={};Object.defineProperty(AS,"default",{enumerable:!0,get:function(){return _R.default}});var _R=Yve(kH());Object.keys(_R).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(Jve,t)||Object.defineProperty(AS,t,{enumerable:!0,get:function(){return _R[t]}})})});var An=_(At=>{"use strict";var vo=Ne();Object.defineProperty(At,"__esModule",{value:!0});var yo={createGenerateClassName:!0,createStyles:!0,getThemeProps:!0,jssPreset:!0,makeStyles:!0,mergeClasses:!0,ServerStyleSheets:!0,styled:!0,StylesProvider:!0,ThemeProvider:!0,useTheme:!0,withStyles:!0,withTheme:!0};Object.defineProperty(At,"createGenerateClassName",{enumerable:!0,get:function(){return bR.default}});Object.defineProperty(At,"createStyles",{enumerable:!0,get:function(){return SR.default}});Object.defineProperty(At,"getThemeProps",{enumerable:!0,get:function(){return ER.default}});Object.defineProperty(At,"jssPreset",{enumerable:!0,get:function(){return TR.default}});Object.defineProperty(At,"makeStyles",{enumerable:!0,get:function(){return wR.default}});Object.defineProperty(At,"mergeClasses",{enumerable:!0,get:function(){return xR.default}});Object.defineProperty(At,"ServerStyleSheets",{enumerable:!0,get:function(){return CR.default}});Object.defineProperty(At,"styled",{enumerable:!0,get:function(){return IR.default}});Object.defineProperty(At,"StylesProvider",{enumerable:!0,get:function(){return kR.default}});Object.defineProperty(At,"ThemeProvider",{enumerable:!0,get:function(){return PR.default}});Object.defineProperty(At,"useTheme",{enumerable:!0,get:function(){return OR.default}});Object.defineProperty(At,"withStyles",{enumerable:!0,get:function(){return RR.default}});Object.defineProperty(At,"withTheme",{enumerable:!0,get:function(){return DR.default}});var BYe=at(),bR=vo(Z0());Object.keys(bR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return bR[t]}})});var SR=vo($$());Object.keys(SR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return SR[t]}})});var ER=vo(cO());Object.keys(ER).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return ER[t]}})});var TR=vo(WO());Object.keys(TR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return TR[t]}})});var wR=vo(bS());Object.keys(wR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return wR[t]}})});var xR=vo(GO());Object.keys(xR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return xR[t]}})});var CR=vo(rH());Object.keys(CR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return CR[t]}})});var IR=vo(yH());Object.keys(IR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return IR[t]}})});var kR=vo(vS());Object.keys(kR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return kR[t]}})});var PR=vo(SH());Object.keys(PR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return PR[t]}})});var OR=vo(Nf());Object.keys(OR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return OR[t]}})});var RR=vo(xH());Object.keys(RR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return RR[t]}})});var DR=vo(PH());Object.keys(DR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return DR[t]}})})});var OH=_(NR=>{"use strict";Object.defineProperty(NR,"__esModule",{value:!0});NR.default=Zve;var Xve=An();function Zve(t){return(0,Xve.createStyles)(t)}});var Lf=_(MS=>{"use strict";var Qve=$();Object.defineProperty(MS,"__esModule",{value:!0});MS.default=void 0;var eye=Qve(J0()),tye=(0,eye.default)(),rye=tye;MS.default=rye});var DH=_(FS=>{"use strict";var RH=$();Object.defineProperty(FS,"__esModule",{value:!0});FS.default=void 0;var nye=RH(We()),oye=An(),aye=RH(Lf());function iye(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,oye.makeStyles)(t,(0,nye.default)({defaultTheme:aye.default},e))}var sye=iye;FS.default=sye});var MH=_(ss=>{"use strict";var uye=$();Object.defineProperty(ss,"__esModule",{value:!0});ss.isUnitless=lye;ss.getUnit=AH;ss.toUnitless=Du;ss.convertLength=cye;ss.alignProperty=dye;ss.fontGrid=fye;ss.responsiveProperty=pye;var NH=uye(fo());function lye(t){return String(parseFloat(t)).length===String(t).length}function AH(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Du(t){return parseFloat(t)}function cye(t){return function(e,r){var n=AH(e);if(n===r)return e;var o=Du(e);if(n!=="px"){if(n==="em")o=Du(e)*Du(t);else if(n==="rem")return o=Du(e)*Du(t),e}var a=o;if(r!=="px")if(r==="em")a=o/Du(t);else if(r==="rem")a=o/Du(t);else return e;return parseFloat(a.toFixed(5))+r}}function dye(t){var e=t.size,r=t.grid,n=e-e%r,o=n+r;return e-n{"use strict";var mye=$();Object.defineProperty(MR,"__esModule",{value:!0});MR.default=gye;var AR=mye(We()),hye=at(),Bf=MH();function gye(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.breakpoints,n=r===void 0?["sm","md","lg"]:r,o=e.disableAlign,a=o===void 0?!1:o,i=e.factor,s=i===void 0?2:i,u=e.variants,l=u===void 0?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:u,c=(0,AR.default)({},t);c.typography=(0,AR.default)({},c.typography);var f=c.typography,d=(0,Bf.convertLength)(f.htmlFontSize),p=n.map(function(m){return c.breakpoints.values[m]});return l.forEach(function(m){var g=f[m],v=parseFloat(d(g.fontSize,"rem"));if(!(v<=1)){var h=v,y=1+(h-1)/s,b=g.lineHeight;if(!(0,Bf.isUnitless)(b)&&!a)throw new Error((0,hye.formatMuiErrorMessage)(6));(0,Bf.isUnitless)(b)||(b=parseFloat(d(b,"rem"))/parseFloat(v));var E=null;a||(E=function(S){return(0,Bf.alignProperty)({size:S,grid:(0,Bf.fontGrid)({pixels:4,lineHeight:b,htmlFontSize:f.htmlFontSize})})}),f[m]=(0,AR.default)({},g,(0,Bf.responsiveProperty)({cssProperty:"fontSize",min:y,max:h,unit:"rem",breakpoints:p,transform:E}))}}),c}});var jH=_(qS=>{"use strict";var qH=$();Object.defineProperty(qS,"__esModule",{value:!0});qS.default=void 0;var vye=qH(We()),yye=An(),_ye=qH(Lf()),bye=function(e){var r=(0,yye.styled)(e);return function(n,o){return r(n,(0,vye.default)({defaultTheme:_ye.default},o))}},Sye=bye;qS.default=Sye});var jS=_(FR=>{"use strict";var LH=$();Object.defineProperty(FR,"__esModule",{value:!0});FR.default=wye;var Eye=An(),KYe=LH(z()),Tye=LH(Lf());function wye(){var t=(0,Eye.useTheme)()||Tye.default;return t}});var Mt=_(LS=>{"use strict";var BH=$();Object.defineProperty(LS,"__esModule",{value:!0});LS.default=void 0;var xye=BH(We()),Cye=An(),Iye=BH(Lf());function kye(t,e){return(0,Cye.withStyles)(t,(0,xye.default)({defaultTheme:Iye.default},e))}var Pye=kye;LS.default=Pye});var UH=_(BS=>{"use strict";var Oye=$();Object.defineProperty(BS,"__esModule",{value:!0});BS.default=void 0;var Rye=An(),Dye=Oye(Lf()),Nye=(0,Rye.withThemeCreator)({defaultTheme:Dye.default}),Aye=Nye;BS.default=Aye});var zf=_(Or=>{"use strict";var Nu=$(),Mye=Ne();Object.defineProperty(Or,"__esModule",{value:!0});var $H={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(Or,"createTheme",{enumerable:!0,get:function(){return HH.default}});Object.defineProperty(Or,"createMuiTheme",{enumerable:!0,get:function(){return HH.createMuiTheme}});Object.defineProperty(Or,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return Fye.default}});Object.defineProperty(Or,"createStyles",{enumerable:!0,get:function(){return qye.default}});Object.defineProperty(Or,"makeStyles",{enumerable:!0,get:function(){return jye.default}});Object.defineProperty(Or,"responsiveFontSizes",{enumerable:!0,get:function(){return Lye.default}});Object.defineProperty(Or,"styled",{enumerable:!0,get:function(){return Bye.default}});Object.defineProperty(Or,"useTheme",{enumerable:!0,get:function(){return Uye.default}});Object.defineProperty(Or,"withStyles",{enumerable:!0,get:function(){return zye.default}});Object.defineProperty(Or,"withTheme",{enumerable:!0,get:function(){return Wye.default}});Object.defineProperty(Or,"createGenerateClassName",{enumerable:!0,get:function(){return Uf.createGenerateClassName}});Object.defineProperty(Or,"jssPreset",{enumerable:!0,get:function(){return Uf.jssPreset}});Object.defineProperty(Or,"ServerStyleSheets",{enumerable:!0,get:function(){return Uf.ServerStyleSheets}});Object.defineProperty(Or,"StylesProvider",{enumerable:!0,get:function(){return Uf.StylesProvider}});Object.defineProperty(Or,"MuiThemeProvider",{enumerable:!0,get:function(){return Uf.ThemeProvider}});Object.defineProperty(Or,"ThemeProvider",{enumerable:!0,get:function(){return Uf.ThemeProvider}});var zH=Ql();Object.keys(zH).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call($H,t)||Object.defineProperty(Or,t,{enumerable:!0,get:function(){return zH[t]}})});var HH=Mye(J0()),Fye=Nu(U$()),qye=Nu(OH()),jye=Nu(DH()),Lye=Nu(FH()),Bye=Nu(jH()),WH=Cf();Object.keys(WH).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call($H,t)||Object.defineProperty(Or,t,{enumerable:!0,get:function(){return WH[t]}})});var Uye=Nu(jS()),zye=Nu(Mt()),Wye=Nu(UH()),Uf=An()});var jR=_(US=>{"use strict";var $ye=$();Object.defineProperty(US,"__esModule",{value:!0});US.default=void 0;var Hye=zf(),Yo=$ye(C1()),qR=11/23/100;function GH(t){var e={r:0,g:0,b:0};if(t.length===7)e.r=parseInt(t.substr(1,2),16),e.g=parseInt(t.substr(3,2),16),e.b=parseInt(t.substr(5,2),16);else if(t.length===4){var r=t.substr(1,1),n=t.substr(2,1),o=t.substr(3,1);e.r=parseInt(r+r,16),e.g=parseInt(n+n,16),e.b=parseInt(o+o,16)}return e}function Gye(t){return"#".concat(Math.round(t.r).toString(16)).concat(Math.round(t.g).toString(16)).concat(Math.round(t.b).toString(16))}function Vye(t,e,r){var n=GH(t),o=GH(e);return n.r+=o.r*(.05+qR*(r-1)),n.g+=o.g*(.05+qR*(r-1)),n.b+=o.b*(.05+qR*(r-1)),Gye(n)}function VH(t,e){for(var r={},n=1;n<=24;n++)r["elevation".concat(n)]={backgroundColor:Vye(t,e,n)};return r}var Kye=function(e){var r;return e==="dark"?r={name:e,palette:{type:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}},overrides:{MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Yo.default[200],"&:hover":{color:Yo.default[100]}}},MuiPaper:VH("#121212","#fff")}}:e==="blue"?r={name:e,palette:{type:"dark",background:{paper:"#151d21",default:"#151d21"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}},overrides:{MuiAppBar:{colorDefault:{backgroundColor:"#2a3135"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Yo.default[200],"&:hover":{color:Yo.default[100]}}},MuiPaper:VH("#151d21","#fff")}}:e==="colored"?r={name:e,palette:{type:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#96fc96"},overrides:{MuiAppBar:{colorDefault:{backgroundColor:"#3399CC"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Yo.default[400],"&:hover":{color:Yo.default[300]}}}}}:e==="PT"?r={name:e,palette:{type:"light",primary:{main:"#0F99DE"},secondary:{main:"#88A536"},expert:"#BD1B24"},overrides:{MuiAppBar:{colorDefault:{backgroundColor:"#0F99DE"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Yo.default[400],"&:hover":{color:Yo.default[300]}}}}}:e==="DX"?r={name:e,palette:{type:"light",primary:{main:"#F5F5F7"},secondary:{main:"#a9a9a9"},expert:"#BD1B24",text:{primary:"#007AFE",secondary:"#007AFE",disabled:"#007AFEAA"}},overrides:{MuiAppBar:{colorDefault:{backgroundColor:"#a9a9a9"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Yo.default[400],"&:hover":{color:Yo.default[300]}}}}}:r={name:e,palette:{type:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#14bb00"},overrides:{MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Yo.default[400],"&:hover":{color:Yo.default[300]}}}}},r.toolbar={height:48},r.saveToolbar={background:r.palette.primary.main,button:{borderRadius:3,height:32}},(0,Hye.createTheme)(r)},Yye=Kye;US.default=Yye});var _o=_(WS=>{"use strict";var LR=$();Object.defineProperty(WS,"__esModule",{value:!0});WS.default=void 0;var Jye=LR(ho()),Xye=LR(Yn()),BR=LR(fo()),zS=function(){function t(){(0,Jye.default)(this,t)}return(0,Xye.default)(t,null,[{key:"setLanguage",value:function(r){r&&(t.lang=r)}},{key:"extendTranslations",value:function(r,n){try{n?(t.translations[n]||console.warn("Used unknown language: ".concat(n)),t.translations[n]=t.translations[n]||{},Object.keys(r).forEach(function(o){t.translations[n][o]?t.translations[n][o]!==r[o]&&console.warn('Translation for word "'.concat(o,'" in "').concat(n,'" was ignored: existing = "').concat(t.translations[n][o],'", new = ').concat(r[o])):t.translations[n][o]=r[o]})):Object.keys(r).forEach(function(o){Object.keys(r[o]).forEach(function(a){t.translations[a]||console.warn("Used unknown language: ".concat(a)),t.translations[a][o]?t.translations[a][o]!==r[o][a]&&console.warn('Translation for word "'.concat(o,'" in "').concat(a,'" was ignored: existing = "').concat(t.translations[a][o],'", new = ').concat(r[o][a])):t.translations[a][o]=r[o][a]})})}catch(o){console.error("Cannot apply translations: ".concat(o))}}},{key:"setTranslations",value:function(r){r&&(t.translations=r)}},{key:"getLanguage",value:function(){return t.lang}},{key:"t",value:function(r){var n=t.translations[t.lang];if(n){var o=n[r];o?r=o:t._disableWarning&&console.log("Translate: ".concat(r))}for(var a=arguments.length,i=new Array(a>1?a-1:0),s=1;s{"use strict";var dc=$();Object.defineProperty(GS,"__esModule",{value:!0});GS.default=void 0;var Qye=dc(rc()),us=dc(Go()),e_e=dc(ho()),t_e=dc(Yn()),HS=dc(fo()),cc=dc(z()),$S=dc(_o()),Qa="material",r_e=["Su","Mo","Tu","We","Th","Fr","Sa"],n_e=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],UR={0:"0x00 - good",1:"0x01 - general problem",2:"0x02 - no connection problem",16:"0x10 - substitute value from controller",32:"0x20 - substitute initial value",64:"0x40 - substitute value from device or instance",128:"0x80 - substitute value from sensor",17:"0x11 - general problem by instance",65:"0x41 - general problem by device",129:"0x81 - general problem by sensor",18:"0x12 - instance not connected",66:"0x42 - device not connected",130:"0x82 - sensor not connected",68:"0x44 - device reports error",132:"0x84 - sensor reports error"},_v=function(){function t(){(0,e_e.default)(this,t)}return(0,t_e.default)(t,null,[{key:"CapitalWords",value:function(r){return(r||"").split(/[\s_]/).filter(function(n){return n}).map(function(n){return n?n[0].toUpperCase()+n.substring(1).toLowerCase():""}).join(" ")}},{key:"formatSeconds",value:function(r){var n=Math.floor(r/86400);r%=3600*24;var o=Math.floor(r/3600);o<10&&(o="0"+o),r%=3600;var a=Math.floor(r/60);a<10&&(a="0"+a),r%=60,r=Math.floor(r),r<10&&(r="0"+r);var i="";return n&&(i+="".concat(n," ").concat($S.default.t("ra_daysShortText")," ")),i+="".concat(o,":").concat(a,":").concat(r),i}},{key:"getObjectName",value:function(r,n,o,a,i){var s=r[n],u=n,l=i?"desc":"name";if(typeof o=="string"&&!a&&(a={language:o},o=null),a=a||{},a.language||(a.language=r["system.config"]&&r["system.config"].common&&r["system.config"].common.language||window.sysLang||"en"),o&&o.name)u=o.name,(0,us.default)(u)==="object"&&(u=u[a.language]||u.en);else if(s&&s.common&&s.common[l])u=s.common[l],l!=="desc"&&!u&&s.common.desc&&(u=s.common.desc),(0,us.default)(u)==="object"&&(u=u[a.language]||u.en||u.de||u.ru||""),u=(u||"").toString().replace(/[_.]/g," "),u===u.toUpperCase()&&(u=u[0]+u.substring(1).toLowerCase());else{var c=n.lastIndexOf(".");u=n.substring(c+1).replace(/[_.]/g," "),u=t.CapitalWords(u)}return u.trim()}},{key:"getObjectNameFromObj",value:function(r,n,o,a){var i=r,s=r&&r._id||"",u=a?"desc":"name";return typeof n=="string"&&!o&&(o={language:n},n=null),o=o||{},n&&n.name?(s=n.name,(0,us.default)(s)==="object"&&(s=s[o.language]||s.en)):i&&i.common&&i.common[u]&&(s=i.common[u],u!=="desc"&&!s&&i.common.desc&&(s=i.common.desc),(0,us.default)(s)==="object"&&(s=s[o.language]||s.en),s=(s||"").toString().replace(/[_.]/g," "),s===s.toUpperCase()&&(s=s[0]+s.substring(1).toLowerCase())),s.trim()}},{key:"getSettingsOrder",value:function(r,n,o){r&&r.hasOwnProperty("common")&&(r=r.common);var a;if(r&&r.custom){a=(r.custom||{})[Qa];var i=o.user||"admin";if(a&&a[i]){if(n){if(a[i].subOrder&&a[i].subOrder[n])return JSON.parse(JSON.stringify(a[i].subOrder[n]))}else if(a[i].order)return JSON.parse(JSON.stringify(a[i].order))}}return null}},{key:"getSettingsCustomURLs",value:function(r,n,o){r&&r.hasOwnProperty("common")&&(r=r.common);var a;if(r&&r.custom){a=(r.custom||{})[Qa];var i=o.user||"admin";if(a&&a[i]){if(n){if(a[i].subURLs&&a[i].subURLs[n])return JSON.parse(JSON.stringify(a[i].subURLs[n]))}else if(a[i].URLs)return JSON.parse(JSON.stringify(a[i].URLs))}}return null}},{key:"reorder",value:function(r,n,o){var a=Array.from(r),i=a.splice(n,1),s=(0,Qye.default)(i,1),u=s[0];return a.splice(o,0,u),a}},{key:"getSettings",value:function(r,n,o){var a,i=r&&r._id||n&&n.id;if(r&&r.hasOwnProperty("common")&&(r=r.common),r&&r.custom?(a=r.custom||{},a=a[Qa]&&a[Qa][n.user||"admin"]?JSON.parse(JSON.stringify(a[Qa][n.user||"admin"])):{enabled:!0}):a={enabled:o===void 0?!0:o,useCustom:!1},a.hasOwnProperty("enabled")||(a.enabled=o===void 0?!0:o),n&&(!a.name&&n.name&&(a.name=n.name),!a.icon&&n.icon&&(a.icon=n.icon),!a.color&&n.color&&(a.color=n.color)),r&&(!a.color&&r.color&&(a.color=r.color),!a.icon&&r.icon&&(a.icon=r.icon),!a.name&&r.name&&(a.name=r.name)),(0,us.default)(a.name)==="object"&&(a.name=a.name[n.language]||a.name.en,a.name=(a.name||"").toString().replace(/_/g," "),a.name===a.name.toUpperCase()&&(a.name=a.name[0]+a.name.substring(1).toLowerCase())),!a.name&&i){var s=i.lastIndexOf(".");a.name=i.substring(s+1).replace(/[_.]/g," "),a.name=(a.name||"").toString().replace(/_/g," "),a.name=t.CapitalWords(a.name)}return a}},{key:"setSettings",value:function(r,n,o){if(r){r.common=r.common||{},r.common.custom=r.common.custom||{},r.common.custom[Qa]=r.common.custom[Qa]||{},r.common.custom[Qa][o.user||"admin"]=n;var a=r.common.custom[Qa][o.user||"admin"];return a.useCommon&&(a.color!==void 0&&(r.common.color=a.color,delete a.color),a.icon!==void 0&&(r.common.icon=a.icon,delete a.icon),a.name!==void 0&&((0,us.default)(r.common.name)!=="object"&&(r.common.name={}),r.common.name[o.language]=a.name,delete a.name)),!0}else return!1}},{key:"getIcon",value:function(r,n){return r&&r.icon?r.icon.length<=2?cc.default.createElement("span",{style:n||{}},r.icon):r.icon.startsWith("data:image")?cc.default.createElement("img",{alt:r.name,src:r.icon,style:n||{}}):cc.default.createElement("img",{alt:r.name,src:(r.prefix||"")+r.icon,style:n||{}}):null}},{key:"getObjectIcon",value:function(r,n){if((0,us.default)(r)==="object"&&(n=r,r=n._id),n&&n.common&&n.common.icon){var o=n.common.icon;if(typeof o=="string"&&o.length<=2)return o;if(o.startsWith("data:image"))return o;var a=r.split(".");return a[0]==="system"?o="adapter/"+a[2]+(o.startsWith("/")?"":"/")+o:o="adapter/"+a[0]+(o.startsWith("/")?"":"/")+o,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)||window.location.pathname.match(/material\/[.\d]+/)?o="../../"+o:window.location.pathname.match(/material\//)&&(o="../"+o),o}else return null}},{key:"splitCamelCase",value:function(r){if(0){var n;for(var o;o=0&&r<11.25)return"N";if(r>=11.25&&r<33.75)return"NNE";if(r>=33.75&&r<56.25)return"NE";if(r>=56.25&&r<78.75)return"ENE";if(r>=78.75&&r<101.25)return"E";if(r>=101.25&&r<123.75)return"ESE";if(r>=123.75&&r<146.25)return"SE";if(r>=146.25&&r<168.75)return"SSE";if(r>=168.75&&r<191.25)return"S";if(r>=191.25&&r<213.75)return"SSW";if(r>=213.75&&r<236.25)return"SW";if(r>=236.25&&r<258.75)return"WSW";if(r>=258.75&&r<281.25)return"W";if(r>=281.25&&r<303.75)return"WNW";if(r>=303.75&&r<326.25)return"NW";if(r>=326.25&&r<348.75)return"NNW";if(r>=348.75)return"N"}},{key:"padding",value:function(r){return typeof r=="string"?r.length<2?"0"+r:r:r<10?"0"+r:r}},{key:"setDataFormat",value:function(r){r&&(t.dateFormat=r.toUpperCase().split(/[.-/]/),t.dateFormat.splice(t.dateFormat.indexOf("YYYY"),1))}},{key:"date2string",value:function(r){if(typeof r=="string"){if(r=r.trim(),!r)return"";if(r.match(/^[\w\s]+$/))return r;var n=r.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(n){var o=[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)],a=o.find(function(u){return u>31});o.splice(o.indexOf(a),1);var i=o.find(function(u){return u>12});i?(o.splice(o.indexOf(i),1),r=new Date(a,o[0]-1,i)):t.dateFormat[0][0]==="M"&&t.dateFormat[1][0]==="D"?(r=new Date(a,o[0]-1,o[1]),Math.abs(r.getTime-Date.now())>36e5*24*10&&(r=new Date(a,o[1]-1,o[0]))):t.dateFormat[0][0]==="D"&&t.dateFormat[1][0]==="M"?(r=new Date(a,o[1]-1,o[0]),Math.abs(r.getTime-Date.now())>36e5*24*10&&(r=new Date(a,o[0]-1,o[1]))):r=new Date(r)}else r=new Date(r)}else r=new Date(r);var s=$S.default.t("ra_dow_"+r_e[r.getDay()]).replace("ra_dow_","");return s+=". "+r.getDate()+" "+$S.default.t("ra_month_"+n_e[r.getMonth()]).replace("ra_month_",""),s}},{key:"renderTextWithA",value:function(r){var n=r.match(/|/);if(n){var o=[],a=1;do{var i=r.split(n[0]);if(i[0]&&o.push(cc.default.createElement("span",{key:"a"+a++},i[0])),n[0].startsWith("([^<]*)|/),n||i[1]&&o.push(cc.default.createElement("span",{key:"a"+a++},i[1]))}while(n);return o}else return r}},{key:"getSmartName",value:function(r,n,o,a){return n?a?r[n]&&r[n].common&&r[n].common.custom&&r[n].common.custom[o]&&r[n].common.custom[o].smartName||null:r[n].common.smartName:a?r&&!r.common?r.smartName:r&&r.common&&r.common.custom&&r.common.custom[o]?r.common.custom[o].smartName:void 0:r.common?r&&!r.common?r.smartName:r.common.smartName:r.smartName}},{key:"getSmartNameFromObj",value:function(r,n,o){return o?r&&!r.common?r.smartName:r&&r.common&&r.common.custom&&r.common.custom[n]?r.common.custom[n].smartName:void 0:r.common?r&&!r.common?r.smartName:r.common.smartName:r.smartName}},{key:"enableSmartName",value:function(r,n,o){o?(r.common.custom=r.common.custom||{},r.common.custom[n]=r.common.custom[n]||{},r.common.custom[n].smartName={}):r.common.smartName={}}},{key:"removeSmartName",value:function(r,n,o){o?r.common&&r.common.custom&&r.common.custom[n]&&(r.common.custom[n]=null):r.common.smartName=null}},{key:"updateSmartName",value:function(r,n,o,a,i,s){var u=$S.default.getLanguage();if(typeof r.common.smartName=="string"){var l=r.common.smartName;r.common.smartName={},r.common.smartName[u]=l}if(r.native&&r.native.byON){delete r.native.byON;var c=r.common.smartName;(!c||(0,us.default)(c)!=="object")&&(c={en:c},c[u]=c.en),r.common.smartName=c}if(a!==void 0&&(s?(r.common.custom=r.common.custom||{},r.common.custom[i]=r.common.custom[i]||{},r.common.custom[i].smartName=r.common.custom[i].smartName||{},a?r.common.custom[i].smartName.smartType=a:delete r.common.custom[i].smartName.smartType):(r.common.smartName=r.common.smartName||{},a?r.common.smartName.smartType=a:delete r.common.smartName.smartType)),o!==void 0&&(s?(r.common.custom=r.common.custom||{},r.common.custom[i]=r.common.custom[i]||{},r.common.custom[i].smartName=r.common.custom[i].smartName||{},r.common.custom[i].smartName.byON=o):(r.common.smartName=r.common.smartName||{},r.common.smartName.byON=o)),n!==void 0){var f;if(s?(r.common.custom=r.common.custom||{},r.common.custom[i]=r.common.custom[i]||{},r.common.custom[i].smartName=r.common.custom[i].smartName||{},f=r.common.custom[i].smartName):(r.common.smartName=r.common.smartName||{},f=r.common.smartName),f[u]=n,f&&(!f[u]||f[u]===r.common.name&&(!r.common.role||r.common.role.indexOf("button")>=0))){delete f[u];var d=!0;for(var p in f)if(f.hasOwnProperty(p)){d=!1;break}d&&(s?r.common.custom[i].smartName.byON===void 0?delete r.common.custom[i]:(delete r.common.custom[i].en,delete r.common.custom[i].de,delete r.common.custom[i].ru,delete r.common.custom[i].nl,delete r.common.custom[i].pl,delete r.common.custom[i].it,delete r.common.custom[i].fr,delete r.common.custom[i].pt,delete r.common.custom[i].es,delete r.common.custom[i]["zh-cn"]):r.common.smartName.byON!==void 0?(delete r.common.smartName.en,delete r.common.smartName.de,delete r.common.smartName.ru,delete r.common.smartName.nl,delete r.common.smartName.pl,delete r.common.smartName.it,delete r.common.smartName.fr,delete r.common.smartName.pt,delete r.common.smartName.es,delete r.common.smartName["zh-cn"]):r.common.smartName=null)}}}},{key:"disableSmartName",value:function(r,n,o){o?(r.common.custom=r.common.custom||{},r.common.custom[n]=r.common.custom[n]||{},r.common.custom[n].smartName=!1):r.common.smartName=!1}},{key:"copyToClipboard",value:function(r,n){var o=window.document.createElement("textarea");o.value=r,window.document.body.appendChild(o),o.select(),window.document.execCommand("copy"),window.document.body.removeChild(o),console.log(r),n&&n.stopPropagation(),n&&n.preventDefault()}},{key:"getFileExtension",value:function(r){var n=(r||"").lastIndexOf(".");return n!==-1?r.substring(n+1).toLowerCase():null}},{key:"formatBytes",value:function(r){if(Math.abs(r)<1024)return r+" B";var n=["KB","MB","GB"],o=-1;do r/=1024,++o;while(Math.abs(r)>=1024&&o186?"#000000":"#FFFFFF":(i=(255-i).toString(16),s=(255-s).toString(16),u=(255-u).toString(16),"#"+i.padStart(2,"0")+s.padStart(2,"0")+u.padStart(2,"0"))}},{key:"_toVal",value:function(r){var n,o,a="";if(typeof r=="string"||typeof r=="number")a+=r;else if((0,us.default)(r)==="object")if(Array.isArray(r))for(n=0;n0&&arguments[0]!==void 0?arguments[0]:"";return window.vendorPrefix&&window.vendorPrefix!=="@@vendorPrefix@@"?window.vendorPrefix:r||(window.localStorage&&window.localStorage.getItem("App.themeName")?window.localStorage.getItem("App.themeName"):window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"colored")}},{key:"getThemeType",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return window.vendorPrefix&&window.vendorPrefix!=="@@vendorPrefix@@"?"light":(r=r||window.localStorage&&window.localStorage.getItem("App.themeName"),r==="dark"||r==="blue"?"dark":"light")}},{key:"setThemeName",value:function(r){window.vendorPrefix&&window.vendorPrefix!=="@@vendorPrefix@@"||(window.localStorage.setItem("App.themeName",r),window.localStorage.setItem("App.theme",r==="dark"||r==="blue"?"dark":"light"))}},{key:"toggleTheme",value:function(r){if(window.vendorPrefix&&window.vendorPrefix!=="@@vendorPrefix@@")return window.vendorPrefix;r=r||window.localStorage&&window.localStorage.getItem("App.themeName");var n=t.getThemeNames(),o=n.indexOf(r),a;return o!==-1?a=n[(o+1)%n.length]:a=n[0],t.setThemeName(a),a}},{key:"getThemeNames",value:function(){return window.vendorPrefix&&window.vendorPrefix!=="@@vendorPrefix@@"?[window.vendorPrefix]:["light","dark","blue","colored"]}},{key:"parseQuery",value:function(r){r=(r||"").toString().replace(/^\?/,"");var n={};return r.split("&").forEach(function(o){if(o=o.trim(),o){var a=o.split("="),i=decodeURIComponent(a[0]).trim();if(a.length>1)if(n[i]=decodeURIComponent(a[1]),n[i]==="true")n[i]=!0;else if(n[i]==="false")n[i]=!1;else{var s=parseFloat(n[i]);s.toString()===n[i]&&(n[i]=s)}else n[i]=!0}}),n}},{key:"getParentId",value:function(r){var n=(r||"").toString().split(".");return n.length>1?(n.pop(),n.join(".")):null}},{key:"formatDate",value:function(r,n){if(!r)return"";var o,a=r.getMonth()+1;a<10&&(a="0"+a);var i=r.getDate();i<10&&(i="0"+i),n==="MM/DD/YYYY"?o=a+"/"+i+"/"+r.getFullYear():o=r.getFullYear()+"-"+a+"-"+i;var s=r.getHours();return s<10?o+=" 0"+s:o+=" "+s,s=r.getMinutes(),s<10?o+=":0"+s:o+=":"+s,s=r.getSeconds(),s<10?o+=":0"+s:o+=":"+s,s=r.getMilliseconds(),s<10?o+=".00"+s:s<100?o+=".0"+s:o+="."+s,o}},{key:"formatTime",value:function(r){if(r){r=Math.round(r);var n=Math.floor(r/(3600*24)),o=Math.floor(r%(3600*24)/3600),a=Math.floor(r%3600/60),i=r%60;return n?"".concat(n,".").concat(o.toString().padStart(2,"0"),":").concat(a.toString().padStart(2,"0"),":").concat(i.toString().padStart(2,"0")):o?"".concat(o,":").concat(a.toString().padStart(2,"0"),":").concat(i.toString().padStart(2,"0")):"0:".concat(a.toString().padStart(2,"0"),":").concat(i.toString().padStart(2,"0"))}else return"0:00:00"}},{key:"MDtext2link",value:function(r){var n=r.match(/\d+\.\)\s/);return n&&(r=r.replace(n[0],n[0].replace(/\s/," "))),r.replace(/[^a-zA-Zа-яА-Я0-9]/g,"").trim().replace(/\s/g,"").toLowerCase()}},{key:"openLink",value:function(r,n){r=r.replace(/\/\/([0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*)(:\d+)?\//i,"//[$1]$2/"),n==="this"?window.location=r:window.open(r,n||"_blank")}},{key:"MDgetTitle",value:function(r){var n=t.extractHeader(r),o=n.body,a=n.header;if(a.title)return a.title;o=o.replace(/{[^}]*}/g,""),o=o.trim();for(var i=o.replace(/\r/g,"").split(` +`}},e.insertRules=function(n,o){for(var a=0;a0&&(o.refs--,o.refs===0&&o.sheet.detach()):J$.default(!1,"SheetsManager: can't find sheet to unmanage")},TO.default(t,[{key:"size",get:function(){return this.length}}]),t}(),$me=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function f4(t){var e=null;for(var r in t){var n=t[r],o=typeof n;if(o==="function")e||(e={}),e[r]=n;else if(o==="object"&&n!==null&&!Array.isArray(n)){var a=f4(n);a&&(e||(e={}),e[r]=a)}}return e}var Hme=p4();mo.RuleList=tS;mo.SheetsManager=Wme;mo.SheetsRegistry=l4;mo.create=p4;mo.createGenerateId=EO;mo.createRule=wO;mo.default=Hme;mo.getDynamicStyles=f4;mo.hasCSSTOMSupport=$me;mo.sheets=Ip;mo.toCssValue=Cp});var h4=_(kO=>{"use strict";Object.defineProperty(kO,"__esModule",{value:!0});var LKe=Q0(),Gme=Cu(),m4=Date.now(),CO="fnValues"+m4,IO="fnStyle"+ ++m4,Vme=function(){return{onCreateRule:function(r,n,o){if(typeof n!="function")return null;var a=Gme.createRule(r,{},o);return a[IO]=n,a},onProcessStyle:function(r,n){if(CO in n||IO in n)return r;var o={};for(var a in r){var i=r[a];typeof i=="function"&&(delete r[a],o[a]=i)}return n[CO]=o,r},onUpdate:function(r,n,o,a){var i=n,s=i[IO];if(s&&(i.style=s(r)||{},0))for(var u in i.style);var l=i[CO];if(l)for(var c in l)i.prop(c,l[c](r),a)}}};kO.default=Vme});var v4=_(OO=>{"use strict";Object.defineProperty(OO,"__esModule",{value:!0});var Kme=We(),Yme=Cu();function Jme(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var rS=Jme(Kme),Iu="@global",PO="@global ",Xme=function(){function t(r,n,o){this.type="global",this.at=Iu,this.isProcessed=!1,this.key=r,this.options=o,this.rules=new Yme.RuleList(rS.default({},o,{parent:this}));for(var a in n)this.rules.add(a,n[a]);this.rules.process()}var e=t.prototype;return e.getRule=function(n){return this.rules.get(n)},e.addRule=function(n,o,a){var i=this.rules.add(n,o,a);return i&&this.options.jss.plugins.onProcessRule(i),i},e.replaceRule=function(n,o,a){var i=this.rules.replace(n,o,a);return i&&this.options.jss.plugins.onProcessRule(i),i},e.indexOf=function(n){return this.rules.indexOf(n)},e.toString=function(n){return this.rules.toString(n)},t}(),Zme=function(){function t(r,n,o){this.type="global",this.at=Iu,this.isProcessed=!1,this.key=r,this.options=o;var a=r.substr(PO.length);this.rule=o.jss.createRule(a,n,rS.default({},o,{parent:this}))}var e=t.prototype;return e.toString=function(n){return this.rule?this.rule.toString(n):""},t}(),Qme=/\s*,\s*/g;function g4(t,e){for(var r=t.split(Qme),n="",o=0;o{"use strict";Object.defineProperty(RO,"__esModule",{value:!0});var nhe=We(),zKe=Q0();function ohe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var nS=ohe(nhe),y4=/\s*,\s*/g,ahe=/&/g,ihe=/\$([\w-]+)/g;function she(){function t(o,a){return function(i,s){var u=o.getRule(s)||a&&a.getRule(s);return u?u.selector:s}}function e(o,a){for(var i=a.split(y4),s=o.split(y4),u="",l=0;l{"use strict";var uhe=/[A-Z]/g,lhe=/^ms-/,DO={};function che(t){return"-"+t.toLowerCase()}function dhe(t){if(DO.hasOwnProperty(t))return DO[t];var e=t.replace(uhe,che);return DO[t]=lhe.test(e)?"-"+e:e}b4.exports=dhe});var T4=_(NO=>{"use strict";Object.defineProperty(NO,"__esModule",{value:!0});var phe=S4();function fhe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var E4=fhe(phe);function oS(t){var e={};for(var r in t){var n=r.indexOf("--")===0?r:E4.default(r);e[n]=t[r]}return t.fallbacks&&(Array.isArray(t.fallbacks)?e.fallbacks=t.fallbacks.map(oS):e.fallbacks=oS(t.fallbacks)),e}function mhe(){function t(r){if(Array.isArray(r)){for(var n=0;n{"use strict";Object.defineProperty(MO,"__esModule",{value:!0});var AO=Cu(),te=AO.hasCSSTOMSupport&&CSS?CSS.px:"px",aS=AO.hasCSSTOMSupport&&CSS?CSS.ms:"ms",Pp=AO.hasCSSTOMSupport&&CSS?CSS.percent:"%",hhe={"animation-delay":aS,"animation-duration":aS,"background-position":te,"background-position-x":te,"background-position-y":te,"background-size":te,border:te,"border-bottom":te,"border-bottom-left-radius":te,"border-bottom-right-radius":te,"border-bottom-width":te,"border-left":te,"border-left-width":te,"border-radius":te,"border-right":te,"border-right-width":te,"border-top":te,"border-top-left-radius":te,"border-top-right-radius":te,"border-top-width":te,"border-width":te,"border-block":te,"border-block-end":te,"border-block-end-width":te,"border-block-start":te,"border-block-start-width":te,"border-block-width":te,"border-inline":te,"border-inline-end":te,"border-inline-end-width":te,"border-inline-start":te,"border-inline-start-width":te,"border-inline-width":te,"border-start-start-radius":te,"border-start-end-radius":te,"border-end-start-radius":te,"border-end-end-radius":te,margin:te,"margin-bottom":te,"margin-left":te,"margin-right":te,"margin-top":te,"margin-block":te,"margin-block-end":te,"margin-block-start":te,"margin-inline":te,"margin-inline-end":te,"margin-inline-start":te,padding:te,"padding-bottom":te,"padding-left":te,"padding-right":te,"padding-top":te,"padding-block":te,"padding-block-end":te,"padding-block-start":te,"padding-inline":te,"padding-inline-end":te,"padding-inline-start":te,"mask-position-x":te,"mask-position-y":te,"mask-size":te,height:te,width:te,"min-height":te,"max-height":te,"min-width":te,"max-width":te,bottom:te,left:te,top:te,right:te,inset:te,"inset-block":te,"inset-block-end":te,"inset-block-start":te,"inset-inline":te,"inset-inline-end":te,"inset-inline-start":te,"box-shadow":te,"text-shadow":te,"column-gap":te,"column-rule":te,"column-rule-width":te,"column-width":te,"font-size":te,"font-size-delta":te,"letter-spacing":te,"text-decoration-thickness":te,"text-indent":te,"text-stroke":te,"text-stroke-width":te,"word-spacing":te,motion:te,"motion-offset":te,outline:te,"outline-offset":te,"outline-width":te,perspective:te,"perspective-origin-x":Pp,"perspective-origin-y":Pp,"transform-origin":Pp,"transform-origin-x":Pp,"transform-origin-y":Pp,"transform-origin-z":Pp,"transition-delay":aS,"transition-duration":aS,"vertical-align":te,"flex-basis":te,"shape-margin":te,size:te,gap:te,grid:te,"grid-gap":te,"row-gap":te,"grid-row-gap":te,"grid-column-gap":te,"grid-template-rows":te,"grid-template-columns":te,"grid-auto-rows":te,"grid-auto-columns":te,"box-shadow-x":te,"box-shadow-y":te,"box-shadow-blur":te,"box-shadow-spread":te,"font-line-height":te,"text-shadow-x":te,"text-shadow-y":te,"text-shadow-blur":te};function w4(t){var e=/(-[a-z])/g,r=function(i){return i[1].toUpperCase()},n={};for(var o in t)n[o]=t[o],n[o.replace(e,r)]=t[o];return n}var ghe=w4(hhe);function pv(t,e,r){if(e==null)return e;if(Array.isArray(e))for(var n=0;n{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});function P4(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var dS=P4(dO()),yhe=P4(Ep()),fv="",FO="",O4="",R4="",_he=dS&&"ontouchstart"in document.documentElement;if(dS){iS={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},C4=document.createElement("p"),sS=C4.style,I4="Transform";for(uS in iS)if(uS+I4 in sS){fv=uS,FO=iS[uS];break}fv==="Webkit"&&"msHyphens"in sS&&(fv="ms",FO=iS.ms,R4="edge"),fv==="Webkit"&&"-apple-trailing-word"in sS&&(O4="apple")}var iS,C4,sS,I4,uS,Ye={js:fv,css:FO,vendor:O4,browser:R4,isTouch:_he};function bhe(t){return t[1]==="-"||Ye.js==="ms"?t:"@"+Ye.css+"keyframes"+t.substr(10)}var She={noPrefill:["appearance"],supportedProperty:function(e){return e!=="appearance"?!1:Ye.js==="ms"?"-webkit-"+e:Ye.css+e}},Ehe={noPrefill:["color-adjust"],supportedProperty:function(e){return e!=="color-adjust"?!1:Ye.js==="Webkit"?Ye.css+"print-"+e:e}},The=/[-\s]+(.)?/g;function whe(t,e){return e?e.toUpperCase():""}function jO(t){return t.replace(The,whe)}function Pu(t){return jO("-"+t)}var xhe={noPrefill:["mask"],supportedProperty:function(e,r){if(!/^mask/.test(e))return!1;if(Ye.js==="Webkit"){var n="mask-image";if(jO(n)in r)return e;if(Ye.js+Pu(n)in r)return Ye.css+e}return e}},Che={noPrefill:["text-orientation"],supportedProperty:function(e){return e!=="text-orientation"?!1:Ye.vendor==="apple"&&!Ye.isTouch?Ye.css+e:e}},Ihe={noPrefill:["transform"],supportedProperty:function(e,r,n){return e!=="transform"?!1:n.transform?e:Ye.css+e}},khe={noPrefill:["transition"],supportedProperty:function(e,r,n){return e!=="transition"?!1:n.transition?e:Ye.css+e}},Phe={noPrefill:["writing-mode"],supportedProperty:function(e){return e!=="writing-mode"?!1:Ye.js==="Webkit"||Ye.js==="ms"&&Ye.browser!=="edge"?Ye.css+e:e}},Ohe={noPrefill:["user-select"],supportedProperty:function(e){return e!=="user-select"?!1:Ye.js==="Moz"||Ye.js==="ms"||Ye.vendor==="apple"?Ye.css+e:e}},Rhe={supportedProperty:function(e,r){if(!/^break-/.test(e))return!1;if(Ye.js==="Webkit"){var n="WebkitColumn"+Pu(e);return n in r?Ye.css+"column-"+e:!1}if(Ye.js==="Moz"){var o="page"+Pu(e);return o in r?"page-"+e:!1}return!1}},Dhe={supportedProperty:function(e,r){if(!/^(border|margin|padding)-inline/.test(e))return!1;if(Ye.js==="Moz")return e;var n=e.replace("-inline","");return Ye.js+Pu(n)in r?Ye.css+n:!1}},Nhe={supportedProperty:function(e,r){return jO(e)in r?e:!1}},Ahe={supportedProperty:function(e,r){var n=Pu(e);return e[0]==="-"||e[0]==="-"&&e[1]==="-"?e:Ye.js+n in r?Ye.css+e:Ye.js!=="Webkit"&&"Webkit"+n in r?"-webkit-"+e:!1}},Mhe={supportedProperty:function(e){return e.substring(0,11)!=="scroll-snap"?!1:Ye.js==="ms"?""+Ye.css+e:e}},Fhe={supportedProperty:function(e){return e!=="overscroll-behavior"?!1:Ye.js==="ms"?Ye.css+"scroll-chaining":e}},qhe={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},jhe={supportedProperty:function(e,r){var n=qhe[e];return n&&Ye.js+Pu(n)in r?Ye.css+n:!1}},D4={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Lhe=Object.keys(D4),Bhe=function(e){return Ye.css+e},Uhe={supportedProperty:function(e,r,n){var o=n.multiple;if(Lhe.indexOf(e)>-1){var a=D4[e];if(!Array.isArray(a))return Ye.js+Pu(a)in r?Ye.css+a:!1;if(!o)return!1;for(var i=0;i{"use strict";Object.defineProperty(LO,"__esModule",{value:!0});var pS=A4(),M4=Cu();function Vhe(){function t(o){if(o.type==="keyframes"){var a=o;a.at=pS.supportedKeyframes(a.at)}}function e(o){for(var a in o){var i=o[a];if(a==="fallbacks"&&Array.isArray(i)){o[a]=i.map(e);continue}var s=!1,u=pS.supportedProperty(a);u&&u!==a&&(s=!0);var l=!1,c=pS.supportedValue(u,M4.toCssValue(i));c&&c!==i&&(l=!0),(s||l)&&(s&&delete o[a],o[u||a]=c||i)}return o}function r(o,a){return a.type!=="style"?o:e(o)}function n(o,a){return pS.supportedValue(a,M4.toCssValue(o))||o}return{onProcessRule:t,onProcessStyle:r,onChangeValue:n}}LO.default=Vhe});var q4=_(BO=>{"use strict";Object.defineProperty(BO,"__esModule",{value:!0});function Khe(){var t=function(r,n){return r.length===n.length?r>n?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var o={},a=Object.keys(r).sort(t),i=0;i{"use strict";var ic=$();Object.defineProperty(UO,"__esModule",{value:!0});UO.default=rge;var Yhe=ic(h4()),Jhe=ic(v4()),Xhe=ic(_4()),Zhe=ic(T4()),Qhe=ic(x4()),ege=ic(F4()),tge=ic(q4());function rge(){return{plugins:[(0,Yhe.default)(),(0,Jhe.default)(),(0,Xhe.default)(),(0,Zhe.default)(),(0,Qhe.default)(),typeof window=="undefined"?null:(0,ege.default)(),(0,tge.default)()]}}});var WO=_(zO=>{"use strict";var nge=$();Object.defineProperty(zO,"__esModule",{value:!0});Object.defineProperty(zO,"default",{enumerable:!0,get:function(){return oge.default}});var oge=nge(j4())});var L4=_($O=>{"use strict";var age=$();Object.defineProperty($O,"__esModule",{value:!0});$O.default=sge;var ige=age(We()),ZKe=at();function sge(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.baseClasses,r=t.newClasses,n=t.Component;if(!r)return e;var o=(0,ige.default)({},e);return Object.keys(r).forEach(function(a){r[a]&&(o[a]="".concat(e[a]," ").concat(r[a]))}),o}});var GO=_(HO=>{"use strict";var uge=$();Object.defineProperty(HO,"__esModule",{value:!0});Object.defineProperty(HO,"default",{enumerable:!0,get:function(){return lge.default}});var lge=uge(L4())});var B4=_(fS=>{"use strict";Object.defineProperty(fS,"__esModule",{value:!0});fS.default=void 0;var cge={set:function(e,r,n,o){var a=e.get(r);a||(a=new Map,e.set(r,a)),a.set(n,o)},get:function(e,r,n){var o=e.get(r);return o?o.get(n):void 0},delete:function(e,r,n){var o=e.get(r);o.delete(n)}},dge=cge;fS.default=dge});var VO=_(mS=>{"use strict";var pge=$();Object.defineProperty(mS,"__esModule",{value:!0});mS.default=void 0;var fge=pge(z()),mge=fge.default.createContext(null),hge=mge;mS.default=hge});var z4=_(KO=>{"use strict";var U4=$();Object.defineProperty(KO,"__esModule",{value:!0});KO.default=yge;var gge=U4(z()),vge=U4(VO());function yge(){var t=gge.default.useContext(vge.default);return t}});var Dp=_(YO=>{"use strict";var _ge=$();Object.defineProperty(YO,"__esModule",{value:!0});Object.defineProperty(YO,"default",{enumerable:!0,get:function(){return bge.default}});var bge=_ge(z4())});var G4=_(sc=>{"use strict";var Np=$();Object.defineProperty(sc,"__esModule",{value:!0});sc.default=Ige;sc.StylesContext=sc.sheetsManager=void 0;var Sge=Np(We()),Ege=Np(ut()),JO=Np(z()),aYe=Np(je()),iYe=at(),Tge=Np(Z0()),W4=Cu(),$4=Np(WO()),wge=(0,W4.create)((0,$4.default)()),xge=(0,Tge.default)(),H4=new Map;sc.sheetsManager=H4;var Cge={disableGeneration:!1,generateClassName:xge,jss:wge,sheetsCache:null,sheetsManager:H4,sheetsRegistry:null},XO=JO.default.createContext(Cge);sc.StylesContext=XO;var hS;function Ige(t){var e=t.children,r=t.injectFirst,n=r===void 0?!1:r,o=t.disableGeneration,a=o===void 0?!1:o,i=(0,Ege.default)(t,["children","injectFirst","disableGeneration"]),s=JO.default.useContext(XO),u=(0,Sge.default)({},s,{disableGeneration:a},i);if(!u.jss.options.insertionPoint&&n&&typeof window!="undefined"){if(!hS){var l=document.head;hS=document.createComment("mui-inject-first"),l.insertBefore(hS,l.firstChild)}u.jss=(0,W4.create)({plugins:(0,$4.default)().plugins,insertionPoint:hS})}return JO.default.createElement(XO.Provider,{value:u},e)}});var vS=_(gS=>{"use strict";var kge=Ne();Object.defineProperty(gS,"__esModule",{value:!0});var Pge={};Object.defineProperty(gS,"default",{enumerable:!0,get:function(){return ZO.default}});var ZO=kge(G4());Object.keys(ZO).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(Pge,t)||Object.defineProperty(gS,t,{enumerable:!0,get:function(){return ZO[t]}})})});var K4=_(QO=>{"use strict";Object.defineProperty(QO,"__esModule",{value:!0});QO.increment=Oge;var V4=-1e9;function Oge(){return V4+=1,V4}});var eR=_(yS=>{"use strict";Object.defineProperty(yS,"__esModule",{value:!0});yS.default=void 0;var Rge={},Dge=Rge;yS.default=Dge});var Y4=_(rR=>{"use strict";var tR=$();Object.defineProperty(rR,"__esModule",{value:!0});rR.default=Mge;var Nge=tR(We()),dYe=tR(Go()),Age=at(),pYe=tR(eR());function Mge(t){var e=typeof t=="function";return{create:function(n,o){var a;try{a=e?t(n):t}catch(u){throw u}if(!o||!n.overrides||!n.overrides[o])return a;var i=n.overrides[o],s=(0,Nge.default)({},a);return Object.keys(i).forEach(function(u){s[u]=(0,Age.deepmerge)(s[u],i[u])}),s},options:{}}}});var J4=_(nR=>{"use strict";var Fge=$();Object.defineProperty(nR,"__esModule",{value:!0});Object.defineProperty(nR,"default",{enumerable:!0,get:function(){return qge.default}});var qge=Fge(Y4())});var Z4=_(oR=>{"use strict";var Ou=$();Object.defineProperty(oR,"__esModule",{value:!0});oR.default=Jge;var jge=Ou(ut()),_S=Ou(We()),uc=Ou(z()),Lge=Cu(),X4=Ou(GO()),Ap=Ou(B4()),Bge=Ou(Dp()),Uge=vS(),zge=K4(),Wge=Ou(J4()),$ge=Ou(eR());function Hge(t,e,r){var n=t.state,o=t.stylesOptions;if(o.disableGeneration)return e||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var a=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,a=!0),e!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=e,a=!0),a&&(n.cacheClasses.value=(0,X4.default)({baseClasses:n.cacheClasses.lastJSS,newClasses:e,Component:r})),n.cacheClasses.value}function Gge(t,e){var r=t.state,n=t.theme,o=t.stylesOptions,a=t.stylesCreator,i=t.name;if(!o.disableGeneration){var s=Ap.default.get(o.sheetsManager,a,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Ap.default.set(o.sheetsManager,a,n,s));var u=(0,_S.default)({},a.options,o,{theme:n,flip:typeof o.flip=="boolean"?o.flip:n.direction==="rtl"});u.generateId=u.serverGenerateClassName||u.generateClassName;var l=o.sheetsRegistry;if(s.refs===0){var c;o.sheetsCache&&(c=Ap.default.get(o.sheetsCache,a,n));var p=a.create(n,i);c||(c=o.jss.createStyleSheet(p,(0,_S.default)({link:!1},u)),c.attach(),o.sheetsCache&&Ap.default.set(o.sheetsCache,a,n,c)),l&&l.add(c),s.staticSheet=c,s.dynamicStyles=(0,Lge.getDynamicStyles)(p)}if(s.dynamicStyles){var d=o.jss.createStyleSheet(s.dynamicStyles,(0,_S.default)({link:!0},u));d.update(e),d.attach(),r.dynamicSheet=d,r.classes=(0,X4.default)({baseClasses:s.staticSheet.classes,newClasses:d.classes}),l&&l.add(d)}else r.classes=s.staticSheet.classes;s.refs+=1}}function Vge(t,e){var r=t.state;r.dynamicSheet&&r.dynamicSheet.update(e)}function Kge(t){var e=t.state,r=t.theme,n=t.stylesOptions,o=t.stylesCreator;if(!n.disableGeneration){var a=Ap.default.get(n.sheetsManager,o,r);a.refs-=1;var i=n.sheetsRegistry;a.refs===0&&(Ap.default.delete(n.sheetsManager,o,r),n.jss.removeStyleSheet(a.staticSheet),i&&i.remove(a.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),i&&i.remove(e.dynamicSheet))}}function Yge(t,e){var r=uc.default.useRef([]),n,o=uc.default.useMemo(function(){return{}},e);r.current!==o&&(r.current=o,n=t()),uc.default.useEffect(function(){return function(){n&&n()}},[o])}function Jge(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.name,n=e.classNamePrefix,o=e.Component,a=e.defaultTheme,i=a===void 0?$ge.default:a,s=(0,jge.default)(e,["name","classNamePrefix","Component","defaultTheme"]),u=(0,Wge.default)(t),l=r||n||"makeStyles";u.options={index:(0,zge.increment)(),name:r,meta:l,classNamePrefix:l};var c=function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=(0,Bge.default)()||i,m=(0,_S.default)({},uc.default.useContext(Uge.StylesContext),s),g=uc.default.useRef(),v=uc.default.useRef();Yge(function(){var y={name:r,state:{},stylesCreator:u,stylesOptions:m,theme:f};return Gge(y,d),v.current=!1,g.current=y,function(){Kge(y)}},[f,u]),uc.default.useEffect(function(){v.current&&Vge(g.current,d),v.current=!0});var h=Hge(g.current,d.classes,o);return h};return c}});var bS=_(aR=>{"use strict";var Xge=$();Object.defineProperty(aR,"__esModule",{value:!0});Object.defineProperty(aR,"default",{enumerable:!0,get:function(){return Zge.default}});var Zge=Xge(Z4())});var ho=_((vYe,hv)=>{"use strict";function Qge(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}hv.exports=Qge,hv.exports.__esModule=!0,hv.exports.default=hv.exports});var tH=_(SS=>{"use strict";var Mp=$();Object.defineProperty(SS,"__esModule",{value:!0});SS.default=void 0;var Q4=Mp(We()),eve=Mp(ho()),tve=Mp(Yn()),eH=Mp(z()),rve=Cu(),nve=Mp(vS()),ove=Mp(Z0()),ave=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,eve.default)(this,t),this.options=e}return(0,tve.default)(t,[{key:"collect",value:function(r){var n=new Map;this.sheetsRegistry=new rve.SheetsRegistry;var o=(0,ove.default)();return eH.default.createElement(nve.default,(0,Q4.default)({sheetsManager:n,serverGenerateClassName:o,sheetsRegistry:this.sheetsRegistry},this.options),r)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(r){return eH.default.createElement("style",(0,Q4.default)({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},r))}}]),t}();SS.default=ave});var rH=_(iR=>{"use strict";var ive=$();Object.defineProperty(iR,"__esModule",{value:!0});Object.defineProperty(iR,"default",{enumerable:!0,get:function(){return sve.default}});var sve=ive(tH())});var Le=_((bYe,sR)=>{"use strict";function oH(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e{"use strict";var Jr=typeof Symbol=="function"&&Symbol.for,uR=Jr?Symbol.for("react.element"):60103,lR=Jr?Symbol.for("react.portal"):60106,ES=Jr?Symbol.for("react.fragment"):60107,TS=Jr?Symbol.for("react.strict_mode"):60108,wS=Jr?Symbol.for("react.profiler"):60114,xS=Jr?Symbol.for("react.provider"):60109,CS=Jr?Symbol.for("react.context"):60110,cR=Jr?Symbol.for("react.async_mode"):60111,IS=Jr?Symbol.for("react.concurrent_mode"):60111,kS=Jr?Symbol.for("react.forward_ref"):60112,PS=Jr?Symbol.for("react.suspense"):60113,uve=Jr?Symbol.for("react.suspense_list"):60120,OS=Jr?Symbol.for("react.memo"):60115,RS=Jr?Symbol.for("react.lazy"):60116,lve=Jr?Symbol.for("react.block"):60121,cve=Jr?Symbol.for("react.fundamental"):60117,dve=Jr?Symbol.for("react.responder"):60118,pve=Jr?Symbol.for("react.scope"):60119;function go(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case uR:switch(t=t.type,t){case cR:case IS:case ES:case wS:case TS:case PS:return t;default:switch(t=t&&t.$$typeof,t){case CS:case kS:case RS:case OS:case xS:return t;default:return e}}case lR:return e}}}function aH(t){return go(t)===IS}Rt.AsyncMode=cR;Rt.ConcurrentMode=IS;Rt.ContextConsumer=CS;Rt.ContextProvider=xS;Rt.Element=uR;Rt.ForwardRef=kS;Rt.Fragment=ES;Rt.Lazy=RS;Rt.Memo=OS;Rt.Portal=lR;Rt.Profiler=wS;Rt.StrictMode=TS;Rt.Suspense=PS;Rt.isAsyncMode=function(t){return aH(t)||go(t)===cR};Rt.isConcurrentMode=aH;Rt.isContextConsumer=function(t){return go(t)===CS};Rt.isContextProvider=function(t){return go(t)===xS};Rt.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===uR};Rt.isForwardRef=function(t){return go(t)===kS};Rt.isFragment=function(t){return go(t)===ES};Rt.isLazy=function(t){return go(t)===RS};Rt.isMemo=function(t){return go(t)===OS};Rt.isPortal=function(t){return go(t)===lR};Rt.isProfiler=function(t){return go(t)===wS};Rt.isStrictMode=function(t){return go(t)===TS};Rt.isSuspense=function(t){return go(t)===PS};Rt.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===ES||t===IS||t===wS||t===TS||t===PS||t===uve||typeof t=="object"&&t!==null&&(t.$$typeof===RS||t.$$typeof===OS||t.$$typeof===xS||t.$$typeof===CS||t.$$typeof===kS||t.$$typeof===cve||t.$$typeof===dve||t.$$typeof===pve||t.$$typeof===lve)};Rt.typeOf=go});var uH=_((EYe,sH)=>{"use strict";sH.exports=iH()});var gv=_((TYe,mH)=>{"use strict";var dR=uH(),fve={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},mve={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},hve={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pH={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},pR={};pR[dR.ForwardRef]=hve;pR[dR.Memo]=pH;function lH(t){return dR.isMemo(t)?pH:pR[t.$$typeof]||fve}var gve=Object.defineProperty,vve=Object.getOwnPropertyNames,cH=Object.getOwnPropertySymbols,yve=Object.getOwnPropertyDescriptor,_ve=Object.getPrototypeOf,dH=Object.prototype;function fH(t,e,r){if(typeof e!="string"){if(dH){var n=_ve(e);n&&n!==dH&&fH(t,n,r)}var o=vve(e);cH&&(o=o.concat(cH(e)));for(var a=lH(t),i=lH(e),s=0;s{"use strict";var lc=$();Object.defineProperty(mR,"__esModule",{value:!0});mR.default=Tve;var vv=lc(We()),hH=lc(ut()),fR=lc(z()),gH=lc(Le()),wYe=lc(je()),xYe=at(),bve=lc(gv()),Sve=lc(bS());function Eve(t,e){var r={};return Object.keys(t).forEach(function(n){e.indexOf(n)===-1&&(r[n]=t[n])}),r}function Tve(t){var e=function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.name,i=(0,hH.default)(o,["name"]),s=a;if(0&&!a)var u;var l=typeof n=="function"?function(m){return{root:function(v){return n((0,vv.default)({theme:m},v))}}}:{root:n},c=(0,Sve.default)(l,(0,vv.default)({Component:t,name:a||t.displayName,classNamePrefix:s},i)),p,d={};n.filterProps&&(p=n.filterProps,delete n.filterProps),n.propTypes&&(d=n.propTypes,delete n.propTypes);var f=fR.default.forwardRef(function(g,v){var h=g.children,y=g.className,b=g.clone,E=g.component,w=(0,hH.default)(g,["children","className","clone","component"]),S=c(g),C=(0,gH.default)(S.root,y),P=w;if(p&&(P=Eve(P,p)),b)return fR.default.cloneElement(h,(0,vv.default)({className:(0,gH.default)(h.props.className,C)},P));if(typeof h=="function")return h((0,vv.default)({className:C},P));var k=E||t;return fR.default.createElement(k,(0,vv.default)({ref:v,className:C},P),h)});return(0,bve.default)(f,t),f};return e}});var yH=_(hR=>{"use strict";var wve=$();Object.defineProperty(hR,"__esModule",{value:!0});Object.defineProperty(hR,"default",{enumerable:!0,get:function(){return xve.default}});var xve=wve(vH())});var bH=_(DS=>{"use strict";var Fp=$();Object.defineProperty(DS,"__esModule",{value:!0});DS.default=void 0;var Cve=Fp(We()),_H=Fp(z()),kYe=Fp(je()),PYe=at(),Ive=Fp(VO()),kve=Fp(Dp()),Pve=Fp(nO());function Ove(t,e){if(typeof e=="function"){var r=e(t);return r}return(0,Cve.default)({},t,e)}function Rve(t){var e=t.children,r=t.theme,n=(0,kve.default)(),o=_H.default.useMemo(function(){var a=n===null?r:Ove(n,r);return a!=null&&(a[Pve.default]=n!==null),a},[r,n]);return _H.default.createElement(Ive.default.Provider,{value:o},e)}var Dve=Rve;DS.default=Dve});var SH=_(gR=>{"use strict";var Nve=$();Object.defineProperty(gR,"__esModule",{value:!0});Object.defineProperty(gR,"default",{enumerable:!0,get:function(){return Ave.default}});var Ave=Nve(bH())});var wH=_(NS=>{"use strict";var Ru=$();Object.defineProperty(NS,"__esModule",{value:!0});NS.default=void 0;var vR=Ru(We()),EH=Ru(ut()),TH=Ru(z()),DYe=Ru(je()),Mve=Ru(gv()),NYe=at(),Fve=Ru(bS()),qve=Ru(cO()),jve=Ru(Dp()),Lve=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(n){var o=r.defaultTheme,a=r.withTheme,i=a===void 0?!1:a,s=r.name,u=(0,EH.default)(r,["defaultTheme","withTheme","name"]),l=s;if(0&&!s)var c;var p=(0,Fve.default)(e,(0,vR.default)({defaultTheme:o,Component:n,name:s||n.displayName,classNamePrefix:l},u)),d=TH.default.forwardRef(function(m,g){var v=m.classes,h=m.innerRef,y=(0,EH.default)(m,["classes","innerRef"]),b=p((0,vR.default)({},n.defaultProps,m)),E,w=y;return(typeof s=="string"||i)&&(E=(0,jve.default)()||o,s&&(w=(0,qve.default)({theme:E,name:s,props:y})),i&&!w.theme&&(w.theme=E)),TH.default.createElement(n,(0,vR.default)({ref:h||g,classes:b},w))});return(0,Mve.default)(d,n),d}},Bve=Lve;NS.default=Bve});var xH=_(yR=>{"use strict";var Uve=$();Object.defineProperty(yR,"__esModule",{value:!0});Object.defineProperty(yR,"default",{enumerable:!0,get:function(){return zve.default}});var zve=Uve(wH())});var kH=_(yv=>{"use strict";var qp=$();Object.defineProperty(yv,"__esModule",{value:!0});yv.withThemeCreator=IH;yv.default=void 0;var Wve=qp(We()),$ve=qp(ut()),CH=qp(z()),FYe=qp(je()),Hve=qp(gv()),qYe=at(),Gve=qp(Dp());function IH(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.defaultTheme,r=function(o){var a=CH.default.forwardRef(function(s,u){var l=s.innerRef,c=(0,$ve.default)(s,["innerRef"]),p=(0,Gve.default)()||e;return CH.default.createElement(o,(0,Wve.default)({theme:p,ref:l||u},c))});return(0,Hve.default)(a,o),a};return r}var Vve=IH(),Kve=Vve;yv.default=Kve});var PH=_(AS=>{"use strict";var Yve=Ne();Object.defineProperty(AS,"__esModule",{value:!0});var Jve={};Object.defineProperty(AS,"default",{enumerable:!0,get:function(){return _R.default}});var _R=Yve(kH());Object.keys(_R).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(Jve,t)||Object.defineProperty(AS,t,{enumerable:!0,get:function(){return _R[t]}})})});var An=_(At=>{"use strict";var vo=Ne();Object.defineProperty(At,"__esModule",{value:!0});var yo={createGenerateClassName:!0,createStyles:!0,getThemeProps:!0,jssPreset:!0,makeStyles:!0,mergeClasses:!0,ServerStyleSheets:!0,styled:!0,StylesProvider:!0,ThemeProvider:!0,useTheme:!0,withStyles:!0,withTheme:!0};Object.defineProperty(At,"createGenerateClassName",{enumerable:!0,get:function(){return bR.default}});Object.defineProperty(At,"createStyles",{enumerable:!0,get:function(){return SR.default}});Object.defineProperty(At,"getThemeProps",{enumerable:!0,get:function(){return ER.default}});Object.defineProperty(At,"jssPreset",{enumerable:!0,get:function(){return TR.default}});Object.defineProperty(At,"makeStyles",{enumerable:!0,get:function(){return wR.default}});Object.defineProperty(At,"mergeClasses",{enumerable:!0,get:function(){return xR.default}});Object.defineProperty(At,"ServerStyleSheets",{enumerable:!0,get:function(){return CR.default}});Object.defineProperty(At,"styled",{enumerable:!0,get:function(){return IR.default}});Object.defineProperty(At,"StylesProvider",{enumerable:!0,get:function(){return kR.default}});Object.defineProperty(At,"ThemeProvider",{enumerable:!0,get:function(){return PR.default}});Object.defineProperty(At,"useTheme",{enumerable:!0,get:function(){return OR.default}});Object.defineProperty(At,"withStyles",{enumerable:!0,get:function(){return RR.default}});Object.defineProperty(At,"withTheme",{enumerable:!0,get:function(){return DR.default}});var BYe=at(),bR=vo(Z0());Object.keys(bR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return bR[t]}})});var SR=vo($$());Object.keys(SR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return SR[t]}})});var ER=vo(cO());Object.keys(ER).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return ER[t]}})});var TR=vo(WO());Object.keys(TR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return TR[t]}})});var wR=vo(bS());Object.keys(wR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return wR[t]}})});var xR=vo(GO());Object.keys(xR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return xR[t]}})});var CR=vo(rH());Object.keys(CR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return CR[t]}})});var IR=vo(yH());Object.keys(IR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return IR[t]}})});var kR=vo(vS());Object.keys(kR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return kR[t]}})});var PR=vo(SH());Object.keys(PR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return PR[t]}})});var OR=vo(Dp());Object.keys(OR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return OR[t]}})});var RR=vo(xH());Object.keys(RR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return RR[t]}})});var DR=vo(PH());Object.keys(DR).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(yo,t)||Object.defineProperty(At,t,{enumerable:!0,get:function(){return DR[t]}})})});var OH=_(NR=>{"use strict";Object.defineProperty(NR,"__esModule",{value:!0});NR.default=Zve;var Xve=An();function Zve(t){return(0,Xve.createStyles)(t)}});var jp=_(MS=>{"use strict";var Qve=$();Object.defineProperty(MS,"__esModule",{value:!0});MS.default=void 0;var eye=Qve(J0()),tye=(0,eye.default)(),rye=tye;MS.default=rye});var DH=_(FS=>{"use strict";var RH=$();Object.defineProperty(FS,"__esModule",{value:!0});FS.default=void 0;var nye=RH(We()),oye=An(),aye=RH(jp());function iye(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,oye.makeStyles)(t,(0,nye.default)({defaultTheme:aye.default},e))}var sye=iye;FS.default=sye});var MH=_(ss=>{"use strict";var uye=$();Object.defineProperty(ss,"__esModule",{value:!0});ss.isUnitless=lye;ss.getUnit=AH;ss.toUnitless=Du;ss.convertLength=cye;ss.alignProperty=dye;ss.fontGrid=pye;ss.responsiveProperty=fye;var NH=uye(po());function lye(t){return String(parseFloat(t)).length===String(t).length}function AH(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Du(t){return parseFloat(t)}function cye(t){return function(e,r){var n=AH(e);if(n===r)return e;var o=Du(e);if(n!=="px"){if(n==="em")o=Du(e)*Du(t);else if(n==="rem")return o=Du(e)*Du(t),e}var a=o;if(r!=="px")if(r==="em")a=o/Du(t);else if(r==="rem")a=o/Du(t);else return e;return parseFloat(a.toFixed(5))+r}}function dye(t){var e=t.size,r=t.grid,n=e-e%r,o=n+r;return e-n{"use strict";var mye=$();Object.defineProperty(MR,"__esModule",{value:!0});MR.default=gye;var AR=mye(We()),hye=at(),Lp=MH();function gye(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.breakpoints,n=r===void 0?["sm","md","lg"]:r,o=e.disableAlign,a=o===void 0?!1:o,i=e.factor,s=i===void 0?2:i,u=e.variants,l=u===void 0?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:u,c=(0,AR.default)({},t);c.typography=(0,AR.default)({},c.typography);var p=c.typography,d=(0,Lp.convertLength)(p.htmlFontSize),f=n.map(function(m){return c.breakpoints.values[m]});return l.forEach(function(m){var g=p[m],v=parseFloat(d(g.fontSize,"rem"));if(!(v<=1)){var h=v,y=1+(h-1)/s,b=g.lineHeight;if(!(0,Lp.isUnitless)(b)&&!a)throw new Error((0,hye.formatMuiErrorMessage)(6));(0,Lp.isUnitless)(b)||(b=parseFloat(d(b,"rem"))/parseFloat(v));var E=null;a||(E=function(S){return(0,Lp.alignProperty)({size:S,grid:(0,Lp.fontGrid)({pixels:4,lineHeight:b,htmlFontSize:p.htmlFontSize})})}),p[m]=(0,AR.default)({},g,(0,Lp.responsiveProperty)({cssProperty:"fontSize",min:y,max:h,unit:"rem",breakpoints:f,transform:E}))}}),c}});var jH=_(qS=>{"use strict";var qH=$();Object.defineProperty(qS,"__esModule",{value:!0});qS.default=void 0;var vye=qH(We()),yye=An(),_ye=qH(jp()),bye=function(e){var r=(0,yye.styled)(e);return function(n,o){return r(n,(0,vye.default)({defaultTheme:_ye.default},o))}},Sye=bye;qS.default=Sye});var jS=_(FR=>{"use strict";var LH=$();Object.defineProperty(FR,"__esModule",{value:!0});FR.default=wye;var Eye=An(),KYe=LH(z()),Tye=LH(jp());function wye(){var t=(0,Eye.useTheme)()||Tye.default;return t}});var Mt=_(LS=>{"use strict";var BH=$();Object.defineProperty(LS,"__esModule",{value:!0});LS.default=void 0;var xye=BH(We()),Cye=An(),Iye=BH(jp());function kye(t,e){return(0,Cye.withStyles)(t,(0,xye.default)({defaultTheme:Iye.default},e))}var Pye=kye;LS.default=Pye});var UH=_(BS=>{"use strict";var Oye=$();Object.defineProperty(BS,"__esModule",{value:!0});BS.default=void 0;var Rye=An(),Dye=Oye(jp()),Nye=(0,Rye.withThemeCreator)({defaultTheme:Dye.default}),Aye=Nye;BS.default=Aye});var Up=_(Or=>{"use strict";var Nu=$(),Mye=Ne();Object.defineProperty(Or,"__esModule",{value:!0});var $H={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(Or,"createTheme",{enumerable:!0,get:function(){return HH.default}});Object.defineProperty(Or,"createMuiTheme",{enumerable:!0,get:function(){return HH.createMuiTheme}});Object.defineProperty(Or,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return Fye.default}});Object.defineProperty(Or,"createStyles",{enumerable:!0,get:function(){return qye.default}});Object.defineProperty(Or,"makeStyles",{enumerable:!0,get:function(){return jye.default}});Object.defineProperty(Or,"responsiveFontSizes",{enumerable:!0,get:function(){return Lye.default}});Object.defineProperty(Or,"styled",{enumerable:!0,get:function(){return Bye.default}});Object.defineProperty(Or,"useTheme",{enumerable:!0,get:function(){return Uye.default}});Object.defineProperty(Or,"withStyles",{enumerable:!0,get:function(){return zye.default}});Object.defineProperty(Or,"withTheme",{enumerable:!0,get:function(){return Wye.default}});Object.defineProperty(Or,"createGenerateClassName",{enumerable:!0,get:function(){return Bp.createGenerateClassName}});Object.defineProperty(Or,"jssPreset",{enumerable:!0,get:function(){return Bp.jssPreset}});Object.defineProperty(Or,"ServerStyleSheets",{enumerable:!0,get:function(){return Bp.ServerStyleSheets}});Object.defineProperty(Or,"StylesProvider",{enumerable:!0,get:function(){return Bp.StylesProvider}});Object.defineProperty(Or,"MuiThemeProvider",{enumerable:!0,get:function(){return Bp.ThemeProvider}});Object.defineProperty(Or,"ThemeProvider",{enumerable:!0,get:function(){return Bp.ThemeProvider}});var zH=Ql();Object.keys(zH).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call($H,t)||Object.defineProperty(Or,t,{enumerable:!0,get:function(){return zH[t]}})});var HH=Mye(J0()),Fye=Nu(U$()),qye=Nu(OH()),jye=Nu(DH()),Lye=Nu(FH()),Bye=Nu(jH()),WH=xp();Object.keys(WH).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call($H,t)||Object.defineProperty(Or,t,{enumerable:!0,get:function(){return WH[t]}})});var Uye=Nu(jS()),zye=Nu(Mt()),Wye=Nu(UH()),Bp=An()});var jR=_(US=>{"use strict";var $ye=$();Object.defineProperty(US,"__esModule",{value:!0});US.default=void 0;var Hye=Up(),Yo=$ye(C1()),qR=11/23/100;function GH(t){var e={r:0,g:0,b:0};if(t.length===7)e.r=parseInt(t.substr(1,2),16),e.g=parseInt(t.substr(3,2),16),e.b=parseInt(t.substr(5,2),16);else if(t.length===4){var r=t.substr(1,1),n=t.substr(2,1),o=t.substr(3,1);e.r=parseInt(r+r,16),e.g=parseInt(n+n,16),e.b=parseInt(o+o,16)}return e}function Gye(t){return"#".concat(Math.round(t.r).toString(16)).concat(Math.round(t.g).toString(16)).concat(Math.round(t.b).toString(16))}function Vye(t,e,r){var n=GH(t),o=GH(e);return n.r+=o.r*(.05+qR*(r-1)),n.g+=o.g*(.05+qR*(r-1)),n.b+=o.b*(.05+qR*(r-1)),Gye(n)}function VH(t,e){for(var r={},n=1;n<=24;n++)r["elevation".concat(n)]={backgroundColor:Vye(t,e,n)};return r}var Kye=function(e){var r;return e==="dark"?r={name:e,palette:{type:"dark",background:{paper:"#121212",default:"#121212"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}},overrides:{MuiAppBar:{colorDefault:{backgroundColor:"#272727"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Yo.default[200],"&:hover":{color:Yo.default[100]}}},MuiPaper:VH("#121212","#fff")}}:e==="blue"?r={name:e,palette:{type:"dark",background:{paper:"#151d21",default:"#151d21"},primary:{main:"#4dabf5"},secondary:{main:"#436a93"},expert:"#14bb00",text:{primary:"#ffffff",secondary:"#ffffff"}},overrides:{MuiAppBar:{colorDefault:{backgroundColor:"#2a3135"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Yo.default[200],"&:hover":{color:Yo.default[100]}}},MuiPaper:VH("#151d21","#fff")}}:e==="colored"?r={name:e,palette:{type:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#96fc96"},overrides:{MuiAppBar:{colorDefault:{backgroundColor:"#3399CC"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Yo.default[400],"&:hover":{color:Yo.default[300]}}}}}:e==="PT"?r={name:e,palette:{type:"light",primary:{main:"#0F99DE"},secondary:{main:"#88A536"},expert:"#BD1B24"},overrides:{MuiAppBar:{colorDefault:{backgroundColor:"#0F99DE"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Yo.default[400],"&:hover":{color:Yo.default[300]}}}}}:e==="DX"?r={name:e,palette:{type:"light",primary:{main:"#F5F5F7"},secondary:{main:"#a9a9a9"},expert:"#BD1B24",text:{primary:"#007AFE",secondary:"#007AFE",disabled:"#007AFEAA"}},overrides:{MuiAppBar:{colorDefault:{backgroundColor:"#a9a9a9"}},MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Yo.default[400],"&:hover":{color:Yo.default[300]}}}}}:r={name:e,palette:{type:"light",primary:{main:"#3399CC"},secondary:{main:"#164477"},expert:"#14bb00"},overrides:{MuiLink:{root:{textTransform:"uppercase",transition:"color .3s ease",color:Yo.default[400],"&:hover":{color:Yo.default[300]}}}}},r.toolbar={height:48},r.saveToolbar={background:r.palette.primary.main,button:{borderRadius:3,height:32}},(0,Hye.createTheme)(r)},Yye=Kye;US.default=Yye});var _o=_(WS=>{"use strict";var LR=$();Object.defineProperty(WS,"__esModule",{value:!0});WS.default=void 0;var Jye=LR(ho()),Xye=LR(Yn()),BR=LR(po()),zS=function(){function t(){(0,Jye.default)(this,t)}return(0,Xye.default)(t,null,[{key:"setLanguage",value:function(r){r&&(t.lang=r)}},{key:"extendTranslations",value:function(r,n){try{n?(t.translations[n]||console.warn("Used unknown language: ".concat(n)),t.translations[n]=t.translations[n]||{},Object.keys(r).forEach(function(o){t.translations[n][o]?t.translations[n][o]!==r[o]&&console.warn('Translation for word "'.concat(o,'" in "').concat(n,'" was ignored: existing = "').concat(t.translations[n][o],'", new = ').concat(r[o])):t.translations[n][o]=r[o]})):Object.keys(r).forEach(function(o){Object.keys(r[o]).forEach(function(a){t.translations[a]||console.warn("Used unknown language: ".concat(a)),t.translations[a][o]?t.translations[a][o]!==r[o][a]&&console.warn('Translation for word "'.concat(o,'" in "').concat(a,'" was ignored: existing = "').concat(t.translations[a][o],'", new = ').concat(r[o][a])):t.translations[a][o]=r[o][a]})})}catch(o){console.error("Cannot apply translations: ".concat(o))}}},{key:"setTranslations",value:function(r){r&&(t.translations=r)}},{key:"getLanguage",value:function(){return t.lang}},{key:"t",value:function(r){var n=t.translations[t.lang];if(n){var o=n[r];o?r=o:t._disableWarning&&console.log("Translate: ".concat(r))}for(var a=arguments.length,i=new Array(a>1?a-1:0),s=1;s{"use strict";var dc=$();Object.defineProperty(GS,"__esModule",{value:!0});GS.default=void 0;var Qye=dc(rc()),us=dc(Go()),e_e=dc(ho()),t_e=dc(Yn()),HS=dc(po()),cc=dc(z()),$S=dc(_o()),Qa="material",r_e=["Su","Mo","Tu","We","Th","Fr","Sa"],n_e=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],UR={0:"0x00 - good",1:"0x01 - general problem",2:"0x02 - no connection problem",16:"0x10 - substitute value from controller",32:"0x20 - substitute initial value",64:"0x40 - substitute value from device or instance",128:"0x80 - substitute value from sensor",17:"0x11 - general problem by instance",65:"0x41 - general problem by device",129:"0x81 - general problem by sensor",18:"0x12 - instance not connected",66:"0x42 - device not connected",130:"0x82 - sensor not connected",68:"0x44 - device reports error",132:"0x84 - sensor reports error"},_v=function(){function t(){(0,e_e.default)(this,t)}return(0,t_e.default)(t,null,[{key:"CapitalWords",value:function(r){return(r||"").split(/[\s_]/).filter(function(n){return n}).map(function(n){return n?n[0].toUpperCase()+n.substring(1).toLowerCase():""}).join(" ")}},{key:"formatSeconds",value:function(r){var n=Math.floor(r/86400);r%=3600*24;var o=Math.floor(r/3600);o<10&&(o="0"+o),r%=3600;var a=Math.floor(r/60);a<10&&(a="0"+a),r%=60,r=Math.floor(r),r<10&&(r="0"+r);var i="";return n&&(i+="".concat(n," ").concat($S.default.t("ra_daysShortText")," ")),i+="".concat(o,":").concat(a,":").concat(r),i}},{key:"getObjectName",value:function(r,n,o,a,i){var s=r[n],u=n,l=i?"desc":"name";if(typeof o=="string"&&!a&&(a={language:o},o=null),a=a||{},a.language||(a.language=r["system.config"]&&r["system.config"].common&&r["system.config"].common.language||window.sysLang||"en"),o&&o.name)u=o.name,(0,us.default)(u)==="object"&&(u=u[a.language]||u.en);else if(s&&s.common&&s.common[l])u=s.common[l],l!=="desc"&&!u&&s.common.desc&&(u=s.common.desc),(0,us.default)(u)==="object"&&(u=u[a.language]||u.en||u.de||u.ru||""),u=(u||"").toString().replace(/[_.]/g," "),u===u.toUpperCase()&&(u=u[0]+u.substring(1).toLowerCase());else{var c=n.lastIndexOf(".");u=n.substring(c+1).replace(/[_.]/g," "),u=t.CapitalWords(u)}return u.trim()}},{key:"getObjectNameFromObj",value:function(r,n,o,a){var i=r,s=r&&r._id||"",u=a?"desc":"name";return typeof n=="string"&&!o&&(o={language:n},n=null),o=o||{},n&&n.name?(s=n.name,(0,us.default)(s)==="object"&&(s=s[o.language]||s.en)):i&&i.common&&i.common[u]&&(s=i.common[u],u!=="desc"&&!s&&i.common.desc&&(s=i.common.desc),(0,us.default)(s)==="object"&&(s=s[o.language]||s.en),s=(s||"").toString().replace(/[_.]/g," "),s===s.toUpperCase()&&(s=s[0]+s.substring(1).toLowerCase())),s.trim()}},{key:"getSettingsOrder",value:function(r,n,o){r&&r.hasOwnProperty("common")&&(r=r.common);var a;if(r&&r.custom){a=(r.custom||{})[Qa];var i=o.user||"admin";if(a&&a[i]){if(n){if(a[i].subOrder&&a[i].subOrder[n])return JSON.parse(JSON.stringify(a[i].subOrder[n]))}else if(a[i].order)return JSON.parse(JSON.stringify(a[i].order))}}return null}},{key:"getSettingsCustomURLs",value:function(r,n,o){r&&r.hasOwnProperty("common")&&(r=r.common);var a;if(r&&r.custom){a=(r.custom||{})[Qa];var i=o.user||"admin";if(a&&a[i]){if(n){if(a[i].subURLs&&a[i].subURLs[n])return JSON.parse(JSON.stringify(a[i].subURLs[n]))}else if(a[i].URLs)return JSON.parse(JSON.stringify(a[i].URLs))}}return null}},{key:"reorder",value:function(r,n,o){var a=Array.from(r),i=a.splice(n,1),s=(0,Qye.default)(i,1),u=s[0];return a.splice(o,0,u),a}},{key:"getSettings",value:function(r,n,o){var a,i=r&&r._id||n&&n.id;if(r&&r.hasOwnProperty("common")&&(r=r.common),r&&r.custom?(a=r.custom||{},a=a[Qa]&&a[Qa][n.user||"admin"]?JSON.parse(JSON.stringify(a[Qa][n.user||"admin"])):{enabled:!0}):a={enabled:o===void 0?!0:o,useCustom:!1},a.hasOwnProperty("enabled")||(a.enabled=o===void 0?!0:o),n&&(!a.name&&n.name&&(a.name=n.name),!a.icon&&n.icon&&(a.icon=n.icon),!a.color&&n.color&&(a.color=n.color)),r&&(!a.color&&r.color&&(a.color=r.color),!a.icon&&r.icon&&(a.icon=r.icon),!a.name&&r.name&&(a.name=r.name)),(0,us.default)(a.name)==="object"&&(a.name=a.name[n.language]||a.name.en,a.name=(a.name||"").toString().replace(/_/g," "),a.name===a.name.toUpperCase()&&(a.name=a.name[0]+a.name.substring(1).toLowerCase())),!a.name&&i){var s=i.lastIndexOf(".");a.name=i.substring(s+1).replace(/[_.]/g," "),a.name=(a.name||"").toString().replace(/_/g," "),a.name=t.CapitalWords(a.name)}return a}},{key:"setSettings",value:function(r,n,o){if(r){r.common=r.common||{},r.common.custom=r.common.custom||{},r.common.custom[Qa]=r.common.custom[Qa]||{},r.common.custom[Qa][o.user||"admin"]=n;var a=r.common.custom[Qa][o.user||"admin"];return a.useCommon&&(a.color!==void 0&&(r.common.color=a.color,delete a.color),a.icon!==void 0&&(r.common.icon=a.icon,delete a.icon),a.name!==void 0&&((0,us.default)(r.common.name)!=="object"&&(r.common.name={}),r.common.name[o.language]=a.name,delete a.name)),!0}else return!1}},{key:"getIcon",value:function(r,n){return r&&r.icon?r.icon.length<=2?cc.default.createElement("span",{style:n||{}},r.icon):r.icon.startsWith("data:image")?cc.default.createElement("img",{alt:r.name,src:r.icon,style:n||{}}):cc.default.createElement("img",{alt:r.name,src:(r.prefix||"")+r.icon,style:n||{}}):null}},{key:"getObjectIcon",value:function(r,n){if((0,us.default)(r)==="object"&&(n=r,r=n._id),n&&n.common&&n.common.icon){var o=n.common.icon;if(typeof o=="string"&&o.length<=2)return o;if(o.startsWith("data:image"))return o;var a=r.split(".");return a[0]==="system"?o="adapter/"+a[2]+(o.startsWith("/")?"":"/")+o:o="adapter/"+a[0]+(o.startsWith("/")?"":"/")+o,window.location.pathname.match(/adapter\/[^/]+\/[^/]+\.html/)||window.location.pathname.match(/material\/[.\d]+/)?o="../../"+o:window.location.pathname.match(/material\//)&&(o="../"+o),o}else return null}},{key:"splitCamelCase",value:function(r){if(0){var n;for(var o;o=0&&r<11.25)return"N";if(r>=11.25&&r<33.75)return"NNE";if(r>=33.75&&r<56.25)return"NE";if(r>=56.25&&r<78.75)return"ENE";if(r>=78.75&&r<101.25)return"E";if(r>=101.25&&r<123.75)return"ESE";if(r>=123.75&&r<146.25)return"SE";if(r>=146.25&&r<168.75)return"SSE";if(r>=168.75&&r<191.25)return"S";if(r>=191.25&&r<213.75)return"SSW";if(r>=213.75&&r<236.25)return"SW";if(r>=236.25&&r<258.75)return"WSW";if(r>=258.75&&r<281.25)return"W";if(r>=281.25&&r<303.75)return"WNW";if(r>=303.75&&r<326.25)return"NW";if(r>=326.25&&r<348.75)return"NNW";if(r>=348.75)return"N"}},{key:"padding",value:function(r){return typeof r=="string"?r.length<2?"0"+r:r:r<10?"0"+r:r}},{key:"setDataFormat",value:function(r){r&&(t.dateFormat=r.toUpperCase().split(/[.-/]/),t.dateFormat.splice(t.dateFormat.indexOf("YYYY"),1))}},{key:"date2string",value:function(r){if(typeof r=="string"){if(r=r.trim(),!r)return"";if(r.match(/^[\w\s]+$/))return r;var n=r.match(/(\d{1,4})[-./](\d{1,2})[-./](\d{1,4})/);if(n){var o=[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)],a=o.find(function(u){return u>31});o.splice(o.indexOf(a),1);var i=o.find(function(u){return u>12});i?(o.splice(o.indexOf(i),1),r=new Date(a,o[0]-1,i)):t.dateFormat[0][0]==="M"&&t.dateFormat[1][0]==="D"?(r=new Date(a,o[0]-1,o[1]),Math.abs(r.getTime-Date.now())>36e5*24*10&&(r=new Date(a,o[1]-1,o[0]))):t.dateFormat[0][0]==="D"&&t.dateFormat[1][0]==="M"?(r=new Date(a,o[1]-1,o[0]),Math.abs(r.getTime-Date.now())>36e5*24*10&&(r=new Date(a,o[0]-1,o[1]))):r=new Date(r)}else r=new Date(r)}else r=new Date(r);var s=$S.default.t("ra_dow_"+r_e[r.getDay()]).replace("ra_dow_","");return s+=". "+r.getDate()+" "+$S.default.t("ra_month_"+n_e[r.getMonth()]).replace("ra_month_",""),s}},{key:"renderTextWithA",value:function(r){var n=r.match(/|/);if(n){var o=[],a=1;do{var i=r.split(n[0]);if(i[0]&&o.push(cc.default.createElement("span",{key:"a"+a++},i[0])),n[0].startsWith("([^<]*)|/),n||i[1]&&o.push(cc.default.createElement("span",{key:"a"+a++},i[1]))}while(n);return o}else return r}},{key:"getSmartName",value:function(r,n,o,a){return n?a?r[n]&&r[n].common&&r[n].common.custom&&r[n].common.custom[o]&&r[n].common.custom[o].smartName||null:r[n].common.smartName:a?r&&!r.common?r.smartName:r&&r.common&&r.common.custom&&r.common.custom[o]?r.common.custom[o].smartName:void 0:r.common?r&&!r.common?r.smartName:r.common.smartName:r.smartName}},{key:"getSmartNameFromObj",value:function(r,n,o){return o?r&&!r.common?r.smartName:r&&r.common&&r.common.custom&&r.common.custom[n]?r.common.custom[n].smartName:void 0:r.common?r&&!r.common?r.smartName:r.common.smartName:r.smartName}},{key:"enableSmartName",value:function(r,n,o){o?(r.common.custom=r.common.custom||{},r.common.custom[n]=r.common.custom[n]||{},r.common.custom[n].smartName={}):r.common.smartName={}}},{key:"removeSmartName",value:function(r,n,o){o?r.common&&r.common.custom&&r.common.custom[n]&&(r.common.custom[n]=null):r.common.smartName=null}},{key:"updateSmartName",value:function(r,n,o,a,i,s){var u=$S.default.getLanguage();if(typeof r.common.smartName=="string"){var l=r.common.smartName;r.common.smartName={},r.common.smartName[u]=l}if(r.native&&r.native.byON){delete r.native.byON;var c=r.common.smartName;(!c||(0,us.default)(c)!=="object")&&(c={en:c},c[u]=c.en),r.common.smartName=c}if(a!==void 0&&(s?(r.common.custom=r.common.custom||{},r.common.custom[i]=r.common.custom[i]||{},r.common.custom[i].smartName=r.common.custom[i].smartName||{},a?r.common.custom[i].smartName.smartType=a:delete r.common.custom[i].smartName.smartType):(r.common.smartName=r.common.smartName||{},a?r.common.smartName.smartType=a:delete r.common.smartName.smartType)),o!==void 0&&(s?(r.common.custom=r.common.custom||{},r.common.custom[i]=r.common.custom[i]||{},r.common.custom[i].smartName=r.common.custom[i].smartName||{},r.common.custom[i].smartName.byON=o):(r.common.smartName=r.common.smartName||{},r.common.smartName.byON=o)),n!==void 0){var p;if(s?(r.common.custom=r.common.custom||{},r.common.custom[i]=r.common.custom[i]||{},r.common.custom[i].smartName=r.common.custom[i].smartName||{},p=r.common.custom[i].smartName):(r.common.smartName=r.common.smartName||{},p=r.common.smartName),p[u]=n,p&&(!p[u]||p[u]===r.common.name&&(!r.common.role||r.common.role.indexOf("button")>=0))){delete p[u];var d=!0;for(var f in p)if(p.hasOwnProperty(f)){d=!1;break}d&&(s?r.common.custom[i].smartName.byON===void 0?delete r.common.custom[i]:(delete r.common.custom[i].en,delete r.common.custom[i].de,delete r.common.custom[i].ru,delete r.common.custom[i].nl,delete r.common.custom[i].pl,delete r.common.custom[i].it,delete r.common.custom[i].fr,delete r.common.custom[i].pt,delete r.common.custom[i].es,delete r.common.custom[i]["zh-cn"]):r.common.smartName.byON!==void 0?(delete r.common.smartName.en,delete r.common.smartName.de,delete r.common.smartName.ru,delete r.common.smartName.nl,delete r.common.smartName.pl,delete r.common.smartName.it,delete r.common.smartName.fr,delete r.common.smartName.pt,delete r.common.smartName.es,delete r.common.smartName["zh-cn"]):r.common.smartName=null)}}}},{key:"disableSmartName",value:function(r,n,o){o?(r.common.custom=r.common.custom||{},r.common.custom[n]=r.common.custom[n]||{},r.common.custom[n].smartName=!1):r.common.smartName=!1}},{key:"copyToClipboard",value:function(r,n){var o=window.document.createElement("textarea");o.value=r,window.document.body.appendChild(o),o.select(),window.document.execCommand("copy"),window.document.body.removeChild(o),console.log(r),n&&n.stopPropagation(),n&&n.preventDefault()}},{key:"getFileExtension",value:function(r){var n=(r||"").lastIndexOf(".");return n!==-1?r.substring(n+1).toLowerCase():null}},{key:"formatBytes",value:function(r){if(Math.abs(r)<1024)return r+" B";var n=["KB","MB","GB"],o=-1;do r/=1024,++o;while(Math.abs(r)>=1024&&o186?"#000000":"#FFFFFF":(i=(255-i).toString(16),s=(255-s).toString(16),u=(255-u).toString(16),"#"+i.padStart(2,"0")+s.padStart(2,"0")+u.padStart(2,"0"))}},{key:"_toVal",value:function(r){var n,o,a="";if(typeof r=="string"||typeof r=="number")a+=r;else if((0,us.default)(r)==="object")if(Array.isArray(r))for(n=0;n0&&arguments[0]!==void 0?arguments[0]:"";return window.vendorPrefix&&window.vendorPrefix!=="@@vendorPrefix@@"?window.vendorPrefix:r||(window.localStorage&&window.localStorage.getItem("App.themeName")?window.localStorage.getItem("App.themeName"):window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"colored")}},{key:"getThemeType",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return window.vendorPrefix&&window.vendorPrefix!=="@@vendorPrefix@@"?"light":(r=r||window.localStorage&&window.localStorage.getItem("App.themeName"),r==="dark"||r==="blue"?"dark":"light")}},{key:"setThemeName",value:function(r){window.vendorPrefix&&window.vendorPrefix!=="@@vendorPrefix@@"||(window.localStorage.setItem("App.themeName",r),window.localStorage.setItem("App.theme",r==="dark"||r==="blue"?"dark":"light"))}},{key:"toggleTheme",value:function(r){if(window.vendorPrefix&&window.vendorPrefix!=="@@vendorPrefix@@")return window.vendorPrefix;r=r||window.localStorage&&window.localStorage.getItem("App.themeName");var n=t.getThemeNames(),o=n.indexOf(r),a;return o!==-1?a=n[(o+1)%n.length]:a=n[0],t.setThemeName(a),a}},{key:"getThemeNames",value:function(){return window.vendorPrefix&&window.vendorPrefix!=="@@vendorPrefix@@"?[window.vendorPrefix]:["light","dark","blue","colored"]}},{key:"parseQuery",value:function(r){r=(r||"").toString().replace(/^\?/,"");var n={};return r.split("&").forEach(function(o){if(o=o.trim(),o){var a=o.split("="),i=decodeURIComponent(a[0]).trim();if(a.length>1)if(n[i]=decodeURIComponent(a[1]),n[i]==="true")n[i]=!0;else if(n[i]==="false")n[i]=!1;else{var s=parseFloat(n[i]);s.toString()===n[i]&&(n[i]=s)}else n[i]=!0}}),n}},{key:"getParentId",value:function(r){var n=(r||"").toString().split(".");return n.length>1?(n.pop(),n.join(".")):null}},{key:"formatDate",value:function(r,n){if(!r)return"";var o,a=r.getMonth()+1;a<10&&(a="0"+a);var i=r.getDate();i<10&&(i="0"+i),n==="MM/DD/YYYY"?o=a+"/"+i+"/"+r.getFullYear():o=r.getFullYear()+"-"+a+"-"+i;var s=r.getHours();return s<10?o+=" 0"+s:o+=" "+s,s=r.getMinutes(),s<10?o+=":0"+s:o+=":"+s,s=r.getSeconds(),s<10?o+=":0"+s:o+=":"+s,s=r.getMilliseconds(),s<10?o+=".00"+s:s<100?o+=".0"+s:o+="."+s,o}},{key:"formatTime",value:function(r){if(r){r=Math.round(r);var n=Math.floor(r/(3600*24)),o=Math.floor(r%(3600*24)/3600),a=Math.floor(r%3600/60),i=r%60;return n?"".concat(n,".").concat(o.toString().padStart(2,"0"),":").concat(a.toString().padStart(2,"0"),":").concat(i.toString().padStart(2,"0")):o?"".concat(o,":").concat(a.toString().padStart(2,"0"),":").concat(i.toString().padStart(2,"0")):"0:".concat(a.toString().padStart(2,"0"),":").concat(i.toString().padStart(2,"0"))}else return"0:00:00"}},{key:"MDtext2link",value:function(r){var n=r.match(/\d+\.\)\s/);return n&&(r=r.replace(n[0],n[0].replace(/\s/," "))),r.replace(/[^a-zA-Zа-яА-Я0-9]/g,"").trim().replace(/\s/g,"").toLowerCase()}},{key:"openLink",value:function(r,n){r=r.replace(/\/\/([0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*)(:\d+)?\//i,"//[$1]$2/"),n==="this"?window.location=r:window.open(r,n||"_blank")}},{key:"MDgetTitle",value:function(r){var n=t.extractHeader(r),o=n.body,a=n.header;if(a.title)return a.title;o=o.replace(/{[^}]*}/g,""),o=o.trim();for(var i=o.replace(/\r/g,"").split(` `),s=0;s>16).toString(16).toUpperCase()),a}},{key:"clone",value:function(r){return JSON.parse(JSON.stringify(r))}},{key:"getStates",value:function(r){var n,o=r==null||(n=r.common)===null||n===void 0?void 0:n.states;if(o){if(typeof o=="string"&&o[0]==="{")try{o=JSON.parse(o)}catch(l){console.error("Cannot parse states: ".concat(o)),o=null}else if(typeof o=="string"){var a=o.split(";");o={};for(var i=0;i{"use strict";function WR(t){return ls.exports=WR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ls.exports.__esModule=!0,ls.exports.default=ls.exports,WR(t)}ls.exports=WR,ls.exports.__esModule=!0,ls.exports.default=ls.exports});var KH=_((oJe,bv)=>{"use strict";var a_e=cs();function i_e(t,e){for(;!{}.hasOwnProperty.call(t,e)&&(t=a_e(t))!==null;);return t}bv.exports=i_e,bv.exports.__esModule=!0,bv.exports.default=bv.exports});var YH=_((aJe,ds)=>{"use strict";var s_e=KH();function $R(){return ds.exports=$R=typeof Reflect!="undefined"&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=s_e(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},ds.exports.__esModule=!0,ds.exports.default=ds.exports,$R.apply(null,arguments)}ds.exports=$R,ds.exports.__esModule=!0,ds.exports.default=ds.exports});var Au=_((iJe,Sv)=>{"use strict";var u_e=pO();function l_e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u_e(t,e)}Sv.exports=l_e,Sv.exports.__esModule=!0,Sv.exports.default=Sv.exports});var Mu=_((sJe,Ev)=>{"use strict";var c_e=Go().default,d_e=lv();function f_e(t,e){if(e&&(c_e(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d_e(t)}Ev.exports=f_e,Ev.exports.__esModule=!0,Ev.exports.default=Ev.exports});var QH=_(Fu=>{"use strict";var KS=$();Object.defineProperty(Fu,"__esModule",{value:!0});Fu.default=Fu.PROGRESS=Fu.ERRORS=void 0;var p_e=KS(rc()),m_e=KS(ho()),h_e=KS(Yn()),HR=KS(je()),ei={CONNECTING:0,CONNECTED:1,OBJECTS_LOADED:2,READY:3};Fu.PROGRESS=ei;var fs="permissionError",ke="notConnectedError",JH=1300,g_e={PERMISSION_ERROR:fs,NOT_CONNECTED:ke};Fu.ERRORS=g_e;function XH(t){return t&&t.common&&!t.common.adminUI&&(t.common.noConfig?(t.common.adminUI=t.common.adminUI||{},t.common.adminUI.config="none"):t.common.jsonConfig?(t.common.adminUI=t.common.adminUI||{},t.common.adminUI.config="json"):t.common.materialize?(t.common.adminUI=t.common.adminUI||{},t.common.adminUI.config="materialize"):(t.common.adminUI=t.common.adminUI||{},t.common.adminUI.config="html"),t.common.jsonCustom?(t.common.adminUI=t.common.adminUI||{},t.common.adminUI.custom="json"):t.common.supportCustoms&&(t.common.adminUI=t.common.adminUI||{},t.common.adminUI.custom="json"),t.common.materializeTab&&t.common.adminTab?(t.common.adminUI=t.common.adminUI||{},t.common.adminUI.tab="materialize"):t.common.adminTab&&(t.common.adminUI=t.common.adminUI||{},t.common.adminUI.tab="html"),t.common.adminUI&&console.debug('Please add to "'.concat(t._id.replace(/\.\d+$/,""),'" common.adminUI=').concat(JSON.stringify(t.common.adminUI)))),t}var ZH=function(){function t(e){var r=this;(0,m_e.default)(this,t),e=e||{protocol:window.location.protocol,host:window.location.hostname},this.props=e,this.autoSubscribes=this.props.autoSubscribes||[],this.autoSubscribeLog=this.props.autoSubscribeLog,this.props.protocol=this.props.protocol||window.location.protocol,this.props.host=this.props.host||window.location.hostname,this.props.port=this.props.port||(window.location.port==="3000"?t.isWeb()?8082:8081:window.location.port),this.props.ioTimeout=Math.max(this.props.ioTimeout||2e4,2e4),this.props.cmdTimeout=Math.max(this.props.cmdTimeout||5e3,5e3),this.doNotLoadAllObjects=this.props.doNotLoadAllObjects===void 0?!0:this.props.doNotLoadAllObjects,this.doNotLoadACL=this.props.doNotLoadACL===void 0?!0:this.props.doNotLoadACL,this.states={},this.objects=null,this.acl=null,this.firstConnect=!0,this.waitForRestart=!1,this.systemLang="en",this.connected=!1,this._waitForFirstConnection=new Promise(function(n){r._waitForFirstConnectionResolve=n}),this.statesSubscribes={},this.objectsSubscribes={},this.onProgress=this.props.onProgress||function(){},this.onError=this.props.onError||function(n){console.error(n)},this.loaded=!1,this.loadTimer=null,this.loadCounter=0,this.admin5only=this.props.admin5only||!1,this.onConnectionHandlers=[],this.onLogHandlers=[],this._promises={},this.log.error=function(n){return r.log(n,"error")},this.log.warn=function(n){return r.log(n,"warn")},this.log.info=function(n){return r.log(n,"info")},this.log.debug=function(n){return r.log(n,"debug")},this.log.silly=function(n){return r.log(n,"silly")},this.startSocket()}return(0,h_e.default)(t,[{key:"startSocket",value:function(){var r=this;if(typeof window.io=="undefined"){if(typeof window.registerSocketOnLoad!="function")if(this.scriptLoadCounter=this.scriptLoadCounter||0,this.scriptLoadCounter++,this.scriptLoadCounter<30){setTimeout(function(){return r.startSocket()},100);return}else window.alert("Cannot load socket.io.js!");else window.registerSocketOnLoad(function(){return r.startSocket()});return}else if(this._socket)return;var n=this.props.host,o=this.props.port,a=this.props.protocol.replace(":",""),i=window.location.pathname;if(window.location.hostname==="iobroker.net"||window.location.hostname==="iobroker.pro")i="";else{if(window.socketUrl){var s=window.socketUrl.split(":");n=s[0]||n,o=s[1]||o,n.includes("://")&&(s=n.split("://"),a=s[0],n=s[1])}var u=i.lastIndexOf("/");if(u!==-1&&(i=i.substring(0,u+1)),t.isWeb()){var l=i.split("/");l.length>2&&(l.pop(),l.pop(),i=l.join("/"),i.endsWith("/")||(i+="/"))}}var c=o?"".concat(a,"://").concat(n,":").concat(o).concat(i):"".concat(a,"://").concat(n).concat(i);this._socket=window.io.connect(c,{path:i.endsWith("/")?i+"socket.io":i+"/socket.io",query:"ws=true",name:this.props.name,timeout:this.props.ioTimeout}),this._socket.on("connect",function(f){f!==!0?setTimeout(function(){return r.getVersion().then(function(d){var p=d.version.split("."),m=(0,p_e.default)(p,3),g=m[0],v=m[1],h=m[2],y=parseInt(g,10)*1e4+parseInt(v,10)*100+parseInt(h,10);y<40102?(r._authTimer=null,r.onPreConnect(!1,!1)):r._socket.emit("authenticate",function(b,E){return r.onPreConnect(b,E)})})},500):r._socket.emit("authenticate",function(d,p){return r.onPreConnect(d,p)})}),this._socket.on("reconnect",function(){r.onProgress(ei.READY),r.connected=!0,r.waitForRestart?window.location.reload(!1):(r._subscribe(!0),r.onConnectionHandlers.forEach(function(f){return f(!0)}))}),this._socket.on("disconnect",function(){r.connected=!1,r.subscribed=!1,r.onProgress(ei.CONNECTING),r.onConnectionHandlers.forEach(function(f){return f(!1)})}),this._socket.on("reauthenticate",function(){return r.authenticate()}),this._socket.on("log",function(f){r.props.onLog&&r.props.onLog(f),r.onLogHandlers.forEach(function(d){return d(f)})}),this._socket.on("error",function(f){var d=f||"";typeof d.toString!="function"&&(d=JSON.stringify(d),console.error("Received strange error: ".concat(d))),d=d.toString(),d.includes("User not authorized")?r.authenticate():window.alert("Socket Error: ".concat(f))}),this._socket.on("connect_error",function(f){return console.error("Connect error: ".concat(f))}),this._socket.on("permissionError",function(f){return r.onError({message:"no permission",operation:f.operation,type:f.type,id:f.id||""})}),this._socket.on("objectChange",function(f,d){return setTimeout(function(){return r.objectChange(f,d)},0)}),this._socket.on("stateChange",function(f,d){return setTimeout(function(){return r.stateChange(f,d)},0)}),this._socket.on("cmdStdout",function(f,d){return r.onCmdStdoutHandler&&r.onCmdStdoutHandler(f,d)}),this._socket.on("cmdStderr",function(f,d){return r.onCmdStderrHandler&&r.onCmdStderrHandler(f,d)}),this._socket.on("cmdExit",function(f,d){return r.onCmdExitHandler&&r.onCmdExitHandler(f,d)})}},{key:"onPreConnect",value:function(r,n){var o=this;this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this.connected=!0,this.isSecure=n,this.waitForRestart?window.location.reload(!1):(this.firstConnect?(this.loadTimer=setTimeout(function(){o.loadTimer=null,o.loadCounter++,o.loadCounter<10&&o.onConnect()},1e3),this.loaded||this.onConnect()):this.onProgress(ei.READY),this._subscribe(!0),this.onConnectionHandlers.forEach(function(a){return a(!0)})),this._waitForFirstConnectionResolve&&(this._waitForFirstConnectionResolve(),this._waitForFirstConnectionResolve=null)}},{key:"isConnected",value:function(){return this.connected}},{key:"waitForFirstConnection",value:function(){return this._waitForFirstConnection}},{key:"_getUserPermissions",value:function(r){if(this.doNotLoadACL)return r&&r();this._socket.emit("getUserPermissions",r)}},{key:"onConnect",value:function(){var r=this;this._getUserPermissions(function(n,o){if(n)return r.onError("Cannot read user permissions: "+n);if(!r.doNotLoadACL){if(r.loaded)return;r.loaded=!0,clearTimeout(r.loadTimer),r.loadTimer=null,r.onProgress(ei.CONNECTED),r.firstConnect=!1,r.acl=o}return(r.admin5only&&!window.vendorPrefix?r.getCompactSystemConfig():r.getSystemConfig()).then(function(a){if(r.doNotLoadACL){if(r.loaded)return;r.loaded=!0,clearTimeout(r.loadTimer),r.loadTimer=null,r.onProgress(ei.CONNECTED),r.firstConnect=!1}if(r.systemConfig=a,r.systemConfig&&r.systemConfig.common?r.systemLang=r.systemConfig.common.language:(r.systemLang=window.navigator.userLanguage||window.navigator.language,r.systemLang!=="en"&&r.systemLang!=="de"&&r.systemLang!=="ru"&&(r.systemConfig.common.language="en",r.systemLang="en")),r.props.onLanguage&&r.props.onLanguage(r.systemLang),r.doNotLoadAllObjects)r.objects=r.admin5only?{}:{"system.config":a},r.onProgress(ei.READY),r.props.onReady&&r.props.onReady(r.objects);else return r.getObjects().then(function(){r.onProgress(ei.READY),r.props.onReady&&r.props.onReady(r.objects)})}).catch(function(a){return r.onError("Cannot read system config: "+a)})})}},{key:"authenticate",value:function(){window.location.search.includes("&href=")?window.location="".concat(window.location.protocol,"//").concat(window.location.host).concat(window.location.pathname).concat(window.location.search).concat(window.location.hash):window.location="".concat(window.location.protocol,"//").concat(window.location.host).concat(window.location.pathname,"?login&href=").concat(window.location.search).concat(window.location.hash)}},{key:"subscribeState",value:function(r,n,o){if(typeof n=="function"&&(o=n,n=!1),this.statesSubscribes[r])!this.statesSubscribes[r].cbs.includes(o)&&this.statesSubscribes[r].cbs.push(o);else{var a=r.replace(/\./g,"\\.").replace(/\*/g,".*").replace(/\(/g,"\\(").replace(/\)/g,"\\)").replace(/\+/g,"\\+").replace(/\[/g,"\\[");a.indexOf("*")===-1&&(a+="$"),this.statesSubscribes[r]={reg:new RegExp(a),cbs:[]},this.statesSubscribes[r].cbs.push(o),this.connected&&this._socket.emit("subscribe",r)}typeof o=="function"&&this.connected&&(n?this.getBinaryState(r).then(function(i){return o(r,i)}).catch(function(i){return console.error('Cannot getForeignStates "'.concat(r,'": ').concat(JSON.stringify(i)))}):t.isWeb()?this._socket.emit("getStates",r,function(i,s){i&&console.error('Cannot getForeignStates "'.concat(r,'": ').concat(JSON.stringify(i))),s&&Object.keys(s).forEach(function(u){return o(u,s[u])})}):this._socket.emit("getForeignStates",r,function(i,s){i&&console.error('Cannot getForeignStates "'.concat(r,'": ').concat(JSON.stringify(i))),s&&Object.keys(s).forEach(function(u){return o(u,s[u])})}))}},{key:"unsubscribeState",value:function(r,n){if(this.statesSubscribes[r]){if(n){var o=this.statesSubscribes[r].cbs.indexOf(n);o!==-1&&this.statesSubscribes[r].cbs.splice(o,1)}else this.statesSubscribes[r].cbs=[];(!this.statesSubscribes[r].cbs||!this.statesSubscribes[r].cbs.length)&&(delete this.statesSubscribes[r],this.connected&&this._socket.emit("unsubscribe",r))}}},{key:"subscribeObject",value:function(r,n){if(this.objectsSubscribes[r])!this.objectsSubscribes[r].cbs.includes(n)&&this.objectsSubscribes[r].cbs.push(n);else{var o=r.replace(/\./g,"\\.").replace(/\*/g,".*");o.includes("*")||(o+="$"),this.objectsSubscribes[r]={reg:new RegExp(o),cbs:[]},this.objectsSubscribes[r].cbs.push(n),this.connected&&this._socket.emit("subscribeObjects",r)}return Promise.resolve()}},{key:"unsubscribeObject",value:function(r,n){if(this.objectsSubscribes[r]){if(n){var o=this.objectsSubscribes[r].cbs.indexOf(n);o!==-1&&this.objectsSubscribes[r].cbs.splice(o,1)}else this.objectsSubscribes[r].cbs=[];this.connected&&(!this.objectsSubscribes[r].cbs||!this.objectsSubscribes[r].cbs.length)&&(delete this.objectsSubscribes[r],this.connected&&this._socket.emit("unsubscribeObjects",r))}return Promise.resolve()}},{key:"objectChange",value:function(r,n){var o=this;if(this.objects){var a,i=!1;n?(n._rev&&this.objects[r]&&(this.objects[r]._rev=n._rev),this.objects[r]&&(a={_id:r,type:this.objects[r].type}),(!this.objects[r]||JSON.stringify(this.objects[r])!==JSON.stringify(n))&&(this.objects[r]=n,i=!0)):this.objects[r]&&(a={_id:r,type:this.objects[r].type},delete this.objects[r],i=!0),Object.keys(this.objectsSubscribes).forEach(function(s){(s===r||o.objectsSubscribes[s].reg.test(r))&&o.objectsSubscribes[s].cbs.forEach(function(u){return u(r,n,a)})}),i&&this.props.onObjectChange&&this.props.onObjectChange(r,n)}}},{key:"stateChange",value:function(r,n){for(var o in this.statesSubscribes)this.statesSubscribes.hasOwnProperty(o)&&this.statesSubscribes[o].reg.test(r)&&this.statesSubscribes[o].cbs.forEach(function(a){return a(r,n)})}},{key:"getStates",value:function(r){var n=this;return this.connected?new Promise(function(o,a){return n._socket.emit("getStates",function(i,s){return n.states=s,!r&&n.onProgress(ei.STATES_LOADED),i?a(i):o(n.states)})}):Promise.reject(ke)}},{key:"getState",value:function(r){var n=this;return this.connected?new Promise(function(o,a){return n._socket.emit("getState",r,function(i,s){return i?a(i):o(s)})}):Promise.reject(ke)}},{key:"getBinaryState",value:function(r){var n=this;return this.connected?new Promise(function(o,a){return n._socket.emit("getBinaryState",r,function(i,s){return i?a(i):o(s)})}):Promise.reject(ke)}},{key:"setBinaryState",value:function(r,n){var o=this;return this.connected?new Promise(function(a,i){return o._socket.emit("setBinaryState",r,n,function(s){return s?i(s):a()})}):Promise.reject(ke)}},{key:"setState",value:function(r,n){var o=this;return this.connected?new Promise(function(a,i){return o._socket.emit("setState",r,n,function(s){return s?i(s):a()})}):Promise.reject(ke)}},{key:"getObjects",value:function(r,n){var o=this;return this.connected?new Promise(function(a,i){if(!r&&o.objects)return a(o.objects);o._socket.emit(t.isWeb()?"getObjects":"getAllObjects",function(s,u){o.objects=u,n&&o.onProgress(ei.OBJECTS_LOADED),s?i(s):a(o.objects)})}):Promise.reject(ke)}},{key:"_subscribe",value:function(r){var n=this;r&&!this.subscribed?(this.subscribed=!0,this.autoSubscribes.forEach(function(o){return n._socket.emit("subscribeObjects",o)}),Object.keys(this.objectsSubscribes).forEach(function(o){return n._socket.emit("subscribeObjects",o)}),this.autoSubscribeLog&&this._socket.emit("requireLog",!0),Object.keys(this.statesSubscribes).forEach(function(o){return n._socket.emit("subscribe",o)})):!r&&this.subscribed&&(this.subscribed=!1,this.autoSubscribes.forEach(function(o){return n._socket.emit("unsubscribeObjects",o)}),Object.keys(this.objectsSubscribes).forEach(function(o){return n._socket.emit("unsubscribeObjects",o)}),this.autoSubscribeLog&&this._socket.emit("requireLog",!1),Object.keys(this.statesSubscribes).forEach(function(o){return n._socket.emit("unsubscribe",o)}))}},{key:"requireLog",value:function(r){var n=this;return this.connected?new Promise(function(o,a){return n._socket.emit("requireLog",r,function(i){return i?a(i):o()})}):Promise.reject(ke)}},{key:"delObject",value:function(r,n){var o=this;return this.connected?new Promise(function(a,i){return o._socket.emit("delObject",r,{maintenance:!!n},function(s){return s?i(s):a()})}):Promise.reject(ke)}},{key:"delObjects",value:function(r,n){var o=this;return this.connected?new Promise(function(a,i){return o._socket.emit("delObjects",r,{maintenance:!!n},function(s){return s?i(s):a()})}):Promise.reject(ke)}},{key:"setObject",value:function(r,n){var o=this;return this.connected?n?(n=JSON.parse(JSON.stringify(n)),n.hasOwnProperty("from")&&delete n.from,n.hasOwnProperty("user")&&delete n.user,n.hasOwnProperty("ts")&&delete n.ts,new Promise(function(a,i){return o._socket.emit("setObject",r,n,function(s){return s?i(s):a()})})):Promise.reject("Null object is not allowed"):Promise.reject(ke)}},{key:"getObject",value:function(r){var n=this;return this.connected?new Promise(function(o,a){return n._socket.emit("getObject",r,function(i,s){return i?a(i):o(s)})}):Promise.reject(ke)}},{key:"getAdapterInstances",value:function(r,n){var o=this;return typeof r=="boolean"&&(n=r,r=""),r=r||"",!n&&this._promises["instances_"+r]?this._promises["instances_"+r]:this.connected?(this._promises["instances_"+r]=new Promise(function(a,i){var s=setTimeout(function(){s=null,o.getObjectView("system.adapter.".concat(r?r+".":""),"system.adapter.".concat(r?r+".":"","\u9999"),"instance").then(function(u){return a(Object.keys(u).map(function(l){return XH(u[l])}))}).catch(function(u){return i(u)})},JH);o._socket.emit("getAdapterInstances",r,function(u,l){if(s)return clearTimeout(s),s=null,u?i(u):a(l)})}),this._promises["instances_"+r]):Promise.reject(ke)}},{key:"getAdapters",value:function(r,n){var o=this;return t.isWeb()?Promise.reject("Allowed only in admin"):(typeof r=="boolean"&&(n=r,r=""),r=r||"",!n&&this._promises["adapter_"+r]?this._promises["adapter_"+r]:this.connected?(this._promises["adapter_"+r]=new Promise(function(a,i){var s=setTimeout(function(){s=null,o.getObjectView("system.adapter.".concat(r,"."),"system.adapter.".concat(r,".\u9999"),"adapter").then(function(u){return a(Object.keys(u).map(function(l){return XH(u[l])}))}).catch(function(u){return i(u)})},JH);o._socket.emit("getAdapters",r,function(u,l){if(s)return clearTimeout(s),s=null,u?i(u):a(l)})}),this._promises["adapter_"+r]):Promise.reject(ke))}},{key:"_renameGroups",value:function(r,n){var o=this;if(!r||!r.length)n&&n();else{var a=r.pop(),i=a._id;a._id=a.newId,delete a.newId,this.setObject(a._id,a).then(function(){return o.delObject(i)}).then(function(){return setTimeout(function(){return o._renameGroups(r,n)},0)}).catch(function(s){return n&&n(s)})}}},{key:"renameGroup",value:function(r,n,o){var a=this;return t.isWeb()?Promise.reject("Allowed only in admin"):this.getGroups(!0).then(function(i){if(i.length){var s=i.filter(function(u){return u._id.startsWith(r+".")});return s.forEach(function(u){return u.newId=n+u._id.substring(r.length)}),new Promise(function(u,l){return a._renameGroups(s,function(c){return c?l(c):u()})}).then(function(){var u=i.find(function(l){return l._id===r});if(u)return u._id=n,o!==void 0&&(u.common=u.common||{},u.common.name=o),a.setObject(u._id,u).then(function(){return a.delObject(r)})})}})}},{key:"sendTo",value:function(r,n,o){var a=this;return this.connected?new Promise(function(i){return a._socket.emit("sendTo",r,n,o,function(s){return i(s)})}):Promise.reject(ke)}},{key:"extendObject",value:function(r,n){var o=this;return this.connected?(n=JSON.parse(JSON.stringify(n)),n.hasOwnProperty("from")&&delete n.from,n.hasOwnProperty("user")&&delete n.user,n.hasOwnProperty("ts")&&delete n.ts,new Promise(function(a,i){return o._socket.emit("extendObject",r,n,function(s){return s?i(s):a()})})):Promise.reject(ke)}},{key:"registerLogHandler",value:function(r){!this.onLogHandlers.includes(r)&&this.onLogHandlers.push(r)}},{key:"unregisterLogHandler",value:function(r){var n=this.onLogHandlers.indexOf(r);n!==-1&&this.onLogHandlers.splice(n,1)}},{key:"registerConnectionHandler",value:function(r){!this.onConnectionHandlers.includes(r)&&this.onConnectionHandlers.push(r)}},{key:"unregisterConnectionHandler",value:function(r){var n=this.onConnectionHandlers.indexOf(r);n!==-1&&this.onConnectionHandlers.splice(n,1)}},{key:"registerCmdStdoutHandler",value:function(r){this.onCmdStdoutHandler=r}},{key:"unregisterCmdStdoutHandler",value:function(r){this.onCmdStdoutHandler=null}},{key:"registerCmdStderrHandler",value:function(r){this.onCmdStderrHandler=r}},{key:"unregisterCmdStderrHandler",value:function(r){this.onCmdStderrHandler=null}},{key:"registerCmdExitHandler",value:function(r){this.onCmdExitHandler=r}},{key:"unregisterCmdExitHandler",value:function(r){this.onCmdExitHandler=null}},{key:"getEnums",value:function(r,n){var o=this;return!n&&this._promises["enums_"+(r||"all")]?this._promises["enums_"+(r||"all")]:this.connected?(this._promises["enums_"+(r||"all")]=new Promise(function(a,i){o._socket.emit("getObjectView","system","enum",{startkey:"enum."+(r||""),endkey:"enum."+(r?r+".":"")+"\u9999"},function(s,u){if(!s&&u){for(var l={},c=0;c1&&(s.type="chained")}o.push(s)}}}),o}),this._promises.cert):Promise.reject(ke)}},{key:"getLogs",value:function(r,n){var o=this;return t.isWeb()?Promise.reject("Allowed only in admin"):this.connected?new Promise(function(a){return o._socket.emit("sendToHost",r,"getLogs",n||200,function(i){return a(i)})}):Promise.reject(ke)}},{key:"getLogsFiles",value:function(r){var n=this;return t.isWeb()?Promise.reject("Allowed only in admin"):this.connected?new Promise(function(o,a){return n._socket.emit("readLogs",r,function(i,s){return i?a(i):o(s)})}):Promise.reject(ke)}},{key:"delLogs",value:function(r){var n=this;return t.isWeb()?Promise.reject("Allowed only in admin"):this.connected?new Promise(function(o,a){return n._socket.emit("sendToHost",r,"delLogs",null,function(i){return i?a(i):o()})}):Promise.reject(ke)}},{key:"readMetaItems",value:function(){var r=this;return this.connected?new Promise(function(n,o){return r._socket.emit("getObjectView","system","meta",{startkey:"",endkey:"\u9999"},function(a,i){return a?o(a):n(i.rows&&i.rows.map(function(s){return s.value}))})}):Promise.reject(ke)}},{key:"readDir",value:function(r,n){var o=this;return this.connected?new Promise(function(a,i){return o._socket.emit("readDir",r,n,function(s,u){return s?i(s):a(u)})}):Promise.reject(ke)}},{key:"readFile",value:function(r,n,o){var a=this;return this.connected?new Promise(function(i,s){o?a._socket.emit("readFile64",r,n,o,function(u,l){return u?s(u):i(l)}):a._socket.emit("readFile",r,n,function(u,l,c){u?s(u):i({data:l,type:c})})}):Promise.reject(ke)}},{key:"writeFile64",value:function(r,n,o){var a=this;return this.connected?new Promise(function(i,s){if(typeof o=="string")a._socket.emit("writeFile",r,n,o,function(l){return l?s(l):i()});else{var u=btoa(new Uint8Array(o).reduce(function(l,c){return l+String.fromCharCode(c)},""));a._socket.emit("writeFile64",r,n,u,function(l){return l?s(l):i()})}}):Promise.reject(ke)}},{key:"rename",value:function(r,n,o){var a=this;return this.connected?new Promise(function(i,s){return a._socket.emit("rename",r,n,o,function(u){return u?s(u):i()})}):Promise.reject(ke)}},{key:"deleteFile",value:function(r,n){var o=this;return this.connected?new Promise(function(a,i){return o._socket.emit("unlink",r,n,function(s){return s?i(s):a()})}):Promise.reject(ke)}},{key:"deleteFolder",value:function(r,n){var o=this;return this.connected?new Promise(function(a,i){return o._socket.emit("deleteFolder",r,n,function(s){return s?i(s):a()})}):Promise.reject(ke)}},{key:"getHosts",value:function(r){var n=this;return t.isWeb()?Promise.reject("Allowed only in admin"):!r&&this._promises.hosts?this._promises.hosts:this.connected?(this._promises.hosts=new Promise(function(o,a){return n._socket.emit("getObjectView","system","host",{startkey:"system.host.",endkey:"system.host.\u9999"},function(i,s){i?a(i):o(s.rows.map(function(u){return u.value}))})}),this._promises.hosts):Promise.reject(ke)}},{key:"getUsers",value:function(r){var n=this;return t.isWeb()?Promise.reject("Allowed only in admin"):!r&&this._promises.users?this._promises.users:this.connected?(this._promises.users=new Promise(function(o,a){return n._socket.emit("getObjectView","system","user",{startkey:"system.user.",endkey:"system.user.\u9999"},function(i,s){i?a(i):o(s.rows.map(function(u){return u.value}))})}),this._promises.users):Promise.reject(ke)}},{key:"getGroups",value:function(r){var n=this;return!r&&this._promises.groups?this._promises.groups:this.connected?(this._promises.groups=new Promise(function(o,a){return n._socket.emit("getObjectView","system","group",{startkey:"system.group.",endkey:"system.group.\u9999"},function(i,s){i?a(i):o(s.rows.map(function(u){return u.value}))})}),this._promises.groups):Promise.reject(ke)}},{key:"getHostInfo",value:function(r,n,o){var a=this;return t.isWeb()?Promise.reject("Allowed only in admin"):(r.startsWith("system.host.")||(r+="system.host."+r),!n&&this._promises["hostInfo"+r]?this._promises["hostInfo"+r]:this.connected?(this._promises["hostInfo"+r]=new Promise(function(i,s){var u=setTimeout(function(){u&&(u=null,s("getHostInfo timeout"))},o||a.props.cmdTimeout);a._socket.emit("sendToHost",r,"getHostInfo",null,function(l){u&&(clearTimeout(u),u=null,l===fs?s('May not read "getHostInfo"'):l?i(l):s('Cannot read "getHostInfo"'))})}),this._promises["hostInfo"+r]):Promise.reject(ke))}},{key:"getHostInfoShort",value:function(r,n,o){var a=this;return t.isWeb()?Promise.reject("Allowed only in admin"):(r.startsWith("system.host.")||(r+="system.host."+r),!n&&this._promises["hostInfoShort"+r]?this._promises["hostInfoShort"+r]:this.connected?(this._promises["hostInfoShort"+r]=new Promise(function(i,s){var u=setTimeout(function(){u&&(u=null,s("hostInfoShort timeout"))},o||a.props.cmdTimeout);a._socket.emit("sendToHost",r,"getHostInfoShort",null,function(l){u&&(clearTimeout(u),u=null,l===fs?s('May not read "getHostInfoShort"'):l?i(l):s('Cannot read "getHostInfoShort"'))})}),this._promises["hostInfoShort"+r]):Promise.reject(ke))}},{key:"getRepository",value:function(r,n,o,a){var i=this;return t.isWeb()?Promise.reject("Allowed only in admin"):!o&&this._promises.repo?this._promises.repo:this.connected?(r.startsWith("system.host.")||(r+="system.host."+r),this._promises.repo=new Promise(function(s,u){var l=setTimeout(function(){l&&(l=null,u("getRepository timeout"))},a||i.props.cmdTimeout);i._socket.emit("sendToHost",r,"getRepository",n,function(c){l&&(clearTimeout(l),l=null,c===fs?u('May not read "getRepository"'):c?s(c):u('Cannot read "getRepository"'))})}),this._promises.repo):Promise.reject(ke)}},{key:"getInstalled",value:function(r,n,o){var a=this;return t.isWeb()?Promise.reject("Allowed only in admin"):(this._promises.installed=this._promises.installed||{},!n&&this._promises.installed[r]?this._promises.installed[r]:this.connected?(r.startsWith("system.host.")||(r+="system.host."+r),this._promises.installed[r]=new Promise(function(i,s){var u=setTimeout(function(){u&&(u=null,s("getInstalled timeout"))},o||a.props.cmdTimeout);a._socket.emit("sendToHost",r,"getInstalled",null,function(l){u&&(clearTimeout(u),u=null,l===fs?s('May not read "getInstalled"'):l?i(l):s('Cannot read "getInstalled"'))})}),this._promises.installed[r]):Promise.reject(ke))}},{key:"cmdExec",value:function(r,n,o,a){var i=this;return t.isWeb()?Promise.reject("Allowed only in admin"):this.connected?(r.startsWith(r)||(r+="system.host."+r),new Promise(function(s,u){var l=a&&setTimeout(function(){l&&(l=null,u("cmdExec timeout"))},a);i._socket.emit("cmdExec",r,o,n,null,function(c){(!a||l)&&(l&&clearTimeout(l),l=null,c?u(c):s())})})):Promise.reject(ke)}},{key:"checkFeatureSupported",value:function(r,n){var o=this;return!n&&this._promises["supportedFeatures_"+r]?this._promises["supportedFeatures_"+r]:this.connected?(this._promises["supportedFeatures_"+r]=new Promise(function(a,i){return o._socket.emit("checkFeatureSupported",r,function(s,u){s?i(s):a(u)})}),this._promises["supportedFeatures_"+r]):Promise.reject(ke)}},{key:"readBaseSettings",value:function(r){var n=this;return t.isWeb()?Promise.reject("Allowed only in admin"):this.checkFeatureSupported("CONTROLLER_READWRITE_BASE_SETTINGS").then(function(o){return o?n.connected?new Promise(function(a,i){var s=setTimeout(function(){s&&(s=null,i("readBaseSettings timeout"))},n.props.cmdTimeout);r.startsWith("system.host.")&&(r=r.replace(/^system\.host\./,"")),n._socket.emit("sendToHost",r,"readBaseSettings",null,function(u){s&&(clearTimeout(s),s=null,u===fs?i('May not read "BaseSettings"'):u?a(u):i('Cannot read "BaseSettings"'))})}):Promise.reject(ke):Promise.reject("Not supported")})}},{key:"writeBaseSettings",value:function(r,n){var o=this;return t.isWeb()?Promise.reject("Allowed only in admin"):this.checkFeatureSupported("CONTROLLER_READWRITE_BASE_SETTINGS").then(function(a){return a?o.connected?new Promise(function(i,s){var u=setTimeout(function(){u&&(u=null,s("writeBaseSettings timeout"))},o.props.cmdTimeout);o._socket.emit("sendToHost",r,"writeBaseSettings",n,function(l){u&&(clearTimeout(u),u=null,l===fs?s('May not write "BaseSettings"'):l?i(l):s('Cannot write "BaseSettings"'))})}):Promise.reject(ke):Promise.reject("Not supported")})}},{key:"restartController",value:function(r){var n=this;return t.isWeb()?Promise.reject("Allowed only in admin"):new Promise(function(o,a){n._socket.emit("sendToHost",r,"restartController",null,function(i){i?a(i):o(!0)})})}},{key:"getDiagData",value:function(r,n){var o=this;return t.isWeb()?Promise.reject("Allowed only in admin"):new Promise(function(a){o._socket.emit("sendToHost",r,"getDiagData",n,function(i){return a(i)})})}},{key:"getForeignStates",value:function(r){var n=this;return this.connected?t.isWeb()?new Promise(function(o,a){return n._socket.emit("getStates",r||"*",function(i,s){return i?a(i):o(s)})}):new Promise(function(o,a){return n._socket.emit("getForeignStates",r||"*",function(i,s){return i?a(i):o(s)})}):Promise.reject(ke)}},{key:"getForeignObjects",value:function(r,n){var o=this;return this.connected?new Promise(function(a,i){return o._socket.emit("getForeignObjects",r||"*",n,function(s,u){return s?i(s):a(u)})}):Promise.reject(ke)}},{key:"getSystemConfig",value:function(r){return!r&&this._promises.systemConfig?this._promises.systemConfig:this.connected?(this._promises.systemConfig=this.getObject("system.config").then(function(n){return n=n||{},n.common=n.common||{},n.native=n.native||{},n}),this._promises.systemConfig):Promise.reject(ke)}},{key:"setSystemConfig",value:function(r){var n=this;return this.setObject("system.config",r).then(function(){return n._promises.systemConfig=Promise.resolve(r)})}},{key:"getRawSocket",value:function(){return this._socket}},{key:"getHistory",value:function(r,n){var o=this;return this.connected?new Promise(function(a,i){return o._socket.emit("getHistory",r,n,function(s,u){return s?i(s):a(u)})}):Promise.reject(ke)}},{key:"getHistoryEx",value:function(r,n){var o=this;return this.connected?new Promise(function(a,i){return o._socket.emit("getHistory",r,n,function(s,u,l,c){return s?i(s):a({values:u,sessionId:c,stepIgnore:l})})}):Promise.reject(ke)}},{key:"changePassword",value:function(r,n){var o=this;return t.isWeb()?Promise.reject("Allowed only in admin"):new Promise(function(a,i){return o._socket.emit("changePassword",r,n,function(s){return s?i(s):a()})})}},{key:"getIpAddresses",value:function(r,n){return t.isWeb()?Promise.reject("Allowed only in admin"):(r.startsWith("system.host.")||(r="system.host."+r),!n&&this._promises["IPs_"+r]?this._promises["IPs_"+r]:(this._promises["IPs_"+r]=this.getObject(r).then(function(o){return o&&o.common?o.common.address||[]:[]}),this._promises["IPs_"+r]))}},{key:"getHostByIp",value:function(r,n){var o=this;return t.isWeb()?Promise.reject("Allowed only in admin"):(r.startsWith("system.host.")&&(r=r.replace(/^system\.host\./,"")),!n&&this._promises["rIPs_"+r]?this._promises["rIPs_"+r]:(this._promises["rIPs_"+r]=new Promise(function(a){return o._socket.emit("getHostByIp",r,function(i,s){var u,l,c=[{name:"[IPv4] 0.0.0.0 - Listen on all IPs",address:"0.0.0.0",family:"ipv4"}],f=[{name:"[IPv6] :: - Listen on all IPs",address:"::",family:"ipv6"}];if(s!=null&&(u=s.native)!==null&&u!==void 0&&(l=u.hardware)!==null&&l!==void 0&&l.networkInterfaces){for(var d in s.native.hardware.networkInterfaces)if(s.native.hardware.networkInterfaces.hasOwnProperty(d))for(var p=0;p{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});var e8=Object.prototype.toString;function y_e(t){switch(e8.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return YS(t,Error)}}function Wf(t,e){return e8.call(t)===`[object ${e}]`}function __e(t){return Wf(t,"ErrorEvent")}function b_e(t){return Wf(t,"DOMError")}function S_e(t){return Wf(t,"DOMException")}function E_e(t){return Wf(t,"String")}function t8(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function T_e(t){return t===null||t8(t)||typeof t!="object"&&typeof t!="function"}function r8(t){return Wf(t,"Object")}function w_e(t){return typeof Event!="undefined"&&YS(t,Event)}function x_e(t){return typeof Element!="undefined"&&YS(t,Element)}function C_e(t){return Wf(t,"RegExp")}function I_e(t){return!!(t&&t.then&&typeof t.then=="function")}function k_e(t){return r8(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function P_e(t){return typeof t=="number"&&t!==t}function YS(t,e){try{return t instanceof e}catch(r){return!1}}function O_e(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}Xr.isDOMError=b_e;Xr.isDOMException=S_e;Xr.isElement=x_e;Xr.isError=y_e;Xr.isErrorEvent=__e;Xr.isEvent=w_e;Xr.isInstanceOf=YS;Xr.isNaN=P_e;Xr.isParameterizedString=t8;Xr.isPlainObject=r8;Xr.isPrimitive=T_e;Xr.isRegExp=C_e;Xr.isString=E_e;Xr.isSyntheticEvent=k_e;Xr.isThenable=I_e;Xr.isVueViewModel=O_e});var Tv=_(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});var JS=Jo();function R_e(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function D_e(t,e){let r=t,n=r.length;if(n<=150)return r;e>n&&(e=n);let o=Math.max(e-60,0);o<5&&(o=0);let a=Math.min(o+140,n);return a>n-5&&(a=n),a===n&&(o=Math.max(a-140,0)),r=r.slice(o,a),o>0&&(r=`'{snip} ${r}`),an8(t,n,r))}fc.isMatchingPattern=n8;fc.safeJoin=N_e;fc.snipLine=D_e;fc.stringMatchesSomePattern=A_e;fc.truncate=R_e});var i8=_(KR=>{"use strict";Object.defineProperty(KR,"__esModule",{value:!0});var GR=Jo(),M_e=Tv();function F_e(t,e,r=250,n,o,a,i){if(!a.exception||!a.exception.values||!i||!GR.isInstanceOf(i.originalException,Error))return;let s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;s&&(a.exception.values=q_e(VR(t,e,o,i.originalException,n,a.exception.values,s,0),r))}function VR(t,e,r,n,o,a,i,s){if(a.length>=r+1)return a;let u=[...a];if(GR.isInstanceOf(n[o],Error)){o8(i,s);let l=t(e,n[o]),c=u.length;a8(l,o,c,s),u=VR(t,e,r,n[o],o,[l,...u],l,c)}return Array.isArray(n.errors)&&n.errors.forEach((l,c)=>{if(GR.isInstanceOf(l,Error)){o8(i,s);let f=t(e,l),d=u.length;a8(f,`errors[${c}]`,d,s),u=VR(t,e,r,l,o,[f,...u],f,d)}}),u}function o8(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function a8(t,e,r,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:r,parent_id:n}}function q_e(t,e){return t.map(r=>(r.value&&(r.value=M_e.truncate(r.value,e)),r))}KR.applyAggregateErrorsToEvent=F_e});var bn=_(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0});function XS(t){return t&&t.Math==Math?t:void 0}var YR=typeof globalThis=="object"&&XS(globalThis)||typeof window=="object"&&XS(window)||typeof self=="object"&&XS(self)||typeof global=="object"&&XS(global)||function(){return this}()||{};function j_e(){return YR}function L_e(t,e,r){let n=r||YR,o=n.__SENTRY__=n.__SENTRY__||{};return o[t]||(o[t]=e())}wv.GLOBAL_OBJ=YR;wv.getGlobalObject=j_e;wv.getGlobalSingleton=L_e});var JR=_(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});var B_e=Jo(),U_e=bn(),$f=U_e.getGlobalObject(),z_e=80;function W_e(t,e={}){if(!t)return"";try{let r=t,n=5,o=[],a=0,i=0,s=" > ",u=s.length,l,c=Array.isArray(e)?e:e.keyAttrs,f=!Array.isArray(e)&&e.maxStringLength||z_e;for(;r&&a++1&&i+o.length*u+l.length>=f));)o.push(l),i+=l.length,r=r.parentNode;return o.reverse().join(s)}catch(r){return""}}function $_e(t,e){let r=t,n=[],o,a,i,s,u;if(!r||!r.tagName)return"";if($f.HTMLElement&&r instanceof HTMLElement&&r.dataset&&r.dataset.sentryComponent)return r.dataset.sentryComponent;n.push(r.tagName.toLowerCase());let l=e&&e.length?e.filter(f=>r.getAttribute(f)).map(f=>[f,r.getAttribute(f)]):null;if(l&&l.length)l.forEach(f=>{n.push(`[${f[0]}="${f[1]}"]`)});else if(r.id&&n.push(`#${r.id}`),o=r.className,o&&B_e.isString(o))for(a=o.split(/\s+/),u=0;u{"use strict";Object.defineProperty(XR,"__esModule",{value:!0});var K_e=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;XR.DEBUG_BUILD=K_e});var ba=_(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var Y_e=ti(),ZR=bn(),J_e="Sentry Logger ",QR=["debug","info","warn","error","log","assert","trace"],eD={};function s8(t){if(!("console"in ZR.GLOBAL_OBJ))return t();let e=ZR.GLOBAL_OBJ.console,r={},n=Object.keys(eD);n.forEach(o=>{let a=eD[o];r[o]=e[o],e[o]=a});try{return t()}finally{n.forEach(o=>{e[o]=r[o]})}}function X_e(){let t=!1,e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return Y_e.DEBUG_BUILD?QR.forEach(r=>{e[r]=(...n)=>{t&&s8(()=>{ZR.GLOBAL_OBJ.console[r](`${J_e}[${r}]:`,...n)})}}):QR.forEach(r=>{e[r]=()=>{}}),e}var Z_e=X_e();Gf.CONSOLE_LEVELS=QR;Gf.consoleSandbox=s8;Gf.logger=Z_e;Gf.originalConsoleMethods=eD});var tD=_(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0});var Q_e=ti(),xv=ba(),ebe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function tbe(t){return t==="http"||t==="https"}function rbe(t,e=!1){let{host:r,path:n,pass:o,port:a,projectId:i,protocol:s,publicKey:u}=t;return`${s}://${u}${e&&o?`:${o}`:""}@${r}${a?`:${a}`:""}/${n&&`${n}/`}${i}`}function u8(t){let e=ebe.exec(t);if(!e){xv.consoleSandbox(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}let[r,n,o="",a,i="",s]=e.slice(1),u="",l=s,c=l.split("/");if(c.length>1&&(u=c.slice(0,-1).join("/"),l=c.pop()),l){let f=l.match(/^\d+/);f&&(l=f[0])}return l8({host:a,pass:o,path:u,projectId:l,port:i,protocol:r,publicKey:n})}function l8(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function nbe(t){if(!Q_e.DEBUG_BUILD)return!0;let{port:e,projectId:r,protocol:n}=t;return["protocol","publicKey","host","projectId"].find(i=>t[i]?!1:(xv.logger.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:r.match(/^\d+$/)?tbe(n)?e&&isNaN(parseInt(e,10))?(xv.logger.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(xv.logger.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(xv.logger.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function obe(t){let e=typeof t=="string"?u8(t):l8(t);if(!(!e||!nbe(e)))return e}Cv.dsnFromString=u8;Cv.dsnToString=rbe;Cv.makeDsn=obe});var oD=_(nD=>{"use strict";Object.defineProperty(nD,"__esModule",{value:!0});var rD=class extends Error{constructor(e,r="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r}};nD.SentryError=rD});var Xo=_(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});var abe=JR(),ibe=ti(),Vf=Jo(),sbe=ba(),c8=Tv();function ube(t,e,r){if(!(e in t))return;let n=t[e],o=r(n);typeof o=="function"&&m8(o,n),t[e]=o}function p8(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch(n){ibe.DEBUG_BUILD&&sbe.logger.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function m8(t,e){try{let r=e.prototype||{};t.prototype=e.prototype=r,p8(t,"__sentry_original__",e)}catch(r){}}function lbe(t){return t.__sentry_original__}function cbe(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function h8(t){if(Vf.isError(t))return{message:t.message,name:t.name,stack:t.stack,...f8(t)};if(Vf.isEvent(t)){let e={type:t.type,target:d8(t.target),currentTarget:d8(t.currentTarget),...f8(t)};return typeof CustomEvent!="undefined"&&Vf.isInstanceOf(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function d8(t){try{return Vf.isElement(t)?abe.htmlTreeAsString(t):Object.prototype.toString.call(t)}catch(e){return""}}function f8(t){if(typeof t=="object"&&t!==null){let e={};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}else return{}}function dbe(t,e=40){let r=Object.keys(h8(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=e)return c8.truncate(r[0],e);for(let n=r.length;n>0;n--){let o=r.slice(0,n).join(", ");if(!(o.length>e))return n===r.length?o:c8.truncate(o,e)}return""}function fbe(t){return aD(t,new Map)}function aD(t,e){if(pbe(t)){let r=e.get(t);if(r!==void 0)return r;let n={};e.set(t,n);for(let o of Object.keys(t))typeof t[o]!="undefined"&&(n[o]=aD(t[o],e));return n}if(Array.isArray(t)){let r=e.get(t);if(r!==void 0)return r;let n=[];return e.set(t,n),t.forEach(o=>{n.push(aD(o,e))}),n}return t}function pbe(t){if(!Vf.isPlainObject(t))return!1;try{let e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch(e){return!0}}function mbe(t){let e;switch(!0){case t==null:e=new String(t);break;case(typeof t=="symbol"||typeof t=="bigint"):e=Object(t);break;case Vf.isPrimitive(t):e=new t.constructor(t);break;default:e=t;break}return e}Sa.addNonEnumerableProperty=p8;Sa.convertToPlainObject=h8;Sa.dropUndefinedKeys=fbe;Sa.extractExceptionKeysForMessage=dbe;Sa.fill=ube;Sa.getOriginalFunction=lbe;Sa.markFunctionWrapped=m8;Sa.objectify=mbe;Sa.urlEncode=cbe});var QS=_(ZS=>{"use strict";Object.defineProperty(ZS,"__esModule",{value:!0});function g8(t,e=!1){return!(e||t&&!t.startsWith("/")&&!t.match(/^[A-Z]:/)&&!t.startsWith(".")&&!t.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&t!==void 0&&!t.includes("node_modules/")}function hbe(t){let e=/^\s*[-]{4,}$/,r=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;return n=>{let o=n.match(r);if(o){let a,i,s,u,l;if(o[1]){s=o[1];let d=s.lastIndexOf(".");if(s[d-1]==="."&&d--,d>0){a=s.slice(0,d),i=s.slice(d+1);let p=a.indexOf(".Module");p>0&&(s=s.slice(p+1),a=a.slice(0,p))}u=void 0}i&&(u=a,l=i),i===""&&(l=void 0,s=void 0),s===void 0&&(l=l||"",s=u?`${u}.${l}`:l);let c=o[2]&&o[2].startsWith("file://")?o[2].slice(7):o[2],f=o[5]==="native";return c&&c.match(/\/[A-Z]:/)&&(c=c.slice(1)),!c&&o[5]&&!f&&(c=o[5]),{filename:c,module:t?t(c):void 0,function:s,lineno:parseInt(o[3],10)||void 0,colno:parseInt(o[4],10)||void 0,in_app:g8(c,f)}}if(n.match(e))return{filename:n}}}ZS.filenameIsInApp=g8;ZS.node=hbe});var eE=_(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});var _8=QS(),b8=50,v8=/\(error: (.*)\)/,y8=/captureMessage|captureException/;function S8(...t){let e=t.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0)=>{let o=[],a=r.split(` -`);for(let i=n;i1024)continue;let u=v8.test(s)?s.replace(v8,"$1"):s;if(!u.match(/\S*Error: /)){for(let l of e){let c=l(u);if(c){o.push(c);break}}if(o.length>=b8)break}}return E8(o)}}function gbe(t){return Array.isArray(t)?S8(...t):t}function E8(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),y8.test(e[e.length-1].function||"")&&(e.pop(),y8.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,b8).map(r=>({...r,filename:r.filename||e[e.length-1].filename,function:r.function||"?"}))}var iD="";function vbe(t){try{return!t||typeof t!="function"?iD:t.name||iD}catch(e){return iD}}function ybe(t){return[90,_8.node(t)]}qu.filenameIsInApp=_8.filenameIsInApp;qu.createStackParser=S8;qu.getFunctionName=vbe;qu.nodeStackLineParser=ybe;qu.stackParserFromStackParserOptions=gbe;qu.stripSentryFramesAndReverse=E8});var ps=_(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});var _be=ti(),bbe=ba(),Sbe=eE(),Kf={},T8={};function Ebe(t,e){Kf[t]=Kf[t]||[],Kf[t].push(e)}function Tbe(){Object.keys(Kf).forEach(t=>{Kf[t]=void 0})}function wbe(t,e){T8[t]||(e(),T8[t]=!0)}function xbe(t,e){let r=t&&Kf[t];if(r)for(let n of r)try{n(e)}catch(o){_be.DEBUG_BUILD&&bbe.logger.error(`Error while triggering instrumentation handler. +`);i.forEach(function(s){if(s.trim()){var u=s.indexOf(":");if(u!==-1){var l=s.substring(0,u).trim();n[l]=s.substring(u+1).trim(),n[l]=n[l].replace(/^['"]|['"]$/g,""),n[l]==="true"?n[l]=!0:n[l]==="false"?n[l]=!1:parseFloat(n[l]).toString()===n[l]&&(n[l]=parseFloat(n[l]))}else n[s.trim()]=!0}}),r=r.substring(o+7)}}return{header:n,body:r}}},{key:"MDremoveDocsify",value:function(r){var n=r.match(/{docsify-[^}]*}/g);return n&&n.forEach(function(o){return r=r.replace(o,"")}),r}},{key:"generateFile",value:function(r,n){var o=document.createElement("a");o.setAttribute("href","data:application/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(n,null,2))),o.setAttribute("download",r),o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)}},{key:"quality2text",value:function(r){var n=r&4294901760,o=UR[r],a;return o?a=[o]:r&1?a=[UR[1],"0x"+(r&65534).toString(16)]:r&2?a=[UR[2],"0x"+(r&65533).toString(16)]:a=["0x"+r.toString(16)],n&&a.push("0x"+(n>>16).toString(16).toUpperCase()),a}},{key:"clone",value:function(r){return JSON.parse(JSON.stringify(r))}},{key:"getStates",value:function(r){var n,o=r==null||(n=r.common)===null||n===void 0?void 0:n.states;if(o){if(typeof o=="string"&&o[0]==="{")try{o=JSON.parse(o)}catch(l){console.error("Cannot parse states: ".concat(o)),o=null}else if(typeof o=="string"){var a=o.split(";");o={};for(var i=0;i{"use strict";function WR(t){return ls.exports=WR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ls.exports.__esModule=!0,ls.exports.default=ls.exports,WR(t)}ls.exports=WR,ls.exports.__esModule=!0,ls.exports.default=ls.exports});var KH=_((oJe,bv)=>{"use strict";var a_e=cs();function i_e(t,e){for(;!{}.hasOwnProperty.call(t,e)&&(t=a_e(t))!==null;);return t}bv.exports=i_e,bv.exports.__esModule=!0,bv.exports.default=bv.exports});var YH=_((aJe,ds)=>{"use strict";var s_e=KH();function $R(){return ds.exports=$R=typeof Reflect!="undefined"&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=s_e(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},ds.exports.__esModule=!0,ds.exports.default=ds.exports,$R.apply(null,arguments)}ds.exports=$R,ds.exports.__esModule=!0,ds.exports.default=ds.exports});var Au=_((iJe,Sv)=>{"use strict";var u_e=fO();function l_e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u_e(t,e)}Sv.exports=l_e,Sv.exports.__esModule=!0,Sv.exports.default=Sv.exports});var Mu=_((sJe,Ev)=>{"use strict";var c_e=Go().default,d_e=lv();function p_e(t,e){if(e&&(c_e(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d_e(t)}Ev.exports=p_e,Ev.exports.__esModule=!0,Ev.exports.default=Ev.exports});var QH=_(Fu=>{"use strict";var KS=$();Object.defineProperty(Fu,"__esModule",{value:!0});Fu.default=Fu.PROGRESS=Fu.ERRORS=void 0;var f_e=KS(rc()),m_e=KS(ho()),h_e=KS(Yn()),HR=KS(je()),ei={CONNECTING:0,CONNECTED:1,OBJECTS_LOADED:2,READY:3};Fu.PROGRESS=ei;var ps="permissionError",ke="notConnectedError",JH=1300,g_e={PERMISSION_ERROR:ps,NOT_CONNECTED:ke};Fu.ERRORS=g_e;function XH(t){return t&&t.common&&!t.common.adminUI&&(t.common.noConfig?(t.common.adminUI=t.common.adminUI||{},t.common.adminUI.config="none"):t.common.jsonConfig?(t.common.adminUI=t.common.adminUI||{},t.common.adminUI.config="json"):t.common.materialize?(t.common.adminUI=t.common.adminUI||{},t.common.adminUI.config="materialize"):(t.common.adminUI=t.common.adminUI||{},t.common.adminUI.config="html"),t.common.jsonCustom?(t.common.adminUI=t.common.adminUI||{},t.common.adminUI.custom="json"):t.common.supportCustoms&&(t.common.adminUI=t.common.adminUI||{},t.common.adminUI.custom="json"),t.common.materializeTab&&t.common.adminTab?(t.common.adminUI=t.common.adminUI||{},t.common.adminUI.tab="materialize"):t.common.adminTab&&(t.common.adminUI=t.common.adminUI||{},t.common.adminUI.tab="html"),t.common.adminUI&&console.debug('Please add to "'.concat(t._id.replace(/\.\d+$/,""),'" common.adminUI=').concat(JSON.stringify(t.common.adminUI)))),t}var ZH=function(){function t(e){var r=this;(0,m_e.default)(this,t),e=e||{protocol:window.location.protocol,host:window.location.hostname},this.props=e,this.autoSubscribes=this.props.autoSubscribes||[],this.autoSubscribeLog=this.props.autoSubscribeLog,this.props.protocol=this.props.protocol||window.location.protocol,this.props.host=this.props.host||window.location.hostname,this.props.port=this.props.port||(window.location.port==="3000"?t.isWeb()?8082:8081:window.location.port),this.props.ioTimeout=Math.max(this.props.ioTimeout||2e4,2e4),this.props.cmdTimeout=Math.max(this.props.cmdTimeout||5e3,5e3),this.doNotLoadAllObjects=this.props.doNotLoadAllObjects===void 0?!0:this.props.doNotLoadAllObjects,this.doNotLoadACL=this.props.doNotLoadACL===void 0?!0:this.props.doNotLoadACL,this.states={},this.objects=null,this.acl=null,this.firstConnect=!0,this.waitForRestart=!1,this.systemLang="en",this.connected=!1,this._waitForFirstConnection=new Promise(function(n){r._waitForFirstConnectionResolve=n}),this.statesSubscribes={},this.objectsSubscribes={},this.onProgress=this.props.onProgress||function(){},this.onError=this.props.onError||function(n){console.error(n)},this.loaded=!1,this.loadTimer=null,this.loadCounter=0,this.admin5only=this.props.admin5only||!1,this.onConnectionHandlers=[],this.onLogHandlers=[],this._promises={},this.log.error=function(n){return r.log(n,"error")},this.log.warn=function(n){return r.log(n,"warn")},this.log.info=function(n){return r.log(n,"info")},this.log.debug=function(n){return r.log(n,"debug")},this.log.silly=function(n){return r.log(n,"silly")},this.startSocket()}return(0,h_e.default)(t,[{key:"startSocket",value:function(){var r=this;if(typeof window.io=="undefined"){if(typeof window.registerSocketOnLoad!="function")if(this.scriptLoadCounter=this.scriptLoadCounter||0,this.scriptLoadCounter++,this.scriptLoadCounter<30){setTimeout(function(){return r.startSocket()},100);return}else window.alert("Cannot load socket.io.js!");else window.registerSocketOnLoad(function(){return r.startSocket()});return}else if(this._socket)return;var n=this.props.host,o=this.props.port,a=this.props.protocol.replace(":",""),i=window.location.pathname;if(window.location.hostname==="iobroker.net"||window.location.hostname==="iobroker.pro")i="";else{if(window.socketUrl){var s=window.socketUrl.split(":");n=s[0]||n,o=s[1]||o,n.includes("://")&&(s=n.split("://"),a=s[0],n=s[1])}var u=i.lastIndexOf("/");if(u!==-1&&(i=i.substring(0,u+1)),t.isWeb()){var l=i.split("/");l.length>2&&(l.pop(),l.pop(),i=l.join("/"),i.endsWith("/")||(i+="/"))}}var c=o?"".concat(a,"://").concat(n,":").concat(o).concat(i):"".concat(a,"://").concat(n).concat(i);this._socket=window.io.connect(c,{path:i.endsWith("/")?i+"socket.io":i+"/socket.io",query:"ws=true",name:this.props.name,timeout:this.props.ioTimeout}),this._socket.on("connect",function(p){p!==!0?setTimeout(function(){return r.getVersion().then(function(d){var f=d.version.split("."),m=(0,f_e.default)(f,3),g=m[0],v=m[1],h=m[2],y=parseInt(g,10)*1e4+parseInt(v,10)*100+parseInt(h,10);y<40102?(r._authTimer=null,r.onPreConnect(!1,!1)):r._socket.emit("authenticate",function(b,E){return r.onPreConnect(b,E)})})},500):r._socket.emit("authenticate",function(d,f){return r.onPreConnect(d,f)})}),this._socket.on("reconnect",function(){r.onProgress(ei.READY),r.connected=!0,r.waitForRestart?window.location.reload(!1):(r._subscribe(!0),r.onConnectionHandlers.forEach(function(p){return p(!0)}))}),this._socket.on("disconnect",function(){r.connected=!1,r.subscribed=!1,r.onProgress(ei.CONNECTING),r.onConnectionHandlers.forEach(function(p){return p(!1)})}),this._socket.on("reauthenticate",function(){return r.authenticate()}),this._socket.on("log",function(p){r.props.onLog&&r.props.onLog(p),r.onLogHandlers.forEach(function(d){return d(p)})}),this._socket.on("error",function(p){var d=p||"";typeof d.toString!="function"&&(d=JSON.stringify(d),console.error("Received strange error: ".concat(d))),d=d.toString(),d.includes("User not authorized")?r.authenticate():window.alert("Socket Error: ".concat(p))}),this._socket.on("connect_error",function(p){return console.error("Connect error: ".concat(p))}),this._socket.on("permissionError",function(p){return r.onError({message:"no permission",operation:p.operation,type:p.type,id:p.id||""})}),this._socket.on("objectChange",function(p,d){return setTimeout(function(){return r.objectChange(p,d)},0)}),this._socket.on("stateChange",function(p,d){return setTimeout(function(){return r.stateChange(p,d)},0)}),this._socket.on("cmdStdout",function(p,d){return r.onCmdStdoutHandler&&r.onCmdStdoutHandler(p,d)}),this._socket.on("cmdStderr",function(p,d){return r.onCmdStderrHandler&&r.onCmdStderrHandler(p,d)}),this._socket.on("cmdExit",function(p,d){return r.onCmdExitHandler&&r.onCmdExitHandler(p,d)})}},{key:"onPreConnect",value:function(r,n){var o=this;this._authTimer&&(clearTimeout(this._authTimer),this._authTimer=null),this.connected=!0,this.isSecure=n,this.waitForRestart?window.location.reload(!1):(this.firstConnect?(this.loadTimer=setTimeout(function(){o.loadTimer=null,o.loadCounter++,o.loadCounter<10&&o.onConnect()},1e3),this.loaded||this.onConnect()):this.onProgress(ei.READY),this._subscribe(!0),this.onConnectionHandlers.forEach(function(a){return a(!0)})),this._waitForFirstConnectionResolve&&(this._waitForFirstConnectionResolve(),this._waitForFirstConnectionResolve=null)}},{key:"isConnected",value:function(){return this.connected}},{key:"waitForFirstConnection",value:function(){return this._waitForFirstConnection}},{key:"_getUserPermissions",value:function(r){if(this.doNotLoadACL)return r&&r();this._socket.emit("getUserPermissions",r)}},{key:"onConnect",value:function(){var r=this;this._getUserPermissions(function(n,o){if(n)return r.onError("Cannot read user permissions: "+n);if(!r.doNotLoadACL){if(r.loaded)return;r.loaded=!0,clearTimeout(r.loadTimer),r.loadTimer=null,r.onProgress(ei.CONNECTED),r.firstConnect=!1,r.acl=o}return(r.admin5only&&!window.vendorPrefix?r.getCompactSystemConfig():r.getSystemConfig()).then(function(a){if(r.doNotLoadACL){if(r.loaded)return;r.loaded=!0,clearTimeout(r.loadTimer),r.loadTimer=null,r.onProgress(ei.CONNECTED),r.firstConnect=!1}if(r.systemConfig=a,r.systemConfig&&r.systemConfig.common?r.systemLang=r.systemConfig.common.language:(r.systemLang=window.navigator.userLanguage||window.navigator.language,r.systemLang!=="en"&&r.systemLang!=="de"&&r.systemLang!=="ru"&&(r.systemConfig.common.language="en",r.systemLang="en")),r.props.onLanguage&&r.props.onLanguage(r.systemLang),r.doNotLoadAllObjects)r.objects=r.admin5only?{}:{"system.config":a},r.onProgress(ei.READY),r.props.onReady&&r.props.onReady(r.objects);else return r.getObjects().then(function(){r.onProgress(ei.READY),r.props.onReady&&r.props.onReady(r.objects)})}).catch(function(a){return r.onError("Cannot read system config: "+a)})})}},{key:"authenticate",value:function(){window.location.search.includes("&href=")?window.location="".concat(window.location.protocol,"//").concat(window.location.host).concat(window.location.pathname).concat(window.location.search).concat(window.location.hash):window.location="".concat(window.location.protocol,"//").concat(window.location.host).concat(window.location.pathname,"?login&href=").concat(window.location.search).concat(window.location.hash)}},{key:"subscribeState",value:function(r,n,o){if(typeof n=="function"&&(o=n,n=!1),this.statesSubscribes[r])!this.statesSubscribes[r].cbs.includes(o)&&this.statesSubscribes[r].cbs.push(o);else{var a=r.replace(/\./g,"\\.").replace(/\*/g,".*").replace(/\(/g,"\\(").replace(/\)/g,"\\)").replace(/\+/g,"\\+").replace(/\[/g,"\\[");a.indexOf("*")===-1&&(a+="$"),this.statesSubscribes[r]={reg:new RegExp(a),cbs:[]},this.statesSubscribes[r].cbs.push(o),this.connected&&this._socket.emit("subscribe",r)}typeof o=="function"&&this.connected&&(n?this.getBinaryState(r).then(function(i){return o(r,i)}).catch(function(i){return console.error('Cannot getForeignStates "'.concat(r,'": ').concat(JSON.stringify(i)))}):t.isWeb()?this._socket.emit("getStates",r,function(i,s){i&&console.error('Cannot getForeignStates "'.concat(r,'": ').concat(JSON.stringify(i))),s&&Object.keys(s).forEach(function(u){return o(u,s[u])})}):this._socket.emit("getForeignStates",r,function(i,s){i&&console.error('Cannot getForeignStates "'.concat(r,'": ').concat(JSON.stringify(i))),s&&Object.keys(s).forEach(function(u){return o(u,s[u])})}))}},{key:"unsubscribeState",value:function(r,n){if(this.statesSubscribes[r]){if(n){var o=this.statesSubscribes[r].cbs.indexOf(n);o!==-1&&this.statesSubscribes[r].cbs.splice(o,1)}else this.statesSubscribes[r].cbs=[];(!this.statesSubscribes[r].cbs||!this.statesSubscribes[r].cbs.length)&&(delete this.statesSubscribes[r],this.connected&&this._socket.emit("unsubscribe",r))}}},{key:"subscribeObject",value:function(r,n){if(this.objectsSubscribes[r])!this.objectsSubscribes[r].cbs.includes(n)&&this.objectsSubscribes[r].cbs.push(n);else{var o=r.replace(/\./g,"\\.").replace(/\*/g,".*");o.includes("*")||(o+="$"),this.objectsSubscribes[r]={reg:new RegExp(o),cbs:[]},this.objectsSubscribes[r].cbs.push(n),this.connected&&this._socket.emit("subscribeObjects",r)}return Promise.resolve()}},{key:"unsubscribeObject",value:function(r,n){if(this.objectsSubscribes[r]){if(n){var o=this.objectsSubscribes[r].cbs.indexOf(n);o!==-1&&this.objectsSubscribes[r].cbs.splice(o,1)}else this.objectsSubscribes[r].cbs=[];this.connected&&(!this.objectsSubscribes[r].cbs||!this.objectsSubscribes[r].cbs.length)&&(delete this.objectsSubscribes[r],this.connected&&this._socket.emit("unsubscribeObjects",r))}return Promise.resolve()}},{key:"objectChange",value:function(r,n){var o=this;if(this.objects){var a,i=!1;n?(n._rev&&this.objects[r]&&(this.objects[r]._rev=n._rev),this.objects[r]&&(a={_id:r,type:this.objects[r].type}),(!this.objects[r]||JSON.stringify(this.objects[r])!==JSON.stringify(n))&&(this.objects[r]=n,i=!0)):this.objects[r]&&(a={_id:r,type:this.objects[r].type},delete this.objects[r],i=!0),Object.keys(this.objectsSubscribes).forEach(function(s){(s===r||o.objectsSubscribes[s].reg.test(r))&&o.objectsSubscribes[s].cbs.forEach(function(u){return u(r,n,a)})}),i&&this.props.onObjectChange&&this.props.onObjectChange(r,n)}}},{key:"stateChange",value:function(r,n){for(var o in this.statesSubscribes)this.statesSubscribes.hasOwnProperty(o)&&this.statesSubscribes[o].reg.test(r)&&this.statesSubscribes[o].cbs.forEach(function(a){return a(r,n)})}},{key:"getStates",value:function(r){var n=this;return this.connected?new Promise(function(o,a){return n._socket.emit("getStates",function(i,s){return n.states=s,!r&&n.onProgress(ei.STATES_LOADED),i?a(i):o(n.states)})}):Promise.reject(ke)}},{key:"getState",value:function(r){var n=this;return this.connected?new Promise(function(o,a){return n._socket.emit("getState",r,function(i,s){return i?a(i):o(s)})}):Promise.reject(ke)}},{key:"getBinaryState",value:function(r){var n=this;return this.connected?new Promise(function(o,a){return n._socket.emit("getBinaryState",r,function(i,s){return i?a(i):o(s)})}):Promise.reject(ke)}},{key:"setBinaryState",value:function(r,n){var o=this;return this.connected?new Promise(function(a,i){return o._socket.emit("setBinaryState",r,n,function(s){return s?i(s):a()})}):Promise.reject(ke)}},{key:"setState",value:function(r,n){var o=this;return this.connected?new Promise(function(a,i){return o._socket.emit("setState",r,n,function(s){return s?i(s):a()})}):Promise.reject(ke)}},{key:"getObjects",value:function(r,n){var o=this;return this.connected?new Promise(function(a,i){if(!r&&o.objects)return a(o.objects);o._socket.emit(t.isWeb()?"getObjects":"getAllObjects",function(s,u){o.objects=u,n&&o.onProgress(ei.OBJECTS_LOADED),s?i(s):a(o.objects)})}):Promise.reject(ke)}},{key:"_subscribe",value:function(r){var n=this;r&&!this.subscribed?(this.subscribed=!0,this.autoSubscribes.forEach(function(o){return n._socket.emit("subscribeObjects",o)}),Object.keys(this.objectsSubscribes).forEach(function(o){return n._socket.emit("subscribeObjects",o)}),this.autoSubscribeLog&&this._socket.emit("requireLog",!0),Object.keys(this.statesSubscribes).forEach(function(o){return n._socket.emit("subscribe",o)})):!r&&this.subscribed&&(this.subscribed=!1,this.autoSubscribes.forEach(function(o){return n._socket.emit("unsubscribeObjects",o)}),Object.keys(this.objectsSubscribes).forEach(function(o){return n._socket.emit("unsubscribeObjects",o)}),this.autoSubscribeLog&&this._socket.emit("requireLog",!1),Object.keys(this.statesSubscribes).forEach(function(o){return n._socket.emit("unsubscribe",o)}))}},{key:"requireLog",value:function(r){var n=this;return this.connected?new Promise(function(o,a){return n._socket.emit("requireLog",r,function(i){return i?a(i):o()})}):Promise.reject(ke)}},{key:"delObject",value:function(r,n){var o=this;return this.connected?new Promise(function(a,i){return o._socket.emit("delObject",r,{maintenance:!!n},function(s){return s?i(s):a()})}):Promise.reject(ke)}},{key:"delObjects",value:function(r,n){var o=this;return this.connected?new Promise(function(a,i){return o._socket.emit("delObjects",r,{maintenance:!!n},function(s){return s?i(s):a()})}):Promise.reject(ke)}},{key:"setObject",value:function(r,n){var o=this;return this.connected?n?(n=JSON.parse(JSON.stringify(n)),n.hasOwnProperty("from")&&delete n.from,n.hasOwnProperty("user")&&delete n.user,n.hasOwnProperty("ts")&&delete n.ts,new Promise(function(a,i){return o._socket.emit("setObject",r,n,function(s){return s?i(s):a()})})):Promise.reject("Null object is not allowed"):Promise.reject(ke)}},{key:"getObject",value:function(r){var n=this;return this.connected?new Promise(function(o,a){return n._socket.emit("getObject",r,function(i,s){return i?a(i):o(s)})}):Promise.reject(ke)}},{key:"getAdapterInstances",value:function(r,n){var o=this;return typeof r=="boolean"&&(n=r,r=""),r=r||"",!n&&this._promises["instances_"+r]?this._promises["instances_"+r]:this.connected?(this._promises["instances_"+r]=new Promise(function(a,i){var s=setTimeout(function(){s=null,o.getObjectView("system.adapter.".concat(r?r+".":""),"system.adapter.".concat(r?r+".":"","\u9999"),"instance").then(function(u){return a(Object.keys(u).map(function(l){return XH(u[l])}))}).catch(function(u){return i(u)})},JH);o._socket.emit("getAdapterInstances",r,function(u,l){if(s)return clearTimeout(s),s=null,u?i(u):a(l)})}),this._promises["instances_"+r]):Promise.reject(ke)}},{key:"getAdapters",value:function(r,n){var o=this;return t.isWeb()?Promise.reject("Allowed only in admin"):(typeof r=="boolean"&&(n=r,r=""),r=r||"",!n&&this._promises["adapter_"+r]?this._promises["adapter_"+r]:this.connected?(this._promises["adapter_"+r]=new Promise(function(a,i){var s=setTimeout(function(){s=null,o.getObjectView("system.adapter.".concat(r,"."),"system.adapter.".concat(r,".\u9999"),"adapter").then(function(u){return a(Object.keys(u).map(function(l){return XH(u[l])}))}).catch(function(u){return i(u)})},JH);o._socket.emit("getAdapters",r,function(u,l){if(s)return clearTimeout(s),s=null,u?i(u):a(l)})}),this._promises["adapter_"+r]):Promise.reject(ke))}},{key:"_renameGroups",value:function(r,n){var o=this;if(!r||!r.length)n&&n();else{var a=r.pop(),i=a._id;a._id=a.newId,delete a.newId,this.setObject(a._id,a).then(function(){return o.delObject(i)}).then(function(){return setTimeout(function(){return o._renameGroups(r,n)},0)}).catch(function(s){return n&&n(s)})}}},{key:"renameGroup",value:function(r,n,o){var a=this;return t.isWeb()?Promise.reject("Allowed only in admin"):this.getGroups(!0).then(function(i){if(i.length){var s=i.filter(function(u){return u._id.startsWith(r+".")});return s.forEach(function(u){return u.newId=n+u._id.substring(r.length)}),new Promise(function(u,l){return a._renameGroups(s,function(c){return c?l(c):u()})}).then(function(){var u=i.find(function(l){return l._id===r});if(u)return u._id=n,o!==void 0&&(u.common=u.common||{},u.common.name=o),a.setObject(u._id,u).then(function(){return a.delObject(r)})})}})}},{key:"sendTo",value:function(r,n,o){var a=this;return this.connected?new Promise(function(i){return a._socket.emit("sendTo",r,n,o,function(s){return i(s)})}):Promise.reject(ke)}},{key:"extendObject",value:function(r,n){var o=this;return this.connected?(n=JSON.parse(JSON.stringify(n)),n.hasOwnProperty("from")&&delete n.from,n.hasOwnProperty("user")&&delete n.user,n.hasOwnProperty("ts")&&delete n.ts,new Promise(function(a,i){return o._socket.emit("extendObject",r,n,function(s){return s?i(s):a()})})):Promise.reject(ke)}},{key:"registerLogHandler",value:function(r){!this.onLogHandlers.includes(r)&&this.onLogHandlers.push(r)}},{key:"unregisterLogHandler",value:function(r){var n=this.onLogHandlers.indexOf(r);n!==-1&&this.onLogHandlers.splice(n,1)}},{key:"registerConnectionHandler",value:function(r){!this.onConnectionHandlers.includes(r)&&this.onConnectionHandlers.push(r)}},{key:"unregisterConnectionHandler",value:function(r){var n=this.onConnectionHandlers.indexOf(r);n!==-1&&this.onConnectionHandlers.splice(n,1)}},{key:"registerCmdStdoutHandler",value:function(r){this.onCmdStdoutHandler=r}},{key:"unregisterCmdStdoutHandler",value:function(r){this.onCmdStdoutHandler=null}},{key:"registerCmdStderrHandler",value:function(r){this.onCmdStderrHandler=r}},{key:"unregisterCmdStderrHandler",value:function(r){this.onCmdStderrHandler=null}},{key:"registerCmdExitHandler",value:function(r){this.onCmdExitHandler=r}},{key:"unregisterCmdExitHandler",value:function(r){this.onCmdExitHandler=null}},{key:"getEnums",value:function(r,n){var o=this;return!n&&this._promises["enums_"+(r||"all")]?this._promises["enums_"+(r||"all")]:this.connected?(this._promises["enums_"+(r||"all")]=new Promise(function(a,i){o._socket.emit("getObjectView","system","enum",{startkey:"enum."+(r||""),endkey:"enum."+(r?r+".":"")+"\u9999"},function(s,u){if(!s&&u){for(var l={},c=0;c1&&(s.type="chained")}o.push(s)}}}),o}),this._promises.cert):Promise.reject(ke)}},{key:"getLogs",value:function(r,n){var o=this;return t.isWeb()?Promise.reject("Allowed only in admin"):this.connected?new Promise(function(a){return o._socket.emit("sendToHost",r,"getLogs",n||200,function(i){return a(i)})}):Promise.reject(ke)}},{key:"getLogsFiles",value:function(r){var n=this;return t.isWeb()?Promise.reject("Allowed only in admin"):this.connected?new Promise(function(o,a){return n._socket.emit("readLogs",r,function(i,s){return i?a(i):o(s)})}):Promise.reject(ke)}},{key:"delLogs",value:function(r){var n=this;return t.isWeb()?Promise.reject("Allowed only in admin"):this.connected?new Promise(function(o,a){return n._socket.emit("sendToHost",r,"delLogs",null,function(i){return i?a(i):o()})}):Promise.reject(ke)}},{key:"readMetaItems",value:function(){var r=this;return this.connected?new Promise(function(n,o){return r._socket.emit("getObjectView","system","meta",{startkey:"",endkey:"\u9999"},function(a,i){return a?o(a):n(i.rows&&i.rows.map(function(s){return s.value}))})}):Promise.reject(ke)}},{key:"readDir",value:function(r,n){var o=this;return this.connected?new Promise(function(a,i){return o._socket.emit("readDir",r,n,function(s,u){return s?i(s):a(u)})}):Promise.reject(ke)}},{key:"readFile",value:function(r,n,o){var a=this;return this.connected?new Promise(function(i,s){o?a._socket.emit("readFile64",r,n,o,function(u,l){return u?s(u):i(l)}):a._socket.emit("readFile",r,n,function(u,l,c){u?s(u):i({data:l,type:c})})}):Promise.reject(ke)}},{key:"writeFile64",value:function(r,n,o){var a=this;return this.connected?new Promise(function(i,s){if(typeof o=="string")a._socket.emit("writeFile",r,n,o,function(l){return l?s(l):i()});else{var u=btoa(new Uint8Array(o).reduce(function(l,c){return l+String.fromCharCode(c)},""));a._socket.emit("writeFile64",r,n,u,function(l){return l?s(l):i()})}}):Promise.reject(ke)}},{key:"rename",value:function(r,n,o){var a=this;return this.connected?new Promise(function(i,s){return a._socket.emit("rename",r,n,o,function(u){return u?s(u):i()})}):Promise.reject(ke)}},{key:"deleteFile",value:function(r,n){var o=this;return this.connected?new Promise(function(a,i){return o._socket.emit("unlink",r,n,function(s){return s?i(s):a()})}):Promise.reject(ke)}},{key:"deleteFolder",value:function(r,n){var o=this;return this.connected?new Promise(function(a,i){return o._socket.emit("deleteFolder",r,n,function(s){return s?i(s):a()})}):Promise.reject(ke)}},{key:"getHosts",value:function(r){var n=this;return t.isWeb()?Promise.reject("Allowed only in admin"):!r&&this._promises.hosts?this._promises.hosts:this.connected?(this._promises.hosts=new Promise(function(o,a){return n._socket.emit("getObjectView","system","host",{startkey:"system.host.",endkey:"system.host.\u9999"},function(i,s){i?a(i):o(s.rows.map(function(u){return u.value}))})}),this._promises.hosts):Promise.reject(ke)}},{key:"getUsers",value:function(r){var n=this;return t.isWeb()?Promise.reject("Allowed only in admin"):!r&&this._promises.users?this._promises.users:this.connected?(this._promises.users=new Promise(function(o,a){return n._socket.emit("getObjectView","system","user",{startkey:"system.user.",endkey:"system.user.\u9999"},function(i,s){i?a(i):o(s.rows.map(function(u){return u.value}))})}),this._promises.users):Promise.reject(ke)}},{key:"getGroups",value:function(r){var n=this;return!r&&this._promises.groups?this._promises.groups:this.connected?(this._promises.groups=new Promise(function(o,a){return n._socket.emit("getObjectView","system","group",{startkey:"system.group.",endkey:"system.group.\u9999"},function(i,s){i?a(i):o(s.rows.map(function(u){return u.value}))})}),this._promises.groups):Promise.reject(ke)}},{key:"getHostInfo",value:function(r,n,o){var a=this;return t.isWeb()?Promise.reject("Allowed only in admin"):(r.startsWith("system.host.")||(r+="system.host."+r),!n&&this._promises["hostInfo"+r]?this._promises["hostInfo"+r]:this.connected?(this._promises["hostInfo"+r]=new Promise(function(i,s){var u=setTimeout(function(){u&&(u=null,s("getHostInfo timeout"))},o||a.props.cmdTimeout);a._socket.emit("sendToHost",r,"getHostInfo",null,function(l){u&&(clearTimeout(u),u=null,l===ps?s('May not read "getHostInfo"'):l?i(l):s('Cannot read "getHostInfo"'))})}),this._promises["hostInfo"+r]):Promise.reject(ke))}},{key:"getHostInfoShort",value:function(r,n,o){var a=this;return t.isWeb()?Promise.reject("Allowed only in admin"):(r.startsWith("system.host.")||(r+="system.host."+r),!n&&this._promises["hostInfoShort"+r]?this._promises["hostInfoShort"+r]:this.connected?(this._promises["hostInfoShort"+r]=new Promise(function(i,s){var u=setTimeout(function(){u&&(u=null,s("hostInfoShort timeout"))},o||a.props.cmdTimeout);a._socket.emit("sendToHost",r,"getHostInfoShort",null,function(l){u&&(clearTimeout(u),u=null,l===ps?s('May not read "getHostInfoShort"'):l?i(l):s('Cannot read "getHostInfoShort"'))})}),this._promises["hostInfoShort"+r]):Promise.reject(ke))}},{key:"getRepository",value:function(r,n,o,a){var i=this;return t.isWeb()?Promise.reject("Allowed only in admin"):!o&&this._promises.repo?this._promises.repo:this.connected?(r.startsWith("system.host.")||(r+="system.host."+r),this._promises.repo=new Promise(function(s,u){var l=setTimeout(function(){l&&(l=null,u("getRepository timeout"))},a||i.props.cmdTimeout);i._socket.emit("sendToHost",r,"getRepository",n,function(c){l&&(clearTimeout(l),l=null,c===ps?u('May not read "getRepository"'):c?s(c):u('Cannot read "getRepository"'))})}),this._promises.repo):Promise.reject(ke)}},{key:"getInstalled",value:function(r,n,o){var a=this;return t.isWeb()?Promise.reject("Allowed only in admin"):(this._promises.installed=this._promises.installed||{},!n&&this._promises.installed[r]?this._promises.installed[r]:this.connected?(r.startsWith("system.host.")||(r+="system.host."+r),this._promises.installed[r]=new Promise(function(i,s){var u=setTimeout(function(){u&&(u=null,s("getInstalled timeout"))},o||a.props.cmdTimeout);a._socket.emit("sendToHost",r,"getInstalled",null,function(l){u&&(clearTimeout(u),u=null,l===ps?s('May not read "getInstalled"'):l?i(l):s('Cannot read "getInstalled"'))})}),this._promises.installed[r]):Promise.reject(ke))}},{key:"cmdExec",value:function(r,n,o,a){var i=this;return t.isWeb()?Promise.reject("Allowed only in admin"):this.connected?(r.startsWith(r)||(r+="system.host."+r),new Promise(function(s,u){var l=a&&setTimeout(function(){l&&(l=null,u("cmdExec timeout"))},a);i._socket.emit("cmdExec",r,o,n,null,function(c){(!a||l)&&(l&&clearTimeout(l),l=null,c?u(c):s())})})):Promise.reject(ke)}},{key:"checkFeatureSupported",value:function(r,n){var o=this;return!n&&this._promises["supportedFeatures_"+r]?this._promises["supportedFeatures_"+r]:this.connected?(this._promises["supportedFeatures_"+r]=new Promise(function(a,i){return o._socket.emit("checkFeatureSupported",r,function(s,u){s?i(s):a(u)})}),this._promises["supportedFeatures_"+r]):Promise.reject(ke)}},{key:"readBaseSettings",value:function(r){var n=this;return t.isWeb()?Promise.reject("Allowed only in admin"):this.checkFeatureSupported("CONTROLLER_READWRITE_BASE_SETTINGS").then(function(o){return o?n.connected?new Promise(function(a,i){var s=setTimeout(function(){s&&(s=null,i("readBaseSettings timeout"))},n.props.cmdTimeout);r.startsWith("system.host.")&&(r=r.replace(/^system\.host\./,"")),n._socket.emit("sendToHost",r,"readBaseSettings",null,function(u){s&&(clearTimeout(s),s=null,u===ps?i('May not read "BaseSettings"'):u?a(u):i('Cannot read "BaseSettings"'))})}):Promise.reject(ke):Promise.reject("Not supported")})}},{key:"writeBaseSettings",value:function(r,n){var o=this;return t.isWeb()?Promise.reject("Allowed only in admin"):this.checkFeatureSupported("CONTROLLER_READWRITE_BASE_SETTINGS").then(function(a){return a?o.connected?new Promise(function(i,s){var u=setTimeout(function(){u&&(u=null,s("writeBaseSettings timeout"))},o.props.cmdTimeout);o._socket.emit("sendToHost",r,"writeBaseSettings",n,function(l){u&&(clearTimeout(u),u=null,l===ps?s('May not write "BaseSettings"'):l?i(l):s('Cannot write "BaseSettings"'))})}):Promise.reject(ke):Promise.reject("Not supported")})}},{key:"restartController",value:function(r){var n=this;return t.isWeb()?Promise.reject("Allowed only in admin"):new Promise(function(o,a){n._socket.emit("sendToHost",r,"restartController",null,function(i){i?a(i):o(!0)})})}},{key:"getDiagData",value:function(r,n){var o=this;return t.isWeb()?Promise.reject("Allowed only in admin"):new Promise(function(a){o._socket.emit("sendToHost",r,"getDiagData",n,function(i){return a(i)})})}},{key:"getForeignStates",value:function(r){var n=this;return this.connected?t.isWeb()?new Promise(function(o,a){return n._socket.emit("getStates",r||"*",function(i,s){return i?a(i):o(s)})}):new Promise(function(o,a){return n._socket.emit("getForeignStates",r||"*",function(i,s){return i?a(i):o(s)})}):Promise.reject(ke)}},{key:"getForeignObjects",value:function(r,n){var o=this;return this.connected?new Promise(function(a,i){return o._socket.emit("getForeignObjects",r||"*",n,function(s,u){return s?i(s):a(u)})}):Promise.reject(ke)}},{key:"getSystemConfig",value:function(r){return!r&&this._promises.systemConfig?this._promises.systemConfig:this.connected?(this._promises.systemConfig=this.getObject("system.config").then(function(n){return n=n||{},n.common=n.common||{},n.native=n.native||{},n}),this._promises.systemConfig):Promise.reject(ke)}},{key:"setSystemConfig",value:function(r){var n=this;return this.setObject("system.config",r).then(function(){return n._promises.systemConfig=Promise.resolve(r)})}},{key:"getRawSocket",value:function(){return this._socket}},{key:"getHistory",value:function(r,n){var o=this;return this.connected?new Promise(function(a,i){return o._socket.emit("getHistory",r,n,function(s,u){return s?i(s):a(u)})}):Promise.reject(ke)}},{key:"getHistoryEx",value:function(r,n){var o=this;return this.connected?new Promise(function(a,i){return o._socket.emit("getHistory",r,n,function(s,u,l,c){return s?i(s):a({values:u,sessionId:c,stepIgnore:l})})}):Promise.reject(ke)}},{key:"changePassword",value:function(r,n){var o=this;return t.isWeb()?Promise.reject("Allowed only in admin"):new Promise(function(a,i){return o._socket.emit("changePassword",r,n,function(s){return s?i(s):a()})})}},{key:"getIpAddresses",value:function(r,n){return t.isWeb()?Promise.reject("Allowed only in admin"):(r.startsWith("system.host.")||(r="system.host."+r),!n&&this._promises["IPs_"+r]?this._promises["IPs_"+r]:(this._promises["IPs_"+r]=this.getObject(r).then(function(o){return o&&o.common?o.common.address||[]:[]}),this._promises["IPs_"+r]))}},{key:"getHostByIp",value:function(r,n){var o=this;return t.isWeb()?Promise.reject("Allowed only in admin"):(r.startsWith("system.host.")&&(r=r.replace(/^system\.host\./,"")),!n&&this._promises["rIPs_"+r]?this._promises["rIPs_"+r]:(this._promises["rIPs_"+r]=new Promise(function(a){return o._socket.emit("getHostByIp",r,function(i,s){var u,l,c=[{name:"[IPv4] 0.0.0.0 - Listen on all IPs",address:"0.0.0.0",family:"ipv4"}],p=[{name:"[IPv6] :: - Listen on all IPs",address:"::",family:"ipv6"}];if(s!=null&&(u=s.native)!==null&&u!==void 0&&(l=u.hardware)!==null&&l!==void 0&&l.networkInterfaces){for(var d in s.native.hardware.networkInterfaces)if(s.native.hardware.networkInterfaces.hasOwnProperty(d))for(var f=0;f{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});var e8=Object.prototype.toString;function y_e(t){switch(e8.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return YS(t,Error)}}function zp(t,e){return e8.call(t)===`[object ${e}]`}function __e(t){return zp(t,"ErrorEvent")}function b_e(t){return zp(t,"DOMError")}function S_e(t){return zp(t,"DOMException")}function E_e(t){return zp(t,"String")}function t8(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function T_e(t){return t===null||t8(t)||typeof t!="object"&&typeof t!="function"}function r8(t){return zp(t,"Object")}function w_e(t){return typeof Event!="undefined"&&YS(t,Event)}function x_e(t){return typeof Element!="undefined"&&YS(t,Element)}function C_e(t){return zp(t,"RegExp")}function I_e(t){return!!(t&&t.then&&typeof t.then=="function")}function k_e(t){return r8(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function P_e(t){return typeof t=="number"&&t!==t}function YS(t,e){try{return t instanceof e}catch(r){return!1}}function O_e(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}Xr.isDOMError=b_e;Xr.isDOMException=S_e;Xr.isElement=x_e;Xr.isError=y_e;Xr.isErrorEvent=__e;Xr.isEvent=w_e;Xr.isInstanceOf=YS;Xr.isNaN=P_e;Xr.isParameterizedString=t8;Xr.isPlainObject=r8;Xr.isPrimitive=T_e;Xr.isRegExp=C_e;Xr.isString=E_e;Xr.isSyntheticEvent=k_e;Xr.isThenable=I_e;Xr.isVueViewModel=O_e});var Tv=_(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});var JS=Jo();function R_e(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function D_e(t,e){let r=t,n=r.length;if(n<=150)return r;e>n&&(e=n);let o=Math.max(e-60,0);o<5&&(o=0);let a=Math.min(o+140,n);return a>n-5&&(a=n),a===n&&(o=Math.max(a-140,0)),r=r.slice(o,a),o>0&&(r=`'{snip} ${r}`),an8(t,n,r))}pc.isMatchingPattern=n8;pc.safeJoin=N_e;pc.snipLine=D_e;pc.stringMatchesSomePattern=A_e;pc.truncate=R_e});var i8=_(KR=>{"use strict";Object.defineProperty(KR,"__esModule",{value:!0});var GR=Jo(),M_e=Tv();function F_e(t,e,r=250,n,o,a,i){if(!a.exception||!a.exception.values||!i||!GR.isInstanceOf(i.originalException,Error))return;let s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;s&&(a.exception.values=q_e(VR(t,e,o,i.originalException,n,a.exception.values,s,0),r))}function VR(t,e,r,n,o,a,i,s){if(a.length>=r+1)return a;let u=[...a];if(GR.isInstanceOf(n[o],Error)){o8(i,s);let l=t(e,n[o]),c=u.length;a8(l,o,c,s),u=VR(t,e,r,n[o],o,[l,...u],l,c)}return Array.isArray(n.errors)&&n.errors.forEach((l,c)=>{if(GR.isInstanceOf(l,Error)){o8(i,s);let p=t(e,l),d=u.length;a8(p,`errors[${c}]`,d,s),u=VR(t,e,r,l,o,[p,...u],p,d)}}),u}function o8(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function a8(t,e,r,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:r,parent_id:n}}function q_e(t,e){return t.map(r=>(r.value&&(r.value=M_e.truncate(r.value,e)),r))}KR.applyAggregateErrorsToEvent=F_e});var bn=_(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0});function XS(t){return t&&t.Math==Math?t:void 0}var YR=typeof globalThis=="object"&&XS(globalThis)||typeof window=="object"&&XS(window)||typeof self=="object"&&XS(self)||typeof global=="object"&&XS(global)||function(){return this}()||{};function j_e(){return YR}function L_e(t,e,r){let n=r||YR,o=n.__SENTRY__=n.__SENTRY__||{};return o[t]||(o[t]=e())}wv.GLOBAL_OBJ=YR;wv.getGlobalObject=j_e;wv.getGlobalSingleton=L_e});var JR=_($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});var B_e=Jo(),U_e=bn(),Wp=U_e.getGlobalObject(),z_e=80;function W_e(t,e={}){if(!t)return"";try{let r=t,n=5,o=[],a=0,i=0,s=" > ",u=s.length,l,c=Array.isArray(e)?e:e.keyAttrs,p=!Array.isArray(e)&&e.maxStringLength||z_e;for(;r&&a++1&&i+o.length*u+l.length>=p));)o.push(l),i+=l.length,r=r.parentNode;return o.reverse().join(s)}catch(r){return""}}function $_e(t,e){let r=t,n=[],o,a,i,s,u;if(!r||!r.tagName)return"";if(Wp.HTMLElement&&r instanceof HTMLElement&&r.dataset&&r.dataset.sentryComponent)return r.dataset.sentryComponent;n.push(r.tagName.toLowerCase());let l=e&&e.length?e.filter(p=>r.getAttribute(p)).map(p=>[p,r.getAttribute(p)]):null;if(l&&l.length)l.forEach(p=>{n.push(`[${p[0]}="${p[1]}"]`)});else if(r.id&&n.push(`#${r.id}`),o=r.className,o&&B_e.isString(o))for(a=o.split(/\s+/),u=0;u{"use strict";Object.defineProperty(XR,"__esModule",{value:!0});var K_e=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;XR.DEBUG_BUILD=K_e});var ba=_(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});var Y_e=ti(),ZR=bn(),J_e="Sentry Logger ",QR=["debug","info","warn","error","log","assert","trace"],eD={};function s8(t){if(!("console"in ZR.GLOBAL_OBJ))return t();let e=ZR.GLOBAL_OBJ.console,r={},n=Object.keys(eD);n.forEach(o=>{let a=eD[o];r[o]=e[o],e[o]=a});try{return t()}finally{n.forEach(o=>{e[o]=r[o]})}}function X_e(){let t=!1,e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return Y_e.DEBUG_BUILD?QR.forEach(r=>{e[r]=(...n)=>{t&&s8(()=>{ZR.GLOBAL_OBJ.console[r](`${J_e}[${r}]:`,...n)})}}):QR.forEach(r=>{e[r]=()=>{}}),e}var Z_e=X_e();Hp.CONSOLE_LEVELS=QR;Hp.consoleSandbox=s8;Hp.logger=Z_e;Hp.originalConsoleMethods=eD});var tD=_(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0});var Q_e=ti(),xv=ba(),ebe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function tbe(t){return t==="http"||t==="https"}function rbe(t,e=!1){let{host:r,path:n,pass:o,port:a,projectId:i,protocol:s,publicKey:u}=t;return`${s}://${u}${e&&o?`:${o}`:""}@${r}${a?`:${a}`:""}/${n&&`${n}/`}${i}`}function u8(t){let e=ebe.exec(t);if(!e){xv.consoleSandbox(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}let[r,n,o="",a,i="",s]=e.slice(1),u="",l=s,c=l.split("/");if(c.length>1&&(u=c.slice(0,-1).join("/"),l=c.pop()),l){let p=l.match(/^\d+/);p&&(l=p[0])}return l8({host:a,pass:o,path:u,projectId:l,port:i,protocol:r,publicKey:n})}function l8(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function nbe(t){if(!Q_e.DEBUG_BUILD)return!0;let{port:e,projectId:r,protocol:n}=t;return["protocol","publicKey","host","projectId"].find(i=>t[i]?!1:(xv.logger.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:r.match(/^\d+$/)?tbe(n)?e&&isNaN(parseInt(e,10))?(xv.logger.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(xv.logger.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(xv.logger.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function obe(t){let e=typeof t=="string"?u8(t):l8(t);if(!(!e||!nbe(e)))return e}Cv.dsnFromString=u8;Cv.dsnToString=rbe;Cv.makeDsn=obe});var oD=_(nD=>{"use strict";Object.defineProperty(nD,"__esModule",{value:!0});var rD=class extends Error{constructor(e,r="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r}};nD.SentryError=rD});var Xo=_(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});var abe=JR(),ibe=ti(),Gp=Jo(),sbe=ba(),c8=Tv();function ube(t,e,r){if(!(e in t))return;let n=t[e],o=r(n);typeof o=="function"&&m8(o,n),t[e]=o}function f8(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch(n){ibe.DEBUG_BUILD&&sbe.logger.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function m8(t,e){try{let r=e.prototype||{};t.prototype=e.prototype=r,f8(t,"__sentry_original__",e)}catch(r){}}function lbe(t){return t.__sentry_original__}function cbe(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function h8(t){if(Gp.isError(t))return{message:t.message,name:t.name,stack:t.stack,...p8(t)};if(Gp.isEvent(t)){let e={type:t.type,target:d8(t.target),currentTarget:d8(t.currentTarget),...p8(t)};return typeof CustomEvent!="undefined"&&Gp.isInstanceOf(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function d8(t){try{return Gp.isElement(t)?abe.htmlTreeAsString(t):Object.prototype.toString.call(t)}catch(e){return""}}function p8(t){if(typeof t=="object"&&t!==null){let e={};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}else return{}}function dbe(t,e=40){let r=Object.keys(h8(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=e)return c8.truncate(r[0],e);for(let n=r.length;n>0;n--){let o=r.slice(0,n).join(", ");if(!(o.length>e))return n===r.length?o:c8.truncate(o,e)}return""}function pbe(t){return aD(t,new Map)}function aD(t,e){if(fbe(t)){let r=e.get(t);if(r!==void 0)return r;let n={};e.set(t,n);for(let o of Object.keys(t))typeof t[o]!="undefined"&&(n[o]=aD(t[o],e));return n}if(Array.isArray(t)){let r=e.get(t);if(r!==void 0)return r;let n=[];return e.set(t,n),t.forEach(o=>{n.push(aD(o,e))}),n}return t}function fbe(t){if(!Gp.isPlainObject(t))return!1;try{let e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch(e){return!0}}function mbe(t){let e;switch(!0){case t==null:e=new String(t);break;case(typeof t=="symbol"||typeof t=="bigint"):e=Object(t);break;case Gp.isPrimitive(t):e=new t.constructor(t);break;default:e=t;break}return e}Sa.addNonEnumerableProperty=f8;Sa.convertToPlainObject=h8;Sa.dropUndefinedKeys=pbe;Sa.extractExceptionKeysForMessage=dbe;Sa.fill=ube;Sa.getOriginalFunction=lbe;Sa.markFunctionWrapped=m8;Sa.objectify=mbe;Sa.urlEncode=cbe});var QS=_(ZS=>{"use strict";Object.defineProperty(ZS,"__esModule",{value:!0});function g8(t,e=!1){return!(e||t&&!t.startsWith("/")&&!t.match(/^[A-Z]:/)&&!t.startsWith(".")&&!t.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&t!==void 0&&!t.includes("node_modules/")}function hbe(t){let e=/^\s*[-]{4,}$/,r=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;return n=>{let o=n.match(r);if(o){let a,i,s,u,l;if(o[1]){s=o[1];let d=s.lastIndexOf(".");if(s[d-1]==="."&&d--,d>0){a=s.slice(0,d),i=s.slice(d+1);let f=a.indexOf(".Module");f>0&&(s=s.slice(f+1),a=a.slice(0,f))}u=void 0}i&&(u=a,l=i),i===""&&(l=void 0,s=void 0),s===void 0&&(l=l||"",s=u?`${u}.${l}`:l);let c=o[2]&&o[2].startsWith("file://")?o[2].slice(7):o[2],p=o[5]==="native";return c&&c.match(/\/[A-Z]:/)&&(c=c.slice(1)),!c&&o[5]&&!p&&(c=o[5]),{filename:c,module:t?t(c):void 0,function:s,lineno:parseInt(o[3],10)||void 0,colno:parseInt(o[4],10)||void 0,in_app:g8(c,p)}}if(n.match(e))return{filename:n}}}ZS.filenameIsInApp=g8;ZS.node=hbe});var eE=_(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});var _8=QS(),b8=50,v8=/\(error: (.*)\)/,y8=/captureMessage|captureException/;function S8(...t){let e=t.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0)=>{let o=[],a=r.split(` +`);for(let i=n;i1024)continue;let u=v8.test(s)?s.replace(v8,"$1"):s;if(!u.match(/\S*Error: /)){for(let l of e){let c=l(u);if(c){o.push(c);break}}if(o.length>=b8)break}}return E8(o)}}function gbe(t){return Array.isArray(t)?S8(...t):t}function E8(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),y8.test(e[e.length-1].function||"")&&(e.pop(),y8.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,b8).map(r=>({...r,filename:r.filename||e[e.length-1].filename,function:r.function||"?"}))}var iD="";function vbe(t){try{return!t||typeof t!="function"?iD:t.name||iD}catch(e){return iD}}function ybe(t){return[90,_8.node(t)]}qu.filenameIsInApp=_8.filenameIsInApp;qu.createStackParser=S8;qu.getFunctionName=vbe;qu.nodeStackLineParser=ybe;qu.stackParserFromStackParserOptions=gbe;qu.stripSentryFramesAndReverse=E8});var fs=_(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var _be=ti(),bbe=ba(),Sbe=eE(),Vp={},T8={};function Ebe(t,e){Vp[t]=Vp[t]||[],Vp[t].push(e)}function Tbe(){Object.keys(Vp).forEach(t=>{Vp[t]=void 0})}function wbe(t,e){T8[t]||(e(),T8[t]=!0)}function xbe(t,e){let r=t&&Vp[t];if(r)for(let n of r)try{n(e)}catch(o){_be.DEBUG_BUILD&&bbe.logger.error(`Error while triggering instrumentation handler. Type: ${t} Name: ${Sbe.getFunctionName(n)} -Error:`,o)}}Yf.addHandler=Ebe;Yf.maybeInstrument=wbe;Yf.resetInstrumentationHandlers=Tbe;Yf.triggerHandlers=xbe});var cD=_(lD=>{"use strict";Object.defineProperty(lD,"__esModule",{value:!0});var sD=ba(),Cbe=Xo(),tE=bn(),uD=ps();function Ibe(t){let e="console";uD.addHandler(e,t),uD.maybeInstrument(e,kbe)}function kbe(){"console"in tE.GLOBAL_OBJ&&sD.CONSOLE_LEVELS.forEach(function(t){t in tE.GLOBAL_OBJ.console&&Cbe.fill(tE.GLOBAL_OBJ.console,t,function(e){return sD.originalConsoleMethods[t]=e,function(...r){let n={args:r,level:t};uD.triggerHandlers("console",n);let o=sD.originalConsoleMethods[t];o&&o.apply(tE.GLOBAL_OBJ.console,r)}})})}lD.addConsoleInstrumentationHandler=Ibe});var Iv=_(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});var Pbe=Xo(),dD=Tv(),Obe=bn();function Rbe(){let t=Obe.GLOBAL_OBJ,e=t.crypto||t.msCrypto,r=()=>Math.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(r=()=>{let n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch(n){}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function w8(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function Dbe(t){let{message:e,event_id:r}=t;if(e)return e;let n=w8(t);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""}function Nbe(t,e,r){let n=t.exception=t.exception||{},o=n.values=n.values||[],a=o[0]=o[0]||{};a.value||(a.value=e||""),a.type||(a.type=r||"Error")}function Abe(t,e){let r=w8(t);if(!r)return;let n={type:"generic",handled:!0},o=r.mechanism;if(r.mechanism={...n,...o,...e},e&&"data"in e){let a={...o&&o.data,...e.data};r.mechanism.data=a}}var Mbe=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function Fbe(t){let e=t.match(Mbe)||[],r=parseInt(e[1],10),n=parseInt(e[2],10),o=parseInt(e[3],10);return{buildmetadata:e[5],major:isNaN(r)?void 0:r,minor:isNaN(n)?void 0:n,patch:isNaN(o)?void 0:o,prerelease:e[4]}}function qbe(t,e,r=5){if(e.lineno===void 0)return;let n=t.length,o=Math.max(Math.min(n-1,e.lineno-1),0);e.pre_context=t.slice(Math.max(0,o-r),o).map(a=>dD.snipLine(a,0)),e.context_line=dD.snipLine(t[Math.min(n-1,o)],e.colno||0),e.post_context=t.slice(Math.min(o+1,n),o+1+r).map(a=>dD.snipLine(a,0))}function jbe(t){if(t&&t.__sentry_captured__)return!0;try{Pbe.addNonEnumerableProperty(t,"__sentry_captured__",!0)}catch(e){}return!1}function Lbe(t){return Array.isArray(t)?t:[t]}ri.addContextToFrame=qbe;ri.addExceptionMechanism=Abe;ri.addExceptionTypeValue=Nbe;ri.arrayify=Lbe;ri.checkOrSetAlreadyCaught=jbe;ri.getEventDescription=Dbe;ri.parseSemver=Fbe;ri.uuid4=Rbe});var hD=_(nE=>{"use strict";Object.defineProperty(nE,"__esModule",{value:!0});var Bbe=Iv(),rE=Xo(),Ube=bn(),fD=ps(),Jf=Ube.GLOBAL_OBJ,zbe=1e3,x8,pD,mD;function Wbe(t){let e="dom";fD.addHandler(e,t),fD.maybeInstrument(e,I8)}function I8(){if(!Jf.document)return;let t=fD.triggerHandlers.bind(null,"dom"),e=C8(t,!0);Jf.document.addEventListener("click",e,!1),Jf.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(r=>{let n=Jf[r]&&Jf[r].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(rE.fill(n,"addEventListener",function(o){return function(a,i,s){if(a==="click"||a=="keypress")try{let u=this,l=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},c=l[a]=l[a]||{refCount:0};if(!c.handler){let f=C8(t);c.handler=f,o.call(this,a,f,s)}c.refCount++}catch(u){}return o.call(this,a,i,s)}}),rE.fill(n,"removeEventListener",function(o){return function(a,i,s){if(a==="click"||a=="keypress")try{let u=this,l=u.__sentry_instrumentation_handlers__||{},c=l[a];c&&(c.refCount--,c.refCount<=0&&(o.call(this,a,c.handler,s),c.handler=void 0,delete l[a]),Object.keys(l).length===0&&delete u.__sentry_instrumentation_handlers__)}catch(u){}return o.call(this,a,i,s)}}))})}function $be(t){if(t.type!==pD)return!1;try{if(!t.target||t.target._sentryId!==mD)return!1}catch(e){}return!0}function Hbe(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function C8(t,e=!1){return r=>{if(!r||r._sentryCaptured)return;let n=Gbe(r);if(Hbe(r.type,n))return;rE.addNonEnumerableProperty(r,"_sentryCaptured",!0),n&&!n._sentryId&&rE.addNonEnumerableProperty(n,"_sentryId",Bbe.uuid4());let o=r.type==="keypress"?"input":r.type;$be(r)||(t({event:r,name:o,global:e}),pD=r.type,mD=n?n._sentryId:void 0),clearTimeout(x8),x8=Jf.setTimeout(()=>{mD=void 0,pD=void 0},zbe)}}function Gbe(t){try{return t.target}catch(e){return null}}nE.addClickKeypressInstrumentationHandler=Wbe;nE.instrumentDOM=I8});var yD=_(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});var Vbe=ti(),Kbe=ba(),Ybe=bn(),oE=Ybe.getGlobalObject();function Jbe(){try{return new ErrorEvent(""),!0}catch(t){return!1}}function Xbe(){try{return new DOMError(""),!0}catch(t){return!1}}function Zbe(){try{return new DOMException(""),!0}catch(t){return!1}}function vD(){if(!("fetch"in oE))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function gD(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Qbe(){if(typeof EdgeRuntime=="string")return!0;if(!vD())return!1;if(gD(oE.fetch))return!0;let t=!1,e=oE.document;if(e&&typeof e.createElement=="function")try{let r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=gD(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){Vbe.DEBUG_BUILD&&Kbe.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function e0e(){return"ReportingObserver"in oE}function t0e(){if(!vD())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}ni.isNativeFetch=gD;ni.supportsDOMError=Xbe;ni.supportsDOMException=Zbe;ni.supportsErrorEvent=Jbe;ni.supportsFetch=vD;ni.supportsNativeFetch=Qbe;ni.supportsReferrerPolicy=t0e;ni.supportsReportingObserver=e0e});var bD=_(aE=>{"use strict";Object.defineProperty(aE,"__esModule",{value:!0});var r0e=Xo(),n0e=yD(),k8=bn(),kv=ps();function o0e(t){let e="fetch";kv.addHandler(e,t),kv.maybeInstrument(e,a0e)}function a0e(){n0e.supportsNativeFetch()&&r0e.fill(k8.GLOBAL_OBJ,"fetch",function(t){return function(...e){let{method:r,url:n}=O8(e),o={args:e,fetchData:{method:r,url:n},startTimestamp:Date.now()};return kv.triggerHandlers("fetch",{...o}),t.apply(k8.GLOBAL_OBJ,e).then(a=>{let i={...o,endTimestamp:Date.now(),response:a};return kv.triggerHandlers("fetch",i),a},a=>{let i={...o,endTimestamp:Date.now(),error:a};throw kv.triggerHandlers("fetch",i),a})}})}function _D(t,e){return!!t&&typeof t=="object"&&!!t[e]}function P8(t){return typeof t=="string"?t:t?_D(t,"url")?t.url:t.toString?t.toString():"":""}function O8(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){let[r,n]=t;return{url:P8(r),method:_D(n,"method")?String(n.method).toUpperCase():"GET"}}let e=t[0];return{url:P8(e),method:_D(e,"method")?String(e.method).toUpperCase():"GET"}}aE.addFetchInstrumentationHandler=o0e;aE.parseFetchArgs=O8});var wD=_(TD=>{"use strict";Object.defineProperty(TD,"__esModule",{value:!0});var SD=bn(),ED=ps(),iE=null;function i0e(t){let e="error";ED.addHandler(e,t),ED.maybeInstrument(e,s0e)}function s0e(){iE=SD.GLOBAL_OBJ.onerror,SD.GLOBAL_OBJ.onerror=function(t,e,r,n,o){let a={column:n,error:o,line:r,msg:t,url:e};return ED.triggerHandlers("error",a),iE&&!iE.__SENTRY_LOADER__?iE.apply(this,arguments):!1},SD.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}TD.addGlobalErrorInstrumentationHandler=i0e});var kD=_(ID=>{"use strict";Object.defineProperty(ID,"__esModule",{value:!0});var xD=bn(),CD=ps(),sE=null;function u0e(t){let e="unhandledrejection";CD.addHandler(e,t),CD.maybeInstrument(e,l0e)}function l0e(){sE=xD.GLOBAL_OBJ.onunhandledrejection,xD.GLOBAL_OBJ.onunhandledrejection=function(t){let e=t;return CD.triggerHandlers("unhandledrejection",e),sE&&!sE.__SENTRY_LOADER__?sE.apply(this,arguments):!0},xD.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}ID.addGlobalUnhandledRejectionInstrumentationHandler=u0e});var OD=_(PD=>{"use strict";Object.defineProperty(PD,"__esModule",{value:!0});var c0e=bn(),uE=c0e.getGlobalObject();function d0e(){let t=uE.chrome,e=t&&t.app&&t.app.runtime,r="history"in uE&&!!uE.history.pushState&&!!uE.history.replaceState;return!e&&r}PD.supportsHistory=d0e});var DD=_(RD=>{"use strict";Object.defineProperty(RD,"__esModule",{value:!0});var R8=Xo();ti();ba();var f0e=bn(),p0e=OD(),cE=ps(),Pv=f0e.GLOBAL_OBJ,lE;function m0e(t){let e="history";cE.addHandler(e,t),cE.maybeInstrument(e,h0e)}function h0e(){if(!p0e.supportsHistory())return;let t=Pv.onpopstate;Pv.onpopstate=function(...r){let n=Pv.location.href,o=lE;lE=n;let a={from:o,to:n};if(cE.triggerHandlers("history",a),t)try{return t.apply(this,r)}catch(i){}};function e(r){return function(...n){let o=n.length>2?n[2]:void 0;if(o){let a=lE,i=String(o);lE=i;let s={from:a,to:i};cE.triggerHandlers("history",s)}return r.apply(this,n)}}R8.fill(Pv.history,"pushState",e),R8.fill(Pv.history,"replaceState",e)}RD.addHistoryInstrumentationHandler=m0e});var ND=_(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0});var fE=Jo(),dE=Xo(),g0e=bn(),pE=ps(),v0e=g0e.GLOBAL_OBJ,Ov="__sentry_xhr_v3__";function y0e(t){let e="xhr";pE.addHandler(e,t),pE.maybeInstrument(e,D8)}function D8(){if(!v0e.XMLHttpRequest)return;let t=XMLHttpRequest.prototype;dE.fill(t,"open",function(e){return function(...r){let n=Date.now(),o=fE.isString(r[0])?r[0].toUpperCase():void 0,a=_0e(r[1]);if(!o||!a)return e.apply(this,r);this[Ov]={method:o,url:a,request_headers:{}},o==="POST"&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let i=()=>{let s=this[Ov];if(s&&this.readyState===4){try{s.status_code=this.status}catch(l){}let u={args:[o,a],endTimestamp:Date.now(),startTimestamp:n,xhr:this};pE.triggerHandlers("xhr",u)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?dE.fill(this,"onreadystatechange",function(s){return function(...u){return i(),s.apply(this,u)}}):this.addEventListener("readystatechange",i),dE.fill(this,"setRequestHeader",function(s){return function(...u){let[l,c]=u,f=this[Ov];return f&&fE.isString(l)&&fE.isString(c)&&(f.request_headers[l.toLowerCase()]=c),s.apply(this,u)}}),e.apply(this,r)}}),dE.fill(t,"send",function(e){return function(...r){let n=this[Ov];if(!n)return e.apply(this,r);r[0]!==void 0&&(n.body=r[0]);let o={args:[n.method,n.url],startTimestamp:Date.now(),xhr:this};return pE.triggerHandlers("xhr",o),e.apply(this,r)}})}function _0e(t){if(fE.isString(t))return t;try{return t.toString()}catch(e){}}Rv.SENTRY_XHR_DATA_KEY=Ov;Rv.addXhrInstrumentationHandler=y0e;Rv.instrumentXHR=D8});var L8=_(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});var b0e=ti(),S0e=ba(),N8=cD(),A8=hD(),M8=bD(),F8=wD(),q8=kD(),j8=DD(),AD=ND();function E0e(t,e){switch(t){case"console":return N8.addConsoleInstrumentationHandler(e);case"dom":return A8.addClickKeypressInstrumentationHandler(e);case"xhr":return AD.addXhrInstrumentationHandler(e);case"fetch":return M8.addFetchInstrumentationHandler(e);case"history":return j8.addHistoryInstrumentationHandler(e);case"error":return F8.addGlobalErrorInstrumentationHandler(e);case"unhandledrejection":return q8.addGlobalUnhandledRejectionInstrumentationHandler(e);default:b0e.DEBUG_BUILD&&S0e.logger.warn("unknown instrumentation type:",t)}}Ea.addConsoleInstrumentationHandler=N8.addConsoleInstrumentationHandler;Ea.addClickKeypressInstrumentationHandler=A8.addClickKeypressInstrumentationHandler;Ea.addFetchInstrumentationHandler=M8.addFetchInstrumentationHandler;Ea.addGlobalErrorInstrumentationHandler=F8.addGlobalErrorInstrumentationHandler;Ea.addGlobalUnhandledRejectionInstrumentationHandler=q8.addGlobalUnhandledRejectionInstrumentationHandler;Ea.addHistoryInstrumentationHandler=j8.addHistoryInstrumentationHandler;Ea.SENTRY_XHR_DATA_KEY=AD.SENTRY_XHR_DATA_KEY;Ea.addXhrInstrumentationHandler=AD.addXhrInstrumentationHandler;Ea.addInstrumentationHandler=E0e});var MD=_(mE=>{"use strict";Object.defineProperty(mE,"__esModule",{value:!0});function T0e(){return typeof __SENTRY_BROWSER_BUNDLE__!="undefined"&&!!__SENTRY_BROWSER_BUNDLE__}function w0e(){return"npm"}mE.getSDKSource=w0e;mE.isBrowserBundle=T0e});var FD=_((Dv,gE)=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0});var x0e=MD();function C0e(){return!x0e.isBrowserBundle()&&Object.prototype.toString.call(typeof process!="undefined"?process:0)==="[object process]"}function hE(t,e){return t.require(e)}function I0e(t){let e;try{e=hE(gE,t)}catch(r){}try{let{cwd:r}=hE(gE,"process");e=hE(gE,`${r()}/node_modules/${t}`)}catch(r){}return e}Dv.dynamicRequire=hE;Dv.isNodeEnv=C0e;Dv.loadModule=I0e});var U8=_(qD=>{"use strict";Object.defineProperty(qD,"__esModule",{value:!0});var k0e=FD(),B8=bn();function P0e(){return typeof window!="undefined"&&(!k0e.isNodeEnv()||O0e())}function O0e(){return B8.GLOBAL_OBJ.process!==void 0&&B8.GLOBAL_OBJ.process.type==="renderer"}qD.isBrowser=P0e});var LD=_(jD=>{"use strict";Object.defineProperty(jD,"__esModule",{value:!0});function R0e(){let t=typeof WeakSet=="function",e=t?new WeakSet:[];function r(o){if(t)return e.has(o)?!0:(e.add(o),!1);for(let a=0;a{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});var BD=Jo(),D0e=LD(),N0e=Xo(),A0e=eE();function z8(t,e=100,r=1/0){try{return vE("",t,e,r)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function W8(t,e=3,r=100*1024){let n=z8(t,e);return j0e(n)>r?W8(t,e-1,r):n}function vE(t,e,r=1/0,n=1/0,o=D0e.memoBuilder()){let[a,i]=o;if(e==null||["number","boolean","string"].includes(typeof e)&&!BD.isNaN(e))return e;let s=M0e(t,e);if(!s.startsWith("[object "))return s;if(e.__sentry_skip_normalization__)return e;let u=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:r;if(u===0)return s.replace("object ","");if(a(e))return"[Circular ~]";let l=e;if(l&&typeof l.toJSON=="function")try{let p=l.toJSON();return vE("",p,u-1,n,o)}catch(p){}let c=Array.isArray(e)?[]:{},f=0,d=N0e.convertToPlainObject(e);for(let p in d){if(!Object.prototype.hasOwnProperty.call(d,p))continue;if(f>=n){c[p]="[MaxProperties ~]";break}let m=d[p];c[p]=vE(p,m,u-1,n,o),f++}return i(e),c}function M0e(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global!="undefined"&&e===global)return"[Global]";if(typeof window!="undefined"&&e===window)return"[Window]";if(typeof document!="undefined"&&e===document)return"[Document]";if(BD.isVueViewModel(e))return"[VueViewModel]";if(BD.isSyntheticEvent(e))return"[SyntheticEvent]";if(typeof e=="number"&&e!==e)return"[NaN]";if(typeof e=="function")return`[Function: ${A0e.getFunctionName(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;let r=F0e(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function F0e(t){let e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function q0e(t){return~-encodeURI(t).split(/%..|./).length}function j0e(t){return q0e(JSON.stringify(t))}function L0e(t,e){let r=e.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"),n=t;try{n=decodeURI(t)}catch(o){}return n.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${r}/*`,"ig"),"app:///")}Xf.normalize=z8;Xf.normalizeToSize=W8;Xf.normalizeUrlToBase=L0e;Xf.walk=vE});var Y8=_(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});function H8(t,e){let r=0;for(let n=t.length-1;n>=0;n--){let o=t[n];o==="."?t.splice(n,1):o===".."?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}var B0e=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function G8(t){let e=t.length>1024?`${t.slice(-1024)}`:t,r=B0e.exec(e);return r?r.slice(1):[]}function UD(...t){let e="",r=!1;for(let n=t.length-1;n>=-1&&!r;n--){let o=n>=0?t[n]:"/";o&&(e=`${o}/${e}`,r=o.charAt(0)==="/")}return e=H8(e.split("/").filter(n=>!!n),!r).join("/"),(r?"/":"")+e||"."}function $8(t){let e=0;for(;e=0&&t[r]==="";r--);return e>r?[]:t.slice(e,r-e+1)}function U0e(t,e){t=UD(t).slice(1),e=UD(e).slice(1);let r=$8(t.split("/")),n=$8(e.split("/")),o=Math.min(r.length,n.length),a=o;for(let s=0;s!!o),!e).join("/");return!n&&!e&&(n="."),n&&r&&(n+="/"),(e?"/":"")+n}function K8(t){return t.charAt(0)==="/"}function z0e(...t){return V8(t.join("/"))}function W0e(t){let e=G8(t),r=e[0],n=e[1];return!r&&!n?".":(n&&(n=n.slice(0,n.length-1)),r+n)}function $0e(t,e){let r=G8(t)[2];return e&&r.slice(e.length*-1)===e&&(r=r.slice(0,r.length-e.length)),r}ms.basename=$0e;ms.dirname=W0e;ms.isAbsolute=K8;ms.join=z0e;ms.normalizePath=V8;ms.relative=U0e;ms.resolve=UD});var zD=_(Mv=>{"use strict";Object.defineProperty(Mv,"__esModule",{value:!0});var H0e=Jo(),hs;(function(t){t[t.PENDING=0]="PENDING";let r=1;t[t.RESOLVED=r]="RESOLVED";let n=2;t[t.REJECTED=n]="REJECTED"})(hs||(hs={}));function G0e(t){return new Av(e=>{e(t)})}function V0e(t){return new Av((e,r)=>{r(t)})}var Av=class t{constructor(e){t.prototype.__init.call(this),t.prototype.__init2.call(this),t.prototype.__init3.call(this),t.prototype.__init4.call(this),this._state=hs.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(r){this._reject(r)}}then(e,r){return new t((n,o)=>{this._handlers.push([!1,a=>{if(!e)n(a);else try{n(e(a))}catch(i){o(i)}},a=>{if(!r)o(a);else try{n(r(a))}catch(i){o(i)}}]),this._executeHandlers()})}catch(e){return this.then(r=>r,e)}finally(e){return new t((r,n)=>{let o,a;return this.then(i=>{a=!1,o=i,e&&e()},i=>{a=!0,o=i,e&&e()}).then(()=>{if(a){n(o);return}r(o)})})}__init(){this._resolve=e=>{this._setResult(hs.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(hs.REJECTED,e)}}__init3(){this._setResult=(e,r)=>{if(this._state===hs.PENDING){if(H0e.isThenable(r)){r.then(this._resolve,this._reject);return}this._state=e,this._value=r,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===hs.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(r=>{r[0]||(this._state===hs.RESOLVED&&r[1](this._value),this._state===hs.REJECTED&&r[2](this._value),r[0]=!0)})}}};Mv.SyncPromise=Av;Mv.rejectedSyncPromise=V0e;Mv.resolvedSyncPromise=G0e});var J8=_($D=>{"use strict";Object.defineProperty($D,"__esModule",{value:!0});var K0e=oD(),WD=zD();function Y0e(t){let e=[];function r(){return t===void 0||e.lengthn(s)).then(null,()=>n(s).then(null,()=>{})),s}function a(i){return new WD.SyncPromise((s,u)=>{let l=e.length;if(!l)return s(!0);let c=setTimeout(()=>{i&&i>0&&s(!1)},i);e.forEach(f=>{WD.resolvedSyncPromise(f).then(()=>{--l||(clearTimeout(c),s(!0))},u)})})}return{$:e,add:o,drain:a}}$D.makePromiseBuffer=Y0e});var X8=_(HD=>{"use strict";Object.defineProperty(HD,"__esModule",{value:!0});function J0e(t){let e={},r=0;for(;r{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});function X0e(t){if(!t)return{};let e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};let r=e[6]||"",n=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:r,hash:n,relative:e[5]+r+n}}function Z0e(t){return t.split(/[\?#]/,1)[0]}function Q0e(t){return t.split(/\\?\//).filter(e=>e.length>0&&e!==",").length}function eSe(t){let{protocol:e,host:r,path:n}=t,o=r&&r.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||"";return`${e?`${e}://`:""}${o}${n}`}Zf.getNumberOfUrlSegments=Q0e;Zf.getSanitizedUrlString=eSe;Zf.parseUrl=X0e;Zf.stripUrlQueryAndFragment=Z0e});var r6=_(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});var tSe=X8(),rSe=ti(),Z8=Jo(),nSe=ba(),oSe=Nv(),aSe=GD(),iSe={ip:!1,request:!0,transaction:!0,user:!0},sSe=["cookies","data","headers","method","query_string","url"],Q8=["id","username","email"];function uSe(t,e,r){if(t){if(!t.metadata.source||t.metadata.source==="url"){let[n,o]=yE(e,{path:!0,method:!0});t.updateName(n),t.setMetadata({source:o})}t.setAttribute("url",e.originalUrl||e.url),e.baseUrl&&t.setAttribute("baseUrl",e.baseUrl),t.setData("query",e6(e,r))}}function yE(t,e={}){let r=t.method&&t.method.toUpperCase(),n="",o="url";e.customRoute||t.route?(n=e.customRoute||`${t.baseUrl||""}${t.route&&t.route.path}`,o="route"):(t.originalUrl||t.url)&&(n=aSe.stripUrlQueryAndFragment(t.originalUrl||t.url||""));let a="";return e.method&&r&&(a+=r),e.method&&e.path&&(a+=" "),e.path&&n&&(a+=n),[a,o]}function lSe(t,e){switch(e){case"path":return yE(t,{path:!0})[0];case"handler":return t.route&&t.route.stack&&t.route.stack[0]&&t.route.stack[0].name||"";case"methodPath":default:{let r=t._reconstructedRoute?t._reconstructedRoute:void 0;return yE(t,{path:!0,method:!0,customRoute:r})[0]}}}function cSe(t,e){let r={};return(Array.isArray(e)?e:Q8).forEach(o=>{t&&o in t&&(r[o]=t[o])}),r}function VD(t,e){let{include:r=sSe,deps:n}=e||{},o={},a=t.headers||{},i=t.method,s=a.host||t.hostname||t.host||"",u=t.protocol==="https"||t.socket&&t.socket.encrypted?"https":"http",l=t.originalUrl||t.url||"",c=l.startsWith(u)?l:`${u}://${s}${l}`;return r.forEach(f=>{switch(f){case"headers":{o.headers=a,r.includes("cookies")||delete o.headers.cookie;break}case"method":{o.method=i;break}case"url":{o.url=c;break}case"cookies":{o.cookies=t.cookies||a.cookie&&tSe.parseCookie(a.cookie)||{};break}case"query_string":{o.query_string=e6(t,n);break}case"data":{if(i==="GET"||i==="HEAD")break;t.body!==void 0&&(o.data=Z8.isString(t.body)?t.body:JSON.stringify(oSe.normalize(t.body)));break}default:({}).hasOwnProperty.call(t,f)&&(o[f]=t[f])}}),o}function dSe(t,e,r){let n={...iSe,...r&&r.include};if(n.request){let o=Array.isArray(n.request)?VD(e,{include:n.request,deps:r&&r.deps}):VD(e,{deps:r&&r.deps});t.request={...t.request,...o}}if(n.user){let o=e.user&&Z8.isPlainObject(e.user)?cSe(e.user,n.user):{};Object.keys(o).length&&(t.user={...t.user,...o})}if(n.ip){let o=e.ip||e.socket&&e.socket.remoteAddress;o&&(t.user={...t.user,ip_address:o})}return n.transaction&&!t.transaction&&(t.transaction=lSe(e,n.transaction)),t}function e6(t,e){let r=t.originalUrl||t.url||"";if(r){r.startsWith("/")&&(r=`http://dogs.are.great${r}`);try{return t.query||typeof URL!="undefined"&&new URL(r).search.slice(1)||e&&e.url&&e.url.parse(r).query||void 0}catch(n){return}}}function t6(t){let e={};try{t.forEach((r,n)=>{typeof r=="string"&&(e[n]=r)})}catch(r){rSe.DEBUG_BUILD&&nSe.logger.warn("Sentry failed extracting headers from a request object. If you see this, please file an issue.")}return e}function fSe(t){let e=t6(t.headers);return{method:t.method,url:t.url,headers:e}}gs.DEFAULT_USER_INCLUDES=Q8;gs.addRequestDataToEvent=dSe;gs.addRequestDataToTransaction=uSe;gs.extractPathForTransaction=yE;gs.extractRequestData=VD;gs.winterCGHeadersToDict=t6;gs.winterCGRequestToRequestData=fSe});var a6=_(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0});var n6=["fatal","error","warning","log","info","debug"];function pSe(t){return o6(t)}function o6(t){return t==="warn"?"warning":n6.includes(t)?t:"log"}Fv.severityFromString=pSe;Fv.severityLevelFromString=o6;Fv.validSeverityLevels=n6});var KD=_(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});var i6=bn(),s6=1e3;function u6(){return Date.now()/s6}function mSe(){let{performance:t}=i6.GLOBAL_OBJ;if(!t||!t.now)return u6;let e=Date.now()-t.now(),r=t.timeOrigin==null?e:t.timeOrigin;return()=>(r+t.now())/s6}var l6=mSe(),hSe=l6;Ta._browserPerformanceTimeOriginMode=void 0;var gSe=(()=>{let{performance:t}=i6.GLOBAL_OBJ;if(!t||!t.now){Ta._browserPerformanceTimeOriginMode="none";return}let e=3600*1e3,r=t.now(),n=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,a=o{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});var vSe=ti(),ySe=Jo(),_Se=ba(),bSe="baggage",YD="sentry-",d6=/^sentry-/,f6=8192;function SSe(t){if(!ySe.isString(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce((n,o)=>{let a=c6(o);for(let i of Object.keys(a))n[i]=a[i];return n},{});else{if(!t)return;e=c6(t)}let r=Object.entries(e).reduce((n,[o,a])=>{if(o.match(d6)){let i=o.slice(YD.length);n[i]=a}return n},{});if(Object.keys(r).length>0)return r}function ESe(t){if(!t)return;let e=Object.entries(t).reduce((r,[n,o])=>(o&&(r[`${YD}${n}`]=o),r),{});return TSe(e)}function c6(t){return t.split(",").map(e=>e.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((e,[r,n])=>(e[r]=n,e),{})}function TSe(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[r,n],o)=>{let a=`${encodeURIComponent(r)}=${encodeURIComponent(n)}`,i=o===0?a:`${e},${a}`;return i.length>f6?(vSe.DEBUG_BUILD&&_Se.logger.warn(`Not adding key: ${r} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):i},"")}ju.BAGGAGE_HEADER_NAME=bSe;ju.MAX_BAGGAGE_STRING_LENGTH=f6;ju.SENTRY_BAGGAGE_KEY_PREFIX=YD;ju.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=d6;ju.baggageHeaderToDynamicSamplingContext=SSe;ju.dynamicSamplingContextToSentryBaggageHeader=ESe});var h6=_(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});var p6=JD(),Zo=Iv(),m6=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function XD(t){if(!t)return;let e=t.match(m6);if(!e)return;let r;return e[3]==="1"?r=!0:e[3]==="0"&&(r=!1),{traceId:e[1],parentSampled:r,parentSpanId:e[2]}}function wSe(t,e){let r=XD(t),n=p6.baggageHeaderToDynamicSamplingContext(e),{traceId:o,parentSpanId:a,parentSampled:i}=r||{};return r?{traceparentData:r,dynamicSamplingContext:n||{},propagationContext:{traceId:o||Zo.uuid4(),parentSpanId:a||Zo.uuid4().substring(16),spanId:Zo.uuid4().substring(16),sampled:i,dsc:n||{}}}:{traceparentData:r,dynamicSamplingContext:void 0,propagationContext:{traceId:o||Zo.uuid4(),spanId:Zo.uuid4().substring(16)}}}function xSe(t,e){let r=XD(t),n=p6.baggageHeaderToDynamicSamplingContext(e),{traceId:o,parentSpanId:a,parentSampled:i}=r||{};return r?{traceId:o||Zo.uuid4(),parentSpanId:a||Zo.uuid4().substring(16),spanId:Zo.uuid4().substring(16),sampled:i,dsc:n||{}}:{traceId:o||Zo.uuid4(),spanId:Zo.uuid4().substring(16)}}function CSe(t=Zo.uuid4(),e=Zo.uuid4().substring(16),r){let n="";return r!==void 0&&(n=r?"-1":"-0"),`${t}-${e}${n}`}pc.TRACEPARENT_REGEXP=m6;pc.extractTraceparentData=XD;pc.generateSentryTraceHeader=CSe;pc.propagationContextFromHeaders=xSe;pc.tracingContextFromHeaders=wSe});var QD=_(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});var ISe=tD(),kSe=Nv(),g6=Xo();function PSe(t,e=[]){return[t,e]}function OSe(t,e){let[r,n]=t;return[r,[...n,e]]}function v6(t,e){let r=t[1];for(let n of r){let o=n[0].type;if(e(n,o))return!0}return!1}function RSe(t,e){return v6(t,(r,n)=>e.includes(n))}function ZD(t,e){return(e||new TextEncoder).encode(t)}function DSe(t,e){let[r,n]=t,o=JSON.stringify(r);function a(i){typeof o=="string"?o=typeof i=="string"?o+i:[ZD(o,e),i]:o.push(typeof i=="string"?ZD(i,e):i)}for(let i of n){let[s,u]=i;if(a(` +Error:`,o)}}Kp.addHandler=Ebe;Kp.maybeInstrument=wbe;Kp.resetInstrumentationHandlers=Tbe;Kp.triggerHandlers=xbe});var cD=_(lD=>{"use strict";Object.defineProperty(lD,"__esModule",{value:!0});var sD=ba(),Cbe=Xo(),tE=bn(),uD=fs();function Ibe(t){let e="console";uD.addHandler(e,t),uD.maybeInstrument(e,kbe)}function kbe(){"console"in tE.GLOBAL_OBJ&&sD.CONSOLE_LEVELS.forEach(function(t){t in tE.GLOBAL_OBJ.console&&Cbe.fill(tE.GLOBAL_OBJ.console,t,function(e){return sD.originalConsoleMethods[t]=e,function(...r){let n={args:r,level:t};uD.triggerHandlers("console",n);let o=sD.originalConsoleMethods[t];o&&o.apply(tE.GLOBAL_OBJ.console,r)}})})}lD.addConsoleInstrumentationHandler=Ibe});var Iv=_(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});var Pbe=Xo(),dD=Tv(),Obe=bn();function Rbe(){let t=Obe.GLOBAL_OBJ,e=t.crypto||t.msCrypto,r=()=>Math.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(r=()=>{let n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch(n){}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function w8(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function Dbe(t){let{message:e,event_id:r}=t;if(e)return e;let n=w8(t);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""}function Nbe(t,e,r){let n=t.exception=t.exception||{},o=n.values=n.values||[],a=o[0]=o[0]||{};a.value||(a.value=e||""),a.type||(a.type=r||"Error")}function Abe(t,e){let r=w8(t);if(!r)return;let n={type:"generic",handled:!0},o=r.mechanism;if(r.mechanism={...n,...o,...e},e&&"data"in e){let a={...o&&o.data,...e.data};r.mechanism.data=a}}var Mbe=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function Fbe(t){let e=t.match(Mbe)||[],r=parseInt(e[1],10),n=parseInt(e[2],10),o=parseInt(e[3],10);return{buildmetadata:e[5],major:isNaN(r)?void 0:r,minor:isNaN(n)?void 0:n,patch:isNaN(o)?void 0:o,prerelease:e[4]}}function qbe(t,e,r=5){if(e.lineno===void 0)return;let n=t.length,o=Math.max(Math.min(n-1,e.lineno-1),0);e.pre_context=t.slice(Math.max(0,o-r),o).map(a=>dD.snipLine(a,0)),e.context_line=dD.snipLine(t[Math.min(n-1,o)],e.colno||0),e.post_context=t.slice(Math.min(o+1,n),o+1+r).map(a=>dD.snipLine(a,0))}function jbe(t){if(t&&t.__sentry_captured__)return!0;try{Pbe.addNonEnumerableProperty(t,"__sentry_captured__",!0)}catch(e){}return!1}function Lbe(t){return Array.isArray(t)?t:[t]}ri.addContextToFrame=qbe;ri.addExceptionMechanism=Abe;ri.addExceptionTypeValue=Nbe;ri.arrayify=Lbe;ri.checkOrSetAlreadyCaught=jbe;ri.getEventDescription=Dbe;ri.parseSemver=Fbe;ri.uuid4=Rbe});var hD=_(nE=>{"use strict";Object.defineProperty(nE,"__esModule",{value:!0});var Bbe=Iv(),rE=Xo(),Ube=bn(),pD=fs(),Yp=Ube.GLOBAL_OBJ,zbe=1e3,x8,fD,mD;function Wbe(t){let e="dom";pD.addHandler(e,t),pD.maybeInstrument(e,I8)}function I8(){if(!Yp.document)return;let t=pD.triggerHandlers.bind(null,"dom"),e=C8(t,!0);Yp.document.addEventListener("click",e,!1),Yp.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(r=>{let n=Yp[r]&&Yp[r].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(rE.fill(n,"addEventListener",function(o){return function(a,i,s){if(a==="click"||a=="keypress")try{let u=this,l=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},c=l[a]=l[a]||{refCount:0};if(!c.handler){let p=C8(t);c.handler=p,o.call(this,a,p,s)}c.refCount++}catch(u){}return o.call(this,a,i,s)}}),rE.fill(n,"removeEventListener",function(o){return function(a,i,s){if(a==="click"||a=="keypress")try{let u=this,l=u.__sentry_instrumentation_handlers__||{},c=l[a];c&&(c.refCount--,c.refCount<=0&&(o.call(this,a,c.handler,s),c.handler=void 0,delete l[a]),Object.keys(l).length===0&&delete u.__sentry_instrumentation_handlers__)}catch(u){}return o.call(this,a,i,s)}}))})}function $be(t){if(t.type!==fD)return!1;try{if(!t.target||t.target._sentryId!==mD)return!1}catch(e){}return!0}function Hbe(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function C8(t,e=!1){return r=>{if(!r||r._sentryCaptured)return;let n=Gbe(r);if(Hbe(r.type,n))return;rE.addNonEnumerableProperty(r,"_sentryCaptured",!0),n&&!n._sentryId&&rE.addNonEnumerableProperty(n,"_sentryId",Bbe.uuid4());let o=r.type==="keypress"?"input":r.type;$be(r)||(t({event:r,name:o,global:e}),fD=r.type,mD=n?n._sentryId:void 0),clearTimeout(x8),x8=Yp.setTimeout(()=>{mD=void 0,fD=void 0},zbe)}}function Gbe(t){try{return t.target}catch(e){return null}}nE.addClickKeypressInstrumentationHandler=Wbe;nE.instrumentDOM=I8});var yD=_(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});var Vbe=ti(),Kbe=ba(),Ybe=bn(),oE=Ybe.getGlobalObject();function Jbe(){try{return new ErrorEvent(""),!0}catch(t){return!1}}function Xbe(){try{return new DOMError(""),!0}catch(t){return!1}}function Zbe(){try{return new DOMException(""),!0}catch(t){return!1}}function vD(){if(!("fetch"in oE))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function gD(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Qbe(){if(typeof EdgeRuntime=="string")return!0;if(!vD())return!1;if(gD(oE.fetch))return!0;let t=!1,e=oE.document;if(e&&typeof e.createElement=="function")try{let r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=gD(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){Vbe.DEBUG_BUILD&&Kbe.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function e0e(){return"ReportingObserver"in oE}function t0e(){if(!vD())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}ni.isNativeFetch=gD;ni.supportsDOMError=Xbe;ni.supportsDOMException=Zbe;ni.supportsErrorEvent=Jbe;ni.supportsFetch=vD;ni.supportsNativeFetch=Qbe;ni.supportsReferrerPolicy=t0e;ni.supportsReportingObserver=e0e});var bD=_(aE=>{"use strict";Object.defineProperty(aE,"__esModule",{value:!0});var r0e=Xo(),n0e=yD(),k8=bn(),kv=fs();function o0e(t){let e="fetch";kv.addHandler(e,t),kv.maybeInstrument(e,a0e)}function a0e(){n0e.supportsNativeFetch()&&r0e.fill(k8.GLOBAL_OBJ,"fetch",function(t){return function(...e){let{method:r,url:n}=O8(e),o={args:e,fetchData:{method:r,url:n},startTimestamp:Date.now()};return kv.triggerHandlers("fetch",{...o}),t.apply(k8.GLOBAL_OBJ,e).then(a=>{let i={...o,endTimestamp:Date.now(),response:a};return kv.triggerHandlers("fetch",i),a},a=>{let i={...o,endTimestamp:Date.now(),error:a};throw kv.triggerHandlers("fetch",i),a})}})}function _D(t,e){return!!t&&typeof t=="object"&&!!t[e]}function P8(t){return typeof t=="string"?t:t?_D(t,"url")?t.url:t.toString?t.toString():"":""}function O8(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){let[r,n]=t;return{url:P8(r),method:_D(n,"method")?String(n.method).toUpperCase():"GET"}}let e=t[0];return{url:P8(e),method:_D(e,"method")?String(e.method).toUpperCase():"GET"}}aE.addFetchInstrumentationHandler=o0e;aE.parseFetchArgs=O8});var wD=_(TD=>{"use strict";Object.defineProperty(TD,"__esModule",{value:!0});var SD=bn(),ED=fs(),iE=null;function i0e(t){let e="error";ED.addHandler(e,t),ED.maybeInstrument(e,s0e)}function s0e(){iE=SD.GLOBAL_OBJ.onerror,SD.GLOBAL_OBJ.onerror=function(t,e,r,n,o){let a={column:n,error:o,line:r,msg:t,url:e};return ED.triggerHandlers("error",a),iE&&!iE.__SENTRY_LOADER__?iE.apply(this,arguments):!1},SD.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}TD.addGlobalErrorInstrumentationHandler=i0e});var kD=_(ID=>{"use strict";Object.defineProperty(ID,"__esModule",{value:!0});var xD=bn(),CD=fs(),sE=null;function u0e(t){let e="unhandledrejection";CD.addHandler(e,t),CD.maybeInstrument(e,l0e)}function l0e(){sE=xD.GLOBAL_OBJ.onunhandledrejection,xD.GLOBAL_OBJ.onunhandledrejection=function(t){let e=t;return CD.triggerHandlers("unhandledrejection",e),sE&&!sE.__SENTRY_LOADER__?sE.apply(this,arguments):!0},xD.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}ID.addGlobalUnhandledRejectionInstrumentationHandler=u0e});var OD=_(PD=>{"use strict";Object.defineProperty(PD,"__esModule",{value:!0});var c0e=bn(),uE=c0e.getGlobalObject();function d0e(){let t=uE.chrome,e=t&&t.app&&t.app.runtime,r="history"in uE&&!!uE.history.pushState&&!!uE.history.replaceState;return!e&&r}PD.supportsHistory=d0e});var DD=_(RD=>{"use strict";Object.defineProperty(RD,"__esModule",{value:!0});var R8=Xo();ti();ba();var p0e=bn(),f0e=OD(),cE=fs(),Pv=p0e.GLOBAL_OBJ,lE;function m0e(t){let e="history";cE.addHandler(e,t),cE.maybeInstrument(e,h0e)}function h0e(){if(!f0e.supportsHistory())return;let t=Pv.onpopstate;Pv.onpopstate=function(...r){let n=Pv.location.href,o=lE;lE=n;let a={from:o,to:n};if(cE.triggerHandlers("history",a),t)try{return t.apply(this,r)}catch(i){}};function e(r){return function(...n){let o=n.length>2?n[2]:void 0;if(o){let a=lE,i=String(o);lE=i;let s={from:a,to:i};cE.triggerHandlers("history",s)}return r.apply(this,n)}}R8.fill(Pv.history,"pushState",e),R8.fill(Pv.history,"replaceState",e)}RD.addHistoryInstrumentationHandler=m0e});var ND=_(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0});var pE=Jo(),dE=Xo(),g0e=bn(),fE=fs(),v0e=g0e.GLOBAL_OBJ,Ov="__sentry_xhr_v3__";function y0e(t){let e="xhr";fE.addHandler(e,t),fE.maybeInstrument(e,D8)}function D8(){if(!v0e.XMLHttpRequest)return;let t=XMLHttpRequest.prototype;dE.fill(t,"open",function(e){return function(...r){let n=Date.now(),o=pE.isString(r[0])?r[0].toUpperCase():void 0,a=_0e(r[1]);if(!o||!a)return e.apply(this,r);this[Ov]={method:o,url:a,request_headers:{}},o==="POST"&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let i=()=>{let s=this[Ov];if(s&&this.readyState===4){try{s.status_code=this.status}catch(l){}let u={args:[o,a],endTimestamp:Date.now(),startTimestamp:n,xhr:this};fE.triggerHandlers("xhr",u)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?dE.fill(this,"onreadystatechange",function(s){return function(...u){return i(),s.apply(this,u)}}):this.addEventListener("readystatechange",i),dE.fill(this,"setRequestHeader",function(s){return function(...u){let[l,c]=u,p=this[Ov];return p&&pE.isString(l)&&pE.isString(c)&&(p.request_headers[l.toLowerCase()]=c),s.apply(this,u)}}),e.apply(this,r)}}),dE.fill(t,"send",function(e){return function(...r){let n=this[Ov];if(!n)return e.apply(this,r);r[0]!==void 0&&(n.body=r[0]);let o={args:[n.method,n.url],startTimestamp:Date.now(),xhr:this};return fE.triggerHandlers("xhr",o),e.apply(this,r)}})}function _0e(t){if(pE.isString(t))return t;try{return t.toString()}catch(e){}}Rv.SENTRY_XHR_DATA_KEY=Ov;Rv.addXhrInstrumentationHandler=y0e;Rv.instrumentXHR=D8});var L8=_(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});var b0e=ti(),S0e=ba(),N8=cD(),A8=hD(),M8=bD(),F8=wD(),q8=kD(),j8=DD(),AD=ND();function E0e(t,e){switch(t){case"console":return N8.addConsoleInstrumentationHandler(e);case"dom":return A8.addClickKeypressInstrumentationHandler(e);case"xhr":return AD.addXhrInstrumentationHandler(e);case"fetch":return M8.addFetchInstrumentationHandler(e);case"history":return j8.addHistoryInstrumentationHandler(e);case"error":return F8.addGlobalErrorInstrumentationHandler(e);case"unhandledrejection":return q8.addGlobalUnhandledRejectionInstrumentationHandler(e);default:b0e.DEBUG_BUILD&&S0e.logger.warn("unknown instrumentation type:",t)}}Ea.addConsoleInstrumentationHandler=N8.addConsoleInstrumentationHandler;Ea.addClickKeypressInstrumentationHandler=A8.addClickKeypressInstrumentationHandler;Ea.addFetchInstrumentationHandler=M8.addFetchInstrumentationHandler;Ea.addGlobalErrorInstrumentationHandler=F8.addGlobalErrorInstrumentationHandler;Ea.addGlobalUnhandledRejectionInstrumentationHandler=q8.addGlobalUnhandledRejectionInstrumentationHandler;Ea.addHistoryInstrumentationHandler=j8.addHistoryInstrumentationHandler;Ea.SENTRY_XHR_DATA_KEY=AD.SENTRY_XHR_DATA_KEY;Ea.addXhrInstrumentationHandler=AD.addXhrInstrumentationHandler;Ea.addInstrumentationHandler=E0e});var MD=_(mE=>{"use strict";Object.defineProperty(mE,"__esModule",{value:!0});function T0e(){return typeof __SENTRY_BROWSER_BUNDLE__!="undefined"&&!!__SENTRY_BROWSER_BUNDLE__}function w0e(){return"npm"}mE.getSDKSource=w0e;mE.isBrowserBundle=T0e});var FD=_((Dv,gE)=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0});var x0e=MD();function C0e(){return!x0e.isBrowserBundle()&&Object.prototype.toString.call(typeof process!="undefined"?process:0)==="[object process]"}function hE(t,e){return t.require(e)}function I0e(t){let e;try{e=hE(gE,t)}catch(r){}try{let{cwd:r}=hE(gE,"process");e=hE(gE,`${r()}/node_modules/${t}`)}catch(r){}return e}Dv.dynamicRequire=hE;Dv.isNodeEnv=C0e;Dv.loadModule=I0e});var U8=_(qD=>{"use strict";Object.defineProperty(qD,"__esModule",{value:!0});var k0e=FD(),B8=bn();function P0e(){return typeof window!="undefined"&&(!k0e.isNodeEnv()||O0e())}function O0e(){return B8.GLOBAL_OBJ.process!==void 0&&B8.GLOBAL_OBJ.process.type==="renderer"}qD.isBrowser=P0e});var LD=_(jD=>{"use strict";Object.defineProperty(jD,"__esModule",{value:!0});function R0e(){let t=typeof WeakSet=="function",e=t?new WeakSet:[];function r(o){if(t)return e.has(o)?!0:(e.add(o),!1);for(let a=0;a{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});var BD=Jo(),D0e=LD(),N0e=Xo(),A0e=eE();function z8(t,e=100,r=1/0){try{return vE("",t,e,r)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function W8(t,e=3,r=100*1024){let n=z8(t,e);return j0e(n)>r?W8(t,e-1,r):n}function vE(t,e,r=1/0,n=1/0,o=D0e.memoBuilder()){let[a,i]=o;if(e==null||["number","boolean","string"].includes(typeof e)&&!BD.isNaN(e))return e;let s=M0e(t,e);if(!s.startsWith("[object "))return s;if(e.__sentry_skip_normalization__)return e;let u=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:r;if(u===0)return s.replace("object ","");if(a(e))return"[Circular ~]";let l=e;if(l&&typeof l.toJSON=="function")try{let f=l.toJSON();return vE("",f,u-1,n,o)}catch(f){}let c=Array.isArray(e)?[]:{},p=0,d=N0e.convertToPlainObject(e);for(let f in d){if(!Object.prototype.hasOwnProperty.call(d,f))continue;if(p>=n){c[f]="[MaxProperties ~]";break}let m=d[f];c[f]=vE(f,m,u-1,n,o),p++}return i(e),c}function M0e(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global!="undefined"&&e===global)return"[Global]";if(typeof window!="undefined"&&e===window)return"[Window]";if(typeof document!="undefined"&&e===document)return"[Document]";if(BD.isVueViewModel(e))return"[VueViewModel]";if(BD.isSyntheticEvent(e))return"[SyntheticEvent]";if(typeof e=="number"&&e!==e)return"[NaN]";if(typeof e=="function")return`[Function: ${A0e.getFunctionName(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;let r=F0e(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function F0e(t){let e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function q0e(t){return~-encodeURI(t).split(/%..|./).length}function j0e(t){return q0e(JSON.stringify(t))}function L0e(t,e){let r=e.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"),n=t;try{n=decodeURI(t)}catch(o){}return n.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${r}/*`,"ig"),"app:///")}Jp.normalize=z8;Jp.normalizeToSize=W8;Jp.normalizeUrlToBase=L0e;Jp.walk=vE});var Y8=_(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});function H8(t,e){let r=0;for(let n=t.length-1;n>=0;n--){let o=t[n];o==="."?t.splice(n,1):o===".."?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}var B0e=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function G8(t){let e=t.length>1024?`${t.slice(-1024)}`:t,r=B0e.exec(e);return r?r.slice(1):[]}function UD(...t){let e="",r=!1;for(let n=t.length-1;n>=-1&&!r;n--){let o=n>=0?t[n]:"/";o&&(e=`${o}/${e}`,r=o.charAt(0)==="/")}return e=H8(e.split("/").filter(n=>!!n),!r).join("/"),(r?"/":"")+e||"."}function $8(t){let e=0;for(;e=0&&t[r]==="";r--);return e>r?[]:t.slice(e,r-e+1)}function U0e(t,e){t=UD(t).slice(1),e=UD(e).slice(1);let r=$8(t.split("/")),n=$8(e.split("/")),o=Math.min(r.length,n.length),a=o;for(let s=0;s!!o),!e).join("/");return!n&&!e&&(n="."),n&&r&&(n+="/"),(e?"/":"")+n}function K8(t){return t.charAt(0)==="/"}function z0e(...t){return V8(t.join("/"))}function W0e(t){let e=G8(t),r=e[0],n=e[1];return!r&&!n?".":(n&&(n=n.slice(0,n.length-1)),r+n)}function $0e(t,e){let r=G8(t)[2];return e&&r.slice(e.length*-1)===e&&(r=r.slice(0,r.length-e.length)),r}ms.basename=$0e;ms.dirname=W0e;ms.isAbsolute=K8;ms.join=z0e;ms.normalizePath=V8;ms.relative=U0e;ms.resolve=UD});var zD=_(Mv=>{"use strict";Object.defineProperty(Mv,"__esModule",{value:!0});var H0e=Jo(),hs;(function(t){t[t.PENDING=0]="PENDING";let r=1;t[t.RESOLVED=r]="RESOLVED";let n=2;t[t.REJECTED=n]="REJECTED"})(hs||(hs={}));function G0e(t){return new Av(e=>{e(t)})}function V0e(t){return new Av((e,r)=>{r(t)})}var Av=class t{constructor(e){t.prototype.__init.call(this),t.prototype.__init2.call(this),t.prototype.__init3.call(this),t.prototype.__init4.call(this),this._state=hs.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(r){this._reject(r)}}then(e,r){return new t((n,o)=>{this._handlers.push([!1,a=>{if(!e)n(a);else try{n(e(a))}catch(i){o(i)}},a=>{if(!r)o(a);else try{n(r(a))}catch(i){o(i)}}]),this._executeHandlers()})}catch(e){return this.then(r=>r,e)}finally(e){return new t((r,n)=>{let o,a;return this.then(i=>{a=!1,o=i,e&&e()},i=>{a=!0,o=i,e&&e()}).then(()=>{if(a){n(o);return}r(o)})})}__init(){this._resolve=e=>{this._setResult(hs.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(hs.REJECTED,e)}}__init3(){this._setResult=(e,r)=>{if(this._state===hs.PENDING){if(H0e.isThenable(r)){r.then(this._resolve,this._reject);return}this._state=e,this._value=r,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===hs.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(r=>{r[0]||(this._state===hs.RESOLVED&&r[1](this._value),this._state===hs.REJECTED&&r[2](this._value),r[0]=!0)})}}};Mv.SyncPromise=Av;Mv.rejectedSyncPromise=V0e;Mv.resolvedSyncPromise=G0e});var J8=_($D=>{"use strict";Object.defineProperty($D,"__esModule",{value:!0});var K0e=oD(),WD=zD();function Y0e(t){let e=[];function r(){return t===void 0||e.lengthn(s)).then(null,()=>n(s).then(null,()=>{})),s}function a(i){return new WD.SyncPromise((s,u)=>{let l=e.length;if(!l)return s(!0);let c=setTimeout(()=>{i&&i>0&&s(!1)},i);e.forEach(p=>{WD.resolvedSyncPromise(p).then(()=>{--l||(clearTimeout(c),s(!0))},u)})})}return{$:e,add:o,drain:a}}$D.makePromiseBuffer=Y0e});var X8=_(HD=>{"use strict";Object.defineProperty(HD,"__esModule",{value:!0});function J0e(t){let e={},r=0;for(;r{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});function X0e(t){if(!t)return{};let e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};let r=e[6]||"",n=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:r,hash:n,relative:e[5]+r+n}}function Z0e(t){return t.split(/[\?#]/,1)[0]}function Q0e(t){return t.split(/\\?\//).filter(e=>e.length>0&&e!==",").length}function eSe(t){let{protocol:e,host:r,path:n}=t,o=r&&r.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||"";return`${e?`${e}://`:""}${o}${n}`}Xp.getNumberOfUrlSegments=Q0e;Xp.getSanitizedUrlString=eSe;Xp.parseUrl=X0e;Xp.stripUrlQueryAndFragment=Z0e});var r6=_(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});var tSe=X8(),rSe=ti(),Z8=Jo(),nSe=ba(),oSe=Nv(),aSe=GD(),iSe={ip:!1,request:!0,transaction:!0,user:!0},sSe=["cookies","data","headers","method","query_string","url"],Q8=["id","username","email"];function uSe(t,e,r){if(t){if(!t.metadata.source||t.metadata.source==="url"){let[n,o]=yE(e,{path:!0,method:!0});t.updateName(n),t.setMetadata({source:o})}t.setAttribute("url",e.originalUrl||e.url),e.baseUrl&&t.setAttribute("baseUrl",e.baseUrl),t.setData("query",e6(e,r))}}function yE(t,e={}){let r=t.method&&t.method.toUpperCase(),n="",o="url";e.customRoute||t.route?(n=e.customRoute||`${t.baseUrl||""}${t.route&&t.route.path}`,o="route"):(t.originalUrl||t.url)&&(n=aSe.stripUrlQueryAndFragment(t.originalUrl||t.url||""));let a="";return e.method&&r&&(a+=r),e.method&&e.path&&(a+=" "),e.path&&n&&(a+=n),[a,o]}function lSe(t,e){switch(e){case"path":return yE(t,{path:!0})[0];case"handler":return t.route&&t.route.stack&&t.route.stack[0]&&t.route.stack[0].name||"";case"methodPath":default:{let r=t._reconstructedRoute?t._reconstructedRoute:void 0;return yE(t,{path:!0,method:!0,customRoute:r})[0]}}}function cSe(t,e){let r={};return(Array.isArray(e)?e:Q8).forEach(o=>{t&&o in t&&(r[o]=t[o])}),r}function VD(t,e){let{include:r=sSe,deps:n}=e||{},o={},a=t.headers||{},i=t.method,s=a.host||t.hostname||t.host||"",u=t.protocol==="https"||t.socket&&t.socket.encrypted?"https":"http",l=t.originalUrl||t.url||"",c=l.startsWith(u)?l:`${u}://${s}${l}`;return r.forEach(p=>{switch(p){case"headers":{o.headers=a,r.includes("cookies")||delete o.headers.cookie;break}case"method":{o.method=i;break}case"url":{o.url=c;break}case"cookies":{o.cookies=t.cookies||a.cookie&&tSe.parseCookie(a.cookie)||{};break}case"query_string":{o.query_string=e6(t,n);break}case"data":{if(i==="GET"||i==="HEAD")break;t.body!==void 0&&(o.data=Z8.isString(t.body)?t.body:JSON.stringify(oSe.normalize(t.body)));break}default:({}).hasOwnProperty.call(t,p)&&(o[p]=t[p])}}),o}function dSe(t,e,r){let n={...iSe,...r&&r.include};if(n.request){let o=Array.isArray(n.request)?VD(e,{include:n.request,deps:r&&r.deps}):VD(e,{deps:r&&r.deps});t.request={...t.request,...o}}if(n.user){let o=e.user&&Z8.isPlainObject(e.user)?cSe(e.user,n.user):{};Object.keys(o).length&&(t.user={...t.user,...o})}if(n.ip){let o=e.ip||e.socket&&e.socket.remoteAddress;o&&(t.user={...t.user,ip_address:o})}return n.transaction&&!t.transaction&&(t.transaction=lSe(e,n.transaction)),t}function e6(t,e){let r=t.originalUrl||t.url||"";if(r){r.startsWith("/")&&(r=`http://dogs.are.great${r}`);try{return t.query||typeof URL!="undefined"&&new URL(r).search.slice(1)||e&&e.url&&e.url.parse(r).query||void 0}catch(n){return}}}function t6(t){let e={};try{t.forEach((r,n)=>{typeof r=="string"&&(e[n]=r)})}catch(r){rSe.DEBUG_BUILD&&nSe.logger.warn("Sentry failed extracting headers from a request object. If you see this, please file an issue.")}return e}function pSe(t){let e=t6(t.headers);return{method:t.method,url:t.url,headers:e}}gs.DEFAULT_USER_INCLUDES=Q8;gs.addRequestDataToEvent=dSe;gs.addRequestDataToTransaction=uSe;gs.extractPathForTransaction=yE;gs.extractRequestData=VD;gs.winterCGHeadersToDict=t6;gs.winterCGRequestToRequestData=pSe});var a6=_(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0});var n6=["fatal","error","warning","log","info","debug"];function fSe(t){return o6(t)}function o6(t){return t==="warn"?"warning":n6.includes(t)?t:"log"}Fv.severityFromString=fSe;Fv.severityLevelFromString=o6;Fv.validSeverityLevels=n6});var KD=_(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});var i6=bn(),s6=1e3;function u6(){return Date.now()/s6}function mSe(){let{performance:t}=i6.GLOBAL_OBJ;if(!t||!t.now)return u6;let e=Date.now()-t.now(),r=t.timeOrigin==null?e:t.timeOrigin;return()=>(r+t.now())/s6}var l6=mSe(),hSe=l6;Ta._browserPerformanceTimeOriginMode=void 0;var gSe=(()=>{let{performance:t}=i6.GLOBAL_OBJ;if(!t||!t.now){Ta._browserPerformanceTimeOriginMode="none";return}let e=3600*1e3,r=t.now(),n=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,a=o{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});var vSe=ti(),ySe=Jo(),_Se=ba(),bSe="baggage",YD="sentry-",d6=/^sentry-/,p6=8192;function SSe(t){if(!ySe.isString(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce((n,o)=>{let a=c6(o);for(let i of Object.keys(a))n[i]=a[i];return n},{});else{if(!t)return;e=c6(t)}let r=Object.entries(e).reduce((n,[o,a])=>{if(o.match(d6)){let i=o.slice(YD.length);n[i]=a}return n},{});if(Object.keys(r).length>0)return r}function ESe(t){if(!t)return;let e=Object.entries(t).reduce((r,[n,o])=>(o&&(r[`${YD}${n}`]=o),r),{});return TSe(e)}function c6(t){return t.split(",").map(e=>e.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((e,[r,n])=>(e[r]=n,e),{})}function TSe(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[r,n],o)=>{let a=`${encodeURIComponent(r)}=${encodeURIComponent(n)}`,i=o===0?a:`${e},${a}`;return i.length>p6?(vSe.DEBUG_BUILD&&_Se.logger.warn(`Not adding key: ${r} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):i},"")}ju.BAGGAGE_HEADER_NAME=bSe;ju.MAX_BAGGAGE_STRING_LENGTH=p6;ju.SENTRY_BAGGAGE_KEY_PREFIX=YD;ju.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=d6;ju.baggageHeaderToDynamicSamplingContext=SSe;ju.dynamicSamplingContextToSentryBaggageHeader=ESe});var h6=_(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});var f6=JD(),Zo=Iv(),m6=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function XD(t){if(!t)return;let e=t.match(m6);if(!e)return;let r;return e[3]==="1"?r=!0:e[3]==="0"&&(r=!1),{traceId:e[1],parentSampled:r,parentSpanId:e[2]}}function wSe(t,e){let r=XD(t),n=f6.baggageHeaderToDynamicSamplingContext(e),{traceId:o,parentSpanId:a,parentSampled:i}=r||{};return r?{traceparentData:r,dynamicSamplingContext:n||{},propagationContext:{traceId:o||Zo.uuid4(),parentSpanId:a||Zo.uuid4().substring(16),spanId:Zo.uuid4().substring(16),sampled:i,dsc:n||{}}}:{traceparentData:r,dynamicSamplingContext:void 0,propagationContext:{traceId:o||Zo.uuid4(),spanId:Zo.uuid4().substring(16)}}}function xSe(t,e){let r=XD(t),n=f6.baggageHeaderToDynamicSamplingContext(e),{traceId:o,parentSpanId:a,parentSampled:i}=r||{};return r?{traceId:o||Zo.uuid4(),parentSpanId:a||Zo.uuid4().substring(16),spanId:Zo.uuid4().substring(16),sampled:i,dsc:n||{}}:{traceId:o||Zo.uuid4(),spanId:Zo.uuid4().substring(16)}}function CSe(t=Zo.uuid4(),e=Zo.uuid4().substring(16),r){let n="";return r!==void 0&&(n=r?"-1":"-0"),`${t}-${e}${n}`}fc.TRACEPARENT_REGEXP=m6;fc.extractTraceparentData=XD;fc.generateSentryTraceHeader=CSe;fc.propagationContextFromHeaders=xSe;fc.tracingContextFromHeaders=wSe});var QD=_(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});var ISe=tD(),kSe=Nv(),g6=Xo();function PSe(t,e=[]){return[t,e]}function OSe(t,e){let[r,n]=t;return[r,[...n,e]]}function v6(t,e){let r=t[1];for(let n of r){let o=n[0].type;if(e(n,o))return!0}return!1}function RSe(t,e){return v6(t,(r,n)=>e.includes(n))}function ZD(t,e){return(e||new TextEncoder).encode(t)}function DSe(t,e){let[r,n]=t,o=JSON.stringify(r);function a(i){typeof o=="string"?o=typeof i=="string"?o+i:[ZD(o,e),i]:o.push(typeof i=="string"?ZD(i,e):i)}for(let i of n){let[s,u]=i;if(a(` ${JSON.stringify(s)} -`),typeof u=="string"||u instanceof Uint8Array)a(u);else{let l;try{l=JSON.stringify(u)}catch(c){l=JSON.stringify(kSe.normalize(u))}a(l)}}return typeof o=="string"?o:NSe(o)}function NSe(t){let e=t.reduce((o,a)=>o+a.length,0),r=new Uint8Array(e),n=0;for(let o of t)r.set(o,n),n+=o.length;return r}function ASe(t,e,r){let n=typeof t=="string"?e.encode(t):t;function o(u){let l=n.subarray(0,u);return n=n.subarray(u+1),l}function a(){let u=n.indexOf(10);return u<0&&(u=n.length),JSON.parse(r.decode(o(u)))}let i=a(),s=[];for(;n.length;){let u=a(),l=typeof u.length=="number"?u.length:void 0;s.push([u,l?o(l):a()])}return[i,s]}function MSe(t,e){let r=typeof t.data=="string"?ZD(t.data,e):t.data;return[g6.dropUndefinedKeys({type:"attachment",length:r.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),r]}var FSe={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function qSe(t){return FSe[t]}function jSe(t){if(!t||!t.sdk)return;let{name:e,version:r}=t.sdk;return{name:e,version:r}}function LSe(t,e,r,n){let o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!r&&n&&{dsn:ISe.dsnToString(n)},...o&&{trace:g6.dropUndefinedKeys({...o})}}}Qo.addItemToEnvelope=OSe;Qo.createAttachmentEnvelopeItem=MSe;Qo.createEnvelope=PSe;Qo.createEventEnvelopeHeaders=LSe;Qo.envelopeContainsItemType=RSe;Qo.envelopeItemTypeToDataCategory=qSe;Qo.forEachEnvelopeItem=v6;Qo.getSdkMetadataForEnvelopeHeader=jSe;Qo.parseEnvelope=ASe;Qo.serializeEnvelope=DSe});var y6=_(eN=>{"use strict";Object.defineProperty(eN,"__esModule",{value:!0});var BSe=QD(),USe=KD();function zSe(t,e,r){let n=[{type:"client_report"},{timestamp:r||USe.dateTimestampInSeconds(),discarded_events:t}];return BSe.createEnvelope(e?{dsn:e}:{},[n])}eN.createClientReportEnvelope=zSe});var E6=_(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});var _6=60*1e3;function b6(t,e=Date.now()){let r=parseInt(`${t}`,10);if(!isNaN(r))return r*1e3;let n=Date.parse(`${t}`);return isNaN(n)?_6:n-e}function S6(t,e){return t[e]||t.all||0}function WSe(t,e,r=Date.now()){return S6(t,e)>r}function $Se(t,{statusCode:e,headers:r},n=Date.now()){let o={...t},a=r&&r["x-sentry-rate-limits"],i=r&&r["retry-after"];if(a)for(let s of a.trim().split(",")){let[u,l,,,c]=s.split(":",5),f=parseInt(u,10),d=(isNaN(f)?60:f)*1e3;if(!l)o.all=n+d;else for(let p of l.split(";"))p==="metric_bucket"?(!c||c.split(";").includes("custom"))&&(o[p]=n+d):o[p]=n+d}else i?o.all=n+b6(i,n):e===429&&(o.all=n+60*1e3);return o}mc.DEFAULT_RETRY_AFTER=_6;mc.disabledUntil=S6;mc.isRateLimited=WSe;mc.parseRetryAfterHeader=b6;mc.updateRateLimits=$Se});var x6=_(tN=>{"use strict";Object.defineProperty(tN,"__esModule",{value:!0});function T6(t,e,r){let n=e.match(/([a-z_]+)\.(.*)/i);if(n===null)t[e]=r;else{let o=t[n[1]];T6(o,n[2],r)}}function HSe(t,e,r={}){return Array.isArray(e)?w6(t,e,r):GSe(t,e,r)}function w6(t,e,r){let n=e.find(o=>o.name===t.name);if(n){for(let[o,a]of Object.entries(r))T6(n,o,a);return e}return[...e,t]}function GSe(t,e,r){return o=>{let a=e(o);return t.allowExclusionByUser&&!a.find(s=>s.name===t.name)?a:w6(t,a,r)}}tN.addOrUpdateIntegration=HSe});var C6=_(rN=>{"use strict";Object.defineProperty(rN,"__esModule",{value:!0});function VSe(t){let e=[],r={};return{add(n,o){for(;e.length>=t;){let a=e.shift();a!==void 0&&delete r[a]}r[n]&&this.delete(n),e.push(n),r[n]=o},clear(){r={},e=[]},get(n){return r[n]},size(){return e.length},delete(n){if(!r[n])return!1;delete r[n];for(let o=0;o{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});var nN=Jo(),I6=Iv(),KSe=Nv(),YSe=Xo();function oN(t,e){return t(e.stack||"",1)}function k6(t,e){let r={type:e.name||e.constructor.name,value:e.message},n=oN(t,e);return n.length&&(r.stacktrace={frames:n}),r}function JSe(t){if("name"in t&&typeof t.name=="string"){let e=`'${t.name}' captured as exception`;return"message"in t&&typeof t.message=="string"&&(e+=` with message '${t.message}'`),e}else return"message"in t&&typeof t.message=="string"?t.message:`Object captured as exception with keys: ${YSe.extractExceptionKeysForMessage(t)}`}function XSe(t,e,r,n){let o=typeof t=="function"?t().getClient():t,a=r,s=n&&n.data&&n.data.mechanism||{handled:!0,type:"generic"},u;if(!nN.isError(r)){if(nN.isPlainObject(r)){let c=o&&o.getOptions().normalizeDepth;u={__serialized__:KSe.normalizeToSize(r,c)};let f=JSe(r);a=n&&n.syntheticException||new Error(f),a.message=f}else a=n&&n.syntheticException||new Error(r),a.message=r;s.synthetic=!0}let l={exception:{values:[k6(e,a)]}};return u&&(l.extra=u),I6.addExceptionTypeValue(l,void 0,void 0),I6.addExceptionMechanism(l,s),{...l,event_id:n&&n.event_id}}function ZSe(t,e,r="info",n,o){let a={event_id:n&&n.event_id,level:r};if(o&&n&&n.syntheticException){let i=oN(t,n.syntheticException);i.length&&(a.exception={values:[{value:e,stacktrace:{frames:i}}]})}if(nN.isParameterizedString(e)){let{__sentry_template_string__:i,__sentry_template_values__:s}=e;return a.logentry={message:i,params:s},a}return a.message=e,a}Qf.eventFromMessage=ZSe;Qf.eventFromUnknownInput=XSe;Qf.exceptionFromError=k6;Qf.parseStackFrames=oN});var O6=_(_E=>{"use strict";Object.defineProperty(_E,"__esModule",{value:!0});var QSe=Xo(),eEe=QS();function tEe(t,e,r,n){let o=t(),a=!1,i=!0;return setInterval(()=>{let s=o.getTimeMs();a===!1&&s>e+r&&(a=!0,i&&n()),s{o.reset()},enabled:s=>{i=s}}}function rEe(t,e,r){let n=e?e.replace(/^file:\/\//,""):void 0,o=t.location.columnNumber?t.location.columnNumber+1:void 0,a=t.location.lineNumber?t.location.lineNumber+1:void 0;return QSe.dropUndefinedKeys({filename:n,module:r(n),function:t.functionName||"?",colno:o,lineno:a,in_app:n?eEe.filenameIsInApp(n):void 0})}_E.callFrameToStackFrame=rEe;_E.watchdogTimer=tEe});var R6=_(iN=>{"use strict";Object.defineProperty(iN,"__esModule",{value:!0});var aN=class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let r=this._cache.get(e);if(r!==void 0)return this._cache.delete(e),this._cache.set(e,r),r}set(e,r){this._cache.size>=this._maxSize&&this._cache.delete(this._cache.keys().next().value),this._cache.set(e,r)}remove(e){let r=this._cache.get(e);return r&&this._cache.delete(e),r}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(r=>e.push(r)),e}};iN.LRUMap=aN});var uN=_(sN=>{"use strict";Object.defineProperty(sN,"__esModule",{value:!0});function nEe(t,e){return t!=null?t:e()}sN._nullishCoalesce=nEe});var D6=_(lN=>{"use strict";Object.defineProperty(lN,"__esModule",{value:!0});var oEe=uN();async function aEe(t,e){return oEe._nullishCoalesce(t,e)}lN._asyncNullishCoalesce=aEe});var dN=_(cN=>{"use strict";Object.defineProperty(cN,"__esModule",{value:!0});async function iEe(t){let e,r=t[0],n=1;for(;nr.call(e,...i)),e=void 0)}return r}cN._asyncOptionalChain=iEe});var N6=_(fN=>{"use strict";Object.defineProperty(fN,"__esModule",{value:!0});var sEe=dN();async function uEe(t){let e=await sEe._asyncOptionalChain(t);return e==null?!0:e}fN._asyncOptionalChainDelete=uEe});var mN=_(pN=>{"use strict";Object.defineProperty(pN,"__esModule",{value:!0});function lEe(t){let e,r=t[0],n=1;for(;nr.call(e,...i)),e=void 0)}return r}pN._optionalChain=lEe});var A6=_(hN=>{"use strict";Object.defineProperty(hN,"__esModule",{value:!0});var cEe=mN();function dEe(t){let e=cEe._optionalChain(t);return e==null?!0:e}hN._optionalChainDelete=dEe});var M6=_(gN=>{"use strict";Object.defineProperty(gN,"__esModule",{value:!0});function fEe(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}gN.escapeStringForRegex=fEe});var se=_(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});var pEe=i8(),bE=JR(),vN=tD(),mEe=oD(),yN=bn(),hEe=L8(),Sn=Jo(),gEe=U8(),SE=ba(),vEe=LD(),Lu=Iv(),_N=FD(),EE=Nv(),vs=Xo(),hc=Y8(),yEe=J8(),gc=r6(),bN=a6(),qv=eE(),jv=Tv(),Bu=yD(),SN=zD(),Lv=KD(),Bv=h6(),F6=MD(),oi=QD(),_Ee=y6(),Uv=E6(),ep=JD(),TE=GD(),bEe=x6(),SEe=C6(),wE=P6(),q6=O6(),EEe=R6(),TEe=D6(),wEe=dN(),xEe=N6(),CEe=uN(),IEe=mN(),kEe=A6(),PEe=cD(),OEe=hD(),j6=ND(),REe=bD(),DEe=DD(),NEe=wD(),AEe=kD(),MEe=ps(),FEe=QS(),qEe=M6(),jEe=OD();B.applyAggregateErrorsToEvent=pEe.applyAggregateErrorsToEvent;B.getComponentName=bE.getComponentName;B.getDomElement=bE.getDomElement;B.getLocationHref=bE.getLocationHref;B.htmlTreeAsString=bE.htmlTreeAsString;B.dsnFromString=vN.dsnFromString;B.dsnToString=vN.dsnToString;B.makeDsn=vN.makeDsn;B.SentryError=mEe.SentryError;B.GLOBAL_OBJ=yN.GLOBAL_OBJ;B.getGlobalObject=yN.getGlobalObject;B.getGlobalSingleton=yN.getGlobalSingleton;B.addInstrumentationHandler=hEe.addInstrumentationHandler;B.isDOMError=Sn.isDOMError;B.isDOMException=Sn.isDOMException;B.isElement=Sn.isElement;B.isError=Sn.isError;B.isErrorEvent=Sn.isErrorEvent;B.isEvent=Sn.isEvent;B.isInstanceOf=Sn.isInstanceOf;B.isNaN=Sn.isNaN;B.isParameterizedString=Sn.isParameterizedString;B.isPlainObject=Sn.isPlainObject;B.isPrimitive=Sn.isPrimitive;B.isRegExp=Sn.isRegExp;B.isString=Sn.isString;B.isSyntheticEvent=Sn.isSyntheticEvent;B.isThenable=Sn.isThenable;B.isVueViewModel=Sn.isVueViewModel;B.isBrowser=gEe.isBrowser;B.CONSOLE_LEVELS=SE.CONSOLE_LEVELS;B.consoleSandbox=SE.consoleSandbox;B.logger=SE.logger;B.originalConsoleMethods=SE.originalConsoleMethods;B.memoBuilder=vEe.memoBuilder;B.addContextToFrame=Lu.addContextToFrame;B.addExceptionMechanism=Lu.addExceptionMechanism;B.addExceptionTypeValue=Lu.addExceptionTypeValue;B.arrayify=Lu.arrayify;B.checkOrSetAlreadyCaught=Lu.checkOrSetAlreadyCaught;B.getEventDescription=Lu.getEventDescription;B.parseSemver=Lu.parseSemver;B.uuid4=Lu.uuid4;B.dynamicRequire=_N.dynamicRequire;B.isNodeEnv=_N.isNodeEnv;B.loadModule=_N.loadModule;B.normalize=EE.normalize;B.normalizeToSize=EE.normalizeToSize;B.normalizeUrlToBase=EE.normalizeUrlToBase;B.walk=EE.walk;B.addNonEnumerableProperty=vs.addNonEnumerableProperty;B.convertToPlainObject=vs.convertToPlainObject;B.dropUndefinedKeys=vs.dropUndefinedKeys;B.extractExceptionKeysForMessage=vs.extractExceptionKeysForMessage;B.fill=vs.fill;B.getOriginalFunction=vs.getOriginalFunction;B.markFunctionWrapped=vs.markFunctionWrapped;B.objectify=vs.objectify;B.urlEncode=vs.urlEncode;B.basename=hc.basename;B.dirname=hc.dirname;B.isAbsolute=hc.isAbsolute;B.join=hc.join;B.normalizePath=hc.normalizePath;B.relative=hc.relative;B.resolve=hc.resolve;B.makePromiseBuffer=yEe.makePromiseBuffer;B.DEFAULT_USER_INCLUDES=gc.DEFAULT_USER_INCLUDES;B.addRequestDataToEvent=gc.addRequestDataToEvent;B.addRequestDataToTransaction=gc.addRequestDataToTransaction;B.extractPathForTransaction=gc.extractPathForTransaction;B.extractRequestData=gc.extractRequestData;B.winterCGHeadersToDict=gc.winterCGHeadersToDict;B.winterCGRequestToRequestData=gc.winterCGRequestToRequestData;B.severityFromString=bN.severityFromString;B.severityLevelFromString=bN.severityLevelFromString;B.validSeverityLevels=bN.validSeverityLevels;B.createStackParser=qv.createStackParser;B.getFunctionName=qv.getFunctionName;B.nodeStackLineParser=qv.nodeStackLineParser;B.stackParserFromStackParserOptions=qv.stackParserFromStackParserOptions;B.stripSentryFramesAndReverse=qv.stripSentryFramesAndReverse;B.isMatchingPattern=jv.isMatchingPattern;B.safeJoin=jv.safeJoin;B.snipLine=jv.snipLine;B.stringMatchesSomePattern=jv.stringMatchesSomePattern;B.truncate=jv.truncate;B.isNativeFetch=Bu.isNativeFetch;B.supportsDOMError=Bu.supportsDOMError;B.supportsDOMException=Bu.supportsDOMException;B.supportsErrorEvent=Bu.supportsErrorEvent;B.supportsFetch=Bu.supportsFetch;B.supportsNativeFetch=Bu.supportsNativeFetch;B.supportsReferrerPolicy=Bu.supportsReferrerPolicy;B.supportsReportingObserver=Bu.supportsReportingObserver;B.SyncPromise=SN.SyncPromise;B.rejectedSyncPromise=SN.rejectedSyncPromise;B.resolvedSyncPromise=SN.resolvedSyncPromise;Object.defineProperty(B,"_browserPerformanceTimeOriginMode",{enumerable:!0,get:()=>Lv._browserPerformanceTimeOriginMode});B.browserPerformanceTimeOrigin=Lv.browserPerformanceTimeOrigin;B.dateTimestampInSeconds=Lv.dateTimestampInSeconds;B.timestampInSeconds=Lv.timestampInSeconds;B.timestampWithMs=Lv.timestampWithMs;B.TRACEPARENT_REGEXP=Bv.TRACEPARENT_REGEXP;B.extractTraceparentData=Bv.extractTraceparentData;B.generateSentryTraceHeader=Bv.generateSentryTraceHeader;B.propagationContextFromHeaders=Bv.propagationContextFromHeaders;B.tracingContextFromHeaders=Bv.tracingContextFromHeaders;B.getSDKSource=F6.getSDKSource;B.isBrowserBundle=F6.isBrowserBundle;B.addItemToEnvelope=oi.addItemToEnvelope;B.createAttachmentEnvelopeItem=oi.createAttachmentEnvelopeItem;B.createEnvelope=oi.createEnvelope;B.createEventEnvelopeHeaders=oi.createEventEnvelopeHeaders;B.envelopeContainsItemType=oi.envelopeContainsItemType;B.envelopeItemTypeToDataCategory=oi.envelopeItemTypeToDataCategory;B.forEachEnvelopeItem=oi.forEachEnvelopeItem;B.getSdkMetadataForEnvelopeHeader=oi.getSdkMetadataForEnvelopeHeader;B.parseEnvelope=oi.parseEnvelope;B.serializeEnvelope=oi.serializeEnvelope;B.createClientReportEnvelope=_Ee.createClientReportEnvelope;B.DEFAULT_RETRY_AFTER=Uv.DEFAULT_RETRY_AFTER;B.disabledUntil=Uv.disabledUntil;B.isRateLimited=Uv.isRateLimited;B.parseRetryAfterHeader=Uv.parseRetryAfterHeader;B.updateRateLimits=Uv.updateRateLimits;B.BAGGAGE_HEADER_NAME=ep.BAGGAGE_HEADER_NAME;B.MAX_BAGGAGE_STRING_LENGTH=ep.MAX_BAGGAGE_STRING_LENGTH;B.SENTRY_BAGGAGE_KEY_PREFIX=ep.SENTRY_BAGGAGE_KEY_PREFIX;B.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=ep.SENTRY_BAGGAGE_KEY_PREFIX_REGEX;B.baggageHeaderToDynamicSamplingContext=ep.baggageHeaderToDynamicSamplingContext;B.dynamicSamplingContextToSentryBaggageHeader=ep.dynamicSamplingContextToSentryBaggageHeader;B.getNumberOfUrlSegments=TE.getNumberOfUrlSegments;B.getSanitizedUrlString=TE.getSanitizedUrlString;B.parseUrl=TE.parseUrl;B.stripUrlQueryAndFragment=TE.stripUrlQueryAndFragment;B.addOrUpdateIntegration=bEe.addOrUpdateIntegration;B.makeFifoCache=SEe.makeFifoCache;B.eventFromMessage=wE.eventFromMessage;B.eventFromUnknownInput=wE.eventFromUnknownInput;B.exceptionFromError=wE.exceptionFromError;B.parseStackFrames=wE.parseStackFrames;B.callFrameToStackFrame=q6.callFrameToStackFrame;B.watchdogTimer=q6.watchdogTimer;B.LRUMap=EEe.LRUMap;B._asyncNullishCoalesce=TEe._asyncNullishCoalesce;B._asyncOptionalChain=wEe._asyncOptionalChain;B._asyncOptionalChainDelete=xEe._asyncOptionalChainDelete;B._nullishCoalesce=CEe._nullishCoalesce;B._optionalChain=IEe._optionalChain;B._optionalChainDelete=kEe._optionalChainDelete;B.addConsoleInstrumentationHandler=PEe.addConsoleInstrumentationHandler;B.addClickKeypressInstrumentationHandler=OEe.addClickKeypressInstrumentationHandler;B.SENTRY_XHR_DATA_KEY=j6.SENTRY_XHR_DATA_KEY;B.addXhrInstrumentationHandler=j6.addXhrInstrumentationHandler;B.addFetchInstrumentationHandler=REe.addFetchInstrumentationHandler;B.addHistoryInstrumentationHandler=DEe.addHistoryInstrumentationHandler;B.addGlobalErrorInstrumentationHandler=NEe.addGlobalErrorInstrumentationHandler;B.addGlobalUnhandledRejectionInstrumentationHandler=AEe.addGlobalUnhandledRejectionInstrumentationHandler;B.resetInstrumentationHandlers=MEe.resetInstrumentationHandlers;B.filenameIsInApp=FEe.filenameIsInApp;B.escapeStringForRegex=qEe.escapeStringForRegex;B.supportsHistory=jEe.supportsHistory});var Rr=_(EN=>{"use strict";Object.defineProperty(EN,"__esModule",{value:!0});var LEe=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;EN.DEBUG_BUILD=LEe});var tp=_(TN=>{"use strict";Object.defineProperty(TN,"__esModule",{value:!0});var BEe="production";TN.DEFAULT_ENVIRONMENT=BEe});var Wv=_(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0});var xE=se(),UEe=Rr();function L6(){return xE.getGlobalSingleton("globalEventProcessors",()=>[])}function zEe(t){L6().push(t)}function wN(t,e,r,n=0){return new xE.SyncPromise((o,a)=>{let i=t[n];if(e===null||typeof i!="function")o(e);else{let s=i({...e},r);UEe.DEBUG_BUILD&&i.id&&s===null&&xE.logger.log(`Event processor "${i.id}" dropped event`),xE.isThenable(s)?s.then(u=>wN(t,u,r,n+1).then(o)).then(null,a):wN(t,s,r,n+1).then(o).then(null,a)}})}zv.addGlobalEventProcessor=zEe;zv.getGlobalEventProcessors=L6;zv.notifyEventProcessors=wN});var rp=_(Hv=>{"use strict";Object.defineProperty(Hv,"__esModule",{value:!0});var $v=se();function WEe(t){let e=$v.timestampInSeconds(),r={sid:$v.uuid4(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>HEe(r)};return t&&xN(r,t),r}function xN(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||$v.timestampInSeconds(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:$v.uuid4()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{let r=t.timestamp-t.started;t.duration=r>=0?r:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function $Ee(t,e){let r={};e?r={status:e}:t.status==="ok"&&(r={status:"exited"}),xN(t,r)}function HEe(t){return $v.dropUndefinedKeys({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}Hv.closeSession=$Ee;Hv.makeSession=WEe;Hv.updateSession=xN});var Jn=_(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});var CN=se(),GEe=0,U6=1;function VEe(t){let{spanId:e,traceId:r}=t.spanContext(),{data:n,op:o,parent_span_id:a,status:i,tags:s,origin:u}=z6(t);return CN.dropUndefinedKeys({data:n,op:o,parent_span_id:a,span_id:e,status:i,tags:s,trace_id:r,origin:u})}function KEe(t){let{traceId:e,spanId:r}=t.spanContext(),n=W6(t);return CN.generateSentryTraceHeader(e,r,n)}function YEe(t){return typeof t=="number"?B6(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?B6(t.getTime()):CN.timestampInSeconds()}function B6(t){return t>9999999999?t/1e3:t}function z6(t){return JEe(t)?t.getSpanJSON():typeof t.toJSON=="function"?t.toJSON():{}}function JEe(t){return typeof t.getSpanJSON=="function"}function W6(t){let{traceFlags:e}=t.spanContext();return!!(e&U6)}ys.TRACE_FLAG_NONE=GEe;ys.TRACE_FLAG_SAMPLED=U6;ys.spanIsSampled=W6;ys.spanTimeInputToSeconds=YEe;ys.spanToJSON=z6;ys.spanToTraceContext=VEe;ys.spanToTraceHeader=KEe});var CE=_(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});var bo=se(),XEe=tp(),$6=Wv(),kN=kE(),IN=IE(),ZEe=Jn();function QEe(t,e,r,n,o,a){let{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=t,u={...e,event_id:e.event_id||r.event_id||bo.uuid4(),timestamp:e.timestamp||bo.dateTimestampInSeconds()},l=r.integrations||t.integrations.map(v=>v.name);eTe(u,t),tTe(u,l),e.type===void 0&&G6(u,t.stackParser);let c=nTe(n,r.captureContext);r.mechanism&&bo.addExceptionMechanism(u,r.mechanism);let f=o&&o.getEventProcessors?o.getEventProcessors():[],d=kN.getGlobalScope().getScopeData();if(a){let v=a.getScopeData();IN.mergeScopeData(d,v)}if(c){let v=c.getScopeData();IN.mergeScopeData(d,v)}let p=[...r.attachments||[],...d.attachments];p.length&&(r.attachments=p),IN.applyScopeDataToEvent(u,d);let m=[...f,...$6.getGlobalEventProcessors(),...d.eventProcessors];return $6.notifyEventProcessors(m,u,r).then(v=>(v&&V6(v),typeof i=="number"&&i>0?rTe(v,i,s):v))}function eTe(t,e){let{environment:r,release:n,dist:o,maxValueLength:a=250}=e;"environment"in t||(t.environment="environment"in e?r:XEe.DEFAULT_ENVIRONMENT),t.release===void 0&&n!==void 0&&(t.release=n),t.dist===void 0&&o!==void 0&&(t.dist=o),t.message&&(t.message=bo.truncate(t.message,a));let i=t.exception&&t.exception.values&&t.exception.values[0];i&&i.value&&(i.value=bo.truncate(i.value,a));let s=t.request;s&&s.url&&(s.url=bo.truncate(s.url,a))}var H6=new WeakMap;function G6(t,e){let r=bo.GLOBAL_OBJ._sentryDebugIds;if(!r)return;let n,o=H6.get(e);o?n=o:(n=new Map,H6.set(e,n));let a=Object.keys(r).reduce((i,s)=>{let u,l=n.get(s);l?u=l:(u=e(s),n.set(s,u));for(let c=u.length-1;c>=0;c--){let f=u[c];if(f.filename){i[f.filename]=r[s];break}}return i},{});try{t.exception.values.forEach(i=>{i.stacktrace.frames.forEach(s=>{s.filename&&(s.debug_id=a[s.filename])})})}catch(i){}}function V6(t){let e={};try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?e[o.abs_path]=o.debug_id:o.filename&&(e[o.filename]=o.debug_id),delete o.debug_id)})})}catch(n){}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let r=t.debug_meta.images;Object.keys(e).forEach(n=>{r.push({type:"sourcemap",code_file:n,debug_id:e[n]})})}function tTe(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function rTe(t,e,r){if(!t)return null;let n={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(o=>({...o,...o.data&&{data:bo.normalize(o.data,e,r)}}))},...t.user&&{user:bo.normalize(t.user,e,r)},...t.contexts&&{contexts:bo.normalize(t.contexts,e,r)},...t.extra&&{extra:bo.normalize(t.extra,e,r)}};return t.contexts&&t.contexts.trace&&n.contexts&&(n.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(n.contexts.trace.data=bo.normalize(t.contexts.trace.data,e,r))),t.spans&&(n.spans=t.spans.map(o=>{let a=ZEe.spanToJSON(o).data;return a&&(o.data=bo.normalize(a,e,r)),o})),n}function nTe(t,e){if(!e)return t;let r=t?t.clone():new kN.Scope;return r.update(e),r}function oTe(t){if(t)return aTe(t)?{captureContext:t}:sTe(t)?{captureContext:t}:t}function aTe(t){return t instanceof kN.Scope||typeof t=="function"}var iTe=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function sTe(t){return Object.keys(t).some(e=>iTe.includes(e))}np.applyDebugIds=G6;np.applyDebugMeta=V6;np.parseEventHintOrCaptureContext=oTe;np.prepareEvent=QEe});var ea=_(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});var _s=se(),uTe=tp(),PE=Rr(),Tr=ai(),PN=rp(),lTe=CE();function cTe(t,e){return Tr.getCurrentHub().captureException(t,lTe.parseEventHintOrCaptureContext(e))}function dTe(t,e){let r=typeof e=="string"?e:void 0,n=typeof e!="string"?{captureContext:e}:void 0;return Tr.getCurrentHub().captureMessage(t,r,n)}function fTe(t,e){return Tr.getCurrentHub().captureEvent(t,e)}function pTe(t){Tr.getCurrentHub().configureScope(t)}function mTe(t,e){Tr.getCurrentHub().addBreadcrumb(t,e)}function hTe(t,e){Tr.getCurrentHub().setContext(t,e)}function gTe(t){Tr.getCurrentHub().setExtras(t)}function vTe(t,e){Tr.getCurrentHub().setExtra(t,e)}function yTe(t){Tr.getCurrentHub().setTags(t)}function _Te(t,e){Tr.getCurrentHub().setTag(t,e)}function bTe(t){Tr.getCurrentHub().setUser(t)}function K6(...t){let e=Tr.getCurrentHub();if(t.length===2){let[r,n]=t;return r?e.withScope(()=>(e.getStackTop().scope=r,n(r))):e.withScope(n)}return e.withScope(t[0])}function STe(t){return Tr.runWithAsyncContext(()=>t(Tr.getIsolationScope()))}function ETe(t,e){return K6(r=>(r.setSpan(t),e(r)))}function TTe(t,e){return Tr.getCurrentHub().startTransaction({...t},e)}function ON(t,e){let r=Gv(),n=vc();if(!n)PE.DEBUG_BUILD&&_s.logger.warn("Cannot capture check-in. No client defined.");else if(!n.captureCheckIn)PE.DEBUG_BUILD&&_s.logger.warn("Cannot capture check-in. Client does not support sending check-ins.");else return n.captureCheckIn(t,e,r);return _s.uuid4()}function wTe(t,e,r){let n=ON({monitorSlug:t,status:"in_progress"},r),o=_s.timestampInSeconds();function a(s){ON({monitorSlug:t,status:s,checkInId:n,duration:_s.timestampInSeconds()-o})}let i;try{i=e()}catch(s){throw a("error"),s}return _s.isThenable(i)?Promise.resolve(i).then(()=>{a("ok")},()=>{a("error")}):a("ok"),i}async function xTe(t){let e=vc();return e?e.flush(t):(PE.DEBUG_BUILD&&_s.logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function CTe(t){let e=vc();return e?e.close(t):(PE.DEBUG_BUILD&&_s.logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function ITe(){return Tr.getCurrentHub().lastEventId()}function vc(){return Tr.getCurrentHub().getClient()}function kTe(){return!!vc()}function Gv(){return Tr.getCurrentHub().getScope()}function PTe(t){let e=vc(),r=Tr.getIsolationScope(),n=Gv(),{release:o,environment:a=uTe.DEFAULT_ENVIRONMENT}=e&&e.getOptions()||{},{userAgent:i}=_s.GLOBAL_OBJ.navigator||{},s=PN.makeSession({release:o,environment:a,user:n.getUser()||r.getUser(),...i&&{userAgent:i},...t}),u=r.getSession();return u&&u.status==="ok"&&PN.updateSession(u,{status:"exited"}),RN(),r.setSession(s),n.setSession(s),s}function RN(){let t=Tr.getIsolationScope(),e=Gv(),r=e.getSession()||t.getSession();r&&PN.closeSession(r),Y6(),t.setSession(),e.setSession()}function Y6(){let t=Tr.getIsolationScope(),e=Gv(),r=vc(),n=e.getSession()||t.getSession();n&&r&&r.captureSession&&r.captureSession(n)}function OTe(t=!1){if(t){RN();return}Y6()}Ft.addBreadcrumb=mTe;Ft.captureCheckIn=ON;Ft.captureEvent=fTe;Ft.captureException=cTe;Ft.captureMessage=dTe;Ft.captureSession=OTe;Ft.close=CTe;Ft.configureScope=pTe;Ft.endSession=RN;Ft.flush=xTe;Ft.getClient=vc;Ft.getCurrentScope=Gv;Ft.isInitialized=kTe;Ft.lastEventId=ITe;Ft.setContext=hTe;Ft.setExtra=vTe;Ft.setExtras=gTe;Ft.setTag=_Te;Ft.setTags=yTe;Ft.setUser=bTe;Ft.startSession=PTe;Ft.startTransaction=TTe;Ft.withActiveSpan=ETe;Ft.withIsolationScope=STe;Ft.withMonitor=wTe;Ft.withScope=K6});var op=_(DN=>{"use strict";Object.defineProperty(DN,"__esModule",{value:!0});function RTe(t){return t.transaction}DN.getRootSpan=RTe});var yc=_(OE=>{"use strict";Object.defineProperty(OE,"__esModule",{value:!0});var DTe=se(),NTe=tp(),J6=ea(),ATe=op(),NN=Jn();function X6(t,e,r){let n=e.getOptions(),{publicKey:o}=e.getDsn()||{},{segment:a}=r&&r.getUser()||{},i=DTe.dropUndefinedKeys({environment:n.environment||NTe.DEFAULT_ENVIRONMENT,release:n.release,user_segment:a,public_key:o,trace_id:t});return e.emit&&e.emit("createDsc",i),i}function MTe(t){let e=J6.getClient();if(!e)return{};let r=X6(NN.spanToJSON(t).trace_id||"",e,J6.getCurrentScope()),n=ATe.getRootSpan(t);if(!n)return r;let o=n&&n._frozenDynamicSamplingContext;if(o)return o;let{sampleRate:a,source:i}=n.metadata;a!=null&&(r.sample_rate=`${a}`);let s=NN.spanToJSON(n);return i&&i!=="url"&&(r.transaction=s.description),r.sampled=String(NN.spanIsSampled(n)),e.emit&&e.emit("createDsc",r),r}OE.getDynamicSamplingContextFromClient=X6;OE.getDynamicSamplingContextFromSpan=MTe});var IE=_(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0});var Vv=se(),FTe=yc(),qTe=op(),Z6=Jn();function jTe(t,e){let{fingerprint:r,span:n,breadcrumbs:o,sdkProcessingMetadata:a}=e;BTe(t,e),n&&WTe(t,n),$Te(t,r),UTe(t,o),zTe(t,a)}function LTe(t,e){let{extra:r,tags:n,user:o,contexts:a,level:i,sdkProcessingMetadata:s,breadcrumbs:u,fingerprint:l,eventProcessors:c,attachments:f,propagationContext:d,transactionName:p,span:m}=e;ap(t,"extra",r),ap(t,"tags",n),ap(t,"user",o),ap(t,"contexts",a),ap(t,"sdkProcessingMetadata",s),i&&(t.level=i),p&&(t.transactionName=p),m&&(t.span=m),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),l.length&&(t.fingerprint=[...t.fingerprint,...l]),c.length&&(t.eventProcessors=[...t.eventProcessors,...c]),f.length&&(t.attachments=[...t.attachments,...f]),t.propagationContext={...t.propagationContext,...d}}function ap(t,e,r){if(r&&Object.keys(r).length){t[e]={...t[e]};for(let n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[e][n]=r[n])}}function BTe(t,e){let{extra:r,tags:n,user:o,contexts:a,level:i,transactionName:s}=e,u=Vv.dropUndefinedKeys(r);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});let l=Vv.dropUndefinedKeys(n);l&&Object.keys(l).length&&(t.tags={...l,...t.tags});let c=Vv.dropUndefinedKeys(o);c&&Object.keys(c).length&&(t.user={...c,...t.user});let f=Vv.dropUndefinedKeys(a);f&&Object.keys(f).length&&(t.contexts={...f,...t.contexts}),i&&(t.level=i),s&&(t.transaction=s)}function UTe(t,e){let r=[...t.breadcrumbs||[],...e];t.breadcrumbs=r.length?r:void 0}function zTe(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function WTe(t,e){t.contexts={trace:Z6.spanToTraceContext(e),...t.contexts};let r=qTe.getRootSpan(e);if(r){t.sdkProcessingMetadata={dynamicSamplingContext:FTe.getDynamicSamplingContextFromSpan(e),...t.sdkProcessingMetadata};let n=Z6.spanToJSON(r).description;n&&(t.tags={transaction:n,...t.tags})}}function $Te(t,e){t.fingerprint=t.fingerprint?Vv.arrayify(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}Kv.applyScopeDataToEvent=jTe;Kv.mergeAndOverwriteScopeData=ap;Kv.mergeScopeData=LTe});var kE=_(Yv=>{"use strict";Object.defineProperty(Yv,"__esModule",{value:!0});var ii=se(),Q6=Wv(),HTe=rp(),GTe=IE(),VTe=100,RE,DE=class t{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=e9()}static clone(e){return e?e.clone():new t}clone(){let e=new t;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&HTe.updateSession(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,r){return this._tags={...this._tags,[e]:r},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,r){return this._extra={...this._extra,[e]:r},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,r){return r===null?delete this._contexts[e]:this._contexts[e]=r,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let r=typeof e=="function"?e(this):e;if(r instanceof t){let n=r.getScopeData();this._tags={...this._tags,...n.tags},this._extra={...this._extra,...n.extra},this._contexts={...this._contexts,...n.contexts},n.user&&Object.keys(n.user).length&&(this._user=n.user),n.level&&(this._level=n.level),n.fingerprint.length&&(this._fingerprint=n.fingerprint),r.getRequestSession()&&(this._requestSession=r.getRequestSession()),n.propagationContext&&(this._propagationContext=n.propagationContext)}else if(ii.isPlainObject(r)){let n=e;this._tags={...this._tags,...n.tags},this._extra={...this._extra,...n.extra},this._contexts={...this._contexts,...n.contexts},n.user&&(this._user=n.user),n.level&&(this._level=n.level),n.fingerprint&&(this._fingerprint=n.fingerprint),n.requestSession&&(this._requestSession=n.requestSession),n.propagationContext&&(this._propagationContext=n.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=e9(),this}addBreadcrumb(e,r){let n=typeof r=="number"?r:VTe;if(n<=0)return this;let o={timestamp:ii.dateTimestampInSeconds(),...e},a=this._breadcrumbs;return a.push(o),this._breadcrumbs=a.length>n?a.slice(-n):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:e,_attachments:r,_contexts:n,_tags:o,_extra:a,_user:i,_level:s,_fingerprint:u,_eventProcessors:l,_propagationContext:c,_sdkProcessingMetadata:f,_transactionName:d,_span:p}=this;return{breadcrumbs:e,attachments:r,contexts:n,tags:o,extra:a,user:i,level:s,fingerprint:u||[],eventProcessors:l,propagationContext:c,sdkProcessingMetadata:f,transactionName:d,span:p}}applyToEvent(e,r={},n=[]){GTe.applyScopeDataToEvent(e,this.getScopeData());let o=[...n,...Q6.getGlobalEventProcessors(),...this._eventProcessors];return Q6.notifyEventProcessors(o,e,r)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,r){let n=r&&r.event_id?r.event_id:ii.uuid4();if(!this._client)return ii.logger.warn("No client configured on scope - will not capture exception!"),n;let o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...r,event_id:n},this),n}captureMessage(e,r,n){let o=n&&n.event_id?n.event_id:ii.uuid4();if(!this._client)return ii.logger.warn("No client configured on scope - will not capture message!"),o;let a=new Error(e);return this._client.captureMessage(e,r,{originalException:e,syntheticException:a,...n,event_id:o},this),o}captureEvent(e,r){let n=r&&r.event_id?r.event_id:ii.uuid4();return this._client?(this._client.captureEvent(e,{...r,event_id:n},this),n):(ii.logger.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}};function KTe(){return RE||(RE=new DE),RE}function YTe(t){RE=t}function e9(){return{traceId:ii.uuid4(),spanId:ii.uuid4().substring(16)}}Yv.Scope=DE;Yv.getGlobalScope=KTe;Yv.setGlobalScope=YTe});var NE=_(AN=>{"use strict";Object.defineProperty(AN,"__esModule",{value:!0});var JTe="7.119.2";AN.SDK_VERSION=JTe});var ai=_(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});var Mn=se(),XTe=tp(),MN=Rr(),t9=kE(),FN=rp(),ZTe=NE(),AE=parseFloat(ZTe.SDK_VERSION),QTe=100,ip=class{constructor(e,r,n,o=AE){this._version=o;let a;r?a=r:(a=new t9.Scope,a.setClient(e));let i;n?i=n:(i=new t9.Scope,i.setClient(e)),this._stack=[{scope:a}],e&&this.bindClient(e),this._isolationScope=i}isOlderThan(e){return this._version(this.popScope(),o),o=>{throw this.popScope(),o}):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,r){let n=this._lastEventId=r&&r.event_id?r.event_id:Mn.uuid4(),o=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:o,...r,event_id:n}),n}captureMessage(e,r,n){let o=this._lastEventId=n&&n.event_id?n.event_id:Mn.uuid4(),a=new Error(e);return this.getScope().captureMessage(e,r,{originalException:e,syntheticException:a,...n,event_id:o}),o}captureEvent(e,r){let n=r&&r.event_id?r.event_id:Mn.uuid4();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...r,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,r){let{scope:n,client:o}=this.getStackTop();if(!o)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:i=QTe}=o.getOptions&&o.getOptions()||{};if(i<=0)return;let u={timestamp:Mn.dateTimestampInSeconds(),...e},l=a?Mn.consoleSandbox(()=>a(u,r)):u;l!==null&&(o.emit&&o.emit("beforeAddBreadcrumb",l,r),n.addBreadcrumb(l,i))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,r){this.getScope().setTag(e,r),this.getIsolationScope().setTag(e,r)}setExtra(e,r){this.getScope().setExtra(e,r),this.getIsolationScope().setExtra(e,r)}setContext(e,r){this.getScope().setContext(e,r),this.getIsolationScope().setContext(e,r)}configureScope(e){let{scope:r,client:n}=this.getStackTop();n&&e(r)}run(e){let r=qN(this);try{e(this)}finally{qN(r)}}getIntegration(e){let r=this.getClient();if(!r)return null;try{return r.getIntegration(e)}catch(n){return MN.DEBUG_BUILD&&Mn.logger.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,r){let n=this._callExtensionMethod("startTransaction",e,r);return MN.DEBUG_BUILD&&!n&&(this.getClient()?Mn.logger.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': +`),typeof u=="string"||u instanceof Uint8Array)a(u);else{let l;try{l=JSON.stringify(u)}catch(c){l=JSON.stringify(kSe.normalize(u))}a(l)}}return typeof o=="string"?o:NSe(o)}function NSe(t){let e=t.reduce((o,a)=>o+a.length,0),r=new Uint8Array(e),n=0;for(let o of t)r.set(o,n),n+=o.length;return r}function ASe(t,e,r){let n=typeof t=="string"?e.encode(t):t;function o(u){let l=n.subarray(0,u);return n=n.subarray(u+1),l}function a(){let u=n.indexOf(10);return u<0&&(u=n.length),JSON.parse(r.decode(o(u)))}let i=a(),s=[];for(;n.length;){let u=a(),l=typeof u.length=="number"?u.length:void 0;s.push([u,l?o(l):a()])}return[i,s]}function MSe(t,e){let r=typeof t.data=="string"?ZD(t.data,e):t.data;return[g6.dropUndefinedKeys({type:"attachment",length:r.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),r]}var FSe={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function qSe(t){return FSe[t]}function jSe(t){if(!t||!t.sdk)return;let{name:e,version:r}=t.sdk;return{name:e,version:r}}function LSe(t,e,r,n){let o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!r&&n&&{dsn:ISe.dsnToString(n)},...o&&{trace:g6.dropUndefinedKeys({...o})}}}Qo.addItemToEnvelope=OSe;Qo.createAttachmentEnvelopeItem=MSe;Qo.createEnvelope=PSe;Qo.createEventEnvelopeHeaders=LSe;Qo.envelopeContainsItemType=RSe;Qo.envelopeItemTypeToDataCategory=qSe;Qo.forEachEnvelopeItem=v6;Qo.getSdkMetadataForEnvelopeHeader=jSe;Qo.parseEnvelope=ASe;Qo.serializeEnvelope=DSe});var y6=_(eN=>{"use strict";Object.defineProperty(eN,"__esModule",{value:!0});var BSe=QD(),USe=KD();function zSe(t,e,r){let n=[{type:"client_report"},{timestamp:r||USe.dateTimestampInSeconds(),discarded_events:t}];return BSe.createEnvelope(e?{dsn:e}:{},[n])}eN.createClientReportEnvelope=zSe});var E6=_(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});var _6=60*1e3;function b6(t,e=Date.now()){let r=parseInt(`${t}`,10);if(!isNaN(r))return r*1e3;let n=Date.parse(`${t}`);return isNaN(n)?_6:n-e}function S6(t,e){return t[e]||t.all||0}function WSe(t,e,r=Date.now()){return S6(t,e)>r}function $Se(t,{statusCode:e,headers:r},n=Date.now()){let o={...t},a=r&&r["x-sentry-rate-limits"],i=r&&r["retry-after"];if(a)for(let s of a.trim().split(",")){let[u,l,,,c]=s.split(":",5),p=parseInt(u,10),d=(isNaN(p)?60:p)*1e3;if(!l)o.all=n+d;else for(let f of l.split(";"))f==="metric_bucket"?(!c||c.split(";").includes("custom"))&&(o[f]=n+d):o[f]=n+d}else i?o.all=n+b6(i,n):e===429&&(o.all=n+60*1e3);return o}mc.DEFAULT_RETRY_AFTER=_6;mc.disabledUntil=S6;mc.isRateLimited=WSe;mc.parseRetryAfterHeader=b6;mc.updateRateLimits=$Se});var x6=_(tN=>{"use strict";Object.defineProperty(tN,"__esModule",{value:!0});function T6(t,e,r){let n=e.match(/([a-z_]+)\.(.*)/i);if(n===null)t[e]=r;else{let o=t[n[1]];T6(o,n[2],r)}}function HSe(t,e,r={}){return Array.isArray(e)?w6(t,e,r):GSe(t,e,r)}function w6(t,e,r){let n=e.find(o=>o.name===t.name);if(n){for(let[o,a]of Object.entries(r))T6(n,o,a);return e}return[...e,t]}function GSe(t,e,r){return o=>{let a=e(o);return t.allowExclusionByUser&&!a.find(s=>s.name===t.name)?a:w6(t,a,r)}}tN.addOrUpdateIntegration=HSe});var C6=_(rN=>{"use strict";Object.defineProperty(rN,"__esModule",{value:!0});function VSe(t){let e=[],r={};return{add(n,o){for(;e.length>=t;){let a=e.shift();a!==void 0&&delete r[a]}r[n]&&this.delete(n),e.push(n),r[n]=o},clear(){r={},e=[]},get(n){return r[n]},size(){return e.length},delete(n){if(!r[n])return!1;delete r[n];for(let o=0;o{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});var nN=Jo(),I6=Iv(),KSe=Nv(),YSe=Xo();function oN(t,e){return t(e.stack||"",1)}function k6(t,e){let r={type:e.name||e.constructor.name,value:e.message},n=oN(t,e);return n.length&&(r.stacktrace={frames:n}),r}function JSe(t){if("name"in t&&typeof t.name=="string"){let e=`'${t.name}' captured as exception`;return"message"in t&&typeof t.message=="string"&&(e+=` with message '${t.message}'`),e}else return"message"in t&&typeof t.message=="string"?t.message:`Object captured as exception with keys: ${YSe.extractExceptionKeysForMessage(t)}`}function XSe(t,e,r,n){let o=typeof t=="function"?t().getClient():t,a=r,s=n&&n.data&&n.data.mechanism||{handled:!0,type:"generic"},u;if(!nN.isError(r)){if(nN.isPlainObject(r)){let c=o&&o.getOptions().normalizeDepth;u={__serialized__:KSe.normalizeToSize(r,c)};let p=JSe(r);a=n&&n.syntheticException||new Error(p),a.message=p}else a=n&&n.syntheticException||new Error(r),a.message=r;s.synthetic=!0}let l={exception:{values:[k6(e,a)]}};return u&&(l.extra=u),I6.addExceptionTypeValue(l,void 0,void 0),I6.addExceptionMechanism(l,s),{...l,event_id:n&&n.event_id}}function ZSe(t,e,r="info",n,o){let a={event_id:n&&n.event_id,level:r};if(o&&n&&n.syntheticException){let i=oN(t,n.syntheticException);i.length&&(a.exception={values:[{value:e,stacktrace:{frames:i}}]})}if(nN.isParameterizedString(e)){let{__sentry_template_string__:i,__sentry_template_values__:s}=e;return a.logentry={message:i,params:s},a}return a.message=e,a}Zp.eventFromMessage=ZSe;Zp.eventFromUnknownInput=XSe;Zp.exceptionFromError=k6;Zp.parseStackFrames=oN});var O6=_(_E=>{"use strict";Object.defineProperty(_E,"__esModule",{value:!0});var QSe=Xo(),eEe=QS();function tEe(t,e,r,n){let o=t(),a=!1,i=!0;return setInterval(()=>{let s=o.getTimeMs();a===!1&&s>e+r&&(a=!0,i&&n()),s{o.reset()},enabled:s=>{i=s}}}function rEe(t,e,r){let n=e?e.replace(/^file:\/\//,""):void 0,o=t.location.columnNumber?t.location.columnNumber+1:void 0,a=t.location.lineNumber?t.location.lineNumber+1:void 0;return QSe.dropUndefinedKeys({filename:n,module:r(n),function:t.functionName||"?",colno:o,lineno:a,in_app:n?eEe.filenameIsInApp(n):void 0})}_E.callFrameToStackFrame=rEe;_E.watchdogTimer=tEe});var R6=_(iN=>{"use strict";Object.defineProperty(iN,"__esModule",{value:!0});var aN=class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let r=this._cache.get(e);if(r!==void 0)return this._cache.delete(e),this._cache.set(e,r),r}set(e,r){this._cache.size>=this._maxSize&&this._cache.delete(this._cache.keys().next().value),this._cache.set(e,r)}remove(e){let r=this._cache.get(e);return r&&this._cache.delete(e),r}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(r=>e.push(r)),e}};iN.LRUMap=aN});var uN=_(sN=>{"use strict";Object.defineProperty(sN,"__esModule",{value:!0});function nEe(t,e){return t!=null?t:e()}sN._nullishCoalesce=nEe});var D6=_(lN=>{"use strict";Object.defineProperty(lN,"__esModule",{value:!0});var oEe=uN();async function aEe(t,e){return oEe._nullishCoalesce(t,e)}lN._asyncNullishCoalesce=aEe});var dN=_(cN=>{"use strict";Object.defineProperty(cN,"__esModule",{value:!0});async function iEe(t){let e,r=t[0],n=1;for(;nr.call(e,...i)),e=void 0)}return r}cN._asyncOptionalChain=iEe});var N6=_(pN=>{"use strict";Object.defineProperty(pN,"__esModule",{value:!0});var sEe=dN();async function uEe(t){let e=await sEe._asyncOptionalChain(t);return e==null?!0:e}pN._asyncOptionalChainDelete=uEe});var mN=_(fN=>{"use strict";Object.defineProperty(fN,"__esModule",{value:!0});function lEe(t){let e,r=t[0],n=1;for(;nr.call(e,...i)),e=void 0)}return r}fN._optionalChain=lEe});var A6=_(hN=>{"use strict";Object.defineProperty(hN,"__esModule",{value:!0});var cEe=mN();function dEe(t){let e=cEe._optionalChain(t);return e==null?!0:e}hN._optionalChainDelete=dEe});var M6=_(gN=>{"use strict";Object.defineProperty(gN,"__esModule",{value:!0});function pEe(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}gN.escapeStringForRegex=pEe});var se=_(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});var fEe=i8(),bE=JR(),vN=tD(),mEe=oD(),yN=bn(),hEe=L8(),Sn=Jo(),gEe=U8(),SE=ba(),vEe=LD(),Lu=Iv(),_N=FD(),EE=Nv(),vs=Xo(),hc=Y8(),yEe=J8(),gc=r6(),bN=a6(),qv=eE(),jv=Tv(),Bu=yD(),SN=zD(),Lv=KD(),Bv=h6(),F6=MD(),oi=QD(),_Ee=y6(),Uv=E6(),Qp=JD(),TE=GD(),bEe=x6(),SEe=C6(),wE=P6(),q6=O6(),EEe=R6(),TEe=D6(),wEe=dN(),xEe=N6(),CEe=uN(),IEe=mN(),kEe=A6(),PEe=cD(),OEe=hD(),j6=ND(),REe=bD(),DEe=DD(),NEe=wD(),AEe=kD(),MEe=fs(),FEe=QS(),qEe=M6(),jEe=OD();B.applyAggregateErrorsToEvent=fEe.applyAggregateErrorsToEvent;B.getComponentName=bE.getComponentName;B.getDomElement=bE.getDomElement;B.getLocationHref=bE.getLocationHref;B.htmlTreeAsString=bE.htmlTreeAsString;B.dsnFromString=vN.dsnFromString;B.dsnToString=vN.dsnToString;B.makeDsn=vN.makeDsn;B.SentryError=mEe.SentryError;B.GLOBAL_OBJ=yN.GLOBAL_OBJ;B.getGlobalObject=yN.getGlobalObject;B.getGlobalSingleton=yN.getGlobalSingleton;B.addInstrumentationHandler=hEe.addInstrumentationHandler;B.isDOMError=Sn.isDOMError;B.isDOMException=Sn.isDOMException;B.isElement=Sn.isElement;B.isError=Sn.isError;B.isErrorEvent=Sn.isErrorEvent;B.isEvent=Sn.isEvent;B.isInstanceOf=Sn.isInstanceOf;B.isNaN=Sn.isNaN;B.isParameterizedString=Sn.isParameterizedString;B.isPlainObject=Sn.isPlainObject;B.isPrimitive=Sn.isPrimitive;B.isRegExp=Sn.isRegExp;B.isString=Sn.isString;B.isSyntheticEvent=Sn.isSyntheticEvent;B.isThenable=Sn.isThenable;B.isVueViewModel=Sn.isVueViewModel;B.isBrowser=gEe.isBrowser;B.CONSOLE_LEVELS=SE.CONSOLE_LEVELS;B.consoleSandbox=SE.consoleSandbox;B.logger=SE.logger;B.originalConsoleMethods=SE.originalConsoleMethods;B.memoBuilder=vEe.memoBuilder;B.addContextToFrame=Lu.addContextToFrame;B.addExceptionMechanism=Lu.addExceptionMechanism;B.addExceptionTypeValue=Lu.addExceptionTypeValue;B.arrayify=Lu.arrayify;B.checkOrSetAlreadyCaught=Lu.checkOrSetAlreadyCaught;B.getEventDescription=Lu.getEventDescription;B.parseSemver=Lu.parseSemver;B.uuid4=Lu.uuid4;B.dynamicRequire=_N.dynamicRequire;B.isNodeEnv=_N.isNodeEnv;B.loadModule=_N.loadModule;B.normalize=EE.normalize;B.normalizeToSize=EE.normalizeToSize;B.normalizeUrlToBase=EE.normalizeUrlToBase;B.walk=EE.walk;B.addNonEnumerableProperty=vs.addNonEnumerableProperty;B.convertToPlainObject=vs.convertToPlainObject;B.dropUndefinedKeys=vs.dropUndefinedKeys;B.extractExceptionKeysForMessage=vs.extractExceptionKeysForMessage;B.fill=vs.fill;B.getOriginalFunction=vs.getOriginalFunction;B.markFunctionWrapped=vs.markFunctionWrapped;B.objectify=vs.objectify;B.urlEncode=vs.urlEncode;B.basename=hc.basename;B.dirname=hc.dirname;B.isAbsolute=hc.isAbsolute;B.join=hc.join;B.normalizePath=hc.normalizePath;B.relative=hc.relative;B.resolve=hc.resolve;B.makePromiseBuffer=yEe.makePromiseBuffer;B.DEFAULT_USER_INCLUDES=gc.DEFAULT_USER_INCLUDES;B.addRequestDataToEvent=gc.addRequestDataToEvent;B.addRequestDataToTransaction=gc.addRequestDataToTransaction;B.extractPathForTransaction=gc.extractPathForTransaction;B.extractRequestData=gc.extractRequestData;B.winterCGHeadersToDict=gc.winterCGHeadersToDict;B.winterCGRequestToRequestData=gc.winterCGRequestToRequestData;B.severityFromString=bN.severityFromString;B.severityLevelFromString=bN.severityLevelFromString;B.validSeverityLevels=bN.validSeverityLevels;B.createStackParser=qv.createStackParser;B.getFunctionName=qv.getFunctionName;B.nodeStackLineParser=qv.nodeStackLineParser;B.stackParserFromStackParserOptions=qv.stackParserFromStackParserOptions;B.stripSentryFramesAndReverse=qv.stripSentryFramesAndReverse;B.isMatchingPattern=jv.isMatchingPattern;B.safeJoin=jv.safeJoin;B.snipLine=jv.snipLine;B.stringMatchesSomePattern=jv.stringMatchesSomePattern;B.truncate=jv.truncate;B.isNativeFetch=Bu.isNativeFetch;B.supportsDOMError=Bu.supportsDOMError;B.supportsDOMException=Bu.supportsDOMException;B.supportsErrorEvent=Bu.supportsErrorEvent;B.supportsFetch=Bu.supportsFetch;B.supportsNativeFetch=Bu.supportsNativeFetch;B.supportsReferrerPolicy=Bu.supportsReferrerPolicy;B.supportsReportingObserver=Bu.supportsReportingObserver;B.SyncPromise=SN.SyncPromise;B.rejectedSyncPromise=SN.rejectedSyncPromise;B.resolvedSyncPromise=SN.resolvedSyncPromise;Object.defineProperty(B,"_browserPerformanceTimeOriginMode",{enumerable:!0,get:()=>Lv._browserPerformanceTimeOriginMode});B.browserPerformanceTimeOrigin=Lv.browserPerformanceTimeOrigin;B.dateTimestampInSeconds=Lv.dateTimestampInSeconds;B.timestampInSeconds=Lv.timestampInSeconds;B.timestampWithMs=Lv.timestampWithMs;B.TRACEPARENT_REGEXP=Bv.TRACEPARENT_REGEXP;B.extractTraceparentData=Bv.extractTraceparentData;B.generateSentryTraceHeader=Bv.generateSentryTraceHeader;B.propagationContextFromHeaders=Bv.propagationContextFromHeaders;B.tracingContextFromHeaders=Bv.tracingContextFromHeaders;B.getSDKSource=F6.getSDKSource;B.isBrowserBundle=F6.isBrowserBundle;B.addItemToEnvelope=oi.addItemToEnvelope;B.createAttachmentEnvelopeItem=oi.createAttachmentEnvelopeItem;B.createEnvelope=oi.createEnvelope;B.createEventEnvelopeHeaders=oi.createEventEnvelopeHeaders;B.envelopeContainsItemType=oi.envelopeContainsItemType;B.envelopeItemTypeToDataCategory=oi.envelopeItemTypeToDataCategory;B.forEachEnvelopeItem=oi.forEachEnvelopeItem;B.getSdkMetadataForEnvelopeHeader=oi.getSdkMetadataForEnvelopeHeader;B.parseEnvelope=oi.parseEnvelope;B.serializeEnvelope=oi.serializeEnvelope;B.createClientReportEnvelope=_Ee.createClientReportEnvelope;B.DEFAULT_RETRY_AFTER=Uv.DEFAULT_RETRY_AFTER;B.disabledUntil=Uv.disabledUntil;B.isRateLimited=Uv.isRateLimited;B.parseRetryAfterHeader=Uv.parseRetryAfterHeader;B.updateRateLimits=Uv.updateRateLimits;B.BAGGAGE_HEADER_NAME=Qp.BAGGAGE_HEADER_NAME;B.MAX_BAGGAGE_STRING_LENGTH=Qp.MAX_BAGGAGE_STRING_LENGTH;B.SENTRY_BAGGAGE_KEY_PREFIX=Qp.SENTRY_BAGGAGE_KEY_PREFIX;B.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=Qp.SENTRY_BAGGAGE_KEY_PREFIX_REGEX;B.baggageHeaderToDynamicSamplingContext=Qp.baggageHeaderToDynamicSamplingContext;B.dynamicSamplingContextToSentryBaggageHeader=Qp.dynamicSamplingContextToSentryBaggageHeader;B.getNumberOfUrlSegments=TE.getNumberOfUrlSegments;B.getSanitizedUrlString=TE.getSanitizedUrlString;B.parseUrl=TE.parseUrl;B.stripUrlQueryAndFragment=TE.stripUrlQueryAndFragment;B.addOrUpdateIntegration=bEe.addOrUpdateIntegration;B.makeFifoCache=SEe.makeFifoCache;B.eventFromMessage=wE.eventFromMessage;B.eventFromUnknownInput=wE.eventFromUnknownInput;B.exceptionFromError=wE.exceptionFromError;B.parseStackFrames=wE.parseStackFrames;B.callFrameToStackFrame=q6.callFrameToStackFrame;B.watchdogTimer=q6.watchdogTimer;B.LRUMap=EEe.LRUMap;B._asyncNullishCoalesce=TEe._asyncNullishCoalesce;B._asyncOptionalChain=wEe._asyncOptionalChain;B._asyncOptionalChainDelete=xEe._asyncOptionalChainDelete;B._nullishCoalesce=CEe._nullishCoalesce;B._optionalChain=IEe._optionalChain;B._optionalChainDelete=kEe._optionalChainDelete;B.addConsoleInstrumentationHandler=PEe.addConsoleInstrumentationHandler;B.addClickKeypressInstrumentationHandler=OEe.addClickKeypressInstrumentationHandler;B.SENTRY_XHR_DATA_KEY=j6.SENTRY_XHR_DATA_KEY;B.addXhrInstrumentationHandler=j6.addXhrInstrumentationHandler;B.addFetchInstrumentationHandler=REe.addFetchInstrumentationHandler;B.addHistoryInstrumentationHandler=DEe.addHistoryInstrumentationHandler;B.addGlobalErrorInstrumentationHandler=NEe.addGlobalErrorInstrumentationHandler;B.addGlobalUnhandledRejectionInstrumentationHandler=AEe.addGlobalUnhandledRejectionInstrumentationHandler;B.resetInstrumentationHandlers=MEe.resetInstrumentationHandlers;B.filenameIsInApp=FEe.filenameIsInApp;B.escapeStringForRegex=qEe.escapeStringForRegex;B.supportsHistory=jEe.supportsHistory});var Rr=_(EN=>{"use strict";Object.defineProperty(EN,"__esModule",{value:!0});var LEe=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;EN.DEBUG_BUILD=LEe});var ef=_(TN=>{"use strict";Object.defineProperty(TN,"__esModule",{value:!0});var BEe="production";TN.DEFAULT_ENVIRONMENT=BEe});var Wv=_(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0});var xE=se(),UEe=Rr();function L6(){return xE.getGlobalSingleton("globalEventProcessors",()=>[])}function zEe(t){L6().push(t)}function wN(t,e,r,n=0){return new xE.SyncPromise((o,a)=>{let i=t[n];if(e===null||typeof i!="function")o(e);else{let s=i({...e},r);UEe.DEBUG_BUILD&&i.id&&s===null&&xE.logger.log(`Event processor "${i.id}" dropped event`),xE.isThenable(s)?s.then(u=>wN(t,u,r,n+1).then(o)).then(null,a):wN(t,s,r,n+1).then(o).then(null,a)}})}zv.addGlobalEventProcessor=zEe;zv.getGlobalEventProcessors=L6;zv.notifyEventProcessors=wN});var tf=_(Hv=>{"use strict";Object.defineProperty(Hv,"__esModule",{value:!0});var $v=se();function WEe(t){let e=$v.timestampInSeconds(),r={sid:$v.uuid4(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>HEe(r)};return t&&xN(r,t),r}function xN(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||$v.timestampInSeconds(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:$v.uuid4()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{let r=t.timestamp-t.started;t.duration=r>=0?r:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function $Ee(t,e){let r={};e?r={status:e}:t.status==="ok"&&(r={status:"exited"}),xN(t,r)}function HEe(t){return $v.dropUndefinedKeys({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}Hv.closeSession=$Ee;Hv.makeSession=WEe;Hv.updateSession=xN});var Jn=_(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});var CN=se(),GEe=0,U6=1;function VEe(t){let{spanId:e,traceId:r}=t.spanContext(),{data:n,op:o,parent_span_id:a,status:i,tags:s,origin:u}=z6(t);return CN.dropUndefinedKeys({data:n,op:o,parent_span_id:a,span_id:e,status:i,tags:s,trace_id:r,origin:u})}function KEe(t){let{traceId:e,spanId:r}=t.spanContext(),n=W6(t);return CN.generateSentryTraceHeader(e,r,n)}function YEe(t){return typeof t=="number"?B6(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?B6(t.getTime()):CN.timestampInSeconds()}function B6(t){return t>9999999999?t/1e3:t}function z6(t){return JEe(t)?t.getSpanJSON():typeof t.toJSON=="function"?t.toJSON():{}}function JEe(t){return typeof t.getSpanJSON=="function"}function W6(t){let{traceFlags:e}=t.spanContext();return!!(e&U6)}ys.TRACE_FLAG_NONE=GEe;ys.TRACE_FLAG_SAMPLED=U6;ys.spanIsSampled=W6;ys.spanTimeInputToSeconds=YEe;ys.spanToJSON=z6;ys.spanToTraceContext=VEe;ys.spanToTraceHeader=KEe});var CE=_(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});var bo=se(),XEe=ef(),$6=Wv(),kN=kE(),IN=IE(),ZEe=Jn();function QEe(t,e,r,n,o,a){let{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=t,u={...e,event_id:e.event_id||r.event_id||bo.uuid4(),timestamp:e.timestamp||bo.dateTimestampInSeconds()},l=r.integrations||t.integrations.map(v=>v.name);eTe(u,t),tTe(u,l),e.type===void 0&&G6(u,t.stackParser);let c=nTe(n,r.captureContext);r.mechanism&&bo.addExceptionMechanism(u,r.mechanism);let p=o&&o.getEventProcessors?o.getEventProcessors():[],d=kN.getGlobalScope().getScopeData();if(a){let v=a.getScopeData();IN.mergeScopeData(d,v)}if(c){let v=c.getScopeData();IN.mergeScopeData(d,v)}let f=[...r.attachments||[],...d.attachments];f.length&&(r.attachments=f),IN.applyScopeDataToEvent(u,d);let m=[...p,...$6.getGlobalEventProcessors(),...d.eventProcessors];return $6.notifyEventProcessors(m,u,r).then(v=>(v&&V6(v),typeof i=="number"&&i>0?rTe(v,i,s):v))}function eTe(t,e){let{environment:r,release:n,dist:o,maxValueLength:a=250}=e;"environment"in t||(t.environment="environment"in e?r:XEe.DEFAULT_ENVIRONMENT),t.release===void 0&&n!==void 0&&(t.release=n),t.dist===void 0&&o!==void 0&&(t.dist=o),t.message&&(t.message=bo.truncate(t.message,a));let i=t.exception&&t.exception.values&&t.exception.values[0];i&&i.value&&(i.value=bo.truncate(i.value,a));let s=t.request;s&&s.url&&(s.url=bo.truncate(s.url,a))}var H6=new WeakMap;function G6(t,e){let r=bo.GLOBAL_OBJ._sentryDebugIds;if(!r)return;let n,o=H6.get(e);o?n=o:(n=new Map,H6.set(e,n));let a=Object.keys(r).reduce((i,s)=>{let u,l=n.get(s);l?u=l:(u=e(s),n.set(s,u));for(let c=u.length-1;c>=0;c--){let p=u[c];if(p.filename){i[p.filename]=r[s];break}}return i},{});try{t.exception.values.forEach(i=>{i.stacktrace.frames.forEach(s=>{s.filename&&(s.debug_id=a[s.filename])})})}catch(i){}}function V6(t){let e={};try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?e[o.abs_path]=o.debug_id:o.filename&&(e[o.filename]=o.debug_id),delete o.debug_id)})})}catch(n){}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let r=t.debug_meta.images;Object.keys(e).forEach(n=>{r.push({type:"sourcemap",code_file:n,debug_id:e[n]})})}function tTe(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function rTe(t,e,r){if(!t)return null;let n={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(o=>({...o,...o.data&&{data:bo.normalize(o.data,e,r)}}))},...t.user&&{user:bo.normalize(t.user,e,r)},...t.contexts&&{contexts:bo.normalize(t.contexts,e,r)},...t.extra&&{extra:bo.normalize(t.extra,e,r)}};return t.contexts&&t.contexts.trace&&n.contexts&&(n.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(n.contexts.trace.data=bo.normalize(t.contexts.trace.data,e,r))),t.spans&&(n.spans=t.spans.map(o=>{let a=ZEe.spanToJSON(o).data;return a&&(o.data=bo.normalize(a,e,r)),o})),n}function nTe(t,e){if(!e)return t;let r=t?t.clone():new kN.Scope;return r.update(e),r}function oTe(t){if(t)return aTe(t)?{captureContext:t}:sTe(t)?{captureContext:t}:t}function aTe(t){return t instanceof kN.Scope||typeof t=="function"}var iTe=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function sTe(t){return Object.keys(t).some(e=>iTe.includes(e))}rf.applyDebugIds=G6;rf.applyDebugMeta=V6;rf.parseEventHintOrCaptureContext=oTe;rf.prepareEvent=QEe});var ea=_(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});var _s=se(),uTe=ef(),PE=Rr(),Tr=ai(),PN=tf(),lTe=CE();function cTe(t,e){return Tr.getCurrentHub().captureException(t,lTe.parseEventHintOrCaptureContext(e))}function dTe(t,e){let r=typeof e=="string"?e:void 0,n=typeof e!="string"?{captureContext:e}:void 0;return Tr.getCurrentHub().captureMessage(t,r,n)}function pTe(t,e){return Tr.getCurrentHub().captureEvent(t,e)}function fTe(t){Tr.getCurrentHub().configureScope(t)}function mTe(t,e){Tr.getCurrentHub().addBreadcrumb(t,e)}function hTe(t,e){Tr.getCurrentHub().setContext(t,e)}function gTe(t){Tr.getCurrentHub().setExtras(t)}function vTe(t,e){Tr.getCurrentHub().setExtra(t,e)}function yTe(t){Tr.getCurrentHub().setTags(t)}function _Te(t,e){Tr.getCurrentHub().setTag(t,e)}function bTe(t){Tr.getCurrentHub().setUser(t)}function K6(...t){let e=Tr.getCurrentHub();if(t.length===2){let[r,n]=t;return r?e.withScope(()=>(e.getStackTop().scope=r,n(r))):e.withScope(n)}return e.withScope(t[0])}function STe(t){return Tr.runWithAsyncContext(()=>t(Tr.getIsolationScope()))}function ETe(t,e){return K6(r=>(r.setSpan(t),e(r)))}function TTe(t,e){return Tr.getCurrentHub().startTransaction({...t},e)}function ON(t,e){let r=Gv(),n=vc();if(!n)PE.DEBUG_BUILD&&_s.logger.warn("Cannot capture check-in. No client defined.");else if(!n.captureCheckIn)PE.DEBUG_BUILD&&_s.logger.warn("Cannot capture check-in. Client does not support sending check-ins.");else return n.captureCheckIn(t,e,r);return _s.uuid4()}function wTe(t,e,r){let n=ON({monitorSlug:t,status:"in_progress"},r),o=_s.timestampInSeconds();function a(s){ON({monitorSlug:t,status:s,checkInId:n,duration:_s.timestampInSeconds()-o})}let i;try{i=e()}catch(s){throw a("error"),s}return _s.isThenable(i)?Promise.resolve(i).then(()=>{a("ok")},()=>{a("error")}):a("ok"),i}async function xTe(t){let e=vc();return e?e.flush(t):(PE.DEBUG_BUILD&&_s.logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function CTe(t){let e=vc();return e?e.close(t):(PE.DEBUG_BUILD&&_s.logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function ITe(){return Tr.getCurrentHub().lastEventId()}function vc(){return Tr.getCurrentHub().getClient()}function kTe(){return!!vc()}function Gv(){return Tr.getCurrentHub().getScope()}function PTe(t){let e=vc(),r=Tr.getIsolationScope(),n=Gv(),{release:o,environment:a=uTe.DEFAULT_ENVIRONMENT}=e&&e.getOptions()||{},{userAgent:i}=_s.GLOBAL_OBJ.navigator||{},s=PN.makeSession({release:o,environment:a,user:n.getUser()||r.getUser(),...i&&{userAgent:i},...t}),u=r.getSession();return u&&u.status==="ok"&&PN.updateSession(u,{status:"exited"}),RN(),r.setSession(s),n.setSession(s),s}function RN(){let t=Tr.getIsolationScope(),e=Gv(),r=e.getSession()||t.getSession();r&&PN.closeSession(r),Y6(),t.setSession(),e.setSession()}function Y6(){let t=Tr.getIsolationScope(),e=Gv(),r=vc(),n=e.getSession()||t.getSession();n&&r&&r.captureSession&&r.captureSession(n)}function OTe(t=!1){if(t){RN();return}Y6()}Ft.addBreadcrumb=mTe;Ft.captureCheckIn=ON;Ft.captureEvent=pTe;Ft.captureException=cTe;Ft.captureMessage=dTe;Ft.captureSession=OTe;Ft.close=CTe;Ft.configureScope=fTe;Ft.endSession=RN;Ft.flush=xTe;Ft.getClient=vc;Ft.getCurrentScope=Gv;Ft.isInitialized=kTe;Ft.lastEventId=ITe;Ft.setContext=hTe;Ft.setExtra=vTe;Ft.setExtras=gTe;Ft.setTag=_Te;Ft.setTags=yTe;Ft.setUser=bTe;Ft.startSession=PTe;Ft.startTransaction=TTe;Ft.withActiveSpan=ETe;Ft.withIsolationScope=STe;Ft.withMonitor=wTe;Ft.withScope=K6});var nf=_(DN=>{"use strict";Object.defineProperty(DN,"__esModule",{value:!0});function RTe(t){return t.transaction}DN.getRootSpan=RTe});var yc=_(OE=>{"use strict";Object.defineProperty(OE,"__esModule",{value:!0});var DTe=se(),NTe=ef(),J6=ea(),ATe=nf(),NN=Jn();function X6(t,e,r){let n=e.getOptions(),{publicKey:o}=e.getDsn()||{},{segment:a}=r&&r.getUser()||{},i=DTe.dropUndefinedKeys({environment:n.environment||NTe.DEFAULT_ENVIRONMENT,release:n.release,user_segment:a,public_key:o,trace_id:t});return e.emit&&e.emit("createDsc",i),i}function MTe(t){let e=J6.getClient();if(!e)return{};let r=X6(NN.spanToJSON(t).trace_id||"",e,J6.getCurrentScope()),n=ATe.getRootSpan(t);if(!n)return r;let o=n&&n._frozenDynamicSamplingContext;if(o)return o;let{sampleRate:a,source:i}=n.metadata;a!=null&&(r.sample_rate=`${a}`);let s=NN.spanToJSON(n);return i&&i!=="url"&&(r.transaction=s.description),r.sampled=String(NN.spanIsSampled(n)),e.emit&&e.emit("createDsc",r),r}OE.getDynamicSamplingContextFromClient=X6;OE.getDynamicSamplingContextFromSpan=MTe});var IE=_(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0});var Vv=se(),FTe=yc(),qTe=nf(),Z6=Jn();function jTe(t,e){let{fingerprint:r,span:n,breadcrumbs:o,sdkProcessingMetadata:a}=e;BTe(t,e),n&&WTe(t,n),$Te(t,r),UTe(t,o),zTe(t,a)}function LTe(t,e){let{extra:r,tags:n,user:o,contexts:a,level:i,sdkProcessingMetadata:s,breadcrumbs:u,fingerprint:l,eventProcessors:c,attachments:p,propagationContext:d,transactionName:f,span:m}=e;of(t,"extra",r),of(t,"tags",n),of(t,"user",o),of(t,"contexts",a),of(t,"sdkProcessingMetadata",s),i&&(t.level=i),f&&(t.transactionName=f),m&&(t.span=m),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),l.length&&(t.fingerprint=[...t.fingerprint,...l]),c.length&&(t.eventProcessors=[...t.eventProcessors,...c]),p.length&&(t.attachments=[...t.attachments,...p]),t.propagationContext={...t.propagationContext,...d}}function of(t,e,r){if(r&&Object.keys(r).length){t[e]={...t[e]};for(let n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[e][n]=r[n])}}function BTe(t,e){let{extra:r,tags:n,user:o,contexts:a,level:i,transactionName:s}=e,u=Vv.dropUndefinedKeys(r);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});let l=Vv.dropUndefinedKeys(n);l&&Object.keys(l).length&&(t.tags={...l,...t.tags});let c=Vv.dropUndefinedKeys(o);c&&Object.keys(c).length&&(t.user={...c,...t.user});let p=Vv.dropUndefinedKeys(a);p&&Object.keys(p).length&&(t.contexts={...p,...t.contexts}),i&&(t.level=i),s&&(t.transaction=s)}function UTe(t,e){let r=[...t.breadcrumbs||[],...e];t.breadcrumbs=r.length?r:void 0}function zTe(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function WTe(t,e){t.contexts={trace:Z6.spanToTraceContext(e),...t.contexts};let r=qTe.getRootSpan(e);if(r){t.sdkProcessingMetadata={dynamicSamplingContext:FTe.getDynamicSamplingContextFromSpan(e),...t.sdkProcessingMetadata};let n=Z6.spanToJSON(r).description;n&&(t.tags={transaction:n,...t.tags})}}function $Te(t,e){t.fingerprint=t.fingerprint?Vv.arrayify(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}Kv.applyScopeDataToEvent=jTe;Kv.mergeAndOverwriteScopeData=of;Kv.mergeScopeData=LTe});var kE=_(Yv=>{"use strict";Object.defineProperty(Yv,"__esModule",{value:!0});var ii=se(),Q6=Wv(),HTe=tf(),GTe=IE(),VTe=100,RE,DE=class t{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=e9()}static clone(e){return e?e.clone():new t}clone(){let e=new t;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&HTe.updateSession(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,r){return this._tags={...this._tags,[e]:r},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,r){return this._extra={...this._extra,[e]:r},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,r){return r===null?delete this._contexts[e]:this._contexts[e]=r,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let r=typeof e=="function"?e(this):e;if(r instanceof t){let n=r.getScopeData();this._tags={...this._tags,...n.tags},this._extra={...this._extra,...n.extra},this._contexts={...this._contexts,...n.contexts},n.user&&Object.keys(n.user).length&&(this._user=n.user),n.level&&(this._level=n.level),n.fingerprint.length&&(this._fingerprint=n.fingerprint),r.getRequestSession()&&(this._requestSession=r.getRequestSession()),n.propagationContext&&(this._propagationContext=n.propagationContext)}else if(ii.isPlainObject(r)){let n=e;this._tags={...this._tags,...n.tags},this._extra={...this._extra,...n.extra},this._contexts={...this._contexts,...n.contexts},n.user&&(this._user=n.user),n.level&&(this._level=n.level),n.fingerprint&&(this._fingerprint=n.fingerprint),n.requestSession&&(this._requestSession=n.requestSession),n.propagationContext&&(this._propagationContext=n.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=e9(),this}addBreadcrumb(e,r){let n=typeof r=="number"?r:VTe;if(n<=0)return this;let o={timestamp:ii.dateTimestampInSeconds(),...e},a=this._breadcrumbs;return a.push(o),this._breadcrumbs=a.length>n?a.slice(-n):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:e,_attachments:r,_contexts:n,_tags:o,_extra:a,_user:i,_level:s,_fingerprint:u,_eventProcessors:l,_propagationContext:c,_sdkProcessingMetadata:p,_transactionName:d,_span:f}=this;return{breadcrumbs:e,attachments:r,contexts:n,tags:o,extra:a,user:i,level:s,fingerprint:u||[],eventProcessors:l,propagationContext:c,sdkProcessingMetadata:p,transactionName:d,span:f}}applyToEvent(e,r={},n=[]){GTe.applyScopeDataToEvent(e,this.getScopeData());let o=[...n,...Q6.getGlobalEventProcessors(),...this._eventProcessors];return Q6.notifyEventProcessors(o,e,r)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,r){let n=r&&r.event_id?r.event_id:ii.uuid4();if(!this._client)return ii.logger.warn("No client configured on scope - will not capture exception!"),n;let o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...r,event_id:n},this),n}captureMessage(e,r,n){let o=n&&n.event_id?n.event_id:ii.uuid4();if(!this._client)return ii.logger.warn("No client configured on scope - will not capture message!"),o;let a=new Error(e);return this._client.captureMessage(e,r,{originalException:e,syntheticException:a,...n,event_id:o},this),o}captureEvent(e,r){let n=r&&r.event_id?r.event_id:ii.uuid4();return this._client?(this._client.captureEvent(e,{...r,event_id:n},this),n):(ii.logger.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}};function KTe(){return RE||(RE=new DE),RE}function YTe(t){RE=t}function e9(){return{traceId:ii.uuid4(),spanId:ii.uuid4().substring(16)}}Yv.Scope=DE;Yv.getGlobalScope=KTe;Yv.setGlobalScope=YTe});var NE=_(AN=>{"use strict";Object.defineProperty(AN,"__esModule",{value:!0});var JTe="7.119.2";AN.SDK_VERSION=JTe});var ai=_(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});var Mn=se(),XTe=ef(),MN=Rr(),t9=kE(),FN=tf(),ZTe=NE(),AE=parseFloat(ZTe.SDK_VERSION),QTe=100,af=class{constructor(e,r,n,o=AE){this._version=o;let a;r?a=r:(a=new t9.Scope,a.setClient(e));let i;n?i=n:(i=new t9.Scope,i.setClient(e)),this._stack=[{scope:a}],e&&this.bindClient(e),this._isolationScope=i}isOlderThan(e){return this._version(this.popScope(),o),o=>{throw this.popScope(),o}):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,r){let n=this._lastEventId=r&&r.event_id?r.event_id:Mn.uuid4(),o=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:o,...r,event_id:n}),n}captureMessage(e,r,n){let o=this._lastEventId=n&&n.event_id?n.event_id:Mn.uuid4(),a=new Error(e);return this.getScope().captureMessage(e,r,{originalException:e,syntheticException:a,...n,event_id:o}),o}captureEvent(e,r){let n=r&&r.event_id?r.event_id:Mn.uuid4();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...r,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,r){let{scope:n,client:o}=this.getStackTop();if(!o)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:i=QTe}=o.getOptions&&o.getOptions()||{};if(i<=0)return;let u={timestamp:Mn.dateTimestampInSeconds(),...e},l=a?Mn.consoleSandbox(()=>a(u,r)):u;l!==null&&(o.emit&&o.emit("beforeAddBreadcrumb",l,r),n.addBreadcrumb(l,i))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,r){this.getScope().setTag(e,r),this.getIsolationScope().setTag(e,r)}setExtra(e,r){this.getScope().setExtra(e,r),this.getIsolationScope().setExtra(e,r)}setContext(e,r){this.getScope().setContext(e,r),this.getIsolationScope().setContext(e,r)}configureScope(e){let{scope:r,client:n}=this.getStackTop();n&&e(r)}run(e){let r=qN(this);try{e(this)}finally{qN(r)}}getIntegration(e){let r=this.getClient();if(!r)return null;try{return r.getIntegration(e)}catch(n){return MN.DEBUG_BUILD&&Mn.logger.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,r){let n=this._callExtensionMethod("startTransaction",e,r);return MN.DEBUG_BUILD&&!n&&(this.getClient()?Mn.logger.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': Sentry.addTracingExtensions(); Sentry.init({...}); -`):Mn.logger.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let r=this.getStackTop().scope,n=r.getSession();n&&FN.closeSession(n),this._sendSessionUpdate(),r.setSession()}startSession(e){let{scope:r,client:n}=this.getStackTop(),{release:o,environment:a=XTe.DEFAULT_ENVIRONMENT}=n&&n.getOptions()||{},{userAgent:i}=Mn.GLOBAL_OBJ.navigator||{},s=FN.makeSession({release:o,environment:a,user:r.getUser(),...i&&{userAgent:i},...e}),u=r.getSession&&r.getSession();return u&&u.status==="ok"&&FN.updateSession(u,{status:"exited"}),this.endSession(),r.setSession(s),s}shouldSendDefaultPii(){let e=this.getClient(),r=e&&e.getOptions();return!!(r&&r.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:r}=this.getStackTop(),n=e.getSession();n&&r&&r.captureSession&&r.captureSession(n)}_callExtensionMethod(e,...r){let o=_c().__SENTRY__;if(o&&o.extensions&&typeof o.extensions[e]=="function")return o.extensions[e].apply(this,r);MN.DEBUG_BUILD&&Mn.logger.warn(`Extension method ${e} couldn't be found, doing nothing.`)}};function _c(){return Mn.GLOBAL_OBJ.__SENTRY__=Mn.GLOBAL_OBJ.__SENTRY__||{extensions:{},hub:void 0},Mn.GLOBAL_OBJ}function qN(t){let e=_c(),r=Jv(e);return ME(e,t),r}function r9(){let t=_c();if(t.__SENTRY__&&t.__SENTRY__.acs){let e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return n9(t)}function ewe(){return r9().getIsolationScope()}function n9(t=_c()){return(!o9(t)||Jv(t).isOlderThan(AE))&&ME(t,new ip),Jv(t)}function twe(t,e=n9()){if(!o9(t)||Jv(t).isOlderThan(AE)){let r=e.getClient(),n=e.getScope(),o=e.getIsolationScope();ME(t,new ip(r,n.clone(),o.clone()))}}function rwe(t){let e=_c();e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.acs=t}function nwe(t,e={}){let r=_c();return r.__SENTRY__&&r.__SENTRY__.acs?r.__SENTRY__.acs.runWithAsyncContext(t,e):t()}function o9(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function Jv(t){return Mn.getGlobalSingleton("hub",()=>new ip,t)}function ME(t,e){if(!t)return!1;let r=t.__SENTRY__=t.__SENTRY__||{};return r.hub=e,!0}So.API_VERSION=AE;So.Hub=ip;So.ensureHubOnCarrier=twe;So.getCurrentHub=r9;So.getHubFromCarrier=Jv;So.getIsolationScope=ewe;So.getMainCarrier=_c;So.makeMain=qN;So.runWithAsyncContext=nwe;So.setAsyncContextStrategy=rwe;So.setHubOnCarrier=ME});var FE=_(Xv=>{"use strict";Object.defineProperty(Xv,"__esModule",{value:!0});var a9=se(),owe=ai();function awe(t){return(t||owe.getCurrentHub()).getScope().getTransaction()}var iwe=a9.extractTraceparentData;Xv.stripUrlQueryAndFragment=a9.stripUrlQueryAndFragment;Xv.extractTraceparentData=iwe;Xv.getActiveTransaction=awe});var qE=_(BN=>{"use strict";Object.defineProperty(BN,"__esModule",{value:!0});var jN=se(),swe=Rr(),uwe=FE(),i9=!1;function lwe(){i9||(i9=!0,jN.addGlobalErrorInstrumentationHandler(LN),jN.addGlobalUnhandledRejectionInstrumentationHandler(LN))}function LN(){let t=uwe.getActiveTransaction();if(t){let e="internal_error";swe.DEBUG_BUILD&&jN.logger.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}LN.tag="sentry_tracingErrorCallback";BN.registerErrorInstrumentation=lwe});var sp=_(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.SpanStatus=void 0;(function(t){let e="ok";t.Ok=e;let r="deadline_exceeded";t.DeadlineExceeded=r;let n="unauthenticated";t.Unauthenticated=n;let o="permission_denied";t.PermissionDenied=o;let a="not_found";t.NotFound=a;let i="resource_exhausted";t.ResourceExhausted=i;let s="invalid_argument";t.InvalidArgument=s;let u="unimplemented";t.Unimplemented=u;let l="unavailable";t.Unavailable=l;let c="internal_error";t.InternalError=c;let f="unknown_error";t.UnknownError=f;let d="cancelled";t.Cancelled=d;let p="already_exists";t.AlreadyExists=p;let m="failed_precondition";t.FailedPrecondition=m;let g="aborted";t.Aborted=g;let v="out_of_range";t.OutOfRange=v;let h="data_loss";t.DataLoss=h})(Uu.SpanStatus||(Uu.SpanStatus={}));function UN(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}var cwe=UN;function dwe(t,e){t.setTag("http.status_code",String(e)),t.setData("http.response.status_code",e);let r=UN(e);r!=="unknown_error"&&t.setStatus(r)}Uu.getSpanStatusFromHttpCode=UN;Uu.setHttpStatus=dwe;Uu.spanStatusfromHttpCode=cwe});var WN=_(zN=>{"use strict";Object.defineProperty(zN,"__esModule",{value:!0});var fwe=se();function pwe(t,e,r=()=>{}){let n;try{n=t()}catch(o){throw e(o),r(),o}return mwe(n,e,r)}function mwe(t,e,r){return fwe.isThenable(t)?t.then(n=>(r(),n),n=>{throw e(n),r(),n}):(r(),t)}zN.handleCallbackErrors=pwe});var jE=_($N=>{"use strict";Object.defineProperty($N,"__esModule",{value:!0});var hwe=ea();function gwe(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let e=hwe.getClient(),r=t||e&&e.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}$N.hasTracingEnabled=gwe});var zE=_(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});var Zv=se(),vwe=Rr(),zu=ai(),LE=Jn();qE();sp();var ywe=yc(),up=ea(),HN=WN(),s9=jE();function _we(t,e,r=()=>{},n=()=>{}){let o=zu.getCurrentHub(),a=up.getCurrentScope(),i=a.getSpan(),s=UE(t),u=BE(o,{parentSpan:i,spanContext:s,forceTransaction:!1,scope:a});return a.setSpan(u),HN.handleCallbackErrors(()=>e(u),l=>{u&&u.setStatus("internal_error"),r(l,u)},()=>{u&&u.end(),a.setSpan(i),n()})}function u9(t,e){let r=UE(t);return zu.runWithAsyncContext(()=>up.withScope(t.scope,n=>{let o=zu.getCurrentHub(),a=n.getSpan(),s=t.onlyIfParent&&!a?void 0:BE(o,{parentSpan:a,spanContext:r,forceTransaction:t.forceTransaction,scope:n});return HN.handleCallbackErrors(()=>e(s),()=>{if(s){let{status:u}=LE.spanToJSON(s);(!u||u==="ok")&&s.setStatus("internal_error")}},()=>s&&s.end())}))}var bwe=u9;function Swe(t,e){let r=UE(t);return zu.runWithAsyncContext(()=>up.withScope(t.scope,n=>{let o=zu.getCurrentHub(),a=n.getSpan(),s=t.onlyIfParent&&!a?void 0:BE(o,{parentSpan:a,spanContext:r,forceTransaction:t.forceTransaction,scope:n});function u(){s&&s.end()}return HN.handleCallbackErrors(()=>e(s,u),()=>{if(s&&s.isRecording()){let{status:l}=LE.spanToJSON(s);(!l||l==="ok")&&s.setStatus("internal_error")}})}))}function Ewe(t){if(!s9.hasTracingEnabled())return;let e=UE(t),r=zu.getCurrentHub(),n=t.scope?t.scope.getSpan():l9();if(t.onlyIfParent&&!n)return;let i=(t.scope||up.getCurrentScope()).clone();return BE(r,{parentSpan:n,spanContext:e,forceTransaction:t.forceTransaction,scope:i})}function l9(){return up.getCurrentScope().getSpan()}var Twe=({sentryTrace:t,baggage:e},r)=>{let n=up.getCurrentScope(),{traceparentData:o,dynamicSamplingContext:a,propagationContext:i}=Zv.tracingContextFromHeaders(t,e);n.setPropagationContext(i),vwe.DEBUG_BUILD&&o&&Zv.logger.log(`[Tracing] Continuing trace ${o.traceId}.`);let s={...o,metadata:Zv.dropUndefinedKeys({dynamicSamplingContext:a})};return r?zu.runWithAsyncContext(()=>r(s)):s};function BE(t,{parentSpan:e,spanContext:r,forceTransaction:n,scope:o}){if(!s9.hasTracingEnabled())return;let a=zu.getIsolationScope(),i;if(e&&!n)i=e.startChild(r);else if(e){let s=ywe.getDynamicSamplingContextFromSpan(e),{traceId:u,spanId:l}=e.spanContext(),c=LE.spanIsSampled(e);i=t.startTransaction({traceId:u,parentSpanId:l,parentSampled:c,...r,metadata:{dynamicSamplingContext:s,...r.metadata}})}else{let{traceId:s,dsc:u,parentSpanId:l,sampled:c}={...a.getPropagationContext(),...o.getPropagationContext()};i=t.startTransaction({traceId:s,parentSpanId:l,parentSampled:c,...r,metadata:{dynamicSamplingContext:u,...r.metadata}})}return o.setSpan(i),wwe(i,o,a),i}function UE(t){if(t.startTime){let e={...t};return e.startTimestamp=LE.spanTimeInputToSeconds(t.startTime),delete e.startTime,e}return t}var c9="_sentryScope",d9="_sentryIsolationScope";function wwe(t,e,r){t&&(Zv.addNonEnumerableProperty(t,d9,r),Zv.addNonEnumerableProperty(t,c9,e))}function xwe(t){return{scope:t[c9],isolationScope:t[d9]}}si.continueTrace=Twe;si.getActiveSpan=l9;si.getCapturedScopesOnSpan=xwe;si.startActiveSpan=bwe;si.startInactiveSpan=Ewe;si.startSpan=u9;si.startSpanManual=Swe;si.trace=_we});var ey=_(WE=>{"use strict";Object.defineProperty(WE,"__esModule",{value:!0});var Cwe=se();Rr();qE();sp();var Iwe=zE(),Qv;function f9(t){return Qv?Qv.get(t):void 0}function kwe(t){let e=f9(t);if(!e)return;let r={};for(let[,[n,o]]of e)r[n]||(r[n]=[]),r[n].push(Cwe.dropUndefinedKeys(o));return r}function Pwe(t,e,r,n,o,a){let i=Iwe.getActiveSpan();if(i){let s=f9(i)||new Map,u=`${t}:${e}@${n}`,l=s.get(a);if(l){let[,c]=l;s.set(a,[u,{min:Math.min(c.min,r),max:Math.max(c.max,r),count:c.count+=1,sum:c.sum+=r,tags:c.tags}])}else s.set(a,[u,{min:r,max:r,count:1,sum:r,tags:o}]);Qv||(Qv=new WeakMap),Qv.set(i,s)}}WE.getMetricSummaryJsonForSpan=kwe;WE.updateMetricSummaryOnActiveSpan=Pwe});var ty=_(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});var Owe="sentry.source",Rwe="sentry.sample_rate",Dwe="sentry.op",Nwe="sentry.origin",Awe="profile_id";bc.SEMANTIC_ATTRIBUTE_PROFILE_ID=Awe;bc.SEMANTIC_ATTRIBUTE_SENTRY_OP=Dwe;bc.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=Nwe;bc.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=Rwe;bc.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=Owe});var HE=_($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});var Sc=se(),p9=Rr(),Mwe=ey(),bs=ty(),m9=op(),lp=Jn(),Fwe=sp(),GN=class{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}},VN=class t{constructor(e={}){this._traceId=e.traceId||Sc.uuid4(),this._spanId=e.spanId||Sc.uuid4().substring(16),this._startTime=e.startTimestamp||Sc.timestampInSeconds(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[bs.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:e.origin||"manual",[bs.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),e.exclusiveTime!==void 0&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?{...e.measurements}:{}}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[bs.SEMANTIC_ATTRIBUTE_SENTRY_OP]}set op(e){this.setAttribute(bs.SEMANTIC_ATTRIBUTE_SENTRY_OP,e)}get origin(){return this._attributes[bs.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]}set origin(e){this.setAttribute(bs.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,e)}spanContext(){let{_spanId:e,_traceId:r,_sampled:n}=this;return{spanId:e,traceId:r,traceFlags:n?lp.TRACE_FLAG_SAMPLED:lp.TRACE_FLAG_NONE}}startChild(e){let r=new t({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});r.spanRecorder=this.spanRecorder,r.spanRecorder&&r.spanRecorder.add(r);let n=m9.getRootSpan(this);if(r.transaction=n,p9.DEBUG_BUILD&&n){let o=e&&e.op||"< unknown op >",a=lp.spanToJSON(r).description||"< unknown name >",i=n.spanContext().spanId,s=`[Tracing] Starting '${o}' span on transaction '${a}' (${i}).`;Sc.logger.log(s),this._logMessage=s}return r}setTag(e,r){return this.tags={...this.tags,[e]:r},this}setData(e,r){return this.data={...this.data,[e]:r},this}setAttribute(e,r){r===void 0?delete this._attributes[e]:this._attributes[e]=r}setAttributes(e){Object.keys(e).forEach(r=>this.setAttribute(r,e[r]))}setStatus(e){return this._status=e,this}setHttpStatus(e){return Fwe.setHttpStatus(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return this._status==="ok"}finish(e){return this.end(e)}end(e){if(this._endTime)return;let r=m9.getRootSpan(this);if(p9.DEBUG_BUILD&&r&&r.spanContext().spanId!==this._spanId){let n=this._logMessage;n&&Sc.logger.log(n.replace("Starting","Finishing"))}this._endTime=lp.spanTimeInputToSeconds(e)}toTraceparent(){return lp.spanToTraceHeader(this)}toContext(){return Sc.dropUndefinedKeys({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return lp.spanToTraceContext(this)}getSpanJSON(){return Sc.dropUndefinedKeys({data:this._getData(),description:this._name,op:this._attributes[bs.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[bs.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:Mwe.getMetricSummaryJsonForSpan(this),profile_id:this._attributes[bs.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){let{data:e,_attributes:r}=this,n=Object.keys(e).length>0,o=Object.keys(r).length>0;if(!(!n&&!o))return n&&o?{...e,...r}:n?e:r}};$E.Span=VN;$E.SpanRecorder=GN});var KE=_(YN=>{"use strict";Object.defineProperty(YN,"__esModule",{value:!0});var cp=se(),GE=Rr(),qwe=ai(),jwe=ey(),ry=ty(),VE=Jn(),h9=yc(),g9=HE(),Lwe=zE(),KN=class extends g9.Span{constructor(e,r){super(e),this._contexts={},this._hub=r||qwe.getCurrentHub(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;let n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[ry.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]&&{source:this._attributes[ry.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]},...this._attributes[ry.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]&&{sampleRate:this._attributes[ry.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]}}}set metadata(e){this._metadata=e}setName(e,r="custom"){this._name=e,this.setAttribute(ry.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,r)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new g9.SpanRecorder(e)),this.spanRecorder.add(this)}setContext(e,r){r===null?delete this._contexts[e]:this._contexts[e]=r}setMeasurement(e,r,n=""){this._measurements[e]={value:r,unit:n}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){let r=VE.spanTimeInputToSeconds(e),n=this._finishTransaction(r);if(n)return this._hub.captureEvent(n)}toContext(){let e=super.toContext();return cp.dropUndefinedKeys({...e,name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return h9.getDynamicSamplingContextFromSpan(this)}setHub(e){this._hub=e}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(e){if(this._endTime!==void 0)return;this._name||(GE.DEBUG_BUILD&&cp.logger.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(e);let r=this._hub.getClient();if(r&&r.emit&&r.emit("finishTransaction",this),this._sampled!==!0){GE.DEBUG_BUILD&&cp.logger.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),r&&r.recordDroppedEvent("sample_rate","transaction");return}let n=this.spanRecorder?this.spanRecorder.spans.filter(c=>c!==this&&VE.spanToJSON(c).timestamp):[];if(this._trimEnd&&n.length>0){let c=n.map(f=>VE.spanToJSON(f).timestamp).filter(Boolean);this._endTime=c.reduce((f,d)=>f>d?f:d)}let{scope:o,isolationScope:a}=Lwe.getCapturedScopesOnSpan(this),{metadata:i}=this,{source:s}=i,u={contexts:{...this._contexts,trace:VE.spanToTraceContext(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...i,capturedSpanScope:o,capturedSpanIsolationScope:a,...cp.dropUndefinedKeys({dynamicSamplingContext:h9.getDynamicSamplingContextFromSpan(this)})},_metrics_summary:jwe.getMetricSummaryJsonForSpan(this),...s&&{transaction_info:{source:s}}};return Object.keys(this._measurements).length>0&&(GE.DEBUG_BUILD&&cp.logger.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),u.measurements=this._measurements),GE.DEBUG_BUILD&&cp.logger.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),u}};YN.Transaction=KN});var XN=_(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});var En=se(),Xn=Rr(),YE=Jn(),Bwe=HE(),Uwe=KE(),JE={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},zwe="finishReason",dp=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"],XE=class extends Bwe.SpanRecorder{constructor(e,r,n,o){super(o),this._pushActivity=e,this._popActivity=r,this.transactionSpanId=n}add(e){if(e.spanContext().spanId!==this.transactionSpanId){let r=e.end;e.end=(...n)=>(this._popActivity(e.spanContext().spanId),r.apply(e,n)),YE.spanToJSON(e).timestamp===void 0&&this._pushActivity(e.spanContext().spanId)}super.add(e)}},JN=class extends Uwe.Transaction{constructor(e,r,n=JE.idleTimeout,o=JE.finalTimeout,a=JE.heartbeatInterval,i=!1,s=!1){super(e,r),this._idleHub=r,this._idleTimeout=n,this._finalTimeout=o,this._heartbeatInterval=a,this._onScope=i,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=dp[4],this._autoFinishAllowed=!s,i&&(Xn.DEBUG_BUILD&&En.logger.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),r.getScope().setSpan(this)),s||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=dp[3],this.end())},this._finalTimeout)}end(e){let r=YE.spanTimeInputToSeconds(e);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(zwe,this._finishReason),this.spanRecorder){Xn.DEBUG_BUILD&&En.logger.log("[Tracing] finishing IdleTransaction",new Date(r*1e3).toISOString(),this.op);for(let n of this._beforeFinishCallbacks)n(this,r);this.spanRecorder.spans=this.spanRecorder.spans.filter(n=>{if(n.spanContext().spanId===this.spanContext().spanId)return!0;YE.spanToJSON(n).timestamp||(n.setStatus("cancelled"),n.end(r),Xn.DEBUG_BUILD&&En.logger.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(n,void 0,2)));let{start_timestamp:o,timestamp:a}=YE.spanToJSON(n),i=o&&o{this._finished||this._pushActivity(o)},n=o=>{this._finished||this._popActivity(o)};this.spanRecorder=new XE(r,n,this.spanContext().spanId,e),Xn.DEBUG_BUILD&&En.logger.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:r}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=r===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=dp[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(Xn.DEBUG_BUILD&&En.logger.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=dp[1],this.end(e))},this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),Xn.DEBUG_BUILD&&En.logger.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,Xn.DEBUG_BUILD&&En.logger.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(Xn.DEBUG_BUILD&&En.logger.log(`[Tracing] popActivity ${e}`),delete this.activities[e],Xn.DEBUG_BUILD&&En.logger.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){let r=En.timestampInSeconds();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=dp[5],this.end(r)):this._restartIdleTimeout(r+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(Xn.DEBUG_BUILD&&En.logger.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=dp[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){Xn.DEBUG_BUILD&&En.logger.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}};ny.IdleTransaction=JN;ny.IdleTransactionSpanRecorder=XE;ny.TRACING_DEFAULTS=JE});var ZN=_(QE=>{"use strict";Object.defineProperty(QE,"__esModule",{value:!0});var Ec=se(),fp=Rr(),ZE=ty(),Wwe=jE(),$we=Jn();function Hwe(t,e,r){if(!Wwe.hasTracingEnabled(e))return t.sampled=!1,t;if(t.sampled!==void 0)return t.setAttribute(ZE.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,Number(t.sampled)),t;let n;return typeof e.tracesSampler=="function"?(n=e.tracesSampler(r),t.setAttribute(ZE.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,Number(n))):r.parentSampled!==void 0?n=r.parentSampled:typeof e.tracesSampleRate!="undefined"?(n=e.tracesSampleRate,t.setAttribute(ZE.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,Number(n))):(n=1,t.setAttribute(ZE.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,n)),v9(n)?n?(t.sampled=Math.random()1?(fp.DEBUG_BUILD&&Ec.logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1):!0}QE.isValidSampleRate=v9;QE.sampleTransaction=Hwe});var QN=_(eT=>{"use strict";Object.defineProperty(eT,"__esModule",{value:!0});var Gwe=se(),Vwe=Rr(),Kwe=ai(),Ywe=Jn(),Jwe=qE(),Xwe=XN(),y9=ZN(),Zwe=KE();function Qwe(){let e=this.getScope().getSpan();return e?{"sentry-trace":Ywe.spanToTraceHeader(e)}:{}}function exe(t,e){let r=this.getClient(),n=r&&r.getOptions()||{},o=n.instrumenter||"sentry",a=t.instrumenter||"sentry";o!==a&&(Vwe.DEBUG_BUILD&&Gwe.logger.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${o}\` instrumenter. -The transaction will not be sampled. Please use the ${o} instrumentation to start transactions.`),t.sampled=!1);let i=new Zwe.Transaction(t,this);return i=y9.sampleTransaction(i,n,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...e}),i.isRecording()&&i.initSpanRecorder(n._experiments&&n._experiments.maxSpans),r&&r.emit&&r.emit("startTransaction",i),i}function txe(t,e,r,n,o,a,i,s=!1){let u=t.getClient(),l=u&&u.getOptions()||{},c=new Xwe.IdleTransaction(e,t,r,n,i,o,s);return c=y9.sampleTransaction(c,l,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...a}),c.isRecording()&&c.initSpanRecorder(l._experiments&&l._experiments.maxSpans),u&&u.emit&&u.emit("startTransaction",c),c}function rxe(){let t=Kwe.getMainCarrier();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=exe),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=Qwe),Jwe.registerErrorInstrumentation())}eT.addTracingExtensions=rxe;eT.startIdleTransaction=txe});var _9=_(eA=>{"use strict";Object.defineProperty(eA,"__esModule",{value:!0});var nxe=FE();function oxe(t,e,r){let n=nxe.getActiveTransaction();n&&n.setMeasurement(t,e,r)}eA.setMeasurement=oxe});var tA=_(tT=>{"use strict";Object.defineProperty(tT,"__esModule",{value:!0});var pp=se();function axe(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function ixe(t,e,r,n){let o=pp.getSdkMetadataForEnvelopeHeader(r),a={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!n&&e&&{dsn:pp.dsnToString(e)}},i="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return pp.createEnvelope(a,[i])}function sxe(t,e,r,n){let o=pp.getSdkMetadataForEnvelopeHeader(r),a=t.type&&t.type!=="replay_event"?t.type:"event";axe(t,r&&r.sdk);let i=pp.createEventEnvelopeHeaders(t,o,n,e);delete t.sdkProcessingMetadata;let s=[{type:a},t];return pp.createEnvelope(i,[s])}tT.createEventEnvelope=sxe;tT.createSessionEnvelope=ixe});var oA=_(nA=>{"use strict";Object.defineProperty(nA,"__esModule",{value:!0});var uxe=se(),lxe=ea(),rA=class{constructor(e,r){this._client=e,this.flushTimeout=60,this._pendingAggregates={},this._isEnabled=!0,this._intervalId=setInterval(()=>this.flush(),this.flushTimeout*1e3),this._intervalId.unref&&this._intervalId.unref(),this._sessionAttrs=r}flush(){let e=this.getSessionAggregates();e.aggregates.length!==0&&(this._pendingAggregates={},this._client.sendSession(e))}getSessionAggregates(){let e=Object.keys(this._pendingAggregates).map(n=>this._pendingAggregates[parseInt(n)]),r={attrs:this._sessionAttrs,aggregates:e};return uxe.dropUndefinedKeys(r)}close(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()}incrementSessionStatusCount(){if(!this._isEnabled)return;let e=lxe.getCurrentScope(),r=e.getRequestSession();r&&r.status&&(this._incrementSessionStatusCount(r.status,new Date),e.setRequestSession(void 0))}_incrementSessionStatusCount(e,r){let n=new Date(r).setSeconds(0,0);this._pendingAggregates[n]=this._pendingAggregates[n]||{};let o=this._pendingAggregates[n];switch(o.started||(o.started=new Date(n).toISOString()),e){case"errored":return o.errored=(o.errored||0)+1,o.errored;case"ok":return o.exited=(o.exited||0)+1,o.exited;default:return o.crashed=(o.crashed||0)+1,o.crashed}}};nA.SessionFlusher=rA});var nT=_(rT=>{"use strict";Object.defineProperty(rT,"__esModule",{value:!0});var aA=se(),cxe="7";function b9(t){let e=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${e}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}function dxe(t){return`${b9(t)}${t.projectId}/envelope/`}function fxe(t,e){return aA.urlEncode({sentry_key:t.publicKey,sentry_version:cxe,...e&&{sentry_client:`${e.name}/${e.version}`}})}function pxe(t,e={}){let r=typeof e=="string"?e:e.tunnel,n=typeof e=="string"||!e._metadata?void 0:e._metadata.sdk;return r||`${dxe(t)}?${fxe(t,n)}`}function mxe(t,e){let r=aA.makeDsn(t);if(!r)return"";let n=`${b9(r)}embed/error-page/`,o=`dsn=${aA.dsnToString(r)}`;for(let a in e)if(a!=="dsn"&&a!=="onClose")if(a==="user"){let i=e.user;if(!i)continue;i.name&&(o+=`&name=${encodeURIComponent(i.name)}`),i.email&&(o+=`&email=${encodeURIComponent(i.email)}`)}else o+=`&${encodeURIComponent(a)}=${encodeURIComponent(e[a])}`;return`${n}?${o}`}rT.getEnvelopeEndpointWithUrlEncodedAuth=pxe;rT.getReportDialogEndpoint=mxe});var Ss=_(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});var oT=se(),iA=Rr(),hxe=Wv(),gxe=ea(),vxe=ai(),sA=[];function yxe(t){let e={};return t.forEach(r=>{let{name:n}=r,o=e[n];o&&!o.isDefaultInstance&&r.isDefaultInstance||(e[n]=r)}),Object.keys(e).map(r=>e[r])}function _xe(t){let e=t.defaultIntegrations||[],r=t.integrations;e.forEach(i=>{i.isDefaultInstance=!0});let n;Array.isArray(r)?n=[...e,...r]:typeof r=="function"?n=oT.arrayify(r(e)):n=e;let o=yxe(n),a=Txe(o,i=>i.name==="Debug");if(a!==-1){let[i]=o.splice(a,1);o.push(i)}return o}function bxe(t,e){let r={};return e.forEach(n=>{n&&S9(t,n,r)}),r}function Sxe(t,e){for(let r of e)r&&r.afterAllSetup&&r.afterAllSetup(t)}function S9(t,e,r){if(r[e.name]){iA.DEBUG_BUILD&&oT.logger.log(`Integration skipped because it was already installed: ${e.name}`);return}if(r[e.name]=e,sA.indexOf(e.name)===-1&&(e.setupOnce(hxe.addGlobalEventProcessor,vxe.getCurrentHub),sA.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),t.on&&typeof e.preprocessEvent=="function"){let n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(o,a)=>n(o,a,t))}if(t.addEventProcessor&&typeof e.processEvent=="function"){let n=e.processEvent.bind(e),o=Object.assign((a,i)=>n(a,i,t),{id:e.name});t.addEventProcessor(o)}iA.DEBUG_BUILD&&oT.logger.log(`Integration installed: ${e.name}`)}function Exe(t){let e=gxe.getClient();if(!e||!e.addIntegration){iA.DEBUG_BUILD&&oT.logger.warn(`Cannot add integration "${t.name}" because no SDK Client is available.`);return}e.addIntegration(t)}function Txe(t,e){for(let r=0;r{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});var Cxe=se();function Ixe(t,e,r,n){let o=Object.entries(Cxe.dropUndefinedKeys(n)).sort((a,i)=>a[0].localeCompare(i[0]));return`${t}${e}${r}${o}`}function kxe(t){let e=0;for(let r=0;r>>0}function Pxe(t){let e="";for(let r of t){let n=Object.entries(r.tags),o=n.length>0?`|#${n.map(([a,i])=>`${a}:${i}`).join(",")}`:"";e+=`${r.name}@${r.unit}:${r.metric}|${r.metricType}${o}|T${r.timestamp} +`):Mn.logger.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let r=this.getStackTop().scope,n=r.getSession();n&&FN.closeSession(n),this._sendSessionUpdate(),r.setSession()}startSession(e){let{scope:r,client:n}=this.getStackTop(),{release:o,environment:a=XTe.DEFAULT_ENVIRONMENT}=n&&n.getOptions()||{},{userAgent:i}=Mn.GLOBAL_OBJ.navigator||{},s=FN.makeSession({release:o,environment:a,user:r.getUser(),...i&&{userAgent:i},...e}),u=r.getSession&&r.getSession();return u&&u.status==="ok"&&FN.updateSession(u,{status:"exited"}),this.endSession(),r.setSession(s),s}shouldSendDefaultPii(){let e=this.getClient(),r=e&&e.getOptions();return!!(r&&r.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:r}=this.getStackTop(),n=e.getSession();n&&r&&r.captureSession&&r.captureSession(n)}_callExtensionMethod(e,...r){let o=_c().__SENTRY__;if(o&&o.extensions&&typeof o.extensions[e]=="function")return o.extensions[e].apply(this,r);MN.DEBUG_BUILD&&Mn.logger.warn(`Extension method ${e} couldn't be found, doing nothing.`)}};function _c(){return Mn.GLOBAL_OBJ.__SENTRY__=Mn.GLOBAL_OBJ.__SENTRY__||{extensions:{},hub:void 0},Mn.GLOBAL_OBJ}function qN(t){let e=_c(),r=Jv(e);return ME(e,t),r}function r9(){let t=_c();if(t.__SENTRY__&&t.__SENTRY__.acs){let e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return n9(t)}function ewe(){return r9().getIsolationScope()}function n9(t=_c()){return(!o9(t)||Jv(t).isOlderThan(AE))&&ME(t,new af),Jv(t)}function twe(t,e=n9()){if(!o9(t)||Jv(t).isOlderThan(AE)){let r=e.getClient(),n=e.getScope(),o=e.getIsolationScope();ME(t,new af(r,n.clone(),o.clone()))}}function rwe(t){let e=_c();e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.acs=t}function nwe(t,e={}){let r=_c();return r.__SENTRY__&&r.__SENTRY__.acs?r.__SENTRY__.acs.runWithAsyncContext(t,e):t()}function o9(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function Jv(t){return Mn.getGlobalSingleton("hub",()=>new af,t)}function ME(t,e){if(!t)return!1;let r=t.__SENTRY__=t.__SENTRY__||{};return r.hub=e,!0}So.API_VERSION=AE;So.Hub=af;So.ensureHubOnCarrier=twe;So.getCurrentHub=r9;So.getHubFromCarrier=Jv;So.getIsolationScope=ewe;So.getMainCarrier=_c;So.makeMain=qN;So.runWithAsyncContext=nwe;So.setAsyncContextStrategy=rwe;So.setHubOnCarrier=ME});var FE=_(Xv=>{"use strict";Object.defineProperty(Xv,"__esModule",{value:!0});var a9=se(),owe=ai();function awe(t){return(t||owe.getCurrentHub()).getScope().getTransaction()}var iwe=a9.extractTraceparentData;Xv.stripUrlQueryAndFragment=a9.stripUrlQueryAndFragment;Xv.extractTraceparentData=iwe;Xv.getActiveTransaction=awe});var qE=_(BN=>{"use strict";Object.defineProperty(BN,"__esModule",{value:!0});var jN=se(),swe=Rr(),uwe=FE(),i9=!1;function lwe(){i9||(i9=!0,jN.addGlobalErrorInstrumentationHandler(LN),jN.addGlobalUnhandledRejectionInstrumentationHandler(LN))}function LN(){let t=uwe.getActiveTransaction();if(t){let e="internal_error";swe.DEBUG_BUILD&&jN.logger.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}LN.tag="sentry_tracingErrorCallback";BN.registerErrorInstrumentation=lwe});var sf=_(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.SpanStatus=void 0;(function(t){let e="ok";t.Ok=e;let r="deadline_exceeded";t.DeadlineExceeded=r;let n="unauthenticated";t.Unauthenticated=n;let o="permission_denied";t.PermissionDenied=o;let a="not_found";t.NotFound=a;let i="resource_exhausted";t.ResourceExhausted=i;let s="invalid_argument";t.InvalidArgument=s;let u="unimplemented";t.Unimplemented=u;let l="unavailable";t.Unavailable=l;let c="internal_error";t.InternalError=c;let p="unknown_error";t.UnknownError=p;let d="cancelled";t.Cancelled=d;let f="already_exists";t.AlreadyExists=f;let m="failed_precondition";t.FailedPrecondition=m;let g="aborted";t.Aborted=g;let v="out_of_range";t.OutOfRange=v;let h="data_loss";t.DataLoss=h})(Uu.SpanStatus||(Uu.SpanStatus={}));function UN(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}var cwe=UN;function dwe(t,e){t.setTag("http.status_code",String(e)),t.setData("http.response.status_code",e);let r=UN(e);r!=="unknown_error"&&t.setStatus(r)}Uu.getSpanStatusFromHttpCode=UN;Uu.setHttpStatus=dwe;Uu.spanStatusfromHttpCode=cwe});var WN=_(zN=>{"use strict";Object.defineProperty(zN,"__esModule",{value:!0});var pwe=se();function fwe(t,e,r=()=>{}){let n;try{n=t()}catch(o){throw e(o),r(),o}return mwe(n,e,r)}function mwe(t,e,r){return pwe.isThenable(t)?t.then(n=>(r(),n),n=>{throw e(n),r(),n}):(r(),t)}zN.handleCallbackErrors=fwe});var jE=_($N=>{"use strict";Object.defineProperty($N,"__esModule",{value:!0});var hwe=ea();function gwe(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let e=hwe.getClient(),r=t||e&&e.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}$N.hasTracingEnabled=gwe});var zE=_(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});var Zv=se(),vwe=Rr(),zu=ai(),LE=Jn();qE();sf();var ywe=yc(),uf=ea(),HN=WN(),s9=jE();function _we(t,e,r=()=>{},n=()=>{}){let o=zu.getCurrentHub(),a=uf.getCurrentScope(),i=a.getSpan(),s=UE(t),u=BE(o,{parentSpan:i,spanContext:s,forceTransaction:!1,scope:a});return a.setSpan(u),HN.handleCallbackErrors(()=>e(u),l=>{u&&u.setStatus("internal_error"),r(l,u)},()=>{u&&u.end(),a.setSpan(i),n()})}function u9(t,e){let r=UE(t);return zu.runWithAsyncContext(()=>uf.withScope(t.scope,n=>{let o=zu.getCurrentHub(),a=n.getSpan(),s=t.onlyIfParent&&!a?void 0:BE(o,{parentSpan:a,spanContext:r,forceTransaction:t.forceTransaction,scope:n});return HN.handleCallbackErrors(()=>e(s),()=>{if(s){let{status:u}=LE.spanToJSON(s);(!u||u==="ok")&&s.setStatus("internal_error")}},()=>s&&s.end())}))}var bwe=u9;function Swe(t,e){let r=UE(t);return zu.runWithAsyncContext(()=>uf.withScope(t.scope,n=>{let o=zu.getCurrentHub(),a=n.getSpan(),s=t.onlyIfParent&&!a?void 0:BE(o,{parentSpan:a,spanContext:r,forceTransaction:t.forceTransaction,scope:n});function u(){s&&s.end()}return HN.handleCallbackErrors(()=>e(s,u),()=>{if(s&&s.isRecording()){let{status:l}=LE.spanToJSON(s);(!l||l==="ok")&&s.setStatus("internal_error")}})}))}function Ewe(t){if(!s9.hasTracingEnabled())return;let e=UE(t),r=zu.getCurrentHub(),n=t.scope?t.scope.getSpan():l9();if(t.onlyIfParent&&!n)return;let i=(t.scope||uf.getCurrentScope()).clone();return BE(r,{parentSpan:n,spanContext:e,forceTransaction:t.forceTransaction,scope:i})}function l9(){return uf.getCurrentScope().getSpan()}var Twe=({sentryTrace:t,baggage:e},r)=>{let n=uf.getCurrentScope(),{traceparentData:o,dynamicSamplingContext:a,propagationContext:i}=Zv.tracingContextFromHeaders(t,e);n.setPropagationContext(i),vwe.DEBUG_BUILD&&o&&Zv.logger.log(`[Tracing] Continuing trace ${o.traceId}.`);let s={...o,metadata:Zv.dropUndefinedKeys({dynamicSamplingContext:a})};return r?zu.runWithAsyncContext(()=>r(s)):s};function BE(t,{parentSpan:e,spanContext:r,forceTransaction:n,scope:o}){if(!s9.hasTracingEnabled())return;let a=zu.getIsolationScope(),i;if(e&&!n)i=e.startChild(r);else if(e){let s=ywe.getDynamicSamplingContextFromSpan(e),{traceId:u,spanId:l}=e.spanContext(),c=LE.spanIsSampled(e);i=t.startTransaction({traceId:u,parentSpanId:l,parentSampled:c,...r,metadata:{dynamicSamplingContext:s,...r.metadata}})}else{let{traceId:s,dsc:u,parentSpanId:l,sampled:c}={...a.getPropagationContext(),...o.getPropagationContext()};i=t.startTransaction({traceId:s,parentSpanId:l,parentSampled:c,...r,metadata:{dynamicSamplingContext:u,...r.metadata}})}return o.setSpan(i),wwe(i,o,a),i}function UE(t){if(t.startTime){let e={...t};return e.startTimestamp=LE.spanTimeInputToSeconds(t.startTime),delete e.startTime,e}return t}var c9="_sentryScope",d9="_sentryIsolationScope";function wwe(t,e,r){t&&(Zv.addNonEnumerableProperty(t,d9,r),Zv.addNonEnumerableProperty(t,c9,e))}function xwe(t){return{scope:t[c9],isolationScope:t[d9]}}si.continueTrace=Twe;si.getActiveSpan=l9;si.getCapturedScopesOnSpan=xwe;si.startActiveSpan=bwe;si.startInactiveSpan=Ewe;si.startSpan=u9;si.startSpanManual=Swe;si.trace=_we});var ey=_(WE=>{"use strict";Object.defineProperty(WE,"__esModule",{value:!0});var Cwe=se();Rr();qE();sf();var Iwe=zE(),Qv;function p9(t){return Qv?Qv.get(t):void 0}function kwe(t){let e=p9(t);if(!e)return;let r={};for(let[,[n,o]]of e)r[n]||(r[n]=[]),r[n].push(Cwe.dropUndefinedKeys(o));return r}function Pwe(t,e,r,n,o,a){let i=Iwe.getActiveSpan();if(i){let s=p9(i)||new Map,u=`${t}:${e}@${n}`,l=s.get(a);if(l){let[,c]=l;s.set(a,[u,{min:Math.min(c.min,r),max:Math.max(c.max,r),count:c.count+=1,sum:c.sum+=r,tags:c.tags}])}else s.set(a,[u,{min:r,max:r,count:1,sum:r,tags:o}]);Qv||(Qv=new WeakMap),Qv.set(i,s)}}WE.getMetricSummaryJsonForSpan=kwe;WE.updateMetricSummaryOnActiveSpan=Pwe});var ty=_(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});var Owe="sentry.source",Rwe="sentry.sample_rate",Dwe="sentry.op",Nwe="sentry.origin",Awe="profile_id";bc.SEMANTIC_ATTRIBUTE_PROFILE_ID=Awe;bc.SEMANTIC_ATTRIBUTE_SENTRY_OP=Dwe;bc.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=Nwe;bc.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=Rwe;bc.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=Owe});var HE=_($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});var Sc=se(),f9=Rr(),Mwe=ey(),bs=ty(),m9=nf(),lf=Jn(),Fwe=sf(),GN=class{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}},VN=class t{constructor(e={}){this._traceId=e.traceId||Sc.uuid4(),this._spanId=e.spanId||Sc.uuid4().substring(16),this._startTime=e.startTimestamp||Sc.timestampInSeconds(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[bs.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:e.origin||"manual",[bs.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),e.exclusiveTime!==void 0&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?{...e.measurements}:{}}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[bs.SEMANTIC_ATTRIBUTE_SENTRY_OP]}set op(e){this.setAttribute(bs.SEMANTIC_ATTRIBUTE_SENTRY_OP,e)}get origin(){return this._attributes[bs.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]}set origin(e){this.setAttribute(bs.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,e)}spanContext(){let{_spanId:e,_traceId:r,_sampled:n}=this;return{spanId:e,traceId:r,traceFlags:n?lf.TRACE_FLAG_SAMPLED:lf.TRACE_FLAG_NONE}}startChild(e){let r=new t({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});r.spanRecorder=this.spanRecorder,r.spanRecorder&&r.spanRecorder.add(r);let n=m9.getRootSpan(this);if(r.transaction=n,f9.DEBUG_BUILD&&n){let o=e&&e.op||"< unknown op >",a=lf.spanToJSON(r).description||"< unknown name >",i=n.spanContext().spanId,s=`[Tracing] Starting '${o}' span on transaction '${a}' (${i}).`;Sc.logger.log(s),this._logMessage=s}return r}setTag(e,r){return this.tags={...this.tags,[e]:r},this}setData(e,r){return this.data={...this.data,[e]:r},this}setAttribute(e,r){r===void 0?delete this._attributes[e]:this._attributes[e]=r}setAttributes(e){Object.keys(e).forEach(r=>this.setAttribute(r,e[r]))}setStatus(e){return this._status=e,this}setHttpStatus(e){return Fwe.setHttpStatus(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return this._status==="ok"}finish(e){return this.end(e)}end(e){if(this._endTime)return;let r=m9.getRootSpan(this);if(f9.DEBUG_BUILD&&r&&r.spanContext().spanId!==this._spanId){let n=this._logMessage;n&&Sc.logger.log(n.replace("Starting","Finishing"))}this._endTime=lf.spanTimeInputToSeconds(e)}toTraceparent(){return lf.spanToTraceHeader(this)}toContext(){return Sc.dropUndefinedKeys({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return lf.spanToTraceContext(this)}getSpanJSON(){return Sc.dropUndefinedKeys({data:this._getData(),description:this._name,op:this._attributes[bs.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[bs.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:Mwe.getMetricSummaryJsonForSpan(this),profile_id:this._attributes[bs.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){let{data:e,_attributes:r}=this,n=Object.keys(e).length>0,o=Object.keys(r).length>0;if(!(!n&&!o))return n&&o?{...e,...r}:n?e:r}};$E.Span=VN;$E.SpanRecorder=GN});var KE=_(YN=>{"use strict";Object.defineProperty(YN,"__esModule",{value:!0});var cf=se(),GE=Rr(),qwe=ai(),jwe=ey(),ry=ty(),VE=Jn(),h9=yc(),g9=HE(),Lwe=zE(),KN=class extends g9.Span{constructor(e,r){super(e),this._contexts={},this._hub=r||qwe.getCurrentHub(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;let n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[ry.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]&&{source:this._attributes[ry.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]},...this._attributes[ry.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]&&{sampleRate:this._attributes[ry.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]}}}set metadata(e){this._metadata=e}setName(e,r="custom"){this._name=e,this.setAttribute(ry.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,r)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new g9.SpanRecorder(e)),this.spanRecorder.add(this)}setContext(e,r){r===null?delete this._contexts[e]:this._contexts[e]=r}setMeasurement(e,r,n=""){this._measurements[e]={value:r,unit:n}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){let r=VE.spanTimeInputToSeconds(e),n=this._finishTransaction(r);if(n)return this._hub.captureEvent(n)}toContext(){let e=super.toContext();return cf.dropUndefinedKeys({...e,name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return h9.getDynamicSamplingContextFromSpan(this)}setHub(e){this._hub=e}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(e){if(this._endTime!==void 0)return;this._name||(GE.DEBUG_BUILD&&cf.logger.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(e);let r=this._hub.getClient();if(r&&r.emit&&r.emit("finishTransaction",this),this._sampled!==!0){GE.DEBUG_BUILD&&cf.logger.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),r&&r.recordDroppedEvent("sample_rate","transaction");return}let n=this.spanRecorder?this.spanRecorder.spans.filter(c=>c!==this&&VE.spanToJSON(c).timestamp):[];if(this._trimEnd&&n.length>0){let c=n.map(p=>VE.spanToJSON(p).timestamp).filter(Boolean);this._endTime=c.reduce((p,d)=>p>d?p:d)}let{scope:o,isolationScope:a}=Lwe.getCapturedScopesOnSpan(this),{metadata:i}=this,{source:s}=i,u={contexts:{...this._contexts,trace:VE.spanToTraceContext(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...i,capturedSpanScope:o,capturedSpanIsolationScope:a,...cf.dropUndefinedKeys({dynamicSamplingContext:h9.getDynamicSamplingContextFromSpan(this)})},_metrics_summary:jwe.getMetricSummaryJsonForSpan(this),...s&&{transaction_info:{source:s}}};return Object.keys(this._measurements).length>0&&(GE.DEBUG_BUILD&&cf.logger.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),u.measurements=this._measurements),GE.DEBUG_BUILD&&cf.logger.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),u}};YN.Transaction=KN});var XN=_(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});var En=se(),Xn=Rr(),YE=Jn(),Bwe=HE(),Uwe=KE(),JE={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},zwe="finishReason",df=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"],XE=class extends Bwe.SpanRecorder{constructor(e,r,n,o){super(o),this._pushActivity=e,this._popActivity=r,this.transactionSpanId=n}add(e){if(e.spanContext().spanId!==this.transactionSpanId){let r=e.end;e.end=(...n)=>(this._popActivity(e.spanContext().spanId),r.apply(e,n)),YE.spanToJSON(e).timestamp===void 0&&this._pushActivity(e.spanContext().spanId)}super.add(e)}},JN=class extends Uwe.Transaction{constructor(e,r,n=JE.idleTimeout,o=JE.finalTimeout,a=JE.heartbeatInterval,i=!1,s=!1){super(e,r),this._idleHub=r,this._idleTimeout=n,this._finalTimeout=o,this._heartbeatInterval=a,this._onScope=i,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=df[4],this._autoFinishAllowed=!s,i&&(Xn.DEBUG_BUILD&&En.logger.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),r.getScope().setSpan(this)),s||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=df[3],this.end())},this._finalTimeout)}end(e){let r=YE.spanTimeInputToSeconds(e);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(zwe,this._finishReason),this.spanRecorder){Xn.DEBUG_BUILD&&En.logger.log("[Tracing] finishing IdleTransaction",new Date(r*1e3).toISOString(),this.op);for(let n of this._beforeFinishCallbacks)n(this,r);this.spanRecorder.spans=this.spanRecorder.spans.filter(n=>{if(n.spanContext().spanId===this.spanContext().spanId)return!0;YE.spanToJSON(n).timestamp||(n.setStatus("cancelled"),n.end(r),Xn.DEBUG_BUILD&&En.logger.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(n,void 0,2)));let{start_timestamp:o,timestamp:a}=YE.spanToJSON(n),i=o&&o{this._finished||this._pushActivity(o)},n=o=>{this._finished||this._popActivity(o)};this.spanRecorder=new XE(r,n,this.spanContext().spanId,e),Xn.DEBUG_BUILD&&En.logger.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:r}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=r===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=df[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(Xn.DEBUG_BUILD&&En.logger.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=df[1],this.end(e))},this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),Xn.DEBUG_BUILD&&En.logger.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,Xn.DEBUG_BUILD&&En.logger.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(Xn.DEBUG_BUILD&&En.logger.log(`[Tracing] popActivity ${e}`),delete this.activities[e],Xn.DEBUG_BUILD&&En.logger.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){let r=En.timestampInSeconds();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=df[5],this.end(r)):this._restartIdleTimeout(r+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(Xn.DEBUG_BUILD&&En.logger.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=df[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){Xn.DEBUG_BUILD&&En.logger.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}};ny.IdleTransaction=JN;ny.IdleTransactionSpanRecorder=XE;ny.TRACING_DEFAULTS=JE});var ZN=_(QE=>{"use strict";Object.defineProperty(QE,"__esModule",{value:!0});var Ec=se(),pf=Rr(),ZE=ty(),Wwe=jE(),$we=Jn();function Hwe(t,e,r){if(!Wwe.hasTracingEnabled(e))return t.sampled=!1,t;if(t.sampled!==void 0)return t.setAttribute(ZE.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,Number(t.sampled)),t;let n;return typeof e.tracesSampler=="function"?(n=e.tracesSampler(r),t.setAttribute(ZE.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,Number(n))):r.parentSampled!==void 0?n=r.parentSampled:typeof e.tracesSampleRate!="undefined"?(n=e.tracesSampleRate,t.setAttribute(ZE.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,Number(n))):(n=1,t.setAttribute(ZE.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,n)),v9(n)?n?(t.sampled=Math.random()1?(pf.DEBUG_BUILD&&Ec.logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1):!0}QE.isValidSampleRate=v9;QE.sampleTransaction=Hwe});var QN=_(eT=>{"use strict";Object.defineProperty(eT,"__esModule",{value:!0});var Gwe=se(),Vwe=Rr(),Kwe=ai(),Ywe=Jn(),Jwe=qE(),Xwe=XN(),y9=ZN(),Zwe=KE();function Qwe(){let e=this.getScope().getSpan();return e?{"sentry-trace":Ywe.spanToTraceHeader(e)}:{}}function exe(t,e){let r=this.getClient(),n=r&&r.getOptions()||{},o=n.instrumenter||"sentry",a=t.instrumenter||"sentry";o!==a&&(Vwe.DEBUG_BUILD&&Gwe.logger.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${o}\` instrumenter. +The transaction will not be sampled. Please use the ${o} instrumentation to start transactions.`),t.sampled=!1);let i=new Zwe.Transaction(t,this);return i=y9.sampleTransaction(i,n,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...e}),i.isRecording()&&i.initSpanRecorder(n._experiments&&n._experiments.maxSpans),r&&r.emit&&r.emit("startTransaction",i),i}function txe(t,e,r,n,o,a,i,s=!1){let u=t.getClient(),l=u&&u.getOptions()||{},c=new Xwe.IdleTransaction(e,t,r,n,i,o,s);return c=y9.sampleTransaction(c,l,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...a}),c.isRecording()&&c.initSpanRecorder(l._experiments&&l._experiments.maxSpans),u&&u.emit&&u.emit("startTransaction",c),c}function rxe(){let t=Kwe.getMainCarrier();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=exe),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=Qwe),Jwe.registerErrorInstrumentation())}eT.addTracingExtensions=rxe;eT.startIdleTransaction=txe});var _9=_(eA=>{"use strict";Object.defineProperty(eA,"__esModule",{value:!0});var nxe=FE();function oxe(t,e,r){let n=nxe.getActiveTransaction();n&&n.setMeasurement(t,e,r)}eA.setMeasurement=oxe});var tA=_(tT=>{"use strict";Object.defineProperty(tT,"__esModule",{value:!0});var ff=se();function axe(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function ixe(t,e,r,n){let o=ff.getSdkMetadataForEnvelopeHeader(r),a={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!n&&e&&{dsn:ff.dsnToString(e)}},i="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return ff.createEnvelope(a,[i])}function sxe(t,e,r,n){let o=ff.getSdkMetadataForEnvelopeHeader(r),a=t.type&&t.type!=="replay_event"?t.type:"event";axe(t,r&&r.sdk);let i=ff.createEventEnvelopeHeaders(t,o,n,e);delete t.sdkProcessingMetadata;let s=[{type:a},t];return ff.createEnvelope(i,[s])}tT.createEventEnvelope=sxe;tT.createSessionEnvelope=ixe});var oA=_(nA=>{"use strict";Object.defineProperty(nA,"__esModule",{value:!0});var uxe=se(),lxe=ea(),rA=class{constructor(e,r){this._client=e,this.flushTimeout=60,this._pendingAggregates={},this._isEnabled=!0,this._intervalId=setInterval(()=>this.flush(),this.flushTimeout*1e3),this._intervalId.unref&&this._intervalId.unref(),this._sessionAttrs=r}flush(){let e=this.getSessionAggregates();e.aggregates.length!==0&&(this._pendingAggregates={},this._client.sendSession(e))}getSessionAggregates(){let e=Object.keys(this._pendingAggregates).map(n=>this._pendingAggregates[parseInt(n)]),r={attrs:this._sessionAttrs,aggregates:e};return uxe.dropUndefinedKeys(r)}close(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()}incrementSessionStatusCount(){if(!this._isEnabled)return;let e=lxe.getCurrentScope(),r=e.getRequestSession();r&&r.status&&(this._incrementSessionStatusCount(r.status,new Date),e.setRequestSession(void 0))}_incrementSessionStatusCount(e,r){let n=new Date(r).setSeconds(0,0);this._pendingAggregates[n]=this._pendingAggregates[n]||{};let o=this._pendingAggregates[n];switch(o.started||(o.started=new Date(n).toISOString()),e){case"errored":return o.errored=(o.errored||0)+1,o.errored;case"ok":return o.exited=(o.exited||0)+1,o.exited;default:return o.crashed=(o.crashed||0)+1,o.crashed}}};nA.SessionFlusher=rA});var nT=_(rT=>{"use strict";Object.defineProperty(rT,"__esModule",{value:!0});var aA=se(),cxe="7";function b9(t){let e=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${e}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}function dxe(t){return`${b9(t)}${t.projectId}/envelope/`}function pxe(t,e){return aA.urlEncode({sentry_key:t.publicKey,sentry_version:cxe,...e&&{sentry_client:`${e.name}/${e.version}`}})}function fxe(t,e={}){let r=typeof e=="string"?e:e.tunnel,n=typeof e=="string"||!e._metadata?void 0:e._metadata.sdk;return r||`${dxe(t)}?${pxe(t,n)}`}function mxe(t,e){let r=aA.makeDsn(t);if(!r)return"";let n=`${b9(r)}embed/error-page/`,o=`dsn=${aA.dsnToString(r)}`;for(let a in e)if(a!=="dsn"&&a!=="onClose")if(a==="user"){let i=e.user;if(!i)continue;i.name&&(o+=`&name=${encodeURIComponent(i.name)}`),i.email&&(o+=`&email=${encodeURIComponent(i.email)}`)}else o+=`&${encodeURIComponent(a)}=${encodeURIComponent(e[a])}`;return`${n}?${o}`}rT.getEnvelopeEndpointWithUrlEncodedAuth=fxe;rT.getReportDialogEndpoint=mxe});var Ss=_(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});var oT=se(),iA=Rr(),hxe=Wv(),gxe=ea(),vxe=ai(),sA=[];function yxe(t){let e={};return t.forEach(r=>{let{name:n}=r,o=e[n];o&&!o.isDefaultInstance&&r.isDefaultInstance||(e[n]=r)}),Object.keys(e).map(r=>e[r])}function _xe(t){let e=t.defaultIntegrations||[],r=t.integrations;e.forEach(i=>{i.isDefaultInstance=!0});let n;Array.isArray(r)?n=[...e,...r]:typeof r=="function"?n=oT.arrayify(r(e)):n=e;let o=yxe(n),a=Txe(o,i=>i.name==="Debug");if(a!==-1){let[i]=o.splice(a,1);o.push(i)}return o}function bxe(t,e){let r={};return e.forEach(n=>{n&&S9(t,n,r)}),r}function Sxe(t,e){for(let r of e)r&&r.afterAllSetup&&r.afterAllSetup(t)}function S9(t,e,r){if(r[e.name]){iA.DEBUG_BUILD&&oT.logger.log(`Integration skipped because it was already installed: ${e.name}`);return}if(r[e.name]=e,sA.indexOf(e.name)===-1&&(e.setupOnce(hxe.addGlobalEventProcessor,vxe.getCurrentHub),sA.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),t.on&&typeof e.preprocessEvent=="function"){let n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(o,a)=>n(o,a,t))}if(t.addEventProcessor&&typeof e.processEvent=="function"){let n=e.processEvent.bind(e),o=Object.assign((a,i)=>n(a,i,t),{id:e.name});t.addEventProcessor(o)}iA.DEBUG_BUILD&&oT.logger.log(`Integration installed: ${e.name}`)}function Exe(t){let e=gxe.getClient();if(!e||!e.addIntegration){iA.DEBUG_BUILD&&oT.logger.warn(`Cannot add integration "${t.name}" because no SDK Client is available.`);return}e.addIntegration(t)}function Txe(t,e){for(let r=0;r{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});var Cxe=se();function Ixe(t,e,r,n){let o=Object.entries(Cxe.dropUndefinedKeys(n)).sort((a,i)=>a[0].localeCompare(i[0]));return`${t}${e}${r}${o}`}function kxe(t){let e=0;for(let r=0;r>>0}function Pxe(t){let e="";for(let r of t){let n=Object.entries(r.tags),o=n.length>0?`|#${n.map(([a,i])=>`${a}:${i}`).join(",")}`:"";e+=`${r.name}@${r.unit}:${r.metric}|${r.metricType}${o}|T${r.timestamp} `}return e}function Oxe(t){return t.replace(/[^\w]+/gi,"_")}function Rxe(t){return t.replace(/[^\w\-.]+/gi,"_")}function Dxe(t){return t.replace(/[^\w\-./]+/gi,"")}var Nxe=[[` -`,"\\n"],["\r","\\r"],[" ","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function Axe(t){for(let[e,r]of Nxe)if(t===e)return r;return t}function Mxe(t){return[...t].reduce((e,r)=>e+Axe(r),"")}function Fxe(t){let e={};for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let n=Dxe(r);e[n]=Mxe(String(t[r]))}return e}Wu.getBucketKey=Ixe;Wu.sanitizeMetricKey=Rxe;Wu.sanitizeTags=Fxe;Wu.sanitizeUnit=Oxe;Wu.serializeMetricBuckets=Pxe;Wu.simpleHash=kxe});var T9=_(uA=>{"use strict";Object.defineProperty(uA,"__esModule",{value:!0});var E9=se(),qxe=oy();function jxe(t,e,r,n){let o={sent_at:new Date().toISOString()};r&&r.sdk&&(o.sdk={name:r.sdk.name,version:r.sdk.version}),n&&e&&(o.dsn=E9.dsnToString(e));let a=Lxe(t);return E9.createEnvelope(o,[a])}function Lxe(t){let e=qxe.serializeMetricBuckets(t);return[{type:"statsd",length:e.length},e]}uA.createMetricEnvelope=jxe});var cA=_(iT=>{"use strict";Object.defineProperty(iT,"__esModule",{value:!0});var vt=se(),Bxe=nT(),li=Rr(),w9=tA(),Uxe=ea(),zxe=ai(),aT=Ss(),Wxe=T9(),x9=rp(),$xe=yc(),Hxe=CE(),C9="Not capturing exception because it's already been captured.",lA=class{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=vt.makeDsn(e.dsn):li.DEBUG_BUILD&&vt.logger.warn("No DSN provided, client will not send events."),this._dsn){let r=Bxe.getEnvelopeEndpointWithUrlEncodedAuth(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:r})}}captureException(e,r,n){if(vt.checkOrSetAlreadyCaught(e)){li.DEBUG_BUILD&&vt.logger.log(C9);return}let o=r&&r.event_id;return this._process(this.eventFromException(e,r).then(a=>this._captureEvent(a,r,n)).then(a=>{o=a})),o}captureMessage(e,r,n,o){let a=n&&n.event_id,i=vt.isParameterizedString(e)?e:String(e),s=vt.isPrimitive(e)?this.eventFromMessage(i,r,n):this.eventFromException(e,n);return this._process(s.then(u=>this._captureEvent(u,n,o)).then(u=>{a=u})),a}captureEvent(e,r,n){if(r&&r.originalException&&vt.checkOrSetAlreadyCaught(r.originalException)){li.DEBUG_BUILD&&vt.logger.log(C9);return}let o=r&&r.event_id,i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,r,i||n).then(s=>{o=s})),o}captureSession(e){typeof e.release!="string"?li.DEBUG_BUILD&&vt.logger.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),x9.updateSession(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let r=this._transport;return r?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then(n=>r.flush(e).then(o=>n&&o))):vt.resolvedSyncPromise(!0)}close(e){return this.flush(e).then(r=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),r))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(r){return li.DEBUG_BUILD&&vt.logger.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){let r=this._integrations[e.name];aT.setupIntegration(this,e,this._integrations),r||aT.afterSetupIntegrations(this,[e])}sendEvent(e,r={}){this.emit("beforeSendEvent",e,r);let n=w9.createEventEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);for(let a of r.attachments||[])n=vt.addItemToEnvelope(n,vt.createAttachmentEnvelopeItem(a,this._options.transportOptions&&this._options.transportOptions.textEncoder));let o=this._sendEnvelope(n);o&&o.then(a=>this.emit("afterSendEvent",e,a),null)}sendSession(e){let r=w9.createSessionEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(r)}recordDroppedEvent(e,r,n){if(this._options.sendClientReports){let o=typeof n=="number"?n:1,a=`${e}:${r}`;li.DEBUG_BUILD&&vt.logger.log(`Recording outcome: "${a}"${o>1?` (${o} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+o}}captureAggregateMetrics(e){li.DEBUG_BUILD&&vt.logger.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);let r=Wxe.createMetricEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(r)}on(e,r){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(r)}emit(e,...r){this._hooks[e]&&this._hooks[e].forEach(n=>n(...r))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=aT.setupIntegrations(this,e),aT.afterSetupIntegrations(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,r){let n=!1,o=!1,a=r.exception&&r.exception.values;if(a){o=!0;for(let u of a){let l=u.mechanism;if(l&&l.handled===!1){n=!0;break}}}let i=e.status==="ok";(i&&e.errors===0||i&&n)&&(x9.updateSession(e,{...n&&{status:"crashed"},errors:e.errors||Number(o||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new vt.SyncPromise(r=>{let n=0,o=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),r(!0)):(n+=o,e&&n>=e&&(clearInterval(a),r(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,r,n,o=zxe.getIsolationScope()){let a=this.getOptions(),i=Object.keys(this._integrations);return!r.integrations&&i.length>0&&(r.integrations=i),this.emit("preprocessEvent",e,r),Hxe.prepareEvent(a,e,r,n,this,o).then(s=>{if(s===null)return s;let u={...o.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(s.contexts&&s.contexts.trace)&&u){let{traceId:c,spanId:f,parentSpanId:d,dsc:p}=u;s.contexts={trace:{trace_id:c,span_id:f,parent_span_id:d},...s.contexts};let m=p||$xe.getDynamicSamplingContextFromClient(c,this,n);s.sdkProcessingMetadata={dynamicSamplingContext:m,...s.sdkProcessingMetadata}}return s})}_captureEvent(e,r={},n){return this._processEvent(e,r,n).then(o=>o.event_id,o=>{if(li.DEBUG_BUILD){let a=o;a.logLevel==="log"?vt.logger.log(a.message):vt.logger.warn(a)}})}_processEvent(e,r,n){let o=this.getOptions(),{sampleRate:a}=o,i=k9(e),s=I9(e),u=e.type||"error",l=`before send for type \`${u}\``;if(s&&typeof a=="number"&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",e),vt.rejectedSyncPromise(new vt.SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));let c=u==="replay_event"?"replay":u,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,r,n,d).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",c,e),new vt.SentryError("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return p;let g=Vxe(o,p,r);return Gxe(g,l)}).then(p=>{if(p===null){if(this.recordDroppedEvent("before_send",c,e),i){let h=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",h)}throw new vt.SentryError(`${l} returned \`null\`, will not send event.`,"log")}let m=n&&n.getSession();if(!i&&m&&this._updateSessionFromEvent(m,p),i){let v=p.sdkProcessingMetadata&&p.sdkProcessingMetadata.spanCountBeforeProcessing||0,h=p.spans?p.spans.length:0,y=v-h;y>0&&this.recordDroppedEvent("before_send","span",y)}let g=p.transaction_info;if(i&&g&&p.transaction!==e.transaction){let v="custom";p.transaction_info={...g,source:v}}return this.sendEvent(p,r),p}).then(null,p=>{throw p instanceof vt.SentryError?p:(this.captureException(p,{data:{__sentry__:!0},originalException:p}),new vt.SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. -Reason: ${p}`))})}_process(e){this._numProcessing++,e.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,r=>{li.DEBUG_BUILD&&vt.logger.error("Error while sending event:",r)});li.DEBUG_BUILD&&vt.logger.error("Transport disabled")}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(r=>{let[n,o]=r.split(":");return{reason:n,category:o,quantity:e[r]}})}};function Gxe(t,e){let r=`${e} must return \`null\` or a valid event.`;if(vt.isThenable(t))return t.then(n=>{if(!vt.isPlainObject(n)&&n!==null)throw new vt.SentryError(r);return n},n=>{throw new vt.SentryError(`${e} rejected with ${n}`)});if(!vt.isPlainObject(t)&&t!==null)throw new vt.SentryError(r);return t}function Vxe(t,e,r){let{beforeSend:n,beforeSendTransaction:o}=t;if(I9(e)&&n)return n(e,r);if(k9(e)&&o){if(e.spans){let a=e.spans.length;e.sdkProcessingMetadata={...e.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return o(e,r)}return e}function I9(t){return t.type===void 0}function k9(t){return t.type==="transaction"}function Kxe(t){let e=Uxe.getClient();!e||!e.addEventProcessor||e.addEventProcessor(t)}iT.BaseClient=lA;iT.addEventProcessor=Kxe});var pA=_(fA=>{"use strict";Object.defineProperty(fA,"__esModule",{value:!0});var dA=se();function Yxe(t,e,r,n,o){let a={sent_at:new Date().toISOString()};r&&r.sdk&&(a.sdk={name:r.sdk.name,version:r.sdk.version}),n&&o&&(a.dsn=dA.dsnToString(o)),e&&(a.trace=dA.dropUndefinedKeys(e));let i=Jxe(t);return dA.createEnvelope(a,[i])}function Jxe(t){return[{type:"check_in"},t]}fA.createCheckInEnvelope=Yxe});var ay=_(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});var Xxe="c",Zxe="g",Qxe="s",eCe="d",tCe=5e3,rCe=1e4,nCe=1e4;Es.COUNTER_METRIC_TYPE=Xxe;Es.DEFAULT_BROWSER_FLUSH_INTERVAL=tCe;Es.DEFAULT_FLUSH_INTERVAL=rCe;Es.DISTRIBUTION_METRIC_TYPE=eCe;Es.GAUGE_METRIC_TYPE=Zxe;Es.MAX_WEIGHT=nCe;Es.SET_METRIC_TYPE=Qxe});var mA=_(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});var sT=ay(),oCe=oy(),uT=class{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}},lT=class{constructor(e){this._last=e,this._min=e,this._max=e,this._sum=e,this._count=1}get weight(){return 5}add(e){this._last=e,ethis._max&&(this._max=e),this._sum+=e,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}},cT=class{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}},dT=class{constructor(e){this.first=e,this._value=new Set([e])}get weight(){return this._value.size}add(e){this._value.add(e)}toString(){return Array.from(this._value).map(e=>typeof e=="string"?oCe.simpleHash(e):e).join(":")}},aCe={[sT.COUNTER_METRIC_TYPE]:uT,[sT.GAUGE_METRIC_TYPE]:lT,[sT.DISTRIBUTION_METRIC_TYPE]:cT,[sT.SET_METRIC_TYPE]:dT};Tc.CounterMetric=uT;Tc.DistributionMetric=cT;Tc.GaugeMetric=lT;Tc.METRIC_MAP=aCe;Tc.SetMetric=dT});var O9=_(gA=>{"use strict";Object.defineProperty(gA,"__esModule",{value:!0});var P9=se(),iy=ay(),iCe=mA(),sCe=ey(),fT=oy(),hA=class{constructor(e){this._client=e,this._buckets=new Map,this._bucketsTotalWeight=0,this._interval=setInterval(()=>this._flush(),iy.DEFAULT_FLUSH_INTERVAL),this._interval.unref&&this._interval.unref(),this._flushShift=Math.floor(Math.random()*iy.DEFAULT_FLUSH_INTERVAL/1e3),this._forceFlush=!1}add(e,r,n,o="none",a={},i=P9.timestampInSeconds()){let s=Math.floor(i),u=fT.sanitizeMetricKey(r),l=fT.sanitizeTags(a),c=fT.sanitizeUnit(o),f=fT.getBucketKey(e,u,c,l),d=this._buckets.get(f),p=d&&e===iy.SET_METRIC_TYPE?d.metric.weight:0;d?(d.metric.add(n),d.timestamp=iy.MAX_WEIGHT&&this.flush()}flush(){this._forceFlush=!0,this._flush()}close(){this._forceFlush=!0,clearInterval(this._interval),this._flush()}_flush(){if(this._forceFlush){this._forceFlush=!1,this._bucketsTotalWeight=0,this._captureMetrics(this._buckets),this._buckets.clear();return}let e=Math.floor(P9.timestampInSeconds())-iy.DEFAULT_FLUSH_INTERVAL/1e3-this._flushShift,r=new Map;for(let[n,o]of this._buckets)o.timestamp<=e&&(r.set(n,o),this._bucketsTotalWeight-=o.metric.weight);for(let[n]of r)this._buckets.delete(n);this._captureMetrics(r)}_captureMetrics(e){if(e.size>0&&this._client.captureAggregateMetrics){let r=Array.from(e).map(([,n])=>n);this._client.captureAggregateMetrics(r)}}};gA.MetricsAggregator=hA});var D9=_(yA=>{"use strict";Object.defineProperty(yA,"__esModule",{value:!0});var Ts=se(),uCe=cA(),lCe=pA(),pT=Rr(),cCe=ea(),dCe=O9(),fCe=oA(),pCe=QN(),mCe=Jn(),hCe=op();sp();var R9=yc(),vA=class extends uCe.BaseClient{constructor(e){pCe.addTracingExtensions(),super(e),e._experiments&&e._experiments.metricsAggregator&&(this.metricsAggregator=new dCe.MetricsAggregator(this))}eventFromException(e,r){return Ts.resolvedSyncPromise(Ts.eventFromUnknownInput(cCe.getClient(),this._options.stackParser,e,r))}eventFromMessage(e,r="info",n){return Ts.resolvedSyncPromise(Ts.eventFromMessage(this._options.stackParser,e,r,n,this._options.attachStacktrace))}captureException(e,r,n){if(this._options.autoSessionTracking&&this._sessionFlusher&&n){let o=n.getRequestSession();o&&o.status==="ok"&&(o.status="errored")}return super.captureException(e,r,n)}captureEvent(e,r,n){if(this._options.autoSessionTracking&&this._sessionFlusher&&n&&(e.type||"exception")==="exception"&&e.exception&&e.exception.values&&e.exception.values.length>0){let i=n.getRequestSession();i&&i.status==="ok"&&(i.status="errored")}return super.captureEvent(e,r,n)}close(e){return this._sessionFlusher&&this._sessionFlusher.close(),super.close(e)}initSessionFlusher(){let{release:e,environment:r}=this._options;e?this._sessionFlusher=new fCe.SessionFlusher(this,{release:e,environment:r}):pT.DEBUG_BUILD&&Ts.logger.warn("Cannot initialise an instance of SessionFlusher if no release is provided!")}captureCheckIn(e,r,n){let o="checkInId"in e&&e.checkInId?e.checkInId:Ts.uuid4();if(!this._isEnabled())return pT.DEBUG_BUILD&&Ts.logger.warn("SDK not enabled, will not capture checkin."),o;let a=this.getOptions(),{release:i,environment:s,tunnel:u}=a,l={check_in_id:o,monitor_slug:e.monitorSlug,status:e.status,release:i,environment:s};"duration"in e&&(l.duration=e.duration),r&&(l.monitor_config={schedule:r.schedule,checkin_margin:r.checkinMargin,max_runtime:r.maxRuntime,timezone:r.timezone});let[c,f]=this._getTraceInfoFromScope(n);f&&(l.contexts={trace:f});let d=lCe.createCheckInEnvelope(l,c,this.getSdkMetadata(),u,this.getDsn());return pT.DEBUG_BUILD&&Ts.logger.info("Sending checkin:",e.monitorSlug,e.status),this._sendEnvelope(d),o}_captureRequestSession(){this._sessionFlusher?this._sessionFlusher.incrementSessionStatusCount():pT.DEBUG_BUILD&&Ts.logger.warn("Discarded request mode session because autoSessionTracking option was disabled")}_prepareEvent(e,r,n,o){return this._options.platform&&(e.platform=e.platform||this._options.platform),this._options.runtime&&(e.contexts={...e.contexts,runtime:(e.contexts||{}).runtime||this._options.runtime}),this._options.serverName&&(e.server_name=e.server_name||this._options.serverName),super._prepareEvent(e,r,n,o)}_getTraceInfoFromScope(e){if(!e)return[void 0,void 0];let r=e.getSpan();if(r)return[hCe.getRootSpan(r)?R9.getDynamicSamplingContextFromSpan(r):void 0,mCe.spanToTraceContext(r)];let{traceId:n,spanId:o,parentSpanId:a,dsc:i}=e.getPropagationContext(),s={trace_id:n,span_id:o,parent_span_id:a};return i?[i,s]:[R9.getDynamicSamplingContextFromClient(n,this,e),s]}};yA.ServerRuntimeClient=vA});var M9=_(mT=>{"use strict";Object.defineProperty(mT,"__esModule",{value:!0});var N9=se(),gCe=Rr(),vCe=ea(),yCe=ai();function _Ce(t,e){e.debug===!0&&(gCe.DEBUG_BUILD?N9.logger.enable():N9.consoleSandbox(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),vCe.getCurrentScope().update(e.initialScope);let n=new t(e);A9(n),bCe(n)}function A9(t){let r=yCe.getCurrentHub().getStackTop();r.client=t,r.scope.setClient(t)}function bCe(t){t.init?t.init():t.setupIntegrations&&t.setupIntegrations()}mT.initAndBind=_Ce;mT.setCurrentClient=A9});var L9=_(hT=>{"use strict";Object.defineProperty(hT,"__esModule",{value:!0});var Zn=se(),F9=Rr(),j9=30;function SCe(t,e,r=Zn.makePromiseBuffer(t.bufferSize||j9)){let n={},o=i=>r.drain(i);function a(i){let s=[];if(Zn.forEachEnvelopeItem(i,(f,d)=>{let p=Zn.envelopeItemTypeToDataCategory(d);if(Zn.isRateLimited(n,p)){let m=q9(f,d);t.recordDroppedEvent("ratelimit_backoff",p,m)}else s.push(f)}),s.length===0)return Zn.resolvedSyncPromise();let u=Zn.createEnvelope(i[0],s),l=f=>{Zn.forEachEnvelopeItem(u,(d,p)=>{let m=q9(d,p);t.recordDroppedEvent(f,Zn.envelopeItemTypeToDataCategory(p),m)})},c=()=>e({body:Zn.serializeEnvelope(u,t.textEncoder)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&F9.DEBUG_BUILD&&Zn.logger.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),n=Zn.updateRateLimits(n,f),f),f=>{throw l("network_error"),f});return r.add(c).then(f=>f,f=>{if(f instanceof Zn.SentryError)return F9.DEBUG_BUILD&&Zn.logger.error("Skipped sending event because buffer is full."),l("queue_overflow"),Zn.resolvedSyncPromise();throw f})}return a.__sentry__baseTransport__=!0,{send:a,flush:o}}function q9(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}hT.DEFAULT_TRANSPORT_BUFFER_SIZE=j9;hT.createTransport=SCe});var U9=_(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});var bA=se(),ECe=Rr(),B9=100,SA=5e3,TCe=36e5;function _A(t,e){ECe.DEBUG_BUILD&&bA.logger.info(`[Offline]: ${t}`,e)}function wCe(t){return e=>{let r=t(e),n=e.createStore?e.createStore(e):void 0,o=SA,a;function i(c,f,d){return bA.envelopeContainsItemType(c,["replay_event","replay_recording","client_report"])?!1:e.shouldStore?e.shouldStore(c,f,d):!0}function s(c){n&&(a&&clearTimeout(a),a=setTimeout(async()=>{a=void 0;let f=await n.pop();f&&(_A("Attempting to send previously queued event"),l(f).catch(d=>{_A("Failed to retry sending",d)}))},c),typeof a!="number"&&a.unref&&a.unref())}function u(){a||(s(o),o=Math.min(o*2,TCe))}async function l(c){try{let f=await r.send(c),d=B9;if(f){if(f.headers&&f.headers["retry-after"])d=bA.parseRetryAfterHeader(f.headers["retry-after"]);else if((f.statusCode||0)>=400)return f}return s(d),o=SA,f}catch(f){if(n&&await i(c,f,o))return await n.insert(c),u(),_A("Error sending. Event queued",f),{};throw f}}return e.flushAtStartup&&u(),{send:l,flush:c=>r.flush(c)}}}sy.MIN_DELAY=B9;sy.START_DELAY=SA;sy.makeOfflineTransport=wCe});var z9=_(gT=>{"use strict";Object.defineProperty(gT,"__esModule",{value:!0});var EA=se(),xCe=nT();function TA(t,e){let r;return EA.forEachEnvelopeItem(t,(n,o)=>(e.includes(o)&&(r=Array.isArray(n)?n[1]:void 0),!!r)),r}function CCe(t,e){return r=>{let n=t(r);return{...n,send:async o=>{let a=TA(o,["event","transaction","profile","replay_event"]);return a&&(a.release=e),n.send(o)}}}}function ICe(t,e){return EA.createEnvelope(e?{...t[0],dsn:e}:t[0],t[1])}function kCe(t,e){return r=>{let n=t(r),o=new Map;function a(u,l){let c=l?`${u}:${l}`:u,f=o.get(c);if(!f){let d=EA.dsnFromString(u);if(!d)return;let p=xCe.getEnvelopeEndpointWithUrlEncodedAuth(d,r.tunnel);f=l?CCe(t,l)({...r,url:p}):t({...r,url:p}),o.set(c,f)}return[u,f]}async function i(u){function l(d){let p=d&&d.length?d:["event"];return TA(u,p)}let c=e({envelope:u,getEvent:l}).map(d=>typeof d=="string"?a(d,void 0):a(d.dsn,d.release)).filter(d=>!!d);return c.length===0&&c.push(["",n]),(await Promise.all(c.map(([d,p])=>p.send(ICe(u,d)))))[0]}async function s(u){let l=[await n.flush(u)];for(let[,c]of o)l.push(await c.flush(u));return l.every(c=>c)}return{send:i,flush:s}}}gT.eventFromEnvelope=TA;gT.makeMultiplexedTransport=kCe});var $9=_(wA=>{"use strict";Object.defineProperty(wA,"__esModule",{value:!0});var W9=se();function PCe(t,e){let r={sent_at:new Date().toISOString()};e&&(r.dsn=W9.dsnToString(e));let n=t.map(OCe);return W9.createEnvelope(r,n)}function OCe(t){return[{type:"span"},t]}wA.createSpanEnvelope=PCe});var G9=_(xA=>{"use strict";Object.defineProperty(xA,"__esModule",{value:!0});function RCe(t,e){let r=e&&ACe(e)?e.getClient():e,n=r&&r.getDsn(),o=r&&r.getOptions().tunnel;return NCe(t,n)||DCe(t,o)}function DCe(t,e){return e?H9(t)===H9(e):!1}function NCe(t,e){return e?t.includes(e.host):!1}function H9(t){return t[t.length-1]==="/"?t.slice(0,-1):t}function ACe(t){return t.getClient!==void 0}xA.isSentryRequestUrl=RCe});var V9=_(CA=>{"use strict";Object.defineProperty(CA,"__esModule",{value:!0});function MCe(t,...e){let r=new String(String.raw(t,...e));return r.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),r.__sentry_template_values__=e,r}CA.parameterize=MCe});var Y9=_(IA=>{"use strict";Object.defineProperty(IA,"__esModule",{value:!0});var K9=NE();function FCe(t,e,r=[e],n="npm"){let o=t._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${e}`,packages:r.map(a=>({name:`${n}:@sentry/${a}`,version:K9.SDK_VERSION})),version:K9.SDK_VERSION}),t._metadata=o}IA.applySdkMetadata=FCe});var Q9=_(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0});var kA=se(),X9=new Map,J9=new Set;function qCe(t){if(kA.GLOBAL_OBJ._sentryModuleMetadata)for(let e of Object.keys(kA.GLOBAL_OBJ._sentryModuleMetadata)){let r=kA.GLOBAL_OBJ._sentryModuleMetadata[e];if(J9.has(e))continue;J9.add(e);let n=t(e);for(let o of n.reverse())if(o.filename){X9.set(o.filename,r);break}}}function Z9(t,e){return qCe(t),X9.get(e)}function jCe(t,e){try{e.exception.values.forEach(r=>{if(r.stacktrace)for(let n of r.stacktrace.frames||[]){if(!n.filename)continue;let o=Z9(t,n.filename);o&&(n.module_metadata=o)}})}catch(r){}}function LCe(t){try{t.exception.values.forEach(e=>{if(e.stacktrace)for(let r of e.stacktrace.frames||[])delete r.module_metadata})}catch(e){}}uy.addMetadataToStackFrames=jCe;uy.getMetadataForUrl=Z9;uy.stripMetadataFromStackFrames=LCe});var oG=_(vT=>{"use strict";Object.defineProperty(vT,"__esModule",{value:!0});var BCe=se(),tG=Ss(),eG=Q9(),rG="ModuleMetadata",UCe=()=>({name:rG,setupOnce(){},setup(t){typeof t.on=="function"&&t.on("beforeEnvelope",e=>{BCe.forEachEnvelopeItem(e,(r,n)=>{if(n==="event"){let o=Array.isArray(r)?r[1]:void 0;o&&(eG.stripMetadataFromStackFrames(o),r[1]=o)}})})},processEvent(t,e,r){let n=r.getOptions().stackParser;return eG.addMetadataToStackFrames(n,t),t}}),nG=tG.defineIntegration(UCe),zCe=tG.convertIntegrationFnToClass(rG,nG);vT.ModuleMetadata=zCe;vT.moduleMetadataIntegration=nG});var lG=_(yT=>{"use strict";Object.defineProperty(yT,"__esModule",{value:!0});var aG=se(),iG=Ss(),WCe=Jn(),PA={include:{cookies:!0,data:!0,headers:!0,ip:!1,query_string:!0,url:!0,user:{id:!0,username:!0,email:!0}},transactionNamingScheme:"methodPath"},sG="RequestData",$Ce=(t={})=>{let e=aG.addRequestDataToEvent,r={...PA,...t,include:{method:!0,...PA.include,...t.include,user:t.include&&typeof t.include.user=="boolean"?t.include.user:{...PA.include.user,...(t.include||{}).user}}};return{name:sG,setupOnce(){},processEvent(n,o,a){let{transactionNamingScheme:i}=r,{sdkProcessingMetadata:s={}}=n,u=s.request;if(!u)return n;let l=s.requestDataOptionsFromExpressHandler||s.requestDataOptionsFromGCPWrapper||GCe(r),c=e(n,u,l);if(n.type==="transaction"||i==="handler")return c;let d=u._sentryTransaction;if(d){let p=WCe.spanToJSON(d).description||"",m=VCe(a)==="sentry.javascript.nextjs"?p.startsWith("/api"):i!=="path",[g]=aG.extractPathForTransaction(u,{path:!0,method:m,customRoute:p});c.transaction=g}return c}}},uG=iG.defineIntegration($Ce),HCe=iG.convertIntegrationFnToClass(sG,uG);function GCe(t){let{transactionNamingScheme:e,include:{ip:r,user:n,...o}}=t,a=[];for(let[s,u]of Object.entries(o))u&&a.push(s);let i;if(n===void 0)i=!0;else if(typeof n=="boolean")i=n;else{let s=[];for(let[u,l]of Object.entries(n))l&&s.push(u);i=s}return{include:{ip:r,user:i,request:a.length!==0?a:void 0,transaction:e}}}function VCe(t){try{return t.getOptions()._metadata.sdk.name}catch(e){return}}yT.RequestData=HCe;yT.requestDataIntegration=uG});var OA=_(bT=>{"use strict";Object.defineProperty(bT,"__esModule",{value:!0});var Zr=se(),wc=Rr(),cG=Ss(),KCe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],YCe=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],dG="InboundFilters",JCe=(t={})=>({name:dG,setupOnce(){},processEvent(e,r,n){let o=n.getOptions(),a=ZCe(t,o);return QCe(e,a)?null:e}}),fG=cG.defineIntegration(JCe),XCe=cG.convertIntegrationFnToClass(dG,fG);function ZCe(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:KCe],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:YCe],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function QCe(t,e){return e.ignoreInternal&&aIe(t)?(wc.DEBUG_BUILD&&Zr.logger.warn(`Event dropped due to being internal Sentry Error. +`,"\\n"],["\r","\\r"],[" ","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function Axe(t){for(let[e,r]of Nxe)if(t===e)return r;return t}function Mxe(t){return[...t].reduce((e,r)=>e+Axe(r),"")}function Fxe(t){let e={};for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let n=Dxe(r);e[n]=Mxe(String(t[r]))}return e}Wu.getBucketKey=Ixe;Wu.sanitizeMetricKey=Rxe;Wu.sanitizeTags=Fxe;Wu.sanitizeUnit=Oxe;Wu.serializeMetricBuckets=Pxe;Wu.simpleHash=kxe});var T9=_(uA=>{"use strict";Object.defineProperty(uA,"__esModule",{value:!0});var E9=se(),qxe=oy();function jxe(t,e,r,n){let o={sent_at:new Date().toISOString()};r&&r.sdk&&(o.sdk={name:r.sdk.name,version:r.sdk.version}),n&&e&&(o.dsn=E9.dsnToString(e));let a=Lxe(t);return E9.createEnvelope(o,[a])}function Lxe(t){let e=qxe.serializeMetricBuckets(t);return[{type:"statsd",length:e.length},e]}uA.createMetricEnvelope=jxe});var cA=_(iT=>{"use strict";Object.defineProperty(iT,"__esModule",{value:!0});var vt=se(),Bxe=nT(),li=Rr(),w9=tA(),Uxe=ea(),zxe=ai(),aT=Ss(),Wxe=T9(),x9=tf(),$xe=yc(),Hxe=CE(),C9="Not capturing exception because it's already been captured.",lA=class{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=vt.makeDsn(e.dsn):li.DEBUG_BUILD&&vt.logger.warn("No DSN provided, client will not send events."),this._dsn){let r=Bxe.getEnvelopeEndpointWithUrlEncodedAuth(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:r})}}captureException(e,r,n){if(vt.checkOrSetAlreadyCaught(e)){li.DEBUG_BUILD&&vt.logger.log(C9);return}let o=r&&r.event_id;return this._process(this.eventFromException(e,r).then(a=>this._captureEvent(a,r,n)).then(a=>{o=a})),o}captureMessage(e,r,n,o){let a=n&&n.event_id,i=vt.isParameterizedString(e)?e:String(e),s=vt.isPrimitive(e)?this.eventFromMessage(i,r,n):this.eventFromException(e,n);return this._process(s.then(u=>this._captureEvent(u,n,o)).then(u=>{a=u})),a}captureEvent(e,r,n){if(r&&r.originalException&&vt.checkOrSetAlreadyCaught(r.originalException)){li.DEBUG_BUILD&&vt.logger.log(C9);return}let o=r&&r.event_id,i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,r,i||n).then(s=>{o=s})),o}captureSession(e){typeof e.release!="string"?li.DEBUG_BUILD&&vt.logger.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),x9.updateSession(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let r=this._transport;return r?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then(n=>r.flush(e).then(o=>n&&o))):vt.resolvedSyncPromise(!0)}close(e){return this.flush(e).then(r=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),r))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(r){return li.DEBUG_BUILD&&vt.logger.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){let r=this._integrations[e.name];aT.setupIntegration(this,e,this._integrations),r||aT.afterSetupIntegrations(this,[e])}sendEvent(e,r={}){this.emit("beforeSendEvent",e,r);let n=w9.createEventEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);for(let a of r.attachments||[])n=vt.addItemToEnvelope(n,vt.createAttachmentEnvelopeItem(a,this._options.transportOptions&&this._options.transportOptions.textEncoder));let o=this._sendEnvelope(n);o&&o.then(a=>this.emit("afterSendEvent",e,a),null)}sendSession(e){let r=w9.createSessionEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(r)}recordDroppedEvent(e,r,n){if(this._options.sendClientReports){let o=typeof n=="number"?n:1,a=`${e}:${r}`;li.DEBUG_BUILD&&vt.logger.log(`Recording outcome: "${a}"${o>1?` (${o} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+o}}captureAggregateMetrics(e){li.DEBUG_BUILD&&vt.logger.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);let r=Wxe.createMetricEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(r)}on(e,r){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(r)}emit(e,...r){this._hooks[e]&&this._hooks[e].forEach(n=>n(...r))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=aT.setupIntegrations(this,e),aT.afterSetupIntegrations(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,r){let n=!1,o=!1,a=r.exception&&r.exception.values;if(a){o=!0;for(let u of a){let l=u.mechanism;if(l&&l.handled===!1){n=!0;break}}}let i=e.status==="ok";(i&&e.errors===0||i&&n)&&(x9.updateSession(e,{...n&&{status:"crashed"},errors:e.errors||Number(o||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new vt.SyncPromise(r=>{let n=0,o=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),r(!0)):(n+=o,e&&n>=e&&(clearInterval(a),r(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,r,n,o=zxe.getIsolationScope()){let a=this.getOptions(),i=Object.keys(this._integrations);return!r.integrations&&i.length>0&&(r.integrations=i),this.emit("preprocessEvent",e,r),Hxe.prepareEvent(a,e,r,n,this,o).then(s=>{if(s===null)return s;let u={...o.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(s.contexts&&s.contexts.trace)&&u){let{traceId:c,spanId:p,parentSpanId:d,dsc:f}=u;s.contexts={trace:{trace_id:c,span_id:p,parent_span_id:d},...s.contexts};let m=f||$xe.getDynamicSamplingContextFromClient(c,this,n);s.sdkProcessingMetadata={dynamicSamplingContext:m,...s.sdkProcessingMetadata}}return s})}_captureEvent(e,r={},n){return this._processEvent(e,r,n).then(o=>o.event_id,o=>{if(li.DEBUG_BUILD){let a=o;a.logLevel==="log"?vt.logger.log(a.message):vt.logger.warn(a)}})}_processEvent(e,r,n){let o=this.getOptions(),{sampleRate:a}=o,i=k9(e),s=I9(e),u=e.type||"error",l=`before send for type \`${u}\``;if(s&&typeof a=="number"&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",e),vt.rejectedSyncPromise(new vt.SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));let c=u==="replay_event"?"replay":u,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,r,n,d).then(f=>{if(f===null)throw this.recordDroppedEvent("event_processor",c,e),new vt.SentryError("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return f;let g=Vxe(o,f,r);return Gxe(g,l)}).then(f=>{if(f===null){if(this.recordDroppedEvent("before_send",c,e),i){let h=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",h)}throw new vt.SentryError(`${l} returned \`null\`, will not send event.`,"log")}let m=n&&n.getSession();if(!i&&m&&this._updateSessionFromEvent(m,f),i){let v=f.sdkProcessingMetadata&&f.sdkProcessingMetadata.spanCountBeforeProcessing||0,h=f.spans?f.spans.length:0,y=v-h;y>0&&this.recordDroppedEvent("before_send","span",y)}let g=f.transaction_info;if(i&&g&&f.transaction!==e.transaction){let v="custom";f.transaction_info={...g,source:v}}return this.sendEvent(f,r),f}).then(null,f=>{throw f instanceof vt.SentryError?f:(this.captureException(f,{data:{__sentry__:!0},originalException:f}),new vt.SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. +Reason: ${f}`))})}_process(e){this._numProcessing++,e.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,r=>{li.DEBUG_BUILD&&vt.logger.error("Error while sending event:",r)});li.DEBUG_BUILD&&vt.logger.error("Transport disabled")}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(r=>{let[n,o]=r.split(":");return{reason:n,category:o,quantity:e[r]}})}};function Gxe(t,e){let r=`${e} must return \`null\` or a valid event.`;if(vt.isThenable(t))return t.then(n=>{if(!vt.isPlainObject(n)&&n!==null)throw new vt.SentryError(r);return n},n=>{throw new vt.SentryError(`${e} rejected with ${n}`)});if(!vt.isPlainObject(t)&&t!==null)throw new vt.SentryError(r);return t}function Vxe(t,e,r){let{beforeSend:n,beforeSendTransaction:o}=t;if(I9(e)&&n)return n(e,r);if(k9(e)&&o){if(e.spans){let a=e.spans.length;e.sdkProcessingMetadata={...e.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return o(e,r)}return e}function I9(t){return t.type===void 0}function k9(t){return t.type==="transaction"}function Kxe(t){let e=Uxe.getClient();!e||!e.addEventProcessor||e.addEventProcessor(t)}iT.BaseClient=lA;iT.addEventProcessor=Kxe});var fA=_(pA=>{"use strict";Object.defineProperty(pA,"__esModule",{value:!0});var dA=se();function Yxe(t,e,r,n,o){let a={sent_at:new Date().toISOString()};r&&r.sdk&&(a.sdk={name:r.sdk.name,version:r.sdk.version}),n&&o&&(a.dsn=dA.dsnToString(o)),e&&(a.trace=dA.dropUndefinedKeys(e));let i=Jxe(t);return dA.createEnvelope(a,[i])}function Jxe(t){return[{type:"check_in"},t]}pA.createCheckInEnvelope=Yxe});var ay=_(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});var Xxe="c",Zxe="g",Qxe="s",eCe="d",tCe=5e3,rCe=1e4,nCe=1e4;Es.COUNTER_METRIC_TYPE=Xxe;Es.DEFAULT_BROWSER_FLUSH_INTERVAL=tCe;Es.DEFAULT_FLUSH_INTERVAL=rCe;Es.DISTRIBUTION_METRIC_TYPE=eCe;Es.GAUGE_METRIC_TYPE=Zxe;Es.MAX_WEIGHT=nCe;Es.SET_METRIC_TYPE=Qxe});var mA=_(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});var sT=ay(),oCe=oy(),uT=class{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}},lT=class{constructor(e){this._last=e,this._min=e,this._max=e,this._sum=e,this._count=1}get weight(){return 5}add(e){this._last=e,ethis._max&&(this._max=e),this._sum+=e,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}},cT=class{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}},dT=class{constructor(e){this.first=e,this._value=new Set([e])}get weight(){return this._value.size}add(e){this._value.add(e)}toString(){return Array.from(this._value).map(e=>typeof e=="string"?oCe.simpleHash(e):e).join(":")}},aCe={[sT.COUNTER_METRIC_TYPE]:uT,[sT.GAUGE_METRIC_TYPE]:lT,[sT.DISTRIBUTION_METRIC_TYPE]:cT,[sT.SET_METRIC_TYPE]:dT};Tc.CounterMetric=uT;Tc.DistributionMetric=cT;Tc.GaugeMetric=lT;Tc.METRIC_MAP=aCe;Tc.SetMetric=dT});var O9=_(gA=>{"use strict";Object.defineProperty(gA,"__esModule",{value:!0});var P9=se(),iy=ay(),iCe=mA(),sCe=ey(),pT=oy(),hA=class{constructor(e){this._client=e,this._buckets=new Map,this._bucketsTotalWeight=0,this._interval=setInterval(()=>this._flush(),iy.DEFAULT_FLUSH_INTERVAL),this._interval.unref&&this._interval.unref(),this._flushShift=Math.floor(Math.random()*iy.DEFAULT_FLUSH_INTERVAL/1e3),this._forceFlush=!1}add(e,r,n,o="none",a={},i=P9.timestampInSeconds()){let s=Math.floor(i),u=pT.sanitizeMetricKey(r),l=pT.sanitizeTags(a),c=pT.sanitizeUnit(o),p=pT.getBucketKey(e,u,c,l),d=this._buckets.get(p),f=d&&e===iy.SET_METRIC_TYPE?d.metric.weight:0;d?(d.metric.add(n),d.timestamp=iy.MAX_WEIGHT&&this.flush()}flush(){this._forceFlush=!0,this._flush()}close(){this._forceFlush=!0,clearInterval(this._interval),this._flush()}_flush(){if(this._forceFlush){this._forceFlush=!1,this._bucketsTotalWeight=0,this._captureMetrics(this._buckets),this._buckets.clear();return}let e=Math.floor(P9.timestampInSeconds())-iy.DEFAULT_FLUSH_INTERVAL/1e3-this._flushShift,r=new Map;for(let[n,o]of this._buckets)o.timestamp<=e&&(r.set(n,o),this._bucketsTotalWeight-=o.metric.weight);for(let[n]of r)this._buckets.delete(n);this._captureMetrics(r)}_captureMetrics(e){if(e.size>0&&this._client.captureAggregateMetrics){let r=Array.from(e).map(([,n])=>n);this._client.captureAggregateMetrics(r)}}};gA.MetricsAggregator=hA});var D9=_(yA=>{"use strict";Object.defineProperty(yA,"__esModule",{value:!0});var Ts=se(),uCe=cA(),lCe=fA(),fT=Rr(),cCe=ea(),dCe=O9(),pCe=oA(),fCe=QN(),mCe=Jn(),hCe=nf();sf();var R9=yc(),vA=class extends uCe.BaseClient{constructor(e){fCe.addTracingExtensions(),super(e),e._experiments&&e._experiments.metricsAggregator&&(this.metricsAggregator=new dCe.MetricsAggregator(this))}eventFromException(e,r){return Ts.resolvedSyncPromise(Ts.eventFromUnknownInput(cCe.getClient(),this._options.stackParser,e,r))}eventFromMessage(e,r="info",n){return Ts.resolvedSyncPromise(Ts.eventFromMessage(this._options.stackParser,e,r,n,this._options.attachStacktrace))}captureException(e,r,n){if(this._options.autoSessionTracking&&this._sessionFlusher&&n){let o=n.getRequestSession();o&&o.status==="ok"&&(o.status="errored")}return super.captureException(e,r,n)}captureEvent(e,r,n){if(this._options.autoSessionTracking&&this._sessionFlusher&&n&&(e.type||"exception")==="exception"&&e.exception&&e.exception.values&&e.exception.values.length>0){let i=n.getRequestSession();i&&i.status==="ok"&&(i.status="errored")}return super.captureEvent(e,r,n)}close(e){return this._sessionFlusher&&this._sessionFlusher.close(),super.close(e)}initSessionFlusher(){let{release:e,environment:r}=this._options;e?this._sessionFlusher=new pCe.SessionFlusher(this,{release:e,environment:r}):fT.DEBUG_BUILD&&Ts.logger.warn("Cannot initialise an instance of SessionFlusher if no release is provided!")}captureCheckIn(e,r,n){let o="checkInId"in e&&e.checkInId?e.checkInId:Ts.uuid4();if(!this._isEnabled())return fT.DEBUG_BUILD&&Ts.logger.warn("SDK not enabled, will not capture checkin."),o;let a=this.getOptions(),{release:i,environment:s,tunnel:u}=a,l={check_in_id:o,monitor_slug:e.monitorSlug,status:e.status,release:i,environment:s};"duration"in e&&(l.duration=e.duration),r&&(l.monitor_config={schedule:r.schedule,checkin_margin:r.checkinMargin,max_runtime:r.maxRuntime,timezone:r.timezone});let[c,p]=this._getTraceInfoFromScope(n);p&&(l.contexts={trace:p});let d=lCe.createCheckInEnvelope(l,c,this.getSdkMetadata(),u,this.getDsn());return fT.DEBUG_BUILD&&Ts.logger.info("Sending checkin:",e.monitorSlug,e.status),this._sendEnvelope(d),o}_captureRequestSession(){this._sessionFlusher?this._sessionFlusher.incrementSessionStatusCount():fT.DEBUG_BUILD&&Ts.logger.warn("Discarded request mode session because autoSessionTracking option was disabled")}_prepareEvent(e,r,n,o){return this._options.platform&&(e.platform=e.platform||this._options.platform),this._options.runtime&&(e.contexts={...e.contexts,runtime:(e.contexts||{}).runtime||this._options.runtime}),this._options.serverName&&(e.server_name=e.server_name||this._options.serverName),super._prepareEvent(e,r,n,o)}_getTraceInfoFromScope(e){if(!e)return[void 0,void 0];let r=e.getSpan();if(r)return[hCe.getRootSpan(r)?R9.getDynamicSamplingContextFromSpan(r):void 0,mCe.spanToTraceContext(r)];let{traceId:n,spanId:o,parentSpanId:a,dsc:i}=e.getPropagationContext(),s={trace_id:n,span_id:o,parent_span_id:a};return i?[i,s]:[R9.getDynamicSamplingContextFromClient(n,this,e),s]}};yA.ServerRuntimeClient=vA});var M9=_(mT=>{"use strict";Object.defineProperty(mT,"__esModule",{value:!0});var N9=se(),gCe=Rr(),vCe=ea(),yCe=ai();function _Ce(t,e){e.debug===!0&&(gCe.DEBUG_BUILD?N9.logger.enable():N9.consoleSandbox(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),vCe.getCurrentScope().update(e.initialScope);let n=new t(e);A9(n),bCe(n)}function A9(t){let r=yCe.getCurrentHub().getStackTop();r.client=t,r.scope.setClient(t)}function bCe(t){t.init?t.init():t.setupIntegrations&&t.setupIntegrations()}mT.initAndBind=_Ce;mT.setCurrentClient=A9});var L9=_(hT=>{"use strict";Object.defineProperty(hT,"__esModule",{value:!0});var Zn=se(),F9=Rr(),j9=30;function SCe(t,e,r=Zn.makePromiseBuffer(t.bufferSize||j9)){let n={},o=i=>r.drain(i);function a(i){let s=[];if(Zn.forEachEnvelopeItem(i,(p,d)=>{let f=Zn.envelopeItemTypeToDataCategory(d);if(Zn.isRateLimited(n,f)){let m=q9(p,d);t.recordDroppedEvent("ratelimit_backoff",f,m)}else s.push(p)}),s.length===0)return Zn.resolvedSyncPromise();let u=Zn.createEnvelope(i[0],s),l=p=>{Zn.forEachEnvelopeItem(u,(d,f)=>{let m=q9(d,f);t.recordDroppedEvent(p,Zn.envelopeItemTypeToDataCategory(f),m)})},c=()=>e({body:Zn.serializeEnvelope(u,t.textEncoder)}).then(p=>(p.statusCode!==void 0&&(p.statusCode<200||p.statusCode>=300)&&F9.DEBUG_BUILD&&Zn.logger.warn(`Sentry responded with status code ${p.statusCode} to sent event.`),n=Zn.updateRateLimits(n,p),p),p=>{throw l("network_error"),p});return r.add(c).then(p=>p,p=>{if(p instanceof Zn.SentryError)return F9.DEBUG_BUILD&&Zn.logger.error("Skipped sending event because buffer is full."),l("queue_overflow"),Zn.resolvedSyncPromise();throw p})}return a.__sentry__baseTransport__=!0,{send:a,flush:o}}function q9(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}hT.DEFAULT_TRANSPORT_BUFFER_SIZE=j9;hT.createTransport=SCe});var U9=_(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});var bA=se(),ECe=Rr(),B9=100,SA=5e3,TCe=36e5;function _A(t,e){ECe.DEBUG_BUILD&&bA.logger.info(`[Offline]: ${t}`,e)}function wCe(t){return e=>{let r=t(e),n=e.createStore?e.createStore(e):void 0,o=SA,a;function i(c,p,d){return bA.envelopeContainsItemType(c,["replay_event","replay_recording","client_report"])?!1:e.shouldStore?e.shouldStore(c,p,d):!0}function s(c){n&&(a&&clearTimeout(a),a=setTimeout(async()=>{a=void 0;let p=await n.pop();p&&(_A("Attempting to send previously queued event"),l(p).catch(d=>{_A("Failed to retry sending",d)}))},c),typeof a!="number"&&a.unref&&a.unref())}function u(){a||(s(o),o=Math.min(o*2,TCe))}async function l(c){try{let p=await r.send(c),d=B9;if(p){if(p.headers&&p.headers["retry-after"])d=bA.parseRetryAfterHeader(p.headers["retry-after"]);else if((p.statusCode||0)>=400)return p}return s(d),o=SA,p}catch(p){if(n&&await i(c,p,o))return await n.insert(c),u(),_A("Error sending. Event queued",p),{};throw p}}return e.flushAtStartup&&u(),{send:l,flush:c=>r.flush(c)}}}sy.MIN_DELAY=B9;sy.START_DELAY=SA;sy.makeOfflineTransport=wCe});var z9=_(gT=>{"use strict";Object.defineProperty(gT,"__esModule",{value:!0});var EA=se(),xCe=nT();function TA(t,e){let r;return EA.forEachEnvelopeItem(t,(n,o)=>(e.includes(o)&&(r=Array.isArray(n)?n[1]:void 0),!!r)),r}function CCe(t,e){return r=>{let n=t(r);return{...n,send:async o=>{let a=TA(o,["event","transaction","profile","replay_event"]);return a&&(a.release=e),n.send(o)}}}}function ICe(t,e){return EA.createEnvelope(e?{...t[0],dsn:e}:t[0],t[1])}function kCe(t,e){return r=>{let n=t(r),o=new Map;function a(u,l){let c=l?`${u}:${l}`:u,p=o.get(c);if(!p){let d=EA.dsnFromString(u);if(!d)return;let f=xCe.getEnvelopeEndpointWithUrlEncodedAuth(d,r.tunnel);p=l?CCe(t,l)({...r,url:f}):t({...r,url:f}),o.set(c,p)}return[u,p]}async function i(u){function l(d){let f=d&&d.length?d:["event"];return TA(u,f)}let c=e({envelope:u,getEvent:l}).map(d=>typeof d=="string"?a(d,void 0):a(d.dsn,d.release)).filter(d=>!!d);return c.length===0&&c.push(["",n]),(await Promise.all(c.map(([d,f])=>f.send(ICe(u,d)))))[0]}async function s(u){let l=[await n.flush(u)];for(let[,c]of o)l.push(await c.flush(u));return l.every(c=>c)}return{send:i,flush:s}}}gT.eventFromEnvelope=TA;gT.makeMultiplexedTransport=kCe});var $9=_(wA=>{"use strict";Object.defineProperty(wA,"__esModule",{value:!0});var W9=se();function PCe(t,e){let r={sent_at:new Date().toISOString()};e&&(r.dsn=W9.dsnToString(e));let n=t.map(OCe);return W9.createEnvelope(r,n)}function OCe(t){return[{type:"span"},t]}wA.createSpanEnvelope=PCe});var G9=_(xA=>{"use strict";Object.defineProperty(xA,"__esModule",{value:!0});function RCe(t,e){let r=e&&ACe(e)?e.getClient():e,n=r&&r.getDsn(),o=r&&r.getOptions().tunnel;return NCe(t,n)||DCe(t,o)}function DCe(t,e){return e?H9(t)===H9(e):!1}function NCe(t,e){return e?t.includes(e.host):!1}function H9(t){return t[t.length-1]==="/"?t.slice(0,-1):t}function ACe(t){return t.getClient!==void 0}xA.isSentryRequestUrl=RCe});var V9=_(CA=>{"use strict";Object.defineProperty(CA,"__esModule",{value:!0});function MCe(t,...e){let r=new String(String.raw(t,...e));return r.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),r.__sentry_template_values__=e,r}CA.parameterize=MCe});var Y9=_(IA=>{"use strict";Object.defineProperty(IA,"__esModule",{value:!0});var K9=NE();function FCe(t,e,r=[e],n="npm"){let o=t._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${e}`,packages:r.map(a=>({name:`${n}:@sentry/${a}`,version:K9.SDK_VERSION})),version:K9.SDK_VERSION}),t._metadata=o}IA.applySdkMetadata=FCe});var Q9=_(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0});var kA=se(),X9=new Map,J9=new Set;function qCe(t){if(kA.GLOBAL_OBJ._sentryModuleMetadata)for(let e of Object.keys(kA.GLOBAL_OBJ._sentryModuleMetadata)){let r=kA.GLOBAL_OBJ._sentryModuleMetadata[e];if(J9.has(e))continue;J9.add(e);let n=t(e);for(let o of n.reverse())if(o.filename){X9.set(o.filename,r);break}}}function Z9(t,e){return qCe(t),X9.get(e)}function jCe(t,e){try{e.exception.values.forEach(r=>{if(r.stacktrace)for(let n of r.stacktrace.frames||[]){if(!n.filename)continue;let o=Z9(t,n.filename);o&&(n.module_metadata=o)}})}catch(r){}}function LCe(t){try{t.exception.values.forEach(e=>{if(e.stacktrace)for(let r of e.stacktrace.frames||[])delete r.module_metadata})}catch(e){}}uy.addMetadataToStackFrames=jCe;uy.getMetadataForUrl=Z9;uy.stripMetadataFromStackFrames=LCe});var oG=_(vT=>{"use strict";Object.defineProperty(vT,"__esModule",{value:!0});var BCe=se(),tG=Ss(),eG=Q9(),rG="ModuleMetadata",UCe=()=>({name:rG,setupOnce(){},setup(t){typeof t.on=="function"&&t.on("beforeEnvelope",e=>{BCe.forEachEnvelopeItem(e,(r,n)=>{if(n==="event"){let o=Array.isArray(r)?r[1]:void 0;o&&(eG.stripMetadataFromStackFrames(o),r[1]=o)}})})},processEvent(t,e,r){let n=r.getOptions().stackParser;return eG.addMetadataToStackFrames(n,t),t}}),nG=tG.defineIntegration(UCe),zCe=tG.convertIntegrationFnToClass(rG,nG);vT.ModuleMetadata=zCe;vT.moduleMetadataIntegration=nG});var lG=_(yT=>{"use strict";Object.defineProperty(yT,"__esModule",{value:!0});var aG=se(),iG=Ss(),WCe=Jn(),PA={include:{cookies:!0,data:!0,headers:!0,ip:!1,query_string:!0,url:!0,user:{id:!0,username:!0,email:!0}},transactionNamingScheme:"methodPath"},sG="RequestData",$Ce=(t={})=>{let e=aG.addRequestDataToEvent,r={...PA,...t,include:{method:!0,...PA.include,...t.include,user:t.include&&typeof t.include.user=="boolean"?t.include.user:{...PA.include.user,...(t.include||{}).user}}};return{name:sG,setupOnce(){},processEvent(n,o,a){let{transactionNamingScheme:i}=r,{sdkProcessingMetadata:s={}}=n,u=s.request;if(!u)return n;let l=s.requestDataOptionsFromExpressHandler||s.requestDataOptionsFromGCPWrapper||GCe(r),c=e(n,u,l);if(n.type==="transaction"||i==="handler")return c;let d=u._sentryTransaction;if(d){let f=WCe.spanToJSON(d).description||"",m=VCe(a)==="sentry.javascript.nextjs"?f.startsWith("/api"):i!=="path",[g]=aG.extractPathForTransaction(u,{path:!0,method:m,customRoute:f});c.transaction=g}return c}}},uG=iG.defineIntegration($Ce),HCe=iG.convertIntegrationFnToClass(sG,uG);function GCe(t){let{transactionNamingScheme:e,include:{ip:r,user:n,...o}}=t,a=[];for(let[s,u]of Object.entries(o))u&&a.push(s);let i;if(n===void 0)i=!0;else if(typeof n=="boolean")i=n;else{let s=[];for(let[u,l]of Object.entries(n))l&&s.push(u);i=s}return{include:{ip:r,user:i,request:a.length!==0?a:void 0,transaction:e}}}function VCe(t){try{return t.getOptions()._metadata.sdk.name}catch(e){return}}yT.RequestData=HCe;yT.requestDataIntegration=uG});var OA=_(bT=>{"use strict";Object.defineProperty(bT,"__esModule",{value:!0});var Zr=se(),wc=Rr(),cG=Ss(),KCe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],YCe=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],dG="InboundFilters",JCe=(t={})=>({name:dG,setupOnce(){},processEvent(e,r,n){let o=n.getOptions(),a=ZCe(t,o);return QCe(e,a)?null:e}}),pG=cG.defineIntegration(JCe),XCe=cG.convertIntegrationFnToClass(dG,pG);function ZCe(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:KCe],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:YCe],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function QCe(t,e){return e.ignoreInternal&&aIe(t)?(wc.DEBUG_BUILD&&Zr.logger.warn(`Event dropped due to being internal Sentry Error. Event: ${Zr.getEventDescription(t)}`),!0):eIe(t,e.ignoreErrors)?(wc.DEBUG_BUILD&&Zr.logger.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${Zr.getEventDescription(t)}`),!0):tIe(t,e.ignoreTransactions)?(wc.DEBUG_BUILD&&Zr.logger.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${Zr.getEventDescription(t)}`),!0):rIe(t,e.denyUrls)?(wc.DEBUG_BUILD&&Zr.logger.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${Zr.getEventDescription(t)}. Url: ${_T(t)}`),!0):nIe(t,e.allowUrls)?!1:(wc.DEBUG_BUILD&&Zr.logger.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${Zr.getEventDescription(t)}. -Url: ${_T(t)}`),!0)}function eIe(t,e){return t.type||!e||!e.length?!1:oIe(t).some(r=>Zr.stringMatchesSomePattern(r,e))}function tIe(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;let r=t.transaction;return r?Zr.stringMatchesSomePattern(r,e):!1}function rIe(t,e){if(!e||!e.length)return!1;let r=_T(t);return r?Zr.stringMatchesSomePattern(r,e):!1}function nIe(t,e){if(!e||!e.length)return!0;let r=_T(t);return r?Zr.stringMatchesSomePattern(r,e):!0}function oIe(t){let e=[];t.message&&e.push(t.message);let r;try{r=t.exception.values[t.exception.values.length-1]}catch(n){}return r&&r.value&&(e.push(r.value),r.type&&e.push(`${r.type}: ${r.value}`)),wc.DEBUG_BUILD&&e.length===0&&Zr.logger.error(`Could not extract message for event ${Zr.getEventDescription(t)}`),e}function aIe(t){try{return t.exception.values[0].type==="SentryError"}catch(e){}return!1}function iIe(t=[]){for(let e=t.length-1;e>=0;e--){let r=t[e];if(r&&r.filename!==""&&r.filename!=="[native code]")return r.filename||null}return null}function _T(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(r){}return e?iIe(e):null}catch(e){return wc.DEBUG_BUILD&&Zr.logger.error(`Cannot extract url for event ${Zr.getEventDescription(t)}`),null}}bT.InboundFilters=XCe;bT.inboundFiltersIntegration=fG});var RA=_(ST=>{"use strict";Object.defineProperty(ST,"__esModule",{value:!0});var sIe=se(),uIe=ea(),hG=Ss(),pG,gG="FunctionToString",mG=new WeakMap,lIe=()=>({name:gG,setupOnce(){pG=Function.prototype.toString;try{Function.prototype.toString=function(...t){let e=sIe.getOriginalFunction(this),r=mG.has(uIe.getClient())&&e!==void 0?e:this;return pG.apply(r,t)}}catch(t){}},setup(t){mG.set(t,!0)}}),vG=hG.defineIntegration(lIe),cIe=hG.convertIntegrationFnToClass(gG,vG);ST.FunctionToString=cIe;ST.functionToStringIntegration=vG});var DA=_(ET=>{"use strict";Object.defineProperty(ET,"__esModule",{value:!0});var yG=se(),_G=Ss(),dIe="cause",fIe=5,bG="LinkedErrors",pIe=(t={})=>{let e=t.limit||fIe,r=t.key||dIe;return{name:bG,setupOnce(){},preprocessEvent(n,o,a){let i=a.getOptions();yG.applyAggregateErrorsToEvent(yG.exceptionFromError,i.stackParser,i.maxValueLength,r,e,n,o)}}},SG=_G.defineIntegration(pIe),mIe=_G.convertIntegrationFnToClass(bG,SG);ET.LinkedErrors=mIe;ET.linkedErrorsIntegration=SG});var EG=_(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});var hIe=RA(),gIe=OA(),vIe=DA();ly.FunctionToString=hIe.FunctionToString;ly.InboundFilters=gIe.InboundFilters;ly.LinkedErrors=vIe.LinkedErrors});var wG=_(AA=>{"use strict";Object.defineProperty(AA,"__esModule",{value:!0});var yIe=se(),TG=ay(),_Ie=mA(),bIe=ey(),TT=oy(),NA=class{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),TG.DEFAULT_BROWSER_FLUSH_INTERVAL)}add(e,r,n,o="none",a={},i=yIe.timestampInSeconds()){let s=Math.floor(i),u=TT.sanitizeMetricKey(r),l=TT.sanitizeTags(a),c=TT.sanitizeUnit(o),f=TT.getBucketKey(e,u,c,l),d=this._buckets.get(f),p=d&&e===TG.SET_METRIC_TYPE?d.metric.weight:0;d?(d.metric.add(n),d.timestampr);this._client.captureAggregateMetrics(e)}this._buckets.clear()}}close(){clearInterval(this._interval),this.flush()}};AA.BrowserMetricsAggregator=NA});var kG=_(wT=>{"use strict";Object.defineProperty(wT,"__esModule",{value:!0});var xG=Ss(),SIe=wG(),CG="MetricsAggregator",EIe=()=>({name:CG,setupOnce(){},setup(t){t.metricsAggregator=new SIe.BrowserMetricsAggregator(t)}}),IG=xG.defineIntegration(EIe),TIe=xG.convertIntegrationFnToClass(CG,IG);wT.MetricsAggregator=TIe;wT.metricsAggregatorIntegration=IG});var qG=_(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});var PG=se(),OG=Rr(),RG=ea(),wIe=Jn(),xT=ay(),DG=kG();function CT(t,e,r,n={}){let o=RG.getClient(),a=RG.getCurrentScope();if(o){if(!o.metricsAggregator){OG.DEBUG_BUILD&&PG.logger.warn("No metrics aggregator enabled. Please add the MetricsAggregator integration to use metrics APIs");return}let{unit:i,tags:s,timestamp:u}=n,{release:l,environment:c}=o.getOptions(),f=a.getTransaction(),d={};l&&(d.release=l),c&&(d.environment=c),f&&(d.transaction=wIe.spanToJSON(f).description||""),OG.DEBUG_BUILD&&PG.logger.log(`Adding value of ${r} to ${t} metric ${e}`),o.metricsAggregator.add(t,e,r,i,{...d,...s},u)}}function NG(t,e=1,r){CT(xT.COUNTER_METRIC_TYPE,t,e,r)}function AG(t,e,r){CT(xT.DISTRIBUTION_METRIC_TYPE,t,e,r)}function MG(t,e,r){CT(xT.SET_METRIC_TYPE,t,e,r)}function FG(t,e,r){CT(xT.GAUGE_METRIC_TYPE,t,e,r)}var xIe={increment:NG,distribution:AG,set:MG,gauge:FG,MetricsAggregator:DG.MetricsAggregator,metricsAggregatorIntegration:DG.metricsAggregatorIntegration};xc.distribution=AG;xc.gauge=FG;xc.increment=NG;xc.metrics=xIe;xc.set=MG});var Ze=_(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});var jG=QN(),LG=XN(),CIe=HE(),IIe=KE(),BG=FE(),IT=sp(),Cc=zE(),UG=yc(),kIe=_9(),PIe=ZN(),cy=ty(),zG=tA(),Gt=ea(),ci=ai(),MA=rp(),OIe=oA(),FA=kE(),WG=Wv(),$G=nT(),HG=cA(),RIe=D9(),GG=M9(),DIe=L9(),NIe=U9(),AIe=z9(),MIe=NE(),kT=Ss(),VG=IE(),FIe=CE(),qIe=pA(),jIe=$9(),LIe=jE(),BIe=G9(),UIe=WN(),zIe=V9(),PT=Jn(),WIe=op(),$Ie=Y9(),HIe=tp(),KG=oG(),YG=lG(),JG=OA(),XG=RA(),ZG=DA(),GIe=EG(),VIe=qG(),KIe=GIe;re.addTracingExtensions=jG.addTracingExtensions;re.startIdleTransaction=jG.startIdleTransaction;re.IdleTransaction=LG.IdleTransaction;re.TRACING_DEFAULTS=LG.TRACING_DEFAULTS;re.Span=CIe.Span;re.Transaction=IIe.Transaction;re.extractTraceparentData=BG.extractTraceparentData;re.getActiveTransaction=BG.getActiveTransaction;Object.defineProperty(re,"SpanStatus",{enumerable:!0,get:()=>IT.SpanStatus});re.getSpanStatusFromHttpCode=IT.getSpanStatusFromHttpCode;re.setHttpStatus=IT.setHttpStatus;re.spanStatusfromHttpCode=IT.spanStatusfromHttpCode;re.continueTrace=Cc.continueTrace;re.getActiveSpan=Cc.getActiveSpan;re.startActiveSpan=Cc.startActiveSpan;re.startInactiveSpan=Cc.startInactiveSpan;re.startSpan=Cc.startSpan;re.startSpanManual=Cc.startSpanManual;re.trace=Cc.trace;re.getDynamicSamplingContextFromClient=UG.getDynamicSamplingContextFromClient;re.getDynamicSamplingContextFromSpan=UG.getDynamicSamplingContextFromSpan;re.setMeasurement=kIe.setMeasurement;re.isValidSampleRate=PIe.isValidSampleRate;re.SEMANTIC_ATTRIBUTE_PROFILE_ID=cy.SEMANTIC_ATTRIBUTE_PROFILE_ID;re.SEMANTIC_ATTRIBUTE_SENTRY_OP=cy.SEMANTIC_ATTRIBUTE_SENTRY_OP;re.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=cy.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;re.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=cy.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE;re.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=cy.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;re.createEventEnvelope=zG.createEventEnvelope;re.createSessionEnvelope=zG.createSessionEnvelope;re.addBreadcrumb=Gt.addBreadcrumb;re.captureCheckIn=Gt.captureCheckIn;re.captureEvent=Gt.captureEvent;re.captureException=Gt.captureException;re.captureMessage=Gt.captureMessage;re.captureSession=Gt.captureSession;re.close=Gt.close;re.configureScope=Gt.configureScope;re.endSession=Gt.endSession;re.flush=Gt.flush;re.getClient=Gt.getClient;re.getCurrentScope=Gt.getCurrentScope;re.isInitialized=Gt.isInitialized;re.lastEventId=Gt.lastEventId;re.setContext=Gt.setContext;re.setExtra=Gt.setExtra;re.setExtras=Gt.setExtras;re.setTag=Gt.setTag;re.setTags=Gt.setTags;re.setUser=Gt.setUser;re.startSession=Gt.startSession;re.startTransaction=Gt.startTransaction;re.withActiveSpan=Gt.withActiveSpan;re.withIsolationScope=Gt.withIsolationScope;re.withMonitor=Gt.withMonitor;re.withScope=Gt.withScope;re.Hub=ci.Hub;re.ensureHubOnCarrier=ci.ensureHubOnCarrier;re.getCurrentHub=ci.getCurrentHub;re.getHubFromCarrier=ci.getHubFromCarrier;re.getIsolationScope=ci.getIsolationScope;re.getMainCarrier=ci.getMainCarrier;re.makeMain=ci.makeMain;re.runWithAsyncContext=ci.runWithAsyncContext;re.setAsyncContextStrategy=ci.setAsyncContextStrategy;re.setHubOnCarrier=ci.setHubOnCarrier;re.closeSession=MA.closeSession;re.makeSession=MA.makeSession;re.updateSession=MA.updateSession;re.SessionFlusher=OIe.SessionFlusher;re.Scope=FA.Scope;re.getGlobalScope=FA.getGlobalScope;re.setGlobalScope=FA.setGlobalScope;re.addGlobalEventProcessor=WG.addGlobalEventProcessor;re.notifyEventProcessors=WG.notifyEventProcessors;re.getEnvelopeEndpointWithUrlEncodedAuth=$G.getEnvelopeEndpointWithUrlEncodedAuth;re.getReportDialogEndpoint=$G.getReportDialogEndpoint;re.BaseClient=HG.BaseClient;re.addEventProcessor=HG.addEventProcessor;re.ServerRuntimeClient=RIe.ServerRuntimeClient;re.initAndBind=GG.initAndBind;re.setCurrentClient=GG.setCurrentClient;re.createTransport=DIe.createTransport;re.makeOfflineTransport=NIe.makeOfflineTransport;re.makeMultiplexedTransport=AIe.makeMultiplexedTransport;re.SDK_VERSION=MIe.SDK_VERSION;re.addIntegration=kT.addIntegration;re.convertIntegrationFnToClass=kT.convertIntegrationFnToClass;re.defineIntegration=kT.defineIntegration;re.getIntegrationsToSetup=kT.getIntegrationsToSetup;re.applyScopeDataToEvent=VG.applyScopeDataToEvent;re.mergeScopeData=VG.mergeScopeData;re.prepareEvent=FIe.prepareEvent;re.createCheckInEnvelope=qIe.createCheckInEnvelope;re.createSpanEnvelope=jIe.createSpanEnvelope;re.hasTracingEnabled=LIe.hasTracingEnabled;re.isSentryRequestUrl=BIe.isSentryRequestUrl;re.handleCallbackErrors=UIe.handleCallbackErrors;re.parameterize=zIe.parameterize;re.spanIsSampled=PT.spanIsSampled;re.spanToJSON=PT.spanToJSON;re.spanToTraceContext=PT.spanToTraceContext;re.spanToTraceHeader=PT.spanToTraceHeader;re.getRootSpan=WIe.getRootSpan;re.applySdkMetadata=$Ie.applySdkMetadata;re.DEFAULT_ENVIRONMENT=HIe.DEFAULT_ENVIRONMENT;re.ModuleMetadata=KG.ModuleMetadata;re.moduleMetadataIntegration=KG.moduleMetadataIntegration;re.RequestData=YG.RequestData;re.requestDataIntegration=YG.requestDataIntegration;re.InboundFilters=JG.InboundFilters;re.inboundFiltersIntegration=JG.inboundFiltersIntegration;re.FunctionToString=XG.FunctionToString;re.functionToStringIntegration=XG.functionToStringIntegration;re.LinkedErrors=ZG.LinkedErrors;re.linkedErrorsIntegration=ZG.linkedErrorsIntegration;re.metrics=VIe.metrics;re.Integrations=KIe});var Qn=_(qA=>{"use strict";Object.defineProperty(qA,"__esModule",{value:!0});var YIe=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;qA.DEBUG_BUILD=YIe});var $u=_(jA=>{"use strict";var{_optionalChain:QG}=se();Object.defineProperty(jA,"__esModule",{value:!0});function JIe(t){let e=QG([t,"call",n=>n(),"access",n=>n.getClient,"call",n=>n(),"optionalAccess",n=>n.getOptions,"call",n=>n()]);return(QG([e,"optionalAccess",n=>n.instrumenter])||"sentry")!=="sentry"}jA.shouldDisableAutoInstrumentation=JIe});var nV=_(dy=>{"use strict";var{_optionalChain:di}=se();Object.defineProperty(dy,"__esModule",{value:!0});var LA=Ze(),eo=se(),OT=Qn(),XIe=$u(),RT=class t{static __initStatic(){this.id="Express"}constructor(e={}){this.name=t.id,this._router=e.router||e.app,this._methods=(Array.isArray(e.methods)?e.methods:[]).concat("use")}setupOnce(e,r){if(!this._router){OT.DEBUG_BUILD&&eo.logger.error("ExpressIntegration is missing an Express instance");return}if(XIe.shouldDisableAutoInstrumentation(r)){OT.DEBUG_BUILD&&eo.logger.log("Express Integration is skipped because of instrumenter configuration.");return}eke(this._router,this._methods),tke(this._router)}};RT.__initStatic();function eV(t,e){let r=t.length;switch(r){case 2:return function(n,o){let a=o.__sentry_transaction;if(a){let i=a.startChild({description:t.name,op:`middleware.express.${e}`,origin:"auto.middleware.express"});o.once("finish",()=>{i.end()})}return t.call(this,n,o)};case 3:return function(n,o,a){let i=o.__sentry_transaction,s=di([i,"optionalAccess",u=>u.startChild,"call",u=>u({description:t.name,op:`middleware.express.${e}`,origin:"auto.middleware.express"})]);t.call(this,n,o,function(...u){di([s,"optionalAccess",l=>l.end,"call",l=>l()]),a.call(this,...u)})};case 4:return function(n,o,a,i){let s=a.__sentry_transaction,u=di([s,"optionalAccess",l=>l.startChild,"call",l=>l({description:t.name,op:`middleware.express.${e}`,origin:"auto.middleware.express"})]);t.call(this,n,o,a,function(...l){di([u,"optionalAccess",c=>c.end,"call",c=>c()]),i.call(this,...l)})};default:throw new Error(`Express middleware takes 2-4 arguments. Got: ${r}`)}}function ZIe(t,e){return t.map(r=>typeof r=="function"?eV(r,e):Array.isArray(r)?r.map(n=>typeof n=="function"?eV(n,e):n):r)}function QIe(t,e){let r=t[e];return t[e]=function(...n){return r.call(this,...ZIe(n,e))},t}function eke(t,e=[]){e.forEach(r=>QIe(t,r))}function tke(t){let e="settings"in t;e&&t._router===void 0&&t.lazyrouter&&t.lazyrouter();let r=e?t._router:t;if(!r){OT.DEBUG_BUILD&&eo.logger.debug("Cannot instrument router for URL Parameterization (did not find a valid router)."),OT.DEBUG_BUILD&&eo.logger.debug("Routing instrumentation is currently only supported in Express 4.");return}let n=Object.getPrototypeOf(r),o=n.process_params;n.process_params=function(i,s,u,l,c){u._reconstructedRoute||(u._reconstructedRoute="");let{layerRoutePath:f,isRegex:d,isArray:p,numExtraSegments:m}=rke(i);(f||d||p)&&(u._hasParameters=!0);let g;f?g=f:g=rV(u.originalUrl,u._reconstructedRoute,i.path)||"";let v=g.split("/").filter(b=>b.length>0&&(d||p||!b.includes("*"))).join("/");v&&v.length>0&&(u._reconstructedRoute+=`/${v}${d?"/":""}`);let h=eo.getNumberOfUrlSegments(eo.stripUrlQueryAndFragment(u.originalUrl||""))+m,y=eo.getNumberOfUrlSegments(u._reconstructedRoute);if(h===y){u._hasParameters||u._reconstructedRoute!==u.originalUrl&&(u._reconstructedRoute=u.originalUrl?eo.stripUrlQueryAndFragment(u.originalUrl):u.originalUrl);let b=l.__sentry_transaction,E=b&&LA.spanToJSON(b).data||{};if(b&&E[LA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]!=="custom"){let w=u._reconstructedRoute||"/",[S,C]=eo.extractPathForTransaction(u,{path:!0,method:!0,customRoute:w});b.updateName(S),b.setAttribute(LA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,C)}}return o.call(this,i,s,u,l,c)}}var tV=(t,e,r)=>{if(!t||!e||!r||Object.keys(r).length===0||!di([r,"access",l=>l[0],"optionalAccess",l=>l.offset]))return;let n=r.sort((l,c)=>l.offset-c.offset),a=new RegExp(e,`${e.flags}d`).exec(t);if(!a||!a.indices)return;let[,...i]=a.indices;if(i.length!==n.length)return;let s=t,u=0;return i.forEach((l,c)=>{if(l){let[f,d]=l,p=s.substring(0,f-u),m=`:${n[c].name}`,g=s.substring(d-u);s=p+m+g,u=u+(d-f-m.length)}}),s};function rke(t){let e=di([t,"access",i=>i.route,"optionalAccess",i=>i.path]),r=eo.isRegExp(e),n=Array.isArray(e);if(!e){let[i]=eo.GLOBAL_OBJ.process.versions.node.split(".").map(Number);i>=16&&(e=tV(t.path,t.regexp,t.keys))}if(!e)return{isRegex:r,isArray:n,numExtraSegments:0};let o=n?Math.max(nke(e)-eo.getNumberOfUrlSegments(t.path||""),0):0;return{layerRoutePath:oke(n,e),isRegex:r,isArray:n,numExtraSegments:o}}function nke(t){return t.reduce((e,r)=>e+eo.getNumberOfUrlSegments(r.toString()),0)}function oke(t,e){return t?e.map(r=>r.toString()).join(","):e&&e.toString()}function rV(t,e,r){let n=eo.stripUrlQueryAndFragment(t||""),o=di([n,"optionalAccess",u=>u.split,"call",u=>u("/"),"access",u=>u.filter,"call",u=>u(l=>!!l)]),a=0,i=di([e,"optionalAccess",u=>u.split,"call",u=>u("/"),"access",u=>u.filter,"call",u=>u(l=>!!l),"access",u=>u.length])||0;return di([r,"optionalAccess",u=>u.split,"call",u=>u("/"),"access",u=>u.filter,"call",u=>u(l=>di([o,"optionalAccess",c=>c[i+a]])===l?(a+=1,!0):!1),"access",u=>u.join,"call",u=>u("/")])}dy.Express=RT;dy.extractOriginalRoute=tV;dy.preventDuplicateSegments=rV});var oV=_(UA=>{"use strict";var{_optionalChain:mp}=se();Object.defineProperty(UA,"__esModule",{value:!0});var hp=se(),BA=Qn(),ake=$u(),DT=class t{static __initStatic(){this.id="Postgres"}constructor(e={}){this.name=t.id,this._usePgNative=!!e.usePgNative,this._module=e.module}loadDependency(){return this._module=this._module||hp.loadModule("pg")}setupOnce(e,r){if(ake.shouldDisableAutoInstrumentation(r)){BA.DEBUG_BUILD&&hp.logger.log("Postgres Integration is skipped because of instrumenter configuration.");return}let n=this.loadDependency();if(!n){BA.DEBUG_BUILD&&hp.logger.error("Postgres Integration was unable to require `pg` package.");return}let o=this._usePgNative?mp([n,"access",a=>a.native,"optionalAccess",a=>a.Client]):n.Client;if(!o){BA.DEBUG_BUILD&&hp.logger.error("Postgres Integration was unable to access 'pg-native' bindings.");return}hp.fill(o.prototype,"query",function(a){return function(i,s,u){let c=r().getScope().getSpan(),f={"db.system":"postgresql"};try{this.database&&(f["db.name"]=this.database),this.host&&(f["server.address"]=this.host),this.port&&(f["server.port"]=this.port),this.user&&(f["db.user"]=this.user)}catch(m){}let d=mp([c,"optionalAccess",m=>m.startChild,"call",m=>m({description:typeof i=="string"?i:i.text,op:"db",origin:"auto.db.postgres",data:f})]);if(typeof u=="function")return a.call(this,i,s,function(m,g){mp([d,"optionalAccess",v=>v.end,"call",v=>v()]),u(m,g)});if(typeof s=="function")return a.call(this,i,function(m,g){mp([d,"optionalAccess",v=>v.end,"call",v=>v()]),s(m,g)});let p=typeof s!="undefined"?a.call(this,i,s):a.call(this,i);return hp.isThenable(p)?p.then(m=>(mp([d,"optionalAccess",g=>g.end,"call",g=>g()]),m)):(mp([d,"optionalAccess",m=>m.end,"call",m=>m()]),p)}})}};DT.__initStatic();UA.Postgres=DT});var aV=_(WA=>{"use strict";var{_optionalChain:ike}=se();Object.defineProperty(WA,"__esModule",{value:!0});var fy=se(),zA=Qn(),ske=$u(),NT=class t{static __initStatic(){this.id="Mysql"}constructor(){this.name=t.id}loadDependency(){return this._module=this._module||fy.loadModule("mysql/lib/Connection.js")}setupOnce(e,r){if(ske.shouldDisableAutoInstrumentation(r)){zA.DEBUG_BUILD&&fy.logger.log("Mysql Integration is skipped because of instrumenter configuration.");return}let n=this.loadDependency();if(!n){zA.DEBUG_BUILD&&fy.logger.error("Mysql Integration was unable to require `mysql` package.");return}let o;try{n.prototype.connect=new Proxy(n.prototype.connect,{apply(s,u,l){return o||(o=u.config),s.apply(u,l)}})}catch(s){zA.DEBUG_BUILD&&fy.logger.error("Mysql Integration was unable to instrument `mysql` config.")}function a(){return o?{"server.address":o.host,"server.port":o.port,"db.user":o.user}:{}}function i(s){if(!s)return;let u=a();Object.keys(u).forEach(l=>{s.setAttribute(l,u[l])}),s.end()}fy.fill(n,"createQuery",function(s){return function(u,l,c){let d=r().getScope().getSpan(),p=ike([d,"optionalAccess",g=>g.startChild,"call",g=>g({description:typeof u=="string"?u:u.sql,op:"db",origin:"auto.db.mysql",data:{"db.system":"mysql"}})]);if(typeof c=="function")return s.call(this,u,l,function(g,v,h){i(p),c(g,v,h)});if(typeof l=="function")return s.call(this,u,function(g,v,h){i(p),l(g,v,h)});let m=s.call(this,u,l);return m.on("end",()=>{i(p)}),m}})}};NT.__initStatic();WA.Mysql=NT});var sV=_($A=>{"use strict";var{_optionalChain:Hu}=se();Object.defineProperty($A,"__esModule",{value:!0});var py=se(),iV=Qn(),uke=$u(),lke=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],cke={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]};function dke(t){return t&&typeof t=="object"&&t.once&&typeof t.once=="function"}var AT=class t{static __initStatic(){this.id="Mongo"}constructor(e={}){this.name=t.id,this._operations=Array.isArray(e.operations)?e.operations:lke,this._describeOperations="describeOperations"in e?e.describeOperations:!0,this._useMongoose=!!e.useMongoose}loadDependency(){let e=this._useMongoose?"mongoose":"mongodb";return this._module=this._module||py.loadModule(e)}setupOnce(e,r){if(uke.shouldDisableAutoInstrumentation(r)){iV.DEBUG_BUILD&&py.logger.log("Mongo Integration is skipped because of instrumenter configuration.");return}let n=this.loadDependency();if(!n){let o=this._useMongoose?"mongoose":"mongodb";iV.DEBUG_BUILD&&py.logger.error(`Mongo Integration was unable to require \`${o}\` package.`);return}this._instrumentOperations(n.Collection,this._operations,r)}_instrumentOperations(e,r,n){r.forEach(o=>this._patchOperation(e,o,n))}_patchOperation(e,r,n){if(!(r in e.prototype))return;let o=this._getSpanContextFromOperationArguments.bind(this);py.fill(e.prototype,r,function(a){return function(...i){let s=i[i.length-1],u=n(),l=u.getScope(),c=u.getClient(),f=l.getSpan(),d=Hu([c,"optionalAccess",m=>m.getOptions,"call",m=>m(),"access",m=>m.sendDefaultPii]);if(typeof s!="function"||r==="mapReduce"&&i.length===2){let m=Hu([f,"optionalAccess",v=>v.startChild,"call",v=>v(o(this,r,i,d))]),g=a.call(this,...i);if(py.isThenable(g))return g.then(v=>(Hu([m,"optionalAccess",h=>h.end,"call",h=>h()]),v));if(dke(g)){let v=g;try{v.once("close",()=>{Hu([m,"optionalAccess",h=>h.end,"call",h=>h()])})}catch(h){Hu([m,"optionalAccess",y=>y.end,"call",y=>y()])}return v}else return Hu([m,"optionalAccess",v=>v.end,"call",v=>v()]),g}let p=Hu([f,"optionalAccess",m=>m.startChild,"call",m=>m(o(this,r,i.slice(0,-1)))]);return a.call(this,...i.slice(0,-1),function(m,g){Hu([p,"optionalAccess",v=>v.end,"call",v=>v()]),s(m,g)})}})}_getSpanContextFromOperationArguments(e,r,n,o=!1){let a={"db.system":"mongodb","db.name":e.dbName,"db.operation":r,"db.mongodb.collection":e.collectionName},i={op:"db",origin:"auto.db.mongo",description:r,data:a},s=cke[r],u=Array.isArray(this._describeOperations)?this._describeOperations.includes(r):this._describeOperations;if(!s||!u||!o)return i;try{if(r==="mapReduce"){let[l,c]=n;a[s[0]]=typeof l=="string"?l:l.name||"",a[s[1]]=typeof c=="string"?c:c.name||""}else for(let l=0;l{"use strict";Object.defineProperty(GA,"__esModule",{value:!0});var HA=Ze(),uV=se(),fke=Qn(),pke=$u();function mke(t){return!!t&&!!t.$use}var MT=class t{static __initStatic(){this.id="Prisma"}constructor(e={}){if(this.name=t.id,mke(e.client)&&!e.client._sentryInstrumented){uV.addNonEnumerableProperty(e.client,"_sentryInstrumented",!0);let r={};try{let n=e.client._engineConfig;if(n){let{activeProvider:o,clientVersion:a}=n;o&&(r["db.system"]=o),a&&(r["db.prisma.version"]=a)}}catch(n){}e.client.$use((n,o)=>{if(pke.shouldDisableAutoInstrumentation(HA.getCurrentHub))return o(n);let a=n.action,i=n.model;return HA.startSpan({name:i?`${i} ${a}`:a,onlyIfParent:!0,op:"db.prisma",attributes:{[HA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.prisma"},data:{...r,"db.operation":a}},()=>o(n))})}else fke.DEBUG_BUILD&&uV.logger.warn("Unsupported Prisma client provided to PrismaIntegration. Provided client:",e.client)}setupOnce(){}};MT.__initStatic();GA.Prisma=MT});var dV=_(VA=>{"use strict";var{_optionalChain:gp}=se();Object.defineProperty(VA,"__esModule",{value:!0});var my=se(),cV=Qn(),hke=$u(),FT=class t{static __initStatic(){this.id="GraphQL"}constructor(){this.name=t.id}loadDependency(){return this._module=this._module||my.loadModule("graphql/execution/execute.js")}setupOnce(e,r){if(hke.shouldDisableAutoInstrumentation(r)){cV.DEBUG_BUILD&&my.logger.log("GraphQL Integration is skipped because of instrumenter configuration.");return}let n=this.loadDependency();if(!n){cV.DEBUG_BUILD&&my.logger.error("GraphQL Integration was unable to require graphql/execution package.");return}my.fill(n,"execute",function(o){return function(...a){let i=r().getScope(),s=i.getSpan(),u=gp([s,"optionalAccess",c=>c.startChild,"call",c=>c({description:"execute",op:"graphql.execute",origin:"auto.graphql.graphql"})]);gp([i,"optionalAccess",c=>c.setSpan,"call",c=>c(u)]);let l=o.call(this,...a);return my.isThenable(l)?l.then(c=>(gp([u,"optionalAccess",f=>f.end,"call",f=>f()]),gp([i,"optionalAccess",f=>f.setSpan,"call",f=>f(s)]),c)):(gp([u,"optionalAccess",c=>c.end,"call",c=>c()]),gp([i,"optionalAccess",c=>c.setSpan,"call",c=>c(s)]),l)}})}};FT.__initStatic();VA.GraphQL=FT});var pV=_(YA=>{"use strict";var{_optionalChain:KA}=se();Object.defineProperty(YA,"__esModule",{value:!0});var Tn=se(),qT=Qn(),gke=$u(),jT=class t{static __initStatic(){this.id="Apollo"}constructor(e={useNestjs:!1}){this.name=t.id,this._useNest=!!e.useNestjs}loadDependency(){return this._useNest?this._module=this._module||Tn.loadModule("@nestjs/graphql"):this._module=this._module||Tn.loadModule("apollo-server-core"),this._module}setupOnce(e,r){if(gke.shouldDisableAutoInstrumentation(r)){qT.DEBUG_BUILD&&Tn.logger.log("Apollo Integration is skipped because of instrumenter configuration.");return}if(this._useNest){let n=this.loadDependency();if(!n){qT.DEBUG_BUILD&&Tn.logger.error("Apollo-NestJS Integration was unable to require @nestjs/graphql package.");return}Tn.fill(n.GraphQLFactory.prototype,"mergeWithSchema",function(o){return function(...a){return Tn.fill(this.resolversExplorerService,"explore",function(i){return function(){let s=Tn.arrayify(i.call(this));return fV(s,r)}}),o.call(this,...a)}})}else{let n=this.loadDependency();if(!n){qT.DEBUG_BUILD&&Tn.logger.error("Apollo Integration was unable to require apollo-server-core package.");return}Tn.fill(n.ApolloServerBase.prototype,"constructSchema",function(o){return function(){if(!this.config.resolvers)return qT.DEBUG_BUILD&&(this.config.schema?(Tn.logger.warn("Apollo integration is not able to trace `ApolloServer` instances constructed via `schema` property.If you are using NestJS with Apollo, please use `Sentry.Integrations.Apollo({ useNestjs: true })` instead."),Tn.logger.warn()):this.config.modules&&Tn.logger.warn("Apollo integration is not able to trace `ApolloServer` instances constructed via `modules` property."),Tn.logger.error("Skipping tracing as no resolvers found on the `ApolloServer` instance.")),o.call(this);let a=Tn.arrayify(this.config.resolvers);return this.config.resolvers=fV(a,r),o.call(this)}})}}};jT.__initStatic();function fV(t,e){return t.map(r=>(Object.keys(r).forEach(n=>{Object.keys(r[n]).forEach(o=>{typeof r[n][o]=="function"&&vke(r,n,o,e)})}),r))}function vke(t,e,r,n){Tn.fill(t[e],r,function(o){return function(...a){let s=n().getScope().getSpan(),u=KA([s,"optionalAccess",c=>c.startChild,"call",c=>c({description:`${e}.${r}`,op:"graphql.resolve",origin:"auto.graphql.apollo"})]),l=o.call(this,...a);return Tn.isThenable(l)?l.then(c=>(KA([u,"optionalAccess",f=>f.end,"call",f=>f()]),c)):(KA([u,"optionalAccess",c=>c.end,"call",c=>c()]),l)}})}YA.Apollo=jT});var mV=_((JA,Gu)=>{"use strict";Object.defineProperty(JA,"__esModule",{value:!0});var Ic=se(),yke=[()=>{let t=Ic.dynamicRequire(Gu,"./apollo");return new t.Apollo},()=>{let t=Ic.dynamicRequire(Gu,"./apollo");return new t.Apollo({useNestjs:!0})},()=>{let t=Ic.dynamicRequire(Gu,"./graphql");return new t.GraphQL},()=>{let t=Ic.dynamicRequire(Gu,"./mongo");return new t.Mongo},()=>{let t=Ic.dynamicRequire(Gu,"./mongo");return new t.Mongo({mongoose:!0})},()=>{let t=Ic.dynamicRequire(Gu,"./mysql");return new t.Mysql},()=>{let t=Ic.dynamicRequire(Gu,"./postgres");return new t.Postgres}];JA.lazyLoadedNodePerformanceMonitoringIntegrations=yke});var Eo=_(XA=>{"use strict";Object.defineProperty(XA,"__esModule",{value:!0});var _ke=se(),bke=_ke.GLOBAL_OBJ;XA.WINDOW=bke});var eM=_(QA=>{"use strict";Object.defineProperty(QA,"__esModule",{value:!0});var hV=Ze(),gV=se(),vV=Qn(),ZA=Eo();function Ske(){ZA.WINDOW.document?ZA.WINDOW.document.addEventListener("visibilitychange",()=>{let t=hV.getActiveTransaction();if(ZA.WINDOW.document.hidden&&t){let e="cancelled",{op:r,status:n}=hV.spanToJSON(t);vV.DEBUG_BUILD&&gV.logger.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${r}`),n||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.end()}}):vV.DEBUG_BUILD&&gV.logger.warn("[Tracing] Could not set up background tab detection due to lack of global document")}QA.registerBackgroundTabDetection=Ske});var vp=_(tM=>{"use strict";Object.defineProperty(tM,"__esModule",{value:!0});var Eke=(t,e,r)=>{let n,o;return a=>{e.value>=0&&(a||r)&&(o=e.value-(n||0),(o||n===void 0)&&(n=e.value,e.delta=o,t(e)))}};tM.bindReporter=Eke});var yV=_(rM=>{"use strict";Object.defineProperty(rM,"__esModule",{value:!0});var Tke=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`;rM.generateUniqueID=Tke});var gy=_(nM=>{"use strict";Object.defineProperty(nM,"__esModule",{value:!0});var hy=Eo(),wke=()=>{let t=hy.WINDOW.performance.timing,e=hy.WINDOW.performance.navigation.type,r={entryType:"navigation",startTime:0,type:e==2?"back_forward":e===1?"reload":"navigate"};for(let n in t)n!=="navigationStart"&&n!=="toJSON"&&(r[n]=Math.max(t[n]-t.navigationStart,0));return r},xke=()=>hy.WINDOW.__WEB_VITALS_POLYFILL__?hy.WINDOW.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||wke()):hy.WINDOW.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];nM.getNavigationEntry=xke});var LT=_(oM=>{"use strict";Object.defineProperty(oM,"__esModule",{value:!0});var Cke=gy(),Ike=()=>{let t=Cke.getNavigationEntry();return t&&t.activationStart||0};oM.getActivationStart=Ike});var yp=_(aM=>{"use strict";Object.defineProperty(aM,"__esModule",{value:!0});var _V=Eo(),kke=yV(),Pke=LT(),Oke=gy(),Rke=(t,e)=>{let r=Oke.getNavigationEntry(),n="navigate";return r&&(_V.WINDOW.document&&_V.WINDOW.document.prerendering||Pke.getActivationStart()>0?n="prerender":n=r.type.replace(/_/g,"-")),{name:t,value:typeof e=="undefined"?-1:e,rating:"good",delta:0,entries:[],id:kke.generateUniqueID(),navigationType:n}};aM.initMetric=Rke});var kc=_(iM=>{"use strict";Object.defineProperty(iM,"__esModule",{value:!0});var Dke=(t,e,r)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){let n=new PerformanceObserver(o=>{e(o.getEntries())});return n.observe(Object.assign({type:t,buffered:!0},r||{})),n}}catch(n){}};iM.observe=Dke});var _p=_(sM=>{"use strict";Object.defineProperty(sM,"__esModule",{value:!0});var bV=Eo(),Nke=(t,e)=>{let r=n=>{(n.type==="pagehide"||bV.WINDOW.document.visibilityState==="hidden")&&(t(n),e&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};bV.WINDOW.document&&(addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0))};sM.onHidden=Nke});var SV=_(uM=>{"use strict";Object.defineProperty(uM,"__esModule",{value:!0});var Ake=vp(),Mke=yp(),Fke=kc(),qke=_p(),jke=(t,e={})=>{let r=Mke.initMetric("CLS",0),n,o=0,a=[],i=u=>{u.forEach(l=>{if(!l.hadRecentInput){let c=a[0],f=a[a.length-1];o&&a.length!==0&&l.startTime-f.startTime<1e3&&l.startTime-c.startTime<5e3?(o+=l.value,a.push(l)):(o=l.value,a=[l]),o>r.value&&(r.value=o,r.entries=a,n&&n())}})},s=Fke.observe("layout-shift",i);if(s){n=Ake.bindReporter(t,r,e.reportAllChanges);let u=()=>{i(s.takeRecords()),n(!0)};return qke.onHidden(u),u}};uM.onCLS=jke});var zT=_(lM=>{"use strict";Object.defineProperty(lM,"__esModule",{value:!0});var BT=Eo(),Lke=_p(),UT=-1,Bke=()=>{BT.WINDOW.document&&BT.WINDOW.document.visibilityState&&(UT=BT.WINDOW.document.visibilityState==="hidden"&&!BT.WINDOW.document.prerendering?0:1/0)},Uke=()=>{Lke.onHidden(({timeStamp:t})=>{UT=t},!0)},zke=()=>(UT<0&&(Bke(),Uke()),{get firstHiddenTime(){return UT}});lM.getVisibilityWatcher=zke});var EV=_(cM=>{"use strict";Object.defineProperty(cM,"__esModule",{value:!0});var Wke=vp(),$ke=zT(),Hke=yp(),Gke=kc(),Vke=_p(),Kke=t=>{let e=$ke.getVisibilityWatcher(),r=Hke.initMetric("FID"),n,o=s=>{s.startTime{s.forEach(o)},i=Gke.observe("first-input",a);n=Wke.bindReporter(t,r),i&&Vke.onHidden(()=>{a(i.takeRecords()),i.disconnect()},!0)};cM.onFID=Kke});var wV=_($T=>{"use strict";Object.defineProperty($T,"__esModule",{value:!0});var Yke=kc(),TV=0,dM=1/0,WT=0,Jke=t=>{t.forEach(e=>{e.interactionId&&(dM=Math.min(dM,e.interactionId),WT=Math.max(WT,e.interactionId),TV=WT?(WT-dM)/7+1:0)})},fM,Xke=()=>fM?TV:performance.interactionCount||0,Zke=()=>{"interactionCount"in performance||fM||(fM=Yke.observe("event",Jke,{type:"event",buffered:!0,durationThreshold:0}))};$T.getInteractionCount=Xke;$T.initInteractionCountPolyfill=Zke});var PV=_(mM=>{"use strict";Object.defineProperty(mM,"__esModule",{value:!0});var Qke=vp(),ePe=yp(),tPe=kc(),rPe=_p(),IV=wV(),kV=()=>IV.getInteractionCount(),xV=10,ws=[],pM={},CV=t=>{let e=ws[ws.length-1],r=pM[t.interactionId];if(r||ws.lengthe.latency){if(r)r.entries.push(t),r.latency=Math.max(r.latency,t.duration);else{let n={id:t.interactionId,latency:t.duration,entries:[t]};pM[n.id]=n,ws.push(n)}ws.sort((n,o)=>o.latency-n.latency),ws.splice(xV).forEach(n=>{delete pM[n.id]})}},nPe=()=>{let t=Math.min(ws.length-1,Math.floor(kV()/50));return ws[t]},oPe=(t,e)=>{e=e||{},IV.initInteractionCountPolyfill();let r=ePe.initMetric("INP"),n,o=i=>{i.forEach(u=>{u.interactionId&&CV(u),u.entryType==="first-input"&&!ws.some(c=>c.entries.some(f=>u.duration===f.duration&&u.startTime===f.startTime))&&CV(u)});let s=nPe();s&&s.latency!==r.value&&(r.value=s.latency,r.entries=s.entries,n())},a=tPe.observe("event",o,{durationThreshold:e.durationThreshold||40});n=Qke.bindReporter(t,r,e.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),rPe.onHidden(()=>{o(a.takeRecords()),r.value<0&&kV()>0&&(r.value=0,r.entries=[]),n(!0)}))};mM.onINP=oPe});var RV=_(hM=>{"use strict";Object.defineProperty(hM,"__esModule",{value:!0});var aPe=Eo(),iPe=vp(),sPe=LT(),uPe=zT(),lPe=yp(),cPe=kc(),dPe=_p(),OV={},fPe=t=>{let e=uPe.getVisibilityWatcher(),r=lPe.initMetric("LCP"),n,o=i=>{let s=i[i.length-1];if(s){let u=Math.max(s.startTime-sPe.getActivationStart(),0);u{OV[r.id]||(o(a.takeRecords()),a.disconnect(),OV[r.id]=!0,n(!0))};return["keydown","click"].forEach(s=>{aPe.WINDOW.document&&addEventListener(s,i,{once:!0,capture:!0})}),dPe.onHidden(i,!0),i}};hM.onLCP=fPe});var DV=_(yM=>{"use strict";Object.defineProperty(yM,"__esModule",{value:!0});var gM=Eo(),pPe=vp(),mPe=LT(),hPe=gy(),gPe=yp(),vM=t=>{gM.WINDOW.document&&(gM.WINDOW.document.prerendering?addEventListener("prerenderingchange",()=>vM(t),!0):gM.WINDOW.document.readyState!=="complete"?addEventListener("load",()=>vM(t),!0):setTimeout(t,0))},vPe=(t,e)=>{e=e||{};let r=gPe.initMetric("TTFB"),n=pPe.bindReporter(t,r,e.reportAllChanges);vM(()=>{let o=hPe.getNavigationEntry();if(o){if(r.value=Math.max(o.responseStart-mPe.getActivationStart(),0),r.value<0||r.value>performance.now())return;r.entries=[o],n(!0)}})};yM.onTTFB=vPe});var Sp=_(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});var NV=se(),yPe=Qn(),_Pe=SV(),bPe=EV(),SPe=PV(),EPe=RV(),TPe=kc(),wPe=DV(),vy={},HT={},AV,MV,FV,qV,jV;function xPe(t,e=!1){return yy("cls",t,RPe,AV,e)}function CPe(t,e=!1){return yy("lcp",t,NPe,FV,e)}function IPe(t){return yy("ttfb",t,APe,qV)}function kPe(t){return yy("fid",t,DPe,MV)}function PPe(t){return yy("inp",t,MPe,jV)}function OPe(t,e){return LV(t,e),HT[t]||(FPe(t),HT[t]=!0),BV(t,e)}function bp(t,e){let r=vy[t];if(!(!r||!r.length))for(let n of r)try{n(e)}catch(o){yPe.DEBUG_BUILD&&NV.logger.error(`Error while triggering instrumentation handler. +Url: ${_T(t)}`),!0)}function eIe(t,e){return t.type||!e||!e.length?!1:oIe(t).some(r=>Zr.stringMatchesSomePattern(r,e))}function tIe(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;let r=t.transaction;return r?Zr.stringMatchesSomePattern(r,e):!1}function rIe(t,e){if(!e||!e.length)return!1;let r=_T(t);return r?Zr.stringMatchesSomePattern(r,e):!1}function nIe(t,e){if(!e||!e.length)return!0;let r=_T(t);return r?Zr.stringMatchesSomePattern(r,e):!0}function oIe(t){let e=[];t.message&&e.push(t.message);let r;try{r=t.exception.values[t.exception.values.length-1]}catch(n){}return r&&r.value&&(e.push(r.value),r.type&&e.push(`${r.type}: ${r.value}`)),wc.DEBUG_BUILD&&e.length===0&&Zr.logger.error(`Could not extract message for event ${Zr.getEventDescription(t)}`),e}function aIe(t){try{return t.exception.values[0].type==="SentryError"}catch(e){}return!1}function iIe(t=[]){for(let e=t.length-1;e>=0;e--){let r=t[e];if(r&&r.filename!==""&&r.filename!=="[native code]")return r.filename||null}return null}function _T(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(r){}return e?iIe(e):null}catch(e){return wc.DEBUG_BUILD&&Zr.logger.error(`Cannot extract url for event ${Zr.getEventDescription(t)}`),null}}bT.InboundFilters=XCe;bT.inboundFiltersIntegration=pG});var RA=_(ST=>{"use strict";Object.defineProperty(ST,"__esModule",{value:!0});var sIe=se(),uIe=ea(),hG=Ss(),fG,gG="FunctionToString",mG=new WeakMap,lIe=()=>({name:gG,setupOnce(){fG=Function.prototype.toString;try{Function.prototype.toString=function(...t){let e=sIe.getOriginalFunction(this),r=mG.has(uIe.getClient())&&e!==void 0?e:this;return fG.apply(r,t)}}catch(t){}},setup(t){mG.set(t,!0)}}),vG=hG.defineIntegration(lIe),cIe=hG.convertIntegrationFnToClass(gG,vG);ST.FunctionToString=cIe;ST.functionToStringIntegration=vG});var DA=_(ET=>{"use strict";Object.defineProperty(ET,"__esModule",{value:!0});var yG=se(),_G=Ss(),dIe="cause",pIe=5,bG="LinkedErrors",fIe=(t={})=>{let e=t.limit||pIe,r=t.key||dIe;return{name:bG,setupOnce(){},preprocessEvent(n,o,a){let i=a.getOptions();yG.applyAggregateErrorsToEvent(yG.exceptionFromError,i.stackParser,i.maxValueLength,r,e,n,o)}}},SG=_G.defineIntegration(fIe),mIe=_G.convertIntegrationFnToClass(bG,SG);ET.LinkedErrors=mIe;ET.linkedErrorsIntegration=SG});var EG=_(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});var hIe=RA(),gIe=OA(),vIe=DA();ly.FunctionToString=hIe.FunctionToString;ly.InboundFilters=gIe.InboundFilters;ly.LinkedErrors=vIe.LinkedErrors});var wG=_(AA=>{"use strict";Object.defineProperty(AA,"__esModule",{value:!0});var yIe=se(),TG=ay(),_Ie=mA(),bIe=ey(),TT=oy(),NA=class{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),TG.DEFAULT_BROWSER_FLUSH_INTERVAL)}add(e,r,n,o="none",a={},i=yIe.timestampInSeconds()){let s=Math.floor(i),u=TT.sanitizeMetricKey(r),l=TT.sanitizeTags(a),c=TT.sanitizeUnit(o),p=TT.getBucketKey(e,u,c,l),d=this._buckets.get(p),f=d&&e===TG.SET_METRIC_TYPE?d.metric.weight:0;d?(d.metric.add(n),d.timestampr);this._client.captureAggregateMetrics(e)}this._buckets.clear()}}close(){clearInterval(this._interval),this.flush()}};AA.BrowserMetricsAggregator=NA});var kG=_(wT=>{"use strict";Object.defineProperty(wT,"__esModule",{value:!0});var xG=Ss(),SIe=wG(),CG="MetricsAggregator",EIe=()=>({name:CG,setupOnce(){},setup(t){t.metricsAggregator=new SIe.BrowserMetricsAggregator(t)}}),IG=xG.defineIntegration(EIe),TIe=xG.convertIntegrationFnToClass(CG,IG);wT.MetricsAggregator=TIe;wT.metricsAggregatorIntegration=IG});var qG=_(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});var PG=se(),OG=Rr(),RG=ea(),wIe=Jn(),xT=ay(),DG=kG();function CT(t,e,r,n={}){let o=RG.getClient(),a=RG.getCurrentScope();if(o){if(!o.metricsAggregator){OG.DEBUG_BUILD&&PG.logger.warn("No metrics aggregator enabled. Please add the MetricsAggregator integration to use metrics APIs");return}let{unit:i,tags:s,timestamp:u}=n,{release:l,environment:c}=o.getOptions(),p=a.getTransaction(),d={};l&&(d.release=l),c&&(d.environment=c),p&&(d.transaction=wIe.spanToJSON(p).description||""),OG.DEBUG_BUILD&&PG.logger.log(`Adding value of ${r} to ${t} metric ${e}`),o.metricsAggregator.add(t,e,r,i,{...d,...s},u)}}function NG(t,e=1,r){CT(xT.COUNTER_METRIC_TYPE,t,e,r)}function AG(t,e,r){CT(xT.DISTRIBUTION_METRIC_TYPE,t,e,r)}function MG(t,e,r){CT(xT.SET_METRIC_TYPE,t,e,r)}function FG(t,e,r){CT(xT.GAUGE_METRIC_TYPE,t,e,r)}var xIe={increment:NG,distribution:AG,set:MG,gauge:FG,MetricsAggregator:DG.MetricsAggregator,metricsAggregatorIntegration:DG.metricsAggregatorIntegration};xc.distribution=AG;xc.gauge=FG;xc.increment=NG;xc.metrics=xIe;xc.set=MG});var Ze=_(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});var jG=QN(),LG=XN(),CIe=HE(),IIe=KE(),BG=FE(),IT=sf(),Cc=zE(),UG=yc(),kIe=_9(),PIe=ZN(),cy=ty(),zG=tA(),Gt=ea(),ci=ai(),MA=tf(),OIe=oA(),FA=kE(),WG=Wv(),$G=nT(),HG=cA(),RIe=D9(),GG=M9(),DIe=L9(),NIe=U9(),AIe=z9(),MIe=NE(),kT=Ss(),VG=IE(),FIe=CE(),qIe=fA(),jIe=$9(),LIe=jE(),BIe=G9(),UIe=WN(),zIe=V9(),PT=Jn(),WIe=nf(),$Ie=Y9(),HIe=ef(),KG=oG(),YG=lG(),JG=OA(),XG=RA(),ZG=DA(),GIe=EG(),VIe=qG(),KIe=GIe;re.addTracingExtensions=jG.addTracingExtensions;re.startIdleTransaction=jG.startIdleTransaction;re.IdleTransaction=LG.IdleTransaction;re.TRACING_DEFAULTS=LG.TRACING_DEFAULTS;re.Span=CIe.Span;re.Transaction=IIe.Transaction;re.extractTraceparentData=BG.extractTraceparentData;re.getActiveTransaction=BG.getActiveTransaction;Object.defineProperty(re,"SpanStatus",{enumerable:!0,get:()=>IT.SpanStatus});re.getSpanStatusFromHttpCode=IT.getSpanStatusFromHttpCode;re.setHttpStatus=IT.setHttpStatus;re.spanStatusfromHttpCode=IT.spanStatusfromHttpCode;re.continueTrace=Cc.continueTrace;re.getActiveSpan=Cc.getActiveSpan;re.startActiveSpan=Cc.startActiveSpan;re.startInactiveSpan=Cc.startInactiveSpan;re.startSpan=Cc.startSpan;re.startSpanManual=Cc.startSpanManual;re.trace=Cc.trace;re.getDynamicSamplingContextFromClient=UG.getDynamicSamplingContextFromClient;re.getDynamicSamplingContextFromSpan=UG.getDynamicSamplingContextFromSpan;re.setMeasurement=kIe.setMeasurement;re.isValidSampleRate=PIe.isValidSampleRate;re.SEMANTIC_ATTRIBUTE_PROFILE_ID=cy.SEMANTIC_ATTRIBUTE_PROFILE_ID;re.SEMANTIC_ATTRIBUTE_SENTRY_OP=cy.SEMANTIC_ATTRIBUTE_SENTRY_OP;re.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=cy.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;re.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=cy.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE;re.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=cy.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;re.createEventEnvelope=zG.createEventEnvelope;re.createSessionEnvelope=zG.createSessionEnvelope;re.addBreadcrumb=Gt.addBreadcrumb;re.captureCheckIn=Gt.captureCheckIn;re.captureEvent=Gt.captureEvent;re.captureException=Gt.captureException;re.captureMessage=Gt.captureMessage;re.captureSession=Gt.captureSession;re.close=Gt.close;re.configureScope=Gt.configureScope;re.endSession=Gt.endSession;re.flush=Gt.flush;re.getClient=Gt.getClient;re.getCurrentScope=Gt.getCurrentScope;re.isInitialized=Gt.isInitialized;re.lastEventId=Gt.lastEventId;re.setContext=Gt.setContext;re.setExtra=Gt.setExtra;re.setExtras=Gt.setExtras;re.setTag=Gt.setTag;re.setTags=Gt.setTags;re.setUser=Gt.setUser;re.startSession=Gt.startSession;re.startTransaction=Gt.startTransaction;re.withActiveSpan=Gt.withActiveSpan;re.withIsolationScope=Gt.withIsolationScope;re.withMonitor=Gt.withMonitor;re.withScope=Gt.withScope;re.Hub=ci.Hub;re.ensureHubOnCarrier=ci.ensureHubOnCarrier;re.getCurrentHub=ci.getCurrentHub;re.getHubFromCarrier=ci.getHubFromCarrier;re.getIsolationScope=ci.getIsolationScope;re.getMainCarrier=ci.getMainCarrier;re.makeMain=ci.makeMain;re.runWithAsyncContext=ci.runWithAsyncContext;re.setAsyncContextStrategy=ci.setAsyncContextStrategy;re.setHubOnCarrier=ci.setHubOnCarrier;re.closeSession=MA.closeSession;re.makeSession=MA.makeSession;re.updateSession=MA.updateSession;re.SessionFlusher=OIe.SessionFlusher;re.Scope=FA.Scope;re.getGlobalScope=FA.getGlobalScope;re.setGlobalScope=FA.setGlobalScope;re.addGlobalEventProcessor=WG.addGlobalEventProcessor;re.notifyEventProcessors=WG.notifyEventProcessors;re.getEnvelopeEndpointWithUrlEncodedAuth=$G.getEnvelopeEndpointWithUrlEncodedAuth;re.getReportDialogEndpoint=$G.getReportDialogEndpoint;re.BaseClient=HG.BaseClient;re.addEventProcessor=HG.addEventProcessor;re.ServerRuntimeClient=RIe.ServerRuntimeClient;re.initAndBind=GG.initAndBind;re.setCurrentClient=GG.setCurrentClient;re.createTransport=DIe.createTransport;re.makeOfflineTransport=NIe.makeOfflineTransport;re.makeMultiplexedTransport=AIe.makeMultiplexedTransport;re.SDK_VERSION=MIe.SDK_VERSION;re.addIntegration=kT.addIntegration;re.convertIntegrationFnToClass=kT.convertIntegrationFnToClass;re.defineIntegration=kT.defineIntegration;re.getIntegrationsToSetup=kT.getIntegrationsToSetup;re.applyScopeDataToEvent=VG.applyScopeDataToEvent;re.mergeScopeData=VG.mergeScopeData;re.prepareEvent=FIe.prepareEvent;re.createCheckInEnvelope=qIe.createCheckInEnvelope;re.createSpanEnvelope=jIe.createSpanEnvelope;re.hasTracingEnabled=LIe.hasTracingEnabled;re.isSentryRequestUrl=BIe.isSentryRequestUrl;re.handleCallbackErrors=UIe.handleCallbackErrors;re.parameterize=zIe.parameterize;re.spanIsSampled=PT.spanIsSampled;re.spanToJSON=PT.spanToJSON;re.spanToTraceContext=PT.spanToTraceContext;re.spanToTraceHeader=PT.spanToTraceHeader;re.getRootSpan=WIe.getRootSpan;re.applySdkMetadata=$Ie.applySdkMetadata;re.DEFAULT_ENVIRONMENT=HIe.DEFAULT_ENVIRONMENT;re.ModuleMetadata=KG.ModuleMetadata;re.moduleMetadataIntegration=KG.moduleMetadataIntegration;re.RequestData=YG.RequestData;re.requestDataIntegration=YG.requestDataIntegration;re.InboundFilters=JG.InboundFilters;re.inboundFiltersIntegration=JG.inboundFiltersIntegration;re.FunctionToString=XG.FunctionToString;re.functionToStringIntegration=XG.functionToStringIntegration;re.LinkedErrors=ZG.LinkedErrors;re.linkedErrorsIntegration=ZG.linkedErrorsIntegration;re.metrics=VIe.metrics;re.Integrations=KIe});var Qn=_(qA=>{"use strict";Object.defineProperty(qA,"__esModule",{value:!0});var YIe=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;qA.DEBUG_BUILD=YIe});var $u=_(jA=>{"use strict";var{_optionalChain:QG}=se();Object.defineProperty(jA,"__esModule",{value:!0});function JIe(t){let e=QG([t,"call",n=>n(),"access",n=>n.getClient,"call",n=>n(),"optionalAccess",n=>n.getOptions,"call",n=>n()]);return(QG([e,"optionalAccess",n=>n.instrumenter])||"sentry")!=="sentry"}jA.shouldDisableAutoInstrumentation=JIe});var nV=_(dy=>{"use strict";var{_optionalChain:di}=se();Object.defineProperty(dy,"__esModule",{value:!0});var LA=Ze(),eo=se(),OT=Qn(),XIe=$u(),RT=class t{static __initStatic(){this.id="Express"}constructor(e={}){this.name=t.id,this._router=e.router||e.app,this._methods=(Array.isArray(e.methods)?e.methods:[]).concat("use")}setupOnce(e,r){if(!this._router){OT.DEBUG_BUILD&&eo.logger.error("ExpressIntegration is missing an Express instance");return}if(XIe.shouldDisableAutoInstrumentation(r)){OT.DEBUG_BUILD&&eo.logger.log("Express Integration is skipped because of instrumenter configuration.");return}eke(this._router,this._methods),tke(this._router)}};RT.__initStatic();function eV(t,e){let r=t.length;switch(r){case 2:return function(n,o){let a=o.__sentry_transaction;if(a){let i=a.startChild({description:t.name,op:`middleware.express.${e}`,origin:"auto.middleware.express"});o.once("finish",()=>{i.end()})}return t.call(this,n,o)};case 3:return function(n,o,a){let i=o.__sentry_transaction,s=di([i,"optionalAccess",u=>u.startChild,"call",u=>u({description:t.name,op:`middleware.express.${e}`,origin:"auto.middleware.express"})]);t.call(this,n,o,function(...u){di([s,"optionalAccess",l=>l.end,"call",l=>l()]),a.call(this,...u)})};case 4:return function(n,o,a,i){let s=a.__sentry_transaction,u=di([s,"optionalAccess",l=>l.startChild,"call",l=>l({description:t.name,op:`middleware.express.${e}`,origin:"auto.middleware.express"})]);t.call(this,n,o,a,function(...l){di([u,"optionalAccess",c=>c.end,"call",c=>c()]),i.call(this,...l)})};default:throw new Error(`Express middleware takes 2-4 arguments. Got: ${r}`)}}function ZIe(t,e){return t.map(r=>typeof r=="function"?eV(r,e):Array.isArray(r)?r.map(n=>typeof n=="function"?eV(n,e):n):r)}function QIe(t,e){let r=t[e];return t[e]=function(...n){return r.call(this,...ZIe(n,e))},t}function eke(t,e=[]){e.forEach(r=>QIe(t,r))}function tke(t){let e="settings"in t;e&&t._router===void 0&&t.lazyrouter&&t.lazyrouter();let r=e?t._router:t;if(!r){OT.DEBUG_BUILD&&eo.logger.debug("Cannot instrument router for URL Parameterization (did not find a valid router)."),OT.DEBUG_BUILD&&eo.logger.debug("Routing instrumentation is currently only supported in Express 4.");return}let n=Object.getPrototypeOf(r),o=n.process_params;n.process_params=function(i,s,u,l,c){u._reconstructedRoute||(u._reconstructedRoute="");let{layerRoutePath:p,isRegex:d,isArray:f,numExtraSegments:m}=rke(i);(p||d||f)&&(u._hasParameters=!0);let g;p?g=p:g=rV(u.originalUrl,u._reconstructedRoute,i.path)||"";let v=g.split("/").filter(b=>b.length>0&&(d||f||!b.includes("*"))).join("/");v&&v.length>0&&(u._reconstructedRoute+=`/${v}${d?"/":""}`);let h=eo.getNumberOfUrlSegments(eo.stripUrlQueryAndFragment(u.originalUrl||""))+m,y=eo.getNumberOfUrlSegments(u._reconstructedRoute);if(h===y){u._hasParameters||u._reconstructedRoute!==u.originalUrl&&(u._reconstructedRoute=u.originalUrl?eo.stripUrlQueryAndFragment(u.originalUrl):u.originalUrl);let b=l.__sentry_transaction,E=b&&LA.spanToJSON(b).data||{};if(b&&E[LA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]!=="custom"){let w=u._reconstructedRoute||"/",[S,C]=eo.extractPathForTransaction(u,{path:!0,method:!0,customRoute:w});b.updateName(S),b.setAttribute(LA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,C)}}return o.call(this,i,s,u,l,c)}}var tV=(t,e,r)=>{if(!t||!e||!r||Object.keys(r).length===0||!di([r,"access",l=>l[0],"optionalAccess",l=>l.offset]))return;let n=r.sort((l,c)=>l.offset-c.offset),a=new RegExp(e,`${e.flags}d`).exec(t);if(!a||!a.indices)return;let[,...i]=a.indices;if(i.length!==n.length)return;let s=t,u=0;return i.forEach((l,c)=>{if(l){let[p,d]=l,f=s.substring(0,p-u),m=`:${n[c].name}`,g=s.substring(d-u);s=f+m+g,u=u+(d-p-m.length)}}),s};function rke(t){let e=di([t,"access",i=>i.route,"optionalAccess",i=>i.path]),r=eo.isRegExp(e),n=Array.isArray(e);if(!e){let[i]=eo.GLOBAL_OBJ.process.versions.node.split(".").map(Number);i>=16&&(e=tV(t.path,t.regexp,t.keys))}if(!e)return{isRegex:r,isArray:n,numExtraSegments:0};let o=n?Math.max(nke(e)-eo.getNumberOfUrlSegments(t.path||""),0):0;return{layerRoutePath:oke(n,e),isRegex:r,isArray:n,numExtraSegments:o}}function nke(t){return t.reduce((e,r)=>e+eo.getNumberOfUrlSegments(r.toString()),0)}function oke(t,e){return t?e.map(r=>r.toString()).join(","):e&&e.toString()}function rV(t,e,r){let n=eo.stripUrlQueryAndFragment(t||""),o=di([n,"optionalAccess",u=>u.split,"call",u=>u("/"),"access",u=>u.filter,"call",u=>u(l=>!!l)]),a=0,i=di([e,"optionalAccess",u=>u.split,"call",u=>u("/"),"access",u=>u.filter,"call",u=>u(l=>!!l),"access",u=>u.length])||0;return di([r,"optionalAccess",u=>u.split,"call",u=>u("/"),"access",u=>u.filter,"call",u=>u(l=>di([o,"optionalAccess",c=>c[i+a]])===l?(a+=1,!0):!1),"access",u=>u.join,"call",u=>u("/")])}dy.Express=RT;dy.extractOriginalRoute=tV;dy.preventDuplicateSegments=rV});var oV=_(UA=>{"use strict";var{_optionalChain:mf}=se();Object.defineProperty(UA,"__esModule",{value:!0});var hf=se(),BA=Qn(),ake=$u(),DT=class t{static __initStatic(){this.id="Postgres"}constructor(e={}){this.name=t.id,this._usePgNative=!!e.usePgNative,this._module=e.module}loadDependency(){return this._module=this._module||hf.loadModule("pg")}setupOnce(e,r){if(ake.shouldDisableAutoInstrumentation(r)){BA.DEBUG_BUILD&&hf.logger.log("Postgres Integration is skipped because of instrumenter configuration.");return}let n=this.loadDependency();if(!n){BA.DEBUG_BUILD&&hf.logger.error("Postgres Integration was unable to require `pg` package.");return}let o=this._usePgNative?mf([n,"access",a=>a.native,"optionalAccess",a=>a.Client]):n.Client;if(!o){BA.DEBUG_BUILD&&hf.logger.error("Postgres Integration was unable to access 'pg-native' bindings.");return}hf.fill(o.prototype,"query",function(a){return function(i,s,u){let c=r().getScope().getSpan(),p={"db.system":"postgresql"};try{this.database&&(p["db.name"]=this.database),this.host&&(p["server.address"]=this.host),this.port&&(p["server.port"]=this.port),this.user&&(p["db.user"]=this.user)}catch(m){}let d=mf([c,"optionalAccess",m=>m.startChild,"call",m=>m({description:typeof i=="string"?i:i.text,op:"db",origin:"auto.db.postgres",data:p})]);if(typeof u=="function")return a.call(this,i,s,function(m,g){mf([d,"optionalAccess",v=>v.end,"call",v=>v()]),u(m,g)});if(typeof s=="function")return a.call(this,i,function(m,g){mf([d,"optionalAccess",v=>v.end,"call",v=>v()]),s(m,g)});let f=typeof s!="undefined"?a.call(this,i,s):a.call(this,i);return hf.isThenable(f)?f.then(m=>(mf([d,"optionalAccess",g=>g.end,"call",g=>g()]),m)):(mf([d,"optionalAccess",m=>m.end,"call",m=>m()]),f)}})}};DT.__initStatic();UA.Postgres=DT});var aV=_(WA=>{"use strict";var{_optionalChain:ike}=se();Object.defineProperty(WA,"__esModule",{value:!0});var py=se(),zA=Qn(),ske=$u(),NT=class t{static __initStatic(){this.id="Mysql"}constructor(){this.name=t.id}loadDependency(){return this._module=this._module||py.loadModule("mysql/lib/Connection.js")}setupOnce(e,r){if(ske.shouldDisableAutoInstrumentation(r)){zA.DEBUG_BUILD&&py.logger.log("Mysql Integration is skipped because of instrumenter configuration.");return}let n=this.loadDependency();if(!n){zA.DEBUG_BUILD&&py.logger.error("Mysql Integration was unable to require `mysql` package.");return}let o;try{n.prototype.connect=new Proxy(n.prototype.connect,{apply(s,u,l){return o||(o=u.config),s.apply(u,l)}})}catch(s){zA.DEBUG_BUILD&&py.logger.error("Mysql Integration was unable to instrument `mysql` config.")}function a(){return o?{"server.address":o.host,"server.port":o.port,"db.user":o.user}:{}}function i(s){if(!s)return;let u=a();Object.keys(u).forEach(l=>{s.setAttribute(l,u[l])}),s.end()}py.fill(n,"createQuery",function(s){return function(u,l,c){let d=r().getScope().getSpan(),f=ike([d,"optionalAccess",g=>g.startChild,"call",g=>g({description:typeof u=="string"?u:u.sql,op:"db",origin:"auto.db.mysql",data:{"db.system":"mysql"}})]);if(typeof c=="function")return s.call(this,u,l,function(g,v,h){i(f),c(g,v,h)});if(typeof l=="function")return s.call(this,u,function(g,v,h){i(f),l(g,v,h)});let m=s.call(this,u,l);return m.on("end",()=>{i(f)}),m}})}};NT.__initStatic();WA.Mysql=NT});var sV=_($A=>{"use strict";var{_optionalChain:Hu}=se();Object.defineProperty($A,"__esModule",{value:!0});var fy=se(),iV=Qn(),uke=$u(),lke=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],cke={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]};function dke(t){return t&&typeof t=="object"&&t.once&&typeof t.once=="function"}var AT=class t{static __initStatic(){this.id="Mongo"}constructor(e={}){this.name=t.id,this._operations=Array.isArray(e.operations)?e.operations:lke,this._describeOperations="describeOperations"in e?e.describeOperations:!0,this._useMongoose=!!e.useMongoose}loadDependency(){let e=this._useMongoose?"mongoose":"mongodb";return this._module=this._module||fy.loadModule(e)}setupOnce(e,r){if(uke.shouldDisableAutoInstrumentation(r)){iV.DEBUG_BUILD&&fy.logger.log("Mongo Integration is skipped because of instrumenter configuration.");return}let n=this.loadDependency();if(!n){let o=this._useMongoose?"mongoose":"mongodb";iV.DEBUG_BUILD&&fy.logger.error(`Mongo Integration was unable to require \`${o}\` package.`);return}this._instrumentOperations(n.Collection,this._operations,r)}_instrumentOperations(e,r,n){r.forEach(o=>this._patchOperation(e,o,n))}_patchOperation(e,r,n){if(!(r in e.prototype))return;let o=this._getSpanContextFromOperationArguments.bind(this);fy.fill(e.prototype,r,function(a){return function(...i){let s=i[i.length-1],u=n(),l=u.getScope(),c=u.getClient(),p=l.getSpan(),d=Hu([c,"optionalAccess",m=>m.getOptions,"call",m=>m(),"access",m=>m.sendDefaultPii]);if(typeof s!="function"||r==="mapReduce"&&i.length===2){let m=Hu([p,"optionalAccess",v=>v.startChild,"call",v=>v(o(this,r,i,d))]),g=a.call(this,...i);if(fy.isThenable(g))return g.then(v=>(Hu([m,"optionalAccess",h=>h.end,"call",h=>h()]),v));if(dke(g)){let v=g;try{v.once("close",()=>{Hu([m,"optionalAccess",h=>h.end,"call",h=>h()])})}catch(h){Hu([m,"optionalAccess",y=>y.end,"call",y=>y()])}return v}else return Hu([m,"optionalAccess",v=>v.end,"call",v=>v()]),g}let f=Hu([p,"optionalAccess",m=>m.startChild,"call",m=>m(o(this,r,i.slice(0,-1)))]);return a.call(this,...i.slice(0,-1),function(m,g){Hu([f,"optionalAccess",v=>v.end,"call",v=>v()]),s(m,g)})}})}_getSpanContextFromOperationArguments(e,r,n,o=!1){let a={"db.system":"mongodb","db.name":e.dbName,"db.operation":r,"db.mongodb.collection":e.collectionName},i={op:"db",origin:"auto.db.mongo",description:r,data:a},s=cke[r],u=Array.isArray(this._describeOperations)?this._describeOperations.includes(r):this._describeOperations;if(!s||!u||!o)return i;try{if(r==="mapReduce"){let[l,c]=n;a[s[0]]=typeof l=="string"?l:l.name||"",a[s[1]]=typeof c=="string"?c:c.name||""}else for(let l=0;l{"use strict";Object.defineProperty(GA,"__esModule",{value:!0});var HA=Ze(),uV=se(),pke=Qn(),fke=$u();function mke(t){return!!t&&!!t.$use}var MT=class t{static __initStatic(){this.id="Prisma"}constructor(e={}){if(this.name=t.id,mke(e.client)&&!e.client._sentryInstrumented){uV.addNonEnumerableProperty(e.client,"_sentryInstrumented",!0);let r={};try{let n=e.client._engineConfig;if(n){let{activeProvider:o,clientVersion:a}=n;o&&(r["db.system"]=o),a&&(r["db.prisma.version"]=a)}}catch(n){}e.client.$use((n,o)=>{if(fke.shouldDisableAutoInstrumentation(HA.getCurrentHub))return o(n);let a=n.action,i=n.model;return HA.startSpan({name:i?`${i} ${a}`:a,onlyIfParent:!0,op:"db.prisma",attributes:{[HA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.prisma"},data:{...r,"db.operation":a}},()=>o(n))})}else pke.DEBUG_BUILD&&uV.logger.warn("Unsupported Prisma client provided to PrismaIntegration. Provided client:",e.client)}setupOnce(){}};MT.__initStatic();GA.Prisma=MT});var dV=_(VA=>{"use strict";var{_optionalChain:gf}=se();Object.defineProperty(VA,"__esModule",{value:!0});var my=se(),cV=Qn(),hke=$u(),FT=class t{static __initStatic(){this.id="GraphQL"}constructor(){this.name=t.id}loadDependency(){return this._module=this._module||my.loadModule("graphql/execution/execute.js")}setupOnce(e,r){if(hke.shouldDisableAutoInstrumentation(r)){cV.DEBUG_BUILD&&my.logger.log("GraphQL Integration is skipped because of instrumenter configuration.");return}let n=this.loadDependency();if(!n){cV.DEBUG_BUILD&&my.logger.error("GraphQL Integration was unable to require graphql/execution package.");return}my.fill(n,"execute",function(o){return function(...a){let i=r().getScope(),s=i.getSpan(),u=gf([s,"optionalAccess",c=>c.startChild,"call",c=>c({description:"execute",op:"graphql.execute",origin:"auto.graphql.graphql"})]);gf([i,"optionalAccess",c=>c.setSpan,"call",c=>c(u)]);let l=o.call(this,...a);return my.isThenable(l)?l.then(c=>(gf([u,"optionalAccess",p=>p.end,"call",p=>p()]),gf([i,"optionalAccess",p=>p.setSpan,"call",p=>p(s)]),c)):(gf([u,"optionalAccess",c=>c.end,"call",c=>c()]),gf([i,"optionalAccess",c=>c.setSpan,"call",c=>c(s)]),l)}})}};FT.__initStatic();VA.GraphQL=FT});var fV=_(YA=>{"use strict";var{_optionalChain:KA}=se();Object.defineProperty(YA,"__esModule",{value:!0});var Tn=se(),qT=Qn(),gke=$u(),jT=class t{static __initStatic(){this.id="Apollo"}constructor(e={useNestjs:!1}){this.name=t.id,this._useNest=!!e.useNestjs}loadDependency(){return this._useNest?this._module=this._module||Tn.loadModule("@nestjs/graphql"):this._module=this._module||Tn.loadModule("apollo-server-core"),this._module}setupOnce(e,r){if(gke.shouldDisableAutoInstrumentation(r)){qT.DEBUG_BUILD&&Tn.logger.log("Apollo Integration is skipped because of instrumenter configuration.");return}if(this._useNest){let n=this.loadDependency();if(!n){qT.DEBUG_BUILD&&Tn.logger.error("Apollo-NestJS Integration was unable to require @nestjs/graphql package.");return}Tn.fill(n.GraphQLFactory.prototype,"mergeWithSchema",function(o){return function(...a){return Tn.fill(this.resolversExplorerService,"explore",function(i){return function(){let s=Tn.arrayify(i.call(this));return pV(s,r)}}),o.call(this,...a)}})}else{let n=this.loadDependency();if(!n){qT.DEBUG_BUILD&&Tn.logger.error("Apollo Integration was unable to require apollo-server-core package.");return}Tn.fill(n.ApolloServerBase.prototype,"constructSchema",function(o){return function(){if(!this.config.resolvers)return qT.DEBUG_BUILD&&(this.config.schema?(Tn.logger.warn("Apollo integration is not able to trace `ApolloServer` instances constructed via `schema` property.If you are using NestJS with Apollo, please use `Sentry.Integrations.Apollo({ useNestjs: true })` instead."),Tn.logger.warn()):this.config.modules&&Tn.logger.warn("Apollo integration is not able to trace `ApolloServer` instances constructed via `modules` property."),Tn.logger.error("Skipping tracing as no resolvers found on the `ApolloServer` instance.")),o.call(this);let a=Tn.arrayify(this.config.resolvers);return this.config.resolvers=pV(a,r),o.call(this)}})}}};jT.__initStatic();function pV(t,e){return t.map(r=>(Object.keys(r).forEach(n=>{Object.keys(r[n]).forEach(o=>{typeof r[n][o]=="function"&&vke(r,n,o,e)})}),r))}function vke(t,e,r,n){Tn.fill(t[e],r,function(o){return function(...a){let s=n().getScope().getSpan(),u=KA([s,"optionalAccess",c=>c.startChild,"call",c=>c({description:`${e}.${r}`,op:"graphql.resolve",origin:"auto.graphql.apollo"})]),l=o.call(this,...a);return Tn.isThenable(l)?l.then(c=>(KA([u,"optionalAccess",p=>p.end,"call",p=>p()]),c)):(KA([u,"optionalAccess",c=>c.end,"call",c=>c()]),l)}})}YA.Apollo=jT});var mV=_((JA,Gu)=>{"use strict";Object.defineProperty(JA,"__esModule",{value:!0});var Ic=se(),yke=[()=>{let t=Ic.dynamicRequire(Gu,"./apollo");return new t.Apollo},()=>{let t=Ic.dynamicRequire(Gu,"./apollo");return new t.Apollo({useNestjs:!0})},()=>{let t=Ic.dynamicRequire(Gu,"./graphql");return new t.GraphQL},()=>{let t=Ic.dynamicRequire(Gu,"./mongo");return new t.Mongo},()=>{let t=Ic.dynamicRequire(Gu,"./mongo");return new t.Mongo({mongoose:!0})},()=>{let t=Ic.dynamicRequire(Gu,"./mysql");return new t.Mysql},()=>{let t=Ic.dynamicRequire(Gu,"./postgres");return new t.Postgres}];JA.lazyLoadedNodePerformanceMonitoringIntegrations=yke});var Eo=_(XA=>{"use strict";Object.defineProperty(XA,"__esModule",{value:!0});var _ke=se(),bke=_ke.GLOBAL_OBJ;XA.WINDOW=bke});var eM=_(QA=>{"use strict";Object.defineProperty(QA,"__esModule",{value:!0});var hV=Ze(),gV=se(),vV=Qn(),ZA=Eo();function Ske(){ZA.WINDOW.document?ZA.WINDOW.document.addEventListener("visibilitychange",()=>{let t=hV.getActiveTransaction();if(ZA.WINDOW.document.hidden&&t){let e="cancelled",{op:r,status:n}=hV.spanToJSON(t);vV.DEBUG_BUILD&&gV.logger.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${r}`),n||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.end()}}):vV.DEBUG_BUILD&&gV.logger.warn("[Tracing] Could not set up background tab detection due to lack of global document")}QA.registerBackgroundTabDetection=Ske});var vf=_(tM=>{"use strict";Object.defineProperty(tM,"__esModule",{value:!0});var Eke=(t,e,r)=>{let n,o;return a=>{e.value>=0&&(a||r)&&(o=e.value-(n||0),(o||n===void 0)&&(n=e.value,e.delta=o,t(e)))}};tM.bindReporter=Eke});var yV=_(rM=>{"use strict";Object.defineProperty(rM,"__esModule",{value:!0});var Tke=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`;rM.generateUniqueID=Tke});var gy=_(nM=>{"use strict";Object.defineProperty(nM,"__esModule",{value:!0});var hy=Eo(),wke=()=>{let t=hy.WINDOW.performance.timing,e=hy.WINDOW.performance.navigation.type,r={entryType:"navigation",startTime:0,type:e==2?"back_forward":e===1?"reload":"navigate"};for(let n in t)n!=="navigationStart"&&n!=="toJSON"&&(r[n]=Math.max(t[n]-t.navigationStart,0));return r},xke=()=>hy.WINDOW.__WEB_VITALS_POLYFILL__?hy.WINDOW.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||wke()):hy.WINDOW.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];nM.getNavigationEntry=xke});var LT=_(oM=>{"use strict";Object.defineProperty(oM,"__esModule",{value:!0});var Cke=gy(),Ike=()=>{let t=Cke.getNavigationEntry();return t&&t.activationStart||0};oM.getActivationStart=Ike});var yf=_(aM=>{"use strict";Object.defineProperty(aM,"__esModule",{value:!0});var _V=Eo(),kke=yV(),Pke=LT(),Oke=gy(),Rke=(t,e)=>{let r=Oke.getNavigationEntry(),n="navigate";return r&&(_V.WINDOW.document&&_V.WINDOW.document.prerendering||Pke.getActivationStart()>0?n="prerender":n=r.type.replace(/_/g,"-")),{name:t,value:typeof e=="undefined"?-1:e,rating:"good",delta:0,entries:[],id:kke.generateUniqueID(),navigationType:n}};aM.initMetric=Rke});var kc=_(iM=>{"use strict";Object.defineProperty(iM,"__esModule",{value:!0});var Dke=(t,e,r)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){let n=new PerformanceObserver(o=>{e(o.getEntries())});return n.observe(Object.assign({type:t,buffered:!0},r||{})),n}}catch(n){}};iM.observe=Dke});var _f=_(sM=>{"use strict";Object.defineProperty(sM,"__esModule",{value:!0});var bV=Eo(),Nke=(t,e)=>{let r=n=>{(n.type==="pagehide"||bV.WINDOW.document.visibilityState==="hidden")&&(t(n),e&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};bV.WINDOW.document&&(addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0))};sM.onHidden=Nke});var SV=_(uM=>{"use strict";Object.defineProperty(uM,"__esModule",{value:!0});var Ake=vf(),Mke=yf(),Fke=kc(),qke=_f(),jke=(t,e={})=>{let r=Mke.initMetric("CLS",0),n,o=0,a=[],i=u=>{u.forEach(l=>{if(!l.hadRecentInput){let c=a[0],p=a[a.length-1];o&&a.length!==0&&l.startTime-p.startTime<1e3&&l.startTime-c.startTime<5e3?(o+=l.value,a.push(l)):(o=l.value,a=[l]),o>r.value&&(r.value=o,r.entries=a,n&&n())}})},s=Fke.observe("layout-shift",i);if(s){n=Ake.bindReporter(t,r,e.reportAllChanges);let u=()=>{i(s.takeRecords()),n(!0)};return qke.onHidden(u),u}};uM.onCLS=jke});var zT=_(lM=>{"use strict";Object.defineProperty(lM,"__esModule",{value:!0});var BT=Eo(),Lke=_f(),UT=-1,Bke=()=>{BT.WINDOW.document&&BT.WINDOW.document.visibilityState&&(UT=BT.WINDOW.document.visibilityState==="hidden"&&!BT.WINDOW.document.prerendering?0:1/0)},Uke=()=>{Lke.onHidden(({timeStamp:t})=>{UT=t},!0)},zke=()=>(UT<0&&(Bke(),Uke()),{get firstHiddenTime(){return UT}});lM.getVisibilityWatcher=zke});var EV=_(cM=>{"use strict";Object.defineProperty(cM,"__esModule",{value:!0});var Wke=vf(),$ke=zT(),Hke=yf(),Gke=kc(),Vke=_f(),Kke=t=>{let e=$ke.getVisibilityWatcher(),r=Hke.initMetric("FID"),n,o=s=>{s.startTime{s.forEach(o)},i=Gke.observe("first-input",a);n=Wke.bindReporter(t,r),i&&Vke.onHidden(()=>{a(i.takeRecords()),i.disconnect()},!0)};cM.onFID=Kke});var wV=_($T=>{"use strict";Object.defineProperty($T,"__esModule",{value:!0});var Yke=kc(),TV=0,dM=1/0,WT=0,Jke=t=>{t.forEach(e=>{e.interactionId&&(dM=Math.min(dM,e.interactionId),WT=Math.max(WT,e.interactionId),TV=WT?(WT-dM)/7+1:0)})},pM,Xke=()=>pM?TV:performance.interactionCount||0,Zke=()=>{"interactionCount"in performance||pM||(pM=Yke.observe("event",Jke,{type:"event",buffered:!0,durationThreshold:0}))};$T.getInteractionCount=Xke;$T.initInteractionCountPolyfill=Zke});var PV=_(mM=>{"use strict";Object.defineProperty(mM,"__esModule",{value:!0});var Qke=vf(),ePe=yf(),tPe=kc(),rPe=_f(),IV=wV(),kV=()=>IV.getInteractionCount(),xV=10,ws=[],fM={},CV=t=>{let e=ws[ws.length-1],r=fM[t.interactionId];if(r||ws.lengthe.latency){if(r)r.entries.push(t),r.latency=Math.max(r.latency,t.duration);else{let n={id:t.interactionId,latency:t.duration,entries:[t]};fM[n.id]=n,ws.push(n)}ws.sort((n,o)=>o.latency-n.latency),ws.splice(xV).forEach(n=>{delete fM[n.id]})}},nPe=()=>{let t=Math.min(ws.length-1,Math.floor(kV()/50));return ws[t]},oPe=(t,e)=>{e=e||{},IV.initInteractionCountPolyfill();let r=ePe.initMetric("INP"),n,o=i=>{i.forEach(u=>{u.interactionId&&CV(u),u.entryType==="first-input"&&!ws.some(c=>c.entries.some(p=>u.duration===p.duration&&u.startTime===p.startTime))&&CV(u)});let s=nPe();s&&s.latency!==r.value&&(r.value=s.latency,r.entries=s.entries,n())},a=tPe.observe("event",o,{durationThreshold:e.durationThreshold||40});n=Qke.bindReporter(t,r,e.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),rPe.onHidden(()=>{o(a.takeRecords()),r.value<0&&kV()>0&&(r.value=0,r.entries=[]),n(!0)}))};mM.onINP=oPe});var RV=_(hM=>{"use strict";Object.defineProperty(hM,"__esModule",{value:!0});var aPe=Eo(),iPe=vf(),sPe=LT(),uPe=zT(),lPe=yf(),cPe=kc(),dPe=_f(),OV={},pPe=t=>{let e=uPe.getVisibilityWatcher(),r=lPe.initMetric("LCP"),n,o=i=>{let s=i[i.length-1];if(s){let u=Math.max(s.startTime-sPe.getActivationStart(),0);u{OV[r.id]||(o(a.takeRecords()),a.disconnect(),OV[r.id]=!0,n(!0))};return["keydown","click"].forEach(s=>{aPe.WINDOW.document&&addEventListener(s,i,{once:!0,capture:!0})}),dPe.onHidden(i,!0),i}};hM.onLCP=pPe});var DV=_(yM=>{"use strict";Object.defineProperty(yM,"__esModule",{value:!0});var gM=Eo(),fPe=vf(),mPe=LT(),hPe=gy(),gPe=yf(),vM=t=>{gM.WINDOW.document&&(gM.WINDOW.document.prerendering?addEventListener("prerenderingchange",()=>vM(t),!0):gM.WINDOW.document.readyState!=="complete"?addEventListener("load",()=>vM(t),!0):setTimeout(t,0))},vPe=(t,e)=>{e=e||{};let r=gPe.initMetric("TTFB"),n=fPe.bindReporter(t,r,e.reportAllChanges);vM(()=>{let o=hPe.getNavigationEntry();if(o){if(r.value=Math.max(o.responseStart-mPe.getActivationStart(),0),r.value<0||r.value>performance.now())return;r.entries=[o],n(!0)}})};yM.onTTFB=vPe});var Sf=_(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});var NV=se(),yPe=Qn(),_Pe=SV(),bPe=EV(),SPe=PV(),EPe=RV(),TPe=kc(),wPe=DV(),vy={},HT={},AV,MV,FV,qV,jV;function xPe(t,e=!1){return yy("cls",t,RPe,AV,e)}function CPe(t,e=!1){return yy("lcp",t,NPe,FV,e)}function IPe(t){return yy("ttfb",t,APe,qV)}function kPe(t){return yy("fid",t,DPe,MV)}function PPe(t){return yy("inp",t,MPe,jV)}function OPe(t,e){return LV(t,e),HT[t]||(FPe(t),HT[t]=!0),BV(t,e)}function bf(t,e){let r=vy[t];if(!(!r||!r.length))for(let n of r)try{n(e)}catch(o){yPe.DEBUG_BUILD&&NV.logger.error(`Error while triggering instrumentation handler. Type: ${t} Name: ${NV.getFunctionName(n)} -Error:`,o)}}function RPe(){return _Pe.onCLS(t=>{bp("cls",{metric:t}),AV=t},{reportAllChanges:!0})}function DPe(){return bPe.onFID(t=>{bp("fid",{metric:t}),MV=t})}function NPe(){return EPe.onLCP(t=>{bp("lcp",{metric:t}),FV=t})}function APe(){return wPe.onTTFB(t=>{bp("ttfb",{metric:t}),qV=t})}function MPe(){return SPe.onINP(t=>{bp("inp",{metric:t}),jV=t})}function yy(t,e,r,n,o=!1){LV(t,e);let a;return HT[t]||(a=r(),HT[t]=!0),n&&e({metric:n}),BV(t,e,o?a:void 0)}function FPe(t){let e={};t==="event"&&(e.durationThreshold=0),TPe.observe(t,r=>{bp(t,{entries:r})},e)}function LV(t,e){vy[t]=vy[t]||[],vy[t].push(e)}function BV(t,e,r){return()=>{r&&r();let n=vy[t];if(!n)return;let o=n.indexOf(e);o!==-1&&n.splice(o,1)}}Vu.addClsInstrumentationHandler=xPe;Vu.addFidInstrumentationHandler=kPe;Vu.addInpInstrumentationHandler=PPe;Vu.addLcpInstrumentationHandler=CPe;Vu.addPerformanceInstrumentationHandler=OPe;Vu.addTtfbInstrumentationHandler=IPe});var UV=_(GT=>{"use strict";Object.defineProperty(GT,"__esModule",{value:!0});function qPe(t){return typeof t=="number"&&isFinite(t)}function jPe(t,{startTimestamp:e,...r}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...r})}GT._startChild=jPe;GT.isMeasurementValue=qPe});var SM=_(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});var xs=Ze(),Lt=se(),To=Qn(),Pc=Sp(),Cs=Eo(),LPe=zT(),Is=UV(),BPe=gy(),UPe=2147483647;function Lr(t){return t/1e3}function bM(){return Cs.WINDOW&&Cs.WINDOW.addEventListener&&Cs.WINDOW.performance}var zV=0,pr={},fi,_y;function zPe(){let t=bM();if(t&&Lt.browserPerformanceTimeOrigin){t.mark&&Cs.WINDOW.performance.mark("sentry-tracing-init");let e=KPe(),r=GPe(),n=VPe(),o=YPe();return()=>{e(),r(),n(),o()}}return()=>{}}function WPe(){Pc.addPerformanceInstrumentationHandler("longtask",({entries:t})=>{for(let e of t){let r=xs.getActiveTransaction();if(!r)return;let n=Lr(Lt.browserPerformanceTimeOrigin+e.startTime),o=Lr(e.duration);r.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+o})}})}function $Pe(){Pc.addPerformanceInstrumentationHandler("event",({entries:t})=>{for(let e of t){let r=xs.getActiveTransaction();if(!r)return;if(e.name==="click"){let n=Lr(Lt.browserPerformanceTimeOrigin+e.startTime),o=Lr(e.duration),a={description:Lt.htmlTreeAsString(e.target),op:`ui.interaction.${e.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+o},i=Lt.getComponentName(e.target);i&&(a.attributes={"ui.component_name":i}),r.startChild(a)}}})}function HPe(t,e){if(bM()&&Lt.browserPerformanceTimeOrigin){let n=JPe(t,e);return()=>{n()}}return()=>{}}function GPe(){return Pc.addClsInstrumentationHandler(({metric:t})=>{let e=t.entries[t.entries.length-1];e&&(To.DEBUG_BUILD&&Lt.logger.log("[Measurements] Adding CLS"),pr.cls={value:t.value,unit:""},_y=e)},!0)}function VPe(){return Pc.addLcpInstrumentationHandler(({metric:t})=>{let e=t.entries[t.entries.length-1];e&&(To.DEBUG_BUILD&&Lt.logger.log("[Measurements] Adding LCP"),pr.lcp={value:t.value,unit:"millisecond"},fi=e)},!0)}function KPe(){return Pc.addFidInstrumentationHandler(({metric:t})=>{let e=t.entries[t.entries.length-1];if(!e)return;let r=Lr(Lt.browserPerformanceTimeOrigin),n=Lr(e.startTime);To.DEBUG_BUILD&&Lt.logger.log("[Measurements] Adding FID"),pr.fid={value:t.value,unit:"millisecond"},pr["mark.fid"]={value:r+n,unit:"second"}})}function YPe(){return Pc.addTtfbInstrumentationHandler(({metric:t})=>{t.entries[t.entries.length-1]&&(To.DEBUG_BUILD&&Lt.logger.log("[Measurements] Adding TTFB"),pr.ttfb={value:t.value,unit:"millisecond"})})}var WV={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function JPe(t,e){return Pc.addInpInstrumentationHandler(({metric:r})=>{if(r.value===void 0)return;let n=r.entries.find(b=>b.duration===r.value&&WV[b.name]!==void 0),o=xs.getClient();if(!n||!o)return;let a=WV[n.name],i=o.getOptions(),s=Lr(Lt.browserPerformanceTimeOrigin+n.startTime),u=Lr(r.value),l=n.interactionId!==void 0?t[n.interactionId]:void 0;if(l===void 0)return;let{routeName:c,parentContext:f,activeTransaction:d,user:p,replayId:m}=l,g=p!==void 0?p.email||p.id||p.ip_address:void 0,v=d!==void 0?d.getProfileId():void 0,h=new xs.Span({startTimestamp:s,endTimestamp:s+u,op:`ui.interaction.${a}`,name:Lt.htmlTreeAsString(n.target),attributes:{release:i.release,environment:i.environment,transaction:c,...g!==void 0&&g!==""?{user:g}:{},...v!==void 0?{profile_id:v}:{},...m!==void 0?{replay_id:m}:{}},exclusiveTime:r.value,measurements:{inp:{value:r.value,unit:"millisecond"}}}),y=n1e(f,i,e);if(y&&Math.random(){To.DEBUG_BUILD&&Lt.logger.error("Error while sending interaction:",w)});return}})}function XPe(t){let e=bM();if(!e||!Cs.WINDOW.performance.getEntries||!Lt.browserPerformanceTimeOrigin)return;To.DEBUG_BUILD&&Lt.logger.log("[Tracing] Adding & adjusting spans using Performance API");let r=Lr(Lt.browserPerformanceTimeOrigin),n=e.getEntries(),{op:o,start_timestamp:a}=xs.spanToJSON(t);if(n.slice(zV).forEach(i=>{let s=Lr(i.startTime),u=Lr(i.duration);if(!(t.op==="navigation"&&a&&r+s{if(!pr[s]||!a||r>=a)return;let u=pr[s].value,l=r+Lr(u),c=Math.abs((l-a)*1e3),f=c-u;To.DEBUG_BUILD&&Lt.logger.log(`[Measurements] Normalized ${s} from ${u} to ${c} (${f})`),pr[s].value=c});let i=pr["mark.fid"];i&&pr.fid&&(Is._startChild(t,{description:"first input delay",endTimestamp:i.value+Lr(pr.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:i.value}),delete pr["mark.fid"]),"fcp"in pr||delete pr.cls,Object.keys(pr).forEach(s=>{xs.setMeasurement(s,pr[s].value,pr[s].unit)}),t1e(t)}fi=void 0,_y=void 0,pr={}}function $V(t,e,r,n,o){let a=o+r,i=a+n;return Is._startChild(t,{description:e.name,endTimestamp:i,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function ZPe(t,e,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{VT(t,e,n,r)}),VT(t,e,"secureConnection",r,"TLS/SSL","connectEnd"),VT(t,e,"fetch",r,"cache","domainLookupStart"),VT(t,e,"domainLookup",r,"DNS"),QPe(t,e,r)}function VT(t,e,r,n,o,a){let i=a?e[a]:e[`${r}End`],s=e[`${r}Start`];!s||!i||Is._startChild(t,{op:"browser",origin:"auto.browser.browser.metrics",description:o||r,startTimestamp:n+Lr(s),endTimestamp:n+Lr(i)})}function QPe(t,e,r){e.responseEnd&&(Is._startChild(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:r+Lr(e.requestStart),endTimestamp:r+Lr(e.responseEnd)}),Is._startChild(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:r+Lr(e.responseStart),endTimestamp:r+Lr(e.responseEnd)}))}function HV(t,e,r,n,o,a){if(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")return;let i=Lt.parseUrl(r),s={};_M(s,e,"transferSize","http.response_transfer_size"),_M(s,e,"encodedBodySize","http.response_content_length"),_M(s,e,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in e&&(s["resource.render_blocking_status"]=e.renderBlockingStatus),i.protocol&&(s["url.scheme"]=i.protocol.split(":").pop()),i.host&&(s["server.address"]=i.host),s["url.same_origin"]=r.includes(Cs.WINDOW.location.origin);let u=a+n,l=u+o;Is._startChild(t,{description:r.replace(Cs.WINDOW.location.origin,""),endTimestamp:l,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:u,data:s})}function e1e(t){let e=Cs.WINDOW.navigator;if(!e)return;let r=e.connection;r&&(r.effectiveType&&t.setTag("effectiveConnectionType",r.effectiveType),r.type&&t.setTag("connectionType",r.type),Is.isMeasurementValue(r.rtt)&&(pr["connection.rtt"]={value:r.rtt,unit:"millisecond"})),Is.isMeasurementValue(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`),Is.isMeasurementValue(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}function t1e(t){fi&&(To.DEBUG_BUILD&&Lt.logger.log("[Measurements] Adding LCP Data"),fi.element&&t.setTag("lcp.element",Lt.htmlTreeAsString(fi.element)),fi.id&&t.setTag("lcp.id",fi.id),fi.url&&t.setTag("lcp.url",fi.url.trim().slice(0,200)),t.setTag("lcp.size",fi.size)),_y&&_y.sources&&(To.DEBUG_BUILD&&Lt.logger.log("[Measurements] Adding CLS Data"),_y.sources.forEach((e,r)=>t.setTag(`cls.source.${r+1}`,Lt.htmlTreeAsString(e.node))))}function _M(t,e,r,n){let o=e[r];o!=null&&o{"use strict";Object.defineProperty(KT,"__esModule",{value:!0});var pi=Ze(),Oc=se();function o1e(t,e,r,n,o="auto.http.browser"){if(!pi.hasTracingEnabled()||!t.fetchData)return;let a=e(t.fetchData.url);if(t.endTimestamp&&a){let p=t.fetchData.__span;if(!p)return;let m=n[p];m&&(i1e(m,t),delete n[p]);return}let i=pi.getCurrentScope(),s=pi.getClient(),{method:u,url:l}=t.fetchData,c=a1e(l),f=c?Oc.parseUrl(c).host:void 0,d=a?pi.startInactiveSpan({name:`${u} ${l}`,onlyIfParent:!0,attributes:{url:l,type:"fetch","http.method":u,"http.url":c,"server.address":f,[pi.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:o},op:"http.client"}):void 0;if(d&&(t.fetchData.__span=d.spanContext().spanId,n[d.spanContext().spanId]=d),r(t.fetchData.url)&&s){let p=t.args[0];t.args[1]=t.args[1]||{};let m=t.args[1];m.headers=GV(p,s,i,m,d)}return d}function GV(t,e,r,n,o){let a=o||r.getSpan(),i=pi.getIsolationScope(),{traceId:s,spanId:u,sampled:l,dsc:c}={...i.getPropagationContext(),...r.getPropagationContext()},f=a?pi.spanToTraceHeader(a):Oc.generateSentryTraceHeader(s,u,l),d=Oc.dynamicSamplingContextToSentryBaggageHeader(c||(a?pi.getDynamicSamplingContextFromSpan(a):pi.getDynamicSamplingContextFromClient(s,e,r))),p=n.headers||(typeof Request!="undefined"&&Oc.isInstanceOf(t,Request)?t.headers:void 0);if(p)if(typeof Headers!="undefined"&&Oc.isInstanceOf(p,Headers)){let m=new Headers(p);return m.append("sentry-trace",f),d&&m.append(Oc.BAGGAGE_HEADER_NAME,d),m}else if(Array.isArray(p)){let m=[...p,["sentry-trace",f]];return d&&m.push([Oc.BAGGAGE_HEADER_NAME,d]),m}else{let m="baggage"in p?p.baggage:void 0,g=[];return Array.isArray(m)?g.push(...m):m&&g.push(m),d&&g.push(d),{...p,"sentry-trace":f,baggage:g.length>0?g.join(","):void 0}}else return{"sentry-trace":f,baggage:d}}function a1e(t){try{return new URL(t).href}catch(e){return}}function i1e(t,e){if(e.response){pi.setHttpStatus(t,e.response.status);let r=e.response&&e.response.headers&&e.response.headers.get("content-length");if(r){let n=parseInt(r);n>0&&t.setAttribute("http.response_content_length",n)}}else e.error&&t.setStatus("internal_error");t.end()}KT.addTracingHeadersToFetchRequest=GV;KT.instrumentFetchRequest=o1e});var JT=_(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});var wa=Ze(),xa=se(),s1e=EM(),u1e=Sp(),l1e=Eo(),YT=["localhost",/^\/(?!\/)/],TM={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:YT,tracePropagationTargets:YT};function c1e(t){let{traceFetch:e,traceXHR:r,tracePropagationTargets:n,tracingOrigins:o,shouldCreateSpanForRequest:a,enableHTTPTimings:i}={traceFetch:TM.traceFetch,traceXHR:TM.traceXHR,...t},s=typeof a=="function"?a:c=>!0,u=c=>YV(c,n||o),l={};e&&xa.addFetchInstrumentationHandler(c=>{let f=s1e.instrumentFetchRequest(c,s,u,l);if(f){let d=XV(c.fetchData.url),p=d?xa.parseUrl(d).host:void 0;f.setAttributes({"http.url":d,"server.address":p})}i&&f&&VV(f)}),r&&xa.addXhrInstrumentationHandler(c=>{let f=JV(c,s,u,l);i&&f&&VV(f)})}function d1e(t){return t.entryType==="resource"&&"initiatorType"in t&&typeof t.nextHopProtocol=="string"&&(t.initiatorType==="fetch"||t.initiatorType==="xmlhttprequest")}function VV(t){let{url:e}=wa.spanToJSON(t).data||{};if(!e||typeof e!="string")return;let r=u1e.addPerformanceInstrumentationHandler("resource",({entries:n})=>{n.forEach(o=>{d1e(o)&&o.name.endsWith(e)&&(f1e(o).forEach(i=>t.setAttribute(...i)),setTimeout(r))})})}function KV(t){let e="unknown",r="unknown",n="";for(let o of t){if(o==="/"){[e,r]=t.split("/");break}if(!isNaN(Number(o))){e=n==="h"?"http":n,r=t.split(n)[1];break}n+=o}return n===t&&(e=n),{name:e,version:r}}function mi(t=0){return((xa.browserPerformanceTimeOrigin||performance.timeOrigin)+t)/1e3}function f1e(t){let{name:e,version:r}=KV(t.nextHopProtocol),n=[];return n.push(["network.protocol.version",r],["network.protocol.name",e]),xa.browserPerformanceTimeOrigin?[...n,["http.request.redirect_start",mi(t.redirectStart)],["http.request.fetch_start",mi(t.fetchStart)],["http.request.domain_lookup_start",mi(t.domainLookupStart)],["http.request.domain_lookup_end",mi(t.domainLookupEnd)],["http.request.connect_start",mi(t.connectStart)],["http.request.secure_connection_start",mi(t.secureConnectionStart)],["http.request.connection_end",mi(t.connectEnd)],["http.request.request_start",mi(t.requestStart)],["http.request.response_start",mi(t.responseStart)],["http.request.response_end",mi(t.responseEnd)]]:n}function YV(t,e){return xa.stringMatchesSomePattern(t,e||YT)}function JV(t,e,r,n){let o=t.xhr,a=o&&o[xa.SENTRY_XHR_DATA_KEY];if(!wa.hasTracingEnabled()||!o||o.__sentry_own_request__||!a)return;let i=e(a.url);if(t.endTimestamp&&i){let p=o.__sentry_xhr_span_id__;if(!p)return;let m=n[p];m&&a.status_code!==void 0&&(wa.setHttpStatus(m,a.status_code),m.end(),delete n[p]);return}let s=wa.getCurrentScope(),u=wa.getIsolationScope(),l=XV(a.url),c=l?xa.parseUrl(l).host:void 0,f=i?wa.startInactiveSpan({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,"http.url":l,url:a.url,"server.address":c,[wa.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser"},op:"http.client"}):void 0;f&&(o.__sentry_xhr_span_id__=f.spanContext().spanId,n[o.__sentry_xhr_span_id__]=f);let d=wa.getClient();if(o.setRequestHeader&&r(a.url)&&d){let{traceId:p,spanId:m,sampled:g,dsc:v}={...u.getPropagationContext(),...s.getPropagationContext()},h=f?wa.spanToTraceHeader(f):xa.generateSentryTraceHeader(p,m,g),y=xa.dynamicSamplingContextToSentryBaggageHeader(v||(f?wa.getDynamicSamplingContextFromSpan(f):wa.getDynamicSamplingContextFromClient(p,d,s)));p1e(o,h,y)}return f}function p1e(t,e,r){try{t.setRequestHeader("sentry-trace",e),r&&t.setRequestHeader(xa.BAGGAGE_HEADER_NAME,r)}catch(n){}}function XV(t){try{return new URL(t,l1e.WINDOW.location.origin).href}catch(e){return}}Ku.DEFAULT_TRACE_PROPAGATION_TARGETS=YT;Ku.defaultRequestInstrumentationOptions=TM;Ku.extractNetworkProtocol=KV;Ku.instrumentOutgoingRequests=c1e;Ku.shouldAttachHeaders=YV;Ku.xhrCallback=JV});var QV=_(wM=>{"use strict";Object.defineProperty(wM,"__esModule",{value:!0});var by=se(),ZV=Qn(),Sy=Eo();function m1e(t,e=!0,r=!0){if(!Sy.WINDOW||!Sy.WINDOW.location){ZV.DEBUG_BUILD&&by.logger.warn("Could not initialize routing instrumentation due to invalid location");return}let n=Sy.WINDOW.location.href,o;e&&(o=t({name:Sy.WINDOW.location.pathname,startTimestamp:by.browserPerformanceTimeOrigin?by.browserPerformanceTimeOrigin/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),r&&by.addHistoryInstrumentationHandler(({to:a,from:i})=>{if(i===void 0&&n&&n.indexOf(a)!==-1){n=void 0;return}i!==a&&(n=void 0,o&&(ZV.DEBUG_BUILD&&by.logger.log(`[Tracing] Finishing current transaction with op: ${o.op}`),o.end()),o=t({name:Sy.WINDOW.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}wM.instrumentRoutingWithDefaults=m1e});var o7=_(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});var Ca=Ze(),Ps=se(),Yu=Qn(),h1e=eM(),e7=Sp(),Ey=SM(),r7=JT(),g1e=QV(),Rc=Eo(),n7="BrowserTracing",v1e={...Ca.TRACING_DEFAULTS,markBackgroundTransactions:!0,routingInstrumentation:g1e.instrumentRoutingWithDefaults,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...r7.defaultRequestInstrumentationOptions},t7=10,xM=class{constructor(e){this.name=n7,this._hasSetTracePropagationTargets=!1,Ca.addTracingExtensions(),Yu.DEBUG_BUILD&&(this._hasSetTracePropagationTargets=!!(e&&(e.tracePropagationTargets||e.tracingOrigins))),this.options={...v1e,...e},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=Ey.startTrackingWebVitals(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&Ey.startTrackingINP(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&Ey.startTrackingLongTasks(),this.options._experiments.enableInteractions&&Ey.startTrackingInteractions(),this._latestRoute={name:void 0,context:void 0}}setupOnce(e,r){this._getCurrentHub=r;let o=r().getClient(),a=o&&o.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:s,startTransactionOnPageLoad:u,markBackgroundTransactions:l,traceFetch:c,traceXHR:f,shouldCreateSpanForRequest:d,enableHTTPTimings:p,_experiments:m}=this.options,g=a&&a.tracePropagationTargets,v=g||this.options.tracePropagationTargets;Yu.DEBUG_BUILD&&this._hasSetTracePropagationTargets&&g&&Ps.logger.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),i(h=>{let y=this._createRouteTransaction(h);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(y,h,r),y},u,s),l&&h1e.registerBackgroundTabDetection(),m.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),r7.instrumentOutgoingRequests({traceFetch:c,traceXHR:f,tracePropagationTargets:v,shouldCreateSpanForRequest:d,enableHTTPTimings:p})}_createRouteTransaction(e){if(!this._getCurrentHub){Yu.DEBUG_BUILD&&Ps.logger.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`);return}let r=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:o,finalTimeout:a,heartbeatInterval:i}=this.options,s=e.op==="pageload",u;if(s){let p=s?CM("sentry-trace"):"",m=s?CM("baggage"):void 0,{traceId:g,dsc:v,parentSpanId:h,sampled:y}=Ps.propagationContextFromHeaders(p,m);u={traceId:g,parentSpanId:h,parentSampled:y,...e,metadata:{...e.metadata,dynamicSamplingContext:v},trimEnd:!0}}else u={trimEnd:!0,...e};let l=typeof n=="function"?n(u):u,c=l===void 0?{...u,sampled:!1}:l;c.metadata=c.name!==u.name?{...c.metadata,source:"custom"}:c.metadata,this._latestRoute.name=c.name,this._latestRoute.context=c,c.sampled===!1&&Yu.DEBUG_BUILD&&Ps.logger.log(`[Tracing] Will not send ${c.op} transaction because of beforeNavigate.`),Yu.DEBUG_BUILD&&Ps.logger.log(`[Tracing] Starting ${c.op} transaction on scope`);let{location:f}=Rc.WINDOW,d=Ca.startIdleTransaction(r,c,o,a,!0,{location:f},i,s);return s&&Rc.WINDOW.document&&(Rc.WINDOW.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(Rc.WINDOW.document.readyState)&&d.sendAutoFinishSignal()}),["interactive","complete"].includes(Rc.WINDOW.document.readyState)&&d.sendAutoFinishSignal()),d.registerBeforeFinishCallback(p=>{this._collectWebVitals(),Ey.addPerformanceEntries(p)}),d}_registerInteractionListener(){let e,r=()=>{let{idleTimeout:n,finalTimeout:o,heartbeatInterval:a}=this.options,i="ui.action.click",s=Ca.getActiveTransaction();if(s&&s.op&&["navigation","pageload"].includes(s.op)){Yu.DEBUG_BUILD&&Ps.logger.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`);return}if(e&&(e.setFinishReason("interactionInterrupted"),e.end(),e=void 0),!this._getCurrentHub){Yu.DEBUG_BUILD&&Ps.logger.warn(`[Tracing] Did not create ${i} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRoute.name){Yu.DEBUG_BUILD&&Ps.logger.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return}let u=this._getCurrentHub(),{location:l}=Rc.WINDOW,c={name:this._latestRoute.name,op:i,trimEnd:!0,data:{[Ca.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:this._latestRoute.context?y1e(this._latestRoute.context):"url"}};e=Ca.startIdleTransaction(u,c,n,o,!0,{location:l},a)};["click"].forEach(n=>{Rc.WINDOW.document&&addEventListener(n,r,{once:!1,capture:!0})})}_registerInpInteractionListener(){let e=({entries:r})=>{let n=Ca.getClient(),o=n!==void 0&&n.getIntegrationByName!==void 0?n.getIntegrationByName("Replay"):void 0,a=o!==void 0?o.getReplayId():void 0,i=Ca.getActiveTransaction(),s=Ca.getCurrentScope(),u=s!==void 0?s.getUser():void 0;r.forEach(l=>{if(_1e(l)){let c=l.interactionId;if(c===void 0)return;let f=this._interactionIdToRouteNameMapping[c],d=l.duration,p=l.startTime,m=Object.keys(this._interactionIdToRouteNameMapping),g=m.length>0?m.reduce((v,h)=>this._interactionIdToRouteNameMapping[v].durationthis._interactionIdToRouteNameMapping[h]).some(h=>h.duration===d&&h.startTime===p)||!c)return;if(f)f.duration=Math.max(f.duration,d);else if(m.lengththis._interactionIdToRouteNameMapping[g].duration){let v=this._latestRoute.name,h=this._latestRoute.context;v&&h&&(g&&Object.keys(this._interactionIdToRouteNameMapping).length>=t7&&delete this._interactionIdToRouteNameMapping[g],this._interactionIdToRouteNameMapping[c]={routeName:v,duration:d,parentContext:h,user:u,activeTransaction:i,replayId:a,startTime:p})}}})};e7.addPerformanceInstrumentationHandler("event",e),e7.addPerformanceInstrumentationHandler("first-input",e)}};function CM(t){let e=Ps.getDomElement(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}function y1e(t){let e=t.attributes&&t.attributes[Ca.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],r=t.data&&t.data[Ca.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],n=t.metadata&&t.metadata.source;return e||r||n}function _1e(t){return"duration"in t}Ty.BROWSER_TRACING_INTEGRATION_ID=n7;Ty.BrowserTracing=xM;Ty.getMetaContent=CM});var d7=_(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});var wr=Ze(),ta=se(),Ju=Qn(),b1e=eM(),a7=Sp(),wy=SM(),s7=JT(),wo=Eo(),u7="BrowserTracing",S1e={...wr.TRACING_DEFAULTS,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...s7.defaultRequestInstrumentationOptions},E1e=(t={})=>{let e=Ju.DEBUG_BUILD?!!(t.tracePropagationTargets||t.tracingOrigins):!1;wr.addTracingExtensions(),!t.tracePropagationTargets&&t.tracingOrigins&&(t.tracePropagationTargets=t.tracingOrigins);let r={...S1e,...t},n=wy.startTrackingWebVitals(),o={};r.enableInp&&wy.startTrackingINP(o,r.interactionsSampleRate),r.enableLongTask&&wy.startTrackingLongTasks(),r._experiments.enableInteractions&&wy.startTrackingInteractions();let a={name:void 0,context:void 0};function i(s){let u=wr.getCurrentHub(),{beforeStartSpan:l,idleTimeout:c,finalTimeout:f,heartbeatInterval:d}=r,p=s.op==="pageload",m;if(p){let y=p?IM("sentry-trace"):"",b=p?IM("baggage"):void 0,{traceId:E,dsc:w,parentSpanId:S,sampled:C}=ta.propagationContextFromHeaders(y,b);m={traceId:E,parentSpanId:S,parentSampled:C,...s,metadata:{...s.metadata,dynamicSamplingContext:w},trimEnd:!0}}else m={trimEnd:!0,...s};let g=l?l(m):m;g.metadata=g.name!==m.name?{...g.metadata,source:"custom"}:g.metadata,a.name=g.name,a.context=g,g.sampled===!1&&Ju.DEBUG_BUILD&&ta.logger.log(`[Tracing] Will not send ${g.op} transaction because of beforeNavigate.`),Ju.DEBUG_BUILD&&ta.logger.log(`[Tracing] Starting ${g.op} transaction on scope`);let{location:v}=wo.WINDOW,h=wr.startIdleTransaction(u,g,c,f,!0,{location:v},d,p);return p&&wo.WINDOW.document&&(wo.WINDOW.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(wo.WINDOW.document.readyState)&&h.sendAutoFinishSignal()}),["interactive","complete"].includes(wo.WINDOW.document.readyState)&&h.sendAutoFinishSignal()),h.registerBeforeFinishCallback(y=>{n(),wy.addPerformanceEntries(y)}),h}return{name:u7,setupOnce:()=>{},afterAllSetup(s){let u=s.getOptions(),{markBackgroundSpan:l,traceFetch:c,traceXHR:f,shouldCreateSpanForRequest:d,enableHTTPTimings:p,_experiments:m}=r,g=u&&u.tracePropagationTargets,v=g||r.tracePropagationTargets;Ju.DEBUG_BUILD&&e&&g&&ta.logger.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let h,y=wo.WINDOW.location&&wo.WINDOW.location.href;if(s.on&&(s.on("startNavigationSpan",b=>{h&&(Ju.DEBUG_BUILD&&ta.logger.log(`[Tracing] Finishing current transaction with op: ${wr.spanToJSON(h).op}`),h.end()),h=i({op:"navigation",...b})}),s.on("startPageLoadSpan",b=>{h&&(Ju.DEBUG_BUILD&&ta.logger.log(`[Tracing] Finishing current transaction with op: ${wr.spanToJSON(h).op}`),h.end()),h=i({op:"pageload",...b})})),r.instrumentPageLoad&&s.emit&&wo.WINDOW.location){let b={name:wo.WINDOW.location.pathname,startTimestamp:ta.browserPerformanceTimeOrigin?ta.browserPerformanceTimeOrigin/1e3:void 0,origin:"auto.pageload.browser",attributes:{[wr.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"}};l7(s,b)}r.instrumentNavigation&&s.emit&&wo.WINDOW.location&&ta.addHistoryInstrumentationHandler(({to:b,from:E})=>{if(E===void 0&&y&&y.indexOf(b)!==-1){y=void 0;return}if(E!==b){y=void 0;let w={name:wo.WINDOW.location.pathname,origin:"auto.navigation.browser",attributes:{[wr.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"}};c7(s,w)}}),l&&b1e.registerBackgroundTabDetection(),m.enableInteractions&&T1e(r,a),r.enableInp&&x1e(o,a),s7.instrumentOutgoingRequests({traceFetch:c,traceXHR:f,tracePropagationTargets:v,shouldCreateSpanForRequest:d,enableHTTPTimings:p})},options:r}};function l7(t,e){if(!t.emit)return;t.emit("startPageLoadSpan",e);let r=wr.getActiveSpan();return(r&&wr.spanToJSON(r).op)==="pageload"?r:void 0}function c7(t,e){if(!t.emit)return;t.emit("startNavigationSpan",e);let r=wr.getActiveSpan();return(r&&wr.spanToJSON(r).op)==="navigation"?r:void 0}function IM(t){let e=ta.getDomElement(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}function T1e(t,e){let r,n=()=>{let{idleTimeout:o,finalTimeout:a,heartbeatInterval:i}=t,s="ui.action.click",u=wr.getActiveTransaction();if(u&&u.op&&["navigation","pageload"].includes(u.op)){Ju.DEBUG_BUILD&&ta.logger.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(r&&(r.setFinishReason("interactionInterrupted"),r.end(),r=void 0),!e.name){Ju.DEBUG_BUILD&&ta.logger.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}let{location:l}=wo.WINDOW,c={name:e.name,op:s,trimEnd:!0,data:{[wr.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:e.context?C1e(e.context):"url"}};r=wr.startIdleTransaction(wr.getCurrentHub(),c,o,a,!0,{location:l},i)};["click"].forEach(o=>{wo.WINDOW.document&&addEventListener(o,n,{once:!1,capture:!0})})}function w1e(t){return"duration"in t}var i7=10;function x1e(t,e){let r=({entries:n})=>{let o=wr.getClient(),a=o!==void 0&&o.getIntegrationByName!==void 0?o.getIntegrationByName("Replay"):void 0,i=a!==void 0?a.getReplayId():void 0,s=wr.getActiveTransaction(),u=wr.getCurrentScope(),l=u!==void 0?u.getUser():void 0;n.forEach(c=>{if(w1e(c)){let f=c.interactionId;if(f===void 0)return;let d=t[f],p=c.duration,m=c.startTime,g=Object.keys(t),v=g.length>0?g.reduce((h,y)=>t[h].durationt[y]).some(y=>y.duration===p&&y.startTime===m)||!f)return;if(d)d.duration=Math.max(d.duration,p);else if(g.lengtht[v].duration){let h=e.name,y=e.context;h&&y&&(v&&Object.keys(t).length>=i7&&delete t[v],t[f]={routeName:h,duration:p,parentContext:y,user:l,activeTransaction:s,replayId:i,startTime:m})}}})};a7.addPerformanceInstrumentationHandler("event",r),a7.addPerformanceInstrumentationHandler("first-input",r)}function C1e(t){let e=t.attributes&&t.attributes[wr.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],r=t.data&&t.data[wr.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],n=t.metadata&&t.metadata.source;return e||r||n}Dc.BROWSER_TRACING_INTEGRATION_ID=u7;Dc.browserTracingIntegration=E1e;Dc.getMetaContent=IM;Dc.startBrowserTracingNavigationSpan=c7;Dc.startBrowserTracingPageLoadSpan=l7});var p7=_((kM,xy)=>{"use strict";Object.defineProperty(kM,"__esModule",{value:!0});var f7=Ze(),Ep=se();function I1e(){let t=f7.getMainCarrier();if(!t.__SENTRY__)return;let e={mongodb(){let n=Ep.dynamicRequire(xy,"./node/integrations/mongo");return new n.Mongo},mongoose(){let n=Ep.dynamicRequire(xy,"./node/integrations/mongo");return new n.Mongo},mysql(){let n=Ep.dynamicRequire(xy,"./node/integrations/mysql");return new n.Mysql},pg(){let n=Ep.dynamicRequire(xy,"./node/integrations/postgres");return new n.Postgres}},r=Object.keys(e).filter(n=>!!Ep.loadModule(n)).map(n=>{try{return e[n]()}catch(o){return}}).filter(n=>n);r.length>0&&(t.__SENTRY__.integrations=[...t.__SENTRY__.integrations||[],...r])}function k1e(){f7.addTracingExtensions(),Ep.isNodeEnv()&&I1e()}kM.addExtensionMethods=k1e});var ZT=_(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});var Os=Ze(),m7=se(),P1e=nV(),O1e=oV(),R1e=aV(),D1e=sV(),N1e=lV(),A1e=dV(),M1e=pV(),F1e=mV(),h7=o7(),PM=d7(),g7=JT(),XT=Sp(),v7=EM(),q1e=p7();lt.IdleTransaction=Os.IdleTransaction;lt.Span=Os.Span;lt.SpanStatus=Os.SpanStatus;lt.Transaction=Os.Transaction;lt.extractTraceparentData=Os.extractTraceparentData;lt.getActiveTransaction=Os.getActiveTransaction;lt.hasTracingEnabled=Os.hasTracingEnabled;lt.spanStatusfromHttpCode=Os.spanStatusfromHttpCode;lt.startIdleTransaction=Os.startIdleTransaction;lt.TRACEPARENT_REGEXP=m7.TRACEPARENT_REGEXP;lt.stripUrlQueryAndFragment=m7.stripUrlQueryAndFragment;lt.Express=P1e.Express;lt.Postgres=O1e.Postgres;lt.Mysql=R1e.Mysql;lt.Mongo=D1e.Mongo;lt.Prisma=N1e.Prisma;lt.GraphQL=A1e.GraphQL;lt.Apollo=M1e.Apollo;lt.lazyLoadedNodePerformanceMonitoringIntegrations=F1e.lazyLoadedNodePerformanceMonitoringIntegrations;lt.BROWSER_TRACING_INTEGRATION_ID=h7.BROWSER_TRACING_INTEGRATION_ID;lt.BrowserTracing=h7.BrowserTracing;lt.browserTracingIntegration=PM.browserTracingIntegration;lt.startBrowserTracingNavigationSpan=PM.startBrowserTracingNavigationSpan;lt.startBrowserTracingPageLoadSpan=PM.startBrowserTracingPageLoadSpan;lt.defaultRequestInstrumentationOptions=g7.defaultRequestInstrumentationOptions;lt.instrumentOutgoingRequests=g7.instrumentOutgoingRequests;lt.addClsInstrumentationHandler=XT.addClsInstrumentationHandler;lt.addFidInstrumentationHandler=XT.addFidInstrumentationHandler;lt.addLcpInstrumentationHandler=XT.addLcpInstrumentationHandler;lt.addPerformanceInstrumentationHandler=XT.addPerformanceInstrumentationHandler;lt.addTracingHeadersToFetchRequest=v7.addTracingHeadersToFetchRequest;lt.instrumentFetchRequest=v7.instrumentFetchRequest;lt.addExtensionMethods=q1e.addExtensionMethods});var Ia=_(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});ZT();var y7=Ze(),Tp=se(),j1e=Tp.GLOBAL_OBJ,OM=0;function L1e(){return OM>0}function _7(){OM++,setTimeout(()=>{OM--})}function b7(t,e={},r){if(typeof t!="function")return t;try{let o=t.__sentry_wrapped__;if(o)return typeof o=="function"?o:t;if(Tp.getOriginalFunction(t))return t}catch(o){return t}let n=function(){let o=Array.prototype.slice.call(arguments);try{r&&typeof r=="function"&&r.apply(this,arguments);let a=o.map(i=>b7(i,e));return t.apply(this,a)}catch(a){throw _7(),y7.withScope(i=>{i.addEventProcessor(s=>(e.mechanism&&(Tp.addExceptionTypeValue(s,void 0,void 0),Tp.addExceptionMechanism(s,e.mechanism)),s.extra={...s.extra,arguments:o},s)),y7.captureException(a)}),a}};try{for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}catch(o){}Tp.markFunctionWrapped(n,t),Tp.addNonEnumerableProperty(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return t.name}})}catch(o){}return n}wp.WINDOW=j1e;wp.ignoreNextOnError=_7;wp.shouldIgnoreOnError=L1e;wp.wrap=b7});var hi=_(RM=>{"use strict";Object.defineProperty(RM,"__esModule",{value:!0});var B1e=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;RM.DEBUG_BUILD=B1e});var Cy=_(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});var U1e=Ze(),Dr=se();function S7(t,e){let r=tw(t,e),n={type:e&&e.name,value:$1e(e)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function E7(t,e,r,n){let o=U1e.getClient(),a=o&&o.getOptions().normalizeDepth,i={exception:{values:[{type:Dr.isEvent(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:V1e(e,{isUnhandledRejection:n})}]},extra:{__serialized__:Dr.normalizeToSize(e,a)}};if(r){let s=tw(t,r);s.length&&(i.exception.values[0].stacktrace={frames:s})}return i}function QT(t,e){return{exception:{values:[S7(t,e)]}}}function tw(t,e){let r=e.stacktrace||e.stack||"",n=W1e(e);try{return t(r,n)}catch(o){}return[]}var z1e=/Minified React error #\d+;/i;function W1e(t){if(t){if(typeof t.framesToPop=="number")return t.framesToPop;if(z1e.test(t.message))return 1}return 0}function $1e(t){let e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function H1e(t,e,r,n){let o=r&&r.syntheticException||void 0,a=T7(t,e,o,n);return Dr.addExceptionMechanism(a),a.level="error",r&&r.event_id&&(a.event_id=r.event_id),Dr.resolvedSyncPromise(a)}function G1e(t,e,r="info",n,o){let a=n&&n.syntheticException||void 0,i=ew(t,e,a,o);return i.level=r,n&&n.event_id&&(i.event_id=n.event_id),Dr.resolvedSyncPromise(i)}function T7(t,e,r,n,o){let a;if(Dr.isErrorEvent(e)&&e.error)return QT(t,e.error);if(Dr.isDOMError(e)||Dr.isDOMException(e)){let i=e;if("stack"in e)a=QT(t,e);else{let s=i.name||(Dr.isDOMError(i)?"DOMError":"DOMException"),u=i.message?`${s}: ${i.message}`:s;a=ew(t,u,r,n),Dr.addExceptionTypeValue(a,u)}return"code"in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return Dr.isError(e)?QT(t,e):Dr.isPlainObject(e)||Dr.isEvent(e)?(a=E7(t,e,r,o),Dr.addExceptionMechanism(a,{synthetic:!0}),a):(a=ew(t,e,r,n),Dr.addExceptionTypeValue(a,`${e}`,void 0),Dr.addExceptionMechanism(a,{synthetic:!0}),a)}function ew(t,e,r,n){let o={};if(n&&r){let a=tw(t,r);a.length&&(o.exception={values:[{value:e,stacktrace:{frames:a}}]})}if(Dr.isParameterizedString(e)){let{__sentry_template_string__:a,__sentry_template_values__:i}=e;return o.logentry={message:a,params:i},o}return o.message=e,o}function V1e(t,{isUnhandledRejection:e}){let r=Dr.extractExceptionKeysForMessage(t),n=e?"promise rejection":"exception";return Dr.isErrorEvent(t)?`Event \`ErrorEvent\` captured as ${n} with message \`${t.message}\``:Dr.isEvent(t)?`Event \`${K1e(t)}\` (type=${t.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function K1e(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(e){}}gi.eventFromError=QT;gi.eventFromException=H1e;gi.eventFromMessage=G1e;gi.eventFromPlainObject=E7;gi.eventFromString=ew;gi.eventFromUnknownInput=T7;gi.exceptionFromError=S7;gi.parseStackFrames=tw});var NM=_(DM=>{"use strict";Object.defineProperty(DM,"__esModule",{value:!0});var w7=se();function Y1e(t,{metadata:e,tunnel:r,dsn:n}){let o={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!r&&!!n&&{dsn:w7.dsnToString(n)}},a=J1e(t);return w7.createEnvelope(o,[a])}function J1e(t){return[{type:"user_report"},t]}DM.createUserFeedbackEnvelope=Y1e});var FM=_(MM=>{"use strict";Object.defineProperty(MM,"__esModule",{value:!0});var x7=Ze(),Nc=se(),rw=hi(),C7=Cy(),nw=Ia(),X1e=NM(),AM=class extends x7.BaseClient{constructor(e){let r=nw.WINDOW.SENTRY_SDK_SOURCE||Nc.getSDKSource();x7.applySdkMetadata(e,"browser",["browser"],r),super(e),e.sendClientReports&&nw.WINDOW.document&&nw.WINDOW.document.addEventListener("visibilitychange",()=>{nw.WINDOW.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,r){return C7.eventFromException(this._options.stackParser,e,r,this._options.attachStacktrace)}eventFromMessage(e,r="info",n){return C7.eventFromMessage(this._options.stackParser,e,r,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){rw.DEBUG_BUILD&&Nc.logger.warn("SDK not enabled, will not capture user feedback.");return}let r=X1e.createUserFeedbackEnvelope(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(r)}_prepareEvent(e,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,r,n)}_flushOutcomes(){let e=this._clearOutcomes();if(e.length===0){rw.DEBUG_BUILD&&Nc.logger.log("No outcomes to send");return}if(!this._dsn){rw.DEBUG_BUILD&&Nc.logger.log("No dsn provided, will not send outcomes");return}rw.DEBUG_BUILD&&Nc.logger.log("Sending outcomes:",e);let r=Nc.createClientReportEnvelope(e,this._options.tunnel&&Nc.dsnToString(this._dsn));this._sendEnvelope(r)}};MM.BrowserClient=AM});var k7=_(ow=>{"use strict";Object.defineProperty(ow,"__esModule",{value:!0});var I7=se(),Z1e=hi(),xp=Ia(),Iy;function Q1e(){if(Iy)return Iy;if(I7.isNativeFetch(xp.WINDOW.fetch))return Iy=xp.WINDOW.fetch.bind(xp.WINDOW);let t=xp.WINDOW.document,e=xp.WINDOW.fetch;if(t&&typeof t.createElement=="function")try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r);let n=r.contentWindow;n&&n.fetch&&(e=n.fetch),t.head.removeChild(r)}catch(r){Z1e.DEBUG_BUILD&&I7.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return Iy=e.bind(xp.WINDOW)}function eOe(){Iy=void 0}ow.clearCachedFetchImplementation=eOe;ow.getNativeFetchImplementation=Q1e});var jM=_(qM=>{"use strict";Object.defineProperty(qM,"__esModule",{value:!0});var tOe=Ze(),rOe=se(),P7=k7();function nOe(t,e=P7.getNativeFetchImplementation()){let r=0,n=0;function o(a){let i=a.body.length;r+=i,n++;let s={body:a.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:r<=6e4&&n<15,...t.fetchOptions};try{return e(t.url,s).then(u=>(r-=i,n--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return P7.clearCachedFetchImplementation(),r-=i,n--,rOe.rejectedSyncPromise(u)}}return tOe.createTransport(t,o)}qM.makeFetchTransport=nOe});var BM=_(LM=>{"use strict";Object.defineProperty(LM,"__esModule",{value:!0});var oOe=Ze(),aOe=se(),iOe=4;function sOe(t){function e(r){return new aOe.SyncPromise((n,o)=>{let a=new XMLHttpRequest;a.onerror=o,a.onreadystatechange=()=>{a.readyState===iOe&&n({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",t.url);for(let i in t.headers)Object.prototype.hasOwnProperty.call(t.headers,i)&&a.setRequestHeader(i,t.headers[i]);a.send(r.body)})}return oOe.createTransport(t,e)}LM.makeXHRTransport=sOe});var UM=_(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});var uOe=se(),Cp="?",lOe=10,cOe=20,dOe=30,fOe=40,pOe=50;function ky(t,e,r,n){let o={filename:t,function:e,in_app:!0};return r!==void 0&&(o.lineno=r),n!==void 0&&(o.colno=n),o}var mOe=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,hOe=/\((\S*)(?::(\d+))(?::(\d+))\)/,gOe=t=>{let e=mOe.exec(t);if(e){if(e[2]&&e[2].indexOf("eval")===0){let a=hOe.exec(e[2]);a&&(e[2]=a[1],e[3]=a[2],e[4]=a[3])}let[n,o]=A7(e[1]||Cp,e[2]);return ky(o,n,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},O7=[dOe,gOe],vOe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,yOe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,_Oe=t=>{let e=vOe.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){let a=yOe.exec(e[3]);a&&(e[1]=e[1]||"eval",e[3]=a[1],e[4]=a[2],e[5]="")}let n=e[3],o=e[1]||Cp;return[o,n]=A7(o,n),ky(n,o,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},R7=[pOe,_Oe],bOe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,SOe=t=>{let e=bOe.exec(t);return e?ky(e[2],e[1]||Cp,+e[3],e[4]?+e[4]:void 0):void 0},D7=[fOe,SOe],EOe=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,TOe=t=>{let e=EOe.exec(t);return e?ky(e[2],e[3]||Cp,+e[1]):void 0},wOe=[lOe,TOe],xOe=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,COe=t=>{let e=xOe.exec(t);return e?ky(e[5],e[3]||e[4]||Cp,+e[1],+e[2]):void 0},IOe=[cOe,COe],N7=[O7,R7,D7],kOe=uOe.createStackParser(...N7),A7=(t,e)=>{let r=t.indexOf("safari-extension")!==-1,n=t.indexOf("safari-web-extension")!==-1;return r||n?[t.indexOf("@")!==-1?t.split("@")[0]:Cp,r?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};Rs.chromeStackLineParser=O7;Rs.defaultStackLineParsers=N7;Rs.defaultStackParser=kOe;Rs.geckoStackLineParser=R7;Rs.opera10StackLineParser=wOe;Rs.opera11StackLineParser=IOe;Rs.winjsStackLineParser=D7});var sw=_(iw=>{"use strict";Object.defineProperty(iw,"__esModule",{value:!0});var Fn=Ze(),wn=se(),POe=hi(),OOe=Ia(),aw=1024,M7="Breadcrumbs",ROe=(t={})=>{let e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:M7,setupOnce(){},setup(r){e.console&&wn.addConsoleInstrumentationHandler(MOe(r)),e.dom&&wn.addClickKeypressInstrumentationHandler(AOe(r,e.dom)),e.xhr&&wn.addXhrInstrumentationHandler(FOe(r)),e.fetch&&wn.addFetchInstrumentationHandler(qOe(r)),e.history&&wn.addHistoryInstrumentationHandler(jOe(r)),e.sentry&&r.on&&r.on("beforeSendEvent",NOe(r))}}},F7=Fn.defineIntegration(ROe),DOe=Fn.convertIntegrationFnToClass(M7,F7);function NOe(t){return function(r){Fn.getClient()===t&&Fn.addBreadcrumb({category:`sentry.${r.type==="transaction"?"transaction":"event"}`,event_id:r.event_id,level:r.level,message:wn.getEventDescription(r)},{event:r})}}function AOe(t,e){return function(n){if(Fn.getClient()!==t)return;let o,a,i=typeof e=="object"?e.serializeAttribute:void 0,s=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;s&&s>aw&&(POe.DEBUG_BUILD&&wn.logger.warn(`\`dom.maxStringLength\` cannot exceed ${aw}, but a value of ${s} was configured. Sentry will use ${aw} instead.`),s=aw),typeof i=="string"&&(i=[i]);try{let l=n.event,c=LOe(l)?l.target:l;o=wn.htmlTreeAsString(c,{keyAttrs:i,maxStringLength:s}),a=wn.getComponentName(c)}catch(l){o=""}if(o.length===0)return;let u={category:`ui.${n.name}`,message:o};a&&(u.data={"ui.component_name":a}),Fn.addBreadcrumb(u,{event:n.event,name:n.name,global:n.global})}}function MOe(t){return function(r){if(Fn.getClient()!==t)return;let n={category:"console",data:{arguments:r.args,logger:"console"},level:wn.severityLevelFromString(r.level),message:wn.safeJoin(r.args," ")};if(r.level==="assert")if(r.args[0]===!1)n.message=`Assertion failed: ${wn.safeJoin(r.args.slice(1)," ")||"console.assert"}`,n.data.arguments=r.args.slice(1);else return;Fn.addBreadcrumb(n,{input:r.args,level:r.level})}}function FOe(t){return function(r){if(Fn.getClient()!==t)return;let{startTimestamp:n,endTimestamp:o}=r,a=r.xhr[wn.SENTRY_XHR_DATA_KEY];if(!n||!o||!a)return;let{method:i,url:s,status_code:u,body:l}=a,c={method:i,url:s,status_code:u},f={xhr:r.xhr,input:l,startTimestamp:n,endTimestamp:o};Fn.addBreadcrumb({category:"xhr",data:c,type:"http"},f)}}function qOe(t){return function(r){if(Fn.getClient()!==t)return;let{startTimestamp:n,endTimestamp:o}=r;if(o&&!(r.fetchData.url.match(/sentry_key/)&&r.fetchData.method==="POST"))if(r.error){let a=r.fetchData,i={data:r.error,input:r.args,startTimestamp:n,endTimestamp:o};Fn.addBreadcrumb({category:"fetch",data:a,level:"error",type:"http"},i)}else{let a=r.response,i={...r.fetchData,status_code:a&&a.status},s={input:r.args,response:a,startTimestamp:n,endTimestamp:o};Fn.addBreadcrumb({category:"fetch",data:i,type:"http"},s)}}}function jOe(t){return function(r){if(Fn.getClient()!==t)return;let n=r.from,o=r.to,a=wn.parseUrl(OOe.WINDOW.location.href),i=n?wn.parseUrl(n):void 0,s=wn.parseUrl(o);(!i||!i.path)&&(i=a),a.protocol===s.protocol&&a.host===s.host&&(o=s.relative),a.protocol===i.protocol&&a.host===i.host&&(n=i.relative),Fn.addBreadcrumb({category:"navigation",data:{from:n,to:o}})}}function LOe(t){return!!t&&!!t.target}iw.Breadcrumbs=DOe;iw.breadcrumbsIntegration=F7});var lw=_(uw=>{"use strict";Object.defineProperty(uw,"__esModule",{value:!0});var L7=Ze(),BOe=se(),UOe=hi(),B7="Dedupe",zOe=()=>{let t;return{name:B7,setupOnce(){},processEvent(e){if(e.type)return e;try{if($Oe(e,t))return UOe.DEBUG_BUILD&&BOe.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(r){}return t=e}}},U7=L7.defineIntegration(zOe),WOe=L7.convertIntegrationFnToClass(B7,U7);function $Oe(t,e){return e?!!(HOe(t,e)||GOe(t,e)):!1}function HOe(t,e){let r=t.message,n=e.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!W7(t,e)||!z7(t,e))}function GOe(t,e){let r=q7(e),n=q7(t);return!(!r||!n||r.type!==n.type||r.value!==n.value||!W7(t,e)||!z7(t,e))}function z7(t,e){let r=j7(t),n=j7(e);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let o=0;o{"use strict";Object.defineProperty(cw,"__esModule",{value:!0});var Ac=Ze(),Ds=se(),VOe=hi(),H7=Cy(),G7=Ia(),V7="GlobalHandlers",KOe=(t={})=>{let e={onerror:!0,onunhandledrejection:!0,...t};return{name:V7,setupOnce(){Error.stackTraceLimit=50},setup(r){e.onerror&&(JOe(r),$7("onerror")),e.onunhandledrejection&&(XOe(r),$7("onunhandledrejection"))}}},K7=Ac.defineIntegration(KOe),YOe=Ac.convertIntegrationFnToClass(V7,K7);function JOe(t){Ds.addGlobalErrorInstrumentationHandler(e=>{let{stackParser:r,attachStacktrace:n}=J7();if(Ac.getClient()!==t||G7.shouldIgnoreOnError())return;let{msg:o,url:a,line:i,column:s,error:u}=e,l=u===void 0&&Ds.isString(o)?eRe(o,a,i,s):Y7(H7.eventFromUnknownInput(r,u||o,void 0,n,!1),a,i,s);l.level="error",Ac.captureEvent(l,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function XOe(t){Ds.addGlobalUnhandledRejectionInstrumentationHandler(e=>{let{stackParser:r,attachStacktrace:n}=J7();if(Ac.getClient()!==t||G7.shouldIgnoreOnError())return;let o=ZOe(e),a=Ds.isPrimitive(o)?QOe(o):H7.eventFromUnknownInput(r,o,void 0,n,!0);a.level="error",Ac.captureEvent(a,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function ZOe(t){if(Ds.isPrimitive(t))return t;let e=t;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(r){}return t}function QOe(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function eRe(t,e,r,n){let o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,a=Ds.isErrorEvent(t)?t.message:t,i="Error",s=a.match(o);return s&&(i=s[1],a=s[2]),Y7({exception:{values:[{type:i,value:a}]}},e,r,n)}function Y7(t,e,r,n){let o=t.exception=t.exception||{},a=o.values=o.values||[],i=a[0]=a[0]||{},s=i.stacktrace=i.stacktrace||{},u=s.frames=s.frames||[],l=isNaN(parseInt(n,10))?void 0:n,c=isNaN(parseInt(r,10))?void 0:r,f=Ds.isString(e)&&e.length>0?e:Ds.getLocationHref();return u.length===0&&u.push({colno:l,filename:f,function:"?",in_app:!0,lineno:c}),t}function $7(t){VOe.DEBUG_BUILD&&Ds.logger.log(`Global Handler attached: ${t}`)}function J7(){let t=Ac.getClient();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}cw.GlobalHandlers=YOe;cw.globalHandlersIntegration=K7});var pw=_(fw=>{"use strict";Object.defineProperty(fw,"__esModule",{value:!0});var X7=Ze(),Mc=Ia(),Z7="HttpContext",tRe=()=>({name:Z7,setupOnce(){},preprocessEvent(t){if(!Mc.WINDOW.navigator&&!Mc.WINDOW.location&&!Mc.WINDOW.document)return;let e=t.request&&t.request.url||Mc.WINDOW.location&&Mc.WINDOW.location.href,{referrer:r}=Mc.WINDOW.document||{},{userAgent:n}=Mc.WINDOW.navigator||{},o={...t.request&&t.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},a={...t.request,...e&&{url:e},headers:o};t.request=a}}),Q7=X7.defineIntegration(tRe),rRe=X7.convertIntegrationFnToClass(Z7,Q7);fw.HttpContext=rRe;fw.httpContextIntegration=Q7});var hw=_(mw=>{"use strict";Object.defineProperty(mw,"__esModule",{value:!0});var eK=Ze(),nRe=se(),oRe=Cy(),aRe="cause",iRe=5,tK="LinkedErrors",sRe=(t={})=>{let e=t.limit||iRe,r=t.key||aRe;return{name:tK,setupOnce(){},preprocessEvent(n,o,a){let i=a.getOptions();nRe.applyAggregateErrorsToEvent(oRe.exceptionFromError,i.stackParser,i.maxValueLength,r,e,n,o)}}},rK=eK.defineIntegration(sRe),uRe=eK.convertIntegrationFnToClass(tK,rK);mw.LinkedErrors=uRe;mw.linkedErrorsIntegration=rK});var vw=_(gw=>{"use strict";Object.defineProperty(gw,"__esModule",{value:!0});var oK=Ze(),to=se(),vi=Ia(),lRe=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],aK="TryCatch",cRe=(t={})=>{let e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:aK,setupOnce(){e.setTimeout&&to.fill(vi.WINDOW,"setTimeout",nK),e.setInterval&&to.fill(vi.WINDOW,"setInterval",nK),e.requestAnimationFrame&&to.fill(vi.WINDOW,"requestAnimationFrame",fRe),e.XMLHttpRequest&&"XMLHttpRequest"in vi.WINDOW&&to.fill(XMLHttpRequest.prototype,"send",pRe);let r=e.eventTarget;r&&(Array.isArray(r)?r:lRe).forEach(mRe)}}},iK=oK.defineIntegration(cRe),dRe=oK.convertIntegrationFnToClass(aK,iK);function nK(t){return function(...e){let r=e[0];return e[0]=vi.wrap(r,{mechanism:{data:{function:to.getFunctionName(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function fRe(t){return function(e){return t.apply(this,[vi.wrap(e,{mechanism:{data:{function:"requestAnimationFrame",handler:to.getFunctionName(t)},handled:!1,type:"instrument"}})])}}function pRe(t){return function(...e){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in r&&typeof r[o]=="function"&&to.fill(r,o,function(a){let i={mechanism:{data:{function:o,handler:to.getFunctionName(a)},handled:!1,type:"instrument"}},s=to.getOriginalFunction(a);return s&&(i.mechanism.data.handler=to.getFunctionName(s)),vi.wrap(a,i)})}),t.apply(this,e)}}function mRe(t){let e=vi.WINDOW,r=e[t]&&e[t].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(to.fill(r,"addEventListener",function(n){return function(o,a,i){try{typeof a.handleEvent=="function"&&(a.handleEvent=vi.wrap(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:to.getFunctionName(a),target:t},handled:!1,type:"instrument"}}))}catch(s){}return n.apply(this,[o,vi.wrap(a,{mechanism:{data:{function:"addEventListener",handler:to.getFunctionName(a),target:t},handled:!1,type:"instrument"}}),i])}}),to.fill(r,"removeEventListener",function(n){return function(o,a,i){let s=a;try{let u=s&&s.__sentry_wrapped__;u&&n.call(this,o,u,i)}catch(u){}return n.call(this,o,s,i)}}))}gw.TryCatch=dRe;gw.browserApiErrorsIntegration=iK});var lK=_(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});var Pa=Ze(),Fc=se(),hRe=FM(),yw=hi(),ka=Ia(),gRe=sw(),vRe=lw(),yRe=dw(),_Re=pw(),bRe=hw(),SRe=vw(),ERe=UM(),TRe=jM(),wRe=BM(),sK=[Pa.inboundFiltersIntegration(),Pa.functionToStringIntegration(),SRe.browserApiErrorsIntegration(),gRe.breadcrumbsIntegration(),yRe.globalHandlersIntegration(),bRe.linkedErrorsIntegration(),vRe.dedupeIntegration(),_Re.httpContextIntegration()];function uK(t){return[...sK]}function xRe(t={}){t.defaultIntegrations===void 0&&(t.defaultIntegrations=uK()),t.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(t.release=__SENTRY_RELEASE__),ka.WINDOW.SENTRY_RELEASE&&ka.WINDOW.SENTRY_RELEASE.id&&(t.release=ka.WINDOW.SENTRY_RELEASE.id)),t.autoSessionTracking===void 0&&(t.autoSessionTracking=!0),t.sendClientReports===void 0&&(t.sendClientReports=!0);let e={...t,stackParser:Fc.stackParserFromStackParserOptions(t.stackParser||ERe.defaultStackParser),integrations:Pa.getIntegrationsToSetup(t),transport:t.transport||(Fc.supportsFetch()?TRe.makeFetchTransport:wRe.makeXHRTransport)};Pa.initAndBind(hRe.BrowserClient,e),t.autoSessionTracking&&ORe()}var CRe=(t={},e=Pa.getCurrentHub())=>{if(!ka.WINDOW.document){yw.DEBUG_BUILD&&Fc.logger.error("Global document not defined in showReportDialog call");return}let{client:r,scope:n}=e.getStackTop(),o=t.dsn||r&&r.getDsn();if(!o){yw.DEBUG_BUILD&&Fc.logger.error("DSN not configured for showReportDialog call");return}n&&(t.user={...n.getUser(),...t.user}),t.eventId||(t.eventId=e.lastEventId());let a=ka.WINDOW.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=Pa.getReportDialogEndpoint(o,t),t.onLoad&&(a.onload=t.onLoad);let{onClose:i}=t;if(i){let u=l=>{if(l.data==="__sentry_reportdialog_closed__")try{i()}finally{ka.WINDOW.removeEventListener("message",u)}};ka.WINDOW.addEventListener("message",u)}let s=ka.WINDOW.document.head||ka.WINDOW.document.body;s?s.appendChild(a):yw.DEBUG_BUILD&&Fc.logger.error("Not injecting report dialog. No injection point found in HTML")};function IRe(){}function kRe(t){t()}function PRe(t){return ka.wrap(t)()}function ORe(){if(typeof ka.WINDOW.document=="undefined"){yw.DEBUG_BUILD&&Fc.logger.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}Pa.startSession({ignoreDuration:!0}),Pa.captureSession(),Fc.addHistoryInstrumentationHandler(({from:t,to:e})=>{t!==void 0&&t!==e&&(Pa.startSession({ignoreDuration:!0}),Pa.captureSession())})}function RRe(t){let e=Pa.getClient();e&&e.captureUserFeedback(t)}yi.captureUserFeedback=RRe;yi.defaultIntegrations=sK;yi.forceLoad=IRe;yi.getDefaultIntegrations=uK;yi.init=xRe;yi.onLoad=kRe;yi.showReportDialog=CRe;yi.wrap=PRe});var cK=_(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});var DRe=dw(),NRe=vw(),ARe=sw(),MRe=hw(),FRe=pw(),qRe=lw();Xu.GlobalHandlers=DRe.GlobalHandlers;Xu.TryCatch=NRe.TryCatch;Xu.Breadcrumbs=ARe.Breadcrumbs;Xu.LinkedErrors=MRe.LinkedErrors;Xu.HttpContext=FRe.HttpContext;Xu.Dedupe=qRe.Dedupe});var bY=_(nl=>{"use strict";var{_nullishCoalesce:jRe,_optionalChain:zM}=se();Object.defineProperty(nl,"__esModule",{value:!0});var rr=Ze(),$e=se(),dK=ZT(),Kt=$e.GLOBAL_OBJ,m2="sentryReplaySession",LRe="replay_event",h2="Unable to send Replay",BRe=3e5,URe=9e5,zRe=5e3,WRe=5500,$Re=6e4,HRe=5e3,GRe=3,fK=15e4,_w=5e3,VRe=3e3,KRe=300,g2=2e7,YRe=4999,JRe=15e3,pK=36e5;function XRe(t,e){return t!=null?t:e()}function Ew(t){let e,r=t[0],n=1;for(;nr.call(e,...i)),e=void 0)}return r}var Br;(function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"})(Br||(Br={}));function ZRe(t){return t.nodeType===t.ELEMENT_NODE}function Oy(t){let e=Ew([t,"optionalAccess",r=>r.host]);return Ew([e,"optionalAccess",r=>r.shadowRoot])===t}function Ry(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function QRe(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t}function eDe(t){let{cssText:e}=t;if(e.split('"').length<3)return e;let r=["@import",`url(${JSON.stringify(t.href)})`];return t.layerName===""?r.push("layer"):t.layerName&&r.push(`layer(${t.layerName})`),t.supportsText&&r.push(`supports(${t.supportsText})`),t.media.length&&r.push(t.media.mediaText),r.join(" ")+";"}function Tw(t){try{let e=t.rules||t.cssRules;return e?QRe(Array.from(e,AK).join("")):null}catch(e){return null}}function AK(t){let e;if(rDe(t))try{e=Tw(t.styleSheet)||eDe(t)}catch(r){}else if(nDe(t)&&t.selectorText.includes(":"))return tDe(t.cssText);return e||t.cssText}function tDe(t){let e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}function rDe(t){return"styleSheet"in t}function nDe(t){return"selectorText"in t}var ww=class{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;let r=Ew([this,"access",n=>n.getMeta,"call",n=>n(e),"optionalAccess",n=>n.id]);return XRe(r,()=>-1)}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,r){let n=r.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,r)}replace(e,r){let n=this.getNode(e);if(n){let o=this.nodeMetaMap.get(n);o&&this.nodeMetaMap.set(r,o)}this.idNodeMap.set(e,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function oDe(){return new ww}function qw({maskInputOptions:t,tagName:e,type:r}){return e==="OPTION"&&(e="SELECT"),!!(t[e.toLowerCase()]||r&&t[r]||r==="password"||e==="INPUT"&&!r&&t.text)}function Ny({isMasked:t,element:e,value:r,maskInputFn:n}){let o=r||"";return t?(n&&(o=n(o,e)),"*".repeat(o.length)):o}function Ap(t){return t.toLowerCase()}function GM(t){return t.toUpperCase()}var mK="__rrweb_original__";function aDe(t){let e=t.getContext("2d");if(!e)return!0;let r=50;for(let n=0;nu!==0))return!1}return!0}function v2(t){let e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?Ap(e):null}function xw(t,e,r){return e==="INPUT"&&(r==="radio"||r==="checkbox")?t.getAttribute("value")||"":t.value}var iDe=1,sDe=new RegExp("[^a-z0-9-_:]"),Ay=-2;function y2(){return iDe++}function uDe(t){if(t instanceof HTMLFormElement)return"form";let e=Ap(t.tagName);return sDe.test(e)?"div":e}function lDe(t){let e="";return t.indexOf("//")>-1?e=t.split("/").slice(0,3).join("/"):e=t.split("/")[0],e=e.split("?")[0],e}var Ip,hK,cDe=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,dDe=/^(?:[a-z+]+:)?\/\//i,fDe=/^www\..*/i,pDe=/^(data:)([^,]*),(.*)/i;function Cw(t,e){return(t||"").replace(cDe,(r,n,o,a,i,s)=>{let u=o||i||s,l=n||a||"";if(!u)return r;if(dDe.test(u)||fDe.test(u))return`url(${l}${u}${l})`;if(pDe.test(u))return`url(${l}${u}${l})`;if(u[0]==="/")return`url(${l}${lDe(e)+u}${l})`;let c=e.split("/"),f=u.split("/");c.pop();for(let d of f)d!=="."&&(d===".."?c.pop():c.push(d));return`url(${l}${c.join("/")}${l})`})}var mDe=/^[^ \t\n\r\u000c]+/,hDe=/^[, \t\n\r\u000c]+/;function gDe(t,e){if(e.trim()==="")return e;let r=0;function n(a){let i,s=a.exec(e.substring(r));return s?(i=s[0],r+=i.length,i):""}let o=[];for(;n(hDe),!(r>=e.length);){let a=n(mDe);if(a.slice(-1)===",")a=Pp(t,a.substring(0,a.length-1)),o.push(a);else{let i="";a=Pp(t,a);let s=!1;for(;;){let u=e.charAt(r);if(u===""){o.push((a+i).trim());break}else if(s)u===")"&&(s=!1);else if(u===","){r+=1,o.push((a+i).trim());break}else u==="("&&(s=!0);i+=u,r+=1}}}return o.join(", ")}function Pp(t,e){if(!e||e.trim()==="")return e;let r=t.createElement("a");return r.href=e,r.href}function vDe(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function _2(){let t=document.createElement("a");return t.href="",t.href}function MK(t,e,r,n,o,a){return n&&(r==="src"||r==="href"&&!(e==="use"&&n[0]==="#")||r==="xlink:href"&&n[0]!=="#"||r==="background"&&(e==="table"||e==="td"||e==="th")?Pp(t,n):r==="srcset"?gDe(t,n):r==="style"?Cw(n,_2()):e==="object"&&r==="data"?Pp(t,n):typeof a=="function"?a(r,n,o):n)}function FK(t,e,r){return(t==="video"||t==="audio")&&e==="autoplay"}function yDe(t,e,r,n){try{if(n&&t.matches(n))return!1;if(typeof e=="string"){if(t.classList.contains(e))return!0}else for(let o=t.classList.length;o--;){let a=t.classList[o];if(e.test(a))return!0}if(r)return t.matches(r)}catch(o){}return!1}function _De(t,e){for(let r=t.classList.length;r--;){let n=t.classList[r];if(e.test(n))return!0}return!1}function qc(t,e,r=1/0,n=0){return!t||t.nodeType!==t.ELEMENT_NODE||n>r?-1:e(t)?n:qc(t.parentNode,e,r,n+1)}function Op(t,e){return r=>{let n=r;if(n===null)return!1;try{if(t){if(typeof t=="string"){if(n.matches(`.${t}`))return!0}else if(_De(n,t))return!0}return!!(e&&n.matches(e))}catch(o){return!1}}}function Mp(t,e,r,n,o,a){try{let i=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(i===null)return!1;if(i.tagName==="INPUT"){let l=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(l))return!0}let s=-1,u=-1;if(a){if(u=qc(i,Op(n,o)),u<0)return!0;s=qc(i,Op(e,r),u>=0?u:1/0)}else{if(s=qc(i,Op(e,r)),s<0)return!1;u=qc(i,Op(n,o),s>=0?s:1/0)}return s>=0?u>=0?s<=u:!0:u>=0?!1:!!a}catch(i){}return!!a}function bDe(t,e,r){let n=t.contentWindow;if(!n)return;let o=!1,a;try{a=n.document.readyState}catch(s){return}if(a!=="complete"){let s=setTimeout(()=>{o||(e(),o=!0)},r);t.addEventListener("load",()=>{clearTimeout(s),o=!0,e()});return}let i="about:blank";if(n.location.href!==i||t.src===i||t.src==="")return setTimeout(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}function SDe(t,e,r){let n=!1,o;try{o=t.sheet}catch(i){return}if(o)return;let a=setTimeout(()=>{n||(e(),n=!0)},r);t.addEventListener("load",()=>{clearTimeout(a),n=!0,e()})}function EDe(t,e){let{doc:r,mirror:n,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskAttributeFn:u,maskTextClass:l,unmaskTextClass:c,maskTextSelector:f,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:m={},maskTextFn:g,maskInputFn:v,dataURLOptions:h={},inlineImages:y,recordCanvas:b,keepIframeSrcFn:E,newlyAddedElement:w=!1}=e,S=TDe(r,n);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:Br.Document,childNodes:[],compatMode:t.compatMode}:{type:Br.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:Br.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:S};case t.ELEMENT_NODE:return xDe(t,{doc:r,blockClass:o,blockSelector:a,unblockSelector:i,inlineStylesheet:p,maskAttributeFn:u,maskInputOptions:m,maskInputFn:v,dataURLOptions:h,inlineImages:y,recordCanvas:b,keepIframeSrcFn:E,newlyAddedElement:w,rootId:S,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:f,unmaskTextSelector:d});case t.TEXT_NODE:return wDe(t,{maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:f,unmaskTextSelector:d,maskTextFn:g,maskInputOptions:m,maskInputFn:v,rootId:S});case t.CDATA_SECTION_NODE:return{type:Br.CDATA,textContent:"",rootId:S};case t.COMMENT_NODE:return{type:Br.Comment,textContent:t.textContent||"",rootId:S};default:return!1}}function TDe(t,e){if(!e.hasNode(t))return;let r=e.getId(t);return r===1?void 0:r}function wDe(t,e){let{maskAllText:r,maskTextClass:n,unmaskTextClass:o,maskTextSelector:a,unmaskTextSelector:i,maskTextFn:s,maskInputOptions:u,maskInputFn:l,rootId:c}=e,f=t.parentNode&&t.parentNode.tagName,d=t.textContent,p=f==="STYLE"?!0:void 0,m=f==="SCRIPT"?!0:void 0,g=f==="TEXTAREA"?!0:void 0;if(p&&d){try{t.nextSibling||t.previousSibling||Ew([t,"access",h=>h.parentNode,"access",h=>h.sheet,"optionalAccess",h=>h.cssRules])&&(d=Tw(t.parentNode.sheet))}catch(h){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${h}`,t)}d=Cw(d,_2())}m&&(d="SCRIPT_PLACEHOLDER");let v=Mp(t,n,a,o,i,r);if(!p&&!m&&!g&&d&&v&&(d=s?s(d,t.parentElement):d.replace(/[\S]/g,"*")),g&&d&&(u.textarea||v)&&(d=l?l(d,t.parentNode):d.replace(/[\S]/g,"*")),f==="OPTION"&&d){let h=qw({type:null,tagName:f,maskInputOptions:u});d=Ny({isMasked:Mp(t,n,a,o,i,h),element:t,value:d,maskInputFn:l})}return{type:Br.Text,textContent:d||"",isStyle:p,rootId:c}}function xDe(t,e){let{doc:r,blockClass:n,blockSelector:o,unblockSelector:a,inlineStylesheet:i,maskInputOptions:s={},maskAttributeFn:u,maskInputFn:l,dataURLOptions:c={},inlineImages:f,recordCanvas:d,keepIframeSrcFn:p,newlyAddedElement:m=!1,rootId:g,maskAllText:v,maskTextClass:h,unmaskTextClass:y,maskTextSelector:b,unmaskTextSelector:E}=e,w=yDe(t,n,o,a),S=uDe(t),C={},P=t.attributes.length;for(let O=0;OU.href===t.href),F=null;O&&(F=Tw(O)),F&&(delete C.rel,delete C.href,C._cssText=Cw(F,O.href))}if(S==="style"&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){let O=Tw(t.sheet);O&&(C._cssText=Cw(O,_2()))}if(S==="input"||S==="textarea"||S==="select"||S==="option"){let O=t,F=v2(O),U=xw(O,GM(S),F),J=O.checked;if(F!=="submit"&&F!=="button"&&U){let K=Mp(O,h,b,y,E,qw({type:F,tagName:GM(S),maskInputOptions:s}));C.value=Ny({isMasked:K,element:O,value:U,maskInputFn:l})}J&&(C.checked=J)}if(S==="option"&&(t.selected&&!s.select?C.selected=!0:delete C.selected),S==="canvas"&&d){if(t.__context==="2d")aDe(t)||(C.rr_dataURL=t.toDataURL(c.type,c.quality));else if(!("__context"in t)){let O=t.toDataURL(c.type,c.quality),F=document.createElement("canvas");F.width=t.width,F.height=t.height;let U=F.toDataURL(c.type,c.quality);O!==U&&(C.rr_dataURL=O)}}if(S==="img"&&f){Ip||(Ip=r.createElement("canvas"),hK=Ip.getContext("2d"));let O=t,F=O.crossOrigin;O.crossOrigin="anonymous";let U=()=>{O.removeEventListener("load",U);try{Ip.width=O.naturalWidth,Ip.height=O.naturalHeight,hK.drawImage(O,0,0),C.rr_dataURL=Ip.toDataURL(c.type,c.quality)}catch(J){console.warn(`Cannot inline img src=${O.currentSrc}! Error: ${J}`)}F?C.crossOrigin=F:O.removeAttribute("crossorigin")};O.complete&&O.naturalWidth!==0?U():O.addEventListener("load",U)}if((S==="audio"||S==="video")&&(C.rr_mediaState=t.paused?"paused":"played",C.rr_mediaCurrentTime=t.currentTime),m||(t.scrollLeft&&(C.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(C.rr_scrollTop=t.scrollTop)),w){let{width:O,height:F}=t.getBoundingClientRect();C={class:C.class,rr_width:`${O}px`,rr_height:`${F}px`}}S==="iframe"&&!p(C.src)&&(t.contentDocument||(C.rr_src=C.src),delete C.src);let k;try{customElements.get(S)&&(k=!0)}catch(O){}return{type:Br.Element,tagName:S,attributes:C,childNodes:[],isSVG:vDe(t)||void 0,needBlock:w,rootId:g,isCustom:k}}function Vt(t){return t==null?"":t.toLowerCase()}function CDe(t,e){if(e.comment&&t.type===Br.Comment)return!0;if(t.type===Br.Element){if(e.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"||t.attributes.rel==="modulepreload")&&t.attributes.as==="script"||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&t.attributes.href.endsWith(".js")))return!0;if(e.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(Vt(t.attributes.name).match(/^msapplication-tile(image|color)$/)||Vt(t.attributes.name)==="application-name"||Vt(t.attributes.rel)==="icon"||Vt(t.attributes.rel)==="apple-touch-icon"||Vt(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(e.headMetaDescKeywords&&Vt(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(Vt(t.attributes.property).match(/^(og|twitter|fb):/)||Vt(t.attributes.name).match(/^(og|twitter):/)||Vt(t.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(Vt(t.attributes.name)==="robots"||Vt(t.attributes.name)==="googlebot"||Vt(t.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(Vt(t.attributes.name)==="author"||Vt(t.attributes.name)==="generator"||Vt(t.attributes.name)==="framework"||Vt(t.attributes.name)==="publisher"||Vt(t.attributes.name)==="progid"||Vt(t.attributes.property).match(/^article:/)||Vt(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(Vt(t.attributes.name)==="google-site-verification"||Vt(t.attributes.name)==="yandex-verification"||Vt(t.attributes.name)==="csrf-token"||Vt(t.attributes.name)==="p:domain_verify"||Vt(t.attributes.name)==="verify-v1"||Vt(t.attributes.name)==="verification"||Vt(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Rp(t,e){let{doc:r,mirror:n,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskTextClass:u,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:f,skipChild:d=!1,inlineStylesheet:p=!0,maskInputOptions:m={},maskAttributeFn:g,maskTextFn:v,maskInputFn:h,slimDOMOptions:y,dataURLOptions:b={},inlineImages:E=!1,recordCanvas:w=!1,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:P=5e3,onStylesheetLoad:k,stylesheetLoadTimeout:O=5e3,keepIframeSrcFn:F=()=>!1,newlyAddedElement:U=!1}=e,{preserveWhiteSpace:J=!0}=e,K=EDe(t,{doc:r,mirror:n,blockClass:o,blockSelector:a,maskAllText:s,unblockSelector:i,maskTextClass:u,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:g,maskTextFn:v,maskInputFn:h,dataURLOptions:b,inlineImages:E,recordCanvas:w,keepIframeSrcFn:F,newlyAddedElement:U});if(!K)return console.warn(t,"not serialized"),null;let Z;n.hasNode(t)?Z=n.getId(t):CDe(K,y)||!J&&K.type===Br.Text&&!K.isStyle&&!K.textContent.replace(/^\s+|\s+$/gm,"").length?Z=Ay:Z=y2();let G=Object.assign(K,{id:Z});if(n.add(t,G),Z===Ay)return null;S&&S(t);let Q=!d;if(G.type===Br.Element){Q=Q&&!G.needBlock,delete G.needBlock;let N=t.shadowRoot;N&&Ry(N)&&(G.isShadowHost=!0)}if((G.type===Br.Document||G.type===Br.Element)&&Q){y.headWhitespace&&G.type===Br.Element&&G.tagName==="head"&&(J=!1);let N={doc:r,mirror:n,blockClass:o,blockSelector:a,maskAllText:s,unblockSelector:i,maskTextClass:u,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:f,skipChild:d,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:g,maskTextFn:v,maskInputFn:h,slimDOMOptions:y,dataURLOptions:b,inlineImages:E,recordCanvas:w,preserveWhiteSpace:J,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:P,onStylesheetLoad:k,stylesheetLoadTimeout:O,keepIframeSrcFn:F};for(let j of Array.from(t.childNodes)){let V=Rp(j,N);V&&G.childNodes.push(V)}if(ZRe(t)&&t.shadowRoot)for(let j of Array.from(t.shadowRoot.childNodes)){let V=Rp(j,N);V&&(Ry(t.shadowRoot)&&(V.isShadow=!0),G.childNodes.push(V))}}return t.parentNode&&Oy(t.parentNode)&&Ry(t.parentNode)&&(G.isShadow=!0),G.type===Br.Element&&G.tagName==="iframe"&&bDe(t,()=>{let N=t.contentDocument;if(N&&C){let j=Rp(N,{doc:N,mirror:n,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskTextClass:u,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:g,maskTextFn:v,maskInputFn:h,slimDOMOptions:y,dataURLOptions:b,inlineImages:E,recordCanvas:w,preserveWhiteSpace:J,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:P,onStylesheetLoad:k,stylesheetLoadTimeout:O,keepIframeSrcFn:F});j&&C(t,j)}},P),G.type===Br.Element&&G.tagName==="link"&&G.attributes.rel==="stylesheet"&&SDe(t,()=>{if(k){let N=Rp(t,{doc:r,mirror:n,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskTextClass:u,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:g,maskTextFn:v,maskInputFn:h,slimDOMOptions:y,dataURLOptions:b,inlineImages:E,recordCanvas:w,preserveWhiteSpace:J,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:P,onStylesheetLoad:k,stylesheetLoadTimeout:O,keepIframeSrcFn:F});N&&k(t,N)}},O),G}function IDe(t,e){let{mirror:r=new ww,blockClass:n="rr-block",blockSelector:o=null,unblockSelector:a=null,maskAllText:i=!1,maskTextClass:s="rr-mask",unmaskTextClass:u=null,maskTextSelector:l=null,unmaskTextSelector:c=null,inlineStylesheet:f=!0,inlineImages:d=!1,recordCanvas:p=!1,maskAllInputs:m=!1,maskAttributeFn:g,maskTextFn:v,maskInputFn:h,slimDOM:y=!1,dataURLOptions:b,preserveWhiteSpace:E,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:P,stylesheetLoadTimeout:k,keepIframeSrcFn:O=()=>!1}=e||{};return Rp(t,{doc:t,mirror:r,blockClass:n,blockSelector:o,unblockSelector:a,maskAllText:i,maskTextClass:s,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:f,maskInputOptions:m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:m===!1?{}:m,maskAttributeFn:g,maskTextFn:v,maskInputFn:h,slimDOMOptions:y===!0||y==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:y==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:y===!1?{}:y,dataURLOptions:b,inlineImages:d,recordCanvas:p,preserveWhiteSpace:E,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:P,stylesheetLoadTimeout:k,keepIframeSrcFn:O,newlyAddedElement:!1})}function Zu(t){let e,r=t[0],n=1;for(;nr.call(e,...i)),e=void 0)}return r}function Ln(t,e,r=document){let n={capture:!0,passive:!0};return r.addEventListener(t,e,n),()=>r.removeEventListener(t,e,n)}var kp=`Please stop import mirror directly. Instead of that,\r +Error:`,o)}}function RPe(){return _Pe.onCLS(t=>{bf("cls",{metric:t}),AV=t},{reportAllChanges:!0})}function DPe(){return bPe.onFID(t=>{bf("fid",{metric:t}),MV=t})}function NPe(){return EPe.onLCP(t=>{bf("lcp",{metric:t}),FV=t})}function APe(){return wPe.onTTFB(t=>{bf("ttfb",{metric:t}),qV=t})}function MPe(){return SPe.onINP(t=>{bf("inp",{metric:t}),jV=t})}function yy(t,e,r,n,o=!1){LV(t,e);let a;return HT[t]||(a=r(),HT[t]=!0),n&&e({metric:n}),BV(t,e,o?a:void 0)}function FPe(t){let e={};t==="event"&&(e.durationThreshold=0),TPe.observe(t,r=>{bf(t,{entries:r})},e)}function LV(t,e){vy[t]=vy[t]||[],vy[t].push(e)}function BV(t,e,r){return()=>{r&&r();let n=vy[t];if(!n)return;let o=n.indexOf(e);o!==-1&&n.splice(o,1)}}Vu.addClsInstrumentationHandler=xPe;Vu.addFidInstrumentationHandler=kPe;Vu.addInpInstrumentationHandler=PPe;Vu.addLcpInstrumentationHandler=CPe;Vu.addPerformanceInstrumentationHandler=OPe;Vu.addTtfbInstrumentationHandler=IPe});var UV=_(GT=>{"use strict";Object.defineProperty(GT,"__esModule",{value:!0});function qPe(t){return typeof t=="number"&&isFinite(t)}function jPe(t,{startTimestamp:e,...r}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...r})}GT._startChild=jPe;GT.isMeasurementValue=qPe});var SM=_(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});var xs=Ze(),Lt=se(),To=Qn(),Pc=Sf(),Cs=Eo(),LPe=zT(),Is=UV(),BPe=gy(),UPe=2147483647;function Lr(t){return t/1e3}function bM(){return Cs.WINDOW&&Cs.WINDOW.addEventListener&&Cs.WINDOW.performance}var zV=0,fr={},pi,_y;function zPe(){let t=bM();if(t&&Lt.browserPerformanceTimeOrigin){t.mark&&Cs.WINDOW.performance.mark("sentry-tracing-init");let e=KPe(),r=GPe(),n=VPe(),o=YPe();return()=>{e(),r(),n(),o()}}return()=>{}}function WPe(){Pc.addPerformanceInstrumentationHandler("longtask",({entries:t})=>{for(let e of t){let r=xs.getActiveTransaction();if(!r)return;let n=Lr(Lt.browserPerformanceTimeOrigin+e.startTime),o=Lr(e.duration);r.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+o})}})}function $Pe(){Pc.addPerformanceInstrumentationHandler("event",({entries:t})=>{for(let e of t){let r=xs.getActiveTransaction();if(!r)return;if(e.name==="click"){let n=Lr(Lt.browserPerformanceTimeOrigin+e.startTime),o=Lr(e.duration),a={description:Lt.htmlTreeAsString(e.target),op:`ui.interaction.${e.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+o},i=Lt.getComponentName(e.target);i&&(a.attributes={"ui.component_name":i}),r.startChild(a)}}})}function HPe(t,e){if(bM()&&Lt.browserPerformanceTimeOrigin){let n=JPe(t,e);return()=>{n()}}return()=>{}}function GPe(){return Pc.addClsInstrumentationHandler(({metric:t})=>{let e=t.entries[t.entries.length-1];e&&(To.DEBUG_BUILD&&Lt.logger.log("[Measurements] Adding CLS"),fr.cls={value:t.value,unit:""},_y=e)},!0)}function VPe(){return Pc.addLcpInstrumentationHandler(({metric:t})=>{let e=t.entries[t.entries.length-1];e&&(To.DEBUG_BUILD&&Lt.logger.log("[Measurements] Adding LCP"),fr.lcp={value:t.value,unit:"millisecond"},pi=e)},!0)}function KPe(){return Pc.addFidInstrumentationHandler(({metric:t})=>{let e=t.entries[t.entries.length-1];if(!e)return;let r=Lr(Lt.browserPerformanceTimeOrigin),n=Lr(e.startTime);To.DEBUG_BUILD&&Lt.logger.log("[Measurements] Adding FID"),fr.fid={value:t.value,unit:"millisecond"},fr["mark.fid"]={value:r+n,unit:"second"}})}function YPe(){return Pc.addTtfbInstrumentationHandler(({metric:t})=>{t.entries[t.entries.length-1]&&(To.DEBUG_BUILD&&Lt.logger.log("[Measurements] Adding TTFB"),fr.ttfb={value:t.value,unit:"millisecond"})})}var WV={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function JPe(t,e){return Pc.addInpInstrumentationHandler(({metric:r})=>{if(r.value===void 0)return;let n=r.entries.find(b=>b.duration===r.value&&WV[b.name]!==void 0),o=xs.getClient();if(!n||!o)return;let a=WV[n.name],i=o.getOptions(),s=Lr(Lt.browserPerformanceTimeOrigin+n.startTime),u=Lr(r.value),l=n.interactionId!==void 0?t[n.interactionId]:void 0;if(l===void 0)return;let{routeName:c,parentContext:p,activeTransaction:d,user:f,replayId:m}=l,g=f!==void 0?f.email||f.id||f.ip_address:void 0,v=d!==void 0?d.getProfileId():void 0,h=new xs.Span({startTimestamp:s,endTimestamp:s+u,op:`ui.interaction.${a}`,name:Lt.htmlTreeAsString(n.target),attributes:{release:i.release,environment:i.environment,transaction:c,...g!==void 0&&g!==""?{user:g}:{},...v!==void 0?{profile_id:v}:{},...m!==void 0?{replay_id:m}:{}},exclusiveTime:r.value,measurements:{inp:{value:r.value,unit:"millisecond"}}}),y=n1e(p,i,e);if(y&&Math.random(){To.DEBUG_BUILD&&Lt.logger.error("Error while sending interaction:",w)});return}})}function XPe(t){let e=bM();if(!e||!Cs.WINDOW.performance.getEntries||!Lt.browserPerformanceTimeOrigin)return;To.DEBUG_BUILD&&Lt.logger.log("[Tracing] Adding & adjusting spans using Performance API");let r=Lr(Lt.browserPerformanceTimeOrigin),n=e.getEntries(),{op:o,start_timestamp:a}=xs.spanToJSON(t);if(n.slice(zV).forEach(i=>{let s=Lr(i.startTime),u=Lr(i.duration);if(!(t.op==="navigation"&&a&&r+s{if(!fr[s]||!a||r>=a)return;let u=fr[s].value,l=r+Lr(u),c=Math.abs((l-a)*1e3),p=c-u;To.DEBUG_BUILD&&Lt.logger.log(`[Measurements] Normalized ${s} from ${u} to ${c} (${p})`),fr[s].value=c});let i=fr["mark.fid"];i&&fr.fid&&(Is._startChild(t,{description:"first input delay",endTimestamp:i.value+Lr(fr.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:i.value}),delete fr["mark.fid"]),"fcp"in fr||delete fr.cls,Object.keys(fr).forEach(s=>{xs.setMeasurement(s,fr[s].value,fr[s].unit)}),t1e(t)}pi=void 0,_y=void 0,fr={}}function $V(t,e,r,n,o){let a=o+r,i=a+n;return Is._startChild(t,{description:e.name,endTimestamp:i,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function ZPe(t,e,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{VT(t,e,n,r)}),VT(t,e,"secureConnection",r,"TLS/SSL","connectEnd"),VT(t,e,"fetch",r,"cache","domainLookupStart"),VT(t,e,"domainLookup",r,"DNS"),QPe(t,e,r)}function VT(t,e,r,n,o,a){let i=a?e[a]:e[`${r}End`],s=e[`${r}Start`];!s||!i||Is._startChild(t,{op:"browser",origin:"auto.browser.browser.metrics",description:o||r,startTimestamp:n+Lr(s),endTimestamp:n+Lr(i)})}function QPe(t,e,r){e.responseEnd&&(Is._startChild(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:r+Lr(e.requestStart),endTimestamp:r+Lr(e.responseEnd)}),Is._startChild(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:r+Lr(e.responseStart),endTimestamp:r+Lr(e.responseEnd)}))}function HV(t,e,r,n,o,a){if(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")return;let i=Lt.parseUrl(r),s={};_M(s,e,"transferSize","http.response_transfer_size"),_M(s,e,"encodedBodySize","http.response_content_length"),_M(s,e,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in e&&(s["resource.render_blocking_status"]=e.renderBlockingStatus),i.protocol&&(s["url.scheme"]=i.protocol.split(":").pop()),i.host&&(s["server.address"]=i.host),s["url.same_origin"]=r.includes(Cs.WINDOW.location.origin);let u=a+n,l=u+o;Is._startChild(t,{description:r.replace(Cs.WINDOW.location.origin,""),endTimestamp:l,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:u,data:s})}function e1e(t){let e=Cs.WINDOW.navigator;if(!e)return;let r=e.connection;r&&(r.effectiveType&&t.setTag("effectiveConnectionType",r.effectiveType),r.type&&t.setTag("connectionType",r.type),Is.isMeasurementValue(r.rtt)&&(fr["connection.rtt"]={value:r.rtt,unit:"millisecond"})),Is.isMeasurementValue(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`),Is.isMeasurementValue(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}function t1e(t){pi&&(To.DEBUG_BUILD&&Lt.logger.log("[Measurements] Adding LCP Data"),pi.element&&t.setTag("lcp.element",Lt.htmlTreeAsString(pi.element)),pi.id&&t.setTag("lcp.id",pi.id),pi.url&&t.setTag("lcp.url",pi.url.trim().slice(0,200)),t.setTag("lcp.size",pi.size)),_y&&_y.sources&&(To.DEBUG_BUILD&&Lt.logger.log("[Measurements] Adding CLS Data"),_y.sources.forEach((e,r)=>t.setTag(`cls.source.${r+1}`,Lt.htmlTreeAsString(e.node))))}function _M(t,e,r,n){let o=e[r];o!=null&&o{"use strict";Object.defineProperty(KT,"__esModule",{value:!0});var fi=Ze(),Oc=se();function o1e(t,e,r,n,o="auto.http.browser"){if(!fi.hasTracingEnabled()||!t.fetchData)return;let a=e(t.fetchData.url);if(t.endTimestamp&&a){let f=t.fetchData.__span;if(!f)return;let m=n[f];m&&(i1e(m,t),delete n[f]);return}let i=fi.getCurrentScope(),s=fi.getClient(),{method:u,url:l}=t.fetchData,c=a1e(l),p=c?Oc.parseUrl(c).host:void 0,d=a?fi.startInactiveSpan({name:`${u} ${l}`,onlyIfParent:!0,attributes:{url:l,type:"fetch","http.method":u,"http.url":c,"server.address":p,[fi.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:o},op:"http.client"}):void 0;if(d&&(t.fetchData.__span=d.spanContext().spanId,n[d.spanContext().spanId]=d),r(t.fetchData.url)&&s){let f=t.args[0];t.args[1]=t.args[1]||{};let m=t.args[1];m.headers=GV(f,s,i,m,d)}return d}function GV(t,e,r,n,o){let a=o||r.getSpan(),i=fi.getIsolationScope(),{traceId:s,spanId:u,sampled:l,dsc:c}={...i.getPropagationContext(),...r.getPropagationContext()},p=a?fi.spanToTraceHeader(a):Oc.generateSentryTraceHeader(s,u,l),d=Oc.dynamicSamplingContextToSentryBaggageHeader(c||(a?fi.getDynamicSamplingContextFromSpan(a):fi.getDynamicSamplingContextFromClient(s,e,r))),f=n.headers||(typeof Request!="undefined"&&Oc.isInstanceOf(t,Request)?t.headers:void 0);if(f)if(typeof Headers!="undefined"&&Oc.isInstanceOf(f,Headers)){let m=new Headers(f);return m.append("sentry-trace",p),d&&m.append(Oc.BAGGAGE_HEADER_NAME,d),m}else if(Array.isArray(f)){let m=[...f,["sentry-trace",p]];return d&&m.push([Oc.BAGGAGE_HEADER_NAME,d]),m}else{let m="baggage"in f?f.baggage:void 0,g=[];return Array.isArray(m)?g.push(...m):m&&g.push(m),d&&g.push(d),{...f,"sentry-trace":p,baggage:g.length>0?g.join(","):void 0}}else return{"sentry-trace":p,baggage:d}}function a1e(t){try{return new URL(t).href}catch(e){return}}function i1e(t,e){if(e.response){fi.setHttpStatus(t,e.response.status);let r=e.response&&e.response.headers&&e.response.headers.get("content-length");if(r){let n=parseInt(r);n>0&&t.setAttribute("http.response_content_length",n)}}else e.error&&t.setStatus("internal_error");t.end()}KT.addTracingHeadersToFetchRequest=GV;KT.instrumentFetchRequest=o1e});var JT=_(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});var wa=Ze(),xa=se(),s1e=EM(),u1e=Sf(),l1e=Eo(),YT=["localhost",/^\/(?!\/)/],TM={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:YT,tracePropagationTargets:YT};function c1e(t){let{traceFetch:e,traceXHR:r,tracePropagationTargets:n,tracingOrigins:o,shouldCreateSpanForRequest:a,enableHTTPTimings:i}={traceFetch:TM.traceFetch,traceXHR:TM.traceXHR,...t},s=typeof a=="function"?a:c=>!0,u=c=>YV(c,n||o),l={};e&&xa.addFetchInstrumentationHandler(c=>{let p=s1e.instrumentFetchRequest(c,s,u,l);if(p){let d=XV(c.fetchData.url),f=d?xa.parseUrl(d).host:void 0;p.setAttributes({"http.url":d,"server.address":f})}i&&p&&VV(p)}),r&&xa.addXhrInstrumentationHandler(c=>{let p=JV(c,s,u,l);i&&p&&VV(p)})}function d1e(t){return t.entryType==="resource"&&"initiatorType"in t&&typeof t.nextHopProtocol=="string"&&(t.initiatorType==="fetch"||t.initiatorType==="xmlhttprequest")}function VV(t){let{url:e}=wa.spanToJSON(t).data||{};if(!e||typeof e!="string")return;let r=u1e.addPerformanceInstrumentationHandler("resource",({entries:n})=>{n.forEach(o=>{d1e(o)&&o.name.endsWith(e)&&(p1e(o).forEach(i=>t.setAttribute(...i)),setTimeout(r))})})}function KV(t){let e="unknown",r="unknown",n="";for(let o of t){if(o==="/"){[e,r]=t.split("/");break}if(!isNaN(Number(o))){e=n==="h"?"http":n,r=t.split(n)[1];break}n+=o}return n===t&&(e=n),{name:e,version:r}}function mi(t=0){return((xa.browserPerformanceTimeOrigin||performance.timeOrigin)+t)/1e3}function p1e(t){let{name:e,version:r}=KV(t.nextHopProtocol),n=[];return n.push(["network.protocol.version",r],["network.protocol.name",e]),xa.browserPerformanceTimeOrigin?[...n,["http.request.redirect_start",mi(t.redirectStart)],["http.request.fetch_start",mi(t.fetchStart)],["http.request.domain_lookup_start",mi(t.domainLookupStart)],["http.request.domain_lookup_end",mi(t.domainLookupEnd)],["http.request.connect_start",mi(t.connectStart)],["http.request.secure_connection_start",mi(t.secureConnectionStart)],["http.request.connection_end",mi(t.connectEnd)],["http.request.request_start",mi(t.requestStart)],["http.request.response_start",mi(t.responseStart)],["http.request.response_end",mi(t.responseEnd)]]:n}function YV(t,e){return xa.stringMatchesSomePattern(t,e||YT)}function JV(t,e,r,n){let o=t.xhr,a=o&&o[xa.SENTRY_XHR_DATA_KEY];if(!wa.hasTracingEnabled()||!o||o.__sentry_own_request__||!a)return;let i=e(a.url);if(t.endTimestamp&&i){let f=o.__sentry_xhr_span_id__;if(!f)return;let m=n[f];m&&a.status_code!==void 0&&(wa.setHttpStatus(m,a.status_code),m.end(),delete n[f]);return}let s=wa.getCurrentScope(),u=wa.getIsolationScope(),l=XV(a.url),c=l?xa.parseUrl(l).host:void 0,p=i?wa.startInactiveSpan({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,"http.url":l,url:a.url,"server.address":c,[wa.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser"},op:"http.client"}):void 0;p&&(o.__sentry_xhr_span_id__=p.spanContext().spanId,n[o.__sentry_xhr_span_id__]=p);let d=wa.getClient();if(o.setRequestHeader&&r(a.url)&&d){let{traceId:f,spanId:m,sampled:g,dsc:v}={...u.getPropagationContext(),...s.getPropagationContext()},h=p?wa.spanToTraceHeader(p):xa.generateSentryTraceHeader(f,m,g),y=xa.dynamicSamplingContextToSentryBaggageHeader(v||(p?wa.getDynamicSamplingContextFromSpan(p):wa.getDynamicSamplingContextFromClient(f,d,s)));f1e(o,h,y)}return p}function f1e(t,e,r){try{t.setRequestHeader("sentry-trace",e),r&&t.setRequestHeader(xa.BAGGAGE_HEADER_NAME,r)}catch(n){}}function XV(t){try{return new URL(t,l1e.WINDOW.location.origin).href}catch(e){return}}Ku.DEFAULT_TRACE_PROPAGATION_TARGETS=YT;Ku.defaultRequestInstrumentationOptions=TM;Ku.extractNetworkProtocol=KV;Ku.instrumentOutgoingRequests=c1e;Ku.shouldAttachHeaders=YV;Ku.xhrCallback=JV});var QV=_(wM=>{"use strict";Object.defineProperty(wM,"__esModule",{value:!0});var by=se(),ZV=Qn(),Sy=Eo();function m1e(t,e=!0,r=!0){if(!Sy.WINDOW||!Sy.WINDOW.location){ZV.DEBUG_BUILD&&by.logger.warn("Could not initialize routing instrumentation due to invalid location");return}let n=Sy.WINDOW.location.href,o;e&&(o=t({name:Sy.WINDOW.location.pathname,startTimestamp:by.browserPerformanceTimeOrigin?by.browserPerformanceTimeOrigin/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),r&&by.addHistoryInstrumentationHandler(({to:a,from:i})=>{if(i===void 0&&n&&n.indexOf(a)!==-1){n=void 0;return}i!==a&&(n=void 0,o&&(ZV.DEBUG_BUILD&&by.logger.log(`[Tracing] Finishing current transaction with op: ${o.op}`),o.end()),o=t({name:Sy.WINDOW.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}wM.instrumentRoutingWithDefaults=m1e});var o7=_(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});var Ca=Ze(),Ps=se(),Yu=Qn(),h1e=eM(),e7=Sf(),Ey=SM(),r7=JT(),g1e=QV(),Rc=Eo(),n7="BrowserTracing",v1e={...Ca.TRACING_DEFAULTS,markBackgroundTransactions:!0,routingInstrumentation:g1e.instrumentRoutingWithDefaults,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...r7.defaultRequestInstrumentationOptions},t7=10,xM=class{constructor(e){this.name=n7,this._hasSetTracePropagationTargets=!1,Ca.addTracingExtensions(),Yu.DEBUG_BUILD&&(this._hasSetTracePropagationTargets=!!(e&&(e.tracePropagationTargets||e.tracingOrigins))),this.options={...v1e,...e},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=Ey.startTrackingWebVitals(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&Ey.startTrackingINP(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&Ey.startTrackingLongTasks(),this.options._experiments.enableInteractions&&Ey.startTrackingInteractions(),this._latestRoute={name:void 0,context:void 0}}setupOnce(e,r){this._getCurrentHub=r;let o=r().getClient(),a=o&&o.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:s,startTransactionOnPageLoad:u,markBackgroundTransactions:l,traceFetch:c,traceXHR:p,shouldCreateSpanForRequest:d,enableHTTPTimings:f,_experiments:m}=this.options,g=a&&a.tracePropagationTargets,v=g||this.options.tracePropagationTargets;Yu.DEBUG_BUILD&&this._hasSetTracePropagationTargets&&g&&Ps.logger.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),i(h=>{let y=this._createRouteTransaction(h);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(y,h,r),y},u,s),l&&h1e.registerBackgroundTabDetection(),m.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),r7.instrumentOutgoingRequests({traceFetch:c,traceXHR:p,tracePropagationTargets:v,shouldCreateSpanForRequest:d,enableHTTPTimings:f})}_createRouteTransaction(e){if(!this._getCurrentHub){Yu.DEBUG_BUILD&&Ps.logger.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`);return}let r=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:o,finalTimeout:a,heartbeatInterval:i}=this.options,s=e.op==="pageload",u;if(s){let f=s?CM("sentry-trace"):"",m=s?CM("baggage"):void 0,{traceId:g,dsc:v,parentSpanId:h,sampled:y}=Ps.propagationContextFromHeaders(f,m);u={traceId:g,parentSpanId:h,parentSampled:y,...e,metadata:{...e.metadata,dynamicSamplingContext:v},trimEnd:!0}}else u={trimEnd:!0,...e};let l=typeof n=="function"?n(u):u,c=l===void 0?{...u,sampled:!1}:l;c.metadata=c.name!==u.name?{...c.metadata,source:"custom"}:c.metadata,this._latestRoute.name=c.name,this._latestRoute.context=c,c.sampled===!1&&Yu.DEBUG_BUILD&&Ps.logger.log(`[Tracing] Will not send ${c.op} transaction because of beforeNavigate.`),Yu.DEBUG_BUILD&&Ps.logger.log(`[Tracing] Starting ${c.op} transaction on scope`);let{location:p}=Rc.WINDOW,d=Ca.startIdleTransaction(r,c,o,a,!0,{location:p},i,s);return s&&Rc.WINDOW.document&&(Rc.WINDOW.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(Rc.WINDOW.document.readyState)&&d.sendAutoFinishSignal()}),["interactive","complete"].includes(Rc.WINDOW.document.readyState)&&d.sendAutoFinishSignal()),d.registerBeforeFinishCallback(f=>{this._collectWebVitals(),Ey.addPerformanceEntries(f)}),d}_registerInteractionListener(){let e,r=()=>{let{idleTimeout:n,finalTimeout:o,heartbeatInterval:a}=this.options,i="ui.action.click",s=Ca.getActiveTransaction();if(s&&s.op&&["navigation","pageload"].includes(s.op)){Yu.DEBUG_BUILD&&Ps.logger.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`);return}if(e&&(e.setFinishReason("interactionInterrupted"),e.end(),e=void 0),!this._getCurrentHub){Yu.DEBUG_BUILD&&Ps.logger.warn(`[Tracing] Did not create ${i} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRoute.name){Yu.DEBUG_BUILD&&Ps.logger.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return}let u=this._getCurrentHub(),{location:l}=Rc.WINDOW,c={name:this._latestRoute.name,op:i,trimEnd:!0,data:{[Ca.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:this._latestRoute.context?y1e(this._latestRoute.context):"url"}};e=Ca.startIdleTransaction(u,c,n,o,!0,{location:l},a)};["click"].forEach(n=>{Rc.WINDOW.document&&addEventListener(n,r,{once:!1,capture:!0})})}_registerInpInteractionListener(){let e=({entries:r})=>{let n=Ca.getClient(),o=n!==void 0&&n.getIntegrationByName!==void 0?n.getIntegrationByName("Replay"):void 0,a=o!==void 0?o.getReplayId():void 0,i=Ca.getActiveTransaction(),s=Ca.getCurrentScope(),u=s!==void 0?s.getUser():void 0;r.forEach(l=>{if(_1e(l)){let c=l.interactionId;if(c===void 0)return;let p=this._interactionIdToRouteNameMapping[c],d=l.duration,f=l.startTime,m=Object.keys(this._interactionIdToRouteNameMapping),g=m.length>0?m.reduce((v,h)=>this._interactionIdToRouteNameMapping[v].durationthis._interactionIdToRouteNameMapping[h]).some(h=>h.duration===d&&h.startTime===f)||!c)return;if(p)p.duration=Math.max(p.duration,d);else if(m.lengththis._interactionIdToRouteNameMapping[g].duration){let v=this._latestRoute.name,h=this._latestRoute.context;v&&h&&(g&&Object.keys(this._interactionIdToRouteNameMapping).length>=t7&&delete this._interactionIdToRouteNameMapping[g],this._interactionIdToRouteNameMapping[c]={routeName:v,duration:d,parentContext:h,user:u,activeTransaction:i,replayId:a,startTime:f})}}})};e7.addPerformanceInstrumentationHandler("event",e),e7.addPerformanceInstrumentationHandler("first-input",e)}};function CM(t){let e=Ps.getDomElement(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}function y1e(t){let e=t.attributes&&t.attributes[Ca.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],r=t.data&&t.data[Ca.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],n=t.metadata&&t.metadata.source;return e||r||n}function _1e(t){return"duration"in t}Ty.BROWSER_TRACING_INTEGRATION_ID=n7;Ty.BrowserTracing=xM;Ty.getMetaContent=CM});var d7=_(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});var wr=Ze(),ta=se(),Ju=Qn(),b1e=eM(),a7=Sf(),wy=SM(),s7=JT(),wo=Eo(),u7="BrowserTracing",S1e={...wr.TRACING_DEFAULTS,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...s7.defaultRequestInstrumentationOptions},E1e=(t={})=>{let e=Ju.DEBUG_BUILD?!!(t.tracePropagationTargets||t.tracingOrigins):!1;wr.addTracingExtensions(),!t.tracePropagationTargets&&t.tracingOrigins&&(t.tracePropagationTargets=t.tracingOrigins);let r={...S1e,...t},n=wy.startTrackingWebVitals(),o={};r.enableInp&&wy.startTrackingINP(o,r.interactionsSampleRate),r.enableLongTask&&wy.startTrackingLongTasks(),r._experiments.enableInteractions&&wy.startTrackingInteractions();let a={name:void 0,context:void 0};function i(s){let u=wr.getCurrentHub(),{beforeStartSpan:l,idleTimeout:c,finalTimeout:p,heartbeatInterval:d}=r,f=s.op==="pageload",m;if(f){let y=f?IM("sentry-trace"):"",b=f?IM("baggage"):void 0,{traceId:E,dsc:w,parentSpanId:S,sampled:C}=ta.propagationContextFromHeaders(y,b);m={traceId:E,parentSpanId:S,parentSampled:C,...s,metadata:{...s.metadata,dynamicSamplingContext:w},trimEnd:!0}}else m={trimEnd:!0,...s};let g=l?l(m):m;g.metadata=g.name!==m.name?{...g.metadata,source:"custom"}:g.metadata,a.name=g.name,a.context=g,g.sampled===!1&&Ju.DEBUG_BUILD&&ta.logger.log(`[Tracing] Will not send ${g.op} transaction because of beforeNavigate.`),Ju.DEBUG_BUILD&&ta.logger.log(`[Tracing] Starting ${g.op} transaction on scope`);let{location:v}=wo.WINDOW,h=wr.startIdleTransaction(u,g,c,p,!0,{location:v},d,f);return f&&wo.WINDOW.document&&(wo.WINDOW.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(wo.WINDOW.document.readyState)&&h.sendAutoFinishSignal()}),["interactive","complete"].includes(wo.WINDOW.document.readyState)&&h.sendAutoFinishSignal()),h.registerBeforeFinishCallback(y=>{n(),wy.addPerformanceEntries(y)}),h}return{name:u7,setupOnce:()=>{},afterAllSetup(s){let u=s.getOptions(),{markBackgroundSpan:l,traceFetch:c,traceXHR:p,shouldCreateSpanForRequest:d,enableHTTPTimings:f,_experiments:m}=r,g=u&&u.tracePropagationTargets,v=g||r.tracePropagationTargets;Ju.DEBUG_BUILD&&e&&g&&ta.logger.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let h,y=wo.WINDOW.location&&wo.WINDOW.location.href;if(s.on&&(s.on("startNavigationSpan",b=>{h&&(Ju.DEBUG_BUILD&&ta.logger.log(`[Tracing] Finishing current transaction with op: ${wr.spanToJSON(h).op}`),h.end()),h=i({op:"navigation",...b})}),s.on("startPageLoadSpan",b=>{h&&(Ju.DEBUG_BUILD&&ta.logger.log(`[Tracing] Finishing current transaction with op: ${wr.spanToJSON(h).op}`),h.end()),h=i({op:"pageload",...b})})),r.instrumentPageLoad&&s.emit&&wo.WINDOW.location){let b={name:wo.WINDOW.location.pathname,startTimestamp:ta.browserPerformanceTimeOrigin?ta.browserPerformanceTimeOrigin/1e3:void 0,origin:"auto.pageload.browser",attributes:{[wr.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"}};l7(s,b)}r.instrumentNavigation&&s.emit&&wo.WINDOW.location&&ta.addHistoryInstrumentationHandler(({to:b,from:E})=>{if(E===void 0&&y&&y.indexOf(b)!==-1){y=void 0;return}if(E!==b){y=void 0;let w={name:wo.WINDOW.location.pathname,origin:"auto.navigation.browser",attributes:{[wr.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"}};c7(s,w)}}),l&&b1e.registerBackgroundTabDetection(),m.enableInteractions&&T1e(r,a),r.enableInp&&x1e(o,a),s7.instrumentOutgoingRequests({traceFetch:c,traceXHR:p,tracePropagationTargets:v,shouldCreateSpanForRequest:d,enableHTTPTimings:f})},options:r}};function l7(t,e){if(!t.emit)return;t.emit("startPageLoadSpan",e);let r=wr.getActiveSpan();return(r&&wr.spanToJSON(r).op)==="pageload"?r:void 0}function c7(t,e){if(!t.emit)return;t.emit("startNavigationSpan",e);let r=wr.getActiveSpan();return(r&&wr.spanToJSON(r).op)==="navigation"?r:void 0}function IM(t){let e=ta.getDomElement(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}function T1e(t,e){let r,n=()=>{let{idleTimeout:o,finalTimeout:a,heartbeatInterval:i}=t,s="ui.action.click",u=wr.getActiveTransaction();if(u&&u.op&&["navigation","pageload"].includes(u.op)){Ju.DEBUG_BUILD&&ta.logger.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(r&&(r.setFinishReason("interactionInterrupted"),r.end(),r=void 0),!e.name){Ju.DEBUG_BUILD&&ta.logger.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}let{location:l}=wo.WINDOW,c={name:e.name,op:s,trimEnd:!0,data:{[wr.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:e.context?C1e(e.context):"url"}};r=wr.startIdleTransaction(wr.getCurrentHub(),c,o,a,!0,{location:l},i)};["click"].forEach(o=>{wo.WINDOW.document&&addEventListener(o,n,{once:!1,capture:!0})})}function w1e(t){return"duration"in t}var i7=10;function x1e(t,e){let r=({entries:n})=>{let o=wr.getClient(),a=o!==void 0&&o.getIntegrationByName!==void 0?o.getIntegrationByName("Replay"):void 0,i=a!==void 0?a.getReplayId():void 0,s=wr.getActiveTransaction(),u=wr.getCurrentScope(),l=u!==void 0?u.getUser():void 0;n.forEach(c=>{if(w1e(c)){let p=c.interactionId;if(p===void 0)return;let d=t[p],f=c.duration,m=c.startTime,g=Object.keys(t),v=g.length>0?g.reduce((h,y)=>t[h].durationt[y]).some(y=>y.duration===f&&y.startTime===m)||!p)return;if(d)d.duration=Math.max(d.duration,f);else if(g.lengtht[v].duration){let h=e.name,y=e.context;h&&y&&(v&&Object.keys(t).length>=i7&&delete t[v],t[p]={routeName:h,duration:f,parentContext:y,user:l,activeTransaction:s,replayId:i,startTime:m})}}})};a7.addPerformanceInstrumentationHandler("event",r),a7.addPerformanceInstrumentationHandler("first-input",r)}function C1e(t){let e=t.attributes&&t.attributes[wr.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],r=t.data&&t.data[wr.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],n=t.metadata&&t.metadata.source;return e||r||n}Dc.BROWSER_TRACING_INTEGRATION_ID=u7;Dc.browserTracingIntegration=E1e;Dc.getMetaContent=IM;Dc.startBrowserTracingNavigationSpan=c7;Dc.startBrowserTracingPageLoadSpan=l7});var f7=_((kM,xy)=>{"use strict";Object.defineProperty(kM,"__esModule",{value:!0});var p7=Ze(),Ef=se();function I1e(){let t=p7.getMainCarrier();if(!t.__SENTRY__)return;let e={mongodb(){let n=Ef.dynamicRequire(xy,"./node/integrations/mongo");return new n.Mongo},mongoose(){let n=Ef.dynamicRequire(xy,"./node/integrations/mongo");return new n.Mongo},mysql(){let n=Ef.dynamicRequire(xy,"./node/integrations/mysql");return new n.Mysql},pg(){let n=Ef.dynamicRequire(xy,"./node/integrations/postgres");return new n.Postgres}},r=Object.keys(e).filter(n=>!!Ef.loadModule(n)).map(n=>{try{return e[n]()}catch(o){return}}).filter(n=>n);r.length>0&&(t.__SENTRY__.integrations=[...t.__SENTRY__.integrations||[],...r])}function k1e(){p7.addTracingExtensions(),Ef.isNodeEnv()&&I1e()}kM.addExtensionMethods=k1e});var ZT=_(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});var Os=Ze(),m7=se(),P1e=nV(),O1e=oV(),R1e=aV(),D1e=sV(),N1e=lV(),A1e=dV(),M1e=fV(),F1e=mV(),h7=o7(),PM=d7(),g7=JT(),XT=Sf(),v7=EM(),q1e=f7();lt.IdleTransaction=Os.IdleTransaction;lt.Span=Os.Span;lt.SpanStatus=Os.SpanStatus;lt.Transaction=Os.Transaction;lt.extractTraceparentData=Os.extractTraceparentData;lt.getActiveTransaction=Os.getActiveTransaction;lt.hasTracingEnabled=Os.hasTracingEnabled;lt.spanStatusfromHttpCode=Os.spanStatusfromHttpCode;lt.startIdleTransaction=Os.startIdleTransaction;lt.TRACEPARENT_REGEXP=m7.TRACEPARENT_REGEXP;lt.stripUrlQueryAndFragment=m7.stripUrlQueryAndFragment;lt.Express=P1e.Express;lt.Postgres=O1e.Postgres;lt.Mysql=R1e.Mysql;lt.Mongo=D1e.Mongo;lt.Prisma=N1e.Prisma;lt.GraphQL=A1e.GraphQL;lt.Apollo=M1e.Apollo;lt.lazyLoadedNodePerformanceMonitoringIntegrations=F1e.lazyLoadedNodePerformanceMonitoringIntegrations;lt.BROWSER_TRACING_INTEGRATION_ID=h7.BROWSER_TRACING_INTEGRATION_ID;lt.BrowserTracing=h7.BrowserTracing;lt.browserTracingIntegration=PM.browserTracingIntegration;lt.startBrowserTracingNavigationSpan=PM.startBrowserTracingNavigationSpan;lt.startBrowserTracingPageLoadSpan=PM.startBrowserTracingPageLoadSpan;lt.defaultRequestInstrumentationOptions=g7.defaultRequestInstrumentationOptions;lt.instrumentOutgoingRequests=g7.instrumentOutgoingRequests;lt.addClsInstrumentationHandler=XT.addClsInstrumentationHandler;lt.addFidInstrumentationHandler=XT.addFidInstrumentationHandler;lt.addLcpInstrumentationHandler=XT.addLcpInstrumentationHandler;lt.addPerformanceInstrumentationHandler=XT.addPerformanceInstrumentationHandler;lt.addTracingHeadersToFetchRequest=v7.addTracingHeadersToFetchRequest;lt.instrumentFetchRequest=v7.instrumentFetchRequest;lt.addExtensionMethods=q1e.addExtensionMethods});var Ia=_(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});ZT();var y7=Ze(),Tf=se(),j1e=Tf.GLOBAL_OBJ,OM=0;function L1e(){return OM>0}function _7(){OM++,setTimeout(()=>{OM--})}function b7(t,e={},r){if(typeof t!="function")return t;try{let o=t.__sentry_wrapped__;if(o)return typeof o=="function"?o:t;if(Tf.getOriginalFunction(t))return t}catch(o){return t}let n=function(){let o=Array.prototype.slice.call(arguments);try{r&&typeof r=="function"&&r.apply(this,arguments);let a=o.map(i=>b7(i,e));return t.apply(this,a)}catch(a){throw _7(),y7.withScope(i=>{i.addEventProcessor(s=>(e.mechanism&&(Tf.addExceptionTypeValue(s,void 0,void 0),Tf.addExceptionMechanism(s,e.mechanism)),s.extra={...s.extra,arguments:o},s)),y7.captureException(a)}),a}};try{for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}catch(o){}Tf.markFunctionWrapped(n,t),Tf.addNonEnumerableProperty(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return t.name}})}catch(o){}return n}wf.WINDOW=j1e;wf.ignoreNextOnError=_7;wf.shouldIgnoreOnError=L1e;wf.wrap=b7});var hi=_(RM=>{"use strict";Object.defineProperty(RM,"__esModule",{value:!0});var B1e=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;RM.DEBUG_BUILD=B1e});var Cy=_(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});var U1e=Ze(),Dr=se();function S7(t,e){let r=tw(t,e),n={type:e&&e.name,value:$1e(e)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function E7(t,e,r,n){let o=U1e.getClient(),a=o&&o.getOptions().normalizeDepth,i={exception:{values:[{type:Dr.isEvent(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:V1e(e,{isUnhandledRejection:n})}]},extra:{__serialized__:Dr.normalizeToSize(e,a)}};if(r){let s=tw(t,r);s.length&&(i.exception.values[0].stacktrace={frames:s})}return i}function QT(t,e){return{exception:{values:[S7(t,e)]}}}function tw(t,e){let r=e.stacktrace||e.stack||"",n=W1e(e);try{return t(r,n)}catch(o){}return[]}var z1e=/Minified React error #\d+;/i;function W1e(t){if(t){if(typeof t.framesToPop=="number")return t.framesToPop;if(z1e.test(t.message))return 1}return 0}function $1e(t){let e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function H1e(t,e,r,n){let o=r&&r.syntheticException||void 0,a=T7(t,e,o,n);return Dr.addExceptionMechanism(a),a.level="error",r&&r.event_id&&(a.event_id=r.event_id),Dr.resolvedSyncPromise(a)}function G1e(t,e,r="info",n,o){let a=n&&n.syntheticException||void 0,i=ew(t,e,a,o);return i.level=r,n&&n.event_id&&(i.event_id=n.event_id),Dr.resolvedSyncPromise(i)}function T7(t,e,r,n,o){let a;if(Dr.isErrorEvent(e)&&e.error)return QT(t,e.error);if(Dr.isDOMError(e)||Dr.isDOMException(e)){let i=e;if("stack"in e)a=QT(t,e);else{let s=i.name||(Dr.isDOMError(i)?"DOMError":"DOMException"),u=i.message?`${s}: ${i.message}`:s;a=ew(t,u,r,n),Dr.addExceptionTypeValue(a,u)}return"code"in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return Dr.isError(e)?QT(t,e):Dr.isPlainObject(e)||Dr.isEvent(e)?(a=E7(t,e,r,o),Dr.addExceptionMechanism(a,{synthetic:!0}),a):(a=ew(t,e,r,n),Dr.addExceptionTypeValue(a,`${e}`,void 0),Dr.addExceptionMechanism(a,{synthetic:!0}),a)}function ew(t,e,r,n){let o={};if(n&&r){let a=tw(t,r);a.length&&(o.exception={values:[{value:e,stacktrace:{frames:a}}]})}if(Dr.isParameterizedString(e)){let{__sentry_template_string__:a,__sentry_template_values__:i}=e;return o.logentry={message:a,params:i},o}return o.message=e,o}function V1e(t,{isUnhandledRejection:e}){let r=Dr.extractExceptionKeysForMessage(t),n=e?"promise rejection":"exception";return Dr.isErrorEvent(t)?`Event \`ErrorEvent\` captured as ${n} with message \`${t.message}\``:Dr.isEvent(t)?`Event \`${K1e(t)}\` (type=${t.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function K1e(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(e){}}gi.eventFromError=QT;gi.eventFromException=H1e;gi.eventFromMessage=G1e;gi.eventFromPlainObject=E7;gi.eventFromString=ew;gi.eventFromUnknownInput=T7;gi.exceptionFromError=S7;gi.parseStackFrames=tw});var NM=_(DM=>{"use strict";Object.defineProperty(DM,"__esModule",{value:!0});var w7=se();function Y1e(t,{metadata:e,tunnel:r,dsn:n}){let o={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!r&&!!n&&{dsn:w7.dsnToString(n)}},a=J1e(t);return w7.createEnvelope(o,[a])}function J1e(t){return[{type:"user_report"},t]}DM.createUserFeedbackEnvelope=Y1e});var FM=_(MM=>{"use strict";Object.defineProperty(MM,"__esModule",{value:!0});var x7=Ze(),Nc=se(),rw=hi(),C7=Cy(),nw=Ia(),X1e=NM(),AM=class extends x7.BaseClient{constructor(e){let r=nw.WINDOW.SENTRY_SDK_SOURCE||Nc.getSDKSource();x7.applySdkMetadata(e,"browser",["browser"],r),super(e),e.sendClientReports&&nw.WINDOW.document&&nw.WINDOW.document.addEventListener("visibilitychange",()=>{nw.WINDOW.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,r){return C7.eventFromException(this._options.stackParser,e,r,this._options.attachStacktrace)}eventFromMessage(e,r="info",n){return C7.eventFromMessage(this._options.stackParser,e,r,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){rw.DEBUG_BUILD&&Nc.logger.warn("SDK not enabled, will not capture user feedback.");return}let r=X1e.createUserFeedbackEnvelope(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(r)}_prepareEvent(e,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,r,n)}_flushOutcomes(){let e=this._clearOutcomes();if(e.length===0){rw.DEBUG_BUILD&&Nc.logger.log("No outcomes to send");return}if(!this._dsn){rw.DEBUG_BUILD&&Nc.logger.log("No dsn provided, will not send outcomes");return}rw.DEBUG_BUILD&&Nc.logger.log("Sending outcomes:",e);let r=Nc.createClientReportEnvelope(e,this._options.tunnel&&Nc.dsnToString(this._dsn));this._sendEnvelope(r)}};MM.BrowserClient=AM});var k7=_(ow=>{"use strict";Object.defineProperty(ow,"__esModule",{value:!0});var I7=se(),Z1e=hi(),xf=Ia(),Iy;function Q1e(){if(Iy)return Iy;if(I7.isNativeFetch(xf.WINDOW.fetch))return Iy=xf.WINDOW.fetch.bind(xf.WINDOW);let t=xf.WINDOW.document,e=xf.WINDOW.fetch;if(t&&typeof t.createElement=="function")try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r);let n=r.contentWindow;n&&n.fetch&&(e=n.fetch),t.head.removeChild(r)}catch(r){Z1e.DEBUG_BUILD&&I7.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return Iy=e.bind(xf.WINDOW)}function eOe(){Iy=void 0}ow.clearCachedFetchImplementation=eOe;ow.getNativeFetchImplementation=Q1e});var jM=_(qM=>{"use strict";Object.defineProperty(qM,"__esModule",{value:!0});var tOe=Ze(),rOe=se(),P7=k7();function nOe(t,e=P7.getNativeFetchImplementation()){let r=0,n=0;function o(a){let i=a.body.length;r+=i,n++;let s={body:a.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:r<=6e4&&n<15,...t.fetchOptions};try{return e(t.url,s).then(u=>(r-=i,n--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return P7.clearCachedFetchImplementation(),r-=i,n--,rOe.rejectedSyncPromise(u)}}return tOe.createTransport(t,o)}qM.makeFetchTransport=nOe});var BM=_(LM=>{"use strict";Object.defineProperty(LM,"__esModule",{value:!0});var oOe=Ze(),aOe=se(),iOe=4;function sOe(t){function e(r){return new aOe.SyncPromise((n,o)=>{let a=new XMLHttpRequest;a.onerror=o,a.onreadystatechange=()=>{a.readyState===iOe&&n({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",t.url);for(let i in t.headers)Object.prototype.hasOwnProperty.call(t.headers,i)&&a.setRequestHeader(i,t.headers[i]);a.send(r.body)})}return oOe.createTransport(t,e)}LM.makeXHRTransport=sOe});var UM=_(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});var uOe=se(),Cf="?",lOe=10,cOe=20,dOe=30,pOe=40,fOe=50;function ky(t,e,r,n){let o={filename:t,function:e,in_app:!0};return r!==void 0&&(o.lineno=r),n!==void 0&&(o.colno=n),o}var mOe=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,hOe=/\((\S*)(?::(\d+))(?::(\d+))\)/,gOe=t=>{let e=mOe.exec(t);if(e){if(e[2]&&e[2].indexOf("eval")===0){let a=hOe.exec(e[2]);a&&(e[2]=a[1],e[3]=a[2],e[4]=a[3])}let[n,o]=A7(e[1]||Cf,e[2]);return ky(o,n,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},O7=[dOe,gOe],vOe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,yOe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,_Oe=t=>{let e=vOe.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){let a=yOe.exec(e[3]);a&&(e[1]=e[1]||"eval",e[3]=a[1],e[4]=a[2],e[5]="")}let n=e[3],o=e[1]||Cf;return[o,n]=A7(o,n),ky(n,o,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},R7=[fOe,_Oe],bOe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,SOe=t=>{let e=bOe.exec(t);return e?ky(e[2],e[1]||Cf,+e[3],e[4]?+e[4]:void 0):void 0},D7=[pOe,SOe],EOe=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,TOe=t=>{let e=EOe.exec(t);return e?ky(e[2],e[3]||Cf,+e[1]):void 0},wOe=[lOe,TOe],xOe=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,COe=t=>{let e=xOe.exec(t);return e?ky(e[5],e[3]||e[4]||Cf,+e[1],+e[2]):void 0},IOe=[cOe,COe],N7=[O7,R7,D7],kOe=uOe.createStackParser(...N7),A7=(t,e)=>{let r=t.indexOf("safari-extension")!==-1,n=t.indexOf("safari-web-extension")!==-1;return r||n?[t.indexOf("@")!==-1?t.split("@")[0]:Cf,r?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};Rs.chromeStackLineParser=O7;Rs.defaultStackLineParsers=N7;Rs.defaultStackParser=kOe;Rs.geckoStackLineParser=R7;Rs.opera10StackLineParser=wOe;Rs.opera11StackLineParser=IOe;Rs.winjsStackLineParser=D7});var sw=_(iw=>{"use strict";Object.defineProperty(iw,"__esModule",{value:!0});var Fn=Ze(),wn=se(),POe=hi(),OOe=Ia(),aw=1024,M7="Breadcrumbs",ROe=(t={})=>{let e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:M7,setupOnce(){},setup(r){e.console&&wn.addConsoleInstrumentationHandler(MOe(r)),e.dom&&wn.addClickKeypressInstrumentationHandler(AOe(r,e.dom)),e.xhr&&wn.addXhrInstrumentationHandler(FOe(r)),e.fetch&&wn.addFetchInstrumentationHandler(qOe(r)),e.history&&wn.addHistoryInstrumentationHandler(jOe(r)),e.sentry&&r.on&&r.on("beforeSendEvent",NOe(r))}}},F7=Fn.defineIntegration(ROe),DOe=Fn.convertIntegrationFnToClass(M7,F7);function NOe(t){return function(r){Fn.getClient()===t&&Fn.addBreadcrumb({category:`sentry.${r.type==="transaction"?"transaction":"event"}`,event_id:r.event_id,level:r.level,message:wn.getEventDescription(r)},{event:r})}}function AOe(t,e){return function(n){if(Fn.getClient()!==t)return;let o,a,i=typeof e=="object"?e.serializeAttribute:void 0,s=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;s&&s>aw&&(POe.DEBUG_BUILD&&wn.logger.warn(`\`dom.maxStringLength\` cannot exceed ${aw}, but a value of ${s} was configured. Sentry will use ${aw} instead.`),s=aw),typeof i=="string"&&(i=[i]);try{let l=n.event,c=LOe(l)?l.target:l;o=wn.htmlTreeAsString(c,{keyAttrs:i,maxStringLength:s}),a=wn.getComponentName(c)}catch(l){o=""}if(o.length===0)return;let u={category:`ui.${n.name}`,message:o};a&&(u.data={"ui.component_name":a}),Fn.addBreadcrumb(u,{event:n.event,name:n.name,global:n.global})}}function MOe(t){return function(r){if(Fn.getClient()!==t)return;let n={category:"console",data:{arguments:r.args,logger:"console"},level:wn.severityLevelFromString(r.level),message:wn.safeJoin(r.args," ")};if(r.level==="assert")if(r.args[0]===!1)n.message=`Assertion failed: ${wn.safeJoin(r.args.slice(1)," ")||"console.assert"}`,n.data.arguments=r.args.slice(1);else return;Fn.addBreadcrumb(n,{input:r.args,level:r.level})}}function FOe(t){return function(r){if(Fn.getClient()!==t)return;let{startTimestamp:n,endTimestamp:o}=r,a=r.xhr[wn.SENTRY_XHR_DATA_KEY];if(!n||!o||!a)return;let{method:i,url:s,status_code:u,body:l}=a,c={method:i,url:s,status_code:u},p={xhr:r.xhr,input:l,startTimestamp:n,endTimestamp:o};Fn.addBreadcrumb({category:"xhr",data:c,type:"http"},p)}}function qOe(t){return function(r){if(Fn.getClient()!==t)return;let{startTimestamp:n,endTimestamp:o}=r;if(o&&!(r.fetchData.url.match(/sentry_key/)&&r.fetchData.method==="POST"))if(r.error){let a=r.fetchData,i={data:r.error,input:r.args,startTimestamp:n,endTimestamp:o};Fn.addBreadcrumb({category:"fetch",data:a,level:"error",type:"http"},i)}else{let a=r.response,i={...r.fetchData,status_code:a&&a.status},s={input:r.args,response:a,startTimestamp:n,endTimestamp:o};Fn.addBreadcrumb({category:"fetch",data:i,type:"http"},s)}}}function jOe(t){return function(r){if(Fn.getClient()!==t)return;let n=r.from,o=r.to,a=wn.parseUrl(OOe.WINDOW.location.href),i=n?wn.parseUrl(n):void 0,s=wn.parseUrl(o);(!i||!i.path)&&(i=a),a.protocol===s.protocol&&a.host===s.host&&(o=s.relative),a.protocol===i.protocol&&a.host===i.host&&(n=i.relative),Fn.addBreadcrumb({category:"navigation",data:{from:n,to:o}})}}function LOe(t){return!!t&&!!t.target}iw.Breadcrumbs=DOe;iw.breadcrumbsIntegration=F7});var lw=_(uw=>{"use strict";Object.defineProperty(uw,"__esModule",{value:!0});var L7=Ze(),BOe=se(),UOe=hi(),B7="Dedupe",zOe=()=>{let t;return{name:B7,setupOnce(){},processEvent(e){if(e.type)return e;try{if($Oe(e,t))return UOe.DEBUG_BUILD&&BOe.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(r){}return t=e}}},U7=L7.defineIntegration(zOe),WOe=L7.convertIntegrationFnToClass(B7,U7);function $Oe(t,e){return e?!!(HOe(t,e)||GOe(t,e)):!1}function HOe(t,e){let r=t.message,n=e.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!W7(t,e)||!z7(t,e))}function GOe(t,e){let r=q7(e),n=q7(t);return!(!r||!n||r.type!==n.type||r.value!==n.value||!W7(t,e)||!z7(t,e))}function z7(t,e){let r=j7(t),n=j7(e);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let o=0;o{"use strict";Object.defineProperty(cw,"__esModule",{value:!0});var Ac=Ze(),Ds=se(),VOe=hi(),H7=Cy(),G7=Ia(),V7="GlobalHandlers",KOe=(t={})=>{let e={onerror:!0,onunhandledrejection:!0,...t};return{name:V7,setupOnce(){Error.stackTraceLimit=50},setup(r){e.onerror&&(JOe(r),$7("onerror")),e.onunhandledrejection&&(XOe(r),$7("onunhandledrejection"))}}},K7=Ac.defineIntegration(KOe),YOe=Ac.convertIntegrationFnToClass(V7,K7);function JOe(t){Ds.addGlobalErrorInstrumentationHandler(e=>{let{stackParser:r,attachStacktrace:n}=J7();if(Ac.getClient()!==t||G7.shouldIgnoreOnError())return;let{msg:o,url:a,line:i,column:s,error:u}=e,l=u===void 0&&Ds.isString(o)?eRe(o,a,i,s):Y7(H7.eventFromUnknownInput(r,u||o,void 0,n,!1),a,i,s);l.level="error",Ac.captureEvent(l,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function XOe(t){Ds.addGlobalUnhandledRejectionInstrumentationHandler(e=>{let{stackParser:r,attachStacktrace:n}=J7();if(Ac.getClient()!==t||G7.shouldIgnoreOnError())return;let o=ZOe(e),a=Ds.isPrimitive(o)?QOe(o):H7.eventFromUnknownInput(r,o,void 0,n,!0);a.level="error",Ac.captureEvent(a,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function ZOe(t){if(Ds.isPrimitive(t))return t;let e=t;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(r){}return t}function QOe(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function eRe(t,e,r,n){let o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,a=Ds.isErrorEvent(t)?t.message:t,i="Error",s=a.match(o);return s&&(i=s[1],a=s[2]),Y7({exception:{values:[{type:i,value:a}]}},e,r,n)}function Y7(t,e,r,n){let o=t.exception=t.exception||{},a=o.values=o.values||[],i=a[0]=a[0]||{},s=i.stacktrace=i.stacktrace||{},u=s.frames=s.frames||[],l=isNaN(parseInt(n,10))?void 0:n,c=isNaN(parseInt(r,10))?void 0:r,p=Ds.isString(e)&&e.length>0?e:Ds.getLocationHref();return u.length===0&&u.push({colno:l,filename:p,function:"?",in_app:!0,lineno:c}),t}function $7(t){VOe.DEBUG_BUILD&&Ds.logger.log(`Global Handler attached: ${t}`)}function J7(){let t=Ac.getClient();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}cw.GlobalHandlers=YOe;cw.globalHandlersIntegration=K7});var fw=_(pw=>{"use strict";Object.defineProperty(pw,"__esModule",{value:!0});var X7=Ze(),Mc=Ia(),Z7="HttpContext",tRe=()=>({name:Z7,setupOnce(){},preprocessEvent(t){if(!Mc.WINDOW.navigator&&!Mc.WINDOW.location&&!Mc.WINDOW.document)return;let e=t.request&&t.request.url||Mc.WINDOW.location&&Mc.WINDOW.location.href,{referrer:r}=Mc.WINDOW.document||{},{userAgent:n}=Mc.WINDOW.navigator||{},o={...t.request&&t.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},a={...t.request,...e&&{url:e},headers:o};t.request=a}}),Q7=X7.defineIntegration(tRe),rRe=X7.convertIntegrationFnToClass(Z7,Q7);pw.HttpContext=rRe;pw.httpContextIntegration=Q7});var hw=_(mw=>{"use strict";Object.defineProperty(mw,"__esModule",{value:!0});var eK=Ze(),nRe=se(),oRe=Cy(),aRe="cause",iRe=5,tK="LinkedErrors",sRe=(t={})=>{let e=t.limit||iRe,r=t.key||aRe;return{name:tK,setupOnce(){},preprocessEvent(n,o,a){let i=a.getOptions();nRe.applyAggregateErrorsToEvent(oRe.exceptionFromError,i.stackParser,i.maxValueLength,r,e,n,o)}}},rK=eK.defineIntegration(sRe),uRe=eK.convertIntegrationFnToClass(tK,rK);mw.LinkedErrors=uRe;mw.linkedErrorsIntegration=rK});var vw=_(gw=>{"use strict";Object.defineProperty(gw,"__esModule",{value:!0});var oK=Ze(),to=se(),vi=Ia(),lRe=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],aK="TryCatch",cRe=(t={})=>{let e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:aK,setupOnce(){e.setTimeout&&to.fill(vi.WINDOW,"setTimeout",nK),e.setInterval&&to.fill(vi.WINDOW,"setInterval",nK),e.requestAnimationFrame&&to.fill(vi.WINDOW,"requestAnimationFrame",pRe),e.XMLHttpRequest&&"XMLHttpRequest"in vi.WINDOW&&to.fill(XMLHttpRequest.prototype,"send",fRe);let r=e.eventTarget;r&&(Array.isArray(r)?r:lRe).forEach(mRe)}}},iK=oK.defineIntegration(cRe),dRe=oK.convertIntegrationFnToClass(aK,iK);function nK(t){return function(...e){let r=e[0];return e[0]=vi.wrap(r,{mechanism:{data:{function:to.getFunctionName(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function pRe(t){return function(e){return t.apply(this,[vi.wrap(e,{mechanism:{data:{function:"requestAnimationFrame",handler:to.getFunctionName(t)},handled:!1,type:"instrument"}})])}}function fRe(t){return function(...e){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in r&&typeof r[o]=="function"&&to.fill(r,o,function(a){let i={mechanism:{data:{function:o,handler:to.getFunctionName(a)},handled:!1,type:"instrument"}},s=to.getOriginalFunction(a);return s&&(i.mechanism.data.handler=to.getFunctionName(s)),vi.wrap(a,i)})}),t.apply(this,e)}}function mRe(t){let e=vi.WINDOW,r=e[t]&&e[t].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(to.fill(r,"addEventListener",function(n){return function(o,a,i){try{typeof a.handleEvent=="function"&&(a.handleEvent=vi.wrap(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:to.getFunctionName(a),target:t},handled:!1,type:"instrument"}}))}catch(s){}return n.apply(this,[o,vi.wrap(a,{mechanism:{data:{function:"addEventListener",handler:to.getFunctionName(a),target:t},handled:!1,type:"instrument"}}),i])}}),to.fill(r,"removeEventListener",function(n){return function(o,a,i){let s=a;try{let u=s&&s.__sentry_wrapped__;u&&n.call(this,o,u,i)}catch(u){}return n.call(this,o,s,i)}}))}gw.TryCatch=dRe;gw.browserApiErrorsIntegration=iK});var lK=_(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});var Pa=Ze(),Fc=se(),hRe=FM(),yw=hi(),ka=Ia(),gRe=sw(),vRe=lw(),yRe=dw(),_Re=fw(),bRe=hw(),SRe=vw(),ERe=UM(),TRe=jM(),wRe=BM(),sK=[Pa.inboundFiltersIntegration(),Pa.functionToStringIntegration(),SRe.browserApiErrorsIntegration(),gRe.breadcrumbsIntegration(),yRe.globalHandlersIntegration(),bRe.linkedErrorsIntegration(),vRe.dedupeIntegration(),_Re.httpContextIntegration()];function uK(t){return[...sK]}function xRe(t={}){t.defaultIntegrations===void 0&&(t.defaultIntegrations=uK()),t.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(t.release=__SENTRY_RELEASE__),ka.WINDOW.SENTRY_RELEASE&&ka.WINDOW.SENTRY_RELEASE.id&&(t.release=ka.WINDOW.SENTRY_RELEASE.id)),t.autoSessionTracking===void 0&&(t.autoSessionTracking=!0),t.sendClientReports===void 0&&(t.sendClientReports=!0);let e={...t,stackParser:Fc.stackParserFromStackParserOptions(t.stackParser||ERe.defaultStackParser),integrations:Pa.getIntegrationsToSetup(t),transport:t.transport||(Fc.supportsFetch()?TRe.makeFetchTransport:wRe.makeXHRTransport)};Pa.initAndBind(hRe.BrowserClient,e),t.autoSessionTracking&&ORe()}var CRe=(t={},e=Pa.getCurrentHub())=>{if(!ka.WINDOW.document){yw.DEBUG_BUILD&&Fc.logger.error("Global document not defined in showReportDialog call");return}let{client:r,scope:n}=e.getStackTop(),o=t.dsn||r&&r.getDsn();if(!o){yw.DEBUG_BUILD&&Fc.logger.error("DSN not configured for showReportDialog call");return}n&&(t.user={...n.getUser(),...t.user}),t.eventId||(t.eventId=e.lastEventId());let a=ka.WINDOW.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=Pa.getReportDialogEndpoint(o,t),t.onLoad&&(a.onload=t.onLoad);let{onClose:i}=t;if(i){let u=l=>{if(l.data==="__sentry_reportdialog_closed__")try{i()}finally{ka.WINDOW.removeEventListener("message",u)}};ka.WINDOW.addEventListener("message",u)}let s=ka.WINDOW.document.head||ka.WINDOW.document.body;s?s.appendChild(a):yw.DEBUG_BUILD&&Fc.logger.error("Not injecting report dialog. No injection point found in HTML")};function IRe(){}function kRe(t){t()}function PRe(t){return ka.wrap(t)()}function ORe(){if(typeof ka.WINDOW.document=="undefined"){yw.DEBUG_BUILD&&Fc.logger.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}Pa.startSession({ignoreDuration:!0}),Pa.captureSession(),Fc.addHistoryInstrumentationHandler(({from:t,to:e})=>{t!==void 0&&t!==e&&(Pa.startSession({ignoreDuration:!0}),Pa.captureSession())})}function RRe(t){let e=Pa.getClient();e&&e.captureUserFeedback(t)}yi.captureUserFeedback=RRe;yi.defaultIntegrations=sK;yi.forceLoad=IRe;yi.getDefaultIntegrations=uK;yi.init=xRe;yi.onLoad=kRe;yi.showReportDialog=CRe;yi.wrap=PRe});var cK=_(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});var DRe=dw(),NRe=vw(),ARe=sw(),MRe=hw(),FRe=fw(),qRe=lw();Xu.GlobalHandlers=DRe.GlobalHandlers;Xu.TryCatch=NRe.TryCatch;Xu.Breadcrumbs=ARe.Breadcrumbs;Xu.LinkedErrors=MRe.LinkedErrors;Xu.HttpContext=FRe.HttpContext;Xu.Dedupe=qRe.Dedupe});var bY=_(nl=>{"use strict";var{_nullishCoalesce:jRe,_optionalChain:zM}=se();Object.defineProperty(nl,"__esModule",{value:!0});var rr=Ze(),$e=se(),dK=ZT(),Kt=$e.GLOBAL_OBJ,m2="sentryReplaySession",LRe="replay_event",h2="Unable to send Replay",BRe=3e5,URe=9e5,zRe=5e3,WRe=5500,$Re=6e4,HRe=5e3,GRe=3,pK=15e4,_w=5e3,VRe=3e3,KRe=300,g2=2e7,YRe=4999,JRe=15e3,fK=36e5;function XRe(t,e){return t!=null?t:e()}function Ew(t){let e,r=t[0],n=1;for(;nr.call(e,...i)),e=void 0)}return r}var Br;(function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"})(Br||(Br={}));function ZRe(t){return t.nodeType===t.ELEMENT_NODE}function Oy(t){let e=Ew([t,"optionalAccess",r=>r.host]);return Ew([e,"optionalAccess",r=>r.shadowRoot])===t}function Ry(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function QRe(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t}function eDe(t){let{cssText:e}=t;if(e.split('"').length<3)return e;let r=["@import",`url(${JSON.stringify(t.href)})`];return t.layerName===""?r.push("layer"):t.layerName&&r.push(`layer(${t.layerName})`),t.supportsText&&r.push(`supports(${t.supportsText})`),t.media.length&&r.push(t.media.mediaText),r.join(" ")+";"}function Tw(t){try{let e=t.rules||t.cssRules;return e?QRe(Array.from(e,AK).join("")):null}catch(e){return null}}function AK(t){let e;if(rDe(t))try{e=Tw(t.styleSheet)||eDe(t)}catch(r){}else if(nDe(t)&&t.selectorText.includes(":"))return tDe(t.cssText);return e||t.cssText}function tDe(t){let e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}function rDe(t){return"styleSheet"in t}function nDe(t){return"selectorText"in t}var ww=class{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;let r=Ew([this,"access",n=>n.getMeta,"call",n=>n(e),"optionalAccess",n=>n.id]);return XRe(r,()=>-1)}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,r){let n=r.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,r)}replace(e,r){let n=this.getNode(e);if(n){let o=this.nodeMetaMap.get(n);o&&this.nodeMetaMap.set(r,o)}this.idNodeMap.set(e,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function oDe(){return new ww}function qw({maskInputOptions:t,tagName:e,type:r}){return e==="OPTION"&&(e="SELECT"),!!(t[e.toLowerCase()]||r&&t[r]||r==="password"||e==="INPUT"&&!r&&t.text)}function Ny({isMasked:t,element:e,value:r,maskInputFn:n}){let o=r||"";return t?(n&&(o=n(o,e)),"*".repeat(o.length)):o}function Af(t){return t.toLowerCase()}function GM(t){return t.toUpperCase()}var mK="__rrweb_original__";function aDe(t){let e=t.getContext("2d");if(!e)return!0;let r=50;for(let n=0;nu!==0))return!1}return!0}function v2(t){let e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?Af(e):null}function xw(t,e,r){return e==="INPUT"&&(r==="radio"||r==="checkbox")?t.getAttribute("value")||"":t.value}var iDe=1,sDe=new RegExp("[^a-z0-9-_:]"),Ay=-2;function y2(){return iDe++}function uDe(t){if(t instanceof HTMLFormElement)return"form";let e=Af(t.tagName);return sDe.test(e)?"div":e}function lDe(t){let e="";return t.indexOf("//")>-1?e=t.split("/").slice(0,3).join("/"):e=t.split("/")[0],e=e.split("?")[0],e}var If,hK,cDe=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,dDe=/^(?:[a-z+]+:)?\/\//i,pDe=/^www\..*/i,fDe=/^(data:)([^,]*),(.*)/i;function Cw(t,e){return(t||"").replace(cDe,(r,n,o,a,i,s)=>{let u=o||i||s,l=n||a||"";if(!u)return r;if(dDe.test(u)||pDe.test(u))return`url(${l}${u}${l})`;if(fDe.test(u))return`url(${l}${u}${l})`;if(u[0]==="/")return`url(${l}${lDe(e)+u}${l})`;let c=e.split("/"),p=u.split("/");c.pop();for(let d of p)d!=="."&&(d===".."?c.pop():c.push(d));return`url(${l}${c.join("/")}${l})`})}var mDe=/^[^ \t\n\r\u000c]+/,hDe=/^[, \t\n\r\u000c]+/;function gDe(t,e){if(e.trim()==="")return e;let r=0;function n(a){let i,s=a.exec(e.substring(r));return s?(i=s[0],r+=i.length,i):""}let o=[];for(;n(hDe),!(r>=e.length);){let a=n(mDe);if(a.slice(-1)===",")a=Pf(t,a.substring(0,a.length-1)),o.push(a);else{let i="";a=Pf(t,a);let s=!1;for(;;){let u=e.charAt(r);if(u===""){o.push((a+i).trim());break}else if(s)u===")"&&(s=!1);else if(u===","){r+=1,o.push((a+i).trim());break}else u==="("&&(s=!0);i+=u,r+=1}}}return o.join(", ")}function Pf(t,e){if(!e||e.trim()==="")return e;let r=t.createElement("a");return r.href=e,r.href}function vDe(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function _2(){let t=document.createElement("a");return t.href="",t.href}function MK(t,e,r,n,o,a){return n&&(r==="src"||r==="href"&&!(e==="use"&&n[0]==="#")||r==="xlink:href"&&n[0]!=="#"||r==="background"&&(e==="table"||e==="td"||e==="th")?Pf(t,n):r==="srcset"?gDe(t,n):r==="style"?Cw(n,_2()):e==="object"&&r==="data"?Pf(t,n):typeof a=="function"?a(r,n,o):n)}function FK(t,e,r){return(t==="video"||t==="audio")&&e==="autoplay"}function yDe(t,e,r,n){try{if(n&&t.matches(n))return!1;if(typeof e=="string"){if(t.classList.contains(e))return!0}else for(let o=t.classList.length;o--;){let a=t.classList[o];if(e.test(a))return!0}if(r)return t.matches(r)}catch(o){}return!1}function _De(t,e){for(let r=t.classList.length;r--;){let n=t.classList[r];if(e.test(n))return!0}return!1}function qc(t,e,r=1/0,n=0){return!t||t.nodeType!==t.ELEMENT_NODE||n>r?-1:e(t)?n:qc(t.parentNode,e,r,n+1)}function Of(t,e){return r=>{let n=r;if(n===null)return!1;try{if(t){if(typeof t=="string"){if(n.matches(`.${t}`))return!0}else if(_De(n,t))return!0}return!!(e&&n.matches(e))}catch(o){return!1}}}function Mf(t,e,r,n,o,a){try{let i=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(i===null)return!1;if(i.tagName==="INPUT"){let l=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(l))return!0}let s=-1,u=-1;if(a){if(u=qc(i,Of(n,o)),u<0)return!0;s=qc(i,Of(e,r),u>=0?u:1/0)}else{if(s=qc(i,Of(e,r)),s<0)return!1;u=qc(i,Of(n,o),s>=0?s:1/0)}return s>=0?u>=0?s<=u:!0:u>=0?!1:!!a}catch(i){}return!!a}function bDe(t,e,r){let n=t.contentWindow;if(!n)return;let o=!1,a;try{a=n.document.readyState}catch(s){return}if(a!=="complete"){let s=setTimeout(()=>{o||(e(),o=!0)},r);t.addEventListener("load",()=>{clearTimeout(s),o=!0,e()});return}let i="about:blank";if(n.location.href!==i||t.src===i||t.src==="")return setTimeout(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}function SDe(t,e,r){let n=!1,o;try{o=t.sheet}catch(i){return}if(o)return;let a=setTimeout(()=>{n||(e(),n=!0)},r);t.addEventListener("load",()=>{clearTimeout(a),n=!0,e()})}function EDe(t,e){let{doc:r,mirror:n,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskAttributeFn:u,maskTextClass:l,unmaskTextClass:c,maskTextSelector:p,unmaskTextSelector:d,inlineStylesheet:f,maskInputOptions:m={},maskTextFn:g,maskInputFn:v,dataURLOptions:h={},inlineImages:y,recordCanvas:b,keepIframeSrcFn:E,newlyAddedElement:w=!1}=e,S=TDe(r,n);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:Br.Document,childNodes:[],compatMode:t.compatMode}:{type:Br.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:Br.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:S};case t.ELEMENT_NODE:return xDe(t,{doc:r,blockClass:o,blockSelector:a,unblockSelector:i,inlineStylesheet:f,maskAttributeFn:u,maskInputOptions:m,maskInputFn:v,dataURLOptions:h,inlineImages:y,recordCanvas:b,keepIframeSrcFn:E,newlyAddedElement:w,rootId:S,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:p,unmaskTextSelector:d});case t.TEXT_NODE:return wDe(t,{maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:p,unmaskTextSelector:d,maskTextFn:g,maskInputOptions:m,maskInputFn:v,rootId:S});case t.CDATA_SECTION_NODE:return{type:Br.CDATA,textContent:"",rootId:S};case t.COMMENT_NODE:return{type:Br.Comment,textContent:t.textContent||"",rootId:S};default:return!1}}function TDe(t,e){if(!e.hasNode(t))return;let r=e.getId(t);return r===1?void 0:r}function wDe(t,e){let{maskAllText:r,maskTextClass:n,unmaskTextClass:o,maskTextSelector:a,unmaskTextSelector:i,maskTextFn:s,maskInputOptions:u,maskInputFn:l,rootId:c}=e,p=t.parentNode&&t.parentNode.tagName,d=t.textContent,f=p==="STYLE"?!0:void 0,m=p==="SCRIPT"?!0:void 0,g=p==="TEXTAREA"?!0:void 0;if(f&&d){try{t.nextSibling||t.previousSibling||Ew([t,"access",h=>h.parentNode,"access",h=>h.sheet,"optionalAccess",h=>h.cssRules])&&(d=Tw(t.parentNode.sheet))}catch(h){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${h}`,t)}d=Cw(d,_2())}m&&(d="SCRIPT_PLACEHOLDER");let v=Mf(t,n,a,o,i,r);if(!f&&!m&&!g&&d&&v&&(d=s?s(d,t.parentElement):d.replace(/[\S]/g,"*")),g&&d&&(u.textarea||v)&&(d=l?l(d,t.parentNode):d.replace(/[\S]/g,"*")),p==="OPTION"&&d){let h=qw({type:null,tagName:p,maskInputOptions:u});d=Ny({isMasked:Mf(t,n,a,o,i,h),element:t,value:d,maskInputFn:l})}return{type:Br.Text,textContent:d||"",isStyle:f,rootId:c}}function xDe(t,e){let{doc:r,blockClass:n,blockSelector:o,unblockSelector:a,inlineStylesheet:i,maskInputOptions:s={},maskAttributeFn:u,maskInputFn:l,dataURLOptions:c={},inlineImages:p,recordCanvas:d,keepIframeSrcFn:f,newlyAddedElement:m=!1,rootId:g,maskAllText:v,maskTextClass:h,unmaskTextClass:y,maskTextSelector:b,unmaskTextSelector:E}=e,w=yDe(t,n,o,a),S=uDe(t),C={},P=t.attributes.length;for(let O=0;OU.href===t.href),F=null;O&&(F=Tw(O)),F&&(delete C.rel,delete C.href,C._cssText=Cw(F,O.href))}if(S==="style"&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){let O=Tw(t.sheet);O&&(C._cssText=Cw(O,_2()))}if(S==="input"||S==="textarea"||S==="select"||S==="option"){let O=t,F=v2(O),U=xw(O,GM(S),F),J=O.checked;if(F!=="submit"&&F!=="button"&&U){let K=Mf(O,h,b,y,E,qw({type:F,tagName:GM(S),maskInputOptions:s}));C.value=Ny({isMasked:K,element:O,value:U,maskInputFn:l})}J&&(C.checked=J)}if(S==="option"&&(t.selected&&!s.select?C.selected=!0:delete C.selected),S==="canvas"&&d){if(t.__context==="2d")aDe(t)||(C.rr_dataURL=t.toDataURL(c.type,c.quality));else if(!("__context"in t)){let O=t.toDataURL(c.type,c.quality),F=document.createElement("canvas");F.width=t.width,F.height=t.height;let U=F.toDataURL(c.type,c.quality);O!==U&&(C.rr_dataURL=O)}}if(S==="img"&&p){If||(If=r.createElement("canvas"),hK=If.getContext("2d"));let O=t,F=O.crossOrigin;O.crossOrigin="anonymous";let U=()=>{O.removeEventListener("load",U);try{If.width=O.naturalWidth,If.height=O.naturalHeight,hK.drawImage(O,0,0),C.rr_dataURL=If.toDataURL(c.type,c.quality)}catch(J){console.warn(`Cannot inline img src=${O.currentSrc}! Error: ${J}`)}F?C.crossOrigin=F:O.removeAttribute("crossorigin")};O.complete&&O.naturalWidth!==0?U():O.addEventListener("load",U)}if((S==="audio"||S==="video")&&(C.rr_mediaState=t.paused?"paused":"played",C.rr_mediaCurrentTime=t.currentTime),m||(t.scrollLeft&&(C.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(C.rr_scrollTop=t.scrollTop)),w){let{width:O,height:F}=t.getBoundingClientRect();C={class:C.class,rr_width:`${O}px`,rr_height:`${F}px`}}S==="iframe"&&!f(C.src)&&(t.contentDocument||(C.rr_src=C.src),delete C.src);let k;try{customElements.get(S)&&(k=!0)}catch(O){}return{type:Br.Element,tagName:S,attributes:C,childNodes:[],isSVG:vDe(t)||void 0,needBlock:w,rootId:g,isCustom:k}}function Vt(t){return t==null?"":t.toLowerCase()}function CDe(t,e){if(e.comment&&t.type===Br.Comment)return!0;if(t.type===Br.Element){if(e.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"||t.attributes.rel==="modulepreload")&&t.attributes.as==="script"||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&t.attributes.href.endsWith(".js")))return!0;if(e.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(Vt(t.attributes.name).match(/^msapplication-tile(image|color)$/)||Vt(t.attributes.name)==="application-name"||Vt(t.attributes.rel)==="icon"||Vt(t.attributes.rel)==="apple-touch-icon"||Vt(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(e.headMetaDescKeywords&&Vt(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(Vt(t.attributes.property).match(/^(og|twitter|fb):/)||Vt(t.attributes.name).match(/^(og|twitter):/)||Vt(t.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(Vt(t.attributes.name)==="robots"||Vt(t.attributes.name)==="googlebot"||Vt(t.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(Vt(t.attributes.name)==="author"||Vt(t.attributes.name)==="generator"||Vt(t.attributes.name)==="framework"||Vt(t.attributes.name)==="publisher"||Vt(t.attributes.name)==="progid"||Vt(t.attributes.property).match(/^article:/)||Vt(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(Vt(t.attributes.name)==="google-site-verification"||Vt(t.attributes.name)==="yandex-verification"||Vt(t.attributes.name)==="csrf-token"||Vt(t.attributes.name)==="p:domain_verify"||Vt(t.attributes.name)==="verify-v1"||Vt(t.attributes.name)==="verification"||Vt(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Rf(t,e){let{doc:r,mirror:n,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskTextClass:u,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:p,skipChild:d=!1,inlineStylesheet:f=!0,maskInputOptions:m={},maskAttributeFn:g,maskTextFn:v,maskInputFn:h,slimDOMOptions:y,dataURLOptions:b={},inlineImages:E=!1,recordCanvas:w=!1,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:P=5e3,onStylesheetLoad:k,stylesheetLoadTimeout:O=5e3,keepIframeSrcFn:F=()=>!1,newlyAddedElement:U=!1}=e,{preserveWhiteSpace:J=!0}=e,K=EDe(t,{doc:r,mirror:n,blockClass:o,blockSelector:a,maskAllText:s,unblockSelector:i,maskTextClass:u,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:g,maskTextFn:v,maskInputFn:h,dataURLOptions:b,inlineImages:E,recordCanvas:w,keepIframeSrcFn:F,newlyAddedElement:U});if(!K)return console.warn(t,"not serialized"),null;let Z;n.hasNode(t)?Z=n.getId(t):CDe(K,y)||!J&&K.type===Br.Text&&!K.isStyle&&!K.textContent.replace(/^\s+|\s+$/gm,"").length?Z=Ay:Z=y2();let G=Object.assign(K,{id:Z});if(n.add(t,G),Z===Ay)return null;S&&S(t);let Q=!d;if(G.type===Br.Element){Q=Q&&!G.needBlock,delete G.needBlock;let N=t.shadowRoot;N&&Ry(N)&&(G.isShadowHost=!0)}if((G.type===Br.Document||G.type===Br.Element)&&Q){y.headWhitespace&&G.type===Br.Element&&G.tagName==="head"&&(J=!1);let N={doc:r,mirror:n,blockClass:o,blockSelector:a,maskAllText:s,unblockSelector:i,maskTextClass:u,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:p,skipChild:d,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:g,maskTextFn:v,maskInputFn:h,slimDOMOptions:y,dataURLOptions:b,inlineImages:E,recordCanvas:w,preserveWhiteSpace:J,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:P,onStylesheetLoad:k,stylesheetLoadTimeout:O,keepIframeSrcFn:F};for(let j of Array.from(t.childNodes)){let V=Rf(j,N);V&&G.childNodes.push(V)}if(ZRe(t)&&t.shadowRoot)for(let j of Array.from(t.shadowRoot.childNodes)){let V=Rf(j,N);V&&(Ry(t.shadowRoot)&&(V.isShadow=!0),G.childNodes.push(V))}}return t.parentNode&&Oy(t.parentNode)&&Ry(t.parentNode)&&(G.isShadow=!0),G.type===Br.Element&&G.tagName==="iframe"&&bDe(t,()=>{let N=t.contentDocument;if(N&&C){let j=Rf(N,{doc:N,mirror:n,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskTextClass:u,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:g,maskTextFn:v,maskInputFn:h,slimDOMOptions:y,dataURLOptions:b,inlineImages:E,recordCanvas:w,preserveWhiteSpace:J,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:P,onStylesheetLoad:k,stylesheetLoadTimeout:O,keepIframeSrcFn:F});j&&C(t,j)}},P),G.type===Br.Element&&G.tagName==="link"&&G.attributes.rel==="stylesheet"&&SDe(t,()=>{if(k){let N=Rf(t,{doc:r,mirror:n,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskTextClass:u,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:g,maskTextFn:v,maskInputFn:h,slimDOMOptions:y,dataURLOptions:b,inlineImages:E,recordCanvas:w,preserveWhiteSpace:J,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:P,onStylesheetLoad:k,stylesheetLoadTimeout:O,keepIframeSrcFn:F});N&&k(t,N)}},O),G}function IDe(t,e){let{mirror:r=new ww,blockClass:n="rr-block",blockSelector:o=null,unblockSelector:a=null,maskAllText:i=!1,maskTextClass:s="rr-mask",unmaskTextClass:u=null,maskTextSelector:l=null,unmaskTextSelector:c=null,inlineStylesheet:p=!0,inlineImages:d=!1,recordCanvas:f=!1,maskAllInputs:m=!1,maskAttributeFn:g,maskTextFn:v,maskInputFn:h,slimDOM:y=!1,dataURLOptions:b,preserveWhiteSpace:E,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:P,stylesheetLoadTimeout:k,keepIframeSrcFn:O=()=>!1}=e||{};return Rf(t,{doc:t,mirror:r,blockClass:n,blockSelector:o,unblockSelector:a,maskAllText:i,maskTextClass:s,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:p,maskInputOptions:m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:m===!1?{}:m,maskAttributeFn:g,maskTextFn:v,maskInputFn:h,slimDOMOptions:y===!0||y==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:y==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:y===!1?{}:y,dataURLOptions:b,inlineImages:d,recordCanvas:f,preserveWhiteSpace:E,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:P,stylesheetLoadTimeout:k,keepIframeSrcFn:O,newlyAddedElement:!1})}function Zu(t){let e,r=t[0],n=1;for(;nr.call(e,...i)),e=void 0)}return r}function Ln(t,e,r=document){let n={capture:!0,passive:!0};return r.addEventListener(t,e,n),()=>r.removeEventListener(t,e,n)}var kf=`Please stop import mirror directly. Instead of that,\r now you can use replayer.getMirror() to access the mirror instance of a replayer,\r -or you can use record.mirror to access the mirror instance during recording.`,gK={map:{},getId(){return console.error(kp),-1},getNode(){return console.error(kp),null},removeNodeFromMap(){console.error(kp)},has(){return console.error(kp),!1},reset(){console.error(kp)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(gK=new Proxy(gK,{get(t,e,r){return e==="map"&&console.error(kp),Reflect.get(t,e,r)}}));function My(t,e,r={}){let n=null,o=0;return function(...a){let i=Date.now();!o&&r.leading===!1&&(o=i);let s=e-(i-o),u=this;s<=0||s>e?(n&&(NDe(n),n=null),o=i,t.apply(u,a)):!n&&r.trailing!==!1&&(n=jw(()=>{o=r.leading===!1?0:Date.now(),n=null,t.apply(u,a)},s))}}function qK(t,e,r,n,o=window){let a=o.Object.getOwnPropertyDescriptor(t,e);return o.Object.defineProperty(t,e,n?r:{set(i){jw(()=>{r.set.call(this,i)},0),a&&a.set&&a.set.call(this,i)}}),()=>qK(t,e,a||{},!0)}function b2(t,e,r){try{if(!(e in t))return()=>{};let n=t[e],o=r(n);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),t[e]=o,()=>{t[e]=n}}catch(n){return()=>{}}}var Iw=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Iw=()=>new Date().getTime());function jK(t){let e=t.document;return{left:e.scrollingElement?e.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:Zu([e,"optionalAccess",r=>r.documentElement,"access",r=>r.scrollLeft])||Zu([e,"optionalAccess",r=>r.body,"optionalAccess",r=>r.parentElement,"optionalAccess",r=>r.scrollLeft])||Zu([e,"optionalAccess",r=>r.body,"optionalAccess",r=>r.scrollLeft])||0,top:e.scrollingElement?e.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:Zu([e,"optionalAccess",r=>r.documentElement,"access",r=>r.scrollTop])||Zu([e,"optionalAccess",r=>r.body,"optionalAccess",r=>r.parentElement,"optionalAccess",r=>r.scrollTop])||Zu([e,"optionalAccess",r=>r.body,"optionalAccess",r=>r.scrollTop])||0}}function LK(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function BK(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function UK(t){return t?t.nodeType===t.ELEMENT_NODE?t:t.parentElement:null}function Ra(t,e,r,n,o){if(!t)return!1;let a=UK(t);if(!a)return!1;let i=Op(e,r);if(!o){let l=n&&a.matches(n);return i(a)&&!l}let s=qc(a,i),u=-1;return s<0?!1:(n&&(u=qc(a,Op(null,n))),s>-1&&u<0?!0:s{let r=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do if(this===r)return!0;while(r=r&&r.parentNode);return!1})}function WK(t,e){return!!(t.nodeName==="IFRAME"&&e.getMeta(t))}function $K(t,e){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&e.getMeta(t))}function KM(t){return!!Zu([t,"optionalAccess",e=>e.shadowRoot])}var YM=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return jRe(this.styleIDMap.get(e),()=>-1)}has(e){return this.styleIDMap.has(e)}add(e,r){if(this.has(e))return this.getId(e);let n;return r===void 0?n=this.id++:n=r,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function HK(t){let e=null;return Zu([t,"access",r=>r.getRootNode,"optionalCall",r=>r(),"optionalAccess",r=>r.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&t.getRootNode().host&&(e=t.getRootNode().host),e}function ODe(t){let e=t,r;for(;r=HK(e);)e=r;return e}function RDe(t){let e=t.ownerDocument;if(!e)return!1;let r=ODe(t);return e.contains(r)}function GK(t){let e=t.ownerDocument;return e?e.contains(t)||RDe(t):!1}var vK={};function S2(t){let e=vK[t];if(e)return e;let r=window.document,n=window[t];if(r&&typeof r.createElement=="function")try{let o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);let a=o.contentWindow;a&&a[t]&&(n=a[t]),r.head.removeChild(o)}catch(o){}return vK[t]=n.bind(window)}function DDe(...t){return S2("requestAnimationFrame")(...t)}function jw(...t){return S2("setTimeout")(...t)}function NDe(...t){return S2("clearTimeout")(...t)}var tt=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(tt||{}),rt=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(rt||{}),qn=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(qn||{}),Ns=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(Ns||{});function ADe(t){let e,r=t[0],n=1;for(;nr.call(e,...i)),e=void 0)}return r}function yK(t){return"__ln"in t}var JM=class{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let n=0;no.next])||null;return r}addNode(e){let r={value:e,previous:null,next:null};if(e.__ln=r,e.previousSibling&&yK(e.previousSibling)){let n=e.previousSibling.__ln.next;r.next=n,r.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=r,n&&(n.previous=r)}else if(e.nextSibling&&yK(e.nextSibling)&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;r.previous=n,r.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=r,n&&(n.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++}removeNode(e){let r=e.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}},_K=(t,e)=>`${t}@${e}`,XM=class{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],r=new Set,n=new JM,o=u=>{let l=u,c=Ay;for(;c===Ay;)l=l&&l.nextSibling,c=l&&this.mirror.getId(l);return c},a=u=>{if(!u.parentNode||!GK(u))return;let l=Oy(u.parentNode)?this.mirror.getId(HK(u)):this.mirror.getId(u.parentNode),c=o(u);if(l===-1||c===-1)return n.addNode(u);let f=Rp(u,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:d=>{WK(d,this.mirror)&&this.iframeManager.addIframe(d),$K(d,this.mirror)&&this.stylesheetManager.trackLinkElement(d),KM(u)&&this.shadowDomManager.addShadowRoot(u.shadowRoot,this.doc)},onIframeLoad:(d,p)=>{this.iframeManager.attachIframe(d,p),this.shadowDomManager.observeAttachShadow(d)},onStylesheetLoad:(d,p)=>{this.stylesheetManager.attachLinkElement(d,p)}});f&&(e.push({parentId:l,nextId:c,node:f}),r.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let u of this.movedSet)bK(this.removes,u,this.mirror)&&!this.movedSet.has(u.parentNode)||a(u);for(let u of this.addedSet)!SK(this.droppedSet,u)&&!bK(this.removes,u,this.mirror)||SK(this.movedSet,u)?a(u):this.droppedSet.add(u);let i=null;for(;n.length;){let u=null;if(i){let l=this.mirror.getId(i.value.parentNode),c=o(i.value);l!==-1&&c!==-1&&(u=i)}if(!u){let l=n.tail;for(;l;){let c=l;if(l=l.previous,c){let f=this.mirror.getId(c.value.parentNode);if(o(c.value)===-1)continue;if(f!==-1){u=c;break}else{let p=c.value;if(p.parentNode&&p.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let m=p.parentNode.host;if(this.mirror.getId(m)!==-1){u=c;break}}}}}}if(!u){for(;n.head;)n.removeNode(n.head.value);break}i=u.previous,n.removeNode(u.value),a(u.value)}let s={texts:this.texts.map(u=>({id:this.mirror.getId(u.node),value:u.value})).filter(u=>!r.has(u.id)).filter(u=>this.mirror.has(u.id)),attributes:this.attributes.map(u=>{let{attributes:l}=u;if(typeof l.style=="string"){let c=JSON.stringify(u.styleDiff),f=JSON.stringify(u._unchangedStyles);c.length!r.has(u.id)).filter(u=>this.mirror.has(u.id)),removes:this.removes,adds:e};!s.texts.length&&!s.attributes.length&&!s.removes.length&&!s.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=e=>{if(!WM(e.target,this.mirror))switch(e.type){case"characterData":{let r=e.target.textContent;!Ra(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&r!==e.oldValue&&this.texts.push({value:Mp(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&r?this.maskTextFn?this.maskTextFn(r,UK(e.target)):r.replace(/[\S]/g,"*"):r,node:e.target});break}case"attributes":{let r=e.target,n=e.attributeName,o=e.target.getAttribute(n);if(n==="value"){let i=v2(r),s=r.tagName;o=xw(r,s,i);let u=qw({maskInputOptions:this.maskInputOptions,tagName:s,type:i}),l=Mp(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,u);o=Ny({isMasked:l,element:r,value:o,maskInputFn:this.maskInputFn})}if(Ra(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===e.oldValue)return;let a=this.attributeMap.get(e.target);if(r.tagName==="IFRAME"&&n==="src"&&!this.keepIframeSrcFn(o))if(!r.contentDocument)n="rr_src";else return;if(a||(a={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(e.target,a)),n==="type"&&r.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!FK(r.tagName,n)&&(a.attributes[n]=MK(this.doc,Ap(r.tagName),Ap(n),o,r,this.maskAttributeFn),n==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(s){this.unattachedDoc=this.doc}let i=this.unattachedDoc.createElement("span");e.oldValue&&i.setAttribute("style",e.oldValue);for(let s of Array.from(r.style)){let u=r.style.getPropertyValue(s),l=r.style.getPropertyPriority(s);u!==i.style.getPropertyValue(s)||l!==i.style.getPropertyPriority(s)?l===""?a.styleDiff[s]=u:a.styleDiff[s]=[u,l]:a._unchangedStyles[s]=[u,l]}for(let s of Array.from(i.style))r.style.getPropertyValue(s)===""&&(a.styleDiff[s]=!1)}break}case"childList":{if(Ra(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(r=>this.genAdds(r,e.target)),e.removedNodes.forEach(r=>{let n=this.mirror.getId(r),o=Oy(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Ra(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||WM(r,this.mirror)||!kDe(r,this.mirror)||(this.addedSet.has(r)?(ZM(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(e.target)&&n===-1||zK(e.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[_K(n,o)]?ZM(this.movedSet,r):this.removes.push({parentId:o,id:n,isShadow:Oy(e.target)&&Ry(e.target)?!0:void 0})),this.mapRemoves.push(r))});break}}},this.genAdds=(e,r)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(WM(e,this.mirror))return;this.movedSet.add(e);let n=null;r&&this.mirror.hasNode(r)&&(n=this.mirror.getId(r)),n&&n!==-1&&(this.movedMap[_K(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Ra(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach(n=>this.genAdds(n)),KM(e)&&e.shadowRoot.childNodes.forEach(n=>{this.processedNodeManager.add(n,this),this.genAdds(n,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=e[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function ZM(t,e){t.delete(e),e.childNodes.forEach(r=>ZM(t,r))}function bK(t,e,r){return t.length===0?!1:VK(t,e,r)}function VK(t,e,r){let{parentNode:n}=e;if(!n)return!1;let o=r.getId(n);return t.some(a=>a.id===o)?!0:VK(t,n,r)}function SK(t,e){return t.size===0?!1:KK(t,e)}function KK(t,e){let{parentNode:r}=e;return r?t.has(r)?!0:KK(t,r):!1}var Dy;function MDe(t){Dy=t}function FDe(){Dy=void 0}var ft=t=>Dy?(...r)=>{try{return t(...r)}catch(n){if(Dy&&Dy(n)===!0)return()=>{};throw n}}:t;function _i(t){let e,r=t[0],n=1;for(;nr.call(e,...i)),e=void 0)}return r}var Dp=[];function Ly(t){try{if("composedPath"in t){let e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(e){}return t&&t.target}function YK(t,e){let r=new XM;Dp.push(r),r.init(t);let n=window.MutationObserver||window.__rrMutationObserver,o=_i([window,"optionalAccess",i=>i.Zone,"optionalAccess",i=>i.__symbol__,"optionalCall",i=>i("MutationObserver")]);o&&window[o]&&(n=window[o]);let a=new n(ft(i=>{t.onMutation&&t.onMutation(i)===!1||r.processMutations.bind(r)(i)}));return a.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function qDe({mousemoveCb:t,sampling:e,doc:r,mirror:n}){if(e.mousemove===!1)return()=>{};let o=typeof e.mousemove=="number"?e.mousemove:50,a=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500,i=[],s,u=My(ft(f=>{let d=Date.now()-s;t(i.map(p=>(p.timeOffset-=d,p)),f),i=[],s=null}),a),l=ft(My(ft(f=>{let d=Ly(f),{clientX:p,clientY:m}=VM(f)?f.changedTouches[0]:f;s||(s=Iw()),i.push({x:p,y:m,id:n.getId(d),timeOffset:Iw()-s}),u(typeof DragEvent!="undefined"&&f instanceof DragEvent?rt.Drag:f instanceof MouseEvent?rt.MouseMove:rt.TouchMove)}),o,{trailing:!1})),c=[Ln("mousemove",l,r),Ln("touchmove",l,r),Ln("drag",l,r)];return ft(()=>{c.forEach(f=>f())})}function jDe({mouseInteractionCb:t,doc:e,mirror:r,blockClass:n,blockSelector:o,unblockSelector:a,sampling:i}){if(i.mouseInteraction===!1)return()=>{};let s=i.mouseInteraction===!0||i.mouseInteraction===void 0?{}:i.mouseInteraction,u=[],l=null,c=f=>d=>{let p=Ly(d);if(Ra(p,n,o,a,!0))return;let m=null,g=f;if("pointerType"in d){switch(d.pointerType){case"mouse":m=Ns.Mouse;break;case"touch":m=Ns.Touch;break;case"pen":m=Ns.Pen;break}m===Ns.Touch?qn[f]===qn.MouseDown?g="TouchStart":qn[f]===qn.MouseUp&&(g="TouchEnd"):Ns.Pen}else VM(d)&&(m=Ns.Touch);m!==null?(l=m,(g.startsWith("Touch")&&m===Ns.Touch||g.startsWith("Mouse")&&m===Ns.Mouse)&&(m=null)):qn[f]===qn.Click&&(m=l,l=null);let v=VM(d)?d.changedTouches[0]:d;if(!v)return;let h=r.getId(p),{clientX:y,clientY:b}=v;ft(t)({type:qn[g],id:h,x:y,y:b,...m!==null&&{pointerType:m}})};return Object.keys(qn).filter(f=>Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&s[f]!==!1).forEach(f=>{let d=Ap(f),p=c(f);if(window.PointerEvent)switch(qn[f]){case qn.MouseDown:case qn.MouseUp:d=d.replace("mouse","pointer");break;case qn.TouchStart:case qn.TouchEnd:return}u.push(Ln(d,p,e))}),ft(()=>{u.forEach(f=>f())})}function JK({scrollCb:t,doc:e,mirror:r,blockClass:n,blockSelector:o,unblockSelector:a,sampling:i}){let s=ft(My(ft(u=>{let l=Ly(u);if(!l||Ra(l,n,o,a,!0))return;let c=r.getId(l);if(l===e&&e.defaultView){let f=jK(e.defaultView);t({id:c,x:f.left,y:f.top})}else t({id:c,x:l.scrollLeft,y:l.scrollTop})}),i.scroll||100));return Ln("scroll",s,e)}function LDe({viewportResizeCb:t},{win:e}){let r=-1,n=-1,o=ft(My(ft(()=>{let a=LK(),i=BK();(r!==a||n!==i)&&(t({width:Number(i),height:Number(a)}),r=a,n=i)}),200));return Ln("resize",o,e)}var BDe=["INPUT","TEXTAREA","SELECT"],EK=new WeakMap;function UDe({inputCb:t,doc:e,mirror:r,blockClass:n,blockSelector:o,unblockSelector:a,ignoreClass:i,ignoreSelector:s,maskInputOptions:u,maskInputFn:l,sampling:c,userTriggeredOnInput:f,maskTextClass:d,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:g}){function v(C){let P=Ly(C),k=C.isTrusted,O=P&&GM(P.tagName);if(O==="OPTION"&&(P=P.parentElement),!P||!O||BDe.indexOf(O)<0||Ra(P,n,o,a,!0))return;let F=P;if(F.classList.contains(i)||s&&F.matches(s))return;let U=v2(P),J=xw(F,O,U),K=!1,Z=qw({maskInputOptions:u,tagName:O,type:U}),G=Mp(P,d,m,p,g,Z);(U==="radio"||U==="checkbox")&&(K=P.checked),J=Ny({isMasked:G,element:P,value:J,maskInputFn:l}),h(P,f?{text:J,isChecked:K,userTriggered:k}:{text:J,isChecked:K});let Q=P.name;U==="radio"&&Q&&K&&e.querySelectorAll(`input[type="radio"][name="${Q}"]`).forEach(N=>{if(N!==P){let j=Ny({isMasked:G,element:N,value:xw(N,O,U),maskInputFn:l});h(N,f?{text:j,isChecked:!K,userTriggered:!1}:{text:j,isChecked:!K})}})}function h(C,P){let k=EK.get(C);if(!k||k.text!==P.text||k.isChecked!==P.isChecked){EK.set(C,P);let O=r.getId(C);ft(t)({...P,id:O})}}let b=(c.input==="last"?["change"]:["input","change"]).map(C=>Ln(C,ft(v),e)),E=e.defaultView;if(!E)return()=>{b.forEach(C=>C())};let w=E.Object.getOwnPropertyDescriptor(E.HTMLInputElement.prototype,"value"),S=[[E.HTMLInputElement.prototype,"value"],[E.HTMLInputElement.prototype,"checked"],[E.HTMLSelectElement.prototype,"value"],[E.HTMLTextAreaElement.prototype,"value"],[E.HTMLSelectElement.prototype,"selectedIndex"],[E.HTMLOptionElement.prototype,"selected"]];return w&&w.set&&b.push(...S.map(C=>qK(C[0],C[1],{set(){ft(v)({target:this,isTrusted:!1})}},!1,E))),ft(()=>{b.forEach(C=>C())})}function kw(t){let e=[];function r(n,o){if(bw("CSSGroupingRule")&&n.parentRule instanceof CSSGroupingRule||bw("CSSMediaRule")&&n.parentRule instanceof CSSMediaRule||bw("CSSSupportsRule")&&n.parentRule instanceof CSSSupportsRule||bw("CSSConditionRule")&&n.parentRule instanceof CSSConditionRule){let i=Array.from(n.parentRule.cssRules).indexOf(n);o.unshift(i)}else if(n.parentStyleSheet){let i=Array.from(n.parentStyleSheet.cssRules).indexOf(n);o.unshift(i)}return o}return r(t,e)}function Qu(t,e,r){let n,o;return t?(t.ownerNode?n=e.getId(t.ownerNode):o=r.getId(t),{styleId:o,id:n}):{}}function zDe({styleSheetRuleCb:t,mirror:e,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:ft((c,f,d)=>{let[p,m]=d,{id:g,styleId:v}=Qu(f,e,r.styleMirror);return(g&&g!==-1||v&&v!==-1)&&t({id:g,styleId:v,adds:[{rule:p,index:m}]}),c.apply(f,d)})});let a=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:ft((c,f,d)=>{let[p]=d,{id:m,styleId:g}=Qu(f,e,r.styleMirror);return(m&&m!==-1||g&&g!==-1)&&t({id:m,styleId:g,removes:[{index:p}]}),c.apply(f,d)})});let i;n.CSSStyleSheet.prototype.replace&&(i=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:ft((c,f,d)=>{let[p]=d,{id:m,styleId:g}=Qu(f,e,r.styleMirror);return(m&&m!==-1||g&&g!==-1)&&t({id:m,styleId:g,replace:p}),c.apply(f,d)})}));let s;n.CSSStyleSheet.prototype.replaceSync&&(s=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:ft((c,f,d)=>{let[p]=d,{id:m,styleId:g}=Qu(f,e,r.styleMirror);return(m&&m!==-1||g&&g!==-1)&&t({id:m,styleId:g,replaceSync:p}),c.apply(f,d)})}));let u={};Sw("CSSGroupingRule")?u.CSSGroupingRule=n.CSSGroupingRule:(Sw("CSSMediaRule")&&(u.CSSMediaRule=n.CSSMediaRule),Sw("CSSConditionRule")&&(u.CSSConditionRule=n.CSSConditionRule),Sw("CSSSupportsRule")&&(u.CSSSupportsRule=n.CSSSupportsRule));let l={};return Object.entries(u).forEach(([c,f])=>{l[c]={insertRule:f.prototype.insertRule,deleteRule:f.prototype.deleteRule},f.prototype.insertRule=new Proxy(l[c].insertRule,{apply:ft((d,p,m)=>{let[g,v]=m,{id:h,styleId:y}=Qu(p.parentStyleSheet,e,r.styleMirror);return(h&&h!==-1||y&&y!==-1)&&t({id:h,styleId:y,adds:[{rule:g,index:[...kw(p),v||0]}]}),d.apply(p,m)})}),f.prototype.deleteRule=new Proxy(l[c].deleteRule,{apply:ft((d,p,m)=>{let[g]=m,{id:v,styleId:h}=Qu(p.parentStyleSheet,e,r.styleMirror);return(v&&v!==-1||h&&h!==-1)&&t({id:v,styleId:h,removes:[{index:[...kw(p),g]}]}),d.apply(p,m)})})}),ft(()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=a,i&&(n.CSSStyleSheet.prototype.replace=i),s&&(n.CSSStyleSheet.prototype.replaceSync=s),Object.entries(u).forEach(([c,f])=>{f.prototype.insertRule=l[c].insertRule,f.prototype.deleteRule=l[c].deleteRule})})}function XK({mirror:t,stylesheetManager:e},r){let n=null;r.nodeName==="#document"?n=t.getId(r):n=t.getId(r.host);let o=r.nodeName==="#document"?_i([r,"access",i=>i.defaultView,"optionalAccess",i=>i.Document]):_i([r,"access",i=>i.ownerDocument,"optionalAccess",i=>i.defaultView,"optionalAccess",i=>i.ShadowRoot]),a=_i([o,"optionalAccess",i=>i.prototype])?Object.getOwnPropertyDescriptor(_i([o,"optionalAccess",i=>i.prototype]),"adoptedStyleSheets"):void 0;return n===null||n===-1||!o||!a?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return _i([a,"access",i=>i.get,"optionalAccess",i=>i.call,"call",i=>i(this)])},set(i){let s=_i([a,"access",u=>u.set,"optionalAccess",u=>u.call,"call",u=>u(this,i)]);if(n!==null&&n!==-1)try{e.adoptStyleSheets(i,n)}catch(u){}return s}}),ft(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function WDe({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:r,stylesheetManager:n},{win:o}){let a=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:ft((s,u,l)=>{let[c,f,d]=l;if(r.has(c))return a.apply(u,[c,f,d]);let{id:p,styleId:m}=Qu(_i([u,"access",g=>g.parentRule,"optionalAccess",g=>g.parentStyleSheet]),e,n.styleMirror);return(p&&p!==-1||m&&m!==-1)&&t({id:p,styleId:m,set:{property:c,value:f,priority:d},index:kw(u.parentRule)}),s.apply(u,l)})});let i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:ft((s,u,l)=>{let[c]=l;if(r.has(c))return i.apply(u,[c]);let{id:f,styleId:d}=Qu(_i([u,"access",p=>p.parentRule,"optionalAccess",p=>p.parentStyleSheet]),e,n.styleMirror);return(f&&f!==-1||d&&d!==-1)&&t({id:f,styleId:d,remove:{property:c},index:kw(u.parentRule)}),s.apply(u,l)})}),ft(()=>{o.CSSStyleDeclaration.prototype.setProperty=a,o.CSSStyleDeclaration.prototype.removeProperty=i})}function $De({mediaInteractionCb:t,blockClass:e,blockSelector:r,unblockSelector:n,mirror:o,sampling:a,doc:i}){let s=ft(l=>My(ft(c=>{let f=Ly(c);if(!f||Ra(f,e,r,n,!0))return;let{currentTime:d,volume:p,muted:m,playbackRate:g}=f;t({type:l,id:o.getId(f),currentTime:d,volume:p,muted:m,playbackRate:g})}),a.media||500)),u=[Ln("play",s(0),i),Ln("pause",s(1),i),Ln("seeked",s(2),i),Ln("volumechange",s(3),i),Ln("ratechange",s(4),i)];return ft(()=>{u.forEach(l=>l())})}function HDe({fontCb:t,doc:e}){let r=e.defaultView;if(!r)return()=>{};let n=[],o=new WeakMap,a=r.FontFace;r.FontFace=function(u,l,c){let f=new a(u,l,c);return o.set(f,{family:u,buffer:typeof l!="string",descriptors:c,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),f};let i=b2(e.fonts,"add",function(s){return function(u){return jw(ft(()=>{let l=o.get(u);l&&(t(l),o.delete(u))}),0),s.apply(this,[u])}});return n.push(()=>{r.FontFace=a}),n.push(i),ft(()=>{n.forEach(s=>s())})}function GDe(t){let{doc:e,mirror:r,blockClass:n,blockSelector:o,unblockSelector:a,selectionCb:i}=t,s=!0,u=ft(()=>{let l=e.getSelection();if(!l||s&&_i([l,"optionalAccess",d=>d.isCollapsed]))return;s=l.isCollapsed||!1;let c=[],f=l.rangeCount||0;for(let d=0;d{}:b2(r.customElements,"define",function(o){return function(a,i,s){try{e({define:{name:a}})}catch(u){}return o.apply(this,[a,i,s])}})}function KDe(t,e={}){let r=t.doc.defaultView;if(!r)return()=>{};let n=YK(t,t.doc),o=qDe(t),a=jDe(t),i=JK(t),s=LDe(t,{win:r}),u=UDe(t),l=$De(t),c=zDe(t,{win:r}),f=XK(t,t.doc),d=WDe(t,{win:r}),p=t.collectFonts?HDe(t):()=>{},m=GDe(t),g=VDe(t),v=[];for(let h of t.plugins)v.push(h.observer(h.callback,r,h.options));return ft(()=>{Dp.forEach(h=>h.reset()),n.disconnect(),o(),a(),i(),s(),u(),l(),c(),f(),d(),p(),m(),g(),v.forEach(h=>h())})}function bw(t){return typeof window[t]!="undefined"}function Sw(t){return!!(typeof window[t]!="undefined"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}var Fy=class{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,r,n,o){let a=n||this.getIdToRemoteIdMap(e),i=o||this.getRemoteIdToIdMap(e),s=a.get(r);return s||(s=this.generateIdFn(),a.set(r,s),i.set(s,r)),s}getIds(e,r){let n=this.getIdToRemoteIdMap(e),o=this.getRemoteIdToIdMap(e);return r.map(a=>this.getId(e,a,n,o))}getRemoteId(e,r,n){let o=n||this.getRemoteIdToIdMap(e);if(typeof r!="number")return r;let a=o.get(r);return a||-1}getRemoteIds(e,r){let n=this.getRemoteIdToIdMap(e);return r.map(o=>this.getRemoteId(e,o,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let r=this.iframeIdToRemoteIdMap.get(e);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(e,r)),r}getRemoteIdToIdMap(e){let r=this.iframeRemoteIdToIdMap.get(e);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(e,r)),r}};function TK(t){let e,r=t[0],n=1;for(;nr.call(e,...i)),e=void 0)}return r}var QM=class{constructor(){this.crossOriginIframeMirror=new Fy(y2),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},e2=class{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Fy(y2),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Fy(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,r){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),TK([this,"access",n=>n.loadListener,"optionalCall",n=>n(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){let r=e;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!e.source)return;let o=this.crossOriginIframeMap.get(e.source);if(!o)return;let a=this.transformCrossOriginEvent(o,r.data.event);a&&this.wrappedEmit(a,r.data.isCheckout)}transformCrossOriginEvent(e,r){switch(r.type){case tt.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(r.data.node,e);let n=r.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(r.data.node,n),{timestamp:r.timestamp,type:tt.IncrementalSnapshot,data:{source:rt.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case tt.Meta:case tt.Load:case tt.DomContentLoaded:return!1;case tt.Plugin:return r;case tt.Custom:return this.replaceIds(r.data.payload,e,["id","parentId","previousId","nextId"]),r;case tt.IncrementalSnapshot:switch(r.data.source){case rt.Mutation:return r.data.adds.forEach(n=>{this.replaceIds(n,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(n.node,e);let o=this.crossOriginIframeRootIdMap.get(e);o&&this.patchRootIdOnNode(n.node,o)}),r.data.removes.forEach(n=>{this.replaceIds(n,e,["parentId","id"])}),r.data.attributes.forEach(n=>{this.replaceIds(n,e,["id"])}),r.data.texts.forEach(n=>{this.replaceIds(n,e,["id"])}),r;case rt.Drag:case rt.TouchMove:case rt.MouseMove:return r.data.positions.forEach(n=>{this.replaceIds(n,e,["id"])}),r;case rt.ViewportResize:return!1;case rt.MediaInteraction:case rt.MouseInteraction:case rt.Scroll:case rt.CanvasMutation:case rt.Input:return this.replaceIds(r.data,e,["id"]),r;case rt.StyleSheetRule:case rt.StyleDeclaration:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleId"]),r;case rt.Font:return r;case rt.Selection:return r.data.ranges.forEach(n=>{this.replaceIds(n,e,["start","end"])}),r;case rt.AdoptedStyleSheet:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleIds"]),TK([r,"access",n=>n.data,"access",n=>n.styles,"optionalAccess",n=>n.forEach,"call",n=>n(o=>{this.replaceStyleIds(o,e,["styleId"])})]),r}}return!1}replace(e,r,n,o){for(let a of o)!Array.isArray(r[a])&&typeof r[a]!="number"||(Array.isArray(r[a])?r[a]=e.getIds(n,r[a]):r[a]=e.getId(n,r[a]));return r}replaceIds(e,r,n){return this.replace(this.crossOriginIframeMirror,e,r,n)}replaceStyleIds(e,r,n){return this.replace(this.crossOriginIframeStyleMirror,e,r,n)}replaceIdOnNode(e,r){this.replaceIds(e,r,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(n=>{this.replaceIdOnNode(n,r)})}patchRootIdOnNode(e,r){e.type!==Br.Document&&!e.rootId&&(e.rootId=r),"childNodes"in e&&e.childNodes.forEach(n=>{this.patchRootIdOnNode(n,r)})}},t2=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},r2=class{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,r){if(!Ry(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let n=YK({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(JK({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),jw(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(XK({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,r){let n=this;this.restoreHandlers.push(b2(e.prototype,"attachShadow",function(o){return function(a){let i=o.call(this,a);return this.shadowRoot&&GK(this)&&n.addShadowRoot(this.shadowRoot,r),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(r){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},Pw=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}},n2=class{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new YM,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,r){if(e.length===0)return;let n={id:r,styleIds:[]},o=[];for(let a of e){let i;this.styleMirror.has(a)?i=this.styleMirror.getId(a):(i=this.styleMirror.add(a),o.push({styleId:i,rules:Array.from(a.rules||CSSRule,(s,u)=>({rule:AK(s),index:u}))})),n.styleIds.push(i)}o.length>0&&(n.styles=o),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}},o2=class{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){DDe(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(e,r){let n=this.nodeMap.get(e);return n&&Array.from(n).some(o=>o!==r)}add(e,r){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(r))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}},mr,Ow,Oa=oDe();function tl(t={}){let{emit:e,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:o="rr-block",blockSelector:a=null,unblockSelector:i=null,ignoreClass:s="rr-ignore",ignoreSelector:u=null,maskAllText:l=!1,maskTextClass:c="rr-mask",unmaskTextClass:f=null,maskTextSelector:d=null,unmaskTextSelector:p=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:v,slimDOMOptions:h,maskAttributeFn:y,maskInputFn:b,maskTextFn:E,maxCanvasSize:w=null,packFn:S,sampling:C={},dataURLOptions:P={},mousemoveWait:k,recordCanvas:O=!1,recordCrossOriginIframes:F=!1,recordAfter:U=t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load",userTriggeredOnInput:J=!1,collectFonts:K=!1,inlineImages:Z=!1,plugins:G,keepIframeSrcFn:Q=()=>!1,ignoreCSSAttributes:N=new Set([]),errorHandler:j,onMutation:V,getCanvasManager:Y}=t;MDe(j);let X=F?window.parent===window:!0,ie=!1;if(!X)try{window.parent.document&&(ie=!1)}catch(he){ie=!0}if(X&&!e)throw new Error("emit function is required");k!==void 0&&C.mousemove===void 0&&(C.mousemove=k),Oa.reset();let de=g===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:v!==void 0?v:{},fe=h===!0||h==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:h==="all",headMetaDescKeywords:h==="all"}:h||{};PDe();let le,_e=0,we=he=>{for(let Ue of G||[])Ue.eventProcessor&&(he=Ue.eventProcessor(he));return S&&!ie&&(he=S(he)),he};mr=(he,Ue)=>{let Ie=he;if(Ie.timestamp=Iw(),zM([Dp,"access",Fe=>Fe[0],"optionalAccess",Fe=>Fe.isFrozen,"call",Fe=>Fe()])&&Ie.type!==tt.FullSnapshot&&!(Ie.type===tt.IncrementalSnapshot&&Ie.data.source===rt.Mutation)&&Dp.forEach(Fe=>Fe.unfreeze()),X)zM([e,"optionalCall",Fe=>Fe(we(Ie),Ue)]);else if(ie){let Fe={type:"rrweb",event:we(Ie),origin:window.location.origin,isCheckout:Ue};window.parent.postMessage(Fe,"*")}if(Ie.type===tt.FullSnapshot)le=Ie,_e=0;else if(Ie.type===tt.IncrementalSnapshot){if(Ie.data.source===rt.Mutation&&Ie.data.isAttachIframe)return;_e++;let Fe=n&&_e>=n,ue=r&&le&&Ie.timestamp-le.timestamp>r;(Fe||ue)&&Qe(!0)}};let ge=he=>{mr({type:tt.IncrementalSnapshot,data:{source:rt.Mutation,...he}})},Se=he=>mr({type:tt.IncrementalSnapshot,data:{source:rt.Scroll,...he}}),me=he=>mr({type:tt.IncrementalSnapshot,data:{source:rt.CanvasMutation,...he}}),be=he=>mr({type:tt.IncrementalSnapshot,data:{source:rt.AdoptedStyleSheet,...he}}),Me=new n2({mutationCb:ge,adoptedStyleSheetCb:be}),ve=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new QM:new e2({mirror:Oa,mutationCb:ge,stylesheetManager:Me,recordCrossOriginIframes:F,wrappedEmit:mr});for(let he of G||[])he.getMirror&&he.getMirror({nodeMirror:Oa,crossOriginIframeMirror:ve.crossOriginIframeMirror,crossOriginIframeStyleMirror:ve.crossOriginIframeStyleMirror});let gt=new o2,qe=JDe(Y,{mirror:Oa,win:window,mutationCb:he=>mr({type:tt.IncrementalSnapshot,data:{source:rt.CanvasMutation,...he}}),recordCanvas:O,blockClass:o,blockSelector:a,unblockSelector:i,maxCanvasSize:w,sampling:C.canvas,dataURLOptions:P,errorHandler:j}),nt=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new t2:new r2({mutationCb:ge,scrollCb:Se,bypassOptions:{onMutation:V,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:l,maskTextClass:c,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:de,dataURLOptions:P,maskAttributeFn:y,maskTextFn:E,maskInputFn:b,recordCanvas:O,inlineImages:Z,sampling:C,slimDOMOptions:fe,iframeManager:ve,stylesheetManager:Me,canvasManager:qe,keepIframeSrcFn:Q,processedNodeManager:gt},mirror:Oa}),Qe=(he=!1)=>{mr({type:tt.Meta,data:{href:window.location.href,width:BK(),height:LK()}},he),Me.reset(),nt.init(),Dp.forEach(Ie=>Ie.lock());let Ue=IDe(document,{mirror:Oa,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:l,maskTextClass:c,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:m,maskAllInputs:de,maskAttributeFn:y,maskInputFn:b,maskTextFn:E,slimDOM:fe,dataURLOptions:P,recordCanvas:O,inlineImages:Z,onSerialize:Ie=>{WK(Ie,Oa)&&ve.addIframe(Ie),$K(Ie,Oa)&&Me.trackLinkElement(Ie),KM(Ie)&&nt.addShadowRoot(Ie.shadowRoot,document)},onIframeLoad:(Ie,Fe)=>{ve.attachIframe(Ie,Fe),nt.observeAttachShadow(Ie)},onStylesheetLoad:(Ie,Fe)=>{Me.attachLinkElement(Ie,Fe)},keepIframeSrcFn:Q});if(!Ue)return console.warn("Failed to snapshot the document");mr({type:tt.FullSnapshot,data:{node:Ue,initialOffset:jK(window)}}),Dp.forEach(Ie=>Ie.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Me.adoptStyleSheets(document.adoptedStyleSheets,Oa.getId(document))};Ow=Qe;try{let he=[],Ue=Fe=>ft(KDe)({onMutation:V,mutationCb:ge,mousemoveCb:(ue,Be)=>mr({type:tt.IncrementalSnapshot,data:{source:Be,positions:ue}}),mouseInteractionCb:ue=>mr({type:tt.IncrementalSnapshot,data:{source:rt.MouseInteraction,...ue}}),scrollCb:Se,viewportResizeCb:ue=>mr({type:tt.IncrementalSnapshot,data:{source:rt.ViewportResize,...ue}}),inputCb:ue=>mr({type:tt.IncrementalSnapshot,data:{source:rt.Input,...ue}}),mediaInteractionCb:ue=>mr({type:tt.IncrementalSnapshot,data:{source:rt.MediaInteraction,...ue}}),styleSheetRuleCb:ue=>mr({type:tt.IncrementalSnapshot,data:{source:rt.StyleSheetRule,...ue}}),styleDeclarationCb:ue=>mr({type:tt.IncrementalSnapshot,data:{source:rt.StyleDeclaration,...ue}}),canvasMutationCb:me,fontCb:ue=>mr({type:tt.IncrementalSnapshot,data:{source:rt.Font,...ue}}),selectionCb:ue=>{mr({type:tt.IncrementalSnapshot,data:{source:rt.Selection,...ue}})},customElementCb:ue=>{mr({type:tt.IncrementalSnapshot,data:{source:rt.CustomElement,...ue}})},blockClass:o,ignoreClass:s,ignoreSelector:u,maskAllText:l,maskTextClass:c,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,maskInputOptions:de,inlineStylesheet:m,sampling:C,recordCanvas:O,inlineImages:Z,userTriggeredOnInput:J,collectFonts:K,doc:Fe,maskAttributeFn:y,maskInputFn:b,maskTextFn:E,keepIframeSrcFn:Q,blockSelector:a,unblockSelector:i,slimDOMOptions:fe,dataURLOptions:P,mirror:Oa,iframeManager:ve,stylesheetManager:Me,shadowDomManager:nt,processedNodeManager:gt,canvasManager:qe,ignoreCSSAttributes:N,plugins:zM([G,"optionalAccess",ue=>ue.filter,"call",ue=>ue(Be=>Be.observer),"optionalAccess",ue=>ue.map,"call",ue=>ue(Be=>({observer:Be.observer,options:Be.options,callback:kt=>mr({type:tt.Plugin,data:{plugin:Be.name,payload:kt}})}))])||[]},{});ve.addLoadListener(Fe=>{try{he.push(Ue(Fe.contentDocument))}catch(ue){console.warn(ue)}});let Ie=()=>{Qe(),he.push(Ue(document))};return document.readyState==="interactive"||document.readyState==="complete"?Ie():(he.push(Ln("DOMContentLoaded",()=>{mr({type:tt.DomContentLoaded,data:{}}),U==="DOMContentLoaded"&&Ie()})),he.push(Ln("load",()=>{mr({type:tt.Load,data:{}}),U==="load"&&Ie()},window))),()=>{he.forEach(Fe=>Fe()),gt.destroy(),Ow=void 0,FDe()}}catch(he){console.warn(he)}}function YDe(t){if(!Ow)throw new Error("please take full snapshot after start recording");Ow(t)}tl.mirror=Oa;tl.takeFullSnapshot=YDe;function JDe(t,e){try{return t?t(e):new Pw}catch(r){return console.warn("Unable to initialize CanvasManager"),new Pw}}var XDe=3,ZDe=5;function E2(t){return t>9999999999?t:t*1e3}function $M(t){return t>9999999999?t/1e3:t}function By(t,e){e.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate(()=>(t.throttledAddEvent({type:tt.Custom,timestamp:(e.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:$e.normalize(e,10,1e3)}}),e.category==="console")))}var QDe="button,a";function ZK(t){return t.closest(QDe)||t}function QK(t){let e=eY(t);return!e||!(e instanceof Element)?e:ZK(e)}function eY(t){return eNe(t)?t.target:t}function eNe(t){return typeof t=="object"&&!!t&&"target"in t}var el;function tNe(t){return el||(el=[],rNe()),el.push(t),()=>{let e=el?el.indexOf(t):-1;e>-1&&el.splice(e,1)}}function rNe(){$e.fill(Kt,"open",function(t){return function(...e){if(el)try{el.forEach(r=>r())}catch(r){}return t.apply(Kt,e)}})}function nNe(t,e,r){t.handleClick(e,r)}var a2=class{constructor(e,r,n=By){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=r.timeout/1e3,this._threshold=r.threshold/1e3,this._scollTimeout=r.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=r.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){let e=tNe(()=>{this._lastMutation=wK()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,r){if(aNe(r,this._ignoreSelector)||!iNe(e))return;let n={timestamp:$M(e.timestamp),clickBreadcrumb:e,clickCount:0,node:r};this._clicks.some(o=>o.node===n.node&&Math.abs(o.timestamp-n.timestamp)<1)||(this._clicks.push(n),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=$M(e)}registerScroll(e=Date.now()){this._lastScroll=$M(e)}registerClick(e){let r=ZK(e);this._handleMultiClick(r)}_handleMultiClick(e){this._getClicks(e).forEach(r=>{r.clickCount++})}_getClicks(e){return this._clicks.filter(r=>r.node===e)}_checkClicks(){let e=[],r=wK();this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=r&&e.push(n)});for(let n of e){let o=this._clicks.indexOf(n);o>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let r=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,o=e.mutationAfter&&e.mutationAfter<=this._threshold,a=!n&&!o,{clickCount:i,clickBreadcrumb:s}=e;if(a){let u=Math.min(e.mutationAfter||this._timeout,this._timeout)*1e3,l=u1){let u={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:Kt.location.href,route:r.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(r,u)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}},oNe=["A","BUTTON","INPUT"];function aNe(t,e){return!!(!oNe.includes(t.tagName)||t.tagName==="INPUT"&&!["submit","button"].includes(t.getAttribute("type")||"")||t.tagName==="A"&&(t.hasAttribute("download")||t.hasAttribute("target")&&t.getAttribute("target")!=="_self")||e&&t.matches(e))}function iNe(t){return!!(t.data&&typeof t.data.nodeId=="number"&&t.timestamp)}function wK(){return Date.now()/1e3}function sNe(t,e){try{if(!uNe(e))return;let{source:r}=e.data;if(r===rt.Mutation&&t.registerMutation(e.timestamp),r===rt.Scroll&&t.registerScroll(e.timestamp),lNe(e)){let{type:n,id:o}=e.data,a=tl.mirror.getNode(o);a instanceof HTMLElement&&n===qn.Click&&t.registerClick(a)}}catch(r){}}function uNe(t){return t.type===XDe}function lNe(t){return t.data.source===rt.MouseInteraction}function bi(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var Rw;(function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"})(Rw||(Rw={}));var cNe=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function dNe(t){let e={};for(let r in t)if(cNe.has(r)){let n=r;(r==="data-testid"||r==="data-test-id")&&(n="testId"),e[n]=t[r]}return e}var fNe=t=>e=>{if(!t.isEnabled())return;let r=pNe(e);if(!r)return;let n=e.name==="click",o=n?e.event:void 0;n&&t.clickDetector&&o&&o.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&nNe(t.clickDetector,r,QK(e.event)),By(t,r)};function tY(t,e){let r=tl.mirror.getId(t),n=r&&tl.mirror.getNode(r),o=n&&tl.mirror.getMeta(n),a=o&&hNe(o)?o:null;return{message:e,data:a?{nodeId:r,node:{id:r,tagName:a.tagName,textContent:Array.from(a.childNodes).map(i=>i.type===Rw.Text&&i.textContent).filter(Boolean).map(i=>i.trim()).join(""),attributes:dNe(a.attributes)}}:{}}}function pNe(t){let{target:e,message:r}=mNe(t);return bi({category:`ui.${t.name}`,...tY(e,r)})}function mNe(t){let e=t.name==="click",r,n=null;try{n=e?QK(t.event):eY(t.event),r=$e.htmlTreeAsString(n,{maxStringLength:200})||""}catch(o){r=""}return{target:n,message:r}}function hNe(t){return t.type===Rw.Element}function gNe(t,e){if(!t.isEnabled())return;t.updateUserActivity();let r=vNe(e);r&&By(t,r)}function vNe(t){let{metaKey:e,shiftKey:r,ctrlKey:n,altKey:o,key:a,target:i}=t;if(!i||yNe(i)||!a)return null;let s=e||n||o,u=a.length===1;if(!s&&u)return null;let l=$e.htmlTreeAsString(i,{maxStringLength:200})||"",c=tY(i,l);return bi({category:"ui.keyDown",message:l,data:{...c.data,metaKey:e,shiftKey:r,ctrlKey:n,altKey:o,key:a}})}function yNe(t){return t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable}var xK={resource:TNe,paint:SNe,navigation:ENe};function _Ne(t){return t.map(bNe).filter(Boolean)}function bNe(t){return xK[t.entryType]?xK[t.entryType](t):null}function Fp(t){return(($e.browserPerformanceTimeOrigin||Kt.performance.timeOrigin)+t)/1e3}function SNe(t){let{duration:e,entryType:r,name:n,startTime:o}=t,a=Fp(o);return{type:r,name:n,start:a,end:a+e,data:void 0}}function ENe(t){let{entryType:e,name:r,decodedBodySize:n,duration:o,domComplete:a,encodedBodySize:i,domContentLoadedEventStart:s,domContentLoadedEventEnd:u,domInteractive:l,loadEventStart:c,loadEventEnd:f,redirectCount:d,startTime:p,transferSize:m,type:g}=t;return o===0?null:{type:`${e}.${g}`,start:Fp(p),end:Fp(a),name:r,data:{size:m,decodedBodySize:n,encodedBodySize:i,duration:o,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:u,loadEventStart:c,loadEventEnd:f,domComplete:a,redirectCount:d}}}function TNe(t){let{entryType:e,initiatorType:r,name:n,responseEnd:o,startTime:a,decodedBodySize:i,encodedBodySize:s,responseStatus:u,transferSize:l}=t;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${e}.${r}`,start:Fp(a),end:Fp(o),name:n,data:{size:l,statusCode:u,decodedBodySize:i,encodedBodySize:s}}}function wNe(t){let e=t.entries,r=e[e.length-1],n=r?r.element:void 0,o=t.value,a=Fp(o);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:a,end:a,data:{value:o,size:o,nodeId:n?tl.mirror.getId(n):void 0}}}function xNe(t){function e(o){t.performanceEntries.includes(o)||t.performanceEntries.push(o)}function r({entries:o}){o.forEach(e)}let n=[];return["navigation","paint","resource"].forEach(o=>{n.push(dK.addPerformanceInstrumentationHandler(o,r))}),n.push(dK.addLcpInstrumentationHandler(({metric:o})=>{t.replayPerformanceEntries.push(wNe(o))})),()=>{n.forEach(o=>o())}}var Bt=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__,CNe='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([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,0,0,0]),i=new t([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,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a>h]=l}else for(o=new n(i),a=0;a>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;ad&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<e))break;p+=m-(1<>=y;p>0;){var M=o[a].s;g[M]=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;Pnt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i>1)),o=0,f=function(t){s[o++]=t};for(i=0;is.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function INe(){let t=new Blob([CNe]);return URL.createObjectURL(t)}function jn(t,e){Bt&&($e.logger.info(t),e&&rY(t))}function Np(t,e){Bt&&($e.logger.info(t),e&&setTimeout(()=>{rY(t)},0))}function rY(t){rr.addBreadcrumb({category:"console",data:{logger:"replay"},level:"info",message:t},{level:"info"})}var qy=class extends Error{constructor(){super(`Event buffer exceeded maximum size of ${g2}.`)}},Dw=class{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let r=JSON.stringify(e).length;if(this._totalSize+=r,this._totalSize>g2)throw new qy;this.events.push(e)}finish(){return new Promise(e=>{let r=this.events;this.clear(),e(JSON.stringify(r))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(r=>r.timestamp).sort()[0];return e?E2(e):null}},i2=class{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((e,r)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():r()},{once:!0}),this._worker.addEventListener("error",n=>{r(n)},{once:!0})}),this._ensureReadyPromise)}destroy(){jn("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,r){let n=this._getAndIncrementId();return new Promise((o,a)=>{let i=({data:s})=>{let u=s;if(u.method===e&&u.id===n){if(this._worker.removeEventListener("message",i),!u.success){Bt&&$e.logger.error("[Replay]",u.response),a(new Error("Error in compression worker"));return}o(u.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:n,method:e,arg:r})})}_getAndIncrementId(){return this._id++}},s2=class{constructor(e){this._worker=new i2(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let r=E2(e.timestamp);(!this._earliestTimestamp||rg2?Promise.reject(new qy):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{Bt&&$e.logger.warn('[Replay] Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}},u2=class{constructor(e){this._fallback=new Dw,this._compression=new s2(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){jn("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:r}=this._fallback,n=[];for(let o of e)n.push(this._compression.addEvent(o));this._compression.hasCheckout=r,this._used=this._compression;try{await Promise.all(n)}catch(o){Bt&&$e.logger.warn("[Replay] Failed to add events when switching buffers.",o)}}};function kNe({useCompression:t,workerUrl:e}){if(t&&window.Worker){let r=PNe(e);if(r)return r}return jn("[Replay] Using simple buffer"),new Dw}function PNe(t){try{let e=t||ONe();if(!e)return;jn(`[Replay] Using compression worker${t?` from ${t}`:""}`);let r=new Worker(e);return new u2(r)}catch(e){jn("[Replay] Failed to create compression worker")}}function ONe(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__=="undefined"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?INe():""}function T2(){try{return"sessionStorage"in Kt&&!!Kt.sessionStorage}catch(t){return!1}}function RNe(t){DNe(),t.session=void 0}function DNe(){if(T2())try{Kt.sessionStorage.removeItem(m2)}catch(t){}}function nY(t){return t===void 0?!1:Math.random()t.getContext().initialTimestamp+t.getOptions().maxReplayDuration?(jn(`[Replay] Skipping event with timestamp ${r} because it is after maxReplayDuration`,t.getOptions()._experiments.traceInternals),!1):!0}function qNe(t,e){try{if(typeof e=="function"&&MNe(t))return e(t)}catch(r){return Bt&&$e.logger.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",r),null}return t}function C2(t){return!t.type}function c2(t){return t.type==="transaction"}function jNe(t){return t.type==="replay_event"}function IK(t){return t.type==="feedback"}function lY(t){let e=UNe();return(r,n)=>{if(!t.isEnabled()||!C2(r)&&!c2(r))return;let o=n&&n.statusCode;if(!(e&&(!o||o<200||o>=300))){if(c2(r)){LNe(t,r);return}BNe(t,r)}}}function LNe(t,e){let r=t.getContext();e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id&&r.traceIds.size<100&&r.traceIds.add(e.contexts.trace.trace_id)}function BNe(t,e){let r=t.getContext();if(e.event_id&&r.errorIds.size<100&&r.errorIds.add(e.event_id),t.recordingMode!=="buffer"||!e.tags||!e.tags.replayId)return;let{beforeErrorSampling:n}=t.getOptions();typeof n=="function"&&!n(e)||setTimeout(()=>{t.sendBufferedReplayOrFlush()})}function UNe(){let t=rr.getClient();if(!t)return!1;let e=t.getTransport();return e&&e.send.__sentry__baseTransport__||!1}function zNe(t){return e=>{!t.isEnabled()||!C2(e)||WNe(t,e)}}function WNe(t,e){let r=e.exception&&e.exception.values&&e.exception.values[0].value;if(typeof r=="string"&&(r.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i))){let n=bi({category:"replay.hydrate-error"});By(t,n)}}function $Ne(t,e){return t.type||!t.exception||!t.exception.values||!t.exception.values.length?!1:!!(e.originalException&&e.originalException.__rrweb__)}function HNe(t,e){t.triggerUserActivity(),t.addUpdate(()=>e.timestamp?(t.throttledAddEvent({type:tt.Custom,timestamp:e.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:e.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:e.event_id}}}}),!1):!0)}function GNe(t,e){return t.recordingMode!=="buffer"||e.message===h2||!e.exception||e.type?!1:nY(t.getOptions().errorSampleRate)}function VNe(t,e=!1){let r=e?lY(t):void 0;return Object.assign((n,o)=>t.isEnabled()?jNe(n)?(delete n.breadcrumbs,n):!C2(n)&&!c2(n)&&!IK(n)||!t.checkAndHandleExpiredSession()?n:IK(n)?(t.flush(),n.contexts.feedback.replay_id=t.getSessionId(),HNe(t,n),n):$Ne(n,o)&&!t.getOptions()._experiments.captureExceptions?(Bt&&$e.logger.log("[Replay] Ignoring error from rrweb internals",n),null):((GNe(t,n)||t.recordingMode==="session")&&(n.tags={...n.tags,replayId:t.getSessionId()}),r&&r(n,{statusCode:200}),n):n,{id:"Replay"})}function Lw(t,e){return e.map(({type:r,start:n,end:o,name:a,data:i})=>{let s=t.throttledAddEvent({type:tt.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:r,description:a,startTimestamp:n,endTimestamp:o,data:i}}});return typeof s=="string"?Promise.resolve(null):s})}function KNe(t){let{from:e,to:r}=t,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:e}}}function YNe(t){return e=>{if(!t.isEnabled())return;let r=KNe(e);r!==null&&(t.getContext().urls.push(r.name),t.triggerUserActivity(),t.addUpdate(()=>(Lw(t,[r]),!1)))}}function JNe(t,e){return Bt&&t.getOptions()._experiments.traceInternals?!1:rr.isSentryRequestUrl(e,rr.getClient())}function Bw(t,e){t.isEnabled()&&e!==null&&(JNe(t,e.name)||t.addUpdate(()=>(Lw(t,[e]),!0)))}function XNe(t){let{startTimestamp:e,endTimestamp:r,fetchData:n,response:o}=t;if(!r)return null;let{method:a,url:i}=n;return{type:"resource.fetch",start:e/1e3,end:r/1e3,name:i,data:{method:a,statusCode:o?o.status:void 0}}}function ZNe(t){return e=>{if(!t.isEnabled())return;let r=XNe(e);Bw(t,r)}}function QNe(t){let{startTimestamp:e,endTimestamp:r,xhr:n}=t,o=n[$e.SENTRY_XHR_DATA_KEY];if(!e||!r||!o)return null;let{method:a,url:i,status_code:s}=o;return i===void 0?null:{type:"resource.xhr",name:i,start:e/1e3,end:r/1e3,data:{method:a,statusCode:s}}}function eAe(t){return e=>{if(!t.isEnabled())return;let r=QNe(e);Bw(t,r)}}function Uw(t,e){if(t)try{if(typeof t=="string")return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){let r=pY(t);return e.encode(r).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch(r){}}function cY(t){if(!t)return;let e=parseInt(t,10);return isNaN(e)?void 0:e}function dY(t){try{if(typeof t=="string")return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[pY(t)];if(!t)return[void 0]}catch(e){return Bt&&$e.logger.warn("[Replay] Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return Bt&&$e.logger.info("[Replay] Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Nw(t,e){if(!t)return{headers:{},size:void 0,_meta:{warnings:[e]}};let r={...t._meta},n=r.warnings||[];return r.warnings=[...n,e],t._meta=r,t}function fY(t,e){if(!e)return null;let{startTimestamp:r,endTimestamp:n,url:o,method:a,statusCode:i,request:s,response:u}=e;return{type:t,start:r/1e3,end:n/1e3,name:o,data:$e.dropUndefinedKeys({method:a,statusCode:i,request:s,response:u})}}function jy(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function rl(t,e,r){if(!e&&Object.keys(t).length===0)return;if(!e)return{headers:t};if(!r)return{headers:t,size:e};let n={headers:t,size:e},{body:o,warnings:a}=tAe(r);return n.body=o,a&&a.length>0&&(n._meta={warnings:a}),n}function d2(t,e){return Object.keys(t).reduce((r,n)=>{let o=n.toLowerCase();return e.includes(o)&&t[n]&&(r[o]=t[n]),r},{})}function pY(t){return new URLSearchParams(t).toString()}function tAe(t){if(!t||typeof t!="string")return{body:t};let e=t.length>fK,r=rAe(t);if(e){let n=t.slice(0,fK);return r?{body:n,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${n}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(r)try{return{body:JSON.parse(t)}}catch(n){}return{body:t}}function rAe(t){let e=t[0],r=t[t.length-1];return e==="["&&r==="]"||e==="{"&&r==="}"}function Aw(t,e){let r=nAe(t);return $e.stringMatchesSomePattern(r,e)}function nAe(t,e=Kt.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(Kt.location.origin))return t;let r=new URL(t,e);if(r.origin!==new URL(e).origin)return t;let n=r.href;return!t.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}async function oAe(t,e,r){try{let n=await iAe(t,e,r),o=fY("resource.fetch",n);Bw(r.replay,o)}catch(n){Bt&&$e.logger.error("[Replay] Failed to capture fetch breadcrumb",n)}}function aAe(t,e,r){let{input:n,response:o}=e,a=n?mY(n):void 0,i=Uw(a,r.textEncoder),s=o?cY(o.headers.get("content-length")):void 0;i!==void 0&&(t.data.request_body_size=i),s!==void 0&&(t.data.response_body_size=s)}async function iAe(t,e,r){let n=Date.now(),{startTimestamp:o=n,endTimestamp:a=n}=e,{url:i,method:s,status_code:u=0,request_body_size:l,response_body_size:c}=t.data,f=Aw(i,r.networkDetailAllowUrls)&&!Aw(i,r.networkDetailDenyUrls),d=f?sAe(r,e.input,l):jy(l),p=await uAe(f,r,e.response,c);return{startTimestamp:o,endTimestamp:a,url:i,method:s,statusCode:u,request:d,response:p}}function sAe({networkCaptureBodies:t,networkRequestHeaders:e},r,n){let o=r?dAe(r,e):{};if(!t)return rl(o,n,void 0);let a=mY(r),[i,s]=dY(a),u=rl(o,n,i);return s?Nw(u,s):u}async function uAe(t,{networkCaptureBodies:e,textEncoder:r,networkResponseHeaders:n},o,a){if(!t&&a!==void 0)return jy(a);let i=o?hY(o.headers,n):{};if(!o||!e&&a!==void 0)return rl(i,a,void 0);let[s,u]=await cAe(o),l=lAe(s,{networkCaptureBodies:e,textEncoder:r,responseBodySize:a,captureDetails:t,headers:i});return u?Nw(l,u):l}function lAe(t,{networkCaptureBodies:e,textEncoder:r,responseBodySize:n,captureDetails:o,headers:a}){try{let i=t&&t.length&&n===void 0?Uw(t,r):n;return o?e?rl(a,i,t):rl(a,i,void 0):jy(i)}catch(i){return Bt&&$e.logger.warn("[Replay] Failed to serialize response body",i),rl(a,n,void 0)}}async function cAe(t){let e=fAe(t);if(!e)return[void 0,"BODY_PARSE_ERROR"];try{return[await pAe(e)]}catch(r){return Bt&&$e.logger.warn("[Replay] Failed to get text body from response",r),[void 0,"BODY_PARSE_ERROR"]}}function mY(t=[]){if(!(t.length!==2||typeof t[1]!="object"))return t[1].body}function hY(t,e){let r={};return e.forEach(n=>{t.get(n)&&(r[n]=t.get(n))}),r}function dAe(t,e){return t.length===1&&typeof t[0]!="string"?kK(t[0],e):t.length===2?kK(t[1],e):{}}function kK(t,e){if(!t)return{};let r=t.headers;return r?r instanceof Headers?hY(r,e):Array.isArray(r)?{}:d2(r,e):{}}function fAe(t){try{return t.clone()}catch(e){Bt&&$e.logger.warn("[Replay] Failed to clone response body",e)}}function pAe(t){return new Promise((e,r)=>{let n=setTimeout(()=>r(new Error("Timeout while trying to read response body")),500);mAe(t).then(o=>e(o),o=>r(o)).finally(()=>clearTimeout(n))})}async function mAe(t){return await t.text()}async function hAe(t,e,r){try{let n=vAe(t,e,r),o=fY("resource.xhr",n);Bw(r.replay,o)}catch(n){Bt&&$e.logger.error("[Replay] Failed to capture xhr breadcrumb",n)}}function gAe(t,e,r){let{xhr:n,input:o}=e;if(!n)return;let a=Uw(o,r.textEncoder),i=n.getResponseHeader("content-length")?cY(n.getResponseHeader("content-length")):SAe(n.response,n.responseType,r.textEncoder);a!==void 0&&(t.data.request_body_size=a),i!==void 0&&(t.data.response_body_size=i)}function vAe(t,e,r){let n=Date.now(),{startTimestamp:o=n,endTimestamp:a=n,input:i,xhr:s}=e,{url:u,method:l,status_code:c=0,request_body_size:f,response_body_size:d}=t.data;if(!u)return null;if(!s||!Aw(u,r.networkDetailAllowUrls)||Aw(u,r.networkDetailDenyUrls)){let S=jy(f),C=jy(d);return{startTimestamp:o,endTimestamp:a,url:u,method:l,statusCode:c,request:S,response:C}}let p=s[$e.SENTRY_XHR_DATA_KEY],m=p?d2(p.request_headers,r.networkRequestHeaders):{},g=d2(yAe(s),r.networkResponseHeaders),[v,h]=r.networkCaptureBodies?dY(i):[void 0],[y,b]=r.networkCaptureBodies?_Ae(s):[void 0],E=rl(m,f,v),w=rl(g,d,y);return{startTimestamp:o,endTimestamp:a,url:u,method:l,statusCode:c,request:h?Nw(E,h):E,response:b?Nw(w,b):w}}function yAe(t){let e=t.getAllResponseHeaders();return e?e.split(`\r -`).reduce((r,n)=>{let[o,a]=n.split(": ");return r[o.toLowerCase()]=a,r},{}):{}}function _Ae(t){let e=[];try{return[t.responseText]}catch(r){e.push(r)}try{return bAe(t.response,t.responseType)}catch(r){e.push(r)}return Bt&&$e.logger.warn("[Replay] Failed to get xhr response body",...e),[void 0]}function bAe(t,e){try{if(typeof t=="string")return[t];if(t instanceof Document)return[t.body.outerHTML];if(e==="json"&&t&&typeof t=="object")return[JSON.stringify(t)];if(!t)return[void 0]}catch(r){return Bt&&$e.logger.warn("[Replay] Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return Bt&&$e.logger.info("[Replay] Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function SAe(t,e,r){try{let n=e==="json"&&t&&typeof t=="object"?JSON.stringify(t):t;return Uw(n,r)}catch(n){return}}function EAe(t){let e=rr.getClient();try{let r=new TextEncoder,{networkDetailAllowUrls:n,networkDetailDenyUrls:o,networkCaptureBodies:a,networkRequestHeaders:i,networkResponseHeaders:s}=t.getOptions(),u={replay:t,textEncoder:r,networkDetailAllowUrls:n,networkDetailDenyUrls:o,networkCaptureBodies:a,networkRequestHeaders:i,networkResponseHeaders:s};e&&e.on?e.on("beforeAddBreadcrumb",(l,c)=>TAe(u,l,c)):($e.addFetchInstrumentationHandler(ZNe(t)),$e.addXhrInstrumentationHandler(eAe(t)))}catch(r){}}function TAe(t,e,r){if(e.data)try{wAe(e)&&CAe(r)&&(gAe(e,r,t),hAe(e,r,t)),xAe(e)&&IAe(r)&&(aAe(e,r,t),oAe(e,r,t))}catch(n){Bt&&$e.logger.warn("Error when enriching network breadcrumb")}}function wAe(t){return t.category==="xhr"}function xAe(t){return t.category==="fetch"}function CAe(t){return t&&t.xhr}function IAe(t){return t&&t.response}var PK=null;function kAe(t){return!!t.category}var PAe=t=>e=>{if(!t.isEnabled())return;let r=OAe(e);r&&By(t,r)};function OAe(t){let e=t.getLastBreadcrumb&&t.getLastBreadcrumb();return PK===e||!e||(PK=e,!kAe(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))?null:e.category==="console"?RAe(e):bi(e)}function RAe(t){let e=t.data&&t.data.arguments;if(!Array.isArray(e)||e.length===0)return bi(t);let r=!1,n=e.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>_w?(r=!0,`${o.slice(0,_w)}\u2026`):o;if(typeof o=="object")try{let a=$e.normalize(o,7);return JSON.stringify(a).length>_w?(r=!0,`${JSON.stringify(a,null,2).slice(0,_w)}\u2026`):a}catch(a){}return o});return bi({...t,data:{...t.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function DAe(t){let e=rr.getCurrentScope(),r=rr.getClient();e.addScopeListener(PAe(t)),$e.addClickKeypressInstrumentationHandler(fNe(t)),$e.addHistoryInstrumentationHandler(YNe(t)),EAe(t);let n=VNe(t,!OK(r));r&&r.addEventProcessor?r.addEventProcessor(n):rr.addEventProcessor(n),OK(r)&&(r.on("beforeSendEvent",zNe(t)),r.on("afterSendEvent",lY(t)),r.on("createDsc",o=>{let a=t.getSessionId();a&&t.isEnabled()&&t.recordingMode==="session"&&t.checkAndHandleExpiredSession()&&(o.replay_id=a)}),r.on("startTransaction",o=>{t.lastTransaction=o}),r.on("finishTransaction",o=>{t.lastTransaction=o}),r.on("beforeSendFeedback",(o,a)=>{let i=t.getSessionId();a&&a.includeReplay&&t.isEnabled()&&i&&o.contexts&&o.contexts.feedback&&(o.contexts.feedback.replay_id=i)}))}function OK(t){return!!(t&&t.on)}async function NAe(t){try{return Promise.all(Lw(t,[AAe(Kt.performance.memory)]))}catch(e){return[]}}function AAe(t){let{jsHeapSizeLimit:e,totalJSHeapSize:r,usedJSHeapSize:n}=t,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:r,usedJSHeapSize:n}}}}function MAe(t,e,r){let n,o,a,i=r&&r.maxWait?Math.max(r.maxWait,e):0;function s(){return u(),n=t(),n}function u(){o!==void 0&&clearTimeout(o),a!==void 0&&clearTimeout(a),o=a=void 0}function l(){return o!==void 0||a!==void 0?s():n}function c(){return o&&clearTimeout(o),o=setTimeout(s,e),i&&a===void 0&&(a=setTimeout(s,i)),n}return c.cancel=u,c.flush=l,c}function FAe(t){let e=!1;return(r,n)=>{if(!t.checkAndHandleExpiredSession()){Bt&&$e.logger.warn("[Replay] Received replay event after session expired.");return}let o=n||!e;e=!0,t.clickDetector&&sNe(t.clickDetector,r),t.addUpdate(()=>{if(t.recordingMode==="buffer"&&o&&t.setInitialState(),!x2(t,r,o))return!0;if(!o)return!1;if(jAe(t,o),t.session&&t.session.previousSessionId)return!0;if(t.recordingMode==="buffer"&&t.session&&t.eventBuffer){let a=t.eventBuffer.getEarliestTimestamp();a&&(jn(`[Replay] Updating session start time to earliest event in buffer to ${new Date(a)}`,t.getOptions()._experiments.traceInternals),t.session.started=a,t.getOptions().stickySession&&w2(t.session))}return t.recordingMode==="session"&&t.flush(),!0})}}function qAe(t){let e=t.getOptions();return{type:tt.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:t.isRecordingCanvas(),sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:t.eventBuffer?t.eventBuffer.type==="worker":!1,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}function jAe(t,e){!e||!t.session||t.session.segmentId!==0||x2(t,qAe(t),!1)}function LAe(t,e,r,n){return $e.createEnvelope($e.createEventEnvelopeHeaders(t,$e.getSdkMetadataForEnvelopeHeader(t),n,r),[[{type:"replay_event"},t],[{type:"replay_recording",length:typeof e=="string"?new TextEncoder().encode(e).length:e.length},e]])}function BAe({recordingData:t,headers:e}){let r,n=`${JSON.stringify(e)} -`;if(typeof t=="string")r=`${n}${t}`;else{let a=new TextEncoder().encode(n);r=new Uint8Array(a.length+t.length),r.set(a),r.set(t,a.length)}return r}async function UAe({client:t,scope:e,replayId:r,event:n}){let o=typeof t._integrations=="object"&&t._integrations!==null&&!Array.isArray(t._integrations)?Object.keys(t._integrations):void 0,a={event_id:r,integrations:o};t.emit&&t.emit("preprocessEvent",n,a);let i=await rr.prepareEvent(t.getOptions(),n,a,e,t,rr.getIsolationScope());if(!i)return null;i.platform=i.platform||"javascript";let s=t.getSdkMetadata&&t.getSdkMetadata(),{name:u,version:l}=s&&s.sdk||{};return i.sdk={...i.sdk,name:u||"sentry.javascript.unknown",version:l||"0.0.0"},i}async function zAe({recordingData:t,replayId:e,segmentId:r,eventContext:n,timestamp:o,session:a}){let i=BAe({recordingData:t,headers:{segment_id:r}}),{urls:s,errorIds:u,traceIds:l,initialTimestamp:c}=n,f=rr.getClient(),d=rr.getCurrentScope(),p=f&&f.getTransport(),m=f&&f.getDsn();if(!f||!p||!m||!a.sampled)return;let g={type:LRe,replay_start_timestamp:c/1e3,timestamp:o/1e3,error_ids:u,trace_ids:l,urls:s,replay_id:e,segment_id:r,replay_type:a.sampled},v=await UAe({scope:d,client:f,replayId:e,event:g});if(!v){f.recordDroppedEvent("event_processor","replay",g),jn("An event processor returned `null`, will not send event.");return}delete v.sdkProcessingMetadata;let h=LAe(v,i,m,f.getOptions().tunnel),y;try{y=await p.send(h)}catch(E){let w=new Error(h2);try{w.cause=E}catch(S){}throw w}if(!y)return y;if(typeof y.statusCode=="number"&&(y.statusCode<200||y.statusCode>=300))throw new Mw(y.statusCode);let b=$e.updateRateLimits({},y);if($e.isRateLimited(b,"replay"))throw new Fw(b);return y}var Mw=class extends Error{constructor(e){super(`Transport returned status code ${e}`)}},Fw=class extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}};async function gY(t,e={count:0,interval:HRe}){let{recordingData:r,options:n}=t;if(r.length)try{return await zAe(t),!0}catch(o){if(o instanceof Mw||o instanceof Fw)throw o;if(rr.setContext("Replays",{_retryCount:e.count}),Bt&&n._experiments&&n._experiments.captureExceptions&&rr.captureException(o),e.count>=GRe){let a=new Error(`${h2} - max retries exceeded`);try{a.cause=o}catch(i){}throw a}return e.interval*=++e.count,new Promise((a,i)=>{setTimeout(async()=>{try{await gY(t,e),a(!0)}catch(s){i(s)}},e.interval)})}}var vY="__THROTTLED",WAe="__SKIPPED";function $Ae(t,e,r){let n=new Map,o=s=>{let u=s-r;n.forEach((l,c)=>{c[...n.values()].reduce((s,u)=>s+u,0),i=!1;return(...s)=>{let u=Math.floor(Date.now()/1e3);if(o(u),a()>=e){let c=i;return i=!0,c?WAe:vY}i=!1;let l=n.get(u)||0;return n.set(u,l+1),t(...s)}}var f2=class t{constructor({options:e,recordingOptions:r}){t.prototype.__init.call(this),t.prototype.__init2.call(this),t.prototype.__init3.call(this),t.prototype.__init4.call(this),t.prototype.__init5.call(this),t.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:BRe,sessionIdleExpire:URe},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=r,this._options=e,this._debouncedFlush=MAe(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=$Ae((i,s)=>FNe(this,i,s),300,5);let{slowClickTimeout:n,slowClickIgnoreSelectors:o}=this.getOptions(),a=n?{threshold:Math.min(VRe,n),timeout:n,scrollTimeout:KRe,ignoreSelector:o?o.join(","):""}:void 0;a&&(this.clickDetector=new a2(this,a))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}initializeSampling(e){let{errorSampleRate:r,sessionSampleRate:n}=this._options;if(!(r<=0&&n<=0)){if(this._initializeSessionForSampling(e),!this.session){this._handleException(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",Np(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session")throw new Error("Replay recording is already in progress");if(this._isEnabled&&this.recordingMode==="buffer")throw new Error("Replay buffering is in progress, call `flush()` to save the replay");Np("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();let e=HM({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");Np("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);let e=HM({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{let e=this._canvas;this._stopRecording=tl({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:$Re},emit:FAe(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:r}={}){if(this._isEnabled){this._isEnabled=!1;try{jn(`[Replay] Stopping Replay${r?` triggered by ${r}`:""}`,this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,RNe(this)}catch(n){this._handleException(n)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),jn("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),jn("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();let r=Date.now();jn("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();let n=this.stopRecording();!e||!n||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(r),this._updateSessionActivity(r),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let r=e();this.recordingMode!=="buffer"&&r!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&l2(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${Kt.location.pathname}${Kt.location.hash}${Kt.location.search}`,r=`${Kt.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=r,this._context.initialTimestamp=Date.now(),this._context.urls.push(r)}throttledAddEvent(e,r){let n=this._throttledAddEvent(e,r);if(n===vY){let o=bi({category:"replay.throttled"});this.addUpdate(()=>!x2(this,{type:ZDe,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastTransaction||rr.getCurrentScope().getTransaction(),n=(e&&rr.spanToJSON(e).data||{})[rr.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(!(!e||!n||!["route","custom"].includes(n)))return rr.spanToJSON(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=kNe({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){Bt&&$e.logger.error("[Replay]",e),Bt&&this._options._experiments&&this._options._experiments.captureExceptions&&rr.captureException(e)}_initializeSessionForSampling(e){let r=this._options.errorSampleRate>0,n=HM({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:r});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return iY(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(e),!1):!0}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{Kt.document.addEventListener("visibilitychange",this._handleVisibilityChange),Kt.addEventListener("blur",this._handleWindowBlur),Kt.addEventListener("focus",this._handleWindowFocus),Kt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(DAe(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=xNe(this)}_removeListeners(){try{Kt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Kt.removeEventListener("blur",this._handleWindowBlur),Kt.removeEventListener("focus",this._handleWindowFocus),Kt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{Kt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{let e=bi({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{let e=bi({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{gNe(this,e)}}_doChangeToBackgroundTasks(e){!this.session||aY(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){jn("[Replay] Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:tt.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=_Ne(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Lw(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:r}=this;if(!e||!r||e.segmentId)return;let n=r.getEarliestTimestamp();n&&nthis._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");let n=this._popEventContext(),o=this.session.segmentId++;this._maybeSaveSession();let a=await this.eventBuffer.finish();await gY({replayId:e,recordingData:a,segmentId:o,eventContext:n,session:this.session,options:this.getOptions(),timestamp:r})}catch(r){this._handleException(r),this.stop({reason:"sendReplay"});let n=rr.getClient();n&&n.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){Bt&&$e.logger.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session)return;let r=this.session.started,o=Date.now()-r;this._debouncedFlush.cancel();let a=othis._options.maxReplayDuration+5e3;if(a||i){jn(`[Replay] Session duration (${Math.floor(o/1e3)}s) is too ${a?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),a&&this._debouncedFlush();return}let s=this.eventBuffer;if(s&&this.session.segmentId===0&&!s.hasCheckout&&jn("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(u){Bt&&$e.logger.error(u)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&w2(this.session)}__init6(){this._onMutationHandler=e=>{let r=e.length,n=this._options.mutationLimit,o=this._options.mutationBreadcrumbLimit,a=n&&r>n;if(r>o||a){let i=bi({category:"replay.mutations",data:{count:r,limit:a}});this._createCustomBreadcrumb(i)}return a?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}};function Py(t,e,r,n){let o=typeof n=="string"?n.split(","):[],a=[...t,...o,...e];return typeof r!="undefined"&&(typeof r=="string"&&a.push(`.${r}`),$e.consoleSandbox(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),a.join(",")}function HAe({mask:t,unmask:e,block:r,unblock:n,ignore:o,blockClass:a,blockSelector:i,maskTextClass:s,maskTextSelector:u,ignoreClass:l}){let c=['base[href="/"]'],f=Py(t,[".sentry-mask","[data-sentry-mask]"],s,u),d=Py(e,[".sentry-unmask","[data-sentry-unmask]"]),p={maskTextSelector:f,unmaskTextSelector:d,blockSelector:Py(r,[".sentry-block","[data-sentry-block]",...c],a,i),unblockSelector:Py(n,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Py(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],l)};return a instanceof RegExp&&(p.blockClass=a),s instanceof RegExp&&(p.maskTextClass=s),p}function GAe({el:t,key:e,maskAttributes:r,maskAllText:n,privacyOptions:o,value:a}){return!n||o.unmaskTextSelector&&t.matches(o.unmaskTextSelector)?a:r.includes(e)||e==="value"&&t.tagName==="INPUT"&&["submit","button"].includes(t.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a}var RK='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',VAe=["content-length","content-type","accept"],DK=!1,yY=t=>new qp(t),qp=class t{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=zRe,flushMaxDelay:r=WRe,minReplayDuration:n=YRe,maxReplayDuration:o=pK,stickySession:a=!0,useCompression:i=!0,workerUrl:s,_experiments:u={},sessionSampleRate:l,errorSampleRate:c,maskAllText:f=!0,maskAllInputs:d=!0,blockAllMedia:p=!0,mutationBreadcrumbLimit:m=750,mutationLimit:g=1e4,slowClickTimeout:v=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:b=[],networkCaptureBodies:E=!0,networkRequestHeaders:w=[],networkResponseHeaders:S=[],mask:C=[],maskAttributes:P=["title","placeholder"],unmask:k=[],block:O=[],unblock:F=[],ignore:U=[],maskFn:J,beforeAddRecordingEvent:K,beforeErrorSampling:Z,blockClass:G,blockSelector:Q,maskInputOptions:N,maskTextClass:j,maskTextSelector:V,ignoreClass:Y}={}){this.name=t.id;let X=HAe({mask:C,unmask:k,block:O,unblock:F,ignore:U,blockClass:G,blockSelector:Q,maskTextClass:j,maskTextSelector:V,ignoreClass:Y});if(this._recordingOptions={maskAllInputs:d,maskAllText:f,maskInputOptions:{...N||{},password:!0},maskTextFn:J,maskInputFn:J,maskAttributeFn:(ie,de,fe)=>GAe({maskAttributes:P,maskAllText:f,privacyOptions:X,key:ie,value:de,el:fe}),...X,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:ie=>{try{ie.__rrweb__=!0}catch(de){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:r,minReplayDuration:Math.min(n,JRe),maxReplayDuration:Math.min(o,pK),stickySession:a,sessionSampleRate:l,errorSampleRate:c,useCompression:i,workerUrl:s,blockAllMedia:p,maskAllInputs:d,maskAllText:f,mutationBreadcrumbLimit:m,mutationLimit:g,slowClickTimeout:v,slowClickIgnoreSelectors:h,networkDetailAllowUrls:y,networkDetailDenyUrls:b,networkCaptureBodies:E,networkRequestHeaders:NK(w),networkResponseHeaders:NK(S),beforeAddRecordingEvent:K,beforeErrorSampling:Z,_experiments:u},typeof l=="number"&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration. +or you can use record.mirror to access the mirror instance during recording.`,gK={map:{},getId(){return console.error(kf),-1},getNode(){return console.error(kf),null},removeNodeFromMap(){console.error(kf)},has(){return console.error(kf),!1},reset(){console.error(kf)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(gK=new Proxy(gK,{get(t,e,r){return e==="map"&&console.error(kf),Reflect.get(t,e,r)}}));function My(t,e,r={}){let n=null,o=0;return function(...a){let i=Date.now();!o&&r.leading===!1&&(o=i);let s=e-(i-o),u=this;s<=0||s>e?(n&&(NDe(n),n=null),o=i,t.apply(u,a)):!n&&r.trailing!==!1&&(n=jw(()=>{o=r.leading===!1?0:Date.now(),n=null,t.apply(u,a)},s))}}function qK(t,e,r,n,o=window){let a=o.Object.getOwnPropertyDescriptor(t,e);return o.Object.defineProperty(t,e,n?r:{set(i){jw(()=>{r.set.call(this,i)},0),a&&a.set&&a.set.call(this,i)}}),()=>qK(t,e,a||{},!0)}function b2(t,e,r){try{if(!(e in t))return()=>{};let n=t[e],o=r(n);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),t[e]=o,()=>{t[e]=n}}catch(n){return()=>{}}}var Iw=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Iw=()=>new Date().getTime());function jK(t){let e=t.document;return{left:e.scrollingElement?e.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:Zu([e,"optionalAccess",r=>r.documentElement,"access",r=>r.scrollLeft])||Zu([e,"optionalAccess",r=>r.body,"optionalAccess",r=>r.parentElement,"optionalAccess",r=>r.scrollLeft])||Zu([e,"optionalAccess",r=>r.body,"optionalAccess",r=>r.scrollLeft])||0,top:e.scrollingElement?e.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:Zu([e,"optionalAccess",r=>r.documentElement,"access",r=>r.scrollTop])||Zu([e,"optionalAccess",r=>r.body,"optionalAccess",r=>r.parentElement,"optionalAccess",r=>r.scrollTop])||Zu([e,"optionalAccess",r=>r.body,"optionalAccess",r=>r.scrollTop])||0}}function LK(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function BK(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function UK(t){return t?t.nodeType===t.ELEMENT_NODE?t:t.parentElement:null}function Ra(t,e,r,n,o){if(!t)return!1;let a=UK(t);if(!a)return!1;let i=Of(e,r);if(!o){let l=n&&a.matches(n);return i(a)&&!l}let s=qc(a,i),u=-1;return s<0?!1:(n&&(u=qc(a,Of(null,n))),s>-1&&u<0?!0:s{let r=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do if(this===r)return!0;while(r=r&&r.parentNode);return!1})}function WK(t,e){return!!(t.nodeName==="IFRAME"&&e.getMeta(t))}function $K(t,e){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&e.getMeta(t))}function KM(t){return!!Zu([t,"optionalAccess",e=>e.shadowRoot])}var YM=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return jRe(this.styleIDMap.get(e),()=>-1)}has(e){return this.styleIDMap.has(e)}add(e,r){if(this.has(e))return this.getId(e);let n;return r===void 0?n=this.id++:n=r,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function HK(t){let e=null;return Zu([t,"access",r=>r.getRootNode,"optionalCall",r=>r(),"optionalAccess",r=>r.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&t.getRootNode().host&&(e=t.getRootNode().host),e}function ODe(t){let e=t,r;for(;r=HK(e);)e=r;return e}function RDe(t){let e=t.ownerDocument;if(!e)return!1;let r=ODe(t);return e.contains(r)}function GK(t){let e=t.ownerDocument;return e?e.contains(t)||RDe(t):!1}var vK={};function S2(t){let e=vK[t];if(e)return e;let r=window.document,n=window[t];if(r&&typeof r.createElement=="function")try{let o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);let a=o.contentWindow;a&&a[t]&&(n=a[t]),r.head.removeChild(o)}catch(o){}return vK[t]=n.bind(window)}function DDe(...t){return S2("requestAnimationFrame")(...t)}function jw(...t){return S2("setTimeout")(...t)}function NDe(...t){return S2("clearTimeout")(...t)}var tt=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(tt||{}),rt=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(rt||{}),qn=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(qn||{}),Ns=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(Ns||{});function ADe(t){let e,r=t[0],n=1;for(;nr.call(e,...i)),e=void 0)}return r}function yK(t){return"__ln"in t}var JM=class{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let n=0;no.next])||null;return r}addNode(e){let r={value:e,previous:null,next:null};if(e.__ln=r,e.previousSibling&&yK(e.previousSibling)){let n=e.previousSibling.__ln.next;r.next=n,r.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=r,n&&(n.previous=r)}else if(e.nextSibling&&yK(e.nextSibling)&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;r.previous=n,r.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=r,n&&(n.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++}removeNode(e){let r=e.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}},_K=(t,e)=>`${t}@${e}`,XM=class{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],r=new Set,n=new JM,o=u=>{let l=u,c=Ay;for(;c===Ay;)l=l&&l.nextSibling,c=l&&this.mirror.getId(l);return c},a=u=>{if(!u.parentNode||!GK(u))return;let l=Oy(u.parentNode)?this.mirror.getId(HK(u)):this.mirror.getId(u.parentNode),c=o(u);if(l===-1||c===-1)return n.addNode(u);let p=Rf(u,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:d=>{WK(d,this.mirror)&&this.iframeManager.addIframe(d),$K(d,this.mirror)&&this.stylesheetManager.trackLinkElement(d),KM(u)&&this.shadowDomManager.addShadowRoot(u.shadowRoot,this.doc)},onIframeLoad:(d,f)=>{this.iframeManager.attachIframe(d,f),this.shadowDomManager.observeAttachShadow(d)},onStylesheetLoad:(d,f)=>{this.stylesheetManager.attachLinkElement(d,f)}});p&&(e.push({parentId:l,nextId:c,node:p}),r.add(p.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let u of this.movedSet)bK(this.removes,u,this.mirror)&&!this.movedSet.has(u.parentNode)||a(u);for(let u of this.addedSet)!SK(this.droppedSet,u)&&!bK(this.removes,u,this.mirror)||SK(this.movedSet,u)?a(u):this.droppedSet.add(u);let i=null;for(;n.length;){let u=null;if(i){let l=this.mirror.getId(i.value.parentNode),c=o(i.value);l!==-1&&c!==-1&&(u=i)}if(!u){let l=n.tail;for(;l;){let c=l;if(l=l.previous,c){let p=this.mirror.getId(c.value.parentNode);if(o(c.value)===-1)continue;if(p!==-1){u=c;break}else{let f=c.value;if(f.parentNode&&f.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let m=f.parentNode.host;if(this.mirror.getId(m)!==-1){u=c;break}}}}}}if(!u){for(;n.head;)n.removeNode(n.head.value);break}i=u.previous,n.removeNode(u.value),a(u.value)}let s={texts:this.texts.map(u=>({id:this.mirror.getId(u.node),value:u.value})).filter(u=>!r.has(u.id)).filter(u=>this.mirror.has(u.id)),attributes:this.attributes.map(u=>{let{attributes:l}=u;if(typeof l.style=="string"){let c=JSON.stringify(u.styleDiff),p=JSON.stringify(u._unchangedStyles);c.length!r.has(u.id)).filter(u=>this.mirror.has(u.id)),removes:this.removes,adds:e};!s.texts.length&&!s.attributes.length&&!s.removes.length&&!s.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=e=>{if(!WM(e.target,this.mirror))switch(e.type){case"characterData":{let r=e.target.textContent;!Ra(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&r!==e.oldValue&&this.texts.push({value:Mf(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&r?this.maskTextFn?this.maskTextFn(r,UK(e.target)):r.replace(/[\S]/g,"*"):r,node:e.target});break}case"attributes":{let r=e.target,n=e.attributeName,o=e.target.getAttribute(n);if(n==="value"){let i=v2(r),s=r.tagName;o=xw(r,s,i);let u=qw({maskInputOptions:this.maskInputOptions,tagName:s,type:i}),l=Mf(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,u);o=Ny({isMasked:l,element:r,value:o,maskInputFn:this.maskInputFn})}if(Ra(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===e.oldValue)return;let a=this.attributeMap.get(e.target);if(r.tagName==="IFRAME"&&n==="src"&&!this.keepIframeSrcFn(o))if(!r.contentDocument)n="rr_src";else return;if(a||(a={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(e.target,a)),n==="type"&&r.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!FK(r.tagName,n)&&(a.attributes[n]=MK(this.doc,Af(r.tagName),Af(n),o,r,this.maskAttributeFn),n==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(s){this.unattachedDoc=this.doc}let i=this.unattachedDoc.createElement("span");e.oldValue&&i.setAttribute("style",e.oldValue);for(let s of Array.from(r.style)){let u=r.style.getPropertyValue(s),l=r.style.getPropertyPriority(s);u!==i.style.getPropertyValue(s)||l!==i.style.getPropertyPriority(s)?l===""?a.styleDiff[s]=u:a.styleDiff[s]=[u,l]:a._unchangedStyles[s]=[u,l]}for(let s of Array.from(i.style))r.style.getPropertyValue(s)===""&&(a.styleDiff[s]=!1)}break}case"childList":{if(Ra(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(r=>this.genAdds(r,e.target)),e.removedNodes.forEach(r=>{let n=this.mirror.getId(r),o=Oy(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Ra(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||WM(r,this.mirror)||!kDe(r,this.mirror)||(this.addedSet.has(r)?(ZM(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(e.target)&&n===-1||zK(e.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[_K(n,o)]?ZM(this.movedSet,r):this.removes.push({parentId:o,id:n,isShadow:Oy(e.target)&&Ry(e.target)?!0:void 0})),this.mapRemoves.push(r))});break}}},this.genAdds=(e,r)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(WM(e,this.mirror))return;this.movedSet.add(e);let n=null;r&&this.mirror.hasNode(r)&&(n=this.mirror.getId(r)),n&&n!==-1&&(this.movedMap[_K(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Ra(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach(n=>this.genAdds(n)),KM(e)&&e.shadowRoot.childNodes.forEach(n=>{this.processedNodeManager.add(n,this),this.genAdds(n,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=e[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function ZM(t,e){t.delete(e),e.childNodes.forEach(r=>ZM(t,r))}function bK(t,e,r){return t.length===0?!1:VK(t,e,r)}function VK(t,e,r){let{parentNode:n}=e;if(!n)return!1;let o=r.getId(n);return t.some(a=>a.id===o)?!0:VK(t,n,r)}function SK(t,e){return t.size===0?!1:KK(t,e)}function KK(t,e){let{parentNode:r}=e;return r?t.has(r)?!0:KK(t,r):!1}var Dy;function MDe(t){Dy=t}function FDe(){Dy=void 0}var pt=t=>Dy?(...r)=>{try{return t(...r)}catch(n){if(Dy&&Dy(n)===!0)return()=>{};throw n}}:t;function _i(t){let e,r=t[0],n=1;for(;nr.call(e,...i)),e=void 0)}return r}var Df=[];function Ly(t){try{if("composedPath"in t){let e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(e){}return t&&t.target}function YK(t,e){let r=new XM;Df.push(r),r.init(t);let n=window.MutationObserver||window.__rrMutationObserver,o=_i([window,"optionalAccess",i=>i.Zone,"optionalAccess",i=>i.__symbol__,"optionalCall",i=>i("MutationObserver")]);o&&window[o]&&(n=window[o]);let a=new n(pt(i=>{t.onMutation&&t.onMutation(i)===!1||r.processMutations.bind(r)(i)}));return a.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function qDe({mousemoveCb:t,sampling:e,doc:r,mirror:n}){if(e.mousemove===!1)return()=>{};let o=typeof e.mousemove=="number"?e.mousemove:50,a=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500,i=[],s,u=My(pt(p=>{let d=Date.now()-s;t(i.map(f=>(f.timeOffset-=d,f)),p),i=[],s=null}),a),l=pt(My(pt(p=>{let d=Ly(p),{clientX:f,clientY:m}=VM(p)?p.changedTouches[0]:p;s||(s=Iw()),i.push({x:f,y:m,id:n.getId(d),timeOffset:Iw()-s}),u(typeof DragEvent!="undefined"&&p instanceof DragEvent?rt.Drag:p instanceof MouseEvent?rt.MouseMove:rt.TouchMove)}),o,{trailing:!1})),c=[Ln("mousemove",l,r),Ln("touchmove",l,r),Ln("drag",l,r)];return pt(()=>{c.forEach(p=>p())})}function jDe({mouseInteractionCb:t,doc:e,mirror:r,blockClass:n,blockSelector:o,unblockSelector:a,sampling:i}){if(i.mouseInteraction===!1)return()=>{};let s=i.mouseInteraction===!0||i.mouseInteraction===void 0?{}:i.mouseInteraction,u=[],l=null,c=p=>d=>{let f=Ly(d);if(Ra(f,n,o,a,!0))return;let m=null,g=p;if("pointerType"in d){switch(d.pointerType){case"mouse":m=Ns.Mouse;break;case"touch":m=Ns.Touch;break;case"pen":m=Ns.Pen;break}m===Ns.Touch?qn[p]===qn.MouseDown?g="TouchStart":qn[p]===qn.MouseUp&&(g="TouchEnd"):Ns.Pen}else VM(d)&&(m=Ns.Touch);m!==null?(l=m,(g.startsWith("Touch")&&m===Ns.Touch||g.startsWith("Mouse")&&m===Ns.Mouse)&&(m=null)):qn[p]===qn.Click&&(m=l,l=null);let v=VM(d)?d.changedTouches[0]:d;if(!v)return;let h=r.getId(f),{clientX:y,clientY:b}=v;pt(t)({type:qn[g],id:h,x:y,y:b,...m!==null&&{pointerType:m}})};return Object.keys(qn).filter(p=>Number.isNaN(Number(p))&&!p.endsWith("_Departed")&&s[p]!==!1).forEach(p=>{let d=Af(p),f=c(p);if(window.PointerEvent)switch(qn[p]){case qn.MouseDown:case qn.MouseUp:d=d.replace("mouse","pointer");break;case qn.TouchStart:case qn.TouchEnd:return}u.push(Ln(d,f,e))}),pt(()=>{u.forEach(p=>p())})}function JK({scrollCb:t,doc:e,mirror:r,blockClass:n,blockSelector:o,unblockSelector:a,sampling:i}){let s=pt(My(pt(u=>{let l=Ly(u);if(!l||Ra(l,n,o,a,!0))return;let c=r.getId(l);if(l===e&&e.defaultView){let p=jK(e.defaultView);t({id:c,x:p.left,y:p.top})}else t({id:c,x:l.scrollLeft,y:l.scrollTop})}),i.scroll||100));return Ln("scroll",s,e)}function LDe({viewportResizeCb:t},{win:e}){let r=-1,n=-1,o=pt(My(pt(()=>{let a=LK(),i=BK();(r!==a||n!==i)&&(t({width:Number(i),height:Number(a)}),r=a,n=i)}),200));return Ln("resize",o,e)}var BDe=["INPUT","TEXTAREA","SELECT"],EK=new WeakMap;function UDe({inputCb:t,doc:e,mirror:r,blockClass:n,blockSelector:o,unblockSelector:a,ignoreClass:i,ignoreSelector:s,maskInputOptions:u,maskInputFn:l,sampling:c,userTriggeredOnInput:p,maskTextClass:d,unmaskTextClass:f,maskTextSelector:m,unmaskTextSelector:g}){function v(C){let P=Ly(C),k=C.isTrusted,O=P&&GM(P.tagName);if(O==="OPTION"&&(P=P.parentElement),!P||!O||BDe.indexOf(O)<0||Ra(P,n,o,a,!0))return;let F=P;if(F.classList.contains(i)||s&&F.matches(s))return;let U=v2(P),J=xw(F,O,U),K=!1,Z=qw({maskInputOptions:u,tagName:O,type:U}),G=Mf(P,d,m,f,g,Z);(U==="radio"||U==="checkbox")&&(K=P.checked),J=Ny({isMasked:G,element:P,value:J,maskInputFn:l}),h(P,p?{text:J,isChecked:K,userTriggered:k}:{text:J,isChecked:K});let Q=P.name;U==="radio"&&Q&&K&&e.querySelectorAll(`input[type="radio"][name="${Q}"]`).forEach(N=>{if(N!==P){let j=Ny({isMasked:G,element:N,value:xw(N,O,U),maskInputFn:l});h(N,p?{text:j,isChecked:!K,userTriggered:!1}:{text:j,isChecked:!K})}})}function h(C,P){let k=EK.get(C);if(!k||k.text!==P.text||k.isChecked!==P.isChecked){EK.set(C,P);let O=r.getId(C);pt(t)({...P,id:O})}}let b=(c.input==="last"?["change"]:["input","change"]).map(C=>Ln(C,pt(v),e)),E=e.defaultView;if(!E)return()=>{b.forEach(C=>C())};let w=E.Object.getOwnPropertyDescriptor(E.HTMLInputElement.prototype,"value"),S=[[E.HTMLInputElement.prototype,"value"],[E.HTMLInputElement.prototype,"checked"],[E.HTMLSelectElement.prototype,"value"],[E.HTMLTextAreaElement.prototype,"value"],[E.HTMLSelectElement.prototype,"selectedIndex"],[E.HTMLOptionElement.prototype,"selected"]];return w&&w.set&&b.push(...S.map(C=>qK(C[0],C[1],{set(){pt(v)({target:this,isTrusted:!1})}},!1,E))),pt(()=>{b.forEach(C=>C())})}function kw(t){let e=[];function r(n,o){if(bw("CSSGroupingRule")&&n.parentRule instanceof CSSGroupingRule||bw("CSSMediaRule")&&n.parentRule instanceof CSSMediaRule||bw("CSSSupportsRule")&&n.parentRule instanceof CSSSupportsRule||bw("CSSConditionRule")&&n.parentRule instanceof CSSConditionRule){let i=Array.from(n.parentRule.cssRules).indexOf(n);o.unshift(i)}else if(n.parentStyleSheet){let i=Array.from(n.parentStyleSheet.cssRules).indexOf(n);o.unshift(i)}return o}return r(t,e)}function Qu(t,e,r){let n,o;return t?(t.ownerNode?n=e.getId(t.ownerNode):o=r.getId(t),{styleId:o,id:n}):{}}function zDe({styleSheetRuleCb:t,mirror:e,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:pt((c,p,d)=>{let[f,m]=d,{id:g,styleId:v}=Qu(p,e,r.styleMirror);return(g&&g!==-1||v&&v!==-1)&&t({id:g,styleId:v,adds:[{rule:f,index:m}]}),c.apply(p,d)})});let a=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:pt((c,p,d)=>{let[f]=d,{id:m,styleId:g}=Qu(p,e,r.styleMirror);return(m&&m!==-1||g&&g!==-1)&&t({id:m,styleId:g,removes:[{index:f}]}),c.apply(p,d)})});let i;n.CSSStyleSheet.prototype.replace&&(i=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:pt((c,p,d)=>{let[f]=d,{id:m,styleId:g}=Qu(p,e,r.styleMirror);return(m&&m!==-1||g&&g!==-1)&&t({id:m,styleId:g,replace:f}),c.apply(p,d)})}));let s;n.CSSStyleSheet.prototype.replaceSync&&(s=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:pt((c,p,d)=>{let[f]=d,{id:m,styleId:g}=Qu(p,e,r.styleMirror);return(m&&m!==-1||g&&g!==-1)&&t({id:m,styleId:g,replaceSync:f}),c.apply(p,d)})}));let u={};Sw("CSSGroupingRule")?u.CSSGroupingRule=n.CSSGroupingRule:(Sw("CSSMediaRule")&&(u.CSSMediaRule=n.CSSMediaRule),Sw("CSSConditionRule")&&(u.CSSConditionRule=n.CSSConditionRule),Sw("CSSSupportsRule")&&(u.CSSSupportsRule=n.CSSSupportsRule));let l={};return Object.entries(u).forEach(([c,p])=>{l[c]={insertRule:p.prototype.insertRule,deleteRule:p.prototype.deleteRule},p.prototype.insertRule=new Proxy(l[c].insertRule,{apply:pt((d,f,m)=>{let[g,v]=m,{id:h,styleId:y}=Qu(f.parentStyleSheet,e,r.styleMirror);return(h&&h!==-1||y&&y!==-1)&&t({id:h,styleId:y,adds:[{rule:g,index:[...kw(f),v||0]}]}),d.apply(f,m)})}),p.prototype.deleteRule=new Proxy(l[c].deleteRule,{apply:pt((d,f,m)=>{let[g]=m,{id:v,styleId:h}=Qu(f.parentStyleSheet,e,r.styleMirror);return(v&&v!==-1||h&&h!==-1)&&t({id:v,styleId:h,removes:[{index:[...kw(f),g]}]}),d.apply(f,m)})})}),pt(()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=a,i&&(n.CSSStyleSheet.prototype.replace=i),s&&(n.CSSStyleSheet.prototype.replaceSync=s),Object.entries(u).forEach(([c,p])=>{p.prototype.insertRule=l[c].insertRule,p.prototype.deleteRule=l[c].deleteRule})})}function XK({mirror:t,stylesheetManager:e},r){let n=null;r.nodeName==="#document"?n=t.getId(r):n=t.getId(r.host);let o=r.nodeName==="#document"?_i([r,"access",i=>i.defaultView,"optionalAccess",i=>i.Document]):_i([r,"access",i=>i.ownerDocument,"optionalAccess",i=>i.defaultView,"optionalAccess",i=>i.ShadowRoot]),a=_i([o,"optionalAccess",i=>i.prototype])?Object.getOwnPropertyDescriptor(_i([o,"optionalAccess",i=>i.prototype]),"adoptedStyleSheets"):void 0;return n===null||n===-1||!o||!a?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return _i([a,"access",i=>i.get,"optionalAccess",i=>i.call,"call",i=>i(this)])},set(i){let s=_i([a,"access",u=>u.set,"optionalAccess",u=>u.call,"call",u=>u(this,i)]);if(n!==null&&n!==-1)try{e.adoptStyleSheets(i,n)}catch(u){}return s}}),pt(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function WDe({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:r,stylesheetManager:n},{win:o}){let a=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:pt((s,u,l)=>{let[c,p,d]=l;if(r.has(c))return a.apply(u,[c,p,d]);let{id:f,styleId:m}=Qu(_i([u,"access",g=>g.parentRule,"optionalAccess",g=>g.parentStyleSheet]),e,n.styleMirror);return(f&&f!==-1||m&&m!==-1)&&t({id:f,styleId:m,set:{property:c,value:p,priority:d},index:kw(u.parentRule)}),s.apply(u,l)})});let i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:pt((s,u,l)=>{let[c]=l;if(r.has(c))return i.apply(u,[c]);let{id:p,styleId:d}=Qu(_i([u,"access",f=>f.parentRule,"optionalAccess",f=>f.parentStyleSheet]),e,n.styleMirror);return(p&&p!==-1||d&&d!==-1)&&t({id:p,styleId:d,remove:{property:c},index:kw(u.parentRule)}),s.apply(u,l)})}),pt(()=>{o.CSSStyleDeclaration.prototype.setProperty=a,o.CSSStyleDeclaration.prototype.removeProperty=i})}function $De({mediaInteractionCb:t,blockClass:e,blockSelector:r,unblockSelector:n,mirror:o,sampling:a,doc:i}){let s=pt(l=>My(pt(c=>{let p=Ly(c);if(!p||Ra(p,e,r,n,!0))return;let{currentTime:d,volume:f,muted:m,playbackRate:g}=p;t({type:l,id:o.getId(p),currentTime:d,volume:f,muted:m,playbackRate:g})}),a.media||500)),u=[Ln("play",s(0),i),Ln("pause",s(1),i),Ln("seeked",s(2),i),Ln("volumechange",s(3),i),Ln("ratechange",s(4),i)];return pt(()=>{u.forEach(l=>l())})}function HDe({fontCb:t,doc:e}){let r=e.defaultView;if(!r)return()=>{};let n=[],o=new WeakMap,a=r.FontFace;r.FontFace=function(u,l,c){let p=new a(u,l,c);return o.set(p,{family:u,buffer:typeof l!="string",descriptors:c,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),p};let i=b2(e.fonts,"add",function(s){return function(u){return jw(pt(()=>{let l=o.get(u);l&&(t(l),o.delete(u))}),0),s.apply(this,[u])}});return n.push(()=>{r.FontFace=a}),n.push(i),pt(()=>{n.forEach(s=>s())})}function GDe(t){let{doc:e,mirror:r,blockClass:n,blockSelector:o,unblockSelector:a,selectionCb:i}=t,s=!0,u=pt(()=>{let l=e.getSelection();if(!l||s&&_i([l,"optionalAccess",d=>d.isCollapsed]))return;s=l.isCollapsed||!1;let c=[],p=l.rangeCount||0;for(let d=0;d{}:b2(r.customElements,"define",function(o){return function(a,i,s){try{e({define:{name:a}})}catch(u){}return o.apply(this,[a,i,s])}})}function KDe(t,e={}){let r=t.doc.defaultView;if(!r)return()=>{};let n=YK(t,t.doc),o=qDe(t),a=jDe(t),i=JK(t),s=LDe(t,{win:r}),u=UDe(t),l=$De(t),c=zDe(t,{win:r}),p=XK(t,t.doc),d=WDe(t,{win:r}),f=t.collectFonts?HDe(t):()=>{},m=GDe(t),g=VDe(t),v=[];for(let h of t.plugins)v.push(h.observer(h.callback,r,h.options));return pt(()=>{Df.forEach(h=>h.reset()),n.disconnect(),o(),a(),i(),s(),u(),l(),c(),p(),d(),f(),m(),g(),v.forEach(h=>h())})}function bw(t){return typeof window[t]!="undefined"}function Sw(t){return!!(typeof window[t]!="undefined"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}var Fy=class{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,r,n,o){let a=n||this.getIdToRemoteIdMap(e),i=o||this.getRemoteIdToIdMap(e),s=a.get(r);return s||(s=this.generateIdFn(),a.set(r,s),i.set(s,r)),s}getIds(e,r){let n=this.getIdToRemoteIdMap(e),o=this.getRemoteIdToIdMap(e);return r.map(a=>this.getId(e,a,n,o))}getRemoteId(e,r,n){let o=n||this.getRemoteIdToIdMap(e);if(typeof r!="number")return r;let a=o.get(r);return a||-1}getRemoteIds(e,r){let n=this.getRemoteIdToIdMap(e);return r.map(o=>this.getRemoteId(e,o,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let r=this.iframeIdToRemoteIdMap.get(e);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(e,r)),r}getRemoteIdToIdMap(e){let r=this.iframeRemoteIdToIdMap.get(e);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(e,r)),r}};function TK(t){let e,r=t[0],n=1;for(;nr.call(e,...i)),e=void 0)}return r}var QM=class{constructor(){this.crossOriginIframeMirror=new Fy(y2),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},e2=class{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Fy(y2),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Fy(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,r){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),TK([this,"access",n=>n.loadListener,"optionalCall",n=>n(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){let r=e;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!e.source)return;let o=this.crossOriginIframeMap.get(e.source);if(!o)return;let a=this.transformCrossOriginEvent(o,r.data.event);a&&this.wrappedEmit(a,r.data.isCheckout)}transformCrossOriginEvent(e,r){switch(r.type){case tt.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(r.data.node,e);let n=r.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(r.data.node,n),{timestamp:r.timestamp,type:tt.IncrementalSnapshot,data:{source:rt.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case tt.Meta:case tt.Load:case tt.DomContentLoaded:return!1;case tt.Plugin:return r;case tt.Custom:return this.replaceIds(r.data.payload,e,["id","parentId","previousId","nextId"]),r;case tt.IncrementalSnapshot:switch(r.data.source){case rt.Mutation:return r.data.adds.forEach(n=>{this.replaceIds(n,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(n.node,e);let o=this.crossOriginIframeRootIdMap.get(e);o&&this.patchRootIdOnNode(n.node,o)}),r.data.removes.forEach(n=>{this.replaceIds(n,e,["parentId","id"])}),r.data.attributes.forEach(n=>{this.replaceIds(n,e,["id"])}),r.data.texts.forEach(n=>{this.replaceIds(n,e,["id"])}),r;case rt.Drag:case rt.TouchMove:case rt.MouseMove:return r.data.positions.forEach(n=>{this.replaceIds(n,e,["id"])}),r;case rt.ViewportResize:return!1;case rt.MediaInteraction:case rt.MouseInteraction:case rt.Scroll:case rt.CanvasMutation:case rt.Input:return this.replaceIds(r.data,e,["id"]),r;case rt.StyleSheetRule:case rt.StyleDeclaration:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleId"]),r;case rt.Font:return r;case rt.Selection:return r.data.ranges.forEach(n=>{this.replaceIds(n,e,["start","end"])}),r;case rt.AdoptedStyleSheet:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleIds"]),TK([r,"access",n=>n.data,"access",n=>n.styles,"optionalAccess",n=>n.forEach,"call",n=>n(o=>{this.replaceStyleIds(o,e,["styleId"])})]),r}}return!1}replace(e,r,n,o){for(let a of o)!Array.isArray(r[a])&&typeof r[a]!="number"||(Array.isArray(r[a])?r[a]=e.getIds(n,r[a]):r[a]=e.getId(n,r[a]));return r}replaceIds(e,r,n){return this.replace(this.crossOriginIframeMirror,e,r,n)}replaceStyleIds(e,r,n){return this.replace(this.crossOriginIframeStyleMirror,e,r,n)}replaceIdOnNode(e,r){this.replaceIds(e,r,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(n=>{this.replaceIdOnNode(n,r)})}patchRootIdOnNode(e,r){e.type!==Br.Document&&!e.rootId&&(e.rootId=r),"childNodes"in e&&e.childNodes.forEach(n=>{this.patchRootIdOnNode(n,r)})}},t2=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},r2=class{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,r){if(!Ry(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let n=YK({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(JK({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),jw(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(XK({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,r){let n=this;this.restoreHandlers.push(b2(e.prototype,"attachShadow",function(o){return function(a){let i=o.call(this,a);return this.shadowRoot&&GK(this)&&n.addShadowRoot(this.shadowRoot,r),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(r){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},Pw=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}},n2=class{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new YM,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,r){if(e.length===0)return;let n={id:r,styleIds:[]},o=[];for(let a of e){let i;this.styleMirror.has(a)?i=this.styleMirror.getId(a):(i=this.styleMirror.add(a),o.push({styleId:i,rules:Array.from(a.rules||CSSRule,(s,u)=>({rule:AK(s),index:u}))})),n.styleIds.push(i)}o.length>0&&(n.styles=o),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}},o2=class{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){DDe(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(e,r){let n=this.nodeMap.get(e);return n&&Array.from(n).some(o=>o!==r)}add(e,r){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(r))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}},mr,Ow,Oa=oDe();function tl(t={}){let{emit:e,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:o="rr-block",blockSelector:a=null,unblockSelector:i=null,ignoreClass:s="rr-ignore",ignoreSelector:u=null,maskAllText:l=!1,maskTextClass:c="rr-mask",unmaskTextClass:p=null,maskTextSelector:d=null,unmaskTextSelector:f=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:v,slimDOMOptions:h,maskAttributeFn:y,maskInputFn:b,maskTextFn:E,maxCanvasSize:w=null,packFn:S,sampling:C={},dataURLOptions:P={},mousemoveWait:k,recordCanvas:O=!1,recordCrossOriginIframes:F=!1,recordAfter:U=t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load",userTriggeredOnInput:J=!1,collectFonts:K=!1,inlineImages:Z=!1,plugins:G,keepIframeSrcFn:Q=()=>!1,ignoreCSSAttributes:N=new Set([]),errorHandler:j,onMutation:V,getCanvasManager:Y}=t;MDe(j);let X=F?window.parent===window:!0,ie=!1;if(!X)try{window.parent.document&&(ie=!1)}catch(he){ie=!0}if(X&&!e)throw new Error("emit function is required");k!==void 0&&C.mousemove===void 0&&(C.mousemove=k),Oa.reset();let de=g===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:v!==void 0?v:{},pe=h===!0||h==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:h==="all",headMetaDescKeywords:h==="all"}:h||{};PDe();let le,_e=0,we=he=>{for(let Ue of G||[])Ue.eventProcessor&&(he=Ue.eventProcessor(he));return S&&!ie&&(he=S(he)),he};mr=(he,Ue)=>{let Ie=he;if(Ie.timestamp=Iw(),zM([Df,"access",Fe=>Fe[0],"optionalAccess",Fe=>Fe.isFrozen,"call",Fe=>Fe()])&&Ie.type!==tt.FullSnapshot&&!(Ie.type===tt.IncrementalSnapshot&&Ie.data.source===rt.Mutation)&&Df.forEach(Fe=>Fe.unfreeze()),X)zM([e,"optionalCall",Fe=>Fe(we(Ie),Ue)]);else if(ie){let Fe={type:"rrweb",event:we(Ie),origin:window.location.origin,isCheckout:Ue};window.parent.postMessage(Fe,"*")}if(Ie.type===tt.FullSnapshot)le=Ie,_e=0;else if(Ie.type===tt.IncrementalSnapshot){if(Ie.data.source===rt.Mutation&&Ie.data.isAttachIframe)return;_e++;let Fe=n&&_e>=n,ue=r&&le&&Ie.timestamp-le.timestamp>r;(Fe||ue)&&Qe(!0)}};let ge=he=>{mr({type:tt.IncrementalSnapshot,data:{source:rt.Mutation,...he}})},Se=he=>mr({type:tt.IncrementalSnapshot,data:{source:rt.Scroll,...he}}),me=he=>mr({type:tt.IncrementalSnapshot,data:{source:rt.CanvasMutation,...he}}),be=he=>mr({type:tt.IncrementalSnapshot,data:{source:rt.AdoptedStyleSheet,...he}}),Me=new n2({mutationCb:ge,adoptedStyleSheetCb:be}),ve=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new QM:new e2({mirror:Oa,mutationCb:ge,stylesheetManager:Me,recordCrossOriginIframes:F,wrappedEmit:mr});for(let he of G||[])he.getMirror&&he.getMirror({nodeMirror:Oa,crossOriginIframeMirror:ve.crossOriginIframeMirror,crossOriginIframeStyleMirror:ve.crossOriginIframeStyleMirror});let gt=new o2,qe=JDe(Y,{mirror:Oa,win:window,mutationCb:he=>mr({type:tt.IncrementalSnapshot,data:{source:rt.CanvasMutation,...he}}),recordCanvas:O,blockClass:o,blockSelector:a,unblockSelector:i,maxCanvasSize:w,sampling:C.canvas,dataURLOptions:P,errorHandler:j}),nt=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new t2:new r2({mutationCb:ge,scrollCb:Se,bypassOptions:{onMutation:V,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:l,maskTextClass:c,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:de,dataURLOptions:P,maskAttributeFn:y,maskTextFn:E,maskInputFn:b,recordCanvas:O,inlineImages:Z,sampling:C,slimDOMOptions:pe,iframeManager:ve,stylesheetManager:Me,canvasManager:qe,keepIframeSrcFn:Q,processedNodeManager:gt},mirror:Oa}),Qe=(he=!1)=>{mr({type:tt.Meta,data:{href:window.location.href,width:BK(),height:LK()}},he),Me.reset(),nt.init(),Df.forEach(Ie=>Ie.lock());let Ue=IDe(document,{mirror:Oa,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:l,maskTextClass:c,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:m,maskAllInputs:de,maskAttributeFn:y,maskInputFn:b,maskTextFn:E,slimDOM:pe,dataURLOptions:P,recordCanvas:O,inlineImages:Z,onSerialize:Ie=>{WK(Ie,Oa)&&ve.addIframe(Ie),$K(Ie,Oa)&&Me.trackLinkElement(Ie),KM(Ie)&&nt.addShadowRoot(Ie.shadowRoot,document)},onIframeLoad:(Ie,Fe)=>{ve.attachIframe(Ie,Fe),nt.observeAttachShadow(Ie)},onStylesheetLoad:(Ie,Fe)=>{Me.attachLinkElement(Ie,Fe)},keepIframeSrcFn:Q});if(!Ue)return console.warn("Failed to snapshot the document");mr({type:tt.FullSnapshot,data:{node:Ue,initialOffset:jK(window)}}),Df.forEach(Ie=>Ie.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Me.adoptStyleSheets(document.adoptedStyleSheets,Oa.getId(document))};Ow=Qe;try{let he=[],Ue=Fe=>pt(KDe)({onMutation:V,mutationCb:ge,mousemoveCb:(ue,Be)=>mr({type:tt.IncrementalSnapshot,data:{source:Be,positions:ue}}),mouseInteractionCb:ue=>mr({type:tt.IncrementalSnapshot,data:{source:rt.MouseInteraction,...ue}}),scrollCb:Se,viewportResizeCb:ue=>mr({type:tt.IncrementalSnapshot,data:{source:rt.ViewportResize,...ue}}),inputCb:ue=>mr({type:tt.IncrementalSnapshot,data:{source:rt.Input,...ue}}),mediaInteractionCb:ue=>mr({type:tt.IncrementalSnapshot,data:{source:rt.MediaInteraction,...ue}}),styleSheetRuleCb:ue=>mr({type:tt.IncrementalSnapshot,data:{source:rt.StyleSheetRule,...ue}}),styleDeclarationCb:ue=>mr({type:tt.IncrementalSnapshot,data:{source:rt.StyleDeclaration,...ue}}),canvasMutationCb:me,fontCb:ue=>mr({type:tt.IncrementalSnapshot,data:{source:rt.Font,...ue}}),selectionCb:ue=>{mr({type:tt.IncrementalSnapshot,data:{source:rt.Selection,...ue}})},customElementCb:ue=>{mr({type:tt.IncrementalSnapshot,data:{source:rt.CustomElement,...ue}})},blockClass:o,ignoreClass:s,ignoreSelector:u,maskAllText:l,maskTextClass:c,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:f,maskInputOptions:de,inlineStylesheet:m,sampling:C,recordCanvas:O,inlineImages:Z,userTriggeredOnInput:J,collectFonts:K,doc:Fe,maskAttributeFn:y,maskInputFn:b,maskTextFn:E,keepIframeSrcFn:Q,blockSelector:a,unblockSelector:i,slimDOMOptions:pe,dataURLOptions:P,mirror:Oa,iframeManager:ve,stylesheetManager:Me,shadowDomManager:nt,processedNodeManager:gt,canvasManager:qe,ignoreCSSAttributes:N,plugins:zM([G,"optionalAccess",ue=>ue.filter,"call",ue=>ue(Be=>Be.observer),"optionalAccess",ue=>ue.map,"call",ue=>ue(Be=>({observer:Be.observer,options:Be.options,callback:kt=>mr({type:tt.Plugin,data:{plugin:Be.name,payload:kt}})}))])||[]},{});ve.addLoadListener(Fe=>{try{he.push(Ue(Fe.contentDocument))}catch(ue){console.warn(ue)}});let Ie=()=>{Qe(),he.push(Ue(document))};return document.readyState==="interactive"||document.readyState==="complete"?Ie():(he.push(Ln("DOMContentLoaded",()=>{mr({type:tt.DomContentLoaded,data:{}}),U==="DOMContentLoaded"&&Ie()})),he.push(Ln("load",()=>{mr({type:tt.Load,data:{}}),U==="load"&&Ie()},window))),()=>{he.forEach(Fe=>Fe()),gt.destroy(),Ow=void 0,FDe()}}catch(he){console.warn(he)}}function YDe(t){if(!Ow)throw new Error("please take full snapshot after start recording");Ow(t)}tl.mirror=Oa;tl.takeFullSnapshot=YDe;function JDe(t,e){try{return t?t(e):new Pw}catch(r){return console.warn("Unable to initialize CanvasManager"),new Pw}}var XDe=3,ZDe=5;function E2(t){return t>9999999999?t:t*1e3}function $M(t){return t>9999999999?t/1e3:t}function By(t,e){e.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate(()=>(t.throttledAddEvent({type:tt.Custom,timestamp:(e.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:$e.normalize(e,10,1e3)}}),e.category==="console")))}var QDe="button,a";function ZK(t){return t.closest(QDe)||t}function QK(t){let e=eY(t);return!e||!(e instanceof Element)?e:ZK(e)}function eY(t){return eNe(t)?t.target:t}function eNe(t){return typeof t=="object"&&!!t&&"target"in t}var el;function tNe(t){return el||(el=[],rNe()),el.push(t),()=>{let e=el?el.indexOf(t):-1;e>-1&&el.splice(e,1)}}function rNe(){$e.fill(Kt,"open",function(t){return function(...e){if(el)try{el.forEach(r=>r())}catch(r){}return t.apply(Kt,e)}})}function nNe(t,e,r){t.handleClick(e,r)}var a2=class{constructor(e,r,n=By){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=r.timeout/1e3,this._threshold=r.threshold/1e3,this._scollTimeout=r.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=r.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){let e=tNe(()=>{this._lastMutation=wK()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,r){if(aNe(r,this._ignoreSelector)||!iNe(e))return;let n={timestamp:$M(e.timestamp),clickBreadcrumb:e,clickCount:0,node:r};this._clicks.some(o=>o.node===n.node&&Math.abs(o.timestamp-n.timestamp)<1)||(this._clicks.push(n),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=$M(e)}registerScroll(e=Date.now()){this._lastScroll=$M(e)}registerClick(e){let r=ZK(e);this._handleMultiClick(r)}_handleMultiClick(e){this._getClicks(e).forEach(r=>{r.clickCount++})}_getClicks(e){return this._clicks.filter(r=>r.node===e)}_checkClicks(){let e=[],r=wK();this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=r&&e.push(n)});for(let n of e){let o=this._clicks.indexOf(n);o>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let r=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,o=e.mutationAfter&&e.mutationAfter<=this._threshold,a=!n&&!o,{clickCount:i,clickBreadcrumb:s}=e;if(a){let u=Math.min(e.mutationAfter||this._timeout,this._timeout)*1e3,l=u1){let u={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:Kt.location.href,route:r.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(r,u)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}},oNe=["A","BUTTON","INPUT"];function aNe(t,e){return!!(!oNe.includes(t.tagName)||t.tagName==="INPUT"&&!["submit","button"].includes(t.getAttribute("type")||"")||t.tagName==="A"&&(t.hasAttribute("download")||t.hasAttribute("target")&&t.getAttribute("target")!=="_self")||e&&t.matches(e))}function iNe(t){return!!(t.data&&typeof t.data.nodeId=="number"&&t.timestamp)}function wK(){return Date.now()/1e3}function sNe(t,e){try{if(!uNe(e))return;let{source:r}=e.data;if(r===rt.Mutation&&t.registerMutation(e.timestamp),r===rt.Scroll&&t.registerScroll(e.timestamp),lNe(e)){let{type:n,id:o}=e.data,a=tl.mirror.getNode(o);a instanceof HTMLElement&&n===qn.Click&&t.registerClick(a)}}catch(r){}}function uNe(t){return t.type===XDe}function lNe(t){return t.data.source===rt.MouseInteraction}function bi(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var Rw;(function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"})(Rw||(Rw={}));var cNe=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function dNe(t){let e={};for(let r in t)if(cNe.has(r)){let n=r;(r==="data-testid"||r==="data-test-id")&&(n="testId"),e[n]=t[r]}return e}var pNe=t=>e=>{if(!t.isEnabled())return;let r=fNe(e);if(!r)return;let n=e.name==="click",o=n?e.event:void 0;n&&t.clickDetector&&o&&o.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&nNe(t.clickDetector,r,QK(e.event)),By(t,r)};function tY(t,e){let r=tl.mirror.getId(t),n=r&&tl.mirror.getNode(r),o=n&&tl.mirror.getMeta(n),a=o&&hNe(o)?o:null;return{message:e,data:a?{nodeId:r,node:{id:r,tagName:a.tagName,textContent:Array.from(a.childNodes).map(i=>i.type===Rw.Text&&i.textContent).filter(Boolean).map(i=>i.trim()).join(""),attributes:dNe(a.attributes)}}:{}}}function fNe(t){let{target:e,message:r}=mNe(t);return bi({category:`ui.${t.name}`,...tY(e,r)})}function mNe(t){let e=t.name==="click",r,n=null;try{n=e?QK(t.event):eY(t.event),r=$e.htmlTreeAsString(n,{maxStringLength:200})||""}catch(o){r=""}return{target:n,message:r}}function hNe(t){return t.type===Rw.Element}function gNe(t,e){if(!t.isEnabled())return;t.updateUserActivity();let r=vNe(e);r&&By(t,r)}function vNe(t){let{metaKey:e,shiftKey:r,ctrlKey:n,altKey:o,key:a,target:i}=t;if(!i||yNe(i)||!a)return null;let s=e||n||o,u=a.length===1;if(!s&&u)return null;let l=$e.htmlTreeAsString(i,{maxStringLength:200})||"",c=tY(i,l);return bi({category:"ui.keyDown",message:l,data:{...c.data,metaKey:e,shiftKey:r,ctrlKey:n,altKey:o,key:a}})}function yNe(t){return t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable}var xK={resource:TNe,paint:SNe,navigation:ENe};function _Ne(t){return t.map(bNe).filter(Boolean)}function bNe(t){return xK[t.entryType]?xK[t.entryType](t):null}function Ff(t){return(($e.browserPerformanceTimeOrigin||Kt.performance.timeOrigin)+t)/1e3}function SNe(t){let{duration:e,entryType:r,name:n,startTime:o}=t,a=Ff(o);return{type:r,name:n,start:a,end:a+e,data:void 0}}function ENe(t){let{entryType:e,name:r,decodedBodySize:n,duration:o,domComplete:a,encodedBodySize:i,domContentLoadedEventStart:s,domContentLoadedEventEnd:u,domInteractive:l,loadEventStart:c,loadEventEnd:p,redirectCount:d,startTime:f,transferSize:m,type:g}=t;return o===0?null:{type:`${e}.${g}`,start:Ff(f),end:Ff(a),name:r,data:{size:m,decodedBodySize:n,encodedBodySize:i,duration:o,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:u,loadEventStart:c,loadEventEnd:p,domComplete:a,redirectCount:d}}}function TNe(t){let{entryType:e,initiatorType:r,name:n,responseEnd:o,startTime:a,decodedBodySize:i,encodedBodySize:s,responseStatus:u,transferSize:l}=t;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${e}.${r}`,start:Ff(a),end:Ff(o),name:n,data:{size:l,statusCode:u,decodedBodySize:i,encodedBodySize:s}}}function wNe(t){let e=t.entries,r=e[e.length-1],n=r?r.element:void 0,o=t.value,a=Ff(o);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:a,end:a,data:{value:o,size:o,nodeId:n?tl.mirror.getId(n):void 0}}}function xNe(t){function e(o){t.performanceEntries.includes(o)||t.performanceEntries.push(o)}function r({entries:o}){o.forEach(e)}let n=[];return["navigation","paint","resource"].forEach(o=>{n.push(dK.addPerformanceInstrumentationHandler(o,r))}),n.push(dK.addLcpInstrumentationHandler(({metric:o})=>{t.replayPerformanceEntries.push(wNe(o))})),()=>{n.forEach(o=>o())}}var Bt=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__,CNe='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([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,0,0,0]),i=new t([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,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a>h]=l}else for(o=new n(i),a=0;a>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;ad&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<e))break;p+=m-(1<>=y;p>0;){var M=o[a].s;g[M]=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;Pnt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i>1)),o=0,f=function(t){s[o++]=t};for(i=0;is.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function INe(){let t=new Blob([CNe]);return URL.createObjectURL(t)}function jn(t,e){Bt&&($e.logger.info(t),e&&rY(t))}function Nf(t,e){Bt&&($e.logger.info(t),e&&setTimeout(()=>{rY(t)},0))}function rY(t){rr.addBreadcrumb({category:"console",data:{logger:"replay"},level:"info",message:t},{level:"info"})}var qy=class extends Error{constructor(){super(`Event buffer exceeded maximum size of ${g2}.`)}},Dw=class{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let r=JSON.stringify(e).length;if(this._totalSize+=r,this._totalSize>g2)throw new qy;this.events.push(e)}finish(){return new Promise(e=>{let r=this.events;this.clear(),e(JSON.stringify(r))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(r=>r.timestamp).sort()[0];return e?E2(e):null}},i2=class{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((e,r)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():r()},{once:!0}),this._worker.addEventListener("error",n=>{r(n)},{once:!0})}),this._ensureReadyPromise)}destroy(){jn("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,r){let n=this._getAndIncrementId();return new Promise((o,a)=>{let i=({data:s})=>{let u=s;if(u.method===e&&u.id===n){if(this._worker.removeEventListener("message",i),!u.success){Bt&&$e.logger.error("[Replay]",u.response),a(new Error("Error in compression worker"));return}o(u.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:n,method:e,arg:r})})}_getAndIncrementId(){return this._id++}},s2=class{constructor(e){this._worker=new i2(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let r=E2(e.timestamp);(!this._earliestTimestamp||rg2?Promise.reject(new qy):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{Bt&&$e.logger.warn('[Replay] Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}},u2=class{constructor(e){this._fallback=new Dw,this._compression=new s2(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){jn("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:r}=this._fallback,n=[];for(let o of e)n.push(this._compression.addEvent(o));this._compression.hasCheckout=r,this._used=this._compression;try{await Promise.all(n)}catch(o){Bt&&$e.logger.warn("[Replay] Failed to add events when switching buffers.",o)}}};function kNe({useCompression:t,workerUrl:e}){if(t&&window.Worker){let r=PNe(e);if(r)return r}return jn("[Replay] Using simple buffer"),new Dw}function PNe(t){try{let e=t||ONe();if(!e)return;jn(`[Replay] Using compression worker${t?` from ${t}`:""}`);let r=new Worker(e);return new u2(r)}catch(e){jn("[Replay] Failed to create compression worker")}}function ONe(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__=="undefined"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?INe():""}function T2(){try{return"sessionStorage"in Kt&&!!Kt.sessionStorage}catch(t){return!1}}function RNe(t){DNe(),t.session=void 0}function DNe(){if(T2())try{Kt.sessionStorage.removeItem(m2)}catch(t){}}function nY(t){return t===void 0?!1:Math.random()t.getContext().initialTimestamp+t.getOptions().maxReplayDuration?(jn(`[Replay] Skipping event with timestamp ${r} because it is after maxReplayDuration`,t.getOptions()._experiments.traceInternals),!1):!0}function qNe(t,e){try{if(typeof e=="function"&&MNe(t))return e(t)}catch(r){return Bt&&$e.logger.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",r),null}return t}function C2(t){return!t.type}function c2(t){return t.type==="transaction"}function jNe(t){return t.type==="replay_event"}function IK(t){return t.type==="feedback"}function lY(t){let e=UNe();return(r,n)=>{if(!t.isEnabled()||!C2(r)&&!c2(r))return;let o=n&&n.statusCode;if(!(e&&(!o||o<200||o>=300))){if(c2(r)){LNe(t,r);return}BNe(t,r)}}}function LNe(t,e){let r=t.getContext();e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id&&r.traceIds.size<100&&r.traceIds.add(e.contexts.trace.trace_id)}function BNe(t,e){let r=t.getContext();if(e.event_id&&r.errorIds.size<100&&r.errorIds.add(e.event_id),t.recordingMode!=="buffer"||!e.tags||!e.tags.replayId)return;let{beforeErrorSampling:n}=t.getOptions();typeof n=="function"&&!n(e)||setTimeout(()=>{t.sendBufferedReplayOrFlush()})}function UNe(){let t=rr.getClient();if(!t)return!1;let e=t.getTransport();return e&&e.send.__sentry__baseTransport__||!1}function zNe(t){return e=>{!t.isEnabled()||!C2(e)||WNe(t,e)}}function WNe(t,e){let r=e.exception&&e.exception.values&&e.exception.values[0].value;if(typeof r=="string"&&(r.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i))){let n=bi({category:"replay.hydrate-error"});By(t,n)}}function $Ne(t,e){return t.type||!t.exception||!t.exception.values||!t.exception.values.length?!1:!!(e.originalException&&e.originalException.__rrweb__)}function HNe(t,e){t.triggerUserActivity(),t.addUpdate(()=>e.timestamp?(t.throttledAddEvent({type:tt.Custom,timestamp:e.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:e.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:e.event_id}}}}),!1):!0)}function GNe(t,e){return t.recordingMode!=="buffer"||e.message===h2||!e.exception||e.type?!1:nY(t.getOptions().errorSampleRate)}function VNe(t,e=!1){let r=e?lY(t):void 0;return Object.assign((n,o)=>t.isEnabled()?jNe(n)?(delete n.breadcrumbs,n):!C2(n)&&!c2(n)&&!IK(n)||!t.checkAndHandleExpiredSession()?n:IK(n)?(t.flush(),n.contexts.feedback.replay_id=t.getSessionId(),HNe(t,n),n):$Ne(n,o)&&!t.getOptions()._experiments.captureExceptions?(Bt&&$e.logger.log("[Replay] Ignoring error from rrweb internals",n),null):((GNe(t,n)||t.recordingMode==="session")&&(n.tags={...n.tags,replayId:t.getSessionId()}),r&&r(n,{statusCode:200}),n):n,{id:"Replay"})}function Lw(t,e){return e.map(({type:r,start:n,end:o,name:a,data:i})=>{let s=t.throttledAddEvent({type:tt.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:r,description:a,startTimestamp:n,endTimestamp:o,data:i}}});return typeof s=="string"?Promise.resolve(null):s})}function KNe(t){let{from:e,to:r}=t,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:e}}}function YNe(t){return e=>{if(!t.isEnabled())return;let r=KNe(e);r!==null&&(t.getContext().urls.push(r.name),t.triggerUserActivity(),t.addUpdate(()=>(Lw(t,[r]),!1)))}}function JNe(t,e){return Bt&&t.getOptions()._experiments.traceInternals?!1:rr.isSentryRequestUrl(e,rr.getClient())}function Bw(t,e){t.isEnabled()&&e!==null&&(JNe(t,e.name)||t.addUpdate(()=>(Lw(t,[e]),!0)))}function XNe(t){let{startTimestamp:e,endTimestamp:r,fetchData:n,response:o}=t;if(!r)return null;let{method:a,url:i}=n;return{type:"resource.fetch",start:e/1e3,end:r/1e3,name:i,data:{method:a,statusCode:o?o.status:void 0}}}function ZNe(t){return e=>{if(!t.isEnabled())return;let r=XNe(e);Bw(t,r)}}function QNe(t){let{startTimestamp:e,endTimestamp:r,xhr:n}=t,o=n[$e.SENTRY_XHR_DATA_KEY];if(!e||!r||!o)return null;let{method:a,url:i,status_code:s}=o;return i===void 0?null:{type:"resource.xhr",name:i,start:e/1e3,end:r/1e3,data:{method:a,statusCode:s}}}function eAe(t){return e=>{if(!t.isEnabled())return;let r=QNe(e);Bw(t,r)}}function Uw(t,e){if(t)try{if(typeof t=="string")return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){let r=fY(t);return e.encode(r).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch(r){}}function cY(t){if(!t)return;let e=parseInt(t,10);return isNaN(e)?void 0:e}function dY(t){try{if(typeof t=="string")return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[fY(t)];if(!t)return[void 0]}catch(e){return Bt&&$e.logger.warn("[Replay] Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return Bt&&$e.logger.info("[Replay] Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Nw(t,e){if(!t)return{headers:{},size:void 0,_meta:{warnings:[e]}};let r={...t._meta},n=r.warnings||[];return r.warnings=[...n,e],t._meta=r,t}function pY(t,e){if(!e)return null;let{startTimestamp:r,endTimestamp:n,url:o,method:a,statusCode:i,request:s,response:u}=e;return{type:t,start:r/1e3,end:n/1e3,name:o,data:$e.dropUndefinedKeys({method:a,statusCode:i,request:s,response:u})}}function jy(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function rl(t,e,r){if(!e&&Object.keys(t).length===0)return;if(!e)return{headers:t};if(!r)return{headers:t,size:e};let n={headers:t,size:e},{body:o,warnings:a}=tAe(r);return n.body=o,a&&a.length>0&&(n._meta={warnings:a}),n}function d2(t,e){return Object.keys(t).reduce((r,n)=>{let o=n.toLowerCase();return e.includes(o)&&t[n]&&(r[o]=t[n]),r},{})}function fY(t){return new URLSearchParams(t).toString()}function tAe(t){if(!t||typeof t!="string")return{body:t};let e=t.length>pK,r=rAe(t);if(e){let n=t.slice(0,pK);return r?{body:n,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${n}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(r)try{return{body:JSON.parse(t)}}catch(n){}return{body:t}}function rAe(t){let e=t[0],r=t[t.length-1];return e==="["&&r==="]"||e==="{"&&r==="}"}function Aw(t,e){let r=nAe(t);return $e.stringMatchesSomePattern(r,e)}function nAe(t,e=Kt.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(Kt.location.origin))return t;let r=new URL(t,e);if(r.origin!==new URL(e).origin)return t;let n=r.href;return!t.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}async function oAe(t,e,r){try{let n=await iAe(t,e,r),o=pY("resource.fetch",n);Bw(r.replay,o)}catch(n){Bt&&$e.logger.error("[Replay] Failed to capture fetch breadcrumb",n)}}function aAe(t,e,r){let{input:n,response:o}=e,a=n?mY(n):void 0,i=Uw(a,r.textEncoder),s=o?cY(o.headers.get("content-length")):void 0;i!==void 0&&(t.data.request_body_size=i),s!==void 0&&(t.data.response_body_size=s)}async function iAe(t,e,r){let n=Date.now(),{startTimestamp:o=n,endTimestamp:a=n}=e,{url:i,method:s,status_code:u=0,request_body_size:l,response_body_size:c}=t.data,p=Aw(i,r.networkDetailAllowUrls)&&!Aw(i,r.networkDetailDenyUrls),d=p?sAe(r,e.input,l):jy(l),f=await uAe(p,r,e.response,c);return{startTimestamp:o,endTimestamp:a,url:i,method:s,statusCode:u,request:d,response:f}}function sAe({networkCaptureBodies:t,networkRequestHeaders:e},r,n){let o=r?dAe(r,e):{};if(!t)return rl(o,n,void 0);let a=mY(r),[i,s]=dY(a),u=rl(o,n,i);return s?Nw(u,s):u}async function uAe(t,{networkCaptureBodies:e,textEncoder:r,networkResponseHeaders:n},o,a){if(!t&&a!==void 0)return jy(a);let i=o?hY(o.headers,n):{};if(!o||!e&&a!==void 0)return rl(i,a,void 0);let[s,u]=await cAe(o),l=lAe(s,{networkCaptureBodies:e,textEncoder:r,responseBodySize:a,captureDetails:t,headers:i});return u?Nw(l,u):l}function lAe(t,{networkCaptureBodies:e,textEncoder:r,responseBodySize:n,captureDetails:o,headers:a}){try{let i=t&&t.length&&n===void 0?Uw(t,r):n;return o?e?rl(a,i,t):rl(a,i,void 0):jy(i)}catch(i){return Bt&&$e.logger.warn("[Replay] Failed to serialize response body",i),rl(a,n,void 0)}}async function cAe(t){let e=pAe(t);if(!e)return[void 0,"BODY_PARSE_ERROR"];try{return[await fAe(e)]}catch(r){return Bt&&$e.logger.warn("[Replay] Failed to get text body from response",r),[void 0,"BODY_PARSE_ERROR"]}}function mY(t=[]){if(!(t.length!==2||typeof t[1]!="object"))return t[1].body}function hY(t,e){let r={};return e.forEach(n=>{t.get(n)&&(r[n]=t.get(n))}),r}function dAe(t,e){return t.length===1&&typeof t[0]!="string"?kK(t[0],e):t.length===2?kK(t[1],e):{}}function kK(t,e){if(!t)return{};let r=t.headers;return r?r instanceof Headers?hY(r,e):Array.isArray(r)?{}:d2(r,e):{}}function pAe(t){try{return t.clone()}catch(e){Bt&&$e.logger.warn("[Replay] Failed to clone response body",e)}}function fAe(t){return new Promise((e,r)=>{let n=setTimeout(()=>r(new Error("Timeout while trying to read response body")),500);mAe(t).then(o=>e(o),o=>r(o)).finally(()=>clearTimeout(n))})}async function mAe(t){return await t.text()}async function hAe(t,e,r){try{let n=vAe(t,e,r),o=pY("resource.xhr",n);Bw(r.replay,o)}catch(n){Bt&&$e.logger.error("[Replay] Failed to capture xhr breadcrumb",n)}}function gAe(t,e,r){let{xhr:n,input:o}=e;if(!n)return;let a=Uw(o,r.textEncoder),i=n.getResponseHeader("content-length")?cY(n.getResponseHeader("content-length")):SAe(n.response,n.responseType,r.textEncoder);a!==void 0&&(t.data.request_body_size=a),i!==void 0&&(t.data.response_body_size=i)}function vAe(t,e,r){let n=Date.now(),{startTimestamp:o=n,endTimestamp:a=n,input:i,xhr:s}=e,{url:u,method:l,status_code:c=0,request_body_size:p,response_body_size:d}=t.data;if(!u)return null;if(!s||!Aw(u,r.networkDetailAllowUrls)||Aw(u,r.networkDetailDenyUrls)){let S=jy(p),C=jy(d);return{startTimestamp:o,endTimestamp:a,url:u,method:l,statusCode:c,request:S,response:C}}let f=s[$e.SENTRY_XHR_DATA_KEY],m=f?d2(f.request_headers,r.networkRequestHeaders):{},g=d2(yAe(s),r.networkResponseHeaders),[v,h]=r.networkCaptureBodies?dY(i):[void 0],[y,b]=r.networkCaptureBodies?_Ae(s):[void 0],E=rl(m,p,v),w=rl(g,d,y);return{startTimestamp:o,endTimestamp:a,url:u,method:l,statusCode:c,request:h?Nw(E,h):E,response:b?Nw(w,b):w}}function yAe(t){let e=t.getAllResponseHeaders();return e?e.split(`\r +`).reduce((r,n)=>{let[o,a]=n.split(": ");return r[o.toLowerCase()]=a,r},{}):{}}function _Ae(t){let e=[];try{return[t.responseText]}catch(r){e.push(r)}try{return bAe(t.response,t.responseType)}catch(r){e.push(r)}return Bt&&$e.logger.warn("[Replay] Failed to get xhr response body",...e),[void 0]}function bAe(t,e){try{if(typeof t=="string")return[t];if(t instanceof Document)return[t.body.outerHTML];if(e==="json"&&t&&typeof t=="object")return[JSON.stringify(t)];if(!t)return[void 0]}catch(r){return Bt&&$e.logger.warn("[Replay] Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return Bt&&$e.logger.info("[Replay] Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function SAe(t,e,r){try{let n=e==="json"&&t&&typeof t=="object"?JSON.stringify(t):t;return Uw(n,r)}catch(n){return}}function EAe(t){let e=rr.getClient();try{let r=new TextEncoder,{networkDetailAllowUrls:n,networkDetailDenyUrls:o,networkCaptureBodies:a,networkRequestHeaders:i,networkResponseHeaders:s}=t.getOptions(),u={replay:t,textEncoder:r,networkDetailAllowUrls:n,networkDetailDenyUrls:o,networkCaptureBodies:a,networkRequestHeaders:i,networkResponseHeaders:s};e&&e.on?e.on("beforeAddBreadcrumb",(l,c)=>TAe(u,l,c)):($e.addFetchInstrumentationHandler(ZNe(t)),$e.addXhrInstrumentationHandler(eAe(t)))}catch(r){}}function TAe(t,e,r){if(e.data)try{wAe(e)&&CAe(r)&&(gAe(e,r,t),hAe(e,r,t)),xAe(e)&&IAe(r)&&(aAe(e,r,t),oAe(e,r,t))}catch(n){Bt&&$e.logger.warn("Error when enriching network breadcrumb")}}function wAe(t){return t.category==="xhr"}function xAe(t){return t.category==="fetch"}function CAe(t){return t&&t.xhr}function IAe(t){return t&&t.response}var PK=null;function kAe(t){return!!t.category}var PAe=t=>e=>{if(!t.isEnabled())return;let r=OAe(e);r&&By(t,r)};function OAe(t){let e=t.getLastBreadcrumb&&t.getLastBreadcrumb();return PK===e||!e||(PK=e,!kAe(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))?null:e.category==="console"?RAe(e):bi(e)}function RAe(t){let e=t.data&&t.data.arguments;if(!Array.isArray(e)||e.length===0)return bi(t);let r=!1,n=e.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>_w?(r=!0,`${o.slice(0,_w)}\u2026`):o;if(typeof o=="object")try{let a=$e.normalize(o,7);return JSON.stringify(a).length>_w?(r=!0,`${JSON.stringify(a,null,2).slice(0,_w)}\u2026`):a}catch(a){}return o});return bi({...t,data:{...t.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function DAe(t){let e=rr.getCurrentScope(),r=rr.getClient();e.addScopeListener(PAe(t)),$e.addClickKeypressInstrumentationHandler(pNe(t)),$e.addHistoryInstrumentationHandler(YNe(t)),EAe(t);let n=VNe(t,!OK(r));r&&r.addEventProcessor?r.addEventProcessor(n):rr.addEventProcessor(n),OK(r)&&(r.on("beforeSendEvent",zNe(t)),r.on("afterSendEvent",lY(t)),r.on("createDsc",o=>{let a=t.getSessionId();a&&t.isEnabled()&&t.recordingMode==="session"&&t.checkAndHandleExpiredSession()&&(o.replay_id=a)}),r.on("startTransaction",o=>{t.lastTransaction=o}),r.on("finishTransaction",o=>{t.lastTransaction=o}),r.on("beforeSendFeedback",(o,a)=>{let i=t.getSessionId();a&&a.includeReplay&&t.isEnabled()&&i&&o.contexts&&o.contexts.feedback&&(o.contexts.feedback.replay_id=i)}))}function OK(t){return!!(t&&t.on)}async function NAe(t){try{return Promise.all(Lw(t,[AAe(Kt.performance.memory)]))}catch(e){return[]}}function AAe(t){let{jsHeapSizeLimit:e,totalJSHeapSize:r,usedJSHeapSize:n}=t,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:r,usedJSHeapSize:n}}}}function MAe(t,e,r){let n,o,a,i=r&&r.maxWait?Math.max(r.maxWait,e):0;function s(){return u(),n=t(),n}function u(){o!==void 0&&clearTimeout(o),a!==void 0&&clearTimeout(a),o=a=void 0}function l(){return o!==void 0||a!==void 0?s():n}function c(){return o&&clearTimeout(o),o=setTimeout(s,e),i&&a===void 0&&(a=setTimeout(s,i)),n}return c.cancel=u,c.flush=l,c}function FAe(t){let e=!1;return(r,n)=>{if(!t.checkAndHandleExpiredSession()){Bt&&$e.logger.warn("[Replay] Received replay event after session expired.");return}let o=n||!e;e=!0,t.clickDetector&&sNe(t.clickDetector,r),t.addUpdate(()=>{if(t.recordingMode==="buffer"&&o&&t.setInitialState(),!x2(t,r,o))return!0;if(!o)return!1;if(jAe(t,o),t.session&&t.session.previousSessionId)return!0;if(t.recordingMode==="buffer"&&t.session&&t.eventBuffer){let a=t.eventBuffer.getEarliestTimestamp();a&&(jn(`[Replay] Updating session start time to earliest event in buffer to ${new Date(a)}`,t.getOptions()._experiments.traceInternals),t.session.started=a,t.getOptions().stickySession&&w2(t.session))}return t.recordingMode==="session"&&t.flush(),!0})}}function qAe(t){let e=t.getOptions();return{type:tt.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:t.isRecordingCanvas(),sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:t.eventBuffer?t.eventBuffer.type==="worker":!1,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}function jAe(t,e){!e||!t.session||t.session.segmentId!==0||x2(t,qAe(t),!1)}function LAe(t,e,r,n){return $e.createEnvelope($e.createEventEnvelopeHeaders(t,$e.getSdkMetadataForEnvelopeHeader(t),n,r),[[{type:"replay_event"},t],[{type:"replay_recording",length:typeof e=="string"?new TextEncoder().encode(e).length:e.length},e]])}function BAe({recordingData:t,headers:e}){let r,n=`${JSON.stringify(e)} +`;if(typeof t=="string")r=`${n}${t}`;else{let a=new TextEncoder().encode(n);r=new Uint8Array(a.length+t.length),r.set(a),r.set(t,a.length)}return r}async function UAe({client:t,scope:e,replayId:r,event:n}){let o=typeof t._integrations=="object"&&t._integrations!==null&&!Array.isArray(t._integrations)?Object.keys(t._integrations):void 0,a={event_id:r,integrations:o};t.emit&&t.emit("preprocessEvent",n,a);let i=await rr.prepareEvent(t.getOptions(),n,a,e,t,rr.getIsolationScope());if(!i)return null;i.platform=i.platform||"javascript";let s=t.getSdkMetadata&&t.getSdkMetadata(),{name:u,version:l}=s&&s.sdk||{};return i.sdk={...i.sdk,name:u||"sentry.javascript.unknown",version:l||"0.0.0"},i}async function zAe({recordingData:t,replayId:e,segmentId:r,eventContext:n,timestamp:o,session:a}){let i=BAe({recordingData:t,headers:{segment_id:r}}),{urls:s,errorIds:u,traceIds:l,initialTimestamp:c}=n,p=rr.getClient(),d=rr.getCurrentScope(),f=p&&p.getTransport(),m=p&&p.getDsn();if(!p||!f||!m||!a.sampled)return;let g={type:LRe,replay_start_timestamp:c/1e3,timestamp:o/1e3,error_ids:u,trace_ids:l,urls:s,replay_id:e,segment_id:r,replay_type:a.sampled},v=await UAe({scope:d,client:p,replayId:e,event:g});if(!v){p.recordDroppedEvent("event_processor","replay",g),jn("An event processor returned `null`, will not send event.");return}delete v.sdkProcessingMetadata;let h=LAe(v,i,m,p.getOptions().tunnel),y;try{y=await f.send(h)}catch(E){let w=new Error(h2);try{w.cause=E}catch(S){}throw w}if(!y)return y;if(typeof y.statusCode=="number"&&(y.statusCode<200||y.statusCode>=300))throw new Mw(y.statusCode);let b=$e.updateRateLimits({},y);if($e.isRateLimited(b,"replay"))throw new Fw(b);return y}var Mw=class extends Error{constructor(e){super(`Transport returned status code ${e}`)}},Fw=class extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}};async function gY(t,e={count:0,interval:HRe}){let{recordingData:r,options:n}=t;if(r.length)try{return await zAe(t),!0}catch(o){if(o instanceof Mw||o instanceof Fw)throw o;if(rr.setContext("Replays",{_retryCount:e.count}),Bt&&n._experiments&&n._experiments.captureExceptions&&rr.captureException(o),e.count>=GRe){let a=new Error(`${h2} - max retries exceeded`);try{a.cause=o}catch(i){}throw a}return e.interval*=++e.count,new Promise((a,i)=>{setTimeout(async()=>{try{await gY(t,e),a(!0)}catch(s){i(s)}},e.interval)})}}var vY="__THROTTLED",WAe="__SKIPPED";function $Ae(t,e,r){let n=new Map,o=s=>{let u=s-r;n.forEach((l,c)=>{c[...n.values()].reduce((s,u)=>s+u,0),i=!1;return(...s)=>{let u=Math.floor(Date.now()/1e3);if(o(u),a()>=e){let c=i;return i=!0,c?WAe:vY}i=!1;let l=n.get(u)||0;return n.set(u,l+1),t(...s)}}var p2=class t{constructor({options:e,recordingOptions:r}){t.prototype.__init.call(this),t.prototype.__init2.call(this),t.prototype.__init3.call(this),t.prototype.__init4.call(this),t.prototype.__init5.call(this),t.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:BRe,sessionIdleExpire:URe},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=r,this._options=e,this._debouncedFlush=MAe(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=$Ae((i,s)=>FNe(this,i,s),300,5);let{slowClickTimeout:n,slowClickIgnoreSelectors:o}=this.getOptions(),a=n?{threshold:Math.min(VRe,n),timeout:n,scrollTimeout:KRe,ignoreSelector:o?o.join(","):""}:void 0;a&&(this.clickDetector=new a2(this,a))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}initializeSampling(e){let{errorSampleRate:r,sessionSampleRate:n}=this._options;if(!(r<=0&&n<=0)){if(this._initializeSessionForSampling(e),!this.session){this._handleException(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",Nf(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session")throw new Error("Replay recording is already in progress");if(this._isEnabled&&this.recordingMode==="buffer")throw new Error("Replay buffering is in progress, call `flush()` to save the replay");Nf("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();let e=HM({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");Nf("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);let e=HM({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{let e=this._canvas;this._stopRecording=tl({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:$Re},emit:FAe(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:r}={}){if(this._isEnabled){this._isEnabled=!1;try{jn(`[Replay] Stopping Replay${r?` triggered by ${r}`:""}`,this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,RNe(this)}catch(n){this._handleException(n)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),jn("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),jn("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();let r=Date.now();jn("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();let n=this.stopRecording();!e||!n||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(r),this._updateSessionActivity(r),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let r=e();this.recordingMode!=="buffer"&&r!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&l2(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${Kt.location.pathname}${Kt.location.hash}${Kt.location.search}`,r=`${Kt.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=r,this._context.initialTimestamp=Date.now(),this._context.urls.push(r)}throttledAddEvent(e,r){let n=this._throttledAddEvent(e,r);if(n===vY){let o=bi({category:"replay.throttled"});this.addUpdate(()=>!x2(this,{type:ZDe,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastTransaction||rr.getCurrentScope().getTransaction(),n=(e&&rr.spanToJSON(e).data||{})[rr.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(!(!e||!n||!["route","custom"].includes(n)))return rr.spanToJSON(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=kNe({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){Bt&&$e.logger.error("[Replay]",e),Bt&&this._options._experiments&&this._options._experiments.captureExceptions&&rr.captureException(e)}_initializeSessionForSampling(e){let r=this._options.errorSampleRate>0,n=HM({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:r});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return iY(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(e),!1):!0}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{Kt.document.addEventListener("visibilitychange",this._handleVisibilityChange),Kt.addEventListener("blur",this._handleWindowBlur),Kt.addEventListener("focus",this._handleWindowFocus),Kt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(DAe(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=xNe(this)}_removeListeners(){try{Kt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Kt.removeEventListener("blur",this._handleWindowBlur),Kt.removeEventListener("focus",this._handleWindowFocus),Kt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{Kt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{let e=bi({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{let e=bi({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{gNe(this,e)}}_doChangeToBackgroundTasks(e){!this.session||aY(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){jn("[Replay] Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:tt.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=_Ne(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Lw(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:r}=this;if(!e||!r||e.segmentId)return;let n=r.getEarliestTimestamp();n&&nthis._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");let n=this._popEventContext(),o=this.session.segmentId++;this._maybeSaveSession();let a=await this.eventBuffer.finish();await gY({replayId:e,recordingData:a,segmentId:o,eventContext:n,session:this.session,options:this.getOptions(),timestamp:r})}catch(r){this._handleException(r),this.stop({reason:"sendReplay"});let n=rr.getClient();n&&n.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){Bt&&$e.logger.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session)return;let r=this.session.started,o=Date.now()-r;this._debouncedFlush.cancel();let a=othis._options.maxReplayDuration+5e3;if(a||i){jn(`[Replay] Session duration (${Math.floor(o/1e3)}s) is too ${a?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),a&&this._debouncedFlush();return}let s=this.eventBuffer;if(s&&this.session.segmentId===0&&!s.hasCheckout&&jn("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(u){Bt&&$e.logger.error(u)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&w2(this.session)}__init6(){this._onMutationHandler=e=>{let r=e.length,n=this._options.mutationLimit,o=this._options.mutationBreadcrumbLimit,a=n&&r>n;if(r>o||a){let i=bi({category:"replay.mutations",data:{count:r,limit:a}});this._createCustomBreadcrumb(i)}return a?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}};function Py(t,e,r,n){let o=typeof n=="string"?n.split(","):[],a=[...t,...o,...e];return typeof r!="undefined"&&(typeof r=="string"&&a.push(`.${r}`),$e.consoleSandbox(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),a.join(",")}function HAe({mask:t,unmask:e,block:r,unblock:n,ignore:o,blockClass:a,blockSelector:i,maskTextClass:s,maskTextSelector:u,ignoreClass:l}){let c=['base[href="/"]'],p=Py(t,[".sentry-mask","[data-sentry-mask]"],s,u),d=Py(e,[".sentry-unmask","[data-sentry-unmask]"]),f={maskTextSelector:p,unmaskTextSelector:d,blockSelector:Py(r,[".sentry-block","[data-sentry-block]",...c],a,i),unblockSelector:Py(n,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Py(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],l)};return a instanceof RegExp&&(f.blockClass=a),s instanceof RegExp&&(f.maskTextClass=s),f}function GAe({el:t,key:e,maskAttributes:r,maskAllText:n,privacyOptions:o,value:a}){return!n||o.unmaskTextSelector&&t.matches(o.unmaskTextSelector)?a:r.includes(e)||e==="value"&&t.tagName==="INPUT"&&["submit","button"].includes(t.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a}var RK='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',VAe=["content-length","content-type","accept"],DK=!1,yY=t=>new qf(t),qf=class t{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=zRe,flushMaxDelay:r=WRe,minReplayDuration:n=YRe,maxReplayDuration:o=fK,stickySession:a=!0,useCompression:i=!0,workerUrl:s,_experiments:u={},sessionSampleRate:l,errorSampleRate:c,maskAllText:p=!0,maskAllInputs:d=!0,blockAllMedia:f=!0,mutationBreadcrumbLimit:m=750,mutationLimit:g=1e4,slowClickTimeout:v=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:b=[],networkCaptureBodies:E=!0,networkRequestHeaders:w=[],networkResponseHeaders:S=[],mask:C=[],maskAttributes:P=["title","placeholder"],unmask:k=[],block:O=[],unblock:F=[],ignore:U=[],maskFn:J,beforeAddRecordingEvent:K,beforeErrorSampling:Z,blockClass:G,blockSelector:Q,maskInputOptions:N,maskTextClass:j,maskTextSelector:V,ignoreClass:Y}={}){this.name=t.id;let X=HAe({mask:C,unmask:k,block:O,unblock:F,ignore:U,blockClass:G,blockSelector:Q,maskTextClass:j,maskTextSelector:V,ignoreClass:Y});if(this._recordingOptions={maskAllInputs:d,maskAllText:p,maskInputOptions:{...N||{},password:!0},maskTextFn:J,maskInputFn:J,maskAttributeFn:(ie,de,pe)=>GAe({maskAttributes:P,maskAllText:p,privacyOptions:X,key:ie,value:de,el:pe}),...X,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:ie=>{try{ie.__rrweb__=!0}catch(de){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:r,minReplayDuration:Math.min(n,JRe),maxReplayDuration:Math.min(o,fK),stickySession:a,sessionSampleRate:l,errorSampleRate:c,useCompression:i,workerUrl:s,blockAllMedia:f,maskAllInputs:d,maskAllText:p,mutationBreadcrumbLimit:m,mutationLimit:g,slowClickTimeout:v,slowClickIgnoreSelectors:h,networkDetailAllowUrls:y,networkDetailDenyUrls:b,networkCaptureBodies:E,networkRequestHeaders:NK(w),networkResponseHeaders:NK(S),beforeAddRecordingEvent:K,beforeErrorSampling:Z,_experiments:u},typeof l=="number"&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration. This option is deprecated and will be removed soon. Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.: Sentry.init({ replaysSessionSampleRate: ${l} })`),this._initialOptions.sessionSampleRate=l),typeof c=="number"&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration. This option is deprecated and will be removed soon. Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.: -Sentry.init({ replaysOnErrorSampleRate: ${c} })`),this._initialOptions.errorSampleRate=c),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${RK}`:RK),this._isInitialized&&$e.isBrowser())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return DK}set _isInitialized(e){DK=e}setupOnce(){$e.isBrowser()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(e){return!this._replay||!this._replay.isEnabled()?Promise.resolve():this._replay.sendBufferedReplayOrFlush(e)}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){let e=KAe(this._initialOptions);this._replay=new f2({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{let r=rr.getClient().getIntegrationByName("ReplayCanvas");if(!r)return;this._replay._canvas=r.getOptions()}catch(e){}}};qp.__initStatic();function KAe(t){let e=rr.getClient(),r=e&&e.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...$e.dropUndefinedKeys(t)};return r?(t.sessionSampleRate==null&&t.errorSampleRate==null&&r.replaysSessionSampleRate==null&&r.replaysOnErrorSampleRate==null&&$e.consoleSandbox(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),typeof r.replaysSessionSampleRate=="number"&&(n.sessionSampleRate=r.replaysSessionSampleRate),typeof r.replaysOnErrorSampleRate=="number"&&(n.errorSampleRate=r.replaysOnErrorSampleRate),n):($e.consoleSandbox(()=>{console.warn("SDK client is not available.")}),n)}function NK(t){return[...VAe,...t.map(e=>e.toLowerCase())]}function _Y(){let t=rr.getClient();return t&&t.getIntegrationByName&&t.getIntegrationByName("Replay")}var YAe=_Y,JAe=yY,p2=class extends qp{};nl.InternalReplay=qp;nl.Replay=p2;nl.getReplay=YAe;nl.internalGetReplay=_Y;nl.internalReplayIntegration=yY;nl.replayIntegration=JAe});var jY=_(Gw=>{"use strict";var{_optionalChain:XAe}=se();Object.defineProperty(Gw,"__esModule",{value:!0});var OY=Ze(),SY;(function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"})(SY||(SY={}));function ZAe(t,e){for(let r=t.classList.length;r--;){let n=t.classList[r];if(e.test(n))return!0}return!1}function I2(t,e,r=1/0,n=0){return!t||t.nodeType!==t.ELEMENT_NODE||n>r?-1:e(t)?n:I2(t.parentNode,e,r,n+1)}function EY(t,e){return r=>{let n=r;if(n===null)return!1;try{if(t){if(typeof t=="string"){if(n.matches(`.${t}`))return!0}else if(ZAe(n,t))return!0}return!!(e&&n.matches(e))}catch(o){return!1}}}var jp=`Please stop import mirror directly. Instead of that,\r +Sentry.init({ replaysOnErrorSampleRate: ${c} })`),this._initialOptions.errorSampleRate=c),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${RK}`:RK),this._isInitialized&&$e.isBrowser())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return DK}set _isInitialized(e){DK=e}setupOnce(){$e.isBrowser()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(e){return!this._replay||!this._replay.isEnabled()?Promise.resolve():this._replay.sendBufferedReplayOrFlush(e)}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){let e=KAe(this._initialOptions);this._replay=new p2({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{let r=rr.getClient().getIntegrationByName("ReplayCanvas");if(!r)return;this._replay._canvas=r.getOptions()}catch(e){}}};qf.__initStatic();function KAe(t){let e=rr.getClient(),r=e&&e.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...$e.dropUndefinedKeys(t)};return r?(t.sessionSampleRate==null&&t.errorSampleRate==null&&r.replaysSessionSampleRate==null&&r.replaysOnErrorSampleRate==null&&$e.consoleSandbox(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),typeof r.replaysSessionSampleRate=="number"&&(n.sessionSampleRate=r.replaysSessionSampleRate),typeof r.replaysOnErrorSampleRate=="number"&&(n.errorSampleRate=r.replaysOnErrorSampleRate),n):($e.consoleSandbox(()=>{console.warn("SDK client is not available.")}),n)}function NK(t){return[...VAe,...t.map(e=>e.toLowerCase())]}function _Y(){let t=rr.getClient();return t&&t.getIntegrationByName&&t.getIntegrationByName("Replay")}var YAe=_Y,JAe=yY,f2=class extends qf{};nl.InternalReplay=qf;nl.Replay=f2;nl.getReplay=YAe;nl.internalGetReplay=_Y;nl.internalReplayIntegration=yY;nl.replayIntegration=JAe});var jY=_(Gw=>{"use strict";var{_optionalChain:XAe}=se();Object.defineProperty(Gw,"__esModule",{value:!0});var OY=Ze(),SY;(function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"})(SY||(SY={}));function ZAe(t,e){for(let r=t.classList.length;r--;){let n=t.classList[r];if(e.test(n))return!0}return!1}function I2(t,e,r=1/0,n=0){return!t||t.nodeType!==t.ELEMENT_NODE||n>r?-1:e(t)?n:I2(t.parentNode,e,r,n+1)}function EY(t,e){return r=>{let n=r;if(n===null)return!1;try{if(t){if(typeof t=="string"){if(n.matches(`.${t}`))return!0}else if(ZAe(n,t))return!0}return!!(e&&n.matches(e))}catch(o){return!1}}}var jf=`Please stop import mirror directly. Instead of that,\r now you can use replayer.getMirror() to access the mirror instance of a replayer,\r -or you can use record.mirror to access the mirror instance during recording.`,TY={map:{},getId(){return console.error(jp),-1},getNode(){return console.error(jp),null},removeNodeFromMap(){console.error(jp)},has(){return console.error(jp),!1},reset(){console.error(jp)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(TY=new Proxy(TY,{get(t,e,r){return e==="map"&&console.error(jp),Reflect.get(t,e,r)}}));function P2(t,e,r,n,o=window){let a=o.Object.getOwnPropertyDescriptor(t,e);return o.Object.defineProperty(t,e,n?r:{set(i){DY(()=>{r.set.call(this,i)},0),a&&a.set&&a.set.call(this,i)}}),()=>P2(t,e,a||{},!0)}function O2(t,e,r){try{if(!(e in t))return()=>{};let n=t[e],o=r(n);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),t[e]=o,()=>{t[e]=n}}catch(n){return()=>{}}}/[1-9][0-9]{12}/.test(Date.now().toString());function QAe(t){return t?t.nodeType===t.ELEMENT_NODE?t:t.parentElement:null}function Hw(t,e,r,n,o){if(!t)return!1;let a=QAe(t);if(!a)return!1;let i=EY(e,r);if(!o){let l=n&&a.matches(n);return i(a)&&!l}let s=I2(a,i),u=-1;return s<0?!1:(n&&(u=I2(a,EY(null,n))),s>-1&&u<0?!0:s(t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t))(Bp||{}),Ww;function eMe(t){Ww=t}var xY=t=>Ww?(...r)=>{try{return t(...r)}catch(n){if(Ww&&Ww(n)===!0)return()=>{};throw n}}:t,Lp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tMe=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(Uy=0;Uy>2],o+=Lp[(e[r]&3)<<4|e[r+1]>>4],o+=Lp[(e[r+1]&15)<<2|e[r+2]>>6],o+=Lp[e[r+2]&63];return n%3===2?o=o.substring(0,o.length-1)+"=":n%3===1&&(o=o.substring(0,o.length-2)+"=="),o},CY=new Map;function nMe(t,e){let r=CY.get(t);return r||(r=new Map,CY.set(t,r)),r.has(e)||r.set(e,[]),r.get(e)}var NY=(t,e,r)=>{if(!t||!(MY(t,e)||typeof t=="object"))return;let n=t.constructor.name,o=nMe(r,n),a=o.indexOf(t);return a===-1&&(a=o.length,o.push(t)),a};function $w(t,e,r){if(t instanceof Array)return t.map(n=>$w(n,e,r));if(t===null)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};if(t instanceof ArrayBuffer){let n=t.constructor.name,o=rMe(t);return{rr_type:n,base64:o}}else{if(t instanceof DataView)return{rr_type:t.constructor.name,args:[$w(t.buffer,e,r),t.byteOffset,t.byteLength]};if(t instanceof HTMLImageElement){let n=t.constructor.name,{src:o}=t;return{rr_type:n,src:o}}else if(t instanceof HTMLCanvasElement){let n="HTMLImageElement",o=t.toDataURL();return{rr_type:n,src:o}}else{if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[$w(t.data,e,r),t.width,t.height]};if(MY(t,e)||typeof t=="object"){let n=t.constructor.name,o=NY(t,e,r);return{rr_type:n,index:o}}}}return t}var AY=(t,e,r)=>t.map(n=>$w(n,e,r)),MY=(t,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(o=>typeof e[o]=="function").find(o=>t instanceof e[o]);function oMe(t,e,r,n,o){let a=[],i=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(let s of i)try{if(typeof e.CanvasRenderingContext2D.prototype[s]!="function")continue;let u=O2(e.CanvasRenderingContext2D.prototype,s,function(l){return function(...c){return Hw(this.canvas,r,n,o,!0)||DY(()=>{let f=AY(c,e,this);t(this.canvas,{type:Bp["2D"],property:s,args:f})},0),l.apply(this,c)}});a.push(u)}catch(u){let l=P2(e.CanvasRenderingContext2D.prototype,s,{set(c){t(this.canvas,{type:Bp["2D"],property:s,args:[c],setter:!0})}});a.push(l)}return()=>{a.forEach(s=>s())}}function aMe(t){return t==="experimental-webgl"?"webgl":t}function IY(t,e,r,n,o){let a=[];try{let i=O2(t.HTMLCanvasElement.prototype,"getContext",function(s){return function(u,...l){if(!Hw(this,e,r,n,!0)){let c=aMe(u);if("__context"in this||(this.__context=c),o&&["webgl","webgl2"].includes(c))if(l[0]&&typeof l[0]=="object"){let f=l[0];f.preserveDrawingBuffer||(f.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[u,...l])}});a.push(i)}catch(i){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach(i=>i())}}function kY(t,e,r,n,o,a,i,s){let u=[],l=Object.getOwnPropertyNames(t);for(let c of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))try{if(typeof t[c]!="function")continue;let f=O2(t,c,function(d){return function(...p){let m=d.apply(this,p);if(NY(m,s,this),"tagName"in this.canvas&&!Hw(this.canvas,n,o,a,!0)){let g=AY(p,s,this),v={type:e,property:c,args:g};r(this.canvas,v)}return m}});u.push(f)}catch(f){let d=P2(t,c,{set(p){r(this.canvas,{type:e,property:c,args:[p],setter:!0})}});u.push(d)}return u}function iMe(t,e,r,n,o,a){let i=[];return i.push(...kY(e.WebGLRenderingContext.prototype,Bp.WebGL,t,r,n,o,a,e)),typeof e.WebGL2RenderingContext!="undefined"&&i.push(...kY(e.WebGL2RenderingContext.prototype,Bp.WebGL2,t,r,n,o,a,e)),()=>{i.forEach(s=>s())}}var sMe='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function uMe(){let t=new Blob([sMe]);return URL.createObjectURL(t)}var k2=class{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(f,d)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(f)||this.pendingCanvasMutations.set(f,[]),this.pendingCanvasMutations.get(f).push(d)};let{sampling:r="all",win:n,blockClass:o,blockSelector:a,unblockSelector:i,maxCanvasSize:s,recordCanvas:u,dataURLOptions:l,errorHandler:c}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,c&&eMe(c),!e.enableManualSnapshot&&xY(()=>{u&&r==="all"&&this.initCanvasMutationObserver(n,o,a,i),u&&typeof r=="number"&&this.initCanvasFPSObserver(r,n,o,a,i,s,{dataURLOptions:l})})()}initCanvasFPSObserver(e,r,n,o,a,i,s){let u=IY(r,n,o,a,!0),l=this.takeSnapshot(!1,e,r,n,o,a,i,s.dataURLOptions);this.resetObservers=()=>{u(),cancelAnimationFrame(l)}}initCanvasMutationObserver(e,r,n,o){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let a=IY(e,r,n,o,!1),i=oMe(this.processMutation.bind(this),e,r,n,o),s=iMe(this.processMutation.bind(this),e,r,n,o,this.mirror);this.resetObservers=()=>{a(),i(),s()}}snapshot(e){let{options:r}=this,n=this.takeSnapshot(!0,r.sampling==="all"?2:r.sampling||2,r.win,r.blockClass,r.blockSelector,r.unblockSelector,r.maxCanvasSize,r.dataURLOptions,e);this.resetObservers=()=>{cancelAnimationFrame(n)}}takeSnapshot(e,r,n,o,a,i,s,u,l){let c=new Map,f=new Worker(uMe());f.onmessage=h=>{let y=h.data,{id:b}=y;if(c.set(b,!1),!("base64"in y))return;let{base64:E,type:w,width:S,height:C}=y;this.mutationCb({id:b,type:Bp["2D"],commands:[{property:"clearRect",args:[0,0,S,C]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:E}],type:w}]},0,0,S,C]}]})};let d=1e3/r,p=0,m,g=h=>{if(h)return[h];let y=[];return n.document.querySelectorAll("canvas").forEach(b=>{Hw(b,o,a,i,!0)||y.push(b)}),y},v=h=>{if(p&&h-p{let b=this.mirror.getId(y);if(!c.get(b)&&!(!y.width||!y.height)){if(c.set(b,!0),!e&&["webgl","webgl2"].includes(y.__context)){let E=y.getContext(y.__context);XAe([E,"optionalAccess",w=>w.getContextAttributes,"call",w=>w(),"optionalAccess",w=>w.preserveDrawingBuffer])===!1&&E.clear(E.COLOR_BUFFER_BIT)}createImageBitmap(y).then(E=>{f.postMessage({id:b,bitmap:E,width:y.width,height:y.height,dataURLOptions:u,maxCanvasSize:s},[E])}).catch(E=>{xY(()=>{throw E})()})}}),m=jc(v)};return m=jc(v),m}startPendingCanvasMutationFlusher(){jc(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=r=>{this.rafStamps.latestId=r,jc(e)};jc(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,r)=>{let n=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,n)}),jc(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,r){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||r===-1)return;let o=n.map(i=>{let{type:s,...u}=i;return u}),{type:a}=n[0];this.mutationCb({id:r,type:a,commands:o}),this.pendingCanvasMutations.delete(e)}},PY={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},FY="ReplayCanvas",zw=1280,lMe=(t={})=>{let[e,r]=t.maxCanvasSize||[],n={quality:t.quality||"medium",enableManualSnapshot:t.enableManualSnapshot,maxCanvasSize:[e?Math.min(e,zw):zw,r?Math.min(r,zw):zw]},o,a=new Promise(i=>o=i);return{name:FY,setupOnce(){},getOptions(){let{quality:i,enableManualSnapshot:s,maxCanvasSize:u}=n;return{enableManualSnapshot:s,recordCanvas:!0,getCanvasManager:l=>{let c=new k2({...l,enableManualSnapshot:s,maxCanvasSize:u,errorHandler:f=>{try{typeof f=="object"&&(f.__rrweb__=!0)}catch(d){}}});return o(c),c},...PY[i||"medium"]||PY.medium}},async snapshot(i){(await a).snapshot(i)}}},qY=OY.defineIntegration(lMe),cMe=OY.convertIntegrationFnToClass(FY,qY);Gw.ReplayCanvas=cMe;Gw.replayCanvasIntegration=qY});var JY=_(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});var xo=se(),Bc=Ze(),Uc=xo.GLOBAL_OBJ,R2="#ffffff",LY="inherit",D2="rgba(108, 95, 199, 1)",BY={fontFamily:"system-ui, 'Helvetica Neue', Arial, sans-serif",fontSize:"14px",background:R2,backgroundHover:"#f6f6f7",foreground:"#2b2233",border:"1.5px solid rgba(41, 35, 47, 0.13)",borderRadius:"25px",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",success:"#268d75",error:"#df3338",submitBackground:"rgba(88, 74, 192, 1)",submitBackgroundHover:D2,submitBorder:D2,submitOutlineFocus:"#29232f",submitForeground:R2,submitForegroundHover:R2,cancelBackground:"transparent",cancelBackgroundHover:"var(--background-hover)",cancelBorder:"var(--border)",cancelOutlineFocus:"var(--input-outline-focus)",cancelForeground:"var(--foreground)",cancelForegroundHover:"var(--foreground)",inputBackground:LY,inputForeground:LY,inputBorder:"var(--border)",inputOutlineFocus:D2,formBorderRadius:"20px",formContentBorderRadius:"6px"},UY={light:BY,dark:{...BY,background:"#29232f",backgroundHover:"#352f3b",foreground:"#ebe6ef",border:"1.5px solid rgba(235, 230, 239, 0.15)",success:"#2da98c",error:"#f55459"}},dMe="Report a Bug",fMe="Cancel",pMe="Send Bug Report",mMe="Report a Bug",hMe="your.email@example.org",gMe="Email",vMe="What's the bug? What did you expect?",yMe="Description",_Me="Your Name",bMe="Name",SMe="(required)",EMe="Thank you for your report!",GY="widget",VY="api";async function TMe({client:t,scope:e,event:r}){let n={};t.emit&&t.emit("preprocessEvent",r,n);let o=await Bc.prepareEvent(t.getOptions(),r,n,e,t,Bc.getIsolationScope());return o===null?(t.recordDroppedEvent("event_processor","feedback",r),null):(o.platform=o.platform||"javascript",o)}async function wMe({feedback:{message:t,email:e,name:r,source:n,url:o}},{includeReplay:a=!0}={}){let i=Bc.getClient(),s=i&&i.getTransport(),u=i&&i.getDsn();if(!i||!s||!u)return;let l={contexts:{feedback:{contact_email:e,name:r,message:t,url:o,source:n}},type:"feedback"};return Bc.withScope(async c=>{c.clearBreadcrumbs(),[VY,GY].includes(String(n))&&c.setLevel("info");let f=await TMe({scope:c,client:i,event:l});if(!f)return;i.emit&&i.emit("beforeSendFeedback",f,{includeReplay:!!a});let d=Bc.createEventEnvelope(f,u,i.getOptions()._metadata,i.getOptions().tunnel),p;try{p=await s.send(d)}catch(m){let g=new Error("Unable to send Feedback");try{g.cause=m}catch(v){}throw g}if(p){if(typeof p.statusCode=="number"&&(p.statusCode<200||p.statusCode>=300))throw new Error("Unable to send Feedback");return p}})}function KY({name:t,email:e,message:r,source:n=VY,url:o=xo.getLocationHref()},a={}){if(!r)throw new Error("Unable to submit feedback with empty message");return wMe({feedback:{name:t,email:e,message:r,url:o,source:n}},a)}var Lc=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;function zY(t,e){return{...t,...e,themeDark:{...t.themeDark,...e.themeDark},themeLight:{...t.themeLight,...e.themeLight}}}function xMe(t){let e=t.createElement("style");return e.textContent=` +or you can use record.mirror to access the mirror instance during recording.`,TY={map:{},getId(){return console.error(jf),-1},getNode(){return console.error(jf),null},removeNodeFromMap(){console.error(jf)},has(){return console.error(jf),!1},reset(){console.error(jf)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(TY=new Proxy(TY,{get(t,e,r){return e==="map"&&console.error(jf),Reflect.get(t,e,r)}}));function P2(t,e,r,n,o=window){let a=o.Object.getOwnPropertyDescriptor(t,e);return o.Object.defineProperty(t,e,n?r:{set(i){DY(()=>{r.set.call(this,i)},0),a&&a.set&&a.set.call(this,i)}}),()=>P2(t,e,a||{},!0)}function O2(t,e,r){try{if(!(e in t))return()=>{};let n=t[e],o=r(n);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),t[e]=o,()=>{t[e]=n}}catch(n){return()=>{}}}/[1-9][0-9]{12}/.test(Date.now().toString());function QAe(t){return t?t.nodeType===t.ELEMENT_NODE?t:t.parentElement:null}function Hw(t,e,r,n,o){if(!t)return!1;let a=QAe(t);if(!a)return!1;let i=EY(e,r);if(!o){let l=n&&a.matches(n);return i(a)&&!l}let s=I2(a,i),u=-1;return s<0?!1:(n&&(u=I2(a,EY(null,n))),s>-1&&u<0?!0:s(t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t))(Bf||{}),Ww;function eMe(t){Ww=t}var xY=t=>Ww?(...r)=>{try{return t(...r)}catch(n){if(Ww&&Ww(n)===!0)return()=>{};throw n}}:t,Lf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tMe=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(Uy=0;Uy>2],o+=Lf[(e[r]&3)<<4|e[r+1]>>4],o+=Lf[(e[r+1]&15)<<2|e[r+2]>>6],o+=Lf[e[r+2]&63];return n%3===2?o=o.substring(0,o.length-1)+"=":n%3===1&&(o=o.substring(0,o.length-2)+"=="),o},CY=new Map;function nMe(t,e){let r=CY.get(t);return r||(r=new Map,CY.set(t,r)),r.has(e)||r.set(e,[]),r.get(e)}var NY=(t,e,r)=>{if(!t||!(MY(t,e)||typeof t=="object"))return;let n=t.constructor.name,o=nMe(r,n),a=o.indexOf(t);return a===-1&&(a=o.length,o.push(t)),a};function $w(t,e,r){if(t instanceof Array)return t.map(n=>$w(n,e,r));if(t===null)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};if(t instanceof ArrayBuffer){let n=t.constructor.name,o=rMe(t);return{rr_type:n,base64:o}}else{if(t instanceof DataView)return{rr_type:t.constructor.name,args:[$w(t.buffer,e,r),t.byteOffset,t.byteLength]};if(t instanceof HTMLImageElement){let n=t.constructor.name,{src:o}=t;return{rr_type:n,src:o}}else if(t instanceof HTMLCanvasElement){let n="HTMLImageElement",o=t.toDataURL();return{rr_type:n,src:o}}else{if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[$w(t.data,e,r),t.width,t.height]};if(MY(t,e)||typeof t=="object"){let n=t.constructor.name,o=NY(t,e,r);return{rr_type:n,index:o}}}}return t}var AY=(t,e,r)=>t.map(n=>$w(n,e,r)),MY=(t,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(o=>typeof e[o]=="function").find(o=>t instanceof e[o]);function oMe(t,e,r,n,o){let a=[],i=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(let s of i)try{if(typeof e.CanvasRenderingContext2D.prototype[s]!="function")continue;let u=O2(e.CanvasRenderingContext2D.prototype,s,function(l){return function(...c){return Hw(this.canvas,r,n,o,!0)||DY(()=>{let p=AY(c,e,this);t(this.canvas,{type:Bf["2D"],property:s,args:p})},0),l.apply(this,c)}});a.push(u)}catch(u){let l=P2(e.CanvasRenderingContext2D.prototype,s,{set(c){t(this.canvas,{type:Bf["2D"],property:s,args:[c],setter:!0})}});a.push(l)}return()=>{a.forEach(s=>s())}}function aMe(t){return t==="experimental-webgl"?"webgl":t}function IY(t,e,r,n,o){let a=[];try{let i=O2(t.HTMLCanvasElement.prototype,"getContext",function(s){return function(u,...l){if(!Hw(this,e,r,n,!0)){let c=aMe(u);if("__context"in this||(this.__context=c),o&&["webgl","webgl2"].includes(c))if(l[0]&&typeof l[0]=="object"){let p=l[0];p.preserveDrawingBuffer||(p.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[u,...l])}});a.push(i)}catch(i){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach(i=>i())}}function kY(t,e,r,n,o,a,i,s){let u=[],l=Object.getOwnPropertyNames(t);for(let c of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))try{if(typeof t[c]!="function")continue;let p=O2(t,c,function(d){return function(...f){let m=d.apply(this,f);if(NY(m,s,this),"tagName"in this.canvas&&!Hw(this.canvas,n,o,a,!0)){let g=AY(f,s,this),v={type:e,property:c,args:g};r(this.canvas,v)}return m}});u.push(p)}catch(p){let d=P2(t,c,{set(f){r(this.canvas,{type:e,property:c,args:[f],setter:!0})}});u.push(d)}return u}function iMe(t,e,r,n,o,a){let i=[];return i.push(...kY(e.WebGLRenderingContext.prototype,Bf.WebGL,t,r,n,o,a,e)),typeof e.WebGL2RenderingContext!="undefined"&&i.push(...kY(e.WebGL2RenderingContext.prototype,Bf.WebGL2,t,r,n,o,a,e)),()=>{i.forEach(s=>s())}}var sMe='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function uMe(){let t=new Blob([sMe]);return URL.createObjectURL(t)}var k2=class{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(p,d)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(p)||this.pendingCanvasMutations.set(p,[]),this.pendingCanvasMutations.get(p).push(d)};let{sampling:r="all",win:n,blockClass:o,blockSelector:a,unblockSelector:i,maxCanvasSize:s,recordCanvas:u,dataURLOptions:l,errorHandler:c}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,c&&eMe(c),!e.enableManualSnapshot&&xY(()=>{u&&r==="all"&&this.initCanvasMutationObserver(n,o,a,i),u&&typeof r=="number"&&this.initCanvasFPSObserver(r,n,o,a,i,s,{dataURLOptions:l})})()}initCanvasFPSObserver(e,r,n,o,a,i,s){let u=IY(r,n,o,a,!0),l=this.takeSnapshot(!1,e,r,n,o,a,i,s.dataURLOptions);this.resetObservers=()=>{u(),cancelAnimationFrame(l)}}initCanvasMutationObserver(e,r,n,o){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let a=IY(e,r,n,o,!1),i=oMe(this.processMutation.bind(this),e,r,n,o),s=iMe(this.processMutation.bind(this),e,r,n,o,this.mirror);this.resetObservers=()=>{a(),i(),s()}}snapshot(e){let{options:r}=this,n=this.takeSnapshot(!0,r.sampling==="all"?2:r.sampling||2,r.win,r.blockClass,r.blockSelector,r.unblockSelector,r.maxCanvasSize,r.dataURLOptions,e);this.resetObservers=()=>{cancelAnimationFrame(n)}}takeSnapshot(e,r,n,o,a,i,s,u,l){let c=new Map,p=new Worker(uMe());p.onmessage=h=>{let y=h.data,{id:b}=y;if(c.set(b,!1),!("base64"in y))return;let{base64:E,type:w,width:S,height:C}=y;this.mutationCb({id:b,type:Bf["2D"],commands:[{property:"clearRect",args:[0,0,S,C]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:E}],type:w}]},0,0,S,C]}]})};let d=1e3/r,f=0,m,g=h=>{if(h)return[h];let y=[];return n.document.querySelectorAll("canvas").forEach(b=>{Hw(b,o,a,i,!0)||y.push(b)}),y},v=h=>{if(f&&h-f{let b=this.mirror.getId(y);if(!c.get(b)&&!(!y.width||!y.height)){if(c.set(b,!0),!e&&["webgl","webgl2"].includes(y.__context)){let E=y.getContext(y.__context);XAe([E,"optionalAccess",w=>w.getContextAttributes,"call",w=>w(),"optionalAccess",w=>w.preserveDrawingBuffer])===!1&&E.clear(E.COLOR_BUFFER_BIT)}createImageBitmap(y).then(E=>{p.postMessage({id:b,bitmap:E,width:y.width,height:y.height,dataURLOptions:u,maxCanvasSize:s},[E])}).catch(E=>{xY(()=>{throw E})()})}}),m=jc(v)};return m=jc(v),m}startPendingCanvasMutationFlusher(){jc(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=r=>{this.rafStamps.latestId=r,jc(e)};jc(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,r)=>{let n=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,n)}),jc(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,r){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||r===-1)return;let o=n.map(i=>{let{type:s,...u}=i;return u}),{type:a}=n[0];this.mutationCb({id:r,type:a,commands:o}),this.pendingCanvasMutations.delete(e)}},PY={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},FY="ReplayCanvas",zw=1280,lMe=(t={})=>{let[e,r]=t.maxCanvasSize||[],n={quality:t.quality||"medium",enableManualSnapshot:t.enableManualSnapshot,maxCanvasSize:[e?Math.min(e,zw):zw,r?Math.min(r,zw):zw]},o,a=new Promise(i=>o=i);return{name:FY,setupOnce(){},getOptions(){let{quality:i,enableManualSnapshot:s,maxCanvasSize:u}=n;return{enableManualSnapshot:s,recordCanvas:!0,getCanvasManager:l=>{let c=new k2({...l,enableManualSnapshot:s,maxCanvasSize:u,errorHandler:p=>{try{typeof p=="object"&&(p.__rrweb__=!0)}catch(d){}}});return o(c),c},...PY[i||"medium"]||PY.medium}},async snapshot(i){(await a).snapshot(i)}}},qY=OY.defineIntegration(lMe),cMe=OY.convertIntegrationFnToClass(FY,qY);Gw.ReplayCanvas=cMe;Gw.replayCanvasIntegration=qY});var JY=_(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});var xo=se(),Bc=Ze(),Uc=xo.GLOBAL_OBJ,R2="#ffffff",LY="inherit",D2="rgba(108, 95, 199, 1)",BY={fontFamily:"system-ui, 'Helvetica Neue', Arial, sans-serif",fontSize:"14px",background:R2,backgroundHover:"#f6f6f7",foreground:"#2b2233",border:"1.5px solid rgba(41, 35, 47, 0.13)",borderRadius:"25px",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",success:"#268d75",error:"#df3338",submitBackground:"rgba(88, 74, 192, 1)",submitBackgroundHover:D2,submitBorder:D2,submitOutlineFocus:"#29232f",submitForeground:R2,submitForegroundHover:R2,cancelBackground:"transparent",cancelBackgroundHover:"var(--background-hover)",cancelBorder:"var(--border)",cancelOutlineFocus:"var(--input-outline-focus)",cancelForeground:"var(--foreground)",cancelForegroundHover:"var(--foreground)",inputBackground:LY,inputForeground:LY,inputBorder:"var(--border)",inputOutlineFocus:D2,formBorderRadius:"20px",formContentBorderRadius:"6px"},UY={light:BY,dark:{...BY,background:"#29232f",backgroundHover:"#352f3b",foreground:"#ebe6ef",border:"1.5px solid rgba(235, 230, 239, 0.15)",success:"#2da98c",error:"#f55459"}},dMe="Report a Bug",pMe="Cancel",fMe="Send Bug Report",mMe="Report a Bug",hMe="your.email@example.org",gMe="Email",vMe="What's the bug? What did you expect?",yMe="Description",_Me="Your Name",bMe="Name",SMe="(required)",EMe="Thank you for your report!",GY="widget",VY="api";async function TMe({client:t,scope:e,event:r}){let n={};t.emit&&t.emit("preprocessEvent",r,n);let o=await Bc.prepareEvent(t.getOptions(),r,n,e,t,Bc.getIsolationScope());return o===null?(t.recordDroppedEvent("event_processor","feedback",r),null):(o.platform=o.platform||"javascript",o)}async function wMe({feedback:{message:t,email:e,name:r,source:n,url:o}},{includeReplay:a=!0}={}){let i=Bc.getClient(),s=i&&i.getTransport(),u=i&&i.getDsn();if(!i||!s||!u)return;let l={contexts:{feedback:{contact_email:e,name:r,message:t,url:o,source:n}},type:"feedback"};return Bc.withScope(async c=>{c.clearBreadcrumbs(),[VY,GY].includes(String(n))&&c.setLevel("info");let p=await TMe({scope:c,client:i,event:l});if(!p)return;i.emit&&i.emit("beforeSendFeedback",p,{includeReplay:!!a});let d=Bc.createEventEnvelope(p,u,i.getOptions()._metadata,i.getOptions().tunnel),f;try{f=await s.send(d)}catch(m){let g=new Error("Unable to send Feedback");try{g.cause=m}catch(v){}throw g}if(f){if(typeof f.statusCode=="number"&&(f.statusCode<200||f.statusCode>=300))throw new Error("Unable to send Feedback");return f}})}function KY({name:t,email:e,message:r,source:n=VY,url:o=xo.getLocationHref()},a={}){if(!r)throw new Error("Unable to submit feedback with empty message");return wMe({feedback:{name:t,email:e,message:r,url:o,source:n}},a)}var Lc=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;function zY(t,e){return{...t,...e,themeDark:{...t.themeDark,...e.themeDark},themeLight:{...t.themeLight,...e.themeLight}}}function xMe(t){let e=t.createElement("style");return e.textContent=` .widget__actor { position: fixed; left: var(--left); @@ -375,7 +375,7 @@ ${e==="system"?` ${WY(r.dark)} } }`:""} -}`,n}function kMe({id:t,colorScheme:e,themeDark:r,themeLight:n}){try{let o=Uc.document,a=o.createElement("div");a.id=t;let i=a.attachShadow({mode:"open"});return i.appendChild(IMe(o,e,{dark:r,light:n})),i.appendChild(CMe(o)),{shadow:i,host:a}}catch(o){throw xo.logger.warn("[Feedback] Browser does not support shadow DOM API"),new Error("Browser does not support shadow DOM API.")}}async function PMe(t,e,r){if(!t)return;let n=()=>{t&&t.showError("There was a problem submitting feedback, please wait and try again.")};t.hideError();try{return await KY({...e,source:GY},r)}catch(o){Lc&&xo.logger.error(o),n()}}function Co(t,e){return Object.entries(e).forEach(([r,n])=>{t.setAttributeNS(null,r,n)}),t}var Up=20,OMe="http://www.w3.org/2000/svg";function RMe(){let t=s=>Uc.document.createElementNS(OMe,s),e=Co(t("svg"),{class:"feedback-icon",width:`${Up}`,height:`${Up}`,viewBox:`0 0 ${Up} ${Up}`,fill:"none"}),r=Co(t("g"),{clipPath:"url(#clip0_57_80)"}),n=Co(t("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});e.appendChild(r).appendChild(n);let o=t("defs"),a=Co(t("clipPath"),{id:"clip0_57_80"}),i=Co(t("rect"),{width:`${Up}`,height:`${Up}`,fill:"white"});return a.appendChild(i),o.appendChild(a),e.appendChild(o).appendChild(a).appendChild(i),{get el(){return e}}}function nr(t,e,...r){let o=Uc.document.createElement(t);e&&Object.entries(e).forEach(([a,i])=>{a==="className"&&typeof i=="string"?o.setAttribute("class",i):typeof i=="boolean"&&i?o.setAttribute(a,""):typeof i=="string"?o.setAttribute(a,i):a.startsWith("on")&&typeof i=="function"&&o.addEventListener(a.substring(2).toLowerCase(),i)});for(let a of r)YY(o,a);return o}function YY(t,e){let r=Uc.document;if(!(typeof e=="undefined"||e===null))if(Array.isArray(e))for(let n of e)YY(t,n);else e===!1||(typeof e=="string"?t.appendChild(r.createTextNode(e)):e instanceof Node?t.appendChild(e):t.appendChild(r.createTextNode(String(e))))}function DMe({buttonLabel:t,onClick:e}){function r(o){e&&e(o)}let n=nr("button",{type:"button",className:"widget__actor","aria-label":t,"aria-hidden":"false"},RMe().el,t?nr("span",{className:"widget__actor__text"},t):null);return n.addEventListener("click",r),{get el(){return n},show:()=>{n.classList.remove("widget__actor--hidden"),n.setAttribute("aria-hidden","false")},hide:()=>{n.classList.add("widget__actor--hidden"),n.setAttribute("aria-hidden","true")}}}function NMe({label:t}){return{el:nr("button",{type:"submit",className:"btn btn--primary","aria-label":t},t)}}function N2(t,e){let r=t.get(e);return typeof r=="string"?r.trim():""}function AMe({nameLabel:t,namePlaceholder:e,emailLabel:r,emailPlaceholder:n,messageLabel:o,messagePlaceholder:a,isRequiredLabel:i,cancelButtonLabel:s,submitButtonLabel:u,showName:l,showEmail:c,isNameRequired:f,isEmailRequired:d,defaultName:p,defaultEmail:m,onCancel:g,onSubmit:v}){let{el:h}=NMe({label:u});function y(F){if(F.preventDefault(),F.target instanceof HTMLFormElement)try{if(v){let U=new FormData(F.target),J={name:N2(U,"name"),email:N2(U,"email"),message:N2(U,"message")};v(J)}}catch(U){}}let b=nr("div",{className:"form__error-container form__error-container--hidden","aria-hidden":"true"});function E(F){b.textContent=F,b.classList.remove("form__error-container--hidden"),b.setAttribute("aria-hidden","false")}function w(){b.textContent="",b.classList.add("form__error-container--hidden"),b.setAttribute("aria-hidden","true")}let S=nr("input",{id:"name",type:l?"text":"hidden","aria-hidden":l?"false":"true",name:"name",required:f,className:"form__input",placeholder:e,value:p}),C=nr("input",{id:"email",type:c?"text":"hidden","aria-hidden":c?"false":"true",name:"email",required:d,className:"form__input",placeholder:n,value:m}),P=nr("textarea",{id:"message",autoFocus:"true",rows:"5",name:"message",required:!0,className:"form__input form__input--textarea",placeholder:a}),k=nr("button",{type:"button",className:"btn btn--default","aria-label":s,onClick:F=>{g&&g(F)}},s),O=nr("form",{className:"form",onSubmit:y},[b,l&&nr("label",{htmlFor:"name",className:"form__label"},[nr("span",{className:"form__label__text"},t,f&&nr("span",{className:"form__label__text--required"},` ${i}`)),S]),!l&&S,c&&nr("label",{htmlFor:"email",className:"form__label"},[nr("span",{className:"form__label__text"},r,d&&nr("span",{className:"form__label__text--required"},` ${i}`)),C]),!c&&C,nr("label",{htmlFor:"message",className:"form__label"},[nr("span",{className:"form__label__text"},o,nr("span",{className:"form__label__text--required"},` ${i}`)),P]),nr("div",{className:"btn-group"},[h,k])]);return{get el(){return O},showError:E,hideError:w}}var MMe="http://www.w3.org/2000/svg";function FMe({colorScheme:t}){let e=i=>Uc.document.createElementNS(MMe,i),r=Co(e("svg"),{class:"sentry-logo",width:"32",height:"30",viewBox:"0 0 72 66",fill:"none"}),n=Co(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});r.append(n);let o=e("defs"),a=e("style");return a.textContent=` +}`,n}function kMe({id:t,colorScheme:e,themeDark:r,themeLight:n}){try{let o=Uc.document,a=o.createElement("div");a.id=t;let i=a.attachShadow({mode:"open"});return i.appendChild(IMe(o,e,{dark:r,light:n})),i.appendChild(CMe(o)),{shadow:i,host:a}}catch(o){throw xo.logger.warn("[Feedback] Browser does not support shadow DOM API"),new Error("Browser does not support shadow DOM API.")}}async function PMe(t,e,r){if(!t)return;let n=()=>{t&&t.showError("There was a problem submitting feedback, please wait and try again.")};t.hideError();try{return await KY({...e,source:GY},r)}catch(o){Lc&&xo.logger.error(o),n()}}function Co(t,e){return Object.entries(e).forEach(([r,n])=>{t.setAttributeNS(null,r,n)}),t}var Uf=20,OMe="http://www.w3.org/2000/svg";function RMe(){let t=s=>Uc.document.createElementNS(OMe,s),e=Co(t("svg"),{class:"feedback-icon",width:`${Uf}`,height:`${Uf}`,viewBox:`0 0 ${Uf} ${Uf}`,fill:"none"}),r=Co(t("g"),{clipPath:"url(#clip0_57_80)"}),n=Co(t("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});e.appendChild(r).appendChild(n);let o=t("defs"),a=Co(t("clipPath"),{id:"clip0_57_80"}),i=Co(t("rect"),{width:`${Uf}`,height:`${Uf}`,fill:"white"});return a.appendChild(i),o.appendChild(a),e.appendChild(o).appendChild(a).appendChild(i),{get el(){return e}}}function nr(t,e,...r){let o=Uc.document.createElement(t);e&&Object.entries(e).forEach(([a,i])=>{a==="className"&&typeof i=="string"?o.setAttribute("class",i):typeof i=="boolean"&&i?o.setAttribute(a,""):typeof i=="string"?o.setAttribute(a,i):a.startsWith("on")&&typeof i=="function"&&o.addEventListener(a.substring(2).toLowerCase(),i)});for(let a of r)YY(o,a);return o}function YY(t,e){let r=Uc.document;if(!(typeof e=="undefined"||e===null))if(Array.isArray(e))for(let n of e)YY(t,n);else e===!1||(typeof e=="string"?t.appendChild(r.createTextNode(e)):e instanceof Node?t.appendChild(e):t.appendChild(r.createTextNode(String(e))))}function DMe({buttonLabel:t,onClick:e}){function r(o){e&&e(o)}let n=nr("button",{type:"button",className:"widget__actor","aria-label":t,"aria-hidden":"false"},RMe().el,t?nr("span",{className:"widget__actor__text"},t):null);return n.addEventListener("click",r),{get el(){return n},show:()=>{n.classList.remove("widget__actor--hidden"),n.setAttribute("aria-hidden","false")},hide:()=>{n.classList.add("widget__actor--hidden"),n.setAttribute("aria-hidden","true")}}}function NMe({label:t}){return{el:nr("button",{type:"submit",className:"btn btn--primary","aria-label":t},t)}}function N2(t,e){let r=t.get(e);return typeof r=="string"?r.trim():""}function AMe({nameLabel:t,namePlaceholder:e,emailLabel:r,emailPlaceholder:n,messageLabel:o,messagePlaceholder:a,isRequiredLabel:i,cancelButtonLabel:s,submitButtonLabel:u,showName:l,showEmail:c,isNameRequired:p,isEmailRequired:d,defaultName:f,defaultEmail:m,onCancel:g,onSubmit:v}){let{el:h}=NMe({label:u});function y(F){if(F.preventDefault(),F.target instanceof HTMLFormElement)try{if(v){let U=new FormData(F.target),J={name:N2(U,"name"),email:N2(U,"email"),message:N2(U,"message")};v(J)}}catch(U){}}let b=nr("div",{className:"form__error-container form__error-container--hidden","aria-hidden":"true"});function E(F){b.textContent=F,b.classList.remove("form__error-container--hidden"),b.setAttribute("aria-hidden","false")}function w(){b.textContent="",b.classList.add("form__error-container--hidden"),b.setAttribute("aria-hidden","true")}let S=nr("input",{id:"name",type:l?"text":"hidden","aria-hidden":l?"false":"true",name:"name",required:p,className:"form__input",placeholder:e,value:f}),C=nr("input",{id:"email",type:c?"text":"hidden","aria-hidden":c?"false":"true",name:"email",required:d,className:"form__input",placeholder:n,value:m}),P=nr("textarea",{id:"message",autoFocus:"true",rows:"5",name:"message",required:!0,className:"form__input form__input--textarea",placeholder:a}),k=nr("button",{type:"button",className:"btn btn--default","aria-label":s,onClick:F=>{g&&g(F)}},s),O=nr("form",{className:"form",onSubmit:y},[b,l&&nr("label",{htmlFor:"name",className:"form__label"},[nr("span",{className:"form__label__text"},t,p&&nr("span",{className:"form__label__text--required"},` ${i}`)),S]),!l&&S,c&&nr("label",{htmlFor:"email",className:"form__label"},[nr("span",{className:"form__label__text"},r,d&&nr("span",{className:"form__label__text--required"},` ${i}`)),C]),!c&&C,nr("label",{htmlFor:"message",className:"form__label"},[nr("span",{className:"form__label__text"},o,nr("span",{className:"form__label__text--required"},` ${i}`)),P]),nr("div",{className:"btn-group"},[h,k])]);return{get el(){return O},showError:E,hideError:w}}var MMe="http://www.w3.org/2000/svg";function FMe({colorScheme:t}){let e=i=>Uc.document.createElementNS(MMe,i),r=Co(e("svg"),{class:"sentry-logo",width:"32",height:"30",viewBox:"0 0 72 66",fill:"none"}),n=Co(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});r.append(n);let o=e("defs"),a=e("style");return a.textContent=` path { fill: ${t==="dark"?"#fff":"#362d59"}; }`,t==="system"&&(a.textContent+=` @@ -384,21 +384,21 @@ ${e==="system"?` fill: '#fff'; } } - `),o.append(a),r.append(o),{get el(){return r}}}function qMe({formTitle:t,showBranding:e,showName:r,showEmail:n,isNameRequired:o,isEmailRequired:a,colorScheme:i,defaultName:s,defaultEmail:u,onClosed:l,onCancel:c,onSubmit:f,...d}){let p=null;function m(){g(),l&&l()}function g(){p&&(p.open=!1)}function v(){p&&(p.open=!0)}function h(){return p&&p.open===!0||!1}let{el:y,showError:b,hideError:E}=AMe({showEmail:n,showName:r,isEmailRequired:a,isNameRequired:o,defaultName:s,defaultEmail:u,onSubmit:f,onCancel:c,...d});return p=nr("dialog",{className:"dialog",open:!0,onClick:m},nr("div",{className:"dialog__content",onClick:w=>{w.stopPropagation()}},nr("h2",{className:"dialog__header"},t,e&&nr("a",{className:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer"},FMe({colorScheme:i}).el)),y)),{get el(){return p},showError:b,hideError:E,open:v,close:g,checkIsOpen:h}}var Vw=16,$Y=17,jMe="http://www.w3.org/2000/svg";function LMe(){let t=u=>Uc.document.createElementNS(jMe,u),e=Co(t("svg"),{class:"success-icon",width:`${Vw}`,height:`${$Y}`,viewBox:`0 0 ${Vw} ${$Y}`,fill:"none"}),r=Co(t("g"),{clipPath:"url(#clip0_57_156)"}),n=Co(t("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),o=Co(t("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});e.appendChild(r).append(o,n);let a=t("defs"),i=Co(t("clipPath"),{id:"clip0_57_156"}),s=Co(t("rect"),{width:`${Vw}`,height:`${Vw}`,fill:"white",transform:"translate(0 0.5)"});return i.appendChild(s),a.appendChild(i),e.appendChild(a).appendChild(i).appendChild(s),{get el(){return e}}}function BMe({message:t,onRemove:e}){function r(){n&&(n.remove(),e&&e())}let n=nr("div",{className:"success-message",onClick:r},LMe().el,t);return{el:n,remove:r}}function HY({shadow:t,options:{shouldCreateActor:e=!0,...r},attachTo:n}){let o,a,i=!1;function s(){if(t)try{let h=BMe({message:r.successMessageText,onRemove:()=>{y&&clearTimeout(y),c()}});if(!h.el)throw new Error("Unable to show success message");t.appendChild(h.el);let y=setTimeout(()=>{h&&h.remove()},5e3)}catch(h){xo.logger.error(h)}}async function u(h){if(!a)return;let y=[];if(r.isNameRequired&&!h.name&&y.push(r.nameLabel),r.isEmailRequired&&!h.email&&y.push(r.emailLabel),h.message||y.push(r.messageLabel),y.length>0){a.showError(`Please enter in the following required fields: ${y.join(", ")}`);return}if(!await PMe(a,h)){r.onSubmitError&&r.onSubmitError();return}g(),s(),r.onSubmitSuccess&&r.onSubmitSuccess()}function l(){let h=Bc.getClient(),y=h&&h.getIntegrationByName&&h.getIntegrationByName("Replay");y&&y.flush().catch(b=>{Lc&&xo.logger.error(b)})}function c(){o&&o.show()}function f(){o&&o.hide()}function d(){o&&o.el&&o.el.remove()}function p(){try{if(a){a.open(),i=!0,r.onFormOpen&&r.onFormOpen(),l();return}let h=r.useSentryUser,y=Bc.getCurrentScope(),b=y&&y.getUser();if(a=qMe({colorScheme:r.colorScheme,showBranding:r.showBranding,showName:r.showName||r.isNameRequired,showEmail:r.showEmail||r.isEmailRequired,isNameRequired:r.isNameRequired,isEmailRequired:r.isEmailRequired,formTitle:r.formTitle,cancelButtonLabel:r.cancelButtonLabel,submitButtonLabel:r.submitButtonLabel,emailLabel:r.emailLabel,emailPlaceholder:r.emailPlaceholder,messageLabel:r.messageLabel,messagePlaceholder:r.messagePlaceholder,nameLabel:r.nameLabel,namePlaceholder:r.namePlaceholder,isRequiredLabel:r.isRequiredLabel,defaultName:h&&b&&b[h.name]||"",defaultEmail:h&&b&&b[h.email]||"",onClosed:()=>{c(),i=!1,r.onFormClose&&r.onFormClose()},onCancel:()=>{m(),c()},onSubmit:u}),!a.el)throw new Error("Unable to open Feedback dialog");t.appendChild(a.el),f(),r.onFormOpen&&r.onFormOpen(),l()}catch(h){xo.logger.error(h)}}function m(){a&&(a.close(),i=!1,r.onFormClose&&r.onFormClose())}function g(){if(a){m();let h=a.el;h&&h.remove(),a=void 0}}function v(){i||p(),f()}return n?n.addEventListener("click",v):e&&(o=DMe({buttonLabel:r.buttonLabel,onClick:v}),o.el&&t.appendChild(o.el)),{get actor(){return o},get dialog(){return a},showActor:c,hideActor:f,removeActor:d,openDialog:p,closeDialog:m,removeDialog:g}}var Kw=Uc.document,UMe=t=>new zy(t),zy=class t{static __initStatic(){this.id="Feedback"}constructor({autoInject:e=!0,id:r="sentry-feedback",isEmailRequired:n=!1,isNameRequired:o=!1,showBranding:a=!0,showEmail:i=!0,showName:s=!0,useSentryUser:u={email:"email",name:"username"},themeDark:l,themeLight:c,colorScheme:f="system",buttonLabel:d=dMe,cancelButtonLabel:p=fMe,submitButtonLabel:m=pMe,formTitle:g=mMe,emailPlaceholder:v=hMe,emailLabel:h=gMe,messagePlaceholder:y=vMe,messageLabel:b=yMe,namePlaceholder:E=_Me,nameLabel:w=bMe,isRequiredLabel:S=SMe,successMessageText:C=EMe,onFormClose:P,onFormOpen:k,onSubmitError:O,onSubmitSuccess:F}={}){this.name=t.id,this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1,this.options={autoInject:e,showBranding:a,id:r,isEmailRequired:n,isNameRequired:o,showEmail:i,showName:s,useSentryUser:u,colorScheme:f,themeDark:{...UY.dark,...l},themeLight:{...UY.light,...c},buttonLabel:d,cancelButtonLabel:p,submitButtonLabel:m,formTitle:g,emailLabel:h,emailPlaceholder:v,messageLabel:b,messagePlaceholder:y,nameLabel:w,namePlaceholder:E,isRequiredLabel:S,successMessageText:C,onFormClose:P,onFormOpen:k,onSubmitError:O,onSubmitSuccess:F}}setupOnce(){if(xo.isBrowser())try{this._cleanupWidgetIfExists();let{autoInject:e}=this.options;if(!e)return;this._createWidget(this.options)}catch(e){Lc&&xo.logger.error(e)}}openDialog(){this._widget||this._createWidget({...this.options,shouldCreateActor:!1}),this._widget&&this._widget.openDialog()}closeDialog(){this._widget&&this._widget.closeDialog()}attachTo(e,r){try{let n=zY(this.options,r||{});return this._ensureShadowHost(n,({shadow:o})=>{let a=typeof e=="string"?Kw.querySelector(e):typeof e.addEventListener=="function"?e:null;if(!a)return Lc&&xo.logger.error("[Feedback] Unable to attach to target element"),null;let i=HY({shadow:o,options:n,attachTo:a});return this._widgets.add(i),this._widget||(this._widget=i),i})}catch(n){return Lc&&xo.logger.error(n),null}}createWidget(e){try{return this._createWidget(zY(this.options,e||{}))}catch(r){return Lc&&xo.logger.error(r),null}}removeWidget(e){if(!e)return!1;try{if(this._widgets.has(e))return e.removeActor(),e.removeDialog(),this._widgets.delete(e),this._widget===e&&(this._widget=null),!0}catch(r){Lc&&xo.logger.error(r)}return!1}getWidget(){return this._widget}remove(){this._host&&this._host.remove(),this._initialize()}_initialize(){this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1}_cleanupWidgetIfExists(){this._host&&this.remove();let e=Kw.querySelector(`#${this.options.id}`);e&&e.remove()}_createWidget(e){return this._ensureShadowHost(e,({shadow:r})=>{let n=HY({shadow:r,options:e});return!this._hasInsertedActorStyles&&n.actor&&(r.appendChild(xMe(Kw)),this._hasInsertedActorStyles=!0),this._widgets.add(n),this._widget||(this._widget=n),n})}_ensureShadowHost(e,r){let n=!1;if(!this._shadow||!this._host){let{id:a,colorScheme:i,themeLight:s,themeDark:u}=e,{shadow:l,host:c}=kMe({id:a,colorScheme:i,themeLight:s,themeDark:u});this._shadow=l,this._host=c,n=!0}this._host.dataset.sentryFeedbackColorscheme=e.colorScheme;let o=r({shadow:this._shadow,host:this._host});return n&&Kw.body.appendChild(this._host),o}};zy.__initStatic();Wy.Feedback=zy;Wy.feedbackIntegration=UMe;Wy.sendFeedback=KY});var QY=_(Yw=>{"use strict";Object.defineProperty(Yw,"__esModule",{value:!0});var zc=Ze(),Wc=se(),XY="CaptureConsole",zMe=(t={})=>{let e=t.levels||Wc.CONSOLE_LEVELS;return{name:XY,setupOnce(){},setup(r){"console"in Wc.GLOBAL_OBJ&&Wc.addConsoleInstrumentationHandler(({args:n,level:o})=>{zc.getClient()!==r||!e.includes(o)||$Me(n,o)})}}},ZY=zc.defineIntegration(zMe),WMe=zc.convertIntegrationFnToClass(XY,ZY);function $Me(t,e){let r={level:Wc.severityLevelFromString(e),extra:{arguments:t}};zc.withScope(n=>{if(n.addEventProcessor(i=>(i.logger="console",Wc.addExceptionMechanism(i,{handled:!1,type:"console"}),i)),e==="assert"&&t[0]===!1){let i=`Assertion failed: ${Wc.safeJoin(t.slice(1)," ")||"console.assert"}`;n.setExtra("arguments",t.slice(1)),zc.captureMessage(i,r);return}let o=t.find(i=>i instanceof Error);if(e==="error"&&o){zc.captureException(o,r);return}let a=Wc.safeJoin(t," ");zc.captureMessage(a,r)})}Yw.CaptureConsole=WMe;Yw.captureConsoleIntegration=ZY});var nJ=_(Jw=>{"use strict";Object.defineProperty(Jw,"__esModule",{value:!0});var eJ=Ze(),HMe=se(),tJ="Debug",GMe=(t={})=>{let e={debugger:!1,stringify:!1,...t};return{name:tJ,setupOnce(){},setup(r){r.on&&r.on("beforeSendEvent",(n,o)=>{if(e.debugger)debugger;HMe.consoleSandbox(()=>{e.stringify?(console.log(JSON.stringify(n,null,2)),o&&Object.keys(o).length&&console.log(JSON.stringify(o,null,2))):(console.log(n),o&&Object.keys(o).length&&console.log(o))})})}}},rJ=eJ.defineIntegration(GMe),VMe=eJ.convertIntegrationFnToClass(tJ,rJ);Jw.Debug=VMe;Jw.debugIntegration=rJ});var $y=_(A2=>{"use strict";Object.defineProperty(A2,"__esModule",{value:!0});var KMe=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;A2.DEBUG_BUILD=KMe});var fJ=_(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0});var iJ=Ze(),YMe=se(),JMe=$y(),sJ="Dedupe",XMe=()=>{let t;return{name:sJ,setupOnce(){},processEvent(e){if(e.type)return e;try{if(lJ(e,t))return JMe.DEBUG_BUILD&&YMe.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(r){}return t=e}}},uJ=iJ.defineIntegration(XMe),ZMe=iJ.convertIntegrationFnToClass(sJ,uJ);function lJ(t,e){return e?!!(QMe(t,e)||e2e(t,e)):!1}function QMe(t,e){let r=t.message,n=e.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!dJ(t,e)||!cJ(t,e))}function e2e(t,e){let r=oJ(e),n=oJ(t);return!(!r||!n||r.type!==n.type||r.value!==n.value||!dJ(t,e)||!cJ(t,e))}function cJ(t,e){let r=aJ(t),n=aJ(e);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let o=0;o{"use strict";Object.defineProperty(Xw,"__esModule",{value:!0});var pJ=Ze(),ol=se(),t2e=$y(),mJ="ExtraErrorData",r2e=(t={})=>{let e=t.depth||3,r=t.captureErrorCause||!1;return{name:mJ,setupOnce(){},processEvent(n,o){return o2e(n,o,e,r)}}},hJ=pJ.defineIntegration(r2e),n2e=pJ.convertIntegrationFnToClass(mJ,hJ);function o2e(t,e={},r,n){if(!e.originalException||!ol.isError(e.originalException))return t;let o=e.originalException.name||e.originalException.constructor.name,a=a2e(e.originalException,n);if(a){let i={...t.contexts},s=ol.normalize(a,r);return ol.isPlainObject(s)&&(ol.addNonEnumerableProperty(s,"__sentry_skip_normalization__",!0),i[o]=s),{...t,contexts:i}}return t}function a2e(t,e){try{let r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],n={};for(let o of Object.keys(t)){if(r.indexOf(o)!==-1)continue;let a=t[o];n[o]=ol.isError(a)?a.toString():a}if(e&&t.cause!==void 0&&(n.cause=ol.isError(t.cause)?t.cause.toString():t.cause),typeof t.toJSON=="function"){let o=t.toJSON();for(let a of Object.keys(o)){let i=o[a];n[a]=ol.isError(i)?i.toString():i}}return n}catch(r){t2e.DEBUG_BUILD&&ol.logger.error("Unable to extract extra data from the Error object:",r)}return null}Xw.ExtraErrorData=n2e;Xw.extraErrorDataIntegration=hJ});var yJ=_((vJ,M2)=>{"use strict";(function(t){if(typeof vJ=="object"&&typeof M2!="undefined")M2.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e=this,e.localforage=t()}})(function(){var t,e,r;return function n(o,a,i){function s(c,f){if(!a[c]){if(!o[c]){var d=typeof Th=="function"&&Th;if(!f&&d)return d(c,!0);if(u)return u(c,!0);var p=new Error("Cannot find module '"+c+"'");throw p.code="MODULE_NOT_FOUND",p}var m=a[c]={exports:{}};o[c][0].call(m.exports,function(g){var v=o[c][1][g];return s(v||g)},m,m.exports,n,o,a,i)}return a[c].exports}for(var u=typeof Th=="function"&&Th,l=0;l=43)}}).catch(function(){return!1})}function k(T){return typeof y=="boolean"?d.resolve(y):P(T).then(function(A){return y=A,y})}function O(T){var A=b[T.name],x={};x.promise=new d(function(M,R){x.resolve=M,x.reject=R}),A.deferredOperations.push(x),A.dbReady?A.dbReady=A.dbReady.then(function(){return x.promise}):A.dbReady=x.promise}function F(T){var A=b[T.name],x=A.deferredOperations.pop();if(x)return x.resolve(),x.promise}function U(T,A){var x=b[T.name],M=x.deferredOperations.pop();if(M)return M.reject(A),M.promise}function J(T,A){return new d(function(x,M){if(b[T.name]=b[T.name]||ie(),T.db)if(A)O(T),T.db.close();else return x(T.db);var R=[T.name];A&&R.push(T.version);var I=l.open.apply(l,R);A&&(I.onupgradeneeded=function(D){var W=I.result;try{W.createObjectStore(T.storeName),D.oldVersion<=1&&W.createObjectStore(h)}catch(oe){if(oe.name==="ConstraintError")console.warn('The database "'+T.name+'" has been upgraded from version '+D.oldVersion+" to version "+D.newVersion+', but the storage "'+T.storeName+'" already exists.');else throw oe}}),I.onerror=function(D){D.preventDefault(),M(I.error)},I.onsuccess=function(){var D=I.result;D.onversionchange=function(W){W.target.close()},x(D),F(T)}})}function K(T){return J(T,!1)}function Z(T){return J(T,!0)}function G(T,A){if(!T.db)return!0;var x=!T.db.objectStoreNames.contains(T.storeName),M=T.versionT.db.version;if(M&&(T.version!==A&&console.warn('The database "'+T.name+`" can't be downgraded from version `+T.db.version+" to version "+T.version+"."),T.version=T.db.version),R||x){if(x){var I=T.db.version+1;I>T.version&&(T.version=I)}return!0}return!1}function Q(T){return new d(function(A,x){var M=new FileReader;M.onerror=x,M.onloadend=function(R){var I=btoa(R.target.result||"");A({__local_forage_encoded_blob:!0,data:I,type:T.type})},M.readAsBinaryString(T)})}function N(T){var A=C(atob(T.data));return f([A],{type:T.type})}function j(T){return T&&T.__local_forage_encoded_blob}function V(T){var A=this,x=A._initReady().then(function(){var M=b[A._dbInfo.name];if(M&&M.dbReady)return M.dbReady});return m(x,T,T),x}function Y(T){O(T);for(var A=b[T.name],x=A.forages,M=0;M0&&(!T.db||I.name==="InvalidStateError"||I.name==="NotFoundError"))return d.resolve().then(function(){if(!T.db||I.name==="NotFoundError"&&!T.db.objectStoreNames.contains(T.storeName)&&T.version<=T.db.version)return T.db&&(T.version=T.db.version+1),Z(T)}).then(function(){return Y(T).then(function(){X(T,A,x,M-1)})}).catch(x);x(I)}}function ie(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function de(T){var A=this,x={db:null};if(T)for(var M in T)x[M]=T[M];var R=b[x.name];R||(R=ie(),b[x.name]=R),R.forages.push(A),A._initReady||(A._initReady=A.ready,A.ready=V);var I=[];function D(){return d.resolve()}for(var W=0;W>4,ne[R++]=(D&15)<<4|W>>2,ne[R++]=(W&3)<<6|oe&63;return ae}function Pe(T){var A=new Uint8Array(T),x="",M;for(M=0;M>2],x+=qe[(A[M]&3)<<4|A[M+1]>>4],x+=qe[(A[M+1]&15)<<2|A[M+2]>>6],x+=qe[A[M+2]&63];return A.length%3===2?x=x.substring(0,x.length-1)+"=":A.length%3===1&&(x=x.substring(0,x.length-2)+"=="),x}function ye(T,A){var x="";if(T&&(x=Pt.call(T)),T&&(x==="[object ArrayBuffer]"||T.buffer&&Pt.call(T.buffer)==="[object ArrayBuffer]")){var M,R=he;T instanceof ArrayBuffer?(M=T,R+=Ie):(M=T.buffer,x==="[object Int8Array]"?R+=ue:x==="[object Uint8Array]"?R+=Be:x==="[object Uint8ClampedArray]"?R+=kt:x==="[object Int16Array]"?R+=ur:x==="[object Uint16Array]"?R+=Xe:x==="[object Int32Array]"?R+=dt:x==="[object Uint32Array]"?R+=it:x==="[object Float32Array]"?R+=kr:x==="[object Float64Array]"?R+=Yt:A(new Error("Failed to get type for BinaryArray"))),A(R+Pe(M))}else if(x==="[object Blob]"){var I=new FileReader;I.onload=function(){var D=nt+T.type+"~"+Pe(this.result);A(he+Fe+D)},I.readAsArrayBuffer(T)}else try{A(JSON.stringify(T))}catch(D){console.error("Couldn't convert value into a JSON string: ",T),A(null,D)}}function H(T){if(T.substring(0,Ue)!==he)return JSON.parse(T);var A=T.substring(et),x=T.substring(Ue,et),M;if(x===Fe&&Qe.test(A)){var R=A.match(Qe);M=R[1],A=A.substring(R[0].length)}var I=Je(A);switch(x){case Ie:return I;case Fe:return f([I],{type:M});case ue:return new Int8Array(I);case Be:return new Uint8Array(I);case kt:return new Uint8ClampedArray(I);case ur:return new Int16Array(I);case Xe:return new Uint16Array(I);case dt:return new Int32Array(I);case it:return new Uint32Array(I);case kr:return new Float32Array(I);case Yt:return new Float64Array(I);default:throw new Error("Unkown type: "+x)}}var Re={serialize:ye,deserialize:H,stringToBuffer:Je,bufferToString:Pe};function De(T,A,x,M){T.executeSql("CREATE TABLE IF NOT EXISTS "+A.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],x,M)}function Ot(T){var A=this,x={db:null};if(T)for(var M in T)x[M]=typeof T[M]!="string"?T[M].toString():T[M];var R=new d(function(I,D){try{x.db=openDatabase(x.name,String(x.version),x.description,x.size)}catch(W){return D(W)}x.db.transaction(function(W){De(W,x,function(){A._dbInfo=x,I()},function(oe,ae){D(ae)})},D)});return x.serializer=Re,R}function zt(T,A,x,M,R,I){T.executeSql(x,M,R,function(D,W){W.code===W.SYNTAX_ERR?D.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[A.storeName],function(oe,ae){ae.rows.length?I(oe,W):De(oe,A,function(){oe.executeSql(x,M,R,I)},I)},I):I(D,W)},I)}function Sr(T,A){var x=this;T=g(T);var M=new d(function(R,I){x.ready().then(function(){var D=x._dbInfo;D.db.transaction(function(W){zt(W,D,"SELECT * FROM "+D.storeName+" WHERE key = ? LIMIT 1",[T],function(oe,ae){var ne=ae.rows.length?ae.rows.item(0).value:null;ne&&(ne=D.serializer.deserialize(ne)),R(ne)},function(oe,ae){I(ae)})})}).catch(I)});return p(M,A),M}function St(T,A){var x=this,M=new d(function(R,I){x.ready().then(function(){var D=x._dbInfo;D.db.transaction(function(W){zt(W,D,"SELECT * FROM "+D.storeName,[],function(oe,ae){for(var ne=ae.rows,Ee=ne.length,xe=0;xe0){D(zn.apply(R,[T,oe,x,M-1]));return}W(xe)}})})}).catch(W)});return p(I,x),I}function Nl(T,A,x){return zn.apply(this,[T,A,x,1])}function Q_(T,A){var x=this;T=g(T);var M=new d(function(R,I){x.ready().then(function(){var D=x._dbInfo;D.db.transaction(function(W){zt(W,D,"DELETE FROM "+D.storeName+" WHERE key = ?",[T],function(){R()},function(oe,ae){I(ae)})})}).catch(I)});return p(M,A),M}function Al(T){var A=this,x=new d(function(M,R){A.ready().then(function(){var I=A._dbInfo;I.db.transaction(function(D){zt(D,I,"DELETE FROM "+I.storeName,[],function(){M()},function(W,oe){R(oe)})})}).catch(R)});return p(x,T),x}function Ui(T){var A=this,x=new d(function(M,R){A.ready().then(function(){var I=A._dbInfo;I.db.transaction(function(D){zt(D,I,"SELECT COUNT(key) as c FROM "+I.storeName,[],function(W,oe){var ae=oe.rows.item(0).c;M(ae)},function(W,oe){R(oe)})})}).catch(R)});return p(x,T),x}function eb(T,A){var x=this,M=new d(function(R,I){x.ready().then(function(){var D=x._dbInfo;D.db.transaction(function(W){zt(W,D,"SELECT key FROM "+D.storeName+" WHERE id = ? LIMIT 1",[T+1],function(oe,ae){var ne=ae.rows.length?ae.rows.item(0).key:null;R(ne)},function(oe,ae){I(ae)})})}).catch(I)});return p(M,A),M}function Ml(T){var A=this,x=new d(function(M,R){A.ready().then(function(){var I=A._dbInfo;I.db.transaction(function(D){zt(D,I,"SELECT key FROM "+I.storeName,[],function(W,oe){for(var ae=[],ne=0;ne '__WebKitDatabaseInfoTable__'",[],function(R,I){for(var D=[],W=0;W0}function vh(T){var A=this,x={};if(T)for(var M in T)x[M]=T[M];return x.keyPrefix=Pr(T,A._defaultConfig),Xs()?(A._dbInfo=x,x.serializer=Re,d.resolve()):d.reject()}function fa(T){var A=this,x=A.ready().then(function(){for(var M=A._dbInfo.keyPrefix,R=localStorage.length-1;R>=0;R--){var I=localStorage.key(R);I.indexOf(M)===0&&localStorage.removeItem(I)}});return p(x,T),x}function Wn(T,A){var x=this;T=g(T);var M=x.ready().then(function(){var R=x._dbInfo,I=localStorage.getItem(R.keyPrefix+T);return I&&(I=R.serializer.deserialize(I)),I});return p(M,A),M}function Fd(T,A){var x=this,M=x.ready().then(function(){for(var R=x._dbInfo,I=R.keyPrefix,D=I.length,W=localStorage.length,oe=1,ae=0;ae=0;D--){var W=localStorage.key(D);W.indexOf(I)===0&&localStorage.removeItem(W)}}):R=d.reject("Invalid arguments"),p(R,A),R}var yh={_driver:"localStorageWrapper",_initStorage:vh,_support:Mr(),iterate:Fd,getItem:Wn,setItem:Qs,removeItem:Wi,clear:fa,length:Zs,key:qd,keys:uo,dropInstance:Wt},jd=function(A,x){return A===x||typeof A=="number"&&typeof x=="number"&&isNaN(A)&&isNaN(x)},Ld=function(A,x){for(var M=A.length,R=0;R{"use strict";Object.defineProperty(F2,"__esModule",{value:!0});var Si=se(),i2e=yJ(),$c=$y(),al=Si.GLOBAL_OBJ,Zw=class t{static __initStatic(){this.id="Offline"}constructor(e={}){this.name=t.id,this.maxStoredEvents=e.maxStoredEvents||30,this.offlineEventStore=i2e.createInstance({name:"sentry/offlineEventStore"})}setupOnce(e,r){this.hub=r(),"addEventListener"in al&&al.addEventListener("online",()=>{this._sendEvents().catch(()=>{$c.DEBUG_BUILD&&Si.logger.warn("could not send cached events")})});let n=o=>this.hub&&this.hub.getIntegration(t)&&"navigator"in al&&"onLine"in al.navigator&&!al.navigator.onLine?($c.DEBUG_BUILD&&Si.logger.log("Event dropped due to being a offline - caching instead"),this._cacheEvent(o).then(a=>this._enforceMaxEvents()).catch(a=>{$c.DEBUG_BUILD&&Si.logger.warn("could not cache event while offline")}),null):o;n.id=this.name,e(n),"navigator"in al&&"onLine"in al.navigator&&al.navigator.onLine&&this._sendEvents().catch(()=>{$c.DEBUG_BUILD&&Si.logger.warn("could not send cached events")})}async _cacheEvent(e){return this.offlineEventStore.setItem(Si.uuid4(),Si.normalize(e))}async _enforceMaxEvents(){let e=[];return this.offlineEventStore.iterate((r,n,o)=>{e.push({cacheKey:n,event:r})}).then(()=>this._purgeEvents(e.sort((r,n)=>(n.event.timestamp||0)-(r.event.timestamp||0)).slice(this.maxStoredEventsr.cacheKey))).catch(r=>{$c.DEBUG_BUILD&&Si.logger.warn("could not enforce max events")})}async _purgeEvent(e){return this.offlineEventStore.removeItem(e)}async _purgeEvents(e){return Promise.all(e.map(r=>this._purgeEvent(r))).then()}async _sendEvents(){return this.offlineEventStore.iterate((e,r,n)=>{this.hub?(this.hub.captureEvent(e),this._purgeEvent(r).catch(o=>{$c.DEBUG_BUILD&&Si.logger.warn("could not purge event from cache")})):$c.DEBUG_BUILD&&Si.logger.warn("no hub found - could not send cached event")})}};Zw.__initStatic();F2.Offline=Zw});var wJ=_(Qw=>{"use strict";Object.defineProperty(Qw,"__esModule",{value:!0});var Gy=Ze(),SJ=se(),s2e=SJ.GLOBAL_OBJ,EJ="ReportingObserver",bJ=new WeakMap,u2e=(t={})=>{let e=t.types||["crash","deprecation","intervention"];function r(n){if(bJ.has(Gy.getClient()))for(let o of n)Gy.withScope(a=>{a.setExtra("url",o.url);let i=`ReportingObserver [${o.type}]`,s="No details available";if(o.body){let u={};for(let l in o.body)u[l]=o.body[l];if(a.setExtra("body",u),o.type==="crash"){let l=o.body;s=[l.crashId||"",l.reason||""].join(" ").trim()||s}else s=o.body.message||s}Gy.captureMessage(`${i}: ${s}`)})}return{name:EJ,setupOnce(){if(!SJ.supportsReportingObserver())return;new s2e.ReportingObserver(r,{buffered:!0,types:e}).observe()},setup(n){bJ.set(n,!0)}}},TJ=Gy.defineIntegration(u2e),l2e=Gy.convertIntegrationFnToClass(EJ,TJ);Qw.ReportingObserver=l2e;Qw.reportingObserverIntegration=TJ});var PJ=_(ex=>{"use strict";Object.defineProperty(ex,"__esModule",{value:!0});var CJ=Ze(),xJ=se(),IJ="RewriteFrames",c2e=(t={})=>{let e=t.root,r=t.prefix||"app:///",n=t.iteratee||(i=>{if(!i.filename)return i;let s=/^[a-zA-Z]:\\/.test(i.filename)||i.filename.includes("\\")&&!i.filename.includes("/"),u=/^\//.test(i.filename);if(s||u){let l=s?i.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):i.filename,c=e?xJ.relative(e,l):xJ.basename(l);i.filename=`${r}${c}`}return i});function o(i){try{return{...i,exception:{...i.exception,values:i.exception.values.map(s=>({...s,...s.stacktrace&&{stacktrace:a(s.stacktrace)}}))}}}catch(s){return i}}function a(i){return{...i,frames:i&&i.frames&&i.frames.map(s=>n(s))}}return{name:IJ,setupOnce(){},processEvent(i){let s=i;return i.exception&&Array.isArray(i.exception.values)&&(s=o(s)),s}}},kJ=CJ.defineIntegration(c2e),d2e=CJ.convertIntegrationFnToClass(IJ,kJ);ex.RewriteFrames=d2e;ex.rewriteFramesIntegration=kJ});var NJ=_(tx=>{"use strict";Object.defineProperty(tx,"__esModule",{value:!0});var OJ=Ze(),RJ="SessionTiming",f2e=()=>{let t=Date.now();return{name:RJ,setupOnce(){},processEvent(e){let r=Date.now();return{...e,extra:{...e.extra,"session:start":t,"session:duration":r-t,"session:end":r}}}}},DJ=OJ.defineIntegration(f2e),p2e=OJ.convertIntegrationFnToClass(RJ,DJ);tx.SessionTiming=p2e;tx.sessionTimingIntegration=DJ});var MJ=_(q2=>{"use strict";Object.defineProperty(q2,"__esModule",{value:!0});var m2e=Ze(),AJ="Transaction",h2e=()=>({name:AJ,setupOnce(){},processEvent(t){let e=v2e(t);for(let r=e.length-1;r>=0;r--){let n=e[r];if(n.in_app===!0){t.transaction=y2e(n);break}}return t}}),g2e=m2e.convertIntegrationFnToClass(AJ,h2e);function v2e(t){let e=t.exception&&t.exception.values&&t.exception.values[0];return e&&e.stacktrace&&e.stacktrace.frames||[]}function y2e(t){return t.module||t.function?`${t.module||"?"}/${t.function||"?"}`:""}q2.Transaction=g2e});var zJ=_(nx=>{"use strict";Object.defineProperty(nx,"__esModule",{value:!0});var As=Ze(),Ei=se(),rx=$y(),FJ="HttpClient",_2e=(t={})=>{let e={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...t};return{name:FJ,setupOnce(){},setup(r){k2e(r,e),P2e(r,e)}}},qJ=As.defineIntegration(_2e),b2e=As.convertIntegrationFnToClass(FJ,qJ);function S2e(t,e,r,n){if(LJ(t,r.status,r.url)){let o=O2e(e,n),a,i,s,u;UJ()&&([{headers:a,cookies:s},{headers:i,cookies:u}]=[{cookieHeader:"Cookie",obj:o},{cookieHeader:"Set-Cookie",obj:r}].map(({cookieHeader:c,obj:f})=>{let d=w2e(f.headers),p;try{let m=d[c]||d[c.toLowerCase()]||void 0;m&&(p=jJ(m))}catch(m){rx.DEBUG_BUILD&&Ei.logger.log(`Could not extract cookies from header ${c}`)}return{headers:d,cookies:p}}));let l=BJ({url:o.url,method:o.method,status:r.status,requestHeaders:a,responseHeaders:i,requestCookies:s,responseCookies:u});As.captureEvent(l)}}function E2e(t,e,r,n){if(LJ(t,e.status,e.responseURL)){let o,a,i;if(UJ()){try{let u=e.getResponseHeader("Set-Cookie")||e.getResponseHeader("set-cookie")||void 0;u&&(a=jJ(u))}catch(u){rx.DEBUG_BUILD&&Ei.logger.log("Could not extract cookies from response headers")}try{i=x2e(e)}catch(u){rx.DEBUG_BUILD&&Ei.logger.log("Could not extract headers from response")}o=n}let s=BJ({url:e.responseURL,method:r,status:e.status,requestHeaders:o,responseHeaders:i,responseCookies:a});As.captureEvent(s)}}function T2e(t){if(t){let e=t["Content-Length"]||t["content-length"];if(e)return parseInt(e,10)}}function jJ(t){return t.split("; ").reduce((e,r)=>{let[n,o]=r.split("=");return e[n]=o,e},{})}function w2e(t){let e={};return t.forEach((r,n)=>{e[n]=r}),e}function x2e(t){let e=t.getAllResponseHeaders();return e?e.split(`\r + `),o.append(a),r.append(o),{get el(){return r}}}function qMe({formTitle:t,showBranding:e,showName:r,showEmail:n,isNameRequired:o,isEmailRequired:a,colorScheme:i,defaultName:s,defaultEmail:u,onClosed:l,onCancel:c,onSubmit:p,...d}){let f=null;function m(){g(),l&&l()}function g(){f&&(f.open=!1)}function v(){f&&(f.open=!0)}function h(){return f&&f.open===!0||!1}let{el:y,showError:b,hideError:E}=AMe({showEmail:n,showName:r,isEmailRequired:a,isNameRequired:o,defaultName:s,defaultEmail:u,onSubmit:p,onCancel:c,...d});return f=nr("dialog",{className:"dialog",open:!0,onClick:m},nr("div",{className:"dialog__content",onClick:w=>{w.stopPropagation()}},nr("h2",{className:"dialog__header"},t,e&&nr("a",{className:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer"},FMe({colorScheme:i}).el)),y)),{get el(){return f},showError:b,hideError:E,open:v,close:g,checkIsOpen:h}}var Vw=16,$Y=17,jMe="http://www.w3.org/2000/svg";function LMe(){let t=u=>Uc.document.createElementNS(jMe,u),e=Co(t("svg"),{class:"success-icon",width:`${Vw}`,height:`${$Y}`,viewBox:`0 0 ${Vw} ${$Y}`,fill:"none"}),r=Co(t("g"),{clipPath:"url(#clip0_57_156)"}),n=Co(t("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),o=Co(t("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});e.appendChild(r).append(o,n);let a=t("defs"),i=Co(t("clipPath"),{id:"clip0_57_156"}),s=Co(t("rect"),{width:`${Vw}`,height:`${Vw}`,fill:"white",transform:"translate(0 0.5)"});return i.appendChild(s),a.appendChild(i),e.appendChild(a).appendChild(i).appendChild(s),{get el(){return e}}}function BMe({message:t,onRemove:e}){function r(){n&&(n.remove(),e&&e())}let n=nr("div",{className:"success-message",onClick:r},LMe().el,t);return{el:n,remove:r}}function HY({shadow:t,options:{shouldCreateActor:e=!0,...r},attachTo:n}){let o,a,i=!1;function s(){if(t)try{let h=BMe({message:r.successMessageText,onRemove:()=>{y&&clearTimeout(y),c()}});if(!h.el)throw new Error("Unable to show success message");t.appendChild(h.el);let y=setTimeout(()=>{h&&h.remove()},5e3)}catch(h){xo.logger.error(h)}}async function u(h){if(!a)return;let y=[];if(r.isNameRequired&&!h.name&&y.push(r.nameLabel),r.isEmailRequired&&!h.email&&y.push(r.emailLabel),h.message||y.push(r.messageLabel),y.length>0){a.showError(`Please enter in the following required fields: ${y.join(", ")}`);return}if(!await PMe(a,h)){r.onSubmitError&&r.onSubmitError();return}g(),s(),r.onSubmitSuccess&&r.onSubmitSuccess()}function l(){let h=Bc.getClient(),y=h&&h.getIntegrationByName&&h.getIntegrationByName("Replay");y&&y.flush().catch(b=>{Lc&&xo.logger.error(b)})}function c(){o&&o.show()}function p(){o&&o.hide()}function d(){o&&o.el&&o.el.remove()}function f(){try{if(a){a.open(),i=!0,r.onFormOpen&&r.onFormOpen(),l();return}let h=r.useSentryUser,y=Bc.getCurrentScope(),b=y&&y.getUser();if(a=qMe({colorScheme:r.colorScheme,showBranding:r.showBranding,showName:r.showName||r.isNameRequired,showEmail:r.showEmail||r.isEmailRequired,isNameRequired:r.isNameRequired,isEmailRequired:r.isEmailRequired,formTitle:r.formTitle,cancelButtonLabel:r.cancelButtonLabel,submitButtonLabel:r.submitButtonLabel,emailLabel:r.emailLabel,emailPlaceholder:r.emailPlaceholder,messageLabel:r.messageLabel,messagePlaceholder:r.messagePlaceholder,nameLabel:r.nameLabel,namePlaceholder:r.namePlaceholder,isRequiredLabel:r.isRequiredLabel,defaultName:h&&b&&b[h.name]||"",defaultEmail:h&&b&&b[h.email]||"",onClosed:()=>{c(),i=!1,r.onFormClose&&r.onFormClose()},onCancel:()=>{m(),c()},onSubmit:u}),!a.el)throw new Error("Unable to open Feedback dialog");t.appendChild(a.el),p(),r.onFormOpen&&r.onFormOpen(),l()}catch(h){xo.logger.error(h)}}function m(){a&&(a.close(),i=!1,r.onFormClose&&r.onFormClose())}function g(){if(a){m();let h=a.el;h&&h.remove(),a=void 0}}function v(){i||f(),p()}return n?n.addEventListener("click",v):e&&(o=DMe({buttonLabel:r.buttonLabel,onClick:v}),o.el&&t.appendChild(o.el)),{get actor(){return o},get dialog(){return a},showActor:c,hideActor:p,removeActor:d,openDialog:f,closeDialog:m,removeDialog:g}}var Kw=Uc.document,UMe=t=>new zy(t),zy=class t{static __initStatic(){this.id="Feedback"}constructor({autoInject:e=!0,id:r="sentry-feedback",isEmailRequired:n=!1,isNameRequired:o=!1,showBranding:a=!0,showEmail:i=!0,showName:s=!0,useSentryUser:u={email:"email",name:"username"},themeDark:l,themeLight:c,colorScheme:p="system",buttonLabel:d=dMe,cancelButtonLabel:f=pMe,submitButtonLabel:m=fMe,formTitle:g=mMe,emailPlaceholder:v=hMe,emailLabel:h=gMe,messagePlaceholder:y=vMe,messageLabel:b=yMe,namePlaceholder:E=_Me,nameLabel:w=bMe,isRequiredLabel:S=SMe,successMessageText:C=EMe,onFormClose:P,onFormOpen:k,onSubmitError:O,onSubmitSuccess:F}={}){this.name=t.id,this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1,this.options={autoInject:e,showBranding:a,id:r,isEmailRequired:n,isNameRequired:o,showEmail:i,showName:s,useSentryUser:u,colorScheme:p,themeDark:{...UY.dark,...l},themeLight:{...UY.light,...c},buttonLabel:d,cancelButtonLabel:f,submitButtonLabel:m,formTitle:g,emailLabel:h,emailPlaceholder:v,messageLabel:b,messagePlaceholder:y,nameLabel:w,namePlaceholder:E,isRequiredLabel:S,successMessageText:C,onFormClose:P,onFormOpen:k,onSubmitError:O,onSubmitSuccess:F}}setupOnce(){if(xo.isBrowser())try{this._cleanupWidgetIfExists();let{autoInject:e}=this.options;if(!e)return;this._createWidget(this.options)}catch(e){Lc&&xo.logger.error(e)}}openDialog(){this._widget||this._createWidget({...this.options,shouldCreateActor:!1}),this._widget&&this._widget.openDialog()}closeDialog(){this._widget&&this._widget.closeDialog()}attachTo(e,r){try{let n=zY(this.options,r||{});return this._ensureShadowHost(n,({shadow:o})=>{let a=typeof e=="string"?Kw.querySelector(e):typeof e.addEventListener=="function"?e:null;if(!a)return Lc&&xo.logger.error("[Feedback] Unable to attach to target element"),null;let i=HY({shadow:o,options:n,attachTo:a});return this._widgets.add(i),this._widget||(this._widget=i),i})}catch(n){return Lc&&xo.logger.error(n),null}}createWidget(e){try{return this._createWidget(zY(this.options,e||{}))}catch(r){return Lc&&xo.logger.error(r),null}}removeWidget(e){if(!e)return!1;try{if(this._widgets.has(e))return e.removeActor(),e.removeDialog(),this._widgets.delete(e),this._widget===e&&(this._widget=null),!0}catch(r){Lc&&xo.logger.error(r)}return!1}getWidget(){return this._widget}remove(){this._host&&this._host.remove(),this._initialize()}_initialize(){this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1}_cleanupWidgetIfExists(){this._host&&this.remove();let e=Kw.querySelector(`#${this.options.id}`);e&&e.remove()}_createWidget(e){return this._ensureShadowHost(e,({shadow:r})=>{let n=HY({shadow:r,options:e});return!this._hasInsertedActorStyles&&n.actor&&(r.appendChild(xMe(Kw)),this._hasInsertedActorStyles=!0),this._widgets.add(n),this._widget||(this._widget=n),n})}_ensureShadowHost(e,r){let n=!1;if(!this._shadow||!this._host){let{id:a,colorScheme:i,themeLight:s,themeDark:u}=e,{shadow:l,host:c}=kMe({id:a,colorScheme:i,themeLight:s,themeDark:u});this._shadow=l,this._host=c,n=!0}this._host.dataset.sentryFeedbackColorscheme=e.colorScheme;let o=r({shadow:this._shadow,host:this._host});return n&&Kw.body.appendChild(this._host),o}};zy.__initStatic();Wy.Feedback=zy;Wy.feedbackIntegration=UMe;Wy.sendFeedback=KY});var QY=_(Yw=>{"use strict";Object.defineProperty(Yw,"__esModule",{value:!0});var zc=Ze(),Wc=se(),XY="CaptureConsole",zMe=(t={})=>{let e=t.levels||Wc.CONSOLE_LEVELS;return{name:XY,setupOnce(){},setup(r){"console"in Wc.GLOBAL_OBJ&&Wc.addConsoleInstrumentationHandler(({args:n,level:o})=>{zc.getClient()!==r||!e.includes(o)||$Me(n,o)})}}},ZY=zc.defineIntegration(zMe),WMe=zc.convertIntegrationFnToClass(XY,ZY);function $Me(t,e){let r={level:Wc.severityLevelFromString(e),extra:{arguments:t}};zc.withScope(n=>{if(n.addEventProcessor(i=>(i.logger="console",Wc.addExceptionMechanism(i,{handled:!1,type:"console"}),i)),e==="assert"&&t[0]===!1){let i=`Assertion failed: ${Wc.safeJoin(t.slice(1)," ")||"console.assert"}`;n.setExtra("arguments",t.slice(1)),zc.captureMessage(i,r);return}let o=t.find(i=>i instanceof Error);if(e==="error"&&o){zc.captureException(o,r);return}let a=Wc.safeJoin(t," ");zc.captureMessage(a,r)})}Yw.CaptureConsole=WMe;Yw.captureConsoleIntegration=ZY});var nJ=_(Jw=>{"use strict";Object.defineProperty(Jw,"__esModule",{value:!0});var eJ=Ze(),HMe=se(),tJ="Debug",GMe=(t={})=>{let e={debugger:!1,stringify:!1,...t};return{name:tJ,setupOnce(){},setup(r){r.on&&r.on("beforeSendEvent",(n,o)=>{if(e.debugger)debugger;HMe.consoleSandbox(()=>{e.stringify?(console.log(JSON.stringify(n,null,2)),o&&Object.keys(o).length&&console.log(JSON.stringify(o,null,2))):(console.log(n),o&&Object.keys(o).length&&console.log(o))})})}}},rJ=eJ.defineIntegration(GMe),VMe=eJ.convertIntegrationFnToClass(tJ,rJ);Jw.Debug=VMe;Jw.debugIntegration=rJ});var $y=_(A2=>{"use strict";Object.defineProperty(A2,"__esModule",{value:!0});var KMe=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;A2.DEBUG_BUILD=KMe});var pJ=_(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0});var iJ=Ze(),YMe=se(),JMe=$y(),sJ="Dedupe",XMe=()=>{let t;return{name:sJ,setupOnce(){},processEvent(e){if(e.type)return e;try{if(lJ(e,t))return JMe.DEBUG_BUILD&&YMe.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(r){}return t=e}}},uJ=iJ.defineIntegration(XMe),ZMe=iJ.convertIntegrationFnToClass(sJ,uJ);function lJ(t,e){return e?!!(QMe(t,e)||e2e(t,e)):!1}function QMe(t,e){let r=t.message,n=e.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!dJ(t,e)||!cJ(t,e))}function e2e(t,e){let r=oJ(e),n=oJ(t);return!(!r||!n||r.type!==n.type||r.value!==n.value||!dJ(t,e)||!cJ(t,e))}function cJ(t,e){let r=aJ(t),n=aJ(e);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let o=0;o{"use strict";Object.defineProperty(Xw,"__esModule",{value:!0});var fJ=Ze(),ol=se(),t2e=$y(),mJ="ExtraErrorData",r2e=(t={})=>{let e=t.depth||3,r=t.captureErrorCause||!1;return{name:mJ,setupOnce(){},processEvent(n,o){return o2e(n,o,e,r)}}},hJ=fJ.defineIntegration(r2e),n2e=fJ.convertIntegrationFnToClass(mJ,hJ);function o2e(t,e={},r,n){if(!e.originalException||!ol.isError(e.originalException))return t;let o=e.originalException.name||e.originalException.constructor.name,a=a2e(e.originalException,n);if(a){let i={...t.contexts},s=ol.normalize(a,r);return ol.isPlainObject(s)&&(ol.addNonEnumerableProperty(s,"__sentry_skip_normalization__",!0),i[o]=s),{...t,contexts:i}}return t}function a2e(t,e){try{let r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],n={};for(let o of Object.keys(t)){if(r.indexOf(o)!==-1)continue;let a=t[o];n[o]=ol.isError(a)?a.toString():a}if(e&&t.cause!==void 0&&(n.cause=ol.isError(t.cause)?t.cause.toString():t.cause),typeof t.toJSON=="function"){let o=t.toJSON();for(let a of Object.keys(o)){let i=o[a];n[a]=ol.isError(i)?i.toString():i}}return n}catch(r){t2e.DEBUG_BUILD&&ol.logger.error("Unable to extract extra data from the Error object:",r)}return null}Xw.ExtraErrorData=n2e;Xw.extraErrorDataIntegration=hJ});var yJ=_((vJ,M2)=>{"use strict";(function(t){if(typeof vJ=="object"&&typeof M2!="undefined")M2.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e=this,e.localforage=t()}})(function(){var t,e,r;return function n(o,a,i){function s(c,p){if(!a[c]){if(!o[c]){var d=typeof Th=="function"&&Th;if(!p&&d)return d(c,!0);if(u)return u(c,!0);var f=new Error("Cannot find module '"+c+"'");throw f.code="MODULE_NOT_FOUND",f}var m=a[c]={exports:{}};o[c][0].call(m.exports,function(g){var v=o[c][1][g];return s(v||g)},m,m.exports,n,o,a,i)}return a[c].exports}for(var u=typeof Th=="function"&&Th,l=0;l=43)}}).catch(function(){return!1})}function k(T){return typeof y=="boolean"?d.resolve(y):P(T).then(function(A){return y=A,y})}function O(T){var A=b[T.name],x={};x.promise=new d(function(M,R){x.resolve=M,x.reject=R}),A.deferredOperations.push(x),A.dbReady?A.dbReady=A.dbReady.then(function(){return x.promise}):A.dbReady=x.promise}function F(T){var A=b[T.name],x=A.deferredOperations.pop();if(x)return x.resolve(),x.promise}function U(T,A){var x=b[T.name],M=x.deferredOperations.pop();if(M)return M.reject(A),M.promise}function J(T,A){return new d(function(x,M){if(b[T.name]=b[T.name]||ie(),T.db)if(A)O(T),T.db.close();else return x(T.db);var R=[T.name];A&&R.push(T.version);var I=l.open.apply(l,R);A&&(I.onupgradeneeded=function(D){var W=I.result;try{W.createObjectStore(T.storeName),D.oldVersion<=1&&W.createObjectStore(h)}catch(oe){if(oe.name==="ConstraintError")console.warn('The database "'+T.name+'" has been upgraded from version '+D.oldVersion+" to version "+D.newVersion+', but the storage "'+T.storeName+'" already exists.');else throw oe}}),I.onerror=function(D){D.preventDefault(),M(I.error)},I.onsuccess=function(){var D=I.result;D.onversionchange=function(W){W.target.close()},x(D),F(T)}})}function K(T){return J(T,!1)}function Z(T){return J(T,!0)}function G(T,A){if(!T.db)return!0;var x=!T.db.objectStoreNames.contains(T.storeName),M=T.versionT.db.version;if(M&&(T.version!==A&&console.warn('The database "'+T.name+`" can't be downgraded from version `+T.db.version+" to version "+T.version+"."),T.version=T.db.version),R||x){if(x){var I=T.db.version+1;I>T.version&&(T.version=I)}return!0}return!1}function Q(T){return new d(function(A,x){var M=new FileReader;M.onerror=x,M.onloadend=function(R){var I=btoa(R.target.result||"");A({__local_forage_encoded_blob:!0,data:I,type:T.type})},M.readAsBinaryString(T)})}function N(T){var A=C(atob(T.data));return p([A],{type:T.type})}function j(T){return T&&T.__local_forage_encoded_blob}function V(T){var A=this,x=A._initReady().then(function(){var M=b[A._dbInfo.name];if(M&&M.dbReady)return M.dbReady});return m(x,T,T),x}function Y(T){O(T);for(var A=b[T.name],x=A.forages,M=0;M0&&(!T.db||I.name==="InvalidStateError"||I.name==="NotFoundError"))return d.resolve().then(function(){if(!T.db||I.name==="NotFoundError"&&!T.db.objectStoreNames.contains(T.storeName)&&T.version<=T.db.version)return T.db&&(T.version=T.db.version+1),Z(T)}).then(function(){return Y(T).then(function(){X(T,A,x,M-1)})}).catch(x);x(I)}}function ie(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function de(T){var A=this,x={db:null};if(T)for(var M in T)x[M]=T[M];var R=b[x.name];R||(R=ie(),b[x.name]=R),R.forages.push(A),A._initReady||(A._initReady=A.ready,A.ready=V);var I=[];function D(){return d.resolve()}for(var W=0;W>4,ne[R++]=(D&15)<<4|W>>2,ne[R++]=(W&3)<<6|oe&63;return ae}function Pe(T){var A=new Uint8Array(T),x="",M;for(M=0;M>2],x+=qe[(A[M]&3)<<4|A[M+1]>>4],x+=qe[(A[M+1]&15)<<2|A[M+2]>>6],x+=qe[A[M+2]&63];return A.length%3===2?x=x.substring(0,x.length-1)+"=":A.length%3===1&&(x=x.substring(0,x.length-2)+"=="),x}function ye(T,A){var x="";if(T&&(x=Pt.call(T)),T&&(x==="[object ArrayBuffer]"||T.buffer&&Pt.call(T.buffer)==="[object ArrayBuffer]")){var M,R=he;T instanceof ArrayBuffer?(M=T,R+=Ie):(M=T.buffer,x==="[object Int8Array]"?R+=ue:x==="[object Uint8Array]"?R+=Be:x==="[object Uint8ClampedArray]"?R+=kt:x==="[object Int16Array]"?R+=ur:x==="[object Uint16Array]"?R+=Xe:x==="[object Int32Array]"?R+=dt:x==="[object Uint32Array]"?R+=it:x==="[object Float32Array]"?R+=kr:x==="[object Float64Array]"?R+=Yt:A(new Error("Failed to get type for BinaryArray"))),A(R+Pe(M))}else if(x==="[object Blob]"){var I=new FileReader;I.onload=function(){var D=nt+T.type+"~"+Pe(this.result);A(he+Fe+D)},I.readAsArrayBuffer(T)}else try{A(JSON.stringify(T))}catch(D){console.error("Couldn't convert value into a JSON string: ",T),A(null,D)}}function H(T){if(T.substring(0,Ue)!==he)return JSON.parse(T);var A=T.substring(et),x=T.substring(Ue,et),M;if(x===Fe&&Qe.test(A)){var R=A.match(Qe);M=R[1],A=A.substring(R[0].length)}var I=Je(A);switch(x){case Ie:return I;case Fe:return p([I],{type:M});case ue:return new Int8Array(I);case Be:return new Uint8Array(I);case kt:return new Uint8ClampedArray(I);case ur:return new Int16Array(I);case Xe:return new Uint16Array(I);case dt:return new Int32Array(I);case it:return new Uint32Array(I);case kr:return new Float32Array(I);case Yt:return new Float64Array(I);default:throw new Error("Unkown type: "+x)}}var Re={serialize:ye,deserialize:H,stringToBuffer:Je,bufferToString:Pe};function De(T,A,x,M){T.executeSql("CREATE TABLE IF NOT EXISTS "+A.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],x,M)}function Ot(T){var A=this,x={db:null};if(T)for(var M in T)x[M]=typeof T[M]!="string"?T[M].toString():T[M];var R=new d(function(I,D){try{x.db=openDatabase(x.name,String(x.version),x.description,x.size)}catch(W){return D(W)}x.db.transaction(function(W){De(W,x,function(){A._dbInfo=x,I()},function(oe,ae){D(ae)})},D)});return x.serializer=Re,R}function zt(T,A,x,M,R,I){T.executeSql(x,M,R,function(D,W){W.code===W.SYNTAX_ERR?D.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[A.storeName],function(oe,ae){ae.rows.length?I(oe,W):De(oe,A,function(){oe.executeSql(x,M,R,I)},I)},I):I(D,W)},I)}function Sr(T,A){var x=this;T=g(T);var M=new d(function(R,I){x.ready().then(function(){var D=x._dbInfo;D.db.transaction(function(W){zt(W,D,"SELECT * FROM "+D.storeName+" WHERE key = ? LIMIT 1",[T],function(oe,ae){var ne=ae.rows.length?ae.rows.item(0).value:null;ne&&(ne=D.serializer.deserialize(ne)),R(ne)},function(oe,ae){I(ae)})})}).catch(I)});return f(M,A),M}function St(T,A){var x=this,M=new d(function(R,I){x.ready().then(function(){var D=x._dbInfo;D.db.transaction(function(W){zt(W,D,"SELECT * FROM "+D.storeName,[],function(oe,ae){for(var ne=ae.rows,Ee=ne.length,xe=0;xe0){D(zn.apply(R,[T,oe,x,M-1]));return}W(xe)}})})}).catch(W)});return f(I,x),I}function Nl(T,A,x){return zn.apply(this,[T,A,x,1])}function Q_(T,A){var x=this;T=g(T);var M=new d(function(R,I){x.ready().then(function(){var D=x._dbInfo;D.db.transaction(function(W){zt(W,D,"DELETE FROM "+D.storeName+" WHERE key = ?",[T],function(){R()},function(oe,ae){I(ae)})})}).catch(I)});return f(M,A),M}function Al(T){var A=this,x=new d(function(M,R){A.ready().then(function(){var I=A._dbInfo;I.db.transaction(function(D){zt(D,I,"DELETE FROM "+I.storeName,[],function(){M()},function(W,oe){R(oe)})})}).catch(R)});return f(x,T),x}function Ui(T){var A=this,x=new d(function(M,R){A.ready().then(function(){var I=A._dbInfo;I.db.transaction(function(D){zt(D,I,"SELECT COUNT(key) as c FROM "+I.storeName,[],function(W,oe){var ae=oe.rows.item(0).c;M(ae)},function(W,oe){R(oe)})})}).catch(R)});return f(x,T),x}function eb(T,A){var x=this,M=new d(function(R,I){x.ready().then(function(){var D=x._dbInfo;D.db.transaction(function(W){zt(W,D,"SELECT key FROM "+D.storeName+" WHERE id = ? LIMIT 1",[T+1],function(oe,ae){var ne=ae.rows.length?ae.rows.item(0).key:null;R(ne)},function(oe,ae){I(ae)})})}).catch(I)});return f(M,A),M}function Ml(T){var A=this,x=new d(function(M,R){A.ready().then(function(){var I=A._dbInfo;I.db.transaction(function(D){zt(D,I,"SELECT key FROM "+I.storeName,[],function(W,oe){for(var ae=[],ne=0;ne '__WebKitDatabaseInfoTable__'",[],function(R,I){for(var D=[],W=0;W0}function vh(T){var A=this,x={};if(T)for(var M in T)x[M]=T[M];return x.keyPrefix=Pr(T,A._defaultConfig),Xs()?(A._dbInfo=x,x.serializer=Re,d.resolve()):d.reject()}function pa(T){var A=this,x=A.ready().then(function(){for(var M=A._dbInfo.keyPrefix,R=localStorage.length-1;R>=0;R--){var I=localStorage.key(R);I.indexOf(M)===0&&localStorage.removeItem(I)}});return f(x,T),x}function Wn(T,A){var x=this;T=g(T);var M=x.ready().then(function(){var R=x._dbInfo,I=localStorage.getItem(R.keyPrefix+T);return I&&(I=R.serializer.deserialize(I)),I});return f(M,A),M}function Fd(T,A){var x=this,M=x.ready().then(function(){for(var R=x._dbInfo,I=R.keyPrefix,D=I.length,W=localStorage.length,oe=1,ae=0;ae=0;D--){var W=localStorage.key(D);W.indexOf(I)===0&&localStorage.removeItem(W)}}):R=d.reject("Invalid arguments"),f(R,A),R}var yh={_driver:"localStorageWrapper",_initStorage:vh,_support:Mr(),iterate:Fd,getItem:Wn,setItem:Qs,removeItem:Wi,clear:pa,length:Zs,key:qd,keys:uo,dropInstance:Wt},jd=function(A,x){return A===x||typeof A=="number"&&typeof x=="number"&&isNaN(A)&&isNaN(x)},Ld=function(A,x){for(var M=A.length,R=0;R{"use strict";Object.defineProperty(F2,"__esModule",{value:!0});var Si=se(),i2e=yJ(),$c=$y(),al=Si.GLOBAL_OBJ,Zw=class t{static __initStatic(){this.id="Offline"}constructor(e={}){this.name=t.id,this.maxStoredEvents=e.maxStoredEvents||30,this.offlineEventStore=i2e.createInstance({name:"sentry/offlineEventStore"})}setupOnce(e,r){this.hub=r(),"addEventListener"in al&&al.addEventListener("online",()=>{this._sendEvents().catch(()=>{$c.DEBUG_BUILD&&Si.logger.warn("could not send cached events")})});let n=o=>this.hub&&this.hub.getIntegration(t)&&"navigator"in al&&"onLine"in al.navigator&&!al.navigator.onLine?($c.DEBUG_BUILD&&Si.logger.log("Event dropped due to being a offline - caching instead"),this._cacheEvent(o).then(a=>this._enforceMaxEvents()).catch(a=>{$c.DEBUG_BUILD&&Si.logger.warn("could not cache event while offline")}),null):o;n.id=this.name,e(n),"navigator"in al&&"onLine"in al.navigator&&al.navigator.onLine&&this._sendEvents().catch(()=>{$c.DEBUG_BUILD&&Si.logger.warn("could not send cached events")})}async _cacheEvent(e){return this.offlineEventStore.setItem(Si.uuid4(),Si.normalize(e))}async _enforceMaxEvents(){let e=[];return this.offlineEventStore.iterate((r,n,o)=>{e.push({cacheKey:n,event:r})}).then(()=>this._purgeEvents(e.sort((r,n)=>(n.event.timestamp||0)-(r.event.timestamp||0)).slice(this.maxStoredEventsr.cacheKey))).catch(r=>{$c.DEBUG_BUILD&&Si.logger.warn("could not enforce max events")})}async _purgeEvent(e){return this.offlineEventStore.removeItem(e)}async _purgeEvents(e){return Promise.all(e.map(r=>this._purgeEvent(r))).then()}async _sendEvents(){return this.offlineEventStore.iterate((e,r,n)=>{this.hub?(this.hub.captureEvent(e),this._purgeEvent(r).catch(o=>{$c.DEBUG_BUILD&&Si.logger.warn("could not purge event from cache")})):$c.DEBUG_BUILD&&Si.logger.warn("no hub found - could not send cached event")})}};Zw.__initStatic();F2.Offline=Zw});var wJ=_(Qw=>{"use strict";Object.defineProperty(Qw,"__esModule",{value:!0});var Gy=Ze(),SJ=se(),s2e=SJ.GLOBAL_OBJ,EJ="ReportingObserver",bJ=new WeakMap,u2e=(t={})=>{let e=t.types||["crash","deprecation","intervention"];function r(n){if(bJ.has(Gy.getClient()))for(let o of n)Gy.withScope(a=>{a.setExtra("url",o.url);let i=`ReportingObserver [${o.type}]`,s="No details available";if(o.body){let u={};for(let l in o.body)u[l]=o.body[l];if(a.setExtra("body",u),o.type==="crash"){let l=o.body;s=[l.crashId||"",l.reason||""].join(" ").trim()||s}else s=o.body.message||s}Gy.captureMessage(`${i}: ${s}`)})}return{name:EJ,setupOnce(){if(!SJ.supportsReportingObserver())return;new s2e.ReportingObserver(r,{buffered:!0,types:e}).observe()},setup(n){bJ.set(n,!0)}}},TJ=Gy.defineIntegration(u2e),l2e=Gy.convertIntegrationFnToClass(EJ,TJ);Qw.ReportingObserver=l2e;Qw.reportingObserverIntegration=TJ});var PJ=_(ex=>{"use strict";Object.defineProperty(ex,"__esModule",{value:!0});var CJ=Ze(),xJ=se(),IJ="RewriteFrames",c2e=(t={})=>{let e=t.root,r=t.prefix||"app:///",n=t.iteratee||(i=>{if(!i.filename)return i;let s=/^[a-zA-Z]:\\/.test(i.filename)||i.filename.includes("\\")&&!i.filename.includes("/"),u=/^\//.test(i.filename);if(s||u){let l=s?i.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):i.filename,c=e?xJ.relative(e,l):xJ.basename(l);i.filename=`${r}${c}`}return i});function o(i){try{return{...i,exception:{...i.exception,values:i.exception.values.map(s=>({...s,...s.stacktrace&&{stacktrace:a(s.stacktrace)}}))}}}catch(s){return i}}function a(i){return{...i,frames:i&&i.frames&&i.frames.map(s=>n(s))}}return{name:IJ,setupOnce(){},processEvent(i){let s=i;return i.exception&&Array.isArray(i.exception.values)&&(s=o(s)),s}}},kJ=CJ.defineIntegration(c2e),d2e=CJ.convertIntegrationFnToClass(IJ,kJ);ex.RewriteFrames=d2e;ex.rewriteFramesIntegration=kJ});var NJ=_(tx=>{"use strict";Object.defineProperty(tx,"__esModule",{value:!0});var OJ=Ze(),RJ="SessionTiming",p2e=()=>{let t=Date.now();return{name:RJ,setupOnce(){},processEvent(e){let r=Date.now();return{...e,extra:{...e.extra,"session:start":t,"session:duration":r-t,"session:end":r}}}}},DJ=OJ.defineIntegration(p2e),f2e=OJ.convertIntegrationFnToClass(RJ,DJ);tx.SessionTiming=f2e;tx.sessionTimingIntegration=DJ});var MJ=_(q2=>{"use strict";Object.defineProperty(q2,"__esModule",{value:!0});var m2e=Ze(),AJ="Transaction",h2e=()=>({name:AJ,setupOnce(){},processEvent(t){let e=v2e(t);for(let r=e.length-1;r>=0;r--){let n=e[r];if(n.in_app===!0){t.transaction=y2e(n);break}}return t}}),g2e=m2e.convertIntegrationFnToClass(AJ,h2e);function v2e(t){let e=t.exception&&t.exception.values&&t.exception.values[0];return e&&e.stacktrace&&e.stacktrace.frames||[]}function y2e(t){return t.module||t.function?`${t.module||"?"}/${t.function||"?"}`:""}q2.Transaction=g2e});var zJ=_(nx=>{"use strict";Object.defineProperty(nx,"__esModule",{value:!0});var As=Ze(),Ei=se(),rx=$y(),FJ="HttpClient",_2e=(t={})=>{let e={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...t};return{name:FJ,setupOnce(){},setup(r){k2e(r,e),P2e(r,e)}}},qJ=As.defineIntegration(_2e),b2e=As.convertIntegrationFnToClass(FJ,qJ);function S2e(t,e,r,n){if(LJ(t,r.status,r.url)){let o=O2e(e,n),a,i,s,u;UJ()&&([{headers:a,cookies:s},{headers:i,cookies:u}]=[{cookieHeader:"Cookie",obj:o},{cookieHeader:"Set-Cookie",obj:r}].map(({cookieHeader:c,obj:p})=>{let d=w2e(p.headers),f;try{let m=d[c]||d[c.toLowerCase()]||void 0;m&&(f=jJ(m))}catch(m){rx.DEBUG_BUILD&&Ei.logger.log(`Could not extract cookies from header ${c}`)}return{headers:d,cookies:f}}));let l=BJ({url:o.url,method:o.method,status:r.status,requestHeaders:a,responseHeaders:i,requestCookies:s,responseCookies:u});As.captureEvent(l)}}function E2e(t,e,r,n){if(LJ(t,e.status,e.responseURL)){let o,a,i;if(UJ()){try{let u=e.getResponseHeader("Set-Cookie")||e.getResponseHeader("set-cookie")||void 0;u&&(a=jJ(u))}catch(u){rx.DEBUG_BUILD&&Ei.logger.log("Could not extract cookies from response headers")}try{i=x2e(e)}catch(u){rx.DEBUG_BUILD&&Ei.logger.log("Could not extract headers from response")}o=n}let s=BJ({url:e.responseURL,method:r,status:e.status,requestHeaders:o,responseHeaders:i,responseCookies:a});As.captureEvent(s)}}function T2e(t){if(t){let e=t["Content-Length"]||t["content-length"];if(e)return parseInt(e,10)}}function jJ(t){return t.split("; ").reduce((e,r)=>{let[n,o]=r.split("=");return e[n]=o,e},{})}function w2e(t){let e={};return t.forEach((r,n)=>{e[n]=r}),e}function x2e(t){let e=t.getAllResponseHeaders();return e?e.split(`\r `).reduce((r,n)=>{let[o,a]=n.split(": ");return r[o]=a,r},{}):{}}function C2e(t,e){return t.some(r=>typeof r=="string"?e.includes(r):r.test(e))}function I2e(t,e){return t.some(r=>typeof r=="number"?r===e:e>=r[0]&&e<=r[1])}function k2e(t,e){Ei.supportsNativeFetch()&&Ei.addFetchInstrumentationHandler(r=>{if(As.getClient()!==t)return;let{response:n,args:o}=r,[a,i]=o;n&&S2e(e,a,n,i)})}function P2e(t,e){"XMLHttpRequest"in Ei.GLOBAL_OBJ&&Ei.addXhrInstrumentationHandler(r=>{if(As.getClient()!==t)return;let n=r.xhr,o=n[Ei.SENTRY_XHR_DATA_KEY];if(!o)return;let{method:a,request_headers:i}=o;try{E2e(e,n,a,i)}catch(s){rx.DEBUG_BUILD&&Ei.logger.warn("Error while extracting response event form XHR response",s)}})}function LJ(t,e,r){return I2e(t.failedRequestStatusCodes,e)&&C2e(t.failedRequestTargets,r)&&!As.isSentryRequestUrl(r,As.getClient())}function BJ(t){let e=`HTTP Client Error with status code: ${t.status}`,r={message:e,exception:{values:[{type:"Error",value:e}]},request:{url:t.url,method:t.method,headers:t.requestHeaders,cookies:t.requestCookies},contexts:{response:{status_code:t.status,headers:t.responseHeaders,cookies:t.responseCookies,body_size:T2e(t.responseHeaders)}}};return Ei.addExceptionMechanism(r,{type:"http.client",handled:!1}),r}function O2e(t,e){return!e&&t instanceof Request||t instanceof Request&&t.bodyUsed?t:new Request(t,e)}function UJ(){let t=As.getClient();return t?!!t.getOptions().sendDefaultPii:!1}nx.HttpClient=b2e;nx.httpClientIntegration=qJ});var VJ=_(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0});var WJ=Ze(),L2=se(),j2=L2.GLOBAL_OBJ,R2e=7,$J="ContextLines",D2e=(t={})=>{let e=t.frameContextLines!=null?t.frameContextLines:R2e;return{name:$J,setupOnce(){},processEvent(r){return A2e(r,e)}}},HJ=WJ.defineIntegration(D2e),N2e=WJ.convertIntegrationFnToClass($J,HJ);function A2e(t,e){let r=j2.document,n=j2.location&&L2.stripUrlQueryAndFragment(j2.location.href);if(!r||!n)return t;let o=t.exception&&t.exception.values;if(!o||!o.length)return t;let a=r.documentElement.innerHTML;if(!a)return t;let i=["","",...a.split(` -`),""];return o.forEach(s=>{let u=s.stacktrace;u&&u.frames&&(u.frames=u.frames.map(l=>GJ(l,i,n,e)))}),t}function GJ(t,e,r,n){return t.filename!==r||!t.lineno||!e.length||L2.addContextToFrame(e,t,n),t}Vy.ContextLines=N2e;Vy.applySourceContextToFrame=GJ;Vy.contextLinesIntegration=HJ});var B2=_(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});var KJ=QY(),YJ=nJ(),JJ=fJ(),XJ=gJ(),M2e=_J(),ZJ=wJ(),QJ=PJ(),eX=NJ(),F2e=MJ(),tX=zJ(),rX=VJ();hr.CaptureConsole=KJ.CaptureConsole;hr.captureConsoleIntegration=KJ.captureConsoleIntegration;hr.Debug=YJ.Debug;hr.debugIntegration=YJ.debugIntegration;hr.Dedupe=JJ.Dedupe;hr.dedupeIntegration=JJ.dedupeIntegration;hr.ExtraErrorData=XJ.ExtraErrorData;hr.extraErrorDataIntegration=XJ.extraErrorDataIntegration;hr.Offline=M2e.Offline;hr.ReportingObserver=ZJ.ReportingObserver;hr.reportingObserverIntegration=ZJ.reportingObserverIntegration;hr.RewriteFrames=QJ.RewriteFrames;hr.rewriteFramesIntegration=QJ.rewriteFramesIntegration;hr.SessionTiming=eX.SessionTiming;hr.sessionTimingIntegration=eX.sessionTimingIntegration;hr.Transaction=F2e.Transaction;hr.HttpClient=tX.HttpClient;hr.httpClientIntegration=tX.httpClientIntegration;hr.ContextLines=rX.ContextLines;hr.contextLinesIntegration=rX.contextLinesIntegration});var uX=_(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});var q2e=Ze(),nX=se();function Ky(t){return new Promise((e,r)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>r(t.error)})}function oX(t,e){let r=indexedDB.open(t);r.onupgradeneeded=()=>r.result.createObjectStore(e);let n=Ky(r);return o=>n.then(a=>o(a.transaction(e,"readwrite").objectStore(e)))}function aX(t){return Ky(t.getAllKeys())}function iX(t,e,r){return t(n=>aX(n).then(o=>{if(!(o.length>=r))return n.put(e,Math.max(...o,0)+1),Ky(n.transaction)}))}function sX(t){return t(e=>aX(e).then(r=>{if(r.length!==0)return Ky(e.get(r[0])).then(n=>(e.delete(r[0]),Ky(e.transaction).then(()=>n)))}))}function j2e(t){let e;function r(){return e==null&&(e=oX(t.dbName||"sentry-offline",t.storeName||"queue")),e}return{insert:async n=>{try{let o=await nX.serializeEnvelope(n,t.textEncoder);await iX(r(),o,t.maxQueueSize||30)}catch(o){}},pop:async()=>{try{let n=await sX(r());if(n)return nX.parseEnvelope(n,t.textEncoder||new TextEncoder,t.textDecoder||new TextDecoder)}catch(n){}}}}function L2e(t){return e=>t({...e,createStore:j2e})}function B2e(t){return L2e(q2e.makeOfflineTransport(t))}zp.createStore=oX;zp.insert=iX;zp.makeBrowserOfflineTransport=B2e;zp.pop=sX});var W2=_(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});var z2=Ze(),Ur=se(),Io=hi(),Da=Ia(),lX=1e6,ox=String(0),U2e="main",fX="",pX="",mX="",U2=Da.WINDOW.navigator&&Da.WINDOW.navigator.userAgent||"",hX="",z2e=Da.WINDOW.navigator&&Da.WINDOW.navigator.language||Da.WINDOW.navigator&&Da.WINDOW.navigator.languages&&Da.WINDOW.navigator.languages[0]||"";function W2e(t){return typeof t=="object"&&t!==null&&"getHighEntropyValues"in t}var cX=Da.WINDOW.navigator&&Da.WINDOW.navigator.userAgentData;W2e(cX)&&cX.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(t=>{if(fX=t.platform||"",mX=t.architecture||"",hX=t.model||"",pX=t.platformVersion||"",t.fullVersionList&&t.fullVersionList.length>0){let e=t.fullVersionList[t.fullVersionList.length-1];U2=`${e.brand} ${e.version}`}}).catch(t=>{});function $2e(t){return!("thread_metadata"in t)}function gX(t){return $2e(t)?yX(t):t}function H2e(t){let e=t&&t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id;return typeof e=="string"&&e.length!==32&&Io.DEBUG_BUILD&&Ur.logger.log(`[Profiling] Invalid traceId: ${e} on profiled event`),typeof e!="string"?"":e}function vX(t,e,r,n){if(n.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(r==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${r} instead.`);let o=H2e(n),a=gX(r),i=e||(typeof n.start_timestamp=="number"?n.start_timestamp*1e3:Date.now()),s=typeof n.timestamp=="number"?n.timestamp*1e3:Date.now();return{event_id:t,timestamp:new Date(i).toISOString(),platform:"javascript",version:"1",release:n.release||"",environment:n.environment||z2.DEFAULT_ENVIRONMENT,runtime:{name:"javascript",version:Da.WINDOW.navigator.userAgent},os:{name:fX,version:pX,build_number:U2},device:{locale:z2e,model:hX,manufacturer:U2,architecture:mX,is_emulator:!1},debug_meta:{images:_X(r.resources)},profile:a,transactions:[{name:n.transaction||"",id:n.event_id||Ur.uuid4(),trace_id:o,active_thread_id:ox,relative_start_ns:"0",relative_end_ns:((s-i)*1e6).toFixed(0)}]}}function G2e(t){return t.op==="pageload"}function yX(t){let e,r=0,n={samples:[],stacks:[],frames:[],thread_metadata:{[ox]:{name:U2e}}};if(!t.samples.length)return n;let o=t.samples[0].timestamp,a=typeof performance.timeOrigin=="number"?performance.timeOrigin:Ur.browserPerformanceTimeOrigin||0,i=a-(Ur.browserPerformanceTimeOrigin||a);for(let s=0;s{if(n==="transaction")for(let o=1;o{let f,d=a.get(c);d?f=d:(f=o(c),a.set(c,f));for(let p=f.length-1;p>=0;p--){let m=f[p],g=m&&m.filename;if(m&&g){l[g]=e[c];break}}return l},{}),u=[];for(let l of t)l&&s[l]&&u.push({type:"sourcemap",code_file:l,debug_id:s[l]});return u}function bX(t){return typeof t!="number"&&typeof t!="boolean"||typeof t=="number"&&isNaN(t)?(Io.DEBUG_BUILD&&Ur.logger.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`),!1):t===!0||t===!1?!0:t<0||t>1?(Io.DEBUG_BUILD&&Ur.logger.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${t}.`),!1):!0}function Y2e(t){return t.samples.length<2?(Io.DEBUG_BUILD&&Ur.logger.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):t.frames.length?!0:(Io.DEBUG_BUILD&&Ur.logger.log("[Profiling] Discarding profile because it contains no frames"),!1)}var SX=!1,EX=3e4;function J2e(t){return typeof t=="function"}function X2e(){let t=Da.WINDOW.Profiler;if(!J2e(t)){Io.DEBUG_BUILD&&Ur.logger.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}let e=10,r=Math.floor(EX/e);try{return new t({sampleInterval:e,maxBufferSize:r})}catch(n){Io.DEBUG_BUILD&&(Ur.logger.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),Ur.logger.log("[Profiling] Disabling profiling for current user session.")),SX=!0}}function Z2e(t){if(SX)return Io.DEBUG_BUILD&&Ur.logger.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!t.isRecording())return Io.DEBUG_BUILD&&Ur.logger.log("[Profiling] Discarding profile because transaction was not sampled."),!1;let e=z2.getClient(),r=e&&e.getOptions();if(!r)return Io.DEBUG_BUILD&&Ur.logger.log("[Profiling] Profiling disabled, no options found."),!1;let n=r.profilesSampleRate;return bX(n)?n?(n===!0?!0:Math.random()30){let r=Hc.keys().next().value;Hc.delete(r)}}un.MAX_PROFILE_DURATION_MS=EX;un.addProfileToGlobalCache=rFe;un.addProfilesToEnvelope=V2e;un.applyDebugMetadata=_X;un.convertJSSelfProfileToSampledFormat=yX;un.createProfilePayload=vX;un.createProfilingEvent=Q2e;un.enrichWithThreadInformation=gX;un.findProfiledTransactionsFromEnvelope=K2e;un.getActiveProfilesCount=eFe;un.isAutomatedPageLoadTransaction=G2e;un.isValidSampleRate=bX;un.shouldProfileTransaction=Z2e;un.startJSSelfProfile=X2e;un.takeProfileFromGlobalCache=tFe});var $2=_(ix=>{"use strict";Object.defineProperty(ix,"__esModule",{value:!0});var ax=Ze(),il=se(),Wp=hi(),TX=Ia(),Yy=W2();function nFe(t){return t?Yy.shouldProfileTransaction(t)?wX(t):t:(Wp.DEBUG_BUILD&&il.logger.log("[Profiling] Transaction is undefined, skipping profiling"),t)}function wX(t){let e;Yy.isAutomatedPageLoadTransaction(t)&&(e=il.timestampInSeconds()*1e3);let r=Yy.startJSSelfProfile();if(!r)return t;Wp.DEBUG_BUILD&&il.logger.log(`[Profiling] started profiling transaction: ${ax.spanToJSON(t).description}`);let n=il.uuid4();async function o(){return!t||!r?null:r.stop().then(u=>(a&&(TX.WINDOW.clearTimeout(a),a=void 0),Wp.DEBUG_BUILD&&il.logger.log(`[Profiling] stopped profiling of transaction: ${ax.spanToJSON(t).description}`),u?(Yy.addProfileToGlobalCache(n,u),null):(Wp.DEBUG_BUILD&&il.logger.log(`[Profiling] profiler returned null profile for: ${ax.spanToJSON(t).description}`,"this may indicate an overlapping transaction or a call to stopProfiling with a profile title that was never started"),null))).catch(u=>(Wp.DEBUG_BUILD&&il.logger.log("[Profiling] error while stopping profiler:",u),null))}let a=TX.WINDOW.setTimeout(()=>{Wp.DEBUG_BUILD&&il.logger.log("[Profiling] max profile duration elapsed, stopping profiling for:",ax.spanToJSON(t).description),o()},Yy.MAX_PROFILE_DURATION_MS),i=t.end.bind(t);function s(){return t?(o().then(()=>{t.setContext("profile",{profile_id:n,start_timestamp:e}),i()},()=>{i()}),t):i()}return t.end=s,t}ix.onProfilingStartRouteTransaction=nFe;ix.startProfileForTransaction=wX});var kX=_(ux=>{"use strict";Object.defineProperty(ux,"__esModule",{value:!0});var G2=Ze(),sx=se(),H2=hi(),xX=$2(),sl=W2(),CX="BrowserProfiling",oFe=()=>({name:CX,setupOnce(){},setup(t){let r=G2.getCurrentScope().getTransaction();if(r&&sl.isAutomatedPageLoadTransaction(r)&&sl.shouldProfileTransaction(r)&&xX.startProfileForTransaction(r),typeof t.on!="function"){sx.logger.warn("[Profiling] Client does not support hooks, profiling will be disabled");return}t.on("startTransaction",n=>{sl.shouldProfileTransaction(n)&&xX.startProfileForTransaction(n)}),t.on("beforeEnvelope",n=>{if(!sl.getActiveProfilesCount())return;let o=sl.findProfiledTransactionsFromEnvelope(n);if(!o.length)return;let a=[];for(let i of o){let s=i&&i.contexts,u=s&&s.profile&&s.profile.profile_id,l=s&&s.profile&&s.profile.start_timestamp;if(typeof u!="string"){H2.DEBUG_BUILD&&sx.logger.log("[Profiling] cannot find profile for a transaction without a profile context");continue}if(!u){H2.DEBUG_BUILD&&sx.logger.log("[Profiling] cannot find profile for a transaction without a profile context");continue}s&&s.profile&&delete s.profile;let c=sl.takeProfileFromGlobalCache(u);if(!c){H2.DEBUG_BUILD&&sx.logger.log(`[Profiling] Could not retrieve profile for transaction: ${u}`);continue}let f=sl.createProfilingEvent(u,l,c,i);f&&a.push(f)}sl.addProfilesToEnvelope(n,a)})}}),IX=G2.defineIntegration(oFe),aFe=G2.convertIntegrationFnToClass(CX,IX);ux.BrowserProfilingIntegration=aFe;ux.browserProfilingIntegration=IX});var qX=_(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});var Oe=Ze(),lx=Ia(),iFe=FM(),sFe=jM(),uFe=BM(),Gc=UM(),V2=Cy(),lFe=NM(),ul=lK(),PX=sw(),cFe=lw(),OX=dw(),RX=pw(),DX=hw(),NX=vw(),dFe=cK(),K2=bY(),AX=jY(),Y2=JY(),Ms=B2(),$p=ZT(),fFe=uX(),pFe=$2(),MX=kX(),FX={};lx.WINDOW.Sentry&&lx.WINDOW.Sentry.Integrations&&(FX=lx.WINDOW.Sentry.Integrations);var mFe={...FX,...Oe.Integrations,...dFe};ee.FunctionToString=Oe.FunctionToString;ee.Hub=Oe.Hub;ee.InboundFilters=Oe.InboundFilters;ee.ModuleMetadata=Oe.ModuleMetadata;ee.SDK_VERSION=Oe.SDK_VERSION;ee.SEMANTIC_ATTRIBUTE_SENTRY_OP=Oe.SEMANTIC_ATTRIBUTE_SENTRY_OP;ee.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=Oe.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;ee.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=Oe.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE;ee.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=Oe.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;ee.Scope=Oe.Scope;ee.addBreadcrumb=Oe.addBreadcrumb;ee.addEventProcessor=Oe.addEventProcessor;ee.addGlobalEventProcessor=Oe.addGlobalEventProcessor;ee.addIntegration=Oe.addIntegration;ee.addTracingExtensions=Oe.addTracingExtensions;ee.captureEvent=Oe.captureEvent;ee.captureException=Oe.captureException;ee.captureMessage=Oe.captureMessage;ee.captureSession=Oe.captureSession;ee.close=Oe.close;ee.configureScope=Oe.configureScope;ee.continueTrace=Oe.continueTrace;ee.createTransport=Oe.createTransport;ee.endSession=Oe.endSession;ee.extractTraceparentData=Oe.extractTraceparentData;ee.flush=Oe.flush;ee.functionToStringIntegration=Oe.functionToStringIntegration;ee.getActiveSpan=Oe.getActiveSpan;ee.getActiveTransaction=Oe.getActiveTransaction;ee.getClient=Oe.getClient;ee.getCurrentHub=Oe.getCurrentHub;ee.getCurrentScope=Oe.getCurrentScope;ee.getHubFromCarrier=Oe.getHubFromCarrier;ee.getSpanStatusFromHttpCode=Oe.getSpanStatusFromHttpCode;ee.inboundFiltersIntegration=Oe.inboundFiltersIntegration;ee.isInitialized=Oe.isInitialized;ee.lastEventId=Oe.lastEventId;ee.makeMain=Oe.makeMain;ee.makeMultiplexedTransport=Oe.makeMultiplexedTransport;ee.metrics=Oe.metrics;ee.moduleMetadataIntegration=Oe.moduleMetadataIntegration;ee.parameterize=Oe.parameterize;ee.setContext=Oe.setContext;ee.setCurrentClient=Oe.setCurrentClient;ee.setExtra=Oe.setExtra;ee.setExtras=Oe.setExtras;ee.setHttpStatus=Oe.setHttpStatus;ee.setMeasurement=Oe.setMeasurement;ee.setTag=Oe.setTag;ee.setTags=Oe.setTags;ee.setUser=Oe.setUser;ee.spanStatusfromHttpCode=Oe.spanStatusfromHttpCode;ee.startInactiveSpan=Oe.startInactiveSpan;ee.startSession=Oe.startSession;ee.startSpan=Oe.startSpan;ee.startSpanManual=Oe.startSpanManual;ee.startTransaction=Oe.startTransaction;ee.trace=Oe.trace;ee.withActiveSpan=Oe.withActiveSpan;ee.withIsolationScope=Oe.withIsolationScope;ee.withScope=Oe.withScope;ee.WINDOW=lx.WINDOW;ee.BrowserClient=iFe.BrowserClient;ee.makeFetchTransport=sFe.makeFetchTransport;ee.makeXHRTransport=uFe.makeXHRTransport;ee.chromeStackLineParser=Gc.chromeStackLineParser;ee.defaultStackLineParsers=Gc.defaultStackLineParsers;ee.defaultStackParser=Gc.defaultStackParser;ee.geckoStackLineParser=Gc.geckoStackLineParser;ee.opera10StackLineParser=Gc.opera10StackLineParser;ee.opera11StackLineParser=Gc.opera11StackLineParser;ee.winjsStackLineParser=Gc.winjsStackLineParser;ee.eventFromException=V2.eventFromException;ee.eventFromMessage=V2.eventFromMessage;ee.exceptionFromError=V2.exceptionFromError;ee.createUserFeedbackEnvelope=lFe.createUserFeedbackEnvelope;ee.captureUserFeedback=ul.captureUserFeedback;ee.defaultIntegrations=ul.defaultIntegrations;ee.forceLoad=ul.forceLoad;ee.getDefaultIntegrations=ul.getDefaultIntegrations;ee.init=ul.init;ee.onLoad=ul.onLoad;ee.showReportDialog=ul.showReportDialog;ee.wrap=ul.wrap;ee.Breadcrumbs=PX.Breadcrumbs;ee.breadcrumbsIntegration=PX.breadcrumbsIntegration;ee.Dedupe=cFe.Dedupe;ee.GlobalHandlers=OX.GlobalHandlers;ee.globalHandlersIntegration=OX.globalHandlersIntegration;ee.HttpContext=RX.HttpContext;ee.httpContextIntegration=RX.httpContextIntegration;ee.LinkedErrors=DX.LinkedErrors;ee.linkedErrorsIntegration=DX.linkedErrorsIntegration;ee.TryCatch=NX.TryCatch;ee.browserApiErrorsIntegration=NX.browserApiErrorsIntegration;ee.Replay=K2.InternalReplay;ee.getReplay=K2.internalGetReplay;ee.replayIntegration=K2.internalReplayIntegration;ee.ReplayCanvas=AX.ReplayCanvas;ee.replayCanvasIntegration=AX.replayCanvasIntegration;ee.Feedback=Y2.Feedback;ee.feedbackIntegration=Y2.feedbackIntegration;ee.sendFeedback=Y2.sendFeedback;ee.captureConsoleIntegration=Ms.captureConsoleIntegration;ee.contextLinesIntegration=Ms.contextLinesIntegration;ee.debugIntegration=Ms.debugIntegration;ee.dedupeIntegration=Ms.dedupeIntegration;ee.extraErrorDataIntegration=Ms.extraErrorDataIntegration;ee.httpClientIntegration=Ms.httpClientIntegration;ee.reportingObserverIntegration=Ms.reportingObserverIntegration;ee.rewriteFramesIntegration=Ms.rewriteFramesIntegration;ee.sessionTimingIntegration=Ms.sessionTimingIntegration;ee.BrowserTracing=$p.BrowserTracing;ee.browserTracingIntegration=$p.browserTracingIntegration;ee.defaultRequestInstrumentationOptions=$p.defaultRequestInstrumentationOptions;ee.instrumentOutgoingRequests=$p.instrumentOutgoingRequests;ee.startBrowserTracingNavigationSpan=$p.startBrowserTracingNavigationSpan;ee.startBrowserTracingPageLoadSpan=$p.startBrowserTracingPageLoadSpan;ee.makeBrowserOfflineTransport=fFe.makeBrowserOfflineTransport;ee.onProfilingStartRouteTransaction=pFe.onProfilingStartRouteTransaction;ee.BrowserProfilingIntegration=MX.BrowserProfilingIntegration;ee.browserProfilingIntegration=MX.browserProfilingIntegration;ee.Integrations=mFe});var cx=_(J2=>{"use strict";Object.defineProperty(J2,"__esModule",{value:!0});J2.default=hFe;function hFe(t,e){typeof t=="function"?t(e):t&&(t.current=e)}});var Fs=_(X2=>{"use strict";var gFe=$(),vFe=Ne();Object.defineProperty(X2,"__esModule",{value:!0});X2.default=_Fe;var yFe=vFe(z()),jX=gFe(cx());function _Fe(t,e){return yFe.useMemo(function(){return t==null&&e==null?null:function(r){(0,jX.default)(t,r),(0,jX.default)(e,r)}},[t,e])}});var Vc=_(Z2=>{"use strict";var bFe=Ne();Object.defineProperty(Z2,"__esModule",{value:!0});Z2.default=EFe;var dx=bFe(z()),SFe=typeof window!="undefined"?dx.useLayoutEffect:dx.useEffect;function EFe(t){var e=dx.useRef(t);return SFe(function(){e.current=t}),dx.useCallback(function(){return e.current.apply(void 0,arguments)},[])}});var Kc=_(Q2=>{"use strict";Object.defineProperty(Q2,"__esModule",{value:!0});Q2.default=TFe;function TFe(t,e){return function(){return null}}});var tF=_(px=>{"use strict";var BX=Ne();Object.defineProperty(px,"__esModule",{value:!0});px.teardown=PFe;px.default=DFe;var wFe=BX(z()),xFe=BX(jr()),fx=!0,eF=!1,LX=null,CFe={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function IFe(t){var e=t.type,r=t.tagName;return!!(r==="INPUT"&&CFe[e]&&!t.readOnly||r==="TEXTAREA"&&!t.readOnly||t.isContentEditable)}function UX(t){t.metaKey||t.altKey||t.ctrlKey||(fx=!0)}function Hp(){fx=!1}function zX(){this.visibilityState==="hidden"&&eF&&(fx=!0)}function kFe(t){t.addEventListener("keydown",UX,!0),t.addEventListener("mousedown",Hp,!0),t.addEventListener("pointerdown",Hp,!0),t.addEventListener("touchstart",Hp,!0),t.addEventListener("visibilitychange",zX,!0)}function PFe(t){t.removeEventListener("keydown",UX,!0),t.removeEventListener("mousedown",Hp,!0),t.removeEventListener("pointerdown",Hp,!0),t.removeEventListener("touchstart",Hp,!0),t.removeEventListener("visibilitychange",zX,!0)}function OFe(t){var e=t.target;try{return e.matches(":focus-visible")}catch(r){}return fx||IFe(e)}function RFe(){eF=!0,window.clearTimeout(LX),LX=window.setTimeout(function(){eF=!1},100)}function DFe(){var t=wFe.useCallback(function(e){var r=xFe.findDOMNode(e);r!=null&&kFe(r.ownerDocument)},[]);return{isFocusVisible:OFe,onBlurVisible:RFe,ref:t}}});var $X=_((mx,WX)=>{"use strict";mx.__esModule=!0;mx.default=NFe;function NFe(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}WX.exports=mx.default});var GX=_((hx,HX)=>{"use strict";var AFe=$();hx.__esModule=!0;hx.default=FFe;var MFe=AFe($X());function FFe(t,e){t.classList?t.classList.add(e):(0,MFe.default)(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}HX.exports=hx.default});var YX=_((gx,KX)=>{"use strict";gx.__esModule=!0;gx.default=qFe;function VX(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function qFe(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=VX(t.className,e):t.setAttribute("class",VX(t.className&&t.className.baseVal||"",e))}KX.exports=gx.default});var rF=_((Jy,JX)=>{"use strict";Jy.__esModule=!0;Jy.default=void 0;var jFe={disabled:!1};Jy.default=jFe;JX.exports=Jy.default});var nF=_(Gp=>{"use strict";Gp.__esModule=!0;Gp.classNamesShape=Gp.timeoutsShape=void 0;var qQe=LFe(je());function LFe(t){return t&&t.__esModule?t:{default:t}}var BFe=null;Gp.timeoutsShape=BFe;var UFe=null;Gp.classNamesShape=UFe});var vx=_((Xy,XX)=>{"use strict";Xy.__esModule=!0;Xy.default=void 0;var zFe=WFe(z());function WFe(t){return t&&t.__esModule?t:{default:t}}var $Fe=zFe.default.createContext(null);Xy.default=$Fe;XX.exports=Xy.default});var oF=_(yx=>{"use strict";yx.__esModule=!0;yx.forceReflow=void 0;var HFe=function(e){return e.scrollTop};yx.forceReflow=HFe});var Ex=_(ro=>{"use strict";ro.__esModule=!0;ro.default=ro.EXITING=ro.ENTERED=ro.ENTERING=ro.EXITED=ro.UNMOUNTED=void 0;var BQe=Zy(je()),_x=Zy(z()),bx=Zy(jr()),ZX=Zy(rF()),UQe=nF(),QX=Zy(vx()),GFe=oF();function Zy(t){return t&&t.__esModule?t:{default:t}}function VFe(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,a;for(a=0;a=0)&&(r[o]=t[o]);return r}function KFe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Kp="unmounted";ro.UNMOUNTED=Kp;var ll="exited";ro.EXITED=ll;var cl="entering";ro.ENTERING=cl;var Yc="entered";ro.ENTERED=Yc;var Sx="exiting";ro.EXITING=Sx;var qs=function(t){KFe(e,t);function e(n,o){var a;a=t.call(this,n,o)||this;var i=o,s=i&&!i.isMounting?n.enter:n.appear,u;return a.appearStatus=null,n.in?s?(u=ll,a.appearStatus=cl):u=Yc:n.unmountOnExit||n.mountOnEnter?u=Kp:u=ll,a.state={status:u},a.nextCallback=null,a}e.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Kp?{status:ll}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==cl&&i!==Yc&&(a=cl):(i===cl||i===Yc)&&(a=Sx)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===cl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:bx.default.findDOMNode(this);i&&(0,GFe.forceReflow)(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ll&&this.setState({status:Kp})},r.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,u=this.props.nodeRef?[s]:[bx.default.findDOMNode(this),s],l=u[0],c=u[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!o&&!i||ZX.default.disabled){this.safeSetState({status:Yc},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:cl},function(){a.props.onEntering(l,c),a.onTransitionEnd(d,function(){a.safeSetState({status:Yc},function(){a.props.onEntered(l,c)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:bx.default.findDOMNode(this);if(!a||ZX.default.disabled){this.safeSetState({status:ll},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Sx},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:ll},function(){o.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:bx.default.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Kp)return null;var a=this.props,i=a.children,s=a.in,u=a.mountOnEnter,l=a.unmountOnExit,c=a.appear,f=a.enter,d=a.exit,p=a.timeout,m=a.addEndListener,g=a.onEnter,v=a.onEntering,h=a.onEntered,y=a.onExit,b=a.onExiting,E=a.onExited,w=a.nodeRef,S=VFe(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _x.default.createElement(QX.default.Provider,{value:null},typeof i=="function"?i(o,S):_x.default.cloneElement(_x.default.Children.only(i),S))},e}(_x.default.Component);qs.contextType=QX.default;qs.propTypes={};function Vp(){}qs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vp,onEntering:Vp,onEntered:Vp,onExit:Vp,onExiting:Vp,onExited:Vp};qs.UNMOUNTED=Kp;qs.EXITED=ll;qs.ENTERING=cl;qs.ENTERED=Yc;qs.EXITING=Sx;var YFe=qs;ro.default=YFe});var rZ=_((e_,tZ)=>{"use strict";e_.__esModule=!0;e_.default=void 0;var WQe=Qy(je()),JFe=Qy(GX()),XFe=Qy(YX()),eZ=Qy(z()),ZFe=Qy(Ex()),$Qe=nF(),QFe=oF();function Qy(t){return t&&t.__esModule?t:{default:t}}function iF(){return iF=Object.assign||function(t){for(var e=1;e=0)&&(r[o]=t[o]);return r}function tqe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var rqe=function(e,r){return e&&r&&r.split(" ").forEach(function(n){return(0,JFe.default)(e,n)})},aF=function(e,r){return e&&r&&r.split(" ").forEach(function(n){return(0,XFe.default)(e,n)})},sF=function(t){tqe(e,t);function e(){for(var n,o=arguments.length,a=new Array(o),i=0;i{"use strict";Yp.__esModule=!0;Yp.getChildMapping=uF;Yp.mergeChildMappings=nZ;Yp.getInitialChildMapping=oqe;Yp.getNextChildMapping=aqe;var js=z();function uF(t,e){var r=function(a){return e&&(0,js.isValidElement)(a)?e(a):a},n=Object.create(null);return t&&js.Children.map(t,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function nZ(t,e){t=t||{},e=e||{};function r(c){return c in e?e[c]:t[c]}var n=Object.create(null),o=[];for(var a in t)a in e?o.length&&(n[a]=o,o=[]):o.push(a);var i,s={};for(var u in e){if(n[u])for(i=0;i{"use strict";t_.__esModule=!0;t_.default=void 0;var GQe=dF(je()),Tx=dF(z()),aZ=dF(vx()),lF=oZ();function dF(t){return t&&t.__esModule?t:{default:t}}function iqe(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,a;for(a=0;a=0)&&(r[o]=t[o]);return r}function cF(){return cF=Object.assign||function(t){for(var e=1;e{"use strict";r_.__esModule=!0;r_.default=void 0;var VQe=wx(je()),Jp=wx(z()),fqe=wx(jr()),pqe=wx(pF());function wx(t){return t&&t.__esModule?t:{default:t}}function mqe(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,a;for(a=0;a=0)&&(r[o]=t[o]);return r}function hqe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var sZ=function(t){hqe(e,t);function e(){for(var n,o=arguments.length,a=new Array(o),i=0;i{"use strict";Xp.__esModule=!0;Xp.default=Xp.modes=void 0;var ra=mF(z()),KQe=mF(je()),Na=Ex(),vqe=mF(vx()),xx,Cx;function mF(t){return t&&t.__esModule?t:{default:t}}function yqe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function _qe(t,e){return!(t===e||ra.default.isValidElement(t)&&ra.default.isValidElement(e)&&t.key!=null&&t.key===e.key)}var Xc={out:"out-in",in:"in-out"};Xp.modes=Xc;var Ix=function(e,r,n){return function(){var o;e.props[r]&&(o=e.props)[r].apply(o,arguments),n()}},bqe=(xx={},xx[Xc.out]=function(t){var e=t.current,r=t.changeState;return ra.default.cloneElement(e,{in:!1,onExited:Ix(e,"onExited",function(){r(Na.ENTERING,null)})})},xx[Xc.in]=function(t){var e=t.current,r=t.changeState,n=t.children;return[e,ra.default.cloneElement(n,{in:!0,onEntered:Ix(n,"onEntered",function(){r(Na.ENTERING)})})]},xx),Sqe=(Cx={},Cx[Xc.out]=function(t){var e=t.children,r=t.changeState;return ra.default.cloneElement(e,{in:!0,onEntered:Ix(e,"onEntered",function(){r(Na.ENTERED,ra.default.cloneElement(e,{in:!0}))})})},Cx[Xc.in]=function(t){var e=t.current,r=t.children,n=t.changeState;return[ra.default.cloneElement(e,{in:!1,onExited:Ix(e,"onExited",function(){n(Na.ENTERED,ra.default.cloneElement(r,{in:!0}))})}),ra.default.cloneElement(r,{in:!0})]},Cx),hF=function(t){yqe(e,t);function e(){for(var n,o=arguments.length,a=new Array(o),i=0;i{"use strict";no.__esModule=!0;no.config=no.Transition=no.TransitionGroup=no.SwitchTransition=no.ReplaceTransition=no.CSSTransition=void 0;var Tqe=Zp(rZ());no.CSSTransition=Tqe.default;var wqe=Zp(lZ());no.ReplaceTransition=wqe.default;var xqe=Zp(cZ());no.SwitchTransition=xqe.default;var Cqe=Zp(pF());no.TransitionGroup=Cqe.default;var Iqe=Zp(Ex());no.Transition=Iqe.default;var kqe=Zp(rF());no.config=kqe.default;function Zp(t){return t&&t.__esModule?t:{default:t}}});var fZ=_(kx=>{"use strict";var gF=$(),Pqe=Ne();Object.defineProperty(kx,"__esModule",{value:!0});kx.default=void 0;var n_=Pqe(z()),XQe=gF(je()),dZ=gF(Le()),Oqe=gF(Vc()),Rqe=typeof window=="undefined"?n_.useEffect:n_.useLayoutEffect;function Dqe(t){var e=t.classes,r=t.pulsate,n=r===void 0?!1:r,o=t.rippleX,a=t.rippleY,i=t.rippleSize,s=t.in,u=t.onExited,l=u===void 0?function(){}:u,c=t.timeout,f=n_.useState(!1),d=f[0],p=f[1],m=(0,dZ.default)(e.ripple,e.rippleVisible,n&&e.ripplePulsate),g={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},v=(0,dZ.default)(e.child,d&&e.childLeaving,n&&e.childPulsate),h=(0,Oqe.default)(l);return Rqe(function(){if(!s){p(!0);var y=setTimeout(h,c);return function(){clearTimeout(y)}}},[h,s,c]),n_.createElement("span",{className:m,style:g},n_.createElement("span",{className:v}))}var Nqe=Dqe;kx.default=Nqe});var hZ=_(dl=>{"use strict";var Aqe=Ne(),Zc=$();Object.defineProperty(dl,"__esModule",{value:!0});dl.default=dl.styles=dl.DELAY_RIPPLE=void 0;var Mqe=Zc(We()),Fqe=Zc(Tf()),qqe=Zc(ut()),zr=Aqe(z()),QQe=Zc(je()),jqe=Qp(),Lqe=Zc(Le()),Bqe=Zc(Mt()),Uqe=Zc(fZ()),vF=550,pZ=80;dl.DELAY_RIPPLE=pZ;var mZ=function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(vF,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(vF,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}};dl.styles=mZ;var zqe=zr.forwardRef(function(e,r){var n=e.center,o=n===void 0?!1:n,a=e.classes,i=e.className,s=(0,qqe.default)(e,["center","classes","className"]),u=zr.useState([]),l=u[0],c=u[1],f=zr.useRef(0),d=zr.useRef(null);zr.useEffect(function(){d.current&&(d.current(),d.current=null)},[l]);var p=zr.useRef(!1),m=zr.useRef(null),g=zr.useRef(null),v=zr.useRef(null);zr.useEffect(function(){return function(){clearTimeout(m.current)}},[]);var h=zr.useCallback(function(w){var S=w.pulsate,C=w.rippleX,P=w.rippleY,k=w.rippleSize,O=w.cb;c(function(F){return[].concat((0,Fqe.default)(F),[zr.createElement(Uqe.default,{key:f.current,classes:a,timeout:vF,pulsate:S,rippleX:C,rippleY:P,rippleSize:k})])}),f.current+=1,d.current=O},[a]),y=zr.useCallback(function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=arguments.length>2?arguments[2]:void 0,P=S.pulsate,k=P===void 0?!1:P,O=S.center,F=O===void 0?o||S.pulsate:O,U=S.fakeElement,J=U===void 0?!1:U;if(w.type==="mousedown"&&p.current){p.current=!1;return}w.type==="touchstart"&&(p.current=!0);var K=J?null:v.current,Z=K?K.getBoundingClientRect():{width:0,height:0,left:0,top:0},G,Q,N;if(F||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)G=Math.round(Z.width/2),Q=Math.round(Z.height/2);else{var j=w.touches?w.touches[0]:w,V=j.clientX,Y=j.clientY;G=Math.round(V-Z.left),Q=Math.round(Y-Z.top)}if(F)N=Math.sqrt((2*Math.pow(Z.width,2)+Math.pow(Z.height,2))/3),N%2===0&&(N+=1);else{var X=Math.max(Math.abs((K?K.clientWidth:0)-G),G)*2+2,ie=Math.max(Math.abs((K?K.clientHeight:0)-Q),Q)*2+2;N=Math.sqrt(Math.pow(X,2)+Math.pow(ie,2))}w.touches?g.current===null&&(g.current=function(){h({pulsate:k,rippleX:G,rippleY:Q,rippleSize:N,cb:C})},m.current=setTimeout(function(){g.current&&(g.current(),g.current=null)},pZ)):h({pulsate:k,rippleX:G,rippleY:Q,rippleSize:N,cb:C})},[o,h]),b=zr.useCallback(function(){y({},{pulsate:!0})},[y]),E=zr.useCallback(function(w,S){if(clearTimeout(m.current),w.type==="touchend"&&g.current){w.persist(),g.current(),g.current=null,m.current=setTimeout(function(){E(w,S)});return}g.current=null,c(function(C){return C.length>0?C.slice(1):C}),d.current=S},[]);return zr.useImperativeHandle(r,function(){return{pulsate:b,start:y,stop:E}},[b,y,E]),zr.createElement("span",(0,Mqe.default)({className:(0,Lqe.default)(a.root,i),ref:v},s),zr.createElement(jqe.TransitionGroup,{component:null,exit:!0},l))}),Wqe=(0,Bqe.default)(mZ,{flip:!1,name:"MuiTouchRipple"})(zr.memo(zqe));dl.default=Wqe});var _Z=_(em=>{"use strict";var vZ=Ne(),Ti=$();Object.defineProperty(em,"__esModule",{value:!0});em.default=em.styles=void 0;var gZ=Ti(We()),$qe=Ti(ut()),Aa=vZ(z()),tet=Ti(je()),Hqe=vZ(jr()),Gqe=Ti(Le()),ret=at(),yF=Ti(Fs()),Px=Ti(Vc()),net=Ti(Kc()),Vqe=Ti(Mt()),Kqe=Ti(tF()),Yqe=Ti(hZ()),yZ={root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}};em.styles=yZ;var Jqe=Aa.forwardRef(function(e,r){var n=e.action,o=e.buttonRef,a=e.centerRipple,i=a===void 0?!1:a,s=e.children,u=e.classes,l=e.className,c=e.component,f=c===void 0?"button":c,d=e.disabled,p=d===void 0?!1:d,m=e.disableRipple,g=m===void 0?!1:m,v=e.disableTouchRipple,h=v===void 0?!1:v,y=e.focusRipple,b=y===void 0?!1:y,E=e.focusVisibleClassName,w=e.onBlur,S=e.onClick,C=e.onFocus,P=e.onFocusVisible,k=e.onKeyDown,O=e.onKeyUp,F=e.onMouseDown,U=e.onMouseLeave,J=e.onMouseUp,K=e.onTouchEnd,Z=e.onTouchMove,G=e.onTouchStart,Q=e.onDragLeave,N=e.tabIndex,j=N===void 0?0:N,V=e.TouchRippleProps,Y=e.type,X=Y===void 0?"button":Y,ie=(0,$qe.default)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),de=Aa.useRef(null);function fe(){return Hqe.findDOMNode(de.current)}var le=Aa.useRef(null),_e=Aa.useState(!1),we=_e[0],ge=_e[1];p&&we&&ge(!1);var Se=(0,Kqe.default)(),me=Se.isFocusVisible,be=Se.onBlurVisible,Me=Se.ref;Aa.useImperativeHandle(n,function(){return{focusVisible:function(){ge(!0),de.current.focus()}}},[]),Aa.useEffect(function(){we&&b&&!g&&le.current.pulsate()},[g,b,we]);function ve(H,Re){var De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h;return(0,Px.default)(function(Ot){Re&&Re(Ot);var zt=De;return!zt&&le.current&&le.current[H](Ot),!0})}var gt=ve("start",F),qe=ve("stop",Q),nt=ve("stop",J),Qe=ve("stop",function(H){we&&H.preventDefault(),U&&U(H)}),he=ve("start",G),Ue=ve("stop",K),Ie=ve("stop",Z),Fe=ve("stop",function(H){we&&(be(H),ge(!1)),w&&w(H)},!1),ue=(0,Px.default)(function(H){de.current||(de.current=H.currentTarget),me(H)&&(ge(!0),P&&P(H)),C&&C(H)}),Be=function(){var Re=fe();return f&&f!=="button"&&!(Re.tagName==="A"&&Re.href)},kt=Aa.useRef(!1),ur=(0,Px.default)(function(H){b&&!kt.current&&we&&le.current&&H.key===" "&&(kt.current=!0,H.persist(),le.current.stop(H,function(){le.current.start(H)})),H.target===H.currentTarget&&Be()&&H.key===" "&&H.preventDefault(),k&&k(H),H.target===H.currentTarget&&Be()&&H.key==="Enter"&&!p&&(H.preventDefault(),S&&S(H))}),dt=(0,Px.default)(function(H){b&&H.key===" "&&le.current&&we&&!H.defaultPrevented&&(kt.current=!1,H.persist(),le.current.stop(H,function(){le.current.pulsate(H)})),O&&O(H),S&&H.target===H.currentTarget&&Be()&&H.key===" "&&!H.defaultPrevented&&S(H)}),Xe=f;Xe==="button"&&ie.href&&(Xe="a");var it={};Xe==="button"?(it.type=X,it.disabled=p):((Xe!=="a"||!ie.href)&&(it.role="button"),it["aria-disabled"]=p);var kr=(0,yF.default)(o,r),Yt=(0,yF.default)(Me,de),et=(0,yF.default)(kr,Yt),Pt=Aa.useState(!1),Je=Pt[0],Pe=Pt[1];Aa.useEffect(function(){Pe(!0)},[]);var ye=Je&&!g&&!p;return Aa.createElement(Xe,(0,gZ.default)({className:(0,Gqe.default)(u.root,l,we&&[u.focusVisible,E],p&&u.disabled),onBlur:Fe,onClick:S,onFocus:ue,onKeyDown:ur,onKeyUp:dt,onMouseDown:gt,onMouseLeave:Qe,onMouseUp:nt,onDragLeave:qe,onTouchEnd:Ue,onTouchMove:Ie,onTouchStart:he,ref:et,tabIndex:p?-1:j},it,ie),s,ye?Aa.createElement(Yqe.default,(0,gZ.default)({ref:le,center:i},V)):null)}),Xqe=(0,Vqe.default)(yZ,{name:"MuiButtonBase"})(Jqe);em.default=Xqe});var Ox=_(_F=>{"use strict";var Zqe=$();Object.defineProperty(_F,"__esModule",{value:!0});Object.defineProperty(_F,"default",{enumerable:!0,get:function(){return Qqe.default}});var Qqe=Zqe(_Z())});var na=_(bF=>{"use strict";Object.defineProperty(bF,"__esModule",{value:!0});bF.default=tje;var eje=at();function tje(t){if(typeof t!="string")throw new Error((0,eje.formatMuiErrorMessage)(7));return t.charAt(0).toUpperCase()+t.slice(1)}});var EZ=_(tm=>{"use strict";var rje=Ne(),ed=$();Object.defineProperty(tm,"__esModule",{value:!0});tm.default=tm.styles=void 0;var nje=ed(ut()),bZ=ed(We()),o_=rje(z()),set=ed(je()),Rx=ed(Le()),oje=ed(Mt()),Qc=Ql(),aje=ed(Ox()),a_=ed(na()),SZ=function(e){return{root:(0,bZ.default)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,Qc.alpha)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Qc.alpha)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Qc.alpha)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat(e.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,Qc.alpha)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,Qc.alpha)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,Qc.alpha)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,Qc.alpha)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}};tm.styles=SZ;var ije=o_.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.color,s=i===void 0?"default":i,u=e.component,l=u===void 0?"button":u,c=e.disabled,f=c===void 0?!1:c,d=e.disableElevation,p=d===void 0?!1:d,m=e.disableFocusRipple,g=m===void 0?!1:m,v=e.endIcon,h=e.focusVisibleClassName,y=e.fullWidth,b=y===void 0?!1:y,E=e.size,w=E===void 0?"medium":E,S=e.startIcon,C=e.type,P=C===void 0?"button":C,k=e.variant,O=k===void 0?"text":k,F=(0,nje.default)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),U=S&&o_.createElement("span",{className:(0,Rx.default)(o.startIcon,o["iconSize".concat((0,a_.default)(w))])},S),J=v&&o_.createElement("span",{className:(0,Rx.default)(o.endIcon,o["iconSize".concat((0,a_.default)(w))])},v);return o_.createElement(aje.default,(0,bZ.default)({className:(0,Rx.default)(o.root,o[O],a,s==="inherit"?o.colorInherit:s!=="default"&&o["".concat(O).concat((0,a_.default)(s))],w!=="medium"&&[o["".concat(O,"Size").concat((0,a_.default)(w))],o["size".concat((0,a_.default)(w))]],p&&o.disableElevation,f&&o.disabled,b&&o.fullWidth),component:l,disabled:f,focusRipple:!g,focusVisibleClassName:(0,Rx.default)(o.focusVisible,h),ref:r,type:P},F),o_.createElement("span",{className:o.label},U,n,J))}),sje=(0,oje.default)(SZ,{name:"MuiButton"})(ije);tm.default=sje});var rm=_(SF=>{"use strict";var uje=$();Object.defineProperty(SF,"__esModule",{value:!0});Object.defineProperty(SF,"default",{enumerable:!0,get:function(){return lje.default}});var lje=uje(EZ())});var td=_(EF=>{"use strict";Object.defineProperty(EF,"__esModule",{value:!0});EF.default=cje;function cje(t){return t&&t.ownerDocument||document}});var CZ=_(Nx=>{"use strict";var Dx=$(),wZ=Ne();Object.defineProperty(Nx,"__esModule",{value:!0});Nx.default=void 0;var rd=wZ(z()),xZ=wZ(jr()),fet=Dx(je()),pet=at(),met=Dx(Kc()),TZ=Dx(cx()),dje=Dx(Fs());function fje(t){return t=typeof t=="function"?t():t,xZ.findDOMNode(t)}var TF=typeof window!="undefined"?rd.useLayoutEffect:rd.useEffect,pje=rd.forwardRef(function(e,r){var n=e.children,o=e.container,a=e.disablePortal,i=a===void 0?!1:a,s=e.onRendered,u=rd.useState(null),l=u[0],c=u[1],f=(0,dje.default)(rd.isValidElement(n)?n.ref:null,r);return TF(function(){i||c(fje(o)||document.body)},[o,i]),TF(function(){if(l&&!i)return(0,TZ.default)(r,l),function(){(0,TZ.default)(r,null)}},[r,l,i]),TF(function(){s&&(l||i)&&s()},[s,l,i]),i?rd.isValidElement(n)?rd.cloneElement(n,{ref:f}):n:l&&xZ.createPortal(n,l)}),mje=pje;Nx.default=mje});var IZ=_(wF=>{"use strict";var hje=$();Object.defineProperty(wF,"__esModule",{value:!0});Object.defineProperty(wF,"default",{enumerable:!0,get:function(){return gje.default}});var gje=hje(CZ())});var Ax=_(xF=>{"use strict";Object.defineProperty(xF,"__esModule",{value:!0});xF.default=vje;function vje(){for(var t=arguments.length,e=new Array(t),r=0;r{"use strict";Object.defineProperty(CF,"__esModule",{value:!0});CF.default=yje;function yje(){var t=document.createElement("div");t.style.width="99px",t.style.height="99px",t.style.position="absolute",t.style.top="-9999px",t.style.overflow="scroll",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e}});var kF=_(IF=>{"use strict";var _je=$();Object.defineProperty(IF,"__esModule",{value:!0});IF.default=Sje;var bje=_je(td());function Sje(t){var e=(0,bje.default)(t);return e.defaultView||window}});var OF=_(s_=>{"use strict";var nm=$();Object.defineProperty(s_,"__esModule",{value:!0});s_.ariaHidden=i_;s_.default=void 0;var Eje=nm(ho()),Tje=nm(Yn()),wje=nm(Tf()),xje=nm(kZ()),RZ=nm(td()),Cje=nm(kF());function Ije(t){var e=(0,RZ.default)(t);return e.body===t?(0,Cje.default)(e).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function i_(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function PZ(t){return parseInt(window.getComputedStyle(t)["padding-right"],10)||0}function OZ(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,a=[e,r].concat((0,wje.default)(n)),i=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(t.children,function(s){s.nodeType===1&&a.indexOf(s)===-1&&i.indexOf(s.tagName)===-1&&i_(s,o)})}function PF(t,e){var r=-1;return t.some(function(n,o){return e(n)?(r=o,!0):!1}),r}function kje(t,e){var r=[],n=[],o=t.container,a;if(!e.disableScrollLock){if(Ije(o)){var i=(0,xje.default)();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(PZ(o)+i,"px"),a=(0,RZ.default)(o).querySelectorAll(".mui-fixed"),[].forEach.call(a,function(c){n.push(c.style.paddingRight),c.style.paddingRight="".concat(PZ(c)+i,"px")})}var s=o.parentElement,u=s.nodeName==="HTML"&&window.getComputedStyle(s)["overflow-y"]==="scroll"?s:o;r.push({value:u.style.overflow,key:"overflow",el:u}),u.style.overflow="hidden"}var l=function(){a&&[].forEach.call(a,function(f,d){n[d]?f.style.paddingRight=n[d]:f.style.removeProperty("padding-right")}),r.forEach(function(f){var d=f.value,p=f.el,m=f.key;d?p.style.setProperty(m,d):p.style.removeProperty(m)})};return l}function Pje(t){var e=[];return[].forEach.call(t.children,function(r){r.getAttribute&&r.getAttribute("aria-hidden")==="true"&&e.push(r)}),e}var Oje=function(){function t(){(0,Eje.default)(this,t),this.modals=[],this.containers=[]}return(0,Tje.default)(t,[{key:"add",value:function(r,n){var o=this.modals.indexOf(r);if(o!==-1)return o;o=this.modals.length,this.modals.push(r),r.modalRef&&i_(r.modalRef,!1);var a=Pje(n);OZ(n,r.mountNode,r.modalRef,a,!0);var i=PF(this.containers,function(s){return s.container===n});return i!==-1?(this.containers[i].modals.push(r),o):(this.containers.push({modals:[r],container:n,restore:null,hiddenSiblingNodes:a}),o)}},{key:"mount",value:function(r,n){var o=PF(this.containers,function(i){return i.modals.indexOf(r)!==-1}),a=this.containers[o];a.restore||(a.restore=kje(a,n))}},{key:"remove",value:function(r){var n=this.modals.indexOf(r);if(n===-1)return n;var o=PF(this.containers,function(s){return s.modals.indexOf(r)!==-1}),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(r),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),r.modalRef&&i_(r.modalRef,!0),OZ(a.container,r.mountNode,r.modalRef,a.hiddenSiblingNodes,!1),this.containers.splice(o,1);else{var i=a.modals[a.modals.length-1];i.modalRef&&i_(i.modalRef,!1)}return n}},{key:"isTopModal",value:function(r){return this.modals.length>0&&this.modals[this.modals.length-1]===r}}]),t}();s_.default=Oje});var NZ=_(Mx=>{"use strict";var RF=$(),DZ=Ne();Object.defineProperty(Mx,"__esModule",{value:!0});Mx.default=void 0;var oo=DZ(z()),Rje=DZ(jr()),Eet=RF(je()),Dje=RF(td()),Nje=RF(Fs()),Tet=at();function Aje(t){var e=t.children,r=t.disableAutoFocus,n=r===void 0?!1:r,o=t.disableEnforceFocus,a=o===void 0?!1:o,i=t.disableRestoreFocus,s=i===void 0?!1:i,u=t.getDoc,l=t.isEnabled,c=t.open,f=oo.useRef(),d=oo.useRef(null),p=oo.useRef(null),m=oo.useRef(),g=oo.useRef(null),v=oo.useCallback(function(b){g.current=Rje.findDOMNode(b)},[]),h=(0,Nje.default)(e.ref,v),y=oo.useRef();return oo.useEffect(function(){y.current=c},[c]),!y.current&&c&&typeof window!="undefined"&&(m.current=u().activeElement),oo.useEffect(function(){if(c){var b=(0,Dje.default)(g.current);!n&&g.current&&!g.current.contains(b.activeElement)&&(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex",-1),g.current.focus());var E=function(){var P=g.current;if(P!==null){if(!b.hasFocus()||a||!l()||f.current){f.current=!1;return}g.current&&!g.current.contains(b.activeElement)&&g.current.focus()}},w=function(P){a||!l()||P.keyCode!==9||b.activeElement===g.current&&(f.current=!0,P.shiftKey?p.current.focus():d.current.focus())};b.addEventListener("focus",E,!0),b.addEventListener("keydown",w,!0);var S=setInterval(function(){E()},50);return function(){clearInterval(S),b.removeEventListener("focus",E,!0),b.removeEventListener("keydown",w,!0),s||(m.current&&m.current.focus&&m.current.focus(),m.current=null)}}},[n,a,s,l,c]),oo.createElement(oo.Fragment,null,oo.createElement("div",{tabIndex:0,ref:d,"data-test":"sentinelStart"}),oo.cloneElement(e,{ref:h}),oo.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelEnd"}))}var Mje=Aje;Mx.default=Mje});var AZ=_(DF=>{"use strict";var Fje=$();Object.defineProperty(DF,"__esModule",{value:!0});Object.defineProperty(DF,"default",{enumerable:!0,get:function(){return qje.default}});var qje=Fje(NZ())});var qZ=_(om=>{"use strict";var jje=Ne(),AF=$();Object.defineProperty(om,"__esModule",{value:!0});om.default=om.styles=void 0;var MZ=AF(We()),Lje=AF(ut()),FZ=jje(z()),Cet=AF(je()),NF={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}};om.styles=NF;var Bje=FZ.forwardRef(function(e,r){var n=e.invisible,o=n===void 0?!1:n,a=e.open,i=(0,Lje.default)(e,["invisible","open"]);return a?FZ.createElement("div",(0,MZ.default)({"aria-hidden":!0,ref:r},i,{style:(0,MZ.default)({},NF.root,o?NF.invisible:{},i.style)})):null}),Uje=Bje;om.default=Uje});var WZ=_(am=>{"use strict";var MF=Ne(),oa=$();Object.defineProperty(am,"__esModule",{value:!0});am.default=am.styles=void 0;var zje=oa(ut()),Fx=oa(We()),ao=MF(z()),Wje=MF(jr()),ket=oa(je()),jZ=An(),Pet=at(),Oet=oa(Kc()),$je=oa(td()),Hje=oa(IZ()),LZ=oa(Ax()),Gje=oa(Fs()),BZ=oa(Vc()),Vje=oa(tO()),UZ=MF(OF()),Kje=oa(AZ()),Yje=oa(qZ());function Jje(t){return t=typeof t=="function"?t():t,Wje.findDOMNode(t)}function Xje(t){return t.children?t.children.props.hasOwnProperty("in"):!1}var Zje=new UZ.default,zZ=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}};am.styles=zZ;var Qje=ao.forwardRef(function(e,r){var n=(0,jZ.useTheme)(),o=(0,jZ.getThemeProps)({name:"MuiModal",props:(0,Fx.default)({},e),theme:n}),a=o.BackdropComponent,i=a===void 0?Yje.default:a,s=o.BackdropProps,u=o.children,l=o.closeAfterTransition,c=l===void 0?!1:l,f=o.container,d=o.disableAutoFocus,p=d===void 0?!1:d,m=o.disableBackdropClick,g=m===void 0?!1:m,v=o.disableEnforceFocus,h=v===void 0?!1:v,y=o.disableEscapeKeyDown,b=y===void 0?!1:y,E=o.disablePortal,w=E===void 0?!1:E,S=o.disableRestoreFocus,C=S===void 0?!1:S,P=o.disableScrollLock,k=P===void 0?!1:P,O=o.hideBackdrop,F=O===void 0?!1:O,U=o.keepMounted,J=U===void 0?!1:U,K=o.manager,Z=K===void 0?Zje:K,G=o.onBackdropClick,Q=o.onClose,N=o.onEscapeKeyDown,j=o.onRendered,V=o.open,Y=(0,zje.default)(o,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),X=ao.useState(!0),ie=X[0],de=X[1],fe=ao.useRef({}),le=ao.useRef(null),_e=ao.useRef(null),we=(0,Gje.default)(_e,r),ge=Xje(o),Se=function(){return(0,$je.default)(le.current)},me=function(){return fe.current.modalRef=_e.current,fe.current.mountNode=le.current,fe.current},be=function(){Z.mount(me(),{disableScrollLock:k}),_e.current.scrollTop=0},Me=(0,BZ.default)(function(){var ue=Jje(f)||Se().body;Z.add(me(),ue),_e.current&&be()}),ve=ao.useCallback(function(){return Z.isTopModal(me())},[Z]),gt=(0,BZ.default)(function(ue){le.current=ue,ue&&(j&&j(),V&&ve()?be():(0,UZ.ariaHidden)(_e.current,!0))}),qe=ao.useCallback(function(){Z.remove(me())},[Z]);if(ao.useEffect(function(){return function(){qe()}},[qe]),ao.useEffect(function(){V?Me():(!ge||!c)&&qe()},[V,qe,ge,c,Me]),!J&&!V&&(!ge||ie))return null;var nt=function(){de(!1)},Qe=function(){de(!0),c&&qe()},he=function(Be){Be.target===Be.currentTarget&&(G&&G(Be),!g&&Q&&Q(Be,"backdropClick"))},Ue=function(Be){Be.key!=="Escape"||!ve()||(N&&N(Be),b||(Be.stopPropagation(),Q&&Q(Be,"escapeKeyDown")))},Ie=zZ(n||{zIndex:Vje.default}),Fe={};return u.props.tabIndex===void 0&&(Fe.tabIndex=u.props.tabIndex||"-1"),ge&&(Fe.onEnter=(0,LZ.default)(nt,u.props.onEnter),Fe.onExited=(0,LZ.default)(Qe,u.props.onExited)),ao.createElement(Hje.default,{ref:gt,container:f,disablePortal:w},ao.createElement("div",(0,Fx.default)({ref:we,onKeyDown:Ue,role:"presentation"},Y,{style:(0,Fx.default)({},Ie.root,!V&&ie?Ie.hidden:{},Y.style)}),F?null:ao.createElement(i,(0,Fx.default)({open:V,onClick:he},s)),ao.createElement(Kje.default,{disableEnforceFocus:h,disableAutoFocus:p,disableRestoreFocus:C,getDoc:Se,isEnabled:ve,open:V},ao.cloneElement(u,Fe))))}),eLe=Qje;am.default=eLe});var HZ=_(qx=>{"use strict";var $Z=$();Object.defineProperty(qx,"__esModule",{value:!0});Object.defineProperty(qx,"default",{enumerable:!0,get:function(){return tLe.default}});Object.defineProperty(qx,"ModalManager",{enumerable:!0,get:function(){return rLe.default}});var tLe=$Z(WZ()),rLe=$Z(OF())});var FF=_(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0});u_.getTransitionProps=oLe;u_.reflow=void 0;var nLe=function(e){return e.scrollTop};u_.reflow=nLe;function oLe(t,e){var r=t.timeout,n=t.style,o=n===void 0?{}:n;return{duration:o.transitionDuration||typeof r=="number"?r:r[e.mode]||0,delay:o.transitionDelay}}});var KZ=_(Lx=>{"use strict";var aLe=Ne(),im=$();Object.defineProperty(Lx,"__esModule",{value:!0});Lx.default=void 0;var qF=im(We()),iLe=im(rc()),sLe=im(ut()),jx=aLe(z()),Aet=im(je()),uLe=Qp(),GZ=Cf(),lLe=im(jS()),jF=FF(),VZ=im(Fs()),cLe={entering:{opacity:1},entered:{opacity:1}},dLe={enter:GZ.duration.enteringScreen,exit:GZ.duration.leavingScreen},fLe=jx.forwardRef(function(e,r){var n=e.children,o=e.disableStrictModeCompat,a=o===void 0?!1:o,i=e.in,s=e.onEnter,u=e.onEntered,l=e.onEntering,c=e.onExit,f=e.onExited,d=e.onExiting,p=e.style,m=e.TransitionComponent,g=m===void 0?uLe.Transition:m,v=e.timeout,h=v===void 0?dLe:v,y=(0,sLe.default)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),b=(0,lLe.default)(),E=b.unstable_strictMode&&!a,w=jx.useRef(null),S=(0,VZ.default)(n.ref,r),C=(0,VZ.default)(E?w:void 0,S),P=function(G){return function(Q,N){if(G){var j=E?[w.current,Q]:[Q,N],V=(0,iLe.default)(j,2),Y=V[0],X=V[1];X===void 0?G(Y):G(Y,X)}}},k=P(l),O=P(function(Z,G){(0,jF.reflow)(Z);var Q=(0,jF.getTransitionProps)({style:p,timeout:h},{mode:"enter"});Z.style.webkitTransition=b.transitions.create("opacity",Q),Z.style.transition=b.transitions.create("opacity",Q),s&&s(Z,G)}),F=P(u),U=P(d),J=P(function(Z){var G=(0,jF.getTransitionProps)({style:p,timeout:h},{mode:"exit"});Z.style.webkitTransition=b.transitions.create("opacity",G),Z.style.transition=b.transitions.create("opacity",G),c&&c(Z)}),K=P(f);return jx.createElement(g,(0,qF.default)({appear:!0,in:i,nodeRef:E?w:void 0,onEnter:O,onEntered:F,onEntering:k,onExit:J,onExited:K,onExiting:U,timeout:h},y),function(Z,G){return jx.cloneElement(n,(0,qF.default)({style:(0,qF.default)({opacity:0,visibility:Z==="exited"&&!i?"hidden":void 0},cLe[Z],p,n.props.style),ref:C},G))})}),pLe=fLe;Lx.default=pLe});var BF=_(LF=>{"use strict";var mLe=$();Object.defineProperty(LF,"__esModule",{value:!0});Object.defineProperty(LF,"default",{enumerable:!0,get:function(){return hLe.default}});var hLe=mLe(KZ())});var JZ=_(sm=>{"use strict";var gLe=Ne(),um=$();Object.defineProperty(sm,"__esModule",{value:!0});sm.default=sm.styles=void 0;var vLe=um(We()),yLe=um(ut()),UF=gLe(z()),qet=um(je()),_Le=um(Le()),bLe=um(Mt()),SLe=um(BF()),YZ={root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}};sm.styles=YZ;var ELe=UF.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.invisible,s=i===void 0?!1:i,u=e.open,l=e.transitionDuration,c=e.TransitionComponent,f=c===void 0?SLe.default:c,d=(0,yLe.default)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return UF.createElement(f,(0,vLe.default)({in:u,timeout:l},d),UF.createElement("div",{className:(0,_Le.default)(o.root,a,s&&o.invisible),"aria-hidden":!0,ref:r},n))}),TLe=(0,bLe.default)(YZ,{name:"MuiBackdrop"})(ELe);sm.default=TLe});var XZ=_(zF=>{"use strict";var wLe=$();Object.defineProperty(zF,"__esModule",{value:!0});Object.defineProperty(zF,"default",{enumerable:!0,get:function(){return xLe.default}});var xLe=wLe(JZ())});var tQ=_(lm=>{"use strict";var CLe=Ne(),l_=$();Object.defineProperty(lm,"__esModule",{value:!0});lm.default=lm.styles=void 0;var ILe=l_(ut()),QZ=l_(We()),ZZ=CLe(z()),Bet=l_(je()),kLe=l_(Le()),Uet=at(),PLe=l_(Mt()),eQ=function(e){var r={};return e.shadows.forEach(function(n,o){r["elevation".concat(o)]={boxShadow:n}}),(0,QZ.default)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},r)};lm.styles=eQ;var OLe=ZZ.forwardRef(function(e,r){var n=e.classes,o=e.className,a=e.component,i=a===void 0?"div":a,s=e.square,u=s===void 0?!1:s,l=e.elevation,c=l===void 0?1:l,f=e.variant,d=f===void 0?"elevation":f,p=(0,ILe.default)(e,["classes","className","component","square","elevation","variant"]);return ZZ.createElement(i,(0,QZ.default)({className:(0,kLe.default)(n.root,o,d==="outlined"?n.outlined:n["elevation".concat(c)],!u&&n.rounded),ref:r},p))}),RLe=(0,PLe.default)(eQ,{name:"MuiPaper"})(OLe);lm.default=RLe});var Bx=_(WF=>{"use strict";var DLe=$();Object.defineProperty(WF,"__esModule",{value:!0});Object.defineProperty(WF,"default",{enumerable:!0,get:function(){return NLe.default}});var NLe=DLe(tQ())});var oQ=_(dm=>{"use strict";var ALe=Ne(),aa=$();Object.defineProperty(dm,"__esModule",{value:!0});dm.default=dm.styles=void 0;var Ux=aa(We()),MLe=aa(ut()),c_=aa(fo()),cm=ALe(z()),$et=aa(je()),$F=aa(Le()),FLe=aa(Mt()),HF=aa(na()),Het=aa(Kc()),qLe=aa(HZ()),jLe=aa(XZ()),LLe=aa(BF()),rQ=Cf(),BLe=aa(Bx()),nQ=function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":(0,c_.default)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":(0,c_.default)({},e.breakpoints.down(e.breakpoints.values.sm+32*2),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":(0,c_.default)({},e.breakpoints.down(e.breakpoints.values.md+32*2),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":(0,c_.default)({},e.breakpoints.down(e.breakpoints.values.lg+32*2),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":(0,c_.default)({},e.breakpoints.down(e.breakpoints.values.xl+32*2),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}};dm.styles=nQ;var ULe={enter:rQ.duration.enteringScreen,exit:rQ.duration.leavingScreen},zLe=cm.forwardRef(function(e,r){var n=e.BackdropProps,o=e.children,a=e.classes,i=e.className,s=e.disableBackdropClick,u=s===void 0?!1:s,l=e.disableEscapeKeyDown,c=l===void 0?!1:l,f=e.fullScreen,d=f===void 0?!1:f,p=e.fullWidth,m=p===void 0?!1:p,g=e.maxWidth,v=g===void 0?"sm":g,h=e.onBackdropClick,y=e.onClose,b=e.onEnter,E=e.onEntered,w=e.onEntering,S=e.onEscapeKeyDown,C=e.onExit,P=e.onExited,k=e.onExiting,O=e.open,F=e.PaperComponent,U=F===void 0?BLe.default:F,J=e.PaperProps,K=J===void 0?{}:J,Z=e.scroll,G=Z===void 0?"paper":Z,Q=e.TransitionComponent,N=Q===void 0?LLe.default:Q,j=e.transitionDuration,V=j===void 0?ULe:j,Y=e.TransitionProps,X=e["aria-describedby"],ie=e["aria-labelledby"],de=(0,MLe.default)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),fe=cm.useRef(),le=function(ge){fe.current=ge.target},_e=function(ge){ge.target===ge.currentTarget&&ge.target===fe.current&&(fe.current=null,h&&h(ge),!u&&y&&y(ge,"backdropClick"))};return cm.createElement(qLe.default,(0,Ux.default)({className:(0,$F.default)(a.root,i),BackdropComponent:jLe.default,BackdropProps:(0,Ux.default)({transitionDuration:V},n),closeAfterTransition:!0},u?{disableBackdropClick:u}:{},{disableEscapeKeyDown:c,onEscapeKeyDown:S,onClose:y,open:O,ref:r},de),cm.createElement(N,(0,Ux.default)({appear:!0,in:O,timeout:V,onEnter:b,onEntering:w,onEntered:E,onExit:C,onExiting:k,onExited:P,role:"none presentation"},Y),cm.createElement("div",{className:(0,$F.default)(a.container,a["scroll".concat((0,HF.default)(G))]),onMouseUp:_e,onMouseDown:le},cm.createElement(U,(0,Ux.default)({elevation:24,role:"dialog","aria-describedby":X,"aria-labelledby":ie},K,{className:(0,$F.default)(a.paper,a["paperScroll".concat((0,HF.default)(G))],a["paperWidth".concat((0,HF.default)(String(v)))],K.className,d&&a.paperFullScreen,m&&a.paperFullWidth)}),o))))}),WLe=(0,FLe.default)(nQ,{name:"MuiDialog"})(zLe);dm.default=WLe});var VF=_(GF=>{"use strict";var $Le=$();Object.defineProperty(GF,"__esModule",{value:!0});Object.defineProperty(GF,"default",{enumerable:!0,get:function(){return HLe.default}});var HLe=$Le(oQ())});var sQ=_(fm=>{"use strict";var GLe=Ne(),d_=$();Object.defineProperty(fm,"__esModule",{value:!0});fm.default=fm.styles=void 0;var VLe=d_(We()),KLe=d_(ut()),aQ=GLe(z()),Ket=d_(je()),YLe=d_(Le()),JLe=d_(Mt()),iQ={root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}};fm.styles=iQ;var XLe=aQ.forwardRef(function(e,r){var n=e.disableSpacing,o=n===void 0?!1:n,a=e.classes,i=e.className,s=(0,KLe.default)(e,["disableSpacing","classes","className"]);return aQ.createElement("div",(0,VLe.default)({className:(0,YLe.default)(a.root,i,!o&&a.spacing),ref:r},s))}),ZLe=(0,JLe.default)(iQ,{name:"MuiDialogActions"})(XLe);fm.default=ZLe});var YF=_(KF=>{"use strict";var QLe=$();Object.defineProperty(KF,"__esModule",{value:!0});Object.defineProperty(KF,"default",{enumerable:!0,get:function(){return eBe.default}});var eBe=QLe(sQ())});var cQ=_(pm=>{"use strict";var tBe=Ne(),f_=$();Object.defineProperty(pm,"__esModule",{value:!0});pm.default=pm.styles=void 0;var rBe=f_(We()),nBe=f_(ut()),uQ=tBe(z()),Xet=f_(je()),oBe=f_(Le()),aBe=f_(Mt()),lQ=function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}};pm.styles=lQ;var iBe=uQ.forwardRef(function(e,r){var n=e.classes,o=e.className,a=e.dividers,i=a===void 0?!1:a,s=(0,nBe.default)(e,["classes","className","dividers"]);return uQ.createElement("div",(0,rBe.default)({className:(0,oBe.default)(n.root,o,i&&n.dividers),ref:r},s))}),sBe=(0,aBe.default)(lQ,{name:"MuiDialogContent"})(iBe);pm.default=sBe});var XF=_(JF=>{"use strict";var uBe=$();Object.defineProperty(JF,"__esModule",{value:!0});Object.defineProperty(JF,"default",{enumerable:!0,get:function(){return lBe.default}});var lBe=uBe(cQ())});var mQ=_(mm=>{"use strict";var cBe=Ne(),hm=$();Object.defineProperty(mm,"__esModule",{value:!0});mm.default=mm.styles=void 0;var dBe=hm(We()),fBe=hm(ut()),dQ=cBe(z()),ett=hm(je()),pBe=hm(Le()),mBe=hm(Mt()),ZF=hm(na()),pQ=function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}};mm.styles=pQ;var fQ={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},hBe=dQ.forwardRef(function(e,r){var n=e.align,o=n===void 0?"inherit":n,a=e.classes,i=e.className,s=e.color,u=s===void 0?"initial":s,l=e.component,c=e.display,f=c===void 0?"initial":c,d=e.gutterBottom,p=d===void 0?!1:d,m=e.noWrap,g=m===void 0?!1:m,v=e.paragraph,h=v===void 0?!1:v,y=e.variant,b=y===void 0?"body1":y,E=e.variantMapping,w=E===void 0?fQ:E,S=(0,fBe.default)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=l||(h?"p":w[b]||fQ[b])||"span";return dQ.createElement(C,(0,dBe.default)({className:(0,pBe.default)(a.root,i,b!=="inherit"&&a[b],u!=="initial"&&a["color".concat((0,ZF.default)(u))],g&&a.noWrap,p&&a.gutterBottom,h&&a.paragraph,o!=="inherit"&&a["align".concat((0,ZF.default)(o))],f!=="initial"&&a["display".concat((0,ZF.default)(f))]),ref:r},S))}),gBe=(0,mBe.default)(pQ,{name:"MuiTypography"})(hBe);mm.default=gBe});var p_=_(QF=>{"use strict";var vBe=$();Object.defineProperty(QF,"__esModule",{value:!0});Object.defineProperty(QF,"default",{enumerable:!0,get:function(){return yBe.default}});var yBe=vBe(mQ())});var vQ=_(gm=>{"use strict";var _Be=Ne(),zx=$();Object.defineProperty(gm,"__esModule",{value:!0});gm.default=gm.styles=void 0;var bBe=zx(We()),hQ=_Be(z()),ntt=zx(je()),SBe=zx(Mt()),EBe=zx(p_()),gQ={root:{marginBottom:12}};gm.styles=gQ;var TBe=hQ.forwardRef(function(e,r){return hQ.createElement(EBe.default,(0,bBe.default)({component:"p",variant:"body1",color:"textSecondary",ref:r},e))}),wBe=(0,SBe.default)(gQ,{name:"MuiDialogContentText"})(TBe);gm.default=wBe});var tq=_(eq=>{"use strict";var xBe=$();Object.defineProperty(eq,"__esModule",{value:!0});Object.defineProperty(eq,"default",{enumerable:!0,get:function(){return CBe.default}});var CBe=xBe(vQ())});var _Q=_(vm=>{"use strict";var IBe=Ne(),ym=$();Object.defineProperty(vm,"__esModule",{value:!0});vm.default=vm.styles=void 0;var kBe=ym(We()),PBe=ym(ut()),rq=IBe(z()),itt=ym(je()),OBe=ym(Le()),RBe=ym(Mt()),DBe=ym(p_()),yQ={root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}};vm.styles=yQ;var NBe=rq.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.disableTypography,s=i===void 0?!1:i,u=(0,PBe.default)(e,["children","classes","className","disableTypography"]);return rq.createElement("div",(0,kBe.default)({className:(0,OBe.default)(o.root,a),ref:r},u),s?n:rq.createElement(DBe.default,{component:"h2",variant:"h6"},n))}),ABe=(0,RBe.default)(yQ,{name:"MuiDialogTitle"})(NBe);vm.default=ABe});var oq=_(nq=>{"use strict";var MBe=$();Object.defineProperty(nq,"__esModule",{value:!0});Object.defineProperty(nq,"default",{enumerable:!0,get:function(){return FBe.default}});var FBe=MBe(_Q())});var TQ=_(_m=>{"use strict";var qBe=Ne(),bm=$();Object.defineProperty(_m,"__esModule",{value:!0});_m.default=_m.styles=void 0;var jBe=bm(We()),LBe=bm(ut()),aq=qBe(z()),ltt=bm(je()),BBe=bm(Le()),ctt=at(),UBe=bm(Mt()),bQ=bm(na()),SQ=function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}};_m.styles=SQ;var EQ=aq.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.color,s=i===void 0?"inherit":i,u=e.component,l=u===void 0?"svg":u,c=e.fontSize,f=c===void 0?"medium":c,d=e.htmlColor,p=e.titleAccess,m=e.viewBox,g=m===void 0?"0 0 24 24":m,v=(0,LBe.default)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return aq.createElement(l,(0,jBe.default)({className:(0,BBe.default)(o.root,a,s!=="inherit"&&o["color".concat((0,bQ.default)(s))],f!=="default"&&f!=="medium"&&o["fontSize".concat((0,bQ.default)(f))]),focusable:"false",viewBox:g,color:d,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r},v),n,p?aq.createElement("title",null,p):null)});EQ.muiName="SvgIcon";var zBe=(0,UBe.default)(SQ,{name:"MuiSvgIcon"})(EQ);_m.default=zBe});var wQ=_(iq=>{"use strict";var WBe=$();Object.defineProperty(iq,"__esModule",{value:!0});Object.defineProperty(iq,"default",{enumerable:!0,get:function(){return $Be.default}});var $Be=WBe(TQ())});var Sm=_(lq=>{"use strict";var uq=$();Object.defineProperty(lq,"__esModule",{value:!0});lq.default=GBe;var HBe=uq(We()),sq=uq(z()),xQ=uq(wQ());function GBe(t,e){var r=function(o,a){return sq.default.createElement(xQ.default,(0,HBe.default)({ref:a},o),t)};return r.muiName=xQ.default.muiName,sq.default.memo(sq.default.forwardRef(r))}});var CQ=_(cq=>{"use strict";Object.defineProperty(cq,"__esModule",{value:!0});cq.default=VBe;function VBe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:166,r;function n(){for(var o=arguments.length,a=new Array(o),i=0;i{"use strict";var KBe=Ne();Object.defineProperty(dq,"__esModule",{value:!0});dq.default=JBe;var YBe=KBe(z());function JBe(t,e){return YBe.isValidElement(t)&&e.indexOf(t.type.muiName)!==-1}});var IQ=_(pq=>{"use strict";Object.defineProperty(pq,"__esModule",{value:!0});pq.default=XBe;function XBe(t){return function(){return null};var e}});var kQ=_(mq=>{"use strict";Object.defineProperty(mq,"__esModule",{value:!0});mq.default=ZBe;function ZBe(t,e,r,n,o){return null;var a}});var vq=_(gq=>{"use strict";var QBe=Ne();Object.defineProperty(gq,"__esModule",{value:!0});gq.default=eUe;var hq=QBe(z());function eUe(t){var e=t.controlled,r=t.default,n=t.name,o=t.state,a=o===void 0?"value":o,i=hq.useRef(e!==void 0),s=i.current,u=hq.useState(r),l=u[0],c=u[1],f=s?e:l;if(0)var d,p;var m=hq.useCallback(function(g){s||c(g)},[]);return[f,m]}});var OQ=_(yq=>{"use strict";var tUe=Ne();Object.defineProperty(yq,"__esModule",{value:!0});yq.default=rUe;var PQ=tUe(z());function rUe(t){var e=PQ.useState(t),r=e[0],n=e[1],o=t||r;return PQ.useEffect(function(){r==null&&n("mui-".concat(Math.round(Math.random()*1e5)))},[r]),o}});var m_=_(Qr=>{"use strict";var xn=$();Object.defineProperty(Qr,"__esModule",{value:!0});Object.defineProperty(Qr,"capitalize",{enumerable:!0,get:function(){return nUe.default}});Object.defineProperty(Qr,"createChainedFunction",{enumerable:!0,get:function(){return oUe.default}});Object.defineProperty(Qr,"createSvgIcon",{enumerable:!0,get:function(){return aUe.default}});Object.defineProperty(Qr,"debounce",{enumerable:!0,get:function(){return iUe.default}});Object.defineProperty(Qr,"deprecatedPropType",{enumerable:!0,get:function(){return sUe.default}});Object.defineProperty(Qr,"isMuiElement",{enumerable:!0,get:function(){return uUe.default}});Object.defineProperty(Qr,"ownerDocument",{enumerable:!0,get:function(){return lUe.default}});Object.defineProperty(Qr,"ownerWindow",{enumerable:!0,get:function(){return cUe.default}});Object.defineProperty(Qr,"requirePropFactory",{enumerable:!0,get:function(){return dUe.default}});Object.defineProperty(Qr,"setRef",{enumerable:!0,get:function(){return fUe.default}});Object.defineProperty(Qr,"unsupportedProp",{enumerable:!0,get:function(){return pUe.default}});Object.defineProperty(Qr,"useControlled",{enumerable:!0,get:function(){return mUe.default}});Object.defineProperty(Qr,"useEventCallback",{enumerable:!0,get:function(){return hUe.default}});Object.defineProperty(Qr,"useForkRef",{enumerable:!0,get:function(){return gUe.default}});Object.defineProperty(Qr,"unstable_useId",{enumerable:!0,get:function(){return vUe.default}});Object.defineProperty(Qr,"useIsFocusVisible",{enumerable:!0,get:function(){return yUe.default}});var nUe=xn(na()),oUe=xn(Ax()),aUe=xn(Sm()),iUe=xn(CQ()),sUe=xn(Kc()),uUe=xn(fq()),lUe=xn(td()),cUe=xn(kF()),dUe=xn(IQ()),fUe=xn(cx()),pUe=xn(kQ()),mUe=xn(vq()),hUe=xn(Vc()),gUe=xn(Fs()),vUe=xn(OQ()),yUe=xn(tF())});var ia=_(_q=>{"use strict";Object.defineProperty(_q,"__esModule",{value:!0});Object.defineProperty(_q,"default",{enumerable:!0,get:function(){return _Ue.createSvgIcon}});var _Ue=m_()});var bq=_(Wx=>{"use strict";var bUe=$(),SUe=Ne();Object.defineProperty(Wx,"__esModule",{value:!0});Wx.default=void 0;var EUe=SUe(z()),TUe=bUe(ia()),wUe=(0,TUe.default)(EUe.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");Wx.default=wUe});var NQ=_($x=>{"use strict";var Cn=$();Object.defineProperty($x,"__esModule",{value:!0});$x.default=void 0;var xUe=Cn(ho()),CUe=Cn(Yn()),IUe=Cn(Au()),kUe=Cn(Mu()),RQ=Cn(cs()),fl=Cn(z()),Em=Cn(je()),PUe=Cn(Mt()),OUe=Cn(rm()),RUe=Cn(VF()),DUe=Cn(YF()),NUe=Cn(XF()),AUe=Cn(tq()),MUe=Cn(oq()),FUe=Cn(bq()),Sq=Cn(_o());function qUe(t){var e=jUe();return function(){var n=(0,RQ.default)(t),o;if(e){var a=(0,RQ.default)(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return(0,kUe.default)(this,o)}}function jUe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var LUe=function(e){return{titleBackground:{},titleColor:{}}},DQ=function(t){(0,IUe.default)(r,t);var e=qUe(r);function r(){return(0,xUe.default)(this,r),e.apply(this,arguments)}return(0,CUe.default)(r,[{key:"handleOk",value:function(){this.props.onClose&&this.props.onClose()}},{key:"render",value:function(){var o=this;return fl.default.createElement(RUe.default,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:function(){return o.handleOk()},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},fl.default.createElement(MUe.default,{className:this.props.classes.titleBackground,classes:{root:this.props.classes.titleColor},id:"alert-dialog-title"},this.props.title||Sq.default.t("ra_Error")),fl.default.createElement(NUe.default,null,fl.default.createElement(AUe.default,{id:"alert-dialog-description"},this.props.text||Sq.default.t("ra_Unknown error!"))),fl.default.createElement(DUe.default,null,fl.default.createElement(OUe.default,{variant:"contained",onClick:function(){return o.handleOk()},color:"primary",autoFocus:!0,startIcon:fl.default.createElement(FUe.default,null)},Sq.default.t("ra_Ok"))))}}]),r}(fl.default.Component);DQ.propTypes={onClose:Em.default.func.isRequired,title:Em.default.string,text:Em.default.oneOfType([Em.default.string,Em.default.element]),icon:Em.default.object};var BUe=(0,PUe.default)(LUe)(DQ),UUe=BUe;$x.default=UUe});var FQ=_(Gx=>{"use strict";var Hx=$(),MQ=Ne();Object.defineProperty(Gx,"__esModule",{value:!0});Gx.default=void 0;var Ma=MQ(z()),zUe=MQ(jr()),wtt=Hx(je()),Eq=Hx(td()),WUe=Hx(Fs()),$Ue=Hx(Vc()),xtt=at();function AQ(t){return t.substring(2).toLowerCase()}function HUe(t){return document.documentElement.clientWidth-1;else{var w=(0,Eq.default)(c.current);E=!w.documentElement.contains(y.target)||c.current.contains(y.target)}!E&&(n||!b)&&i(y)}}),v=function(b){return function(E){d.current=!0;var w=e.props[b];w&&w(E)}},h={ref:m};return u!==!1&&(h[u]=v(u)),Ma.useEffect(function(){if(u!==!1){var y=AQ(u),b=(0,Eq.default)(c.current),E=function(){l.current=!0};return b.addEventListener(y,g),b.addEventListener("touchmove",E),function(){b.removeEventListener(y,g),b.removeEventListener("touchmove",E)}}},[g,u]),a!==!1&&(h[a]=v(a)),Ma.useEffect(function(){if(a!==!1){var y=AQ(a),b=(0,Eq.default)(c.current);return b.addEventListener(y,g),function(){b.removeEventListener(y,g)}}},[g,a]),Ma.createElement(Ma.Fragment,null,Ma.cloneElement(e,h))}var VUe=GUe;Gx.default=VUe});var qQ=_(Tq=>{"use strict";var KUe=$();Object.defineProperty(Tq,"__esModule",{value:!0});Object.defineProperty(Tq,"default",{enumerable:!0,get:function(){return YUe.default}});var YUe=KUe(FQ())});var BQ=_(Vx=>{"use strict";var JUe=Ne(),Tm=$();Object.defineProperty(Vx,"__esModule",{value:!0});Vx.default=void 0;var wq=Tm(We()),XUe=Tm(rc()),ZUe=Tm(ut()),nd=JUe(z()),ktt=Tm(je()),QUe=Qp(),e5e=Tm(jS()),xq=FF(),jQ=Tm(Fs());function Cq(t){return"scale(".concat(t,", ").concat(Math.pow(t,2),")")}var t5e={entering:{opacity:1,transform:Cq(1)},entered:{opacity:1,transform:"none"}},LQ=nd.forwardRef(function(e,r){var n=e.children,o=e.disableStrictModeCompat,a=o===void 0?!1:o,i=e.in,s=e.onEnter,u=e.onEntered,l=e.onEntering,c=e.onExit,f=e.onExited,d=e.onExiting,p=e.style,m=e.timeout,g=m===void 0?"auto":m,v=e.TransitionComponent,h=v===void 0?QUe.Transition:v,y=(0,ZUe.default)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=nd.useRef(),E=nd.useRef(),w=(0,e5e.default)(),S=w.unstable_strictMode&&!a,C=nd.useRef(null),P=(0,jQ.default)(n.ref,r),k=(0,jQ.default)(S?C:void 0,P),O=function(j){return function(V,Y){if(j){var X=S?[C.current,V]:[V,Y],ie=(0,XUe.default)(X,2),de=ie[0],fe=ie[1];fe===void 0?j(de):j(de,fe)}}},F=O(l),U=O(function(N,j){(0,xq.reflow)(N);var V=(0,xq.getTransitionProps)({style:p,timeout:g},{mode:"enter"}),Y=V.duration,X=V.delay,ie;g==="auto"?(ie=w.transitions.getAutoHeightDuration(N.clientHeight),E.current=ie):ie=Y,N.style.transition=[w.transitions.create("opacity",{duration:ie,delay:X}),w.transitions.create("transform",{duration:ie*.666,delay:X})].join(","),s&&s(N,j)}),J=O(u),K=O(d),Z=O(function(N){var j=(0,xq.getTransitionProps)({style:p,timeout:g},{mode:"exit"}),V=j.duration,Y=j.delay,X;g==="auto"?(X=w.transitions.getAutoHeightDuration(N.clientHeight),E.current=X):X=V,N.style.transition=[w.transitions.create("opacity",{duration:X,delay:Y}),w.transitions.create("transform",{duration:X*.666,delay:Y||X*.333})].join(","),N.style.opacity="0",N.style.transform=Cq(.75),c&&c(N)}),G=O(f),Q=function(j,V){var Y=S?j:V;g==="auto"&&(b.current=setTimeout(Y,E.current||0))};return nd.useEffect(function(){return function(){clearTimeout(b.current)}},[]),nd.createElement(h,(0,wq.default)({appear:!0,in:i,nodeRef:S?C:void 0,onEnter:U,onEntered:J,onEntering:F,onExit:Z,onExited:G,onExiting:K,addEndListener:Q,timeout:g==="auto"?null:g},y),function(N,j){return nd.cloneElement(n,(0,wq.default)({style:(0,wq.default)({opacity:0,transform:Cq(.75),visibility:N==="exited"&&!i?"hidden":void 0},t5e[N],p,n.props.style),ref:k},j))})});LQ.muiSupportAuto=!0;var r5e=LQ;Vx.default=r5e});var UQ=_(Iq=>{"use strict";var n5e=$();Object.defineProperty(Iq,"__esModule",{value:!0});Object.defineProperty(Iq,"default",{enumerable:!0,get:function(){return o5e.default}});var o5e=n5e(BQ())});var $Q=_(wm=>{"use strict";var a5e=Ne(),od=$();Object.defineProperty(wm,"__esModule",{value:!0});wm.default=wm.styles=void 0;var i5e=od(ut()),s5e=od(fo()),zQ=od(We()),Kx=a5e(z()),Rtt=od(je()),u5e=od(Le()),l5e=od(Mt()),c5e=od(Bx()),d5e=Ql(),WQ=function(e){var r=e.palette.type==="light"?.8:.98,n=(0,d5e.emphasize)(e.palette.background.default,r);return{root:(0,zQ.default)({},e.typography.body2,(0,s5e.default)({color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}};wm.styles=WQ;var f5e=Kx.forwardRef(function(e,r){var n=e.action,o=e.classes,a=e.className,i=e.message,s=e.role,u=s===void 0?"alert":s,l=(0,i5e.default)(e,["action","classes","className","message","role"]);return Kx.createElement(c5e.default,(0,zQ.default)({role:u,square:!0,elevation:6,className:(0,u5e.default)(o.root,a),ref:r},l),Kx.createElement("div",{className:o.message},i),n?Kx.createElement("div",{className:o.action},n):null)}),p5e=(0,l5e.default)(WQ,{name:"MuiSnackbarContent"})(f5e);wm.default=p5e});var HQ=_(kq=>{"use strict";var m5e=$();Object.defineProperty(kq,"__esModule",{value:!0});Object.defineProperty(kq,"default",{enumerable:!0,get:function(){return h5e.default}});var h5e=m5e($Q())});var XQ=_(Cm=>{"use strict";var g5e=Ne(),ko=$();Object.defineProperty(Cm,"__esModule",{value:!0});Cm.default=Cm.styles=void 0;var v5e=ko(ut()),xm=ko(fo()),In=ko(We()),wi=g5e(z()),Att=ko(je()),y5e=ko(Le()),_5e=ko(Mt()),GQ=Cf(),b5e=ko(qQ()),VQ=ko(Vc()),KQ=ko(na()),YQ=ko(Ax()),Mtt=ko(Kc()),S5e=ko(UQ()),E5e=ko(HQ()),JQ=function(e){var r={top:8},n={bottom:8},o={justifyContent:"flex-end"},a={justifyContent:"flex-start"},i={top:24},s={bottom:24},u={right:24},l={left:24},c={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:(0,In.default)({},r,(0,xm.default)({},e.breakpoints.up("sm"),(0,In.default)({},i,c))),anchorOriginBottomCenter:(0,In.default)({},n,(0,xm.default)({},e.breakpoints.up("sm"),(0,In.default)({},s,c))),anchorOriginTopRight:(0,In.default)({},r,o,(0,xm.default)({},e.breakpoints.up("sm"),(0,In.default)({left:"auto"},i,u))),anchorOriginBottomRight:(0,In.default)({},n,o,(0,xm.default)({},e.breakpoints.up("sm"),(0,In.default)({left:"auto"},s,u))),anchorOriginTopLeft:(0,In.default)({},r,a,(0,xm.default)({},e.breakpoints.up("sm"),(0,In.default)({right:"auto"},i,l))),anchorOriginBottomLeft:(0,In.default)({},n,a,(0,xm.default)({},e.breakpoints.up("sm"),(0,In.default)({right:"auto"},s,l)))}};Cm.styles=JQ;var T5e=wi.forwardRef(function(e,r){var n=e.action,o=e.anchorOrigin;o=o===void 0?{vertical:"bottom",horizontal:"center"}:o;var a=o.vertical,i=o.horizontal,s=e.autoHideDuration,u=s===void 0?null:s,l=e.children,c=e.classes,f=e.className,d=e.ClickAwayListenerProps,p=e.ContentProps,m=e.disableWindowBlurListener,g=m===void 0?!1:m,v=e.message,h=e.onClose,y=e.onEnter,b=e.onEntered,E=e.onEntering,w=e.onExit,S=e.onExited,C=e.onExiting,P=e.onMouseEnter,k=e.onMouseLeave,O=e.open,F=e.resumeHideDuration,U=e.TransitionComponent,J=U===void 0?S5e.default:U,K=e.transitionDuration,Z=K===void 0?{enter:GQ.duration.enteringScreen,exit:GQ.duration.leavingScreen}:K,G=e.TransitionProps,Q=(0,v5e.default)(e,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),N=wi.useRef(),j=wi.useState(!0),V=j[0],Y=j[1],X=(0,VQ.default)(function(){h&&h.apply(void 0,arguments)}),ie=(0,VQ.default)(function(me){!h||me==null||(clearTimeout(N.current),N.current=setTimeout(function(){X(null,"timeout")},me))});wi.useEffect(function(){return O&&ie(u),function(){clearTimeout(N.current)}},[O,u,ie]);var de=function(){clearTimeout(N.current)},fe=wi.useCallback(function(){u!=null&&ie(F!=null?F:u*.5)},[u,F,ie]),le=function(be){P&&P(be),de()},_e=function(be){k&&k(be),fe()},we=function(be){h&&h(be,"clickaway")},ge=function(){Y(!0)},Se=function(){Y(!1)};return wi.useEffect(function(){if(!g&&O)return window.addEventListener("focus",fe),window.addEventListener("blur",de),function(){window.removeEventListener("focus",fe),window.removeEventListener("blur",de)}},[g,fe,O]),!O&&V?null:wi.createElement(b5e.default,(0,In.default)({onClickAway:we},d),wi.createElement("div",(0,In.default)({className:(0,y5e.default)(c.root,c["anchorOrigin".concat((0,KQ.default)(a)).concat((0,KQ.default)(i))],f),onMouseEnter:le,onMouseLeave:_e,ref:r},Q),wi.createElement(J,(0,In.default)({appear:!0,in:O,onEnter:(0,YQ.default)(Se,y),onEntered:b,onEntering:E,onExit:w,onExited:(0,YQ.default)(ge,S),onExiting:C,timeout:Z,direction:a==="top"?"down":"up"},G),l||wi.createElement(E5e.default,(0,In.default)({message:v,action:n},p)))))}),w5e=(0,_5e.default)(JQ,{flip:!1,name:"MuiSnackbar"})(T5e);Cm.default=w5e});var ZQ=_(Pq=>{"use strict";var x5e=$();Object.defineProperty(Pq,"__esModule",{value:!0});Object.defineProperty(Pq,"default",{enumerable:!0,get:function(){return C5e.default}});var C5e=x5e(XQ())});var tee=_(Im=>{"use strict";var I5e=Ne(),ad=$();Object.defineProperty(Im,"__esModule",{value:!0});Im.default=Im.styles=void 0;var k5e=ad(We()),P5e=ad(ut()),Oq=I5e(z()),jtt=ad(je()),O5e=ad(Le()),Ltt=at(),R5e=ad(Mt()),Rq=Ql(),D5e=ad(Ox()),QQ=ad(na()),eee=function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,Rq.alpha)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Rq.alpha)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Rq.alpha)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}};Im.styles=eee;var N5e=Oq.forwardRef(function(e,r){var n=e.edge,o=n===void 0?!1:n,a=e.children,i=e.classes,s=e.className,u=e.color,l=u===void 0?"default":u,c=e.disabled,f=c===void 0?!1:c,d=e.disableFocusRipple,p=d===void 0?!1:d,m=e.size,g=m===void 0?"medium":m,v=(0,P5e.default)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return Oq.createElement(D5e.default,(0,k5e.default)({className:(0,O5e.default)(i.root,s,l!=="default"&&i["color".concat((0,QQ.default)(l))],f&&i.disabled,g==="small"&&i["size".concat((0,QQ.default)(g))],{start:i.edgeStart,end:i.edgeEnd}[o]),centerRipple:!0,focusRipple:!p,disabled:f,ref:r},v),Oq.createElement("span",{className:i.label},a))}),A5e=(0,R5e.default)(eee,{name:"MuiIconButton"})(N5e);Im.default=A5e});var h_=_(Dq=>{"use strict";var M5e=$();Object.defineProperty(Dq,"__esModule",{value:!0});Object.defineProperty(Dq,"default",{enumerable:!0,get:function(){return F5e.default}});var F5e=M5e(tee())});var Jx=_(Yx=>{"use strict";var q5e=$(),j5e=Ne();Object.defineProperty(Yx,"__esModule",{value:!0});Yx.default=void 0;var L5e=j5e(z()),B5e=q5e(ia()),U5e=(0,B5e.default)(L5e.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");Yx.default=U5e});var ree=_(Xx=>{"use strict";Object.defineProperty(Xx,"__esModule",{value:!0});Xx.default=void 0;function z5e(){var t=` +`),""];return o.forEach(s=>{let u=s.stacktrace;u&&u.frames&&(u.frames=u.frames.map(l=>GJ(l,i,n,e)))}),t}function GJ(t,e,r,n){return t.filename!==r||!t.lineno||!e.length||L2.addContextToFrame(e,t,n),t}Vy.ContextLines=N2e;Vy.applySourceContextToFrame=GJ;Vy.contextLinesIntegration=HJ});var B2=_(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});var KJ=QY(),YJ=nJ(),JJ=pJ(),XJ=gJ(),M2e=_J(),ZJ=wJ(),QJ=PJ(),eX=NJ(),F2e=MJ(),tX=zJ(),rX=VJ();hr.CaptureConsole=KJ.CaptureConsole;hr.captureConsoleIntegration=KJ.captureConsoleIntegration;hr.Debug=YJ.Debug;hr.debugIntegration=YJ.debugIntegration;hr.Dedupe=JJ.Dedupe;hr.dedupeIntegration=JJ.dedupeIntegration;hr.ExtraErrorData=XJ.ExtraErrorData;hr.extraErrorDataIntegration=XJ.extraErrorDataIntegration;hr.Offline=M2e.Offline;hr.ReportingObserver=ZJ.ReportingObserver;hr.reportingObserverIntegration=ZJ.reportingObserverIntegration;hr.RewriteFrames=QJ.RewriteFrames;hr.rewriteFramesIntegration=QJ.rewriteFramesIntegration;hr.SessionTiming=eX.SessionTiming;hr.sessionTimingIntegration=eX.sessionTimingIntegration;hr.Transaction=F2e.Transaction;hr.HttpClient=tX.HttpClient;hr.httpClientIntegration=tX.httpClientIntegration;hr.ContextLines=rX.ContextLines;hr.contextLinesIntegration=rX.contextLinesIntegration});var uX=_(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});var q2e=Ze(),nX=se();function Ky(t){return new Promise((e,r)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>r(t.error)})}function oX(t,e){let r=indexedDB.open(t);r.onupgradeneeded=()=>r.result.createObjectStore(e);let n=Ky(r);return o=>n.then(a=>o(a.transaction(e,"readwrite").objectStore(e)))}function aX(t){return Ky(t.getAllKeys())}function iX(t,e,r){return t(n=>aX(n).then(o=>{if(!(o.length>=r))return n.put(e,Math.max(...o,0)+1),Ky(n.transaction)}))}function sX(t){return t(e=>aX(e).then(r=>{if(r.length!==0)return Ky(e.get(r[0])).then(n=>(e.delete(r[0]),Ky(e.transaction).then(()=>n)))}))}function j2e(t){let e;function r(){return e==null&&(e=oX(t.dbName||"sentry-offline",t.storeName||"queue")),e}return{insert:async n=>{try{let o=await nX.serializeEnvelope(n,t.textEncoder);await iX(r(),o,t.maxQueueSize||30)}catch(o){}},pop:async()=>{try{let n=await sX(r());if(n)return nX.parseEnvelope(n,t.textEncoder||new TextEncoder,t.textDecoder||new TextDecoder)}catch(n){}}}}function L2e(t){return e=>t({...e,createStore:j2e})}function B2e(t){return L2e(q2e.makeOfflineTransport(t))}zf.createStore=oX;zf.insert=iX;zf.makeBrowserOfflineTransport=B2e;zf.pop=sX});var W2=_(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});var z2=Ze(),Ur=se(),Io=hi(),Da=Ia(),lX=1e6,ox=String(0),U2e="main",pX="",fX="",mX="",U2=Da.WINDOW.navigator&&Da.WINDOW.navigator.userAgent||"",hX="",z2e=Da.WINDOW.navigator&&Da.WINDOW.navigator.language||Da.WINDOW.navigator&&Da.WINDOW.navigator.languages&&Da.WINDOW.navigator.languages[0]||"";function W2e(t){return typeof t=="object"&&t!==null&&"getHighEntropyValues"in t}var cX=Da.WINDOW.navigator&&Da.WINDOW.navigator.userAgentData;W2e(cX)&&cX.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(t=>{if(pX=t.platform||"",mX=t.architecture||"",hX=t.model||"",fX=t.platformVersion||"",t.fullVersionList&&t.fullVersionList.length>0){let e=t.fullVersionList[t.fullVersionList.length-1];U2=`${e.brand} ${e.version}`}}).catch(t=>{});function $2e(t){return!("thread_metadata"in t)}function gX(t){return $2e(t)?yX(t):t}function H2e(t){let e=t&&t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id;return typeof e=="string"&&e.length!==32&&Io.DEBUG_BUILD&&Ur.logger.log(`[Profiling] Invalid traceId: ${e} on profiled event`),typeof e!="string"?"":e}function vX(t,e,r,n){if(n.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(r==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${r} instead.`);let o=H2e(n),a=gX(r),i=e||(typeof n.start_timestamp=="number"?n.start_timestamp*1e3:Date.now()),s=typeof n.timestamp=="number"?n.timestamp*1e3:Date.now();return{event_id:t,timestamp:new Date(i).toISOString(),platform:"javascript",version:"1",release:n.release||"",environment:n.environment||z2.DEFAULT_ENVIRONMENT,runtime:{name:"javascript",version:Da.WINDOW.navigator.userAgent},os:{name:pX,version:fX,build_number:U2},device:{locale:z2e,model:hX,manufacturer:U2,architecture:mX,is_emulator:!1},debug_meta:{images:_X(r.resources)},profile:a,transactions:[{name:n.transaction||"",id:n.event_id||Ur.uuid4(),trace_id:o,active_thread_id:ox,relative_start_ns:"0",relative_end_ns:((s-i)*1e6).toFixed(0)}]}}function G2e(t){return t.op==="pageload"}function yX(t){let e,r=0,n={samples:[],stacks:[],frames:[],thread_metadata:{[ox]:{name:U2e}}};if(!t.samples.length)return n;let o=t.samples[0].timestamp,a=typeof performance.timeOrigin=="number"?performance.timeOrigin:Ur.browserPerformanceTimeOrigin||0,i=a-(Ur.browserPerformanceTimeOrigin||a);for(let s=0;s{if(n==="transaction")for(let o=1;o{let p,d=a.get(c);d?p=d:(p=o(c),a.set(c,p));for(let f=p.length-1;f>=0;f--){let m=p[f],g=m&&m.filename;if(m&&g){l[g]=e[c];break}}return l},{}),u=[];for(let l of t)l&&s[l]&&u.push({type:"sourcemap",code_file:l,debug_id:s[l]});return u}function bX(t){return typeof t!="number"&&typeof t!="boolean"||typeof t=="number"&&isNaN(t)?(Io.DEBUG_BUILD&&Ur.logger.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`),!1):t===!0||t===!1?!0:t<0||t>1?(Io.DEBUG_BUILD&&Ur.logger.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${t}.`),!1):!0}function Y2e(t){return t.samples.length<2?(Io.DEBUG_BUILD&&Ur.logger.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):t.frames.length?!0:(Io.DEBUG_BUILD&&Ur.logger.log("[Profiling] Discarding profile because it contains no frames"),!1)}var SX=!1,EX=3e4;function J2e(t){return typeof t=="function"}function X2e(){let t=Da.WINDOW.Profiler;if(!J2e(t)){Io.DEBUG_BUILD&&Ur.logger.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}let e=10,r=Math.floor(EX/e);try{return new t({sampleInterval:e,maxBufferSize:r})}catch(n){Io.DEBUG_BUILD&&(Ur.logger.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),Ur.logger.log("[Profiling] Disabling profiling for current user session.")),SX=!0}}function Z2e(t){if(SX)return Io.DEBUG_BUILD&&Ur.logger.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!t.isRecording())return Io.DEBUG_BUILD&&Ur.logger.log("[Profiling] Discarding profile because transaction was not sampled."),!1;let e=z2.getClient(),r=e&&e.getOptions();if(!r)return Io.DEBUG_BUILD&&Ur.logger.log("[Profiling] Profiling disabled, no options found."),!1;let n=r.profilesSampleRate;return bX(n)?n?(n===!0?!0:Math.random()30){let r=Hc.keys().next().value;Hc.delete(r)}}un.MAX_PROFILE_DURATION_MS=EX;un.addProfileToGlobalCache=rFe;un.addProfilesToEnvelope=V2e;un.applyDebugMetadata=_X;un.convertJSSelfProfileToSampledFormat=yX;un.createProfilePayload=vX;un.createProfilingEvent=Q2e;un.enrichWithThreadInformation=gX;un.findProfiledTransactionsFromEnvelope=K2e;un.getActiveProfilesCount=eFe;un.isAutomatedPageLoadTransaction=G2e;un.isValidSampleRate=bX;un.shouldProfileTransaction=Z2e;un.startJSSelfProfile=X2e;un.takeProfileFromGlobalCache=tFe});var $2=_(ix=>{"use strict";Object.defineProperty(ix,"__esModule",{value:!0});var ax=Ze(),il=se(),Wf=hi(),TX=Ia(),Yy=W2();function nFe(t){return t?Yy.shouldProfileTransaction(t)?wX(t):t:(Wf.DEBUG_BUILD&&il.logger.log("[Profiling] Transaction is undefined, skipping profiling"),t)}function wX(t){let e;Yy.isAutomatedPageLoadTransaction(t)&&(e=il.timestampInSeconds()*1e3);let r=Yy.startJSSelfProfile();if(!r)return t;Wf.DEBUG_BUILD&&il.logger.log(`[Profiling] started profiling transaction: ${ax.spanToJSON(t).description}`);let n=il.uuid4();async function o(){return!t||!r?null:r.stop().then(u=>(a&&(TX.WINDOW.clearTimeout(a),a=void 0),Wf.DEBUG_BUILD&&il.logger.log(`[Profiling] stopped profiling of transaction: ${ax.spanToJSON(t).description}`),u?(Yy.addProfileToGlobalCache(n,u),null):(Wf.DEBUG_BUILD&&il.logger.log(`[Profiling] profiler returned null profile for: ${ax.spanToJSON(t).description}`,"this may indicate an overlapping transaction or a call to stopProfiling with a profile title that was never started"),null))).catch(u=>(Wf.DEBUG_BUILD&&il.logger.log("[Profiling] error while stopping profiler:",u),null))}let a=TX.WINDOW.setTimeout(()=>{Wf.DEBUG_BUILD&&il.logger.log("[Profiling] max profile duration elapsed, stopping profiling for:",ax.spanToJSON(t).description),o()},Yy.MAX_PROFILE_DURATION_MS),i=t.end.bind(t);function s(){return t?(o().then(()=>{t.setContext("profile",{profile_id:n,start_timestamp:e}),i()},()=>{i()}),t):i()}return t.end=s,t}ix.onProfilingStartRouteTransaction=nFe;ix.startProfileForTransaction=wX});var kX=_(ux=>{"use strict";Object.defineProperty(ux,"__esModule",{value:!0});var G2=Ze(),sx=se(),H2=hi(),xX=$2(),sl=W2(),CX="BrowserProfiling",oFe=()=>({name:CX,setupOnce(){},setup(t){let r=G2.getCurrentScope().getTransaction();if(r&&sl.isAutomatedPageLoadTransaction(r)&&sl.shouldProfileTransaction(r)&&xX.startProfileForTransaction(r),typeof t.on!="function"){sx.logger.warn("[Profiling] Client does not support hooks, profiling will be disabled");return}t.on("startTransaction",n=>{sl.shouldProfileTransaction(n)&&xX.startProfileForTransaction(n)}),t.on("beforeEnvelope",n=>{if(!sl.getActiveProfilesCount())return;let o=sl.findProfiledTransactionsFromEnvelope(n);if(!o.length)return;let a=[];for(let i of o){let s=i&&i.contexts,u=s&&s.profile&&s.profile.profile_id,l=s&&s.profile&&s.profile.start_timestamp;if(typeof u!="string"){H2.DEBUG_BUILD&&sx.logger.log("[Profiling] cannot find profile for a transaction without a profile context");continue}if(!u){H2.DEBUG_BUILD&&sx.logger.log("[Profiling] cannot find profile for a transaction without a profile context");continue}s&&s.profile&&delete s.profile;let c=sl.takeProfileFromGlobalCache(u);if(!c){H2.DEBUG_BUILD&&sx.logger.log(`[Profiling] Could not retrieve profile for transaction: ${u}`);continue}let p=sl.createProfilingEvent(u,l,c,i);p&&a.push(p)}sl.addProfilesToEnvelope(n,a)})}}),IX=G2.defineIntegration(oFe),aFe=G2.convertIntegrationFnToClass(CX,IX);ux.BrowserProfilingIntegration=aFe;ux.browserProfilingIntegration=IX});var qX=_(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});var Oe=Ze(),lx=Ia(),iFe=FM(),sFe=jM(),uFe=BM(),Gc=UM(),V2=Cy(),lFe=NM(),ul=lK(),PX=sw(),cFe=lw(),OX=dw(),RX=fw(),DX=hw(),NX=vw(),dFe=cK(),K2=bY(),AX=jY(),Y2=JY(),Ms=B2(),$f=ZT(),pFe=uX(),fFe=$2(),MX=kX(),FX={};lx.WINDOW.Sentry&&lx.WINDOW.Sentry.Integrations&&(FX=lx.WINDOW.Sentry.Integrations);var mFe={...FX,...Oe.Integrations,...dFe};ee.FunctionToString=Oe.FunctionToString;ee.Hub=Oe.Hub;ee.InboundFilters=Oe.InboundFilters;ee.ModuleMetadata=Oe.ModuleMetadata;ee.SDK_VERSION=Oe.SDK_VERSION;ee.SEMANTIC_ATTRIBUTE_SENTRY_OP=Oe.SEMANTIC_ATTRIBUTE_SENTRY_OP;ee.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=Oe.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;ee.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=Oe.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE;ee.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=Oe.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;ee.Scope=Oe.Scope;ee.addBreadcrumb=Oe.addBreadcrumb;ee.addEventProcessor=Oe.addEventProcessor;ee.addGlobalEventProcessor=Oe.addGlobalEventProcessor;ee.addIntegration=Oe.addIntegration;ee.addTracingExtensions=Oe.addTracingExtensions;ee.captureEvent=Oe.captureEvent;ee.captureException=Oe.captureException;ee.captureMessage=Oe.captureMessage;ee.captureSession=Oe.captureSession;ee.close=Oe.close;ee.configureScope=Oe.configureScope;ee.continueTrace=Oe.continueTrace;ee.createTransport=Oe.createTransport;ee.endSession=Oe.endSession;ee.extractTraceparentData=Oe.extractTraceparentData;ee.flush=Oe.flush;ee.functionToStringIntegration=Oe.functionToStringIntegration;ee.getActiveSpan=Oe.getActiveSpan;ee.getActiveTransaction=Oe.getActiveTransaction;ee.getClient=Oe.getClient;ee.getCurrentHub=Oe.getCurrentHub;ee.getCurrentScope=Oe.getCurrentScope;ee.getHubFromCarrier=Oe.getHubFromCarrier;ee.getSpanStatusFromHttpCode=Oe.getSpanStatusFromHttpCode;ee.inboundFiltersIntegration=Oe.inboundFiltersIntegration;ee.isInitialized=Oe.isInitialized;ee.lastEventId=Oe.lastEventId;ee.makeMain=Oe.makeMain;ee.makeMultiplexedTransport=Oe.makeMultiplexedTransport;ee.metrics=Oe.metrics;ee.moduleMetadataIntegration=Oe.moduleMetadataIntegration;ee.parameterize=Oe.parameterize;ee.setContext=Oe.setContext;ee.setCurrentClient=Oe.setCurrentClient;ee.setExtra=Oe.setExtra;ee.setExtras=Oe.setExtras;ee.setHttpStatus=Oe.setHttpStatus;ee.setMeasurement=Oe.setMeasurement;ee.setTag=Oe.setTag;ee.setTags=Oe.setTags;ee.setUser=Oe.setUser;ee.spanStatusfromHttpCode=Oe.spanStatusfromHttpCode;ee.startInactiveSpan=Oe.startInactiveSpan;ee.startSession=Oe.startSession;ee.startSpan=Oe.startSpan;ee.startSpanManual=Oe.startSpanManual;ee.startTransaction=Oe.startTransaction;ee.trace=Oe.trace;ee.withActiveSpan=Oe.withActiveSpan;ee.withIsolationScope=Oe.withIsolationScope;ee.withScope=Oe.withScope;ee.WINDOW=lx.WINDOW;ee.BrowserClient=iFe.BrowserClient;ee.makeFetchTransport=sFe.makeFetchTransport;ee.makeXHRTransport=uFe.makeXHRTransport;ee.chromeStackLineParser=Gc.chromeStackLineParser;ee.defaultStackLineParsers=Gc.defaultStackLineParsers;ee.defaultStackParser=Gc.defaultStackParser;ee.geckoStackLineParser=Gc.geckoStackLineParser;ee.opera10StackLineParser=Gc.opera10StackLineParser;ee.opera11StackLineParser=Gc.opera11StackLineParser;ee.winjsStackLineParser=Gc.winjsStackLineParser;ee.eventFromException=V2.eventFromException;ee.eventFromMessage=V2.eventFromMessage;ee.exceptionFromError=V2.exceptionFromError;ee.createUserFeedbackEnvelope=lFe.createUserFeedbackEnvelope;ee.captureUserFeedback=ul.captureUserFeedback;ee.defaultIntegrations=ul.defaultIntegrations;ee.forceLoad=ul.forceLoad;ee.getDefaultIntegrations=ul.getDefaultIntegrations;ee.init=ul.init;ee.onLoad=ul.onLoad;ee.showReportDialog=ul.showReportDialog;ee.wrap=ul.wrap;ee.Breadcrumbs=PX.Breadcrumbs;ee.breadcrumbsIntegration=PX.breadcrumbsIntegration;ee.Dedupe=cFe.Dedupe;ee.GlobalHandlers=OX.GlobalHandlers;ee.globalHandlersIntegration=OX.globalHandlersIntegration;ee.HttpContext=RX.HttpContext;ee.httpContextIntegration=RX.httpContextIntegration;ee.LinkedErrors=DX.LinkedErrors;ee.linkedErrorsIntegration=DX.linkedErrorsIntegration;ee.TryCatch=NX.TryCatch;ee.browserApiErrorsIntegration=NX.browserApiErrorsIntegration;ee.Replay=K2.InternalReplay;ee.getReplay=K2.internalGetReplay;ee.replayIntegration=K2.internalReplayIntegration;ee.ReplayCanvas=AX.ReplayCanvas;ee.replayCanvasIntegration=AX.replayCanvasIntegration;ee.Feedback=Y2.Feedback;ee.feedbackIntegration=Y2.feedbackIntegration;ee.sendFeedback=Y2.sendFeedback;ee.captureConsoleIntegration=Ms.captureConsoleIntegration;ee.contextLinesIntegration=Ms.contextLinesIntegration;ee.debugIntegration=Ms.debugIntegration;ee.dedupeIntegration=Ms.dedupeIntegration;ee.extraErrorDataIntegration=Ms.extraErrorDataIntegration;ee.httpClientIntegration=Ms.httpClientIntegration;ee.reportingObserverIntegration=Ms.reportingObserverIntegration;ee.rewriteFramesIntegration=Ms.rewriteFramesIntegration;ee.sessionTimingIntegration=Ms.sessionTimingIntegration;ee.BrowserTracing=$f.BrowserTracing;ee.browserTracingIntegration=$f.browserTracingIntegration;ee.defaultRequestInstrumentationOptions=$f.defaultRequestInstrumentationOptions;ee.instrumentOutgoingRequests=$f.instrumentOutgoingRequests;ee.startBrowserTracingNavigationSpan=$f.startBrowserTracingNavigationSpan;ee.startBrowserTracingPageLoadSpan=$f.startBrowserTracingPageLoadSpan;ee.makeBrowserOfflineTransport=pFe.makeBrowserOfflineTransport;ee.onProfilingStartRouteTransaction=fFe.onProfilingStartRouteTransaction;ee.BrowserProfilingIntegration=MX.BrowserProfilingIntegration;ee.browserProfilingIntegration=MX.browserProfilingIntegration;ee.Integrations=mFe});var cx=_(J2=>{"use strict";Object.defineProperty(J2,"__esModule",{value:!0});J2.default=hFe;function hFe(t,e){typeof t=="function"?t(e):t&&(t.current=e)}});var Fs=_(X2=>{"use strict";var gFe=$(),vFe=Ne();Object.defineProperty(X2,"__esModule",{value:!0});X2.default=_Fe;var yFe=vFe(z()),jX=gFe(cx());function _Fe(t,e){return yFe.useMemo(function(){return t==null&&e==null?null:function(r){(0,jX.default)(t,r),(0,jX.default)(e,r)}},[t,e])}});var Vc=_(Z2=>{"use strict";var bFe=Ne();Object.defineProperty(Z2,"__esModule",{value:!0});Z2.default=EFe;var dx=bFe(z()),SFe=typeof window!="undefined"?dx.useLayoutEffect:dx.useEffect;function EFe(t){var e=dx.useRef(t);return SFe(function(){e.current=t}),dx.useCallback(function(){return e.current.apply(void 0,arguments)},[])}});var Kc=_(Q2=>{"use strict";Object.defineProperty(Q2,"__esModule",{value:!0});Q2.default=TFe;function TFe(t,e){return function(){return null}}});var tF=_(fx=>{"use strict";var BX=Ne();Object.defineProperty(fx,"__esModule",{value:!0});fx.teardown=PFe;fx.default=DFe;var wFe=BX(z()),xFe=BX(jr()),px=!0,eF=!1,LX=null,CFe={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function IFe(t){var e=t.type,r=t.tagName;return!!(r==="INPUT"&&CFe[e]&&!t.readOnly||r==="TEXTAREA"&&!t.readOnly||t.isContentEditable)}function UX(t){t.metaKey||t.altKey||t.ctrlKey||(px=!0)}function Hf(){px=!1}function zX(){this.visibilityState==="hidden"&&eF&&(px=!0)}function kFe(t){t.addEventListener("keydown",UX,!0),t.addEventListener("mousedown",Hf,!0),t.addEventListener("pointerdown",Hf,!0),t.addEventListener("touchstart",Hf,!0),t.addEventListener("visibilitychange",zX,!0)}function PFe(t){t.removeEventListener("keydown",UX,!0),t.removeEventListener("mousedown",Hf,!0),t.removeEventListener("pointerdown",Hf,!0),t.removeEventListener("touchstart",Hf,!0),t.removeEventListener("visibilitychange",zX,!0)}function OFe(t){var e=t.target;try{return e.matches(":focus-visible")}catch(r){}return px||IFe(e)}function RFe(){eF=!0,window.clearTimeout(LX),LX=window.setTimeout(function(){eF=!1},100)}function DFe(){var t=wFe.useCallback(function(e){var r=xFe.findDOMNode(e);r!=null&&kFe(r.ownerDocument)},[]);return{isFocusVisible:OFe,onBlurVisible:RFe,ref:t}}});var $X=_((mx,WX)=>{"use strict";mx.__esModule=!0;mx.default=NFe;function NFe(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}WX.exports=mx.default});var GX=_((hx,HX)=>{"use strict";var AFe=$();hx.__esModule=!0;hx.default=FFe;var MFe=AFe($X());function FFe(t,e){t.classList?t.classList.add(e):(0,MFe.default)(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}HX.exports=hx.default});var YX=_((gx,KX)=>{"use strict";gx.__esModule=!0;gx.default=qFe;function VX(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function qFe(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=VX(t.className,e):t.setAttribute("class",VX(t.className&&t.className.baseVal||"",e))}KX.exports=gx.default});var rF=_((Jy,JX)=>{"use strict";Jy.__esModule=!0;Jy.default=void 0;var jFe={disabled:!1};Jy.default=jFe;JX.exports=Jy.default});var nF=_(Gf=>{"use strict";Gf.__esModule=!0;Gf.classNamesShape=Gf.timeoutsShape=void 0;var qQe=LFe(je());function LFe(t){return t&&t.__esModule?t:{default:t}}var BFe=null;Gf.timeoutsShape=BFe;var UFe=null;Gf.classNamesShape=UFe});var vx=_((Xy,XX)=>{"use strict";Xy.__esModule=!0;Xy.default=void 0;var zFe=WFe(z());function WFe(t){return t&&t.__esModule?t:{default:t}}var $Fe=zFe.default.createContext(null);Xy.default=$Fe;XX.exports=Xy.default});var oF=_(yx=>{"use strict";yx.__esModule=!0;yx.forceReflow=void 0;var HFe=function(e){return e.scrollTop};yx.forceReflow=HFe});var Ex=_(ro=>{"use strict";ro.__esModule=!0;ro.default=ro.EXITING=ro.ENTERED=ro.ENTERING=ro.EXITED=ro.UNMOUNTED=void 0;var BQe=Zy(je()),_x=Zy(z()),bx=Zy(jr()),ZX=Zy(rF()),UQe=nF(),QX=Zy(vx()),GFe=oF();function Zy(t){return t&&t.__esModule?t:{default:t}}function VFe(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,a;for(a=0;a=0)&&(r[o]=t[o]);return r}function KFe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Kf="unmounted";ro.UNMOUNTED=Kf;var ll="exited";ro.EXITED=ll;var cl="entering";ro.ENTERING=cl;var Yc="entered";ro.ENTERED=Yc;var Sx="exiting";ro.EXITING=Sx;var qs=function(t){KFe(e,t);function e(n,o){var a;a=t.call(this,n,o)||this;var i=o,s=i&&!i.isMounting?n.enter:n.appear,u;return a.appearStatus=null,n.in?s?(u=ll,a.appearStatus=cl):u=Yc:n.unmountOnExit||n.mountOnEnter?u=Kf:u=ll,a.state={status:u},a.nextCallback=null,a}e.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Kf?{status:ll}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==cl&&i!==Yc&&(a=cl):(i===cl||i===Yc)&&(a=Sx)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===cl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:bx.default.findDOMNode(this);i&&(0,GFe.forceReflow)(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ll&&this.setState({status:Kf})},r.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,u=this.props.nodeRef?[s]:[bx.default.findDOMNode(this),s],l=u[0],c=u[1],p=this.getTimeouts(),d=s?p.appear:p.enter;if(!o&&!i||ZX.default.disabled){this.safeSetState({status:Yc},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:cl},function(){a.props.onEntering(l,c),a.onTransitionEnd(d,function(){a.safeSetState({status:Yc},function(){a.props.onEntered(l,c)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:bx.default.findDOMNode(this);if(!a||ZX.default.disabled){this.safeSetState({status:ll},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Sx},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:ll},function(){o.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:bx.default.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Kf)return null;var a=this.props,i=a.children,s=a.in,u=a.mountOnEnter,l=a.unmountOnExit,c=a.appear,p=a.enter,d=a.exit,f=a.timeout,m=a.addEndListener,g=a.onEnter,v=a.onEntering,h=a.onEntered,y=a.onExit,b=a.onExiting,E=a.onExited,w=a.nodeRef,S=VFe(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _x.default.createElement(QX.default.Provider,{value:null},typeof i=="function"?i(o,S):_x.default.cloneElement(_x.default.Children.only(i),S))},e}(_x.default.Component);qs.contextType=QX.default;qs.propTypes={};function Vf(){}qs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vf,onEntering:Vf,onEntered:Vf,onExit:Vf,onExiting:Vf,onExited:Vf};qs.UNMOUNTED=Kf;qs.EXITED=ll;qs.ENTERING=cl;qs.ENTERED=Yc;qs.EXITING=Sx;var YFe=qs;ro.default=YFe});var rZ=_((e_,tZ)=>{"use strict";e_.__esModule=!0;e_.default=void 0;var WQe=Qy(je()),JFe=Qy(GX()),XFe=Qy(YX()),eZ=Qy(z()),ZFe=Qy(Ex()),$Qe=nF(),QFe=oF();function Qy(t){return t&&t.__esModule?t:{default:t}}function iF(){return iF=Object.assign||function(t){for(var e=1;e=0)&&(r[o]=t[o]);return r}function tqe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var rqe=function(e,r){return e&&r&&r.split(" ").forEach(function(n){return(0,JFe.default)(e,n)})},aF=function(e,r){return e&&r&&r.split(" ").forEach(function(n){return(0,XFe.default)(e,n)})},sF=function(t){tqe(e,t);function e(){for(var n,o=arguments.length,a=new Array(o),i=0;i{"use strict";Yf.__esModule=!0;Yf.getChildMapping=uF;Yf.mergeChildMappings=nZ;Yf.getInitialChildMapping=oqe;Yf.getNextChildMapping=aqe;var js=z();function uF(t,e){var r=function(a){return e&&(0,js.isValidElement)(a)?e(a):a},n=Object.create(null);return t&&js.Children.map(t,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function nZ(t,e){t=t||{},e=e||{};function r(c){return c in e?e[c]:t[c]}var n=Object.create(null),o=[];for(var a in t)a in e?o.length&&(n[a]=o,o=[]):o.push(a);var i,s={};for(var u in e){if(n[u])for(i=0;i{"use strict";t_.__esModule=!0;t_.default=void 0;var GQe=dF(je()),Tx=dF(z()),aZ=dF(vx()),lF=oZ();function dF(t){return t&&t.__esModule?t:{default:t}}function iqe(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,a;for(a=0;a=0)&&(r[o]=t[o]);return r}function cF(){return cF=Object.assign||function(t){for(var e=1;e{"use strict";r_.__esModule=!0;r_.default=void 0;var VQe=wx(je()),Jf=wx(z()),pqe=wx(jr()),fqe=wx(fF());function wx(t){return t&&t.__esModule?t:{default:t}}function mqe(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,a;for(a=0;a=0)&&(r[o]=t[o]);return r}function hqe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var sZ=function(t){hqe(e,t);function e(){for(var n,o=arguments.length,a=new Array(o),i=0;i{"use strict";Xf.__esModule=!0;Xf.default=Xf.modes=void 0;var ra=mF(z()),KQe=mF(je()),Na=Ex(),vqe=mF(vx()),xx,Cx;function mF(t){return t&&t.__esModule?t:{default:t}}function yqe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function _qe(t,e){return!(t===e||ra.default.isValidElement(t)&&ra.default.isValidElement(e)&&t.key!=null&&t.key===e.key)}var Xc={out:"out-in",in:"in-out"};Xf.modes=Xc;var Ix=function(e,r,n){return function(){var o;e.props[r]&&(o=e.props)[r].apply(o,arguments),n()}},bqe=(xx={},xx[Xc.out]=function(t){var e=t.current,r=t.changeState;return ra.default.cloneElement(e,{in:!1,onExited:Ix(e,"onExited",function(){r(Na.ENTERING,null)})})},xx[Xc.in]=function(t){var e=t.current,r=t.changeState,n=t.children;return[e,ra.default.cloneElement(n,{in:!0,onEntered:Ix(n,"onEntered",function(){r(Na.ENTERING)})})]},xx),Sqe=(Cx={},Cx[Xc.out]=function(t){var e=t.children,r=t.changeState;return ra.default.cloneElement(e,{in:!0,onEntered:Ix(e,"onEntered",function(){r(Na.ENTERED,ra.default.cloneElement(e,{in:!0}))})})},Cx[Xc.in]=function(t){var e=t.current,r=t.children,n=t.changeState;return[ra.default.cloneElement(e,{in:!1,onExited:Ix(e,"onExited",function(){n(Na.ENTERED,ra.default.cloneElement(r,{in:!0}))})}),ra.default.cloneElement(r,{in:!0})]},Cx),hF=function(t){yqe(e,t);function e(){for(var n,o=arguments.length,a=new Array(o),i=0;i{"use strict";no.__esModule=!0;no.config=no.Transition=no.TransitionGroup=no.SwitchTransition=no.ReplaceTransition=no.CSSTransition=void 0;var Tqe=Zf(rZ());no.CSSTransition=Tqe.default;var wqe=Zf(lZ());no.ReplaceTransition=wqe.default;var xqe=Zf(cZ());no.SwitchTransition=xqe.default;var Cqe=Zf(fF());no.TransitionGroup=Cqe.default;var Iqe=Zf(Ex());no.Transition=Iqe.default;var kqe=Zf(rF());no.config=kqe.default;function Zf(t){return t&&t.__esModule?t:{default:t}}});var pZ=_(kx=>{"use strict";var gF=$(),Pqe=Ne();Object.defineProperty(kx,"__esModule",{value:!0});kx.default=void 0;var n_=Pqe(z()),XQe=gF(je()),dZ=gF(Le()),Oqe=gF(Vc()),Rqe=typeof window=="undefined"?n_.useEffect:n_.useLayoutEffect;function Dqe(t){var e=t.classes,r=t.pulsate,n=r===void 0?!1:r,o=t.rippleX,a=t.rippleY,i=t.rippleSize,s=t.in,u=t.onExited,l=u===void 0?function(){}:u,c=t.timeout,p=n_.useState(!1),d=p[0],f=p[1],m=(0,dZ.default)(e.ripple,e.rippleVisible,n&&e.ripplePulsate),g={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},v=(0,dZ.default)(e.child,d&&e.childLeaving,n&&e.childPulsate),h=(0,Oqe.default)(l);return Rqe(function(){if(!s){f(!0);var y=setTimeout(h,c);return function(){clearTimeout(y)}}},[h,s,c]),n_.createElement("span",{className:m,style:g},n_.createElement("span",{className:v}))}var Nqe=Dqe;kx.default=Nqe});var hZ=_(dl=>{"use strict";var Aqe=Ne(),Zc=$();Object.defineProperty(dl,"__esModule",{value:!0});dl.default=dl.styles=dl.DELAY_RIPPLE=void 0;var Mqe=Zc(We()),Fqe=Zc(Ep()),qqe=Zc(ut()),zr=Aqe(z()),QQe=Zc(je()),jqe=Qf(),Lqe=Zc(Le()),Bqe=Zc(Mt()),Uqe=Zc(pZ()),vF=550,fZ=80;dl.DELAY_RIPPLE=fZ;var mZ=function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(vF,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(vF,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}};dl.styles=mZ;var zqe=zr.forwardRef(function(e,r){var n=e.center,o=n===void 0?!1:n,a=e.classes,i=e.className,s=(0,qqe.default)(e,["center","classes","className"]),u=zr.useState([]),l=u[0],c=u[1],p=zr.useRef(0),d=zr.useRef(null);zr.useEffect(function(){d.current&&(d.current(),d.current=null)},[l]);var f=zr.useRef(!1),m=zr.useRef(null),g=zr.useRef(null),v=zr.useRef(null);zr.useEffect(function(){return function(){clearTimeout(m.current)}},[]);var h=zr.useCallback(function(w){var S=w.pulsate,C=w.rippleX,P=w.rippleY,k=w.rippleSize,O=w.cb;c(function(F){return[].concat((0,Fqe.default)(F),[zr.createElement(Uqe.default,{key:p.current,classes:a,timeout:vF,pulsate:S,rippleX:C,rippleY:P,rippleSize:k})])}),p.current+=1,d.current=O},[a]),y=zr.useCallback(function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=arguments.length>2?arguments[2]:void 0,P=S.pulsate,k=P===void 0?!1:P,O=S.center,F=O===void 0?o||S.pulsate:O,U=S.fakeElement,J=U===void 0?!1:U;if(w.type==="mousedown"&&f.current){f.current=!1;return}w.type==="touchstart"&&(f.current=!0);var K=J?null:v.current,Z=K?K.getBoundingClientRect():{width:0,height:0,left:0,top:0},G,Q,N;if(F||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)G=Math.round(Z.width/2),Q=Math.round(Z.height/2);else{var j=w.touches?w.touches[0]:w,V=j.clientX,Y=j.clientY;G=Math.round(V-Z.left),Q=Math.round(Y-Z.top)}if(F)N=Math.sqrt((2*Math.pow(Z.width,2)+Math.pow(Z.height,2))/3),N%2===0&&(N+=1);else{var X=Math.max(Math.abs((K?K.clientWidth:0)-G),G)*2+2,ie=Math.max(Math.abs((K?K.clientHeight:0)-Q),Q)*2+2;N=Math.sqrt(Math.pow(X,2)+Math.pow(ie,2))}w.touches?g.current===null&&(g.current=function(){h({pulsate:k,rippleX:G,rippleY:Q,rippleSize:N,cb:C})},m.current=setTimeout(function(){g.current&&(g.current(),g.current=null)},fZ)):h({pulsate:k,rippleX:G,rippleY:Q,rippleSize:N,cb:C})},[o,h]),b=zr.useCallback(function(){y({},{pulsate:!0})},[y]),E=zr.useCallback(function(w,S){if(clearTimeout(m.current),w.type==="touchend"&&g.current){w.persist(),g.current(),g.current=null,m.current=setTimeout(function(){E(w,S)});return}g.current=null,c(function(C){return C.length>0?C.slice(1):C}),d.current=S},[]);return zr.useImperativeHandle(r,function(){return{pulsate:b,start:y,stop:E}},[b,y,E]),zr.createElement("span",(0,Mqe.default)({className:(0,Lqe.default)(a.root,i),ref:v},s),zr.createElement(jqe.TransitionGroup,{component:null,exit:!0},l))}),Wqe=(0,Bqe.default)(mZ,{flip:!1,name:"MuiTouchRipple"})(zr.memo(zqe));dl.default=Wqe});var _Z=_(em=>{"use strict";var vZ=Ne(),Ti=$();Object.defineProperty(em,"__esModule",{value:!0});em.default=em.styles=void 0;var gZ=Ti(We()),$qe=Ti(ut()),Aa=vZ(z()),tet=Ti(je()),Hqe=vZ(jr()),Gqe=Ti(Le()),ret=at(),yF=Ti(Fs()),Px=Ti(Vc()),net=Ti(Kc()),Vqe=Ti(Mt()),Kqe=Ti(tF()),Yqe=Ti(hZ()),yZ={root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}};em.styles=yZ;var Jqe=Aa.forwardRef(function(e,r){var n=e.action,o=e.buttonRef,a=e.centerRipple,i=a===void 0?!1:a,s=e.children,u=e.classes,l=e.className,c=e.component,p=c===void 0?"button":c,d=e.disabled,f=d===void 0?!1:d,m=e.disableRipple,g=m===void 0?!1:m,v=e.disableTouchRipple,h=v===void 0?!1:v,y=e.focusRipple,b=y===void 0?!1:y,E=e.focusVisibleClassName,w=e.onBlur,S=e.onClick,C=e.onFocus,P=e.onFocusVisible,k=e.onKeyDown,O=e.onKeyUp,F=e.onMouseDown,U=e.onMouseLeave,J=e.onMouseUp,K=e.onTouchEnd,Z=e.onTouchMove,G=e.onTouchStart,Q=e.onDragLeave,N=e.tabIndex,j=N===void 0?0:N,V=e.TouchRippleProps,Y=e.type,X=Y===void 0?"button":Y,ie=(0,$qe.default)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),de=Aa.useRef(null);function pe(){return Hqe.findDOMNode(de.current)}var le=Aa.useRef(null),_e=Aa.useState(!1),we=_e[0],ge=_e[1];f&&we&&ge(!1);var Se=(0,Kqe.default)(),me=Se.isFocusVisible,be=Se.onBlurVisible,Me=Se.ref;Aa.useImperativeHandle(n,function(){return{focusVisible:function(){ge(!0),de.current.focus()}}},[]),Aa.useEffect(function(){we&&b&&!g&&le.current.pulsate()},[g,b,we]);function ve(H,Re){var De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h;return(0,Px.default)(function(Ot){Re&&Re(Ot);var zt=De;return!zt&&le.current&&le.current[H](Ot),!0})}var gt=ve("start",F),qe=ve("stop",Q),nt=ve("stop",J),Qe=ve("stop",function(H){we&&H.preventDefault(),U&&U(H)}),he=ve("start",G),Ue=ve("stop",K),Ie=ve("stop",Z),Fe=ve("stop",function(H){we&&(be(H),ge(!1)),w&&w(H)},!1),ue=(0,Px.default)(function(H){de.current||(de.current=H.currentTarget),me(H)&&(ge(!0),P&&P(H)),C&&C(H)}),Be=function(){var Re=pe();return p&&p!=="button"&&!(Re.tagName==="A"&&Re.href)},kt=Aa.useRef(!1),ur=(0,Px.default)(function(H){b&&!kt.current&&we&&le.current&&H.key===" "&&(kt.current=!0,H.persist(),le.current.stop(H,function(){le.current.start(H)})),H.target===H.currentTarget&&Be()&&H.key===" "&&H.preventDefault(),k&&k(H),H.target===H.currentTarget&&Be()&&H.key==="Enter"&&!f&&(H.preventDefault(),S&&S(H))}),dt=(0,Px.default)(function(H){b&&H.key===" "&&le.current&&we&&!H.defaultPrevented&&(kt.current=!1,H.persist(),le.current.stop(H,function(){le.current.pulsate(H)})),O&&O(H),S&&H.target===H.currentTarget&&Be()&&H.key===" "&&!H.defaultPrevented&&S(H)}),Xe=p;Xe==="button"&&ie.href&&(Xe="a");var it={};Xe==="button"?(it.type=X,it.disabled=f):((Xe!=="a"||!ie.href)&&(it.role="button"),it["aria-disabled"]=f);var kr=(0,yF.default)(o,r),Yt=(0,yF.default)(Me,de),et=(0,yF.default)(kr,Yt),Pt=Aa.useState(!1),Je=Pt[0],Pe=Pt[1];Aa.useEffect(function(){Pe(!0)},[]);var ye=Je&&!g&&!f;return Aa.createElement(Xe,(0,gZ.default)({className:(0,Gqe.default)(u.root,l,we&&[u.focusVisible,E],f&&u.disabled),onBlur:Fe,onClick:S,onFocus:ue,onKeyDown:ur,onKeyUp:dt,onMouseDown:gt,onMouseLeave:Qe,onMouseUp:nt,onDragLeave:qe,onTouchEnd:Ue,onTouchMove:Ie,onTouchStart:he,ref:et,tabIndex:f?-1:j},it,ie),s,ye?Aa.createElement(Yqe.default,(0,gZ.default)({ref:le,center:i},V)):null)}),Xqe=(0,Vqe.default)(yZ,{name:"MuiButtonBase"})(Jqe);em.default=Xqe});var Ox=_(_F=>{"use strict";var Zqe=$();Object.defineProperty(_F,"__esModule",{value:!0});Object.defineProperty(_F,"default",{enumerable:!0,get:function(){return Qqe.default}});var Qqe=Zqe(_Z())});var na=_(bF=>{"use strict";Object.defineProperty(bF,"__esModule",{value:!0});bF.default=tje;var eje=at();function tje(t){if(typeof t!="string")throw new Error((0,eje.formatMuiErrorMessage)(7));return t.charAt(0).toUpperCase()+t.slice(1)}});var EZ=_(tm=>{"use strict";var rje=Ne(),ed=$();Object.defineProperty(tm,"__esModule",{value:!0});tm.default=tm.styles=void 0;var nje=ed(ut()),bZ=ed(We()),o_=rje(z()),set=ed(je()),Rx=ed(Le()),oje=ed(Mt()),Qc=Ql(),aje=ed(Ox()),a_=ed(na()),SZ=function(e){return{root:(0,bZ.default)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,Qc.alpha)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Qc.alpha)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Qc.alpha)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat(e.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,Qc.alpha)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,Qc.alpha)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,Qc.alpha)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,Qc.alpha)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}};tm.styles=SZ;var ije=o_.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.color,s=i===void 0?"default":i,u=e.component,l=u===void 0?"button":u,c=e.disabled,p=c===void 0?!1:c,d=e.disableElevation,f=d===void 0?!1:d,m=e.disableFocusRipple,g=m===void 0?!1:m,v=e.endIcon,h=e.focusVisibleClassName,y=e.fullWidth,b=y===void 0?!1:y,E=e.size,w=E===void 0?"medium":E,S=e.startIcon,C=e.type,P=C===void 0?"button":C,k=e.variant,O=k===void 0?"text":k,F=(0,nje.default)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),U=S&&o_.createElement("span",{className:(0,Rx.default)(o.startIcon,o["iconSize".concat((0,a_.default)(w))])},S),J=v&&o_.createElement("span",{className:(0,Rx.default)(o.endIcon,o["iconSize".concat((0,a_.default)(w))])},v);return o_.createElement(aje.default,(0,bZ.default)({className:(0,Rx.default)(o.root,o[O],a,s==="inherit"?o.colorInherit:s!=="default"&&o["".concat(O).concat((0,a_.default)(s))],w!=="medium"&&[o["".concat(O,"Size").concat((0,a_.default)(w))],o["size".concat((0,a_.default)(w))]],f&&o.disableElevation,p&&o.disabled,b&&o.fullWidth),component:l,disabled:p,focusRipple:!g,focusVisibleClassName:(0,Rx.default)(o.focusVisible,h),ref:r,type:P},F),o_.createElement("span",{className:o.label},U,n,J))}),sje=(0,oje.default)(SZ,{name:"MuiButton"})(ije);tm.default=sje});var rm=_(SF=>{"use strict";var uje=$();Object.defineProperty(SF,"__esModule",{value:!0});Object.defineProperty(SF,"default",{enumerable:!0,get:function(){return lje.default}});var lje=uje(EZ())});var td=_(EF=>{"use strict";Object.defineProperty(EF,"__esModule",{value:!0});EF.default=cje;function cje(t){return t&&t.ownerDocument||document}});var CZ=_(Nx=>{"use strict";var Dx=$(),wZ=Ne();Object.defineProperty(Nx,"__esModule",{value:!0});Nx.default=void 0;var rd=wZ(z()),xZ=wZ(jr()),pet=Dx(je()),fet=at(),met=Dx(Kc()),TZ=Dx(cx()),dje=Dx(Fs());function pje(t){return t=typeof t=="function"?t():t,xZ.findDOMNode(t)}var TF=typeof window!="undefined"?rd.useLayoutEffect:rd.useEffect,fje=rd.forwardRef(function(e,r){var n=e.children,o=e.container,a=e.disablePortal,i=a===void 0?!1:a,s=e.onRendered,u=rd.useState(null),l=u[0],c=u[1],p=(0,dje.default)(rd.isValidElement(n)?n.ref:null,r);return TF(function(){i||c(pje(o)||document.body)},[o,i]),TF(function(){if(l&&!i)return(0,TZ.default)(r,l),function(){(0,TZ.default)(r,null)}},[r,l,i]),TF(function(){s&&(l||i)&&s()},[s,l,i]),i?rd.isValidElement(n)?rd.cloneElement(n,{ref:p}):n:l&&xZ.createPortal(n,l)}),mje=fje;Nx.default=mje});var IZ=_(wF=>{"use strict";var hje=$();Object.defineProperty(wF,"__esModule",{value:!0});Object.defineProperty(wF,"default",{enumerable:!0,get:function(){return gje.default}});var gje=hje(CZ())});var Ax=_(xF=>{"use strict";Object.defineProperty(xF,"__esModule",{value:!0});xF.default=vje;function vje(){for(var t=arguments.length,e=new Array(t),r=0;r{"use strict";Object.defineProperty(CF,"__esModule",{value:!0});CF.default=yje;function yje(){var t=document.createElement("div");t.style.width="99px",t.style.height="99px",t.style.position="absolute",t.style.top="-9999px",t.style.overflow="scroll",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e}});var kF=_(IF=>{"use strict";var _je=$();Object.defineProperty(IF,"__esModule",{value:!0});IF.default=Sje;var bje=_je(td());function Sje(t){var e=(0,bje.default)(t);return e.defaultView||window}});var OF=_(s_=>{"use strict";var nm=$();Object.defineProperty(s_,"__esModule",{value:!0});s_.ariaHidden=i_;s_.default=void 0;var Eje=nm(ho()),Tje=nm(Yn()),wje=nm(Ep()),xje=nm(kZ()),RZ=nm(td()),Cje=nm(kF());function Ije(t){var e=(0,RZ.default)(t);return e.body===t?(0,Cje.default)(e).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function i_(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function PZ(t){return parseInt(window.getComputedStyle(t)["padding-right"],10)||0}function OZ(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,a=[e,r].concat((0,wje.default)(n)),i=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(t.children,function(s){s.nodeType===1&&a.indexOf(s)===-1&&i.indexOf(s.tagName)===-1&&i_(s,o)})}function PF(t,e){var r=-1;return t.some(function(n,o){return e(n)?(r=o,!0):!1}),r}function kje(t,e){var r=[],n=[],o=t.container,a;if(!e.disableScrollLock){if(Ije(o)){var i=(0,xje.default)();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(PZ(o)+i,"px"),a=(0,RZ.default)(o).querySelectorAll(".mui-fixed"),[].forEach.call(a,function(c){n.push(c.style.paddingRight),c.style.paddingRight="".concat(PZ(c)+i,"px")})}var s=o.parentElement,u=s.nodeName==="HTML"&&window.getComputedStyle(s)["overflow-y"]==="scroll"?s:o;r.push({value:u.style.overflow,key:"overflow",el:u}),u.style.overflow="hidden"}var l=function(){a&&[].forEach.call(a,function(p,d){n[d]?p.style.paddingRight=n[d]:p.style.removeProperty("padding-right")}),r.forEach(function(p){var d=p.value,f=p.el,m=p.key;d?f.style.setProperty(m,d):f.style.removeProperty(m)})};return l}function Pje(t){var e=[];return[].forEach.call(t.children,function(r){r.getAttribute&&r.getAttribute("aria-hidden")==="true"&&e.push(r)}),e}var Oje=function(){function t(){(0,Eje.default)(this,t),this.modals=[],this.containers=[]}return(0,Tje.default)(t,[{key:"add",value:function(r,n){var o=this.modals.indexOf(r);if(o!==-1)return o;o=this.modals.length,this.modals.push(r),r.modalRef&&i_(r.modalRef,!1);var a=Pje(n);OZ(n,r.mountNode,r.modalRef,a,!0);var i=PF(this.containers,function(s){return s.container===n});return i!==-1?(this.containers[i].modals.push(r),o):(this.containers.push({modals:[r],container:n,restore:null,hiddenSiblingNodes:a}),o)}},{key:"mount",value:function(r,n){var o=PF(this.containers,function(i){return i.modals.indexOf(r)!==-1}),a=this.containers[o];a.restore||(a.restore=kje(a,n))}},{key:"remove",value:function(r){var n=this.modals.indexOf(r);if(n===-1)return n;var o=PF(this.containers,function(s){return s.modals.indexOf(r)!==-1}),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(r),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),r.modalRef&&i_(r.modalRef,!0),OZ(a.container,r.mountNode,r.modalRef,a.hiddenSiblingNodes,!1),this.containers.splice(o,1);else{var i=a.modals[a.modals.length-1];i.modalRef&&i_(i.modalRef,!1)}return n}},{key:"isTopModal",value:function(r){return this.modals.length>0&&this.modals[this.modals.length-1]===r}}]),t}();s_.default=Oje});var NZ=_(Mx=>{"use strict";var RF=$(),DZ=Ne();Object.defineProperty(Mx,"__esModule",{value:!0});Mx.default=void 0;var oo=DZ(z()),Rje=DZ(jr()),Eet=RF(je()),Dje=RF(td()),Nje=RF(Fs()),Tet=at();function Aje(t){var e=t.children,r=t.disableAutoFocus,n=r===void 0?!1:r,o=t.disableEnforceFocus,a=o===void 0?!1:o,i=t.disableRestoreFocus,s=i===void 0?!1:i,u=t.getDoc,l=t.isEnabled,c=t.open,p=oo.useRef(),d=oo.useRef(null),f=oo.useRef(null),m=oo.useRef(),g=oo.useRef(null),v=oo.useCallback(function(b){g.current=Rje.findDOMNode(b)},[]),h=(0,Nje.default)(e.ref,v),y=oo.useRef();return oo.useEffect(function(){y.current=c},[c]),!y.current&&c&&typeof window!="undefined"&&(m.current=u().activeElement),oo.useEffect(function(){if(c){var b=(0,Dje.default)(g.current);!n&&g.current&&!g.current.contains(b.activeElement)&&(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex",-1),g.current.focus());var E=function(){var P=g.current;if(P!==null){if(!b.hasFocus()||a||!l()||p.current){p.current=!1;return}g.current&&!g.current.contains(b.activeElement)&&g.current.focus()}},w=function(P){a||!l()||P.keyCode!==9||b.activeElement===g.current&&(p.current=!0,P.shiftKey?f.current.focus():d.current.focus())};b.addEventListener("focus",E,!0),b.addEventListener("keydown",w,!0);var S=setInterval(function(){E()},50);return function(){clearInterval(S),b.removeEventListener("focus",E,!0),b.removeEventListener("keydown",w,!0),s||(m.current&&m.current.focus&&m.current.focus(),m.current=null)}}},[n,a,s,l,c]),oo.createElement(oo.Fragment,null,oo.createElement("div",{tabIndex:0,ref:d,"data-test":"sentinelStart"}),oo.cloneElement(e,{ref:h}),oo.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelEnd"}))}var Mje=Aje;Mx.default=Mje});var AZ=_(DF=>{"use strict";var Fje=$();Object.defineProperty(DF,"__esModule",{value:!0});Object.defineProperty(DF,"default",{enumerable:!0,get:function(){return qje.default}});var qje=Fje(NZ())});var qZ=_(om=>{"use strict";var jje=Ne(),AF=$();Object.defineProperty(om,"__esModule",{value:!0});om.default=om.styles=void 0;var MZ=AF(We()),Lje=AF(ut()),FZ=jje(z()),Cet=AF(je()),NF={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}};om.styles=NF;var Bje=FZ.forwardRef(function(e,r){var n=e.invisible,o=n===void 0?!1:n,a=e.open,i=(0,Lje.default)(e,["invisible","open"]);return a?FZ.createElement("div",(0,MZ.default)({"aria-hidden":!0,ref:r},i,{style:(0,MZ.default)({},NF.root,o?NF.invisible:{},i.style)})):null}),Uje=Bje;om.default=Uje});var WZ=_(am=>{"use strict";var MF=Ne(),oa=$();Object.defineProperty(am,"__esModule",{value:!0});am.default=am.styles=void 0;var zje=oa(ut()),Fx=oa(We()),ao=MF(z()),Wje=MF(jr()),ket=oa(je()),jZ=An(),Pet=at(),Oet=oa(Kc()),$je=oa(td()),Hje=oa(IZ()),LZ=oa(Ax()),Gje=oa(Fs()),BZ=oa(Vc()),Vje=oa(tO()),UZ=MF(OF()),Kje=oa(AZ()),Yje=oa(qZ());function Jje(t){return t=typeof t=="function"?t():t,Wje.findDOMNode(t)}function Xje(t){return t.children?t.children.props.hasOwnProperty("in"):!1}var Zje=new UZ.default,zZ=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}};am.styles=zZ;var Qje=ao.forwardRef(function(e,r){var n=(0,jZ.useTheme)(),o=(0,jZ.getThemeProps)({name:"MuiModal",props:(0,Fx.default)({},e),theme:n}),a=o.BackdropComponent,i=a===void 0?Yje.default:a,s=o.BackdropProps,u=o.children,l=o.closeAfterTransition,c=l===void 0?!1:l,p=o.container,d=o.disableAutoFocus,f=d===void 0?!1:d,m=o.disableBackdropClick,g=m===void 0?!1:m,v=o.disableEnforceFocus,h=v===void 0?!1:v,y=o.disableEscapeKeyDown,b=y===void 0?!1:y,E=o.disablePortal,w=E===void 0?!1:E,S=o.disableRestoreFocus,C=S===void 0?!1:S,P=o.disableScrollLock,k=P===void 0?!1:P,O=o.hideBackdrop,F=O===void 0?!1:O,U=o.keepMounted,J=U===void 0?!1:U,K=o.manager,Z=K===void 0?Zje:K,G=o.onBackdropClick,Q=o.onClose,N=o.onEscapeKeyDown,j=o.onRendered,V=o.open,Y=(0,zje.default)(o,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),X=ao.useState(!0),ie=X[0],de=X[1],pe=ao.useRef({}),le=ao.useRef(null),_e=ao.useRef(null),we=(0,Gje.default)(_e,r),ge=Xje(o),Se=function(){return(0,$je.default)(le.current)},me=function(){return pe.current.modalRef=_e.current,pe.current.mountNode=le.current,pe.current},be=function(){Z.mount(me(),{disableScrollLock:k}),_e.current.scrollTop=0},Me=(0,BZ.default)(function(){var ue=Jje(p)||Se().body;Z.add(me(),ue),_e.current&&be()}),ve=ao.useCallback(function(){return Z.isTopModal(me())},[Z]),gt=(0,BZ.default)(function(ue){le.current=ue,ue&&(j&&j(),V&&ve()?be():(0,UZ.ariaHidden)(_e.current,!0))}),qe=ao.useCallback(function(){Z.remove(me())},[Z]);if(ao.useEffect(function(){return function(){qe()}},[qe]),ao.useEffect(function(){V?Me():(!ge||!c)&&qe()},[V,qe,ge,c,Me]),!J&&!V&&(!ge||ie))return null;var nt=function(){de(!1)},Qe=function(){de(!0),c&&qe()},he=function(Be){Be.target===Be.currentTarget&&(G&&G(Be),!g&&Q&&Q(Be,"backdropClick"))},Ue=function(Be){Be.key!=="Escape"||!ve()||(N&&N(Be),b||(Be.stopPropagation(),Q&&Q(Be,"escapeKeyDown")))},Ie=zZ(n||{zIndex:Vje.default}),Fe={};return u.props.tabIndex===void 0&&(Fe.tabIndex=u.props.tabIndex||"-1"),ge&&(Fe.onEnter=(0,LZ.default)(nt,u.props.onEnter),Fe.onExited=(0,LZ.default)(Qe,u.props.onExited)),ao.createElement(Hje.default,{ref:gt,container:p,disablePortal:w},ao.createElement("div",(0,Fx.default)({ref:we,onKeyDown:Ue,role:"presentation"},Y,{style:(0,Fx.default)({},Ie.root,!V&&ie?Ie.hidden:{},Y.style)}),F?null:ao.createElement(i,(0,Fx.default)({open:V,onClick:he},s)),ao.createElement(Kje.default,{disableEnforceFocus:h,disableAutoFocus:f,disableRestoreFocus:C,getDoc:Se,isEnabled:ve,open:V},ao.cloneElement(u,Fe))))}),eLe=Qje;am.default=eLe});var HZ=_(qx=>{"use strict";var $Z=$();Object.defineProperty(qx,"__esModule",{value:!0});Object.defineProperty(qx,"default",{enumerable:!0,get:function(){return tLe.default}});Object.defineProperty(qx,"ModalManager",{enumerable:!0,get:function(){return rLe.default}});var tLe=$Z(WZ()),rLe=$Z(OF())});var FF=_(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0});u_.getTransitionProps=oLe;u_.reflow=void 0;var nLe=function(e){return e.scrollTop};u_.reflow=nLe;function oLe(t,e){var r=t.timeout,n=t.style,o=n===void 0?{}:n;return{duration:o.transitionDuration||typeof r=="number"?r:r[e.mode]||0,delay:o.transitionDelay}}});var KZ=_(Lx=>{"use strict";var aLe=Ne(),im=$();Object.defineProperty(Lx,"__esModule",{value:!0});Lx.default=void 0;var qF=im(We()),iLe=im(rc()),sLe=im(ut()),jx=aLe(z()),Aet=im(je()),uLe=Qf(),GZ=xp(),lLe=im(jS()),jF=FF(),VZ=im(Fs()),cLe={entering:{opacity:1},entered:{opacity:1}},dLe={enter:GZ.duration.enteringScreen,exit:GZ.duration.leavingScreen},pLe=jx.forwardRef(function(e,r){var n=e.children,o=e.disableStrictModeCompat,a=o===void 0?!1:o,i=e.in,s=e.onEnter,u=e.onEntered,l=e.onEntering,c=e.onExit,p=e.onExited,d=e.onExiting,f=e.style,m=e.TransitionComponent,g=m===void 0?uLe.Transition:m,v=e.timeout,h=v===void 0?dLe:v,y=(0,sLe.default)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),b=(0,lLe.default)(),E=b.unstable_strictMode&&!a,w=jx.useRef(null),S=(0,VZ.default)(n.ref,r),C=(0,VZ.default)(E?w:void 0,S),P=function(G){return function(Q,N){if(G){var j=E?[w.current,Q]:[Q,N],V=(0,iLe.default)(j,2),Y=V[0],X=V[1];X===void 0?G(Y):G(Y,X)}}},k=P(l),O=P(function(Z,G){(0,jF.reflow)(Z);var Q=(0,jF.getTransitionProps)({style:f,timeout:h},{mode:"enter"});Z.style.webkitTransition=b.transitions.create("opacity",Q),Z.style.transition=b.transitions.create("opacity",Q),s&&s(Z,G)}),F=P(u),U=P(d),J=P(function(Z){var G=(0,jF.getTransitionProps)({style:f,timeout:h},{mode:"exit"});Z.style.webkitTransition=b.transitions.create("opacity",G),Z.style.transition=b.transitions.create("opacity",G),c&&c(Z)}),K=P(p);return jx.createElement(g,(0,qF.default)({appear:!0,in:i,nodeRef:E?w:void 0,onEnter:O,onEntered:F,onEntering:k,onExit:J,onExited:K,onExiting:U,timeout:h},y),function(Z,G){return jx.cloneElement(n,(0,qF.default)({style:(0,qF.default)({opacity:0,visibility:Z==="exited"&&!i?"hidden":void 0},cLe[Z],f,n.props.style),ref:C},G))})}),fLe=pLe;Lx.default=fLe});var BF=_(LF=>{"use strict";var mLe=$();Object.defineProperty(LF,"__esModule",{value:!0});Object.defineProperty(LF,"default",{enumerable:!0,get:function(){return hLe.default}});var hLe=mLe(KZ())});var JZ=_(sm=>{"use strict";var gLe=Ne(),um=$();Object.defineProperty(sm,"__esModule",{value:!0});sm.default=sm.styles=void 0;var vLe=um(We()),yLe=um(ut()),UF=gLe(z()),qet=um(je()),_Le=um(Le()),bLe=um(Mt()),SLe=um(BF()),YZ={root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}};sm.styles=YZ;var ELe=UF.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.invisible,s=i===void 0?!1:i,u=e.open,l=e.transitionDuration,c=e.TransitionComponent,p=c===void 0?SLe.default:c,d=(0,yLe.default)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return UF.createElement(p,(0,vLe.default)({in:u,timeout:l},d),UF.createElement("div",{className:(0,_Le.default)(o.root,a,s&&o.invisible),"aria-hidden":!0,ref:r},n))}),TLe=(0,bLe.default)(YZ,{name:"MuiBackdrop"})(ELe);sm.default=TLe});var XZ=_(zF=>{"use strict";var wLe=$();Object.defineProperty(zF,"__esModule",{value:!0});Object.defineProperty(zF,"default",{enumerable:!0,get:function(){return xLe.default}});var xLe=wLe(JZ())});var tQ=_(lm=>{"use strict";var CLe=Ne(),l_=$();Object.defineProperty(lm,"__esModule",{value:!0});lm.default=lm.styles=void 0;var ILe=l_(ut()),QZ=l_(We()),ZZ=CLe(z()),Bet=l_(je()),kLe=l_(Le()),Uet=at(),PLe=l_(Mt()),eQ=function(e){var r={};return e.shadows.forEach(function(n,o){r["elevation".concat(o)]={boxShadow:n}}),(0,QZ.default)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},r)};lm.styles=eQ;var OLe=ZZ.forwardRef(function(e,r){var n=e.classes,o=e.className,a=e.component,i=a===void 0?"div":a,s=e.square,u=s===void 0?!1:s,l=e.elevation,c=l===void 0?1:l,p=e.variant,d=p===void 0?"elevation":p,f=(0,ILe.default)(e,["classes","className","component","square","elevation","variant"]);return ZZ.createElement(i,(0,QZ.default)({className:(0,kLe.default)(n.root,o,d==="outlined"?n.outlined:n["elevation".concat(c)],!u&&n.rounded),ref:r},f))}),RLe=(0,PLe.default)(eQ,{name:"MuiPaper"})(OLe);lm.default=RLe});var Bx=_(WF=>{"use strict";var DLe=$();Object.defineProperty(WF,"__esModule",{value:!0});Object.defineProperty(WF,"default",{enumerable:!0,get:function(){return NLe.default}});var NLe=DLe(tQ())});var oQ=_(dm=>{"use strict";var ALe=Ne(),aa=$();Object.defineProperty(dm,"__esModule",{value:!0});dm.default=dm.styles=void 0;var Ux=aa(We()),MLe=aa(ut()),c_=aa(po()),cm=ALe(z()),$et=aa(je()),$F=aa(Le()),FLe=aa(Mt()),HF=aa(na()),Het=aa(Kc()),qLe=aa(HZ()),jLe=aa(XZ()),LLe=aa(BF()),rQ=xp(),BLe=aa(Bx()),nQ=function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":(0,c_.default)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":(0,c_.default)({},e.breakpoints.down(e.breakpoints.values.sm+32*2),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":(0,c_.default)({},e.breakpoints.down(e.breakpoints.values.md+32*2),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":(0,c_.default)({},e.breakpoints.down(e.breakpoints.values.lg+32*2),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":(0,c_.default)({},e.breakpoints.down(e.breakpoints.values.xl+32*2),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}};dm.styles=nQ;var ULe={enter:rQ.duration.enteringScreen,exit:rQ.duration.leavingScreen},zLe=cm.forwardRef(function(e,r){var n=e.BackdropProps,o=e.children,a=e.classes,i=e.className,s=e.disableBackdropClick,u=s===void 0?!1:s,l=e.disableEscapeKeyDown,c=l===void 0?!1:l,p=e.fullScreen,d=p===void 0?!1:p,f=e.fullWidth,m=f===void 0?!1:f,g=e.maxWidth,v=g===void 0?"sm":g,h=e.onBackdropClick,y=e.onClose,b=e.onEnter,E=e.onEntered,w=e.onEntering,S=e.onEscapeKeyDown,C=e.onExit,P=e.onExited,k=e.onExiting,O=e.open,F=e.PaperComponent,U=F===void 0?BLe.default:F,J=e.PaperProps,K=J===void 0?{}:J,Z=e.scroll,G=Z===void 0?"paper":Z,Q=e.TransitionComponent,N=Q===void 0?LLe.default:Q,j=e.transitionDuration,V=j===void 0?ULe:j,Y=e.TransitionProps,X=e["aria-describedby"],ie=e["aria-labelledby"],de=(0,MLe.default)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),pe=cm.useRef(),le=function(ge){pe.current=ge.target},_e=function(ge){ge.target===ge.currentTarget&&ge.target===pe.current&&(pe.current=null,h&&h(ge),!u&&y&&y(ge,"backdropClick"))};return cm.createElement(qLe.default,(0,Ux.default)({className:(0,$F.default)(a.root,i),BackdropComponent:jLe.default,BackdropProps:(0,Ux.default)({transitionDuration:V},n),closeAfterTransition:!0},u?{disableBackdropClick:u}:{},{disableEscapeKeyDown:c,onEscapeKeyDown:S,onClose:y,open:O,ref:r},de),cm.createElement(N,(0,Ux.default)({appear:!0,in:O,timeout:V,onEnter:b,onEntering:w,onEntered:E,onExit:C,onExiting:k,onExited:P,role:"none presentation"},Y),cm.createElement("div",{className:(0,$F.default)(a.container,a["scroll".concat((0,HF.default)(G))]),onMouseUp:_e,onMouseDown:le},cm.createElement(U,(0,Ux.default)({elevation:24,role:"dialog","aria-describedby":X,"aria-labelledby":ie},K,{className:(0,$F.default)(a.paper,a["paperScroll".concat((0,HF.default)(G))],a["paperWidth".concat((0,HF.default)(String(v)))],K.className,d&&a.paperFullScreen,m&&a.paperFullWidth)}),o))))}),WLe=(0,FLe.default)(nQ,{name:"MuiDialog"})(zLe);dm.default=WLe});var VF=_(GF=>{"use strict";var $Le=$();Object.defineProperty(GF,"__esModule",{value:!0});Object.defineProperty(GF,"default",{enumerable:!0,get:function(){return HLe.default}});var HLe=$Le(oQ())});var sQ=_(pm=>{"use strict";var GLe=Ne(),d_=$();Object.defineProperty(pm,"__esModule",{value:!0});pm.default=pm.styles=void 0;var VLe=d_(We()),KLe=d_(ut()),aQ=GLe(z()),Ket=d_(je()),YLe=d_(Le()),JLe=d_(Mt()),iQ={root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}};pm.styles=iQ;var XLe=aQ.forwardRef(function(e,r){var n=e.disableSpacing,o=n===void 0?!1:n,a=e.classes,i=e.className,s=(0,KLe.default)(e,["disableSpacing","classes","className"]);return aQ.createElement("div",(0,VLe.default)({className:(0,YLe.default)(a.root,i,!o&&a.spacing),ref:r},s))}),ZLe=(0,JLe.default)(iQ,{name:"MuiDialogActions"})(XLe);pm.default=ZLe});var YF=_(KF=>{"use strict";var QLe=$();Object.defineProperty(KF,"__esModule",{value:!0});Object.defineProperty(KF,"default",{enumerable:!0,get:function(){return eBe.default}});var eBe=QLe(sQ())});var cQ=_(fm=>{"use strict";var tBe=Ne(),p_=$();Object.defineProperty(fm,"__esModule",{value:!0});fm.default=fm.styles=void 0;var rBe=p_(We()),nBe=p_(ut()),uQ=tBe(z()),Xet=p_(je()),oBe=p_(Le()),aBe=p_(Mt()),lQ=function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}};fm.styles=lQ;var iBe=uQ.forwardRef(function(e,r){var n=e.classes,o=e.className,a=e.dividers,i=a===void 0?!1:a,s=(0,nBe.default)(e,["classes","className","dividers"]);return uQ.createElement("div",(0,rBe.default)({className:(0,oBe.default)(n.root,o,i&&n.dividers),ref:r},s))}),sBe=(0,aBe.default)(lQ,{name:"MuiDialogContent"})(iBe);fm.default=sBe});var XF=_(JF=>{"use strict";var uBe=$();Object.defineProperty(JF,"__esModule",{value:!0});Object.defineProperty(JF,"default",{enumerable:!0,get:function(){return lBe.default}});var lBe=uBe(cQ())});var mQ=_(mm=>{"use strict";var cBe=Ne(),hm=$();Object.defineProperty(mm,"__esModule",{value:!0});mm.default=mm.styles=void 0;var dBe=hm(We()),pBe=hm(ut()),dQ=cBe(z()),ett=hm(je()),fBe=hm(Le()),mBe=hm(Mt()),ZF=hm(na()),fQ=function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}};mm.styles=fQ;var pQ={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},hBe=dQ.forwardRef(function(e,r){var n=e.align,o=n===void 0?"inherit":n,a=e.classes,i=e.className,s=e.color,u=s===void 0?"initial":s,l=e.component,c=e.display,p=c===void 0?"initial":c,d=e.gutterBottom,f=d===void 0?!1:d,m=e.noWrap,g=m===void 0?!1:m,v=e.paragraph,h=v===void 0?!1:v,y=e.variant,b=y===void 0?"body1":y,E=e.variantMapping,w=E===void 0?pQ:E,S=(0,pBe.default)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=l||(h?"p":w[b]||pQ[b])||"span";return dQ.createElement(C,(0,dBe.default)({className:(0,fBe.default)(a.root,i,b!=="inherit"&&a[b],u!=="initial"&&a["color".concat((0,ZF.default)(u))],g&&a.noWrap,f&&a.gutterBottom,h&&a.paragraph,o!=="inherit"&&a["align".concat((0,ZF.default)(o))],p!=="initial"&&a["display".concat((0,ZF.default)(p))]),ref:r},S))}),gBe=(0,mBe.default)(fQ,{name:"MuiTypography"})(hBe);mm.default=gBe});var f_=_(QF=>{"use strict";var vBe=$();Object.defineProperty(QF,"__esModule",{value:!0});Object.defineProperty(QF,"default",{enumerable:!0,get:function(){return yBe.default}});var yBe=vBe(mQ())});var vQ=_(gm=>{"use strict";var _Be=Ne(),zx=$();Object.defineProperty(gm,"__esModule",{value:!0});gm.default=gm.styles=void 0;var bBe=zx(We()),hQ=_Be(z()),ntt=zx(je()),SBe=zx(Mt()),EBe=zx(f_()),gQ={root:{marginBottom:12}};gm.styles=gQ;var TBe=hQ.forwardRef(function(e,r){return hQ.createElement(EBe.default,(0,bBe.default)({component:"p",variant:"body1",color:"textSecondary",ref:r},e))}),wBe=(0,SBe.default)(gQ,{name:"MuiDialogContentText"})(TBe);gm.default=wBe});var tq=_(eq=>{"use strict";var xBe=$();Object.defineProperty(eq,"__esModule",{value:!0});Object.defineProperty(eq,"default",{enumerable:!0,get:function(){return CBe.default}});var CBe=xBe(vQ())});var _Q=_(vm=>{"use strict";var IBe=Ne(),ym=$();Object.defineProperty(vm,"__esModule",{value:!0});vm.default=vm.styles=void 0;var kBe=ym(We()),PBe=ym(ut()),rq=IBe(z()),itt=ym(je()),OBe=ym(Le()),RBe=ym(Mt()),DBe=ym(f_()),yQ={root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}};vm.styles=yQ;var NBe=rq.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.disableTypography,s=i===void 0?!1:i,u=(0,PBe.default)(e,["children","classes","className","disableTypography"]);return rq.createElement("div",(0,kBe.default)({className:(0,OBe.default)(o.root,a),ref:r},u),s?n:rq.createElement(DBe.default,{component:"h2",variant:"h6"},n))}),ABe=(0,RBe.default)(yQ,{name:"MuiDialogTitle"})(NBe);vm.default=ABe});var oq=_(nq=>{"use strict";var MBe=$();Object.defineProperty(nq,"__esModule",{value:!0});Object.defineProperty(nq,"default",{enumerable:!0,get:function(){return FBe.default}});var FBe=MBe(_Q())});var TQ=_(_m=>{"use strict";var qBe=Ne(),bm=$();Object.defineProperty(_m,"__esModule",{value:!0});_m.default=_m.styles=void 0;var jBe=bm(We()),LBe=bm(ut()),aq=qBe(z()),ltt=bm(je()),BBe=bm(Le()),ctt=at(),UBe=bm(Mt()),bQ=bm(na()),SQ=function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}};_m.styles=SQ;var EQ=aq.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.color,s=i===void 0?"inherit":i,u=e.component,l=u===void 0?"svg":u,c=e.fontSize,p=c===void 0?"medium":c,d=e.htmlColor,f=e.titleAccess,m=e.viewBox,g=m===void 0?"0 0 24 24":m,v=(0,LBe.default)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return aq.createElement(l,(0,jBe.default)({className:(0,BBe.default)(o.root,a,s!=="inherit"&&o["color".concat((0,bQ.default)(s))],p!=="default"&&p!=="medium"&&o["fontSize".concat((0,bQ.default)(p))]),focusable:"false",viewBox:g,color:d,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},v),n,f?aq.createElement("title",null,f):null)});EQ.muiName="SvgIcon";var zBe=(0,UBe.default)(SQ,{name:"MuiSvgIcon"})(EQ);_m.default=zBe});var wQ=_(iq=>{"use strict";var WBe=$();Object.defineProperty(iq,"__esModule",{value:!0});Object.defineProperty(iq,"default",{enumerable:!0,get:function(){return $Be.default}});var $Be=WBe(TQ())});var Sm=_(lq=>{"use strict";var uq=$();Object.defineProperty(lq,"__esModule",{value:!0});lq.default=GBe;var HBe=uq(We()),sq=uq(z()),xQ=uq(wQ());function GBe(t,e){var r=function(o,a){return sq.default.createElement(xQ.default,(0,HBe.default)({ref:a},o),t)};return r.muiName=xQ.default.muiName,sq.default.memo(sq.default.forwardRef(r))}});var CQ=_(cq=>{"use strict";Object.defineProperty(cq,"__esModule",{value:!0});cq.default=VBe;function VBe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:166,r;function n(){for(var o=arguments.length,a=new Array(o),i=0;i{"use strict";var KBe=Ne();Object.defineProperty(dq,"__esModule",{value:!0});dq.default=JBe;var YBe=KBe(z());function JBe(t,e){return YBe.isValidElement(t)&&e.indexOf(t.type.muiName)!==-1}});var IQ=_(fq=>{"use strict";Object.defineProperty(fq,"__esModule",{value:!0});fq.default=XBe;function XBe(t){return function(){return null};var e}});var kQ=_(mq=>{"use strict";Object.defineProperty(mq,"__esModule",{value:!0});mq.default=ZBe;function ZBe(t,e,r,n,o){return null;var a}});var vq=_(gq=>{"use strict";var QBe=Ne();Object.defineProperty(gq,"__esModule",{value:!0});gq.default=eUe;var hq=QBe(z());function eUe(t){var e=t.controlled,r=t.default,n=t.name,o=t.state,a=o===void 0?"value":o,i=hq.useRef(e!==void 0),s=i.current,u=hq.useState(r),l=u[0],c=u[1],p=s?e:l;if(0)var d,f;var m=hq.useCallback(function(g){s||c(g)},[]);return[p,m]}});var OQ=_(yq=>{"use strict";var tUe=Ne();Object.defineProperty(yq,"__esModule",{value:!0});yq.default=rUe;var PQ=tUe(z());function rUe(t){var e=PQ.useState(t),r=e[0],n=e[1],o=t||r;return PQ.useEffect(function(){r==null&&n("mui-".concat(Math.round(Math.random()*1e5)))},[r]),o}});var m_=_(Qr=>{"use strict";var xn=$();Object.defineProperty(Qr,"__esModule",{value:!0});Object.defineProperty(Qr,"capitalize",{enumerable:!0,get:function(){return nUe.default}});Object.defineProperty(Qr,"createChainedFunction",{enumerable:!0,get:function(){return oUe.default}});Object.defineProperty(Qr,"createSvgIcon",{enumerable:!0,get:function(){return aUe.default}});Object.defineProperty(Qr,"debounce",{enumerable:!0,get:function(){return iUe.default}});Object.defineProperty(Qr,"deprecatedPropType",{enumerable:!0,get:function(){return sUe.default}});Object.defineProperty(Qr,"isMuiElement",{enumerable:!0,get:function(){return uUe.default}});Object.defineProperty(Qr,"ownerDocument",{enumerable:!0,get:function(){return lUe.default}});Object.defineProperty(Qr,"ownerWindow",{enumerable:!0,get:function(){return cUe.default}});Object.defineProperty(Qr,"requirePropFactory",{enumerable:!0,get:function(){return dUe.default}});Object.defineProperty(Qr,"setRef",{enumerable:!0,get:function(){return pUe.default}});Object.defineProperty(Qr,"unsupportedProp",{enumerable:!0,get:function(){return fUe.default}});Object.defineProperty(Qr,"useControlled",{enumerable:!0,get:function(){return mUe.default}});Object.defineProperty(Qr,"useEventCallback",{enumerable:!0,get:function(){return hUe.default}});Object.defineProperty(Qr,"useForkRef",{enumerable:!0,get:function(){return gUe.default}});Object.defineProperty(Qr,"unstable_useId",{enumerable:!0,get:function(){return vUe.default}});Object.defineProperty(Qr,"useIsFocusVisible",{enumerable:!0,get:function(){return yUe.default}});var nUe=xn(na()),oUe=xn(Ax()),aUe=xn(Sm()),iUe=xn(CQ()),sUe=xn(Kc()),uUe=xn(pq()),lUe=xn(td()),cUe=xn(kF()),dUe=xn(IQ()),pUe=xn(cx()),fUe=xn(kQ()),mUe=xn(vq()),hUe=xn(Vc()),gUe=xn(Fs()),vUe=xn(OQ()),yUe=xn(tF())});var ia=_(_q=>{"use strict";Object.defineProperty(_q,"__esModule",{value:!0});Object.defineProperty(_q,"default",{enumerable:!0,get:function(){return _Ue.createSvgIcon}});var _Ue=m_()});var bq=_(Wx=>{"use strict";var bUe=$(),SUe=Ne();Object.defineProperty(Wx,"__esModule",{value:!0});Wx.default=void 0;var EUe=SUe(z()),TUe=bUe(ia()),wUe=(0,TUe.default)(EUe.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");Wx.default=wUe});var NQ=_($x=>{"use strict";var Cn=$();Object.defineProperty($x,"__esModule",{value:!0});$x.default=void 0;var xUe=Cn(ho()),CUe=Cn(Yn()),IUe=Cn(Au()),kUe=Cn(Mu()),RQ=Cn(cs()),pl=Cn(z()),Em=Cn(je()),PUe=Cn(Mt()),OUe=Cn(rm()),RUe=Cn(VF()),DUe=Cn(YF()),NUe=Cn(XF()),AUe=Cn(tq()),MUe=Cn(oq()),FUe=Cn(bq()),Sq=Cn(_o());function qUe(t){var e=jUe();return function(){var n=(0,RQ.default)(t),o;if(e){var a=(0,RQ.default)(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return(0,kUe.default)(this,o)}}function jUe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var LUe=function(e){return{titleBackground:{},titleColor:{}}},DQ=function(t){(0,IUe.default)(r,t);var e=qUe(r);function r(){return(0,xUe.default)(this,r),e.apply(this,arguments)}return(0,CUe.default)(r,[{key:"handleOk",value:function(){this.props.onClose&&this.props.onClose()}},{key:"render",value:function(){var o=this;return pl.default.createElement(RUe.default,{open:!0,maxWidth:"sm",fullWidth:!0,onClose:function(){return o.handleOk()},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},pl.default.createElement(MUe.default,{className:this.props.classes.titleBackground,classes:{root:this.props.classes.titleColor},id:"alert-dialog-title"},this.props.title||Sq.default.t("ra_Error")),pl.default.createElement(NUe.default,null,pl.default.createElement(AUe.default,{id:"alert-dialog-description"},this.props.text||Sq.default.t("ra_Unknown error!"))),pl.default.createElement(DUe.default,null,pl.default.createElement(OUe.default,{variant:"contained",onClick:function(){return o.handleOk()},color:"primary",autoFocus:!0,startIcon:pl.default.createElement(FUe.default,null)},Sq.default.t("ra_Ok"))))}}]),r}(pl.default.Component);DQ.propTypes={onClose:Em.default.func.isRequired,title:Em.default.string,text:Em.default.oneOfType([Em.default.string,Em.default.element]),icon:Em.default.object};var BUe=(0,PUe.default)(LUe)(DQ),UUe=BUe;$x.default=UUe});var FQ=_(Gx=>{"use strict";var Hx=$(),MQ=Ne();Object.defineProperty(Gx,"__esModule",{value:!0});Gx.default=void 0;var Ma=MQ(z()),zUe=MQ(jr()),wtt=Hx(je()),Eq=Hx(td()),WUe=Hx(Fs()),$Ue=Hx(Vc()),xtt=at();function AQ(t){return t.substring(2).toLowerCase()}function HUe(t){return document.documentElement.clientWidth-1;else{var w=(0,Eq.default)(c.current);E=!w.documentElement.contains(y.target)||c.current.contains(y.target)}!E&&(n||!b)&&i(y)}}),v=function(b){return function(E){d.current=!0;var w=e.props[b];w&&w(E)}},h={ref:m};return u!==!1&&(h[u]=v(u)),Ma.useEffect(function(){if(u!==!1){var y=AQ(u),b=(0,Eq.default)(c.current),E=function(){l.current=!0};return b.addEventListener(y,g),b.addEventListener("touchmove",E),function(){b.removeEventListener(y,g),b.removeEventListener("touchmove",E)}}},[g,u]),a!==!1&&(h[a]=v(a)),Ma.useEffect(function(){if(a!==!1){var y=AQ(a),b=(0,Eq.default)(c.current);return b.addEventListener(y,g),function(){b.removeEventListener(y,g)}}},[g,a]),Ma.createElement(Ma.Fragment,null,Ma.cloneElement(e,h))}var VUe=GUe;Gx.default=VUe});var qQ=_(Tq=>{"use strict";var KUe=$();Object.defineProperty(Tq,"__esModule",{value:!0});Object.defineProperty(Tq,"default",{enumerable:!0,get:function(){return YUe.default}});var YUe=KUe(FQ())});var BQ=_(Vx=>{"use strict";var JUe=Ne(),Tm=$();Object.defineProperty(Vx,"__esModule",{value:!0});Vx.default=void 0;var wq=Tm(We()),XUe=Tm(rc()),ZUe=Tm(ut()),nd=JUe(z()),ktt=Tm(je()),QUe=Qf(),e5e=Tm(jS()),xq=FF(),jQ=Tm(Fs());function Cq(t){return"scale(".concat(t,", ").concat(Math.pow(t,2),")")}var t5e={entering:{opacity:1,transform:Cq(1)},entered:{opacity:1,transform:"none"}},LQ=nd.forwardRef(function(e,r){var n=e.children,o=e.disableStrictModeCompat,a=o===void 0?!1:o,i=e.in,s=e.onEnter,u=e.onEntered,l=e.onEntering,c=e.onExit,p=e.onExited,d=e.onExiting,f=e.style,m=e.timeout,g=m===void 0?"auto":m,v=e.TransitionComponent,h=v===void 0?QUe.Transition:v,y=(0,ZUe.default)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=nd.useRef(),E=nd.useRef(),w=(0,e5e.default)(),S=w.unstable_strictMode&&!a,C=nd.useRef(null),P=(0,jQ.default)(n.ref,r),k=(0,jQ.default)(S?C:void 0,P),O=function(j){return function(V,Y){if(j){var X=S?[C.current,V]:[V,Y],ie=(0,XUe.default)(X,2),de=ie[0],pe=ie[1];pe===void 0?j(de):j(de,pe)}}},F=O(l),U=O(function(N,j){(0,xq.reflow)(N);var V=(0,xq.getTransitionProps)({style:f,timeout:g},{mode:"enter"}),Y=V.duration,X=V.delay,ie;g==="auto"?(ie=w.transitions.getAutoHeightDuration(N.clientHeight),E.current=ie):ie=Y,N.style.transition=[w.transitions.create("opacity",{duration:ie,delay:X}),w.transitions.create("transform",{duration:ie*.666,delay:X})].join(","),s&&s(N,j)}),J=O(u),K=O(d),Z=O(function(N){var j=(0,xq.getTransitionProps)({style:f,timeout:g},{mode:"exit"}),V=j.duration,Y=j.delay,X;g==="auto"?(X=w.transitions.getAutoHeightDuration(N.clientHeight),E.current=X):X=V,N.style.transition=[w.transitions.create("opacity",{duration:X,delay:Y}),w.transitions.create("transform",{duration:X*.666,delay:Y||X*.333})].join(","),N.style.opacity="0",N.style.transform=Cq(.75),c&&c(N)}),G=O(p),Q=function(j,V){var Y=S?j:V;g==="auto"&&(b.current=setTimeout(Y,E.current||0))};return nd.useEffect(function(){return function(){clearTimeout(b.current)}},[]),nd.createElement(h,(0,wq.default)({appear:!0,in:i,nodeRef:S?C:void 0,onEnter:U,onEntered:J,onEntering:F,onExit:Z,onExited:G,onExiting:K,addEndListener:Q,timeout:g==="auto"?null:g},y),function(N,j){return nd.cloneElement(n,(0,wq.default)({style:(0,wq.default)({opacity:0,transform:Cq(.75),visibility:N==="exited"&&!i?"hidden":void 0},t5e[N],f,n.props.style),ref:k},j))})});LQ.muiSupportAuto=!0;var r5e=LQ;Vx.default=r5e});var UQ=_(Iq=>{"use strict";var n5e=$();Object.defineProperty(Iq,"__esModule",{value:!0});Object.defineProperty(Iq,"default",{enumerable:!0,get:function(){return o5e.default}});var o5e=n5e(BQ())});var $Q=_(wm=>{"use strict";var a5e=Ne(),od=$();Object.defineProperty(wm,"__esModule",{value:!0});wm.default=wm.styles=void 0;var i5e=od(ut()),s5e=od(po()),zQ=od(We()),Kx=a5e(z()),Rtt=od(je()),u5e=od(Le()),l5e=od(Mt()),c5e=od(Bx()),d5e=Ql(),WQ=function(e){var r=e.palette.type==="light"?.8:.98,n=(0,d5e.emphasize)(e.palette.background.default,r);return{root:(0,zQ.default)({},e.typography.body2,(0,s5e.default)({color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}};wm.styles=WQ;var p5e=Kx.forwardRef(function(e,r){var n=e.action,o=e.classes,a=e.className,i=e.message,s=e.role,u=s===void 0?"alert":s,l=(0,i5e.default)(e,["action","classes","className","message","role"]);return Kx.createElement(c5e.default,(0,zQ.default)({role:u,square:!0,elevation:6,className:(0,u5e.default)(o.root,a),ref:r},l),Kx.createElement("div",{className:o.message},i),n?Kx.createElement("div",{className:o.action},n):null)}),f5e=(0,l5e.default)(WQ,{name:"MuiSnackbarContent"})(p5e);wm.default=f5e});var HQ=_(kq=>{"use strict";var m5e=$();Object.defineProperty(kq,"__esModule",{value:!0});Object.defineProperty(kq,"default",{enumerable:!0,get:function(){return h5e.default}});var h5e=m5e($Q())});var XQ=_(Cm=>{"use strict";var g5e=Ne(),ko=$();Object.defineProperty(Cm,"__esModule",{value:!0});Cm.default=Cm.styles=void 0;var v5e=ko(ut()),xm=ko(po()),In=ko(We()),wi=g5e(z()),Att=ko(je()),y5e=ko(Le()),_5e=ko(Mt()),GQ=xp(),b5e=ko(qQ()),VQ=ko(Vc()),KQ=ko(na()),YQ=ko(Ax()),Mtt=ko(Kc()),S5e=ko(UQ()),E5e=ko(HQ()),JQ=function(e){var r={top:8},n={bottom:8},o={justifyContent:"flex-end"},a={justifyContent:"flex-start"},i={top:24},s={bottom:24},u={right:24},l={left:24},c={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:(0,In.default)({},r,(0,xm.default)({},e.breakpoints.up("sm"),(0,In.default)({},i,c))),anchorOriginBottomCenter:(0,In.default)({},n,(0,xm.default)({},e.breakpoints.up("sm"),(0,In.default)({},s,c))),anchorOriginTopRight:(0,In.default)({},r,o,(0,xm.default)({},e.breakpoints.up("sm"),(0,In.default)({left:"auto"},i,u))),anchorOriginBottomRight:(0,In.default)({},n,o,(0,xm.default)({},e.breakpoints.up("sm"),(0,In.default)({left:"auto"},s,u))),anchorOriginTopLeft:(0,In.default)({},r,a,(0,xm.default)({},e.breakpoints.up("sm"),(0,In.default)({right:"auto"},i,l))),anchorOriginBottomLeft:(0,In.default)({},n,a,(0,xm.default)({},e.breakpoints.up("sm"),(0,In.default)({right:"auto"},s,l)))}};Cm.styles=JQ;var T5e=wi.forwardRef(function(e,r){var n=e.action,o=e.anchorOrigin;o=o===void 0?{vertical:"bottom",horizontal:"center"}:o;var a=o.vertical,i=o.horizontal,s=e.autoHideDuration,u=s===void 0?null:s,l=e.children,c=e.classes,p=e.className,d=e.ClickAwayListenerProps,f=e.ContentProps,m=e.disableWindowBlurListener,g=m===void 0?!1:m,v=e.message,h=e.onClose,y=e.onEnter,b=e.onEntered,E=e.onEntering,w=e.onExit,S=e.onExited,C=e.onExiting,P=e.onMouseEnter,k=e.onMouseLeave,O=e.open,F=e.resumeHideDuration,U=e.TransitionComponent,J=U===void 0?S5e.default:U,K=e.transitionDuration,Z=K===void 0?{enter:GQ.duration.enteringScreen,exit:GQ.duration.leavingScreen}:K,G=e.TransitionProps,Q=(0,v5e.default)(e,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),N=wi.useRef(),j=wi.useState(!0),V=j[0],Y=j[1],X=(0,VQ.default)(function(){h&&h.apply(void 0,arguments)}),ie=(0,VQ.default)(function(me){!h||me==null||(clearTimeout(N.current),N.current=setTimeout(function(){X(null,"timeout")},me))});wi.useEffect(function(){return O&&ie(u),function(){clearTimeout(N.current)}},[O,u,ie]);var de=function(){clearTimeout(N.current)},pe=wi.useCallback(function(){u!=null&&ie(F!=null?F:u*.5)},[u,F,ie]),le=function(be){P&&P(be),de()},_e=function(be){k&&k(be),pe()},we=function(be){h&&h(be,"clickaway")},ge=function(){Y(!0)},Se=function(){Y(!1)};return wi.useEffect(function(){if(!g&&O)return window.addEventListener("focus",pe),window.addEventListener("blur",de),function(){window.removeEventListener("focus",pe),window.removeEventListener("blur",de)}},[g,pe,O]),!O&&V?null:wi.createElement(b5e.default,(0,In.default)({onClickAway:we},d),wi.createElement("div",(0,In.default)({className:(0,y5e.default)(c.root,c["anchorOrigin".concat((0,KQ.default)(a)).concat((0,KQ.default)(i))],p),onMouseEnter:le,onMouseLeave:_e,ref:r},Q),wi.createElement(J,(0,In.default)({appear:!0,in:O,onEnter:(0,YQ.default)(Se,y),onEntered:b,onEntering:E,onExit:w,onExited:(0,YQ.default)(ge,S),onExiting:C,timeout:Z,direction:a==="top"?"down":"up"},G),l||wi.createElement(E5e.default,(0,In.default)({message:v,action:n},f)))))}),w5e=(0,_5e.default)(JQ,{flip:!1,name:"MuiSnackbar"})(T5e);Cm.default=w5e});var ZQ=_(Pq=>{"use strict";var x5e=$();Object.defineProperty(Pq,"__esModule",{value:!0});Object.defineProperty(Pq,"default",{enumerable:!0,get:function(){return C5e.default}});var C5e=x5e(XQ())});var tee=_(Im=>{"use strict";var I5e=Ne(),ad=$();Object.defineProperty(Im,"__esModule",{value:!0});Im.default=Im.styles=void 0;var k5e=ad(We()),P5e=ad(ut()),Oq=I5e(z()),jtt=ad(je()),O5e=ad(Le()),Ltt=at(),R5e=ad(Mt()),Rq=Ql(),D5e=ad(Ox()),QQ=ad(na()),eee=function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,Rq.alpha)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Rq.alpha)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Rq.alpha)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}};Im.styles=eee;var N5e=Oq.forwardRef(function(e,r){var n=e.edge,o=n===void 0?!1:n,a=e.children,i=e.classes,s=e.className,u=e.color,l=u===void 0?"default":u,c=e.disabled,p=c===void 0?!1:c,d=e.disableFocusRipple,f=d===void 0?!1:d,m=e.size,g=m===void 0?"medium":m,v=(0,P5e.default)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return Oq.createElement(D5e.default,(0,k5e.default)({className:(0,O5e.default)(i.root,s,l!=="default"&&i["color".concat((0,QQ.default)(l))],p&&i.disabled,g==="small"&&i["size".concat((0,QQ.default)(g))],{start:i.edgeStart,end:i.edgeEnd}[o]),centerRipple:!0,focusRipple:!f,disabled:p,ref:r},v),Oq.createElement("span",{className:i.label},a))}),A5e=(0,R5e.default)(eee,{name:"MuiIconButton"})(N5e);Im.default=A5e});var h_=_(Dq=>{"use strict";var M5e=$();Object.defineProperty(Dq,"__esModule",{value:!0});Object.defineProperty(Dq,"default",{enumerable:!0,get:function(){return F5e.default}});var F5e=M5e(tee())});var Jx=_(Yx=>{"use strict";var q5e=$(),j5e=Ne();Object.defineProperty(Yx,"__esModule",{value:!0});Yx.default=void 0;var L5e=j5e(z()),B5e=q5e(ia()),U5e=(0,B5e.default)(L5e.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");Yx.default=U5e});var ree=_(Xx=>{"use strict";Object.defineProperty(Xx,"__esModule",{value:!0});Xx.default=void 0;function z5e(){var t=` \u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2554\u255D\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2554\u255D \u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2588\u2588\u2557 \u2588\u2588\u2554\u2550\u2550\u255D \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557 \u2588\u2588\u2551\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551 \u2588\u2588\u2551\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551 \u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2551 \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D -`;console.log(t),console.log("Nice to see you here! :) Join our dev community here https://github.com/ioBroker/ioBroker or here https://github.com/iobroker-community-adapters"),console.log("Help us to create open source project with reactJS!"),console.log("See you :)")}var W5e=z5e;Xx.default=W5e});var nee=_(($tt,$5e)=>{$5e.exports={}});var see=_(Zx=>{"use strict";var pl=$();Object.defineProperty(Zx,"__esModule",{value:!0});Zx.default=void 0;var H5e=pl(ho()),G5e=pl(Yn()),V5e=pl(Au()),K5e=pl(Mu()),oee=pl(cs()),xi=pl(z()),aee=pl(je()),Y5e=pl(Mt());nee();function J5e(t){var e=X5e();return function(){var n=(0,oee.default)(t),o;if(e){var a=(0,oee.default)(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return(0,K5e.default)(this,o)}}function X5e(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var Z5e=function(e){return{}},iee=function(t){(0,V5e.default)(r,t);var e=J5e(r);function r(){return(0,H5e.default)(this,r),e.apply(this,arguments)}return(0,G5e.default)(r,[{key:"render",value:function(){var o=this.props.size||234,a=this.props.themeType||this.props.theme||"light";return xi.default.createElement("div",{className:"logo-back logo-background-"+a},xi.default.createElement("div",{className:"logo-div",style:{width:o,height:o}},xi.default.createElement("div",{className:"logo-top logo-background-"+a,style:{left:"37%"}}),xi.default.createElement("div",{className:"logo-top logo-background-"+a,style:{left:"57%"}}),xi.default.createElement("div",{className:"logo-border logo-background-"+a+" logo-animate-wait",style:{borderWidth:o*.132}}),xi.default.createElement("div",{className:"logo-i logo-animate-color-inside-"+a}),xi.default.createElement("div",{className:"logo-i-top logo-animate-color-inside-"+a,style:{top:"18%"}}),xi.default.createElement("div",{className:"logo-i-top logo-animate-color-inside-"+a,style:{bottom:"18%"}})),xi.default.createElement("div",{className:"logo-animate-grow logo-animate-grow-"+a,style:{width:o+11,height:o+11}}))}}]),r}(xi.default.Component);iee.propTypes={size:aee.default.number,themeType:aee.default.string};var Q5e=(0,Y5e.default)(Z5e)(iee),eze=Q5e;Zx.default=eze});var lee=_(Qx=>{"use strict";var id=$();Object.defineProperty(Qx,"__esModule",{value:!0});Qx.default=void 0;var tze=id(ho()),rze=id(Yn()),nze=id(lv()),oze=id(Au()),aze=id(Mu()),uee=id(cs()),ize=id(z());function sze(t){var e=uze();return function(){var n=(0,uee.default)(t),o;if(e){var a=(0,uee.default)(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return(0,aze.default)(this,o)}}function uze(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var lze=function(t){(0,oze.default)(r,t);var e=sze(r);function r(n){var o;return(0,tze.default)(this,r),o=e.call(this,n),o.onHashChangedBound=o.onHashChanged.bind((0,nze.default)(o)),o}return(0,rze.default)(r,[{key:"componentDidMount",value:function(){window.addEventListener("hashchange",this.onHashChangedBound)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("hashchange",this.onHashChangedBound)}},{key:"onHashChanged",value:function(){}}],[{key:"getLocation",value:function(){var o=window.location.hash;o=o.replace(/^#/,"");var a=o.split("/").map(function(i){try{return i?decodeURIComponent(i):""}catch(s){return console.error("Router: Cannot decode "+i),i||""}});return{tab:a[0]||"",dialog:a[1]||"",id:a[2]||"",arg:a[3]||""}}},{key:"doNavigate",value:function(o,a,i,s){var u="",l=r.getLocation();s!==void 0&&!i&&(i=l.id),i&&!a&&(a=l.dialog),(a&&!o||o===null)&&(o=l.tab),o&&(u="#"+o,a&&(u+="/"+a,i&&(u+="/"+i,s!==void 0&&(u+="/"+s)))),window.location.hash!==u&&(window.location.hash=u)}}]),r}(ize.default.Component),cze=lze;Qx.default=cze});var pee=_(km=>{"use strict";var dze=Ne(),sd=$();Object.defineProperty(km,"__esModule",{value:!0});km.default=km.styles=void 0;var fze=sd(ut()),dee=sd(We()),Nq=dze(z()),Vtt=sd(je()),cee=sd(Le()),Ktt=at(),pze=sd(Mt()),mze=sd(Ox()),hze=sd(na()),fee=function(e){return{root:(0,dee.default)({},e.typography.button,{boxSizing:"border-box",minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:e.shadows[6],"&:active":{boxShadow:e.shadows[12]},color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey.A100,"@media (hover: none)":{backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground},textDecoration:"none"},"&$focusVisible":{boxShadow:e.shadows[6]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},primary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},secondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},extended:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48,"&$sizeSmall":{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},"&$sizeMedium":{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},focusVisible:{},disabled:{},colorInherit:{color:"inherit"},sizeSmall:{width:40,height:40},sizeMedium:{width:48,height:48}}};km.styles=fee;var gze=Nq.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.color,s=i===void 0?"default":i,u=e.component,l=u===void 0?"button":u,c=e.disabled,f=c===void 0?!1:c,d=e.disableFocusRipple,p=d===void 0?!1:d,m=e.focusVisibleClassName,g=e.size,v=g===void 0?"large":g,h=e.variant,y=h===void 0?"circular":h,b=(0,fze.default)(e,["children","classes","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"]);return Nq.createElement(mze.default,(0,dee.default)({className:(0,cee.default)(o.root,a,v!=="large"&&o["size".concat((0,hze.default)(v))],f&&o.disabled,y==="extended"&&o.extended,{primary:o.primary,secondary:o.secondary,inherit:o.colorInherit}[s]),component:l,disabled:f,focusRipple:!p,focusVisibleClassName:(0,cee.default)(o.focusVisible,m),ref:r},b),Nq.createElement("span",{className:o.label},n))}),vze=(0,pze.default)(fee,{name:"MuiFab"})(gze);km.default=vze});var g_=_(Aq=>{"use strict";var yze=$();Object.defineProperty(Aq,"__esModule",{value:!0});Object.defineProperty(Aq,"default",{enumerable:!0,get:function(){return _ze.default}});var _ze=yze(pee())});var gee=_(Pm=>{"use strict";var bze=Ne(),Om=$();Object.defineProperty(Pm,"__esModule",{value:!0});Pm.default=Pm.styles=void 0;var Sze=Om(We()),Eze=Om(ut()),Tze=Om(fo()),mee=bze(z()),Xtt=Om(je()),wze=Om(Le()),xze=Om(Mt()),hee=function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:(0,Tze.default)({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}};Pm.styles=hee;var Cze=mee.forwardRef(function(e,r){var n=e.classes,o=e.className,a=e.component,i=a===void 0?"div":a,s=e.disableGutters,u=s===void 0?!1:s,l=e.variant,c=l===void 0?"regular":l,f=(0,Eze.default)(e,["classes","className","component","disableGutters","variant"]);return mee.createElement(i,(0,Sze.default)({className:(0,wze.default)(n.root,n[c],o,!u&&n.gutters),ref:r},f))}),Ize=(0,xze.default)(hee,{name:"MuiToolbar"})(Cze);Pm.default=Ize});var vee=_(Mq=>{"use strict";var kze=$();Object.defineProperty(Mq,"__esModule",{value:!0});Object.defineProperty(Mq,"default",{enumerable:!0,get:function(){return Pze.default}});var Pze=kze(gee())});var yee=_(eC=>{"use strict";var Oze=$(),Rze=Ne();Object.defineProperty(eC,"__esModule",{value:!0});eC.default=void 0;var Dze=Rze(z()),Nze=Oze(ia()),Aze=(0,Nze.default)(Dze.createElement("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"}),"Save");eC.default=Aze});var Tee=_(tC=>{"use strict";var Po=$();Object.defineProperty(tC,"__esModule",{value:!0});tC.default=void 0;var Mze=Po(ho()),Fze=Po(Yn()),qze=Po(Au()),jze=Po(Mu()),_ee=Po(cs()),Ci=Po(z()),Lze=Po(Mt()),Fq=Po(g_()),Ii=Po(je()),Bze=Po(vee()),qq=Po(_o()),bee=Po(yee()),See=Po(Jx());function Uze(t){var e=zze();return function(){var n=(0,_ee.default)(t),o;if(e){var a=(0,_ee.default)(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return(0,jze.default)(this,o)}}function zze(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var Wze=function(e){return{buttonIcon:{marginRight:8}}},Eee=function(t){(0,qze.default)(r,t);var e=Uze(r);function r(n){var o;(0,Mze.default)(this,r),o=e.call(this,n);try{o.isIFrame=!n.newReact&&window.self!==window.top}catch(a){o.isIFrame=!n.newReact}return o}return(0,Fze.default)(r,[{key:"render",value:function(){var o=this,a=this.props.noTextOnButtons,i={borderRadius:this.props.theme.saveToolbar.button.borderRadius||3,height:this.props.theme.saveToolbar.button.height||32},s={bottom:this.isIFrame?38:0,left:this.props.paddingLeft||0,right:0,position:"absolute",background:this.props.theme.saveToolbar.background};return this.props.dense&&(s.minHeight=48),this.props.error&&(i.border="1px solid red"),Ci.default.createElement(Bze.default,{position:"absolute",style:s},Ci.default.createElement(Fq.default,{variant:"extended","aria-label":"Save",disabled:!this.props.changed||this.props.error,onClick:function(){return o.props.onSave(!1)},style:i},Ci.default.createElement(bee.default,{className:a?"":this.props.classes.buttonIcon}),!a&&qq.default.t("ra_Save")),Ci.default.createElement(Fq.default,{variant:"extended","aria-label":"Save and close",disabled:!this.props.changed||this.props.error,onClick:function(){return o.props.onSave(!0)},style:Object.assign({},i,{marginLeft:10})},Ci.default.createElement(bee.default,{className:a?"":this.props.classes.buttonIcon}),a?"+":qq.default.t("ra_Save and close"),a&&Ci.default.createElement(See.default,null)),Ci.default.createElement("div",{style:{flexGrow:1}}),Ci.default.createElement(Fq.default,{variant:"extended","aria-label":"Close",onClick:function(){return o.props.onClose()},style:i},Ci.default.createElement(See.default,{className:a?"":this.props.classes.buttonIcon}),!a&&qq.default.t("ra_Close")))}}]),r}(Ci.default.Component);Eee.propTypes={dense:Ii.default.bool,paddingLeft:Ii.default.number,noTextOnButtons:Ii.default.bool,theme:Ii.default.object,isIFrame:Ii.default.bool,changed:Ii.default.bool.isRequired,error:Ii.default.bool,onSave:Ii.default.func.isRequired,onClose:Ii.default.func.isRequired,newReact:Ii.default.bool};var $ze=(0,Lze.default)(Wze)(Eee),Hze=$ze;tC.default=Hze});var wee=_((rrt,Gze)=>{Gze.exports={}});var xee=_((nrt,Vze)=>{Vze.exports={"ra_Are you sure?":"Are you sure?",ra_Cancel:"Cancel",ra_Copied:"Copied","ra_Copied %s":'Copied "%s"',ra_Error:"Error","ra_Define functions":"Define functions","ra_Define rooms":"Define rooms",ra_Message:"Message","ra_Please select object ID...":"Please select object ID...",ra_Selected:"Selected",ra_Value:"Value",ra_Ok:"Ok",ra_dow_Su:"Su",ra_dow_Mo:"Mo",ra_dow_Tu:"Tu",ra_dow_We:"We",ra_dow_Th:"Th",ra_dow_Fr:"Fr",ra_dow_Sa:"Sa",ra_months_Jan:"Jan",ra_months_Feb:"Feb",ra_months_Mar:"Mar",ra_months_Apr:"Apr",ra_months_Mai:"Mai",ra_months_Jun:"Jun",ra_months_Jul:"Jul",ra_months_Aug:"Aug",ra_months_Sep:"Sep",ra_months_Oct:"Oct",ra_months_Nov:"Nov",ra_months_Dec:"Dec","ra_Unknown error!":"Unknown error!",ra_filter_customs:"Settings",ra_filter_func:"Function",ra_filter_id:"ID",ra_filter_name:"Name",ra_filter_role:"Role",ra_filter_room:"Room",ra_filter_type:"Type",ra_invalidConfig:"Invalid settings",ra_otherConfig:"Settings from other adapter %s",ra_tooltip_ack:"Acknowledged",ra_tooltip_from:"From",ra_tooltip_lc:"Last changed",ra_tooltip_quality:"Quality",ra_tooltip_ts:"Time stamp",ra_tooltip_user:"User",ra_tooltip_value:"Value",ra_tooltip_editObject:"Edit object",ra_tooltip_deleteObject:"Delete object",ra_tooltip_customConfig:"Custom settings",ra_tooltip_copyState:"Copy the state value",ra_tooltip_editState:"Edit the state value","ra_Listen on all IPs":"Listen on all IPs",ra_Save:"Save","ra_Save and close":"Save and close",ra_Close:"Close","ra_Auto (no custom columns)":"Auto (no custom columns)","ra_Transparent dialog":"Transparent dialog",ra_Width:"Width",ra_val:"Value",ra_buttons:"Buttons","ra_Configure visible columns":"Configure visible columns","ra_Cannot update attribute, because not found in the object":"Cannot update attribute, because not found in the object","ra_Edit object field":"Edit object field","ra_Hide empty folders":"Hide empty folders","ra_Reload files":"Reload files","ra_Create folder":"Create folder","ra_Upload file":"Upload file","ra_User files":"User files","ra_Confirm deletion of %s":"Confirm deletion of %s","ra_Delete (no confirm for 5 mins)":"Delete (no confirm for 5 mins)",ra_Delete:"Delete","ra_Toggle expert mode":"Toggle expert mode","ra_Toggle view mode":"Toggle view mode",ra_Root:"Root","ra_Back to %s":"Back to %s","ra_Place your files here or click here to open the browse dialog":"Place your files here or click here to open the browse dialog","ra_If no file will be created in the folder, it will disappear after the browser closed":"If no file will be created in the folder, it will disappear after the browser closed","ra_Folder name":"Folder name","ra_Create new folder in %s":"Create new folder in %s","ra_Duplicate name":"Duplicate name","ra_Invalid parent folder!":"Invalid parent folder!","ra_Drop file here":"Drop file here","ra_Suppress question for next %s minutes":"Suppress question for next %s minutes","ra_Clear filter":"Clear filter",ra_Update:"Update","ra_Load configuration from file":"Load configuration from file","ra_Save configuration to file":"Save configuration to file",sc_cron:"CRON",sc_date:"Date",sc_dates:"Dates",sc_dows:"Day of week",sc_every:"Every",sc_everyN_dates:"every N days",sc_everyN_dows:"every N day of week",sc_everyN_hours:"every N hours",sc_everyN_minutes:"every N minutes",sc_everyN_months:"every N months",sc_everyN_seconds:"every N seconds",sc_every_dates:"every day",sc_every_dows:"every day of the week",sc_every_hours:"every hour",sc_every_minutes:"every minute",sc_every_months:"every month",sc_every_seconds:"every second",sc_from:"From",sc_hours:"Hours",sc_interval:"Interval",sc_intervalBetween:"Interval between",sc_minutes:"Minutes",sc_months:"months",sc_once:"Once",sc_period:"Period",sc_seconds:"Seconds",sc_simple:"Simple",sc_specific:"Specific time",sc_specific_dates:"specific dates",sc_specific_dows:"specific day of weeks",sc_specific_hours:"specific hours",sc_specific_minutes:"specific minutes",sc_specific_months:"specific months",sc_specific_seconds:"specific seconds",sc_time:"Time",sc_to:"To",sc_wizard:"Wizard",sch_all:"all",sch_astroDay:"Astro day",sch_astroNight:"Astro night",sch_astro_dawn:"Dawn",sch_astro_dusk:"Dusk",sch_astro_goldenHour:"Golden hour",sch_astro_goldenHourEnd:"Golden hour end",sch_astro_nadir:"Nadir",sch_astro_nauticalDawn:"Nautical dawn",sch_astro_nauticalDusk:"Nautical dusk",sch_astro_night:"Night",sch_astro_nightEnd:"Night end",sch_astro_solarNoon:"Solar noon",sch_astro_sunrise:"Sunrise",sch_astro_sunriseEnd:"Sunrise end",sch_astro_sunset:"Sunset",sch_astro_sunsetStart:"Sunset start",sch_at:"at",sch_desc_atTime:"at %s",sch_desc_everyDay:"every day",sch_desc_everyHour:"every hour",sch_desc_everyMinute:"every minute",sch_desc_everyMonth:"every month",sch_desc_everyNDay:"every %s day",sch_desc_everyNHours:"every %s hours",sch_desc_everyNMinutes:"every %s minutes",sch_desc_everyNMonths:"every %s months",sch_desc_everyNWeeks:"every %s weeks",sch_desc_everyNYears:"every %s years",sch_desc_everyWeek:"every week",sch_desc_everyYear:"every year",sch_desc_intervalFromTo:"from %s to %s",sch_desc_never:"never",sch_desc_onDate:"on %s of %s",sch_desc_onDates:"on %s and %s of",sch_desc_onEveryDate:"on every date of",sch_desc_onMonth:"%s",sch_desc_onMonths:"%s and %s",sch_desc_onWeekday:"on %s",sch_desc_onWeekdays:"on %s and %s",sch_desc_onWeekends:"on weekends",sch_desc_onWorkdays:"on working days",sch_desc_onceInPast:"will ne be not executed any more, because start is in the past",sch_desc_once_on:"on %s",sch_desc_validFrom:"from %s",sch_desc_validFromTo:"Execute from to",sch_desc_validTo:"to %s",sch_every:"every",sch_exactTime:"Specific time",sch_from:"from",sch_fromTo:"From-to",sch_intervalTime:"Interval time",sch_invert:"invert",sch_no_one:"none",sch_on:"on",sch_period:"Period",sch_periodDaily:"Daily",sch_periodDates:"Dates",sch_periodDay:"Day",sch_periodEvery:"Every",sch_periodEveryDay:"Every day",sch_periodEveryMonth:"Every month",sch_periodEveryWeek:"Every week",sch_periodEveryYear:"Every year",sch_periodHours:"Hours",sch_periodMinutes:"Minutes",sch_periodMonth:"month",sch_periodMonthly:"Monthly",sch_periodOnce:"Once",sch_periodSpecificMonths:"Specific months",sch_periodWeek:"Week",sch_periodWeekdays:"Weekdays",sch_periodWeekend:"Weekend",sch_periodWeekly:"Weekly",sch_periodWorkdays:"Workdays",sch_periodYear:"Year",sch_periodYearly:"Yearly",sch_specificTime:"Specific time",sch_time:"Time",sch_to:"to",sch_valid:"Valid",sch_validFrom:"from",sch_validTo:"to",sch_wholeDay:"Whole day",sch_yearEveryMonth:"every month","ra_Define schedule...":"Define schedule...",ra_Repeat:"Repeat","ra_use seconds":"use seconds",ra_close:"close","ra_Toggle the states view":"Toggle the states view","ra_Add new child object to selected parent":"Add new child object to selected parent","ra_Add objects tree from JSON file":"Add objects tree from JSON file","ra_Save objects tree as JSON file":"Save objects tree as JSON file",ra_Objects:"Objects",ra_States:"States",ra_object_changed_by_user:"Object last changed at",ra_object_changed_by:"Object changed by",ra_state_changed_from:"Object changed from",ra_state_changed_by:"State changed by",ra_aclOwner_read_object:"Owner can read object",ra_aclOwner_read_state:"Owner can read state",ra_aclOwner_write_object:"Owner can write object",ra_aclOwner_write_state:"Owner can write state",ra_aclGroup_read_object:"Group can read object",ra_aclGroup_read_state:"Group can read state",ra_aclGroup_write_object:"Group can write object",ra_aclGroup_write_state:"Group can write state",ra_aclEveryone_read_object:"Everyone can read object",ra_aclEveryone_read_state:"Everyone can read state",ra_aclEveryone_write_object:"Everyone can write object",ra_aclEveryone_write_state:"Everyone can write state","ra_Folders always first":"Folders always first",ra_changedFrom:"Changed from",ra_qualityCode:"Quality code",ra_timestamp:"Timestamp",ra_lastChange:"Last change","ra_Owner group":"Owner group","ra_Owner user":"Owner user",ra_Create:"Create","ra_Changed from":"Changed from","ra_Quality code":"Quality",ra_Timestamp:"Timestamp","ra_Last change":"Last change","ra_Collapse all nodes":"Collapse all nodes","ra_Edit custom config":"Edit custom config","ra_Collapse one step node":"Collapse one level","ra_Expand one step node":"Expand one level","ra_Refresh tree":"Refresh tree","ra_Expand all nodes":"Expand all nodes","ra_Deselect all":"Unselect all","ra_Select all":"Select all","ra_%s object(s) processed":"%s object(s) processed","ra_Invalid structure":"Invalid structure","ra_%s was imported":"%s was imported","ra_Failed to open JSON File":"Failed to open JSON File","ra_Only following structures of objects are available:":"Only following structures of objects are available:","ra_Folder \u2192 State":"Folder \u2192 State","ra_Folder \u2192 Channel \u2192 State":"Folder \u2192 Channel \u2192 State","ra_Folder \u2192 Device \u2192 Channel \u2192 State":"Folder \u2192 Device \u2192 Channel \u2192 State","ra_Device \u2192 Channel \u2192 State":"Device \u2192 Channel \u2192 State","ra_Channel \u2192 State":"Channel \u2192 State",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Non-experts may create new objects only in "0_userdata.0" or "alias.0".','ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").',ra_expertMode:"Expert mode","ra_On weekdays":"On weekdays","ra_Drop the files here...":"Drop the file here...","ra_Drag 'n' drop some files here, or click to select files":"Drag 'n' drop some files here, or click to select files",ra_Clear:"Delete","ra_Clear icon":"Clear icon",ra_none:"none","ra_Select predefined icon":"Select predefined icon","ra_Show lines between rows":"Show lines between rows","ra_The page you are looking for was not found":"The page you are looking for was not found","ra_Good luck":"Good luck",'ra_Cannot find "%s"':'Cannot find "%s"','ra_Cannot read "%s"':'Cannot read "%s"',"ra_Back to %s":"Back to %s","ra_Background image":"Background image","ra_View: %s":"View: %s","ra_Copy content":"Copy content",ra_Filter:"Filter","ra_All objects":"All objects","ra_Only selected":"Only selected","ra_Change color theme":"Change color theme",ra_daysShortText:"days"}});var Cee=_((ort,Kze)=>{Kze.exports={ra_filter_func:"Funktion",ra_filter_id:"ID",ra_filter_name:"Name",ra_filter_type:"Typ",ra_filter_customs:"Einstellungen",ra_filter_role:"Rolle",ra_filter_room:"Raum",ra_tooltip_ack:"Best\xE4tigt",ra_tooltip_from:"Von",ra_tooltip_lc:"Zuletzt ge\xE4ndert",ra_tooltip_quality:"Qualit\xE4t",ra_tooltip_ts:"Zeitstempel",ra_tooltip_user:"Benutzer",ra_tooltip_value:"Wert","ra_Are you sure?":"Bist du sicher?",ra_Cancel:"Abbrechen",ra_Copied:"Kopiert","ra_Copied %s":'"%s" kopiert',"ra_Define functions":"Funktionen definieren","ra_Define rooms":"R\xE4ume definieren",ra_Error:"Fehler",ra_Message:"Meldung",ra_Ok:"OK","ra_Please select object ID...":"Bitte Objekt-ID ausw\xE4hlen...",ra_Selected:"Ausgew\xE4hlt","ra_Unknown error!":"Unbekannter Fehler!",ra_Value:"Wert",ra_invalidConfig:"Ung\xFCltige Einstellungen",ra_otherConfig:"Einstellungen von anderen Adaptern %s",ra_tooltip_copyState:"Kopieren Sie den Statuswert",ra_tooltip_customConfig:"Benutzerdefinierte Einstellungen",ra_tooltip_deleteObject:"Objekt l\xF6schen",ra_tooltip_editObject:"Objekt bearbeiten",ra_tooltip_editState:"Bearbeiten Sie den Statuswert",ra_dow_Fr:"Fr",ra_dow_Mo:"Mo",ra_dow_Sa:"Sa",ra_dow_Su:"So",ra_dow_Th:"Do",ra_dow_Tu:"Di",ra_dow_We:"Mi","ra_Listen on all IPs":"Zugriff von allen IPs zulassen",ra_Save:"Speichern","ra_Save and close":"Speichern und schlie\xDFen",ra_Close:"Schlie\xDFen","ra_Auto (no custom columns)":"Auto (keine benutzerdefinierten Spalten)","ra_Transparent dialog":"Transparenter Dialog",ra_Width:"Breite",ra_val:"Wert",ra_buttons:"Tasten","ra_Configure visible columns":"Spalten Konfigurieren",ra_close:"Schlie\xDFen","ra_Cannot update attribute, because not found in the object":"Attribut kann nicht aktualisiert werden, da es nicht im Objekt gefunden wurde","ra_Edit object field":"Objektfeld bearbeiten","ra_Hide empty folders":"Leere Ordner ausblenden","ra_Reload files":"Dateien neu laden","ra_Create folder":"Ordner erstellen","ra_Upload file":"Datei hochladen","ra_User files":"Benutzerdaten","ra_Confirm deletion of %s":"Best\xE4tigen Sie das L\xF6schen von %s","ra_Delete (no confirm for 5 mins)":"L\xF6schen (keine Best\xE4tigung f\xFCr 5 Minuten)",ra_Delete:"L\xF6schen","ra_Toggle expert mode":"Expertenmodus umschalten","ra_Toggle view mode":"Ansichtsmodus umschalten",ra_Root:"Anfang","ra_Back to %s":"Zur\xFCck zu %s","ra_Place your files here or click here to open the browse dialog":"Platzieren Sie Ihre Dateien hier oder klicken Sie hier, um den Suchdialog zu \xF6ffnen","ra_If no file will be created in the folder, it will disappear after the browser closed":"Wenn im Ordner keine Datei erstellt wird, verschwindet dieser nach dem Schlie\xDFen des Browsers","ra_Folder name":"Ordnernamen","ra_Create new folder in %s":'Neuen Ordner in "%s" erstellen',"ra_Duplicate name":"Doppelter Name","ra_Invalid parent folder!":"Ung\xFCltiger \xFCbergeordneter Ordner!","ra_Drop file here":"Datei hier ablegen","ra_Suppress question for next %s minutes":"Frage f\xFCr die n\xE4chsten %s Minuten unterdr\xFCcken","ra_Clear filter":"Filter l\xF6schen",ra_Update:"Aktualisieren","ra_Load configuration from file":"Konfiguration aus Datei laden","ra_Save configuration to file":"Konfiguration in Datei speichern",sc_cron:"CRON",sc_date:"Datum",sc_dates:"Tage",sc_dows:"Wochentage",sc_every:"Jeden",sc_everyN_dates:"alle N Tage",sc_everyN_dows:"alle N Wochentage",sc_everyN_hours:"alle N Stunden",sc_everyN_minutes:"alle N Minuten",sc_everyN_months:"alle N Monate",sc_everyN_seconds:"alle N Sekunden",sc_every_dates:"jeden Tag",sc_every_dows:"jeden Tag der Woche",sc_every_hours:"jede Stunde",sc_every_minutes:"jede Minute",sc_every_months:"jeden Monat",sc_every_seconds:"jede Sekunde",sc_from:"Von",sc_hours:"Stunden",sc_interval:"Intervall",sc_intervalBetween:"Intervall zwischen",sc_minutes:"Minuten",sc_months:"Monate",sc_once:"Einmal",sc_period:"Zeitraum",sc_seconds:"Sekunden",sc_simple:"Einfach",sc_specific:"Bestimmte Zeit",sc_specific_dates:"bestimmte Tage",sc_specific_dows:"bestimmten Wochentag",sc_specific_hours:"bestimmte Stunden",sc_specific_minutes:"bestimmte Minuten",sc_specific_months:"bestimmte Monate",sc_specific_seconds:"bestimmte Sekunden",sc_time:"Zeit",sc_to:"Bis",sc_wizard:"Wizard",sch_all:"alle",sch_astroDay:"Astronomisch Tag",sch_astroNight:"Astronomisch Nacht",sch_astro_dawn:"Morgend\xE4mmerung",sch_astro_dusk:"Abendd\xE4mmerung",sch_astro_goldenHour:"Goldene Stunde",sch_astro_goldenHourEnd:"Goldene Stundenende",sch_astro_nadir:"Nadir",sch_astro_nauticalDawn:"Nautische Morgend\xE4mmerung",sch_astro_nauticalDusk:"Nautische Abendd\xE4mmerung",sch_astro_night:"Nacht",sch_astro_nightEnd:"Nachtende",sch_astro_solarNoon:"Sonnenmittag",sch_astro_sunrise:"Sonnenaufgang",sch_astro_sunriseEnd:"Sonnenaufgangende",sch_astro_sunset:"Sonnenuntergang",sch_astro_sunsetStart:"Sonnenuntergangstart",sch_at:"am",sch_desc_atTime:"um %s",sch_desc_everyDay:"jeden Tag",sch_desc_everyHour:"jede Stunde",sch_desc_everyMinute:"jede Minute",sch_desc_everyMonth:"jeden Monat",sch_desc_everyNDay:"jeden %s Tag",sch_desc_everyNHours:"alle %s Stunden",sch_desc_everyNMinutes:"alle %s Minuten",sch_desc_everyNMonths:"alle %s Monate",sch_desc_everyNWeeks:"alle %s Wochen",sch_desc_everyNYears:"alle %s Jahre",sch_desc_everyWeek:"jede Woche",sch_desc_everyYear:"jedes Jahr",sch_desc_intervalFromTo:"von %s bis %s",sch_desc_never:"noch nie",sch_desc_onDate:"am %s von %s",sch_desc_onDates:"am %s und %s von",sch_desc_onEveryDate:"an jedem Datum von",sch_desc_onMonth:"%s",sch_desc_onMonths:"%s und %s",sch_desc_onWeekday:"auf %s",sch_desc_onWeekdays:"auf %s und %s",sch_desc_onWeekends:"an Wochenenden",sch_desc_onWorkdays:"an Werktagen",sch_desc_onceInPast:"wird nicht mehr ausgef\xFChrt, weil der Start in der Vergangenheit ist",sch_desc_once_on:"auf %s",sch_desc_validFrom:"von %s",sch_desc_validFromTo:"Ausf\xFChren von bis",sch_desc_validTo:"bis %s",sch_every:"jeden",sch_exactTime:"Bestimmte Zeit",sch_from:"von",sch_fromTo:"Von bis",sch_intervalTime:"Zeitintervall",sch_invert:"umkehren",sch_no_one:"keiner",sch_on:"am",sch_period:"Zeitraum",sch_periodDaily:"T\xE4glich",sch_periodDates:"Daten",sch_periodDay:"Tag",sch_periodEvery:"Jeden",sch_periodEveryDay:"Jeden Tag",sch_periodEveryMonth:"Jeden Monat",sch_periodEveryWeek:"Jede Woche",sch_periodEveryYear:"Jedes Jahr",sch_periodHours:"Stunden",sch_periodMinutes:"Minuten",sch_periodMonth:"Monat",sch_periodMonthly:"Monatlich",sch_periodOnce:"Einmal",sch_periodSpecificMonths:"Bestimmte Monate",sch_periodWeek:"Woche",sch_periodWeekdays:"Wochentage",sch_periodWeekend:"Wochenende",sch_periodWeekly:"W\xF6chentlich",sch_periodWorkdays:"Arbeitstage",sch_periodYear:"Jahr",sch_periodYearly:"J\xE4hrlich",sch_specificTime:"Bestimmte Zeit",sch_time:"Zeit",sch_to:"zu",sch_valid:"G\xFCltigkeit",sch_validFrom:"von",sch_validTo:"bis",sch_wholeDay:"Ganzer Tag",sch_yearEveryMonth:"jeden Monat","ra_Define schedule...":"Zeitplan definieren ...",ra_Repeat:"Wiederholen","ra_use seconds":"Sekunden benutzen",ra_months_Apr:"Apr",ra_months_Aug:"Aug",ra_months_Dec:"Dez",ra_months_Jan:"Jan",ra_months_Feb:"Feb",ra_months_Jul:"Jul",ra_months_Jun:"Jun",ra_months_Mai:"Mai",ra_months_Mar:"M\xE4r",ra_months_Nov:"Nov",ra_months_Oct:"Okt",ra_months_Sep:"Sep","ra_Toggle the states view":"Statusansicht umschalten","ra_Add new child object to selected parent":"Dem ausgew\xE4hlten \xFCbergeordneten Objekt ein neues untergeordnetes Objekt hinzuf\xFCgen","ra_Add objects tree from JSON file":"Objektbaum aus JSON-Datei hinzuf\xFCgen","ra_Save objects tree as JSON file":"Objektbaum als JSON-Datei speichern",ra_Objects:"Objekte",ra_States:"Zust\xE4nde",ra_object_changed_by_user:"Objekt zuletzt ge\xE4ndert um",ra_object_changed_by:"Objekt ge\xE4ndert von",ra_state_changed_from:"Objekt ge\xE4ndert von",ra_state_changed_by:"Zustand ge\xE4ndert durch",ra_aclOwner_read_object:"Besitzer kann Objekt lesen",ra_aclOwner_read_state:"Besitzer kann Zustand lesen",ra_aclOwner_write_object:"Besitzer kann Objekt schreiben",ra_aclOwner_write_state:"Besitzer kann Zustand schreiben",ra_aclGroup_read_object:"Gruppe kann Objekt lesen",ra_aclGroup_read_state:"Gruppe kann Status lesen",ra_aclGroup_write_object:"Gruppe kann Objekt schreiben",ra_aclGroup_write_state:"Gruppe kann Status schreiben",ra_aclEveryone_read_object:"Jeder kann Objekt lesen",ra_aclEveryone_read_state:"Jeder kann Zustand lesen",ra_aclEveryone_write_object:"Jeder kann ein Objekt schreiben",ra_aclEveryone_write_state:"Jeder kann Zustand schreiben","ra_Folders always first":"Ordner immer zuerst",ra_changedFrom:"Ge\xE4ndert von",ra_qualityCode:"Qualit\xE4tscode",ra_timestamp:"Zeitstempel",ra_lastChange:"Letzte \xC4nderung","ra_Owner group":"Besitzergruppe","ra_Owner user":"Besitzer Benutzer",ra_Create:"Erstellen","ra_Changed from":"Ge\xE4ndert von","ra_Quality code":"Qualit\xE4t",ra_Timestamp:"Zeitstempel","ra_Last change":"Letzte \xC4nderung","ra_Collapse all nodes":"Alle Knoten zuklappen","ra_Edit custom config":"Bearbeite Benutzerdefinierte Konfiguration","ra_Collapse one step node":"Eine Ebene zuklappen","ra_Expand one step node":"Eine Ebene aufklappen","ra_Refresh tree":"Baum aktualisieren","ra_Expand all nodes":"Alle Knoten aufklappen","ra_Deselect all":"Alles abw\xE4hlen","ra_Select all":"Alle ausw\xE4hlen","ra_%s object(s) processed":"%s Objekt(e) verarbeitet","ra_Invalid structure":"Ung\xFCltige Struktur","ra_%s was imported":"%s wurde importiert","ra_Failed to open JSON File":"Fehler beim \xD6ffnen der JSON-Datei","ra_Only following structures of objects are available:":"Es stehen nur folgende Objektstrukturen zur Verf\xFCgung:","ra_Folder \u2192 State":"Ordner \u2192 Zustand","ra_Folder \u2192 Channel \u2192 State":"Ordner \u2192 Kanal \u2192 Zustand","ra_Folder \u2192 Device \u2192 Channel \u2192 State":"Ordner \u2192 Ger\xE4t \u2192 Kanal \u2192 Zustand","ra_Device \u2192 Channel \u2192 State":"Ger\xE4t \u2192 Kanal \u2192 Status","ra_Channel \u2192 State":"Kanal \u2192 Status",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Nicht-Experten d\xFCrfen neue Objekte nur in "0_userdata.0" oder "alias.0" erstellen.','ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Die Experten k\xF6nnen Objekte \xFCberall erstellen, au\xDFer auf der zweiten Ebene (z. B. "vis.0" oder "javascript.0").',ra_expertMode:"Expertenmodus","ra_On weekdays":"An Wochentagen","ra_Drop the files here...":"Datei hier ablegen...","ra_Drag 'n' drop some files here, or click to select files":"Die Datei hierher ziehen und ablegen, oder klicken, um die Datei auszuw\xE4hlen",ra_Clear:"L\xF6schen","ra_Clear icon":"Symbol l\xF6schen",ra_none:"kein","ra_Select predefined icon":"Vordefiniertes Symbol ausw\xE4hlen","ra_Show lines between rows":"Zeilen zwischen Zeilen anzeigen","ra_The page you are looking for was not found":"Die gesuchte Seite wurde nicht gefunden","ra_Good luck":"Viel Gl\xFCck",'ra_Cannot find "%s"':'Kann "%s" nicht finden','ra_Cannot read "%s"':'"%s" kann nicht gelesen werden',"ra_Back to %s":"Zur\xFCck zu %s","ra_Background image":"Hintergrundbild","ra_View: %s":"Anschauen: %s","ra_Copy content":"Inhalte kopieren",ra_Filter:"Filter","ra_All objects":"Alle Objekte","ra_Only selected":"Nur ausgew\xE4hlt","ra_Change color theme":"Farbthema \xE4ndern",ra_daysShortText:"T."}});var Iee=_((art,Yze)=>{Yze.exports={ra_filter_func:"\u0444\u0443\u043D\u043A\u0446\u0438\u044F",ra_filter_id:"ID",ra_filter_name:"\u0418\u043C\u044F",ra_filter_role:"\u0440\u043E\u043B\u044C",ra_filter_room:"\u043A\u043E\u043C\u043D\u0430\u0442\u0430",ra_tooltip_ack:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u043E",ra_tooltip_from:"\u041E\u0442",ra_tooltip_lc:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0435 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435",ra_tooltip_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",ra_tooltip_ts:"\u041E\u0442\u043C\u0435\u0442\u043A\u0430 \u0432\u0440\u0435\u043C\u0435\u043D\u0438",ra_tooltip_user:"\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C",ra_tooltip_value:"\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435","ra_Are you sure?":"\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B?",ra_Cancel:"\u041E\u0442\u043C\u0435\u043D\u0430",ra_Copied:"\u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E","ra_Copied %s":'\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E "%s"',"ra_Define functions":"\u0417\u0430\u0434\u0430\u0442\u044C \u0444\u0443\u043D\u043A\u0446\u0438\u0438","ra_Define rooms":"\u0417\u0430\u0434\u0430\u0442\u044C \u043A\u043E\u043C\u043D\u0430\u0442\u044B",ra_Error:"\u041E\u0448\u0438\u0431\u043A\u0430",ra_Message:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435",ra_Ok:"Ok","ra_Please select object ID...":"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440 \u043E\u0431\u044A\u0435\u043A\u0442\u0430 ...",ra_Selected:"\u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439","ra_Unknown error!":"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u0430\u044F \u043E\u0448\u0438\u0431\u043A\u0430!",ra_Value:"\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435",ra_filter_type:"\u0422\u0438\u043F",ra_invalidConfig:"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",ra_otherConfig:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0438\u0437 \u0434\u0440\u0443\u0433\u043E\u0433\u043E \u0430\u0434\u0430\u043F\u0442\u0435\u0440\u0430 %s",ra_tooltip_copyState:"\u0421\u043A\u043E\u043F\u0438\u0440\u0443\u0439\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F",ra_tooltip_customConfig:"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",ra_tooltip_deleteObject:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442",ra_tooltip_editObject:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442",ra_tooltip_editState:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F",ra_filter_customs:"\u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",ra_dow_Fr:"\u041F\u0442",ra_dow_Mo:"\u041F\u043D",ra_dow_Sa:"\u0421\u0431",ra_dow_Su:"\u0412\u0441",ra_dow_Th:"\u0427\u0442",ra_dow_Tu:"\u0412\u0442",ra_dow_We:"\u0421\u0440","ra_Listen on all IPs":"\u0421\u043B\u0443\u0448\u0430\u0439 \u043D\u0430 \u0432\u0441\u0435\u0445 IP",ra_Save:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C","ra_Save and close":"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0438 \u0437\u0430\u043A\u0440\u044B\u0442\u044C",ra_Close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C","ra_Auto (no custom columns)":"\u0410\u0432\u0442\u043E (\u0431\u0435\u0437 \u043D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u044B\u0445 \u0441\u0442\u043E\u043B\u0431\u0446\u043E\u0432)","ra_Transparent dialog":"\u041F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u044B\u0439 \u0434\u0438\u0430\u043B\u043E\u0433",ra_Width:"\u0428\u0438\u0440\u0438\u043D\u0430",ra_val:"\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435",ra_buttons:"\u041A\u043D\u043E\u043F\u043A\u0438","ra_Configure visible columns":"\u041D\u0430\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u0432\u0438\u0434\u0438\u043C\u044B\u0435 \u0441\u0442\u043E\u043B\u0431\u0446\u044B","ra_Cannot update attribute, because not found in the object":"\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0430\u0442\u0440\u0438\u0431\u0443\u0442, \u043F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u043E\u043D \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D \u0432 \u043E\u0431\u044A\u0435\u043A\u0442\u0435","ra_Edit object field":"\u041F\u043E\u043B\u0435 \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u043E\u0431\u044A\u0435\u043A\u0442\u0430","ra_Hide empty folders":"\u0421\u043A\u0440\u044B\u0442\u044C \u043F\u0443\u0441\u0442\u044B\u0435 \u043F\u0430\u043F\u043A\u0438","ra_Reload files":"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C","ra_Create folder":"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u043F\u0430\u043F\u043A\u0443","ra_Upload file":"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0444\u0430\u0439\u043B","ra_User files":"\u0424\u0430\u0439\u043B\u044B \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F","ra_Confirm deletion of %s":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u0435 %s","ra_Delete (no confirm for 5 mins)":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C (\u0431\u0435\u0437 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u0432 \u0442\u0435\u0447\u0435\u043D\u0438\u0435 5 \u043C\u0438\u043D\u0443\u0442)",ra_Delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C","ra_Toggle expert mode":"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u044D\u043A\u0441\u043F\u0435\u0440\u0442\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C","ra_Toggle view mode":"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430",ra_Root:"\u041D\u0430\u0447\u0430\u043B\u043E","ra_Back to %s":"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A %s","ra_Place your files here or click here to open the browse dialog":"\u041F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u0435 \u0441\u0432\u043E\u0438 \u0444\u0430\u0439\u043B\u044B \u0441\u044E\u0434\u0430 \u0438\u043B\u0438 \u0449\u0435\u043B\u043A\u043D\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044C, \u0447\u0442\u043E\u0431\u044B \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0434\u0438\u0430\u043B\u043E\u0433\u043E\u0432\u043E\u0435 \u043E\u043A\u043D\u043E \u0432\u044B\u0431\u043E\u0440\u0430","ra_If no file will be created in the folder, it will disappear after the browser closed":"\u0415\u0441\u043B\u0438 \u0432 \u043F\u0430\u043F\u043A\u0435 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043E\u0437\u0434\u0430\u043D \u0444\u0430\u0439\u043B, \u043E\u043D \u0438\u0441\u0447\u0435\u0437\u043D\u0435\u0442 \u043F\u043E\u0441\u043B\u0435 \u0437\u0430\u043A\u0440\u044B\u0442\u0438\u044F \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.","ra_Folder name":"\u0418\u043C\u044F \u043F\u0430\u043F\u043A\u0438","ra_Create new folder in %s":"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u043D\u043E\u0432\u0443\u044E \u043F\u0430\u043F\u043A\u0443 \u0432 %s","ra_Duplicate name":"\u041F\u043E\u0432\u0442\u043E\u0440\u044F\u044E\u0449\u0435\u0435\u0441\u044F \u0438\u043C\u044F","ra_Invalid parent folder!":"\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0440\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u0441\u043A\u0430\u044F \u043F\u0430\u043F\u043A\u0430!","ra_Drop file here":"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u0441\u044E\u0434\u0430","ra_Suppress question for next %s minutes":"\u0421\u043A\u0440\u044B\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441 \u043D\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 %s \u043C\u0438\u043D\u0443\u0442(\u044B)","ra_Clear filter":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440",ra_Update:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C","ra_Load configuration from file":"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044E \u0438\u0437 \u0444\u0430\u0439\u043B\u0430","ra_Save configuration to file":"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044E \u0432 \u0444\u0430\u0439\u043B",sc_cron:"CRON",sc_date:"\u0414\u0430\u0442\u0430",sc_dates:"\u0414\u0430\u0442\u044B",sc_dows:"\u0414\u0435\u043D\u044C \u043D\u0435\u0434\u0435\u043B\u0438",sc_every:"\u043A\u0430\u0436\u0434\u044B\u0439(\u0443\u044E/\u044B\u0435)",sc_everyN_dates:"\u043A\u0430\u0436\u0434\u044B\u0439 N \u0434\u0435\u043D\u044C",sc_everyN_dows:"\u043A\u0430\u0436\u0434\u044B\u0439 N \u0434\u0435\u043D\u044C \u043D\u0435\u0434\u0435\u043B\u0438",sc_everyN_hours:"\u043A\u0430\u0436\u0434\u044B\u0435 N \u0447\u0430\u0441\u043E\u0432",sc_everyN_minutes:"\u043A\u0430\u0436\u0434\u044B\u0435 N \u043C\u0438\u043D\u0443\u0442",sc_everyN_months:"\u043A\u0430\u0436\u0434\u044B\u0435 N \u043C\u0435\u0441\u044F\u0446\u0435\u0432",sc_everyN_seconds:"\u043A\u0430\u0436\u0434\u044B\u0435 N \u0441\u0435\u043A\u0443\u043D\u0434",sc_every_dates:"\u043A\u0430\u0436\u0434\u044B\u0439 \u0434\u0435\u043D\u044C",sc_every_dows:"\u043A\u0430\u0436\u0434\u044B\u0439 \u0434\u0435\u043D\u044C \u043D\u0435\u0434\u0435\u043B\u0438",sc_every_hours:"\u043A\u0430\u0436\u0434\u044B\u0439 \u0447\u0430\u0441",sc_every_minutes:"\u043A\u0430\u0436\u0434\u0443\u044E \u043C\u0438\u043D\u0443\u0442\u0443",sc_every_months:"\u043A\u0430\u0436\u0434\u044B\u0439 \u043C\u0435\u0441\u044F\u0446",sc_every_seconds:"\u043A\u0430\u0436\u0434\u0443\u044E \u0441\u0435\u043A\u0443\u043D\u0434\u0443",sc_from:"\u041E\u0442",sc_hours:"\u0447\u0430\u0441\u044B",sc_interval:"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B",sc_intervalBetween:"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u043C\u0435\u0436\u0434\u0443",sc_minutes:"\u043C\u0438\u043D\u0443\u0442\u044B",sc_months:"\u041C\u0435\u0441\u044F\u0446\u044B",sc_once:"\u043E\u0434\u0438\u043D \u0440\u0430\u0437",sc_period:"\u041F\u0435\u0440\u0438\u043E\u0434",sc_seconds:"\u0441\u0435\u043A\u0443\u043D\u0434\u044B",sc_simple:"\u041F\u0440\u043E\u0441\u0442\u043E",sc_specific:"\u041A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F",sc_specific_dates:"\u043A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u044B\u0435 \u0434\u0430\u0442\u044B",sc_specific_dows:"\u043A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u044B\u0439 \u0434\u0435\u043D\u044C \u043D\u0435\u0434\u0435\u043B\u0438",sc_specific_hours:"\u043A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u044B\u0435 \u0447\u0430\u0441\u044B",sc_specific_minutes:"\u043A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u044B\u0435 \u043C\u0438\u043D\u0443\u0442\u044B",sc_specific_months:"\u043A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u044B\u0435 \u043C\u0435\u0441\u044F\u0446\u044B",sc_specific_seconds:"\u043A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u044B\u0435 \u0441\u0435\u043A\u0443\u043D\u0434\u044B",sc_time:"\u0412\u0440\u0435\u043C\u044F",sc_to:"\u0414\u043E",sc_wizard:"\u0424\u043E\u0440\u043C\u0430",sch_all:"\u0432\u0441\u0435",sch_astroDay:"\u0434\u043D\u0451\u043C",sch_astroNight:"\u043D\u043E\u0447\u044C\u044E",sch_astro_dawn:"\u0420\u0430\u0441\u0441\u0432\u0435\u0442",sch_astro_dusk:"\u0421\u0443\u043C\u0435\u0440\u043A\u0438",sch_astro_goldenHour:"\u0417\u043E\u043B\u043E\u0442\u043E\u0439 \u0447\u0430\u0441",sch_astro_goldenHourEnd:"\u041A\u043E\u043D\u0435\u0446 \u0437\u043E\u043B\u043E\u0442\u043E\u0433\u043E \u0447\u0430\u0441\u0430",sch_astro_nadir:"\u041D\u0430\u0434\u0438\u0440",sch_astro_nauticalDawn:"\u041C\u043E\u0440\u0441\u043A\u043E\u0439 \u0440\u0430\u0441\u0441\u0432\u0435\u0442",sch_astro_nauticalDusk:"\u041C\u043E\u0440\u0441\u043A\u0438\u0435 \u0441\u0443\u043C\u0435\u0440\u043A\u0438",sch_astro_night:"\u041D\u043E\u0447\u044C",sch_astro_nightEnd:"\u041A\u043E\u043D\u0435\u0446 \u043D\u043E\u0447\u0438",sch_astro_solarNoon:"\u0421\u043E\u043B\u043D\u0435\u0447\u043D\u044B\u0439 \u043F\u043E\u043B\u0434\u0435\u043D\u044C",sch_astro_sunrise:"\u0412\u043E\u0441\u0445\u043E\u0434",sch_astro_sunriseEnd:"\u0412\u043E\u0441\u0445\u043E\u0434 \u0441\u043E\u043B\u043D\u0446\u0430",sch_astro_sunset:"\u0417\u0430\u0445\u043E\u0434 \u0441\u043E\u043B\u043D\u0446\u0430",sch_astro_sunsetStart:"\u041D\u0430\u0447\u0430\u043B\u043E \u0437\u0430\u043A\u0430\u0442\u0430",sch_at:"\u0434\u0430\u0442\u0430",sch_desc_atTime:"\u0432 %s",sch_desc_everyDay:"\u043A\u0430\u0436\u0434\u044B\u0439 \u0434\u0435\u043D\u044C",sch_desc_everyHour:"\u043A\u0430\u0436\u0434\u044B\u0439 \u0447\u0430\u0441",sch_desc_everyMinute:"\u043A\u0430\u0436\u0434\u0443\u044E \u043C\u0438\u043D\u0443\u0442\u0443",sch_desc_everyMonth:"\u043A\u0430\u0436\u0434\u044B\u0439 \u043C\u0435\u0441\u044F\u0446",sch_desc_everyNDay:"\u043A\u0430\u0436\u0434\u044B\u0439 %s \u0434\u0435\u043D\u044C",sch_desc_everyNHours:"\u043A\u0430\u0436\u0434\u044B\u0439 %s \u0447\u0430\u0441\u043E\u0432",sch_desc_everyNMinutes:"\u043A\u0430\u0436\u0434\u044B\u0435 %s \u043C\u0438\u043D\u0443\u0442",sch_desc_everyNMonths:"\u043A\u0430\u0436\u0434\u044B\u0435 %s \u043C\u0435\u0441\u044F\u0446\u0435\u0432",sch_desc_everyNWeeks:"\u043A\u0430\u0436\u0434\u044B\u0435 %s \u043D\u0435\u0434\u0435\u043B\u044C",sch_desc_everyNYears:"\u043A\u0430\u0436\u0434\u044B\u0435 %s \u043B\u0435\u0442",sch_desc_everyWeek:"\u043A\u0430\u0436\u0434\u0443\u044E \u043D\u0435\u0434\u0435\u043B\u044E",sch_desc_everyYear:"\u043A\u0430\u0436\u0434\u044B\u0439 \u0433\u043E\u0434",sch_desc_intervalFromTo:"\u043E\u0442 %s \u0434\u043E %s",sch_desc_never:"\u043D\u0438\u043A\u043E\u0433\u0434\u0430",sch_desc_onDate:"%s %s",sch_desc_onDates:"%s \u0438 %s",sch_desc_onEveryDate:"\u0432 \u043A\u0430\u0436\u0434\u044B\u0439 \u0434\u0435\u043D\u044C",sch_desc_onMonth:"%s",sch_desc_onMonths:"%s \u0438 %s",sch_desc_onWeekday:"%s",sch_desc_onWeekdays:"%s \u0438 %s",sch_desc_onWeekends:"\u043D\u0430 \u0432\u044B\u0445\u043E\u0434\u043D\u044B\u0445",sch_desc_onWorkdays:"\u0432 \u0440\u0430\u0431\u043E\u0447\u0438\u0435 \u0434\u043D\u0438",sch_desc_onceInPast:"\u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0431\u043E\u043B\u044C\u0448\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0442\u044C\u0441\u044F, \u043F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u043D\u0430\u0447\u0430\u043B\u043E \u0432 \u043F\u0440\u043E\u0448\u043B\u043E\u043C",sch_desc_once_on:"%s",sch_desc_validFrom:"%s",sch_desc_validFromTo:"\u0412\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0441",sch_desc_validTo:"%s",sch_every:"\u043A\u0430\u0436\u0434\u044B\u0439",sch_exactTime:"\u041A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F",sch_from:"\u043E\u0442",sch_fromTo:"\u041E\u0442 \u0438 \u0434\u043E",sch_intervalTime:"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u0432\u0440\u0435\u043C\u0435\u043D\u0438",sch_invert:"\u0438\u043D\u0432\u0435\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C",sch_no_one:"\u043D\u0438\u043A\u0430\u043A\u043E\u0439",sch_on:"\u043D\u0430",sch_period:"\u043F\u0435\u0440\u0438\u043E\u0434",sch_periodDaily:"\u0415\u0436\u0435\u0434\u043D\u0435\u0432\u043D\u043E",sch_periodDates:"\u0414\u0430\u0442\u044B",sch_periodDay:"\u0414\u0435\u043D\u044C",sch_periodEvery:"\u043A\u0430\u0436\u0434\u044B\u0439",sch_periodEveryDay:"\u041A\u0430\u0436\u0434\u044B\u0439 \u0434\u0435\u043D\u044C",sch_periodEveryMonth:"\u041A\u0430\u0436\u0434\u044B\u0439 \u043C\u0435\u0441\u044F\u0446",sch_periodEveryWeek:"\u041A\u0430\u0436\u0434\u0443\u044E \u043D\u0435\u0434\u0435\u043B\u044E",sch_periodEveryYear:"\u041A\u0430\u0436\u0434\u044B\u0439 \u0433\u043E\u0434",sch_periodHours:"\u0447\u0430\u0441\u043E\u0432",sch_periodMinutes:"\u043C\u0438\u043D\u0443\u0442",sch_periodMonth:"\u043C\u0435\u0441\u044F\u0446",sch_periodMonthly:"\u0435\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u043E",sch_periodOnce:"\u043E\u0434\u043D\u0430\u0436\u0434\u044B",sch_periodSpecificMonths:"\u041A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u044B\u0435 \u043C\u0435\u0441\u044F\u0446\u044B",sch_periodWeek:"\u041D\u0435\u0434\u0435\u043B\u044E",sch_periodWeekdays:"\u0411\u0443\u0434\u043D\u0438\u0435 \u0434\u043D\u0438",sch_periodWeekend:"\u0432\u044B\u0445\u043E\u0434\u043D\u044B\u0435",sch_periodWeekly:"\u0435\u0436\u0435\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u043E",sch_periodWorkdays:"\u0420\u0430\u0431\u043E\u0447\u0438\u0435 \u0434\u043D\u0438",sch_periodYear:"\u0413\u043E\u0434",sch_periodYearly:"\u043A\u0430\u0436\u0434\u044B\u0439 \u0433\u043E\u0434",sch_specificTime:"\u041A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F",sch_time:"\u0412\u0440\u0435\u043C\u044F",sch_to:"\u0432",sch_valid:"\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439",sch_validFrom:"\u043E\u0442",sch_validTo:"\u0432",sch_wholeDay:"\u0412\u0435\u0441\u044C \u0434\u0435\u043D\u044C",sch_yearEveryMonth:"\u043A\u0430\u0436\u0434\u044B\u0439 \u043C\u0435\u0441\u044F\u0446","ra_Define schedule...":"\u041E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u0440\u0430\u0441\u043F\u0438\u0441\u0430\u043D\u0438\u0435 ...",ra_Repeat:"\u041F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435","ra_use seconds":"\u0441\u0435\u043A\u0443\u043D\u0434\u044B",ra_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",ra_months_Sep:"\u0421\u0435\u043D",ra_months_Oct:"\u041E\u043A\u0442",ra_months_Nov:"\u041D\u043E\u044F",ra_months_Mar:"\u041C\u0430\u0440\u0442",ra_months_Mai:"\u041C\u0430\u0439",ra_months_Jun:"\u0418\u044E\u043B\u044C",ra_months_Jul:"\u0418\u044E\u043D\u044C",ra_months_Jan:"\u042F\u043D\u0432",ra_months_Feb:"\u0424\u0435\u0432",ra_months_Dec:"\u0414\u0435\u043A",ra_months_Aug:"\u0410\u0432\u0433",ra_months_Apr:"\u0410\u043F\u0440","ra_Toggle the states view":"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0439","ra_Add new child object to selected parent":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u0434\u043E\u0447\u0435\u0440\u043D\u0438\u0439 \u043E\u0431\u044A\u0435\u043A\u0442 \u043A \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u043C\u0443 \u0440\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u0441\u043A\u043E\u043C\u0443 \u043E\u0431\u044A\u0435\u043A\u0442\u0443","ra_Add objects tree from JSON file":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0434\u0435\u0440\u0435\u0432\u043E \u043E\u0431\u044A\u0435\u043A\u0442\u043E\u0432 \u0438\u0437 \u0444\u0430\u0439\u043B\u0430 JSON","ra_Save objects tree as JSON file":"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0435\u0440\u0435\u0432\u043E \u043E\u0431\u044A\u0435\u043A\u0442\u043E\u0432 \u043A\u0430\u043A \u0444\u0430\u0439\u043B JSON",ra_Objects:"\u041E\u0431\u044A\u0435\u043A\u0442\u044B",ra_States:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F",ra_object_changed_by_user:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439 \u0440\u0430\u0437 \u043E\u0431\u044A\u0435\u043A\u0442 \u0438\u0437\u043C\u0435\u043D\u0435\u043D \u0432",ra_object_changed_by:"\u041E\u0431\u044A\u0435\u043A\u0442 \u0438\u0437\u043C\u0435\u043D\u0435\u043D",ra_state_changed_from:"\u041E\u0431\u044A\u0435\u043A\u0442 \u0438\u0437\u043C\u0435\u043D\u0435\u043D \u0441",ra_state_changed_by:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E",ra_aclOwner_read_object:"\u0412\u043B\u0430\u0434\u0435\u043B\u0435\u0446 \u043C\u043E\u0436\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442",ra_aclOwner_read_state:"\u0412\u043B\u0430\u0434\u0435\u043B\u0435\u0446 \u043C\u043E\u0436\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",ra_aclOwner_write_object:"\u0412\u043B\u0430\u0434\u0435\u043B\u0435\u0446 \u043C\u043E\u0436\u0435\u0442 \u043F\u0438\u0441\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442",ra_aclOwner_write_state:"\u0412\u043B\u0430\u0434\u0435\u043B\u0435\u0446 \u043C\u043E\u0436\u0435\u0442 \u043F\u0438\u0441\u0430\u0442\u044C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",ra_aclGroup_read_object:"\u0413\u0440\u0443\u043F\u043F\u0430 \u043C\u043E\u0436\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442",ra_aclGroup_read_state:"\u0413\u0440\u0443\u043F\u043F\u0430 \u043C\u043E\u0436\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",ra_aclGroup_write_object:"\u0413\u0440\u0443\u043F\u043F\u0430 \u043C\u043E\u0436\u0435\u0442 \u043F\u0438\u0441\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442",ra_aclGroup_write_state:"\u0413\u0440\u0443\u043F\u043F\u0430 \u043C\u043E\u0436\u0435\u0442 \u0437\u0430\u043F\u0438\u0441\u044B\u0432\u0430\u0442\u044C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",ra_aclEveryone_read_object:"\u041A\u0430\u0436\u0434\u044B\u0439 \u043C\u043E\u0436\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442",ra_aclEveryone_read_state:"\u041A\u0430\u0436\u0434\u044B\u0439 \u043C\u043E\u0436\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",ra_aclEveryone_write_object:"\u041A\u0430\u0436\u0434\u044B\u0439 \u043C\u043E\u0436\u0435\u0442 \u043D\u0430\u043F\u0438\u0441\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442",ra_aclEveryone_write_state:"\u041A\u0430\u0436\u0434\u044B\u0439 \u043C\u043E\u0436\u0435\u0442 \u043D\u0430\u043F\u0438\u0441\u0430\u0442\u044C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435","ra_Folders always first":"\u041F\u0430\u043F\u043A\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u043D\u0430 \u043F\u0435\u0440\u0432\u043E\u043C \u043C\u0435\u0441\u0442\u0435",ra_changedFrom:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u0441",ra_qualityCode:"\u041A\u043E\u0434 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430",ra_timestamp:"\u041E\u0442\u043C\u0435\u0442\u043A\u0430 \u0432\u0440\u0435\u043C\u0435\u043D\u0438",ra_lastChange:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0435 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435","ra_Owner group":"\u0413\u0440\u0443\u043F\u043F\u0430 \u0432\u043B\u0430\u0434\u0435\u043B\u044C\u0446\u0435\u0432","ra_Owner user":"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C-\u0432\u043B\u0430\u0434\u0435\u043B\u0435\u0446",ra_Create:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C","ra_Changed from":"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u043E","ra_Quality code":"\u0412\u0430\u043B\u0438\u0434\u043D\u043E\u0441\u0442\u044C",ra_Timestamp:"\u0412\u0440\u0435\u043C\u0435\u043D\u0438","ra_Last change":"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0435 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435","ra_Collapse all nodes":"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0441\u0435 \u0443\u0437\u043B\u044B","ra_Edit custom config":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u0443\u044E \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044E","ra_Collapse one step node":"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043E\u0434\u0438\u043D \u0443\u0440\u043E\u0432\u0435\u043D\u044C","ra_Expand one step node":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043E\u0434\u0438\u043D \u0443\u0440\u043E\u0432\u0435\u043D\u044C","ra_Refresh tree":"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0434\u0435\u0440\u0435\u0432\u043E","ra_Expand all nodes":"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0441\u0435 \u0443\u0437\u043B\u044B","ra_Deselect all":"\u0423\u0431\u0440\u0430\u0442\u044C \u0432\u044B\u0431\u043E\u0440 \u0432\u0435\u0437\u0434\u0435","ra_Select all":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435","ra_%s object(s) processed":"\u041E\u0431\u044A\u0435\u043A\u0442\u043E\u0432 \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u043D\u043E: %s","ra_Invalid structure":"\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u0430","ra_%s was imported":"%s \u0431\u044B\u043B \u0438\u043C\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u043D","ra_Failed to open JSON File":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0444\u0430\u0439\u043B JSON","ra_Only following structures of objects are available:":"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B \u0442\u043E\u043B\u044C\u043A\u043E \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u044B \u043E\u0431\u044A\u0435\u043A\u0442\u043E\u0432:","ra_Folder \u2192 State":"\u041F\u0430\u043F\u043A\u0430 \u2192 \u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435","ra_Folder \u2192 Channel \u2192 State":"\u041F\u0430\u043F\u043A\u0430 \u2192 \u041A\u0430\u043D\u0430\u043B \u2192 \u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435","ra_Folder \u2192 Device \u2192 Channel \u2192 State":"\u041F\u0430\u043F\u043A\u0430 \u2192 \u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u2192 \u041A\u0430\u043D\u0430\u043B \u2192 \u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435","ra_Device \u2192 Channel \u2192 State":"\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u2192 \u041A\u0430\u043D\u0430\u043B \u2192 \u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435","ra_Channel \u2192 State":"\u041A\u0430\u043D\u0430\u043B \u2192 \u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':"\u041D\u0435-\u044D\u043A\u0441\u043F\u0435\u0440\u0442\u044B \u043C\u043E\u0433\u0443\u0442 \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C \u043D\u043E\u0432\u044B\u0435 \u043E\u0431\u044A\u0435\u043A\u0442\u044B \u0442\u043E\u043B\u044C\u043A\u043E \u0432 \xAB0_userdata.0\xBB \u0438\u043B\u0438 \xABalias.0\xBB.",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':"\u042D\u043A\u0441\u043F\u0435\u0440\u0442\u044B \u043C\u043E\u0433\u0443\u0442 \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442\u044B \u0432\u0435\u0437\u0434\u0435, \u043A\u0440\u043E\u043C\u0435 \u0432\u0442\u043E\u0440\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F (\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \xABvis.0\xBB \u0438\u043B\u0438 \xABjavascript.0\xBB).",ra_expertMode:"\u042D\u043A\u0441\u043F\u0435\u0440\u0442\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C","ra_On weekdays":"\u041D\u0430 \u0432\u044B\u0445\u043E\u0434\u043D\u044B\u0445","ra_Drop the files here...":"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u0441\u044E\u0434\u0430 ...","ra_Drag 'n' drop some files here, or click to select files":"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0441\u044E\u0434\u0430 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0444\u0430\u0439\u043B\u043E\u0432 \u0438\u043B\u0438 \u0449\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0432\u044B\u0431\u0440\u0430\u0442\u044C \u0444\u0430\u0439\u043B\u044B",ra_Clear:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C","ra_Clear icon":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0437\u043D\u0430\u0447\u043E\u043A",ra_none:"\u043D\u0438\u0447\u0435\u0433\u043E","ra_Select predefined icon":"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u0440\u0435\u0434\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043D\u044B\u0439 \u0437\u043D\u0430\u0447\u043E\u043A","ra_Show lines between rows":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043B\u0438\u043D\u0438\u0438 \u043C\u0435\u0436\u0434\u0443 \u0441\u0442\u0440\u043E\u043A\u0430\u043C\u0438","ra_The page you are looking for was not found":"\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430, \u043A\u043E\u0442\u043E\u0440\u0443\u044E \u0432\u044B \u0438\u0449\u0435\u0442\u0435, \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u0430","ra_Good luck":"\u0423\u0434\u0430\u0447\u0438",'ra_Cannot find "%s"':'\u041D\u0435 \u043C\u043E\u0433\u0443 \u043D\u0430\u0439\u0442\u0438 "%s"','ra_Cannot read "%s"':'\u041D\u0435 \u043C\u043E\u0433\u0443 \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C "%s"',"ra_Back to %s":"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A %s","ra_Background image":"\u0424\u043E\u043D\u043E\u0432\u0430\u044F \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430","ra_View: %s":"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440: %s","ra_Copy content":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435",ra_Filter:"\u0424\u0438\u043B\u044C\u0442\u0440","ra_All objects":"\u0412\u0441\u0435 \u043E\u0431\u044A\u0435\u043A\u0442\u044B","ra_Only selected":"\u0422\u043E\u043B\u044C\u043A\u043E \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435","ra_Change color theme":"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0446\u0432\u0435\u0442\u043E\u0432\u0443\u044E \u0442\u0435\u043C\u0443",ra_daysShortText:"\u0434."}});var kee=_((irt,Jze)=>{Jze.exports={ra_filter_func:"Fun\xE7\xE3o",ra_filter_id:"ID",ra_filter_name:"Nome",ra_filter_role:"Papel (Fun\xE7\xE3o)",ra_filter_room:"Quarto",ra_tooltip_ack:"Confirmado",ra_tooltip_from:"De",ra_tooltip_lc:"\xDAltima altera\xE7\xE3o",ra_tooltip_quality:"Qualidade",ra_tooltip_ts:"Timestamp",ra_tooltip_user:"Usu\xE1rio",ra_tooltip_value:"Valor","ra_Are you sure?":"Voc\xEA tem certeza?",ra_Cancel:"Cancelar",ra_Copied:"Copiado","ra_Copied %s":'"%s" copiado',"ra_Define functions":"Definir fun\xE7\xF5es","ra_Define rooms":"Definir quartos",ra_Error:"Erro",ra_Message:"mensagem",ra_Ok:"Est\xE1 bem","ra_Please select object ID...":"Selecione o ID do objeto ...",ra_Selected:"Selecionado","ra_Unknown error!":"Erro desconhecido!",ra_Value:"Valor",ra_filter_type:"Tipo",ra_invalidConfig:"Configura\xE7\xF5es inv\xE1lidas",ra_otherConfig:"Configura\xE7\xF5es de outro adaptador %s",ra_tooltip_copyState:"Copie o valor do estado",ra_tooltip_customConfig:"Op\xE7\xF5es customizadas",ra_tooltip_deleteObject:"Excluir objeto",ra_tooltip_editObject:"Editar objeto",ra_tooltip_editState:"Edite o valor do estado",ra_filter_customs:"Configura\xE7\xF5es","ra_Listen on all IPs":"Ou\xE7a em todos os IPs",ra_dow_Fr:"Fr",ra_dow_Mo:"Mo",ra_dow_Sa:"Sa",ra_dow_Su:"Su",ra_dow_Th:"\xBA",ra_Save:"Salve \uE051","ra_Save and close":"Salvar e fechar",ra_Close:"Perto","ra_Auto (no custom columns)":"Auto (sem colunas personalizadas)","ra_Transparent dialog":"Di\xE1logo transparente",ra_Width:"Largura",ra_val:"Valor",ra_buttons:"Bot\xF5es","ra_Configure visible columns":"Configurar colunas vis\xEDveis","ra_Cannot update attribute, because not found in the object":"N\xE3o \xE9 poss\xEDvel atualizar o atributo, porque n\xE3o foi encontrado no objeto","ra_Edit object field":"Editar campo de objeto","ra_Hide empty folders":"Esconder pastas vazias","ra_Reload files":"Recarregar arquivos","ra_Create folder":"Criar pasta","ra_Upload file":"Subir arquivo","ra_User files":"Arquivos do usu\xE1rio","ra_Confirm deletion of %s":"Confirme a exclus\xE3o de %s","ra_Delete (no confirm for 5 mins)":"Excluir (sem confirma\xE7\xE3o por 5 minutos)",ra_Delete:"Excluir","ra_Toggle expert mode":"Alternar modo especialista","ra_Toggle view mode":"Alternar modo de visualiza\xE7\xE3o",ra_Root:"Raiz","ra_Back to %s":"Voltar para %s","ra_Place your files here or click here to open the browse dialog":"Coloque seus arquivos aqui ou clique aqui para abrir a janela de navega\xE7\xE3o","ra_If no file will be created in the folder, it will disappear after the browser closed":"Se nenhum arquivo for criado na pasta, ele desaparecer\xE1 depois que o navegador for fechado","ra_Folder name":"Nome da pasta","ra_Create new folder in %s":"Crie uma nova pasta em %s","ra_Duplicate name":"Nome duplicado","ra_Invalid parent folder!":"Pasta pai inv\xE1lida!","ra_Drop file here":"Solte o arquivo aqui","ra_Suppress question for next %s minutes":"Suprimir pergunta nos pr\xF3ximos %s minutos","ra_Clear filter":"Filtro limpo",ra_Update:"Atualizar","ra_Load configuration from file":"Carregar configura\xE7\xE3o do arquivo","ra_Save configuration to file":"Salvar configura\xE7\xE3o em arquivo",sc_cron:"CRON",sc_date:"Data",sc_dates:"Dias",sc_dows:"Dia da semana",sc_every:"todos",sc_everyN_dates:"a cada N dias",sc_everyN_dows:"todos os N dias da semana",sc_everyN_hours:"a cada N horas",sc_everyN_minutes:"a cada N minutos",sc_everyN_months:"a cada N meses",sc_everyN_seconds:"a cada N segundos",sc_every_dates:"todo dia",sc_every_dows:"todos os dias da semana",sc_every_hours:"toda hora",sc_every_minutes:"todo minuto",sc_every_months:"todo m\xEAs",sc_every_seconds:"todo segundo",sc_from:"de",sc_hours:"horas",sc_interval:"intervalo",sc_intervalBetween:"intervalo entre",sc_minutes:"minutos",sc_months:"meses",sc_once:"uma vez",sc_period:"per\xEDodo",sc_seconds:"segundos",sc_simple:"simples",sc_specific:"tempo espec\xEDfico",sc_specific_dates:"datas espec\xEDficas",sc_specific_dows:"dia espec\xEDfico de semanas",sc_specific_hours:"horas espec\xEDficas",sc_specific_minutes:"minutos espec\xEDficos",sc_specific_months:"meses espec\xEDficos",sc_specific_seconds:"segundos espec\xEDficos",sc_time:"tempo",sc_to:"para",sc_wizard:"assistente",sch_all:"tudo",sch_astroDay:"dia astral",sch_astroNight:"noite astral",sch_astro_dawn:"amanhecer",sch_astro_dusk:"anoitecer",sch_astro_goldenHour:"hora dourada",sch_astro_goldenHourEnd:"Fim da hora dourada",sch_astro_nadir:"nadir",sch_astro_nauticalDawn:"Amanhecer n\xE1utico",sch_astro_nauticalDusk:"Anoitecer n\xE1utico",sch_astro_night:"noite",sch_astro_nightEnd:"fim da noite",sch_astro_solarNoon:"meio-dia solar",sch_astro_sunrise:"nascer do sol",sch_astro_sunriseEnd:"fim do nascer do sol",sch_astro_sunset:"p\xF4r do sol",sch_astro_sunsetStart:"in\xEDcio do p\xF4r do sol",sch_at:"\xE0s",sch_desc_atTime:"em %s",sch_desc_everyDay:"todo dia",sch_desc_everyHour:"toda hora",sch_desc_everyMinute:"todo minuto",sch_desc_everyMonth:"todo m\xEAs",sch_desc_everyNDay:"a cada %s dias",sch_desc_everyNHours:"a cada %s horas",sch_desc_everyNMinutes:"a cada %s minutos",sch_desc_everyNMonths:"a cada %s meses",sch_desc_everyNWeeks:"a cada %s semanas",sch_desc_everyNYears:"a cada %s anos",sch_desc_everyWeek:"toda semana",sch_desc_everyYear:"todo ano",sch_desc_intervalFromTo:"de %s para %s",sch_desc_never:"nunca",sch_desc_onDate:"em %s de %s",sch_desc_onDates:"em %s e %s de",sch_desc_onEveryDate:"em toda data de",sch_desc_onMonth:"%s",sch_desc_onMonths:"%s e %s",sch_desc_onWeekday:"em %s",sch_desc_onWeekdays:"em %s e %s",sch_desc_onWeekends:"nos fins de semana",sch_desc_onWorkdays:"em dias \xFAteis",sch_desc_onceInPast:"n\xE3o ser\xE1 mais executado, porque o come\xE7o est\xE1 no passado",sch_desc_once_on:"em %s",sch_desc_validFrom:"de %s",sch_desc_validFromTo:"Executar de at\xE9",sch_desc_validTo:"at\xE9 %s",sch_every:"cada",sch_exactTime:"tempo espec\xEDfico",sch_from:"de",sch_fromTo:"de a\xB4t",sch_intervalTime:"tempo de intervalo",sch_invert:"invertido",sch_no_one:"nenhum",sch_on:"em",sch_period:"per\xEDodo",sch_periodDaily:"diariamente",sch_periodDates:"datas",sch_periodDay:"dia",sch_periodEvery:"todos",sch_periodEveryDay:"todo dia",sch_periodEveryMonth:"todo m\xEAs",sch_periodEveryWeek:"toda semana",sch_periodEveryYear:"todo ano",sch_periodHours:"horas",sch_periodMinutes:"minutos",sch_periodMonth:"m\xEAs",sch_periodMonthly:"por m\xEAs",sch_periodOnce:"uma vez",sch_periodSpecificMonths:"meses espec\xEDficos",sch_periodWeek:"semana",sch_periodWeekdays:"dias \xFAteis",sch_periodWeekend:"final de semana",sch_periodWeekly:"semanal",sch_periodWorkdays:"dias \xFAteis",sch_periodYear:"ano",sch_periodYearly:"anual",sch_specificTime:"tempo espec\xEDfico",sch_time:"tempo",sch_to:"para",sch_valid:"v\xE1lido",sch_validFrom:"de",sch_validTo:"para",sch_wholeDay:"dia inteiro",sch_yearEveryMonth:"todo m\xEAs","ra_Define schedule...":"Definir programa\xE7\xE3o ...",ra_Repeat:"Repita","ra_use seconds":"use segundos",ra_close:"fechar",ra_dow_Tu:"Tu","ra_Toggle the states view":"Alternar a visualiza\xE7\xE3o dos estados","ra_Add new child object to selected parent":"Adicionar novo objeto filho ao pai selecionado","ra_Add objects tree from JSON file":"Adicionar \xE1rvore de objetos do arquivo JSON","ra_Save objects tree as JSON file":"Salvar \xE1rvore de objetos como arquivo JSON",ra_Objects:"Objetos",ra_States:"Estados",ra_object_changed_by_user:"Objeto alterado pela \xFAltima vez em",ra_object_changed_by:"Objeto alterado por",ra_state_changed_from:"Objeto alterado de",ra_state_changed_by:"Estado alterado por",ra_aclOwner_read_object:"O propriet\xE1rio pode ler o objeto",ra_aclOwner_read_state:"O propriet\xE1rio pode ler o estado",ra_aclOwner_write_object:"O propriet\xE1rio pode escrever o objeto",ra_aclOwner_write_state:"O propriet\xE1rio pode escrever o estado",ra_aclGroup_read_object:"O grupo pode ler o objeto",ra_aclGroup_read_state:"O grupo pode ler o estado",ra_aclGroup_write_object:"O grupo pode escrever o objeto",ra_aclGroup_write_state:"O grupo pode escrever o estado",ra_aclEveryone_read_object:"Todos podem ler objetos",ra_aclEveryone_read_state:"Todos podem ler o estado",ra_aclEveryone_write_object:"Todos podem escrever objetos",ra_aclEveryone_write_state:"Todos podem escrever o estado","ra_Folders always first":"Pastas sempre primeiro",ra_changedFrom:"Mudou de",ra_qualityCode:"C\xF3digo de qualidade",ra_timestamp:"Timestamp",ra_lastChange:"\xDAltima mudan\xE7a","ra_Owner group":"Grupo propriet\xE1rio","ra_Owner user":"Usu\xE1rio propriet\xE1rio",ra_Create:"Crio","ra_Changed from":"Mudou de","ra_Quality code":"Qualidade",ra_Timestamp:"Timestamp","ra_Last change":"\xDAltima mudan\xE7a","ra_Collapse all nodes":"Recolher todos os n\xF3s","ra_Edit custom config":"Editar configura\xE7\xE3o personalizada","ra_Collapse one step node":"Recolher um n\xEDvel","ra_Expand one step node":"Expanda um n\xEDvel","ra_Refresh tree":"Atualizar \xE1rvore","ra_Expand all nodes":"Expanda todos os n\xF3s","ra_Deselect all":"Desmarque todos","ra_Select all":"Selecionar tudo","ra_%s object(s) processed":"%s objeto(s) processado(s)","ra_Invalid structure":"Estrutura inv\xE1lida","ra_%s was imported":"%s foi importado","ra_Failed to open JSON File":"Falha ao abrir arquivo JSON","ra_Only following structures of objects are available:":"Apenas as seguintes estruturas de objetos est\xE3o dispon\xEDveis:","ra_Folder \u2192 State":"Pasta \u2192 Estado","ra_Folder \u2192 Channel \u2192 State":"Pasta \u2192 Canal \u2192 Estado","ra_Folder \u2192 Device \u2192 Channel \u2192 State":"Pasta \u2192 Dispositivo \u2192 Canal \u2192 Estado","ra_Device \u2192 Channel \u2192 State":"Dispositivo \u2192 Canal \u2192 Estado","ra_Channel \u2192 State":"Canal \u2192 Estado",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Os n\xE3o especialistas podem criar novos objetos apenas em "0_userdata.0" ou "alias.0".','ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Os especialistas podem criar objetos em qualquer lugar, exceto no segundo n\xEDvel (por exemplo, "vis.0" ou "javascript.0").',ra_expertMode:"Modo especialista","ra_On weekdays":"Nos dias \xFAteis","ra_Drop the files here...":"Solte o arquivo aqui ...","ra_Drag 'n' drop some files here, or click to select files":"Arraste e solte alguns arquivos aqui ou clique para selecionar arquivos",ra_Clear:"Excluir","ra_Clear icon":"\xCDcone de limpeza",ra_none:"Nenhum","ra_Select predefined icon":"Selecione o \xEDcone predefinido","ra_Show lines between rows":"Mostrar linhas entre as linhas","ra_The page you are looking for was not found":"A p\xE1gina que voc\xEA est\xE1 procurando n\xE3o foi encontrada","ra_Good luck":"Boa sorte",'ra_Cannot find "%s"':'N\xE3o foi poss\xEDvel encontrar "%s"','ra_Cannot read "%s"':'N\xE3o \xE9 poss\xEDvel ler "%s"',"ra_Back to %s":"Voltar para %s","ra_Background image":"Imagem de fundo","ra_View: %s":"Visualizar: %s","ra_Copy content":"Copiar conte\xFAdo",ra_Filter:"Filtro","ra_All objects":"Todos os objetos","ra_Only selected":"Apenas selecionado","ra_Change color theme":"Alterar tema de cores",ra_daysShortText:"d."}});var Pee=_((srt,Xze)=>{Xze.exports={ra_filter_func:"Functie",ra_filter_id:"ID",ra_filter_name:"Naam",ra_filter_role:"Rol",ra_filter_room:"Kamer",ra_tooltip_ack:"Erkende vlag",ra_tooltip_from:"Van",ra_tooltip_lc:"Laatst gewijzigd",ra_tooltip_ts:"Tijdstempel",ra_tooltip_user:"Gebruiker",ra_tooltip_value:"Waarde","ra_Are you sure?":"Weet je het zeker?",ra_Cancel:"Annuleer",ra_Copied:"Gekopieerd","ra_Copied %s":'"%s" gekopieerd',"ra_Define functions":"Definieer functies","ra_Define rooms":"Definieer kamers",ra_Error:"Fout",ra_Message:"Bericht",ra_Ok:"OK","ra_Please select object ID...":"Selecteer object-ID ...",ra_Selected:"Geselecteerd","ra_Unknown error!":"Onbekende fout!",ra_Value:"Waarde",ra_filter_type:"Type",ra_invalidConfig:"Ongeldige instellingen",ra_otherConfig:"Instellingen van andere adapter %s",ra_tooltip_copyState:"Kopieer de statuswaarde",ra_tooltip_customConfig:"Aangepaste instellingen",ra_tooltip_deleteObject:"Object verwijderen",ra_tooltip_editObject:"Object bewerken",ra_tooltip_editState:"Bewerk de statuswaarde",ra_filter_customs:"Instellingen",ra_tooltip_quality:"Kwaliteit","ra_Listen on all IPs":"Luister op alle IP's",ra_dow_Fr:"Fr",ra_dow_Mo:"Mo",ra_dow_Sa:"Za",ra_dow_Su:"Zo",ra_dow_Th:"Th",ra_Save:"Sparen","ra_Save and close":"Opslaan en afsluiten",ra_Close:"Dichtbij","ra_Auto (no custom columns)":"Auto (geen aangepaste kolommen)","ra_Transparent dialog":"Transparant dialoogvenster",ra_Width:"Breedte",ra_val:"Waarde",ra_buttons:"Toetsen","ra_Configure visible columns":"Configureer zichtbare kolommen","ra_Cannot update attribute, because not found in the object":"Kan kenmerk niet bijwerken, omdat het niet in het object is gevonden","ra_Edit object field":"Bewerk objectveld","ra_Hide empty folders":"Verberg lege mappen","ra_Reload files":"Laad bestanden opnieuw","ra_Create folder":"Map aanmaken","ra_Upload file":"Upload bestand","ra_User files":"Gebruikersbestanden","ra_Confirm deletion of %s":"Bevestig het verwijderen van %s","ra_Delete (no confirm for 5 mins)":"Verwijderen (geen bevestiging gedurende 5 minuten)",ra_Delete:"Verwijderen","ra_Toggle expert mode":"Schakel tussen expertmodus","ra_Toggle view mode":"Schakelen tussen weergavemodus",ra_Root:"Wortel","ra_Back to %s":"Terug naar %s","ra_Place your files here or click here to open the browse dialog":"Plaats uw bestanden hier of klik hier om het bladervenster te openen","ra_If no file will be created in the folder, it will disappear after the browser closed":"Als er geen bestand in de map wordt gemaakt, verdwijnt het nadat de browser is gesloten","ra_Folder name":"Naam van de map","ra_Create new folder in %s":"Maak een nieuwe map in %s","ra_Duplicate name":"Dubbele naam","ra_Invalid parent folder!":"Ongeldige bovenliggende map!","ra_Drop file here":"Zet het bestand hier neer","ra_Suppress question for next %s minutes":"Vraag de volgende %s minuten onderdrukken","ra_Clear filter":"Filter wissen",ra_Update:"Bijwerken","ra_Load configuration from file":"Laad configuratie uit bestand","ra_Save configuration to file":"Sla de configuratie op in een bestand",sc_cron:"CRON",sc_date:"Datum",sc_dates:"data",sc_dows:"Dag van de week",sc_every:"elk",sc_everyN_dates:"elke N dagen",sc_everyN_dows:"elke N dag van de week",sc_everyN_hours:"elke N uur",sc_everyN_minutes:"elke N minuten",sc_everyN_months:"elke N maanden",sc_everyN_seconds:"elke N seconden",sc_every_dates:"elke dag",sc_every_dows:"elke dag van de week",sc_every_hours:"elk uur",sc_every_minutes:"elke minuut",sc_every_months:"elke maand",sc_every_seconds:"elke seconde",sc_from:"Van",sc_hours:"uren",sc_interval:"Interval",sc_intervalBetween:"Interval tussen",sc_minutes:"Notulen",sc_months:"maanden",sc_once:"Een keer",sc_period:"Periode",sc_seconds:"seconden",sc_simple:"Gemakkelijk",sc_specific:"Specifieke tijd",sc_specific_dates:"specifieke data",sc_specific_dows:"specifieke dag van weken",sc_specific_hours:"specifieke uren",sc_specific_minutes:"specifieke minuten",sc_specific_months:"specifieke maanden",sc_specific_seconds:"specifieke seconden",sc_time:"Tijd",sc_to:"Naar",sc_wizard:"tovenaar",sch_all:"allemaal",sch_astroDay:"Astro-dag",sch_astroNight:"Astro-nacht",sch_astro_dawn:"Dageraad",sch_astro_dusk:"Schemer",sch_astro_goldenHour:"gouden uur",sch_astro_goldenHourEnd:"Gouden uur einde",sch_astro_nadir:"Nadir",sch_astro_nauticalDawn:"Nautische dageraad",sch_astro_nauticalDusk:"Nautische schemering",sch_astro_night:"Nacht",sch_astro_nightEnd:"Nacht einde",sch_astro_solarNoon:"Zonne middag",sch_astro_sunrise:"zonsopkomst",sch_astro_sunriseEnd:"Sunrise einde",sch_astro_sunset:"Zonsondergang",sch_astro_sunsetStart:"Zonsondergang start",sch_at:"Bij",sch_desc_atTime:"op %s",sch_desc_everyDay:"elke dag",sch_desc_everyHour:"elk uur",sch_desc_everyMinute:"elke minuut",sch_desc_everyMonth:"elke maand",sch_desc_everyNDay:"elke %s dag",sch_desc_everyNHours:"elke %s uur",sch_desc_everyNMinutes:"elke %s minuten",sch_desc_everyNMonths:"elke %s maanden",sch_desc_everyNWeeks:"elke %s weken",sch_desc_everyNYears:"elke %s jaar",sch_desc_everyWeek:"elke week",sch_desc_everyYear:"elk jaar",sch_desc_intervalFromTo:"van %s tot %s",sch_desc_never:"nooit",sch_desc_onDate:"op %s van %s",sch_desc_onDates:"op %s en %s van",sch_desc_onEveryDate:"op elke datum van",sch_desc_onMonth:"%s",sch_desc_onMonths:"%s en %s",sch_desc_onWeekday:"op %s",sch_desc_onWeekdays:"op %s en %s",sch_desc_onWeekends:"in het weekend",sch_desc_onWorkdays:"op werkdagen",sch_desc_onceInPast:"zal niet meer worden uitgevoerd, omdat start verleden tijd is",sch_desc_once_on:"op %s",sch_desc_validFrom:"van %s",sch_desc_validFromTo:"Uitvoeren van tot",sch_desc_validTo:"tot %s",sch_every:"elk",sch_exactTime:"Specifieke tijd",sch_from:"van",sch_fromTo:"Van naar",sch_intervalTime:"Interval tijd",sch_invert:"omkeren",sch_no_one:"geen",sch_on:"Aan",sch_period:"Periode",sch_periodDaily:"Dagelijks",sch_periodDates:"data",sch_periodDay:"Dag",sch_periodEvery:"elk",sch_periodEveryDay:"Elke dag",sch_periodEveryMonth:"Elke maand",sch_periodEveryWeek:"Elke week",sch_periodEveryYear:"Elk jaar",sch_periodHours:"uren",sch_periodMinutes:"Notulen",sch_periodMonth:"maand",sch_periodMonthly:"Maandelijks",sch_periodOnce:"Een keer",sch_periodSpecificMonths:"Specifieke maanden",sch_periodWeek:"Week",sch_periodWeekdays:"Doordeweekse dagen",sch_periodWeekend:"Weekend",sch_periodWeekly:"Wekelijks",sch_periodWorkdays:"werkdagen",sch_periodYear:"Jaar",sch_periodYearly:"jaar-",sch_specificTime:"Specifieke tijd",sch_time:"Tijd",sch_to:"naar",sch_valid:"Geldig",sch_validFrom:"van",sch_validTo:"naar",sch_wholeDay:"Hele dag",sch_yearEveryMonth:"elke maand","ra_Define schedule...":"Schema defini\xEBren ...",ra_Repeat:"Herhaling","ra_use seconds":"gebruik seconden",ra_close:"dichtbij",ra_dow_Tu:"Tu","ra_Toggle the states view":"Schakel de statusweergave in of uit","ra_Add new child object to selected parent":"Voeg een nieuw kindobject toe aan het geselecteerde bovenliggende object","ra_Add objects tree from JSON file":"Objectenboom toevoegen vanuit JSON-bestand","ra_Save objects tree as JSON file":"Sla de objectenboom op als JSON-bestand",ra_Objects:"Voorwerpen",ra_States:"Staten",ra_object_changed_by_user:"Object voor het laatst gewijzigd om",ra_object_changed_by:"Object veranderd door",ra_state_changed_from:"Object veranderd van",ra_state_changed_by:"Staat veranderd door",ra_aclOwner_read_object:"Eigenaar kan object lezen",ra_aclOwner_read_state:"Eigenaar kan staat lezen",ra_aclOwner_write_object:"Eigenaar kan object schrijven",ra_aclOwner_write_state:"Eigenaar kan staat schrijven",ra_aclGroup_read_object:"Groep kan object lezen",ra_aclGroup_read_state:"Groep kan status lezen",ra_aclGroup_write_object:"Groep kan object schrijven",ra_aclGroup_write_state:"Groep kan staat schrijven",ra_aclEveryone_read_object:"Iedereen kan object lezen",ra_aclEveryone_read_state:"Iedereen kan staat lezen",ra_aclEveryone_write_object:"Iedereen kan object schrijven",ra_aclEveryone_write_state:"Iedereen kan staat schrijven","ra_Folders always first":"Mappen altijd eerst",ra_changedFrom:"Veranderd van",ra_qualityCode:"Kwaliteitscode",ra_timestamp:"Tijdstempel",ra_lastChange:"Laatste wijziging","ra_Owner group":"Eigenaarsgroep","ra_Owner user":"Eigenaar gebruiker",ra_Create:"Cre\xEBer","ra_Changed from":"Veranderd van","ra_Quality code":"Kwaliteit",ra_Timestamp:"Tijdstempel","ra_Last change":"Laatste wijziging","ra_Collapse all nodes":"Vouw alle knooppunten samen","ra_Edit custom config":"Bewerk aangepaste config","ra_Collapse one step node":"E\xE9n niveau samenvouwen","ra_Expand one step node":"Vouw een niveau uit","ra_Refresh tree":"Vernieuw de boom","ra_Expand all nodes":"Vouw alle knooppunten uit","ra_Deselect all":"Deselecteer alles","ra_Select all":"Selecteer alles","ra_%s object(s) processed":"%s object(en) verwerkt","ra_Invalid structure":"Ongeldige structuur","ra_%s was imported":"%s is ge\xEFmporteerd","ra_Failed to open JSON File":"JSON-bestand kan niet worden geopend","ra_Only following structures of objects are available:":"Alleen de volgende structuren van objecten zijn beschikbaar:","ra_Folder \u2192 State":"Map \u2192 Staat","ra_Folder \u2192 Channel \u2192 State":"Map \u2192 Kanaal \u2192 Staat","ra_Folder \u2192 Device \u2192 Channel \u2192 State":"Map \u2192 Apparaat \u2192 Kanaal \u2192 Staat","ra_Device \u2192 Channel \u2192 State":"Apparaat \u2192 Kanaal \u2192 Staat","ra_Channel \u2192 State":"Kanaal \u2192 Staat",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Niet-experts mogen alleen nieuwe objecten maken in "0_userdata.0" of "alias.0".','ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'De experts kunnen overal objecten maken, behalve vanaf het tweede niveau (bijv. "Vis.0" of "javascript.0").',ra_expertMode:"Expert modus","ra_On weekdays":"Op weekdagen","ra_Drop the files here...":"Zet het bestand hier neer...","ra_Drag 'n' drop some files here, or click to select files":"Sleep enkele bestanden hierheen, of klik om bestanden te selecteren",ra_Clear:"Verwijderen","ra_Clear icon":"Pictogram wissen",ra_none:"geen","ra_Select predefined icon":"Selecteer voorgedefinieerd pictogram","ra_Show lines between rows":"Toon lijnen tussen rijen","ra_The page you are looking for was not found":"De pagina die u zoekt is niet gevonden","ra_Good luck":"Veel geluk",'ra_Cannot find "%s"':'Kan "%s" niet vinden','ra_Cannot read "%s"':'Kan "%s" niet lezen',"ra_Back to %s":"Terug naar %s","ra_Background image":"Achtergrond afbeelding","ra_View: %s":"Bekijk: %s","ra_Copy content":"Inhoud kopi\xEBren",ra_Filter:"Filter","ra_All objects":"Alle objecten","ra_Only selected":"Alleen geselecteerd","ra_Change color theme":"Kleurthema wijzigen",ra_daysShortText:"d."}});var Oee=_((urt,Zze)=>{Zze.exports={ra_filter_func:"Une fonction",ra_filter_id:"ID",ra_filter_name:"Pr\xE9nom",ra_filter_role:"R\xF4le",ra_filter_room:"Pi\xE8ce",ra_tooltip_ack:"Drapeau reconnu",ra_tooltip_from:"De",ra_tooltip_lc:"Derni\xE8re modification",ra_tooltip_quality:"Qualit\xE9",ra_tooltip_ts:"Horodatage",ra_tooltip_user:"Utilisateur",ra_tooltip_value:"Valeur","ra_Are you sure?":"\xCAtes-vous s\xFBr?",ra_Cancel:"Annuler",ra_Copied:"Copi\xE9","ra_Copied %s":'"%s" copi\xE9',"ra_Define functions":"D\xE9finir des fonctions","ra_Define rooms":"D\xE9finir des pi\xE8ces",ra_Error:"Erreur",ra_Message:"Message",ra_Ok:"D'accord","ra_Please select object ID...":"Veuillez s\xE9lectionner l'ID d'objet ...",ra_Selected:"Choisi","ra_Unknown error!":"Erreur inconnue!",ra_Value:"Valeur",ra_filter_type:"Type",ra_invalidConfig:"Param\xE8tres invalides",ra_otherConfig:"Param\xE8tres d'un autre adaptateur %s",ra_tooltip_copyState:"Copiez la valeur d'\xE9tat",ra_tooltip_customConfig:"Param\xE8tres personnalis\xE9s",ra_tooltip_deleteObject:"Supprimer un objet",ra_tooltip_editObject:"Modifier l'objet",ra_tooltip_editState:"Modifier la valeur d'\xE9tat",ra_filter_customs:"Param\xE8tres","ra_Listen on all IPs":"\xC9coutez sur toutes les adresses IP",ra_dow_Fr:"Fr",ra_dow_Mo:"Mo",ra_dow_Sa:"Sa",ra_dow_Su:"Su",ra_dow_Th:"Th",ra_Save:"sauver","ra_Save and close":"Sauver et fermer",ra_Close:"Fermer","ra_Auto (no custom columns)":"Auto (pas de colonnes personnalis\xE9es)","ra_Transparent dialog":"Dialogue transparent",ra_Width:"Largeur",ra_val:"Valeur",ra_buttons:"Boutons","ra_Configure visible columns":"Configurer les colonnes visibles","ra_Cannot update attribute, because not found in the object":"Impossible de mettre \xE0 jour l'attribut, car il est introuvable dans l'objet","ra_Edit object field":"Modifier le champ d'objet","ra_Hide empty folders":"Masquer les dossiers vides","ra_Reload files":"Recharger les fichiers","ra_Create folder":"Cr\xE9er le dossier","ra_Upload file":"T\xE9l\xE9verser un fichier","ra_User files":"Fichiers utilisateurs","ra_Confirm deletion of %s":"Confirmer la suppression de %s","ra_Delete (no confirm for 5 mins)":"Supprimer (pas de confirmation pendant 5 minutes)",ra_Delete:"Supprimer","ra_Toggle expert mode":"Basculer en mode expert","ra_Toggle view mode":"Basculer le mode d'affichage",ra_Root:"Racine","ra_Back to %s":"Retour \xE0 %s","ra_Place your files here or click here to open the browse dialog":"Placez vos fichiers ici ou cliquez ici pour ouvrir la bo\xEEte de dialogue de navigation","ra_If no file will be created in the folder, it will disappear after the browser closed":"Si aucun fichier ne sera cr\xE9\xE9 dans le dossier, il dispara\xEEtra apr\xE8s la fermeture du navigateur","ra_Folder name":"Nom de dossier","ra_Create new folder in %s":"Cr\xE9er un nouveau dossier dans %s","ra_Duplicate name":"Nom en double","ra_Invalid parent folder!":"Dossier parent non valide!","ra_Drop file here":"D\xE9poser le fichier ici","ra_Suppress question for next %s minutes":"Supprimer la question pour les %s prochaines minutes","ra_Clear filter":"Effacer le filtre",ra_Update:"Mise \xE0 jour","ra_Load configuration from file":"Charger la configuration \xE0 partir du fichier","ra_Save configuration to file":"Enregistrer la configuration dans un fichier",sc_cron:"CRON",sc_date:"Date",sc_dates:"Rendez-vous",sc_dows:"Jour de la semaine",sc_every:"Chaque",sc_everyN_dates:"tous les N jours",sc_everyN_dows:"tous les N jours de la semaine",sc_everyN_hours:"toutes les N heures",sc_everyN_minutes:"toutes les N minutes",sc_everyN_months:"tous les N mois",sc_everyN_seconds:"toutes les N secondes",sc_every_dates:"tous les jours",sc_every_dows:"Chaque jour de la semaine",sc_every_hours:"Toutes les heures",sc_every_minutes:"chaque minute",sc_every_months:"chaque mois",sc_every_seconds:"chaque seconde",sc_from:"De",sc_hours:"Heures",sc_interval:"Intervalle",sc_intervalBetween:"Intervalle entre",sc_minutes:"Minutes",sc_months:"mois",sc_once:"Une fois que",sc_period:"P\xE9riode",sc_seconds:"Secondes",sc_simple:"Facile",sc_specific:"Temps sp\xE9cifique",sc_specific_dates:"dates sp\xE9cifiques",sc_specific_dows:"jour sp\xE9cifique de semaines",sc_specific_hours:"heures sp\xE9cifiques",sc_specific_minutes:"minutes sp\xE9cifiques",sc_specific_months:"mois sp\xE9cifiques",sc_specific_seconds:"secondes sp\xE9cifiques",sc_time:"Temps",sc_to:"\xC0",sc_wizard:"sorcier",sch_all:"tout",sch_astroDay:"Journ\xE9e astronomique",sch_astroNight:"Nuit astronomique",sch_astro_dawn:"Aube",sch_astro_dusk:"Cr\xE9puscule",sch_astro_goldenHour:"Heure d'or",sch_astro_goldenHourEnd:"Fin de l'heure d'or",sch_astro_nadir:"Nadir",sch_astro_nauticalDawn:"Aube nautique",sch_astro_nauticalDusk:"Cr\xE9puscule nautique",sch_astro_night:"Nuit",sch_astro_nightEnd:"Fin de nuit",sch_astro_solarNoon:"Midi solaire",sch_astro_sunrise:"lever du soleil",sch_astro_sunriseEnd:"Fin du lever du soleil",sch_astro_sunset:"Le coucher du soleil",sch_astro_sunsetStart:"Coucher du soleil",sch_at:"\xE0",sch_desc_atTime:"\xE0 %s",sch_desc_everyDay:"tous les jours",sch_desc_everyHour:"Toutes les heures",sch_desc_everyMinute:"chaque minute",sch_desc_everyMonth:"chaque mois",sch_desc_everyNDay:"chaque %s jour",sch_desc_everyNHours:"chaque %s heures",sch_desc_everyNMinutes:"toutes les %s minutes",sch_desc_everyNMonths:"tous les %s mois",sch_desc_everyNWeeks:"chaque %s semaines",sch_desc_everyNYears:"tous les %s ans",sch_desc_everyWeek:"toutes les semaines",sch_desc_everyYear:"chaque ann\xE9e",sch_desc_intervalFromTo:"de %s \xE0 %s",sch_desc_never:"jamais",sch_desc_onDate:"sur %s de %s",sch_desc_onDates:"sur %s et %s de",sch_desc_onEveryDate:"\xE0 chaque date de",sch_desc_onMonth:"%s",sch_desc_onMonths:"%s et %s",sch_desc_onWeekday:"sur %s",sch_desc_onWeekdays:"sur %s et %s",sch_desc_onWeekends:"les weekends",sch_desc_onWorkdays:"les jours ouvrables",sch_desc_onceInPast:"ne sera plus ex\xE9cut\xE9, car start est dans le pass\xE9",sch_desc_once_on:"sur %s",sch_desc_validFrom:"de %s",sch_desc_validFromTo:"Ex\xE9cuter de \xE0",sch_desc_validTo:"\xE0 %s",sch_every:"chaque",sch_exactTime:"Temps sp\xE9cifique",sch_from:"de",sch_fromTo:"De \xE0",sch_intervalTime:"Temps d'interval",sch_invert:"inverser",sch_no_one:"aucun",sch_on:"sur",sch_period:"P\xE9riode",sch_periodDaily:"du quotidien",sch_periodDates:"Rendez-vous",sch_periodDay:"journ\xE9e",sch_periodEvery:"Chaque",sch_periodEveryDay:"Tous les jours",sch_periodEveryMonth:"Chaque mois",sch_periodEveryWeek:"Toutes les semaines",sch_periodEveryYear:"Chaque ann\xE9e",sch_periodHours:"Heures",sch_periodMinutes:"Minutes",sch_periodMonth:"mois",sch_periodMonthly:"Mensuel",sch_periodOnce:"Une fois que",sch_periodSpecificMonths:"Mois sp\xE9cifiques",sch_periodWeek:"La semaine",sch_periodWeekdays:"Jours de la semaine",sch_periodWeekend:"Weekend",sch_periodWeekly:"Hebdomadaire",sch_periodWorkdays:"Jours ouvrables",sch_periodYear:"Ann\xE9e",sch_periodYearly:"Annuel",sch_specificTime:"Temps sp\xE9cifique",sch_time:"Temps",sch_to:"\xE0",sch_valid:"Valide",sch_validFrom:"de",sch_validTo:"\xE0",sch_wholeDay:"Toute la journ\xE9e",sch_yearEveryMonth:"chaque mois","ra_Define schedule...":"D\xE9finir le calendrier ...",ra_Repeat:"R\xE9p\xE9ter","ra_use seconds":"utiliser les secondes",ra_close:"Fermer",ra_dow_Tu:"Tu","ra_Toggle the states view":"Basculer la vue des \xE9tats","ra_Add new child object to selected parent":"Ajouter un nouvel objet enfant au parent s\xE9lectionn\xE9","ra_Add objects tree from JSON file":"Ajouter une arborescence d'objets \xE0 partir d'un fichier JSON","ra_Save objects tree as JSON file":"Enregistrer l'arborescence des objets en tant que fichier JSON",ra_Objects:"Objets",ra_States:"\xC9tats",ra_object_changed_by_user:"Objet modifi\xE9 pour la derni\xE8re fois \xE0",ra_object_changed_by:"Objet modifi\xE9 par",ra_state_changed_from:"Objet chang\xE9 de",ra_state_changed_by:"\xC9tat modifi\xE9 par",ra_aclOwner_read_object:"Le propri\xE9taire peut lire l'objet",ra_aclOwner_read_state:"Le propri\xE9taire peut lire l'\xE9tat",ra_aclOwner_write_object:"Le propri\xE9taire peut \xE9crire un objet",ra_aclOwner_write_state:"Le propri\xE9taire peut \xE9crire l'\xE9tat",ra_aclGroup_read_object:"Le groupe peut lire l'objet",ra_aclGroup_read_state:"Le groupe peut lire l'\xE9tat",ra_aclGroup_write_object:"Le groupe peut \xE9crire un objet",ra_aclGroup_write_state:"Le groupe peut \xE9crire l'\xE9tat",ra_aclEveryone_read_object:"Tout le monde peut lire un objet",ra_aclEveryone_read_state:"Tout le monde peut lire l'\xE9tat",ra_aclEveryone_write_object:"Tout le monde peut \xE9crire un objet",ra_aclEveryone_write_state:"Tout le monde peut \xE9crire l'\xE9tat","ra_Folders always first":"Les dossiers toujours en premier",ra_changedFrom:"Chang\xE9 de",ra_qualityCode:"Code de qualit\xE9",ra_timestamp:"Horodatage",ra_lastChange:"Dernier changement","ra_Owner group":"Groupe propri\xE9taire","ra_Owner user":"Utilisateur propri\xE9taire",ra_Create:"Cr\xE9er","ra_Changed from":"Chang\xE9 de","ra_Quality code":"Qualit\xE9",ra_Timestamp:"Horodatage","ra_Last change":"Dernier changement","ra_Collapse all nodes":"R\xE9duire tous les n\u0153uds","ra_Edit custom config":"Modifier la configuration personnalis\xE9e","ra_Collapse one step node":"R\xE9duire d'un niveau","ra_Expand one step node":"D\xE9velopper un niveau","ra_Refresh tree":"Rafra\xEEchir l'arborescence","ra_Expand all nodes":"D\xE9velopper tous les n\u0153uds","ra_Deselect all":"Tout d\xE9selectionner","ra_Select all":"Tout s\xE9lectionner","ra_%s object(s) processed":"%s objet(s) trait\xE9(s)","ra_Invalid structure":"Structure invalide","ra_%s was imported":"%s a \xE9t\xE9 import\xE9","ra_Failed to open JSON File":"\xC9chec de l'ouverture du fichier JSON","ra_Only following structures of objects are available:":"Seules les structures d'objets suivantes sont disponibles:","ra_Folder \u2192 State":"Dossier \u2192 \xC9tat","ra_Folder \u2192 Channel \u2192 State":"Dossier \u2192 Cha\xEEne \u2192 \xC9tat","ra_Folder \u2192 Device \u2192 Channel \u2192 State":"Dossier \u2192 Appareil \u2192 Canal \u2192 \xC9tat","ra_Device \u2192 Channel \u2192 State":"Appareil \u2192 Canal \u2192 \xC9tat","ra_Channel \u2192 State":"Canal \u2192 \xC9tat",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Les non-experts ne peuvent cr\xE9er de nouveaux objets que dans "0_userdata.0" ou "alias.0".','ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Les experts peuvent cr\xE9er des objets partout mais \xE0 partir du deuxi\xE8me niveau (par exemple "vis.0" ou "javascript.0").',ra_expertMode:"Mode expert","ra_On weekdays":"En semaine","ra_Drop the files here...":"D\xE9posez le fichier ici...","ra_Drag 'n' drop some files here, or click to select files":"Glissez-d\xE9posez des fichiers ici, ou cliquez pour s\xE9lectionner des fichiers",ra_Clear:"Effacer","ra_Clear icon":"Effacer l'ic\xF4ne",ra_none:"rien","ra_Select predefined icon":"S\xE9lectionnez l'ic\xF4ne pr\xE9d\xE9finie","ra_Show lines between rows":"Afficher les lignes entre les lignes","ra_The page you are looking for was not found":"La page que vous recherchez n'a pas \xE9t\xE9 trouv\xE9e","ra_Good luck":"Bonne chance",'ra_Cannot find "%s"':'Impossible de trouver "%s"','ra_Cannot read "%s"':'Impossible de lire "%s"',"ra_Back to %s":"Retour \xE0 %s","ra_Background image":"Image de fond","ra_View: %s":"Affichage : %s","ra_Copy content":"Copier le contenu",ra_Filter:"Filtre","ra_All objects":"Tous les objets","ra_Only selected":"Uniquement s\xE9lectionn\xE9","ra_Change color theme":"Changer le th\xE8me de couleur",ra_daysShortText:"j."}});var Ree=_((lrt,Qze)=>{Qze.exports={ra_filter_func:"Funzione",ra_filter_id:"ID",ra_filter_name:"Nome",ra_filter_role:"Ruolo",ra_filter_room:"Camera",ra_tooltip_ack:"Bandiera riconosciuta",ra_tooltip_from:"A partire dal",ra_tooltip_lc:"Ultima modifica",ra_tooltip_quality:"Qualit\xE0",ra_tooltip_ts:"Data e ora",ra_tooltip_user:"Utente",ra_tooltip_value:"Valore","ra_Are you sure?":"Sei sicuro?",ra_Cancel:"Annulla",ra_Copied:"Copiato","ra_Copied %s":'"%s" copiato',"ra_Define functions":"Definire le funzioni","ra_Define rooms":"Definisci le stanze",ra_Error:"Errore",ra_Message:"Messaggio",ra_Ok:"Ok","ra_Please select object ID...":"Seleziona l'ID oggetto ...",ra_Selected:"Selezionato","ra_Unknown error!":"Errore sconosciuto!",ra_Value:"Valore",ra_filter_type:"genere",ra_invalidConfig:"Impostazioni non valide",ra_otherConfig:"Impostazioni dall'altro adattatore %s",ra_tooltip_copyState:"Copia il valore dello stato",ra_tooltip_customConfig:"Impostazioni personalizzate",ra_tooltip_deleteObject:"Elimina oggetto",ra_tooltip_editObject:"Modifica oggetto",ra_tooltip_editState:"Modifica il valore dello stato",ra_filter_customs:"impostazioni","ra_Listen on all IPs":"Ascolta su tutti gli IP",ra_dow_Fr:"fr",ra_dow_Mo:"momento",ra_dow_Sa:"Sa",ra_dow_Su:"su",ra_dow_Th:"th",ra_Save:"Salva","ra_Save and close":"Salva e chiudi",ra_Close:"Vicino","ra_Auto (no custom columns)":"Auto (nessuna colonna personalizzata)","ra_Transparent dialog":"Finestra di dialogo trasparente",ra_Width:"Larghezza",ra_val:"Valore",ra_buttons:"Bottoni","ra_Configure visible columns":"Configura colonne visibili","ra_Cannot update attribute, because not found in the object":"Impossibile aggiornare l'attributo, perch\xE9 non trovato nell'oggetto","ra_Edit object field":"Modifica campo oggetto","ra_Hide empty folders":"Nascondi cartelle vuote","ra_Reload files":"Ricarica i file","ra_Create folder":"Creare una cartella","ra_Upload file":"Caricare un file","ra_User files":"File utente","ra_Confirm deletion of %s":"Conferma l'eliminazione di %s","ra_Delete (no confirm for 5 mins)":"Elimina (nessuna conferma per 5 minuti)",ra_Delete:"Elimina","ra_Toggle expert mode":"Attiva / disattiva la modalit\xE0 esperto","ra_Toggle view mode":"Attiva / disattiva la modalit\xE0 di visualizzazione",ra_Root:"Radice","ra_Back to %s":"Torna a %s","ra_Place your files here or click here to open the browse dialog":"Posiziona i file qui o fai clic qui per aprire la finestra di dialogo Sfoglia","ra_If no file will be created in the folder, it will disappear after the browser closed":"Se nessun file verr\xE0 creato nella cartella, scomparir\xE0 dopo la chiusura del browser","ra_Folder name":"Nome della cartella","ra_Create new folder in %s":"Crea nuova cartella in %s","ra_Duplicate name":"Nome duplicato","ra_Invalid parent folder!":"Cartella principale non valida!","ra_Drop file here":"Trascina il file qui","ra_Suppress question for next %s minutes":"Sopprimi la domanda per i prossimi %s minuti","ra_Clear filter":"Filtro pulito",ra_Update:"Aggiornare","ra_Load configuration from file":"Carica la configurazione dal file","ra_Save configuration to file":"Salva la configurazione su file",sc_cron:"CRON",sc_date:"Data",sc_dates:"Date",sc_dows:"Giorno della settimana",sc_every:"Ogni",sc_everyN_dates:"ogni N giorni",sc_everyN_dows:"ogni N giorno della settimana",sc_everyN_hours:"ogni N ore",sc_everyN_minutes:"ogni N minuti",sc_everyN_months:"ogni N mesi",sc_everyN_seconds:"ogni N secondi",sc_every_dates:"ogni giorno",sc_every_dows:"Tutti i giorni della settimana",sc_every_hours:"ogni ora",sc_every_minutes:"ogni minuto",sc_every_months:"ogni mese",sc_every_seconds:"ogni secondo",sc_from:"A partire dal",sc_hours:"Ore",sc_interval:"Intervallo",sc_intervalBetween:"Intervallo tra",sc_minutes:"Minuti",sc_months:"mesi",sc_once:"Una volta",sc_period:"Periodo",sc_seconds:"secondi",sc_simple:"Semplice",sc_specific:"Orario preciso",sc_specific_dates:"date specifiche",sc_specific_dows:"giorno specifico delle settimane",sc_specific_hours:"orari specifici",sc_specific_minutes:"minuti specifici",sc_specific_months:"mesi specifici",sc_specific_seconds:"secondi specifici",sc_time:"Tempo",sc_to:"Per",sc_wizard:"procedura guidata",sch_all:"tutti",sch_astroDay:"Astro day",sch_astroNight:"Astro night",sch_astro_dawn:"Alba",sch_astro_dusk:"Crepuscolo",sch_astro_goldenHour:"Ora d'oro",sch_astro_goldenHourEnd:"Fine dell'ora d'oro",sch_astro_nadir:"Nadir",sch_astro_nauticalDawn:"Alba nautica",sch_astro_nauticalDusk:"Crepuscolo nautico",sch_astro_night:"Notte",sch_astro_nightEnd:"Fine della notte",sch_astro_solarNoon:"Mezzogiorno solare",sch_astro_sunrise:"Alba",sch_astro_sunriseEnd:"Fine dell'alba",sch_astro_sunset:"Tramonto",sch_astro_sunsetStart:"Inizio del tramonto",sch_at:"a",sch_desc_atTime:"a %s",sch_desc_everyDay:"ogni giorno",sch_desc_everyHour:"ogni ora",sch_desc_everyMinute:"ogni minuto",sch_desc_everyMonth:"ogni mese",sch_desc_everyNDay:"ogni %s giorno",sch_desc_everyNHours:"ogni %s ore",sch_desc_everyNMinutes:"ogni %s minuti",sch_desc_everyNMonths:"ogni %s mesi",sch_desc_everyNWeeks:"ogni %s settimane",sch_desc_everyNYears:"ogni %s anni",sch_desc_everyWeek:"ogni settimana",sch_desc_everyYear:"ogni anno",sch_desc_intervalFromTo:"da %s a %s",sch_desc_never:"mai",sch_desc_onDate:"su %s di %s",sch_desc_onDates:"su %s e %s di",sch_desc_onEveryDate:"in ogni data di",sch_desc_onMonth:"%s",sch_desc_onMonths:"%s e %s",sch_desc_onWeekday:"su %s",sch_desc_onWeekdays:"su %s e %s",sch_desc_onWeekends:"nei finesettimana",sch_desc_onWorkdays:"nei giorni lavorativi",sch_desc_onceInPast:"non verr\xE0 pi\xF9 eseguito, perch\xE9 start \xE8 nel passato",sch_desc_once_on:"su %s",sch_desc_validFrom:"da %s",sch_desc_validFromTo:"Eseguire da a",sch_desc_validTo:"a %s",sch_every:"ogni",sch_exactTime:"Orario preciso",sch_from:"a partire dal",sch_fromTo:"Da A",sch_intervalTime:"Intervallo di tempo",sch_invert:"invertire",sch_no_one:"nessuna",sch_on:"sopra",sch_period:"Periodo",sch_periodDaily:"Quotidiano",sch_periodDates:"Date",sch_periodDay:"Giorno",sch_periodEvery:"Ogni",sch_periodEveryDay:"Ogni giorno",sch_periodEveryMonth:"Ogni mese",sch_periodEveryWeek:"Ogni settimana",sch_periodEveryYear:"Ogni anno",sch_periodHours:"Ore",sch_periodMinutes:"Minuti",sch_periodMonth:"mese",sch_periodMonthly:"Mensile",sch_periodOnce:"Una volta",sch_periodSpecificMonths:"Mesi specifici",sch_periodWeek:"Settimana",sch_periodWeekdays:"Giorni della settimana",sch_periodWeekend:"Fine settimana",sch_periodWeekly:"settimanalmente",sch_periodWorkdays:"giorni feriali",sch_periodYear:"Anno",sch_periodYearly:"Annuale",sch_specificTime:"Orario preciso",sch_time:"Tempo",sch_to:"per",sch_valid:"Valido",sch_validFrom:"a partire dal",sch_validTo:"per",sch_wholeDay:"Giorno intero",sch_yearEveryMonth:"ogni mese","ra_Define schedule...":"Definisci pianificazione ...",ra_Repeat:"Ripetere","ra_use seconds":"usa i secondi",ra_close:"vicino",ra_dow_Tu:"Tu","ra_Toggle the states view":"Attiva o disattiva la visualizzazione degli stati","ra_Add new child object to selected parent":"Aggiungi un nuovo oggetto figlio al genitore selezionato","ra_Add objects tree from JSON file":"Aggiungi l'albero degli oggetti dal file JSON","ra_Save objects tree as JSON file":"Salva l'albero degli oggetti come file JSON",ra_Objects:"Oggetti",ra_States:"stati",ra_object_changed_by_user:"L'oggetto \xE8 stato modificato l'ultima volta alle",ra_object_changed_by:"Oggetto modificato da",ra_state_changed_from:"Oggetto cambiato da",ra_state_changed_by:"Stato cambiato da",ra_aclOwner_read_object:"Il proprietario pu\xF2 leggere l'oggetto",ra_aclOwner_read_state:"Il proprietario pu\xF2 leggere lo stato",ra_aclOwner_write_object:"Il proprietario pu\xF2 scrivere l'oggetto",ra_aclOwner_write_state:"Il proprietario pu\xF2 scrivere lo stato",ra_aclGroup_read_object:"Il gruppo pu\xF2 leggere l'oggetto",ra_aclGroup_read_state:"Il gruppo pu\xF2 leggere lo stato",ra_aclGroup_write_object:"Il gruppo pu\xF2 scrivere l'oggetto",ra_aclGroup_write_state:"Il gruppo pu\xF2 scrivere lo stato",ra_aclEveryone_read_object:"Tutti possono leggere gli oggetti",ra_aclEveryone_read_state:"Tutti possono leggere lo stato",ra_aclEveryone_write_object:"Tutti possono scrivere oggetti",ra_aclEveryone_write_state:"Tutti possono scrivere stato","ra_Folders always first":"Le cartelle sono sempre al primo posto",ra_changedFrom:"Cambiato da",ra_qualityCode:"Codice di qualit\xE0",ra_timestamp:"Timestamp",ra_lastChange:"Ultima modifica","ra_Owner group":"Gruppo di proprietari","ra_Owner user":"Utente proprietario",ra_Create:"Creare","ra_Changed from":"Cambiato da","ra_Quality code":"Qualit\xE0",ra_Timestamp:"Timestamp","ra_Last change":"Ultima modifica","ra_Collapse all nodes":"Comprimi tutti i nodi","ra_Edit custom config":"Modifica configurazione personalizzata","ra_Collapse one step node":"Comprimi un livello","ra_Expand one step node":"Espandi un livello","ra_Refresh tree":"Aggiorna l'albero","ra_Expand all nodes":"Espandi tutti i nodi","ra_Deselect all":"Deseleziona tutto","ra_Select all":"Seleziona tutto","ra_%s object(s) processed":"%s oggetti elaborati","ra_Invalid structure":"Struttura non valida","ra_%s was imported":"%s \xE8 stato importato","ra_Failed to open JSON File":"Impossibile aprire il file JSON","ra_Only following structures of objects are available:":"Sono disponibili solo le seguenti strutture di oggetti:","ra_Folder \u2192 State":"Cartella \u2192 Stato","ra_Folder \u2192 Channel \u2192 State":"Cartella \u2192 Canale \u2192 Stato","ra_Folder \u2192 Device \u2192 Channel \u2192 State":"Cartella \u2192 Dispositivo \u2192 Canale \u2192 Stato","ra_Device \u2192 Channel \u2192 State":"Dispositivo \u2192 Canale \u2192 Stato","ra_Channel \u2192 State":"Canale \u2192 Stato",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'I non esperti possono creare nuovi oggetti solo in "0_userdata.0" o "alias.0".','ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Gli esperti possono creare oggetti ovunque ma dal secondo livello (es. "Vis.0" o "javascript.0").',ra_expertMode:"Modalit\xE0 esperto","ra_On weekdays":"Nei giorni della settimana","ra_Drop the files here...":"Trascina qui il file...","ra_Drag 'n' drop some files here, or click to select files":"Trascina e rilascia alcuni file qui o fai clic per selezionare i file",ra_Clear:"Elimina","ra_Clear icon":"Cancella icona",ra_none:"nessuna","ra_Select predefined icon":"Seleziona l'icona predefinita","ra_Show lines between rows":"Mostra linee tra le righe","ra_The page you are looking for was not found":"La pagina che stai cercando non \xE8 stata trovata","ra_Good luck":"Buona fortuna",'ra_Cannot find "%s"':'Impossibile trovare "%s"','ra_Cannot read "%s"':'Impossibile leggere "%s"',"ra_Back to %s":"Torna a %s","ra_Background image":"Immagine di sfondo","ra_View: %s":"Visualizza: %s","ra_Copy content":"Copia contenuto",ra_Filter:"Filtro","ra_All objects":"Tutti gli oggetti","ra_Only selected":"Solo selezionato","ra_Change color theme":"Cambia tema colore",ra_daysShortText:"g."}});var Dee=_((crt,eWe)=>{eWe.exports={ra_filter_func:"Funci\xF3n",ra_filter_id:"ID",ra_filter_name:"Nombre",ra_filter_role:"Papel",ra_filter_room:"Habitaci\xF3n",ra_tooltip_ack:"Bandera reconocida",ra_tooltip_from:"Desde",ra_tooltip_lc:"\xDAltimo cambio",ra_tooltip_quality:"Calidad",ra_tooltip_ts:"Sello de tiempo",ra_tooltip_user:"Usuario",ra_tooltip_value:"Valor","ra_Are you sure?":"\xBFEst\xE1s seguro?",ra_Cancel:"Cancelar",ra_Copied:"Copiado","ra_Copied %s":'Copiado "%s"',"ra_Define functions":"Definir funciones","ra_Define rooms":"Definir habitaciones",ra_Error:"Error",ra_Message:"Mensaje",ra_Ok:"Okay","ra_Please select object ID...":"Por favor seleccione ID de objeto ...",ra_Selected:"Seleccionado","ra_Unknown error!":"\xA1Error desconocido!",ra_Value:"Valor",ra_filter_type:"Tipo",ra_invalidConfig:"Configuraciones inv\xE1lidas",ra_otherConfig:"Configuraciones de otro adaptador %s",ra_tooltip_copyState:"Copie el valor del estado",ra_tooltip_customConfig:"Ajustes personalizados",ra_tooltip_deleteObject:"Eliminar objeto",ra_tooltip_editObject:"Editar objeto",ra_tooltip_editState:"Edite el valor del estado",ra_filter_customs:"Configuraciones","ra_Listen on all IPs":"Escuche en todas las IP",ra_dow_Fr:"Fr",ra_dow_Mo:"Mes",ra_dow_Sa:"Sa",ra_dow_Su:"Su",ra_dow_Th:"Th",ra_Save:"Salvar","ra_Save and close":"Guardar y cerrar",ra_Close:"Cerca","ra_Auto (no custom columns)":"Autom\xE1tico (sin columnas personalizadas)","ra_Transparent dialog":"Di\xE1logo transparente",ra_Width:"Anchura",ra_val:"Valor",ra_buttons:"Botones","ra_Configure visible columns":"Configurar columnas visibles","ra_Cannot update attribute, because not found in the object":"No se puede actualizar el atributo porque no se encuentra en el objeto","ra_Edit object field":"Editar campo de objeto","ra_Hide empty folders":"Ocultar carpetas vac\xEDas","ra_Reload files":"Recargar archivos","ra_Create folder":"Crear carpeta","ra_Upload file":"Subir archivo","ra_User files":"Archivos de usuario","ra_Confirm deletion of %s":"Confirmar la eliminaci\xF3n de %s","ra_Delete (no confirm for 5 mins)":"Eliminar (sin confirmar durante 5 minutos)",ra_Delete:"Eliminar","ra_Toggle expert mode":"Alternar modo experto","ra_Toggle view mode":"Alternar modo de vista",ra_Root:"Ra\xEDz","ra_Back to %s":"Volver a %s","ra_Place your files here or click here to open the browse dialog":"Coloque sus archivos aqu\xED o haga clic aqu\xED para abrir el cuadro de di\xE1logo de exploraci\xF3n","ra_If no file will be created in the folder, it will disappear after the browser closed":"Si no se crear\xE1 ning\xFAn archivo en la carpeta, desaparecer\xE1 despu\xE9s de que se cierre el navegador.","ra_Folder name":"Nombre de la carpeta","ra_Create new folder in %s":"Crear nueva carpeta en %s","ra_Duplicate name":"Nombre duplicado","ra_Invalid parent folder!":"Carpeta principal no v\xE1lida.","ra_Drop file here":"Suelta el archivo aqu\xED","ra_Suppress question for next %s minutes":"Suprimir pregunta durante los pr\xF3ximos %s minutos","ra_Clear filter":"Filtro claro",ra_Update:"Actualizar","ra_Load configuration from file":"Cargar configuraci\xF3n desde archivo","ra_Save configuration to file":"Guardar configuraci\xF3n en archivo",sc_cron:"CRON",sc_date:"Fecha",sc_dates:"fechas",sc_dows:"D\xEDa de la semana",sc_every:"Cada",sc_everyN_dates:"cada N d\xEDas",sc_everyN_dows:"cada N d\xEDa de la semana",sc_everyN_hours:"cada N horas",sc_everyN_minutes:"cada N minutos",sc_everyN_months:"cada N meses",sc_everyN_seconds:"cada N segundos",sc_every_dates:"cada d\xEDa",sc_every_dows:"Cada d\xEDa de la semana",sc_every_hours:"cada hora",sc_every_minutes:"cada minuto",sc_every_months:"cada mes",sc_every_seconds:"cada segundo",sc_from:"De",sc_hours:"Horas",sc_interval:"Intervalo",sc_intervalBetween:"Intervalo entre",sc_minutes:"Minutos",sc_months:"meses",sc_once:"Una vez",sc_period:"Per\xEDodo",sc_seconds:"Segundos",sc_simple:"Sencillo",sc_specific:"Tiempo espec\xEDfico",sc_specific_dates:"fechas especificas",sc_specific_dows:"d\xEDa espec\xEDfico de semanas",sc_specific_hours:"horas espec\xEDficas",sc_specific_minutes:"minutos espec\xEDficos",sc_specific_months:"meses espec\xEDficos",sc_specific_seconds:"segundos espec\xEDficos",sc_time:"Hora",sc_to:"A",sc_wizard:"Mago",sch_all:"todas",sch_astroDay:"D\xEDa astro",sch_astroNight:"Noche astro",sch_astro_dawn:"Amanecer",sch_astro_dusk:"Oscuridad",sch_astro_goldenHour:"hora dorada",sch_astro_goldenHourEnd:"Fin de la hora dorada",sch_astro_nadir:"Nadir",sch_astro_nauticalDawn:"Amanecer n\xE1utico",sch_astro_nauticalDusk:"Anochecer n\xE1utico",sch_astro_night:"Noche",sch_astro_nightEnd:"Fin de la noche",sch_astro_solarNoon:"Mediod\xEDa solar",sch_astro_sunrise:"amanecer",sch_astro_sunriseEnd:"Fin del amanecer",sch_astro_sunset:"Puesta de sol",sch_astro_sunsetStart:"Puesta de sol",sch_at:"a",sch_desc_atTime:"en %s",sch_desc_everyDay:"cada d\xEDa",sch_desc_everyHour:"cada hora",sch_desc_everyMinute:"cada minuto",sch_desc_everyMonth:"cada mes",sch_desc_everyNDay:"cada %s d\xEDas",sch_desc_everyNHours:"cada %s horas",sch_desc_everyNMinutes:"cada %s minutos",sch_desc_everyNMonths:"cada %s meses",sch_desc_everyNWeeks:"cada %s semanas",sch_desc_everyNYears:"cada %s a\xF1os",sch_desc_everyWeek:"cada semana",sch_desc_everyYear:"todos los a\xF1os",sch_desc_intervalFromTo:"de %s a %s",sch_desc_never:"Nunca",sch_desc_onDate:"en %s de %s",sch_desc_onDates:"en %s y %s de",sch_desc_onEveryDate:"en cada fecha de",sch_desc_onMonth:"%s",sch_desc_onMonths:"%s y %s",sch_desc_onWeekday:"en %s",sch_desc_onWeekdays:"en %s y %s",sch_desc_onWeekends:"en los fines de semana",sch_desc_onWorkdays:"en d\xEDas laborables",sch_desc_onceInPast:"ya no se ejecutar\xE1 m\xE1s, porque el inicio est\xE1 en el pasado",sch_desc_once_on:"en %s",sch_desc_validFrom:"de %s",sch_desc_validFromTo:"Ejecutar desde hasta",sch_desc_validTo:"a %s",sch_every:"cada",sch_exactTime:"Tiempo espec\xEDfico",sch_from:"de",sch_fromTo:"De-a",sch_intervalTime:"Tiempo de intervalo",sch_invert:"invertir; poner boca abajo o en la posici\xF3n opuesta, orden o arreglo; Boca abajo",sch_no_one:"ninguna",sch_on:"en",sch_period:"Per\xEDodo",sch_periodDaily:"Diario",sch_periodDates:"fechas",sch_periodDay:"D\xEDa",sch_periodEvery:"Cada",sch_periodEveryDay:"Cada d\xEDa",sch_periodEveryMonth:"Cada mes",sch_periodEveryWeek:"Cada semana",sch_periodEveryYear:"Todos los a\xF1os",sch_periodHours:"Horas",sch_periodMinutes:"Minutos",sch_periodMonth:"mes",sch_periodMonthly:"Mensual",sch_periodOnce:"Una vez",sch_periodSpecificMonths:"Meses espec\xEDficos",sch_periodWeek:"Semana",sch_periodWeekdays:"D\xEDas laborables",sch_periodWeekend:"Fin de semana",sch_periodWeekly:"Semanal",sch_periodWorkdays:"D\xEDas laborables",sch_periodYear:"A\xF1o",sch_periodYearly:"Anual",sch_specificTime:"Tiempo espec\xEDfico",sch_time:"Hora",sch_to:"a",sch_valid:"V\xE1lido",sch_validFrom:"de",sch_validTo:"a",sch_wholeDay:"Todo el dia",sch_yearEveryMonth:"cada mes","ra_Define schedule...":"Definir horario ...",ra_Repeat:"Repetir","ra_use seconds":"usar segundos",ra_close:"cerrar",ra_dow_Tu:"Tu","ra_Toggle the states view":"Alternar la vista de estados","ra_Add new child object to selected parent":"Agregar nuevo objeto hijo al padre seleccionado","ra_Add objects tree from JSON file":"Agregar \xE1rbol de objetos desde el archivo JSON","ra_Save objects tree as JSON file":"Guardar el \xE1rbol de objetos como archivo JSON",ra_Objects:"Objetos",ra_States:"Estados",ra_object_changed_by_user:"Objeto cambiado por \xFAltima vez a las",ra_object_changed_by:"Objeto cambiado por",ra_state_changed_from:"Objeto cambiado de",ra_state_changed_by:"Estado cambiado por",ra_aclOwner_read_object:"El propietario puede leer el objeto",ra_aclOwner_read_state:"El propietario puede leer el estado",ra_aclOwner_write_object:"El propietario puede escribir el objeto",ra_aclOwner_write_state:"El propietario puede escribir el estado",ra_aclGroup_read_object:"El grupo puede leer el objeto",ra_aclGroup_read_state:"El grupo puede leer el estado",ra_aclGroup_write_object:"El grupo puede escribir un objeto",ra_aclGroup_write_state:"El grupo puede escribir el estado",ra_aclEveryone_read_object:"Todo el mundo puede leer el objeto",ra_aclEveryone_read_state:"Todos pueden leer el estado",ra_aclEveryone_write_object:"Todos pueden escribir objetos",ra_aclEveryone_write_state:"Todos pueden escribir el estado","ra_Folders always first":"Carpetas siempre primero",ra_changedFrom:"Cambiaron desde",ra_qualityCode:"C\xF3digo de calidad",ra_timestamp:"Marca de tiempo",ra_lastChange:"Ultimo cambio","ra_Owner group":"Grupo propietario","ra_Owner user":"Usuario propietario",ra_Create:"Crear","ra_Changed from":"Cambiaron desde","ra_Quality code":"Calidad",ra_Timestamp:"Marca de tiempo","ra_Last change":"Ultimo cambio","ra_Collapse all nodes":"Contraer todos los nodos","ra_Edit custom config":"Editar configuraci\xF3n personalizada","ra_Collapse one step node":"Contraer un nivel","ra_Expand one step node":"Expandir un nivel","ra_Refresh tree":"Actualizar \xE1rbol","ra_Expand all nodes":"Expandir todos los nodos","ra_Deselect all":"Deselecciona todo","ra_Select all":"Seleccionar todo","ra_%s object(s) processed":"%s objeto(s) procesados","ra_Invalid structure":"Estructura inv\xE1lida","ra_%s was imported":"%s fue importado","ra_Failed to open JSON File":"No se pudo abrir el archivo JSON","ra_Only following structures of objects are available:":"Solo est\xE1n disponibles las siguientes estructuras de objetos:","ra_Folder \u2192 State":"Carpeta \u2192 Estado","ra_Folder \u2192 Channel \u2192 State":"Carpeta \u2192 Canal \u2192 Estado","ra_Folder \u2192 Device \u2192 Channel \u2192 State":"Carpeta \u2192 Dispositivo \u2192 Canal \u2192 Estado","ra_Device \u2192 Channel \u2192 State":"Dispositivo \u2192 Canal \u2192 Estado","ra_Channel \u2192 State":"Canal \u2192 Estado",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Los no expertos pueden crear nuevos objetos solo en "0_userdata.0" o "alias.0".','ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Los expertos pueden crear objetos en todas partes excepto desde el segundo nivel (por ejemplo, "vis.0" o "javascript.0").',ra_expertMode:"Modo experto","ra_On weekdays":"De lunes a viernes","ra_Drop the files here...":"Suelta el archivo aqu\xED ...","ra_Drag 'n' drop some files here, or click to select files":"Arrastre y suelte algunos archivos aqu\xED, o haga clic para seleccionar archivos",ra_Clear:"Borrar","ra_Clear icon":"Icono claro",ra_none:"ninguno","ra_Select predefined icon":"Seleccionar icono predefinido","ra_Show lines between rows":"Mostrar l\xEDneas entre filas","ra_The page you are looking for was not found":"No se encontr\xF3 la p\xE1gina que busca","ra_Good luck":"Buena suerte",'ra_Cannot find "%s"':'No se puede encontrar "%s"','ra_Cannot read "%s"':'No se puede leer "%s"',"ra_Back to %s":"Volver a %s","ra_Background image":"Imagen de fondo","ra_View: %s":"Ver: %s","ra_Copy content":"Copiar contenido",ra_Filter:"Filtrar","ra_All objects":"Todos los objetos","ra_Only selected":"Solo seleccionados","ra_Change color theme":"Cambiar tema de color",ra_daysShortText:"d."}});var Nee=_((drt,tWe)=>{tWe.exports={ra_filter_func:"Funkcjonowa\u0107",ra_filter_id:"ID",ra_filter_name:"Imi\u0119",ra_filter_role:"Rola",ra_filter_room:"Sala",ra_tooltip_ack:"Potwierdzon",ra_tooltip_from:"Z",ra_tooltip_lc:"Ostatnia zmiana",ra_tooltip_quality:"Jako\u015B\u0107",ra_tooltip_ts:"Znak czasu",ra_tooltip_user:"U\u017Cytkownik",ra_tooltip_value:"Warto\u015B\u0107","ra_Are you sure?":"Jeste\u015B pewny?",ra_Cancel:"Anuluj",ra_Copied:"Skopiowano","ra_Copied %s":'Skopiowano "%s"',"ra_Define functions":"Zdefiniuj funkcje","ra_Define rooms":"Zdefiniuj pokoje",ra_Error:"B\u0142\u0105d",ra_Message:"Wiadomo\u015B\u0107",ra_Ok:"Dobrze","ra_Please select object ID...":"Wybierz identyfikator obiektu ...",ra_Selected:"Wybrany","ra_Unknown error!":"Nieznany b\u0142\u0105d!",ra_Value:"Warto\u015B\u0107",ra_filter_type:"Rodzaj",ra_invalidConfig:"Nieprawid\u0142owe ustawienia",ra_otherConfig:"Ustawienia z innego adaptera %s",ra_tooltip_copyState:"Skopiuj warto\u015B\u0107 stanu",ra_tooltip_customConfig:"W\u0142asne ustawienia",ra_tooltip_deleteObject:"Usu\u0144 obiekt",ra_tooltip_editObject:"Edytuj obiekt",ra_tooltip_editState:"Edytuj warto\u015B\u0107 stanu",ra_filter_customs:"Ustawienia","ra_Listen on all IPs":"S\u0142uchaj na wszystkich adresach IP",ra_dow_Fr:"Ks",ra_dow_Mo:"Mo",ra_dow_Sa:"Sa",ra_dow_Su:"Su",ra_dow_Th:"Th",ra_Save:"Zapisa\u0107","ra_Save and close":"Zapisz i zamknij",ra_Close:"Blisko","ra_Auto (no custom columns)":"Auto (bez kolumn niestandardowych)","ra_Transparent dialog":"Przejrzyste okno dialogowe",ra_Width:"Szeroko\u015B\u0107",ra_val:"Warto\u015B\u0107",ra_buttons:"guziki","ra_Configure visible columns":"Skonfiguruj widoczne kolumny","ra_Cannot update attribute, because not found in the object":"Nie mo\u017Cna zaktualizowa\u0107 atrybutu, poniewa\u017C nie znaleziono go w obiekcie","ra_Edit object field":"Edytuj pole obiektu","ra_Hide empty folders":"Ukryj puste foldery","ra_Reload files":"Za\u0142aduj ponownie pliki","ra_Create folder":"Utw\xF3rz folder","ra_Upload file":"Przesy\u0142anie pliku","ra_User files":"Pliki u\u017Cytkownika","ra_Confirm deletion of %s":"Potwierd\u017A usuni\u0119cie %s","ra_Delete (no confirm for 5 mins)":"Usu\u0144 (bez potwierdzenia przez 5 minut)",ra_Delete:"Usun\u0105\u0107","ra_Toggle expert mode":"Prze\u0142\u0105cz tryb eksperta","ra_Toggle view mode":"Prze\u0142\u0105cz tryb widoku",ra_Root:"Korze\u0144","ra_Back to %s":"Powr\xF3t do %s","ra_Place your files here or click here to open the browse dialog":"Umie\u015B\u0107 swoje pliki tutaj lub kliknij tutaj, aby otworzy\u0107 okno dialogowe przegl\u0105dania","ra_If no file will be created in the folder, it will disappear after the browser closed":"Je\u015Bli w folderze nie zostanie utworzony \u017Caden plik, zniknie on po zamkni\u0119ciu przegl\u0105darki","ra_Folder name":"Nazwa folderu","ra_Create new folder in %s":"Utw\xF3rz nowy folder w %s","ra_Duplicate name":"Zduplikowana nazwa","ra_Invalid parent folder!":"Nieprawid\u0142owy folder nadrz\u0119dny!","ra_Drop file here":"Upu\u015B\u0107 plik tutaj","ra_Suppress question for next %s minutes":"Ukryj pytanie przez nast\u0119pne %s minut","ra_Clear filter":"Czysty filtr",ra_Update:"Aktualizacja","ra_Load configuration from file":"Za\u0142aduj konfiguracj\u0119 z pliku","ra_Save configuration to file":"Zapisz konfiguracj\u0119 do pliku",sc_cron:"CRON",sc_date:"Data",sc_dates:"Daktyle",sc_dows:"Dzie\u0144 tygodnia",sc_every:"Ka\u017Cdy",sc_everyN_dates:"co N dni",sc_everyN_dows:"co N dnia tygodnia",sc_everyN_hours:"co N godzin",sc_everyN_minutes:"co N minut",sc_everyN_months:"co N miesi\u0119cy",sc_everyN_seconds:"co N sekund",sc_every_dates:"codziennie",sc_every_dows:"ka\u017Cdy dzie\u0144 tygodnia",sc_every_hours:"co godzin\u0119",sc_every_minutes:"ka\u017Cda minuta",sc_every_months:"ka\u017Cdego miesi\u0105ca",sc_every_seconds:"ka\u017Cda sekunda",sc_from:"Od",sc_hours:"godziny",sc_interval:"Interwa\u0142",sc_intervalBetween:"Interwa\u0142 mi\u0119dzy",sc_minutes:"Minuty",sc_months:"miesi\u0119cy",sc_once:"Pewnego razu",sc_period:"Kropka",sc_seconds:"sekundy",sc_simple:"Prosty",sc_specific:"Okre\u015Blony czas",sc_specific_dates:"konkretne daty",sc_specific_dows:"okre\u015Blony dzie\u0144 tygodni",sc_specific_hours:"okre\u015Blone godziny",sc_specific_minutes:"okre\u015Blone minuty",sc_specific_months:"okre\u015Blone miesi\u0105ce",sc_specific_seconds:"okre\u015Blone sekundy",sc_time:"Czas",sc_to:"Do",sc_wizard:"Czarodziej",sch_all:"wszystko",sch_astroDay:"Dzie\u0144 Astro",sch_astroNight:"Noc Astro",sch_astro_dawn:"\u015Awit",sch_astro_dusk:"Zmierzch",sch_astro_goldenHour:"z\u0142ota godzina",sch_astro_goldenHourEnd:"Koniec z\u0142otej godziny",sch_astro_nadir:"Nadir",sch_astro_nauticalDawn:"Morski \u015Bwit",sch_astro_nauticalDusk:"Morski zmierzch",sch_astro_night:"Noc",sch_astro_nightEnd:"Koniec nocy",sch_astro_solarNoon:"Po\u0142udnie s\u0142oneczne",sch_astro_sunrise:"wsch\xF3d s\u0142o\u0144ca",sch_astro_sunriseEnd:"Koniec wschodu s\u0142o\u0144ca",sch_astro_sunset:"Zach\xF3d s\u0142o\u0144ca",sch_astro_sunsetStart:"Pocz\u0105tek zachodu s\u0142o\u0144ca",sch_at:"w",sch_desc_atTime:"na %s",sch_desc_everyDay:"codziennie",sch_desc_everyHour:"co godzin\u0119",sch_desc_everyMinute:"ka\u017Cda minuta",sch_desc_everyMonth:"ka\u017Cdego miesi\u0105ca",sch_desc_everyNDay:"ka\u017Cdego dnia %s",sch_desc_everyNHours:"co %s godzin",sch_desc_everyNMinutes:"co %s minut",sch_desc_everyNMonths:"co %s miesi\u0119cy",sch_desc_everyNWeeks:"co %s tygodni",sch_desc_everyNYears:"co %s lat",sch_desc_everyWeek:"co tydzie\u0144",sch_desc_everyYear:"ka\u017Cdego roku",sch_desc_intervalFromTo:"od %s do %s",sch_desc_never:"nigdy",sch_desc_onDate:"na %s z %s",sch_desc_onDates:"na %s i %s z",sch_desc_onEveryDate:"w ka\u017Cd\u0105 dat\u0119",sch_desc_onMonth:"%s",sch_desc_onMonths:"%s i %s",sch_desc_onWeekday:"na %s",sch_desc_onWeekdays:"na %s i %s",sch_desc_onWeekends:"w weekendy",sch_desc_onWorkdays:"w dni robocze",sch_desc_onceInPast:"nie b\u0119dzie ju\u017C wykonywany, poniewa\u017C start jest w przesz\u0142o\u015Bci",sch_desc_once_on:"na %s",sch_desc_validFrom:"z %s",sch_desc_validFromTo:"Wykonaj od do",sch_desc_validTo:"do %s",sch_every:"ka\u017Cdy",sch_exactTime:"Okre\u015Blony czas",sch_from:"od",sch_fromTo:"Od-do",sch_intervalTime:"Czas przerwy",sch_invert:"odwraca\u0107",sch_no_one:"\u017Baden",sch_on:"na",sch_period:"Kropka",sch_periodDaily:"Codziennie",sch_periodDates:"Daktyle",sch_periodDay:"Dzie\u0144",sch_periodEvery:"Ka\u017Cdy",sch_periodEveryDay:"Codziennie",sch_periodEveryMonth:"Ka\u017Cdego miesi\u0105ca",sch_periodEveryWeek:"Co tydzie\u0144",sch_periodEveryYear:"Ka\u017Cdego roku",sch_periodHours:"godziny",sch_periodMinutes:"Minuty",sch_periodMonth:"miesi\u0105c",sch_periodMonthly:"Miesi\u0119czny",sch_periodOnce:"Pewnego razu",sch_periodSpecificMonths:"Okre\u015Blone miesi\u0105ce",sch_periodWeek:"Tydzie\u0144",sch_periodWeekdays:"Dni powszednie",sch_periodWeekend:"Weekend",sch_periodWeekly:"Co tydzie\u0144",sch_periodWorkdays:"Dni robocze",sch_periodYear:"Rok",sch_periodYearly:"Rocznie",sch_specificTime:"Okre\u015Blony czas",sch_time:"Czas",sch_to:"do",sch_valid:"Wa\u017Cny",sch_validFrom:"od",sch_validTo:"do",sch_wholeDay:"Ca\u0142y dzie\u0144",sch_yearEveryMonth:"ka\u017Cdego miesi\u0105ca","ra_Define schedule...":"Zdefiniuj harmonogram ...",ra_Repeat:"Powtarza\u0107","ra_use seconds":"u\u017Cyj sekund",ra_close:"blisko",ra_dow_Tu:"Tu","ra_Toggle the states view":"Prze\u0142\u0105cz widok stan\xF3w","ra_Add new child object to selected parent":"Dodaj nowy obiekt potomny do wybranego rodzica","ra_Add objects tree from JSON file":"Dodaj drzewo obiekt\xF3w z pliku JSON","ra_Save objects tree as JSON file":"Zapisz drzewo obiekt\xF3w jako plik JSON",ra_Objects:"Obiekty",ra_States:"Stany",ra_object_changed_by_user:"Obiekt ostatnio zmieniony o godz",ra_object_changed_by:"Obiekt zmieniony przez",ra_state_changed_from:"Obiekt zmieniony z",ra_state_changed_by:"Stan zmieniony przez",ra_aclOwner_read_object:"W\u0142a\u015Bciciel mo\u017Ce czyta\u0107 obiekt",ra_aclOwner_read_state:"W\u0142a\u015Bciciel mo\u017Ce odczyta\u0107 stan",ra_aclOwner_write_object:"W\u0142a\u015Bciciel mo\u017Ce napisa\u0107 obiekt",ra_aclOwner_write_state:"W\u0142a\u015Bciciel mo\u017Ce pisa\u0107 stan",ra_aclGroup_read_object:"Grupa mo\u017Ce odczyta\u0107 obiekt",ra_aclGroup_read_state:"Grupa mo\u017Ce odczyta\u0107 stan",ra_aclGroup_write_object:"Grupa mo\u017Ce pisa\u0107 obiekt",ra_aclGroup_write_state:"Grupa mo\u017Ce pisa\u0107 stan",ra_aclEveryone_read_object:"Ka\u017Cdy mo\u017Ce czyta\u0107 obiekt",ra_aclEveryone_read_state:"Ka\u017Cdy mo\u017Ce czyta\u0107 stan",ra_aclEveryone_write_object:"Ka\u017Cdy mo\u017Ce pisa\u0107 przedmiot",ra_aclEveryone_write_state:"Ka\u017Cdy mo\u017Ce pisa\u0107 stan","ra_Folders always first":"Foldery zawsze na pierwszym miejscu",ra_changedFrom:"Zmieniony z",ra_qualityCode:"Kod jako\u015Bci",ra_timestamp:"Znak czasu",ra_lastChange:"Ostatnia zmiana","ra_Owner group":"Grupa w\u0142a\u015Bcicieli","ra_Owner user":"W\u0142a\u015Bciciel u\u017Cytkownika",ra_Create:"Stw\xF3rz","ra_Changed from":"Zmieniony z","ra_Quality code":"Jako\u015Bci",ra_Timestamp:"Znak czasu","ra_Last change":"Ostatnia zmiana","ra_Collapse all nodes":"Zwi\u0144 wszystkie w\u0119z\u0142y","ra_Edit custom config":"Edytuj konfiguracj\u0119 niestandardow\u0105","ra_Collapse one step node":"Zwi\u0144 o jeden poziom","ra_Expand one step node":"Rozwi\u0144 o jeden poziom","ra_Refresh tree":"Od\u015Bwie\u017C drzewo","ra_Expand all nodes":"Rozwi\u0144 wszystkie w\u0119z\u0142y","ra_Deselect all":"Odznacz wszystko","ra_Select all":"Zaznacz wszystko","ra_%s object(s) processed":"Przetworzono %s obiekt\xF3w","ra_Invalid structure":"Nieprawid\u0142owa struktura","ra_%s was imported":"%s zosta\u0142 zaimportowany","ra_Failed to open JSON File":"Nie uda\u0142o si\u0119 otworzy\u0107 pliku JSON","ra_Only following structures of objects are available:":"Dost\u0119pne s\u0105 tylko nast\u0119puj\u0105ce struktury obiekt\xF3w:","ra_Folder \u2192 State":"Folder \u2192 Stan","ra_Folder \u2192 Channel \u2192 State":"Folder \u2192 Kana\u0142 \u2192 Stan","ra_Folder \u2192 Device \u2192 Channel \u2192 State":"Folder \u2192 Urz\u0105dzenie \u2192 Kana\u0142 \u2192 Stan","ra_Device \u2192 Channel \u2192 State":"Urz\u0105dzenie \u2192 Kana\u0142 \u2192 Stan","ra_Channel \u2192 State":"Kana\u0142 \u2192 Stan",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':"Osoby nie b\u0119d\u0105ce ekspertami mog\u0105 tworzy\u0107 nowe obiekty tylko w \u201E0_userdata.0\u201D lub \u201Ealias.0\u201D.",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':"Eksperci mog\u0105 tworzy\u0107 obiekty wsz\u0119dzie poza drugim poziomem (np. \u201EVis.0\u201D lub \u201Ejavascript.0\u201D).",ra_expertMode:"Tryb ekspercki","ra_On weekdays":"W dni powszednie","ra_Drop the files here...":"Upu\u015B\u0107 plik tutaj...","ra_Drag 'n' drop some files here, or click to select files":"Przeci\u0105gnij i upu\u015B\u0107 kilka plik\xF3w tutaj lub kliknij, aby wybra\u0107 pliki",ra_Clear:"Kasowa\u0107","ra_Clear icon":"Wyczy\u015B\u0107 ikon\u0119",ra_none:"\u017Baden","ra_Select predefined icon":"Wybierz predefiniowan\u0105 ikon\u0119","ra_Show lines between rows":"Poka\u017C linie mi\u0119dzy rz\u0119dami","ra_The page you are looking for was not found":"Strona, kt\xF3rej szukasz nie zosta\u0142a znaleziona","ra_Good luck":"Powodzenia",'ra_Cannot find "%s"':"Nie mo\u017Cna znale\u017A\u0107 \u201E%s\u201D",'ra_Cannot read "%s"':"Nie mo\u017Cna odczyta\u0107 \u201E%s\u201D","ra_Back to %s":"Powr\xF3t do %s","ra_Background image":"Zdj\u0119cie w tle","ra_View: %s":"Widok: %s","ra_Copy content":"Kopiuj zawarto\u015B\u0107",ra_Filter:"Filtr","ra_All objects":"Wszystkie obiekty","ra_Only selected":"Tylko wybrane","ra_Change color theme":"Zmie\u0144 motyw kolorystyczny",ra_daysShortText:"d."}});var Aee=_((frt,rWe)=>{rWe.exports={ra_filter_func:"\u529F\u80FD",ra_filter_id:"ID",ra_filter_name:"\u540D\u79F0",ra_filter_role:"\u89D2\u8272",ra_filter_room:"\u623F\u95F4",ra_tooltip_ack:"\u81F4\u8C22\u56FD\u65D7",ra_tooltip_from:"\u4ECE",ra_tooltip_lc:"\u6700\u540E\u6539\u53D8\u4E86",ra_tooltip_quality:"\u8D28\u91CF",ra_tooltip_ts:"\u65F6\u95F4\u6233",ra_tooltip_user:"\u7528\u6237",ra_tooltip_value:"\u503C","ra_Are you sure?":"\u4F60\u786E\u5B9A\u5417\uFF1F",ra_Cancel:"\u53D6\u6D88",ra_Copied:"\u590D\u5236\u7684","ra_Copied %s":'\u590D\u5236\u7684"%s"',"ra_Define functions":"\u5B9A\u4E49\u529F\u80FD","ra_Define rooms":"\u5B9A\u4E49\u623F\u95F4",ra_Error:"\u9519\u8BEF",ra_Message:"\u4FE1\u606F",ra_Ok:"\u597D","ra_Please select object ID...":"\u8BF7\u9009\u62E9\u5BF9\u8C61ID ...",ra_Selected:"\u5DF2\u9009","ra_Unknown error!":"\u672A\u77E5\u9519\u8BEF\uFF01",ra_Value:"\u503C",ra_filter_type:"\u7C7B\u578B",ra_invalidConfig:"\u65E0\u6548\u7684\u8BBE\u5B9A",ra_otherConfig:"\u6765\u81EA\u5176\u4ED6\u9002\u914D\u5668%s\u7684\u8BBE\u7F6E",ra_tooltip_copyState:"\u590D\u5236\u72B6\u6001\u503C",ra_tooltip_customConfig:"\u81EA\u5B9A\u4E49\u8BBE\u7F6E",ra_tooltip_deleteObject:"\u5220\u9664\u7269\u4EF6",ra_tooltip_editObject:"\u7F16\u8F91\u7269\u4EF6",ra_tooltip_editState:"\u7F16\u8F91\u72B6\u6001\u503C",ra_filter_customs:"\u8BBE\u5B9A\u503C","ra_Listen on all IPs":"\u76D1\u542C\u6240\u6709IP",ra_dow_Fr:"r",ra_dow_Mo:"\u83AB",ra_dow_Sa:"\u8428",ra_dow_Su:"\u82CF",ra_Save:"\u4FDD\u5B58","ra_Save and close":"\u4FDD\u5B58\u5E76\u5173\u95ED",ra_Close:"\u5173","ra_Auto (no custom columns)":"\u81EA\u52A8\uFF08\u65E0\u81EA\u5B9A\u4E49\u5217\uFF09","ra_Transparent dialog":"\u900F\u660E\u5BF9\u8BDD\u6846",ra_Width:"\u5BBD\u5EA6",ra_val:"\u503C",ra_buttons:"\u7EBD\u6263","ra_Configure visible columns":"\u914D\u7F6E\u53EF\u89C1\u5217","ra_Cannot update attribute, because not found in the object":"\u65E0\u6CD5\u66F4\u65B0\u5C5E\u6027\uFF0C\u56E0\u4E3A\u5728\u5BF9\u8C61\u4E2D\u627E\u4E0D\u5230","ra_Edit object field":"\u7F16\u8F91\u5BF9\u8C61\u5B57\u6BB5","ra_Hide empty folders":"\u9690\u85CF\u7A7A\u6587\u4EF6\u5939","ra_Reload files":"\u91CD\u65B0\u8F7D\u5165\u6587\u4EF6","ra_Create folder":"\u521B\u5EFA\u6587\u4EF6\u5939","ra_Upload file":"\u4E0A\u4F20\u6587\u4EF6","ra_User files":"\u7528\u6237\u6863\u6848","ra_Confirm deletion of %s":"\u786E\u8BA4\u5220\u9664%s","ra_Delete (no confirm for 5 mins)":"\u5220\u9664\uFF085\u5206\u949F\u5185\u672A\u786E\u8BA4\uFF09",ra_Delete:"\u5220\u9664","ra_Toggle expert mode":"\u5207\u6362\u4E13\u5BB6\u6A21\u5F0F","ra_Toggle view mode":"\u5207\u6362\u68C0\u89C6\u6A21\u5F0F",ra_Root:"\u6839","ra_Back to %s":"\u8FD4\u56DE%s","ra_Place your files here or click here to open the browse dialog":"\u5C06\u6587\u4EF6\u653E\u5728\u6B64\u5904\u6216\u5355\u51FB\u6B64\u5904\u6253\u5F00\u6D4F\u89C8\u5BF9\u8BDD\u6846","ra_If no file will be created in the folder, it will disappear after the browser closed":"\u5982\u679C\u5728\u8BE5\u6587\u4EF6\u5939\u4E2D\u672A\u521B\u5EFA\u4EFB\u4F55\u6587\u4EF6\uFF0C\u5219\u8BE5\u6587\u4EF6\u5C06\u5728\u6D4F\u89C8\u5668\u5173\u95ED\u540E\u6D88\u5931","ra_Folder name":"\u6587\u4EF6\u5939\u540D\u79F0","ra_Create new folder in %s":"\u5728%s\u4E2D\u521B\u5EFA\u65B0\u6587\u4EF6\u5939","ra_Duplicate name":"\u540D\u79F0\u91CD\u590D","ra_Invalid parent folder!":"\u7236\u6587\u4EF6\u5939\u65E0\u6548\uFF01","ra_Drop file here":"\u5C06\u6863\u6848\u653E\u5728\u8FD9\u91CC","ra_Suppress question for next %s minutes":"\u5728\u63A5\u4E0B\u6765\u7684%s\u5206\u949F\u5185\u53D6\u6D88\u63D0\u95EE","ra_Clear filter":"\u6E05\u9664\u7B5B\u9009",ra_Update:"\u66F4\u65B0\u8D44\u6599","ra_Load configuration from file":"\u4ECE\u6587\u4EF6\u52A0\u8F7D\u914D\u7F6E","ra_Save configuration to file":"\u5C06\u914D\u7F6E\u4FDD\u5B58\u5230\u6587\u4EF6",sc_cron:"\u5468\u671F\u4EFB\u52A1",sc_date:"\u65E5\u671F",sc_dates:"\u65E5",sc_dows:"\u661F\u671F",sc_every:"\u6BCF",sc_everyN_dates:"\u6BCFN\u5929",sc_everyN_dows:"\u6BCF\u5468N\u5929",sc_everyN_hours:"\u6BCFN\u5C0F\u65F6\u4E00\u6B21",sc_everyN_minutes:"\u6BCFN\u5206\u949F",sc_everyN_months:"\u6BCFN\u4E2A\u6708",sc_everyN_seconds:"\u6BCFN\u79D2",sc_every_dates:"\u6BCF\u5929",sc_every_dows:"\u4E00\u5468\u7684\u6BCF\u4E00\u5929",sc_every_hours:"\u6BCF\u5C0F\u65F6",sc_every_minutes:"\u6BCF\u5206\u949F",sc_every_months:"\u6BCF\u6708",sc_every_seconds:"\u6BCF\u79D2",sc_from:"\u4ECE",sc_hours:"\u5C0F\u65F6",sc_interval:"\u95F4\u9694",sc_intervalBetween:"\u95F4\u9694\u65F6\u95F4",sc_minutes:"\u5206\u949F",sc_months:"\u6708",sc_once:"\u4E00\u6B21",sc_period:"\u5468\u671F",sc_seconds:"\u79D2",sc_simple:"\u7B80\u5355\u6A21\u5F0F",sc_specific:"\u7279\u5B9A\u7684\u65F6\u95F4",sc_specific_dates:"\u7279\u5B9A\u7684\u65E5\u5B50",sc_specific_dows:"\u7279\u5B9A\u7684\u4E00\u5468",sc_specific_hours:"\u7279\u5B9A\u7684\u5C0F\u65F6",sc_specific_minutes:"\u7279\u5B9A\u7684\u5206\u949F",sc_specific_months:"\u7279\u5B9A\u7684\u6708\u4EFD",sc_specific_seconds:"\u7279\u5B9A\u7684\u63CF\u8FF0",sc_time:"\u65F6\u95F4",sc_to:"\u81F3",sc_wizard:"\u5411\u5BFC\u6A21\u5F0F",sch_all:"\u5168\u9009",sch_astroDay:"\u5929\u6587\u767D\u5929",sch_astroNight:"\u5929\u6587\u591C\u665A",sch_astro_dawn:"\u9ECE\u660E",sch_astro_dusk:"\u9EC4\u660F",sch_astro_goldenHour:"\u9EC4\u91D1\u65F6\u6BB5",sch_astro_goldenHourEnd:"\u9EC4\u91D1\u65F6\u6BB5\u7ED3\u675F",sch_astro_nadir:"\u5929\u5E95",sch_astro_nauticalDawn:"\u822A\u6D77\u9ECE\u660E",sch_astro_nauticalDusk:"\u822A\u6D77\u9EC4\u660F",sch_astro_night:"\u591C\u665A",sch_astro_nightEnd:"\u591C\u665A\u7ED3\u675F",sch_astro_solarNoon:"\u6B63\u5348",sch_astro_sunrise:"\u65E5\u51FA",sch_astro_sunriseEnd:"\u65E5\u51FA\u7ED3\u675F",sch_astro_sunset:"\u65E5\u843D",sch_astro_sunsetStart:"\u65E5\u843D\u5F00\u59CB",sch_at:"\u5728",sch_desc_atTime:"\u7684%s",sch_desc_everyDay:"\u6BCF\u5929",sch_desc_everyHour:"\u6BCF\u5C0F\u65F6",sch_desc_everyMinute:"\u6BCF\u5206\u949F",sch_desc_everyMonth:"\u6BCF\u6708",sch_desc_everyNDay:"\u6BCF%s\u5929",sch_desc_everyNHours:"\u6BCF%s\u5C0F\u65F6",sch_desc_everyNMinutes:"\u6BCF%s\u5206\u949F",sch_desc_everyNMonths:"\u6BCF%s\u6708",sch_desc_everyNWeeks:"\u6BCF%s\u5468",sch_desc_everyNYears:"\u6BCF%s\u5E74",sch_desc_everyWeek:"\u6BCF\u5468",sch_desc_everyYear:"\u6BCF\u5E74",sch_desc_intervalFromTo:"\u4ECE%s\u5230%s",sch_desc_never:"\u51B3\u4E0D",sch_desc_onDate:"\u5728%s\u7684%s\u4E0A",sch_desc_onDates:"\u5728%s\u548C%s\u4E0A",sch_desc_onEveryDate:"\u5728\u6BCF\u5929",sch_desc_onMonth:"%s",sch_desc_onMonths:"%s\u548C%s",sch_desc_onWeekday:"\u5728%s\u4E0A",sch_desc_onWeekdays:"\u5728%s\u548C%s\u4E0A",sch_desc_onWeekends:"\u5728\u5468\u672B",sch_desc_onWorkdays:"\u5728\u5DE5\u4F5C\u65E5",sch_desc_onceInPast:"\u5C06\u4E0D\u518D\u6267\u884C\uFF0C\u56E0\u4E3A\u8D77\u59CB\u65F6\u95F4\u5DF2\u7ECF\u662F\u8FC7\u53BB\u7684\u65F6\u95F4\u4E86\u3002",sch_desc_once_on:"\u5728%s\u4E0A",sch_desc_validFrom:"\u6765\u81EA%s",sch_desc_validFromTo:"\u4ECE\u6267\u884C\u5230",sch_desc_validTo:"\u5230%s",sch_every:"\u6BCF",sch_exactTime:"\u7279\u5B9A\u7684\u65F6\u95F4",sch_from:"\u4ECE",sch_fromTo:"\u4ECE\u5230",sch_intervalTime:"\u95F4\u9694\u65F6\u95F4",sch_invert:"\u5012\u7F6E",sch_no_one:"\u53D6\u6D88\u5168\u9009",sch_on:"\u7684",sch_period:"\u5468\u671F",sch_periodDaily:"\u6BCF\u5929",sch_periodDates:"\u65E5\u671F",sch_periodDay:"\u5929",sch_periodEvery:"\u6BCF",sch_periodEveryDay:"\u6BCF\u5929",sch_periodEveryMonth:"\u6BCF\u6708",sch_periodEveryWeek:"\u6BCF\u5468",sch_periodEveryYear:"\u6BCF\u5E74",sch_periodHours:"\u5C0F\u65F6",sch_periodMinutes:"\u5206\u949F",sch_periodMonth:"\u6708",sch_periodMonthly:"\u6BCF\u6708\u4E00\u6B21",sch_periodOnce:"\u4E00\u6B21",sch_periodSpecificMonths:"\u7279\u5B9A\u7684\u6708\u4EFD",sch_periodWeek:"\u5468",sch_periodWeekdays:"\u5DE5\u4F5C\u65E5",sch_periodWeekend:"\u5468\u672B",sch_periodWeekly:"\u6BCF\u5468",sch_periodWorkdays:"\u5DE5\u4F5C\u65E5",sch_periodYear:"\u5E74",sch_periodYearly:"\u6BCF\u5E74",sch_specificTime:"\u7279\u5B9A\u7684\u65F6\u95F4",sch_time:"\u65F6\u95F4",sch_to:"\u81F3",sch_valid:"\u751F\u6548",sch_validFrom:"\u4ECE",sch_validTo:"\u81F3",sch_wholeDay:"\u4E00\u6574\u5929",sch_yearEveryMonth:"\u6BCF\u6708","ra_Define schedule...":"\u5B9A\u4E49\u65F6\u95F4\u8868...",ra_Repeat:"\u91CD\u590D","ra_use seconds":"\u7528\u79D2",ra_close:"\u5173\u95ED",ra_dow_Th:"Th",ra_dow_Tu:"Tu","ra_Toggle the states view":"\u5207\u6362\u72B6\u6001\u89C6\u56FE","ra_Add new child object to selected parent":"\u5C06\u65B0\u7684\u5B50\u5BF9\u8C61\u6DFB\u52A0\u5230\u9009\u5B9A\u7684\u7236\u5BF9\u8C61","ra_Add objects tree from JSON file":"\u4ECEJSON\u6587\u4EF6\u6DFB\u52A0\u5BF9\u8C61\u6811","ra_Save objects tree as JSON file":"\u5C06\u5BF9\u8C61\u6811\u53E6\u5B58\u4E3AJSON\u6587\u4EF6",ra_Objects:"\u5BF9\u8C61",ra_States:"\u72B6\u6001",ra_object_changed_by_user:"\u5BF9\u8C61\u4E0A\u6B21\u66F4\u6539\u65F6\u95F4\u4E3A",ra_object_changed_by:"\u7269\u4EF6\u53D8\u66F4\u8005",ra_state_changed_from:"\u5BF9\u8C61\u5DF2\u4ECE\u66F4\u6539",ra_state_changed_by:"\u72B6\u6001\u7531",ra_aclOwner_read_object:"\u6240\u6709\u8005\u53EF\u4EE5\u8BFB\u53D6\u5BF9\u8C61",ra_aclOwner_read_state:"\u6240\u6709\u8005\u53EF\u4EE5\u8BFB\u53D6\u72B6\u6001",ra_aclOwner_write_object:"\u6240\u6709\u8005\u53EF\u4EE5\u5199\u5BF9\u8C61",ra_aclOwner_write_state:"\u6240\u6709\u8005\u53EF\u4EE5\u5199\u72B6\u6001",ra_aclGroup_read_object:"\u7EC4\u53EF\u4EE5\u8BFB\u53D6\u5BF9\u8C61",ra_aclGroup_read_state:"\u7FA4\u7EC4\u53EF\u4EE5\u8BFB\u53D6\u72B6\u6001",ra_aclGroup_write_object:"\u7EC4\u53EF\u4EE5\u5199\u5BF9\u8C61",ra_aclGroup_write_state:"\u7EC4\u53EF\u4EE5\u5199\u72B6\u6001",ra_aclEveryone_read_object:"\u6BCF\u4E2A\u4EBA\u90FD\u53EF\u4EE5\u9605\u8BFB\u5BF9\u8C61",ra_aclEveryone_read_state:"\u6BCF\u4E2A\u4EBA\u90FD\u53EF\u4EE5\u9605\u8BFB\u72B6\u6001",ra_aclEveryone_write_object:"\u6BCF\u4E2A\u4EBA\u90FD\u53EF\u4EE5\u5199\u5BF9\u8C61",ra_aclEveryone_write_state:"\u6BCF\u4E2A\u4EBA\u90FD\u53EF\u4EE5\u5199\u72B6\u6001","ra_Folders always first":"\u8D44\u6599\u5939\u6C38\u8FDC\u4F18\u5148",ra_changedFrom:"\u66F4\u6539\u4E3A",ra_qualityCode:"\u8D28\u91CF\u4EE3\u7801",ra_timestamp:"\u65F6\u95F4\u6233\u8BB0",ra_lastChange:"\u6700\u540E\u4E00\u6B21\u53D8\u66F4","ra_Owner group":"\u6240\u6709\u8005\u7EC4","ra_Owner user":"\u6240\u6709\u8005\u7528\u6237",ra_Create:"\u521B\u5EFA","ra_Changed from":"\u66F4\u6539\u4E3A","ra_Quality code":"\u8D28\u91CF\u4EE3\u7801",ra_Timestamp:"\u65F6\u95F4\u6233\u8BB0","ra_Last change":"\u6700\u540E\u4E00\u6B21\u53D8\u66F4","ra_Collapse all nodes":"\u6536\u5408\u6240\u6709\u8282\u70B9","ra_Edit custom config":"\u7F16\u8F91\u81EA\u5B9A\u4E49\u914D\u7F6E","ra_Collapse one step node":"\u6298\u53E0\u4E00\u7EA7","ra_Expand one step node":"\u6269\u5927\u4E00\u7EA7","ra_Refresh tree":"\u5237\u65B0\u6811","ra_Expand all nodes":"\u5C55\u5F00\u6240\u6709\u8282\u70B9","ra_Deselect all":"\u5168\u90E8\u53D6\u6D88\u9009\u62E9","ra_Select all":"\u5168\u9009","ra_%s object(s) processed":"\u5DF2\u5904\u7406%s\u4E2A\u5BF9\u8C61","ra_Invalid structure":"\u7ED3\u6784\u65E0\u6548","ra_%s was imported":"\u5BF9\u8C61\u5DF2\u5BFC\u5165","ra_Failed to open JSON File":"\u65E0\u6CD5\u6253\u5F00JSON\u6587\u4EF6","ra_Only following structures of objects are available:":"\u4EC5\u4EE5\u4E0B\u5BF9\u8C61\u7ED3\u6784\u53EF\u7528\uFF1A","ra_Folder \u2192 State":"\u6587\u4EF6\u5939\u2192\u72B6\u6001","ra_Folder \u2192 Channel \u2192 State":"\u6587\u4EF6\u5939\u2192\u9891\u9053\u2192\u72B6\u6001","ra_Folder \u2192 Device \u2192 Channel \u2192 State":"\u6587\u4EF6\u5939\u2192\u8BBE\u5907\u2192\u9891\u9053\u2192\u72B6\u6001","ra_Device \u2192 Channel \u2192 State":"\u8BBE\u5907\u2192\u9891\u9053\u2192\u72B6\u6001","ra_Channel \u2192 State":"\u9891\u9053\u2192\u72B6\u6001",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':"\u975E\u4E13\u5BB6\u53EA\u80FD\u5728\u201C 0_userdata.0\u201D\u6216\u201C alias.0\u201D\u4E2D\u521B\u5EFA\u65B0\u5BF9\u8C61\u3002",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':"\u4E13\u5BB6\u53EF\u4EE5\u5728\u4EFB\u4F55\u5730\u65B9\u521B\u5EFA\u5BF9\u8C61\uFF0C\u4F46\u8981\u4ECE\u7B2C\u4E8C\u5C42\u5F00\u59CB\uFF08\u4F8B\u5982\u201C vis.0\u201D\u6216\u201C javascript.0\u201D\uFF09\u3002",ra_expertMode:"\u4E13\u5BB6\u6A21\u5F0F","ra_On weekdays":"\u5728\u5DE5\u4F5C\u65E5","ra_Drop the files here...":"\u628A\u6587\u4EF6\u653E\u5728\u8FD9\u91CC...","ra_Drag 'n' drop some files here, or click to select files":"\u5C06\u4E00\u4E9B\u6587\u4EF6\u62D6\u653E\u5230\u6B64\u5904\uFF0C\u6216\u5355\u51FB\u4EE5\u9009\u62E9\u6587\u4EF6",ra_Clear:"\u5220\u9664","ra_Clear icon":"\u6E05\u9664\u56FE\u6807",ra_none:"\u6CA1\u6709\u4EFB\u4F55","ra_Select predefined icon":"\u9009\u62E9\u9884\u5B9A\u4E49\u56FE\u6807","ra_Show lines between rows":"\u663E\u793A\u884C\u4E4B\u95F4\u7684\u7EBF","ra_The page you are looking for was not found":"\u672A\u627E\u5230\u60A8\u8981\u67E5\u627E\u7684\u9875\u9762","ra_Good luck":"\u795D\u4F60\u597D\u8FD0",'ra_Cannot find "%s"':"\u627E\u4E0D\u5230\u201C%s\u201D",'ra_Cannot read "%s"':"\u65E0\u6CD5\u9605\u8BFB\u201C%s\u201D","ra_Back to %s":"\u8FD4\u56DE\u201C%s\u201D","ra_Background image":"\u80CC\u666F\u56FE\u50CF","ra_View: %s":"\u67E5\u770B\uFF1A%s","ra_Copy content":"\u590D\u5236\u5185\u5BB9",ra_Filter:"\u7B5B\u9009","ra_All objects":"\u6240\u6709\u5BF9\u8C61","ra_Only selected":"\u53EA\u9009\u62E9","ra_Change color theme":"\u66F4\u6539\u989C\u8272\u4E3B\u9898",ra_daysShortText:"\u5929"}});var Uee=_(iC=>{"use strict";var gr=$(),nWe=Go();Object.defineProperty(iC,"__esModule",{value:!0});iC.default=void 0;var rC=gr(Go()),oWe=gr(ho()),aWe=gr(Yn()),jq=gr(lv()),Mee=gr(YH()),iWe=gr(Au()),sWe=gr(Mu()),aC=gr(cs()),oC=gr(fo()),ml=gr(z()),Lq=Uq(QH()),Rm=gr(je()),Fee=Uq(qX()),uWe=Uq(B2()),lWe=gr(NQ()),cWe=gr(ZQ()),dWe=gr(h_()),fWe=gr(Jx()),pWe=gr(ree()),mWe=gr(jR()),hWe=gr(see()),Bq=gr(lee()),v_=gr(zR()),gWe=gr(Tee()),nC=gr(_o());wee();function Lee(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return(Lee=function(o){return o?r:e})(t)}function Uq(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||nWe(t)!=="object"&&typeof t!="function")return{default:t};var r=Lee(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var i=o?Object.getOwnPropertyDescriptor(t,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=t[a]}return n.default=t,r&&r.set(t,n),n}function qee(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function jee(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:"";return(0,mWe.default)(v_.default.getThemeName(o))}},{key:"getThemeName",value:function(o){return o.name}},{key:"getThemeType",value:function(o){return o.palette.type}},{key:"toggleTheme",value:function(){var o=this,a=this.state.themeName,i=a==="dark"?"blue":a==="blue"?"colored":a==="colored"?"light":"dark";v_.default.setThemeName(i);var s=this.createTheme(i);this.setState({theme:s,themeName:this.getThemeName(s),themeType:this.getThemeType(s)},function(){o.props.onThemeChange&&o.props.onThemeChange(i),o.onThemeChanged&&o.onThemeChanged(i)})}},{key:"getSystemConfig",value:function(){return this.socket.getSystemConfig()}},{key:"getExpertMode",value:function(){return window.sessionStorage.getItem("App.expertMode")==="true"||!!this._systemConfig.expertMode}},{key:"onConnectionReady",value:function(){}},{key:"encrypt",value:function(o){for(var a="",i=0;i=o[u]});return s||"xs"}},{key:"onClose",value:function(){if(typeof window.parent!="undefined"&&window.parent)try{window.parent.$iframeDialog&&typeof window.parent.$iframeDialog.close=="function"?window.parent.$iframeDialog.close():window.parent.postMessage("close","*")}catch(o){window.parent.postMessage("close","*")}}}]),r}(Bq.default);Bee.propTypes={adapterName:Rm.default.string,onThemeChange:Rm.default.func,socket:Rm.default.object,encryptedFields:Rm.default.array,bottomButtons:Rm.default.bool,Connection:Rm.default.object};var _We=Bee;iC.default=_We});var xj=_(NC=>{"use strict";var o$e=$(),a$e=Ne();Object.defineProperty(NC,"__esModule",{value:!0});NC.default=void 0;var i$e=a$e(z()),s$e=o$e(ia()),u$e=(0,s$e.default)(i$e.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");NC.default=u$e});var ere=_(MC=>{"use strict";var g$e=$(),v$e=Ne();Object.defineProperty(MC,"__esModule",{value:!0});MC.default=void 0;var y$e=v$e(z()),_$e=g$e(ia()),b$e=(0,_$e.default)(y$e.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"}),"Help");MC.default=b$e});var kj=_(FC=>{"use strict";var S$e=$(),E$e=Ne();Object.defineProperty(FC,"__esModule",{value:!0});FC.default=void 0;var T$e=E$e(z()),w$e=S$e(ia()),x$e=(0,w$e.default)(T$e.createElement("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTop");FC.default=x$e});var Pj=_(qC=>{"use strict";var C$e=$(),I$e=Ne();Object.defineProperty(qC,"__esModule",{value:!0});qC.default=void 0;var k$e=I$e(z()),P$e=C$e(ia()),O$e=(0,P$e.default)(k$e.createElement("path",{d:"M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z"}),"VerticalAlignBottom");qC.default=O$e});var nre=_(LC=>{"use strict";var Oo=$();Object.defineProperty(LC,"__esModule",{value:!0});LC.default=void 0;var R$e=Oo(ho()),D$e=Oo(Yn()),N$e=Oo(Au()),A$e=Oo(Mu()),tre=Oo(cs()),Hs=Oo(z()),M$e=Oo(Mt()),Oj=Oo(g_()),md=Oo(je()),jC=Oo(_o()),F$e=Oo(ere()),q$e=Oo(kj()),j$e=Oo(Pj());function L$e(t){var e=B$e();return function(){var n=(0,tre.default)(t),o;if(e){var a=(0,tre.default)(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return(0,A$e.default)(this,o)}}function B$e(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var U$e=function(e){return{buttons:{marginRight:5,marginTop:5,float:"right"},logo:{padding:8,width:64}}},rre=function(t){(0,N$e.default)(r,t);var e=L$e(r);function r(){return(0,R$e.default)(this,r),e.apply(this,arguments)}return(0,D$e.default)(r,[{key:"handleFileSelect",value:function(o){var a=this,i=o.target.files[0];if(i){var s=new window.FileReader;s.onload=function(u){var l=u.target.result;try{var c=JSON.parse(l);c.native&&c.common?c.common.name!==a.props.common.name?a.props.onError&&a.props.onError(jC.default.t("ra_otherConfig",c.common.name)):a.props.onLoad&&a.props.onLoad(c.native):a.props.onError&&a.props.onError(jC.default.t("ra_invalidConfig"))}catch(f){a.props.onError&&a.props.onError(f.toString())}},s.readAsText(i)}else alert("Failed to open JSON File")}},{key:"download",value:function(){var o={_id:"system.adapter.".concat(this.props.common.name,".").concat(this.props.instance),common:JSON.parse(JSON.stringify(this.props.common)),native:this.props.native};o.common.news&&delete o.common.news,o.common.titleLang&&delete o.common.titleLang,o.common.desc&&delete o.common.desc,r.generateFile(o._id+".json",o)}},{key:"upload",value:function(){var o=this,a=window.document.createElement("input");a.setAttribute("type","file"),a.setAttribute("id","files"),a.setAttribute("opacity",0),a.addEventListener("change",function(i){return o.handleFileSelect(i,function(){})},!1),a.click()}},{key:"render",value:function(){var o=this;return Hs.default.createElement("div",{className:this.props.className,style:this.props.style},this.props.common.icon?Hs.default.createElement("img",{src:this.props.common.icon,className:this.props.classes.logo,alt:"logo"}):null,this.props.common.readme?Hs.default.createElement(Oj.default,{size:"small",color:"primary","aria-label":"Help",className:this.props.classes.buttons,onClick:function(){var i=window.open(o.props.common.readme,"_blank");i.focus()}},Hs.default.createElement(F$e.default,null)):null,Hs.default.createElement(Oj.default,{size:"small",color:"primary","aria-label":"Load config",className:this.props.classes.buttons,title:jC.default.t("ra_Load configuration from file"),onClick:function(){return o.upload()}},Hs.default.createElement(q$e.default,null)),Hs.default.createElement(Oj.default,{size:"small",color:"primary","aria-label":"Save config",className:this.props.classes.buttons,title:jC.default.t("ra_Save configuration to file"),onClick:function(){return o.download()}},Hs.default.createElement(j$e.default,null)))}}],[{key:"generateFile",value:function(o,a){var i=window.document.createElement("a");i.setAttribute("href","data:application/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(a,null,2))),i.setAttribute("download",o),i.style.display="none",window.document.body.appendChild(i),i.click(),window.document.body.removeChild(i)}}]),r}(Hs.default.Component);rre.propTypes={common:md.default.object.isRequired,className:md.default.string,style:md.default.object,native:md.default.object.isRequired,instance:md.default.number.isRequired,onError:md.default.func.isRequired,onLoad:md.default.func.isRequired};var z$e=(0,M$e.default)(U$e)(rre),W$e=z$e;LC.default=W$e});var ore=_(I_=>{"use strict";Object.defineProperty(I_,"__esModule",{value:!0});I_.hasValue=Rj;I_.isFilled=$$e;I_.isAdornedStart=H$e;function Rj(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function $$e(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return t&&(Rj(t.value)&&t.value!==""||e&&Rj(t.defaultValue)&&t.defaultValue!=="")}function H$e(t){return t.startAdornment}});var Dj=_(k_=>{"use strict";var G$e=Ne();Object.defineProperty(k_,"__esModule",{value:!0});k_.useFormControl=V$e;k_.default=void 0;var are=G$e(z()),ire=are.createContext();function V$e(){return are.useContext(ire)}var K$e=ire;k_.default=K$e});var lre=_(zm=>{"use strict";var Y$e=Ne(),_l=$();Object.defineProperty(zm,"__esModule",{value:!0});zm.default=zm.styles=void 0;var J$e=_l(We()),X$e=_l(ut()),Di=Y$e(z()),zut=_l(je()),Z$e=_l(Le()),sre=ore(),Q$e=_l(Mt()),e4e=_l(na()),Nj=_l(fq()),t4e=_l(Dj()),ure={root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}};zm.styles=ure;var r4e=Di.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.color,s=i===void 0?"primary":i,u=e.component,l=u===void 0?"div":u,c=e.disabled,f=c===void 0?!1:c,d=e.error,p=d===void 0?!1:d,m=e.fullWidth,g=m===void 0?!1:m,v=e.focused,h=e.hiddenLabel,y=h===void 0?!1:h,b=e.margin,E=b===void 0?"none":b,w=e.required,S=w===void 0?!1:w,C=e.size,P=e.variant,k=P===void 0?"standard":P,O=(0,X$e.default)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),F=Di.useState(function(){var le=!1;return n&&Di.Children.forEach(n,function(_e){if((0,Nj.default)(_e,["Input","Select"])){var we=(0,Nj.default)(_e,["Select"])?_e.props.input:_e;we&&(0,sre.isAdornedStart)(we.props)&&(le=!0)}}),le}),U=F[0],J=F[1],K=Di.useState(function(){var le=!1;return n&&Di.Children.forEach(n,function(_e){(0,Nj.default)(_e,["Input","Select"])&&(0,sre.isFilled)(_e.props,!0)&&(le=!0)}),le}),Z=K[0],G=K[1],Q=Di.useState(!1),N=Q[0],j=Q[1],V=v!==void 0?v:N;f&&V&&j(!1);var Y;if(0)var X;var ie=Di.useCallback(function(){G(!0)},[]),de=Di.useCallback(function(){G(!1)},[]),fe={adornedStart:U,setAdornedStart:J,color:s,disabled:f,error:p,filled:Z,focused:V,fullWidth:g,hiddenLabel:y,margin:(C==="small"?"dense":void 0)||E,onBlur:function(){j(!1)},onEmpty:de,onFilled:ie,onFocus:function(){j(!0)},registerEffect:Y,required:S,variant:k};return Di.createElement(t4e.default.Provider,{value:fe},Di.createElement(l,(0,J$e.default)({className:(0,Z$e.default)(o.root,a,E!=="none"&&o["margin".concat((0,e4e.default)(E))],g&&o.fullWidth),ref:r},O),n))}),n4e=(0,Q$e.default)(ure,{name:"MuiFormControl"})(r4e);zm.default=n4e});var Mj=_(Aj=>{"use strict";var o4e=$(),a4e=Ne();Object.defineProperty(Aj,"__esModule",{value:!0});Aj.default=u4e;var i4e=a4e(z()),s4e=o4e(Dj());function u4e(){return i4e.useContext(s4e.default)}});var Wm=_(BC=>{"use strict";var cre=$();Object.defineProperty(BC,"__esModule",{value:!0});Object.defineProperty(BC,"default",{enumerable:!0,get:function(){return l4e.default}});Object.defineProperty(BC,"useFormControl",{enumerable:!0,get:function(){return c4e.default}});var l4e=cre(lre()),c4e=cre(Mj())});var pre=_($m=>{"use strict";var d4e=Ne(),hd=$();Object.defineProperty($m,"__esModule",{value:!0});$m.default=$m.styles=void 0;var f4e=hd(We()),p4e=hd(ut()),UC=d4e(z()),Gut=hd(je()),dre=hd(Le()),Vut=at(),m4e=Wm(),h4e=hd(Mt()),g4e=hd(p_()),v4e=hd(na()),fre=function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}};$m.styles=fre;var y4e=UC.forwardRef(function(e,r){var n=e.checked,o=e.classes,a=e.className,i=e.control,s=e.disabled,u=e.inputRef,l=e.label,c=e.labelPlacement,f=c===void 0?"end":c,d=e.name,p=e.onChange,m=e.value,g=(0,p4e.default)(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"]),v=(0,m4e.useFormControl)(),h=s;typeof h=="undefined"&&typeof i.props.disabled!="undefined"&&(h=i.props.disabled),typeof h=="undefined"&&v&&(h=v.disabled);var y={disabled:h};return["checked","name","onChange","value","inputRef"].forEach(function(b){typeof i.props[b]=="undefined"&&typeof e[b]!="undefined"&&(y[b]=e[b])}),UC.createElement("label",(0,f4e.default)({className:(0,dre.default)(o.root,a,f!=="end"&&o["labelPlacement".concat((0,v4e.default)(f))],h&&o.disabled),ref:r},g),UC.cloneElement(i,y),UC.createElement(g4e.default,{component:"span",className:(0,dre.default)(o.label,h&&o.disabled)},l))}),_4e=(0,h4e.default)(fre,{name:"MuiFormControlLabel"})(y4e);$m.default=_4e});var zC=_(Fj=>{"use strict";var b4e=$();Object.defineProperty(Fj,"__esModule",{value:!0});Object.defineProperty(Fj,"default",{enumerable:!0,get:function(){return S4e.default}});var S4e=b4e(pre())});var bre=_(Gm=>{"use strict";var w4e=Ne(),Gs=$();Object.defineProperty(Gm,"__esModule",{value:!0});Gm.default=Gm.styles=void 0;var yre=Gs(We()),x4e=Gs(rc()),C4e=Gs(ut()),qj=w4e(z()),ult=Gs(je()),I4e=Gs(Le()),llt=at(),k4e=Gs(vq()),P4e=Gs(Mj()),O4e=Gs(Mt()),R4e=Gs(h_()),_re={root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}};Gm.styles=_re;var D4e=qj.forwardRef(function(e,r){var n=e.autoFocus,o=e.checked,a=e.checkedIcon,i=e.classes,s=e.className,u=e.defaultChecked,l=e.disabled,c=e.icon,f=e.id,d=e.inputProps,p=e.inputRef,m=e.name,g=e.onBlur,v=e.onChange,h=e.onFocus,y=e.readOnly,b=e.required,E=e.tabIndex,w=e.type,S=e.value,C=(0,C4e.default)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),P=(0,k4e.default)({controlled:o,default:!!u,name:"SwitchBase",state:"checked"}),k=(0,x4e.default)(P,2),O=k[0],F=k[1],U=(0,P4e.default)(),J=function(j){h&&h(j),U&&U.onFocus&&U.onFocus(j)},K=function(j){g&&g(j),U&&U.onBlur&&U.onBlur(j)},Z=function(j){var V=j.target.checked;F(V),v&&v(j,V)},G=l;U&&typeof G=="undefined"&&(G=U.disabled);var Q=w==="checkbox"||w==="radio";return qj.createElement(R4e.default,(0,yre.default)({component:"span",className:(0,I4e.default)(i.root,s,O&&i.checked,G&&i.disabled),disabled:G,tabIndex:null,role:void 0,onFocus:J,onBlur:K,ref:r},C),qj.createElement("input",(0,yre.default)({autoFocus:n,checked:o,defaultChecked:u,className:i.input,disabled:G,id:Q&&f,name:m,onChange:Z,readOnly:y,ref:p,required:b,tabIndex:E,type:w,value:S},d)),O?a:c)}),N4e=(0,O4e.default)(_re,{name:"PrivateSwitchBase"})(D4e);Gm.default=N4e});var Sre=_($C=>{"use strict";var A4e=$(),M4e=Ne();Object.defineProperty($C,"__esModule",{value:!0});$C.default=void 0;var F4e=M4e(z()),q4e=A4e(Sm()),j4e=(0,q4e.default)(F4e.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank");$C.default=j4e});var Ere=_(HC=>{"use strict";var L4e=$(),B4e=Ne();Object.defineProperty(HC,"__esModule",{value:!0});HC.default=void 0;var U4e=B4e(z()),z4e=L4e(Sm()),W4e=(0,z4e.default)(U4e.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox");HC.default=W4e});var Tre=_(GC=>{"use strict";var $4e=$(),H4e=Ne();Object.defineProperty(GC,"__esModule",{value:!0});GC.default=void 0;var G4e=H4e(z()),V4e=$4e(Sm()),K4e=(0,V4e.default)(G4e.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");GC.default=K4e});var Ire=_(Vm=>{"use strict";var Y4e=Ne(),Ni=$();Object.defineProperty(Vm,"__esModule",{value:!0});Vm.default=Vm.styles=void 0;var wre=Ni(We()),J4e=Ni(ut()),gd=Y4e(z()),mlt=Ni(je()),X4e=Ni(Le()),hlt=at(),Z4e=Ni(bre()),Q4e=Ni(Sre()),eHe=Ni(Ere()),xre=Ql(),tHe=Ni(Tre()),rHe=Ni(na()),nHe=Ni(Mt()),Cre=function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,xre.alpha)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,xre.alpha)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}};Vm.styles=Cre;var oHe=gd.createElement(eHe.default,null),aHe=gd.createElement(Q4e.default,null),iHe=gd.createElement(tHe.default,null),sHe=gd.forwardRef(function(e,r){var n=e.checkedIcon,o=n===void 0?oHe:n,a=e.classes,i=e.color,s=i===void 0?"secondary":i,u=e.icon,l=u===void 0?aHe:u,c=e.indeterminate,f=c===void 0?!1:c,d=e.indeterminateIcon,p=d===void 0?iHe:d,m=e.inputProps,g=e.size,v=g===void 0?"medium":g,h=(0,J4e.default)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),y=f?p:l,b=f?p:o;return gd.createElement(Z4e.default,(0,wre.default)({type:"checkbox",classes:{root:(0,X4e.default)(a.root,a["color".concat((0,rHe.default)(s))],f&&a.indeterminate),checked:a.checked,disabled:a.disabled},color:s,inputProps:(0,wre.default)({"data-indeterminate":f},m),icon:gd.cloneElement(y,{fontSize:y.props.fontSize===void 0&&v==="small"?v:y.props.fontSize}),checkedIcon:gd.cloneElement(b,{fontSize:b.props.fontSize===void 0&&v==="small"?v:b.props.fontSize}),ref:r},h))}),uHe=(0,nHe.default)(Cre,{name:"MuiCheckbox"})(sHe);Vm.default=uHe});var VC=_(jj=>{"use strict";var lHe=$();Object.defineProperty(jj,"__esModule",{value:!0});Object.defineProperty(jj,"default",{enumerable:!0,get:function(){return cHe.default}});var cHe=lHe(Ire())});var boe=_(hI=>{"use strict";var u6e=$(),l6e=Ne();Object.defineProperty(hI,"__esModule",{value:!0});hI.default=void 0;var c6e=l6e(z()),d6e=u6e(ia()),f6e=(0,d6e.default)(c6e.createElement("path",{d:"M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"}),"Cached");hI.default=f6e});var Soe=_(gI=>{"use strict";var p6e=$(),m6e=Ne();Object.defineProperty(gI,"__esModule",{value:!0});gI.default=void 0;var h6e=m6e(z()),g6e=p6e(ia()),v6e=(0,g6e.default)(h6e.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");gI.default=v6e});var Coe=_((rh,nh)=>{"use strict";(function(t){var e=typeof rh=="object"&&rh&&!rh.nodeType&&rh,r=typeof nh=="object"&&nh&&!nh.nodeType&&nh,n=typeof global=="object"&&global;(n.global===n||n.window===n||n.self===n)&&(t=n);var o,a=2147483647,i=36,s=1,u=26,l=38,c=700,f=72,d=128,p="-",m=/^xn--/,g=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=i-s,b=Math.floor,E=String.fromCharCode,w;function S(N){throw new RangeError(h[N])}function C(N,j){for(var V=N.length,Y=[];V--;)Y[V]=j(N[V]);return Y}function P(N,j){var V=N.split("@"),Y="";V.length>1&&(Y=V[0]+"@",N=V[1]),N=N.replace(v,".");var X=N.split("."),ie=C(X,j).join(".");return Y+ie}function k(N){for(var j=[],V=0,Y=N.length,X,ie;V=55296&&X<=56319&&V65535&&(j-=65536,V+=E(j>>>10&1023|55296),j=56320|j&1023),V+=E(j),V}).join("")}function F(N){return N-48<10?N-22:N-65<26?N-65:N-97<26?N-97:i}function U(N,j){return N+22+75*(N<26)-((j!=0)<<5)}function J(N,j,V){var Y=0;for(N=V?b(N/c):N>>1,N+=b(N/j);N>y*u>>1;Y+=i)N=b(N/y);return b(Y+(y+1)*N/(N+l))}function K(N){var j=[],V=N.length,Y,X=0,ie=d,de=f,fe,le,_e,we,ge,Se,me,be,Me;for(fe=N.lastIndexOf(p),fe<0&&(fe=0),le=0;le=128&&S("not-basic"),j.push(N.charCodeAt(le));for(_e=fe>0?fe+1:0;_e=V&&S("invalid-input"),me=F(N.charCodeAt(_e++)),(me>=i||me>b((a-X)/ge))&&S("overflow"),X+=me*ge,be=Se<=de?s:Se>=de+u?u:Se-de,!(meb(a/Me)&&S("overflow"),ge*=Me;Y=j.length+1,de=J(X-we,Y,we==0),b(X/Y)>a-ie&&S("overflow"),ie+=b(X/Y),X%=Y,j.splice(X++,0,ie)}return O(j)}function Z(N){var j,V,Y,X,ie,de,fe,le,_e,we,ge,Se=[],me,be,Me,ve;for(N=k(N),me=N.length,j=d,V=0,ie=f,de=0;de=j&&geb((a-V)/be)&&S("overflow"),V+=(fe-j)*be,j=fe,de=0;dea&&S("overflow"),ge==j){for(le=V,_e=i;we=_e<=ie?s:_e>=ie+u?u:_e-ie,!(le{"use strict";Ioe.exports=Error});var Ooe=_((Uht,Poe)=>{"use strict";Poe.exports=EvalError});var Doe=_((zht,Roe)=>{"use strict";Roe.exports=RangeError});var Aoe=_((Wht,Noe)=>{"use strict";Noe.exports=ReferenceError});var kL=_(($ht,Moe)=>{"use strict";Moe.exports=SyntaxError});var oh=_((Hht,Foe)=>{"use strict";Foe.exports=TypeError});var joe=_((Ght,qoe)=>{"use strict";qoe.exports=URIError});var Boe=_((Vht,Loe)=>{"use strict";Loe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(e,r);if(i.value!==o||i.enumerable!==!0)return!1}return!0}});var Woe=_((Kht,zoe)=>{"use strict";var Uoe=typeof Symbol!="undefined"&&Symbol,x6e=Boe();zoe.exports=function(){return typeof Uoe!="function"||typeof Symbol!="function"||typeof Uoe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:x6e()}});var Hoe=_((Yht,$oe)=>{"use strict";var PL={__proto__:null,foo:{}},C6e=Object;$oe.exports=function(){return{__proto__:PL}.foo===PL.foo&&!(PL instanceof C6e)}});var Koe=_((Jht,Voe)=>{"use strict";var I6e="Function.prototype.bind called on incompatible ",k6e=Object.prototype.toString,P6e=Math.max,O6e="[object Function]",Goe=function(e,r){for(var n=[],o=0;o{"use strict";var N6e=Koe();Yoe.exports=Function.prototype.bind||N6e});var Xoe=_((Zht,Joe)=>{"use strict";var A6e=Function.prototype.call,M6e=Object.prototype.hasOwnProperty,F6e=_I();Joe.exports=F6e.call(A6e,M6e)});var Pd=_((Qht,rae)=>{"use strict";var st,q6e=koe(),j6e=Ooe(),L6e=Doe(),B6e=Aoe(),uh=kL(),sh=oh(),U6e=joe(),tae=Function,OL=function(t){try{return tae('"use strict"; return ('+t+").constructor;")()}catch(e){}},Id=Object.getOwnPropertyDescriptor;if(Id)try{Id({},"")}catch(t){Id=null}var RL=function(){throw new sh},z6e=Id?function(){try{return arguments.callee,RL}catch(t){try{return Id(arguments,"callee").get}catch(e){return RL}}}():RL,ah=Woe()(),W6e=Hoe()(),rn=Object.getPrototypeOf||(W6e?function(t){return t.__proto__}:null),ih={},$6e=typeof Uint8Array=="undefined"||!rn?st:rn(Uint8Array),kd={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?st:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?st:ArrayBuffer,"%ArrayIteratorPrototype%":ah&&rn?rn([][Symbol.iterator]()):st,"%AsyncFromSyncIteratorPrototype%":st,"%AsyncFunction%":ih,"%AsyncGenerator%":ih,"%AsyncGeneratorFunction%":ih,"%AsyncIteratorPrototype%":ih,"%Atomics%":typeof Atomics=="undefined"?st:Atomics,"%BigInt%":typeof BigInt=="undefined"?st:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?st:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?st:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?st:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":q6e,"%eval%":eval,"%EvalError%":j6e,"%Float32Array%":typeof Float32Array=="undefined"?st:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?st:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?st:FinalizationRegistry,"%Function%":tae,"%GeneratorFunction%":ih,"%Int8Array%":typeof Int8Array=="undefined"?st:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?st:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?st:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ah&&rn?rn(rn([][Symbol.iterator]())):st,"%JSON%":typeof JSON=="object"?JSON:st,"%Map%":typeof Map=="undefined"?st:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!ah||!rn?st:rn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?st:Promise,"%Proxy%":typeof Proxy=="undefined"?st:Proxy,"%RangeError%":L6e,"%ReferenceError%":B6e,"%Reflect%":typeof Reflect=="undefined"?st:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?st:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!ah||!rn?st:rn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?st:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ah&&rn?rn(""[Symbol.iterator]()):st,"%Symbol%":ah?Symbol:st,"%SyntaxError%":uh,"%ThrowTypeError%":z6e,"%TypedArray%":$6e,"%TypeError%":sh,"%Uint8Array%":typeof Uint8Array=="undefined"?st:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?st:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?st:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?st:Uint32Array,"%URIError%":U6e,"%WeakMap%":typeof WeakMap=="undefined"?st:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?st:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?st:WeakSet};if(rn)try{null.error}catch(t){Zoe=rn(rn(t)),kd["%Error.prototype%"]=Zoe}var Zoe,H6e=function t(e){var r;if(e==="%AsyncFunction%")r=OL("async function () {}");else if(e==="%GeneratorFunction%")r=OL("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=OL("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&rn&&(r=rn(o.prototype))}return kd[e]=r,r},Qoe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},$_=_I(),bI=Xoe(),G6e=$_.call(Function.call,Array.prototype.concat),V6e=$_.call(Function.apply,Array.prototype.splice),eae=$_.call(Function.call,String.prototype.replace),SI=$_.call(Function.call,String.prototype.slice),K6e=$_.call(Function.call,RegExp.prototype.exec),Y6e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J6e=/\\(\\)?/g,X6e=function(e){var r=SI(e,0,1),n=SI(e,-1);if(r==="%"&&n!=="%")throw new uh("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new uh("invalid intrinsic syntax, expected opening `%`");var o=[];return eae(e,Y6e,function(a,i,s,u){o[o.length]=s?eae(u,J6e,"$1"):i||a}),o},Z6e=function(e,r){var n=e,o;if(bI(Qoe,n)&&(o=Qoe[n],n="%"+o[0]+"%"),bI(kd,n)){var a=kd[n];if(a===ih&&(a=H6e(n)),typeof a=="undefined"&&!r)throw new sh("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new uh("intrinsic "+e+" does not exist!")};rae.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new sh("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new sh('"allowMissing" argument must be a boolean');if(K6e(/^%?[^%]*%?$/,e)===null)throw new uh("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=X6e(e),o=n.length>0?n[0]:"",a=Z6e("%"+o+"%",r),i=a.name,s=a.value,u=!1,l=a.alias;l&&(o=l[0],V6e(n,G6e([0,1],l)));for(var c=1,f=!0;c=n.length){var g=Id(s,d);f=!!g,f&&"get"in g&&!("originalValue"in g.get)?s=g.get:s=s[d]}else f=bI(s,d),s=s[d];f&&!u&&(kd[i]=s)}}return s}});var TI=_((egt,nae)=>{"use strict";var Q6e=Pd(),EI=Q6e("%Object.defineProperty%",!0)||!1;if(EI)try{EI({},"a",{value:1})}catch(t){EI=!1}nae.exports=EI});var DL=_((tgt,oae)=>{"use strict";var e9e=Pd(),wI=e9e("%Object.getOwnPropertyDescriptor%",!0);if(wI)try{wI([],"length")}catch(t){wI=null}oae.exports=wI});var uae=_((rgt,sae)=>{"use strict";var aae=TI(),t9e=kL(),lh=oh(),iae=DL();sae.exports=function(e,r,n){if(!e||typeof e!="object"&&typeof e!="function")throw new lh("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new lh("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new lh("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new lh("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new lh("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new lh("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!iae&&iae(e,r);if(aae)aae(e,r,{configurable:i===null&&u?u.configurable:!i,enumerable:o===null&&u?u.enumerable:!o,value:n,writable:a===null&&u?u.writable:!a});else if(s||!o&&!a&&!i)e[r]=n;else throw new t9e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var dae=_((ngt,cae)=>{"use strict";var NL=TI(),lae=function(){return!!NL};lae.hasArrayLengthDefineBug=function(){if(!NL)return null;try{return NL([],"length",{value:1}).length!==1}catch(e){return!0}};cae.exports=lae});var gae=_((ogt,hae)=>{"use strict";var r9e=Pd(),fae=uae(),n9e=dae()(),pae=DL(),mae=oh(),o9e=r9e("%Math.floor%");hae.exports=function(e,r){if(typeof e!="function")throw new mae("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||o9e(r)!==r)throw new mae("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,a=!0;if("length"in e&&pae){var i=pae(e,"length");i&&!i.configurable&&(o=!1),i&&!i.writable&&(a=!1)}return(o||a||!n)&&(n9e?fae(e,"length",r,!0,!0):fae(e,"length",r)),e}});var Eae=_((agt,xI)=>{"use strict";var AL=_I(),CI=Pd(),a9e=gae(),i9e=oh(),_ae=CI("%Function.prototype.apply%"),bae=CI("%Function.prototype.call%"),Sae=CI("%Reflect.apply%",!0)||AL.call(bae,_ae),vae=TI(),s9e=CI("%Math.max%");xI.exports=function(e){if(typeof e!="function")throw new i9e("a function is required");var r=Sae(AL,bae,arguments);return a9e(r,1+s9e(0,e.length-(arguments.length-1)),!0)};var yae=function(){return Sae(AL,_ae,arguments)};vae?vae(xI.exports,"apply",{value:yae}):xI.exports.apply=yae});var Cae=_((igt,xae)=>{"use strict";var Tae=Pd(),wae=Eae(),u9e=wae(Tae("String.prototype.indexOf"));xae.exports=function(e,r){var n=Tae(e,!!r);return typeof n=="function"&&u9e(e,".prototype.")>-1?wae(n):n}});var Iae=_(()=>{"use strict"});var Vae=_((lgt,Gae)=>{"use strict";var $L=typeof Map=="function"&&Map.prototype,ML=Object.getOwnPropertyDescriptor&&$L?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,kI=$L&&ML&&typeof ML.get=="function"?ML.get:null,kae=$L&&Map.prototype.forEach,HL=typeof Set=="function"&&Set.prototype,FL=Object.getOwnPropertyDescriptor&&HL?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,PI=HL&&FL&&typeof FL.get=="function"?FL.get:null,Pae=HL&&Set.prototype.forEach,l9e=typeof WeakMap=="function"&&WeakMap.prototype,G_=l9e?WeakMap.prototype.has:null,c9e=typeof WeakSet=="function"&&WeakSet.prototype,V_=c9e?WeakSet.prototype.has:null,d9e=typeof WeakRef=="function"&&WeakRef.prototype,Oae=d9e?WeakRef.prototype.deref:null,f9e=Boolean.prototype.valueOf,p9e=Object.prototype.toString,m9e=Function.prototype.toString,h9e=String.prototype.match,GL=String.prototype.slice,Pl=String.prototype.replace,g9e=String.prototype.toUpperCase,Rae=String.prototype.toLowerCase,Bae=RegExp.prototype.test,Dae=Array.prototype.concat,Fi=Array.prototype.join,v9e=Array.prototype.slice,Nae=Math.floor,LL=typeof BigInt=="function"?BigInt.prototype.valueOf:null,qL=Object.getOwnPropertySymbols,BL=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ch=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Rn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ch||!0)?Symbol.toStringTag:null,Uae=Object.prototype.propertyIsEnumerable,Aae=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Mae(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Bae.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Nae(-t):Nae(t);if(n!==t){var o=String(n),a=GL.call(e,o.length+1);return Pl.call(o,r,"$&_")+"."+Pl.call(Pl.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Pl.call(e,r,"$&_")}var UL=Iae(),Fae=UL.custom,qae=Wae(Fae)?Fae:null;Gae.exports=function t(e,r,n,o){var a=r||{};if(kl(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(kl(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=kl(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(kl(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(kl(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(typeof e=="undefined")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Hae(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return s?Mae(e,u):u}if(typeof e=="bigint"){var l=String(e)+"n";return s?Mae(e,l):l}var c=typeof a.depth=="undefined"?5:a.depth;if(typeof n=="undefined"&&(n=0),n>=c&&c>0&&typeof e=="object")return zL(e)?"[Array]":"[Object]";var f=M9e(a,n);if(typeof o=="undefined")o=[];else if($ae(o,e)>=0)return"[Circular]";function d(J,K,Z){if(K&&(o=v9e.call(o),o.push(K)),Z){var G={depth:a.depth};return kl(a,"quoteStyle")&&(G.quoteStyle=a.quoteStyle),t(J,G,n+1,o)}return t(J,a,n+1,o)}if(typeof e=="function"&&!jae(e)){var p=C9e(e),m=II(e,d);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(m.length>0?" { "+Fi.call(m,", ")+" }":"")}if(Wae(e)){var g=ch?Pl.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):BL.call(e);return typeof e=="object"&&!ch?H_(g):g}if(D9e(e)){for(var v="<"+Rae.call(String(e.nodeName)),h=e.attributes||[],y=0;y",v}if(zL(e)){if(e.length===0)return"[]";var b=II(e,d);return f&&!A9e(b)?"["+WL(b,f)+"]":"[ "+Fi.call(b,", ")+" ]"}if(b9e(e)){var E=II(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!Uae.call(e,"cause")?"{ ["+String(e)+"] "+Fi.call(Dae.call("[cause]: "+d(e.cause),E),", ")+" }":E.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Fi.call(E,", ")+" }"}if(typeof e=="object"&&i){if(qae&&typeof e[qae]=="function"&&UL)return UL(e,{depth:c-n});if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(I9e(e)){var w=[];return kae&&kae.call(e,function(J,K){w.push(d(K,e,!0)+" => "+d(J,e))}),Lae("Map",kI.call(e),w,f)}if(O9e(e)){var S=[];return Pae&&Pae.call(e,function(J){S.push(d(J,e))}),Lae("Set",PI.call(e),S,f)}if(k9e(e))return jL("WeakMap");if(R9e(e))return jL("WeakSet");if(P9e(e))return jL("WeakRef");if(E9e(e))return H_(d(Number(e)));if(w9e(e))return H_(d(LL.call(e)));if(T9e(e))return H_(f9e.call(e));if(S9e(e))return H_(d(String(e)));if(typeof window!="undefined"&&e===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&e===globalThis||typeof global!="undefined"&&e===global)return"{ [object globalThis] }";if(!_9e(e)&&!jae(e)){var C=II(e,d),P=Aae?Aae(e)===Object.prototype:e instanceof Object||e.constructor===Object,k=e instanceof Object?"":"null prototype",O=!P&&Rn&&Object(e)===e&&Rn in e?GL.call(Ol(e),8,-1):k?"Object":"",F=P||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",U=F+(O||k?"["+Fi.call(Dae.call([],O||[],k||[]),": ")+"] ":"");return C.length===0?U+"{}":f?U+"{"+WL(C,f)+"}":U+"{ "+Fi.call(C,", ")+" }"}return String(e)};function zae(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function y9e(t){return Pl.call(String(t),/"/g,""")}function zL(t){return Ol(t)==="[object Array]"&&(!Rn||!(typeof t=="object"&&Rn in t))}function _9e(t){return Ol(t)==="[object Date]"&&(!Rn||!(typeof t=="object"&&Rn in t))}function jae(t){return Ol(t)==="[object RegExp]"&&(!Rn||!(typeof t=="object"&&Rn in t))}function b9e(t){return Ol(t)==="[object Error]"&&(!Rn||!(typeof t=="object"&&Rn in t))}function S9e(t){return Ol(t)==="[object String]"&&(!Rn||!(typeof t=="object"&&Rn in t))}function E9e(t){return Ol(t)==="[object Number]"&&(!Rn||!(typeof t=="object"&&Rn in t))}function T9e(t){return Ol(t)==="[object Boolean]"&&(!Rn||!(typeof t=="object"&&Rn in t))}function Wae(t){if(ch)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!BL)return!1;try{return BL.call(t),!0}catch(e){}return!1}function w9e(t){if(!t||typeof t!="object"||!LL)return!1;try{return LL.call(t),!0}catch(e){}return!1}var x9e=Object.prototype.hasOwnProperty||function(t){return t in this};function kl(t,e){return x9e.call(t,e)}function Ol(t){return p9e.call(t)}function C9e(t){if(t.name)return t.name;var e=h9e.call(m9e.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function $ae(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Hae(GL.call(t,0,e.maxStringLength),e)+n}var o=Pl.call(Pl.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,N9e);return zae(o,"single",e)}function N9e(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+g9e.call(e.toString(16))}function H_(t){return"Object("+t+")"}function jL(t){return t+" { ? }"}function Lae(t,e,r,n){var o=n?WL(r,n):Fi.call(r,", ");return t+" ("+e+") {"+o+"}"}function A9e(t){for(var e=0;e{$5e.exports={}});var see=_(Zx=>{"use strict";var fl=$();Object.defineProperty(Zx,"__esModule",{value:!0});Zx.default=void 0;var H5e=fl(ho()),G5e=fl(Yn()),V5e=fl(Au()),K5e=fl(Mu()),oee=fl(cs()),xi=fl(z()),aee=fl(je()),Y5e=fl(Mt());nee();function J5e(t){var e=X5e();return function(){var n=(0,oee.default)(t),o;if(e){var a=(0,oee.default)(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return(0,K5e.default)(this,o)}}function X5e(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var Z5e=function(e){return{}},iee=function(t){(0,V5e.default)(r,t);var e=J5e(r);function r(){return(0,H5e.default)(this,r),e.apply(this,arguments)}return(0,G5e.default)(r,[{key:"render",value:function(){var o=this.props.size||234,a=this.props.themeType||this.props.theme||"light";return xi.default.createElement("div",{className:"logo-back logo-background-"+a},xi.default.createElement("div",{className:"logo-div",style:{width:o,height:o}},xi.default.createElement("div",{className:"logo-top logo-background-"+a,style:{left:"37%"}}),xi.default.createElement("div",{className:"logo-top logo-background-"+a,style:{left:"57%"}}),xi.default.createElement("div",{className:"logo-border logo-background-"+a+" logo-animate-wait",style:{borderWidth:o*.132}}),xi.default.createElement("div",{className:"logo-i logo-animate-color-inside-"+a}),xi.default.createElement("div",{className:"logo-i-top logo-animate-color-inside-"+a,style:{top:"18%"}}),xi.default.createElement("div",{className:"logo-i-top logo-animate-color-inside-"+a,style:{bottom:"18%"}})),xi.default.createElement("div",{className:"logo-animate-grow logo-animate-grow-"+a,style:{width:o+11,height:o+11}}))}}]),r}(xi.default.Component);iee.propTypes={size:aee.default.number,themeType:aee.default.string};var Q5e=(0,Y5e.default)(Z5e)(iee),eze=Q5e;Zx.default=eze});var lee=_(Qx=>{"use strict";var id=$();Object.defineProperty(Qx,"__esModule",{value:!0});Qx.default=void 0;var tze=id(ho()),rze=id(Yn()),nze=id(lv()),oze=id(Au()),aze=id(Mu()),uee=id(cs()),ize=id(z());function sze(t){var e=uze();return function(){var n=(0,uee.default)(t),o;if(e){var a=(0,uee.default)(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return(0,aze.default)(this,o)}}function uze(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var lze=function(t){(0,oze.default)(r,t);var e=sze(r);function r(n){var o;return(0,tze.default)(this,r),o=e.call(this,n),o.onHashChangedBound=o.onHashChanged.bind((0,nze.default)(o)),o}return(0,rze.default)(r,[{key:"componentDidMount",value:function(){window.addEventListener("hashchange",this.onHashChangedBound)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("hashchange",this.onHashChangedBound)}},{key:"onHashChanged",value:function(){}}],[{key:"getLocation",value:function(){var o=window.location.hash;o=o.replace(/^#/,"");var a=o.split("/").map(function(i){try{return i?decodeURIComponent(i):""}catch(s){return console.error("Router: Cannot decode "+i),i||""}});return{tab:a[0]||"",dialog:a[1]||"",id:a[2]||"",arg:a[3]||""}}},{key:"doNavigate",value:function(o,a,i,s){var u="",l=r.getLocation();s!==void 0&&!i&&(i=l.id),i&&!a&&(a=l.dialog),(a&&!o||o===null)&&(o=l.tab),o&&(u="#"+o,a&&(u+="/"+a,i&&(u+="/"+i,s!==void 0&&(u+="/"+s)))),window.location.hash!==u&&(window.location.hash=u)}}]),r}(ize.default.Component),cze=lze;Qx.default=cze});var fee=_(km=>{"use strict";var dze=Ne(),sd=$();Object.defineProperty(km,"__esModule",{value:!0});km.default=km.styles=void 0;var pze=sd(ut()),dee=sd(We()),Nq=dze(z()),Vtt=sd(je()),cee=sd(Le()),Ktt=at(),fze=sd(Mt()),mze=sd(Ox()),hze=sd(na()),pee=function(e){return{root:(0,dee.default)({},e.typography.button,{boxSizing:"border-box",minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:e.shadows[6],"&:active":{boxShadow:e.shadows[12]},color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey.A100,"@media (hover: none)":{backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground},textDecoration:"none"},"&$focusVisible":{boxShadow:e.shadows[6]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},primary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},secondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},extended:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48,"&$sizeSmall":{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},"&$sizeMedium":{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},focusVisible:{},disabled:{},colorInherit:{color:"inherit"},sizeSmall:{width:40,height:40},sizeMedium:{width:48,height:48}}};km.styles=pee;var gze=Nq.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.color,s=i===void 0?"default":i,u=e.component,l=u===void 0?"button":u,c=e.disabled,p=c===void 0?!1:c,d=e.disableFocusRipple,f=d===void 0?!1:d,m=e.focusVisibleClassName,g=e.size,v=g===void 0?"large":g,h=e.variant,y=h===void 0?"circular":h,b=(0,pze.default)(e,["children","classes","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"]);return Nq.createElement(mze.default,(0,dee.default)({className:(0,cee.default)(o.root,a,v!=="large"&&o["size".concat((0,hze.default)(v))],p&&o.disabled,y==="extended"&&o.extended,{primary:o.primary,secondary:o.secondary,inherit:o.colorInherit}[s]),component:l,disabled:p,focusRipple:!f,focusVisibleClassName:(0,cee.default)(o.focusVisible,m),ref:r},b),Nq.createElement("span",{className:o.label},n))}),vze=(0,fze.default)(pee,{name:"MuiFab"})(gze);km.default=vze});var g_=_(Aq=>{"use strict";var yze=$();Object.defineProperty(Aq,"__esModule",{value:!0});Object.defineProperty(Aq,"default",{enumerable:!0,get:function(){return _ze.default}});var _ze=yze(fee())});var gee=_(Pm=>{"use strict";var bze=Ne(),Om=$();Object.defineProperty(Pm,"__esModule",{value:!0});Pm.default=Pm.styles=void 0;var Sze=Om(We()),Eze=Om(ut()),Tze=Om(po()),mee=bze(z()),Xtt=Om(je()),wze=Om(Le()),xze=Om(Mt()),hee=function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:(0,Tze.default)({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}};Pm.styles=hee;var Cze=mee.forwardRef(function(e,r){var n=e.classes,o=e.className,a=e.component,i=a===void 0?"div":a,s=e.disableGutters,u=s===void 0?!1:s,l=e.variant,c=l===void 0?"regular":l,p=(0,Eze.default)(e,["classes","className","component","disableGutters","variant"]);return mee.createElement(i,(0,Sze.default)({className:(0,wze.default)(n.root,n[c],o,!u&&n.gutters),ref:r},p))}),Ize=(0,xze.default)(hee,{name:"MuiToolbar"})(Cze);Pm.default=Ize});var vee=_(Mq=>{"use strict";var kze=$();Object.defineProperty(Mq,"__esModule",{value:!0});Object.defineProperty(Mq,"default",{enumerable:!0,get:function(){return Pze.default}});var Pze=kze(gee())});var yee=_(eC=>{"use strict";var Oze=$(),Rze=Ne();Object.defineProperty(eC,"__esModule",{value:!0});eC.default=void 0;var Dze=Rze(z()),Nze=Oze(ia()),Aze=(0,Nze.default)(Dze.createElement("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"}),"Save");eC.default=Aze});var Tee=_(tC=>{"use strict";var Po=$();Object.defineProperty(tC,"__esModule",{value:!0});tC.default=void 0;var Mze=Po(ho()),Fze=Po(Yn()),qze=Po(Au()),jze=Po(Mu()),_ee=Po(cs()),Ci=Po(z()),Lze=Po(Mt()),Fq=Po(g_()),Ii=Po(je()),Bze=Po(vee()),qq=Po(_o()),bee=Po(yee()),See=Po(Jx());function Uze(t){var e=zze();return function(){var n=(0,_ee.default)(t),o;if(e){var a=(0,_ee.default)(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return(0,jze.default)(this,o)}}function zze(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var Wze=function(e){return{buttonIcon:{marginRight:8}}},Eee=function(t){(0,qze.default)(r,t);var e=Uze(r);function r(n){var o;(0,Mze.default)(this,r),o=e.call(this,n);try{o.isIFrame=!n.newReact&&window.self!==window.top}catch(a){o.isIFrame=!n.newReact}return o}return(0,Fze.default)(r,[{key:"render",value:function(){var o=this,a=this.props.noTextOnButtons,i={borderRadius:this.props.theme.saveToolbar.button.borderRadius||3,height:this.props.theme.saveToolbar.button.height||32},s={bottom:this.isIFrame?38:0,left:this.props.paddingLeft||0,right:0,position:"absolute",background:this.props.theme.saveToolbar.background};return this.props.dense&&(s.minHeight=48),this.props.error&&(i.border="1px solid red"),Ci.default.createElement(Bze.default,{position:"absolute",style:s},Ci.default.createElement(Fq.default,{variant:"extended","aria-label":"Save",disabled:!this.props.changed||this.props.error,onClick:function(){return o.props.onSave(!1)},style:i},Ci.default.createElement(bee.default,{className:a?"":this.props.classes.buttonIcon}),!a&&qq.default.t("ra_Save")),Ci.default.createElement(Fq.default,{variant:"extended","aria-label":"Save and close",disabled:!this.props.changed||this.props.error,onClick:function(){return o.props.onSave(!0)},style:Object.assign({},i,{marginLeft:10})},Ci.default.createElement(bee.default,{className:a?"":this.props.classes.buttonIcon}),a?"+":qq.default.t("ra_Save and close"),a&&Ci.default.createElement(See.default,null)),Ci.default.createElement("div",{style:{flexGrow:1}}),Ci.default.createElement(Fq.default,{variant:"extended","aria-label":"Close",onClick:function(){return o.props.onClose()},style:i},Ci.default.createElement(See.default,{className:a?"":this.props.classes.buttonIcon}),!a&&qq.default.t("ra_Close")))}}]),r}(Ci.default.Component);Eee.propTypes={dense:Ii.default.bool,paddingLeft:Ii.default.number,noTextOnButtons:Ii.default.bool,theme:Ii.default.object,isIFrame:Ii.default.bool,changed:Ii.default.bool.isRequired,error:Ii.default.bool,onSave:Ii.default.func.isRequired,onClose:Ii.default.func.isRequired,newReact:Ii.default.bool};var $ze=(0,Lze.default)(Wze)(Eee),Hze=$ze;tC.default=Hze});var wee=_((rrt,Gze)=>{Gze.exports={}});var xee=_((nrt,Vze)=>{Vze.exports={"ra_Are you sure?":"Are you sure?",ra_Cancel:"Cancel",ra_Copied:"Copied","ra_Copied %s":'Copied "%s"',ra_Error:"Error","ra_Define functions":"Define functions","ra_Define rooms":"Define rooms",ra_Message:"Message","ra_Please select object ID...":"Please select object ID...",ra_Selected:"Selected",ra_Value:"Value",ra_Ok:"Ok",ra_dow_Su:"Su",ra_dow_Mo:"Mo",ra_dow_Tu:"Tu",ra_dow_We:"We",ra_dow_Th:"Th",ra_dow_Fr:"Fr",ra_dow_Sa:"Sa",ra_months_Jan:"Jan",ra_months_Feb:"Feb",ra_months_Mar:"Mar",ra_months_Apr:"Apr",ra_months_Mai:"Mai",ra_months_Jun:"Jun",ra_months_Jul:"Jul",ra_months_Aug:"Aug",ra_months_Sep:"Sep",ra_months_Oct:"Oct",ra_months_Nov:"Nov",ra_months_Dec:"Dec","ra_Unknown error!":"Unknown error!",ra_filter_customs:"Settings",ra_filter_func:"Function",ra_filter_id:"ID",ra_filter_name:"Name",ra_filter_role:"Role",ra_filter_room:"Room",ra_filter_type:"Type",ra_invalidConfig:"Invalid settings",ra_otherConfig:"Settings from other adapter %s",ra_tooltip_ack:"Acknowledged",ra_tooltip_from:"From",ra_tooltip_lc:"Last changed",ra_tooltip_quality:"Quality",ra_tooltip_ts:"Time stamp",ra_tooltip_user:"User",ra_tooltip_value:"Value",ra_tooltip_editObject:"Edit object",ra_tooltip_deleteObject:"Delete object",ra_tooltip_customConfig:"Custom settings",ra_tooltip_copyState:"Copy the state value",ra_tooltip_editState:"Edit the state value","ra_Listen on all IPs":"Listen on all IPs",ra_Save:"Save","ra_Save and close":"Save and close",ra_Close:"Close","ra_Auto (no custom columns)":"Auto (no custom columns)","ra_Transparent dialog":"Transparent dialog",ra_Width:"Width",ra_val:"Value",ra_buttons:"Buttons","ra_Configure visible columns":"Configure visible columns","ra_Cannot update attribute, because not found in the object":"Cannot update attribute, because not found in the object","ra_Edit object field":"Edit object field","ra_Hide empty folders":"Hide empty folders","ra_Reload files":"Reload files","ra_Create folder":"Create folder","ra_Upload file":"Upload file","ra_User files":"User files","ra_Confirm deletion of %s":"Confirm deletion of %s","ra_Delete (no confirm for 5 mins)":"Delete (no confirm for 5 mins)",ra_Delete:"Delete","ra_Toggle expert mode":"Toggle expert mode","ra_Toggle view mode":"Toggle view mode",ra_Root:"Root","ra_Back to %s":"Back to %s","ra_Place your files here or click here to open the browse dialog":"Place your files here or click here to open the browse dialog","ra_If no file will be created in the folder, it will disappear after the browser closed":"If no file will be created in the folder, it will disappear after the browser closed","ra_Folder name":"Folder name","ra_Create new folder in %s":"Create new folder in %s","ra_Duplicate name":"Duplicate name","ra_Invalid parent folder!":"Invalid parent folder!","ra_Drop file here":"Drop file here","ra_Suppress question for next %s minutes":"Suppress question for next %s minutes","ra_Clear filter":"Clear filter",ra_Update:"Update","ra_Load configuration from file":"Load configuration from file","ra_Save configuration to file":"Save configuration to file",sc_cron:"CRON",sc_date:"Date",sc_dates:"Dates",sc_dows:"Day of week",sc_every:"Every",sc_everyN_dates:"every N days",sc_everyN_dows:"every N day of week",sc_everyN_hours:"every N hours",sc_everyN_minutes:"every N minutes",sc_everyN_months:"every N months",sc_everyN_seconds:"every N seconds",sc_every_dates:"every day",sc_every_dows:"every day of the week",sc_every_hours:"every hour",sc_every_minutes:"every minute",sc_every_months:"every month",sc_every_seconds:"every second",sc_from:"From",sc_hours:"Hours",sc_interval:"Interval",sc_intervalBetween:"Interval between",sc_minutes:"Minutes",sc_months:"months",sc_once:"Once",sc_period:"Period",sc_seconds:"Seconds",sc_simple:"Simple",sc_specific:"Specific time",sc_specific_dates:"specific dates",sc_specific_dows:"specific day of weeks",sc_specific_hours:"specific hours",sc_specific_minutes:"specific minutes",sc_specific_months:"specific months",sc_specific_seconds:"specific seconds",sc_time:"Time",sc_to:"To",sc_wizard:"Wizard",sch_all:"all",sch_astroDay:"Astro day",sch_astroNight:"Astro night",sch_astro_dawn:"Dawn",sch_astro_dusk:"Dusk",sch_astro_goldenHour:"Golden hour",sch_astro_goldenHourEnd:"Golden hour end",sch_astro_nadir:"Nadir",sch_astro_nauticalDawn:"Nautical dawn",sch_astro_nauticalDusk:"Nautical dusk",sch_astro_night:"Night",sch_astro_nightEnd:"Night end",sch_astro_solarNoon:"Solar noon",sch_astro_sunrise:"Sunrise",sch_astro_sunriseEnd:"Sunrise end",sch_astro_sunset:"Sunset",sch_astro_sunsetStart:"Sunset start",sch_at:"at",sch_desc_atTime:"at %s",sch_desc_everyDay:"every day",sch_desc_everyHour:"every hour",sch_desc_everyMinute:"every minute",sch_desc_everyMonth:"every month",sch_desc_everyNDay:"every %s day",sch_desc_everyNHours:"every %s hours",sch_desc_everyNMinutes:"every %s minutes",sch_desc_everyNMonths:"every %s months",sch_desc_everyNWeeks:"every %s weeks",sch_desc_everyNYears:"every %s years",sch_desc_everyWeek:"every week",sch_desc_everyYear:"every year",sch_desc_intervalFromTo:"from %s to %s",sch_desc_never:"never",sch_desc_onDate:"on %s of %s",sch_desc_onDates:"on %s and %s of",sch_desc_onEveryDate:"on every date of",sch_desc_onMonth:"%s",sch_desc_onMonths:"%s and %s",sch_desc_onWeekday:"on %s",sch_desc_onWeekdays:"on %s and %s",sch_desc_onWeekends:"on weekends",sch_desc_onWorkdays:"on working days",sch_desc_onceInPast:"will ne be not executed any more, because start is in the past",sch_desc_once_on:"on %s",sch_desc_validFrom:"from %s",sch_desc_validFromTo:"Execute from to",sch_desc_validTo:"to %s",sch_every:"every",sch_exactTime:"Specific time",sch_from:"from",sch_fromTo:"From-to",sch_intervalTime:"Interval time",sch_invert:"invert",sch_no_one:"none",sch_on:"on",sch_period:"Period",sch_periodDaily:"Daily",sch_periodDates:"Dates",sch_periodDay:"Day",sch_periodEvery:"Every",sch_periodEveryDay:"Every day",sch_periodEveryMonth:"Every month",sch_periodEveryWeek:"Every week",sch_periodEveryYear:"Every year",sch_periodHours:"Hours",sch_periodMinutes:"Minutes",sch_periodMonth:"month",sch_periodMonthly:"Monthly",sch_periodOnce:"Once",sch_periodSpecificMonths:"Specific months",sch_periodWeek:"Week",sch_periodWeekdays:"Weekdays",sch_periodWeekend:"Weekend",sch_periodWeekly:"Weekly",sch_periodWorkdays:"Workdays",sch_periodYear:"Year",sch_periodYearly:"Yearly",sch_specificTime:"Specific time",sch_time:"Time",sch_to:"to",sch_valid:"Valid",sch_validFrom:"from",sch_validTo:"to",sch_wholeDay:"Whole day",sch_yearEveryMonth:"every month","ra_Define schedule...":"Define schedule...",ra_Repeat:"Repeat","ra_use seconds":"use seconds",ra_close:"close","ra_Toggle the states view":"Toggle the states view","ra_Add new child object to selected parent":"Add new child object to selected parent","ra_Add objects tree from JSON file":"Add objects tree from JSON file","ra_Save objects tree as JSON file":"Save objects tree as JSON file",ra_Objects:"Objects",ra_States:"States",ra_object_changed_by_user:"Object last changed at",ra_object_changed_by:"Object changed by",ra_state_changed_from:"Object changed from",ra_state_changed_by:"State changed by",ra_aclOwner_read_object:"Owner can read object",ra_aclOwner_read_state:"Owner can read state",ra_aclOwner_write_object:"Owner can write object",ra_aclOwner_write_state:"Owner can write state",ra_aclGroup_read_object:"Group can read object",ra_aclGroup_read_state:"Group can read state",ra_aclGroup_write_object:"Group can write object",ra_aclGroup_write_state:"Group can write state",ra_aclEveryone_read_object:"Everyone can read object",ra_aclEveryone_read_state:"Everyone can read state",ra_aclEveryone_write_object:"Everyone can write object",ra_aclEveryone_write_state:"Everyone can write state","ra_Folders always first":"Folders always first",ra_changedFrom:"Changed from",ra_qualityCode:"Quality code",ra_timestamp:"Timestamp",ra_lastChange:"Last change","ra_Owner group":"Owner group","ra_Owner user":"Owner user",ra_Create:"Create","ra_Changed from":"Changed from","ra_Quality code":"Quality",ra_Timestamp:"Timestamp","ra_Last change":"Last change","ra_Collapse all nodes":"Collapse all nodes","ra_Edit custom config":"Edit custom config","ra_Collapse one step node":"Collapse one level","ra_Expand one step node":"Expand one level","ra_Refresh tree":"Refresh tree","ra_Expand all nodes":"Expand all nodes","ra_Deselect all":"Unselect all","ra_Select all":"Select all","ra_%s object(s) processed":"%s object(s) processed","ra_Invalid structure":"Invalid structure","ra_%s was imported":"%s was imported","ra_Failed to open JSON File":"Failed to open JSON File","ra_Only following structures of objects are available:":"Only following structures of objects are available:","ra_Folder \u2192 State":"Folder \u2192 State","ra_Folder \u2192 Channel \u2192 State":"Folder \u2192 Channel \u2192 State","ra_Folder \u2192 Device \u2192 Channel \u2192 State":"Folder \u2192 Device \u2192 Channel \u2192 State","ra_Device \u2192 Channel \u2192 State":"Device \u2192 Channel \u2192 State","ra_Channel \u2192 State":"Channel \u2192 State",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Non-experts may create new objects only in "0_userdata.0" or "alias.0".','ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").',ra_expertMode:"Expert mode","ra_On weekdays":"On weekdays","ra_Drop the files here...":"Drop the file here...","ra_Drag 'n' drop some files here, or click to select files":"Drag 'n' drop some files here, or click to select files",ra_Clear:"Delete","ra_Clear icon":"Clear icon",ra_none:"none","ra_Select predefined icon":"Select predefined icon","ra_Show lines between rows":"Show lines between rows","ra_The page you are looking for was not found":"The page you are looking for was not found","ra_Good luck":"Good luck",'ra_Cannot find "%s"':'Cannot find "%s"','ra_Cannot read "%s"':'Cannot read "%s"',"ra_Back to %s":"Back to %s","ra_Background image":"Background image","ra_View: %s":"View: %s","ra_Copy content":"Copy content",ra_Filter:"Filter","ra_All objects":"All objects","ra_Only selected":"Only selected","ra_Change color theme":"Change color theme",ra_daysShortText:"days"}});var Cee=_((ort,Kze)=>{Kze.exports={ra_filter_func:"Funktion",ra_filter_id:"ID",ra_filter_name:"Name",ra_filter_type:"Typ",ra_filter_customs:"Einstellungen",ra_filter_role:"Rolle",ra_filter_room:"Raum",ra_tooltip_ack:"Best\xE4tigt",ra_tooltip_from:"Von",ra_tooltip_lc:"Zuletzt ge\xE4ndert",ra_tooltip_quality:"Qualit\xE4t",ra_tooltip_ts:"Zeitstempel",ra_tooltip_user:"Benutzer",ra_tooltip_value:"Wert","ra_Are you sure?":"Bist du sicher?",ra_Cancel:"Abbrechen",ra_Copied:"Kopiert","ra_Copied %s":'"%s" kopiert',"ra_Define functions":"Funktionen definieren","ra_Define rooms":"R\xE4ume definieren",ra_Error:"Fehler",ra_Message:"Meldung",ra_Ok:"OK","ra_Please select object ID...":"Bitte Objekt-ID ausw\xE4hlen...",ra_Selected:"Ausgew\xE4hlt","ra_Unknown error!":"Unbekannter Fehler!",ra_Value:"Wert",ra_invalidConfig:"Ung\xFCltige Einstellungen",ra_otherConfig:"Einstellungen von anderen Adaptern %s",ra_tooltip_copyState:"Kopieren Sie den Statuswert",ra_tooltip_customConfig:"Benutzerdefinierte Einstellungen",ra_tooltip_deleteObject:"Objekt l\xF6schen",ra_tooltip_editObject:"Objekt bearbeiten",ra_tooltip_editState:"Bearbeiten Sie den Statuswert",ra_dow_Fr:"Fr",ra_dow_Mo:"Mo",ra_dow_Sa:"Sa",ra_dow_Su:"So",ra_dow_Th:"Do",ra_dow_Tu:"Di",ra_dow_We:"Mi","ra_Listen on all IPs":"Zugriff von allen IPs zulassen",ra_Save:"Speichern","ra_Save and close":"Speichern und schlie\xDFen",ra_Close:"Schlie\xDFen","ra_Auto (no custom columns)":"Auto (keine benutzerdefinierten Spalten)","ra_Transparent dialog":"Transparenter Dialog",ra_Width:"Breite",ra_val:"Wert",ra_buttons:"Tasten","ra_Configure visible columns":"Spalten Konfigurieren",ra_close:"Schlie\xDFen","ra_Cannot update attribute, because not found in the object":"Attribut kann nicht aktualisiert werden, da es nicht im Objekt gefunden wurde","ra_Edit object field":"Objektfeld bearbeiten","ra_Hide empty folders":"Leere Ordner ausblenden","ra_Reload files":"Dateien neu laden","ra_Create folder":"Ordner erstellen","ra_Upload file":"Datei hochladen","ra_User files":"Benutzerdaten","ra_Confirm deletion of %s":"Best\xE4tigen Sie das L\xF6schen von %s","ra_Delete (no confirm for 5 mins)":"L\xF6schen (keine Best\xE4tigung f\xFCr 5 Minuten)",ra_Delete:"L\xF6schen","ra_Toggle expert mode":"Expertenmodus umschalten","ra_Toggle view mode":"Ansichtsmodus umschalten",ra_Root:"Anfang","ra_Back to %s":"Zur\xFCck zu %s","ra_Place your files here or click here to open the browse dialog":"Platzieren Sie Ihre Dateien hier oder klicken Sie hier, um den Suchdialog zu \xF6ffnen","ra_If no file will be created in the folder, it will disappear after the browser closed":"Wenn im Ordner keine Datei erstellt wird, verschwindet dieser nach dem Schlie\xDFen des Browsers","ra_Folder name":"Ordnernamen","ra_Create new folder in %s":'Neuen Ordner in "%s" erstellen',"ra_Duplicate name":"Doppelter Name","ra_Invalid parent folder!":"Ung\xFCltiger \xFCbergeordneter Ordner!","ra_Drop file here":"Datei hier ablegen","ra_Suppress question for next %s minutes":"Frage f\xFCr die n\xE4chsten %s Minuten unterdr\xFCcken","ra_Clear filter":"Filter l\xF6schen",ra_Update:"Aktualisieren","ra_Load configuration from file":"Konfiguration aus Datei laden","ra_Save configuration to file":"Konfiguration in Datei speichern",sc_cron:"CRON",sc_date:"Datum",sc_dates:"Tage",sc_dows:"Wochentage",sc_every:"Jeden",sc_everyN_dates:"alle N Tage",sc_everyN_dows:"alle N Wochentage",sc_everyN_hours:"alle N Stunden",sc_everyN_minutes:"alle N Minuten",sc_everyN_months:"alle N Monate",sc_everyN_seconds:"alle N Sekunden",sc_every_dates:"jeden Tag",sc_every_dows:"jeden Tag der Woche",sc_every_hours:"jede Stunde",sc_every_minutes:"jede Minute",sc_every_months:"jeden Monat",sc_every_seconds:"jede Sekunde",sc_from:"Von",sc_hours:"Stunden",sc_interval:"Intervall",sc_intervalBetween:"Intervall zwischen",sc_minutes:"Minuten",sc_months:"Monate",sc_once:"Einmal",sc_period:"Zeitraum",sc_seconds:"Sekunden",sc_simple:"Einfach",sc_specific:"Bestimmte Zeit",sc_specific_dates:"bestimmte Tage",sc_specific_dows:"bestimmten Wochentag",sc_specific_hours:"bestimmte Stunden",sc_specific_minutes:"bestimmte Minuten",sc_specific_months:"bestimmte Monate",sc_specific_seconds:"bestimmte Sekunden",sc_time:"Zeit",sc_to:"Bis",sc_wizard:"Wizard",sch_all:"alle",sch_astroDay:"Astronomisch Tag",sch_astroNight:"Astronomisch Nacht",sch_astro_dawn:"Morgend\xE4mmerung",sch_astro_dusk:"Abendd\xE4mmerung",sch_astro_goldenHour:"Goldene Stunde",sch_astro_goldenHourEnd:"Goldene Stundenende",sch_astro_nadir:"Nadir",sch_astro_nauticalDawn:"Nautische Morgend\xE4mmerung",sch_astro_nauticalDusk:"Nautische Abendd\xE4mmerung",sch_astro_night:"Nacht",sch_astro_nightEnd:"Nachtende",sch_astro_solarNoon:"Sonnenmittag",sch_astro_sunrise:"Sonnenaufgang",sch_astro_sunriseEnd:"Sonnenaufgangende",sch_astro_sunset:"Sonnenuntergang",sch_astro_sunsetStart:"Sonnenuntergangstart",sch_at:"am",sch_desc_atTime:"um %s",sch_desc_everyDay:"jeden Tag",sch_desc_everyHour:"jede Stunde",sch_desc_everyMinute:"jede Minute",sch_desc_everyMonth:"jeden Monat",sch_desc_everyNDay:"jeden %s Tag",sch_desc_everyNHours:"alle %s Stunden",sch_desc_everyNMinutes:"alle %s Minuten",sch_desc_everyNMonths:"alle %s Monate",sch_desc_everyNWeeks:"alle %s Wochen",sch_desc_everyNYears:"alle %s Jahre",sch_desc_everyWeek:"jede Woche",sch_desc_everyYear:"jedes Jahr",sch_desc_intervalFromTo:"von %s bis %s",sch_desc_never:"noch nie",sch_desc_onDate:"am %s von %s",sch_desc_onDates:"am %s und %s von",sch_desc_onEveryDate:"an jedem Datum von",sch_desc_onMonth:"%s",sch_desc_onMonths:"%s und %s",sch_desc_onWeekday:"auf %s",sch_desc_onWeekdays:"auf %s und %s",sch_desc_onWeekends:"an Wochenenden",sch_desc_onWorkdays:"an Werktagen",sch_desc_onceInPast:"wird nicht mehr ausgef\xFChrt, weil der Start in der Vergangenheit ist",sch_desc_once_on:"auf %s",sch_desc_validFrom:"von %s",sch_desc_validFromTo:"Ausf\xFChren von bis",sch_desc_validTo:"bis %s",sch_every:"jeden",sch_exactTime:"Bestimmte Zeit",sch_from:"von",sch_fromTo:"Von bis",sch_intervalTime:"Zeitintervall",sch_invert:"umkehren",sch_no_one:"keiner",sch_on:"am",sch_period:"Zeitraum",sch_periodDaily:"T\xE4glich",sch_periodDates:"Daten",sch_periodDay:"Tag",sch_periodEvery:"Jeden",sch_periodEveryDay:"Jeden Tag",sch_periodEveryMonth:"Jeden Monat",sch_periodEveryWeek:"Jede Woche",sch_periodEveryYear:"Jedes Jahr",sch_periodHours:"Stunden",sch_periodMinutes:"Minuten",sch_periodMonth:"Monat",sch_periodMonthly:"Monatlich",sch_periodOnce:"Einmal",sch_periodSpecificMonths:"Bestimmte Monate",sch_periodWeek:"Woche",sch_periodWeekdays:"Wochentage",sch_periodWeekend:"Wochenende",sch_periodWeekly:"W\xF6chentlich",sch_periodWorkdays:"Arbeitstage",sch_periodYear:"Jahr",sch_periodYearly:"J\xE4hrlich",sch_specificTime:"Bestimmte Zeit",sch_time:"Zeit",sch_to:"zu",sch_valid:"G\xFCltigkeit",sch_validFrom:"von",sch_validTo:"bis",sch_wholeDay:"Ganzer Tag",sch_yearEveryMonth:"jeden Monat","ra_Define schedule...":"Zeitplan definieren ...",ra_Repeat:"Wiederholen","ra_use seconds":"Sekunden benutzen",ra_months_Apr:"Apr",ra_months_Aug:"Aug",ra_months_Dec:"Dez",ra_months_Jan:"Jan",ra_months_Feb:"Feb",ra_months_Jul:"Jul",ra_months_Jun:"Jun",ra_months_Mai:"Mai",ra_months_Mar:"M\xE4r",ra_months_Nov:"Nov",ra_months_Oct:"Okt",ra_months_Sep:"Sep","ra_Toggle the states view":"Statusansicht umschalten","ra_Add new child object to selected parent":"Dem ausgew\xE4hlten \xFCbergeordneten Objekt ein neues untergeordnetes Objekt hinzuf\xFCgen","ra_Add objects tree from JSON file":"Objektbaum aus JSON-Datei hinzuf\xFCgen","ra_Save objects tree as JSON file":"Objektbaum als JSON-Datei speichern",ra_Objects:"Objekte",ra_States:"Zust\xE4nde",ra_object_changed_by_user:"Objekt zuletzt ge\xE4ndert um",ra_object_changed_by:"Objekt ge\xE4ndert von",ra_state_changed_from:"Objekt ge\xE4ndert von",ra_state_changed_by:"Zustand ge\xE4ndert durch",ra_aclOwner_read_object:"Besitzer kann Objekt lesen",ra_aclOwner_read_state:"Besitzer kann Zustand lesen",ra_aclOwner_write_object:"Besitzer kann Objekt schreiben",ra_aclOwner_write_state:"Besitzer kann Zustand schreiben",ra_aclGroup_read_object:"Gruppe kann Objekt lesen",ra_aclGroup_read_state:"Gruppe kann Status lesen",ra_aclGroup_write_object:"Gruppe kann Objekt schreiben",ra_aclGroup_write_state:"Gruppe kann Status schreiben",ra_aclEveryone_read_object:"Jeder kann Objekt lesen",ra_aclEveryone_read_state:"Jeder kann Zustand lesen",ra_aclEveryone_write_object:"Jeder kann ein Objekt schreiben",ra_aclEveryone_write_state:"Jeder kann Zustand schreiben","ra_Folders always first":"Ordner immer zuerst",ra_changedFrom:"Ge\xE4ndert von",ra_qualityCode:"Qualit\xE4tscode",ra_timestamp:"Zeitstempel",ra_lastChange:"Letzte \xC4nderung","ra_Owner group":"Besitzergruppe","ra_Owner user":"Besitzer Benutzer",ra_Create:"Erstellen","ra_Changed from":"Ge\xE4ndert von","ra_Quality code":"Qualit\xE4t",ra_Timestamp:"Zeitstempel","ra_Last change":"Letzte \xC4nderung","ra_Collapse all nodes":"Alle Knoten zuklappen","ra_Edit custom config":"Bearbeite Benutzerdefinierte Konfiguration","ra_Collapse one step node":"Eine Ebene zuklappen","ra_Expand one step node":"Eine Ebene aufklappen","ra_Refresh tree":"Baum aktualisieren","ra_Expand all nodes":"Alle Knoten aufklappen","ra_Deselect all":"Alles abw\xE4hlen","ra_Select all":"Alle ausw\xE4hlen","ra_%s object(s) processed":"%s Objekt(e) verarbeitet","ra_Invalid structure":"Ung\xFCltige Struktur","ra_%s was imported":"%s wurde importiert","ra_Failed to open JSON File":"Fehler beim \xD6ffnen der JSON-Datei","ra_Only following structures of objects are available:":"Es stehen nur folgende Objektstrukturen zur Verf\xFCgung:","ra_Folder \u2192 State":"Ordner \u2192 Zustand","ra_Folder \u2192 Channel \u2192 State":"Ordner \u2192 Kanal \u2192 Zustand","ra_Folder \u2192 Device \u2192 Channel \u2192 State":"Ordner \u2192 Ger\xE4t \u2192 Kanal \u2192 Zustand","ra_Device \u2192 Channel \u2192 State":"Ger\xE4t \u2192 Kanal \u2192 Status","ra_Channel \u2192 State":"Kanal \u2192 Status",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Nicht-Experten d\xFCrfen neue Objekte nur in "0_userdata.0" oder "alias.0" erstellen.','ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Die Experten k\xF6nnen Objekte \xFCberall erstellen, au\xDFer auf der zweiten Ebene (z. B. "vis.0" oder "javascript.0").',ra_expertMode:"Expertenmodus","ra_On weekdays":"An Wochentagen","ra_Drop the files here...":"Datei hier ablegen...","ra_Drag 'n' drop some files here, or click to select files":"Die Datei hierher ziehen und ablegen, oder klicken, um die Datei auszuw\xE4hlen",ra_Clear:"L\xF6schen","ra_Clear icon":"Symbol l\xF6schen",ra_none:"kein","ra_Select predefined icon":"Vordefiniertes Symbol ausw\xE4hlen","ra_Show lines between rows":"Zeilen zwischen Zeilen anzeigen","ra_The page you are looking for was not found":"Die gesuchte Seite wurde nicht gefunden","ra_Good luck":"Viel Gl\xFCck",'ra_Cannot find "%s"':'Kann "%s" nicht finden','ra_Cannot read "%s"':'"%s" kann nicht gelesen werden',"ra_Back to %s":"Zur\xFCck zu %s","ra_Background image":"Hintergrundbild","ra_View: %s":"Anschauen: %s","ra_Copy content":"Inhalte kopieren",ra_Filter:"Filter","ra_All objects":"Alle Objekte","ra_Only selected":"Nur ausgew\xE4hlt","ra_Change color theme":"Farbthema \xE4ndern",ra_daysShortText:"T."}});var Iee=_((art,Yze)=>{Yze.exports={ra_filter_func:"\u0444\u0443\u043D\u043A\u0446\u0438\u044F",ra_filter_id:"ID",ra_filter_name:"\u0418\u043C\u044F",ra_filter_role:"\u0440\u043E\u043B\u044C",ra_filter_room:"\u043A\u043E\u043C\u043D\u0430\u0442\u0430",ra_tooltip_ack:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u043E",ra_tooltip_from:"\u041E\u0442",ra_tooltip_lc:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0435 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435",ra_tooltip_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",ra_tooltip_ts:"\u041E\u0442\u043C\u0435\u0442\u043A\u0430 \u0432\u0440\u0435\u043C\u0435\u043D\u0438",ra_tooltip_user:"\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C",ra_tooltip_value:"\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435","ra_Are you sure?":"\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B?",ra_Cancel:"\u041E\u0442\u043C\u0435\u043D\u0430",ra_Copied:"\u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E","ra_Copied %s":'\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E "%s"',"ra_Define functions":"\u0417\u0430\u0434\u0430\u0442\u044C \u0444\u0443\u043D\u043A\u0446\u0438\u0438","ra_Define rooms":"\u0417\u0430\u0434\u0430\u0442\u044C \u043A\u043E\u043C\u043D\u0430\u0442\u044B",ra_Error:"\u041E\u0448\u0438\u0431\u043A\u0430",ra_Message:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435",ra_Ok:"Ok","ra_Please select object ID...":"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440 \u043E\u0431\u044A\u0435\u043A\u0442\u0430 ...",ra_Selected:"\u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439","ra_Unknown error!":"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u0430\u044F \u043E\u0448\u0438\u0431\u043A\u0430!",ra_Value:"\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435",ra_filter_type:"\u0422\u0438\u043F",ra_invalidConfig:"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",ra_otherConfig:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0438\u0437 \u0434\u0440\u0443\u0433\u043E\u0433\u043E \u0430\u0434\u0430\u043F\u0442\u0435\u0440\u0430 %s",ra_tooltip_copyState:"\u0421\u043A\u043E\u043F\u0438\u0440\u0443\u0439\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F",ra_tooltip_customConfig:"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",ra_tooltip_deleteObject:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442",ra_tooltip_editObject:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442",ra_tooltip_editState:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F",ra_filter_customs:"\u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",ra_dow_Fr:"\u041F\u0442",ra_dow_Mo:"\u041F\u043D",ra_dow_Sa:"\u0421\u0431",ra_dow_Su:"\u0412\u0441",ra_dow_Th:"\u0427\u0442",ra_dow_Tu:"\u0412\u0442",ra_dow_We:"\u0421\u0440","ra_Listen on all IPs":"\u0421\u043B\u0443\u0448\u0430\u0439 \u043D\u0430 \u0432\u0441\u0435\u0445 IP",ra_Save:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C","ra_Save and close":"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0438 \u0437\u0430\u043A\u0440\u044B\u0442\u044C",ra_Close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C","ra_Auto (no custom columns)":"\u0410\u0432\u0442\u043E (\u0431\u0435\u0437 \u043D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u044B\u0445 \u0441\u0442\u043E\u043B\u0431\u0446\u043E\u0432)","ra_Transparent dialog":"\u041F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u044B\u0439 \u0434\u0438\u0430\u043B\u043E\u0433",ra_Width:"\u0428\u0438\u0440\u0438\u043D\u0430",ra_val:"\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435",ra_buttons:"\u041A\u043D\u043E\u043F\u043A\u0438","ra_Configure visible columns":"\u041D\u0430\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u0432\u0438\u0434\u0438\u043C\u044B\u0435 \u0441\u0442\u043E\u043B\u0431\u0446\u044B","ra_Cannot update attribute, because not found in the object":"\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0430\u0442\u0440\u0438\u0431\u0443\u0442, \u043F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u043E\u043D \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D \u0432 \u043E\u0431\u044A\u0435\u043A\u0442\u0435","ra_Edit object field":"\u041F\u043E\u043B\u0435 \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u043E\u0431\u044A\u0435\u043A\u0442\u0430","ra_Hide empty folders":"\u0421\u043A\u0440\u044B\u0442\u044C \u043F\u0443\u0441\u0442\u044B\u0435 \u043F\u0430\u043F\u043A\u0438","ra_Reload files":"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C","ra_Create folder":"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u043F\u0430\u043F\u043A\u0443","ra_Upload file":"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0444\u0430\u0439\u043B","ra_User files":"\u0424\u0430\u0439\u043B\u044B \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F","ra_Confirm deletion of %s":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u0435 %s","ra_Delete (no confirm for 5 mins)":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C (\u0431\u0435\u0437 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u0432 \u0442\u0435\u0447\u0435\u043D\u0438\u0435 5 \u043C\u0438\u043D\u0443\u0442)",ra_Delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C","ra_Toggle expert mode":"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u044D\u043A\u0441\u043F\u0435\u0440\u0442\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C","ra_Toggle view mode":"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430",ra_Root:"\u041D\u0430\u0447\u0430\u043B\u043E","ra_Back to %s":"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A %s","ra_Place your files here or click here to open the browse dialog":"\u041F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u0435 \u0441\u0432\u043E\u0438 \u0444\u0430\u0439\u043B\u044B \u0441\u044E\u0434\u0430 \u0438\u043B\u0438 \u0449\u0435\u043B\u043A\u043D\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044C, \u0447\u0442\u043E\u0431\u044B \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0434\u0438\u0430\u043B\u043E\u0433\u043E\u0432\u043E\u0435 \u043E\u043A\u043D\u043E \u0432\u044B\u0431\u043E\u0440\u0430","ra_If no file will be created in the folder, it will disappear after the browser closed":"\u0415\u0441\u043B\u0438 \u0432 \u043F\u0430\u043F\u043A\u0435 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043E\u0437\u0434\u0430\u043D \u0444\u0430\u0439\u043B, \u043E\u043D \u0438\u0441\u0447\u0435\u0437\u043D\u0435\u0442 \u043F\u043E\u0441\u043B\u0435 \u0437\u0430\u043A\u0440\u044B\u0442\u0438\u044F \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.","ra_Folder name":"\u0418\u043C\u044F \u043F\u0430\u043F\u043A\u0438","ra_Create new folder in %s":"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u043D\u043E\u0432\u0443\u044E \u043F\u0430\u043F\u043A\u0443 \u0432 %s","ra_Duplicate name":"\u041F\u043E\u0432\u0442\u043E\u0440\u044F\u044E\u0449\u0435\u0435\u0441\u044F \u0438\u043C\u044F","ra_Invalid parent folder!":"\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0440\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u0441\u043A\u0430\u044F \u043F\u0430\u043F\u043A\u0430!","ra_Drop file here":"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u0441\u044E\u0434\u0430","ra_Suppress question for next %s minutes":"\u0421\u043A\u0440\u044B\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441 \u043D\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 %s \u043C\u0438\u043D\u0443\u0442(\u044B)","ra_Clear filter":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440",ra_Update:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C","ra_Load configuration from file":"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044E \u0438\u0437 \u0444\u0430\u0439\u043B\u0430","ra_Save configuration to file":"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044E \u0432 \u0444\u0430\u0439\u043B",sc_cron:"CRON",sc_date:"\u0414\u0430\u0442\u0430",sc_dates:"\u0414\u0430\u0442\u044B",sc_dows:"\u0414\u0435\u043D\u044C \u043D\u0435\u0434\u0435\u043B\u0438",sc_every:"\u043A\u0430\u0436\u0434\u044B\u0439(\u0443\u044E/\u044B\u0435)",sc_everyN_dates:"\u043A\u0430\u0436\u0434\u044B\u0439 N \u0434\u0435\u043D\u044C",sc_everyN_dows:"\u043A\u0430\u0436\u0434\u044B\u0439 N \u0434\u0435\u043D\u044C \u043D\u0435\u0434\u0435\u043B\u0438",sc_everyN_hours:"\u043A\u0430\u0436\u0434\u044B\u0435 N \u0447\u0430\u0441\u043E\u0432",sc_everyN_minutes:"\u043A\u0430\u0436\u0434\u044B\u0435 N \u043C\u0438\u043D\u0443\u0442",sc_everyN_months:"\u043A\u0430\u0436\u0434\u044B\u0435 N \u043C\u0435\u0441\u044F\u0446\u0435\u0432",sc_everyN_seconds:"\u043A\u0430\u0436\u0434\u044B\u0435 N \u0441\u0435\u043A\u0443\u043D\u0434",sc_every_dates:"\u043A\u0430\u0436\u0434\u044B\u0439 \u0434\u0435\u043D\u044C",sc_every_dows:"\u043A\u0430\u0436\u0434\u044B\u0439 \u0434\u0435\u043D\u044C \u043D\u0435\u0434\u0435\u043B\u0438",sc_every_hours:"\u043A\u0430\u0436\u0434\u044B\u0439 \u0447\u0430\u0441",sc_every_minutes:"\u043A\u0430\u0436\u0434\u0443\u044E \u043C\u0438\u043D\u0443\u0442\u0443",sc_every_months:"\u043A\u0430\u0436\u0434\u044B\u0439 \u043C\u0435\u0441\u044F\u0446",sc_every_seconds:"\u043A\u0430\u0436\u0434\u0443\u044E \u0441\u0435\u043A\u0443\u043D\u0434\u0443",sc_from:"\u041E\u0442",sc_hours:"\u0447\u0430\u0441\u044B",sc_interval:"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B",sc_intervalBetween:"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u043C\u0435\u0436\u0434\u0443",sc_minutes:"\u043C\u0438\u043D\u0443\u0442\u044B",sc_months:"\u041C\u0435\u0441\u044F\u0446\u044B",sc_once:"\u043E\u0434\u0438\u043D \u0440\u0430\u0437",sc_period:"\u041F\u0435\u0440\u0438\u043E\u0434",sc_seconds:"\u0441\u0435\u043A\u0443\u043D\u0434\u044B",sc_simple:"\u041F\u0440\u043E\u0441\u0442\u043E",sc_specific:"\u041A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F",sc_specific_dates:"\u043A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u044B\u0435 \u0434\u0430\u0442\u044B",sc_specific_dows:"\u043A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u044B\u0439 \u0434\u0435\u043D\u044C \u043D\u0435\u0434\u0435\u043B\u0438",sc_specific_hours:"\u043A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u044B\u0435 \u0447\u0430\u0441\u044B",sc_specific_minutes:"\u043A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u044B\u0435 \u043C\u0438\u043D\u0443\u0442\u044B",sc_specific_months:"\u043A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u044B\u0435 \u043C\u0435\u0441\u044F\u0446\u044B",sc_specific_seconds:"\u043A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u044B\u0435 \u0441\u0435\u043A\u0443\u043D\u0434\u044B",sc_time:"\u0412\u0440\u0435\u043C\u044F",sc_to:"\u0414\u043E",sc_wizard:"\u0424\u043E\u0440\u043C\u0430",sch_all:"\u0432\u0441\u0435",sch_astroDay:"\u0434\u043D\u0451\u043C",sch_astroNight:"\u043D\u043E\u0447\u044C\u044E",sch_astro_dawn:"\u0420\u0430\u0441\u0441\u0432\u0435\u0442",sch_astro_dusk:"\u0421\u0443\u043C\u0435\u0440\u043A\u0438",sch_astro_goldenHour:"\u0417\u043E\u043B\u043E\u0442\u043E\u0439 \u0447\u0430\u0441",sch_astro_goldenHourEnd:"\u041A\u043E\u043D\u0435\u0446 \u0437\u043E\u043B\u043E\u0442\u043E\u0433\u043E \u0447\u0430\u0441\u0430",sch_astro_nadir:"\u041D\u0430\u0434\u0438\u0440",sch_astro_nauticalDawn:"\u041C\u043E\u0440\u0441\u043A\u043E\u0439 \u0440\u0430\u0441\u0441\u0432\u0435\u0442",sch_astro_nauticalDusk:"\u041C\u043E\u0440\u0441\u043A\u0438\u0435 \u0441\u0443\u043C\u0435\u0440\u043A\u0438",sch_astro_night:"\u041D\u043E\u0447\u044C",sch_astro_nightEnd:"\u041A\u043E\u043D\u0435\u0446 \u043D\u043E\u0447\u0438",sch_astro_solarNoon:"\u0421\u043E\u043B\u043D\u0435\u0447\u043D\u044B\u0439 \u043F\u043E\u043B\u0434\u0435\u043D\u044C",sch_astro_sunrise:"\u0412\u043E\u0441\u0445\u043E\u0434",sch_astro_sunriseEnd:"\u0412\u043E\u0441\u0445\u043E\u0434 \u0441\u043E\u043B\u043D\u0446\u0430",sch_astro_sunset:"\u0417\u0430\u0445\u043E\u0434 \u0441\u043E\u043B\u043D\u0446\u0430",sch_astro_sunsetStart:"\u041D\u0430\u0447\u0430\u043B\u043E \u0437\u0430\u043A\u0430\u0442\u0430",sch_at:"\u0434\u0430\u0442\u0430",sch_desc_atTime:"\u0432 %s",sch_desc_everyDay:"\u043A\u0430\u0436\u0434\u044B\u0439 \u0434\u0435\u043D\u044C",sch_desc_everyHour:"\u043A\u0430\u0436\u0434\u044B\u0439 \u0447\u0430\u0441",sch_desc_everyMinute:"\u043A\u0430\u0436\u0434\u0443\u044E \u043C\u0438\u043D\u0443\u0442\u0443",sch_desc_everyMonth:"\u043A\u0430\u0436\u0434\u044B\u0439 \u043C\u0435\u0441\u044F\u0446",sch_desc_everyNDay:"\u043A\u0430\u0436\u0434\u044B\u0439 %s \u0434\u0435\u043D\u044C",sch_desc_everyNHours:"\u043A\u0430\u0436\u0434\u044B\u0439 %s \u0447\u0430\u0441\u043E\u0432",sch_desc_everyNMinutes:"\u043A\u0430\u0436\u0434\u044B\u0435 %s \u043C\u0438\u043D\u0443\u0442",sch_desc_everyNMonths:"\u043A\u0430\u0436\u0434\u044B\u0435 %s \u043C\u0435\u0441\u044F\u0446\u0435\u0432",sch_desc_everyNWeeks:"\u043A\u0430\u0436\u0434\u044B\u0435 %s \u043D\u0435\u0434\u0435\u043B\u044C",sch_desc_everyNYears:"\u043A\u0430\u0436\u0434\u044B\u0435 %s \u043B\u0435\u0442",sch_desc_everyWeek:"\u043A\u0430\u0436\u0434\u0443\u044E \u043D\u0435\u0434\u0435\u043B\u044E",sch_desc_everyYear:"\u043A\u0430\u0436\u0434\u044B\u0439 \u0433\u043E\u0434",sch_desc_intervalFromTo:"\u043E\u0442 %s \u0434\u043E %s",sch_desc_never:"\u043D\u0438\u043A\u043E\u0433\u0434\u0430",sch_desc_onDate:"%s %s",sch_desc_onDates:"%s \u0438 %s",sch_desc_onEveryDate:"\u0432 \u043A\u0430\u0436\u0434\u044B\u0439 \u0434\u0435\u043D\u044C",sch_desc_onMonth:"%s",sch_desc_onMonths:"%s \u0438 %s",sch_desc_onWeekday:"%s",sch_desc_onWeekdays:"%s \u0438 %s",sch_desc_onWeekends:"\u043D\u0430 \u0432\u044B\u0445\u043E\u0434\u043D\u044B\u0445",sch_desc_onWorkdays:"\u0432 \u0440\u0430\u0431\u043E\u0447\u0438\u0435 \u0434\u043D\u0438",sch_desc_onceInPast:"\u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0431\u043E\u043B\u044C\u0448\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0442\u044C\u0441\u044F, \u043F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u043D\u0430\u0447\u0430\u043B\u043E \u0432 \u043F\u0440\u043E\u0448\u043B\u043E\u043C",sch_desc_once_on:"%s",sch_desc_validFrom:"%s",sch_desc_validFromTo:"\u0412\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0441",sch_desc_validTo:"%s",sch_every:"\u043A\u0430\u0436\u0434\u044B\u0439",sch_exactTime:"\u041A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F",sch_from:"\u043E\u0442",sch_fromTo:"\u041E\u0442 \u0438 \u0434\u043E",sch_intervalTime:"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u0432\u0440\u0435\u043C\u0435\u043D\u0438",sch_invert:"\u0438\u043D\u0432\u0435\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C",sch_no_one:"\u043D\u0438\u043A\u0430\u043A\u043E\u0439",sch_on:"\u043D\u0430",sch_period:"\u043F\u0435\u0440\u0438\u043E\u0434",sch_periodDaily:"\u0415\u0436\u0435\u0434\u043D\u0435\u0432\u043D\u043E",sch_periodDates:"\u0414\u0430\u0442\u044B",sch_periodDay:"\u0414\u0435\u043D\u044C",sch_periodEvery:"\u043A\u0430\u0436\u0434\u044B\u0439",sch_periodEveryDay:"\u041A\u0430\u0436\u0434\u044B\u0439 \u0434\u0435\u043D\u044C",sch_periodEveryMonth:"\u041A\u0430\u0436\u0434\u044B\u0439 \u043C\u0435\u0441\u044F\u0446",sch_periodEveryWeek:"\u041A\u0430\u0436\u0434\u0443\u044E \u043D\u0435\u0434\u0435\u043B\u044E",sch_periodEveryYear:"\u041A\u0430\u0436\u0434\u044B\u0439 \u0433\u043E\u0434",sch_periodHours:"\u0447\u0430\u0441\u043E\u0432",sch_periodMinutes:"\u043C\u0438\u043D\u0443\u0442",sch_periodMonth:"\u043C\u0435\u0441\u044F\u0446",sch_periodMonthly:"\u0435\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u043E",sch_periodOnce:"\u043E\u0434\u043D\u0430\u0436\u0434\u044B",sch_periodSpecificMonths:"\u041A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u044B\u0435 \u043C\u0435\u0441\u044F\u0446\u044B",sch_periodWeek:"\u041D\u0435\u0434\u0435\u043B\u044E",sch_periodWeekdays:"\u0411\u0443\u0434\u043D\u0438\u0435 \u0434\u043D\u0438",sch_periodWeekend:"\u0432\u044B\u0445\u043E\u0434\u043D\u044B\u0435",sch_periodWeekly:"\u0435\u0436\u0435\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u043E",sch_periodWorkdays:"\u0420\u0430\u0431\u043E\u0447\u0438\u0435 \u0434\u043D\u0438",sch_periodYear:"\u0413\u043E\u0434",sch_periodYearly:"\u043A\u0430\u0436\u0434\u044B\u0439 \u0433\u043E\u0434",sch_specificTime:"\u041A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F",sch_time:"\u0412\u0440\u0435\u043C\u044F",sch_to:"\u0432",sch_valid:"\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439",sch_validFrom:"\u043E\u0442",sch_validTo:"\u0432",sch_wholeDay:"\u0412\u0435\u0441\u044C \u0434\u0435\u043D\u044C",sch_yearEveryMonth:"\u043A\u0430\u0436\u0434\u044B\u0439 \u043C\u0435\u0441\u044F\u0446","ra_Define schedule...":"\u041E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u0440\u0430\u0441\u043F\u0438\u0441\u0430\u043D\u0438\u0435 ...",ra_Repeat:"\u041F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435","ra_use seconds":"\u0441\u0435\u043A\u0443\u043D\u0434\u044B",ra_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",ra_months_Sep:"\u0421\u0435\u043D",ra_months_Oct:"\u041E\u043A\u0442",ra_months_Nov:"\u041D\u043E\u044F",ra_months_Mar:"\u041C\u0430\u0440\u0442",ra_months_Mai:"\u041C\u0430\u0439",ra_months_Jun:"\u0418\u044E\u043B\u044C",ra_months_Jul:"\u0418\u044E\u043D\u044C",ra_months_Jan:"\u042F\u043D\u0432",ra_months_Feb:"\u0424\u0435\u0432",ra_months_Dec:"\u0414\u0435\u043A",ra_months_Aug:"\u0410\u0432\u0433",ra_months_Apr:"\u0410\u043F\u0440","ra_Toggle the states view":"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0439","ra_Add new child object to selected parent":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u0434\u043E\u0447\u0435\u0440\u043D\u0438\u0439 \u043E\u0431\u044A\u0435\u043A\u0442 \u043A \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u043C\u0443 \u0440\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u0441\u043A\u043E\u043C\u0443 \u043E\u0431\u044A\u0435\u043A\u0442\u0443","ra_Add objects tree from JSON file":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0434\u0435\u0440\u0435\u0432\u043E \u043E\u0431\u044A\u0435\u043A\u0442\u043E\u0432 \u0438\u0437 \u0444\u0430\u0439\u043B\u0430 JSON","ra_Save objects tree as JSON file":"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0435\u0440\u0435\u0432\u043E \u043E\u0431\u044A\u0435\u043A\u0442\u043E\u0432 \u043A\u0430\u043A \u0444\u0430\u0439\u043B JSON",ra_Objects:"\u041E\u0431\u044A\u0435\u043A\u0442\u044B",ra_States:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F",ra_object_changed_by_user:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439 \u0440\u0430\u0437 \u043E\u0431\u044A\u0435\u043A\u0442 \u0438\u0437\u043C\u0435\u043D\u0435\u043D \u0432",ra_object_changed_by:"\u041E\u0431\u044A\u0435\u043A\u0442 \u0438\u0437\u043C\u0435\u043D\u0435\u043D",ra_state_changed_from:"\u041E\u0431\u044A\u0435\u043A\u0442 \u0438\u0437\u043C\u0435\u043D\u0435\u043D \u0441",ra_state_changed_by:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E",ra_aclOwner_read_object:"\u0412\u043B\u0430\u0434\u0435\u043B\u0435\u0446 \u043C\u043E\u0436\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442",ra_aclOwner_read_state:"\u0412\u043B\u0430\u0434\u0435\u043B\u0435\u0446 \u043C\u043E\u0436\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",ra_aclOwner_write_object:"\u0412\u043B\u0430\u0434\u0435\u043B\u0435\u0446 \u043C\u043E\u0436\u0435\u0442 \u043F\u0438\u0441\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442",ra_aclOwner_write_state:"\u0412\u043B\u0430\u0434\u0435\u043B\u0435\u0446 \u043C\u043E\u0436\u0435\u0442 \u043F\u0438\u0441\u0430\u0442\u044C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",ra_aclGroup_read_object:"\u0413\u0440\u0443\u043F\u043F\u0430 \u043C\u043E\u0436\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442",ra_aclGroup_read_state:"\u0413\u0440\u0443\u043F\u043F\u0430 \u043C\u043E\u0436\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",ra_aclGroup_write_object:"\u0413\u0440\u0443\u043F\u043F\u0430 \u043C\u043E\u0436\u0435\u0442 \u043F\u0438\u0441\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442",ra_aclGroup_write_state:"\u0413\u0440\u0443\u043F\u043F\u0430 \u043C\u043E\u0436\u0435\u0442 \u0437\u0430\u043F\u0438\u0441\u044B\u0432\u0430\u0442\u044C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",ra_aclEveryone_read_object:"\u041A\u0430\u0436\u0434\u044B\u0439 \u043C\u043E\u0436\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442",ra_aclEveryone_read_state:"\u041A\u0430\u0436\u0434\u044B\u0439 \u043C\u043E\u0436\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",ra_aclEveryone_write_object:"\u041A\u0430\u0436\u0434\u044B\u0439 \u043C\u043E\u0436\u0435\u0442 \u043D\u0430\u043F\u0438\u0441\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442",ra_aclEveryone_write_state:"\u041A\u0430\u0436\u0434\u044B\u0439 \u043C\u043E\u0436\u0435\u0442 \u043D\u0430\u043F\u0438\u0441\u0430\u0442\u044C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435","ra_Folders always first":"\u041F\u0430\u043F\u043A\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u043D\u0430 \u043F\u0435\u0440\u0432\u043E\u043C \u043C\u0435\u0441\u0442\u0435",ra_changedFrom:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u0441",ra_qualityCode:"\u041A\u043E\u0434 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430",ra_timestamp:"\u041E\u0442\u043C\u0435\u0442\u043A\u0430 \u0432\u0440\u0435\u043C\u0435\u043D\u0438",ra_lastChange:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0435 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435","ra_Owner group":"\u0413\u0440\u0443\u043F\u043F\u0430 \u0432\u043B\u0430\u0434\u0435\u043B\u044C\u0446\u0435\u0432","ra_Owner user":"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C-\u0432\u043B\u0430\u0434\u0435\u043B\u0435\u0446",ra_Create:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C","ra_Changed from":"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u043E","ra_Quality code":"\u0412\u0430\u043B\u0438\u0434\u043D\u043E\u0441\u0442\u044C",ra_Timestamp:"\u0412\u0440\u0435\u043C\u0435\u043D\u0438","ra_Last change":"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0435 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435","ra_Collapse all nodes":"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0441\u0435 \u0443\u0437\u043B\u044B","ra_Edit custom config":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u0443\u044E \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044E","ra_Collapse one step node":"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043E\u0434\u0438\u043D \u0443\u0440\u043E\u0432\u0435\u043D\u044C","ra_Expand one step node":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043E\u0434\u0438\u043D \u0443\u0440\u043E\u0432\u0435\u043D\u044C","ra_Refresh tree":"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0434\u0435\u0440\u0435\u0432\u043E","ra_Expand all nodes":"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0441\u0435 \u0443\u0437\u043B\u044B","ra_Deselect all":"\u0423\u0431\u0440\u0430\u0442\u044C \u0432\u044B\u0431\u043E\u0440 \u0432\u0435\u0437\u0434\u0435","ra_Select all":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435","ra_%s object(s) processed":"\u041E\u0431\u044A\u0435\u043A\u0442\u043E\u0432 \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u043D\u043E: %s","ra_Invalid structure":"\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u0430","ra_%s was imported":"%s \u0431\u044B\u043B \u0438\u043C\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u043D","ra_Failed to open JSON File":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0444\u0430\u0439\u043B JSON","ra_Only following structures of objects are available:":"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B \u0442\u043E\u043B\u044C\u043A\u043E \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u044B \u043E\u0431\u044A\u0435\u043A\u0442\u043E\u0432:","ra_Folder \u2192 State":"\u041F\u0430\u043F\u043A\u0430 \u2192 \u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435","ra_Folder \u2192 Channel \u2192 State":"\u041F\u0430\u043F\u043A\u0430 \u2192 \u041A\u0430\u043D\u0430\u043B \u2192 \u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435","ra_Folder \u2192 Device \u2192 Channel \u2192 State":"\u041F\u0430\u043F\u043A\u0430 \u2192 \u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u2192 \u041A\u0430\u043D\u0430\u043B \u2192 \u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435","ra_Device \u2192 Channel \u2192 State":"\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u2192 \u041A\u0430\u043D\u0430\u043B \u2192 \u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435","ra_Channel \u2192 State":"\u041A\u0430\u043D\u0430\u043B \u2192 \u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':"\u041D\u0435-\u044D\u043A\u0441\u043F\u0435\u0440\u0442\u044B \u043C\u043E\u0433\u0443\u0442 \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C \u043D\u043E\u0432\u044B\u0435 \u043E\u0431\u044A\u0435\u043A\u0442\u044B \u0442\u043E\u043B\u044C\u043A\u043E \u0432 \xAB0_userdata.0\xBB \u0438\u043B\u0438 \xABalias.0\xBB.",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':"\u042D\u043A\u0441\u043F\u0435\u0440\u0442\u044B \u043C\u043E\u0433\u0443\u0442 \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442\u044B \u0432\u0435\u0437\u0434\u0435, \u043A\u0440\u043E\u043C\u0435 \u0432\u0442\u043E\u0440\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F (\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \xABvis.0\xBB \u0438\u043B\u0438 \xABjavascript.0\xBB).",ra_expertMode:"\u042D\u043A\u0441\u043F\u0435\u0440\u0442\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C","ra_On weekdays":"\u041D\u0430 \u0432\u044B\u0445\u043E\u0434\u043D\u044B\u0445","ra_Drop the files here...":"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u0441\u044E\u0434\u0430 ...","ra_Drag 'n' drop some files here, or click to select files":"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0441\u044E\u0434\u0430 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0444\u0430\u0439\u043B\u043E\u0432 \u0438\u043B\u0438 \u0449\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0432\u044B\u0431\u0440\u0430\u0442\u044C \u0444\u0430\u0439\u043B\u044B",ra_Clear:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C","ra_Clear icon":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0437\u043D\u0430\u0447\u043E\u043A",ra_none:"\u043D\u0438\u0447\u0435\u0433\u043E","ra_Select predefined icon":"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u0440\u0435\u0434\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043D\u044B\u0439 \u0437\u043D\u0430\u0447\u043E\u043A","ra_Show lines between rows":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043B\u0438\u043D\u0438\u0438 \u043C\u0435\u0436\u0434\u0443 \u0441\u0442\u0440\u043E\u043A\u0430\u043C\u0438","ra_The page you are looking for was not found":"\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430, \u043A\u043E\u0442\u043E\u0440\u0443\u044E \u0432\u044B \u0438\u0449\u0435\u0442\u0435, \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u0430","ra_Good luck":"\u0423\u0434\u0430\u0447\u0438",'ra_Cannot find "%s"':'\u041D\u0435 \u043C\u043E\u0433\u0443 \u043D\u0430\u0439\u0442\u0438 "%s"','ra_Cannot read "%s"':'\u041D\u0435 \u043C\u043E\u0433\u0443 \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C "%s"',"ra_Back to %s":"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A %s","ra_Background image":"\u0424\u043E\u043D\u043E\u0432\u0430\u044F \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430","ra_View: %s":"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440: %s","ra_Copy content":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435",ra_Filter:"\u0424\u0438\u043B\u044C\u0442\u0440","ra_All objects":"\u0412\u0441\u0435 \u043E\u0431\u044A\u0435\u043A\u0442\u044B","ra_Only selected":"\u0422\u043E\u043B\u044C\u043A\u043E \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435","ra_Change color theme":"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0446\u0432\u0435\u0442\u043E\u0432\u0443\u044E \u0442\u0435\u043C\u0443",ra_daysShortText:"\u0434."}});var kee=_((irt,Jze)=>{Jze.exports={ra_filter_func:"Fun\xE7\xE3o",ra_filter_id:"ID",ra_filter_name:"Nome",ra_filter_role:"Papel (Fun\xE7\xE3o)",ra_filter_room:"Quarto",ra_tooltip_ack:"Confirmado",ra_tooltip_from:"De",ra_tooltip_lc:"\xDAltima altera\xE7\xE3o",ra_tooltip_quality:"Qualidade",ra_tooltip_ts:"Timestamp",ra_tooltip_user:"Usu\xE1rio",ra_tooltip_value:"Valor","ra_Are you sure?":"Voc\xEA tem certeza?",ra_Cancel:"Cancelar",ra_Copied:"Copiado","ra_Copied %s":'"%s" copiado',"ra_Define functions":"Definir fun\xE7\xF5es","ra_Define rooms":"Definir quartos",ra_Error:"Erro",ra_Message:"mensagem",ra_Ok:"Est\xE1 bem","ra_Please select object ID...":"Selecione o ID do objeto ...",ra_Selected:"Selecionado","ra_Unknown error!":"Erro desconhecido!",ra_Value:"Valor",ra_filter_type:"Tipo",ra_invalidConfig:"Configura\xE7\xF5es inv\xE1lidas",ra_otherConfig:"Configura\xE7\xF5es de outro adaptador %s",ra_tooltip_copyState:"Copie o valor do estado",ra_tooltip_customConfig:"Op\xE7\xF5es customizadas",ra_tooltip_deleteObject:"Excluir objeto",ra_tooltip_editObject:"Editar objeto",ra_tooltip_editState:"Edite o valor do estado",ra_filter_customs:"Configura\xE7\xF5es","ra_Listen on all IPs":"Ou\xE7a em todos os IPs",ra_dow_Fr:"Fr",ra_dow_Mo:"Mo",ra_dow_Sa:"Sa",ra_dow_Su:"Su",ra_dow_Th:"\xBA",ra_Save:"Salve \uE051","ra_Save and close":"Salvar e fechar",ra_Close:"Perto","ra_Auto (no custom columns)":"Auto (sem colunas personalizadas)","ra_Transparent dialog":"Di\xE1logo transparente",ra_Width:"Largura",ra_val:"Valor",ra_buttons:"Bot\xF5es","ra_Configure visible columns":"Configurar colunas vis\xEDveis","ra_Cannot update attribute, because not found in the object":"N\xE3o \xE9 poss\xEDvel atualizar o atributo, porque n\xE3o foi encontrado no objeto","ra_Edit object field":"Editar campo de objeto","ra_Hide empty folders":"Esconder pastas vazias","ra_Reload files":"Recarregar arquivos","ra_Create folder":"Criar pasta","ra_Upload file":"Subir arquivo","ra_User files":"Arquivos do usu\xE1rio","ra_Confirm deletion of %s":"Confirme a exclus\xE3o de %s","ra_Delete (no confirm for 5 mins)":"Excluir (sem confirma\xE7\xE3o por 5 minutos)",ra_Delete:"Excluir","ra_Toggle expert mode":"Alternar modo especialista","ra_Toggle view mode":"Alternar modo de visualiza\xE7\xE3o",ra_Root:"Raiz","ra_Back to %s":"Voltar para %s","ra_Place your files here or click here to open the browse dialog":"Coloque seus arquivos aqui ou clique aqui para abrir a janela de navega\xE7\xE3o","ra_If no file will be created in the folder, it will disappear after the browser closed":"Se nenhum arquivo for criado na pasta, ele desaparecer\xE1 depois que o navegador for fechado","ra_Folder name":"Nome da pasta","ra_Create new folder in %s":"Crie uma nova pasta em %s","ra_Duplicate name":"Nome duplicado","ra_Invalid parent folder!":"Pasta pai inv\xE1lida!","ra_Drop file here":"Solte o arquivo aqui","ra_Suppress question for next %s minutes":"Suprimir pergunta nos pr\xF3ximos %s minutos","ra_Clear filter":"Filtro limpo",ra_Update:"Atualizar","ra_Load configuration from file":"Carregar configura\xE7\xE3o do arquivo","ra_Save configuration to file":"Salvar configura\xE7\xE3o em arquivo",sc_cron:"CRON",sc_date:"Data",sc_dates:"Dias",sc_dows:"Dia da semana",sc_every:"todos",sc_everyN_dates:"a cada N dias",sc_everyN_dows:"todos os N dias da semana",sc_everyN_hours:"a cada N horas",sc_everyN_minutes:"a cada N minutos",sc_everyN_months:"a cada N meses",sc_everyN_seconds:"a cada N segundos",sc_every_dates:"todo dia",sc_every_dows:"todos os dias da semana",sc_every_hours:"toda hora",sc_every_minutes:"todo minuto",sc_every_months:"todo m\xEAs",sc_every_seconds:"todo segundo",sc_from:"de",sc_hours:"horas",sc_interval:"intervalo",sc_intervalBetween:"intervalo entre",sc_minutes:"minutos",sc_months:"meses",sc_once:"uma vez",sc_period:"per\xEDodo",sc_seconds:"segundos",sc_simple:"simples",sc_specific:"tempo espec\xEDfico",sc_specific_dates:"datas espec\xEDficas",sc_specific_dows:"dia espec\xEDfico de semanas",sc_specific_hours:"horas espec\xEDficas",sc_specific_minutes:"minutos espec\xEDficos",sc_specific_months:"meses espec\xEDficos",sc_specific_seconds:"segundos espec\xEDficos",sc_time:"tempo",sc_to:"para",sc_wizard:"assistente",sch_all:"tudo",sch_astroDay:"dia astral",sch_astroNight:"noite astral",sch_astro_dawn:"amanhecer",sch_astro_dusk:"anoitecer",sch_astro_goldenHour:"hora dourada",sch_astro_goldenHourEnd:"Fim da hora dourada",sch_astro_nadir:"nadir",sch_astro_nauticalDawn:"Amanhecer n\xE1utico",sch_astro_nauticalDusk:"Anoitecer n\xE1utico",sch_astro_night:"noite",sch_astro_nightEnd:"fim da noite",sch_astro_solarNoon:"meio-dia solar",sch_astro_sunrise:"nascer do sol",sch_astro_sunriseEnd:"fim do nascer do sol",sch_astro_sunset:"p\xF4r do sol",sch_astro_sunsetStart:"in\xEDcio do p\xF4r do sol",sch_at:"\xE0s",sch_desc_atTime:"em %s",sch_desc_everyDay:"todo dia",sch_desc_everyHour:"toda hora",sch_desc_everyMinute:"todo minuto",sch_desc_everyMonth:"todo m\xEAs",sch_desc_everyNDay:"a cada %s dias",sch_desc_everyNHours:"a cada %s horas",sch_desc_everyNMinutes:"a cada %s minutos",sch_desc_everyNMonths:"a cada %s meses",sch_desc_everyNWeeks:"a cada %s semanas",sch_desc_everyNYears:"a cada %s anos",sch_desc_everyWeek:"toda semana",sch_desc_everyYear:"todo ano",sch_desc_intervalFromTo:"de %s para %s",sch_desc_never:"nunca",sch_desc_onDate:"em %s de %s",sch_desc_onDates:"em %s e %s de",sch_desc_onEveryDate:"em toda data de",sch_desc_onMonth:"%s",sch_desc_onMonths:"%s e %s",sch_desc_onWeekday:"em %s",sch_desc_onWeekdays:"em %s e %s",sch_desc_onWeekends:"nos fins de semana",sch_desc_onWorkdays:"em dias \xFAteis",sch_desc_onceInPast:"n\xE3o ser\xE1 mais executado, porque o come\xE7o est\xE1 no passado",sch_desc_once_on:"em %s",sch_desc_validFrom:"de %s",sch_desc_validFromTo:"Executar de at\xE9",sch_desc_validTo:"at\xE9 %s",sch_every:"cada",sch_exactTime:"tempo espec\xEDfico",sch_from:"de",sch_fromTo:"de a\xB4t",sch_intervalTime:"tempo de intervalo",sch_invert:"invertido",sch_no_one:"nenhum",sch_on:"em",sch_period:"per\xEDodo",sch_periodDaily:"diariamente",sch_periodDates:"datas",sch_periodDay:"dia",sch_periodEvery:"todos",sch_periodEveryDay:"todo dia",sch_periodEveryMonth:"todo m\xEAs",sch_periodEveryWeek:"toda semana",sch_periodEveryYear:"todo ano",sch_periodHours:"horas",sch_periodMinutes:"minutos",sch_periodMonth:"m\xEAs",sch_periodMonthly:"por m\xEAs",sch_periodOnce:"uma vez",sch_periodSpecificMonths:"meses espec\xEDficos",sch_periodWeek:"semana",sch_periodWeekdays:"dias \xFAteis",sch_periodWeekend:"final de semana",sch_periodWeekly:"semanal",sch_periodWorkdays:"dias \xFAteis",sch_periodYear:"ano",sch_periodYearly:"anual",sch_specificTime:"tempo espec\xEDfico",sch_time:"tempo",sch_to:"para",sch_valid:"v\xE1lido",sch_validFrom:"de",sch_validTo:"para",sch_wholeDay:"dia inteiro",sch_yearEveryMonth:"todo m\xEAs","ra_Define schedule...":"Definir programa\xE7\xE3o ...",ra_Repeat:"Repita","ra_use seconds":"use segundos",ra_close:"fechar",ra_dow_Tu:"Tu","ra_Toggle the states view":"Alternar a visualiza\xE7\xE3o dos estados","ra_Add new child object to selected parent":"Adicionar novo objeto filho ao pai selecionado","ra_Add objects tree from JSON file":"Adicionar \xE1rvore de objetos do arquivo JSON","ra_Save objects tree as JSON file":"Salvar \xE1rvore de objetos como arquivo JSON",ra_Objects:"Objetos",ra_States:"Estados",ra_object_changed_by_user:"Objeto alterado pela \xFAltima vez em",ra_object_changed_by:"Objeto alterado por",ra_state_changed_from:"Objeto alterado de",ra_state_changed_by:"Estado alterado por",ra_aclOwner_read_object:"O propriet\xE1rio pode ler o objeto",ra_aclOwner_read_state:"O propriet\xE1rio pode ler o estado",ra_aclOwner_write_object:"O propriet\xE1rio pode escrever o objeto",ra_aclOwner_write_state:"O propriet\xE1rio pode escrever o estado",ra_aclGroup_read_object:"O grupo pode ler o objeto",ra_aclGroup_read_state:"O grupo pode ler o estado",ra_aclGroup_write_object:"O grupo pode escrever o objeto",ra_aclGroup_write_state:"O grupo pode escrever o estado",ra_aclEveryone_read_object:"Todos podem ler objetos",ra_aclEveryone_read_state:"Todos podem ler o estado",ra_aclEveryone_write_object:"Todos podem escrever objetos",ra_aclEveryone_write_state:"Todos podem escrever o estado","ra_Folders always first":"Pastas sempre primeiro",ra_changedFrom:"Mudou de",ra_qualityCode:"C\xF3digo de qualidade",ra_timestamp:"Timestamp",ra_lastChange:"\xDAltima mudan\xE7a","ra_Owner group":"Grupo propriet\xE1rio","ra_Owner user":"Usu\xE1rio propriet\xE1rio",ra_Create:"Crio","ra_Changed from":"Mudou de","ra_Quality code":"Qualidade",ra_Timestamp:"Timestamp","ra_Last change":"\xDAltima mudan\xE7a","ra_Collapse all nodes":"Recolher todos os n\xF3s","ra_Edit custom config":"Editar configura\xE7\xE3o personalizada","ra_Collapse one step node":"Recolher um n\xEDvel","ra_Expand one step node":"Expanda um n\xEDvel","ra_Refresh tree":"Atualizar \xE1rvore","ra_Expand all nodes":"Expanda todos os n\xF3s","ra_Deselect all":"Desmarque todos","ra_Select all":"Selecionar tudo","ra_%s object(s) processed":"%s objeto(s) processado(s)","ra_Invalid structure":"Estrutura inv\xE1lida","ra_%s was imported":"%s foi importado","ra_Failed to open JSON File":"Falha ao abrir arquivo JSON","ra_Only following structures of objects are available:":"Apenas as seguintes estruturas de objetos est\xE3o dispon\xEDveis:","ra_Folder \u2192 State":"Pasta \u2192 Estado","ra_Folder \u2192 Channel \u2192 State":"Pasta \u2192 Canal \u2192 Estado","ra_Folder \u2192 Device \u2192 Channel \u2192 State":"Pasta \u2192 Dispositivo \u2192 Canal \u2192 Estado","ra_Device \u2192 Channel \u2192 State":"Dispositivo \u2192 Canal \u2192 Estado","ra_Channel \u2192 State":"Canal \u2192 Estado",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Os n\xE3o especialistas podem criar novos objetos apenas em "0_userdata.0" ou "alias.0".','ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Os especialistas podem criar objetos em qualquer lugar, exceto no segundo n\xEDvel (por exemplo, "vis.0" ou "javascript.0").',ra_expertMode:"Modo especialista","ra_On weekdays":"Nos dias \xFAteis","ra_Drop the files here...":"Solte o arquivo aqui ...","ra_Drag 'n' drop some files here, or click to select files":"Arraste e solte alguns arquivos aqui ou clique para selecionar arquivos",ra_Clear:"Excluir","ra_Clear icon":"\xCDcone de limpeza",ra_none:"Nenhum","ra_Select predefined icon":"Selecione o \xEDcone predefinido","ra_Show lines between rows":"Mostrar linhas entre as linhas","ra_The page you are looking for was not found":"A p\xE1gina que voc\xEA est\xE1 procurando n\xE3o foi encontrada","ra_Good luck":"Boa sorte",'ra_Cannot find "%s"':'N\xE3o foi poss\xEDvel encontrar "%s"','ra_Cannot read "%s"':'N\xE3o \xE9 poss\xEDvel ler "%s"',"ra_Back to %s":"Voltar para %s","ra_Background image":"Imagem de fundo","ra_View: %s":"Visualizar: %s","ra_Copy content":"Copiar conte\xFAdo",ra_Filter:"Filtro","ra_All objects":"Todos os objetos","ra_Only selected":"Apenas selecionado","ra_Change color theme":"Alterar tema de cores",ra_daysShortText:"d."}});var Pee=_((srt,Xze)=>{Xze.exports={ra_filter_func:"Functie",ra_filter_id:"ID",ra_filter_name:"Naam",ra_filter_role:"Rol",ra_filter_room:"Kamer",ra_tooltip_ack:"Erkende vlag",ra_tooltip_from:"Van",ra_tooltip_lc:"Laatst gewijzigd",ra_tooltip_ts:"Tijdstempel",ra_tooltip_user:"Gebruiker",ra_tooltip_value:"Waarde","ra_Are you sure?":"Weet je het zeker?",ra_Cancel:"Annuleer",ra_Copied:"Gekopieerd","ra_Copied %s":'"%s" gekopieerd',"ra_Define functions":"Definieer functies","ra_Define rooms":"Definieer kamers",ra_Error:"Fout",ra_Message:"Bericht",ra_Ok:"OK","ra_Please select object ID...":"Selecteer object-ID ...",ra_Selected:"Geselecteerd","ra_Unknown error!":"Onbekende fout!",ra_Value:"Waarde",ra_filter_type:"Type",ra_invalidConfig:"Ongeldige instellingen",ra_otherConfig:"Instellingen van andere adapter %s",ra_tooltip_copyState:"Kopieer de statuswaarde",ra_tooltip_customConfig:"Aangepaste instellingen",ra_tooltip_deleteObject:"Object verwijderen",ra_tooltip_editObject:"Object bewerken",ra_tooltip_editState:"Bewerk de statuswaarde",ra_filter_customs:"Instellingen",ra_tooltip_quality:"Kwaliteit","ra_Listen on all IPs":"Luister op alle IP's",ra_dow_Fr:"Fr",ra_dow_Mo:"Mo",ra_dow_Sa:"Za",ra_dow_Su:"Zo",ra_dow_Th:"Th",ra_Save:"Sparen","ra_Save and close":"Opslaan en afsluiten",ra_Close:"Dichtbij","ra_Auto (no custom columns)":"Auto (geen aangepaste kolommen)","ra_Transparent dialog":"Transparant dialoogvenster",ra_Width:"Breedte",ra_val:"Waarde",ra_buttons:"Toetsen","ra_Configure visible columns":"Configureer zichtbare kolommen","ra_Cannot update attribute, because not found in the object":"Kan kenmerk niet bijwerken, omdat het niet in het object is gevonden","ra_Edit object field":"Bewerk objectveld","ra_Hide empty folders":"Verberg lege mappen","ra_Reload files":"Laad bestanden opnieuw","ra_Create folder":"Map aanmaken","ra_Upload file":"Upload bestand","ra_User files":"Gebruikersbestanden","ra_Confirm deletion of %s":"Bevestig het verwijderen van %s","ra_Delete (no confirm for 5 mins)":"Verwijderen (geen bevestiging gedurende 5 minuten)",ra_Delete:"Verwijderen","ra_Toggle expert mode":"Schakel tussen expertmodus","ra_Toggle view mode":"Schakelen tussen weergavemodus",ra_Root:"Wortel","ra_Back to %s":"Terug naar %s","ra_Place your files here or click here to open the browse dialog":"Plaats uw bestanden hier of klik hier om het bladervenster te openen","ra_If no file will be created in the folder, it will disappear after the browser closed":"Als er geen bestand in de map wordt gemaakt, verdwijnt het nadat de browser is gesloten","ra_Folder name":"Naam van de map","ra_Create new folder in %s":"Maak een nieuwe map in %s","ra_Duplicate name":"Dubbele naam","ra_Invalid parent folder!":"Ongeldige bovenliggende map!","ra_Drop file here":"Zet het bestand hier neer","ra_Suppress question for next %s minutes":"Vraag de volgende %s minuten onderdrukken","ra_Clear filter":"Filter wissen",ra_Update:"Bijwerken","ra_Load configuration from file":"Laad configuratie uit bestand","ra_Save configuration to file":"Sla de configuratie op in een bestand",sc_cron:"CRON",sc_date:"Datum",sc_dates:"data",sc_dows:"Dag van de week",sc_every:"elk",sc_everyN_dates:"elke N dagen",sc_everyN_dows:"elke N dag van de week",sc_everyN_hours:"elke N uur",sc_everyN_minutes:"elke N minuten",sc_everyN_months:"elke N maanden",sc_everyN_seconds:"elke N seconden",sc_every_dates:"elke dag",sc_every_dows:"elke dag van de week",sc_every_hours:"elk uur",sc_every_minutes:"elke minuut",sc_every_months:"elke maand",sc_every_seconds:"elke seconde",sc_from:"Van",sc_hours:"uren",sc_interval:"Interval",sc_intervalBetween:"Interval tussen",sc_minutes:"Notulen",sc_months:"maanden",sc_once:"Een keer",sc_period:"Periode",sc_seconds:"seconden",sc_simple:"Gemakkelijk",sc_specific:"Specifieke tijd",sc_specific_dates:"specifieke data",sc_specific_dows:"specifieke dag van weken",sc_specific_hours:"specifieke uren",sc_specific_minutes:"specifieke minuten",sc_specific_months:"specifieke maanden",sc_specific_seconds:"specifieke seconden",sc_time:"Tijd",sc_to:"Naar",sc_wizard:"tovenaar",sch_all:"allemaal",sch_astroDay:"Astro-dag",sch_astroNight:"Astro-nacht",sch_astro_dawn:"Dageraad",sch_astro_dusk:"Schemer",sch_astro_goldenHour:"gouden uur",sch_astro_goldenHourEnd:"Gouden uur einde",sch_astro_nadir:"Nadir",sch_astro_nauticalDawn:"Nautische dageraad",sch_astro_nauticalDusk:"Nautische schemering",sch_astro_night:"Nacht",sch_astro_nightEnd:"Nacht einde",sch_astro_solarNoon:"Zonne middag",sch_astro_sunrise:"zonsopkomst",sch_astro_sunriseEnd:"Sunrise einde",sch_astro_sunset:"Zonsondergang",sch_astro_sunsetStart:"Zonsondergang start",sch_at:"Bij",sch_desc_atTime:"op %s",sch_desc_everyDay:"elke dag",sch_desc_everyHour:"elk uur",sch_desc_everyMinute:"elke minuut",sch_desc_everyMonth:"elke maand",sch_desc_everyNDay:"elke %s dag",sch_desc_everyNHours:"elke %s uur",sch_desc_everyNMinutes:"elke %s minuten",sch_desc_everyNMonths:"elke %s maanden",sch_desc_everyNWeeks:"elke %s weken",sch_desc_everyNYears:"elke %s jaar",sch_desc_everyWeek:"elke week",sch_desc_everyYear:"elk jaar",sch_desc_intervalFromTo:"van %s tot %s",sch_desc_never:"nooit",sch_desc_onDate:"op %s van %s",sch_desc_onDates:"op %s en %s van",sch_desc_onEveryDate:"op elke datum van",sch_desc_onMonth:"%s",sch_desc_onMonths:"%s en %s",sch_desc_onWeekday:"op %s",sch_desc_onWeekdays:"op %s en %s",sch_desc_onWeekends:"in het weekend",sch_desc_onWorkdays:"op werkdagen",sch_desc_onceInPast:"zal niet meer worden uitgevoerd, omdat start verleden tijd is",sch_desc_once_on:"op %s",sch_desc_validFrom:"van %s",sch_desc_validFromTo:"Uitvoeren van tot",sch_desc_validTo:"tot %s",sch_every:"elk",sch_exactTime:"Specifieke tijd",sch_from:"van",sch_fromTo:"Van naar",sch_intervalTime:"Interval tijd",sch_invert:"omkeren",sch_no_one:"geen",sch_on:"Aan",sch_period:"Periode",sch_periodDaily:"Dagelijks",sch_periodDates:"data",sch_periodDay:"Dag",sch_periodEvery:"elk",sch_periodEveryDay:"Elke dag",sch_periodEveryMonth:"Elke maand",sch_periodEveryWeek:"Elke week",sch_periodEveryYear:"Elk jaar",sch_periodHours:"uren",sch_periodMinutes:"Notulen",sch_periodMonth:"maand",sch_periodMonthly:"Maandelijks",sch_periodOnce:"Een keer",sch_periodSpecificMonths:"Specifieke maanden",sch_periodWeek:"Week",sch_periodWeekdays:"Doordeweekse dagen",sch_periodWeekend:"Weekend",sch_periodWeekly:"Wekelijks",sch_periodWorkdays:"werkdagen",sch_periodYear:"Jaar",sch_periodYearly:"jaar-",sch_specificTime:"Specifieke tijd",sch_time:"Tijd",sch_to:"naar",sch_valid:"Geldig",sch_validFrom:"van",sch_validTo:"naar",sch_wholeDay:"Hele dag",sch_yearEveryMonth:"elke maand","ra_Define schedule...":"Schema defini\xEBren ...",ra_Repeat:"Herhaling","ra_use seconds":"gebruik seconden",ra_close:"dichtbij",ra_dow_Tu:"Tu","ra_Toggle the states view":"Schakel de statusweergave in of uit","ra_Add new child object to selected parent":"Voeg een nieuw kindobject toe aan het geselecteerde bovenliggende object","ra_Add objects tree from JSON file":"Objectenboom toevoegen vanuit JSON-bestand","ra_Save objects tree as JSON file":"Sla de objectenboom op als JSON-bestand",ra_Objects:"Voorwerpen",ra_States:"Staten",ra_object_changed_by_user:"Object voor het laatst gewijzigd om",ra_object_changed_by:"Object veranderd door",ra_state_changed_from:"Object veranderd van",ra_state_changed_by:"Staat veranderd door",ra_aclOwner_read_object:"Eigenaar kan object lezen",ra_aclOwner_read_state:"Eigenaar kan staat lezen",ra_aclOwner_write_object:"Eigenaar kan object schrijven",ra_aclOwner_write_state:"Eigenaar kan staat schrijven",ra_aclGroup_read_object:"Groep kan object lezen",ra_aclGroup_read_state:"Groep kan status lezen",ra_aclGroup_write_object:"Groep kan object schrijven",ra_aclGroup_write_state:"Groep kan staat schrijven",ra_aclEveryone_read_object:"Iedereen kan object lezen",ra_aclEveryone_read_state:"Iedereen kan staat lezen",ra_aclEveryone_write_object:"Iedereen kan object schrijven",ra_aclEveryone_write_state:"Iedereen kan staat schrijven","ra_Folders always first":"Mappen altijd eerst",ra_changedFrom:"Veranderd van",ra_qualityCode:"Kwaliteitscode",ra_timestamp:"Tijdstempel",ra_lastChange:"Laatste wijziging","ra_Owner group":"Eigenaarsgroep","ra_Owner user":"Eigenaar gebruiker",ra_Create:"Cre\xEBer","ra_Changed from":"Veranderd van","ra_Quality code":"Kwaliteit",ra_Timestamp:"Tijdstempel","ra_Last change":"Laatste wijziging","ra_Collapse all nodes":"Vouw alle knooppunten samen","ra_Edit custom config":"Bewerk aangepaste config","ra_Collapse one step node":"E\xE9n niveau samenvouwen","ra_Expand one step node":"Vouw een niveau uit","ra_Refresh tree":"Vernieuw de boom","ra_Expand all nodes":"Vouw alle knooppunten uit","ra_Deselect all":"Deselecteer alles","ra_Select all":"Selecteer alles","ra_%s object(s) processed":"%s object(en) verwerkt","ra_Invalid structure":"Ongeldige structuur","ra_%s was imported":"%s is ge\xEFmporteerd","ra_Failed to open JSON File":"JSON-bestand kan niet worden geopend","ra_Only following structures of objects are available:":"Alleen de volgende structuren van objecten zijn beschikbaar:","ra_Folder \u2192 State":"Map \u2192 Staat","ra_Folder \u2192 Channel \u2192 State":"Map \u2192 Kanaal \u2192 Staat","ra_Folder \u2192 Device \u2192 Channel \u2192 State":"Map \u2192 Apparaat \u2192 Kanaal \u2192 Staat","ra_Device \u2192 Channel \u2192 State":"Apparaat \u2192 Kanaal \u2192 Staat","ra_Channel \u2192 State":"Kanaal \u2192 Staat",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Niet-experts mogen alleen nieuwe objecten maken in "0_userdata.0" of "alias.0".','ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'De experts kunnen overal objecten maken, behalve vanaf het tweede niveau (bijv. "Vis.0" of "javascript.0").',ra_expertMode:"Expert modus","ra_On weekdays":"Op weekdagen","ra_Drop the files here...":"Zet het bestand hier neer...","ra_Drag 'n' drop some files here, or click to select files":"Sleep enkele bestanden hierheen, of klik om bestanden te selecteren",ra_Clear:"Verwijderen","ra_Clear icon":"Pictogram wissen",ra_none:"geen","ra_Select predefined icon":"Selecteer voorgedefinieerd pictogram","ra_Show lines between rows":"Toon lijnen tussen rijen","ra_The page you are looking for was not found":"De pagina die u zoekt is niet gevonden","ra_Good luck":"Veel geluk",'ra_Cannot find "%s"':'Kan "%s" niet vinden','ra_Cannot read "%s"':'Kan "%s" niet lezen',"ra_Back to %s":"Terug naar %s","ra_Background image":"Achtergrond afbeelding","ra_View: %s":"Bekijk: %s","ra_Copy content":"Inhoud kopi\xEBren",ra_Filter:"Filter","ra_All objects":"Alle objecten","ra_Only selected":"Alleen geselecteerd","ra_Change color theme":"Kleurthema wijzigen",ra_daysShortText:"d."}});var Oee=_((urt,Zze)=>{Zze.exports={ra_filter_func:"Une fonction",ra_filter_id:"ID",ra_filter_name:"Pr\xE9nom",ra_filter_role:"R\xF4le",ra_filter_room:"Pi\xE8ce",ra_tooltip_ack:"Drapeau reconnu",ra_tooltip_from:"De",ra_tooltip_lc:"Derni\xE8re modification",ra_tooltip_quality:"Qualit\xE9",ra_tooltip_ts:"Horodatage",ra_tooltip_user:"Utilisateur",ra_tooltip_value:"Valeur","ra_Are you sure?":"\xCAtes-vous s\xFBr?",ra_Cancel:"Annuler",ra_Copied:"Copi\xE9","ra_Copied %s":'"%s" copi\xE9',"ra_Define functions":"D\xE9finir des fonctions","ra_Define rooms":"D\xE9finir des pi\xE8ces",ra_Error:"Erreur",ra_Message:"Message",ra_Ok:"D'accord","ra_Please select object ID...":"Veuillez s\xE9lectionner l'ID d'objet ...",ra_Selected:"Choisi","ra_Unknown error!":"Erreur inconnue!",ra_Value:"Valeur",ra_filter_type:"Type",ra_invalidConfig:"Param\xE8tres invalides",ra_otherConfig:"Param\xE8tres d'un autre adaptateur %s",ra_tooltip_copyState:"Copiez la valeur d'\xE9tat",ra_tooltip_customConfig:"Param\xE8tres personnalis\xE9s",ra_tooltip_deleteObject:"Supprimer un objet",ra_tooltip_editObject:"Modifier l'objet",ra_tooltip_editState:"Modifier la valeur d'\xE9tat",ra_filter_customs:"Param\xE8tres","ra_Listen on all IPs":"\xC9coutez sur toutes les adresses IP",ra_dow_Fr:"Fr",ra_dow_Mo:"Mo",ra_dow_Sa:"Sa",ra_dow_Su:"Su",ra_dow_Th:"Th",ra_Save:"sauver","ra_Save and close":"Sauver et fermer",ra_Close:"Fermer","ra_Auto (no custom columns)":"Auto (pas de colonnes personnalis\xE9es)","ra_Transparent dialog":"Dialogue transparent",ra_Width:"Largeur",ra_val:"Valeur",ra_buttons:"Boutons","ra_Configure visible columns":"Configurer les colonnes visibles","ra_Cannot update attribute, because not found in the object":"Impossible de mettre \xE0 jour l'attribut, car il est introuvable dans l'objet","ra_Edit object field":"Modifier le champ d'objet","ra_Hide empty folders":"Masquer les dossiers vides","ra_Reload files":"Recharger les fichiers","ra_Create folder":"Cr\xE9er le dossier","ra_Upload file":"T\xE9l\xE9verser un fichier","ra_User files":"Fichiers utilisateurs","ra_Confirm deletion of %s":"Confirmer la suppression de %s","ra_Delete (no confirm for 5 mins)":"Supprimer (pas de confirmation pendant 5 minutes)",ra_Delete:"Supprimer","ra_Toggle expert mode":"Basculer en mode expert","ra_Toggle view mode":"Basculer le mode d'affichage",ra_Root:"Racine","ra_Back to %s":"Retour \xE0 %s","ra_Place your files here or click here to open the browse dialog":"Placez vos fichiers ici ou cliquez ici pour ouvrir la bo\xEEte de dialogue de navigation","ra_If no file will be created in the folder, it will disappear after the browser closed":"Si aucun fichier ne sera cr\xE9\xE9 dans le dossier, il dispara\xEEtra apr\xE8s la fermeture du navigateur","ra_Folder name":"Nom de dossier","ra_Create new folder in %s":"Cr\xE9er un nouveau dossier dans %s","ra_Duplicate name":"Nom en double","ra_Invalid parent folder!":"Dossier parent non valide!","ra_Drop file here":"D\xE9poser le fichier ici","ra_Suppress question for next %s minutes":"Supprimer la question pour les %s prochaines minutes","ra_Clear filter":"Effacer le filtre",ra_Update:"Mise \xE0 jour","ra_Load configuration from file":"Charger la configuration \xE0 partir du fichier","ra_Save configuration to file":"Enregistrer la configuration dans un fichier",sc_cron:"CRON",sc_date:"Date",sc_dates:"Rendez-vous",sc_dows:"Jour de la semaine",sc_every:"Chaque",sc_everyN_dates:"tous les N jours",sc_everyN_dows:"tous les N jours de la semaine",sc_everyN_hours:"toutes les N heures",sc_everyN_minutes:"toutes les N minutes",sc_everyN_months:"tous les N mois",sc_everyN_seconds:"toutes les N secondes",sc_every_dates:"tous les jours",sc_every_dows:"Chaque jour de la semaine",sc_every_hours:"Toutes les heures",sc_every_minutes:"chaque minute",sc_every_months:"chaque mois",sc_every_seconds:"chaque seconde",sc_from:"De",sc_hours:"Heures",sc_interval:"Intervalle",sc_intervalBetween:"Intervalle entre",sc_minutes:"Minutes",sc_months:"mois",sc_once:"Une fois que",sc_period:"P\xE9riode",sc_seconds:"Secondes",sc_simple:"Facile",sc_specific:"Temps sp\xE9cifique",sc_specific_dates:"dates sp\xE9cifiques",sc_specific_dows:"jour sp\xE9cifique de semaines",sc_specific_hours:"heures sp\xE9cifiques",sc_specific_minutes:"minutes sp\xE9cifiques",sc_specific_months:"mois sp\xE9cifiques",sc_specific_seconds:"secondes sp\xE9cifiques",sc_time:"Temps",sc_to:"\xC0",sc_wizard:"sorcier",sch_all:"tout",sch_astroDay:"Journ\xE9e astronomique",sch_astroNight:"Nuit astronomique",sch_astro_dawn:"Aube",sch_astro_dusk:"Cr\xE9puscule",sch_astro_goldenHour:"Heure d'or",sch_astro_goldenHourEnd:"Fin de l'heure d'or",sch_astro_nadir:"Nadir",sch_astro_nauticalDawn:"Aube nautique",sch_astro_nauticalDusk:"Cr\xE9puscule nautique",sch_astro_night:"Nuit",sch_astro_nightEnd:"Fin de nuit",sch_astro_solarNoon:"Midi solaire",sch_astro_sunrise:"lever du soleil",sch_astro_sunriseEnd:"Fin du lever du soleil",sch_astro_sunset:"Le coucher du soleil",sch_astro_sunsetStart:"Coucher du soleil",sch_at:"\xE0",sch_desc_atTime:"\xE0 %s",sch_desc_everyDay:"tous les jours",sch_desc_everyHour:"Toutes les heures",sch_desc_everyMinute:"chaque minute",sch_desc_everyMonth:"chaque mois",sch_desc_everyNDay:"chaque %s jour",sch_desc_everyNHours:"chaque %s heures",sch_desc_everyNMinutes:"toutes les %s minutes",sch_desc_everyNMonths:"tous les %s mois",sch_desc_everyNWeeks:"chaque %s semaines",sch_desc_everyNYears:"tous les %s ans",sch_desc_everyWeek:"toutes les semaines",sch_desc_everyYear:"chaque ann\xE9e",sch_desc_intervalFromTo:"de %s \xE0 %s",sch_desc_never:"jamais",sch_desc_onDate:"sur %s de %s",sch_desc_onDates:"sur %s et %s de",sch_desc_onEveryDate:"\xE0 chaque date de",sch_desc_onMonth:"%s",sch_desc_onMonths:"%s et %s",sch_desc_onWeekday:"sur %s",sch_desc_onWeekdays:"sur %s et %s",sch_desc_onWeekends:"les weekends",sch_desc_onWorkdays:"les jours ouvrables",sch_desc_onceInPast:"ne sera plus ex\xE9cut\xE9, car start est dans le pass\xE9",sch_desc_once_on:"sur %s",sch_desc_validFrom:"de %s",sch_desc_validFromTo:"Ex\xE9cuter de \xE0",sch_desc_validTo:"\xE0 %s",sch_every:"chaque",sch_exactTime:"Temps sp\xE9cifique",sch_from:"de",sch_fromTo:"De \xE0",sch_intervalTime:"Temps d'interval",sch_invert:"inverser",sch_no_one:"aucun",sch_on:"sur",sch_period:"P\xE9riode",sch_periodDaily:"du quotidien",sch_periodDates:"Rendez-vous",sch_periodDay:"journ\xE9e",sch_periodEvery:"Chaque",sch_periodEveryDay:"Tous les jours",sch_periodEveryMonth:"Chaque mois",sch_periodEveryWeek:"Toutes les semaines",sch_periodEveryYear:"Chaque ann\xE9e",sch_periodHours:"Heures",sch_periodMinutes:"Minutes",sch_periodMonth:"mois",sch_periodMonthly:"Mensuel",sch_periodOnce:"Une fois que",sch_periodSpecificMonths:"Mois sp\xE9cifiques",sch_periodWeek:"La semaine",sch_periodWeekdays:"Jours de la semaine",sch_periodWeekend:"Weekend",sch_periodWeekly:"Hebdomadaire",sch_periodWorkdays:"Jours ouvrables",sch_periodYear:"Ann\xE9e",sch_periodYearly:"Annuel",sch_specificTime:"Temps sp\xE9cifique",sch_time:"Temps",sch_to:"\xE0",sch_valid:"Valide",sch_validFrom:"de",sch_validTo:"\xE0",sch_wholeDay:"Toute la journ\xE9e",sch_yearEveryMonth:"chaque mois","ra_Define schedule...":"D\xE9finir le calendrier ...",ra_Repeat:"R\xE9p\xE9ter","ra_use seconds":"utiliser les secondes",ra_close:"Fermer",ra_dow_Tu:"Tu","ra_Toggle the states view":"Basculer la vue des \xE9tats","ra_Add new child object to selected parent":"Ajouter un nouvel objet enfant au parent s\xE9lectionn\xE9","ra_Add objects tree from JSON file":"Ajouter une arborescence d'objets \xE0 partir d'un fichier JSON","ra_Save objects tree as JSON file":"Enregistrer l'arborescence des objets en tant que fichier JSON",ra_Objects:"Objets",ra_States:"\xC9tats",ra_object_changed_by_user:"Objet modifi\xE9 pour la derni\xE8re fois \xE0",ra_object_changed_by:"Objet modifi\xE9 par",ra_state_changed_from:"Objet chang\xE9 de",ra_state_changed_by:"\xC9tat modifi\xE9 par",ra_aclOwner_read_object:"Le propri\xE9taire peut lire l'objet",ra_aclOwner_read_state:"Le propri\xE9taire peut lire l'\xE9tat",ra_aclOwner_write_object:"Le propri\xE9taire peut \xE9crire un objet",ra_aclOwner_write_state:"Le propri\xE9taire peut \xE9crire l'\xE9tat",ra_aclGroup_read_object:"Le groupe peut lire l'objet",ra_aclGroup_read_state:"Le groupe peut lire l'\xE9tat",ra_aclGroup_write_object:"Le groupe peut \xE9crire un objet",ra_aclGroup_write_state:"Le groupe peut \xE9crire l'\xE9tat",ra_aclEveryone_read_object:"Tout le monde peut lire un objet",ra_aclEveryone_read_state:"Tout le monde peut lire l'\xE9tat",ra_aclEveryone_write_object:"Tout le monde peut \xE9crire un objet",ra_aclEveryone_write_state:"Tout le monde peut \xE9crire l'\xE9tat","ra_Folders always first":"Les dossiers toujours en premier",ra_changedFrom:"Chang\xE9 de",ra_qualityCode:"Code de qualit\xE9",ra_timestamp:"Horodatage",ra_lastChange:"Dernier changement","ra_Owner group":"Groupe propri\xE9taire","ra_Owner user":"Utilisateur propri\xE9taire",ra_Create:"Cr\xE9er","ra_Changed from":"Chang\xE9 de","ra_Quality code":"Qualit\xE9",ra_Timestamp:"Horodatage","ra_Last change":"Dernier changement","ra_Collapse all nodes":"R\xE9duire tous les n\u0153uds","ra_Edit custom config":"Modifier la configuration personnalis\xE9e","ra_Collapse one step node":"R\xE9duire d'un niveau","ra_Expand one step node":"D\xE9velopper un niveau","ra_Refresh tree":"Rafra\xEEchir l'arborescence","ra_Expand all nodes":"D\xE9velopper tous les n\u0153uds","ra_Deselect all":"Tout d\xE9selectionner","ra_Select all":"Tout s\xE9lectionner","ra_%s object(s) processed":"%s objet(s) trait\xE9(s)","ra_Invalid structure":"Structure invalide","ra_%s was imported":"%s a \xE9t\xE9 import\xE9","ra_Failed to open JSON File":"\xC9chec de l'ouverture du fichier JSON","ra_Only following structures of objects are available:":"Seules les structures d'objets suivantes sont disponibles:","ra_Folder \u2192 State":"Dossier \u2192 \xC9tat","ra_Folder \u2192 Channel \u2192 State":"Dossier \u2192 Cha\xEEne \u2192 \xC9tat","ra_Folder \u2192 Device \u2192 Channel \u2192 State":"Dossier \u2192 Appareil \u2192 Canal \u2192 \xC9tat","ra_Device \u2192 Channel \u2192 State":"Appareil \u2192 Canal \u2192 \xC9tat","ra_Channel \u2192 State":"Canal \u2192 \xC9tat",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Les non-experts ne peuvent cr\xE9er de nouveaux objets que dans "0_userdata.0" ou "alias.0".','ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Les experts peuvent cr\xE9er des objets partout mais \xE0 partir du deuxi\xE8me niveau (par exemple "vis.0" ou "javascript.0").',ra_expertMode:"Mode expert","ra_On weekdays":"En semaine","ra_Drop the files here...":"D\xE9posez le fichier ici...","ra_Drag 'n' drop some files here, or click to select files":"Glissez-d\xE9posez des fichiers ici, ou cliquez pour s\xE9lectionner des fichiers",ra_Clear:"Effacer","ra_Clear icon":"Effacer l'ic\xF4ne",ra_none:"rien","ra_Select predefined icon":"S\xE9lectionnez l'ic\xF4ne pr\xE9d\xE9finie","ra_Show lines between rows":"Afficher les lignes entre les lignes","ra_The page you are looking for was not found":"La page que vous recherchez n'a pas \xE9t\xE9 trouv\xE9e","ra_Good luck":"Bonne chance",'ra_Cannot find "%s"':'Impossible de trouver "%s"','ra_Cannot read "%s"':'Impossible de lire "%s"',"ra_Back to %s":"Retour \xE0 %s","ra_Background image":"Image de fond","ra_View: %s":"Affichage : %s","ra_Copy content":"Copier le contenu",ra_Filter:"Filtre","ra_All objects":"Tous les objets","ra_Only selected":"Uniquement s\xE9lectionn\xE9","ra_Change color theme":"Changer le th\xE8me de couleur",ra_daysShortText:"j."}});var Ree=_((lrt,Qze)=>{Qze.exports={ra_filter_func:"Funzione",ra_filter_id:"ID",ra_filter_name:"Nome",ra_filter_role:"Ruolo",ra_filter_room:"Camera",ra_tooltip_ack:"Bandiera riconosciuta",ra_tooltip_from:"A partire dal",ra_tooltip_lc:"Ultima modifica",ra_tooltip_quality:"Qualit\xE0",ra_tooltip_ts:"Data e ora",ra_tooltip_user:"Utente",ra_tooltip_value:"Valore","ra_Are you sure?":"Sei sicuro?",ra_Cancel:"Annulla",ra_Copied:"Copiato","ra_Copied %s":'"%s" copiato',"ra_Define functions":"Definire le funzioni","ra_Define rooms":"Definisci le stanze",ra_Error:"Errore",ra_Message:"Messaggio",ra_Ok:"Ok","ra_Please select object ID...":"Seleziona l'ID oggetto ...",ra_Selected:"Selezionato","ra_Unknown error!":"Errore sconosciuto!",ra_Value:"Valore",ra_filter_type:"genere",ra_invalidConfig:"Impostazioni non valide",ra_otherConfig:"Impostazioni dall'altro adattatore %s",ra_tooltip_copyState:"Copia il valore dello stato",ra_tooltip_customConfig:"Impostazioni personalizzate",ra_tooltip_deleteObject:"Elimina oggetto",ra_tooltip_editObject:"Modifica oggetto",ra_tooltip_editState:"Modifica il valore dello stato",ra_filter_customs:"impostazioni","ra_Listen on all IPs":"Ascolta su tutti gli IP",ra_dow_Fr:"fr",ra_dow_Mo:"momento",ra_dow_Sa:"Sa",ra_dow_Su:"su",ra_dow_Th:"th",ra_Save:"Salva","ra_Save and close":"Salva e chiudi",ra_Close:"Vicino","ra_Auto (no custom columns)":"Auto (nessuna colonna personalizzata)","ra_Transparent dialog":"Finestra di dialogo trasparente",ra_Width:"Larghezza",ra_val:"Valore",ra_buttons:"Bottoni","ra_Configure visible columns":"Configura colonne visibili","ra_Cannot update attribute, because not found in the object":"Impossibile aggiornare l'attributo, perch\xE9 non trovato nell'oggetto","ra_Edit object field":"Modifica campo oggetto","ra_Hide empty folders":"Nascondi cartelle vuote","ra_Reload files":"Ricarica i file","ra_Create folder":"Creare una cartella","ra_Upload file":"Caricare un file","ra_User files":"File utente","ra_Confirm deletion of %s":"Conferma l'eliminazione di %s","ra_Delete (no confirm for 5 mins)":"Elimina (nessuna conferma per 5 minuti)",ra_Delete:"Elimina","ra_Toggle expert mode":"Attiva / disattiva la modalit\xE0 esperto","ra_Toggle view mode":"Attiva / disattiva la modalit\xE0 di visualizzazione",ra_Root:"Radice","ra_Back to %s":"Torna a %s","ra_Place your files here or click here to open the browse dialog":"Posiziona i file qui o fai clic qui per aprire la finestra di dialogo Sfoglia","ra_If no file will be created in the folder, it will disappear after the browser closed":"Se nessun file verr\xE0 creato nella cartella, scomparir\xE0 dopo la chiusura del browser","ra_Folder name":"Nome della cartella","ra_Create new folder in %s":"Crea nuova cartella in %s","ra_Duplicate name":"Nome duplicato","ra_Invalid parent folder!":"Cartella principale non valida!","ra_Drop file here":"Trascina il file qui","ra_Suppress question for next %s minutes":"Sopprimi la domanda per i prossimi %s minuti","ra_Clear filter":"Filtro pulito",ra_Update:"Aggiornare","ra_Load configuration from file":"Carica la configurazione dal file","ra_Save configuration to file":"Salva la configurazione su file",sc_cron:"CRON",sc_date:"Data",sc_dates:"Date",sc_dows:"Giorno della settimana",sc_every:"Ogni",sc_everyN_dates:"ogni N giorni",sc_everyN_dows:"ogni N giorno della settimana",sc_everyN_hours:"ogni N ore",sc_everyN_minutes:"ogni N minuti",sc_everyN_months:"ogni N mesi",sc_everyN_seconds:"ogni N secondi",sc_every_dates:"ogni giorno",sc_every_dows:"Tutti i giorni della settimana",sc_every_hours:"ogni ora",sc_every_minutes:"ogni minuto",sc_every_months:"ogni mese",sc_every_seconds:"ogni secondo",sc_from:"A partire dal",sc_hours:"Ore",sc_interval:"Intervallo",sc_intervalBetween:"Intervallo tra",sc_minutes:"Minuti",sc_months:"mesi",sc_once:"Una volta",sc_period:"Periodo",sc_seconds:"secondi",sc_simple:"Semplice",sc_specific:"Orario preciso",sc_specific_dates:"date specifiche",sc_specific_dows:"giorno specifico delle settimane",sc_specific_hours:"orari specifici",sc_specific_minutes:"minuti specifici",sc_specific_months:"mesi specifici",sc_specific_seconds:"secondi specifici",sc_time:"Tempo",sc_to:"Per",sc_wizard:"procedura guidata",sch_all:"tutti",sch_astroDay:"Astro day",sch_astroNight:"Astro night",sch_astro_dawn:"Alba",sch_astro_dusk:"Crepuscolo",sch_astro_goldenHour:"Ora d'oro",sch_astro_goldenHourEnd:"Fine dell'ora d'oro",sch_astro_nadir:"Nadir",sch_astro_nauticalDawn:"Alba nautica",sch_astro_nauticalDusk:"Crepuscolo nautico",sch_astro_night:"Notte",sch_astro_nightEnd:"Fine della notte",sch_astro_solarNoon:"Mezzogiorno solare",sch_astro_sunrise:"Alba",sch_astro_sunriseEnd:"Fine dell'alba",sch_astro_sunset:"Tramonto",sch_astro_sunsetStart:"Inizio del tramonto",sch_at:"a",sch_desc_atTime:"a %s",sch_desc_everyDay:"ogni giorno",sch_desc_everyHour:"ogni ora",sch_desc_everyMinute:"ogni minuto",sch_desc_everyMonth:"ogni mese",sch_desc_everyNDay:"ogni %s giorno",sch_desc_everyNHours:"ogni %s ore",sch_desc_everyNMinutes:"ogni %s minuti",sch_desc_everyNMonths:"ogni %s mesi",sch_desc_everyNWeeks:"ogni %s settimane",sch_desc_everyNYears:"ogni %s anni",sch_desc_everyWeek:"ogni settimana",sch_desc_everyYear:"ogni anno",sch_desc_intervalFromTo:"da %s a %s",sch_desc_never:"mai",sch_desc_onDate:"su %s di %s",sch_desc_onDates:"su %s e %s di",sch_desc_onEveryDate:"in ogni data di",sch_desc_onMonth:"%s",sch_desc_onMonths:"%s e %s",sch_desc_onWeekday:"su %s",sch_desc_onWeekdays:"su %s e %s",sch_desc_onWeekends:"nei finesettimana",sch_desc_onWorkdays:"nei giorni lavorativi",sch_desc_onceInPast:"non verr\xE0 pi\xF9 eseguito, perch\xE9 start \xE8 nel passato",sch_desc_once_on:"su %s",sch_desc_validFrom:"da %s",sch_desc_validFromTo:"Eseguire da a",sch_desc_validTo:"a %s",sch_every:"ogni",sch_exactTime:"Orario preciso",sch_from:"a partire dal",sch_fromTo:"Da A",sch_intervalTime:"Intervallo di tempo",sch_invert:"invertire",sch_no_one:"nessuna",sch_on:"sopra",sch_period:"Periodo",sch_periodDaily:"Quotidiano",sch_periodDates:"Date",sch_periodDay:"Giorno",sch_periodEvery:"Ogni",sch_periodEveryDay:"Ogni giorno",sch_periodEveryMonth:"Ogni mese",sch_periodEveryWeek:"Ogni settimana",sch_periodEveryYear:"Ogni anno",sch_periodHours:"Ore",sch_periodMinutes:"Minuti",sch_periodMonth:"mese",sch_periodMonthly:"Mensile",sch_periodOnce:"Una volta",sch_periodSpecificMonths:"Mesi specifici",sch_periodWeek:"Settimana",sch_periodWeekdays:"Giorni della settimana",sch_periodWeekend:"Fine settimana",sch_periodWeekly:"settimanalmente",sch_periodWorkdays:"giorni feriali",sch_periodYear:"Anno",sch_periodYearly:"Annuale",sch_specificTime:"Orario preciso",sch_time:"Tempo",sch_to:"per",sch_valid:"Valido",sch_validFrom:"a partire dal",sch_validTo:"per",sch_wholeDay:"Giorno intero",sch_yearEveryMonth:"ogni mese","ra_Define schedule...":"Definisci pianificazione ...",ra_Repeat:"Ripetere","ra_use seconds":"usa i secondi",ra_close:"vicino",ra_dow_Tu:"Tu","ra_Toggle the states view":"Attiva o disattiva la visualizzazione degli stati","ra_Add new child object to selected parent":"Aggiungi un nuovo oggetto figlio al genitore selezionato","ra_Add objects tree from JSON file":"Aggiungi l'albero degli oggetti dal file JSON","ra_Save objects tree as JSON file":"Salva l'albero degli oggetti come file JSON",ra_Objects:"Oggetti",ra_States:"stati",ra_object_changed_by_user:"L'oggetto \xE8 stato modificato l'ultima volta alle",ra_object_changed_by:"Oggetto modificato da",ra_state_changed_from:"Oggetto cambiato da",ra_state_changed_by:"Stato cambiato da",ra_aclOwner_read_object:"Il proprietario pu\xF2 leggere l'oggetto",ra_aclOwner_read_state:"Il proprietario pu\xF2 leggere lo stato",ra_aclOwner_write_object:"Il proprietario pu\xF2 scrivere l'oggetto",ra_aclOwner_write_state:"Il proprietario pu\xF2 scrivere lo stato",ra_aclGroup_read_object:"Il gruppo pu\xF2 leggere l'oggetto",ra_aclGroup_read_state:"Il gruppo pu\xF2 leggere lo stato",ra_aclGroup_write_object:"Il gruppo pu\xF2 scrivere l'oggetto",ra_aclGroup_write_state:"Il gruppo pu\xF2 scrivere lo stato",ra_aclEveryone_read_object:"Tutti possono leggere gli oggetti",ra_aclEveryone_read_state:"Tutti possono leggere lo stato",ra_aclEveryone_write_object:"Tutti possono scrivere oggetti",ra_aclEveryone_write_state:"Tutti possono scrivere stato","ra_Folders always first":"Le cartelle sono sempre al primo posto",ra_changedFrom:"Cambiato da",ra_qualityCode:"Codice di qualit\xE0",ra_timestamp:"Timestamp",ra_lastChange:"Ultima modifica","ra_Owner group":"Gruppo di proprietari","ra_Owner user":"Utente proprietario",ra_Create:"Creare","ra_Changed from":"Cambiato da","ra_Quality code":"Qualit\xE0",ra_Timestamp:"Timestamp","ra_Last change":"Ultima modifica","ra_Collapse all nodes":"Comprimi tutti i nodi","ra_Edit custom config":"Modifica configurazione personalizzata","ra_Collapse one step node":"Comprimi un livello","ra_Expand one step node":"Espandi un livello","ra_Refresh tree":"Aggiorna l'albero","ra_Expand all nodes":"Espandi tutti i nodi","ra_Deselect all":"Deseleziona tutto","ra_Select all":"Seleziona tutto","ra_%s object(s) processed":"%s oggetti elaborati","ra_Invalid structure":"Struttura non valida","ra_%s was imported":"%s \xE8 stato importato","ra_Failed to open JSON File":"Impossibile aprire il file JSON","ra_Only following structures of objects are available:":"Sono disponibili solo le seguenti strutture di oggetti:","ra_Folder \u2192 State":"Cartella \u2192 Stato","ra_Folder \u2192 Channel \u2192 State":"Cartella \u2192 Canale \u2192 Stato","ra_Folder \u2192 Device \u2192 Channel \u2192 State":"Cartella \u2192 Dispositivo \u2192 Canale \u2192 Stato","ra_Device \u2192 Channel \u2192 State":"Dispositivo \u2192 Canale \u2192 Stato","ra_Channel \u2192 State":"Canale \u2192 Stato",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'I non esperti possono creare nuovi oggetti solo in "0_userdata.0" o "alias.0".','ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Gli esperti possono creare oggetti ovunque ma dal secondo livello (es. "Vis.0" o "javascript.0").',ra_expertMode:"Modalit\xE0 esperto","ra_On weekdays":"Nei giorni della settimana","ra_Drop the files here...":"Trascina qui il file...","ra_Drag 'n' drop some files here, or click to select files":"Trascina e rilascia alcuni file qui o fai clic per selezionare i file",ra_Clear:"Elimina","ra_Clear icon":"Cancella icona",ra_none:"nessuna","ra_Select predefined icon":"Seleziona l'icona predefinita","ra_Show lines between rows":"Mostra linee tra le righe","ra_The page you are looking for was not found":"La pagina che stai cercando non \xE8 stata trovata","ra_Good luck":"Buona fortuna",'ra_Cannot find "%s"':'Impossibile trovare "%s"','ra_Cannot read "%s"':'Impossibile leggere "%s"',"ra_Back to %s":"Torna a %s","ra_Background image":"Immagine di sfondo","ra_View: %s":"Visualizza: %s","ra_Copy content":"Copia contenuto",ra_Filter:"Filtro","ra_All objects":"Tutti gli oggetti","ra_Only selected":"Solo selezionato","ra_Change color theme":"Cambia tema colore",ra_daysShortText:"g."}});var Dee=_((crt,eWe)=>{eWe.exports={ra_filter_func:"Funci\xF3n",ra_filter_id:"ID",ra_filter_name:"Nombre",ra_filter_role:"Papel",ra_filter_room:"Habitaci\xF3n",ra_tooltip_ack:"Bandera reconocida",ra_tooltip_from:"Desde",ra_tooltip_lc:"\xDAltimo cambio",ra_tooltip_quality:"Calidad",ra_tooltip_ts:"Sello de tiempo",ra_tooltip_user:"Usuario",ra_tooltip_value:"Valor","ra_Are you sure?":"\xBFEst\xE1s seguro?",ra_Cancel:"Cancelar",ra_Copied:"Copiado","ra_Copied %s":'Copiado "%s"',"ra_Define functions":"Definir funciones","ra_Define rooms":"Definir habitaciones",ra_Error:"Error",ra_Message:"Mensaje",ra_Ok:"Okay","ra_Please select object ID...":"Por favor seleccione ID de objeto ...",ra_Selected:"Seleccionado","ra_Unknown error!":"\xA1Error desconocido!",ra_Value:"Valor",ra_filter_type:"Tipo",ra_invalidConfig:"Configuraciones inv\xE1lidas",ra_otherConfig:"Configuraciones de otro adaptador %s",ra_tooltip_copyState:"Copie el valor del estado",ra_tooltip_customConfig:"Ajustes personalizados",ra_tooltip_deleteObject:"Eliminar objeto",ra_tooltip_editObject:"Editar objeto",ra_tooltip_editState:"Edite el valor del estado",ra_filter_customs:"Configuraciones","ra_Listen on all IPs":"Escuche en todas las IP",ra_dow_Fr:"Fr",ra_dow_Mo:"Mes",ra_dow_Sa:"Sa",ra_dow_Su:"Su",ra_dow_Th:"Th",ra_Save:"Salvar","ra_Save and close":"Guardar y cerrar",ra_Close:"Cerca","ra_Auto (no custom columns)":"Autom\xE1tico (sin columnas personalizadas)","ra_Transparent dialog":"Di\xE1logo transparente",ra_Width:"Anchura",ra_val:"Valor",ra_buttons:"Botones","ra_Configure visible columns":"Configurar columnas visibles","ra_Cannot update attribute, because not found in the object":"No se puede actualizar el atributo porque no se encuentra en el objeto","ra_Edit object field":"Editar campo de objeto","ra_Hide empty folders":"Ocultar carpetas vac\xEDas","ra_Reload files":"Recargar archivos","ra_Create folder":"Crear carpeta","ra_Upload file":"Subir archivo","ra_User files":"Archivos de usuario","ra_Confirm deletion of %s":"Confirmar la eliminaci\xF3n de %s","ra_Delete (no confirm for 5 mins)":"Eliminar (sin confirmar durante 5 minutos)",ra_Delete:"Eliminar","ra_Toggle expert mode":"Alternar modo experto","ra_Toggle view mode":"Alternar modo de vista",ra_Root:"Ra\xEDz","ra_Back to %s":"Volver a %s","ra_Place your files here or click here to open the browse dialog":"Coloque sus archivos aqu\xED o haga clic aqu\xED para abrir el cuadro de di\xE1logo de exploraci\xF3n","ra_If no file will be created in the folder, it will disappear after the browser closed":"Si no se crear\xE1 ning\xFAn archivo en la carpeta, desaparecer\xE1 despu\xE9s de que se cierre el navegador.","ra_Folder name":"Nombre de la carpeta","ra_Create new folder in %s":"Crear nueva carpeta en %s","ra_Duplicate name":"Nombre duplicado","ra_Invalid parent folder!":"Carpeta principal no v\xE1lida.","ra_Drop file here":"Suelta el archivo aqu\xED","ra_Suppress question for next %s minutes":"Suprimir pregunta durante los pr\xF3ximos %s minutos","ra_Clear filter":"Filtro claro",ra_Update:"Actualizar","ra_Load configuration from file":"Cargar configuraci\xF3n desde archivo","ra_Save configuration to file":"Guardar configuraci\xF3n en archivo",sc_cron:"CRON",sc_date:"Fecha",sc_dates:"fechas",sc_dows:"D\xEDa de la semana",sc_every:"Cada",sc_everyN_dates:"cada N d\xEDas",sc_everyN_dows:"cada N d\xEDa de la semana",sc_everyN_hours:"cada N horas",sc_everyN_minutes:"cada N minutos",sc_everyN_months:"cada N meses",sc_everyN_seconds:"cada N segundos",sc_every_dates:"cada d\xEDa",sc_every_dows:"Cada d\xEDa de la semana",sc_every_hours:"cada hora",sc_every_minutes:"cada minuto",sc_every_months:"cada mes",sc_every_seconds:"cada segundo",sc_from:"De",sc_hours:"Horas",sc_interval:"Intervalo",sc_intervalBetween:"Intervalo entre",sc_minutes:"Minutos",sc_months:"meses",sc_once:"Una vez",sc_period:"Per\xEDodo",sc_seconds:"Segundos",sc_simple:"Sencillo",sc_specific:"Tiempo espec\xEDfico",sc_specific_dates:"fechas especificas",sc_specific_dows:"d\xEDa espec\xEDfico de semanas",sc_specific_hours:"horas espec\xEDficas",sc_specific_minutes:"minutos espec\xEDficos",sc_specific_months:"meses espec\xEDficos",sc_specific_seconds:"segundos espec\xEDficos",sc_time:"Hora",sc_to:"A",sc_wizard:"Mago",sch_all:"todas",sch_astroDay:"D\xEDa astro",sch_astroNight:"Noche astro",sch_astro_dawn:"Amanecer",sch_astro_dusk:"Oscuridad",sch_astro_goldenHour:"hora dorada",sch_astro_goldenHourEnd:"Fin de la hora dorada",sch_astro_nadir:"Nadir",sch_astro_nauticalDawn:"Amanecer n\xE1utico",sch_astro_nauticalDusk:"Anochecer n\xE1utico",sch_astro_night:"Noche",sch_astro_nightEnd:"Fin de la noche",sch_astro_solarNoon:"Mediod\xEDa solar",sch_astro_sunrise:"amanecer",sch_astro_sunriseEnd:"Fin del amanecer",sch_astro_sunset:"Puesta de sol",sch_astro_sunsetStart:"Puesta de sol",sch_at:"a",sch_desc_atTime:"en %s",sch_desc_everyDay:"cada d\xEDa",sch_desc_everyHour:"cada hora",sch_desc_everyMinute:"cada minuto",sch_desc_everyMonth:"cada mes",sch_desc_everyNDay:"cada %s d\xEDas",sch_desc_everyNHours:"cada %s horas",sch_desc_everyNMinutes:"cada %s minutos",sch_desc_everyNMonths:"cada %s meses",sch_desc_everyNWeeks:"cada %s semanas",sch_desc_everyNYears:"cada %s a\xF1os",sch_desc_everyWeek:"cada semana",sch_desc_everyYear:"todos los a\xF1os",sch_desc_intervalFromTo:"de %s a %s",sch_desc_never:"Nunca",sch_desc_onDate:"en %s de %s",sch_desc_onDates:"en %s y %s de",sch_desc_onEveryDate:"en cada fecha de",sch_desc_onMonth:"%s",sch_desc_onMonths:"%s y %s",sch_desc_onWeekday:"en %s",sch_desc_onWeekdays:"en %s y %s",sch_desc_onWeekends:"en los fines de semana",sch_desc_onWorkdays:"en d\xEDas laborables",sch_desc_onceInPast:"ya no se ejecutar\xE1 m\xE1s, porque el inicio est\xE1 en el pasado",sch_desc_once_on:"en %s",sch_desc_validFrom:"de %s",sch_desc_validFromTo:"Ejecutar desde hasta",sch_desc_validTo:"a %s",sch_every:"cada",sch_exactTime:"Tiempo espec\xEDfico",sch_from:"de",sch_fromTo:"De-a",sch_intervalTime:"Tiempo de intervalo",sch_invert:"invertir; poner boca abajo o en la posici\xF3n opuesta, orden o arreglo; Boca abajo",sch_no_one:"ninguna",sch_on:"en",sch_period:"Per\xEDodo",sch_periodDaily:"Diario",sch_periodDates:"fechas",sch_periodDay:"D\xEDa",sch_periodEvery:"Cada",sch_periodEveryDay:"Cada d\xEDa",sch_periodEveryMonth:"Cada mes",sch_periodEveryWeek:"Cada semana",sch_periodEveryYear:"Todos los a\xF1os",sch_periodHours:"Horas",sch_periodMinutes:"Minutos",sch_periodMonth:"mes",sch_periodMonthly:"Mensual",sch_periodOnce:"Una vez",sch_periodSpecificMonths:"Meses espec\xEDficos",sch_periodWeek:"Semana",sch_periodWeekdays:"D\xEDas laborables",sch_periodWeekend:"Fin de semana",sch_periodWeekly:"Semanal",sch_periodWorkdays:"D\xEDas laborables",sch_periodYear:"A\xF1o",sch_periodYearly:"Anual",sch_specificTime:"Tiempo espec\xEDfico",sch_time:"Hora",sch_to:"a",sch_valid:"V\xE1lido",sch_validFrom:"de",sch_validTo:"a",sch_wholeDay:"Todo el dia",sch_yearEveryMonth:"cada mes","ra_Define schedule...":"Definir horario ...",ra_Repeat:"Repetir","ra_use seconds":"usar segundos",ra_close:"cerrar",ra_dow_Tu:"Tu","ra_Toggle the states view":"Alternar la vista de estados","ra_Add new child object to selected parent":"Agregar nuevo objeto hijo al padre seleccionado","ra_Add objects tree from JSON file":"Agregar \xE1rbol de objetos desde el archivo JSON","ra_Save objects tree as JSON file":"Guardar el \xE1rbol de objetos como archivo JSON",ra_Objects:"Objetos",ra_States:"Estados",ra_object_changed_by_user:"Objeto cambiado por \xFAltima vez a las",ra_object_changed_by:"Objeto cambiado por",ra_state_changed_from:"Objeto cambiado de",ra_state_changed_by:"Estado cambiado por",ra_aclOwner_read_object:"El propietario puede leer el objeto",ra_aclOwner_read_state:"El propietario puede leer el estado",ra_aclOwner_write_object:"El propietario puede escribir el objeto",ra_aclOwner_write_state:"El propietario puede escribir el estado",ra_aclGroup_read_object:"El grupo puede leer el objeto",ra_aclGroup_read_state:"El grupo puede leer el estado",ra_aclGroup_write_object:"El grupo puede escribir un objeto",ra_aclGroup_write_state:"El grupo puede escribir el estado",ra_aclEveryone_read_object:"Todo el mundo puede leer el objeto",ra_aclEveryone_read_state:"Todos pueden leer el estado",ra_aclEveryone_write_object:"Todos pueden escribir objetos",ra_aclEveryone_write_state:"Todos pueden escribir el estado","ra_Folders always first":"Carpetas siempre primero",ra_changedFrom:"Cambiaron desde",ra_qualityCode:"C\xF3digo de calidad",ra_timestamp:"Marca de tiempo",ra_lastChange:"Ultimo cambio","ra_Owner group":"Grupo propietario","ra_Owner user":"Usuario propietario",ra_Create:"Crear","ra_Changed from":"Cambiaron desde","ra_Quality code":"Calidad",ra_Timestamp:"Marca de tiempo","ra_Last change":"Ultimo cambio","ra_Collapse all nodes":"Contraer todos los nodos","ra_Edit custom config":"Editar configuraci\xF3n personalizada","ra_Collapse one step node":"Contraer un nivel","ra_Expand one step node":"Expandir un nivel","ra_Refresh tree":"Actualizar \xE1rbol","ra_Expand all nodes":"Expandir todos los nodos","ra_Deselect all":"Deselecciona todo","ra_Select all":"Seleccionar todo","ra_%s object(s) processed":"%s objeto(s) procesados","ra_Invalid structure":"Estructura inv\xE1lida","ra_%s was imported":"%s fue importado","ra_Failed to open JSON File":"No se pudo abrir el archivo JSON","ra_Only following structures of objects are available:":"Solo est\xE1n disponibles las siguientes estructuras de objetos:","ra_Folder \u2192 State":"Carpeta \u2192 Estado","ra_Folder \u2192 Channel \u2192 State":"Carpeta \u2192 Canal \u2192 Estado","ra_Folder \u2192 Device \u2192 Channel \u2192 State":"Carpeta \u2192 Dispositivo \u2192 Canal \u2192 Estado","ra_Device \u2192 Channel \u2192 State":"Dispositivo \u2192 Canal \u2192 Estado","ra_Channel \u2192 State":"Canal \u2192 Estado",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':'Los no expertos pueden crear nuevos objetos solo en "0_userdata.0" o "alias.0".','ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':'Los expertos pueden crear objetos en todas partes excepto desde el segundo nivel (por ejemplo, "vis.0" o "javascript.0").',ra_expertMode:"Modo experto","ra_On weekdays":"De lunes a viernes","ra_Drop the files here...":"Suelta el archivo aqu\xED ...","ra_Drag 'n' drop some files here, or click to select files":"Arrastre y suelte algunos archivos aqu\xED, o haga clic para seleccionar archivos",ra_Clear:"Borrar","ra_Clear icon":"Icono claro",ra_none:"ninguno","ra_Select predefined icon":"Seleccionar icono predefinido","ra_Show lines between rows":"Mostrar l\xEDneas entre filas","ra_The page you are looking for was not found":"No se encontr\xF3 la p\xE1gina que busca","ra_Good luck":"Buena suerte",'ra_Cannot find "%s"':'No se puede encontrar "%s"','ra_Cannot read "%s"':'No se puede leer "%s"',"ra_Back to %s":"Volver a %s","ra_Background image":"Imagen de fondo","ra_View: %s":"Ver: %s","ra_Copy content":"Copiar contenido",ra_Filter:"Filtrar","ra_All objects":"Todos los objetos","ra_Only selected":"Solo seleccionados","ra_Change color theme":"Cambiar tema de color",ra_daysShortText:"d."}});var Nee=_((drt,tWe)=>{tWe.exports={ra_filter_func:"Funkcjonowa\u0107",ra_filter_id:"ID",ra_filter_name:"Imi\u0119",ra_filter_role:"Rola",ra_filter_room:"Sala",ra_tooltip_ack:"Potwierdzon",ra_tooltip_from:"Z",ra_tooltip_lc:"Ostatnia zmiana",ra_tooltip_quality:"Jako\u015B\u0107",ra_tooltip_ts:"Znak czasu",ra_tooltip_user:"U\u017Cytkownik",ra_tooltip_value:"Warto\u015B\u0107","ra_Are you sure?":"Jeste\u015B pewny?",ra_Cancel:"Anuluj",ra_Copied:"Skopiowano","ra_Copied %s":'Skopiowano "%s"',"ra_Define functions":"Zdefiniuj funkcje","ra_Define rooms":"Zdefiniuj pokoje",ra_Error:"B\u0142\u0105d",ra_Message:"Wiadomo\u015B\u0107",ra_Ok:"Dobrze","ra_Please select object ID...":"Wybierz identyfikator obiektu ...",ra_Selected:"Wybrany","ra_Unknown error!":"Nieznany b\u0142\u0105d!",ra_Value:"Warto\u015B\u0107",ra_filter_type:"Rodzaj",ra_invalidConfig:"Nieprawid\u0142owe ustawienia",ra_otherConfig:"Ustawienia z innego adaptera %s",ra_tooltip_copyState:"Skopiuj warto\u015B\u0107 stanu",ra_tooltip_customConfig:"W\u0142asne ustawienia",ra_tooltip_deleteObject:"Usu\u0144 obiekt",ra_tooltip_editObject:"Edytuj obiekt",ra_tooltip_editState:"Edytuj warto\u015B\u0107 stanu",ra_filter_customs:"Ustawienia","ra_Listen on all IPs":"S\u0142uchaj na wszystkich adresach IP",ra_dow_Fr:"Ks",ra_dow_Mo:"Mo",ra_dow_Sa:"Sa",ra_dow_Su:"Su",ra_dow_Th:"Th",ra_Save:"Zapisa\u0107","ra_Save and close":"Zapisz i zamknij",ra_Close:"Blisko","ra_Auto (no custom columns)":"Auto (bez kolumn niestandardowych)","ra_Transparent dialog":"Przejrzyste okno dialogowe",ra_Width:"Szeroko\u015B\u0107",ra_val:"Warto\u015B\u0107",ra_buttons:"guziki","ra_Configure visible columns":"Skonfiguruj widoczne kolumny","ra_Cannot update attribute, because not found in the object":"Nie mo\u017Cna zaktualizowa\u0107 atrybutu, poniewa\u017C nie znaleziono go w obiekcie","ra_Edit object field":"Edytuj pole obiektu","ra_Hide empty folders":"Ukryj puste foldery","ra_Reload files":"Za\u0142aduj ponownie pliki","ra_Create folder":"Utw\xF3rz folder","ra_Upload file":"Przesy\u0142anie pliku","ra_User files":"Pliki u\u017Cytkownika","ra_Confirm deletion of %s":"Potwierd\u017A usuni\u0119cie %s","ra_Delete (no confirm for 5 mins)":"Usu\u0144 (bez potwierdzenia przez 5 minut)",ra_Delete:"Usun\u0105\u0107","ra_Toggle expert mode":"Prze\u0142\u0105cz tryb eksperta","ra_Toggle view mode":"Prze\u0142\u0105cz tryb widoku",ra_Root:"Korze\u0144","ra_Back to %s":"Powr\xF3t do %s","ra_Place your files here or click here to open the browse dialog":"Umie\u015B\u0107 swoje pliki tutaj lub kliknij tutaj, aby otworzy\u0107 okno dialogowe przegl\u0105dania","ra_If no file will be created in the folder, it will disappear after the browser closed":"Je\u015Bli w folderze nie zostanie utworzony \u017Caden plik, zniknie on po zamkni\u0119ciu przegl\u0105darki","ra_Folder name":"Nazwa folderu","ra_Create new folder in %s":"Utw\xF3rz nowy folder w %s","ra_Duplicate name":"Zduplikowana nazwa","ra_Invalid parent folder!":"Nieprawid\u0142owy folder nadrz\u0119dny!","ra_Drop file here":"Upu\u015B\u0107 plik tutaj","ra_Suppress question for next %s minutes":"Ukryj pytanie przez nast\u0119pne %s minut","ra_Clear filter":"Czysty filtr",ra_Update:"Aktualizacja","ra_Load configuration from file":"Za\u0142aduj konfiguracj\u0119 z pliku","ra_Save configuration to file":"Zapisz konfiguracj\u0119 do pliku",sc_cron:"CRON",sc_date:"Data",sc_dates:"Daktyle",sc_dows:"Dzie\u0144 tygodnia",sc_every:"Ka\u017Cdy",sc_everyN_dates:"co N dni",sc_everyN_dows:"co N dnia tygodnia",sc_everyN_hours:"co N godzin",sc_everyN_minutes:"co N minut",sc_everyN_months:"co N miesi\u0119cy",sc_everyN_seconds:"co N sekund",sc_every_dates:"codziennie",sc_every_dows:"ka\u017Cdy dzie\u0144 tygodnia",sc_every_hours:"co godzin\u0119",sc_every_minutes:"ka\u017Cda minuta",sc_every_months:"ka\u017Cdego miesi\u0105ca",sc_every_seconds:"ka\u017Cda sekunda",sc_from:"Od",sc_hours:"godziny",sc_interval:"Interwa\u0142",sc_intervalBetween:"Interwa\u0142 mi\u0119dzy",sc_minutes:"Minuty",sc_months:"miesi\u0119cy",sc_once:"Pewnego razu",sc_period:"Kropka",sc_seconds:"sekundy",sc_simple:"Prosty",sc_specific:"Okre\u015Blony czas",sc_specific_dates:"konkretne daty",sc_specific_dows:"okre\u015Blony dzie\u0144 tygodni",sc_specific_hours:"okre\u015Blone godziny",sc_specific_minutes:"okre\u015Blone minuty",sc_specific_months:"okre\u015Blone miesi\u0105ce",sc_specific_seconds:"okre\u015Blone sekundy",sc_time:"Czas",sc_to:"Do",sc_wizard:"Czarodziej",sch_all:"wszystko",sch_astroDay:"Dzie\u0144 Astro",sch_astroNight:"Noc Astro",sch_astro_dawn:"\u015Awit",sch_astro_dusk:"Zmierzch",sch_astro_goldenHour:"z\u0142ota godzina",sch_astro_goldenHourEnd:"Koniec z\u0142otej godziny",sch_astro_nadir:"Nadir",sch_astro_nauticalDawn:"Morski \u015Bwit",sch_astro_nauticalDusk:"Morski zmierzch",sch_astro_night:"Noc",sch_astro_nightEnd:"Koniec nocy",sch_astro_solarNoon:"Po\u0142udnie s\u0142oneczne",sch_astro_sunrise:"wsch\xF3d s\u0142o\u0144ca",sch_astro_sunriseEnd:"Koniec wschodu s\u0142o\u0144ca",sch_astro_sunset:"Zach\xF3d s\u0142o\u0144ca",sch_astro_sunsetStart:"Pocz\u0105tek zachodu s\u0142o\u0144ca",sch_at:"w",sch_desc_atTime:"na %s",sch_desc_everyDay:"codziennie",sch_desc_everyHour:"co godzin\u0119",sch_desc_everyMinute:"ka\u017Cda minuta",sch_desc_everyMonth:"ka\u017Cdego miesi\u0105ca",sch_desc_everyNDay:"ka\u017Cdego dnia %s",sch_desc_everyNHours:"co %s godzin",sch_desc_everyNMinutes:"co %s minut",sch_desc_everyNMonths:"co %s miesi\u0119cy",sch_desc_everyNWeeks:"co %s tygodni",sch_desc_everyNYears:"co %s lat",sch_desc_everyWeek:"co tydzie\u0144",sch_desc_everyYear:"ka\u017Cdego roku",sch_desc_intervalFromTo:"od %s do %s",sch_desc_never:"nigdy",sch_desc_onDate:"na %s z %s",sch_desc_onDates:"na %s i %s z",sch_desc_onEveryDate:"w ka\u017Cd\u0105 dat\u0119",sch_desc_onMonth:"%s",sch_desc_onMonths:"%s i %s",sch_desc_onWeekday:"na %s",sch_desc_onWeekdays:"na %s i %s",sch_desc_onWeekends:"w weekendy",sch_desc_onWorkdays:"w dni robocze",sch_desc_onceInPast:"nie b\u0119dzie ju\u017C wykonywany, poniewa\u017C start jest w przesz\u0142o\u015Bci",sch_desc_once_on:"na %s",sch_desc_validFrom:"z %s",sch_desc_validFromTo:"Wykonaj od do",sch_desc_validTo:"do %s",sch_every:"ka\u017Cdy",sch_exactTime:"Okre\u015Blony czas",sch_from:"od",sch_fromTo:"Od-do",sch_intervalTime:"Czas przerwy",sch_invert:"odwraca\u0107",sch_no_one:"\u017Baden",sch_on:"na",sch_period:"Kropka",sch_periodDaily:"Codziennie",sch_periodDates:"Daktyle",sch_periodDay:"Dzie\u0144",sch_periodEvery:"Ka\u017Cdy",sch_periodEveryDay:"Codziennie",sch_periodEveryMonth:"Ka\u017Cdego miesi\u0105ca",sch_periodEveryWeek:"Co tydzie\u0144",sch_periodEveryYear:"Ka\u017Cdego roku",sch_periodHours:"godziny",sch_periodMinutes:"Minuty",sch_periodMonth:"miesi\u0105c",sch_periodMonthly:"Miesi\u0119czny",sch_periodOnce:"Pewnego razu",sch_periodSpecificMonths:"Okre\u015Blone miesi\u0105ce",sch_periodWeek:"Tydzie\u0144",sch_periodWeekdays:"Dni powszednie",sch_periodWeekend:"Weekend",sch_periodWeekly:"Co tydzie\u0144",sch_periodWorkdays:"Dni robocze",sch_periodYear:"Rok",sch_periodYearly:"Rocznie",sch_specificTime:"Okre\u015Blony czas",sch_time:"Czas",sch_to:"do",sch_valid:"Wa\u017Cny",sch_validFrom:"od",sch_validTo:"do",sch_wholeDay:"Ca\u0142y dzie\u0144",sch_yearEveryMonth:"ka\u017Cdego miesi\u0105ca","ra_Define schedule...":"Zdefiniuj harmonogram ...",ra_Repeat:"Powtarza\u0107","ra_use seconds":"u\u017Cyj sekund",ra_close:"blisko",ra_dow_Tu:"Tu","ra_Toggle the states view":"Prze\u0142\u0105cz widok stan\xF3w","ra_Add new child object to selected parent":"Dodaj nowy obiekt potomny do wybranego rodzica","ra_Add objects tree from JSON file":"Dodaj drzewo obiekt\xF3w z pliku JSON","ra_Save objects tree as JSON file":"Zapisz drzewo obiekt\xF3w jako plik JSON",ra_Objects:"Obiekty",ra_States:"Stany",ra_object_changed_by_user:"Obiekt ostatnio zmieniony o godz",ra_object_changed_by:"Obiekt zmieniony przez",ra_state_changed_from:"Obiekt zmieniony z",ra_state_changed_by:"Stan zmieniony przez",ra_aclOwner_read_object:"W\u0142a\u015Bciciel mo\u017Ce czyta\u0107 obiekt",ra_aclOwner_read_state:"W\u0142a\u015Bciciel mo\u017Ce odczyta\u0107 stan",ra_aclOwner_write_object:"W\u0142a\u015Bciciel mo\u017Ce napisa\u0107 obiekt",ra_aclOwner_write_state:"W\u0142a\u015Bciciel mo\u017Ce pisa\u0107 stan",ra_aclGroup_read_object:"Grupa mo\u017Ce odczyta\u0107 obiekt",ra_aclGroup_read_state:"Grupa mo\u017Ce odczyta\u0107 stan",ra_aclGroup_write_object:"Grupa mo\u017Ce pisa\u0107 obiekt",ra_aclGroup_write_state:"Grupa mo\u017Ce pisa\u0107 stan",ra_aclEveryone_read_object:"Ka\u017Cdy mo\u017Ce czyta\u0107 obiekt",ra_aclEveryone_read_state:"Ka\u017Cdy mo\u017Ce czyta\u0107 stan",ra_aclEveryone_write_object:"Ka\u017Cdy mo\u017Ce pisa\u0107 przedmiot",ra_aclEveryone_write_state:"Ka\u017Cdy mo\u017Ce pisa\u0107 stan","ra_Folders always first":"Foldery zawsze na pierwszym miejscu",ra_changedFrom:"Zmieniony z",ra_qualityCode:"Kod jako\u015Bci",ra_timestamp:"Znak czasu",ra_lastChange:"Ostatnia zmiana","ra_Owner group":"Grupa w\u0142a\u015Bcicieli","ra_Owner user":"W\u0142a\u015Bciciel u\u017Cytkownika",ra_Create:"Stw\xF3rz","ra_Changed from":"Zmieniony z","ra_Quality code":"Jako\u015Bci",ra_Timestamp:"Znak czasu","ra_Last change":"Ostatnia zmiana","ra_Collapse all nodes":"Zwi\u0144 wszystkie w\u0119z\u0142y","ra_Edit custom config":"Edytuj konfiguracj\u0119 niestandardow\u0105","ra_Collapse one step node":"Zwi\u0144 o jeden poziom","ra_Expand one step node":"Rozwi\u0144 o jeden poziom","ra_Refresh tree":"Od\u015Bwie\u017C drzewo","ra_Expand all nodes":"Rozwi\u0144 wszystkie w\u0119z\u0142y","ra_Deselect all":"Odznacz wszystko","ra_Select all":"Zaznacz wszystko","ra_%s object(s) processed":"Przetworzono %s obiekt\xF3w","ra_Invalid structure":"Nieprawid\u0142owa struktura","ra_%s was imported":"%s zosta\u0142 zaimportowany","ra_Failed to open JSON File":"Nie uda\u0142o si\u0119 otworzy\u0107 pliku JSON","ra_Only following structures of objects are available:":"Dost\u0119pne s\u0105 tylko nast\u0119puj\u0105ce struktury obiekt\xF3w:","ra_Folder \u2192 State":"Folder \u2192 Stan","ra_Folder \u2192 Channel \u2192 State":"Folder \u2192 Kana\u0142 \u2192 Stan","ra_Folder \u2192 Device \u2192 Channel \u2192 State":"Folder \u2192 Urz\u0105dzenie \u2192 Kana\u0142 \u2192 Stan","ra_Device \u2192 Channel \u2192 State":"Urz\u0105dzenie \u2192 Kana\u0142 \u2192 Stan","ra_Channel \u2192 State":"Kana\u0142 \u2192 Stan",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':"Osoby nie b\u0119d\u0105ce ekspertami mog\u0105 tworzy\u0107 nowe obiekty tylko w \u201E0_userdata.0\u201D lub \u201Ealias.0\u201D.",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':"Eksperci mog\u0105 tworzy\u0107 obiekty wsz\u0119dzie poza drugim poziomem (np. \u201EVis.0\u201D lub \u201Ejavascript.0\u201D).",ra_expertMode:"Tryb ekspercki","ra_On weekdays":"W dni powszednie","ra_Drop the files here...":"Upu\u015B\u0107 plik tutaj...","ra_Drag 'n' drop some files here, or click to select files":"Przeci\u0105gnij i upu\u015B\u0107 kilka plik\xF3w tutaj lub kliknij, aby wybra\u0107 pliki",ra_Clear:"Kasowa\u0107","ra_Clear icon":"Wyczy\u015B\u0107 ikon\u0119",ra_none:"\u017Baden","ra_Select predefined icon":"Wybierz predefiniowan\u0105 ikon\u0119","ra_Show lines between rows":"Poka\u017C linie mi\u0119dzy rz\u0119dami","ra_The page you are looking for was not found":"Strona, kt\xF3rej szukasz nie zosta\u0142a znaleziona","ra_Good luck":"Powodzenia",'ra_Cannot find "%s"':"Nie mo\u017Cna znale\u017A\u0107 \u201E%s\u201D",'ra_Cannot read "%s"':"Nie mo\u017Cna odczyta\u0107 \u201E%s\u201D","ra_Back to %s":"Powr\xF3t do %s","ra_Background image":"Zdj\u0119cie w tle","ra_View: %s":"Widok: %s","ra_Copy content":"Kopiuj zawarto\u015B\u0107",ra_Filter:"Filtr","ra_All objects":"Wszystkie obiekty","ra_Only selected":"Tylko wybrane","ra_Change color theme":"Zmie\u0144 motyw kolorystyczny",ra_daysShortText:"d."}});var Aee=_((prt,rWe)=>{rWe.exports={ra_filter_func:"\u529F\u80FD",ra_filter_id:"ID",ra_filter_name:"\u540D\u79F0",ra_filter_role:"\u89D2\u8272",ra_filter_room:"\u623F\u95F4",ra_tooltip_ack:"\u81F4\u8C22\u56FD\u65D7",ra_tooltip_from:"\u4ECE",ra_tooltip_lc:"\u6700\u540E\u6539\u53D8\u4E86",ra_tooltip_quality:"\u8D28\u91CF",ra_tooltip_ts:"\u65F6\u95F4\u6233",ra_tooltip_user:"\u7528\u6237",ra_tooltip_value:"\u503C","ra_Are you sure?":"\u4F60\u786E\u5B9A\u5417\uFF1F",ra_Cancel:"\u53D6\u6D88",ra_Copied:"\u590D\u5236\u7684","ra_Copied %s":'\u590D\u5236\u7684"%s"',"ra_Define functions":"\u5B9A\u4E49\u529F\u80FD","ra_Define rooms":"\u5B9A\u4E49\u623F\u95F4",ra_Error:"\u9519\u8BEF",ra_Message:"\u4FE1\u606F",ra_Ok:"\u597D","ra_Please select object ID...":"\u8BF7\u9009\u62E9\u5BF9\u8C61ID ...",ra_Selected:"\u5DF2\u9009","ra_Unknown error!":"\u672A\u77E5\u9519\u8BEF\uFF01",ra_Value:"\u503C",ra_filter_type:"\u7C7B\u578B",ra_invalidConfig:"\u65E0\u6548\u7684\u8BBE\u5B9A",ra_otherConfig:"\u6765\u81EA\u5176\u4ED6\u9002\u914D\u5668%s\u7684\u8BBE\u7F6E",ra_tooltip_copyState:"\u590D\u5236\u72B6\u6001\u503C",ra_tooltip_customConfig:"\u81EA\u5B9A\u4E49\u8BBE\u7F6E",ra_tooltip_deleteObject:"\u5220\u9664\u7269\u4EF6",ra_tooltip_editObject:"\u7F16\u8F91\u7269\u4EF6",ra_tooltip_editState:"\u7F16\u8F91\u72B6\u6001\u503C",ra_filter_customs:"\u8BBE\u5B9A\u503C","ra_Listen on all IPs":"\u76D1\u542C\u6240\u6709IP",ra_dow_Fr:"r",ra_dow_Mo:"\u83AB",ra_dow_Sa:"\u8428",ra_dow_Su:"\u82CF",ra_Save:"\u4FDD\u5B58","ra_Save and close":"\u4FDD\u5B58\u5E76\u5173\u95ED",ra_Close:"\u5173","ra_Auto (no custom columns)":"\u81EA\u52A8\uFF08\u65E0\u81EA\u5B9A\u4E49\u5217\uFF09","ra_Transparent dialog":"\u900F\u660E\u5BF9\u8BDD\u6846",ra_Width:"\u5BBD\u5EA6",ra_val:"\u503C",ra_buttons:"\u7EBD\u6263","ra_Configure visible columns":"\u914D\u7F6E\u53EF\u89C1\u5217","ra_Cannot update attribute, because not found in the object":"\u65E0\u6CD5\u66F4\u65B0\u5C5E\u6027\uFF0C\u56E0\u4E3A\u5728\u5BF9\u8C61\u4E2D\u627E\u4E0D\u5230","ra_Edit object field":"\u7F16\u8F91\u5BF9\u8C61\u5B57\u6BB5","ra_Hide empty folders":"\u9690\u85CF\u7A7A\u6587\u4EF6\u5939","ra_Reload files":"\u91CD\u65B0\u8F7D\u5165\u6587\u4EF6","ra_Create folder":"\u521B\u5EFA\u6587\u4EF6\u5939","ra_Upload file":"\u4E0A\u4F20\u6587\u4EF6","ra_User files":"\u7528\u6237\u6863\u6848","ra_Confirm deletion of %s":"\u786E\u8BA4\u5220\u9664%s","ra_Delete (no confirm for 5 mins)":"\u5220\u9664\uFF085\u5206\u949F\u5185\u672A\u786E\u8BA4\uFF09",ra_Delete:"\u5220\u9664","ra_Toggle expert mode":"\u5207\u6362\u4E13\u5BB6\u6A21\u5F0F","ra_Toggle view mode":"\u5207\u6362\u68C0\u89C6\u6A21\u5F0F",ra_Root:"\u6839","ra_Back to %s":"\u8FD4\u56DE%s","ra_Place your files here or click here to open the browse dialog":"\u5C06\u6587\u4EF6\u653E\u5728\u6B64\u5904\u6216\u5355\u51FB\u6B64\u5904\u6253\u5F00\u6D4F\u89C8\u5BF9\u8BDD\u6846","ra_If no file will be created in the folder, it will disappear after the browser closed":"\u5982\u679C\u5728\u8BE5\u6587\u4EF6\u5939\u4E2D\u672A\u521B\u5EFA\u4EFB\u4F55\u6587\u4EF6\uFF0C\u5219\u8BE5\u6587\u4EF6\u5C06\u5728\u6D4F\u89C8\u5668\u5173\u95ED\u540E\u6D88\u5931","ra_Folder name":"\u6587\u4EF6\u5939\u540D\u79F0","ra_Create new folder in %s":"\u5728%s\u4E2D\u521B\u5EFA\u65B0\u6587\u4EF6\u5939","ra_Duplicate name":"\u540D\u79F0\u91CD\u590D","ra_Invalid parent folder!":"\u7236\u6587\u4EF6\u5939\u65E0\u6548\uFF01","ra_Drop file here":"\u5C06\u6863\u6848\u653E\u5728\u8FD9\u91CC","ra_Suppress question for next %s minutes":"\u5728\u63A5\u4E0B\u6765\u7684%s\u5206\u949F\u5185\u53D6\u6D88\u63D0\u95EE","ra_Clear filter":"\u6E05\u9664\u7B5B\u9009",ra_Update:"\u66F4\u65B0\u8D44\u6599","ra_Load configuration from file":"\u4ECE\u6587\u4EF6\u52A0\u8F7D\u914D\u7F6E","ra_Save configuration to file":"\u5C06\u914D\u7F6E\u4FDD\u5B58\u5230\u6587\u4EF6",sc_cron:"\u5468\u671F\u4EFB\u52A1",sc_date:"\u65E5\u671F",sc_dates:"\u65E5",sc_dows:"\u661F\u671F",sc_every:"\u6BCF",sc_everyN_dates:"\u6BCFN\u5929",sc_everyN_dows:"\u6BCF\u5468N\u5929",sc_everyN_hours:"\u6BCFN\u5C0F\u65F6\u4E00\u6B21",sc_everyN_minutes:"\u6BCFN\u5206\u949F",sc_everyN_months:"\u6BCFN\u4E2A\u6708",sc_everyN_seconds:"\u6BCFN\u79D2",sc_every_dates:"\u6BCF\u5929",sc_every_dows:"\u4E00\u5468\u7684\u6BCF\u4E00\u5929",sc_every_hours:"\u6BCF\u5C0F\u65F6",sc_every_minutes:"\u6BCF\u5206\u949F",sc_every_months:"\u6BCF\u6708",sc_every_seconds:"\u6BCF\u79D2",sc_from:"\u4ECE",sc_hours:"\u5C0F\u65F6",sc_interval:"\u95F4\u9694",sc_intervalBetween:"\u95F4\u9694\u65F6\u95F4",sc_minutes:"\u5206\u949F",sc_months:"\u6708",sc_once:"\u4E00\u6B21",sc_period:"\u5468\u671F",sc_seconds:"\u79D2",sc_simple:"\u7B80\u5355\u6A21\u5F0F",sc_specific:"\u7279\u5B9A\u7684\u65F6\u95F4",sc_specific_dates:"\u7279\u5B9A\u7684\u65E5\u5B50",sc_specific_dows:"\u7279\u5B9A\u7684\u4E00\u5468",sc_specific_hours:"\u7279\u5B9A\u7684\u5C0F\u65F6",sc_specific_minutes:"\u7279\u5B9A\u7684\u5206\u949F",sc_specific_months:"\u7279\u5B9A\u7684\u6708\u4EFD",sc_specific_seconds:"\u7279\u5B9A\u7684\u63CF\u8FF0",sc_time:"\u65F6\u95F4",sc_to:"\u81F3",sc_wizard:"\u5411\u5BFC\u6A21\u5F0F",sch_all:"\u5168\u9009",sch_astroDay:"\u5929\u6587\u767D\u5929",sch_astroNight:"\u5929\u6587\u591C\u665A",sch_astro_dawn:"\u9ECE\u660E",sch_astro_dusk:"\u9EC4\u660F",sch_astro_goldenHour:"\u9EC4\u91D1\u65F6\u6BB5",sch_astro_goldenHourEnd:"\u9EC4\u91D1\u65F6\u6BB5\u7ED3\u675F",sch_astro_nadir:"\u5929\u5E95",sch_astro_nauticalDawn:"\u822A\u6D77\u9ECE\u660E",sch_astro_nauticalDusk:"\u822A\u6D77\u9EC4\u660F",sch_astro_night:"\u591C\u665A",sch_astro_nightEnd:"\u591C\u665A\u7ED3\u675F",sch_astro_solarNoon:"\u6B63\u5348",sch_astro_sunrise:"\u65E5\u51FA",sch_astro_sunriseEnd:"\u65E5\u51FA\u7ED3\u675F",sch_astro_sunset:"\u65E5\u843D",sch_astro_sunsetStart:"\u65E5\u843D\u5F00\u59CB",sch_at:"\u5728",sch_desc_atTime:"\u7684%s",sch_desc_everyDay:"\u6BCF\u5929",sch_desc_everyHour:"\u6BCF\u5C0F\u65F6",sch_desc_everyMinute:"\u6BCF\u5206\u949F",sch_desc_everyMonth:"\u6BCF\u6708",sch_desc_everyNDay:"\u6BCF%s\u5929",sch_desc_everyNHours:"\u6BCF%s\u5C0F\u65F6",sch_desc_everyNMinutes:"\u6BCF%s\u5206\u949F",sch_desc_everyNMonths:"\u6BCF%s\u6708",sch_desc_everyNWeeks:"\u6BCF%s\u5468",sch_desc_everyNYears:"\u6BCF%s\u5E74",sch_desc_everyWeek:"\u6BCF\u5468",sch_desc_everyYear:"\u6BCF\u5E74",sch_desc_intervalFromTo:"\u4ECE%s\u5230%s",sch_desc_never:"\u51B3\u4E0D",sch_desc_onDate:"\u5728%s\u7684%s\u4E0A",sch_desc_onDates:"\u5728%s\u548C%s\u4E0A",sch_desc_onEveryDate:"\u5728\u6BCF\u5929",sch_desc_onMonth:"%s",sch_desc_onMonths:"%s\u548C%s",sch_desc_onWeekday:"\u5728%s\u4E0A",sch_desc_onWeekdays:"\u5728%s\u548C%s\u4E0A",sch_desc_onWeekends:"\u5728\u5468\u672B",sch_desc_onWorkdays:"\u5728\u5DE5\u4F5C\u65E5",sch_desc_onceInPast:"\u5C06\u4E0D\u518D\u6267\u884C\uFF0C\u56E0\u4E3A\u8D77\u59CB\u65F6\u95F4\u5DF2\u7ECF\u662F\u8FC7\u53BB\u7684\u65F6\u95F4\u4E86\u3002",sch_desc_once_on:"\u5728%s\u4E0A",sch_desc_validFrom:"\u6765\u81EA%s",sch_desc_validFromTo:"\u4ECE\u6267\u884C\u5230",sch_desc_validTo:"\u5230%s",sch_every:"\u6BCF",sch_exactTime:"\u7279\u5B9A\u7684\u65F6\u95F4",sch_from:"\u4ECE",sch_fromTo:"\u4ECE\u5230",sch_intervalTime:"\u95F4\u9694\u65F6\u95F4",sch_invert:"\u5012\u7F6E",sch_no_one:"\u53D6\u6D88\u5168\u9009",sch_on:"\u7684",sch_period:"\u5468\u671F",sch_periodDaily:"\u6BCF\u5929",sch_periodDates:"\u65E5\u671F",sch_periodDay:"\u5929",sch_periodEvery:"\u6BCF",sch_periodEveryDay:"\u6BCF\u5929",sch_periodEveryMonth:"\u6BCF\u6708",sch_periodEveryWeek:"\u6BCF\u5468",sch_periodEveryYear:"\u6BCF\u5E74",sch_periodHours:"\u5C0F\u65F6",sch_periodMinutes:"\u5206\u949F",sch_periodMonth:"\u6708",sch_periodMonthly:"\u6BCF\u6708\u4E00\u6B21",sch_periodOnce:"\u4E00\u6B21",sch_periodSpecificMonths:"\u7279\u5B9A\u7684\u6708\u4EFD",sch_periodWeek:"\u5468",sch_periodWeekdays:"\u5DE5\u4F5C\u65E5",sch_periodWeekend:"\u5468\u672B",sch_periodWeekly:"\u6BCF\u5468",sch_periodWorkdays:"\u5DE5\u4F5C\u65E5",sch_periodYear:"\u5E74",sch_periodYearly:"\u6BCF\u5E74",sch_specificTime:"\u7279\u5B9A\u7684\u65F6\u95F4",sch_time:"\u65F6\u95F4",sch_to:"\u81F3",sch_valid:"\u751F\u6548",sch_validFrom:"\u4ECE",sch_validTo:"\u81F3",sch_wholeDay:"\u4E00\u6574\u5929",sch_yearEveryMonth:"\u6BCF\u6708","ra_Define schedule...":"\u5B9A\u4E49\u65F6\u95F4\u8868...",ra_Repeat:"\u91CD\u590D","ra_use seconds":"\u7528\u79D2",ra_close:"\u5173\u95ED",ra_dow_Th:"Th",ra_dow_Tu:"Tu","ra_Toggle the states view":"\u5207\u6362\u72B6\u6001\u89C6\u56FE","ra_Add new child object to selected parent":"\u5C06\u65B0\u7684\u5B50\u5BF9\u8C61\u6DFB\u52A0\u5230\u9009\u5B9A\u7684\u7236\u5BF9\u8C61","ra_Add objects tree from JSON file":"\u4ECEJSON\u6587\u4EF6\u6DFB\u52A0\u5BF9\u8C61\u6811","ra_Save objects tree as JSON file":"\u5C06\u5BF9\u8C61\u6811\u53E6\u5B58\u4E3AJSON\u6587\u4EF6",ra_Objects:"\u5BF9\u8C61",ra_States:"\u72B6\u6001",ra_object_changed_by_user:"\u5BF9\u8C61\u4E0A\u6B21\u66F4\u6539\u65F6\u95F4\u4E3A",ra_object_changed_by:"\u7269\u4EF6\u53D8\u66F4\u8005",ra_state_changed_from:"\u5BF9\u8C61\u5DF2\u4ECE\u66F4\u6539",ra_state_changed_by:"\u72B6\u6001\u7531",ra_aclOwner_read_object:"\u6240\u6709\u8005\u53EF\u4EE5\u8BFB\u53D6\u5BF9\u8C61",ra_aclOwner_read_state:"\u6240\u6709\u8005\u53EF\u4EE5\u8BFB\u53D6\u72B6\u6001",ra_aclOwner_write_object:"\u6240\u6709\u8005\u53EF\u4EE5\u5199\u5BF9\u8C61",ra_aclOwner_write_state:"\u6240\u6709\u8005\u53EF\u4EE5\u5199\u72B6\u6001",ra_aclGroup_read_object:"\u7EC4\u53EF\u4EE5\u8BFB\u53D6\u5BF9\u8C61",ra_aclGroup_read_state:"\u7FA4\u7EC4\u53EF\u4EE5\u8BFB\u53D6\u72B6\u6001",ra_aclGroup_write_object:"\u7EC4\u53EF\u4EE5\u5199\u5BF9\u8C61",ra_aclGroup_write_state:"\u7EC4\u53EF\u4EE5\u5199\u72B6\u6001",ra_aclEveryone_read_object:"\u6BCF\u4E2A\u4EBA\u90FD\u53EF\u4EE5\u9605\u8BFB\u5BF9\u8C61",ra_aclEveryone_read_state:"\u6BCF\u4E2A\u4EBA\u90FD\u53EF\u4EE5\u9605\u8BFB\u72B6\u6001",ra_aclEveryone_write_object:"\u6BCF\u4E2A\u4EBA\u90FD\u53EF\u4EE5\u5199\u5BF9\u8C61",ra_aclEveryone_write_state:"\u6BCF\u4E2A\u4EBA\u90FD\u53EF\u4EE5\u5199\u72B6\u6001","ra_Folders always first":"\u8D44\u6599\u5939\u6C38\u8FDC\u4F18\u5148",ra_changedFrom:"\u66F4\u6539\u4E3A",ra_qualityCode:"\u8D28\u91CF\u4EE3\u7801",ra_timestamp:"\u65F6\u95F4\u6233\u8BB0",ra_lastChange:"\u6700\u540E\u4E00\u6B21\u53D8\u66F4","ra_Owner group":"\u6240\u6709\u8005\u7EC4","ra_Owner user":"\u6240\u6709\u8005\u7528\u6237",ra_Create:"\u521B\u5EFA","ra_Changed from":"\u66F4\u6539\u4E3A","ra_Quality code":"\u8D28\u91CF\u4EE3\u7801",ra_Timestamp:"\u65F6\u95F4\u6233\u8BB0","ra_Last change":"\u6700\u540E\u4E00\u6B21\u53D8\u66F4","ra_Collapse all nodes":"\u6536\u5408\u6240\u6709\u8282\u70B9","ra_Edit custom config":"\u7F16\u8F91\u81EA\u5B9A\u4E49\u914D\u7F6E","ra_Collapse one step node":"\u6298\u53E0\u4E00\u7EA7","ra_Expand one step node":"\u6269\u5927\u4E00\u7EA7","ra_Refresh tree":"\u5237\u65B0\u6811","ra_Expand all nodes":"\u5C55\u5F00\u6240\u6709\u8282\u70B9","ra_Deselect all":"\u5168\u90E8\u53D6\u6D88\u9009\u62E9","ra_Select all":"\u5168\u9009","ra_%s object(s) processed":"\u5DF2\u5904\u7406%s\u4E2A\u5BF9\u8C61","ra_Invalid structure":"\u7ED3\u6784\u65E0\u6548","ra_%s was imported":"\u5BF9\u8C61\u5DF2\u5BFC\u5165","ra_Failed to open JSON File":"\u65E0\u6CD5\u6253\u5F00JSON\u6587\u4EF6","ra_Only following structures of objects are available:":"\u4EC5\u4EE5\u4E0B\u5BF9\u8C61\u7ED3\u6784\u53EF\u7528\uFF1A","ra_Folder \u2192 State":"\u6587\u4EF6\u5939\u2192\u72B6\u6001","ra_Folder \u2192 Channel \u2192 State":"\u6587\u4EF6\u5939\u2192\u9891\u9053\u2192\u72B6\u6001","ra_Folder \u2192 Device \u2192 Channel \u2192 State":"\u6587\u4EF6\u5939\u2192\u8BBE\u5907\u2192\u9891\u9053\u2192\u72B6\u6001","ra_Device \u2192 Channel \u2192 State":"\u8BBE\u5907\u2192\u9891\u9053\u2192\u72B6\u6001","ra_Channel \u2192 State":"\u9891\u9053\u2192\u72B6\u6001",'ra_Non-experts may create new objects only in "0_userdata.0" or "alias.0".':"\u975E\u4E13\u5BB6\u53EA\u80FD\u5728\u201C 0_userdata.0\u201D\u6216\u201C alias.0\u201D\u4E2D\u521B\u5EFA\u65B0\u5BF9\u8C61\u3002",'ra_The experts may create objects everywhere but from second level (e.g. "vis.0" or "javascript.0").':"\u4E13\u5BB6\u53EF\u4EE5\u5728\u4EFB\u4F55\u5730\u65B9\u521B\u5EFA\u5BF9\u8C61\uFF0C\u4F46\u8981\u4ECE\u7B2C\u4E8C\u5C42\u5F00\u59CB\uFF08\u4F8B\u5982\u201C vis.0\u201D\u6216\u201C javascript.0\u201D\uFF09\u3002",ra_expertMode:"\u4E13\u5BB6\u6A21\u5F0F","ra_On weekdays":"\u5728\u5DE5\u4F5C\u65E5","ra_Drop the files here...":"\u628A\u6587\u4EF6\u653E\u5728\u8FD9\u91CC...","ra_Drag 'n' drop some files here, or click to select files":"\u5C06\u4E00\u4E9B\u6587\u4EF6\u62D6\u653E\u5230\u6B64\u5904\uFF0C\u6216\u5355\u51FB\u4EE5\u9009\u62E9\u6587\u4EF6",ra_Clear:"\u5220\u9664","ra_Clear icon":"\u6E05\u9664\u56FE\u6807",ra_none:"\u6CA1\u6709\u4EFB\u4F55","ra_Select predefined icon":"\u9009\u62E9\u9884\u5B9A\u4E49\u56FE\u6807","ra_Show lines between rows":"\u663E\u793A\u884C\u4E4B\u95F4\u7684\u7EBF","ra_The page you are looking for was not found":"\u672A\u627E\u5230\u60A8\u8981\u67E5\u627E\u7684\u9875\u9762","ra_Good luck":"\u795D\u4F60\u597D\u8FD0",'ra_Cannot find "%s"':"\u627E\u4E0D\u5230\u201C%s\u201D",'ra_Cannot read "%s"':"\u65E0\u6CD5\u9605\u8BFB\u201C%s\u201D","ra_Back to %s":"\u8FD4\u56DE\u201C%s\u201D","ra_Background image":"\u80CC\u666F\u56FE\u50CF","ra_View: %s":"\u67E5\u770B\uFF1A%s","ra_Copy content":"\u590D\u5236\u5185\u5BB9",ra_Filter:"\u7B5B\u9009","ra_All objects":"\u6240\u6709\u5BF9\u8C61","ra_Only selected":"\u53EA\u9009\u62E9","ra_Change color theme":"\u66F4\u6539\u989C\u8272\u4E3B\u9898",ra_daysShortText:"\u5929"}});var Uee=_(iC=>{"use strict";var gr=$(),nWe=Go();Object.defineProperty(iC,"__esModule",{value:!0});iC.default=void 0;var rC=gr(Go()),oWe=gr(ho()),aWe=gr(Yn()),jq=gr(lv()),Mee=gr(YH()),iWe=gr(Au()),sWe=gr(Mu()),aC=gr(cs()),oC=gr(po()),ml=gr(z()),Lq=Uq(QH()),Rm=gr(je()),Fee=Uq(qX()),uWe=Uq(B2()),lWe=gr(NQ()),cWe=gr(ZQ()),dWe=gr(h_()),pWe=gr(Jx()),fWe=gr(ree()),mWe=gr(jR()),hWe=gr(see()),Bq=gr(lee()),v_=gr(zR()),gWe=gr(Tee()),nC=gr(_o());wee();function Lee(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return(Lee=function(o){return o?r:e})(t)}function Uq(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||nWe(t)!=="object"&&typeof t!="function")return{default:t};var r=Lee(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var i=o?Object.getOwnPropertyDescriptor(t,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=t[a]}return n.default=t,r&&r.set(t,n),n}function qee(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function jee(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:"";return(0,mWe.default)(v_.default.getThemeName(o))}},{key:"getThemeName",value:function(o){return o.name}},{key:"getThemeType",value:function(o){return o.palette.type}},{key:"toggleTheme",value:function(){var o=this,a=this.state.themeName,i=a==="dark"?"blue":a==="blue"?"colored":a==="colored"?"light":"dark";v_.default.setThemeName(i);var s=this.createTheme(i);this.setState({theme:s,themeName:this.getThemeName(s),themeType:this.getThemeType(s)},function(){o.props.onThemeChange&&o.props.onThemeChange(i),o.onThemeChanged&&o.onThemeChanged(i)})}},{key:"getSystemConfig",value:function(){return this.socket.getSystemConfig()}},{key:"getExpertMode",value:function(){return window.sessionStorage.getItem("App.expertMode")==="true"||!!this._systemConfig.expertMode}},{key:"onConnectionReady",value:function(){}},{key:"encrypt",value:function(o){for(var a="",i=0;i=o[u]});return s||"xs"}},{key:"onClose",value:function(){if(typeof window.parent!="undefined"&&window.parent)try{window.parent.$iframeDialog&&typeof window.parent.$iframeDialog.close=="function"?window.parent.$iframeDialog.close():window.parent.postMessage("close","*")}catch(o){window.parent.postMessage("close","*")}}}]),r}(Bq.default);Bee.propTypes={adapterName:Rm.default.string,onThemeChange:Rm.default.func,socket:Rm.default.object,encryptedFields:Rm.default.array,bottomButtons:Rm.default.bool,Connection:Rm.default.object};var _We=Bee;iC.default=_We});var xj=_(NC=>{"use strict";var o$e=$(),a$e=Ne();Object.defineProperty(NC,"__esModule",{value:!0});NC.default=void 0;var i$e=a$e(z()),s$e=o$e(ia()),u$e=(0,s$e.default)(i$e.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");NC.default=u$e});var ere=_(MC=>{"use strict";var g$e=$(),v$e=Ne();Object.defineProperty(MC,"__esModule",{value:!0});MC.default=void 0;var y$e=v$e(z()),_$e=g$e(ia()),b$e=(0,_$e.default)(y$e.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"}),"Help");MC.default=b$e});var kj=_(FC=>{"use strict";var S$e=$(),E$e=Ne();Object.defineProperty(FC,"__esModule",{value:!0});FC.default=void 0;var T$e=E$e(z()),w$e=S$e(ia()),x$e=(0,w$e.default)(T$e.createElement("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTop");FC.default=x$e});var Pj=_(qC=>{"use strict";var C$e=$(),I$e=Ne();Object.defineProperty(qC,"__esModule",{value:!0});qC.default=void 0;var k$e=I$e(z()),P$e=C$e(ia()),O$e=(0,P$e.default)(k$e.createElement("path",{d:"M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z"}),"VerticalAlignBottom");qC.default=O$e});var nre=_(LC=>{"use strict";var Oo=$();Object.defineProperty(LC,"__esModule",{value:!0});LC.default=void 0;var R$e=Oo(ho()),D$e=Oo(Yn()),N$e=Oo(Au()),A$e=Oo(Mu()),tre=Oo(cs()),Hs=Oo(z()),M$e=Oo(Mt()),Oj=Oo(g_()),md=Oo(je()),jC=Oo(_o()),F$e=Oo(ere()),q$e=Oo(kj()),j$e=Oo(Pj());function L$e(t){var e=B$e();return function(){var n=(0,tre.default)(t),o;if(e){var a=(0,tre.default)(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return(0,A$e.default)(this,o)}}function B$e(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var U$e=function(e){return{buttons:{marginRight:5,marginTop:5,float:"right"},logo:{padding:8,width:64}}},rre=function(t){(0,N$e.default)(r,t);var e=L$e(r);function r(){return(0,R$e.default)(this,r),e.apply(this,arguments)}return(0,D$e.default)(r,[{key:"handleFileSelect",value:function(o){var a=this,i=o.target.files[0];if(i){var s=new window.FileReader;s.onload=function(u){var l=u.target.result;try{var c=JSON.parse(l);c.native&&c.common?c.common.name!==a.props.common.name?a.props.onError&&a.props.onError(jC.default.t("ra_otherConfig",c.common.name)):a.props.onLoad&&a.props.onLoad(c.native):a.props.onError&&a.props.onError(jC.default.t("ra_invalidConfig"))}catch(p){a.props.onError&&a.props.onError(p.toString())}},s.readAsText(i)}else alert("Failed to open JSON File")}},{key:"download",value:function(){var o={_id:"system.adapter.".concat(this.props.common.name,".").concat(this.props.instance),common:JSON.parse(JSON.stringify(this.props.common)),native:this.props.native};o.common.news&&delete o.common.news,o.common.titleLang&&delete o.common.titleLang,o.common.desc&&delete o.common.desc,r.generateFile(o._id+".json",o)}},{key:"upload",value:function(){var o=this,a=window.document.createElement("input");a.setAttribute("type","file"),a.setAttribute("id","files"),a.setAttribute("opacity",0),a.addEventListener("change",function(i){return o.handleFileSelect(i,function(){})},!1),a.click()}},{key:"render",value:function(){var o=this;return Hs.default.createElement("div",{className:this.props.className,style:this.props.style},this.props.common.icon?Hs.default.createElement("img",{src:this.props.common.icon,className:this.props.classes.logo,alt:"logo"}):null,this.props.common.readme?Hs.default.createElement(Oj.default,{size:"small",color:"primary","aria-label":"Help",className:this.props.classes.buttons,onClick:function(){var i=window.open(o.props.common.readme,"_blank");i.focus()}},Hs.default.createElement(F$e.default,null)):null,Hs.default.createElement(Oj.default,{size:"small",color:"primary","aria-label":"Load config",className:this.props.classes.buttons,title:jC.default.t("ra_Load configuration from file"),onClick:function(){return o.upload()}},Hs.default.createElement(q$e.default,null)),Hs.default.createElement(Oj.default,{size:"small",color:"primary","aria-label":"Save config",className:this.props.classes.buttons,title:jC.default.t("ra_Save configuration to file"),onClick:function(){return o.download()}},Hs.default.createElement(j$e.default,null)))}}],[{key:"generateFile",value:function(o,a){var i=window.document.createElement("a");i.setAttribute("href","data:application/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(a,null,2))),i.setAttribute("download",o),i.style.display="none",window.document.body.appendChild(i),i.click(),window.document.body.removeChild(i)}}]),r}(Hs.default.Component);rre.propTypes={common:md.default.object.isRequired,className:md.default.string,style:md.default.object,native:md.default.object.isRequired,instance:md.default.number.isRequired,onError:md.default.func.isRequired,onLoad:md.default.func.isRequired};var z$e=(0,M$e.default)(U$e)(rre),W$e=z$e;LC.default=W$e});var ore=_(I_=>{"use strict";Object.defineProperty(I_,"__esModule",{value:!0});I_.hasValue=Rj;I_.isFilled=$$e;I_.isAdornedStart=H$e;function Rj(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function $$e(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return t&&(Rj(t.value)&&t.value!==""||e&&Rj(t.defaultValue)&&t.defaultValue!=="")}function H$e(t){return t.startAdornment}});var Dj=_(k_=>{"use strict";var G$e=Ne();Object.defineProperty(k_,"__esModule",{value:!0});k_.useFormControl=V$e;k_.default=void 0;var are=G$e(z()),ire=are.createContext();function V$e(){return are.useContext(ire)}var K$e=ire;k_.default=K$e});var lre=_(zm=>{"use strict";var Y$e=Ne(),_l=$();Object.defineProperty(zm,"__esModule",{value:!0});zm.default=zm.styles=void 0;var J$e=_l(We()),X$e=_l(ut()),Di=Y$e(z()),zut=_l(je()),Z$e=_l(Le()),sre=ore(),Q$e=_l(Mt()),e4e=_l(na()),Nj=_l(pq()),t4e=_l(Dj()),ure={root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}};zm.styles=ure;var r4e=Di.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.color,s=i===void 0?"primary":i,u=e.component,l=u===void 0?"div":u,c=e.disabled,p=c===void 0?!1:c,d=e.error,f=d===void 0?!1:d,m=e.fullWidth,g=m===void 0?!1:m,v=e.focused,h=e.hiddenLabel,y=h===void 0?!1:h,b=e.margin,E=b===void 0?"none":b,w=e.required,S=w===void 0?!1:w,C=e.size,P=e.variant,k=P===void 0?"standard":P,O=(0,X$e.default)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),F=Di.useState(function(){var le=!1;return n&&Di.Children.forEach(n,function(_e){if((0,Nj.default)(_e,["Input","Select"])){var we=(0,Nj.default)(_e,["Select"])?_e.props.input:_e;we&&(0,sre.isAdornedStart)(we.props)&&(le=!0)}}),le}),U=F[0],J=F[1],K=Di.useState(function(){var le=!1;return n&&Di.Children.forEach(n,function(_e){(0,Nj.default)(_e,["Input","Select"])&&(0,sre.isFilled)(_e.props,!0)&&(le=!0)}),le}),Z=K[0],G=K[1],Q=Di.useState(!1),N=Q[0],j=Q[1],V=v!==void 0?v:N;p&&V&&j(!1);var Y;if(0)var X;var ie=Di.useCallback(function(){G(!0)},[]),de=Di.useCallback(function(){G(!1)},[]),pe={adornedStart:U,setAdornedStart:J,color:s,disabled:p,error:f,filled:Z,focused:V,fullWidth:g,hiddenLabel:y,margin:(C==="small"?"dense":void 0)||E,onBlur:function(){j(!1)},onEmpty:de,onFilled:ie,onFocus:function(){j(!0)},registerEffect:Y,required:S,variant:k};return Di.createElement(t4e.default.Provider,{value:pe},Di.createElement(l,(0,J$e.default)({className:(0,Z$e.default)(o.root,a,E!=="none"&&o["margin".concat((0,e4e.default)(E))],g&&o.fullWidth),ref:r},O),n))}),n4e=(0,Q$e.default)(ure,{name:"MuiFormControl"})(r4e);zm.default=n4e});var Mj=_(Aj=>{"use strict";var o4e=$(),a4e=Ne();Object.defineProperty(Aj,"__esModule",{value:!0});Aj.default=u4e;var i4e=a4e(z()),s4e=o4e(Dj());function u4e(){return i4e.useContext(s4e.default)}});var Wm=_(BC=>{"use strict";var cre=$();Object.defineProperty(BC,"__esModule",{value:!0});Object.defineProperty(BC,"default",{enumerable:!0,get:function(){return l4e.default}});Object.defineProperty(BC,"useFormControl",{enumerable:!0,get:function(){return c4e.default}});var l4e=cre(lre()),c4e=cre(Mj())});var fre=_($m=>{"use strict";var d4e=Ne(),hd=$();Object.defineProperty($m,"__esModule",{value:!0});$m.default=$m.styles=void 0;var p4e=hd(We()),f4e=hd(ut()),UC=d4e(z()),Gut=hd(je()),dre=hd(Le()),Vut=at(),m4e=Wm(),h4e=hd(Mt()),g4e=hd(f_()),v4e=hd(na()),pre=function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}};$m.styles=pre;var y4e=UC.forwardRef(function(e,r){var n=e.checked,o=e.classes,a=e.className,i=e.control,s=e.disabled,u=e.inputRef,l=e.label,c=e.labelPlacement,p=c===void 0?"end":c,d=e.name,f=e.onChange,m=e.value,g=(0,f4e.default)(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"]),v=(0,m4e.useFormControl)(),h=s;typeof h=="undefined"&&typeof i.props.disabled!="undefined"&&(h=i.props.disabled),typeof h=="undefined"&&v&&(h=v.disabled);var y={disabled:h};return["checked","name","onChange","value","inputRef"].forEach(function(b){typeof i.props[b]=="undefined"&&typeof e[b]!="undefined"&&(y[b]=e[b])}),UC.createElement("label",(0,p4e.default)({className:(0,dre.default)(o.root,a,p!=="end"&&o["labelPlacement".concat((0,v4e.default)(p))],h&&o.disabled),ref:r},g),UC.cloneElement(i,y),UC.createElement(g4e.default,{component:"span",className:(0,dre.default)(o.label,h&&o.disabled)},l))}),_4e=(0,h4e.default)(pre,{name:"MuiFormControlLabel"})(y4e);$m.default=_4e});var zC=_(Fj=>{"use strict";var b4e=$();Object.defineProperty(Fj,"__esModule",{value:!0});Object.defineProperty(Fj,"default",{enumerable:!0,get:function(){return S4e.default}});var S4e=b4e(fre())});var bre=_(Gm=>{"use strict";var w4e=Ne(),Gs=$();Object.defineProperty(Gm,"__esModule",{value:!0});Gm.default=Gm.styles=void 0;var yre=Gs(We()),x4e=Gs(rc()),C4e=Gs(ut()),qj=w4e(z()),ult=Gs(je()),I4e=Gs(Le()),llt=at(),k4e=Gs(vq()),P4e=Gs(Mj()),O4e=Gs(Mt()),R4e=Gs(h_()),_re={root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}};Gm.styles=_re;var D4e=qj.forwardRef(function(e,r){var n=e.autoFocus,o=e.checked,a=e.checkedIcon,i=e.classes,s=e.className,u=e.defaultChecked,l=e.disabled,c=e.icon,p=e.id,d=e.inputProps,f=e.inputRef,m=e.name,g=e.onBlur,v=e.onChange,h=e.onFocus,y=e.readOnly,b=e.required,E=e.tabIndex,w=e.type,S=e.value,C=(0,C4e.default)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),P=(0,k4e.default)({controlled:o,default:!!u,name:"SwitchBase",state:"checked"}),k=(0,x4e.default)(P,2),O=k[0],F=k[1],U=(0,P4e.default)(),J=function(j){h&&h(j),U&&U.onFocus&&U.onFocus(j)},K=function(j){g&&g(j),U&&U.onBlur&&U.onBlur(j)},Z=function(j){var V=j.target.checked;F(V),v&&v(j,V)},G=l;U&&typeof G=="undefined"&&(G=U.disabled);var Q=w==="checkbox"||w==="radio";return qj.createElement(R4e.default,(0,yre.default)({component:"span",className:(0,I4e.default)(i.root,s,O&&i.checked,G&&i.disabled),disabled:G,tabIndex:null,role:void 0,onFocus:J,onBlur:K,ref:r},C),qj.createElement("input",(0,yre.default)({autoFocus:n,checked:o,defaultChecked:u,className:i.input,disabled:G,id:Q&&p,name:m,onChange:Z,readOnly:y,ref:f,required:b,tabIndex:E,type:w,value:S},d)),O?a:c)}),N4e=(0,O4e.default)(_re,{name:"PrivateSwitchBase"})(D4e);Gm.default=N4e});var Sre=_($C=>{"use strict";var A4e=$(),M4e=Ne();Object.defineProperty($C,"__esModule",{value:!0});$C.default=void 0;var F4e=M4e(z()),q4e=A4e(Sm()),j4e=(0,q4e.default)(F4e.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank");$C.default=j4e});var Ere=_(HC=>{"use strict";var L4e=$(),B4e=Ne();Object.defineProperty(HC,"__esModule",{value:!0});HC.default=void 0;var U4e=B4e(z()),z4e=L4e(Sm()),W4e=(0,z4e.default)(U4e.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox");HC.default=W4e});var Tre=_(GC=>{"use strict";var $4e=$(),H4e=Ne();Object.defineProperty(GC,"__esModule",{value:!0});GC.default=void 0;var G4e=H4e(z()),V4e=$4e(Sm()),K4e=(0,V4e.default)(G4e.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");GC.default=K4e});var Ire=_(Vm=>{"use strict";var Y4e=Ne(),Ni=$();Object.defineProperty(Vm,"__esModule",{value:!0});Vm.default=Vm.styles=void 0;var wre=Ni(We()),J4e=Ni(ut()),gd=Y4e(z()),mlt=Ni(je()),X4e=Ni(Le()),hlt=at(),Z4e=Ni(bre()),Q4e=Ni(Sre()),eHe=Ni(Ere()),xre=Ql(),tHe=Ni(Tre()),rHe=Ni(na()),nHe=Ni(Mt()),Cre=function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,xre.alpha)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,xre.alpha)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}};Vm.styles=Cre;var oHe=gd.createElement(eHe.default,null),aHe=gd.createElement(Q4e.default,null),iHe=gd.createElement(tHe.default,null),sHe=gd.forwardRef(function(e,r){var n=e.checkedIcon,o=n===void 0?oHe:n,a=e.classes,i=e.color,s=i===void 0?"secondary":i,u=e.icon,l=u===void 0?aHe:u,c=e.indeterminate,p=c===void 0?!1:c,d=e.indeterminateIcon,f=d===void 0?iHe:d,m=e.inputProps,g=e.size,v=g===void 0?"medium":g,h=(0,J4e.default)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),y=p?f:l,b=p?f:o;return gd.createElement(Z4e.default,(0,wre.default)({type:"checkbox",classes:{root:(0,X4e.default)(a.root,a["color".concat((0,rHe.default)(s))],p&&a.indeterminate),checked:a.checked,disabled:a.disabled},color:s,inputProps:(0,wre.default)({"data-indeterminate":p},m),icon:gd.cloneElement(y,{fontSize:y.props.fontSize===void 0&&v==="small"?v:y.props.fontSize}),checkedIcon:gd.cloneElement(b,{fontSize:b.props.fontSize===void 0&&v==="small"?v:b.props.fontSize}),ref:r},h))}),uHe=(0,nHe.default)(Cre,{name:"MuiCheckbox"})(sHe);Vm.default=uHe});var VC=_(jj=>{"use strict";var lHe=$();Object.defineProperty(jj,"__esModule",{value:!0});Object.defineProperty(jj,"default",{enumerable:!0,get:function(){return cHe.default}});var cHe=lHe(Ire())});var boe=_(hI=>{"use strict";var u6e=$(),l6e=Ne();Object.defineProperty(hI,"__esModule",{value:!0});hI.default=void 0;var c6e=l6e(z()),d6e=u6e(ia()),p6e=(0,d6e.default)(c6e.createElement("path",{d:"M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"}),"Cached");hI.default=p6e});var Soe=_(gI=>{"use strict";var f6e=$(),m6e=Ne();Object.defineProperty(gI,"__esModule",{value:!0});gI.default=void 0;var h6e=m6e(z()),g6e=f6e(ia()),v6e=(0,g6e.default)(h6e.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");gI.default=v6e});var Coe=_((rh,nh)=>{"use strict";(function(t){var e=typeof rh=="object"&&rh&&!rh.nodeType&&rh,r=typeof nh=="object"&&nh&&!nh.nodeType&&nh,n=typeof global=="object"&&global;(n.global===n||n.window===n||n.self===n)&&(t=n);var o,a=2147483647,i=36,s=1,u=26,l=38,c=700,p=72,d=128,f="-",m=/^xn--/,g=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=i-s,b=Math.floor,E=String.fromCharCode,w;function S(N){throw new RangeError(h[N])}function C(N,j){for(var V=N.length,Y=[];V--;)Y[V]=j(N[V]);return Y}function P(N,j){var V=N.split("@"),Y="";V.length>1&&(Y=V[0]+"@",N=V[1]),N=N.replace(v,".");var X=N.split("."),ie=C(X,j).join(".");return Y+ie}function k(N){for(var j=[],V=0,Y=N.length,X,ie;V=55296&&X<=56319&&V65535&&(j-=65536,V+=E(j>>>10&1023|55296),j=56320|j&1023),V+=E(j),V}).join("")}function F(N){return N-48<10?N-22:N-65<26?N-65:N-97<26?N-97:i}function U(N,j){return N+22+75*(N<26)-((j!=0)<<5)}function J(N,j,V){var Y=0;for(N=V?b(N/c):N>>1,N+=b(N/j);N>y*u>>1;Y+=i)N=b(N/y);return b(Y+(y+1)*N/(N+l))}function K(N){var j=[],V=N.length,Y,X=0,ie=d,de=p,pe,le,_e,we,ge,Se,me,be,Me;for(pe=N.lastIndexOf(f),pe<0&&(pe=0),le=0;le=128&&S("not-basic"),j.push(N.charCodeAt(le));for(_e=pe>0?pe+1:0;_e=V&&S("invalid-input"),me=F(N.charCodeAt(_e++)),(me>=i||me>b((a-X)/ge))&&S("overflow"),X+=me*ge,be=Se<=de?s:Se>=de+u?u:Se-de,!(meb(a/Me)&&S("overflow"),ge*=Me;Y=j.length+1,de=J(X-we,Y,we==0),b(X/Y)>a-ie&&S("overflow"),ie+=b(X/Y),X%=Y,j.splice(X++,0,ie)}return O(j)}function Z(N){var j,V,Y,X,ie,de,pe,le,_e,we,ge,Se=[],me,be,Me,ve;for(N=k(N),me=N.length,j=d,V=0,ie=p,de=0;de=j&&geb((a-V)/be)&&S("overflow"),V+=(pe-j)*be,j=pe,de=0;dea&&S("overflow"),ge==j){for(le=V,_e=i;we=_e<=ie?s:_e>=ie+u?u:_e-ie,!(le{"use strict";Ioe.exports=Error});var Ooe=_((Uht,Poe)=>{"use strict";Poe.exports=EvalError});var Doe=_((zht,Roe)=>{"use strict";Roe.exports=RangeError});var Aoe=_((Wht,Noe)=>{"use strict";Noe.exports=ReferenceError});var kL=_(($ht,Moe)=>{"use strict";Moe.exports=SyntaxError});var oh=_((Hht,Foe)=>{"use strict";Foe.exports=TypeError});var joe=_((Ght,qoe)=>{"use strict";qoe.exports=URIError});var Boe=_((Vht,Loe)=>{"use strict";Loe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(e,r);if(i.value!==o||i.enumerable!==!0)return!1}return!0}});var Woe=_((Kht,zoe)=>{"use strict";var Uoe=typeof Symbol!="undefined"&&Symbol,x6e=Boe();zoe.exports=function(){return typeof Uoe!="function"||typeof Symbol!="function"||typeof Uoe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:x6e()}});var Hoe=_((Yht,$oe)=>{"use strict";var PL={__proto__:null,foo:{}},C6e=Object;$oe.exports=function(){return{__proto__:PL}.foo===PL.foo&&!(PL instanceof C6e)}});var Koe=_((Jht,Voe)=>{"use strict";var I6e="Function.prototype.bind called on incompatible ",k6e=Object.prototype.toString,P6e=Math.max,O6e="[object Function]",Goe=function(e,r){for(var n=[],o=0;o{"use strict";var N6e=Koe();Yoe.exports=Function.prototype.bind||N6e});var Xoe=_((Zht,Joe)=>{"use strict";var A6e=Function.prototype.call,M6e=Object.prototype.hasOwnProperty,F6e=_I();Joe.exports=F6e.call(A6e,M6e)});var Pd=_((Qht,rae)=>{"use strict";var st,q6e=koe(),j6e=Ooe(),L6e=Doe(),B6e=Aoe(),uh=kL(),sh=oh(),U6e=joe(),tae=Function,OL=function(t){try{return tae('"use strict"; return ('+t+").constructor;")()}catch(e){}},Id=Object.getOwnPropertyDescriptor;if(Id)try{Id({},"")}catch(t){Id=null}var RL=function(){throw new sh},z6e=Id?function(){try{return arguments.callee,RL}catch(t){try{return Id(arguments,"callee").get}catch(e){return RL}}}():RL,ah=Woe()(),W6e=Hoe()(),rn=Object.getPrototypeOf||(W6e?function(t){return t.__proto__}:null),ih={},$6e=typeof Uint8Array=="undefined"||!rn?st:rn(Uint8Array),kd={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?st:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?st:ArrayBuffer,"%ArrayIteratorPrototype%":ah&&rn?rn([][Symbol.iterator]()):st,"%AsyncFromSyncIteratorPrototype%":st,"%AsyncFunction%":ih,"%AsyncGenerator%":ih,"%AsyncGeneratorFunction%":ih,"%AsyncIteratorPrototype%":ih,"%Atomics%":typeof Atomics=="undefined"?st:Atomics,"%BigInt%":typeof BigInt=="undefined"?st:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?st:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?st:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?st:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":q6e,"%eval%":eval,"%EvalError%":j6e,"%Float32Array%":typeof Float32Array=="undefined"?st:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?st:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?st:FinalizationRegistry,"%Function%":tae,"%GeneratorFunction%":ih,"%Int8Array%":typeof Int8Array=="undefined"?st:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?st:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?st:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ah&&rn?rn(rn([][Symbol.iterator]())):st,"%JSON%":typeof JSON=="object"?JSON:st,"%Map%":typeof Map=="undefined"?st:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!ah||!rn?st:rn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?st:Promise,"%Proxy%":typeof Proxy=="undefined"?st:Proxy,"%RangeError%":L6e,"%ReferenceError%":B6e,"%Reflect%":typeof Reflect=="undefined"?st:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?st:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!ah||!rn?st:rn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?st:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ah&&rn?rn(""[Symbol.iterator]()):st,"%Symbol%":ah?Symbol:st,"%SyntaxError%":uh,"%ThrowTypeError%":z6e,"%TypedArray%":$6e,"%TypeError%":sh,"%Uint8Array%":typeof Uint8Array=="undefined"?st:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?st:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?st:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?st:Uint32Array,"%URIError%":U6e,"%WeakMap%":typeof WeakMap=="undefined"?st:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?st:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?st:WeakSet};if(rn)try{null.error}catch(t){Zoe=rn(rn(t)),kd["%Error.prototype%"]=Zoe}var Zoe,H6e=function t(e){var r;if(e==="%AsyncFunction%")r=OL("async function () {}");else if(e==="%GeneratorFunction%")r=OL("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=OL("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&rn&&(r=rn(o.prototype))}return kd[e]=r,r},Qoe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},$_=_I(),bI=Xoe(),G6e=$_.call(Function.call,Array.prototype.concat),V6e=$_.call(Function.apply,Array.prototype.splice),eae=$_.call(Function.call,String.prototype.replace),SI=$_.call(Function.call,String.prototype.slice),K6e=$_.call(Function.call,RegExp.prototype.exec),Y6e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J6e=/\\(\\)?/g,X6e=function(e){var r=SI(e,0,1),n=SI(e,-1);if(r==="%"&&n!=="%")throw new uh("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new uh("invalid intrinsic syntax, expected opening `%`");var o=[];return eae(e,Y6e,function(a,i,s,u){o[o.length]=s?eae(u,J6e,"$1"):i||a}),o},Z6e=function(e,r){var n=e,o;if(bI(Qoe,n)&&(o=Qoe[n],n="%"+o[0]+"%"),bI(kd,n)){var a=kd[n];if(a===ih&&(a=H6e(n)),typeof a=="undefined"&&!r)throw new sh("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new uh("intrinsic "+e+" does not exist!")};rae.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new sh("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new sh('"allowMissing" argument must be a boolean');if(K6e(/^%?[^%]*%?$/,e)===null)throw new uh("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=X6e(e),o=n.length>0?n[0]:"",a=Z6e("%"+o+"%",r),i=a.name,s=a.value,u=!1,l=a.alias;l&&(o=l[0],V6e(n,G6e([0,1],l)));for(var c=1,p=!0;c=n.length){var g=Id(s,d);p=!!g,p&&"get"in g&&!("originalValue"in g.get)?s=g.get:s=s[d]}else p=bI(s,d),s=s[d];p&&!u&&(kd[i]=s)}}return s}});var TI=_((egt,nae)=>{"use strict";var Q6e=Pd(),EI=Q6e("%Object.defineProperty%",!0)||!1;if(EI)try{EI({},"a",{value:1})}catch(t){EI=!1}nae.exports=EI});var DL=_((tgt,oae)=>{"use strict";var e9e=Pd(),wI=e9e("%Object.getOwnPropertyDescriptor%",!0);if(wI)try{wI([],"length")}catch(t){wI=null}oae.exports=wI});var uae=_((rgt,sae)=>{"use strict";var aae=TI(),t9e=kL(),lh=oh(),iae=DL();sae.exports=function(e,r,n){if(!e||typeof e!="object"&&typeof e!="function")throw new lh("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new lh("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new lh("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new lh("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new lh("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new lh("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!iae&&iae(e,r);if(aae)aae(e,r,{configurable:i===null&&u?u.configurable:!i,enumerable:o===null&&u?u.enumerable:!o,value:n,writable:a===null&&u?u.writable:!a});else if(s||!o&&!a&&!i)e[r]=n;else throw new t9e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var dae=_((ngt,cae)=>{"use strict";var NL=TI(),lae=function(){return!!NL};lae.hasArrayLengthDefineBug=function(){if(!NL)return null;try{return NL([],"length",{value:1}).length!==1}catch(e){return!0}};cae.exports=lae});var gae=_((ogt,hae)=>{"use strict";var r9e=Pd(),pae=uae(),n9e=dae()(),fae=DL(),mae=oh(),o9e=r9e("%Math.floor%");hae.exports=function(e,r){if(typeof e!="function")throw new mae("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||o9e(r)!==r)throw new mae("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,a=!0;if("length"in e&&fae){var i=fae(e,"length");i&&!i.configurable&&(o=!1),i&&!i.writable&&(a=!1)}return(o||a||!n)&&(n9e?pae(e,"length",r,!0,!0):pae(e,"length",r)),e}});var Eae=_((agt,xI)=>{"use strict";var AL=_I(),CI=Pd(),a9e=gae(),i9e=oh(),_ae=CI("%Function.prototype.apply%"),bae=CI("%Function.prototype.call%"),Sae=CI("%Reflect.apply%",!0)||AL.call(bae,_ae),vae=TI(),s9e=CI("%Math.max%");xI.exports=function(e){if(typeof e!="function")throw new i9e("a function is required");var r=Sae(AL,bae,arguments);return a9e(r,1+s9e(0,e.length-(arguments.length-1)),!0)};var yae=function(){return Sae(AL,_ae,arguments)};vae?vae(xI.exports,"apply",{value:yae}):xI.exports.apply=yae});var Cae=_((igt,xae)=>{"use strict";var Tae=Pd(),wae=Eae(),u9e=wae(Tae("String.prototype.indexOf"));xae.exports=function(e,r){var n=Tae(e,!!r);return typeof n=="function"&&u9e(e,".prototype.")>-1?wae(n):n}});var Iae=_(()=>{"use strict"});var Vae=_((lgt,Gae)=>{"use strict";var $L=typeof Map=="function"&&Map.prototype,ML=Object.getOwnPropertyDescriptor&&$L?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,kI=$L&&ML&&typeof ML.get=="function"?ML.get:null,kae=$L&&Map.prototype.forEach,HL=typeof Set=="function"&&Set.prototype,FL=Object.getOwnPropertyDescriptor&&HL?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,PI=HL&&FL&&typeof FL.get=="function"?FL.get:null,Pae=HL&&Set.prototype.forEach,l9e=typeof WeakMap=="function"&&WeakMap.prototype,G_=l9e?WeakMap.prototype.has:null,c9e=typeof WeakSet=="function"&&WeakSet.prototype,V_=c9e?WeakSet.prototype.has:null,d9e=typeof WeakRef=="function"&&WeakRef.prototype,Oae=d9e?WeakRef.prototype.deref:null,p9e=Boolean.prototype.valueOf,f9e=Object.prototype.toString,m9e=Function.prototype.toString,h9e=String.prototype.match,GL=String.prototype.slice,Pl=String.prototype.replace,g9e=String.prototype.toUpperCase,Rae=String.prototype.toLowerCase,Bae=RegExp.prototype.test,Dae=Array.prototype.concat,Fi=Array.prototype.join,v9e=Array.prototype.slice,Nae=Math.floor,LL=typeof BigInt=="function"?BigInt.prototype.valueOf:null,qL=Object.getOwnPropertySymbols,BL=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ch=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Rn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ch||!0)?Symbol.toStringTag:null,Uae=Object.prototype.propertyIsEnumerable,Aae=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Mae(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Bae.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Nae(-t):Nae(t);if(n!==t){var o=String(n),a=GL.call(e,o.length+1);return Pl.call(o,r,"$&_")+"."+Pl.call(Pl.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Pl.call(e,r,"$&_")}var UL=Iae(),Fae=UL.custom,qae=Wae(Fae)?Fae:null;Gae.exports=function t(e,r,n,o){var a=r||{};if(kl(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(kl(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=kl(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(kl(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(kl(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(typeof e=="undefined")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Hae(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return s?Mae(e,u):u}if(typeof e=="bigint"){var l=String(e)+"n";return s?Mae(e,l):l}var c=typeof a.depth=="undefined"?5:a.depth;if(typeof n=="undefined"&&(n=0),n>=c&&c>0&&typeof e=="object")return zL(e)?"[Array]":"[Object]";var p=M9e(a,n);if(typeof o=="undefined")o=[];else if($ae(o,e)>=0)return"[Circular]";function d(J,K,Z){if(K&&(o=v9e.call(o),o.push(K)),Z){var G={depth:a.depth};return kl(a,"quoteStyle")&&(G.quoteStyle=a.quoteStyle),t(J,G,n+1,o)}return t(J,a,n+1,o)}if(typeof e=="function"&&!jae(e)){var f=C9e(e),m=II(e,d);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(m.length>0?" { "+Fi.call(m,", ")+" }":"")}if(Wae(e)){var g=ch?Pl.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):BL.call(e);return typeof e=="object"&&!ch?H_(g):g}if(D9e(e)){for(var v="<"+Rae.call(String(e.nodeName)),h=e.attributes||[],y=0;y",v}if(zL(e)){if(e.length===0)return"[]";var b=II(e,d);return p&&!A9e(b)?"["+WL(b,p)+"]":"[ "+Fi.call(b,", ")+" ]"}if(b9e(e)){var E=II(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!Uae.call(e,"cause")?"{ ["+String(e)+"] "+Fi.call(Dae.call("[cause]: "+d(e.cause),E),", ")+" }":E.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Fi.call(E,", ")+" }"}if(typeof e=="object"&&i){if(qae&&typeof e[qae]=="function"&&UL)return UL(e,{depth:c-n});if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(I9e(e)){var w=[];return kae&&kae.call(e,function(J,K){w.push(d(K,e,!0)+" => "+d(J,e))}),Lae("Map",kI.call(e),w,p)}if(O9e(e)){var S=[];return Pae&&Pae.call(e,function(J){S.push(d(J,e))}),Lae("Set",PI.call(e),S,p)}if(k9e(e))return jL("WeakMap");if(R9e(e))return jL("WeakSet");if(P9e(e))return jL("WeakRef");if(E9e(e))return H_(d(Number(e)));if(w9e(e))return H_(d(LL.call(e)));if(T9e(e))return H_(p9e.call(e));if(S9e(e))return H_(d(String(e)));if(typeof window!="undefined"&&e===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&e===globalThis||typeof global!="undefined"&&e===global)return"{ [object globalThis] }";if(!_9e(e)&&!jae(e)){var C=II(e,d),P=Aae?Aae(e)===Object.prototype:e instanceof Object||e.constructor===Object,k=e instanceof Object?"":"null prototype",O=!P&&Rn&&Object(e)===e&&Rn in e?GL.call(Ol(e),8,-1):k?"Object":"",F=P||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",U=F+(O||k?"["+Fi.call(Dae.call([],O||[],k||[]),": ")+"] ":"");return C.length===0?U+"{}":p?U+"{"+WL(C,p)+"}":U+"{ "+Fi.call(C,", ")+" }"}return String(e)};function zae(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function y9e(t){return Pl.call(String(t),/"/g,""")}function zL(t){return Ol(t)==="[object Array]"&&(!Rn||!(typeof t=="object"&&Rn in t))}function _9e(t){return Ol(t)==="[object Date]"&&(!Rn||!(typeof t=="object"&&Rn in t))}function jae(t){return Ol(t)==="[object RegExp]"&&(!Rn||!(typeof t=="object"&&Rn in t))}function b9e(t){return Ol(t)==="[object Error]"&&(!Rn||!(typeof t=="object"&&Rn in t))}function S9e(t){return Ol(t)==="[object String]"&&(!Rn||!(typeof t=="object"&&Rn in t))}function E9e(t){return Ol(t)==="[object Number]"&&(!Rn||!(typeof t=="object"&&Rn in t))}function T9e(t){return Ol(t)==="[object Boolean]"&&(!Rn||!(typeof t=="object"&&Rn in t))}function Wae(t){if(ch)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!BL)return!1;try{return BL.call(t),!0}catch(e){}return!1}function w9e(t){if(!t||typeof t!="object"||!LL)return!1;try{return LL.call(t),!0}catch(e){}return!1}var x9e=Object.prototype.hasOwnProperty||function(t){return t in this};function kl(t,e){return x9e.call(t,e)}function Ol(t){return f9e.call(t)}function C9e(t){if(t.name)return t.name;var e=h9e.call(m9e.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function $ae(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Hae(GL.call(t,0,e.maxStringLength),e)+n}var o=Pl.call(Pl.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,N9e);return zae(o,"single",e)}function N9e(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+g9e.call(e.toString(16))}function H_(t){return"Object("+t+")"}function jL(t){return t+" { ? }"}function Lae(t,e,r,n){var o=n?WL(r,n):Fi.call(r,", ");return t+" ("+e+") {"+o+"}"}function A9e(t){for(var e=0;e=0)return!1;return!0}function M9e(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=Fi.call(Array(t.indent+1)," ");else return null;return{base:r,prev:Fi.call(Array(e+1),r)}}function WL(t,e){if(t.length===0)return"";var r=` `+e.prev+e.base;return r+Fi.call(t,","+r)+` -`+e.prev}function II(t,e){var r=zL(t),n=[];if(r){n.length=t.length;for(var o=0;o{"use strict";var Kae=Pd(),dh=Cae(),F9e=Vae(),q9e=oh(),OI=Kae("%WeakMap%",!0),RI=Kae("%Map%",!0),j9e=dh("WeakMap.prototype.get",!0),L9e=dh("WeakMap.prototype.set",!0),B9e=dh("WeakMap.prototype.has",!0),U9e=dh("Map.prototype.get",!0),z9e=dh("Map.prototype.set",!0),W9e=dh("Map.prototype.has",!0),VL=function(t,e){for(var r=t,n;(n=r.next)!==null;r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n},$9e=function(t,e){var r=VL(t,e);return r&&r.value},H9e=function(t,e,r){var n=VL(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},G9e=function(t,e){return!!VL(t,e)};Yae.exports=function(){var e,r,n,o={assert:function(a){if(!o.has(a))throw new q9e("Side channel does not contain "+F9e(a))},get:function(a){if(OI&&a&&(typeof a=="object"||typeof a=="function")){if(e)return j9e(e,a)}else if(RI){if(r)return U9e(r,a)}else if(n)return $9e(n,a)},has:function(a){if(OI&&a&&(typeof a=="object"||typeof a=="function")){if(e)return B9e(e,a)}else if(RI){if(r)return W9e(r,a)}else if(n)return G9e(n,a);return!1},set:function(a,i){OI&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new OI),L9e(e,a,i)):RI?(r||(r=new RI),z9e(r,a,i)):(n||(n={key:{},next:null}),H9e(n,a,i))}};return o}});var DI=_((dgt,Xae)=>{"use strict";var V9e=String.prototype.replace,K9e=/%20/g,KL={RFC1738:"RFC1738",RFC3986:"RFC3986"};Xae.exports={default:KL.RFC3986,formatters:{RFC1738:function(t){return V9e.call(t,K9e,"+")},RFC3986:function(t){return String(t)}},RFC1738:KL.RFC1738,RFC3986:KL.RFC3986}});var XL=_((fgt,Qae)=>{"use strict";var Y9e=DI(),YL=Object.prototype.hasOwnProperty,Od=Array.isArray,qi=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),J9e=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Od(n)){for(var o=[],a=0;a=JL?i.slice(u,u+JL):i,c=[],f=0;f=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||a===Y9e.RFC1738&&(d===40||d===41)){c[c.length]=l.charAt(f);continue}if(d<128){c[c.length]=qi[d];continue}if(d<2048){c[c.length]=qi[192|d>>6]+qi[128|d&63];continue}if(d<55296||d>=57344){c[c.length]=qi[224|d>>12]+qi[128|d>>6&63]+qi[128|d&63];continue}f+=1,d=65536+((d&1023)<<10|l.charCodeAt(f)&1023),c[c.length]=qi[240|d>>18]+qi[128|d>>12&63]+qi[128|d>>6&63]+qi[128|d&63]}s+=c.join("")}return s},tGe=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o{"use strict";var tie=Jae(),NI=XL(),K_=DI(),iGe=Object.prototype.hasOwnProperty,rie={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},ji=Array.isArray,sGe=Array.prototype.push,nie=function(t,e){sGe.apply(t,ji(e)?e:[e])},uGe=Date.prototype.toISOString,eie=K_.default,Wr={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:NI.encode,encodeValuesOnly:!1,format:eie,formatter:K_.formatters[eie],indices:!1,serializeDate:function(e){return uGe.call(e)},skipNulls:!1,strictNullHandling:!1},lGe=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},ZL={},cGe=function t(e,r,n,o,a,i,s,u,l,c,f,d,p,m,g,v,h,y){for(var b=e,E=y,w=0,S=!1;(E=E.get(ZL))!==void 0&&!S;){var C=E.get(e);if(w+=1,typeof C!="undefined"){if(C===w)throw new RangeError("Cyclic object value");S=!0}typeof E.get(ZL)=="undefined"&&(w=0)}if(typeof c=="function"?b=c(r,b):b instanceof Date?b=p(b):n==="comma"&&ji(b)&&(b=NI.maybeMap(b,function(V){return V instanceof Date?p(V):V})),b===null){if(i)return l&&!v?l(r,Wr.encoder,h,"key",m):r;b=""}if(lGe(b)||NI.isBuffer(b)){if(l){var P=v?r:l(r,Wr.encoder,h,"key",m);return[g(P)+"="+g(l(b,Wr.encoder,h,"value",m))]}return[g(r)+"="+g(String(b))]}var k=[];if(typeof b=="undefined")return k;var O;if(n==="comma"&&ji(b))v&&l&&(b=NI.maybeMap(b,l)),O=[{value:b.length>0?b.join(",")||null:void 0}];else if(ji(c))O=c;else{var F=Object.keys(b);O=f?F.sort(f):F}var U=u?r.replace(/\./g,"%2E"):r,J=o&&ji(b)&&b.length===1?U+"[]":U;if(a&&ji(b)&&b.length===0)return J+"[]";for(var K=0;K0?p+d:""}});var uie=_((mgt,sie)=>{"use strict";var fh=XL(),QL=Object.prototype.hasOwnProperty,fGe=Array.isArray,_r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:fh.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},pGe=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},iie=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},mGe="utf8=%26%2310003%3B",hGe="utf8=%E2%9C%93",gGe=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=r.parameterLimit===1/0?void 0:r.parameterLimit,i=o.split(r.delimiter,a),s=-1,u,l=r.charset;if(r.charsetSentinel)for(u=0;u-1&&(m=fGe(m)?[m]:m);var g=QL.call(n,p);g&&r.duplicates==="combine"?n[p]=fh.combine(n[p],m):(!g||r.duplicates==="last")&&(n[p]=m)}return n},vGe=function(t,e,r,n){for(var o=n?e:iie(e,r),a=t.length-1;a>=0;--a){var i,s=t[a];if(s==="[]"&&r.parseArrays)i=r.allowEmptyArrays&&(o===""||r.strictNullHandling&&o===null)?[]:[].concat(o);else{i=r.plainObjects?Object.create(null):{};var u=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,l=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,c=parseInt(l,10);!r.parseArrays&&l===""?i={0:o}:!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[],i[c]=o):l!=="__proto__"&&(i[l]=o)}o=i}return o},yGe=function(e,r,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,u=n.depth>0&&i.exec(a),l=u?a.slice(0,u.index):a,c=[];if(l){if(!n.plainObjects&&QL.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var f=0;n.depth>0&&(u=s.exec(a))!==null&&f{"use strict";var bGe=aie(),SGe=uie(),EGe=DI();lie.exports={formats:EGe,parse:SGe,stringify:bGe}});var AI=_(mh=>{"use strict";var TGe=Coe();function ca(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var wGe=/^([a-z0-9.+-]+:)/i,xGe=/:[0-9]*$/,CGe=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,IGe=["<",">",'"',"`"," ","\r",` -`," "],kGe=["{","}","|","\\","^","`"].concat(IGe),eB=["'"].concat(kGe),die=["%","/","?",";","#"].concat(eB),fie=["/","?","#"],PGe=255,pie=/^[+a-z0-9A-Z_-]{0,63}$/,OGe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,RGe={javascript:!0,"javascript:":!0},tB={javascript:!0,"javascript:":!0},ph={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},rB=cie();function Y_(t,e,r){if(t&&typeof t=="object"&&t instanceof ca)return t;var n=new ca;return n.parse(t,e,r),n}ca.prototype.parse=function(t,e,r){if(typeof t!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),o=n!==-1&&n127?w+="x":w+=E[S];if(!w.match(pie)){var P=y.slice(0,p),k=y.slice(p+1),O=E.match(OGe);O&&(P.push(O[1]),k.unshift(O[2])),k.length&&(s="/"+k.join(".")+s),this.hostname=P.join(".");break}}}this.hostname.length>PGe?this.hostname="":this.hostname=this.hostname.toLowerCase(),h||(this.hostname=TGe.toASCII(this.hostname));var F=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+F,this.href+=this.host,h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!=="/"&&(s="/"+s))}if(!RGe[c])for(var p=0,b=eB.length;p0?r.host.split("@"):!1;w&&(r.auth=w.shift(),r.hostname=w.shift(),r.host=r.hostname)}return r.search=t.search,r.query=t.query,(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!y.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var S=y.slice(-1)[0],C=(r.host||t.host||y.length>1)&&(S==="."||S==="..")||S==="",P=0,k=y.length;k>=0;k--)S=y[k],S==="."?y.splice(k,1):S===".."?(y.splice(k,1),P++):P&&(y.splice(k,1),P--);if(!v&&!h)for(;P--;P)y.unshift("..");v&&y[0]!==""&&(!y[0]||y[0].charAt(0)!=="/")&&y.unshift(""),C&&y.join("/").substr(-1)!=="/"&&y.push("");var O=y[0]===""||y[0]&&y[0].charAt(0)==="/";if(E){r.hostname=O?"":y.length?y.shift():"",r.host=r.hostname;var w=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;w&&(r.auth=w.shift(),r.hostname=w.shift(),r.host=r.hostname)}return v=v||r.host&&y.length,v&&!O&&y.unshift(""),y.length>0?r.pathname=y.join("/"):(r.pathname=null,r.path=null),(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r};ca.prototype.parseHost=function(){var t=this.host,e=xGe.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};mh.parse=Y_;mh.resolve=NGe;mh.resolveObject=AGe;mh.format=DGe;mh.Url=ca});var Rl=_((Ao,iB)=>{"use strict";var hie=AI(),nB=Ao.ValidationError=function(e,r,n,o,a,i){if(Array.isArray(o)?(this.path=o,this.property=o.reduce(function(u,l){return u+gie(l)},"instance")):o!==void 0&&(this.property=o),e&&(this.message=e),n){var s=n.$id||n.id;this.schema=s||n}r!==void 0&&(this.instance=r),this.name=a,this.argument=i,this.stack=this.toString()};nB.prototype.toString=function(){return this.property+" "+this.message};var MI=Ao.ValidatorResult=function(e,r,n,o){this.instance=e,this.schema=r,this.options=n,this.path=o.path,this.propertyPath=o.propertyPath,this.errors=[],this.throwError=n&&n.throwError,this.throwFirst=n&&n.throwFirst,this.throwAll=n&&n.throwAll,this.disableFormat=n&&n.disableFormat===!0};MI.prototype.addError=function(e){var r;if(typeof e=="string")r=new nB(e,this.instance,this.schema,this.path);else{if(!e)throw new Error("Missing error detail");if(!e.message)throw new Error("Missing error message");if(!e.name)throw new Error("Missing validator type");r=new nB(e.message,this.instance,this.schema,this.path,e.name,e.argument)}if(this.errors.push(r),this.throwFirst)throw new Rd(this);if(this.throwError)throw r;return r};MI.prototype.importErrors=function(e){typeof e=="string"||e&&e.validatorType?this.addError(e):e&&e.errors&&(this.errors=this.errors.concat(e.errors))};function MGe(t,e){return e+": "+t.toString()+` -`}MI.prototype.toString=function(e){return this.errors.map(MGe).join("")};Object.defineProperty(MI.prototype,"valid",{get:function(){return!this.errors.length}});iB.exports.ValidatorResultError=Rd;function Rd(t){Error.captureStackTrace&&Error.captureStackTrace(this,Rd),this.instance=t.instance,this.schema=t.schema,this.options=t.options,this.errors=t.errors}Rd.prototype=new Error;Rd.prototype.constructor=Rd;Rd.prototype.name="Validation Error";var mie=Ao.SchemaError=function t(e,r){this.message=e,this.schema=r,Error.call(this,e),Error.captureStackTrace(this,t)};mie.prototype=Object.create(Error.prototype,{constructor:{value:mie,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var oB=Ao.SchemaContext=function(e,r,n,o,a){this.schema=e,this.options=r,Array.isArray(n)?(this.path=n,this.propertyPath=n.reduce(function(i,s){return i+gie(s)},"instance")):this.propertyPath=n,this.base=o,this.schemas=a};oB.prototype.resolve=function(e){return hie.resolve(this.base,e)};oB.prototype.makeChild=function(e,r){var n=r===void 0?this.path:this.path.concat([r]),o=e.$id||e.id,a=hie.resolve(this.base,o||""),i=new oB(e,this.options,n,a,Object.create(this.schemas));return o&&!i.schemas[a]&&(i.schemas[a]=e),i};var Ba=Ao.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(t){return typeof t=="string"&&parseFloat(t)===parseInt(t,10)&&!isNaN(t)},regex:function(t){var e=!0;try{new RegExp(t)}catch(r){e=!1}return e},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};Ba.regexp=Ba.regex;Ba.pattern=Ba.regex;Ba.ipv4=Ba["ip-address"];Ao.isFormat=function(e,r,n){if(typeof e=="string"&&Ba[r]!==void 0){if(Ba[r]instanceof RegExp)return Ba[r].test(e);if(typeof Ba[r]=="function")return Ba[r](e)}else if(n&&n.customFormats&&typeof n.customFormats[r]=="function")return n.customFormats[r](e);return!0};var gie=Ao.makeSuffix=function(e){return e=e.toString(),!e.match(/[.\s\[\]]/)&&!e.match(/^[\d]/)?"."+e:e.match(/^\d+$/)?"["+e+"]":"["+JSON.stringify(e)+"]"};Ao.deepCompareStrict=function t(e,r){if(typeof e!=typeof r)return!1;if(Array.isArray(e))return!Array.isArray(r)||e.length!==r.length?!1:e.every(function(a,i){return t(e[i],r[i])});if(typeof e=="object"){if(!e||!r)return e===r;var n=Object.keys(e),o=Object.keys(r);return n.length!==o.length?!1:n.every(function(a){return t(e[a],r[a])})}return e===r};function FGe(t,e,r,n){typeof r=="object"?e[n]=aB(t[n],r):t.indexOf(r)===-1&&e.push(r)}function qGe(t,e,r){e[r]=t[r]}function jGe(t,e,r,n){typeof e[n]!="object"||!e[n]?r[n]=e[n]:t[n]?r[n]=aB(t[n],e[n]):r[n]=e[n]}function aB(t,e){var r=Array.isArray(e),n=r&&[]||{};return r?(t=t||[],n=n.concat(t),e.forEach(FGe.bind(null,t,n))):(t&&typeof t=="object"&&Object.keys(t).forEach(qGe.bind(null,t,n)),Object.keys(e).forEach(jGe.bind(null,t,e,n))),n}iB.exports.deepMerge=aB;Ao.objectGetPath=function(e,r){for(var n=r.split("/").slice(1),o;typeof(o=n.shift())=="string";){var a=decodeURIComponent(o.replace(/~0/,"~").replace(/~1/g,"/"));if(!(a in e))return;e=e[a]}return e};function LGe(t){return"/"+encodeURIComponent(t).replace(/~/g,"%7E")}Ao.encodePath=function(e){return e.map(LGe).join("")};Ao.getDecimalPlaces=function(e){var r=0;if(isNaN(e))return r;typeof e!="number"&&(e=Number(e));var n=e.toString().split("e");if(n.length===2){if(n[1][0]!=="-")return r;r=Number(n[1].slice(1))}var o=n[0].split(".");return o.length===2&&(r+=o[1].length),r};Ao.isSchema=function(e){return typeof e=="object"&&e||typeof e=="boolean"}});var bie=_((vgt,_ie)=>{"use strict";var Mo=Rl(),yt=Mo.ValidatorResult,Dl=Mo.SchemaError,sB={};sB.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var _t=sB.validators={};_t.type=function(e,r,n,o){if(e===void 0)return null;var a=new yt(e,r,n,o),i=Array.isArray(r.type)?r.type:[r.type];if(!i.some(this.testType.bind(this,e,r,n,o))){var s=i.map(function(u){if(u){var l=u.$id||u.id;return l?"<"+l+">":u+""}});a.addError({name:"type",argument:s,message:"is not of a type(s) "+s})}return a};function uB(t,e,r,n,o){var a=e.throwError,i=e.throwAll;e.throwError=!1,e.throwAll=!1;var s=this.validateSchema(t,o,e,r);return e.throwError=a,e.throwAll=i,!s.valid&&n instanceof Function&&n(s),s.valid}_t.anyOf=function(e,r,n,o){if(e===void 0)return null;var a=new yt(e,r,n,o),i=new yt(e,r,n,o);if(!Array.isArray(r.anyOf))throw new Dl("anyOf must be an array");if(!r.anyOf.some(uB.bind(this,e,n,o,function(u){i.importErrors(u)}))){var s=r.anyOf.map(function(u,l){var c=u.$id||u.id;return c?"<"+c+">":u.title&&JSON.stringify(u.title)||u.$ref&&"<"+u.$ref+">"||"[subschema "+l+"]"});n.nestedErrors&&a.importErrors(i),a.addError({name:"anyOf",argument:s,message:"is not any of "+s.join(",")})}return a};_t.allOf=function(e,r,n,o){if(e===void 0)return null;if(!Array.isArray(r.allOf))throw new Dl("allOf must be an array");var a=new yt(e,r,n,o),i=this;return r.allOf.forEach(function(s,u){var l=i.validateSchema(e,s,n,o);if(!l.valid){var c=s.$id||s.id,f=c||s.title&&JSON.stringify(s.title)||s.$ref&&"<"+s.$ref+">"||"[subschema "+u+"]";a.addError({name:"allOf",argument:{id:f,length:l.errors.length,valid:l},message:"does not match allOf schema "+f+" with "+l.errors.length+" error[s]:"}),a.importErrors(l)}}),a};_t.oneOf=function(e,r,n,o){if(e===void 0)return null;if(!Array.isArray(r.oneOf))throw new Dl("oneOf must be an array");var a=new yt(e,r,n,o),i=new yt(e,r,n,o),s=r.oneOf.filter(uB.bind(this,e,n,o,function(l){i.importErrors(l)})).length,u=r.oneOf.map(function(l,c){var f=l.$id||l.id;return f||l.title&&JSON.stringify(l.title)||l.$ref&&"<"+l.$ref+">"||"[subschema "+c+"]"});return s!==1&&(n.nestedErrors&&a.importErrors(i),a.addError({name:"oneOf",argument:u,message:"is not exactly one from "+u.join(",")})),a};_t.if=function(e,r,n,o){if(e===void 0)return null;if(!Mo.isSchema(r.if))throw new Error('Expected "if" keyword to be a schema');var a=uB.call(this,e,n,o,null,r.if),i=new yt(e,r,n,o),s;if(a){if(r.then===void 0)return;if(!Mo.isSchema(r.then))throw new Error('Expected "then" keyword to be a schema');s=this.validateSchema(e,r.then,n,o.makeChild(r.then)),i.importErrors(s)}else{if(r.else===void 0)return;if(!Mo.isSchema(r.else))throw new Error('Expected "else" keyword to be a schema');s=this.validateSchema(e,r.else,n,o.makeChild(r.else)),i.importErrors(s)}return i};function lB(t,e){if(Object.hasOwnProperty.call(t,e))return t[e];if(e in t){for(;t=Object.getPrototypeOf(t);)if(Object.propertyIsEnumerable.call(t,e))return t[e]}}_t.propertyNames=function(e,r,n,o){if(this.types.object(e)){var a=new yt(e,r,n,o),i=r.propertyNames!==void 0?r.propertyNames:{};if(!Mo.isSchema(i))throw new Dl('Expected "propertyNames" to be a schema (object or boolean)');for(var s in e)if(lB(e,s)!==void 0){var u=this.validateSchema(s,i,n,o.makeChild(i));a.importErrors(u)}return a}};_t.properties=function(e,r,n,o){if(this.types.object(e)){var a=new yt(e,r,n,o),i=r.properties||{};for(var s in i){var u=i[s];if(u!==void 0){if(u===null)throw new Dl('Unexpected null, expected schema in "properties"');typeof n.preValidateProperty=="function"&&n.preValidateProperty(e,s,u,n,o);var l=lB(e,s),c=this.validateSchema(l,u,n,o.makeChild(u,s));c.instance!==a.instance[s]&&(a.instance[s]=c.instance),a.importErrors(c)}}return a}};function vie(t,e,r,n,o,a){if(this.types.object(t)&&!(e.properties&&e.properties[o]!==void 0))if(e.additionalProperties===!1)a.addError({name:"additionalProperties",argument:o,message:"is not allowed to have the additional property "+JSON.stringify(o)});else{var i=e.additionalProperties||{};typeof r.preValidateProperty=="function"&&r.preValidateProperty(t,o,i,r,n);var s=this.validateSchema(t[o],i,r,n.makeChild(i,o));s.instance!==a.instance[o]&&(a.instance[o]=s.instance),a.importErrors(s)}}_t.patternProperties=function(e,r,n,o){if(this.types.object(e)){var a=new yt(e,r,n,o),i=r.patternProperties||{};for(var s in e){var u=!0;for(var l in i){var c=i[l];if(c!==void 0){if(c===null)throw new Dl('Unexpected null, expected schema in "patternProperties"');try{var f=new RegExp(l,"u")}catch(p){f=new RegExp(l)}if(f.test(s)){u=!1,typeof n.preValidateProperty=="function"&&n.preValidateProperty(e,s,c,n,o);var d=this.validateSchema(e[s],c,n,o.makeChild(c,s));d.instance!==a.instance[s]&&(a.instance[s]=d.instance),a.importErrors(d)}}}u&&vie.call(this,e,r,n,o,s,a)}return a}};_t.additionalProperties=function(e,r,n,o){if(this.types.object(e)){if(r.patternProperties)return null;var a=new yt(e,r,n,o);for(var i in e)vie.call(this,e,r,n,o,i,a);return a}};_t.minProperties=function(e,r,n,o){if(this.types.object(e)){var a=new yt(e,r,n,o),i=Object.keys(e);return i.length>=r.minProperties||a.addError({name:"minProperties",argument:r.minProperties,message:"does not meet minimum property length of "+r.minProperties}),a}};_t.maxProperties=function(e,r,n,o){if(this.types.object(e)){var a=new yt(e,r,n,o),i=Object.keys(e);return i.length<=r.maxProperties||a.addError({name:"maxProperties",argument:r.maxProperties,message:"does not meet maximum property length of "+r.maxProperties}),a}};_t.items=function(e,r,n,o){var a=this;if(this.types.array(e)&&r.items!==void 0){var i=new yt(e,r,n,o);return e.every(function(s,u){if(Array.isArray(r.items))var l=r.items[u]===void 0?r.additionalItems:r.items[u];else var l=r.items;if(l===void 0)return!0;if(l===!1)return i.addError({name:"items",message:"additionalItems not permitted"}),!1;var c=a.validateSchema(s,l,n,o.makeChild(l,u));return c.instance!==i.instance[u]&&(i.instance[u]=c.instance),i.importErrors(c),!0}),i}};_t.contains=function(e,r,n,o){var a=this;if(this.types.array(e)&&r.contains!==void 0){if(!Mo.isSchema(r.contains))throw new Error('Expected "contains" keyword to be a schema');var i=new yt(e,r,n,o),s=e.some(function(u,l){var c=a.validateSchema(u,r.contains,n,o.makeChild(r.contains,l));return c.errors.length===0});return s===!1&&i.addError({name:"contains",argument:r.contains,message:"must contain an item matching given schema"}),i}};_t.minimum=function(e,r,n,o){if(this.types.number(e)){var a=new yt(e,r,n,o);return r.exclusiveMinimum&&r.exclusiveMinimum===!0?e>r.minimum||a.addError({name:"minimum",argument:r.minimum,message:"must be greater than "+r.minimum}):e>=r.minimum||a.addError({name:"minimum",argument:r.minimum,message:"must be greater than or equal to "+r.minimum}),a}};_t.maximum=function(e,r,n,o){if(this.types.number(e)){var a=new yt(e,r,n,o);return r.exclusiveMaximum&&r.exclusiveMaximum===!0?er.exclusiveMinimum;return i||a.addError({name:"exclusiveMinimum",argument:r.exclusiveMinimum,message:"must be strictly greater than "+r.exclusiveMinimum}),a}};_t.exclusiveMaximum=function(e,r,n,o){if(typeof r.exclusiveMaximum!="boolean"&&this.types.number(e)){var a=new yt(e,r,n,o),i=e=r.minLength||a.addError({name:"minLength",argument:r.minLength,message:"does not meet minimum length of "+r.minLength}),a}};_t.maxLength=function(e,r,n,o){if(this.types.string(e)){var a=new yt(e,r,n,o),i=e.match(/[\uDC00-\uDFFF]/g),s=e.length-(i?i.length:0);return s<=r.maxLength||a.addError({name:"maxLength",argument:r.maxLength,message:"does not meet maximum length of "+r.maxLength}),a}};_t.minItems=function(e,r,n,o){if(this.types.array(e)){var a=new yt(e,r,n,o);return e.length>=r.minItems||a.addError({name:"minItems",argument:r.minItems,message:"does not meet minimum length of "+r.minItems}),a}};_t.maxItems=function(e,r,n,o){if(this.types.array(e)){var a=new yt(e,r,n,o);return e.length<=r.maxItems||a.addError({name:"maxItems",argument:r.maxItems,message:"does not meet maximum length of "+r.maxItems}),a}};function BGe(t,e,r){var n,o=r.length;for(n=e+1,o;n{"use strict";var Sie=AI(),UGe=Rl();cB.exports.SchemaScanResult=Eie;function Eie(t,e){this.id=t,this.ref=e}cB.exports.scan=function(e,r){function n(u,l){if(!(!l||typeof l!="object")){if(l.$ref){var c=Sie.resolve(u,l.$ref);s[c]=s[c]?s[c]+1:0;return}var f=l.$id||l.id,d=f?Sie.resolve(u,f):u;if(d){if(d.indexOf("#")<0&&(d+="#"),i[d]){if(!UGe.deepCompareStrict(i[d],l))throw new Error("Schema <"+d+"> already exists with different definition");return i[d]}i[d]=l,d[d.length-1]=="#"&&(i[d.substring(0,d.length-1)]=l)}o(d+"/items",Array.isArray(l.items)?l.items:[l.items]),o(d+"/extends",Array.isArray(l.extends)?l.extends:[l.extends]),n(d+"/additionalItems",l.additionalItems),a(d+"/properties",l.properties),n(d+"/additionalProperties",l.additionalProperties),a(d+"/definitions",l.definitions),a(d+"/patternProperties",l.patternProperties),a(d+"/dependencies",l.dependencies),o(d+"/disallow",l.disallow),o(d+"/allOf",l.allOf),o(d+"/anyOf",l.anyOf),o(d+"/oneOf",l.oneOf),n(d+"/not",l.not)}}function o(u,l){if(Array.isArray(l))for(var c=0;c{"use strict";var Tie=AI(),wie=bie(),Dd=Rl(),xie=FI().scan,Cie=Dd.ValidatorResult,zGe=Dd.ValidatorResultError,J_=Dd.SchemaError,Iie=Dd.SchemaContext,kie="/",nn=function t(){this.customFormats=Object.create(t.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(Li),this.attributes=Object.create(wie.validators)};nn.prototype.customFormats={};nn.prototype.schemas=null;nn.prototype.types=null;nn.prototype.attributes=null;nn.prototype.unresolvedRefs=null;nn.prototype.addSchema=function(e,r){var n=this;if(!e)return null;var o=xie(r||kie,e),a=r||e.$id||e.id;for(var i in o.id)this.schemas[i]=o.id[i];for(var i in o.ref)this.unresolvedRefs.push(i);return this.unresolvedRefs=this.unresolvedRefs.filter(function(s){return typeof n.schemas[s]=="undefined"}),this.schemas[a]};nn.prototype.addSubSchemaArray=function(e,r){if(Array.isArray(r))for(var n=0;n",e);var s=Dd.objectGetPath(n.schemas[i],a.substr(1));if(s===void 0)throw new J_("no such schema "+a+" located in <"+i+">",e);return{subschema:s,switchSchema:r}};nn.prototype.testType=function(e,r,n,o,a){if(a!==void 0){if(a===null)throw new J_('Unexpected null in "type" keyword');if(typeof this.types[a]=="function")return this.types[a].call(this,e);if(a&&typeof a=="object"){var i=this.validateSchema(e,a,n,o);return i===void 0||!(i&&i.errors.length)}return!0}};var Li=nn.prototype.types={};Li.string=function(e){return typeof e=="string"};Li.number=function(e){return typeof e=="number"&&isFinite(e)};Li.integer=function(e){return typeof e=="number"&&e%1===0};Li.boolean=function(e){return typeof e=="boolean"};Li.array=function(e){return Array.isArray(e)};Li.null=function(e){return e===null};Li.date=function(e){return e instanceof Date};Li.any=function(e){return!0};Li.object=function(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof Date)};Oie.exports=nn});var Die=_((bgt,Ks)=>{"use strict";var WGe=Ks.exports.Validator=Rie();Ks.exports.ValidatorResult=Rl().ValidatorResult;Ks.exports.ValidatorResultError=Rl().ValidatorResultError;Ks.exports.ValidationError=Rl().ValidationError;Ks.exports.SchemaError=Rl().SchemaError;Ks.exports.SchemaScanResult=FI().SchemaScanResult;Ks.exports.scan=FI().scan;Ks.exports.validate=function(t,e,r){var n=new WGe;return n.validate(t,e,r)}});var Nie=_((Sgt,$Ge)=>{$Ge.exports={description:"AdapterConfigMessages with optional `nameLang` attributes to be used in\nimports from predefined configurations from GitHub.",type:"object",additionalProperties:{$ref:"#/definitions/T"},definitions:{T:{type:"object",properties:{id:{description:"The ID of the message a hex string.",type:"string"},name:{type:"string"},dlc:{type:"number"},receive:{type:"boolean"},send:{type:"boolean"},autosend:{type:"boolean"},parsers:{$ref:"#/definitions/ioBroker.AdapterConfigMessageParsers"}},required:["autosend","dlc","id","name","parsers","receive","send"]},"ioBroker.AdapterConfigMessageParsers":{type:"object",additionalProperties:{$ref:"#/definitions/T_1"}},T_1:{type:"object",properties:{id:{type:"string"},name:{type:"string"},dataType:{$ref:"#/definitions/global.ioBroker.AdapterConfigDataType"},dataOffset:{type:"number"},dataLength:{type:"number"},dataEncoding:{$ref:"#/definitions/global.ioBroker.AdapterConfigDataEncoding"},dataUnit:{type:"string"},booleanMask:{type:"number"},booleanInvert:{type:"boolean"},customDataType:{$ref:"#/definitions/global.ioBroker.CommonType"},customScriptRead:{type:"string"},customScriptWrite:{type:"string"},commonRole:{description:"The role of the ioBroker state.",type:"string"},commonStates:{description:"Common states (for common.states) for predefined values or `false` if not used.",anyOf:[{const:!1,type:"boolean"},{type:"string"}]},autoSetInterval:{description:"Automatically set a value in the given interval. `false` to disable.",anyOf:[{const:!1,type:"boolean"},{type:"number"}]},autoSetValue:{description:"Value to set automatically.",type:["string","number","boolean"]},autoSetTriggerSend:{description:"Trigger send action if the value is set automatically.",type:"boolean"}},required:["booleanInvert","booleanMask","commonRole","commonStates","customDataType","customScriptRead","customScriptWrite","dataEncoding","dataLength","dataOffset","dataType","dataUnit","id","name"]},"global.ioBroker.AdapterConfigDataType":{enum:["boolean","custom","double64_be","double64_le","float32_be","float32_le","int16_be","int16_le","int32_be","int32_le","int8","string","uint16_be","uint16_le","uint32_be","uint32_le","uint8"],type:"string"},"global.ioBroker.AdapterConfigDataEncoding":{enum:["ascii","base64","hex","latin1","utf16le","utf8"],type:"string"},"global.ioBroker.CommonType":{enum:["array","boolean","file","mixed","number","object","string"],type:"string"}},$schema:"http://json-schema.org/draft-07/schema#"}});var Aie=_((Egt,HGe)=>{HGe.exports={description:"The well known messages index.",type:"object",additionalProperties:{$ref:"#/definitions/ioBroker.WellKnownMessagesIndexEntry"},definitions:{"ioBroker.WellKnownMessagesIndexEntry":{description:"An entry in the well known messages index.",type:"object",properties:{name:{description:"Name",type:"string"},nameLang:{description:"Optional localized names",$ref:"#/definitions/Partial>"},description:{description:"Description, optionally formated with markdown",type:"string"},descriptionLang:{description:"Optional localized descriptions, optionally formated with markdown",$ref:"#/definitions/Partial>"},authors:{description:"Array of authors, optionally formated with markdown",type:"array",items:{type:"string"}},releases:{description:"Array of the releases in descending order",type:"array",items:{$ref:"#/definitions/ioBroker.WellKnownMessagesIndexEntryRelease"}},license:{description:"License of this configuration.",type:"string"}},required:["authors","description","name","releases"]},"Partial>":{type:"object",properties:{en:{type:"string"},de:{type:"string"},ru:{type:"string"},pt:{type:"string"},nl:{type:"string"},fr:{type:"string"},it:{type:"string"},es:{type:"string"},pl:{type:"string"},uk:{type:"string"},"zh-cn":{type:"string"}}},"ioBroker.WellKnownMessagesIndexEntryRelease":{description:"A Release in the well known messages index.",type:"object",properties:{version:{description:"The version number of this release (semver)",type:"string"},file:{description:"File name of this configuration in `well-known-messages/configs/`",type:"string"}},required:["file","version"]}},$schema:"http://json-schema.org/draft-07/schema#"}});var pB=_(qI=>{"use strict";var XGe=$(),ZGe=Ne();Object.defineProperty(qI,"__esModule",{value:!0});qI.default=void 0;var QGe=ZGe(z()),eVe=XGe(ia()),tVe=(0,eVe.default)(QGe.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");qI.default=tVe});var Uie=_(LI=>{"use strict";var $r=$();Object.defineProperty(LI,"__esModule",{value:!0});LI.default=void 0;var rVe=$r(ho()),nVe=$r(Yn()),oVe=$r(Au()),aVe=$r(Mu()),jie=$r(cs()),Fo=$r(z()),Ys=$r(je()),iVe=$r(Mt()),Lie=$r(rm()),sVe=$r(VF()),uVe=$r(YF()),lVe=$r(XF()),cVe=$r(tq()),dVe=$r(oq()),fVe=$r(zC()),pVe=$r(VC()),mVe=$r(bq()),hVe=$r(Jx()),jI=$r(_o());function gVe(t){var e=vVe();return function(){var n=(0,jie.default)(t),o;if(e){var a=(0,jie.default)(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return(0,aVe.default)(this,o)}}function vVe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var yVe={suppress:{fontSize:12},suppressRoot:{marginTop:16}},Bie=function(t){(0,oVe.default)(r,t);var e=gVe(r);function r(n){var o;if((0,rVe.default)(this,r),o=e.call(this,n),!o.props.dialogName&&o.props.suppressQuestionMinutes)throw new Error("dialogName required if suppressQuestionMinutes used");var a=!1;return o.props.suppressQuestionMinutes&&(a=parseInt(window.localStorage.getItem(o.props.dialogName),10)||0,a?Date.now()>a&&(window.localStorage.removeItem(o.props.dialogName),a=!1):a=!1),o.state={suppress:a},o}return(0,nVe.default)(r,[{key:"handleOk",value:function(){this.state.suppress&&window.localStorage.setItem(this.props.dialogName,Date.now()+this.props.suppressQuestionMinutes*6e4),this.props.onClose&&this.props.onClose(!0)}},{key:"handleCancel",value:function(){this.props.onClose&&this.props.onClose(!1)}},{key:"render",value:function(){var o=this;return typeof this.state.suppress=="number"?(setTimeout(function(){return o.props.onClose&&o.props.onClose(!0)},100),null):Fo.default.createElement(sVe.default,{open:!0,maxWidth:"md",fullWidth:!0,onClose:function(i,s){s!=="backdropClick"&&s!=="escapeKeyDown"&&o.handleCancel()},"aria-labelledby":"confirmation-dialog-title","aria-describedby":"confirmation-dialog-description"},Fo.default.createElement(dVe.default,{id:"confirmation-dialog-title"},this.props.title||jI.default.t("ra_Are you sure?")),Fo.default.createElement(lVe.default,null,Fo.default.createElement(cVe.default,{id:"confirmation-dialog-description"},this.props.icon||null,this.props.text,this.props.suppressQuestionMinutes?Fo.default.createElement("br",null):null,this.props.suppressQuestionMinutes?Fo.default.createElement(fVe.default,{classes:{label:this.props.classes.suppress,root:this.props.classes.suppressRoot},control:Fo.default.createElement(pVe.default,{checked:!!this.state.suppress,onChange:function(){return o.setState({suppress:!o.state.suppress})}}),label:this.props.suppressText||jI.default.t("ra_Suppress question for next %s minutes",this.props.suppressQuestionMinutes)}):null)),Fo.default.createElement(uVe.default,null,Fo.default.createElement(Lie.default,{variant:"contained",onClick:function(){return o.handleOk()},color:"primary",autoFocus:!0,startIcon:Fo.default.createElement(mVe.default,null)},this.props.ok||jI.default.t("ra_Ok")),Fo.default.createElement(Lie.default,{variant:"contained",onClick:function(){return o.handleCancel()},startIcon:Fo.default.createElement(hVe.default,null)},this.props.cancel||jI.default.t("ra_Cancel"))))}}]),r}(Fo.default.Component);Bie.propTypes={onClose:Ys.default.func.isRequired,title:Ys.default.string,text:Ys.default.string,ok:Ys.default.string,cancel:Ys.default.string,icon:Ys.default.object,suppressQuestionMinutes:Ys.default.number,suppressText:Ys.default.string,dialogName:Ys.default.string};var _Ve=(0,iVe.default)(yVe)(Bie),bVe=_Ve;LI.default=bVe});var zie=_(zI=>{"use strict";var SVe=$(),EVe=Ne();Object.defineProperty(zI,"__esModule",{value:!0});zI.default=void 0;var TVe=EVe(z()),wVe=SVe(ia()),xVe=(0,wVe.default)(TVe.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");zI.default=xVe});var nse=_((xvt,OVe)=>{OVe.exports={"loading...":"loading\u2026",General:"General","ID missing":"ID missing",Messages:"Messages",Message:"Message",Interface:"Interface","e.g.":"e.g.","Auto add seen messages":"Auto add seen messages","Automatically add new messages to the list of our known messages when they are received.":"Automatically add new messages to the list of our known messages when they are received.","Delete unconfigured messages":"Delete unconfigured messages","Delete all objects of unconfigured messages on adapter startup.":"Delete all objects of unconfigured messages on adapter startup.","Only allowed chars: %s":"Only allowed chars: %s","Configured messages":"Configured messages","Unconfigured messages":"Unconfigured messages",Add:"Add",Remove:"Remove",Reload:"Reload","Message ID":"Message ID","CAN message ID in hex":"CAN message ID in hex","This ID is configured multiple times with this data length":"This ID is configured multiple times with this data length",or:"or",Name:"Name","My super message":"My super message","Data length":"Data length","Not set":"Not set","Optionally set a fixed data length for this message":"Optionally set a fixed data length for this message",Receive:"Receive","Receive messages with the given ID":"Receive messages with the given ID",Send:"Send","Send messages with the given ID":"Send messages with the given ID",Autosend:"Autosend","Automatically send the message when some data part changed":"Automatically send the message when some data part changed",Parsers:"Parsers","Must be a 3 or 8 char hex ID":"Must be a 3 or 8 char hex ID","Remove this message?":"Remove this message?","Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart.":"Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart.","Parser ID":"Parser ID",Temperature:"Temperature","Data type":"Data type","Data type in the can message":"Data type in the can message","Data type in ioBroker":"Data type in ioBroker",Offset:"Offset",Length:"Length",Encoding:"Encoding",Unit:"Unit","Boolean bitmask":"Boolean bitmask","Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.":"Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.","Boolean invert":"Boolean invert","Invert the boolean value":"Invert the boolean value","This ID is reserved and can't be used":"This ID is reserved and can't be used","There are some errors in you configuration. Please check!":"There are some errors in you configuration. Please check!","Custom script read":"Custom script read","Custom script write":"Custom script write","Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.":"Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.","Script to write the value to the buffer. The buffer is available as %s and the value as %s.":"Script to write the value to the buffer. The buffer is available as %s and the value as %s.","Your configuration is invalid. Please check the settings marked in red.":"Your configuration is invalid. Please check the settings marked in red.","Use raw states":"Use raw states","Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput.":"Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput.",and:"and","Use rtr flag":"Use rtr flag","Add an additional Remote Transmission Request (rtr) state on each message.":"Add an additional Remote Transmission Request (rtr) state on each message.","Import / Export":"Import / Export",Import:"Import",Export:"Export","Using this import feature you are able to import message configurations to extend your existing configuration.":"Using this import feature you are able to import message configurations to extend your existing configuration.","You may use a predefined configuration from GitHub or upload a custom file.":"You may use a predefined configuration from GitHub or upload a custom file.","Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.":"Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.","Fetch configurations from GitHub":"Fetch configurations from GitHub","Overwrite existing messages on import":"Overwrite existing messages on import","If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option.":"If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option.","Show on GitHub":"Show on GitHub","Import from GitHub":"Import from GitHub","Import from file":"Import from file","Using this export feature you are able to export your message configurations.":"Using this export feature you are able to export your message configurations.","The exported files can be shared or edited externally and reimported to update your configuration.":"The exported files can be shared or edited externally and reimported to update your configuration.","Export format":"Export format","Select messages to export":"Select messages to export","If checked, you can select the configured messages you want to export. If not checked, all messages will be exported.":"If checked, you can select the configured messages you want to export. If not checked, all messages will be exported.","Export to file":"Export to file","Failed to open file!":"Failed to open file!","Unsupported file type!":"Unsupported file type!","File is empty!":"File is empty!","Error parsing file! %s":"Error parsing file! %s",Version:"Version",Author:"Author","Validation error:":"Validation error:","Ignore this error and try to import":"Ignore this error and try to import","Import done":"Import done","The downloaded index is not valid":"The downloaded index is not valid",Copy:"Copy",Paste:"Paste","Message configuration copied. Use the paste button to paste this configuration to an other message.":"Message configuration copied. Use the paste button to paste this configuration to an other message.","Parser configuration copied. Use the paste button to paste this configuration to an other parser.":"Parser configuration copied. Use the paste button to paste this configuration to an other parser.","Nothing to paste. Please use the copy button first.":"Nothing to paste. Please use the copy button first.",Pasted:"Pasted","Error while pasting: %s":"Error while pasting: %s","Define possible states":"Define possible states","Setup a list of predefined state values":"Setup a list of predefined state values","Possible states":"Possible states","Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto":"Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto","Invalid format! Please use the format value=text,value=text,...":"Invalid format! Please use the format value=text,value=text,\u2026",Role:"Role",'Select a suitable role for the ioBroker state or just use "state" if you are not sure.':'Select a suitable role for the ioBroker state or just use "state" if you are not sure.',"Information about the state roles in ioBroker on GitHub":"Information about the state roles in ioBroker on GitHub",License:"License","Automatically set a certain value":"Automatically set a certain value","Set a certain value automatically in a given interval":"Set a certain value automatically in a given interval","Interval for automatic set":"Interval for automatic set","Interval in milliseconds to automatically set the value":"Interval in milliseconds to automatically set the value","Value to set":"Value to set","The value to set automatically in the given interval (%s)":"The value to set automatically in the given interval (%s)","Trigger send":"Trigger send","Trigger the send action every time the value is set automatically":"Trigger the send action every time the value is set automatically"}});var ose=_((Cvt,RVe)=>{RVe.exports={"loading...":"lade\u2026",General:"Allgemein","ID missing":"ID fehlt",Messages:"Nachrichten",Message:"Nachricht",Interface:"Schnittstelle","e.g.":"z.B.","Auto add seen messages":"Gesehene Nachrichten automatisch hinzuf\xFCgen","Automatically add new messages to the list of our known messages when they are received.":"Automatisch neue Nachrichten zur Liste der bekannten Nachrichten hinzuf\xFCgen, wenn sie empfangen werden.","Delete unconfigured messages":"Nicht konfigurierte Nachrichten l\xF6schen","Delete all objects of unconfigured messages on adapter startup.":"Alle Objekte von nicht konfigurierten Nachrichten beim Start des Adapters l\xF6schen.","Only allowed chars: %s":"Erlaubte Zeichen: %s","Configured messages":"Konfigurierte Nachrichten","Unconfigured messages":"Nicht konfigurierte Nachrichten","Message ID":"Nachrichten-ID","CAN message ID in hex":"CAN Nachrichten-ID in hexadezimal","This ID is configured multiple times with this data length":"Diese ID ist mehrfach konfiguriert mit dieser Datenl\xE4nge",or:"oder",Name:"Name","My super message":"Meine super Nachricht","Data length":"Datenl\xE4nge","Not set":"Nicht gesetzt","Optionally set a fixed data length for this message":"Optional kann eine feste L\xE4nge der Daten vorgegeben werden",Receive:"Empfangen","Receive messages with the given ID":"Nachrichten mit der angegebenen ID empfangen",Send:"Senden","Send messages with the given ID":"Nachrichten mit der angegebenen ID senden",Autosend:"Automatisch senden","Automatically send the message when some data part changed":"Nachricht automatisch senden, wenn sich ein Datenteil \xE4ndert",Parsers:"Parser","Must be a 3 or 8 char hex ID":"Muss eine Hex-ID mit 3 oder 8 Zeichen sein","Remove this message?":"Nachricht entfernen?","Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart.":"Soll diese Nachricht wirklich entfernt werden? Dadurch werden auch alle zugeh\xF6rigen Parser entfernt. Die Nachricht wird als nicht konfiguriert behandelt und m\xF6glicherweise beim Neustart des Adapters gel\xF6scht.","Parser ID":"Parser-ID",Temperature:"Temperatur","Data type":"Datentyp","Data type in the can message":"Datentyp in der CAN-Nachricht","Data type in ioBroker":"Datentyp in ioBroker",Offset:"Offset",Length:"L\xE4nge",Encoding:"Zeichencodierung",Unit:"Einheit","Boolean bitmask":"Bitmaske f\xFCr Wahrheitswerte","Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.":"Bitmaske zum Erkennen/Setzen eines %s-Werts. Wenn keine Bits ausgew\xE4hlt sind, wird ein Bytewert gr\xF6\xDFer 0 als %s interpretiert.","Boolean invert":"Wahrheitswerte invertieren","Invert the boolean value":"Wahrheitswerte umkehren","This ID is reserved and can't be used":"Diese ID ist reserviert und kann nicht verwendet werden","There are some errors in you configuration. Please check!":"Es gibt Fehler in der Konfiguration. Bitte Pr\xFCfen!",Add:"Hinzuf\xFCgen",Remove:"Entfernen",Reload:"Neu laden","Custom script read":"Eigenes Skript zum lesen","Custom script write":"Eigenes Skript zum schreiben","Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.":"Skript um den Wert vom Buffer zu lesen. Der Buffer ist verf\xFCgbar als %s und der Wert muss in %s geschrieben werden.","Script to write the value to the buffer. The buffer is available as %s and the value as %s.":"Skript um den Wert in den Buffer zu schreiben. Der Buffer ist verf\xFCgbar als %s und der Wert als %s.","Your configuration is invalid. Please check the settings marked in red.":"Die Konfiguration enth\xE4lt Fehler. Bitte die rot markierten Einstellungen pr\xFCfen.","Use raw states":"Verwende raw-States","Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput.":"Nutzung von raw-States aktivieren, die mit jeder empfangenen oder gesendeten Nachricht aktualisiert werden und zum Senden von eigenen Nachrichten verwendet werden k\xF6nnen. Dies erm\xF6glicht die Verwendung in Scripts, kann jedoch zu einer h\xF6heren Belastung von Systemen mit einem hohem Nachrichtendurchsatz f\xFChren.",and:"und","Use rtr flag":"RTR-Flag nutzen","Add an additional Remote Transmission Request (rtr) state on each message.":"F\xFCgt jeder Nachricht einen zus\xE4tzlichen Remote Transmission Request (rtr) State hinzu.","Import / Export":"Import / Export",Import:"Import",Export:"Export","Using this import feature you are able to import message configurations to extend your existing configuration.":"Mit dieser Importfunktion k\xF6nnen Nachrichtenkonfigurationen importiert werden, um die vorhandene Konfiguration zu erweitern.","You may use a predefined configuration from GitHub or upload a custom file.":"Es k\xF6nnen vorgefertigte Konfigurationen von GitHub genutzt oder eigene Dateien hochgeladen werden.","Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.":"Hinweis: Alle Konfigurationen werden ohne jegliche Gew\xE4hr angeboten! Abh\xE4ngig vom angeschlossenen System kann das Senden falscher Nachrichten zu Systemsch\xE4den f\xFChren.","Fetch configurations from GitHub":"Konfigurationen von GitHub abrufen","Overwrite existing messages on import":"Vorhandene Nachrichten beim Import \xFCberschreiben","If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option.":"Wenn nicht aktiviert, werden bei einem Import nur neue Nachrichten und Parser hinzugef\xFCgt, aber keine vorhandenen \xFCberschrieben. Vorhandene Nachrichten oder Parser werden \xFCber ihre interne UUID erkannt und nicht \xFCber die ID. Wenn eine exportierte Datei zur Aktualisierung der Konfiguration wieder importiert werden soll, dann muss dieser Haken gesetzt werden.","Show on GitHub":"Anzeigen auf GitHub","Import from GitHub":"Importiere von GitHub","Import from file":"Importiere aus Datei","Using this export feature you are able to export your message configurations.":"Mit dieser Exportfunktion k\xF6nnen die konfigurierten Nachrichten exportiert werden.","The exported files can be shared or edited externally and reimported to update your configuration.":"Die exportierten Dateien k\xF6nnen weitergegeben, oder bearbeitet und wieder importiert werden, um die Konfiguration mit externen Tools zu bearbeiten.","Export format":"Exportformat","Select messages to export":"Nachrichten zum Export ausw\xE4hlen","If checked, you can select the configured messages you want to export. If not checked, all messages will be exported.":"Wenn aktiviert, dann k\xF6nnen die zu exportierenden Nachrichten einzeln ausgew\xE4hlt werden. Wenn nicht aktiviert, dann werden alle Nachrichten exportiert.","Export to file":"Exportiere in Datei","Failed to open file!":"Kann Datei nicht \xF6ffnen!","Unsupported file type!":"Nicht unterst\xFCtzter Dateityp!","File is empty!":"Datei ist leer!","Error parsing file! %s":"Fehler beim Analysieren der Datei! %s",Version:"Version",Author:"Autor","Validation error:":"Validierungsfehler:","Ignore this error and try to import":"Diesen Fehler ignorieren und den Import versuchen","Import done":"Import abgeschlossen","The downloaded index is not valid":"Der heruntergeladene Index ist fehlerhaft",Copy:"Kopieren",Paste:"Einf\xFCgen","Message configuration copied. Use the paste button to paste this configuration to an other message.":"Nachrichtenkonfiguration kopiert. Verwende den Einf\xFCgen-Knopf, um diese Konfiguration bei einer anderen Nachricht einzuf\xFCgen.","Parser configuration copied. Use the paste button to paste this configuration to an other parser.":"Parserkonfiguration kopiert. Verwende den Einf\xFCgen-Knopf, um diese Konfiguration bei einem anderen Parser einzuf\xFCgen.","Nothing to paste. Please use the copy button first.":"Nichts zum Einf\xFCgen. Bitte erst den Kopieren-Knopf verwenden.",Pasted:"Eingef\xFCgt","Error while pasting: %s":"Fehler beim Einf\xFCgen: %s","Define possible states":"M\xF6gliche States definieren","Setup a list of predefined state values":"Eine Liste von vorgegebenen State-Werten definieren","Possible states":"M\xF6gliche States","Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto":"Mit Komma getrennte Liste von echten Werten und anzuzeigenden Werten. Beispiel: 0=Aus,1=Ein,2=Auto","Invalid format! Please use the format value=text,value=text,...":"Ung\xFCltiges Format! Bitte das Format value=text,value=text,\u2026 verwenden.",Role:"Rolle",'Select a suitable role for the ioBroker state or just use "state" if you are not sure.':'Eine passende Rolle f\xFCr den State in ioBroker w\xE4hlen, oder bei Unsicherheiten einfach "state" verwenden.',"Information about the state roles in ioBroker on GitHub":"Informationen \xFCber die State-Rollen in ioBroker auf GitHub (in Englisch)",License:"Lizenz","Automatically set a certain value":"Automatisch einen bestimmten Wert setzen","Interval for automatic set":"Intervall f\xFCr das automatischen Setzen","Interval in milliseconds to automatically set the value":"Intervall in Millisekunden zum automatischen Setzen des Wertes","Value to set":"Zu setzender Wert","The value to set automatically in the given interval (%s)":"Der Wert, der automatisch im vorgegebenen Intervall gesetzt werden soll (%s)","Trigger send":"Senden ausl\xF6sen","Set a certain value automatically in a given interval":"Setze automatisch einen bestimmten Wert in einem vorgegebenen Intervall","Trigger the send action every time the value is set automatically":"Bei jedem automatischen Setzen des Wertes die senden-Aktion ausl\xF6sen"}});var ase=_((Ivt,DVe)=>{DVe.exports={"canbus adapter settings":"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0430\u0434\u0430\u043F\u0442\u0435\u0440\u0430 \u0434\u043B\u044F canbus",Messages:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F",Interface:"\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441","e.g.":"\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440","Auto add seen messages":"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0434\u043E\u0431\u0430\u0432\u043B\u044F\u0442\u044C \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u043D\u043D\u044B\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F","Automatically add new messages to the list of our known messages when they are received.":"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0434\u043E\u0431\u0430\u0432\u043B\u044F\u0442\u044C \u043D\u043E\u0432\u044B\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0432 \u0441\u043F\u0438\u0441\u043E\u043A \u043D\u0430\u0448\u0438\u0445 \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0445 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u043F\u0440\u0438 \u0438\u0445 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0438.","Delete unconfigured messages":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043D\u0435\u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F","Delete all objects of unconfigured messages on adapter startup.":"\u0423\u0434\u0430\u043B\u044F\u0442\u044C \u0432\u0441\u0435 \u043E\u0431\u044A\u0435\u043A\u0442\u044B \u043D\u0435\u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u0445 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u043F\u0440\u0438 \u0437\u0430\u043F\u0443\u0441\u043A\u0435 \u0430\u0434\u0430\u043F\u0442\u0435\u0440\u0430.","Only allowed chars: %s":"\u0422\u043E\u043B\u044C\u043A\u043E \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u043D\u044B\u0435 \u0441\u0438\u043C\u0432\u043E\u043B\u044B: %s","Configured messages":"\u041D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F","Unconfigured messages":"\u041D\u0435\u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F","Message ID":"ID \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F",or:"\u0438\u043B\u0438",Name:"\u0418\u043C\u044F","My super message":"\u041C\u043E\u0435 \u0441\u0443\u043F\u0435\u0440 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435",Receive:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C","Receive messages with the given ID":"\u041F\u043E\u043B\u0443\u0447\u0430\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0441 \u0437\u0430\u0434\u0430\u043D\u043D\u044B\u043C ID",Send:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C","Send messages with the given ID":"\u041E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0441 \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u044B\u043C \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u043C",Autosend:"\u0410\u0432\u0442\u043E\u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0430","Automatically send the message when some data part changed":"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u043F\u0440\u0438 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0438 \u043B\u044E\u0431\u043E\u0439 \u0447\u0430\u0441\u0442\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",Parsers:"\u041F\u0430\u0440\u0441\u0435\u0440\u044B","Must be a 3 or 8 char hex ID":"\u0414\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0448\u0435\u0441\u0442\u043D\u0430\u0434\u0446\u0430\u0442\u0435\u0440\u0438\u0447\u043D\u044B\u0439 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440 \u0438\u0437 3 \u0438\u043B\u0438 8 \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432","Parser ID":"ID \u043F\u0430\u0440\u0441\u0435\u0440\u0430",Temperature:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430","Data type":"\u0422\u0438\u043F \u0434\u0430\u043D\u043D\u044B\u0445",Offset:"\u0421\u043C\u0435\u0449\u0435\u043D\u0438\u0435",Length:"\u0414\u043B\u0438\u043D\u0430",Encoding:"\u041A\u043E\u0434\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",Unit:"\u0415\u0434\u0438\u043D\u0438\u0446\u044B","Boolean bitmask":"\u041B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0431\u0438\u0442\u043E\u0432\u0430\u044F \u043C\u0430\u0441\u043A\u0430","Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.":"\u0411\u0438\u0442\u043E\u0432\u0430\u044F \u043C\u0430\u0441\u043A\u0430, \u043F\u0440\u0438\u043C\u0435\u043D\u044F\u0435\u043C\u0430\u044F \u0434\u043B\u044F \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0438\u044F / \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F %s. \u0415\u0441\u043B\u0438 \u043D\u0438 \u043E\u0434\u0438\u043D \u0431\u0438\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D, \u043B\u044E\u0431\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0431\u0430\u0439\u0442\u0430 \u0431\u043E\u043B\u044C\u0448\u0435 0 \u0431\u0443\u0434\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u043F\u0440\u0435\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u043E \u043A\u0430\u043A %s.","Boolean invert":"\u041B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0438\u043D\u0432\u0435\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435","Invert the boolean value":"\u0418\u043D\u0432\u0435\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435","This ID is reserved and can't be used":"\u042D\u0442\u043E\u0442 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440 \u0437\u0430\u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043E\u0432\u0430\u043D \u0438 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D","There are some errors in you configuration. Please check!":"\u0412 \u0432\u0430\u0448\u0435\u0439 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0435\u0441\u0442\u044C \u043E\u0448\u0438\u0431\u043A\u0438. \u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430!","CAN message ID in hex":"ID \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F CAN \u0432 \u0448\u0435\u0441\u0442\u043D\u0430\u0434\u0446\u0430\u0442\u0435\u0440\u0438\u0447\u043D\u043E\u043C \u0444\u043E\u0440\u043C\u0430\u0442\u0435","loading...":"\u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u2026",Add:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C",Remove:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",Reload:"\u041F\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C",General:"\u041E\u0431\u0449\u0430\u044F",Message:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435","Not set":"\u041D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E","Optionally set a fixed data length for this message":"\u041F\u0440\u0438 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0441\u0442\u0438 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0435 \u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u0443\u044E \u0434\u043B\u0438\u043D\u0443 \u0434\u0430\u043D\u043D\u044B\u0445 \u0434\u043B\u044F \u044D\u0442\u043E\u0433\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F","Remove this message?":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u044D\u0442\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435?","Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart.":"\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B, \u0447\u0442\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u044D\u0442\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435? \u042D\u0442\u043E \u0442\u0430\u043A\u0436\u0435 \u0443\u0434\u0430\u043B\u0438\u0442 \u0432\u0441\u0435 \u0435\u0433\u043E \u043F\u0430\u0440\u0441\u0435\u0440\u044B. \u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u0447\u0438\u0442\u0430\u0442\u044C\u0441\u044F \u043D\u0435\u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u043C \u0438 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0443\u0434\u0430\u043B\u0435\u043D\u043E \u043F\u0440\u0438 \u043F\u0435\u0440\u0435\u0437\u0430\u043F\u0443\u0441\u043A\u0435 \u0430\u0434\u0430\u043F\u0442\u0435\u0440\u0430.","Use raw states":"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u043D\u0435\u043E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u043D\u043D\u044B\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F","Your configuration is invalid. Please check the settings marked in red.":"\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u0442 \u043E\u0448\u0438\u0431\u043A\u0438. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438, \u043E\u0442\u043C\u0435\u0447\u0435\u043D\u043D\u044B\u0435 \u043A\u0440\u0430\u0441\u043D\u044B\u043C.",and:"\u0438","This ID is configured multiple times with this data length":"\u042D\u0442\u043E\u0442 ID \u043D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0440\u0430\u0437 \u0441 \u044D\u0442\u043E\u0439 \u0434\u043B\u0438\u043D\u043E\u0439 \u0434\u0430\u043D\u043D\u044B\u0445","Data length":"\u0414\u043B\u0438\u043D\u0430 \u0434\u0430\u043D\u043D\u044B\u0445","ID missing":"ID \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442","Custom script write":"\u0421\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0441\u0446\u0435\u043D\u0430\u0440\u0438\u0439 \u0434\u043B\u044F \u0437\u0430\u043F\u0438\u0441\u0438","Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.":"\u0421\u043A\u0440\u0438\u043F\u0442 \u0434\u043B\u044F \u0447\u0442\u0435\u043D\u0438\u044F \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0438\u0437 \u0431\u0443\u0444\u0435\u0440\u0430. \u0411\u0443\u0444\u0435\u0440 \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u043A\u0430\u043A %s, \u0438 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0437\u0430\u043F\u0438\u0441\u0430\u043D\u043E \u0432 %s.","Custom script read":"\u0421\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0441\u043A\u0440\u0438\u043F\u0442 \u0434\u043B\u044F \u0447\u0442\u0435\u043D\u0438\u044F","Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput.":"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043D\u0435\u043E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u043D\u043D\u044B\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043E\u0431\u043D\u043E\u0432\u043B\u044F\u044E\u0442\u0441\u044F \u0441 \u043A\u0430\u0436\u0434\u044B\u043C \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043D\u044B\u043C \u0438\u043B\u0438 \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043D\u044B\u043C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435\u043C \u0438 \u043C\u043E\u0433\u0443\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0434\u043B\u044F \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0438 \u0432\u0430\u0448\u0438\u0445 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0445 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439. \u042D\u0442\u043E \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0432 \u0441\u0446\u0435\u043D\u0430\u0440\u0438\u044F\u0445, \u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043F\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043A \u0431\u043E\u043B\u0435\u0435 \u0432\u044B\u0441\u043E\u043A\u043E\u0439 \u043D\u0430\u0433\u0440\u0443\u0437\u043A\u0435 \u043D\u0430 \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u0441 \u0432\u044B\u0441\u043E\u043A\u043E\u0439 \u043F\u0440\u043E\u043F\u0443\u0441\u043A\u043D\u043E\u0439 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C\u044E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439.","Use rtr flag":"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0444\u043B\u0430\u0433 rtr","Show on GitHub":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043D\u0430 GitHub","Import from GitHub":"\u0418\u043C\u043F\u043E\u0440\u0442 \u0438\u0437 GitHub","File is empty!":"\u0424\u0430\u0439\u043B \u043F\u0443\u0441\u0442!","Error parsing file! %s":"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u0440\u0430\u0437\u0431\u043E\u0440\u0435 \u0444\u0430\u0439\u043B\u0430! %s",Version:"\u0412\u0435\u0440\u0441\u0438\u044F",Author:"\u0410\u0432\u0442\u043E\u0440","If checked, you can select the configured messages you want to export. If not checked, all messages will be exported.":"\u0415\u0441\u043B\u0438 \u044D\u0442\u043E\u0442 \u0444\u043B\u0430\u0436\u043E\u043A \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D, \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0432\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0430. \u0418\u043D\u0430\u0447\u0435 \u0431\u0443\u0434\u0443\u0442 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u044B, \u0432\u0441\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F.","Data type in ioBroker":"\u0422\u0438\u043F \u0434\u0430\u043D\u043D\u044B\u0445 \u0432 ioBroker","Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.":"\u041E\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043D\u0438\u043C\u0430\u043D\u0438\u0435: \u0412\u0441\u0435 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u044E\u0442\u0441\u044F \u0431\u0435\u0437 \u043A\u0430\u043A\u0438\u0445-\u043B\u0438\u0431\u043E \u0433\u0430\u0440\u0430\u043D\u0442\u0438\u0439! \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u043E\u0439 \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0430 \u043D\u0435\u0432\u0435\u0440\u043D\u044B\u0445 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u043C\u043E\u0436\u0435\u0442 \u043F\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043A \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044E \u0441\u0438\u0441\u0442\u0435\u043C\u044B.","Fetch configurations from GitHub":"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438\u0437 GitHub","If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option.":"\u0415\u0441\u043B\u0438 \u044D\u0442\u043E\u0442 \u0444\u043B\u0430\u0436\u043E\u043A \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D, \u043F\u0440\u0438 \u0438\u043C\u043F\u043E\u0440\u0442\u0435 \u0431\u0443\u0434\u0443\u0442 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u044B \u0442\u043E\u043B\u044C\u043A\u043E \u043D\u043E\u0432\u044B\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0438 \u043F\u0430\u0440\u0441\u0435\u0440\u044B, \u0430 \u0442\u0435, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0443\u0436\u0435 \u0431\u044B\u043B\u0438 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u044B, \u0438\u0433\u043D\u043E\u0440\u0438\u0440\u0443\u044E\u0442\u0441\u044F. \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0449\u0435\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u0441\u0438\u043D\u0442\u0430\u043A\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0430\u043D\u0430\u043B\u0438\u0437\u0430\u0442\u043E\u0440 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u044F\u0435\u0442\u0441\u044F \u0435\u0433\u043E \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u043C UUID, \u0430 \u043D\u0435 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u043C. \u0415\u0441\u043B\u0438 \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E \u0438\u043C\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0444\u0430\u0439\u043B \u0434\u043B\u044F \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u0432\u0430\u043C \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u044D\u0442\u0443 \u043E\u043F\u0446\u0438\u044E.","Validation error:":"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438:","The downloaded index is not valid":"\u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u043D\u044B\u0439 \u0438\u043D\u0434\u0435\u043A\u0441 \u043D\u0435\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u0435\u043D",Copy:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",Paste:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C","Ignore this error and try to import":"\u0418\u0433\u043D\u043E\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u044D\u0442\u0443 \u043E\u0448\u0438\u0431\u043A\u0443 \u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C","Import done":"\u0418\u043C\u043F\u043E\u0440\u0442 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D","Parser configuration copied. Use the paste button to paste this configuration to an other parser.":"\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F \u043F\u0430\u0440\u0441\u0435\u0440\u0430 \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0430. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043D\u043E\u043F\u043A\u0443 \xAB\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C\xBB, \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u044D\u0442\u0443 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044E \u0432 \u0434\u0440\u0443\u0433\u043E\u0439 \u043F\u0430\u0440\u0441\u0435\u0440.",Pasted:"\u0412\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u043E","Message configuration copied. Use the paste button to paste this configuration to an other message.":"\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0430. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043D\u043E\u043F\u043A\u0443 \xAB\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C\xBB, \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u044D\u0442\u0443 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044E \u0432 \u0434\u0440\u0443\u0433\u043E\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435.","Define possible states":"\u041E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u044B\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F","Possible states":"\u0412\u043E\u0437\u043C\u043E\u0436\u043D\u044B\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F","Invalid format! Please use the format value=text,value=text,...":"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0444\u043E\u0440\u043C\u0430\u0442! \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u0444\u043E\u0440\u043C\u0430\u0442: \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435=\u0442\u0435\u043A\u0441\u0442,\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435=\u0442\u0435\u043A\u0441\u0442,\u2026","Nothing to paste. Please use the copy button first.":"\u041D\u0435\u0447\u0435\u0433\u043E \u0432\u0441\u0442\u0430\u0432\u043B\u044F\u0442\u044C. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0441\u043D\u0430\u0447\u0430\u043B\u0430 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043D\u043E\u043F\u043A\u0443 \u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F.","Error while pasting: %s":"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u0432\u0441\u0442\u0430\u0432\u043A\u0435: %s","Setup a list of predefined state values":"\u041D\u0430\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u043F\u0440\u0435\u0434\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043D\u044B\u0445 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0439","Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto":"\u0420\u0430\u0437\u0434\u0435\u043B\u0435\u043D\u043D\u044B\u0439 \u0437\u0430\u043F\u044F\u0442\u044B\u043C\u0438 \u0441\u043F\u0438\u0441\u043E\u043A \u0440\u0435\u0430\u043B\u044C\u043D\u044B\u0445 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0439 \u0438 \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0435\u043C\u044B\u0445 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0439. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440: 0=Off,1=On,2=Auto",Role:"\u0420\u043E\u043B\u044C",'Select a suitable role for the ioBroker state or just use "state" if you are not sure.':'\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0449\u0443\u044E \u0440\u043E\u043B\u044C \u0434\u043B\u044F \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F ioBroker \u0438\u043B\u0438 \u043F\u0440\u043E\u0441\u0442\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 "state", \u0435\u0441\u043B\u0438 \u0432\u044B \u043D\u0435 \u0443\u0432\u0435\u0440\u0435\u043D\u044B \u0432 \u0432\u044B\u0431\u043E\u0440\u0435.',"Information about the state roles in ioBroker on GitHub":"\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u043E \u0440\u043E\u043B\u044F\u0445 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0439 \u0432 ioBroker \u043D\u0430 GitHub (State roles)",License:"\u041B\u0438\u0446\u0435\u043D\u0437\u0438\u044F",Import:"\u0418\u043C\u043F\u043E\u0440\u0442",Export:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442","Import / Export":"\u0418\u043C\u043F\u043E\u0440\u0442 / \u042D\u043A\u0441\u043F\u043E\u0440\u0442","Using this import feature you are able to import message configurations to extend your existing configuration.":"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044F \u044D\u0442\u0443 \u0444\u0443\u043D\u043A\u0446\u0438\u044E \u0438\u043C\u043F\u043E\u0440\u0442\u0430, \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u0434\u043B\u044F \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u044F \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0449\u0435\u0439 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430.","You may use a predefined configuration from GitHub or upload a custom file.":"\u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u043F\u0440\u0435\u0434\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u0443\u044E \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044E \u0438\u0437 GitHub \u0438\u043B\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0444\u0430\u0439\u043B.","Overwrite existing messages on import":"\u0417\u0430\u043C\u0435\u043D\u044F\u0442\u044C \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u043F\u0440\u0438 \u0438\u043C\u043F\u043E\u0440\u0442\u0435","Import from file":"\u0418\u043C\u043F\u043E\u0440\u0442 \u0438\u0437 \u0444\u0430\u0439\u043B\u0430","Using this export feature you are able to export your message configurations.":"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044F \u044D\u0442\u0443 \u0444\u0443\u043D\u043A\u0446\u0438\u044E, \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0432\u043E\u0438 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439.","The exported files can be shared or edited externally and reimported to update your configuration.":"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0444\u0430\u0439\u043B\u044B \u043C\u043E\u0433\u0443\u0442 \u0431\u044B\u0442\u044C \u043E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u043D\u044B \u0438\u043B\u0438 \u043E\u0442\u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0432\u043D\u0435\u0448\u043D\u0438\u0445 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u0438 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E \u0438\u043C\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u0434\u043B\u044F \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F \u0432\u0430\u0448\u0435\u0439 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438.","Export format":"\u0424\u043E\u0440\u043C\u0430\u0442 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0430","Select messages to export":"\u0412\u044B\u0431\u043E\u0440 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u0434\u043B\u044F \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0430","Export to file":"\u042D\u043A\u0441\u043F\u043E\u0440\u0442 \u0432 \u0444\u0430\u0439\u043B","Data type in the can message":"\u0422\u0438\u043F \u0434\u0430\u043D\u043D\u044B\u0445 \u0432 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0438 CAN","Failed to open file!":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0444\u0430\u0439\u043B!","Unsupported file type!":"\u041D\u0435\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0444\u043E\u0440\u043C\u0430\u0442 \u0444\u0430\u0439\u043B\u0430!","Script to write the value to the buffer. The buffer is available as %s and the value as %s.":"\u0421\u043A\u0440\u0438\u043F\u0442 \u0434\u043B\u044F \u0437\u0430\u043F\u0438\u0441\u0438 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0432 \u0431\u0443\u0444\u0435\u0440. \u0411\u0443\u0444\u0435\u0440 \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u043A\u0430\u043A %s, \u0430 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u043A\u0430\u043A %s.","Add an additional Remote Transmission Request (rtr) state on each message.":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u043E Remote Transmission Request (RTR) \u0432 \u043A\u0430\u0436\u0434\u043E\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435.","Automatically set a certain value":"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0443\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435","Set a certain value automatically in a given interval":"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0443\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u043C \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B\u0435","Interval for automatic set":"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438","Interval in milliseconds to automatically set the value":"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u0432 \u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430\u0445 \u0434\u043B\u044F \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F","Value to set":"\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043B\u044F \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438","The value to set automatically in the given interval (%s)":"\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435, \u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0432 \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u043C \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B\u0435 (%s)","Trigger send":"\u0422\u0440\u0438\u0433\u0433\u0435\u0440\u043D\u0430\u044F \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0430","Trigger the send action every time the value is set automatically":"\u0417\u0430\u043F\u0443\u0441\u043A\u0430\u0442\u044C \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0438 \u043A\u0430\u0436\u0434\u044B\u0439 \u0440\u0430\u0437, \u043A\u043E\u0433\u0434\u0430 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0443\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438"}});var ise=_((kvt,NVe)=>{NVe.exports={"canbus adapter settings":"Configura\xE7\xF5es do adaptador para canbus",Messages:"Mensagens",Interface:"Interface","e.g.":"por exemplo.","Auto add seen messages":"Adicionar automaticamente mensagens vistas","Automatically add new messages to the list of our known messages when they are received.":"Adicionar automaticamente novas mensagens \xE0 lista de nossas mensagens conhecidas quando forem recebidas.","Delete unconfigured messages":"Apagar mensagens n\xE3o configuradas","Delete all objects of unconfigured messages on adapter startup.":"Exclua todos os objetos de mensagens n\xE3o configuradas na inicializa\xE7\xE3o do adaptador.","Only allowed chars: %s":"Somente caracteres permitidos: %s","Configured messages":"Mensagens configuradas","Unconfigured messages":"Mensagens n\xE3o configuradas","Message ID":"ID da mensagem",or:"ou",Name:"Nome","My super message":"Minha super mensagem",Receive:"Receber","Receive messages with the given ID":"Receba mensagens com o ID fornecido",Send:"Enviar","Send messages with the given ID":"Envie mensagens com o ID fornecido",Autosend:"Autosend","Automatically send the message when some data part changed":"Envia automaticamente a mensagem quando alguma parte dos dados muda",Parsers:"Analisadores","Must be a 3 or 8 char hex ID":"Deve ser um ID hexadecimal de 3 ou 8 caracteres","Parser ID":"ID do analisador",Temperature:"Temperatura","Data type":"Tipo de dados",Offset:"Deslocamento",Length:"comprimento",Encoding:"Codifica\xE7\xE3o",Unit:"Unidade","Boolean bitmask":"Bitmask booleano","Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.":"Bitmask a ser aplicado para detectar / definir um valor %s. Se nenhum bit for selecionado, qualquer valor de byte maior que 0 ser\xE1 interpretado como %s.","Boolean invert":"Boolean invertido","Invert the boolean value":"Inverta o valor booleano","This ID is reserved and can't be used":"Este ID \xE9 reservado e n\xE3o pode ser usado","There are some errors in you configuration. Please check!":"Existem alguns erros na sua configura\xE7\xE3o. ","CAN message ID in hex":"ID da mensagem CAN em hexadecimal","loading...":"Carregando\u2026",Add:"Adicionar",Remove:"Remover",Reload:"recarregar",General:"Geral",Message:"Mensagem","This ID is configured multiple times with this data length":"Este ID foi configurado v\xE1rias vezes com este comprimento de dados","ID missing":"Faltando ID","Optionally set a fixed data length for this message":"Um comprimento fixo dos dados pode ser opcionalmente especificado","Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart.":"Tem certeza que deseja remover esta mensagem? Isso tamb\xE9m remover\xE1 todos os analisadores associados. A mensagem \xE9 tratada como n\xE3o configurada e pode ser exclu\xEDda quando o adaptador \xE9 reiniciado.","Data type in the can message":"Tipo de dados na mensagem CAN","Data type in ioBroker":"Tipo de dados em ioBroker","Not set":"N\xE3o configurado","Remove this message?":"Apagar mensagem?","Data length":"Comprimento de dado","Custom script read":"Leitura de script personalizado","Custom script write":"Grava\xE7\xE3o de script personalizado","Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.":"Script para ler o valor do buffer. O buffer est\xE1 dispon\xEDvel como %s e o valor deve ser escrito em %s.","Script to write the value to the buffer. The buffer is available as %s and the value as %s.":"Script para gravar o valor no buffer. O buffer est\xE1 dispon\xEDvel como %se o valor como %s.","Your configuration is invalid. Please check the settings marked in red.":"Sua configura\xE7\xE3o \xE9 inv\xE1lida. Verifique as configura\xE7\xF5es marcadas em vermelho.","Use raw states":"Use estados brutos","Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput.":"Use os estados brutos, que s\xE3o atualizados a cada mensagem recebida ou enviada e podem ser usados \u200B\u200Bpara enviar suas pr\xF3prias mensagens. Isso permite o uso em scripts, mas pode levar a uma carga maior em sistemas com alto rendimento de mensagens.",and:"e","Use rtr flag":"Usar sinalizador rtr","Add an additional Remote Transmission Request (rtr) state on each message.":"Adicione um estado adicional de Solicita\xE7\xE3o de Transmiss\xE3o Remota (rtr) em cada mensagem.","Import / Export":"Importar/Exportar",Import:"Importar",Export:"Exportar","Using this import feature you are able to import message configurations to extend your existing configuration.":"Usando esse recurso de importa\xE7\xE3o, voc\xEA pode importar configura\xE7\xF5es de mensagens para estender sua configura\xE7\xE3o existente.","You may use a predefined configuration from GitHub or upload a custom file.":"Voc\xEA pode usar uma configura\xE7\xE3o predefinida do GitHub ou fazer upload de um arquivo personalizado.","Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.":"Dica: Todas as configura\xE7\xF5es s\xE3o fornecidas sem qualquer garantia! Dependendo do sistema conectado, o envio de mensagens incorretas pode danificar o sistema.","Fetch configurations from GitHub":"Buscar configura\xE7\xF5es do GitHub","Overwrite existing messages on import":"Substituir mensagens existentes na importa\xE7\xE3o","If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option.":"Se n\xE3o estiver marcada, uma importa\xE7\xE3o apenas adicionar\xE1 novas mensagens e analisadores e aqueles que j\xE1 foram definidos ser\xE3o ignorados. Uma mensagem ou analisador existente \xE9 determinado por seu UUID interno e n\xE3o pelo ID. Se voc\xEA deseja reimportar um arquivo exportado para atualizar sua configura\xE7\xE3o, voc\xEA deve definir esta op\xE7\xE3o.","Show on GitHub":"Mostrar no GitHub","Import from GitHub":"Importar do GitHub","Import from file":"Importar do arquivo","Using this export feature you are able to export your message configurations.":"Usando este recurso de exporta\xE7\xE3o, voc\xEA pode exportar suas configura\xE7\xF5es de mensagens.","The exported files can be shared or edited externally and reimported to update your configuration.":"Os arquivos exportados podem ser compartilhados ou editados externamente e reimportados para atualizar sua configura\xE7\xE3o.","Export format":"Formato de exporta\xE7\xE3o","Select messages to export":"Selecione mensagens para exportar","If checked, you can select the configured messages you want to export. If not checked, all messages will be exported.":"Se marcada, voc\xEA pode selecionar as mensagens configuradas que deseja exportar. Se n\xE3o estiver marcada, todas as mensagens ser\xE3o exportadas.","Export to file":"Exportar para arquivo","Failed to open file!":"Falha ao abrir o arquivo!","Unsupported file type!":"Tipo de arquivo n\xE3o suportado!","File is empty!":"O arquivo est\xE1 vazio!","Error parsing file! %s":"Erro ao analisar arquivo! %s",Version:"Vers\xE3o",Author:"Autor","Validation error:":"Erro de valida\xE7\xE3o:","Ignore this error and try to import":"Ignore este erro e tente importar","Import done":"Importa\xE7\xE3o conclu\xEDda","The downloaded index is not valid":"O \xEDndice baixado n\xE3o \xE9 v\xE1lido",Copy:"C\xF3pia",Paste:"Colar","Message configuration copied. Use the paste button to paste this configuration to an other message.":"Configura\xE7\xE3o de mensagem copiada. Use o bot\xE3o colar para colar esta configura\xE7\xE3o em outra mensagem.","Parser configuration copied. Use the paste button to paste this configuration to an other parser.":"Configura\xE7\xE3o do analisador copiada. Use o bot\xE3o colar para colar esta configura\xE7\xE3o em outro analisador.","Nothing to paste. Please use the copy button first.":"Nada para colar. Por favor, use o bot\xE3o copiar primeiro.",Pasted:"Colado","Error while pasting: %s":"Erro ao colar: %s","Define possible states":"Definir estados poss\xEDveis","Setup a list of predefined state values":"Configure uma lista de valores de estado predefinidos","Possible states":"Estados poss\xEDveis","Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto":"Lista separada por v\xEDrgulas de valores reais e valores de exibi\xE7\xE3o. Exemplo: 0=Desligado,1=Ligado,2=Autom\xE1tico","Invalid format! Please use the format value=text,value=text,...":"Formato inv\xE1lido! Por favor use o formato valor=texto,valor=texto,\u2026",Role:"Papel",'Select a suitable role for the ioBroker state or just use "state" if you are not sure.':'Selecione uma fun\xE7\xE3o adequada para o estado do ioBroker ou apenas use "estado" se n\xE3o tiver certeza.',"Information about the state roles in ioBroker on GitHub":"Informa\xE7\xF5es sobre as fun\xE7\xF5es estaduais no ioBroker no GitHub",License:"Licen\xE7a","Automatically set a certain value":"Definir automaticamente um determinado valor","Set a certain value automatically in a given interval":"Defina um determinado valor automaticamente em um determinado intervalo","Interval for automatic set":"Intervalo para configura\xE7\xE3o autom\xE1tica","Interval in milliseconds to automatically set the value":"Intervalo em milissegundos para definir automaticamente o valor","Value to set":"Valor a definir","The value to set automatically in the given interval (%s)":"O valor a ser definido automaticamente no intervalo determinado (%s)","Trigger send":"Acionar envio","Trigger the send action every time the value is set automatically":"Acione a a\xE7\xE3o de envio sempre que o valor for definido automaticamente"}});var sse=_((Pvt,AVe)=>{AVe.exports={"canbus adapter settings":"Adapterinstellingen voor canbus",Messages:"Berichten",Interface:"Koppel","e.g.":"bijv.","Auto add seen messages":"Automatisch geziene berichten toevoegen","Automatically add new messages to the list of our known messages when they are received.":"Voeg automatisch nieuwe berichten toe aan de lijst met onze bekende berichten wanneer ze worden ontvangen.","Delete unconfigured messages":"Verwijder niet-geconfigureerde berichten","Delete all objects of unconfigured messages on adapter startup.":"Verwijder alle objecten van niet-geconfigureerde berichten bij het opstarten van de adapter.","Only allowed chars: %s":"Alleen toegestane tekens: %s","Configured messages":"Geconfigureerde berichten","Unconfigured messages":"Niet-geconfigureerde berichten","Message ID":"Bericht-ID",or:"of",Name:"Naam","My super message":"Mijn super bericht",Receive:"Te ontvangen","Receive messages with the given ID":"Ontvang berichten met de opgegeven ID",Send:"Sturen","Send messages with the given ID":"Stuur berichten met de opgegeven ID",Autosend:"Automatisch verzenden","Automatically send the message when some data part changed":"Verzend automatisch het bericht wanneer een gegevensgedeelte is gewijzigd",Parsers:"Parsers","Must be a 3 or 8 char hex ID":"Moet een hexadecimale ID van 3 of 8 karakters zijn","Parser ID":"Parser-ID",Temperature:"Temperatuur","Data type":"Data type",Offset:"Offset",Length:"Lengte",Encoding:"Codering",Unit:"Eenheid","Boolean bitmask":"Booleaans bitmasker","Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.":"Bitmasker om toe te passen om een %s-waarde te detecteren / in te stellen. Als er geen bits zijn geselecteerd, wordt elke bytewaarde groter dan 0 ge\xEFnterpreteerd als %s.","Boolean invert":"Booleaanse omkering","Invert the boolean value":"Keer de booleaanse waarde om","This ID is reserved and can't be used":"Dit ID is gereserveerd en kan niet worden gebruikt","There are some errors in you configuration. Please check!":"Er zijn enkele fouten in uw configuratie!","CAN message ID in hex":"CAN-bericht-ID in hex","loading...":"bezig met laden\u2026",Add:"Toevoegen",Remove:"Verwijderen",Reload:"Herlaad",General:"Algemeen",Message:"Bericht","This ID is configured multiple times with this data length":"Deze ID is meerdere keren geconfigureerd met dezelfde gegevenslengte","Use raw states":"Gebruik raw states",and:"en","ID missing":"ID ontbreekt","Not set":"Niet geconfigureerd","Data length":"Gegevenslengte","Optionally set a fixed data length for this message":"Stel optioneel een vaste gegevenslengte in voor dit bericht","Remove this message?":"Verwijder dit bericht?","Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart.":"Weet u zeker dat u dit bericht wilt verwijderen? Hiermee worden ook al zijn parsers verwijderd. Het bericht wordt als niet-geconfigureerd beschouwd en kan worden verwijderd wanneer de adapter opnieuw wordt opgestart.","Custom script write":"Aangepast script schrijven","Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.":"Script om de waarde uit de buffer te lezen. De buffer is beschikbaar als % s en de waarde moet in % s worden geschreven.","Script to write the value to the buffer. The buffer is available as %s and the value as %s.":"Script om de waarde naar de buffer te schrijven. De buffer is beschikbaar als% s en de waarde als% s.","Your configuration is invalid. Please check the settings marked in red.":"Uw configuratie is ongeldig. Controleer de rood gemarkeerde instellingen.","Custom script read":"Aangepast script lezen","Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput.":"Gebruik de ruwe statussen, die worden bijgewerkt met elk ontvangen of verzonden bericht en kunnen worden gebruikt om uw eigen berichten te verzenden. Dit maakt het gebruik in scripts mogelijk, maar kan leiden tot een hogere belasting van systemen met een hoge berichtdoorvoer.","Use rtr flag":"Gebruik rtr flag","Add an additional Remote Transmission Request (rtr) state on each message.":"Voeg een extra status voor Remote Transmission Request (rtr) toe aan elk bericht.","Validation error:":"Validatiefout:","Ignore this error and try to import":"Negeer deze fout en probeer te importeren","Import done":"Import gedaan","The downloaded index is not valid":"De gedownloade index is niet geldig",Copy:"Kopi\xEBren",Paste:"Invoegen","Message configuration copied. Use the paste button to paste this configuration to an other message.":"Berichtconfiguratie gekopieerd. Gebruik de plakknop om deze configuratie in een ander bericht te plakken.","Parser configuration copied. Use the paste button to paste this configuration to an other parser.":"Parser-configuratie gekopieerd. Gebruik de plakknop om deze configuratie in een andere parser te plakken.","Nothing to paste. Please use the copy button first.":"Niets in te voegen. Gebruik eerst de kopieerknop.",Pasted:"Ingevoegd","Error while pasting: %s":"Invoegfout: %s","Define possible states":"Definieer mogelijke toestanden","Setup a list of predefined state values":"Stel een lijst met vooraf gedefinieerde statuswaarden in","Possible states":"Mogelijke staten","Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto":"Door komma's gescheiden lijst met re\xEBle waarden en weergavewaarden. Voorbeeld: 0=Uit,1=Aan,2=Automaat","Invalid format! Please use the format value=text,value=text,...":"Ongeldig formaat! Gebruik het formaat value=text,value=text,\u2026",Role:"Rol",'Select a suitable role for the ioBroker state or just use "state" if you are not sure.':'Selecteer een geschikte rol voor de ioBroker-status of gebruik gewoon "state" als u het niet zeker weet.',"Information about the state roles in ioBroker on GitHub":"Informatie over de statusrollen in ioBroker op GitHub (in Engels)",License:"Licentie","Data type in the can message":"Gegevenstype in het blikbericht","Data type in ioBroker":"Gegevenstype in ioBroker","Import / Export":"Importeren / exporteren",Import:"Importeren",Export:"Exporteren","Using this import feature you are able to import message configurations to extend your existing configuration.":"Met deze importfunctie kunt u berichtconfiguraties importeren om uw bestaande configuratie uit te breiden.","You may use a predefined configuration from GitHub or upload a custom file.":"U kunt een vooraf gedefinieerde configuratie van GitHub gebruiken of een aangepast bestand uploaden.","Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.":"Tip: Alle configuraties worden geleverd zonder enige garantie! Afhankelijk van het aangesloten systeem kan het verzenden van onjuiste berichten het systeem beschadigen.","Fetch configurations from GitHub":"Configuraties ophalen van GitHub","Overwrite existing messages on import":"Overschrijf bestaande berichten bij het importeren","If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option.":"Indien niet aangevinkt, zal een import alleen nieuwe berichten en parsers toevoegen en de reeds gedefinieerde berichten worden genegeerd. Een bestaand bericht of parser wordt bepaald door de interne UUID en niet door de ID. Als u een ge\xEBxporteerd bestand opnieuw wilt importeren om uw configuratie bij te werken, moet u deze optie instellen.","Show on GitHub":"Toon op GitHub","Import from GitHub":"Importeren vanuit GitHub","Import from file":"Importeren uit bestand","Using this export feature you are able to export your message configurations.":"Met deze exportfunctie kunt u uw berichtconfiguraties exporteren.","The exported files can be shared or edited externally and reimported to update your configuration.":"De ge\xEBxporteerde bestanden kunnen extern worden gedeeld of bewerkt en opnieuw worden ge\xEFmporteerd om uw configuratie bij te werken.","Export format":"Formaat exporteren","Select messages to export":"Selecteer berichten om te exporteren","If checked, you can select the configured messages you want to export. If not checked, all messages will be exported.":"Indien aangevinkt, kunt u de geconfigureerde berichten selecteren die u wilt exporteren. Indien niet aangevinkt, worden alle berichten ge\xEBxporteerd.","Export to file":"Exporteren naar bestand","Failed to open file!":"Kan bestand niet openen!","Unsupported file type!":"Niet-ondersteund bestandstype!","File is empty!":"Bestand is leeg!","Error parsing file! %s":"Fout bij het parseren van bestand! %S",Version:"Versie",Author:"Auteur","Automatically set a certain value":"Stel automatisch een bepaalde waarde in","Set a certain value automatically in a given interval":"Stel automatisch een bepaalde waarde in binnen een bepaald interval","Interval for automatic set":"Interval voor automatisch instellen","Interval in milliseconds to automatically set the value":"Interval in milliseconden om de waarde automatisch in te stellen","Value to set":"Waarde om in te stellen","The value to set automatically in the given interval (%s)":"De waarde die automatisch moet worden ingesteld binnen het opgegeven interval (%s)","Trigger send":"Trigger verzenden","Trigger the send action every time the value is set automatically":"Activeer de verzendactie telkens wanneer de waarde automatisch wordt ingesteld"}});var use=_((Ovt,MVe)=>{MVe.exports={"canbus adapter settings":"Param\xE8tres d'adaptateur pour canbus",Messages:"messages",Interface:"Interface","e.g.":"par exemple.","Auto add seen messages":"Ajouter automatiquement les messages vus","Automatically add new messages to the list of our known messages when they are received.":"Ajoutez automatiquement de nouveaux messages \xE0 la liste de nos messages connus lorsqu'ils sont re\xE7us.","Delete unconfigured messages":"Supprimer les messages non configur\xE9s","Delete all objects of unconfigured messages on adapter startup.":"Supprimez tous les objets des messages non configur\xE9s au d\xE9marrage de l'adaptateur.","Only allowed chars: %s":"Seuls les caract\xE8res autoris\xE9s: %s","Configured messages":"Messages configur\xE9s","Unconfigured messages":"Messages non configur\xE9s","Message ID":"ID du message",or:"ou",Name:"Nom","My super message":"Mon super message",Receive:"Recevoir","Receive messages with the given ID":"Recevoir des messages avec l'ID donn\xE9",Send:"Envoyer","Send messages with the given ID":"Envoyer des messages avec l'ID donn\xE9",Autosend:"Envoi automatique","Automatically send the message when some data part changed":"Envoyer automatiquement le message lorsque certaines parties de donn\xE9es ont chang\xE9",Parsers:"Analyseurs","Must be a 3 or 8 char hex ID":"Doit \xEAtre un ID hexad\xE9cimal de 3 ou 8 caract\xE8res","Parser ID":"ID de l'analyseur",Temperature:"Temp\xE9rature","Data type":"Type de donn\xE9es",Offset:"D\xE9calage",Length:"Longueur",Encoding:"Codage",Unit:"Unit\xE9","Boolean bitmask":"Masque bool\xE9en","Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.":"Masque de bits \xE0 appliquer pour d\xE9tecter / d\xE9finir une valeur %s. Si aucun bit n'est s\xE9lectionn\xE9, toute valeur d'octet sup\xE9rieure \xE0 0 sera interpr\xE9t\xE9e comme %s.","Boolean invert":"Inverser bool\xE9en","Invert the boolean value":"Inverser la valeur bool\xE9enne","This ID is reserved and can't be used":"Cet identifiant est r\xE9serv\xE9 et ne peut pas \xEAtre utilis\xE9","There are some errors in you configuration. Please check!":"Il y a des erreurs dans votre configuration. V\xE9rifiez s'il vous pla\xEEt!","CAN message ID in hex":"ID de message CAN en hexad\xE9cimal","loading...":"t\xE9l\xE9charger\u2026",Add:"Ajouter",Remove:"Supprimer",Reload:"Recharger",General:"G\xE9n\xE9ral",Message:"Message","Fetch configurations from GitHub":"R\xE9cup\xE9rer les configurations depuis GitHub","Show on GitHub":"Afficher sur GitHub","Import from GitHub":"Importer depuis GitHub","Unsupported file type!":"Type de fichier non pris en charge!","File is empty!":"Le fichier est vide!","Error parsing file! %s":"Erreur d'analyse du fichier! %s",Version:"Version",Author:"Auteur","If checked, you can select the configured messages you want to export. If not checked, all messages will be exported.":"Si coch\xE9, vous pouvez s\xE9lectionner les messages configur\xE9s que vous souhaitez exporter. Si elle n'est pas coch\xE9e, tous les messages seront export\xE9s.","This ID is configured multiple times with this data length":"Cet ID est configur\xE9 plusieurs fois avec cette longueur de donn\xE9es","Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.":"Astuce: Toutes les configurations sont fournies sans aucune garantie! Selon le syst\xE8me connect\xE9, l'envoi de messages incorrects peut endommager le syst\xE8me.","If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option.":"Si elle n'est pas coch\xE9e, une importation ajoutera simplement de nouveaux messages et analyseurs et ceux qui ont d\xE9j\xE0 \xE9t\xE9 d\xE9finis sont ignor\xE9s. Un message ou un analyseur existant est d\xE9termin\xE9 par son UUID interne et non par son ID. Si vous souhaitez r\xE9importer un fichier export\xE9 pour mettre \xE0 jour votre configuration, vous devez d\xE9finir cette option.","Import / Export":"Importer / Exporter",Import:"Importer",Export:"Exporter","Using this import feature you are able to import message configurations to extend your existing configuration.":"Gr\xE2ce \xE0 cette fonction d'importation, vous pouvez importer des configurations de message pour \xE9tendre votre configuration existante.","Import from file":"Importer depuis un fichier","Using this export feature you are able to export your message configurations.":"Gr\xE2ce \xE0 cette fonction d'exportation, vous pouvez exporter vos configurations de messages.","The exported files can be shared or edited externally and reimported to update your configuration.":"Les fichiers export\xE9s peuvent \xEAtre partag\xE9s ou modifi\xE9s en externe et r\xE9import\xE9s pour mettre \xE0 jour votre configuration.","Export format":"Format d'exportation","Select messages to export":"S\xE9lectionnez les messages \xE0 exporter","Data type in the can message":"Type de donn\xE9es dans le message can","Data type in ioBroker":"Type de donn\xE9es dans ioBroker","You may use a predefined configuration from GitHub or upload a custom file.":"Vous pouvez utiliser une configuration pr\xE9d\xE9finie de GitHub ou t\xE9l\xE9charger un fichier personnalis\xE9.","Overwrite existing messages on import":"\xC9craser les messages existants lors de l'importation","Export to file":"Exporter vers un fichier","Failed to open file!":"\xC9chec de l'ouverture du fichier!","Use raw states":"Utiliser des \xE9tats bruts",and:"et","ID missing":"ID manquant","Not set":"Non d\xE9fini","Custom script write":"\xC9criture de script personnalis\xE9","Data length":"Longueur des donn\xE9es","Optionally set a fixed data length for this message":"D\xE9finissez \xE9ventuellement une longueur de donn\xE9es fixe pour ce message","Remove this message?":"Supprimer ce message?","Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart.":"Voulez-vous vraiment supprimer ce message? Cela supprimera \xE9galement tous ses analyseurs. Le message sera trait\xE9 comme non configur\xE9 et pourra \xEAtre supprim\xE9 au red\xE9marrage de l'adaptateur.","Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.":"Script pour lire la valeur du tampon. Le tampon est disponible en tant que %s et la valeur doit \xEAtre \xE9crite dans %s.","Script to write the value to the buffer. The buffer is available as %s and the value as %s.":"Script pour \xE9crire la valeur dans le tampon. Le tampon est disponible en %s et la valeur en %s.","Your configuration is invalid. Please check the settings marked in red.":"Votre configuration n'est pas valide. Veuillez v\xE9rifier les param\xE8tres marqu\xE9s en rouge.","Custom script read":"Lecture de script personnalis\xE9","Load configuration from file":"Charger la configuration \xE0 partir du fichier","Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput.":"Utilisez les \xE9tats bruts, qui sont mis \xE0 jour avec chaque message re\xE7u ou envoy\xE9 et peuvent \xEAtre utilis\xE9s pour envoyer vos propres messages. Cela permet l'utilisation dans les scripts, mais peut conduire \xE0 une charge plus \xE9lev\xE9e sur les syst\xE8mes avec un d\xE9bit de messages \xE9lev\xE9.","Use rtr flag":"Utiliser l'indicateur rtr","Add an additional Remote Transmission Request (rtr) state on each message.":"Ajoutez un \xE9tat suppl\xE9mentaire de demande de transmission \xE0 distance (rtr) sur chaque message.","Validation error:":"Erreur de validation:","Ignore this error and try to import":"Ignorez cette erreur et essayez d'importer","Import done":"Importation termin\xE9e","The downloaded index is not valid":"L'index t\xE9l\xE9charg\xE9 n'est pas valide",Copy:"Copie",Paste:"Ins\xE9rer","Message configuration copied. Use the paste button to paste this configuration to an other message.":"Configuration du message copi\xE9e. Utilisez le bouton Coller pour coller cette configuration dans un autre message.","Parser configuration copied. Use the paste button to paste this configuration to an other parser.":"Configuration de l'analyseur copi\xE9e. Utilisez le bouton Coller pour coller cette configuration dans un autre analyseur.","Nothing to paste. Please use the copy button first.":"Rien \xE0 ins\xE9rer. Veuillez d'abord utiliser le bouton de copie.",Pasted:"Ins\xE9r\xE9","Error while pasting: %s":"Erreur d'insertion: %s","Define possible states":"D\xE9finir les \xE9tats possibles","Setup a list of predefined state values":"Configurer une liste de valeurs d'\xE9tat pr\xE9d\xE9finies","Possible states":"\xC9tats possibles","Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto":"Liste s\xE9par\xE9e par des virgules des valeurs r\xE9elles et des valeurs d'affichage. Exemple: 0=D\xE9sactiv\xE9,1=Sur,2=Automatik","Invalid format! Please use the format value=text,value=text,...":"Format invalide! Veuillez utiliser le format value=text,value=text,\u2026",Role:"R\xF4le",'Select a suitable role for the ioBroker state or just use "state" if you are not sure.':`S\xE9lectionnez un r\xF4le appropri\xE9 pour l'\xE9tat ioBroker ou utilisez simplement "state" si vous n'\xEAtes pas s\xFBr.`,"Information about the state roles in ioBroker on GitHub":"Informations sur les r\xF4les d'\xE9tat dans ioBroker sur GitHub (En anglais)",License:"Licence","Automatically set a certain value":"D\xE9finir automatiquement une certaine valeur","Set a certain value automatically in a given interval":"D\xE9finir automatiquement une certaine valeur dans un intervalle donn\xE9","Interval for automatic set":"Intervalle pour r\xE9glage automatique","Interval in milliseconds to automatically set the value":"Intervalle en millisecondes pour d\xE9finir automatiquement la valeur","Value to set":"Valeur \xE0 d\xE9finir","The value to set automatically in the given interval (%s)":"La valeur \xE0 d\xE9finir automatiquement dans l'intervalle donn\xE9 (%s)","Trigger send":"D\xE9clencher l'envoi","Trigger the send action every time the value is set automatically":"D\xE9clenchez l'action d'envoi \xE0 chaque fois que la valeur est d\xE9finie automatiquement"}});var lse=_((Rvt,FVe)=>{FVe.exports={"canbus adapter settings":"Impostazioni dell'adattatore per canbus",Messages:"Messaggi",Interface:"Interfaccia","e.g.":"per esempio.","Auto add seen messages":"Aggiungi automaticamente i messaggi visti","Automatically add new messages to the list of our known messages when they are received.":"Aggiungi automaticamente nuovi messaggi all'elenco dei nostri messaggi conosciuti quando vengono ricevuti.","Delete unconfigured messages":"Elimina i messaggi non configurati","Delete all objects of unconfigured messages on adapter startup.":"Elimina tutti gli oggetti dei messaggi non configurati all'avvio dell'adattatore.","Only allowed chars: %s":"Solo caratteri consentiti: %s","Configured messages":"Messaggi configurati","Unconfigured messages":"Messaggi non configurati","Message ID":"ID messaggio",or:"o",Name:"Nome","My super message":"Il mio super messaggio",Receive:"Ricevere","Receive messages with the given ID":"Ricevi messaggi con l'ID fornito",Send:"Spedire","Send messages with the given ID":"Invia messaggi con l'ID fornito",Autosend:"Autosend","Automatically send the message when some data part changed":"Invia automaticamente il messaggio quando una parte dei dati \xE8 cambiata",Parsers:"Parsers","Must be a 3 or 8 char hex ID":"Deve essere un ID esadecimale di 3 o 8 caratteri","Parser ID":"ID parser",Temperature:"Temperatura","Data type":"Tipo di dati",Offset:"Compensare",Length:"Lunghezza",Encoding:"Codifica",Unit:"Unit\xE0","Boolean bitmask":"Maschera bit booleana","Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.":"Bitmask da applicare per rilevare / impostare un valore %s. Se non sono selezionati bit, qualsiasi valore di byte maggiore di 0 verr\xE0 interpretato come %s.","Boolean invert":"Inversione booleana","Invert the boolean value":"Inverti il \u200B\u200Bvalore booleano","This ID is reserved and can't be used":"Questo ID \xE8 riservato e non pu\xF2 essere utilizzato","There are some errors in you configuration. Please check!":"Ci sono alcuni errori nella tua configurazione. ","CAN message ID in hex":"ID messaggio CAN in esadecimale","loading...":"Caricamento in corso\u2026",Add:"Inserisci",Remove:"Rimuovere",Reload:"Ricaricare",General:"Generale",Message:"Messaggio","ID missing":"Documento d'identit\xE0 mancante","This ID is configured multiple times with this data length":"Questo ID viene configurato pi\xF9 volte con questa lunghezza di dati","Data length":"Lunghezza dei dati","Not set":"Non impostato","Optionally set a fixed data length for this message":"Facoltativamente, imposta una lunghezza dati fissa per questo messaggio","Remove this message?":"Rimuovere questo messaggio?","Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart.":"Sei sicuro di voler rimuovere questo messaggio? Ci\xF2 rimuover\xE0 anche tutti i suoi parser. Il messaggio verr\xE0 considerato non configurato e potrebbe essere eliminato al riavvio dell'adattatore.","Data type in the can message":"Tipo di dati nel messaggio CAN","Data type in ioBroker":"Tipo di dati in ioBroker","Custom script read":"Lettura dello script personalizzato","Custom script write":"Scrittura di script personalizzati","Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.":"Script per leggere il valore dal buffer. Il buffer \xE8 disponibile come %s e il valore deve essere scritto in %s.","Script to write the value to the buffer. The buffer is available as %s and the value as %s.":"Script per scrivere il valore nel buffer. Il buffer \xE8 disponibile come %s e il valore come %s.","Your configuration is invalid. Please check the settings marked in red.":"La tua configurazione non \xE8 valida. Si prega di verificare le impostazioni contrassegnate in rosso.","Use raw states":"Usa gli stati grezzi","Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput.":"Utilizza gli stati grezzi, che vengono aggiornati con ogni messaggio ricevuto o inviato e possono essere utilizzati per inviare i tuoi messaggi. Ci\xF2 consente l'utilizzo negli script, ma pu\xF2 comportare un carico maggiore sui sistemi con un elevato throughput dei messaggi.",and:"E","Use rtr flag":"Usa il flag rtr","Add an additional Remote Transmission Request (rtr) state on each message.":"Aggiungere uno stato aggiuntivo di richiesta di trasmissione remota (rtr) su ciascun messaggio.","Import / Export":"Importa/Esporta",Import:"Importare",Export:"Esportare","Using this import feature you are able to import message configurations to extend your existing configuration.":"Utilizzando questa funzione di importazione puoi importare configurazioni di messaggi per estendere la configurazione esistente.","You may use a predefined configuration from GitHub or upload a custom file.":"Puoi utilizzare una configurazione predefinita da GitHub o caricare un file personalizzato.","Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.":"Suggerimento: tutte le configurazioni sono fornite senza alcuna garanzia! A seconda del sistema collegato, l'invio di messaggi errati potrebbe danneggiare il sistema.","Fetch configurations from GitHub":"Recupera le configurazioni da GitHub","Overwrite existing messages on import":"Sovrascrivi i messaggi esistenti durante l'importazione","If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option.":"Se non selezionato, un'importazione aggiunger\xE0 semplicemente nuovi messaggi e parser e quelli che sono gi\xE0 stati definiti verranno ignorati. Un messaggio o un parser esistente \xE8 determinato dal suo UUID interno e non dall'ID. Se vuoi reimportare un file esportato per aggiornare la tua configurazione devi impostare questa opzione.","Show on GitHub":"Mostra su GitHub","Import from GitHub":"Importa da GitHub","Import from file":"Importa da file","Using this export feature you are able to export your message configurations.":"Usando questa funzione di esportazione puoi esportare le configurazioni dei tuoi messaggi.","The exported files can be shared or edited externally and reimported to update your configuration.":"I file esportati possono essere condivisi o modificati esternamente e reimportati per aggiornare la configurazione.","Export format":"Formato di esportazione","Select messages to export":"Seleziona i messaggi da esportare","If checked, you can select the configured messages you want to export. If not checked, all messages will be exported.":"Se selezionato, puoi selezionare i messaggi configurati che desideri esportare. Se non selezionato, tutti i messaggi verranno esportati.","Export to file":"Esporta su file","Failed to open file!":"Impossibile aprire il file!","Unsupported file type!":"Tipo di file non supportato!","File is empty!":"Il file \xE8 vuoto!","Error parsing file! %s":"Errore durante l'analisi del file! %S",Version:"Versione",Author:"Autore","Validation error:":"Errore di convalida:","Ignore this error and try to import":"Ignora questo errore e prova a importare","Import done":"Importazione completata","The downloaded index is not valid":"L'indice scaricato non \xE8 valido",Copy:"Copia",Paste:"Impasto","Message configuration copied. Use the paste button to paste this configuration to an other message.":"Configurazione del messaggio copiata. Utilizza il pulsante Incolla per incollare questa configurazione in un altro messaggio.","Parser configuration copied. Use the paste button to paste this configuration to an other parser.":"Configurazione del parser copiata. Utilizza il pulsante Incolla per incollare questa configurazione su un altro parser.","Nothing to paste. Please use the copy button first.":"Niente da incollare. Utilizza prima il pulsante Copia.",Pasted:"Incollato","Error while pasting: %s":"Errore durante l'incollaggio: %s","Define possible states":"Definire i possibili stati","Setup a list of predefined state values":"Imposta un elenco di valori di stato predefiniti","Possible states":"Stati possibili","Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto":"Elenco separato da virgole di valori reali e valori visualizzati. Esempio: 0=Off,1=On,2=Auto","Invalid format! Please use the format value=text,value=text,...":"Formato non valido! Si prega di utilizzare il formato valore=testo,valore=testo,...",Role:"Ruolo",'Select a suitable role for the ioBroker state or just use "state" if you are not sure.':'Seleziona un ruolo adatto per lo stato di ioBroker o utilizza semplicemente "stato" se non sei sicuro.',"Information about the state roles in ioBroker on GitHub":"Informazioni sui ruoli statali in ioBroker su GitHub",License:"Licenza","Automatically set a certain value":"Imposta automaticamente un determinato valore","Set a certain value automatically in a given interval":"Imposta automaticamente un determinato valore in un determinato intervallo","Interval for automatic set":"Intervallo per l'impostazione automatica","Interval in milliseconds to automatically set the value":"Intervallo in millisecondi per impostare automaticamente il valore","Value to set":"Valore da impostare","The value to set automatically in the given interval (%s)":"Il valore da impostare automaticamente nell'intervallo specificato (%s)","Trigger send":"Attiva l'invio","Trigger the send action every time the value is set automatically":"Attiva l'azione di invio ogni volta che il valore viene impostato automaticamente"}});var cse=_((Dvt,qVe)=>{qVe.exports={"canbus adapter settings":"Ajustes del adaptador para canbus",Messages:"Mensajes",Interface:"Interfaz","e.g.":"p.ej.","Auto add seen messages":"Agregar autom\xE1ticamente mensajes vistos","Automatically add new messages to the list of our known messages when they are received.":"Agrega autom\xE1ticamente nuevos mensajes a la lista de nuestros mensajes conocidos cuando se reciben.","Delete unconfigured messages":"Eliminar mensajes no configurados","Delete all objects of unconfigured messages on adapter startup.":"Elimine todos los objetos de los mensajes no configurados al iniciar el adaptador.","Only allowed chars: %s":"Solo caracteres permitidos: %s","Configured messages":"Mensajes configurados","Unconfigured messages":"Mensajes no configurados","Message ID":"ID de mensaje",or:"o",Name:"Nombre","My super message":"Mi super mensaje",Receive:"Recibir","Receive messages with the given ID":"Recibir mensajes con el ID proporcionado",Send:"Enviar","Send messages with the given ID":"Env\xEDa mensajes con el ID proporcionado",Autosend:"Autoenviar","Automatically send the message when some data part changed":"Env\xEDa autom\xE1ticamente el mensaje cuando cambia alguna parte de los datos",Parsers:"Analizadores","Must be a 3 or 8 char hex ID":"Debe ser un ID hexadecimal de 3 u 8 caracteres","Parser ID":"Id. Del analizador",Temperature:"Temperatura","Data type":"Tipo de datos",Offset:"Compensar",Length:"Longitud",Encoding:"Codificaci\xF3n",Unit:"Unidad","Boolean bitmask":"M\xE1scara de bits booleana","Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.":"M\xE1scara de bits para aplicar para detectar / establecer un valor %s. Si no se seleccionan bits, cualquier valor de byte mayor que 0 se interpretar\xE1 como %s.","Boolean invert":"Inversi\xF3n booleana","Invert the boolean value":"Invertir el valor booleano","This ID is reserved and can't be used":"Esta identificaci\xF3n est\xE1 reservada y no se puede usar","There are some errors in you configuration. Please check!":"Hay algunos errores en su configuraci\xF3n. ","CAN message ID in hex":"ID de mensaje CAN en hexadecimal","loading...":"cargando\u2026",Add:"A\xF1adir",Remove:"Eliminar",Reload:"Recargar",General:"General",Message:"Mensaje","ID missing":"Falta identificaci\xF3n","This ID is configured multiple times with this data length":"Esta ID se configura varias veces con esta longitud de datos","Data length":"Longitud de datos","Not set":"No establecido","Optionally set a fixed data length for this message":"Opcionalmente, establezca una longitud de datos fija para este mensaje.","Remove this message?":"\xBFEliminar este mensaje?","Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart.":"\xBFEst\xE1s seguro de que deseas eliminar este mensaje? Esto tambi\xE9n eliminar\xE1 todos sus analizadores. El mensaje se tratar\xE1 como no configurado y puede eliminarse al reiniciar el adaptador.","Data type in the can message":"Tipo de datos en el mensaje can.","Data type in ioBroker":"Tipo de datos en ioBroker","Custom script read":"Lectura de gui\xF3n personalizado","Custom script write":"Escritura de gui\xF3n personalizado","Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.":"Script para leer el valor del buffer. El b\xFAfer est\xE1 disponible como %s y el valor debe escribirse en %s.","Script to write the value to the buffer. The buffer is available as %s and the value as %s.":"Script para escribir el valor en el buffer. El b\xFAfer est\xE1 disponible como %s y el valor como %s.","Your configuration is invalid. Please check the settings marked in red.":"Su configuraci\xF3n no es v\xE1lida. Verifique la configuraci\xF3n marcada en rojo.","Use raw states":"Usar estados sin procesar","Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput.":"Utilice los estados sin formato, que se actualizan con cada mensaje recibido o enviado y se pueden utilizar para enviar sus propios mensajes. Esto permite el uso en scripts, pero puede generar una mayor carga en sistemas con un alto rendimiento de mensajes.",and:"y","Use rtr flag":"Usar bandera rtr","Add an additional Remote Transmission Request (rtr) state on each message.":"Agregue un estado de Solicitud de transmisi\xF3n remota (rtr) adicional en cada mensaje.","Import / Export":"Importar / Exportar",Import:"Importar",Export:"Exportar","Using this import feature you are able to import message configurations to extend your existing configuration.":"Al utilizar esta funci\xF3n de importaci\xF3n, puede importar configuraciones de mensajes para ampliar su configuraci\xF3n existente.","You may use a predefined configuration from GitHub or upload a custom file.":"Puede utilizar una configuraci\xF3n predefinida de GitHub o cargar un archivo personalizado.","Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.":"Sugerencia: \xA1Todas las configuraciones se proporcionan sin garant\xEDa alguna! Dependiendo del sistema conectado, enviar mensajes incorrectos puede da\xF1ar el sistema.","Fetch configurations from GitHub":"Obtener configuraciones de GitHub","Overwrite existing messages on import":"Sobrescribir mensajes existentes al importar","If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option.":"Si no se marca, una importaci\xF3n simplemente agregar\xE1 nuevos mensajes y analizadores y los que ya se han definido se ignoran. Un mensaje o analizador existente est\xE1 determinado por su UUID interno y no por su ID. Si desea volver a importar un archivo exportado para actualizar su configuraci\xF3n, debe configurar esta opci\xF3n.","Show on GitHub":"Mostrar en GitHub","Import from GitHub":"Importar desde GitHub","Import from file":"Importar desde archivo","Using this export feature you are able to export your message configurations.":"Con esta funci\xF3n de exportaci\xF3n, podr\xE1 exportar las configuraciones de sus mensajes.","The exported files can be shared or edited externally and reimported to update your configuration.":"Los archivos exportados se pueden compartir o editar externamente y volver a importar para actualizar su configuraci\xF3n.","Export format":"Formato de exportaci\xF3n","Select messages to export":"Seleccionar mensajes para exportar","If checked, you can select the configured messages you want to export. If not checked, all messages will be exported.":"Si est\xE1 marcado, puede seleccionar los mensajes configurados que desea exportar. Si no est\xE1 marcado, se exportar\xE1n todos los mensajes.","Export to file":"Exportar a archivo","Failed to open file!":"\xA1No se pudo abrir el archivo!","Unsupported file type!":"\xA1Tipo de archivo no admitido!","File is empty!":"\xA1El archivo est\xE1 vac\xEDo!","Error parsing file! %s":"\xA1Error al analizar el archivo! %s",Version:"Versi\xF3n",Author:"Autor","Validation error:":"Error de validaci\xF3n:","Ignore this error and try to import":"Ignora este error e intenta importar","Import done":"Importaci\xF3n realizada","The downloaded index is not valid":"El \xEDndice descargado no es v\xE1lido.",Copy:"Copiar",Paste:"Pasta","Message configuration copied. Use the paste button to paste this configuration to an other message.":"Configuraci\xF3n del mensaje copiada. Utilice el bot\xF3n pegar para pegar esta configuraci\xF3n en otro mensaje.","Parser configuration copied. Use the paste button to paste this configuration to an other parser.":"Se copi\xF3 la configuraci\xF3n del analizador. Utilice el bot\xF3n pegar para pegar esta configuraci\xF3n en otro analizador.","Nothing to paste. Please use the copy button first.":"Nada que pegar. Utilice primero el bot\xF3n Copiar.",Pasted:"Pegado","Error while pasting: %s":"Error al pegar: %s","Define possible states":"Definir posibles estados","Setup a list of predefined state values":"Configurar una lista de valores de estado predefinidos","Possible states":"Posibles estados","Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto":"Lista separada por comas de valores reales y valores de visualizaci\xF3n. Ejemplo: 0=Desactivado,1=Activado,2=Autom\xE1tico","Invalid format! Please use the format value=text,value=text,...":"\xA1Formato no v\xE1lido! Utilice el formato valor=texto,valor=texto,\u2026",Role:"Role",'Select a suitable role for the ioBroker state or just use "state" if you are not sure.':'Seleccione una funci\xF3n adecuada para el estado de ioBroker o simplemente utilice "estado" si no est\xE1 seguro.',"Information about the state roles in ioBroker on GitHub":"Informaci\xF3n sobre los roles estatales en ioBroker en GitHub",License:"Licencia","Automatically set a certain value":"Establecer autom\xE1ticamente un valor determinado","Set a certain value automatically in a given interval":"Establecer un determinado valor autom\xE1ticamente en un intervalo determinado","Interval for automatic set":"Intervalo para armado autom\xE1tico","Interval in milliseconds to automatically set the value":"Intervalo en milisegundos para establecer autom\xE1ticamente el valor","Value to set":"Valor a establecer","The value to set automatically in the given interval (%s)":"El valor que se establecer\xE1 autom\xE1ticamente en el intervalo dado (%s)","Trigger send":"Env\xEDo de disparador","Trigger the send action every time the value is set automatically":"Activa la acci\xF3n de env\xEDo cada vez que el valor se establece autom\xE1ticamente"}});var dse=_((Nvt,jVe)=>{jVe.exports={"canbus adapter settings":"Ustawienia adaptera dla canbus",Messages:"Wiadomo\u015Bci",Interface:"Ber\u0142o","e.g.":"na przyk\u0142ad","Auto add seen messages":"Automatyczne dodawanie wy\u015Bwietlonych wiadomo\u015Bci","Automatically add new messages to the list of our known messages when they are received.":"Automatycznie dodawaj nowe wiadomo\u015Bci do listy znanych wiadomo\u015Bci, gdy zostan\u0105 odebrane.","Delete unconfigured messages":"Usu\u0144 nieskonfigurowane wiadomo\u015Bci","Delete all objects of unconfigured messages on adapter startup.":"Usu\u0144 wszystkie obiekty nieskonfigurowanych komunikat\xF3w podczas uruchamiania adaptera.","Only allowed chars: %s":"Tylko dozwolone znaki: %s","Configured messages":"Skonfigurowane wiadomo\u015Bci","Unconfigured messages":"Nieskonfigurowane wiadomo\u015Bci","Message ID":"ID wiadomo\u015Bci","CAN message ID in hex":"Identyfikator wiadomo\u015Bci CAN w formacie szesnastkowym",or:"lub",Name:"Nazwa","My super message":"Moja super wiadomo\u015B\u0107",Receive:"Otrzyma\u0107","Receive messages with the given ID":"Odbieraj wiadomo\u015Bci z podanym identyfikatorem",Send:"Wys\u0142a\u0107","Send messages with the given ID":"Wysy\u0142aj wiadomo\u015Bci z podanym identyfikatorem",Autosend:"Automatyczne wysy\u0142anie","Automatically send the message when some data part changed":"Automatycznie wy\u015Blij wiadomo\u015B\u0107, gdy zmieni si\u0119 cz\u0119\u015B\u0107 danych",Parsers:"Parsery","Must be a 3 or 8 char hex ID":"Musi to by\u0107 identyfikator szesnastkowy sk\u0142adaj\u0105cy si\u0119 z 3 lub 8 znak\xF3w","Parser ID":"Identyfikator parsera",Temperature:"Temperatura","Data type":"Typ danych",Offset:"Przesuni\u0119cie",Length:"D\u0142ugo\u015B\u0107",Encoding:"Kodowanie",Unit:"Jednostka","Boolean bitmask":"Boolean bitmask","Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.":"Maska bitowa stosowana do wykrywania / ustawiania warto\u015Bci %s. Je\u015Bli nie wybrano \u017Cadnych bit\xF3w, ka\u017Cda warto\u015B\u0107 bajtu wi\u0119ksza ni\u017C 0 zostanie zinterpretowana jako %s.","Boolean invert":"Boolean invert","Invert the boolean value":"Odwr\xF3\u0107 warto\u015B\u0107 logiczn\u0105","This ID is reserved and can't be used":"Ten identyfikator jest zarezerwowany i nie mo\u017Cna go u\u017Cywa\u0107","There are some errors in you configuration. Please check!":"Konfiguracja zawiera b\u0142\u0119dy. ","loading...":"\u0141adowanie\u2026",Add:"Dodaj",Remove:"Usun\u0105\u0107",Reload:"Prze\u0142adowa\u0107",General:"G\u0142\xF3wne",Message:"Wiadomo\u015B\u0107",Import:"Import",Export:"Eksport","ID missing":"Brak identyfikatora","This ID is configured multiple times with this data length":"Ten identyfikator jest konfigurowany wielokrotnie przy tej d\u0142ugo\u015Bci danych","Data length":"D\u0142ugo\u015B\u0107 danych","Not set":"Nie ustawiono","Optionally set a fixed data length for this message":"Opcjonalnie ustaw sta\u0142\u0105 d\u0142ugo\u015B\u0107 danych dla tej wiadomo\u015Bci","Remove this message?":"Usun\u0105\u0107 t\u0119 wiadomo\u015B\u0107?","Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart.":"Czy na pewno chcesz usun\u0105\u0107 t\u0119 wiadomo\u015B\u0107? Spowoduje to r\xF3wnie\u017C usuni\u0119cie wszystkich parser\xF3w. Wiadomo\u015B\u0107 zostanie potraktowana jako nieskonfigurowana i mo\u017Ce zosta\u0107 usuni\u0119ta po ponownym uruchomieniu adaptera.","Data type in the can message":"Typ danych w komunikacie puszki","Data type in ioBroker":"Typ danych w ioBrokerze","Custom script read":"Odczyt niestandardowego skryptu","Custom script write":"Niestandardowy zapis skryptu","Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.":"Skrypt odczytuj\u0105cy warto\u015B\u0107 z bufora. Bufor jest dost\u0119pny jako %s, a warto\u015B\u0107 musi zosta\u0107 zapisana w %s.","Script to write the value to the buffer. The buffer is available as %s and the value as %s.":"Skrypt zapisuj\u0105cy warto\u015B\u0107 do bufora. Bufor jest dost\u0119pny jako %s, a warto\u015B\u0107 jako %s.","Your configuration is invalid. Please check the settings marked in red.":"Twoja konfiguracja jest nieprawid\u0142owa. Sprawd\u017A ustawienia zaznaczone na czerwono.","Use raw states":"U\u017Cyj stan\xF3w surowych","Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput.":"U\u017Cyj stan\xF3w surowych, kt\xF3re s\u0105 aktualizowane przy ka\u017Cdej otrzymanej lub wys\u0142anej wiadomo\u015Bci i mog\u0105 by\u0107 u\u017Cywane do wysy\u0142ania w\u0142asnych wiadomo\u015Bci. Umo\u017Cliwia to u\u017Cycie w skryptach, ale mo\u017Ce prowadzi\u0107 do wi\u0119kszego obci\u0105\u017Cenia system\xF3w o du\u017Cej przepustowo\u015Bci wiadomo\u015Bci.",and:"I","Use rtr flag":"U\u017Cyj flagi rtr","Add an additional Remote Transmission Request (rtr) state on each message.":"Dodaj dodatkowy stan \u017C\u0105dania zdalnej transmisji (rtr) do ka\u017Cdej wiadomo\u015Bci.","Import / Export":"Importuj / Eksportuj","Using this import feature you are able to import message configurations to extend your existing configuration.":"Korzystaj\u0105c z tej funkcji importowania, mo\u017Cesz importowa\u0107 konfiguracje wiadomo\u015Bci w celu rozszerzenia istniej\u0105cej konfiguracji.","You may use a predefined configuration from GitHub or upload a custom file.":"Mo\u017Cesz u\u017Cy\u0107 predefiniowanej konfiguracji z GitHuba lub przes\u0142a\u0107 niestandardowy plik.","Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.":"Wskaz\xF3wka: wszystkie konfiguracje s\u0105 dostarczane bez \u017Cadnej gwarancji! W zale\u017Cno\u015Bci od pod\u0142\u0105czonego systemu wys\u0142anie nieprawid\u0142owych wiadomo\u015Bci mo\u017Ce spowodowa\u0107 uszkodzenie systemu.","Fetch configurations from GitHub":"Pobierz konfiguracje z GitHub","Overwrite existing messages on import":"Zast\u0105p istniej\u0105ce wiadomo\u015Bci podczas importu","If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option.":"Je\u015Bli nie jest zaznaczone, import po prostu doda nowe wiadomo\u015Bci i parsery, a te, kt\xF3re zosta\u0142y ju\u017C zdefiniowane, zostan\u0105 zignorowane. Istniej\u0105ca wiadomo\u015B\u0107 lub analizator sk\u0142adni jest okre\u015Blany na podstawie wewn\u0119trznego identyfikatora UUID, a nie identyfikatora. Je\u015Bli chcesz ponownie zaimportowa\u0107 wyeksportowany plik w celu aktualizacji konfiguracji, musisz ustawi\u0107 t\u0119 opcj\u0119.","Show on GitHub":"Poka\u017C na GitHubie","Import from GitHub":"Importuj z GitHuba","Import from file":"Importuj z pliku","Using this export feature you are able to export your message configurations.":"Korzystaj\u0105c z tej funkcji eksportu, mo\u017Cesz wyeksportowa\u0107 konfiguracje wiadomo\u015Bci.","The exported files can be shared or edited externally and reimported to update your configuration.":"Wyeksportowane pliki mo\u017Cna udost\u0119pnia\u0107 lub edytowa\u0107 na zewn\u0105trz i ponownie importowa\u0107 w celu aktualizacji konfiguracji.","Export format":"Format eksportu","Select messages to export":"Wybierz wiadomo\u015Bci do wyeksportowania","If checked, you can select the configured messages you want to export. If not checked, all messages will be exported.":"Je\u015Bli zaznaczone, mo\u017Cesz wybra\u0107 skonfigurowane wiadomo\u015Bci, kt\xF3re chcesz wyeksportowa\u0107. Je\u015Bli nie jest zaznaczone, wszystkie wiadomo\u015Bci zostan\u0105 wyeksportowane.","Export to file":"Eksportuj do pliku","Failed to open file!":"Nie uda\u0142o si\u0119 otworzy\u0107 pliku!","Unsupported file type!":"Nieobs\u0142ugiwany typ pliku!","File is empty!":"Plik jest pusty!","Error parsing file! %s":"B\u0142\u0105d podczas analizowania pliku! %S",Version:"Wersja",Author:"Autor","Validation error:":"B\u0142\u0105d walidacji:","Ignore this error and try to import":"Zignoruj \u200B\u200Bten b\u0142\u0105d i spr\xF3buj zaimportowa\u0107","Import done":"Import zako\u0144czony","The downloaded index is not valid":"Pobrany indeks jest nieprawid\u0142owy",Copy:"Kopia",Paste:"Pasta","Message configuration copied. Use the paste button to paste this configuration to an other message.":"Konfiguracja wiadomo\u015Bci zosta\u0142a skopiowana. U\u017Cyj przycisku wklej, aby wklei\u0107 t\u0119 konfiguracj\u0119 do innej wiadomo\u015Bci.","Parser configuration copied. Use the paste button to paste this configuration to an other parser.":"Konfiguracja parsera zosta\u0142a skopiowana. U\u017Cyj przycisku wklejania, aby wklei\u0107 t\u0119 konfiguracj\u0119 do innego analizatora sk\u0142adni.","Nothing to paste. Please use the copy button first.":"Nie ma nic do wklejenia. Najpierw u\u017Cyj przycisku kopiowania.",Pasted:"Wklejony","Error while pasting: %s":"B\u0142\u0105d podczas wklejania: %s","Define possible states":"Zdefiniuj mo\u017Cliwe stany","Setup a list of predefined state values":"Skonfiguruj list\u0119 predefiniowanych warto\u015Bci stanu","Possible states":"Mo\u017Cliwe stany","Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto":"Rozdzielana przecinkami lista warto\u015Bci rzeczywistych i warto\u015Bci wy\u015Bwietlanych. Przyk\u0142ad: 0=Wy\u0142.,1=W\u0142.,2=Auto","Invalid format! Please use the format value=text,value=text,...":"Nieprawid\u0142owy format! Prosz\u0119 u\u017Cywa\u0107 formatu warto\u015B\u0107=tekst, warto\u015B\u0107=tekst,\u2026",Role:"Rola",'Select a suitable role for the ioBroker state or just use "state" if you are not sure.':"Wybierz odpowiedni\u0105 rol\u0119 dla stanu ioBroker lub po prostu u\u017Cyj \u201Estanu\u201D, je\u015Bli nie jeste\u015B pewien.","Information about the state roles in ioBroker on GitHub":"Informacje o rolach stanu w ioBroker na GitHub",License:"Licencja","Automatically set a certain value":"Automatycznie ustaw okre\u015Blon\u0105 warto\u015B\u0107","Set a certain value automatically in a given interval":"Ustawia automatycznie okre\u015Blon\u0105 warto\u015B\u0107 w zadanym przedziale","Interval for automatic set":"Interwa\u0142 automatycznego za\u0142\u0105czenia","Interval in milliseconds to automatically set the value":"Interwa\u0142 w milisekundach, aby automatycznie ustawi\u0107 warto\u015B\u0107","Value to set":"Warto\u015B\u0107 do ustawienia","The value to set automatically in the given interval (%s)":"Warto\u015B\u0107 ustawiana automatycznie w zadanym przedziale (%s)","Trigger send":"Wyzwalanie wysy\u0142ania","Trigger the send action every time the value is set automatically":"Wyzwalaj akcj\u0119 wysy\u0142ania za ka\u017Cdym razem, gdy warto\u015B\u0107 jest ustawiana automatycznie"}});var fse=_((Avt,LVe)=>{LVe.exports={"canbus adapter settings":"canbus\u7684\u9002\u914D\u5668\u8BBE\u7F6E",Messages:"\u4FE1\u606F\u5185\u5BB9",Interface:"\u63A5\u53E3","e.g.":"\u4F8B\u5982","Auto add seen messages":"\u81EA\u52A8\u6DFB\u52A0\u770B\u5230\u7684\u6D88\u606F","Automatically add new messages to the list of our known messages when they are received.":"\u6536\u5230\u65B0\u6D88\u606F\u540E\uFF0C\u5C06\u5B83\u4EEC\u81EA\u52A8\u6DFB\u52A0\u5230\u6211\u4EEC\u7684\u5DF2\u77E5\u6D88\u606F\u5217\u8868\u4E2D\u3002","Delete unconfigured messages":"\u5220\u9664\u672A\u914D\u7F6E\u7684\u6D88\u606F","Delete all objects of unconfigured messages on adapter startup.":"\u9002\u914D\u5668\u542F\u52A8\u65F6\u5220\u9664\u6240\u6709\u672A\u914D\u7F6E\u6D88\u606F\u7684\u5BF9\u8C61\u3002","Only allowed chars: %s":"\u4EC5\u5141\u8BB8\u7684\u5B57\u7B26\uFF1A%s","Configured messages":"\u914D\u7F6E\u7684\u6D88\u606F","Unconfigured messages":"\u672A\u914D\u7F6E\u7684\u6D88\u606F","Message ID":"\u8BAF\u606F\u7F16\u53F7","CAN message ID in hex":"\u5341\u516D\u8FDB\u5236\u7684CAN\u6D88\u606FID",or:"\u6216",Name:"\u540D\u79F0","My super message":"\u6211\u7684\u8D85\u7EA7\u8BAF\u606F",Receive:"\u63A5\u6536","Receive messages with the given ID":"\u63A5\u6536\u5177\u6709\u7ED9\u5B9AID\u7684\u6D88\u606F",Send:"\u53D1\u9001","Send messages with the given ID":"\u53D1\u9001\u5177\u6709\u7ED9\u5B9AID\u7684\u6D88\u606F",Autosend:"\u81EA\u52A8\u53D1\u9001","Automatically send the message when some data part changed":"\u67D0\u4E9B\u6570\u636E\u90E8\u5206\u66F4\u6539\u65F6\u81EA\u52A8\u53D1\u9001\u6D88\u606F",Parsers:"\u89E3\u6790\u5668","Must be a 3 or 8 char hex ID":"\u5FC5\u987B\u4E3A3\u62168\u4E2A\u5B57\u7B26\u7684\u5341\u516D\u8FDB\u5236ID","Parser ID":"\u89E3\u6790\u5668ID",Temperature:"\u6E29\u5EA6","Data type":"\u6570\u636E\u7C7B\u578B",Offset:"\u504F\u79FB\u91CF",Length:"\u957F\u5EA6",Encoding:"\u7F16\u7801\u65B9\u5F0F",Unit:"\u5355\u5143","Boolean bitmask":"\u5E03\u5C14\u4F4D\u63A9\u7801","Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.":"\u7528\u4E8E\u68C0\u6D4B/\u8BBE\u7F6E%s\u503C\u7684\u4F4D\u63A9\u7801\u3002\u5982\u679C\u672A\u9009\u62E9\u4EFB\u4F55\u4F4D\uFF0C\u5219\u4EFB\u4F55\u5927\u4E8E0\u7684\u5B57\u8282\u503C\u90FD\u5C06\u88AB\u89E3\u91CA\u4E3A%s\u3002","Boolean invert":"\u5E03\u5C14\u53CD\u8F6C","Invert the boolean value":"\u53CD\u8F6C\u5E03\u5C14\u503C","This ID is reserved and can't be used":"\u6B64ID\u5DF2\u4FDD\u7559\uFF0C\u65E0\u6CD5\u4F7F\u7528","There are some errors in you configuration. Please check!":"\u60A8\u7684\u914D\u7F6E\u4E2D\u5B58\u5728\u4E00\u4E9B\u9519\u8BEF\u3002\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\uFF01","loading...":"\u8F7D\u5165\u4E2D\u2026",Add:"\u6DFB\u52A0",Remove:"\u79FB\u9664",Reload:"\u91CD\u88C5",General:"\u901A\u7528",Message:"\u4FE1\u606F","This ID is configured multiple times with this data length":"\u8FD9\u4E2A\u6570\u636E\u957F\u5EA6\u7684ID\u5DF2\u91CD\u590D\u8BBE\u7F6E","Custom script write":"\u81EA\u5B9A\u4E49\u5199\u5165\u811A\u672C","Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.":"\u63D0\u793A\uFF1A\u6240\u6709\u7684\u914D\u7F6E\u6587\u4EF6\u4E0D\u542B\u6709\u4EFB\u4F55\u4FDD\u969C\uFF01\u89C6\u8FDE\u63A5\u7684\u7CFB\u7EDF\u800C\u5F02\uFF0C\u53D1\u9001\u9519\u8BEF\u7684\u6D88\u606F\u53EF\u80FD\u4F1A\u5BFC\u81F4\u7CFB\u7EDF\u53D7\u635F\u3002","Export to file":"\u5BFC\u51FA\u5230\u6587\u4EF6","If checked, you can select the configured messages you want to export. If not checked, all messages will be exported.":"\u5982\u679C\u9009\u5B9A\u8BE5\u9009\u9879\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u4F60\u9700\u8981\u5BFC\u51FA\u7684\u6D88\u606F\u3002\u53CD\u4E4B\u6240\u6709\u6D88\u606F\u90FD\u4F1A\u88AB\u5BFC\u51FA\u3002","Ignore this error and try to import":"\u5FFD\u7565\u8FD9\u4E2A\u9519\u8BEF\u5E76\u7EE7\u7EED\u5C1D\u8BD5\u5BFC\u5165","Import done":"\u5BFC\u5165\u5B8C\u6210","The downloaded index is not valid":"\u4E0B\u8F7D\u76EE\u5F55\u4E0D\u53EF\u7528","Validation error:":"\u9A8C\u8BC1\u9519\u8BEF\uFF1A",Paste:"\u9ECF\u8D34","Message configuration copied. Use the paste button to paste this configuration to an other message.":"\u6D88\u606F\u914D\u7F6E\u5DF2\u590D\u5236\uFF0C\u4F7F\u7528\u9ECF\u8D34\u6309\u94AE\u4EE5\u5C06\u8BE5\u914D\u7F6E\u5E94\u7528\u5230\u53E6\u4E00\u4E2A\u6D88\u606F\u3002",Pasted:"\u4EE5\u9ECF\u8D34",Copy:"\u590D\u5236","Possible states":"\u53EF\u80FD\u7684\u72B6\u6001","Define possible states":"\u5B9A\u4E49\u53EF\u80FD\u7684\u72B6\u6001","Setup a list of predefined state values":"\u8BBE\u7F6E\u4E00\u4E2A\u9884\u5B9A\u4E49\u72B6\u6001\u53D8\u91CF\u5217\u8868",License:"\u8BB8\u53EF\u8BC1","Using this import feature you are able to import message configurations to extend your existing configuration.":"\u4F7F\u7528\u8FD9\u4E2A\u5BFC\u5165\u529F\u80FD\u4EE5\u4F7F\u7528\u5DF2\u6709\u7684\u4FE1\u606F\u914D\u7F6E\u6765\u62D3\u5C55\u4F60\u7684\u914D\u7F6E\u6587\u4EF6\u3002","You may use a predefined configuration from GitHub or upload a custom file.":"\u4F60\u53EF\u4EE5\u4ECEGitHub\u4E0A\u83B7\u53D6\u5230\u9884\u914D\u7F6E\u6587\u4EF6\u6216\u8005\u4E0A\u4F20\u4E00\u4E2A\u81EA\u5B9A\u4E49\u914D\u7F6E\u6587\u4EF6\u3002","Import / Export":"\u5BFC\u5165/\u5BFC\u51FA","Import from file":"\u4ECE\u6587\u4EF6\u4E2D\u5BFC\u5165",Import:"\u5BFC\u5165",Export:"\u5BFC\u51FA","Using this export feature you are able to export your message configurations.":"\u901A\u8FC7\u8FD9\u4E2A\u5BFC\u51FA\u529F\u80FD\u4EE5\u5BFC\u51FA\u5DF2\u6709\u7684\u6D88\u606F\u914D\u7F6E\u3002","Data type in the can message":"CAN\u4FE1\u606F\u4E2D\u7684\u6570\u636E\u7C7B\u578B","Data type in ioBroker":"ioBroker\u4E2D\u7684\u6570\u636E\u7C7B\u578B","Overwrite existing messages on import":"\u5BFC\u5165\u65F6\u8986\u76D6\u5DF2\u6709\u7684\u6D88\u606F","Export format":"\u5BFC\u51FA\u683C\u5F0F","Interval for automatic set":"\u81EA\u52A8\u8BBE\u7F6E\u95F4\u9694","Trigger send":"\u4E2D\u65AD\u5DF2\u53D1\u9001","The value to set automatically in the given interval (%s)":"\u53D8\u91CF\u5728\u7ED9\u5B9A\u95F4\u9694\u65F6\u95F4\u5185\u5C06\u81EA\u52A8\u8BBE\u7F6E\uFF08%s\uFF09","Value to set":"\u8BBE\u7F6E\u7684\u6570\u503C","Interval in milliseconds to automatically set the value":"\u81EA\u52A8\u8BBE\u7F6E\u6570\u503C\u7684\u95F4\u9694\uFF08\u6BEB\u79D2\uFF09","Use raw states":"\u4F7F\u7528\u539F\u59CB\u72B6\u6001","ID missing":"\u4E22\u5931\u7684ID","Not set":"\u672A\u8BBE\u7F6E","Data length":"\u6570\u636E\u957F\u5EA6","Remove this message?":"\u79FB\u9664\u8FD9\u6761\u4FE1\u606F\uFF1F","Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.":"\u4ECE\u7F13\u5B58\u4E2D\u8BFB\u53D6\u6570\u636E\u7684\u811A\u672C\u3002\u7F13\u5B58\u5927\u5C0F\u4E3A%s\u4E14\u6570\u636E\u5C06\u88AB\u5199\u5165%s\u3002","Script to write the value to the buffer. The buffer is available as %s and the value as %s.":"\u4ECE\u7F13\u5B58\u4E2D\u5199\u5165\u6570\u636E\u7684\u811A\u672C\u3002\u7F13\u5B58\u5927\u5C0F\u4E3A%s\u4E14\u6570\u636E\u5C06\u4ECE%s\u8BFB\u53D6\u3002","Your configuration is invalid. Please check the settings marked in red.":"\u4F60\u7684\u914D\u7F6E\u65E0\u6548\uFF0C\u8BF7\u68C0\u67E5\u6807\u7EA2\u7684\u8BBE\u7F6E\u3002",and:"\u548C","Custom script read":"\u81EA\u5B9A\u4E49\u8BFB\u53D6\u811A\u672C","Use rtr flag":"\u4F7F\u7528\u8FDC\u7A0B\u900F\u4F20\u8BF7\u6C42","Fetch configurations from GitHub":"\u4ECEGitHub\u4E2D\u4E0B\u8F7D\u914D\u7F6E\u6587\u4EF6","Show on GitHub":"\u5728GitHub\u4E2D\u67E5\u770B","Import from GitHub":"\u4ECEGitHub\u4E2D\u5BFC\u5165","Select messages to export":"\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u6D88\u606F","Unsupported file type!":"\u4E0D\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B\uFF01","File is empty!":"\u6587\u4EF6\u662F\u7A7A\u7684\uFF01","Failed to open file!":"\u65E0\u6CD5\u6253\u5F00\u6587\u4EF6\uFF01",Version:"\u7248\u672C",Author:"\u4F5C\u8005","Nothing to paste. Please use the copy button first.":"\u65E0\u6CD5\u9ECF\u8D34\uFF0C\u8BF7\u5148\u4F7F\u7528\u590D\u5236\u6309\u94AE\u3002","Error parsing file! %s":"\u65E0\u6CD5\u683C\u5F0F\u5316%s\uFF01","Invalid format! Please use the format value=text,value=text,...":"\u683C\u5F0F\u65E0\u6548\uFF01",Role:"\u89D2\u8272","Optionally set a fixed data length for this message":"\u4E3A\u8FD9\u6761\u4FE1\u606F\u8BBE\u7F6E\u4E00\u4E2A\u53EF\u9009\u7684\u56FA\u5B9A\u957F\u5EA6","Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart.":"\u4F60\u786E\u5B9A\u8981\u79FB\u9664\u8FD9\u6761\u4FE1\u606F\u5417\uFF1F\u8FD9\u56DE\u4E00\u5E76\u79FB\u9664\u5176\u6240\u6709\u53C2\u6570\u3002\u8FD9\u6761\u4FE1\u606F\u4F1A\u88AB\u7CFB\u7EDF\u8BA4\u5B9A\u4E3A\u672A\u914D\u7F6E\u7684\u4FE1\u606F\u5E76\u4E14\u5728\u9002\u914D\u5668\u91CD\u542F\u540E\u53EF\u4EE5\u5B89\u5168\u79FB\u9664\u3002","Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput.":"\u4F7F\u7528\u968F\u7740\u6D88\u606F\u4F20\u9012\u800C\u66F4\u65B0\u4E14\u5728\u81EA\u5B9A\u4E49\u6D88\u606F\u4E2D\u53EF\u7528\u7684\u539F\u59CB\u72B6\u6001\u3002\u8FD9\u4F7F\u5F97\u5176\u5728\u811A\u672C\u4E2D\u53EF\u7528\uFF0C\u4F46\u5728\u6D88\u606F\u5BC6\u96C6\u662F\u9020\u6210\u8F83\u9AD8\u7684\u7CFB\u7EDF\u8D1F\u8F7D\u3002","Add an additional Remote Transmission Request (rtr) state on each message.":"\u5728\u6BCF\u6761\u6D88\u606F\u4E2D\u6DFB\u52A0\u8FDC\u7A0B\u4F20\u8F93\u8BF7\u6C42\u3002","If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option.":"\u5982\u679C\u672A\u9009\u4E2D\uFF0C\u5BFC\u5165\u5C06\u4EC5\u6DFB\u52A0\u65B0\u6D88\u606F\u548C\u89E3\u6790\u5668\uFF0C\u800C\u5DF2\u5B9A\u4E49\u7684\u6D88\u606F\u548C\u89E3\u6790\u5668\u5C06\u88AB\u5FFD\u7565\u3002\u73B0\u6709\u6D88\u606F\u6216\u89E3\u6790\u5668\u7531\u5176\u5185\u90E8 UUID \u800C\u4E0D\u662F ID \u786E\u5B9A\u3002\u5982\u679C\u60A8\u60F3\u91CD\u65B0\u5BFC\u5165\u5BFC\u51FA\u7684\u6587\u4EF6\u4EE5\u66F4\u65B0\u914D\u7F6E\uFF0C\u5219\u5FC5\u987B\u8BBE\u7F6E\u6B64\u9009\u9879\u3002","The exported files can be shared or edited externally and reimported to update your configuration.":"\u5BFC\u51FA\u7684\u6587\u4EF6\u53EF\u4EE5\u5728\u5916\u90E8\u5171\u4EAB\u6216\u7F16\u8F91\uFF0C\u7136\u540E\u91CD\u65B0\u5BFC\u5165\u4EE5\u66F4\u65B0\u60A8\u7684\u914D\u7F6E\u3002","Parser configuration copied. Use the paste button to paste this configuration to an other parser.":"\u5DF2\u590D\u5236\u89E3\u6790\u5668\u914D\u7F6E\u3002\u4F7F\u7528\u7C98\u8D34\u6309\u94AE\u5C06\u6B64\u914D\u7F6E\u7C98\u8D34\u5230\u5176\u4ED6\u89E3\u6790\u5668\u3002","Error while pasting: %s":"\u7C98\u8D34\u65F6\u51FA\u9519\uFF1A%s","Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto":"\u9017\u53F7\u5206\u9694\u7684\u5B9E\u9645\u503C\u548C\u663E\u793A\u503C\u5217\u8868\u3002\u793A\u4F8B\uFF1A0=\u5173\u95ED\uFF0C1=\u6253\u5F00\uFF0C2=\u81EA\u52A8",'Select a suitable role for the ioBroker state or just use "state" if you are not sure.':"\u4E3A ioBroker \u72B6\u6001\u9009\u62E9\u5408\u9002\u7684\u89D2\u8272\uFF0C\u6216\u8005\u5982\u679C\u60A8\u4E0D\u786E\u5B9A\uFF0C\u5219\u4EC5\u4F7F\u7528\u201C\u72B6\u6001\u201D\u3002","Information about the state roles in ioBroker on GitHub":"GitHub \u4E0A\u6709\u5173 ioBroker \u4E2D\u72B6\u6001\u89D2\u8272\u7684\u4FE1\u606F","Automatically set a certain value":"\u81EA\u52A8\u8BBE\u7F6E\u67D0\u4E2A\u503C","Set a certain value automatically in a given interval":"\u5728\u7ED9\u5B9A\u7684\u65F6\u95F4\u95F4\u9694\u5185\u81EA\u52A8\u8BBE\u7F6E\u67D0\u4E2A\u503C","Trigger the send action every time the value is set automatically":"\u6BCF\u6B21\u81EA\u52A8\u8BBE\u7F6E\u503C\u65F6\u89E6\u53D1\u53D1\u9001\u64CD\u4F5C"}});var vB=q(z()),yse=q(jr()),_se=q(zf()),bse=q(jR()),Sse=q(zR());function VS(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?VS=function(r){return typeof r}:VS=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},VS(t)}function Tt(t,e,r){var n=r.value;if(typeof n!="function")throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(VS(n)));var o=!1;return{configurable:!0,get:function(){if(o||this===t.prototype||this.hasOwnProperty(e)||typeof n!="function")return n;var i=n.bind(this);return o=!0,Object.defineProperty(this,e,{configurable:!0,get:function(){return i},set:function(u){n=u,delete this[e]}}),o=!1,i},set:function(i){n=i}}}var Z_=q(z()),pse=q(zf()),mse=q(Uee()),hse=q(_o());var zee=Object.prototype.toString;function zq(t){switch(zee.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Wee(t,Error)}}function bWe(t,e){return zee.call(t)===`[object ${e}]`}function Wq(t){return bWe(t,"Object")}function $q(t){return!!(t&&t.then&&typeof t.then=="function")}function Wee(t,e){try{return t instanceof e}catch(r){return!1}}var Ls="8.36.0";var kn=globalThis;function Dm(t,e,r){let n=r||kn,o=n.__SENTRY__=n.__SENTRY__||{},a=o[Ls]=o[Ls]||{};return a[t]||(a[t]=e())}var Nm=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;var SWe="Sentry Logger ",Hq=["debug","info","warn","error","log","assert","trace"],Gq={};function y_(t){if(!("console"in kn))return t();let e=kn.console,r={},n=Object.keys(Gq);n.forEach(o=>{let a=Gq[o];r[o]=e[o],e[o]=a});try{return t()}finally{n.forEach(o=>{e[o]=r[o]})}}function EWe(){let t=!1,e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return Nm?Hq.forEach(r=>{e[r]=(...n)=>{t&&y_(()=>{kn.console[r](`${SWe}[${r}]:`,...n)})}}):Hq.forEach(r=>{e[r]=()=>{}}),e}var en=Dm("logger",EWe);var TWe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function wWe(t){return t==="http"||t==="https"}function Vq(t,e=!1){let{host:r,path:n,pass:o,port:a,projectId:i,protocol:s,publicKey:u}=t;return`${s}://${u}${e&&o?`:${o}`:""}@${r}${a?`:${a}`:""}/${n&&`${n}/`}${i}`}function $ee(t){let e=TWe.exec(t);if(!e){y_(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}let[r,n,o="",a="",i="",s=""]=e.slice(1),u="",l=s,c=l.split("/");if(c.length>1&&(u=c.slice(0,-1).join("/"),l=c.pop()),l){let f=l.match(/^\d+/);f&&(l=f[0])}return Hee({host:a,pass:o,path:u,projectId:l,port:i,protocol:r,publicKey:n})}function Hee(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function xWe(t){if(!Nm)return!0;let{port:e,projectId:r,protocol:n}=t;return["protocol","publicKey","host","projectId"].find(i=>t[i]?!1:(en.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:r.match(/^\d+$/)?wWe(n)?e&&isNaN(parseInt(e,10))?(en.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(en.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(en.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function Kq(t){let e=typeof t=="string"?$ee(t):Hee(t);if(!(!e||!xWe(e)))return e}function sC(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch(n){Nm&&en.log(`Failed to add non-enumerable property "${e}" to object`,t)}}var Gee=1e3;function uC(){return Date.now()/Gee}function CWe(){let{performance:t}=kn;if(!t||!t.now)return uC;let e=Date.now()-t.now(),r=t.timeOrigin==null?e:t.timeOrigin;return()=>(r+t.now())/Gee}var Yq=CWe(),__,IWe=(()=>{let{performance:t}=kn;if(!t||!t.now){__="none";return}let e=3600*1e3,r=t.now(),n=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,a=oMath.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(r=()=>{let n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch(n){}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function lC(){return{traceId:ki(),spanId:ki().substring(16)}}function ud(){return b_(kn),kn}function b_(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||Ls,e[Ls]=e[Ls]||{}}function Vee(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Yq(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:ki()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{let r=t.timestamp-t.started;t.duration=r>=0?r:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}var Jq="_sentrySpan";function Xq(t,e){e?sC(t,Jq,e):delete t[Jq]}function Zq(t){return t[Jq]}var AWe=100,Qq=class t{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=lC()}clone(){let e=new t;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,Xq(e,Zq(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Vee(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,r){return this._tags={...this._tags,[e]:r},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,r){return this._extra={...this._extra,[e]:r},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,r){return r===null?delete this._contexts[e]:this._contexts[e]=r,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let r=typeof e=="function"?e(this):e,[n,o]=r instanceof Pi?[r.getScopeData(),r.getRequestSession()]:Wq(r)?[e,e.requestSession]:[],{tags:a,extra:i,user:s,contexts:u,level:l,fingerprint:c=[],propagationContext:f}=n||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...i},this._contexts={...this._contexts,...u},s&&Object.keys(s).length&&(this._user=s),l&&(this._level=l),c.length&&(this._fingerprint=c),f&&(this._propagationContext=f),o&&(this._requestSession=o),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Xq(this,void 0),this._attachments=[],this._propagationContext=lC(),this._notifyScopeListeners(),this}addBreadcrumb(e,r){let n=typeof r=="number"?r:AWe;if(n<=0)return this;let o={timestamp:uC(),...e},a=this._breadcrumbs;return a.push(o),this._breadcrumbs=a.length>n?a.slice(-n):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Zq(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,r){let n=r&&r.event_id?r.event_id:ki();if(!this._client)return en.warn("No client configured on scope - will not capture exception!"),n;let o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...r,event_id:n},this),n}captureMessage(e,r,n){let o=n&&n.event_id?n.event_id:ki();if(!this._client)return en.warn("No client configured on scope - will not capture message!"),o;let a=new Error(e);return this._client.captureMessage(e,r,{originalException:e,syntheticException:a,...n,event_id:o},this),o}captureEvent(e,r){let n=r&&r.event_id?r.event_id:ki();return this._client?(this._client.captureEvent(e,{...r,event_id:n},this),n):(en.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}},Pi=Qq;function Kee(){return Dm("defaultCurrentScope",()=>new Pi)}function Yee(){return Dm("defaultIsolationScope",()=>new Pi)}var ej=class{constructor(e,r){let n;e?n=e:n=new Pi;let o;r?o=r:o=new Pi,this._stack=[{scope:n}],this._isolationScope=o}withScope(e){let r=this._pushScope(),n;try{n=e(r)}catch(o){throw this._popScope(),o}return $q(n)?n.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Am(){let t=ud(),e=b_(t);return e.stack=e.stack||new ej(Kee(),Yee())}function MWe(t){return Am().withScope(t)}function FWe(t,e){let r=Am();return r.withScope(()=>(r.getStackTop().scope=t,e(t)))}function Jee(t){return Am().withScope(()=>t(Am().getIsolationScope()))}function Xee(){return{withIsolationScope:Jee,withScope:MWe,withSetScope:FWe,withSetIsolationScope:(t,e)=>Jee(e),getCurrentScope:()=>Am().getScope(),getIsolationScope:()=>Am().getIsolationScope()}}function cC(t){let e=b_(t);return e.acs?e.acs:Xee()}function ld(){let t=ud();return cC(t).getCurrentScope()}function dC(){let t=ud();return cC(t).getIsolationScope()}function fC(...t){let e=ud(),r=cC(e);if(t.length===2){let[n,o]=t;return n?r.withSetScope(n,o):r.withScope(o)}return r.withScope(t[0])}function Mm(){return ld().getClient()}function Zee(t){if(t)return qWe(t)?{captureContext:t}:LWe(t)?{captureContext:t}:t}function qWe(t){return t instanceof Pi||typeof t=="function"}var jWe=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function LWe(t){return Object.keys(t).some(e=>jWe.includes(e))}function pC(t,e){return ld().captureException(t,Zee(e))}function mC(){return dC().lastEventId()}function BWe(t){let e=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${e}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}function tj(t,e){let r=Kq(t);if(!r)return"";let n=`${BWe(r)}embed/error-page/`,o=`dsn=${Vq(r)}`;for(let a in e)if(a!=="dsn"&&a!=="onClose")if(a==="user"){let i=e.user;if(!i)continue;i.name&&(o+=`&name=${encodeURIComponent(i.name)}`),i.email&&(o+=`&email=${encodeURIComponent(i.email)}`)}else o+=`&${encodeURIComponent(a)}=${encodeURIComponent(e[a])}`;return`${n}?${o}`}var cd=kn;var hC=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;function gC(t={}){if(!cd.document){hC&&en.error("Global document not defined in showReportDialog call");return}let e=ld(),r=e.getClient(),n=r&&r.getDsn();if(!n){hC&&en.error("DSN not configured for showReportDialog call");return}if(e&&(t.user={...e.getUser(),...t.user}),!t.eventId){let s=mC();s&&(t.eventId=s)}let o=cd.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=tj(n,t),t.onLoad&&(o.onload=t.onLoad);let{onClose:a}=t;if(a){let s=u=>{if(u.data==="__sentry_reportdialog_closed__")try{a()}finally{cd.removeEventListener("message",s)}};cd.addEventListener("message",s)}let i=cd.document.head||cd.document.body;i?i.appendChild(o):hC&&en.error("Not injecting report dialog. No injection point found in HTML")}var rte=q(z(),1);function o3e(t){let e=t.match(/^([^.]+)/);return e!==null&&parseInt(e[0])>=17}function a3e(t,e){let r=new WeakSet;function n(o,a){if(!r.has(o)){if(o.cause)return r.add(o),n(o.cause,a);o.cause=a}}n(t,e)}function nte(t,{componentStack:e},r){if(o3e(rte.version)&&zq(t)&&e){let n=new Error(t.message);n.name=`React ErrorBoundary ${t.name}`,n.stack=e,a3e(t,n)}return pC(t,{...r,captureContext:{contexts:{react:{componentStack:e}}}})}var i3e=q(gv(),1),Fm=q(z(),1);var ote=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;var ate={componentStack:null,error:null,eventId:null},S_=class t extends Fm.Component{constructor(e){super(e),t.prototype.__init.call(this),this.state=ate,this._openFallbackReportDialog=!0;let r=Mm();r&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=r.on("afterSendEvent",n=>{!n.type&&this._lastEventId&&n.event_id===this._lastEventId&&gC({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,r){let{componentStack:n}=r,o=n==null?void 0:n,{beforeCapture:a,onError:i,showDialog:s,dialogOptions:u}=this.props;fC(l=>{a&&a(l,e,o);let c=nte(e,r,{mechanism:{handled:!!this.props.fallback}});i&&i(e,o,c),s&&(this._lastEventId=c,this._openFallbackReportDialog&&gC({...u,eventId:c})),this.setState({error:e,componentStack:n,eventId:c})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:r,eventId:n}=this.state,{onUnmount:o}=this.props;o&&o(e,r,n),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}__init(){this.resetErrorBoundary=()=>{let{onReset:e}=this.props,{error:r,componentStack:n,eventId:o}=this.state;e&&e(r,n,o),this.setState(ate)}}render(){let{fallback:e,children:r}=this.props,n=this.state;if(n.error){let o;return typeof e=="function"?o=Fm.createElement(e,{error:n.error,componentStack:n.componentStack,resetError:this.resetErrorBoundary,eventId:n.eventId}):o=e,Fm.isValidElement(o)?o:(e&&ote&&en.warn("fallback did not produce a valid ReactElement"),null)}return typeof r=="function"?r():r}};var br=q(z());var ir=q(K0());function L(){return L=Object.assign?Object.assign.bind():function(t){for(var e=1;e0?v:m;return"@media (max-width:".concat(h-i/100).concat(o,")")}function c(m,g){var v=hl.indexOf(g);return v===hl.length-1?u(m):"@media (min-width:".concat(typeof r[m]=="number"?r[m]:m).concat(o,") and ")+"(max-width:".concat((v!==-1&&typeof r[hl[v+1]]=="number"?r[hl[v+1]]:g)-i/100).concat(o,")")}function f(m){return c(m,m)}var d=!1;function p(m){return r[m]}return L({keys:hl,values:r,up:u,down:l,between:c,only:f,width:p},s)}function nj(t,e,r){var n;return L({gutters:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:",` +`+e.prev}function II(t,e){var r=zL(t),n=[];if(r){n.length=t.length;for(var o=0;o{"use strict";var Kae=Pd(),dh=Cae(),F9e=Vae(),q9e=oh(),OI=Kae("%WeakMap%",!0),RI=Kae("%Map%",!0),j9e=dh("WeakMap.prototype.get",!0),L9e=dh("WeakMap.prototype.set",!0),B9e=dh("WeakMap.prototype.has",!0),U9e=dh("Map.prototype.get",!0),z9e=dh("Map.prototype.set",!0),W9e=dh("Map.prototype.has",!0),VL=function(t,e){for(var r=t,n;(n=r.next)!==null;r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n},$9e=function(t,e){var r=VL(t,e);return r&&r.value},H9e=function(t,e,r){var n=VL(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},G9e=function(t,e){return!!VL(t,e)};Yae.exports=function(){var e,r,n,o={assert:function(a){if(!o.has(a))throw new q9e("Side channel does not contain "+F9e(a))},get:function(a){if(OI&&a&&(typeof a=="object"||typeof a=="function")){if(e)return j9e(e,a)}else if(RI){if(r)return U9e(r,a)}else if(n)return $9e(n,a)},has:function(a){if(OI&&a&&(typeof a=="object"||typeof a=="function")){if(e)return B9e(e,a)}else if(RI){if(r)return W9e(r,a)}else if(n)return G9e(n,a);return!1},set:function(a,i){OI&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new OI),L9e(e,a,i)):RI?(r||(r=new RI),z9e(r,a,i)):(n||(n={key:{},next:null}),H9e(n,a,i))}};return o}});var DI=_((dgt,Xae)=>{"use strict";var V9e=String.prototype.replace,K9e=/%20/g,KL={RFC1738:"RFC1738",RFC3986:"RFC3986"};Xae.exports={default:KL.RFC3986,formatters:{RFC1738:function(t){return V9e.call(t,K9e,"+")},RFC3986:function(t){return String(t)}},RFC1738:KL.RFC1738,RFC3986:KL.RFC3986}});var XL=_((pgt,Qae)=>{"use strict";var Y9e=DI(),YL=Object.prototype.hasOwnProperty,Od=Array.isArray,qi=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),J9e=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Od(n)){for(var o=[],a=0;a=JL?i.slice(u,u+JL):i,c=[],p=0;p=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||a===Y9e.RFC1738&&(d===40||d===41)){c[c.length]=l.charAt(p);continue}if(d<128){c[c.length]=qi[d];continue}if(d<2048){c[c.length]=qi[192|d>>6]+qi[128|d&63];continue}if(d<55296||d>=57344){c[c.length]=qi[224|d>>12]+qi[128|d>>6&63]+qi[128|d&63];continue}p+=1,d=65536+((d&1023)<<10|l.charCodeAt(p)&1023),c[c.length]=qi[240|d>>18]+qi[128|d>>12&63]+qi[128|d>>6&63]+qi[128|d&63]}s+=c.join("")}return s},tGe=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o{"use strict";var tie=Jae(),NI=XL(),K_=DI(),iGe=Object.prototype.hasOwnProperty,rie={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},ji=Array.isArray,sGe=Array.prototype.push,nie=function(t,e){sGe.apply(t,ji(e)?e:[e])},uGe=Date.prototype.toISOString,eie=K_.default,Wr={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:NI.encode,encodeValuesOnly:!1,format:eie,formatter:K_.formatters[eie],indices:!1,serializeDate:function(e){return uGe.call(e)},skipNulls:!1,strictNullHandling:!1},lGe=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},ZL={},cGe=function t(e,r,n,o,a,i,s,u,l,c,p,d,f,m,g,v,h,y){for(var b=e,E=y,w=0,S=!1;(E=E.get(ZL))!==void 0&&!S;){var C=E.get(e);if(w+=1,typeof C!="undefined"){if(C===w)throw new RangeError("Cyclic object value");S=!0}typeof E.get(ZL)=="undefined"&&(w=0)}if(typeof c=="function"?b=c(r,b):b instanceof Date?b=f(b):n==="comma"&&ji(b)&&(b=NI.maybeMap(b,function(V){return V instanceof Date?f(V):V})),b===null){if(i)return l&&!v?l(r,Wr.encoder,h,"key",m):r;b=""}if(lGe(b)||NI.isBuffer(b)){if(l){var P=v?r:l(r,Wr.encoder,h,"key",m);return[g(P)+"="+g(l(b,Wr.encoder,h,"value",m))]}return[g(r)+"="+g(String(b))]}var k=[];if(typeof b=="undefined")return k;var O;if(n==="comma"&&ji(b))v&&l&&(b=NI.maybeMap(b,l)),O=[{value:b.length>0?b.join(",")||null:void 0}];else if(ji(c))O=c;else{var F=Object.keys(b);O=p?F.sort(p):F}var U=u?r.replace(/\./g,"%2E"):r,J=o&&ji(b)&&b.length===1?U+"[]":U;if(a&&ji(b)&&b.length===0)return J+"[]";for(var K=0;K0?f+d:""}});var uie=_((mgt,sie)=>{"use strict";var ph=XL(),QL=Object.prototype.hasOwnProperty,pGe=Array.isArray,_r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:ph.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},fGe=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},iie=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},mGe="utf8=%26%2310003%3B",hGe="utf8=%E2%9C%93",gGe=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=r.parameterLimit===1/0?void 0:r.parameterLimit,i=o.split(r.delimiter,a),s=-1,u,l=r.charset;if(r.charsetSentinel)for(u=0;u-1&&(m=pGe(m)?[m]:m);var g=QL.call(n,f);g&&r.duplicates==="combine"?n[f]=ph.combine(n[f],m):(!g||r.duplicates==="last")&&(n[f]=m)}return n},vGe=function(t,e,r,n){for(var o=n?e:iie(e,r),a=t.length-1;a>=0;--a){var i,s=t[a];if(s==="[]"&&r.parseArrays)i=r.allowEmptyArrays&&(o===""||r.strictNullHandling&&o===null)?[]:[].concat(o);else{i=r.plainObjects?Object.create(null):{};var u=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,l=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,c=parseInt(l,10);!r.parseArrays&&l===""?i={0:o}:!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[],i[c]=o):l!=="__proto__"&&(i[l]=o)}o=i}return o},yGe=function(e,r,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,u=n.depth>0&&i.exec(a),l=u?a.slice(0,u.index):a,c=[];if(l){if(!n.plainObjects&&QL.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var p=0;n.depth>0&&(u=s.exec(a))!==null&&p{"use strict";var bGe=aie(),SGe=uie(),EGe=DI();lie.exports={formats:EGe,parse:SGe,stringify:bGe}});var AI=_(mh=>{"use strict";var TGe=Coe();function ca(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var wGe=/^([a-z0-9.+-]+:)/i,xGe=/:[0-9]*$/,CGe=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,IGe=["<",">",'"',"`"," ","\r",` +`," "],kGe=["{","}","|","\\","^","`"].concat(IGe),eB=["'"].concat(kGe),die=["%","/","?",";","#"].concat(eB),pie=["/","?","#"],PGe=255,fie=/^[+a-z0-9A-Z_-]{0,63}$/,OGe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,RGe={javascript:!0,"javascript:":!0},tB={javascript:!0,"javascript:":!0},fh={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},rB=cie();function Y_(t,e,r){if(t&&typeof t=="object"&&t instanceof ca)return t;var n=new ca;return n.parse(t,e,r),n}ca.prototype.parse=function(t,e,r){if(typeof t!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),o=n!==-1&&n127?w+="x":w+=E[S];if(!w.match(fie)){var P=y.slice(0,f),k=y.slice(f+1),O=E.match(OGe);O&&(P.push(O[1]),k.unshift(O[2])),k.length&&(s="/"+k.join(".")+s),this.hostname=P.join(".");break}}}this.hostname.length>PGe?this.hostname="":this.hostname=this.hostname.toLowerCase(),h||(this.hostname=TGe.toASCII(this.hostname));var F=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+F,this.href+=this.host,h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!=="/"&&(s="/"+s))}if(!RGe[c])for(var f=0,b=eB.length;f0?r.host.split("@"):!1;w&&(r.auth=w.shift(),r.hostname=w.shift(),r.host=r.hostname)}return r.search=t.search,r.query=t.query,(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!y.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var S=y.slice(-1)[0],C=(r.host||t.host||y.length>1)&&(S==="."||S==="..")||S==="",P=0,k=y.length;k>=0;k--)S=y[k],S==="."?y.splice(k,1):S===".."?(y.splice(k,1),P++):P&&(y.splice(k,1),P--);if(!v&&!h)for(;P--;P)y.unshift("..");v&&y[0]!==""&&(!y[0]||y[0].charAt(0)!=="/")&&y.unshift(""),C&&y.join("/").substr(-1)!=="/"&&y.push("");var O=y[0]===""||y[0]&&y[0].charAt(0)==="/";if(E){r.hostname=O?"":y.length?y.shift():"",r.host=r.hostname;var w=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;w&&(r.auth=w.shift(),r.hostname=w.shift(),r.host=r.hostname)}return v=v||r.host&&y.length,v&&!O&&y.unshift(""),y.length>0?r.pathname=y.join("/"):(r.pathname=null,r.path=null),(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r};ca.prototype.parseHost=function(){var t=this.host,e=xGe.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};mh.parse=Y_;mh.resolve=NGe;mh.resolveObject=AGe;mh.format=DGe;mh.Url=ca});var Rl=_((Ao,iB)=>{"use strict";var hie=AI(),nB=Ao.ValidationError=function(e,r,n,o,a,i){if(Array.isArray(o)?(this.path=o,this.property=o.reduce(function(u,l){return u+gie(l)},"instance")):o!==void 0&&(this.property=o),e&&(this.message=e),n){var s=n.$id||n.id;this.schema=s||n}r!==void 0&&(this.instance=r),this.name=a,this.argument=i,this.stack=this.toString()};nB.prototype.toString=function(){return this.property+" "+this.message};var MI=Ao.ValidatorResult=function(e,r,n,o){this.instance=e,this.schema=r,this.options=n,this.path=o.path,this.propertyPath=o.propertyPath,this.errors=[],this.throwError=n&&n.throwError,this.throwFirst=n&&n.throwFirst,this.throwAll=n&&n.throwAll,this.disableFormat=n&&n.disableFormat===!0};MI.prototype.addError=function(e){var r;if(typeof e=="string")r=new nB(e,this.instance,this.schema,this.path);else{if(!e)throw new Error("Missing error detail");if(!e.message)throw new Error("Missing error message");if(!e.name)throw new Error("Missing validator type");r=new nB(e.message,this.instance,this.schema,this.path,e.name,e.argument)}if(this.errors.push(r),this.throwFirst)throw new Rd(this);if(this.throwError)throw r;return r};MI.prototype.importErrors=function(e){typeof e=="string"||e&&e.validatorType?this.addError(e):e&&e.errors&&(this.errors=this.errors.concat(e.errors))};function MGe(t,e){return e+": "+t.toString()+` +`}MI.prototype.toString=function(e){return this.errors.map(MGe).join("")};Object.defineProperty(MI.prototype,"valid",{get:function(){return!this.errors.length}});iB.exports.ValidatorResultError=Rd;function Rd(t){Error.captureStackTrace&&Error.captureStackTrace(this,Rd),this.instance=t.instance,this.schema=t.schema,this.options=t.options,this.errors=t.errors}Rd.prototype=new Error;Rd.prototype.constructor=Rd;Rd.prototype.name="Validation Error";var mie=Ao.SchemaError=function t(e,r){this.message=e,this.schema=r,Error.call(this,e),Error.captureStackTrace(this,t)};mie.prototype=Object.create(Error.prototype,{constructor:{value:mie,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var oB=Ao.SchemaContext=function(e,r,n,o,a){this.schema=e,this.options=r,Array.isArray(n)?(this.path=n,this.propertyPath=n.reduce(function(i,s){return i+gie(s)},"instance")):this.propertyPath=n,this.base=o,this.schemas=a};oB.prototype.resolve=function(e){return hie.resolve(this.base,e)};oB.prototype.makeChild=function(e,r){var n=r===void 0?this.path:this.path.concat([r]),o=e.$id||e.id,a=hie.resolve(this.base,o||""),i=new oB(e,this.options,n,a,Object.create(this.schemas));return o&&!i.schemas[a]&&(i.schemas[a]=e),i};var Ba=Ao.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(t){return typeof t=="string"&&parseFloat(t)===parseInt(t,10)&&!isNaN(t)},regex:function(t){var e=!0;try{new RegExp(t)}catch(r){e=!1}return e},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};Ba.regexp=Ba.regex;Ba.pattern=Ba.regex;Ba.ipv4=Ba["ip-address"];Ao.isFormat=function(e,r,n){if(typeof e=="string"&&Ba[r]!==void 0){if(Ba[r]instanceof RegExp)return Ba[r].test(e);if(typeof Ba[r]=="function")return Ba[r](e)}else if(n&&n.customFormats&&typeof n.customFormats[r]=="function")return n.customFormats[r](e);return!0};var gie=Ao.makeSuffix=function(e){return e=e.toString(),!e.match(/[.\s\[\]]/)&&!e.match(/^[\d]/)?"."+e:e.match(/^\d+$/)?"["+e+"]":"["+JSON.stringify(e)+"]"};Ao.deepCompareStrict=function t(e,r){if(typeof e!=typeof r)return!1;if(Array.isArray(e))return!Array.isArray(r)||e.length!==r.length?!1:e.every(function(a,i){return t(e[i],r[i])});if(typeof e=="object"){if(!e||!r)return e===r;var n=Object.keys(e),o=Object.keys(r);return n.length!==o.length?!1:n.every(function(a){return t(e[a],r[a])})}return e===r};function FGe(t,e,r,n){typeof r=="object"?e[n]=aB(t[n],r):t.indexOf(r)===-1&&e.push(r)}function qGe(t,e,r){e[r]=t[r]}function jGe(t,e,r,n){typeof e[n]!="object"||!e[n]?r[n]=e[n]:t[n]?r[n]=aB(t[n],e[n]):r[n]=e[n]}function aB(t,e){var r=Array.isArray(e),n=r&&[]||{};return r?(t=t||[],n=n.concat(t),e.forEach(FGe.bind(null,t,n))):(t&&typeof t=="object"&&Object.keys(t).forEach(qGe.bind(null,t,n)),Object.keys(e).forEach(jGe.bind(null,t,e,n))),n}iB.exports.deepMerge=aB;Ao.objectGetPath=function(e,r){for(var n=r.split("/").slice(1),o;typeof(o=n.shift())=="string";){var a=decodeURIComponent(o.replace(/~0/,"~").replace(/~1/g,"/"));if(!(a in e))return;e=e[a]}return e};function LGe(t){return"/"+encodeURIComponent(t).replace(/~/g,"%7E")}Ao.encodePath=function(e){return e.map(LGe).join("")};Ao.getDecimalPlaces=function(e){var r=0;if(isNaN(e))return r;typeof e!="number"&&(e=Number(e));var n=e.toString().split("e");if(n.length===2){if(n[1][0]!=="-")return r;r=Number(n[1].slice(1))}var o=n[0].split(".");return o.length===2&&(r+=o[1].length),r};Ao.isSchema=function(e){return typeof e=="object"&&e||typeof e=="boolean"}});var bie=_((vgt,_ie)=>{"use strict";var Mo=Rl(),yt=Mo.ValidatorResult,Dl=Mo.SchemaError,sB={};sB.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var _t=sB.validators={};_t.type=function(e,r,n,o){if(e===void 0)return null;var a=new yt(e,r,n,o),i=Array.isArray(r.type)?r.type:[r.type];if(!i.some(this.testType.bind(this,e,r,n,o))){var s=i.map(function(u){if(u){var l=u.$id||u.id;return l?"<"+l+">":u+""}});a.addError({name:"type",argument:s,message:"is not of a type(s) "+s})}return a};function uB(t,e,r,n,o){var a=e.throwError,i=e.throwAll;e.throwError=!1,e.throwAll=!1;var s=this.validateSchema(t,o,e,r);return e.throwError=a,e.throwAll=i,!s.valid&&n instanceof Function&&n(s),s.valid}_t.anyOf=function(e,r,n,o){if(e===void 0)return null;var a=new yt(e,r,n,o),i=new yt(e,r,n,o);if(!Array.isArray(r.anyOf))throw new Dl("anyOf must be an array");if(!r.anyOf.some(uB.bind(this,e,n,o,function(u){i.importErrors(u)}))){var s=r.anyOf.map(function(u,l){var c=u.$id||u.id;return c?"<"+c+">":u.title&&JSON.stringify(u.title)||u.$ref&&"<"+u.$ref+">"||"[subschema "+l+"]"});n.nestedErrors&&a.importErrors(i),a.addError({name:"anyOf",argument:s,message:"is not any of "+s.join(",")})}return a};_t.allOf=function(e,r,n,o){if(e===void 0)return null;if(!Array.isArray(r.allOf))throw new Dl("allOf must be an array");var a=new yt(e,r,n,o),i=this;return r.allOf.forEach(function(s,u){var l=i.validateSchema(e,s,n,o);if(!l.valid){var c=s.$id||s.id,p=c||s.title&&JSON.stringify(s.title)||s.$ref&&"<"+s.$ref+">"||"[subschema "+u+"]";a.addError({name:"allOf",argument:{id:p,length:l.errors.length,valid:l},message:"does not match allOf schema "+p+" with "+l.errors.length+" error[s]:"}),a.importErrors(l)}}),a};_t.oneOf=function(e,r,n,o){if(e===void 0)return null;if(!Array.isArray(r.oneOf))throw new Dl("oneOf must be an array");var a=new yt(e,r,n,o),i=new yt(e,r,n,o),s=r.oneOf.filter(uB.bind(this,e,n,o,function(l){i.importErrors(l)})).length,u=r.oneOf.map(function(l,c){var p=l.$id||l.id;return p||l.title&&JSON.stringify(l.title)||l.$ref&&"<"+l.$ref+">"||"[subschema "+c+"]"});return s!==1&&(n.nestedErrors&&a.importErrors(i),a.addError({name:"oneOf",argument:u,message:"is not exactly one from "+u.join(",")})),a};_t.if=function(e,r,n,o){if(e===void 0)return null;if(!Mo.isSchema(r.if))throw new Error('Expected "if" keyword to be a schema');var a=uB.call(this,e,n,o,null,r.if),i=new yt(e,r,n,o),s;if(a){if(r.then===void 0)return;if(!Mo.isSchema(r.then))throw new Error('Expected "then" keyword to be a schema');s=this.validateSchema(e,r.then,n,o.makeChild(r.then)),i.importErrors(s)}else{if(r.else===void 0)return;if(!Mo.isSchema(r.else))throw new Error('Expected "else" keyword to be a schema');s=this.validateSchema(e,r.else,n,o.makeChild(r.else)),i.importErrors(s)}return i};function lB(t,e){if(Object.hasOwnProperty.call(t,e))return t[e];if(e in t){for(;t=Object.getPrototypeOf(t);)if(Object.propertyIsEnumerable.call(t,e))return t[e]}}_t.propertyNames=function(e,r,n,o){if(this.types.object(e)){var a=new yt(e,r,n,o),i=r.propertyNames!==void 0?r.propertyNames:{};if(!Mo.isSchema(i))throw new Dl('Expected "propertyNames" to be a schema (object or boolean)');for(var s in e)if(lB(e,s)!==void 0){var u=this.validateSchema(s,i,n,o.makeChild(i));a.importErrors(u)}return a}};_t.properties=function(e,r,n,o){if(this.types.object(e)){var a=new yt(e,r,n,o),i=r.properties||{};for(var s in i){var u=i[s];if(u!==void 0){if(u===null)throw new Dl('Unexpected null, expected schema in "properties"');typeof n.preValidateProperty=="function"&&n.preValidateProperty(e,s,u,n,o);var l=lB(e,s),c=this.validateSchema(l,u,n,o.makeChild(u,s));c.instance!==a.instance[s]&&(a.instance[s]=c.instance),a.importErrors(c)}}return a}};function vie(t,e,r,n,o,a){if(this.types.object(t)&&!(e.properties&&e.properties[o]!==void 0))if(e.additionalProperties===!1)a.addError({name:"additionalProperties",argument:o,message:"is not allowed to have the additional property "+JSON.stringify(o)});else{var i=e.additionalProperties||{};typeof r.preValidateProperty=="function"&&r.preValidateProperty(t,o,i,r,n);var s=this.validateSchema(t[o],i,r,n.makeChild(i,o));s.instance!==a.instance[o]&&(a.instance[o]=s.instance),a.importErrors(s)}}_t.patternProperties=function(e,r,n,o){if(this.types.object(e)){var a=new yt(e,r,n,o),i=r.patternProperties||{};for(var s in e){var u=!0;for(var l in i){var c=i[l];if(c!==void 0){if(c===null)throw new Dl('Unexpected null, expected schema in "patternProperties"');try{var p=new RegExp(l,"u")}catch(f){p=new RegExp(l)}if(p.test(s)){u=!1,typeof n.preValidateProperty=="function"&&n.preValidateProperty(e,s,c,n,o);var d=this.validateSchema(e[s],c,n,o.makeChild(c,s));d.instance!==a.instance[s]&&(a.instance[s]=d.instance),a.importErrors(d)}}}u&&vie.call(this,e,r,n,o,s,a)}return a}};_t.additionalProperties=function(e,r,n,o){if(this.types.object(e)){if(r.patternProperties)return null;var a=new yt(e,r,n,o);for(var i in e)vie.call(this,e,r,n,o,i,a);return a}};_t.minProperties=function(e,r,n,o){if(this.types.object(e)){var a=new yt(e,r,n,o),i=Object.keys(e);return i.length>=r.minProperties||a.addError({name:"minProperties",argument:r.minProperties,message:"does not meet minimum property length of "+r.minProperties}),a}};_t.maxProperties=function(e,r,n,o){if(this.types.object(e)){var a=new yt(e,r,n,o),i=Object.keys(e);return i.length<=r.maxProperties||a.addError({name:"maxProperties",argument:r.maxProperties,message:"does not meet maximum property length of "+r.maxProperties}),a}};_t.items=function(e,r,n,o){var a=this;if(this.types.array(e)&&r.items!==void 0){var i=new yt(e,r,n,o);return e.every(function(s,u){if(Array.isArray(r.items))var l=r.items[u]===void 0?r.additionalItems:r.items[u];else var l=r.items;if(l===void 0)return!0;if(l===!1)return i.addError({name:"items",message:"additionalItems not permitted"}),!1;var c=a.validateSchema(s,l,n,o.makeChild(l,u));return c.instance!==i.instance[u]&&(i.instance[u]=c.instance),i.importErrors(c),!0}),i}};_t.contains=function(e,r,n,o){var a=this;if(this.types.array(e)&&r.contains!==void 0){if(!Mo.isSchema(r.contains))throw new Error('Expected "contains" keyword to be a schema');var i=new yt(e,r,n,o),s=e.some(function(u,l){var c=a.validateSchema(u,r.contains,n,o.makeChild(r.contains,l));return c.errors.length===0});return s===!1&&i.addError({name:"contains",argument:r.contains,message:"must contain an item matching given schema"}),i}};_t.minimum=function(e,r,n,o){if(this.types.number(e)){var a=new yt(e,r,n,o);return r.exclusiveMinimum&&r.exclusiveMinimum===!0?e>r.minimum||a.addError({name:"minimum",argument:r.minimum,message:"must be greater than "+r.minimum}):e>=r.minimum||a.addError({name:"minimum",argument:r.minimum,message:"must be greater than or equal to "+r.minimum}),a}};_t.maximum=function(e,r,n,o){if(this.types.number(e)){var a=new yt(e,r,n,o);return r.exclusiveMaximum&&r.exclusiveMaximum===!0?er.exclusiveMinimum;return i||a.addError({name:"exclusiveMinimum",argument:r.exclusiveMinimum,message:"must be strictly greater than "+r.exclusiveMinimum}),a}};_t.exclusiveMaximum=function(e,r,n,o){if(typeof r.exclusiveMaximum!="boolean"&&this.types.number(e)){var a=new yt(e,r,n,o),i=e=r.minLength||a.addError({name:"minLength",argument:r.minLength,message:"does not meet minimum length of "+r.minLength}),a}};_t.maxLength=function(e,r,n,o){if(this.types.string(e)){var a=new yt(e,r,n,o),i=e.match(/[\uDC00-\uDFFF]/g),s=e.length-(i?i.length:0);return s<=r.maxLength||a.addError({name:"maxLength",argument:r.maxLength,message:"does not meet maximum length of "+r.maxLength}),a}};_t.minItems=function(e,r,n,o){if(this.types.array(e)){var a=new yt(e,r,n,o);return e.length>=r.minItems||a.addError({name:"minItems",argument:r.minItems,message:"does not meet minimum length of "+r.minItems}),a}};_t.maxItems=function(e,r,n,o){if(this.types.array(e)){var a=new yt(e,r,n,o);return e.length<=r.maxItems||a.addError({name:"maxItems",argument:r.maxItems,message:"does not meet maximum length of "+r.maxItems}),a}};function BGe(t,e,r){var n,o=r.length;for(n=e+1,o;n{"use strict";var Sie=AI(),UGe=Rl();cB.exports.SchemaScanResult=Eie;function Eie(t,e){this.id=t,this.ref=e}cB.exports.scan=function(e,r){function n(u,l){if(!(!l||typeof l!="object")){if(l.$ref){var c=Sie.resolve(u,l.$ref);s[c]=s[c]?s[c]+1:0;return}var p=l.$id||l.id,d=p?Sie.resolve(u,p):u;if(d){if(d.indexOf("#")<0&&(d+="#"),i[d]){if(!UGe.deepCompareStrict(i[d],l))throw new Error("Schema <"+d+"> already exists with different definition");return i[d]}i[d]=l,d[d.length-1]=="#"&&(i[d.substring(0,d.length-1)]=l)}o(d+"/items",Array.isArray(l.items)?l.items:[l.items]),o(d+"/extends",Array.isArray(l.extends)?l.extends:[l.extends]),n(d+"/additionalItems",l.additionalItems),a(d+"/properties",l.properties),n(d+"/additionalProperties",l.additionalProperties),a(d+"/definitions",l.definitions),a(d+"/patternProperties",l.patternProperties),a(d+"/dependencies",l.dependencies),o(d+"/disallow",l.disallow),o(d+"/allOf",l.allOf),o(d+"/anyOf",l.anyOf),o(d+"/oneOf",l.oneOf),n(d+"/not",l.not)}}function o(u,l){if(Array.isArray(l))for(var c=0;c{"use strict";var Tie=AI(),wie=bie(),Dd=Rl(),xie=FI().scan,Cie=Dd.ValidatorResult,zGe=Dd.ValidatorResultError,J_=Dd.SchemaError,Iie=Dd.SchemaContext,kie="/",nn=function t(){this.customFormats=Object.create(t.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(Li),this.attributes=Object.create(wie.validators)};nn.prototype.customFormats={};nn.prototype.schemas=null;nn.prototype.types=null;nn.prototype.attributes=null;nn.prototype.unresolvedRefs=null;nn.prototype.addSchema=function(e,r){var n=this;if(!e)return null;var o=xie(r||kie,e),a=r||e.$id||e.id;for(var i in o.id)this.schemas[i]=o.id[i];for(var i in o.ref)this.unresolvedRefs.push(i);return this.unresolvedRefs=this.unresolvedRefs.filter(function(s){return typeof n.schemas[s]=="undefined"}),this.schemas[a]};nn.prototype.addSubSchemaArray=function(e,r){if(Array.isArray(r))for(var n=0;n",e);var s=Dd.objectGetPath(n.schemas[i],a.substr(1));if(s===void 0)throw new J_("no such schema "+a+" located in <"+i+">",e);return{subschema:s,switchSchema:r}};nn.prototype.testType=function(e,r,n,o,a){if(a!==void 0){if(a===null)throw new J_('Unexpected null in "type" keyword');if(typeof this.types[a]=="function")return this.types[a].call(this,e);if(a&&typeof a=="object"){var i=this.validateSchema(e,a,n,o);return i===void 0||!(i&&i.errors.length)}return!0}};var Li=nn.prototype.types={};Li.string=function(e){return typeof e=="string"};Li.number=function(e){return typeof e=="number"&&isFinite(e)};Li.integer=function(e){return typeof e=="number"&&e%1===0};Li.boolean=function(e){return typeof e=="boolean"};Li.array=function(e){return Array.isArray(e)};Li.null=function(e){return e===null};Li.date=function(e){return e instanceof Date};Li.any=function(e){return!0};Li.object=function(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof Date)};Oie.exports=nn});var Die=_((bgt,Ks)=>{"use strict";var WGe=Ks.exports.Validator=Rie();Ks.exports.ValidatorResult=Rl().ValidatorResult;Ks.exports.ValidatorResultError=Rl().ValidatorResultError;Ks.exports.ValidationError=Rl().ValidationError;Ks.exports.SchemaError=Rl().SchemaError;Ks.exports.SchemaScanResult=FI().SchemaScanResult;Ks.exports.scan=FI().scan;Ks.exports.validate=function(t,e,r){var n=new WGe;return n.validate(t,e,r)}});var Nie=_((Sgt,$Ge)=>{$Ge.exports={description:"AdapterConfigMessages with optional `nameLang` attributes to be used in\nimports from predefined configurations from GitHub.",type:"object",additionalProperties:{$ref:"#/definitions/T"},definitions:{T:{type:"object",properties:{id:{description:"The ID of the message a hex string.",type:"string"},name:{type:"string"},dlc:{type:"number"},receive:{type:"boolean"},send:{type:"boolean"},autosend:{type:"boolean"},parsers:{$ref:"#/definitions/ioBroker.AdapterConfigMessageParsers"}},required:["autosend","dlc","id","name","parsers","receive","send"]},"ioBroker.AdapterConfigMessageParsers":{type:"object",additionalProperties:{$ref:"#/definitions/T_1"}},T_1:{type:"object",properties:{id:{type:"string"},name:{type:"string"},dataType:{$ref:"#/definitions/global.ioBroker.AdapterConfigDataType"},dataOffset:{type:"number"},dataLength:{type:"number"},dataEncoding:{$ref:"#/definitions/global.ioBroker.AdapterConfigDataEncoding"},dataUnit:{type:"string"},booleanMask:{type:"number"},booleanInvert:{type:"boolean"},customDataType:{$ref:"#/definitions/global.ioBroker.CommonType"},customScriptRead:{type:"string"},customScriptWrite:{type:"string"},commonRole:{description:"The role of the ioBroker state.",type:"string"},commonStates:{description:"Common states (for common.states) for predefined values or `false` if not used.",anyOf:[{const:!1,type:"boolean"},{type:"string"}]},autoSetInterval:{description:"Automatically set a value in the given interval. `false` to disable.",anyOf:[{const:!1,type:"boolean"},{type:"number"}]},autoSetValue:{description:"Value to set automatically.",type:["string","number","boolean"]},autoSetTriggerSend:{description:"Trigger send action if the value is set automatically.",type:"boolean"}},required:["booleanInvert","booleanMask","commonRole","commonStates","customDataType","customScriptRead","customScriptWrite","dataEncoding","dataLength","dataOffset","dataType","dataUnit","id","name"]},"global.ioBroker.AdapterConfigDataType":{enum:["boolean","custom","double64_be","double64_le","float32_be","float32_le","int16_be","int16_le","int32_be","int32_le","int8","string","uint16_be","uint16_le","uint32_be","uint32_le","uint8"],type:"string"},"global.ioBroker.AdapterConfigDataEncoding":{enum:["ascii","base64","hex","latin1","utf16le","utf8"],type:"string"},"global.ioBroker.CommonType":{enum:["array","boolean","file","mixed","number","object","string"],type:"string"}},$schema:"http://json-schema.org/draft-07/schema#"}});var Aie=_((Egt,HGe)=>{HGe.exports={description:"The well known messages index.",type:"object",additionalProperties:{$ref:"#/definitions/ioBroker.WellKnownMessagesIndexEntry"},definitions:{"ioBroker.WellKnownMessagesIndexEntry":{description:"An entry in the well known messages index.",type:"object",properties:{name:{description:"Name",type:"string"},nameLang:{description:"Optional localized names",$ref:"#/definitions/Partial>"},description:{description:"Description, optionally formated with markdown",type:"string"},descriptionLang:{description:"Optional localized descriptions, optionally formated with markdown",$ref:"#/definitions/Partial>"},authors:{description:"Array of authors, optionally formated with markdown",type:"array",items:{type:"string"}},releases:{description:"Array of the releases in descending order",type:"array",items:{$ref:"#/definitions/ioBroker.WellKnownMessagesIndexEntryRelease"}},license:{description:"License of this configuration.",type:"string"}},required:["authors","description","name","releases"]},"Partial>":{type:"object",properties:{en:{type:"string"},de:{type:"string"},ru:{type:"string"},pt:{type:"string"},nl:{type:"string"},fr:{type:"string"},it:{type:"string"},es:{type:"string"},pl:{type:"string"},uk:{type:"string"},"zh-cn":{type:"string"}}},"ioBroker.WellKnownMessagesIndexEntryRelease":{description:"A Release in the well known messages index.",type:"object",properties:{version:{description:"The version number of this release (semver)",type:"string"},file:{description:"File name of this configuration in `well-known-messages/configs/`",type:"string"}},required:["file","version"]}},$schema:"http://json-schema.org/draft-07/schema#"}});var fB=_(qI=>{"use strict";var XGe=$(),ZGe=Ne();Object.defineProperty(qI,"__esModule",{value:!0});qI.default=void 0;var QGe=ZGe(z()),eVe=XGe(ia()),tVe=(0,eVe.default)(QGe.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");qI.default=tVe});var Uie=_(LI=>{"use strict";var $r=$();Object.defineProperty(LI,"__esModule",{value:!0});LI.default=void 0;var rVe=$r(ho()),nVe=$r(Yn()),oVe=$r(Au()),aVe=$r(Mu()),jie=$r(cs()),Fo=$r(z()),Ys=$r(je()),iVe=$r(Mt()),Lie=$r(rm()),sVe=$r(VF()),uVe=$r(YF()),lVe=$r(XF()),cVe=$r(tq()),dVe=$r(oq()),pVe=$r(zC()),fVe=$r(VC()),mVe=$r(bq()),hVe=$r(Jx()),jI=$r(_o());function gVe(t){var e=vVe();return function(){var n=(0,jie.default)(t),o;if(e){var a=(0,jie.default)(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return(0,aVe.default)(this,o)}}function vVe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var yVe={suppress:{fontSize:12},suppressRoot:{marginTop:16}},Bie=function(t){(0,oVe.default)(r,t);var e=gVe(r);function r(n){var o;if((0,rVe.default)(this,r),o=e.call(this,n),!o.props.dialogName&&o.props.suppressQuestionMinutes)throw new Error("dialogName required if suppressQuestionMinutes used");var a=!1;return o.props.suppressQuestionMinutes&&(a=parseInt(window.localStorage.getItem(o.props.dialogName),10)||0,a?Date.now()>a&&(window.localStorage.removeItem(o.props.dialogName),a=!1):a=!1),o.state={suppress:a},o}return(0,nVe.default)(r,[{key:"handleOk",value:function(){this.state.suppress&&window.localStorage.setItem(this.props.dialogName,Date.now()+this.props.suppressQuestionMinutes*6e4),this.props.onClose&&this.props.onClose(!0)}},{key:"handleCancel",value:function(){this.props.onClose&&this.props.onClose(!1)}},{key:"render",value:function(){var o=this;return typeof this.state.suppress=="number"?(setTimeout(function(){return o.props.onClose&&o.props.onClose(!0)},100),null):Fo.default.createElement(sVe.default,{open:!0,maxWidth:"md",fullWidth:!0,onClose:function(i,s){s!=="backdropClick"&&s!=="escapeKeyDown"&&o.handleCancel()},"aria-labelledby":"confirmation-dialog-title","aria-describedby":"confirmation-dialog-description"},Fo.default.createElement(dVe.default,{id:"confirmation-dialog-title"},this.props.title||jI.default.t("ra_Are you sure?")),Fo.default.createElement(lVe.default,null,Fo.default.createElement(cVe.default,{id:"confirmation-dialog-description"},this.props.icon||null,this.props.text,this.props.suppressQuestionMinutes?Fo.default.createElement("br",null):null,this.props.suppressQuestionMinutes?Fo.default.createElement(pVe.default,{classes:{label:this.props.classes.suppress,root:this.props.classes.suppressRoot},control:Fo.default.createElement(fVe.default,{checked:!!this.state.suppress,onChange:function(){return o.setState({suppress:!o.state.suppress})}}),label:this.props.suppressText||jI.default.t("ra_Suppress question for next %s minutes",this.props.suppressQuestionMinutes)}):null)),Fo.default.createElement(uVe.default,null,Fo.default.createElement(Lie.default,{variant:"contained",onClick:function(){return o.handleOk()},color:"primary",autoFocus:!0,startIcon:Fo.default.createElement(mVe.default,null)},this.props.ok||jI.default.t("ra_Ok")),Fo.default.createElement(Lie.default,{variant:"contained",onClick:function(){return o.handleCancel()},startIcon:Fo.default.createElement(hVe.default,null)},this.props.cancel||jI.default.t("ra_Cancel"))))}}]),r}(Fo.default.Component);Bie.propTypes={onClose:Ys.default.func.isRequired,title:Ys.default.string,text:Ys.default.string,ok:Ys.default.string,cancel:Ys.default.string,icon:Ys.default.object,suppressQuestionMinutes:Ys.default.number,suppressText:Ys.default.string,dialogName:Ys.default.string};var _Ve=(0,iVe.default)(yVe)(Bie),bVe=_Ve;LI.default=bVe});var zie=_(zI=>{"use strict";var SVe=$(),EVe=Ne();Object.defineProperty(zI,"__esModule",{value:!0});zI.default=void 0;var TVe=EVe(z()),wVe=SVe(ia()),xVe=(0,wVe.default)(TVe.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");zI.default=xVe});var nse=_((xvt,OVe)=>{OVe.exports={"loading...":"loading\u2026",General:"General","ID missing":"ID missing",Messages:"Messages",Message:"Message",Interface:"Interface","e.g.":"e.g.","Auto add seen messages":"Auto add seen messages","Automatically add new messages to the list of our known messages when they are received.":"Automatically add new messages to the list of our known messages when they are received.","Delete unconfigured messages":"Delete unconfigured messages","Delete all objects of unconfigured messages on adapter startup.":"Delete all objects of unconfigured messages on adapter startup.","Only allowed chars: %s":"Only allowed chars: %s","Configured messages":"Configured messages","Unconfigured messages":"Unconfigured messages",Add:"Add",Remove:"Remove",Reload:"Reload","Message ID":"Message ID","CAN message ID in hex":"CAN message ID in hex","This ID is configured multiple times with this data length":"This ID is configured multiple times with this data length",or:"or",Name:"Name","My super message":"My super message","Data length":"Data length","Not set":"Not set","Optionally set a fixed data length for this message":"Optionally set a fixed data length for this message",Receive:"Receive","Receive messages with the given ID":"Receive messages with the given ID",Send:"Send","Send messages with the given ID":"Send messages with the given ID",Autosend:"Autosend","Automatically send the message when some data part changed":"Automatically send the message when some data part changed",Parsers:"Parsers","Must be a 3 or 8 char hex ID":"Must be a 3 or 8 char hex ID","Remove this message?":"Remove this message?","Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart.":"Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart.","Parser ID":"Parser ID",Temperature:"Temperature","Data type":"Data type","Data type in the can message":"Data type in the can message","Data type in ioBroker":"Data type in ioBroker",Offset:"Offset",Length:"Length",Encoding:"Encoding",Unit:"Unit","Boolean bitmask":"Boolean bitmask","Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.":"Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.","Boolean invert":"Boolean invert","Invert the boolean value":"Invert the boolean value","This ID is reserved and can't be used":"This ID is reserved and can't be used","There are some errors in you configuration. Please check!":"There are some errors in you configuration. Please check!","Custom script read":"Custom script read","Custom script write":"Custom script write","Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.":"Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.","Script to write the value to the buffer. The buffer is available as %s and the value as %s.":"Script to write the value to the buffer. The buffer is available as %s and the value as %s.","Your configuration is invalid. Please check the settings marked in red.":"Your configuration is invalid. Please check the settings marked in red.","Use raw states":"Use raw states","Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput.":"Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput.",and:"and","Use rtr flag":"Use rtr flag","Add an additional Remote Transmission Request (rtr) state on each message.":"Add an additional Remote Transmission Request (rtr) state on each message.","Import / Export":"Import / Export",Import:"Import",Export:"Export","Using this import feature you are able to import message configurations to extend your existing configuration.":"Using this import feature you are able to import message configurations to extend your existing configuration.","You may use a predefined configuration from GitHub or upload a custom file.":"You may use a predefined configuration from GitHub or upload a custom file.","Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.":"Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.","Fetch configurations from GitHub":"Fetch configurations from GitHub","Overwrite existing messages on import":"Overwrite existing messages on import","If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option.":"If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option.","Show on GitHub":"Show on GitHub","Import from GitHub":"Import from GitHub","Import from file":"Import from file","Using this export feature you are able to export your message configurations.":"Using this export feature you are able to export your message configurations.","The exported files can be shared or edited externally and reimported to update your configuration.":"The exported files can be shared or edited externally and reimported to update your configuration.","Export format":"Export format","Select messages to export":"Select messages to export","If checked, you can select the configured messages you want to export. If not checked, all messages will be exported.":"If checked, you can select the configured messages you want to export. If not checked, all messages will be exported.","Export to file":"Export to file","Failed to open file!":"Failed to open file!","Unsupported file type!":"Unsupported file type!","File is empty!":"File is empty!","Error parsing file! %s":"Error parsing file! %s",Version:"Version",Author:"Author","Validation error:":"Validation error:","Ignore this error and try to import":"Ignore this error and try to import","Import done":"Import done","The downloaded index is not valid":"The downloaded index is not valid",Copy:"Copy",Paste:"Paste","Message configuration copied. Use the paste button to paste this configuration to an other message.":"Message configuration copied. Use the paste button to paste this configuration to an other message.","Parser configuration copied. Use the paste button to paste this configuration to an other parser.":"Parser configuration copied. Use the paste button to paste this configuration to an other parser.","Nothing to paste. Please use the copy button first.":"Nothing to paste. Please use the copy button first.",Pasted:"Pasted","Error while pasting: %s":"Error while pasting: %s","Define possible states":"Define possible states","Setup a list of predefined state values":"Setup a list of predefined state values","Possible states":"Possible states","Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto":"Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto","Invalid format! Please use the format value=text,value=text,...":"Invalid format! Please use the format value=text,value=text,\u2026",Role:"Role",'Select a suitable role for the ioBroker state or just use "state" if you are not sure.':'Select a suitable role for the ioBroker state or just use "state" if you are not sure.',"Information about the state roles in ioBroker on GitHub":"Information about the state roles in ioBroker on GitHub",License:"License","Automatically set a certain value":"Automatically set a certain value","Set a certain value automatically in a given interval":"Set a certain value automatically in a given interval","Interval for automatic set":"Interval for automatic set","Interval in milliseconds to automatically set the value":"Interval in milliseconds to automatically set the value","Value to set":"Value to set","The value to set automatically in the given interval (%s)":"The value to set automatically in the given interval (%s)","Trigger send":"Trigger send","Trigger the send action every time the value is set automatically":"Trigger the send action every time the value is set automatically"}});var ose=_((Cvt,RVe)=>{RVe.exports={"loading...":"lade\u2026",General:"Allgemein","ID missing":"ID fehlt",Messages:"Nachrichten",Message:"Nachricht",Interface:"Schnittstelle","e.g.":"z.B.","Auto add seen messages":"Gesehene Nachrichten automatisch hinzuf\xFCgen","Automatically add new messages to the list of our known messages when they are received.":"Automatisch neue Nachrichten zur Liste der bekannten Nachrichten hinzuf\xFCgen, wenn sie empfangen werden.","Delete unconfigured messages":"Nicht konfigurierte Nachrichten l\xF6schen","Delete all objects of unconfigured messages on adapter startup.":"Alle Objekte von nicht konfigurierten Nachrichten beim Start des Adapters l\xF6schen.","Only allowed chars: %s":"Erlaubte Zeichen: %s","Configured messages":"Konfigurierte Nachrichten","Unconfigured messages":"Nicht konfigurierte Nachrichten","Message ID":"Nachrichten-ID","CAN message ID in hex":"CAN Nachrichten-ID in hexadezimal","This ID is configured multiple times with this data length":"Diese ID ist mehrfach konfiguriert mit dieser Datenl\xE4nge",or:"oder",Name:"Name","My super message":"Meine super Nachricht","Data length":"Datenl\xE4nge","Not set":"Nicht gesetzt","Optionally set a fixed data length for this message":"Optional kann eine feste L\xE4nge der Daten vorgegeben werden",Receive:"Empfangen","Receive messages with the given ID":"Nachrichten mit der angegebenen ID empfangen",Send:"Senden","Send messages with the given ID":"Nachrichten mit der angegebenen ID senden",Autosend:"Automatisch senden","Automatically send the message when some data part changed":"Nachricht automatisch senden, wenn sich ein Datenteil \xE4ndert",Parsers:"Parser","Must be a 3 or 8 char hex ID":"Muss eine Hex-ID mit 3 oder 8 Zeichen sein","Remove this message?":"Nachricht entfernen?","Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart.":"Soll diese Nachricht wirklich entfernt werden? Dadurch werden auch alle zugeh\xF6rigen Parser entfernt. Die Nachricht wird als nicht konfiguriert behandelt und m\xF6glicherweise beim Neustart des Adapters gel\xF6scht.","Parser ID":"Parser-ID",Temperature:"Temperatur","Data type":"Datentyp","Data type in the can message":"Datentyp in der CAN-Nachricht","Data type in ioBroker":"Datentyp in ioBroker",Offset:"Offset",Length:"L\xE4nge",Encoding:"Zeichencodierung",Unit:"Einheit","Boolean bitmask":"Bitmaske f\xFCr Wahrheitswerte","Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.":"Bitmaske zum Erkennen/Setzen eines %s-Werts. Wenn keine Bits ausgew\xE4hlt sind, wird ein Bytewert gr\xF6\xDFer 0 als %s interpretiert.","Boolean invert":"Wahrheitswerte invertieren","Invert the boolean value":"Wahrheitswerte umkehren","This ID is reserved and can't be used":"Diese ID ist reserviert und kann nicht verwendet werden","There are some errors in you configuration. Please check!":"Es gibt Fehler in der Konfiguration. Bitte Pr\xFCfen!",Add:"Hinzuf\xFCgen",Remove:"Entfernen",Reload:"Neu laden","Custom script read":"Eigenes Skript zum lesen","Custom script write":"Eigenes Skript zum schreiben","Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.":"Skript um den Wert vom Buffer zu lesen. Der Buffer ist verf\xFCgbar als %s und der Wert muss in %s geschrieben werden.","Script to write the value to the buffer. The buffer is available as %s and the value as %s.":"Skript um den Wert in den Buffer zu schreiben. Der Buffer ist verf\xFCgbar als %s und der Wert als %s.","Your configuration is invalid. Please check the settings marked in red.":"Die Konfiguration enth\xE4lt Fehler. Bitte die rot markierten Einstellungen pr\xFCfen.","Use raw states":"Verwende raw-States","Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput.":"Nutzung von raw-States aktivieren, die mit jeder empfangenen oder gesendeten Nachricht aktualisiert werden und zum Senden von eigenen Nachrichten verwendet werden k\xF6nnen. Dies erm\xF6glicht die Verwendung in Scripts, kann jedoch zu einer h\xF6heren Belastung von Systemen mit einem hohem Nachrichtendurchsatz f\xFChren.",and:"und","Use rtr flag":"RTR-Flag nutzen","Add an additional Remote Transmission Request (rtr) state on each message.":"F\xFCgt jeder Nachricht einen zus\xE4tzlichen Remote Transmission Request (rtr) State hinzu.","Import / Export":"Import / Export",Import:"Import",Export:"Export","Using this import feature you are able to import message configurations to extend your existing configuration.":"Mit dieser Importfunktion k\xF6nnen Nachrichtenkonfigurationen importiert werden, um die vorhandene Konfiguration zu erweitern.","You may use a predefined configuration from GitHub or upload a custom file.":"Es k\xF6nnen vorgefertigte Konfigurationen von GitHub genutzt oder eigene Dateien hochgeladen werden.","Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.":"Hinweis: Alle Konfigurationen werden ohne jegliche Gew\xE4hr angeboten! Abh\xE4ngig vom angeschlossenen System kann das Senden falscher Nachrichten zu Systemsch\xE4den f\xFChren.","Fetch configurations from GitHub":"Konfigurationen von GitHub abrufen","Overwrite existing messages on import":"Vorhandene Nachrichten beim Import \xFCberschreiben","If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option.":"Wenn nicht aktiviert, werden bei einem Import nur neue Nachrichten und Parser hinzugef\xFCgt, aber keine vorhandenen \xFCberschrieben. Vorhandene Nachrichten oder Parser werden \xFCber ihre interne UUID erkannt und nicht \xFCber die ID. Wenn eine exportierte Datei zur Aktualisierung der Konfiguration wieder importiert werden soll, dann muss dieser Haken gesetzt werden.","Show on GitHub":"Anzeigen auf GitHub","Import from GitHub":"Importiere von GitHub","Import from file":"Importiere aus Datei","Using this export feature you are able to export your message configurations.":"Mit dieser Exportfunktion k\xF6nnen die konfigurierten Nachrichten exportiert werden.","The exported files can be shared or edited externally and reimported to update your configuration.":"Die exportierten Dateien k\xF6nnen weitergegeben, oder bearbeitet und wieder importiert werden, um die Konfiguration mit externen Tools zu bearbeiten.","Export format":"Exportformat","Select messages to export":"Nachrichten zum Export ausw\xE4hlen","If checked, you can select the configured messages you want to export. If not checked, all messages will be exported.":"Wenn aktiviert, dann k\xF6nnen die zu exportierenden Nachrichten einzeln ausgew\xE4hlt werden. Wenn nicht aktiviert, dann werden alle Nachrichten exportiert.","Export to file":"Exportiere in Datei","Failed to open file!":"Kann Datei nicht \xF6ffnen!","Unsupported file type!":"Nicht unterst\xFCtzter Dateityp!","File is empty!":"Datei ist leer!","Error parsing file! %s":"Fehler beim Analysieren der Datei! %s",Version:"Version",Author:"Autor","Validation error:":"Validierungsfehler:","Ignore this error and try to import":"Diesen Fehler ignorieren und den Import versuchen","Import done":"Import abgeschlossen","The downloaded index is not valid":"Der heruntergeladene Index ist fehlerhaft",Copy:"Kopieren",Paste:"Einf\xFCgen","Message configuration copied. Use the paste button to paste this configuration to an other message.":"Nachrichtenkonfiguration kopiert. Verwende den Einf\xFCgen-Knopf, um diese Konfiguration bei einer anderen Nachricht einzuf\xFCgen.","Parser configuration copied. Use the paste button to paste this configuration to an other parser.":"Parserkonfiguration kopiert. Verwende den Einf\xFCgen-Knopf, um diese Konfiguration bei einem anderen Parser einzuf\xFCgen.","Nothing to paste. Please use the copy button first.":"Nichts zum Einf\xFCgen. Bitte erst den Kopieren-Knopf verwenden.",Pasted:"Eingef\xFCgt","Error while pasting: %s":"Fehler beim Einf\xFCgen: %s","Define possible states":"M\xF6gliche States definieren","Setup a list of predefined state values":"Eine Liste von vorgegebenen State-Werten definieren","Possible states":"M\xF6gliche States","Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto":"Mit Komma getrennte Liste von echten Werten und anzuzeigenden Werten. Beispiel: 0=Aus,1=Ein,2=Auto","Invalid format! Please use the format value=text,value=text,...":"Ung\xFCltiges Format! Bitte das Format value=text,value=text,\u2026 verwenden.",Role:"Rolle",'Select a suitable role for the ioBroker state or just use "state" if you are not sure.':'Eine passende Rolle f\xFCr den State in ioBroker w\xE4hlen, oder bei Unsicherheiten einfach "state" verwenden.',"Information about the state roles in ioBroker on GitHub":"Informationen \xFCber die State-Rollen in ioBroker auf GitHub (in Englisch)",License:"Lizenz","Automatically set a certain value":"Automatisch einen bestimmten Wert setzen","Interval for automatic set":"Intervall f\xFCr das automatischen Setzen","Interval in milliseconds to automatically set the value":"Intervall in Millisekunden zum automatischen Setzen des Wertes","Value to set":"Zu setzender Wert","The value to set automatically in the given interval (%s)":"Der Wert, der automatisch im vorgegebenen Intervall gesetzt werden soll (%s)","Trigger send":"Senden ausl\xF6sen","Set a certain value automatically in a given interval":"Setze automatisch einen bestimmten Wert in einem vorgegebenen Intervall","Trigger the send action every time the value is set automatically":"Bei jedem automatischen Setzen des Wertes die senden-Aktion ausl\xF6sen"}});var ase=_((Ivt,DVe)=>{DVe.exports={"canbus adapter settings":"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0430\u0434\u0430\u043F\u0442\u0435\u0440\u0430 \u0434\u043B\u044F canbus",Messages:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F",Interface:"\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441","e.g.":"\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440","Auto add seen messages":"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0434\u043E\u0431\u0430\u0432\u043B\u044F\u0442\u044C \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u043D\u043D\u044B\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F","Automatically add new messages to the list of our known messages when they are received.":"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0434\u043E\u0431\u0430\u0432\u043B\u044F\u0442\u044C \u043D\u043E\u0432\u044B\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0432 \u0441\u043F\u0438\u0441\u043E\u043A \u043D\u0430\u0448\u0438\u0445 \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0445 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u043F\u0440\u0438 \u0438\u0445 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0438.","Delete unconfigured messages":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043D\u0435\u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F","Delete all objects of unconfigured messages on adapter startup.":"\u0423\u0434\u0430\u043B\u044F\u0442\u044C \u0432\u0441\u0435 \u043E\u0431\u044A\u0435\u043A\u0442\u044B \u043D\u0435\u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u0445 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u043F\u0440\u0438 \u0437\u0430\u043F\u0443\u0441\u043A\u0435 \u0430\u0434\u0430\u043F\u0442\u0435\u0440\u0430.","Only allowed chars: %s":"\u0422\u043E\u043B\u044C\u043A\u043E \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u043D\u044B\u0435 \u0441\u0438\u043C\u0432\u043E\u043B\u044B: %s","Configured messages":"\u041D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F","Unconfigured messages":"\u041D\u0435\u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F","Message ID":"ID \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F",or:"\u0438\u043B\u0438",Name:"\u0418\u043C\u044F","My super message":"\u041C\u043E\u0435 \u0441\u0443\u043F\u0435\u0440 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435",Receive:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C","Receive messages with the given ID":"\u041F\u043E\u043B\u0443\u0447\u0430\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0441 \u0437\u0430\u0434\u0430\u043D\u043D\u044B\u043C ID",Send:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C","Send messages with the given ID":"\u041E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0441 \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u044B\u043C \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u043C",Autosend:"\u0410\u0432\u0442\u043E\u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0430","Automatically send the message when some data part changed":"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u043F\u0440\u0438 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0438 \u043B\u044E\u0431\u043E\u0439 \u0447\u0430\u0441\u0442\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",Parsers:"\u041F\u0430\u0440\u0441\u0435\u0440\u044B","Must be a 3 or 8 char hex ID":"\u0414\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0448\u0435\u0441\u0442\u043D\u0430\u0434\u0446\u0430\u0442\u0435\u0440\u0438\u0447\u043D\u044B\u0439 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440 \u0438\u0437 3 \u0438\u043B\u0438 8 \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432","Parser ID":"ID \u043F\u0430\u0440\u0441\u0435\u0440\u0430",Temperature:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430","Data type":"\u0422\u0438\u043F \u0434\u0430\u043D\u043D\u044B\u0445",Offset:"\u0421\u043C\u0435\u0449\u0435\u043D\u0438\u0435",Length:"\u0414\u043B\u0438\u043D\u0430",Encoding:"\u041A\u043E\u0434\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",Unit:"\u0415\u0434\u0438\u043D\u0438\u0446\u044B","Boolean bitmask":"\u041B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0431\u0438\u0442\u043E\u0432\u0430\u044F \u043C\u0430\u0441\u043A\u0430","Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.":"\u0411\u0438\u0442\u043E\u0432\u0430\u044F \u043C\u0430\u0441\u043A\u0430, \u043F\u0440\u0438\u043C\u0435\u043D\u044F\u0435\u043C\u0430\u044F \u0434\u043B\u044F \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0438\u044F / \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F %s. \u0415\u0441\u043B\u0438 \u043D\u0438 \u043E\u0434\u0438\u043D \u0431\u0438\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D, \u043B\u044E\u0431\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0431\u0430\u0439\u0442\u0430 \u0431\u043E\u043B\u044C\u0448\u0435 0 \u0431\u0443\u0434\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u043F\u0440\u0435\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u043E \u043A\u0430\u043A %s.","Boolean invert":"\u041B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0438\u043D\u0432\u0435\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435","Invert the boolean value":"\u0418\u043D\u0432\u0435\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435","This ID is reserved and can't be used":"\u042D\u0442\u043E\u0442 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440 \u0437\u0430\u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043E\u0432\u0430\u043D \u0438 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D","There are some errors in you configuration. Please check!":"\u0412 \u0432\u0430\u0448\u0435\u0439 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0435\u0441\u0442\u044C \u043E\u0448\u0438\u0431\u043A\u0438. \u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430!","CAN message ID in hex":"ID \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F CAN \u0432 \u0448\u0435\u0441\u0442\u043D\u0430\u0434\u0446\u0430\u0442\u0435\u0440\u0438\u0447\u043D\u043E\u043C \u0444\u043E\u0440\u043C\u0430\u0442\u0435","loading...":"\u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u2026",Add:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C",Remove:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",Reload:"\u041F\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C",General:"\u041E\u0431\u0449\u0430\u044F",Message:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435","Not set":"\u041D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E","Optionally set a fixed data length for this message":"\u041F\u0440\u0438 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0441\u0442\u0438 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0435 \u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u0443\u044E \u0434\u043B\u0438\u043D\u0443 \u0434\u0430\u043D\u043D\u044B\u0445 \u0434\u043B\u044F \u044D\u0442\u043E\u0433\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F","Remove this message?":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u044D\u0442\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435?","Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart.":"\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B, \u0447\u0442\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u044D\u0442\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435? \u042D\u0442\u043E \u0442\u0430\u043A\u0436\u0435 \u0443\u0434\u0430\u043B\u0438\u0442 \u0432\u0441\u0435 \u0435\u0433\u043E \u043F\u0430\u0440\u0441\u0435\u0440\u044B. \u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u0447\u0438\u0442\u0430\u0442\u044C\u0441\u044F \u043D\u0435\u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u043C \u0438 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0443\u0434\u0430\u043B\u0435\u043D\u043E \u043F\u0440\u0438 \u043F\u0435\u0440\u0435\u0437\u0430\u043F\u0443\u0441\u043A\u0435 \u0430\u0434\u0430\u043F\u0442\u0435\u0440\u0430.","Use raw states":"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u043D\u0435\u043E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u043D\u043D\u044B\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F","Your configuration is invalid. Please check the settings marked in red.":"\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u0442 \u043E\u0448\u0438\u0431\u043A\u0438. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438, \u043E\u0442\u043C\u0435\u0447\u0435\u043D\u043D\u044B\u0435 \u043A\u0440\u0430\u0441\u043D\u044B\u043C.",and:"\u0438","This ID is configured multiple times with this data length":"\u042D\u0442\u043E\u0442 ID \u043D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0440\u0430\u0437 \u0441 \u044D\u0442\u043E\u0439 \u0434\u043B\u0438\u043D\u043E\u0439 \u0434\u0430\u043D\u043D\u044B\u0445","Data length":"\u0414\u043B\u0438\u043D\u0430 \u0434\u0430\u043D\u043D\u044B\u0445","ID missing":"ID \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442","Custom script write":"\u0421\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0441\u0446\u0435\u043D\u0430\u0440\u0438\u0439 \u0434\u043B\u044F \u0437\u0430\u043F\u0438\u0441\u0438","Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.":"\u0421\u043A\u0440\u0438\u043F\u0442 \u0434\u043B\u044F \u0447\u0442\u0435\u043D\u0438\u044F \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0438\u0437 \u0431\u0443\u0444\u0435\u0440\u0430. \u0411\u0443\u0444\u0435\u0440 \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u043A\u0430\u043A %s, \u0438 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0437\u0430\u043F\u0438\u0441\u0430\u043D\u043E \u0432 %s.","Custom script read":"\u0421\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0441\u043A\u0440\u0438\u043F\u0442 \u0434\u043B\u044F \u0447\u0442\u0435\u043D\u0438\u044F","Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput.":"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043D\u0435\u043E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u043D\u043D\u044B\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043E\u0431\u043D\u043E\u0432\u043B\u044F\u044E\u0442\u0441\u044F \u0441 \u043A\u0430\u0436\u0434\u044B\u043C \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043D\u044B\u043C \u0438\u043B\u0438 \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043D\u044B\u043C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435\u043C \u0438 \u043C\u043E\u0433\u0443\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0434\u043B\u044F \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0438 \u0432\u0430\u0448\u0438\u0445 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0445 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439. \u042D\u0442\u043E \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0432 \u0441\u0446\u0435\u043D\u0430\u0440\u0438\u044F\u0445, \u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043F\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043A \u0431\u043E\u043B\u0435\u0435 \u0432\u044B\u0441\u043E\u043A\u043E\u0439 \u043D\u0430\u0433\u0440\u0443\u0437\u043A\u0435 \u043D\u0430 \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u0441 \u0432\u044B\u0441\u043E\u043A\u043E\u0439 \u043F\u0440\u043E\u043F\u0443\u0441\u043A\u043D\u043E\u0439 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C\u044E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439.","Use rtr flag":"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0444\u043B\u0430\u0433 rtr","Show on GitHub":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043D\u0430 GitHub","Import from GitHub":"\u0418\u043C\u043F\u043E\u0440\u0442 \u0438\u0437 GitHub","File is empty!":"\u0424\u0430\u0439\u043B \u043F\u0443\u0441\u0442!","Error parsing file! %s":"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u0440\u0430\u0437\u0431\u043E\u0440\u0435 \u0444\u0430\u0439\u043B\u0430! %s",Version:"\u0412\u0435\u0440\u0441\u0438\u044F",Author:"\u0410\u0432\u0442\u043E\u0440","If checked, you can select the configured messages you want to export. If not checked, all messages will be exported.":"\u0415\u0441\u043B\u0438 \u044D\u0442\u043E\u0442 \u0444\u043B\u0430\u0436\u043E\u043A \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D, \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0432\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0430. \u0418\u043D\u0430\u0447\u0435 \u0431\u0443\u0434\u0443\u0442 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u044B, \u0432\u0441\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F.","Data type in ioBroker":"\u0422\u0438\u043F \u0434\u0430\u043D\u043D\u044B\u0445 \u0432 ioBroker","Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.":"\u041E\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043D\u0438\u043C\u0430\u043D\u0438\u0435: \u0412\u0441\u0435 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u044E\u0442\u0441\u044F \u0431\u0435\u0437 \u043A\u0430\u043A\u0438\u0445-\u043B\u0438\u0431\u043E \u0433\u0430\u0440\u0430\u043D\u0442\u0438\u0439! \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u043E\u0439 \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0430 \u043D\u0435\u0432\u0435\u0440\u043D\u044B\u0445 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u043C\u043E\u0436\u0435\u0442 \u043F\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043A \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044E \u0441\u0438\u0441\u0442\u0435\u043C\u044B.","Fetch configurations from GitHub":"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438\u0437 GitHub","If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option.":"\u0415\u0441\u043B\u0438 \u044D\u0442\u043E\u0442 \u0444\u043B\u0430\u0436\u043E\u043A \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D, \u043F\u0440\u0438 \u0438\u043C\u043F\u043E\u0440\u0442\u0435 \u0431\u0443\u0434\u0443\u0442 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u044B \u0442\u043E\u043B\u044C\u043A\u043E \u043D\u043E\u0432\u044B\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0438 \u043F\u0430\u0440\u0441\u0435\u0440\u044B, \u0430 \u0442\u0435, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0443\u0436\u0435 \u0431\u044B\u043B\u0438 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u044B, \u0438\u0433\u043D\u043E\u0440\u0438\u0440\u0443\u044E\u0442\u0441\u044F. \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0449\u0435\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u0441\u0438\u043D\u0442\u0430\u043A\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0430\u043D\u0430\u043B\u0438\u0437\u0430\u0442\u043E\u0440 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u044F\u0435\u0442\u0441\u044F \u0435\u0433\u043E \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u043C UUID, \u0430 \u043D\u0435 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u043C. \u0415\u0441\u043B\u0438 \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E \u0438\u043C\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0444\u0430\u0439\u043B \u0434\u043B\u044F \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u0432\u0430\u043C \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u044D\u0442\u0443 \u043E\u043F\u0446\u0438\u044E.","Validation error:":"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438:","The downloaded index is not valid":"\u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u043D\u044B\u0439 \u0438\u043D\u0434\u0435\u043A\u0441 \u043D\u0435\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u0435\u043D",Copy:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",Paste:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C","Ignore this error and try to import":"\u0418\u0433\u043D\u043E\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u044D\u0442\u0443 \u043E\u0448\u0438\u0431\u043A\u0443 \u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C","Import done":"\u0418\u043C\u043F\u043E\u0440\u0442 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D","Parser configuration copied. Use the paste button to paste this configuration to an other parser.":"\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F \u043F\u0430\u0440\u0441\u0435\u0440\u0430 \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0430. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043D\u043E\u043F\u043A\u0443 \xAB\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C\xBB, \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u044D\u0442\u0443 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044E \u0432 \u0434\u0440\u0443\u0433\u043E\u0439 \u043F\u0430\u0440\u0441\u0435\u0440.",Pasted:"\u0412\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u043E","Message configuration copied. Use the paste button to paste this configuration to an other message.":"\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0430. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043D\u043E\u043F\u043A\u0443 \xAB\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C\xBB, \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u044D\u0442\u0443 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044E \u0432 \u0434\u0440\u0443\u0433\u043E\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435.","Define possible states":"\u041E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u044B\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F","Possible states":"\u0412\u043E\u0437\u043C\u043E\u0436\u043D\u044B\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F","Invalid format! Please use the format value=text,value=text,...":"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0444\u043E\u0440\u043C\u0430\u0442! \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u0444\u043E\u0440\u043C\u0430\u0442: \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435=\u0442\u0435\u043A\u0441\u0442,\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435=\u0442\u0435\u043A\u0441\u0442,\u2026","Nothing to paste. Please use the copy button first.":"\u041D\u0435\u0447\u0435\u0433\u043E \u0432\u0441\u0442\u0430\u0432\u043B\u044F\u0442\u044C. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0441\u043D\u0430\u0447\u0430\u043B\u0430 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043D\u043E\u043F\u043A\u0443 \u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F.","Error while pasting: %s":"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u0432\u0441\u0442\u0430\u0432\u043A\u0435: %s","Setup a list of predefined state values":"\u041D\u0430\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u043F\u0440\u0435\u0434\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043D\u044B\u0445 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0439","Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto":"\u0420\u0430\u0437\u0434\u0435\u043B\u0435\u043D\u043D\u044B\u0439 \u0437\u0430\u043F\u044F\u0442\u044B\u043C\u0438 \u0441\u043F\u0438\u0441\u043E\u043A \u0440\u0435\u0430\u043B\u044C\u043D\u044B\u0445 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0439 \u0438 \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0435\u043C\u044B\u0445 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0439. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440: 0=Off,1=On,2=Auto",Role:"\u0420\u043E\u043B\u044C",'Select a suitable role for the ioBroker state or just use "state" if you are not sure.':'\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0449\u0443\u044E \u0440\u043E\u043B\u044C \u0434\u043B\u044F \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F ioBroker \u0438\u043B\u0438 \u043F\u0440\u043E\u0441\u0442\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 "state", \u0435\u0441\u043B\u0438 \u0432\u044B \u043D\u0435 \u0443\u0432\u0435\u0440\u0435\u043D\u044B \u0432 \u0432\u044B\u0431\u043E\u0440\u0435.',"Information about the state roles in ioBroker on GitHub":"\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u043E \u0440\u043E\u043B\u044F\u0445 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0439 \u0432 ioBroker \u043D\u0430 GitHub (State roles)",License:"\u041B\u0438\u0446\u0435\u043D\u0437\u0438\u044F",Import:"\u0418\u043C\u043F\u043E\u0440\u0442",Export:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442","Import / Export":"\u0418\u043C\u043F\u043E\u0440\u0442 / \u042D\u043A\u0441\u043F\u043E\u0440\u0442","Using this import feature you are able to import message configurations to extend your existing configuration.":"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044F \u044D\u0442\u0443 \u0444\u0443\u043D\u043A\u0446\u0438\u044E \u0438\u043C\u043F\u043E\u0440\u0442\u0430, \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u0434\u043B\u044F \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u044F \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0449\u0435\u0439 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430.","You may use a predefined configuration from GitHub or upload a custom file.":"\u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u043F\u0440\u0435\u0434\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u0443\u044E \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044E \u0438\u0437 GitHub \u0438\u043B\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0444\u0430\u0439\u043B.","Overwrite existing messages on import":"\u0417\u0430\u043C\u0435\u043D\u044F\u0442\u044C \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u043F\u0440\u0438 \u0438\u043C\u043F\u043E\u0440\u0442\u0435","Import from file":"\u0418\u043C\u043F\u043E\u0440\u0442 \u0438\u0437 \u0444\u0430\u0439\u043B\u0430","Using this export feature you are able to export your message configurations.":"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044F \u044D\u0442\u0443 \u0444\u0443\u043D\u043A\u0446\u0438\u044E, \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0432\u043E\u0438 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439.","The exported files can be shared or edited externally and reimported to update your configuration.":"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0444\u0430\u0439\u043B\u044B \u043C\u043E\u0433\u0443\u0442 \u0431\u044B\u0442\u044C \u043E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u043D\u044B \u0438\u043B\u0438 \u043E\u0442\u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0432\u043D\u0435\u0448\u043D\u0438\u0445 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u0438 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E \u0438\u043C\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u0434\u043B\u044F \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F \u0432\u0430\u0448\u0435\u0439 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438.","Export format":"\u0424\u043E\u0440\u043C\u0430\u0442 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0430","Select messages to export":"\u0412\u044B\u0431\u043E\u0440 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u0434\u043B\u044F \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0430","Export to file":"\u042D\u043A\u0441\u043F\u043E\u0440\u0442 \u0432 \u0444\u0430\u0439\u043B","Data type in the can message":"\u0422\u0438\u043F \u0434\u0430\u043D\u043D\u044B\u0445 \u0432 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0438 CAN","Failed to open file!":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0444\u0430\u0439\u043B!","Unsupported file type!":"\u041D\u0435\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0444\u043E\u0440\u043C\u0430\u0442 \u0444\u0430\u0439\u043B\u0430!","Script to write the value to the buffer. The buffer is available as %s and the value as %s.":"\u0421\u043A\u0440\u0438\u043F\u0442 \u0434\u043B\u044F \u0437\u0430\u043F\u0438\u0441\u0438 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0432 \u0431\u0443\u0444\u0435\u0440. \u0411\u0443\u0444\u0435\u0440 \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u043A\u0430\u043A %s, \u0430 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u043A\u0430\u043A %s.","Add an additional Remote Transmission Request (rtr) state on each message.":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u043E Remote Transmission Request (RTR) \u0432 \u043A\u0430\u0436\u0434\u043E\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435.","Automatically set a certain value":"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0443\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435","Set a certain value automatically in a given interval":"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0443\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u043C \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B\u0435","Interval for automatic set":"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438","Interval in milliseconds to automatically set the value":"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u0432 \u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430\u0445 \u0434\u043B\u044F \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F","Value to set":"\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043B\u044F \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438","The value to set automatically in the given interval (%s)":"\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435, \u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0432 \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u043C \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B\u0435 (%s)","Trigger send":"\u0422\u0440\u0438\u0433\u0433\u0435\u0440\u043D\u0430\u044F \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0430","Trigger the send action every time the value is set automatically":"\u0417\u0430\u043F\u0443\u0441\u043A\u0430\u0442\u044C \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0438 \u043A\u0430\u0436\u0434\u044B\u0439 \u0440\u0430\u0437, \u043A\u043E\u0433\u0434\u0430 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0443\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438"}});var ise=_((kvt,NVe)=>{NVe.exports={"canbus adapter settings":"Configura\xE7\xF5es do adaptador para canbus",Messages:"Mensagens",Interface:"Interface","e.g.":"por exemplo.","Auto add seen messages":"Adicionar automaticamente mensagens vistas","Automatically add new messages to the list of our known messages when they are received.":"Adicionar automaticamente novas mensagens \xE0 lista de nossas mensagens conhecidas quando forem recebidas.","Delete unconfigured messages":"Apagar mensagens n\xE3o configuradas","Delete all objects of unconfigured messages on adapter startup.":"Exclua todos os objetos de mensagens n\xE3o configuradas na inicializa\xE7\xE3o do adaptador.","Only allowed chars: %s":"Somente caracteres permitidos: %s","Configured messages":"Mensagens configuradas","Unconfigured messages":"Mensagens n\xE3o configuradas","Message ID":"ID da mensagem",or:"ou",Name:"Nome","My super message":"Minha super mensagem",Receive:"Receber","Receive messages with the given ID":"Receba mensagens com o ID fornecido",Send:"Enviar","Send messages with the given ID":"Envie mensagens com o ID fornecido",Autosend:"Autosend","Automatically send the message when some data part changed":"Envia automaticamente a mensagem quando alguma parte dos dados muda",Parsers:"Analisadores","Must be a 3 or 8 char hex ID":"Deve ser um ID hexadecimal de 3 ou 8 caracteres","Parser ID":"ID do analisador",Temperature:"Temperatura","Data type":"Tipo de dados",Offset:"Deslocamento",Length:"comprimento",Encoding:"Codifica\xE7\xE3o",Unit:"Unidade","Boolean bitmask":"Bitmask booleano","Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.":"Bitmask a ser aplicado para detectar / definir um valor %s. Se nenhum bit for selecionado, qualquer valor de byte maior que 0 ser\xE1 interpretado como %s.","Boolean invert":"Boolean invertido","Invert the boolean value":"Inverta o valor booleano","This ID is reserved and can't be used":"Este ID \xE9 reservado e n\xE3o pode ser usado","There are some errors in you configuration. Please check!":"Existem alguns erros na sua configura\xE7\xE3o. ","CAN message ID in hex":"ID da mensagem CAN em hexadecimal","loading...":"Carregando\u2026",Add:"Adicionar",Remove:"Remover",Reload:"recarregar",General:"Geral",Message:"Mensagem","This ID is configured multiple times with this data length":"Este ID foi configurado v\xE1rias vezes com este comprimento de dados","ID missing":"Faltando ID","Optionally set a fixed data length for this message":"Um comprimento fixo dos dados pode ser opcionalmente especificado","Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart.":"Tem certeza que deseja remover esta mensagem? Isso tamb\xE9m remover\xE1 todos os analisadores associados. A mensagem \xE9 tratada como n\xE3o configurada e pode ser exclu\xEDda quando o adaptador \xE9 reiniciado.","Data type in the can message":"Tipo de dados na mensagem CAN","Data type in ioBroker":"Tipo de dados em ioBroker","Not set":"N\xE3o configurado","Remove this message?":"Apagar mensagem?","Data length":"Comprimento de dado","Custom script read":"Leitura de script personalizado","Custom script write":"Grava\xE7\xE3o de script personalizado","Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.":"Script para ler o valor do buffer. O buffer est\xE1 dispon\xEDvel como %s e o valor deve ser escrito em %s.","Script to write the value to the buffer. The buffer is available as %s and the value as %s.":"Script para gravar o valor no buffer. O buffer est\xE1 dispon\xEDvel como %se o valor como %s.","Your configuration is invalid. Please check the settings marked in red.":"Sua configura\xE7\xE3o \xE9 inv\xE1lida. Verifique as configura\xE7\xF5es marcadas em vermelho.","Use raw states":"Use estados brutos","Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput.":"Use os estados brutos, que s\xE3o atualizados a cada mensagem recebida ou enviada e podem ser usados \u200B\u200Bpara enviar suas pr\xF3prias mensagens. Isso permite o uso em scripts, mas pode levar a uma carga maior em sistemas com alto rendimento de mensagens.",and:"e","Use rtr flag":"Usar sinalizador rtr","Add an additional Remote Transmission Request (rtr) state on each message.":"Adicione um estado adicional de Solicita\xE7\xE3o de Transmiss\xE3o Remota (rtr) em cada mensagem.","Import / Export":"Importar/Exportar",Import:"Importar",Export:"Exportar","Using this import feature you are able to import message configurations to extend your existing configuration.":"Usando esse recurso de importa\xE7\xE3o, voc\xEA pode importar configura\xE7\xF5es de mensagens para estender sua configura\xE7\xE3o existente.","You may use a predefined configuration from GitHub or upload a custom file.":"Voc\xEA pode usar uma configura\xE7\xE3o predefinida do GitHub ou fazer upload de um arquivo personalizado.","Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.":"Dica: Todas as configura\xE7\xF5es s\xE3o fornecidas sem qualquer garantia! Dependendo do sistema conectado, o envio de mensagens incorretas pode danificar o sistema.","Fetch configurations from GitHub":"Buscar configura\xE7\xF5es do GitHub","Overwrite existing messages on import":"Substituir mensagens existentes na importa\xE7\xE3o","If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option.":"Se n\xE3o estiver marcada, uma importa\xE7\xE3o apenas adicionar\xE1 novas mensagens e analisadores e aqueles que j\xE1 foram definidos ser\xE3o ignorados. Uma mensagem ou analisador existente \xE9 determinado por seu UUID interno e n\xE3o pelo ID. Se voc\xEA deseja reimportar um arquivo exportado para atualizar sua configura\xE7\xE3o, voc\xEA deve definir esta op\xE7\xE3o.","Show on GitHub":"Mostrar no GitHub","Import from GitHub":"Importar do GitHub","Import from file":"Importar do arquivo","Using this export feature you are able to export your message configurations.":"Usando este recurso de exporta\xE7\xE3o, voc\xEA pode exportar suas configura\xE7\xF5es de mensagens.","The exported files can be shared or edited externally and reimported to update your configuration.":"Os arquivos exportados podem ser compartilhados ou editados externamente e reimportados para atualizar sua configura\xE7\xE3o.","Export format":"Formato de exporta\xE7\xE3o","Select messages to export":"Selecione mensagens para exportar","If checked, you can select the configured messages you want to export. If not checked, all messages will be exported.":"Se marcada, voc\xEA pode selecionar as mensagens configuradas que deseja exportar. Se n\xE3o estiver marcada, todas as mensagens ser\xE3o exportadas.","Export to file":"Exportar para arquivo","Failed to open file!":"Falha ao abrir o arquivo!","Unsupported file type!":"Tipo de arquivo n\xE3o suportado!","File is empty!":"O arquivo est\xE1 vazio!","Error parsing file! %s":"Erro ao analisar arquivo! %s",Version:"Vers\xE3o",Author:"Autor","Validation error:":"Erro de valida\xE7\xE3o:","Ignore this error and try to import":"Ignore este erro e tente importar","Import done":"Importa\xE7\xE3o conclu\xEDda","The downloaded index is not valid":"O \xEDndice baixado n\xE3o \xE9 v\xE1lido",Copy:"C\xF3pia",Paste:"Colar","Message configuration copied. Use the paste button to paste this configuration to an other message.":"Configura\xE7\xE3o de mensagem copiada. Use o bot\xE3o colar para colar esta configura\xE7\xE3o em outra mensagem.","Parser configuration copied. Use the paste button to paste this configuration to an other parser.":"Configura\xE7\xE3o do analisador copiada. Use o bot\xE3o colar para colar esta configura\xE7\xE3o em outro analisador.","Nothing to paste. Please use the copy button first.":"Nada para colar. Por favor, use o bot\xE3o copiar primeiro.",Pasted:"Colado","Error while pasting: %s":"Erro ao colar: %s","Define possible states":"Definir estados poss\xEDveis","Setup a list of predefined state values":"Configure uma lista de valores de estado predefinidos","Possible states":"Estados poss\xEDveis","Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto":"Lista separada por v\xEDrgulas de valores reais e valores de exibi\xE7\xE3o. Exemplo: 0=Desligado,1=Ligado,2=Autom\xE1tico","Invalid format! Please use the format value=text,value=text,...":"Formato inv\xE1lido! Por favor use o formato valor=texto,valor=texto,\u2026",Role:"Papel",'Select a suitable role for the ioBroker state or just use "state" if you are not sure.':'Selecione uma fun\xE7\xE3o adequada para o estado do ioBroker ou apenas use "estado" se n\xE3o tiver certeza.',"Information about the state roles in ioBroker on GitHub":"Informa\xE7\xF5es sobre as fun\xE7\xF5es estaduais no ioBroker no GitHub",License:"Licen\xE7a","Automatically set a certain value":"Definir automaticamente um determinado valor","Set a certain value automatically in a given interval":"Defina um determinado valor automaticamente em um determinado intervalo","Interval for automatic set":"Intervalo para configura\xE7\xE3o autom\xE1tica","Interval in milliseconds to automatically set the value":"Intervalo em milissegundos para definir automaticamente o valor","Value to set":"Valor a definir","The value to set automatically in the given interval (%s)":"O valor a ser definido automaticamente no intervalo determinado (%s)","Trigger send":"Acionar envio","Trigger the send action every time the value is set automatically":"Acione a a\xE7\xE3o de envio sempre que o valor for definido automaticamente"}});var sse=_((Pvt,AVe)=>{AVe.exports={"canbus adapter settings":"Adapterinstellingen voor canbus",Messages:"Berichten",Interface:"Koppel","e.g.":"bijv.","Auto add seen messages":"Automatisch geziene berichten toevoegen","Automatically add new messages to the list of our known messages when they are received.":"Voeg automatisch nieuwe berichten toe aan de lijst met onze bekende berichten wanneer ze worden ontvangen.","Delete unconfigured messages":"Verwijder niet-geconfigureerde berichten","Delete all objects of unconfigured messages on adapter startup.":"Verwijder alle objecten van niet-geconfigureerde berichten bij het opstarten van de adapter.","Only allowed chars: %s":"Alleen toegestane tekens: %s","Configured messages":"Geconfigureerde berichten","Unconfigured messages":"Niet-geconfigureerde berichten","Message ID":"Bericht-ID",or:"of",Name:"Naam","My super message":"Mijn super bericht",Receive:"Te ontvangen","Receive messages with the given ID":"Ontvang berichten met de opgegeven ID",Send:"Sturen","Send messages with the given ID":"Stuur berichten met de opgegeven ID",Autosend:"Automatisch verzenden","Automatically send the message when some data part changed":"Verzend automatisch het bericht wanneer een gegevensgedeelte is gewijzigd",Parsers:"Parsers","Must be a 3 or 8 char hex ID":"Moet een hexadecimale ID van 3 of 8 karakters zijn","Parser ID":"Parser-ID",Temperature:"Temperatuur","Data type":"Data type",Offset:"Offset",Length:"Lengte",Encoding:"Codering",Unit:"Eenheid","Boolean bitmask":"Booleaans bitmasker","Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.":"Bitmasker om toe te passen om een %s-waarde te detecteren / in te stellen. Als er geen bits zijn geselecteerd, wordt elke bytewaarde groter dan 0 ge\xEFnterpreteerd als %s.","Boolean invert":"Booleaanse omkering","Invert the boolean value":"Keer de booleaanse waarde om","This ID is reserved and can't be used":"Dit ID is gereserveerd en kan niet worden gebruikt","There are some errors in you configuration. Please check!":"Er zijn enkele fouten in uw configuratie!","CAN message ID in hex":"CAN-bericht-ID in hex","loading...":"bezig met laden\u2026",Add:"Toevoegen",Remove:"Verwijderen",Reload:"Herlaad",General:"Algemeen",Message:"Bericht","This ID is configured multiple times with this data length":"Deze ID is meerdere keren geconfigureerd met dezelfde gegevenslengte","Use raw states":"Gebruik raw states",and:"en","ID missing":"ID ontbreekt","Not set":"Niet geconfigureerd","Data length":"Gegevenslengte","Optionally set a fixed data length for this message":"Stel optioneel een vaste gegevenslengte in voor dit bericht","Remove this message?":"Verwijder dit bericht?","Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart.":"Weet u zeker dat u dit bericht wilt verwijderen? Hiermee worden ook al zijn parsers verwijderd. Het bericht wordt als niet-geconfigureerd beschouwd en kan worden verwijderd wanneer de adapter opnieuw wordt opgestart.","Custom script write":"Aangepast script schrijven","Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.":"Script om de waarde uit de buffer te lezen. De buffer is beschikbaar als % s en de waarde moet in % s worden geschreven.","Script to write the value to the buffer. The buffer is available as %s and the value as %s.":"Script om de waarde naar de buffer te schrijven. De buffer is beschikbaar als% s en de waarde als% s.","Your configuration is invalid. Please check the settings marked in red.":"Uw configuratie is ongeldig. Controleer de rood gemarkeerde instellingen.","Custom script read":"Aangepast script lezen","Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput.":"Gebruik de ruwe statussen, die worden bijgewerkt met elk ontvangen of verzonden bericht en kunnen worden gebruikt om uw eigen berichten te verzenden. Dit maakt het gebruik in scripts mogelijk, maar kan leiden tot een hogere belasting van systemen met een hoge berichtdoorvoer.","Use rtr flag":"Gebruik rtr flag","Add an additional Remote Transmission Request (rtr) state on each message.":"Voeg een extra status voor Remote Transmission Request (rtr) toe aan elk bericht.","Validation error:":"Validatiefout:","Ignore this error and try to import":"Negeer deze fout en probeer te importeren","Import done":"Import gedaan","The downloaded index is not valid":"De gedownloade index is niet geldig",Copy:"Kopi\xEBren",Paste:"Invoegen","Message configuration copied. Use the paste button to paste this configuration to an other message.":"Berichtconfiguratie gekopieerd. Gebruik de plakknop om deze configuratie in een ander bericht te plakken.","Parser configuration copied. Use the paste button to paste this configuration to an other parser.":"Parser-configuratie gekopieerd. Gebruik de plakknop om deze configuratie in een andere parser te plakken.","Nothing to paste. Please use the copy button first.":"Niets in te voegen. Gebruik eerst de kopieerknop.",Pasted:"Ingevoegd","Error while pasting: %s":"Invoegfout: %s","Define possible states":"Definieer mogelijke toestanden","Setup a list of predefined state values":"Stel een lijst met vooraf gedefinieerde statuswaarden in","Possible states":"Mogelijke staten","Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto":"Door komma's gescheiden lijst met re\xEBle waarden en weergavewaarden. Voorbeeld: 0=Uit,1=Aan,2=Automaat","Invalid format! Please use the format value=text,value=text,...":"Ongeldig formaat! Gebruik het formaat value=text,value=text,\u2026",Role:"Rol",'Select a suitable role for the ioBroker state or just use "state" if you are not sure.':'Selecteer een geschikte rol voor de ioBroker-status of gebruik gewoon "state" als u het niet zeker weet.',"Information about the state roles in ioBroker on GitHub":"Informatie over de statusrollen in ioBroker op GitHub (in Engels)",License:"Licentie","Data type in the can message":"Gegevenstype in het blikbericht","Data type in ioBroker":"Gegevenstype in ioBroker","Import / Export":"Importeren / exporteren",Import:"Importeren",Export:"Exporteren","Using this import feature you are able to import message configurations to extend your existing configuration.":"Met deze importfunctie kunt u berichtconfiguraties importeren om uw bestaande configuratie uit te breiden.","You may use a predefined configuration from GitHub or upload a custom file.":"U kunt een vooraf gedefinieerde configuratie van GitHub gebruiken of een aangepast bestand uploaden.","Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.":"Tip: Alle configuraties worden geleverd zonder enige garantie! Afhankelijk van het aangesloten systeem kan het verzenden van onjuiste berichten het systeem beschadigen.","Fetch configurations from GitHub":"Configuraties ophalen van GitHub","Overwrite existing messages on import":"Overschrijf bestaande berichten bij het importeren","If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option.":"Indien niet aangevinkt, zal een import alleen nieuwe berichten en parsers toevoegen en de reeds gedefinieerde berichten worden genegeerd. Een bestaand bericht of parser wordt bepaald door de interne UUID en niet door de ID. Als u een ge\xEBxporteerd bestand opnieuw wilt importeren om uw configuratie bij te werken, moet u deze optie instellen.","Show on GitHub":"Toon op GitHub","Import from GitHub":"Importeren vanuit GitHub","Import from file":"Importeren uit bestand","Using this export feature you are able to export your message configurations.":"Met deze exportfunctie kunt u uw berichtconfiguraties exporteren.","The exported files can be shared or edited externally and reimported to update your configuration.":"De ge\xEBxporteerde bestanden kunnen extern worden gedeeld of bewerkt en opnieuw worden ge\xEFmporteerd om uw configuratie bij te werken.","Export format":"Formaat exporteren","Select messages to export":"Selecteer berichten om te exporteren","If checked, you can select the configured messages you want to export. If not checked, all messages will be exported.":"Indien aangevinkt, kunt u de geconfigureerde berichten selecteren die u wilt exporteren. Indien niet aangevinkt, worden alle berichten ge\xEBxporteerd.","Export to file":"Exporteren naar bestand","Failed to open file!":"Kan bestand niet openen!","Unsupported file type!":"Niet-ondersteund bestandstype!","File is empty!":"Bestand is leeg!","Error parsing file! %s":"Fout bij het parseren van bestand! %S",Version:"Versie",Author:"Auteur","Automatically set a certain value":"Stel automatisch een bepaalde waarde in","Set a certain value automatically in a given interval":"Stel automatisch een bepaalde waarde in binnen een bepaald interval","Interval for automatic set":"Interval voor automatisch instellen","Interval in milliseconds to automatically set the value":"Interval in milliseconden om de waarde automatisch in te stellen","Value to set":"Waarde om in te stellen","The value to set automatically in the given interval (%s)":"De waarde die automatisch moet worden ingesteld binnen het opgegeven interval (%s)","Trigger send":"Trigger verzenden","Trigger the send action every time the value is set automatically":"Activeer de verzendactie telkens wanneer de waarde automatisch wordt ingesteld"}});var use=_((Ovt,MVe)=>{MVe.exports={"canbus adapter settings":"Param\xE8tres d'adaptateur pour canbus",Messages:"messages",Interface:"Interface","e.g.":"par exemple.","Auto add seen messages":"Ajouter automatiquement les messages vus","Automatically add new messages to the list of our known messages when they are received.":"Ajoutez automatiquement de nouveaux messages \xE0 la liste de nos messages connus lorsqu'ils sont re\xE7us.","Delete unconfigured messages":"Supprimer les messages non configur\xE9s","Delete all objects of unconfigured messages on adapter startup.":"Supprimez tous les objets des messages non configur\xE9s au d\xE9marrage de l'adaptateur.","Only allowed chars: %s":"Seuls les caract\xE8res autoris\xE9s: %s","Configured messages":"Messages configur\xE9s","Unconfigured messages":"Messages non configur\xE9s","Message ID":"ID du message",or:"ou",Name:"Nom","My super message":"Mon super message",Receive:"Recevoir","Receive messages with the given ID":"Recevoir des messages avec l'ID donn\xE9",Send:"Envoyer","Send messages with the given ID":"Envoyer des messages avec l'ID donn\xE9",Autosend:"Envoi automatique","Automatically send the message when some data part changed":"Envoyer automatiquement le message lorsque certaines parties de donn\xE9es ont chang\xE9",Parsers:"Analyseurs","Must be a 3 or 8 char hex ID":"Doit \xEAtre un ID hexad\xE9cimal de 3 ou 8 caract\xE8res","Parser ID":"ID de l'analyseur",Temperature:"Temp\xE9rature","Data type":"Type de donn\xE9es",Offset:"D\xE9calage",Length:"Longueur",Encoding:"Codage",Unit:"Unit\xE9","Boolean bitmask":"Masque bool\xE9en","Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.":"Masque de bits \xE0 appliquer pour d\xE9tecter / d\xE9finir une valeur %s. Si aucun bit n'est s\xE9lectionn\xE9, toute valeur d'octet sup\xE9rieure \xE0 0 sera interpr\xE9t\xE9e comme %s.","Boolean invert":"Inverser bool\xE9en","Invert the boolean value":"Inverser la valeur bool\xE9enne","This ID is reserved and can't be used":"Cet identifiant est r\xE9serv\xE9 et ne peut pas \xEAtre utilis\xE9","There are some errors in you configuration. Please check!":"Il y a des erreurs dans votre configuration. V\xE9rifiez s'il vous pla\xEEt!","CAN message ID in hex":"ID de message CAN en hexad\xE9cimal","loading...":"t\xE9l\xE9charger\u2026",Add:"Ajouter",Remove:"Supprimer",Reload:"Recharger",General:"G\xE9n\xE9ral",Message:"Message","Fetch configurations from GitHub":"R\xE9cup\xE9rer les configurations depuis GitHub","Show on GitHub":"Afficher sur GitHub","Import from GitHub":"Importer depuis GitHub","Unsupported file type!":"Type de fichier non pris en charge!","File is empty!":"Le fichier est vide!","Error parsing file! %s":"Erreur d'analyse du fichier! %s",Version:"Version",Author:"Auteur","If checked, you can select the configured messages you want to export. If not checked, all messages will be exported.":"Si coch\xE9, vous pouvez s\xE9lectionner les messages configur\xE9s que vous souhaitez exporter. Si elle n'est pas coch\xE9e, tous les messages seront export\xE9s.","This ID is configured multiple times with this data length":"Cet ID est configur\xE9 plusieurs fois avec cette longueur de donn\xE9es","Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.":"Astuce: Toutes les configurations sont fournies sans aucune garantie! Selon le syst\xE8me connect\xE9, l'envoi de messages incorrects peut endommager le syst\xE8me.","If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option.":"Si elle n'est pas coch\xE9e, une importation ajoutera simplement de nouveaux messages et analyseurs et ceux qui ont d\xE9j\xE0 \xE9t\xE9 d\xE9finis sont ignor\xE9s. Un message ou un analyseur existant est d\xE9termin\xE9 par son UUID interne et non par son ID. Si vous souhaitez r\xE9importer un fichier export\xE9 pour mettre \xE0 jour votre configuration, vous devez d\xE9finir cette option.","Import / Export":"Importer / Exporter",Import:"Importer",Export:"Exporter","Using this import feature you are able to import message configurations to extend your existing configuration.":"Gr\xE2ce \xE0 cette fonction d'importation, vous pouvez importer des configurations de message pour \xE9tendre votre configuration existante.","Import from file":"Importer depuis un fichier","Using this export feature you are able to export your message configurations.":"Gr\xE2ce \xE0 cette fonction d'exportation, vous pouvez exporter vos configurations de messages.","The exported files can be shared or edited externally and reimported to update your configuration.":"Les fichiers export\xE9s peuvent \xEAtre partag\xE9s ou modifi\xE9s en externe et r\xE9import\xE9s pour mettre \xE0 jour votre configuration.","Export format":"Format d'exportation","Select messages to export":"S\xE9lectionnez les messages \xE0 exporter","Data type in the can message":"Type de donn\xE9es dans le message can","Data type in ioBroker":"Type de donn\xE9es dans ioBroker","You may use a predefined configuration from GitHub or upload a custom file.":"Vous pouvez utiliser une configuration pr\xE9d\xE9finie de GitHub ou t\xE9l\xE9charger un fichier personnalis\xE9.","Overwrite existing messages on import":"\xC9craser les messages existants lors de l'importation","Export to file":"Exporter vers un fichier","Failed to open file!":"\xC9chec de l'ouverture du fichier!","Use raw states":"Utiliser des \xE9tats bruts",and:"et","ID missing":"ID manquant","Not set":"Non d\xE9fini","Custom script write":"\xC9criture de script personnalis\xE9","Data length":"Longueur des donn\xE9es","Optionally set a fixed data length for this message":"D\xE9finissez \xE9ventuellement une longueur de donn\xE9es fixe pour ce message","Remove this message?":"Supprimer ce message?","Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart.":"Voulez-vous vraiment supprimer ce message? Cela supprimera \xE9galement tous ses analyseurs. Le message sera trait\xE9 comme non configur\xE9 et pourra \xEAtre supprim\xE9 au red\xE9marrage de l'adaptateur.","Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.":"Script pour lire la valeur du tampon. Le tampon est disponible en tant que %s et la valeur doit \xEAtre \xE9crite dans %s.","Script to write the value to the buffer. The buffer is available as %s and the value as %s.":"Script pour \xE9crire la valeur dans le tampon. Le tampon est disponible en %s et la valeur en %s.","Your configuration is invalid. Please check the settings marked in red.":"Votre configuration n'est pas valide. Veuillez v\xE9rifier les param\xE8tres marqu\xE9s en rouge.","Custom script read":"Lecture de script personnalis\xE9","Load configuration from file":"Charger la configuration \xE0 partir du fichier","Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput.":"Utilisez les \xE9tats bruts, qui sont mis \xE0 jour avec chaque message re\xE7u ou envoy\xE9 et peuvent \xEAtre utilis\xE9s pour envoyer vos propres messages. Cela permet l'utilisation dans les scripts, mais peut conduire \xE0 une charge plus \xE9lev\xE9e sur les syst\xE8mes avec un d\xE9bit de messages \xE9lev\xE9.","Use rtr flag":"Utiliser l'indicateur rtr","Add an additional Remote Transmission Request (rtr) state on each message.":"Ajoutez un \xE9tat suppl\xE9mentaire de demande de transmission \xE0 distance (rtr) sur chaque message.","Validation error:":"Erreur de validation:","Ignore this error and try to import":"Ignorez cette erreur et essayez d'importer","Import done":"Importation termin\xE9e","The downloaded index is not valid":"L'index t\xE9l\xE9charg\xE9 n'est pas valide",Copy:"Copie",Paste:"Ins\xE9rer","Message configuration copied. Use the paste button to paste this configuration to an other message.":"Configuration du message copi\xE9e. Utilisez le bouton Coller pour coller cette configuration dans un autre message.","Parser configuration copied. Use the paste button to paste this configuration to an other parser.":"Configuration de l'analyseur copi\xE9e. Utilisez le bouton Coller pour coller cette configuration dans un autre analyseur.","Nothing to paste. Please use the copy button first.":"Rien \xE0 ins\xE9rer. Veuillez d'abord utiliser le bouton de copie.",Pasted:"Ins\xE9r\xE9","Error while pasting: %s":"Erreur d'insertion: %s","Define possible states":"D\xE9finir les \xE9tats possibles","Setup a list of predefined state values":"Configurer une liste de valeurs d'\xE9tat pr\xE9d\xE9finies","Possible states":"\xC9tats possibles","Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto":"Liste s\xE9par\xE9e par des virgules des valeurs r\xE9elles et des valeurs d'affichage. Exemple: 0=D\xE9sactiv\xE9,1=Sur,2=Automatik","Invalid format! Please use the format value=text,value=text,...":"Format invalide! Veuillez utiliser le format value=text,value=text,\u2026",Role:"R\xF4le",'Select a suitable role for the ioBroker state or just use "state" if you are not sure.':`S\xE9lectionnez un r\xF4le appropri\xE9 pour l'\xE9tat ioBroker ou utilisez simplement "state" si vous n'\xEAtes pas s\xFBr.`,"Information about the state roles in ioBroker on GitHub":"Informations sur les r\xF4les d'\xE9tat dans ioBroker sur GitHub (En anglais)",License:"Licence","Automatically set a certain value":"D\xE9finir automatiquement une certaine valeur","Set a certain value automatically in a given interval":"D\xE9finir automatiquement une certaine valeur dans un intervalle donn\xE9","Interval for automatic set":"Intervalle pour r\xE9glage automatique","Interval in milliseconds to automatically set the value":"Intervalle en millisecondes pour d\xE9finir automatiquement la valeur","Value to set":"Valeur \xE0 d\xE9finir","The value to set automatically in the given interval (%s)":"La valeur \xE0 d\xE9finir automatiquement dans l'intervalle donn\xE9 (%s)","Trigger send":"D\xE9clencher l'envoi","Trigger the send action every time the value is set automatically":"D\xE9clenchez l'action d'envoi \xE0 chaque fois que la valeur est d\xE9finie automatiquement"}});var lse=_((Rvt,FVe)=>{FVe.exports={"canbus adapter settings":"Impostazioni dell'adattatore per canbus",Messages:"Messaggi",Interface:"Interfaccia","e.g.":"per esempio.","Auto add seen messages":"Aggiungi automaticamente i messaggi visti","Automatically add new messages to the list of our known messages when they are received.":"Aggiungi automaticamente nuovi messaggi all'elenco dei nostri messaggi conosciuti quando vengono ricevuti.","Delete unconfigured messages":"Elimina i messaggi non configurati","Delete all objects of unconfigured messages on adapter startup.":"Elimina tutti gli oggetti dei messaggi non configurati all'avvio dell'adattatore.","Only allowed chars: %s":"Solo caratteri consentiti: %s","Configured messages":"Messaggi configurati","Unconfigured messages":"Messaggi non configurati","Message ID":"ID messaggio",or:"o",Name:"Nome","My super message":"Il mio super messaggio",Receive:"Ricevere","Receive messages with the given ID":"Ricevi messaggi con l'ID fornito",Send:"Spedire","Send messages with the given ID":"Invia messaggi con l'ID fornito",Autosend:"Autosend","Automatically send the message when some data part changed":"Invia automaticamente il messaggio quando una parte dei dati \xE8 cambiata",Parsers:"Parsers","Must be a 3 or 8 char hex ID":"Deve essere un ID esadecimale di 3 o 8 caratteri","Parser ID":"ID parser",Temperature:"Temperatura","Data type":"Tipo di dati",Offset:"Compensare",Length:"Lunghezza",Encoding:"Codifica",Unit:"Unit\xE0","Boolean bitmask":"Maschera bit booleana","Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.":"Bitmask da applicare per rilevare / impostare un valore %s. Se non sono selezionati bit, qualsiasi valore di byte maggiore di 0 verr\xE0 interpretato come %s.","Boolean invert":"Inversione booleana","Invert the boolean value":"Inverti il \u200B\u200Bvalore booleano","This ID is reserved and can't be used":"Questo ID \xE8 riservato e non pu\xF2 essere utilizzato","There are some errors in you configuration. Please check!":"Ci sono alcuni errori nella tua configurazione. ","CAN message ID in hex":"ID messaggio CAN in esadecimale","loading...":"Caricamento in corso\u2026",Add:"Inserisci",Remove:"Rimuovere",Reload:"Ricaricare",General:"Generale",Message:"Messaggio","ID missing":"Documento d'identit\xE0 mancante","This ID is configured multiple times with this data length":"Questo ID viene configurato pi\xF9 volte con questa lunghezza di dati","Data length":"Lunghezza dei dati","Not set":"Non impostato","Optionally set a fixed data length for this message":"Facoltativamente, imposta una lunghezza dati fissa per questo messaggio","Remove this message?":"Rimuovere questo messaggio?","Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart.":"Sei sicuro di voler rimuovere questo messaggio? Ci\xF2 rimuover\xE0 anche tutti i suoi parser. Il messaggio verr\xE0 considerato non configurato e potrebbe essere eliminato al riavvio dell'adattatore.","Data type in the can message":"Tipo di dati nel messaggio CAN","Data type in ioBroker":"Tipo di dati in ioBroker","Custom script read":"Lettura dello script personalizzato","Custom script write":"Scrittura di script personalizzati","Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.":"Script per leggere il valore dal buffer. Il buffer \xE8 disponibile come %s e il valore deve essere scritto in %s.","Script to write the value to the buffer. The buffer is available as %s and the value as %s.":"Script per scrivere il valore nel buffer. Il buffer \xE8 disponibile come %s e il valore come %s.","Your configuration is invalid. Please check the settings marked in red.":"La tua configurazione non \xE8 valida. Si prega di verificare le impostazioni contrassegnate in rosso.","Use raw states":"Usa gli stati grezzi","Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput.":"Utilizza gli stati grezzi, che vengono aggiornati con ogni messaggio ricevuto o inviato e possono essere utilizzati per inviare i tuoi messaggi. Ci\xF2 consente l'utilizzo negli script, ma pu\xF2 comportare un carico maggiore sui sistemi con un elevato throughput dei messaggi.",and:"E","Use rtr flag":"Usa il flag rtr","Add an additional Remote Transmission Request (rtr) state on each message.":"Aggiungere uno stato aggiuntivo di richiesta di trasmissione remota (rtr) su ciascun messaggio.","Import / Export":"Importa/Esporta",Import:"Importare",Export:"Esportare","Using this import feature you are able to import message configurations to extend your existing configuration.":"Utilizzando questa funzione di importazione puoi importare configurazioni di messaggi per estendere la configurazione esistente.","You may use a predefined configuration from GitHub or upload a custom file.":"Puoi utilizzare una configurazione predefinita da GitHub o caricare un file personalizzato.","Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.":"Suggerimento: tutte le configurazioni sono fornite senza alcuna garanzia! A seconda del sistema collegato, l'invio di messaggi errati potrebbe danneggiare il sistema.","Fetch configurations from GitHub":"Recupera le configurazioni da GitHub","Overwrite existing messages on import":"Sovrascrivi i messaggi esistenti durante l'importazione","If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option.":"Se non selezionato, un'importazione aggiunger\xE0 semplicemente nuovi messaggi e parser e quelli che sono gi\xE0 stati definiti verranno ignorati. Un messaggio o un parser esistente \xE8 determinato dal suo UUID interno e non dall'ID. Se vuoi reimportare un file esportato per aggiornare la tua configurazione devi impostare questa opzione.","Show on GitHub":"Mostra su GitHub","Import from GitHub":"Importa da GitHub","Import from file":"Importa da file","Using this export feature you are able to export your message configurations.":"Usando questa funzione di esportazione puoi esportare le configurazioni dei tuoi messaggi.","The exported files can be shared or edited externally and reimported to update your configuration.":"I file esportati possono essere condivisi o modificati esternamente e reimportati per aggiornare la configurazione.","Export format":"Formato di esportazione","Select messages to export":"Seleziona i messaggi da esportare","If checked, you can select the configured messages you want to export. If not checked, all messages will be exported.":"Se selezionato, puoi selezionare i messaggi configurati che desideri esportare. Se non selezionato, tutti i messaggi verranno esportati.","Export to file":"Esporta su file","Failed to open file!":"Impossibile aprire il file!","Unsupported file type!":"Tipo di file non supportato!","File is empty!":"Il file \xE8 vuoto!","Error parsing file! %s":"Errore durante l'analisi del file! %S",Version:"Versione",Author:"Autore","Validation error:":"Errore di convalida:","Ignore this error and try to import":"Ignora questo errore e prova a importare","Import done":"Importazione completata","The downloaded index is not valid":"L'indice scaricato non \xE8 valido",Copy:"Copia",Paste:"Impasto","Message configuration copied. Use the paste button to paste this configuration to an other message.":"Configurazione del messaggio copiata. Utilizza il pulsante Incolla per incollare questa configurazione in un altro messaggio.","Parser configuration copied. Use the paste button to paste this configuration to an other parser.":"Configurazione del parser copiata. Utilizza il pulsante Incolla per incollare questa configurazione su un altro parser.","Nothing to paste. Please use the copy button first.":"Niente da incollare. Utilizza prima il pulsante Copia.",Pasted:"Incollato","Error while pasting: %s":"Errore durante l'incollaggio: %s","Define possible states":"Definire i possibili stati","Setup a list of predefined state values":"Imposta un elenco di valori di stato predefiniti","Possible states":"Stati possibili","Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto":"Elenco separato da virgole di valori reali e valori visualizzati. Esempio: 0=Off,1=On,2=Auto","Invalid format! Please use the format value=text,value=text,...":"Formato non valido! Si prega di utilizzare il formato valore=testo,valore=testo,...",Role:"Ruolo",'Select a suitable role for the ioBroker state or just use "state" if you are not sure.':'Seleziona un ruolo adatto per lo stato di ioBroker o utilizza semplicemente "stato" se non sei sicuro.',"Information about the state roles in ioBroker on GitHub":"Informazioni sui ruoli statali in ioBroker su GitHub",License:"Licenza","Automatically set a certain value":"Imposta automaticamente un determinato valore","Set a certain value automatically in a given interval":"Imposta automaticamente un determinato valore in un determinato intervallo","Interval for automatic set":"Intervallo per l'impostazione automatica","Interval in milliseconds to automatically set the value":"Intervallo in millisecondi per impostare automaticamente il valore","Value to set":"Valore da impostare","The value to set automatically in the given interval (%s)":"Il valore da impostare automaticamente nell'intervallo specificato (%s)","Trigger send":"Attiva l'invio","Trigger the send action every time the value is set automatically":"Attiva l'azione di invio ogni volta che il valore viene impostato automaticamente"}});var cse=_((Dvt,qVe)=>{qVe.exports={"canbus adapter settings":"Ajustes del adaptador para canbus",Messages:"Mensajes",Interface:"Interfaz","e.g.":"p.ej.","Auto add seen messages":"Agregar autom\xE1ticamente mensajes vistos","Automatically add new messages to the list of our known messages when they are received.":"Agrega autom\xE1ticamente nuevos mensajes a la lista de nuestros mensajes conocidos cuando se reciben.","Delete unconfigured messages":"Eliminar mensajes no configurados","Delete all objects of unconfigured messages on adapter startup.":"Elimine todos los objetos de los mensajes no configurados al iniciar el adaptador.","Only allowed chars: %s":"Solo caracteres permitidos: %s","Configured messages":"Mensajes configurados","Unconfigured messages":"Mensajes no configurados","Message ID":"ID de mensaje",or:"o",Name:"Nombre","My super message":"Mi super mensaje",Receive:"Recibir","Receive messages with the given ID":"Recibir mensajes con el ID proporcionado",Send:"Enviar","Send messages with the given ID":"Env\xEDa mensajes con el ID proporcionado",Autosend:"Autoenviar","Automatically send the message when some data part changed":"Env\xEDa autom\xE1ticamente el mensaje cuando cambia alguna parte de los datos",Parsers:"Analizadores","Must be a 3 or 8 char hex ID":"Debe ser un ID hexadecimal de 3 u 8 caracteres","Parser ID":"Id. Del analizador",Temperature:"Temperatura","Data type":"Tipo de datos",Offset:"Compensar",Length:"Longitud",Encoding:"Codificaci\xF3n",Unit:"Unidad","Boolean bitmask":"M\xE1scara de bits booleana","Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.":"M\xE1scara de bits para aplicar para detectar / establecer un valor %s. Si no se seleccionan bits, cualquier valor de byte mayor que 0 se interpretar\xE1 como %s.","Boolean invert":"Inversi\xF3n booleana","Invert the boolean value":"Invertir el valor booleano","This ID is reserved and can't be used":"Esta identificaci\xF3n est\xE1 reservada y no se puede usar","There are some errors in you configuration. Please check!":"Hay algunos errores en su configuraci\xF3n. ","CAN message ID in hex":"ID de mensaje CAN en hexadecimal","loading...":"cargando\u2026",Add:"A\xF1adir",Remove:"Eliminar",Reload:"Recargar",General:"General",Message:"Mensaje","ID missing":"Falta identificaci\xF3n","This ID is configured multiple times with this data length":"Esta ID se configura varias veces con esta longitud de datos","Data length":"Longitud de datos","Not set":"No establecido","Optionally set a fixed data length for this message":"Opcionalmente, establezca una longitud de datos fija para este mensaje.","Remove this message?":"\xBFEliminar este mensaje?","Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart.":"\xBFEst\xE1s seguro de que deseas eliminar este mensaje? Esto tambi\xE9n eliminar\xE1 todos sus analizadores. El mensaje se tratar\xE1 como no configurado y puede eliminarse al reiniciar el adaptador.","Data type in the can message":"Tipo de datos en el mensaje can.","Data type in ioBroker":"Tipo de datos en ioBroker","Custom script read":"Lectura de gui\xF3n personalizado","Custom script write":"Escritura de gui\xF3n personalizado","Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.":"Script para leer el valor del buffer. El b\xFAfer est\xE1 disponible como %s y el valor debe escribirse en %s.","Script to write the value to the buffer. The buffer is available as %s and the value as %s.":"Script para escribir el valor en el buffer. El b\xFAfer est\xE1 disponible como %s y el valor como %s.","Your configuration is invalid. Please check the settings marked in red.":"Su configuraci\xF3n no es v\xE1lida. Verifique la configuraci\xF3n marcada en rojo.","Use raw states":"Usar estados sin procesar","Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput.":"Utilice los estados sin formato, que se actualizan con cada mensaje recibido o enviado y se pueden utilizar para enviar sus propios mensajes. Esto permite el uso en scripts, pero puede generar una mayor carga en sistemas con un alto rendimiento de mensajes.",and:"y","Use rtr flag":"Usar bandera rtr","Add an additional Remote Transmission Request (rtr) state on each message.":"Agregue un estado de Solicitud de transmisi\xF3n remota (rtr) adicional en cada mensaje.","Import / Export":"Importar / Exportar",Import:"Importar",Export:"Exportar","Using this import feature you are able to import message configurations to extend your existing configuration.":"Al utilizar esta funci\xF3n de importaci\xF3n, puede importar configuraciones de mensajes para ampliar su configuraci\xF3n existente.","You may use a predefined configuration from GitHub or upload a custom file.":"Puede utilizar una configuraci\xF3n predefinida de GitHub o cargar un archivo personalizado.","Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.":"Sugerencia: \xA1Todas las configuraciones se proporcionan sin garant\xEDa alguna! Dependiendo del sistema conectado, enviar mensajes incorrectos puede da\xF1ar el sistema.","Fetch configurations from GitHub":"Obtener configuraciones de GitHub","Overwrite existing messages on import":"Sobrescribir mensajes existentes al importar","If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option.":"Si no se marca, una importaci\xF3n simplemente agregar\xE1 nuevos mensajes y analizadores y los que ya se han definido se ignoran. Un mensaje o analizador existente est\xE1 determinado por su UUID interno y no por su ID. Si desea volver a importar un archivo exportado para actualizar su configuraci\xF3n, debe configurar esta opci\xF3n.","Show on GitHub":"Mostrar en GitHub","Import from GitHub":"Importar desde GitHub","Import from file":"Importar desde archivo","Using this export feature you are able to export your message configurations.":"Con esta funci\xF3n de exportaci\xF3n, podr\xE1 exportar las configuraciones de sus mensajes.","The exported files can be shared or edited externally and reimported to update your configuration.":"Los archivos exportados se pueden compartir o editar externamente y volver a importar para actualizar su configuraci\xF3n.","Export format":"Formato de exportaci\xF3n","Select messages to export":"Seleccionar mensajes para exportar","If checked, you can select the configured messages you want to export. If not checked, all messages will be exported.":"Si est\xE1 marcado, puede seleccionar los mensajes configurados que desea exportar. Si no est\xE1 marcado, se exportar\xE1n todos los mensajes.","Export to file":"Exportar a archivo","Failed to open file!":"\xA1No se pudo abrir el archivo!","Unsupported file type!":"\xA1Tipo de archivo no admitido!","File is empty!":"\xA1El archivo est\xE1 vac\xEDo!","Error parsing file! %s":"\xA1Error al analizar el archivo! %s",Version:"Versi\xF3n",Author:"Autor","Validation error:":"Error de validaci\xF3n:","Ignore this error and try to import":"Ignora este error e intenta importar","Import done":"Importaci\xF3n realizada","The downloaded index is not valid":"El \xEDndice descargado no es v\xE1lido.",Copy:"Copiar",Paste:"Pasta","Message configuration copied. Use the paste button to paste this configuration to an other message.":"Configuraci\xF3n del mensaje copiada. Utilice el bot\xF3n pegar para pegar esta configuraci\xF3n en otro mensaje.","Parser configuration copied. Use the paste button to paste this configuration to an other parser.":"Se copi\xF3 la configuraci\xF3n del analizador. Utilice el bot\xF3n pegar para pegar esta configuraci\xF3n en otro analizador.","Nothing to paste. Please use the copy button first.":"Nada que pegar. Utilice primero el bot\xF3n Copiar.",Pasted:"Pegado","Error while pasting: %s":"Error al pegar: %s","Define possible states":"Definir posibles estados","Setup a list of predefined state values":"Configurar una lista de valores de estado predefinidos","Possible states":"Posibles estados","Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto":"Lista separada por comas de valores reales y valores de visualizaci\xF3n. Ejemplo: 0=Desactivado,1=Activado,2=Autom\xE1tico","Invalid format! Please use the format value=text,value=text,...":"\xA1Formato no v\xE1lido! Utilice el formato valor=texto,valor=texto,\u2026",Role:"Role",'Select a suitable role for the ioBroker state or just use "state" if you are not sure.':'Seleccione una funci\xF3n adecuada para el estado de ioBroker o simplemente utilice "estado" si no est\xE1 seguro.',"Information about the state roles in ioBroker on GitHub":"Informaci\xF3n sobre los roles estatales en ioBroker en GitHub",License:"Licencia","Automatically set a certain value":"Establecer autom\xE1ticamente un valor determinado","Set a certain value automatically in a given interval":"Establecer un determinado valor autom\xE1ticamente en un intervalo determinado","Interval for automatic set":"Intervalo para armado autom\xE1tico","Interval in milliseconds to automatically set the value":"Intervalo en milisegundos para establecer autom\xE1ticamente el valor","Value to set":"Valor a establecer","The value to set automatically in the given interval (%s)":"El valor que se establecer\xE1 autom\xE1ticamente en el intervalo dado (%s)","Trigger send":"Env\xEDo de disparador","Trigger the send action every time the value is set automatically":"Activa la acci\xF3n de env\xEDo cada vez que el valor se establece autom\xE1ticamente"}});var dse=_((Nvt,jVe)=>{jVe.exports={"canbus adapter settings":"Ustawienia adaptera dla canbus",Messages:"Wiadomo\u015Bci",Interface:"Ber\u0142o","e.g.":"na przyk\u0142ad","Auto add seen messages":"Automatyczne dodawanie wy\u015Bwietlonych wiadomo\u015Bci","Automatically add new messages to the list of our known messages when they are received.":"Automatycznie dodawaj nowe wiadomo\u015Bci do listy znanych wiadomo\u015Bci, gdy zostan\u0105 odebrane.","Delete unconfigured messages":"Usu\u0144 nieskonfigurowane wiadomo\u015Bci","Delete all objects of unconfigured messages on adapter startup.":"Usu\u0144 wszystkie obiekty nieskonfigurowanych komunikat\xF3w podczas uruchamiania adaptera.","Only allowed chars: %s":"Tylko dozwolone znaki: %s","Configured messages":"Skonfigurowane wiadomo\u015Bci","Unconfigured messages":"Nieskonfigurowane wiadomo\u015Bci","Message ID":"ID wiadomo\u015Bci","CAN message ID in hex":"Identyfikator wiadomo\u015Bci CAN w formacie szesnastkowym",or:"lub",Name:"Nazwa","My super message":"Moja super wiadomo\u015B\u0107",Receive:"Otrzyma\u0107","Receive messages with the given ID":"Odbieraj wiadomo\u015Bci z podanym identyfikatorem",Send:"Wys\u0142a\u0107","Send messages with the given ID":"Wysy\u0142aj wiadomo\u015Bci z podanym identyfikatorem",Autosend:"Automatyczne wysy\u0142anie","Automatically send the message when some data part changed":"Automatycznie wy\u015Blij wiadomo\u015B\u0107, gdy zmieni si\u0119 cz\u0119\u015B\u0107 danych",Parsers:"Parsery","Must be a 3 or 8 char hex ID":"Musi to by\u0107 identyfikator szesnastkowy sk\u0142adaj\u0105cy si\u0119 z 3 lub 8 znak\xF3w","Parser ID":"Identyfikator parsera",Temperature:"Temperatura","Data type":"Typ danych",Offset:"Przesuni\u0119cie",Length:"D\u0142ugo\u015B\u0107",Encoding:"Kodowanie",Unit:"Jednostka","Boolean bitmask":"Boolean bitmask","Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.":"Maska bitowa stosowana do wykrywania / ustawiania warto\u015Bci %s. Je\u015Bli nie wybrano \u017Cadnych bit\xF3w, ka\u017Cda warto\u015B\u0107 bajtu wi\u0119ksza ni\u017C 0 zostanie zinterpretowana jako %s.","Boolean invert":"Boolean invert","Invert the boolean value":"Odwr\xF3\u0107 warto\u015B\u0107 logiczn\u0105","This ID is reserved and can't be used":"Ten identyfikator jest zarezerwowany i nie mo\u017Cna go u\u017Cywa\u0107","There are some errors in you configuration. Please check!":"Konfiguracja zawiera b\u0142\u0119dy. ","loading...":"\u0141adowanie\u2026",Add:"Dodaj",Remove:"Usun\u0105\u0107",Reload:"Prze\u0142adowa\u0107",General:"G\u0142\xF3wne",Message:"Wiadomo\u015B\u0107",Import:"Import",Export:"Eksport","ID missing":"Brak identyfikatora","This ID is configured multiple times with this data length":"Ten identyfikator jest konfigurowany wielokrotnie przy tej d\u0142ugo\u015Bci danych","Data length":"D\u0142ugo\u015B\u0107 danych","Not set":"Nie ustawiono","Optionally set a fixed data length for this message":"Opcjonalnie ustaw sta\u0142\u0105 d\u0142ugo\u015B\u0107 danych dla tej wiadomo\u015Bci","Remove this message?":"Usun\u0105\u0107 t\u0119 wiadomo\u015B\u0107?","Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart.":"Czy na pewno chcesz usun\u0105\u0107 t\u0119 wiadomo\u015B\u0107? Spowoduje to r\xF3wnie\u017C usuni\u0119cie wszystkich parser\xF3w. Wiadomo\u015B\u0107 zostanie potraktowana jako nieskonfigurowana i mo\u017Ce zosta\u0107 usuni\u0119ta po ponownym uruchomieniu adaptera.","Data type in the can message":"Typ danych w komunikacie puszki","Data type in ioBroker":"Typ danych w ioBrokerze","Custom script read":"Odczyt niestandardowego skryptu","Custom script write":"Niestandardowy zapis skryptu","Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.":"Skrypt odczytuj\u0105cy warto\u015B\u0107 z bufora. Bufor jest dost\u0119pny jako %s, a warto\u015B\u0107 musi zosta\u0107 zapisana w %s.","Script to write the value to the buffer. The buffer is available as %s and the value as %s.":"Skrypt zapisuj\u0105cy warto\u015B\u0107 do bufora. Bufor jest dost\u0119pny jako %s, a warto\u015B\u0107 jako %s.","Your configuration is invalid. Please check the settings marked in red.":"Twoja konfiguracja jest nieprawid\u0142owa. Sprawd\u017A ustawienia zaznaczone na czerwono.","Use raw states":"U\u017Cyj stan\xF3w surowych","Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput.":"U\u017Cyj stan\xF3w surowych, kt\xF3re s\u0105 aktualizowane przy ka\u017Cdej otrzymanej lub wys\u0142anej wiadomo\u015Bci i mog\u0105 by\u0107 u\u017Cywane do wysy\u0142ania w\u0142asnych wiadomo\u015Bci. Umo\u017Cliwia to u\u017Cycie w skryptach, ale mo\u017Ce prowadzi\u0107 do wi\u0119kszego obci\u0105\u017Cenia system\xF3w o du\u017Cej przepustowo\u015Bci wiadomo\u015Bci.",and:"I","Use rtr flag":"U\u017Cyj flagi rtr","Add an additional Remote Transmission Request (rtr) state on each message.":"Dodaj dodatkowy stan \u017C\u0105dania zdalnej transmisji (rtr) do ka\u017Cdej wiadomo\u015Bci.","Import / Export":"Importuj / Eksportuj","Using this import feature you are able to import message configurations to extend your existing configuration.":"Korzystaj\u0105c z tej funkcji importowania, mo\u017Cesz importowa\u0107 konfiguracje wiadomo\u015Bci w celu rozszerzenia istniej\u0105cej konfiguracji.","You may use a predefined configuration from GitHub or upload a custom file.":"Mo\u017Cesz u\u017Cy\u0107 predefiniowanej konfiguracji z GitHuba lub przes\u0142a\u0107 niestandardowy plik.","Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.":"Wskaz\xF3wka: wszystkie konfiguracje s\u0105 dostarczane bez \u017Cadnej gwarancji! W zale\u017Cno\u015Bci od pod\u0142\u0105czonego systemu wys\u0142anie nieprawid\u0142owych wiadomo\u015Bci mo\u017Ce spowodowa\u0107 uszkodzenie systemu.","Fetch configurations from GitHub":"Pobierz konfiguracje z GitHub","Overwrite existing messages on import":"Zast\u0105p istniej\u0105ce wiadomo\u015Bci podczas importu","If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option.":"Je\u015Bli nie jest zaznaczone, import po prostu doda nowe wiadomo\u015Bci i parsery, a te, kt\xF3re zosta\u0142y ju\u017C zdefiniowane, zostan\u0105 zignorowane. Istniej\u0105ca wiadomo\u015B\u0107 lub analizator sk\u0142adni jest okre\u015Blany na podstawie wewn\u0119trznego identyfikatora UUID, a nie identyfikatora. Je\u015Bli chcesz ponownie zaimportowa\u0107 wyeksportowany plik w celu aktualizacji konfiguracji, musisz ustawi\u0107 t\u0119 opcj\u0119.","Show on GitHub":"Poka\u017C na GitHubie","Import from GitHub":"Importuj z GitHuba","Import from file":"Importuj z pliku","Using this export feature you are able to export your message configurations.":"Korzystaj\u0105c z tej funkcji eksportu, mo\u017Cesz wyeksportowa\u0107 konfiguracje wiadomo\u015Bci.","The exported files can be shared or edited externally and reimported to update your configuration.":"Wyeksportowane pliki mo\u017Cna udost\u0119pnia\u0107 lub edytowa\u0107 na zewn\u0105trz i ponownie importowa\u0107 w celu aktualizacji konfiguracji.","Export format":"Format eksportu","Select messages to export":"Wybierz wiadomo\u015Bci do wyeksportowania","If checked, you can select the configured messages you want to export. If not checked, all messages will be exported.":"Je\u015Bli zaznaczone, mo\u017Cesz wybra\u0107 skonfigurowane wiadomo\u015Bci, kt\xF3re chcesz wyeksportowa\u0107. Je\u015Bli nie jest zaznaczone, wszystkie wiadomo\u015Bci zostan\u0105 wyeksportowane.","Export to file":"Eksportuj do pliku","Failed to open file!":"Nie uda\u0142o si\u0119 otworzy\u0107 pliku!","Unsupported file type!":"Nieobs\u0142ugiwany typ pliku!","File is empty!":"Plik jest pusty!","Error parsing file! %s":"B\u0142\u0105d podczas analizowania pliku! %S",Version:"Wersja",Author:"Autor","Validation error:":"B\u0142\u0105d walidacji:","Ignore this error and try to import":"Zignoruj \u200B\u200Bten b\u0142\u0105d i spr\xF3buj zaimportowa\u0107","Import done":"Import zako\u0144czony","The downloaded index is not valid":"Pobrany indeks jest nieprawid\u0142owy",Copy:"Kopia",Paste:"Pasta","Message configuration copied. Use the paste button to paste this configuration to an other message.":"Konfiguracja wiadomo\u015Bci zosta\u0142a skopiowana. U\u017Cyj przycisku wklej, aby wklei\u0107 t\u0119 konfiguracj\u0119 do innej wiadomo\u015Bci.","Parser configuration copied. Use the paste button to paste this configuration to an other parser.":"Konfiguracja parsera zosta\u0142a skopiowana. U\u017Cyj przycisku wklejania, aby wklei\u0107 t\u0119 konfiguracj\u0119 do innego analizatora sk\u0142adni.","Nothing to paste. Please use the copy button first.":"Nie ma nic do wklejenia. Najpierw u\u017Cyj przycisku kopiowania.",Pasted:"Wklejony","Error while pasting: %s":"B\u0142\u0105d podczas wklejania: %s","Define possible states":"Zdefiniuj mo\u017Cliwe stany","Setup a list of predefined state values":"Skonfiguruj list\u0119 predefiniowanych warto\u015Bci stanu","Possible states":"Mo\u017Cliwe stany","Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto":"Rozdzielana przecinkami lista warto\u015Bci rzeczywistych i warto\u015Bci wy\u015Bwietlanych. Przyk\u0142ad: 0=Wy\u0142.,1=W\u0142.,2=Auto","Invalid format! Please use the format value=text,value=text,...":"Nieprawid\u0142owy format! Prosz\u0119 u\u017Cywa\u0107 formatu warto\u015B\u0107=tekst, warto\u015B\u0107=tekst,\u2026",Role:"Rola",'Select a suitable role for the ioBroker state or just use "state" if you are not sure.':"Wybierz odpowiedni\u0105 rol\u0119 dla stanu ioBroker lub po prostu u\u017Cyj \u201Estanu\u201D, je\u015Bli nie jeste\u015B pewien.","Information about the state roles in ioBroker on GitHub":"Informacje o rolach stanu w ioBroker na GitHub",License:"Licencja","Automatically set a certain value":"Automatycznie ustaw okre\u015Blon\u0105 warto\u015B\u0107","Set a certain value automatically in a given interval":"Ustawia automatycznie okre\u015Blon\u0105 warto\u015B\u0107 w zadanym przedziale","Interval for automatic set":"Interwa\u0142 automatycznego za\u0142\u0105czenia","Interval in milliseconds to automatically set the value":"Interwa\u0142 w milisekundach, aby automatycznie ustawi\u0107 warto\u015B\u0107","Value to set":"Warto\u015B\u0107 do ustawienia","The value to set automatically in the given interval (%s)":"Warto\u015B\u0107 ustawiana automatycznie w zadanym przedziale (%s)","Trigger send":"Wyzwalanie wysy\u0142ania","Trigger the send action every time the value is set automatically":"Wyzwalaj akcj\u0119 wysy\u0142ania za ka\u017Cdym razem, gdy warto\u015B\u0107 jest ustawiana automatycznie"}});var pse=_((Avt,LVe)=>{LVe.exports={"canbus adapter settings":"canbus\u7684\u9002\u914D\u5668\u8BBE\u7F6E",Messages:"\u4FE1\u606F\u5185\u5BB9",Interface:"\u63A5\u53E3","e.g.":"\u4F8B\u5982","Auto add seen messages":"\u81EA\u52A8\u6DFB\u52A0\u770B\u5230\u7684\u6D88\u606F","Automatically add new messages to the list of our known messages when they are received.":"\u6536\u5230\u65B0\u6D88\u606F\u540E\uFF0C\u5C06\u5B83\u4EEC\u81EA\u52A8\u6DFB\u52A0\u5230\u6211\u4EEC\u7684\u5DF2\u77E5\u6D88\u606F\u5217\u8868\u4E2D\u3002","Delete unconfigured messages":"\u5220\u9664\u672A\u914D\u7F6E\u7684\u6D88\u606F","Delete all objects of unconfigured messages on adapter startup.":"\u9002\u914D\u5668\u542F\u52A8\u65F6\u5220\u9664\u6240\u6709\u672A\u914D\u7F6E\u6D88\u606F\u7684\u5BF9\u8C61\u3002","Only allowed chars: %s":"\u4EC5\u5141\u8BB8\u7684\u5B57\u7B26\uFF1A%s","Configured messages":"\u914D\u7F6E\u7684\u6D88\u606F","Unconfigured messages":"\u672A\u914D\u7F6E\u7684\u6D88\u606F","Message ID":"\u8BAF\u606F\u7F16\u53F7","CAN message ID in hex":"\u5341\u516D\u8FDB\u5236\u7684CAN\u6D88\u606FID",or:"\u6216",Name:"\u540D\u79F0","My super message":"\u6211\u7684\u8D85\u7EA7\u8BAF\u606F",Receive:"\u63A5\u6536","Receive messages with the given ID":"\u63A5\u6536\u5177\u6709\u7ED9\u5B9AID\u7684\u6D88\u606F",Send:"\u53D1\u9001","Send messages with the given ID":"\u53D1\u9001\u5177\u6709\u7ED9\u5B9AID\u7684\u6D88\u606F",Autosend:"\u81EA\u52A8\u53D1\u9001","Automatically send the message when some data part changed":"\u67D0\u4E9B\u6570\u636E\u90E8\u5206\u66F4\u6539\u65F6\u81EA\u52A8\u53D1\u9001\u6D88\u606F",Parsers:"\u89E3\u6790\u5668","Must be a 3 or 8 char hex ID":"\u5FC5\u987B\u4E3A3\u62168\u4E2A\u5B57\u7B26\u7684\u5341\u516D\u8FDB\u5236ID","Parser ID":"\u89E3\u6790\u5668ID",Temperature:"\u6E29\u5EA6","Data type":"\u6570\u636E\u7C7B\u578B",Offset:"\u504F\u79FB\u91CF",Length:"\u957F\u5EA6",Encoding:"\u7F16\u7801\u65B9\u5F0F",Unit:"\u5355\u5143","Boolean bitmask":"\u5E03\u5C14\u4F4D\u63A9\u7801","Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.":"\u7528\u4E8E\u68C0\u6D4B/\u8BBE\u7F6E%s\u503C\u7684\u4F4D\u63A9\u7801\u3002\u5982\u679C\u672A\u9009\u62E9\u4EFB\u4F55\u4F4D\uFF0C\u5219\u4EFB\u4F55\u5927\u4E8E0\u7684\u5B57\u8282\u503C\u90FD\u5C06\u88AB\u89E3\u91CA\u4E3A%s\u3002","Boolean invert":"\u5E03\u5C14\u53CD\u8F6C","Invert the boolean value":"\u53CD\u8F6C\u5E03\u5C14\u503C","This ID is reserved and can't be used":"\u6B64ID\u5DF2\u4FDD\u7559\uFF0C\u65E0\u6CD5\u4F7F\u7528","There are some errors in you configuration. Please check!":"\u60A8\u7684\u914D\u7F6E\u4E2D\u5B58\u5728\u4E00\u4E9B\u9519\u8BEF\u3002\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\uFF01","loading...":"\u8F7D\u5165\u4E2D\u2026",Add:"\u6DFB\u52A0",Remove:"\u79FB\u9664",Reload:"\u91CD\u88C5",General:"\u901A\u7528",Message:"\u4FE1\u606F","This ID is configured multiple times with this data length":"\u8FD9\u4E2A\u6570\u636E\u957F\u5EA6\u7684ID\u5DF2\u91CD\u590D\u8BBE\u7F6E","Custom script write":"\u81EA\u5B9A\u4E49\u5199\u5165\u811A\u672C","Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.":"\u63D0\u793A\uFF1A\u6240\u6709\u7684\u914D\u7F6E\u6587\u4EF6\u4E0D\u542B\u6709\u4EFB\u4F55\u4FDD\u969C\uFF01\u89C6\u8FDE\u63A5\u7684\u7CFB\u7EDF\u800C\u5F02\uFF0C\u53D1\u9001\u9519\u8BEF\u7684\u6D88\u606F\u53EF\u80FD\u4F1A\u5BFC\u81F4\u7CFB\u7EDF\u53D7\u635F\u3002","Export to file":"\u5BFC\u51FA\u5230\u6587\u4EF6","If checked, you can select the configured messages you want to export. If not checked, all messages will be exported.":"\u5982\u679C\u9009\u5B9A\u8BE5\u9009\u9879\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u4F60\u9700\u8981\u5BFC\u51FA\u7684\u6D88\u606F\u3002\u53CD\u4E4B\u6240\u6709\u6D88\u606F\u90FD\u4F1A\u88AB\u5BFC\u51FA\u3002","Ignore this error and try to import":"\u5FFD\u7565\u8FD9\u4E2A\u9519\u8BEF\u5E76\u7EE7\u7EED\u5C1D\u8BD5\u5BFC\u5165","Import done":"\u5BFC\u5165\u5B8C\u6210","The downloaded index is not valid":"\u4E0B\u8F7D\u76EE\u5F55\u4E0D\u53EF\u7528","Validation error:":"\u9A8C\u8BC1\u9519\u8BEF\uFF1A",Paste:"\u9ECF\u8D34","Message configuration copied. Use the paste button to paste this configuration to an other message.":"\u6D88\u606F\u914D\u7F6E\u5DF2\u590D\u5236\uFF0C\u4F7F\u7528\u9ECF\u8D34\u6309\u94AE\u4EE5\u5C06\u8BE5\u914D\u7F6E\u5E94\u7528\u5230\u53E6\u4E00\u4E2A\u6D88\u606F\u3002",Pasted:"\u4EE5\u9ECF\u8D34",Copy:"\u590D\u5236","Possible states":"\u53EF\u80FD\u7684\u72B6\u6001","Define possible states":"\u5B9A\u4E49\u53EF\u80FD\u7684\u72B6\u6001","Setup a list of predefined state values":"\u8BBE\u7F6E\u4E00\u4E2A\u9884\u5B9A\u4E49\u72B6\u6001\u53D8\u91CF\u5217\u8868",License:"\u8BB8\u53EF\u8BC1","Using this import feature you are able to import message configurations to extend your existing configuration.":"\u4F7F\u7528\u8FD9\u4E2A\u5BFC\u5165\u529F\u80FD\u4EE5\u4F7F\u7528\u5DF2\u6709\u7684\u4FE1\u606F\u914D\u7F6E\u6765\u62D3\u5C55\u4F60\u7684\u914D\u7F6E\u6587\u4EF6\u3002","You may use a predefined configuration from GitHub or upload a custom file.":"\u4F60\u53EF\u4EE5\u4ECEGitHub\u4E0A\u83B7\u53D6\u5230\u9884\u914D\u7F6E\u6587\u4EF6\u6216\u8005\u4E0A\u4F20\u4E00\u4E2A\u81EA\u5B9A\u4E49\u914D\u7F6E\u6587\u4EF6\u3002","Import / Export":"\u5BFC\u5165/\u5BFC\u51FA","Import from file":"\u4ECE\u6587\u4EF6\u4E2D\u5BFC\u5165",Import:"\u5BFC\u5165",Export:"\u5BFC\u51FA","Using this export feature you are able to export your message configurations.":"\u901A\u8FC7\u8FD9\u4E2A\u5BFC\u51FA\u529F\u80FD\u4EE5\u5BFC\u51FA\u5DF2\u6709\u7684\u6D88\u606F\u914D\u7F6E\u3002","Data type in the can message":"CAN\u4FE1\u606F\u4E2D\u7684\u6570\u636E\u7C7B\u578B","Data type in ioBroker":"ioBroker\u4E2D\u7684\u6570\u636E\u7C7B\u578B","Overwrite existing messages on import":"\u5BFC\u5165\u65F6\u8986\u76D6\u5DF2\u6709\u7684\u6D88\u606F","Export format":"\u5BFC\u51FA\u683C\u5F0F","Interval for automatic set":"\u81EA\u52A8\u8BBE\u7F6E\u95F4\u9694","Trigger send":"\u4E2D\u65AD\u5DF2\u53D1\u9001","The value to set automatically in the given interval (%s)":"\u53D8\u91CF\u5728\u7ED9\u5B9A\u95F4\u9694\u65F6\u95F4\u5185\u5C06\u81EA\u52A8\u8BBE\u7F6E\uFF08%s\uFF09","Value to set":"\u8BBE\u7F6E\u7684\u6570\u503C","Interval in milliseconds to automatically set the value":"\u81EA\u52A8\u8BBE\u7F6E\u6570\u503C\u7684\u95F4\u9694\uFF08\u6BEB\u79D2\uFF09","Use raw states":"\u4F7F\u7528\u539F\u59CB\u72B6\u6001","ID missing":"\u4E22\u5931\u7684ID","Not set":"\u672A\u8BBE\u7F6E","Data length":"\u6570\u636E\u957F\u5EA6","Remove this message?":"\u79FB\u9664\u8FD9\u6761\u4FE1\u606F\uFF1F","Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.":"\u4ECE\u7F13\u5B58\u4E2D\u8BFB\u53D6\u6570\u636E\u7684\u811A\u672C\u3002\u7F13\u5B58\u5927\u5C0F\u4E3A%s\u4E14\u6570\u636E\u5C06\u88AB\u5199\u5165%s\u3002","Script to write the value to the buffer. The buffer is available as %s and the value as %s.":"\u4ECE\u7F13\u5B58\u4E2D\u5199\u5165\u6570\u636E\u7684\u811A\u672C\u3002\u7F13\u5B58\u5927\u5C0F\u4E3A%s\u4E14\u6570\u636E\u5C06\u4ECE%s\u8BFB\u53D6\u3002","Your configuration is invalid. Please check the settings marked in red.":"\u4F60\u7684\u914D\u7F6E\u65E0\u6548\uFF0C\u8BF7\u68C0\u67E5\u6807\u7EA2\u7684\u8BBE\u7F6E\u3002",and:"\u548C","Custom script read":"\u81EA\u5B9A\u4E49\u8BFB\u53D6\u811A\u672C","Use rtr flag":"\u4F7F\u7528\u8FDC\u7A0B\u900F\u4F20\u8BF7\u6C42","Fetch configurations from GitHub":"\u4ECEGitHub\u4E2D\u4E0B\u8F7D\u914D\u7F6E\u6587\u4EF6","Show on GitHub":"\u5728GitHub\u4E2D\u67E5\u770B","Import from GitHub":"\u4ECEGitHub\u4E2D\u5BFC\u5165","Select messages to export":"\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u6D88\u606F","Unsupported file type!":"\u4E0D\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B\uFF01","File is empty!":"\u6587\u4EF6\u662F\u7A7A\u7684\uFF01","Failed to open file!":"\u65E0\u6CD5\u6253\u5F00\u6587\u4EF6\uFF01",Version:"\u7248\u672C",Author:"\u4F5C\u8005","Nothing to paste. Please use the copy button first.":"\u65E0\u6CD5\u9ECF\u8D34\uFF0C\u8BF7\u5148\u4F7F\u7528\u590D\u5236\u6309\u94AE\u3002","Error parsing file! %s":"\u65E0\u6CD5\u683C\u5F0F\u5316%s\uFF01","Invalid format! Please use the format value=text,value=text,...":"\u683C\u5F0F\u65E0\u6548\uFF01",Role:"\u89D2\u8272","Optionally set a fixed data length for this message":"\u4E3A\u8FD9\u6761\u4FE1\u606F\u8BBE\u7F6E\u4E00\u4E2A\u53EF\u9009\u7684\u56FA\u5B9A\u957F\u5EA6","Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart.":"\u4F60\u786E\u5B9A\u8981\u79FB\u9664\u8FD9\u6761\u4FE1\u606F\u5417\uFF1F\u8FD9\u56DE\u4E00\u5E76\u79FB\u9664\u5176\u6240\u6709\u53C2\u6570\u3002\u8FD9\u6761\u4FE1\u606F\u4F1A\u88AB\u7CFB\u7EDF\u8BA4\u5B9A\u4E3A\u672A\u914D\u7F6E\u7684\u4FE1\u606F\u5E76\u4E14\u5728\u9002\u914D\u5668\u91CD\u542F\u540E\u53EF\u4EE5\u5B89\u5168\u79FB\u9664\u3002","Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput.":"\u4F7F\u7528\u968F\u7740\u6D88\u606F\u4F20\u9012\u800C\u66F4\u65B0\u4E14\u5728\u81EA\u5B9A\u4E49\u6D88\u606F\u4E2D\u53EF\u7528\u7684\u539F\u59CB\u72B6\u6001\u3002\u8FD9\u4F7F\u5F97\u5176\u5728\u811A\u672C\u4E2D\u53EF\u7528\uFF0C\u4F46\u5728\u6D88\u606F\u5BC6\u96C6\u662F\u9020\u6210\u8F83\u9AD8\u7684\u7CFB\u7EDF\u8D1F\u8F7D\u3002","Add an additional Remote Transmission Request (rtr) state on each message.":"\u5728\u6BCF\u6761\u6D88\u606F\u4E2D\u6DFB\u52A0\u8FDC\u7A0B\u4F20\u8F93\u8BF7\u6C42\u3002","If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option.":"\u5982\u679C\u672A\u9009\u4E2D\uFF0C\u5BFC\u5165\u5C06\u4EC5\u6DFB\u52A0\u65B0\u6D88\u606F\u548C\u89E3\u6790\u5668\uFF0C\u800C\u5DF2\u5B9A\u4E49\u7684\u6D88\u606F\u548C\u89E3\u6790\u5668\u5C06\u88AB\u5FFD\u7565\u3002\u73B0\u6709\u6D88\u606F\u6216\u89E3\u6790\u5668\u7531\u5176\u5185\u90E8 UUID \u800C\u4E0D\u662F ID \u786E\u5B9A\u3002\u5982\u679C\u60A8\u60F3\u91CD\u65B0\u5BFC\u5165\u5BFC\u51FA\u7684\u6587\u4EF6\u4EE5\u66F4\u65B0\u914D\u7F6E\uFF0C\u5219\u5FC5\u987B\u8BBE\u7F6E\u6B64\u9009\u9879\u3002","The exported files can be shared or edited externally and reimported to update your configuration.":"\u5BFC\u51FA\u7684\u6587\u4EF6\u53EF\u4EE5\u5728\u5916\u90E8\u5171\u4EAB\u6216\u7F16\u8F91\uFF0C\u7136\u540E\u91CD\u65B0\u5BFC\u5165\u4EE5\u66F4\u65B0\u60A8\u7684\u914D\u7F6E\u3002","Parser configuration copied. Use the paste button to paste this configuration to an other parser.":"\u5DF2\u590D\u5236\u89E3\u6790\u5668\u914D\u7F6E\u3002\u4F7F\u7528\u7C98\u8D34\u6309\u94AE\u5C06\u6B64\u914D\u7F6E\u7C98\u8D34\u5230\u5176\u4ED6\u89E3\u6790\u5668\u3002","Error while pasting: %s":"\u7C98\u8D34\u65F6\u51FA\u9519\uFF1A%s","Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto":"\u9017\u53F7\u5206\u9694\u7684\u5B9E\u9645\u503C\u548C\u663E\u793A\u503C\u5217\u8868\u3002\u793A\u4F8B\uFF1A0=\u5173\u95ED\uFF0C1=\u6253\u5F00\uFF0C2=\u81EA\u52A8",'Select a suitable role for the ioBroker state or just use "state" if you are not sure.':"\u4E3A ioBroker \u72B6\u6001\u9009\u62E9\u5408\u9002\u7684\u89D2\u8272\uFF0C\u6216\u8005\u5982\u679C\u60A8\u4E0D\u786E\u5B9A\uFF0C\u5219\u4EC5\u4F7F\u7528\u201C\u72B6\u6001\u201D\u3002","Information about the state roles in ioBroker on GitHub":"GitHub \u4E0A\u6709\u5173 ioBroker \u4E2D\u72B6\u6001\u89D2\u8272\u7684\u4FE1\u606F","Automatically set a certain value":"\u81EA\u52A8\u8BBE\u7F6E\u67D0\u4E2A\u503C","Set a certain value automatically in a given interval":"\u5728\u7ED9\u5B9A\u7684\u65F6\u95F4\u95F4\u9694\u5185\u81EA\u52A8\u8BBE\u7F6E\u67D0\u4E2A\u503C","Trigger the send action every time the value is set automatically":"\u6BCF\u6B21\u81EA\u52A8\u8BBE\u7F6E\u503C\u65F6\u89E6\u53D1\u53D1\u9001\u64CD\u4F5C"}});var vB=q(z()),yse=q(jr()),_se=q(Up()),bse=q(jR()),Sse=q(zR());function VS(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?VS=function(r){return typeof r}:VS=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},VS(t)}function Tt(t,e,r){var n=r.value;if(typeof n!="function")throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(VS(n)));var o=!1;return{configurable:!0,get:function(){if(o||this===t.prototype||this.hasOwnProperty(e)||typeof n!="function")return n;var i=n.bind(this);return o=!0,Object.defineProperty(this,e,{configurable:!0,get:function(){return i},set:function(u){n=u,delete this[e]}}),o=!1,i},set:function(i){n=i}}}var Z_=q(z()),fse=q(Up()),mse=q(Uee()),hse=q(_o());var zee=Object.prototype.toString;function zq(t){switch(zee.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Wee(t,Error)}}function bWe(t,e){return zee.call(t)===`[object ${e}]`}function Wq(t){return bWe(t,"Object")}function $q(t){return!!(t&&t.then&&typeof t.then=="function")}function Wee(t,e){try{return t instanceof e}catch(r){return!1}}var Ls="8.36.0";var kn=globalThis;function Dm(t,e,r){let n=r||kn,o=n.__SENTRY__=n.__SENTRY__||{},a=o[Ls]=o[Ls]||{};return a[t]||(a[t]=e())}var Nm=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;var SWe="Sentry Logger ",Hq=["debug","info","warn","error","log","assert","trace"],Gq={};function y_(t){if(!("console"in kn))return t();let e=kn.console,r={},n=Object.keys(Gq);n.forEach(o=>{let a=Gq[o];r[o]=e[o],e[o]=a});try{return t()}finally{n.forEach(o=>{e[o]=r[o]})}}function EWe(){let t=!1,e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return Nm?Hq.forEach(r=>{e[r]=(...n)=>{t&&y_(()=>{kn.console[r](`${SWe}[${r}]:`,...n)})}}):Hq.forEach(r=>{e[r]=()=>{}}),e}var en=Dm("logger",EWe);var TWe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function wWe(t){return t==="http"||t==="https"}function Vq(t,e=!1){let{host:r,path:n,pass:o,port:a,projectId:i,protocol:s,publicKey:u}=t;return`${s}://${u}${e&&o?`:${o}`:""}@${r}${a?`:${a}`:""}/${n&&`${n}/`}${i}`}function $ee(t){let e=TWe.exec(t);if(!e){y_(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}let[r,n,o="",a="",i="",s=""]=e.slice(1),u="",l=s,c=l.split("/");if(c.length>1&&(u=c.slice(0,-1).join("/"),l=c.pop()),l){let p=l.match(/^\d+/);p&&(l=p[0])}return Hee({host:a,pass:o,path:u,projectId:l,port:i,protocol:r,publicKey:n})}function Hee(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function xWe(t){if(!Nm)return!0;let{port:e,projectId:r,protocol:n}=t;return["protocol","publicKey","host","projectId"].find(i=>t[i]?!1:(en.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:r.match(/^\d+$/)?wWe(n)?e&&isNaN(parseInt(e,10))?(en.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(en.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(en.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function Kq(t){let e=typeof t=="string"?$ee(t):Hee(t);if(!(!e||!xWe(e)))return e}function sC(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch(n){Nm&&en.log(`Failed to add non-enumerable property "${e}" to object`,t)}}var Gee=1e3;function uC(){return Date.now()/Gee}function CWe(){let{performance:t}=kn;if(!t||!t.now)return uC;let e=Date.now()-t.now(),r=t.timeOrigin==null?e:t.timeOrigin;return()=>(r+t.now())/Gee}var Yq=CWe(),__,IWe=(()=>{let{performance:t}=kn;if(!t||!t.now){__="none";return}let e=3600*1e3,r=t.now(),n=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,a=oMath.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(r=()=>{let n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch(n){}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function lC(){return{traceId:ki(),spanId:ki().substring(16)}}function ud(){return b_(kn),kn}function b_(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||Ls,e[Ls]=e[Ls]||{}}function Vee(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Yq(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:ki()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{let r=t.timestamp-t.started;t.duration=r>=0?r:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}var Jq="_sentrySpan";function Xq(t,e){e?sC(t,Jq,e):delete t[Jq]}function Zq(t){return t[Jq]}var AWe=100,Qq=class t{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=lC()}clone(){let e=new t;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,Xq(e,Zq(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Vee(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,r){return this._tags={...this._tags,[e]:r},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,r){return this._extra={...this._extra,[e]:r},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,r){return r===null?delete this._contexts[e]:this._contexts[e]=r,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let r=typeof e=="function"?e(this):e,[n,o]=r instanceof Pi?[r.getScopeData(),r.getRequestSession()]:Wq(r)?[e,e.requestSession]:[],{tags:a,extra:i,user:s,contexts:u,level:l,fingerprint:c=[],propagationContext:p}=n||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...i},this._contexts={...this._contexts,...u},s&&Object.keys(s).length&&(this._user=s),l&&(this._level=l),c.length&&(this._fingerprint=c),p&&(this._propagationContext=p),o&&(this._requestSession=o),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Xq(this,void 0),this._attachments=[],this._propagationContext=lC(),this._notifyScopeListeners(),this}addBreadcrumb(e,r){let n=typeof r=="number"?r:AWe;if(n<=0)return this;let o={timestamp:uC(),...e},a=this._breadcrumbs;return a.push(o),this._breadcrumbs=a.length>n?a.slice(-n):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Zq(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,r){let n=r&&r.event_id?r.event_id:ki();if(!this._client)return en.warn("No client configured on scope - will not capture exception!"),n;let o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...r,event_id:n},this),n}captureMessage(e,r,n){let o=n&&n.event_id?n.event_id:ki();if(!this._client)return en.warn("No client configured on scope - will not capture message!"),o;let a=new Error(e);return this._client.captureMessage(e,r,{originalException:e,syntheticException:a,...n,event_id:o},this),o}captureEvent(e,r){let n=r&&r.event_id?r.event_id:ki();return this._client?(this._client.captureEvent(e,{...r,event_id:n},this),n):(en.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}},Pi=Qq;function Kee(){return Dm("defaultCurrentScope",()=>new Pi)}function Yee(){return Dm("defaultIsolationScope",()=>new Pi)}var ej=class{constructor(e,r){let n;e?n=e:n=new Pi;let o;r?o=r:o=new Pi,this._stack=[{scope:n}],this._isolationScope=o}withScope(e){let r=this._pushScope(),n;try{n=e(r)}catch(o){throw this._popScope(),o}return $q(n)?n.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Am(){let t=ud(),e=b_(t);return e.stack=e.stack||new ej(Kee(),Yee())}function MWe(t){return Am().withScope(t)}function FWe(t,e){let r=Am();return r.withScope(()=>(r.getStackTop().scope=t,e(t)))}function Jee(t){return Am().withScope(()=>t(Am().getIsolationScope()))}function Xee(){return{withIsolationScope:Jee,withScope:MWe,withSetScope:FWe,withSetIsolationScope:(t,e)=>Jee(e),getCurrentScope:()=>Am().getScope(),getIsolationScope:()=>Am().getIsolationScope()}}function cC(t){let e=b_(t);return e.acs?e.acs:Xee()}function ld(){let t=ud();return cC(t).getCurrentScope()}function dC(){let t=ud();return cC(t).getIsolationScope()}function pC(...t){let e=ud(),r=cC(e);if(t.length===2){let[n,o]=t;return n?r.withSetScope(n,o):r.withScope(o)}return r.withScope(t[0])}function Mm(){return ld().getClient()}function Zee(t){if(t)return qWe(t)?{captureContext:t}:LWe(t)?{captureContext:t}:t}function qWe(t){return t instanceof Pi||typeof t=="function"}var jWe=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function LWe(t){return Object.keys(t).some(e=>jWe.includes(e))}function fC(t,e){return ld().captureException(t,Zee(e))}function mC(){return dC().lastEventId()}function BWe(t){let e=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${e}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}function tj(t,e){let r=Kq(t);if(!r)return"";let n=`${BWe(r)}embed/error-page/`,o=`dsn=${Vq(r)}`;for(let a in e)if(a!=="dsn"&&a!=="onClose")if(a==="user"){let i=e.user;if(!i)continue;i.name&&(o+=`&name=${encodeURIComponent(i.name)}`),i.email&&(o+=`&email=${encodeURIComponent(i.email)}`)}else o+=`&${encodeURIComponent(a)}=${encodeURIComponent(e[a])}`;return`${n}?${o}`}var cd=kn;var hC=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;function gC(t={}){if(!cd.document){hC&&en.error("Global document not defined in showReportDialog call");return}let e=ld(),r=e.getClient(),n=r&&r.getDsn();if(!n){hC&&en.error("DSN not configured for showReportDialog call");return}if(e&&(t.user={...e.getUser(),...t.user}),!t.eventId){let s=mC();s&&(t.eventId=s)}let o=cd.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=tj(n,t),t.onLoad&&(o.onload=t.onLoad);let{onClose:a}=t;if(a){let s=u=>{if(u.data==="__sentry_reportdialog_closed__")try{a()}finally{cd.removeEventListener("message",s)}};cd.addEventListener("message",s)}let i=cd.document.head||cd.document.body;i?i.appendChild(o):hC&&en.error("Not injecting report dialog. No injection point found in HTML")}var rte=q(z(),1);function o3e(t){let e=t.match(/^([^.]+)/);return e!==null&&parseInt(e[0])>=17}function a3e(t,e){let r=new WeakSet;function n(o,a){if(!r.has(o)){if(o.cause)return r.add(o),n(o.cause,a);o.cause=a}}n(t,e)}function nte(t,{componentStack:e},r){if(o3e(rte.version)&&zq(t)&&e){let n=new Error(t.message);n.name=`React ErrorBoundary ${t.name}`,n.stack=e,a3e(t,n)}return fC(t,{...r,captureContext:{contexts:{react:{componentStack:e}}}})}var i3e=q(gv(),1),Fm=q(z(),1);var ote=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;var ate={componentStack:null,error:null,eventId:null},S_=class t extends Fm.Component{constructor(e){super(e),t.prototype.__init.call(this),this.state=ate,this._openFallbackReportDialog=!0;let r=Mm();r&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=r.on("afterSendEvent",n=>{!n.type&&this._lastEventId&&n.event_id===this._lastEventId&&gC({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,r){let{componentStack:n}=r,o=n==null?void 0:n,{beforeCapture:a,onError:i,showDialog:s,dialogOptions:u}=this.props;pC(l=>{a&&a(l,e,o);let c=nte(e,r,{mechanism:{handled:!!this.props.fallback}});i&&i(e,o,c),s&&(this._lastEventId=c,this._openFallbackReportDialog&&gC({...u,eventId:c})),this.setState({error:e,componentStack:n,eventId:c})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:r,eventId:n}=this.state,{onUnmount:o}=this.props;o&&o(e,r,n),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}__init(){this.resetErrorBoundary=()=>{let{onReset:e}=this.props,{error:r,componentStack:n,eventId:o}=this.state;e&&e(r,n,o),this.setState(ate)}}render(){let{fallback:e,children:r}=this.props,n=this.state;if(n.error){let o;return typeof e=="function"?o=Fm.createElement(e,{error:n.error,componentStack:n.componentStack,resetError:this.resetErrorBoundary,eventId:n.eventId}):o=e,Fm.isValidElement(o)?o:(e&&ote&&en.warn("fallback did not produce a valid ReactElement"),null)}return typeof r=="function"?r():r}};var br=q(z());var ir=q(K0());function L(){return L=Object.assign?Object.assign.bind():function(t){for(var e=1;e0?v:m;return"@media (max-width:".concat(h-i/100).concat(o,")")}function c(m,g){var v=hl.indexOf(g);return v===hl.length-1?u(m):"@media (min-width:".concat(typeof r[m]=="number"?r[m]:m).concat(o,") and ")+"(max-width:".concat((v!==-1&&typeof r[hl[v+1]]=="number"?r[hl[v+1]]:g)-i/100).concat(o,")")}function p(m){return c(m,m)}var d=!1;function f(m){return r[m]}return L({keys:hl,values:r,up:u,down:l,between:c,only:p,width:f},s)}function nj(t,e,r){var n;return L({gutters:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:",` paddingLeft: theme.spacing(2), paddingRight: theme.spacing(2), [theme.breakpoints.up('sm')]: { @@ -406,15 +406,23 @@ ${e==="system"?` paddingRight: theme.spacing(3), }, `].join(` -`)),L({paddingLeft:e(2),paddingRight:e(2)},a,or({},t.up("sm"),L({paddingLeft:e(3),paddingRight:e(3)},a[t.up("sm")])))},toolbar:(n={minHeight:56},or(n,"".concat(t.up("xs")," and (orientation: landscape)"),{minHeight:48}),or(n,t.up("sm"),{minHeight:64}),n)},r)}var lj=q(at()),fte=q(at());var u3e={black:"#000",white:"#fff"},E_=u3e;var l3e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},yC=l3e;var c3e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},_C=c3e;var d3e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},bC=d3e;var f3e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},SC=f3e;var p3e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},EC=p3e;var m3e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},TC=m3e;var h3e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},wC=h3e;var ute=q(at());function aj(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.min(Math.max(e,t),r)}function g3e(t){t=t.substr(1);var e=new RegExp(".{1,".concat(t.length>=6?2:1,"}"),"g"),r=t.match(e);return r&&r[0].length===1&&(r=r.map(function(n){return n+n})),r?"rgb".concat(r.length===4?"a":"","(").concat(r.map(function(n,o){return o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3}).join(", "),")"):""}function v3e(t){t=dd(t);var e=t,r=e.values,n=r[0],o=r[1]/100,a=r[2]/100,i=o*Math.min(a,1-a),s=function(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:(f+n/30)%12;return a-i*Math.max(Math.min(d-3,9-d,1),-1)},u="rgb",l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return t.type==="hsla"&&(u+="a",l.push(r[3])),xC({type:u,values:l})}function dd(t){if(t.type)return t;if(t.charAt(0)==="#")return dd(g3e(t));var e=t.indexOf("("),r=t.substring(0,e);if(["rgb","rgba","hsl","hsla"].indexOf(r)===-1)throw new Error((0,ute.formatMuiErrorMessage)(3,t));var n=t.substring(e+1,t.length-1).split(",");return n=n.map(function(o){return parseFloat(o)}),{type:r,values:n}}function xC(t){var e=t.type,r=t.values;return e.indexOf("rgb")!==-1?r=r.map(function(n,o){return o<3?parseInt(n,10):n}):e.indexOf("hsl")!==-1&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(e,"(").concat(r.join(", "),")")}function lte(t,e){var r=oj(t),n=oj(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function oj(t){t=dd(t);var e=t.type==="hsl"?dd(v3e(t)).values:t.values;return e=e.map(function(r){return r/=255,r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function fd(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.15;return oj(t)>.5?ij(t,e):sj(t,e)}function sa(t,e){return t=dd(t),e=aj(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.values[3]=e,xC(t)}function ij(t,e){if(t=dd(t),e=aj(e),t.type.indexOf("hsl")!==-1)t.values[2]*=1-e;else if(t.type.indexOf("rgb")!==-1)for(var r=0;r<3;r+=1)t.values[r]*=1-e;return xC(t)}function sj(t,e){if(t=dd(t),e=aj(e),t.type.indexOf("hsl")!==-1)t.values[2]+=(100-t.values[2])*e;else if(t.type.indexOf("rgb")!==-1)for(var r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;return xC(t)}var cte={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:E_.white,default:yC[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},uj={text:{primary:E_.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:yC[800],default:"#303030"},action:{active:E_.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function dte(t,e,r,n){var o=n.light||n,a=n.dark||n*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=sj(t.main,o):e==="dark"&&(t.dark=ij(t.main,a)))}function cj(t){var e=t.primary,r=e===void 0?{light:_C[300],main:_C[500],dark:_C[700]}:e,n=t.secondary,o=n===void 0?{light:bC.A200,main:bC.A400,dark:bC.A700}:n,a=t.error,i=a===void 0?{light:SC[300],main:SC[500],dark:SC[700]}:a,s=t.warning,u=s===void 0?{light:EC[300],main:EC[500],dark:EC[700]}:s,l=t.info,c=l===void 0?{light:TC[300],main:TC[500],dark:TC[700]}:l,f=t.success,d=f===void 0?{light:wC[300],main:wC[500],dark:wC[700]}:f,p=t.type,m=p===void 0?"light":p,g=t.contrastThreshold,v=g===void 0?3:g,h=t.tonalOffset,y=h===void 0?.2:h,b=ce(t,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function E(P){var k=lte(P,uj.text.primary)>=v?uj.text.primary:cte.text.primary;if(0)var O;return k}var w=function(k){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:500,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:300,U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:700;if(k=L({},k),!k.main&&k[O]&&(k.main=k[O]),!k.main)throw new Error((0,lj.formatMuiErrorMessage)(4,O));if(typeof k.main!="string")throw new Error((0,lj.formatMuiErrorMessage)(5,JSON.stringify(k.main)));return dte(k,"light",F,y),dte(k,"dark",U,y),k.contrastText||(k.contrastText=E(k.main)),k},S={dark:uj,light:cte},C=(0,fte.deepmerge)(L({common:E_,type:m,primary:w(r),secondary:w(o,"A400","A200","A700"),error:w(i),warning:w(u),info:w(c),success:w(d),grey:yC,contrastThreshold:v,getContrastText:E,augmentColor:w,tonalOffset:y},S[m]),b);return C}var hte=q(at());function gte(t){return Math.round(t*1e5)/1e5}function y3e(t){return gte(t)}var pte={textTransform:"uppercase"},mte='"Roboto", "Helvetica", "Arial", sans-serif';function dj(t,e){var r=typeof e=="function"?e(t):e,n=r.fontFamily,o=n===void 0?mte:n,a=r.fontSize,i=a===void 0?14:a,s=r.fontWeightLight,u=s===void 0?300:s,l=r.fontWeightRegular,c=l===void 0?400:l,f=r.fontWeightMedium,d=f===void 0?500:f,p=r.fontWeightBold,m=p===void 0?700:p,g=r.htmlFontSize,v=g===void 0?16:g,h=r.allVariants,y=r.pxToRem,b=ce(r,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),E=i/14,w=y||function(P){return"".concat(P/v*E,"rem")},S=function(k,O,F,U,J){return L({fontFamily:o,fontWeight:k,fontSize:w(O),lineHeight:F},o===mte?{letterSpacing:"".concat(gte(U/O),"em")}:{},J,h)},C={h1:S(u,96,1.167,-1.5),h2:S(u,60,1.2,-.5),h3:S(c,48,1.167,0),h4:S(c,34,1.235,.25),h5:S(c,24,1.334,0),h6:S(d,20,1.6,.15),subtitle1:S(c,16,1.75,.15),subtitle2:S(d,14,1.57,.1),body1:S(c,16,1.5,.15),body2:S(c,14,1.43,.15),button:S(d,14,1.75,.4,pte),caption:S(c,12,1.66,.4),overline:S(c,12,2.66,1,pte)};return(0,hte.deepmerge)(L({htmlFontSize:v,pxToRem:w,round:y3e,fontFamily:o,fontSize:i,fontWeightLight:u,fontWeightRegular:c,fontWeightMedium:d,fontWeightBold:m},C),b,{clone:!1})}var _3e=.2,b3e=.14,S3e=.12;function ar(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(_3e,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(b3e,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(S3e,")")].join(",")}var E3e=["none",ar(0,2,1,-1,0,1,1,0,0,1,3,0),ar(0,3,1,-2,0,2,2,0,0,1,5,0),ar(0,3,3,-2,0,3,4,0,0,1,8,0),ar(0,2,4,-1,0,4,5,0,0,1,10,0),ar(0,3,5,-1,0,5,8,0,0,1,14,0),ar(0,3,5,-1,0,6,10,0,0,1,18,0),ar(0,4,5,-2,0,7,10,1,0,2,16,1),ar(0,5,5,-3,0,8,10,1,0,3,14,2),ar(0,5,6,-3,0,9,12,1,0,3,16,2),ar(0,6,6,-3,0,10,14,1,0,4,18,3),ar(0,6,7,-4,0,11,15,1,0,4,20,3),ar(0,7,8,-4,0,12,17,2,0,5,22,4),ar(0,7,8,-4,0,13,19,2,0,5,24,4),ar(0,7,9,-4,0,14,21,2,0,5,26,4),ar(0,8,9,-5,0,15,22,2,0,6,28,5),ar(0,8,10,-5,0,16,24,2,0,6,30,5),ar(0,8,11,-5,0,17,26,2,0,6,32,5),ar(0,9,11,-5,0,18,28,2,0,7,34,6),ar(0,9,12,-6,0,19,29,2,0,7,36,6),ar(0,10,13,-6,0,20,31,3,0,8,38,7),ar(0,10,13,-6,0,21,33,3,0,8,40,7),ar(0,10,14,-6,0,22,35,3,0,8,42,7),ar(0,11,14,-7,0,23,36,3,0,9,44,8),ar(0,11,15,-7,0,24,38,3,0,9,46,8)],vte=E3e;var T3e={borderRadius:4},yte=T3e;var _te=q(K0());function fj(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8;if(t.mui)return t;var e=(0,_te.createUnarySpacing)({spacing:t}),r=function(){for(var o=arguments.length,a=new Array(o),i=0;i0&&arguments[0]!==void 0?arguments[0]:["all"],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.duration,o=n===void 0?Ste.standard:n,a=r.easing,i=a===void 0?bte.easeInOut:a,s=r.delay,u=s===void 0?0:s,l=ce(r,["duration","easing","delay"]);if(0)var c,f;return(Array.isArray(e)?e:[e]).map(function(d){return"".concat(d," ").concat(typeof o=="string"?o:Ete(o)," ").concat(i," ").concat(typeof u=="string"?u:Ete(u))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var r=e/36;return Math.round((4+15*Math.pow(r,.25)+r/5)*10)}};var w3e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},CC=w3e;function x3e(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.breakpoints,r=e===void 0?{}:e,n=t.mixins,o=n===void 0?{}:n,a=t.palette,i=a===void 0?{}:a,s=t.spacing,u=t.typography,l=u===void 0?{}:u,c=ce(t,["breakpoints","mixins","palette","spacing","typography"]),f=cj(i),d=rj(r),p=fj(s),m=(0,pj.deepmerge)({breakpoints:d,direction:"ltr",mixins:nj(d,p,o),overrides:{},palette:f,props:{},shadows:vte,typography:dj(f,l),spacing:p,shape:yte,transitions:Tte,zIndex:CC},c),g=arguments.length,v=new Array(g>1?g-1:0),h=1;ht.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&arguments[0]!==void 0?arguments[0]:{},S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=arguments.length>2?arguments[2]:void 0,P=S.pulsate,k=P===void 0?!1:P,O=S.center,F=O===void 0?o||S.pulsate:O,U=S.fakeElement,J=U===void 0?!1:U;if(w.type==="mousedown"&&p.current){p.current=!1;return}w.type==="touchstart"&&(p.current=!0);var K=J?null:v.current,Z=K?K.getBoundingClientRect():{width:0,height:0,left:0,top:0},G,Q,N;if(F||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)G=Math.round(Z.width/2),Q=Math.round(Z.height/2);else{var j=w.touches?w.touches[0]:w,V=j.clientX,Y=j.clientY;G=Math.round(V-Z.left),Q=Math.round(Y-Z.top)}if(F)N=Math.sqrt((2*Math.pow(Z.width,2)+Math.pow(Z.height,2))/3),N%2===0&&(N+=1);else{var X=Math.max(Math.abs((K?K.clientWidth:0)-G),G)*2+2,ie=Math.max(Math.abs((K?K.clientHeight:0)-Q),Q)*2+2;N=Math.sqrt(Math.pow(X,2)+Math.pow(ie,2))}w.touches?g.current===null&&(g.current=function(){h({pulsate:k,rippleX:G,rippleY:Q,rippleSize:N,cb:C})},m.current=setTimeout(function(){g.current&&(g.current(),g.current=null)},B3e)):h({pulsate:k,rippleX:G,rippleY:Q,rippleSize:N,cb:C})},[o,h]),b=Ut.useCallback(function(){y({},{pulsate:!0})},[y]),E=Ut.useCallback(function(w,S){if(clearTimeout(m.current),w.type==="touchend"&&g.current){w.persist(),g.current(),g.current=null,m.current=setTimeout(function(){E(w,S)});return}g.current=null,c(function(C){return C.length>0?C.slice(1):C}),d.current=S},[]);return Ut.useImperativeHandle(r,function(){return{pulsate:b,start:y,stop:E}},[b,y,E]),Ut.createElement("span",L({className:(0,qte.default)(a.root,i),ref:v},s),Ut.createElement(Fte.TransitionGroup,{component:null,exit:!0},l))}),jte=Ae(U3e,{flip:!1,name:"MuiTouchRipple"})(Ut.memo(z3e));var W3e={root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},$3e=ln.forwardRef(function(e,r){var n=e.action,o=e.buttonRef,a=e.centerRipple,i=a===void 0?!1:a,s=e.children,u=e.classes,l=e.className,c=e.component,f=c===void 0?"button":c,d=e.disabled,p=d===void 0?!1:d,m=e.disableRipple,g=m===void 0?!1:m,v=e.disableTouchRipple,h=v===void 0?!1:v,y=e.focusRipple,b=y===void 0?!1:y,E=e.focusVisibleClassName,w=e.onBlur,S=e.onClick,C=e.onFocus,P=e.onFocusVisible,k=e.onKeyDown,O=e.onKeyUp,F=e.onMouseDown,U=e.onMouseLeave,J=e.onMouseUp,K=e.onTouchEnd,Z=e.onTouchMove,G=e.onTouchStart,Q=e.onDragLeave,N=e.tabIndex,j=N===void 0?0:N,V=e.TouchRippleProps,Y=e.type,X=Y===void 0?"button":Y,ie=ce(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),de=ln.useRef(null);function fe(){return Lte.findDOMNode(de.current)}var le=ln.useRef(null),_e=ln.useState(!1),we=_e[0],ge=_e[1];p&&we&&ge(!1);var Se=vj(),me=Se.isFocusVisible,be=Se.onBlurVisible,Me=Se.ref;ln.useImperativeHandle(n,function(){return{focusVisible:function(){ge(!0),de.current.focus()}}},[]),ln.useEffect(function(){we&&b&&!g&&le.current.pulsate()},[g,b,we]);function ve(H,Re){var De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h;return Bn(function(Ot){Re&&Re(Ot);var zt=De;return!zt&&le.current&&le.current[H](Ot),!0})}var gt=ve("start",F),qe=ve("stop",Q),nt=ve("stop",J),Qe=ve("stop",function(H){we&&H.preventDefault(),U&&U(H)}),he=ve("start",G),Ue=ve("stop",K),Ie=ve("stop",Z),Fe=ve("stop",function(H){we&&(be(H),ge(!1)),w&&w(H)},!1),ue=Bn(function(H){de.current||(de.current=H.currentTarget),me(H)&&(ge(!0),P&&P(H)),C&&C(H)}),Be=function(){var Re=fe();return f&&f!=="button"&&!(Re.tagName==="A"&&Re.href)},kt=ln.useRef(!1),ur=Bn(function(H){b&&!kt.current&&we&&le.current&&H.key===" "&&(kt.current=!0,H.persist(),le.current.stop(H,function(){le.current.start(H)})),H.target===H.currentTarget&&Be()&&H.key===" "&&H.preventDefault(),k&&k(H),H.target===H.currentTarget&&Be()&&H.key==="Enter"&&!p&&(H.preventDefault(),S&&S(H))}),dt=Bn(function(H){b&&H.key===" "&&le.current&&we&&!H.defaultPrevented&&(kt.current=!1,H.persist(),le.current.stop(H,function(){le.current.pulsate(H)})),O&&O(H),S&&H.target===H.currentTarget&&Be()&&H.key===" "&&!H.defaultPrevented&&S(H)}),Xe=f;Xe==="button"&&ie.href&&(Xe="a");var it={};Xe==="button"?(it.type=X,it.disabled=p):((Xe!=="a"||!ie.href)&&(it.role="button"),it["aria-disabled"]=p);var kr=wt(o,r),Yt=wt(Me,de),et=wt(kr,Yt),Pt=ln.useState(!1),Je=Pt[0],Pe=Pt[1];ln.useEffect(function(){Pe(!0)},[]);var ye=Je&&!g&&!p;return ln.createElement(Xe,L({className:(0,Bte.default)(u.root,l,we&&[u.focusVisible,E],p&&u.disabled),onBlur:Fe,onClick:S,onFocus:ue,onKeyDown:ur,onKeyUp:dt,onMouseDown:gt,onMouseLeave:Qe,onMouseUp:nt,onDragLeave:qe,onTouchEnd:Ue,onTouchMove:Ie,onTouchStart:he,ref:et,tabIndex:p?-1:j},it,ie),s,ye?ln.createElement(jte,L({ref:le,center:i},V)):null)}),Oi=Ae(W3e,{name:"MuiButtonBase"})($3e);var Ute=q(at());function It(t){if(typeof t!="string")throw new Error((0,Ute.formatMuiErrorMessage)(7));return t.charAt(0).toUpperCase()+t.slice(1)}var H3e=function(e){var r;return{root:L({},e.typography.button,(r={maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",minHeight:48,flexShrink:0,padding:"6px 12px"},or(r,e.breakpoints.up("sm"),{padding:"6px 24px"}),or(r,"overflow","hidden"),or(r,"whiteSpace","normal"),or(r,"textAlign","center"),or(r,e.breakpoints.up("sm"),{minWidth:160}),r)),labelIcon:{minHeight:72,paddingTop:9,"& $wrapper > *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:e.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}},G3e=w_.forwardRef(function(e,r){var n=e.classes,o=e.className,a=e.disabled,i=a===void 0?!1:a,s=e.disableFocusRipple,u=s===void 0?!1:s,l=e.fullWidth,c=e.icon,f=e.indicator,d=e.label,p=e.onChange,m=e.onClick,g=e.onFocus,v=e.selected,h=e.selectionFollowsFocus,y=e.textColor,b=y===void 0?"inherit":y,E=e.value,w=e.wrapped,S=w===void 0?!1:w,C=ce(e,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"]),P=function(F){p&&p(F,E),m&&m(F)},k=function(F){h&&!v&&p&&p(F,E),g&&g(F)};return w_.createElement(Oi,L({focusRipple:!u,className:(0,zte.default)(n.root,n["textColor".concat(It(b))],o,i&&n.disabled,v&&n.selected,d&&c&&n.labelIcon,l&&n.fullWidth,S&&n.wrapped),ref:r,role:"tab","aria-selected":v,disabled:i,onClick:P,onFocus:k,tabIndex:v?0:-1},C),w_.createElement("span",{className:n.wrapper},c,d),f)}),vl=Ae(H3e,{name:"MuiTab"})(G3e);var ct=q(z()),fut=q(Ef());var Um=q(Le());function Ri(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:166,r;function n(){for(var o=arguments.length,a=new Array(o),i=0;i0?Lm="default":(t.scrollLeft=1,t.scrollLeft===0&&(Lm="negative")),document.body.removeChild(t),Lm}function Sj(t,e){var r=t.scrollLeft;if(e!=="rtl")return r;var n=bj();switch(n){case"negative":return t.scrollWidth-t.clientWidth+r;case"reverse":return t.scrollWidth-t.clientWidth-r;default:return r}}function V3e(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function Ej(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},a=n.ease,i=a===void 0?V3e:a,s=n.duration,u=s===void 0?300:s,l=null,c=e[t],f=!1,d=function(){f=!0},p=function m(g){if(f){o(new Error("Animation cancelled"));return}l===null&&(l=g);var v=Math.min(1,(g-l)/u);if(e[t]=i(v)*(r-c)+c,v>=1){requestAnimationFrame(function(){o(null)});return}requestAnimationFrame(m)};return c===r?(o(new Error("Element already at target position")),d):(requestAnimationFrame(p),d)}var yl=q(z());var K3e={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Tj(t){var e=t.onChange,r=ce(t,["onChange"]),n=yl.useRef(),o=yl.useRef(null),a=function(){n.current=o.current.offsetHeight-o.current.clientHeight};return yl.useEffect(function(){var i=Ri(function(){var s=n.current;a(),s!==n.current&&e(n.current)});return window.addEventListener("resize",i),function(){i.clear(),window.removeEventListener("resize",i)}},[e]),yl.useEffect(function(){a(),e(n.current)},[e]),yl.createElement("div",L({style:K3e,ref:o},r))}var OC=q(z());var Wte=q(Le());var Y3e=function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}},J3e=OC.forwardRef(function(e,r){var n=e.classes,o=e.className,a=e.color,i=e.orientation,s=ce(e,["classes","className","color","orientation"]);return OC.createElement("span",L({className:(0,Wte.default)(n.root,n["color".concat(It(a))],o,i==="vertical"&&n.vertical),ref:r},s))}),$te=Ae(Y3e,{name:"PrivateTabIndicator"})(J3e);var Bm=q(z());var Xte=q(Le());var Vte=q(z());var DC=q(z());var x_=q(z());var Hte=q(Le());var X3e=function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}},Gte=x_.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.color,s=i===void 0?"inherit":i,u=e.component,l=u===void 0?"svg":u,c=e.fontSize,f=c===void 0?"medium":c,d=e.htmlColor,p=e.titleAccess,m=e.viewBox,g=m===void 0?"0 0 24 24":m,v=ce(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return x_.createElement(l,L({className:(0,Hte.default)(o.root,a,s!=="inherit"&&o["color".concat(It(s))],f!=="default"&&f!=="medium"&&o["fontSize".concat(It(f))]),focusable:"false",viewBox:g,color:d,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r},v),n,p?x_.createElement("title",null,p):null)});Gte.muiName="SvgIcon";var RC=Ae(X3e,{name:"MuiSvgIcon"})(Gte);function zs(t,e){var r=function(o,a){return DC.default.createElement(RC,L({ref:a},o),t)};return r.muiName=RC.muiName,DC.default.memo(DC.default.forwardRef(r))}var Kte=zs(Vte.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft");var Yte=q(z());var Jte=zs(Yte.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var Z3e={root:{width:40,flexShrink:0,opacity:.8,"&$disabled":{opacity:0}},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}},disabled:{}},Q3e=Bm.createElement(Kte,{fontSize:"small"}),e$e=Bm.createElement(Jte,{fontSize:"small"}),t$e=Bm.forwardRef(function(e,r){var n=e.classes,o=e.className,a=e.direction,i=e.orientation,s=e.disabled,u=ce(e,["classes","className","direction","orientation","disabled"]);return Bm.createElement(Oi,L({component:"div",className:(0,Xte.default)(n.root,o,s&&n.disabled,i==="vertical"&&n.vertical),ref:r,role:null,tabIndex:null},u),a==="left"?Q3e:e$e)}),wj=Ae(Z3e,{name:"MuiTabScrollButton"})(t$e);var Zte=q(An()),aut=q(z());function Ws(){var t=(0,Zte.useTheme)()||qm;return t}var r$e=function(e){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},vertical:{flexDirection:"column"},flexContainer:{display:"flex"},flexContainerVertical:{flexDirection:"column"},centered:{justifyContent:"center"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},scrollButtons:{},scrollButtonsDesktop:or({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}},n$e=ct.forwardRef(function(e,r){var n=e["aria-label"],o=e["aria-labelledby"],a=e.action,i=e.centered,s=i===void 0?!1:i,u=e.children,l=e.classes,c=e.className,f=e.component,d=f===void 0?"div":f,p=e.indicatorColor,m=p===void 0?"secondary":p,g=e.onChange,v=e.orientation,h=v===void 0?"horizontal":v,y=e.ScrollButtonComponent,b=y===void 0?wj:y,E=e.scrollButtons,w=E===void 0?"auto":E,S=e.selectionFollowsFocus,C=e.TabIndicatorProps,P=C===void 0?{}:C,k=e.TabScrollButtonProps,O=e.textColor,F=O===void 0?"inherit":O,U=e.value,J=e.variant,K=J===void 0?"standard":J,Z=ce(e,["aria-label","aria-labelledby","action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant"]),G=Ws(),Q=K==="scrollable",N=G.direction==="rtl",j=h==="vertical",V=j?"scrollTop":"scrollLeft",Y=j?"top":"left",X=j?"bottom":"right",ie=j?"clientHeight":"clientWidth",de=j?"height":"width",fe=ct.useState(!1),le=fe[0],_e=fe[1],we=ct.useState({}),ge=we[0],Se=we[1],me=ct.useState({start:!1,end:!1}),be=me[0],Me=me[1],ve=ct.useState({overflow:"hidden",marginBottom:null}),gt=ve[0],qe=ve[1],nt=new Map,Qe=ct.useRef(null),he=ct.useRef(null),Ue=function(){var H=Qe.current,Re;if(H){var De=H.getBoundingClientRect();Re={clientWidth:H.clientWidth,scrollLeft:H.scrollLeft,scrollTop:H.scrollTop,scrollLeftNormalized:Sj(H,G.direction),scrollWidth:H.scrollWidth,top:De.top,bottom:De.bottom,left:De.left,right:De.right}}var Ot;if(H&&U!==!1){var zt=he.current.children;if(zt.length>0){var Sr=zt[nt.get(U)];Ot=Sr?Sr.getBoundingClientRect():null}}return{tabsMeta:Re,tabMeta:Ot}},Ie=Bn(function(){var ye,H=Ue(),Re=H.tabsMeta,De=H.tabMeta,Ot=0;if(De&&Re)if(j)Ot=De.top-Re.top+Re.scrollTop;else{var zt=N?Re.scrollLeftNormalized+Re.clientWidth-Re.scrollWidth:Re.scrollLeft;Ot=De.left-Re.left+zt}var Sr=(ye={},or(ye,Y,Ot),or(ye,de,De?De[de]:0),ye);if(isNaN(ge[Y])||isNaN(ge[de]))Se(Sr);else{var St=Math.abs(ge[Y]-Sr[Y]),zn=Math.abs(ge[de]-Sr[de]);(St>=1||zn>=1)&&Se(Sr)}}),Fe=function(H){Ej(V,Qe.current,H)},ue=function(H){var Re=Qe.current[V];j?Re+=H:(Re+=H*(N?-1:1),Re*=N&&bj()==="reverse"?-1:1),Fe(Re)},Be=function(){ue(-Qe.current[ie])},kt=function(){ue(Qe.current[ie])},ur=ct.useCallback(function(ye){qe({overflow:null,marginBottom:-ye})},[]),dt=function(){var H={};H.scrollbarSizeListener=Q?ct.createElement(Tj,{className:l.scrollable,onChange:ur}):null;var Re=be.start||be.end,De=Q&&(w==="auto"&&Re||w==="desktop"||w==="on");return H.scrollButtonStart=De?ct.createElement(b,L({orientation:h,direction:N?"right":"left",onClick:Be,disabled:!be.start,className:(0,Um.default)(l.scrollButtons,w!=="on"&&l.scrollButtonsDesktop)},k)):null,H.scrollButtonEnd=De?ct.createElement(b,L({orientation:h,direction:N?"left":"right",onClick:kt,disabled:!be.end,className:(0,Um.default)(l.scrollButtons,w!=="on"&&l.scrollButtonsDesktop)},k)):null,H},Xe=Bn(function(){var ye=Ue(),H=ye.tabsMeta,Re=ye.tabMeta;if(!(!Re||!H)){if(Re[Y]H[X]){var Ot=H[V]+(Re[X]-H[X]);Fe(Ot)}}}),it=Bn(function(){if(Q&&w!=="off"){var ye=Qe.current,H=ye.scrollTop,Re=ye.scrollHeight,De=ye.clientHeight,Ot=ye.scrollWidth,zt=ye.clientWidth,Sr,St;if(j)Sr=H>1,St=H1,St=N?zn>1:zn{let{children:e,value:r,index:n,...o}=t;return Cj.default.createElement("div",{role:"tabpanel",hidden:r!==n,id:`vertical-tabpanel-${n}`,"aria-labelledby":`vertical-tab-${n}`,...o},r===n&&Cj.default.createElement(jm,{p:3},e))};var fn=q(z());var AC=q(z());var Qte=q(Le());var l$e=[0,1,2,3,4,5,6,7,8,9,10],c$e=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function d$e(t,e,r){var n={};c$e.forEach(function(o){var a="grid-".concat(r,"-").concat(o);if(o===!0){n[a]={flexBasis:0,flexGrow:1,maxWidth:"100%"};return}if(o==="auto"){n[a]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};return}var i="".concat(Math.round(o/12*1e8)/1e6,"%");n[a]={flexBasis:i,flexGrow:0,maxWidth:i}}),r==="xs"?L(t,n):t[e.breakpoints.up(r)]=n}function Ij(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=parseFloat(t);return"".concat(r/e).concat(String(t).replace(String(r),"")||"px")}function f$e(t,e){var r={};return l$e.forEach(function(n){var o=t.spacing(n);o!==0&&(r["spacing-".concat(e,"-").concat(n)]={margin:"-".concat(Ij(o,2)),width:"calc(100% + ".concat(Ij(o),")"),"& > $item":{padding:Ij(o,2)}})}),r}var p$e=function(e){return L({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},f$e(e,"xs"),e.breakpoints.keys.reduce(function(r,n){return d$e(r,e,n),r},{}))},m$e=AC.forwardRef(function(e,r){var n=e.alignContent,o=n===void 0?"stretch":n,a=e.alignItems,i=a===void 0?"stretch":a,s=e.classes,u=e.className,l=e.component,c=l===void 0?"div":l,f=e.container,d=f===void 0?!1:f,p=e.direction,m=p===void 0?"row":p,g=e.item,v=g===void 0?!1:g,h=e.justify,y=e.justifyContent,b=y===void 0?"flex-start":y,E=e.lg,w=E===void 0?!1:E,S=e.md,C=S===void 0?!1:S,P=e.sm,k=P===void 0?!1:P,O=e.spacing,F=O===void 0?0:O,U=e.wrap,J=U===void 0?"wrap":U,K=e.xl,Z=K===void 0?!1:K,G=e.xs,Q=G===void 0?!1:G,N=e.zeroMinWidth,j=N===void 0?!1:N,V=ce(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),Y=(0,Qte.default)(s.root,u,d&&[s.container,F!==0&&s["spacing-xs-".concat(String(F))]],v&&s.item,j&&s.zeroMinWidth,m!=="row"&&s["direction-xs-".concat(String(m))],J!=="wrap"&&s["wrap-xs-".concat(String(J))],i!=="stretch"&&s["align-items-xs-".concat(String(i))],o!=="stretch"&&s["align-content-xs-".concat(String(o))],(h||b)!=="flex-start"&&s["justify-content-xs-".concat(String(h||b))],Q!==!1&&s["grid-xs-".concat(String(Q))],k!==!1&&s["grid-sm-".concat(String(k))],C!==!1&&s["grid-md-".concat(String(C))],w!==!1&&s["grid-lg-".concat(String(w))],Z!==!1&&s["grid-xl-".concat(String(Z))]);return AC.createElement(c,L({className:Y,ref:r},V))}),h$e=Ae(p$e,{name:"MuiGrid"})(m$e);var Ke=h$e;var Do=q(_o()),yoe=q(nre());var vd=q(z());var kre=q(Wm()),Pre=q(zC());var P_=q(z());var vre=q(Le());function Ro(t){var e=t.props,r=t.states,n=t.muiFormControl;return r.reduce(function(o,a){return o[a]=e[a],n&&typeof e[a]=="undefined"&&(o[a]=n[a]),o},{})}var gre=q(z());var WC=q(z()),mre=WC.createContext();function hre(){return WC.useContext(mre)}var Hm=mre;function qa(){return gre.useContext(Hm)}var E4e=function(e){return{root:L({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}},T4e=P_.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.component,s=i===void 0?"p":i,u=e.disabled,l=e.error,c=e.filled,f=e.focused,d=e.margin,p=e.required,m=e.variant,g=ce(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"]),v=qa(),h=Ro({props:e,muiFormControl:v,states:["variant","margin","disabled","error","filled","focused","required"]});return P_.createElement(s,L({className:(0,vre.default)(o.root,(h.variant==="filled"||h.variant==="outlined")&&o.contained,a,h.disabled&&o.disabled,h.error&&o.error,h.filled&&o.filled,h.focused&&o.focused,h.required&&o.required,h.margin==="dense"&&o.marginDense),ref:r},g),n===" "?P_.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):n)}),ja=Ae(E4e,{name:"MuiFormHelperText"})(T4e);var Ore=q(VC()),xr=class extends vd.default.PureComponent{constructor(e){super(e),this.state={value:this.props.value}}componentDidUpdate(e){e.value!==this.props.value&&this.setState({value:this.props.value})}render(){return vd.default.createElement(Ke,{item:!0,xs:this.props.xs,sm:this.props.sm,md:this.props.md,lg:this.props.lg,xl:this.props.xl},vd.default.createElement(kre.default,null,vd.default.createElement(Pre.default,{control:vd.default.createElement(Ore.default,{checked:this.state.value,disabled:this.props.disabled,onChange:e=>this.handleChange(e.target.checked)}),label:this.props.label}),this.props.children&&vd.default.createElement(ja,null,this.props.children)))}handleChange(e){this.setState({value:e},()=>{this.props.onChange(this.state.value)})}};var xl=q(z());var foe=q(Wm());var La=q(z());var kne=q(Le());var YC=q(z());var Are=q(Le());var Nre=q(at()),Cr=q(z());var Bj=q(Le());var lr=q(z());function KC(t,e){return parseInt(t[e],10)||0}var dHe=typeof window!="undefined"?lr.useLayoutEffect:lr.useEffect,fHe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}},pHe=lr.forwardRef(function(e,r){var n=e.onChange,o=e.rows,a=e.rowsMax,i=e.rowsMin,s=e.maxRows,u=e.minRows,l=u===void 0?1:u,c=e.style,f=e.value,d=ce(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),p=s||a,m=o||i||l,g=lr.useRef(f!=null),v=g.current,h=lr.useRef(null),y=wt(r,h),b=lr.useRef(null),E=lr.useRef(0),w=lr.useState({}),S=w[0],C=w[1],P=lr.useCallback(function(){var O=h.current,F=window.getComputedStyle(O),U=b.current;U.style.width=F.width,U.value=O.value||e.placeholder||"x",U.value.slice(-1)===` -`&&(U.value+=" ");var J=F["box-sizing"],K=KC(F,"padding-bottom")+KC(F,"padding-top"),Z=KC(F,"border-bottom-width")+KC(F,"border-top-width"),G=U.scrollHeight-K;U.value="x";var Q=U.scrollHeight-K,N=G;m&&(N=Math.max(Number(m)*Q,N)),p&&(N=Math.min(Number(p)*Q,N)),N=Math.max(N,Q);var j=N+(J==="border-box"?K+Z:0),V=Math.abs(N-G)<=1;C(function(Y){return E.current<20&&(j>0&&Math.abs((Y.outerHeightStyle||0)-j)>1||Y.overflow!==V)?(E.current+=1,{overflow:V,outerHeightStyle:j}):Y})},[p,m,e.placeholder]);lr.useEffect(function(){var O=Ri(function(){E.current=0,P()});return window.addEventListener("resize",O),function(){O.clear(),window.removeEventListener("resize",O)}},[P]),dHe(function(){P()}),lr.useEffect(function(){E.current=0},[f]);var k=function(F){E.current=0,v||P(),n&&n(F)};return lr.createElement(lr.Fragment,null,lr.createElement("textarea",L({value:f,onChange:k,ref:y,rows:m,style:L({height:S.outerHeightStyle,overflow:S.overflow?"hidden":null},c)},d)),lr.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:b,tabIndex:-1,style:L({},fHe.shadow,c)}))}),Lj=pHe;function Rre(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function Km(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return t&&(Rre(t.value)&&t.value!==""||e&&Rre(t.defaultValue)&&t.defaultValue!=="")}function Dre(t){return t.startAdornment}var mHe=function(e){var r=e.palette.type==="light",n={color:"currentColor",opacity:r?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},a={opacity:r?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:L({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}},hHe=typeof window=="undefined"?Cr.useEffect:Cr.useLayoutEffect,gHe=Cr.forwardRef(function(e,r){var n=e["aria-describedby"],o=e.autoComplete,a=e.autoFocus,i=e.classes,s=e.className,u=e.color,l=e.defaultValue,c=e.disabled,f=e.endAdornment,d=e.error,p=e.fullWidth,m=p===void 0?!1:p,g=e.id,v=e.inputComponent,h=v===void 0?"input":v,y=e.inputProps,b=y===void 0?{}:y,E=e.inputRef,w=e.margin,S=e.multiline,C=S===void 0?!1:S,P=e.name,k=e.onBlur,O=e.onChange,F=e.onClick,U=e.onFocus,J=e.onKeyDown,K=e.onKeyUp,Z=e.placeholder,G=e.readOnly,Q=e.renderSuffix,N=e.rows,j=e.rowsMax,V=e.rowsMin,Y=e.maxRows,X=e.minRows,ie=e.startAdornment,de=e.type,fe=de===void 0?"text":de,le=e.value,_e=ce(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),we=b.value!=null?b.value:le,ge=Cr.useRef(we!=null),Se=ge.current,me=Cr.useRef(),be=Cr.useCallback(function(Yt){},[]),Me=wt(b.ref,be),ve=wt(E,Me),gt=wt(me,ve),qe=Cr.useState(!1),nt=qe[0],Qe=qe[1],he=hre(),Ue=Ro({props:e,muiFormControl:he,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});Ue.focused=he?he.focused:nt,Cr.useEffect(function(){!he&&c&&nt&&(Qe(!1),k&&k())},[he,c,nt,k]);var Ie=he&&he.onFilled,Fe=he&&he.onEmpty,ue=Cr.useCallback(function(Yt){Km(Yt)?Ie&&Ie():Fe&&Fe()},[Ie,Fe]);hHe(function(){Se&&ue({value:we})},[we,ue,Se]);var Be=function(et){if(Ue.disabled){et.stopPropagation();return}U&&U(et),b.onFocus&&b.onFocus(et),he&&he.onFocus?he.onFocus(et):Qe(!0)},kt=function(et){k&&k(et),b.onBlur&&b.onBlur(et),he&&he.onBlur?he.onBlur(et):Qe(!1)},ur=function(et){if(!Se){var Pt=et.target||me.current;if(Pt==null)throw new Error((0,Nre.formatMuiErrorMessage)(1));ue({value:Pt.value})}for(var Je=arguments.length,Pe=new Array(Je>1?Je-1:0),ye=1;ye span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}},bHe=Ai.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.label,s=e.labelWidth,u=e.notched,l=e.style,c=ce(e,["children","classes","className","label","labelWidth","notched","style"]),f=Ws(),d=f.direction==="rtl"?"right":"left";if(i!==void 0)return Ai.createElement("fieldset",L({"aria-hidden":!0,className:(0,XC.default)(o.root,a),ref:r,style:l},c),Ai.createElement("legend",{className:(0,XC.default)(o.legendLabelled,u&&o.legendNotched)},i?Ai.createElement("span",null,i):Ai.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var p=s>0?s*.75+8:.01;return Ai.createElement("fieldset",L({"aria-hidden":!0,style:L(or({},"padding".concat(It(d)),8),l),className:(0,XC.default)(o.root,a),ref:r},c),Ai.createElement("legend",{className:o.legend,style:{width:u?p:.01}},Ai.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))}),jre=Ae(_He,{name:"PrivateNotchedOutline"})(bHe);var SHe=function(e){var r=e.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:r}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:r},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:e.palette.type==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.type==="light"?null:"#fff",caretColor:e.palette.type==="light"?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}},Bre=R_.forwardRef(function(e,r){var n=e.classes,o=e.fullWidth,a=o===void 0?!1:o,i=e.inputComponent,s=i===void 0?"input":i,u=e.label,l=e.labelWidth,c=l===void 0?0:l,f=e.multiline,d=f===void 0?!1:f,p=e.notched,m=e.type,g=m===void 0?"text":m,v=ce(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return R_.createElement(yd,L({renderSuffix:function(y){return R_.createElement(jre,{className:n.notchedOutline,label:u,labelWidth:c,notched:typeof p!="undefined"?p:!!(y.startAdornment||y.filled||y.focused)})},classes:L({},n,{root:(0,Lre.default)(n.root,n.underline),notchedOutline:null}),fullWidth:a,inputComponent:s,multiline:d,ref:r,type:g},v))});Bre.muiName="Input";var D_=Ae(SHe,{name:"MuiOutlinedInput"})(Bre);var ZC=q(z());var Ure=q(Le());var N_=q(z());var Uj=q(Le());var EHe=function(e){return{root:L({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}},THe=N_.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.color,s=e.component,u=s===void 0?"label":s,l=e.disabled,c=e.error,f=e.filled,d=e.focused,p=e.required,m=ce(e,["children","classes","className","color","component","disabled","error","filled","focused","required"]),g=qa(),v=Ro({props:e,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]});return N_.createElement(u,L({className:(0,Uj.default)(o.root,o["color".concat(It(v.color||"primary"))],a,v.disabled&&o.disabled,v.error&&o.error,v.filled&&o.filled,v.focused&&o.focused,v.required&&o.required),ref:r},m),n,v.required&&N_.createElement("span",{"aria-hidden":!0,className:(0,Uj.default)(o.asterisk,v.error&&o.error)},"\u2009","*"))}),zj=Ae(EHe,{name:"MuiFormLabel"})(THe);var wHe=function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}},xHe=ZC.forwardRef(function(e,r){var n=e.classes,o=e.className,a=e.disableAnimation,i=a===void 0?!1:a,s=e.margin,u=e.shrink,l=e.variant,c=ce(e,["classes","className","disableAnimation","margin","shrink","variant"]),f=qa(),d=u;typeof d=="undefined"&&f&&(d=f.filled||f.focused||f.adornedStart);var p=Ro({props:e,muiFormControl:f,states:["margin","variant"]});return ZC.createElement(zj,L({"data-shrink":d,className:(0,Ure.default)(n.root,o,f&&n.formControl,!i&&n.animated,d&&n.shrink,p.margin==="dense"&&n.marginDense,{filled:n.filled,outlined:n.outlined}[p.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:r},c))}),bd=Ae(wHe,{name:"MuiInputLabel"})(xHe);var Pn=q(z());var Wre=q(Le());var zre=q(z());function Sd(t,e){return zre.isValidElement(t)&&e.indexOf(t.type.muiName)!==-1}var CHe={root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},IHe=Pn.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.color,s=i===void 0?"primary":i,u=e.component,l=u===void 0?"div":u,c=e.disabled,f=c===void 0?!1:c,d=e.error,p=d===void 0?!1:d,m=e.fullWidth,g=m===void 0?!1:m,v=e.focused,h=e.hiddenLabel,y=h===void 0?!1:h,b=e.margin,E=b===void 0?"none":b,w=e.required,S=w===void 0?!1:w,C=e.size,P=e.variant,k=P===void 0?"standard":P,O=ce(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),F=Pn.useState(function(){var le=!1;return n&&Pn.Children.forEach(n,function(_e){if(Sd(_e,["Input","Select"])){var we=Sd(_e,["Select"])?_e.props.input:_e;we&&Dre(we.props)&&(le=!0)}}),le}),U=F[0],J=F[1],K=Pn.useState(function(){var le=!1;return n&&Pn.Children.forEach(n,function(_e){Sd(_e,["Input","Select"])&&Km(_e.props,!0)&&(le=!0)}),le}),Z=K[0],G=K[1],Q=Pn.useState(!1),N=Q[0],j=Q[1],V=v!==void 0?v:N;f&&V&&j(!1);var Y;if(0)var X;var ie=Pn.useCallback(function(){G(!0)},[]),de=Pn.useCallback(function(){G(!1)},[]),fe={adornedStart:U,setAdornedStart:J,color:s,disabled:f,error:p,filled:Z,focused:V,fullWidth:g,hiddenLabel:y,margin:(C==="small"?"dense":void 0)||E,onBlur:function(){j(!1)},onEmpty:de,onFilled:ie,onFocus:function(){j(!0)},registerEffect:Y,required:S,variant:k};return Pn.createElement(Hm.Provider,{value:fe},Pn.createElement(l,L({className:(0,Wre.default)(o.root,a,E!=="none"&&o["margin".concat(It(E))],g&&o.fullWidth),ref:r},O),n))}),Wj=Ae(CHe,{name:"MuiFormControl"})(IHe);var El=q(z());var Cne=q(An());function $re(t){if(Array.isArray(t))return t}function Hre(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,o,a,i,s=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(c){l=!0,o=c}finally{try{if(!u&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}function Gre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bl(t,e){return $re(t)||Hre(t,e)||kC(t,e)||Gre()}var Ene=q(at()),Dt=q(z()),Kft=q(Ef());var aL=q(Le());var Un=q(z()),Mft=q(Ef());var yne=q(Le());var Ir=q(z());var cne=q(jr());var Qj=q(Le());function Vs(){for(var t=arguments.length,e=new Array(t),r=0;re.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function Ym(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function Jre(t){return parseInt(window.getComputedStyle(t)["padding-right"],10)||0}function Xre(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,a=[e,r].concat(PC(n)),i=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(t.children,function(s){s.nodeType===1&&a.indexOf(s)===-1&&i.indexOf(s.tagName)===-1&&Ym(s,o)})}function Hj(t,e){var r=-1;return t.some(function(n,o){return e(n)?(r=o,!0):!1}),r}function RHe(t,e){var r=[],n=[],o=t.container,a;if(!e.disableScrollLock){if(OHe(o)){var i=M_();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(Jre(o)+i,"px"),a=cn(o).querySelectorAll(".mui-fixed"),[].forEach.call(a,function(c){n.push(c.style.paddingRight),c.style.paddingRight="".concat(Jre(c)+i,"px")})}var s=o.parentElement,u=s.nodeName==="HTML"&&window.getComputedStyle(s)["overflow-y"]==="scroll"?s:o;r.push({value:u.style.overflow,key:"overflow",el:u}),u.style.overflow="hidden"}var l=function(){a&&[].forEach.call(a,function(f,d){n[d]?f.style.paddingRight=n[d]:f.style.removeProperty("padding-right")}),r.forEach(function(f){var d=f.value,p=f.el,m=f.key;d?p.style.setProperty(m,d):p.style.removeProperty(m)})};return l}function DHe(t){var e=[];return[].forEach.call(t.children,function(r){r.getAttribute&&r.getAttribute("aria-hidden")==="true"&&e.push(r)}),e}var Zre=function(){function t(){Vre(this,t),this.modals=[],this.containers=[]}return Yre(t,[{key:"add",value:function(r,n){var o=this.modals.indexOf(r);if(o!==-1)return o;o=this.modals.length,this.modals.push(r),r.modalRef&&Ym(r.modalRef,!1);var a=DHe(n);Xre(n,r.mountNode,r.modalRef,a,!0);var i=Hj(this.containers,function(s){return s.container===n});return i!==-1?(this.containers[i].modals.push(r),o):(this.containers.push({modals:[r],container:n,restore:null,hiddenSiblingNodes:a}),o)}},{key:"mount",value:function(r,n){var o=Hj(this.containers,function(i){return i.modals.indexOf(r)!==-1}),a=this.containers[o];a.restore||(a.restore=RHe(a,n))}},{key:"remove",value:function(r){var n=this.modals.indexOf(r);if(n===-1)return n;var o=Hj(this.containers,function(s){return s.modals.indexOf(r)!==-1}),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(r),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),r.modalRef&&Ym(r.modalRef,!0),Xre(a.container,r.mountNode,r.modalRef,a.hiddenSiblingNodes,!1),this.containers.splice(o,1);else{var i=a.modals[a.modals.length-1];i.modalRef&&Ym(i.modalRef,!1)}return n}},{key:"isTopModal",value:function(r){return this.modals.length>0&&this.modals[this.modals.length-1]===r}}]),t}();var Nr=q(z()),Qre=q(jr());function NHe(t){var e=t.children,r=t.disableAutoFocus,n=r===void 0?!1:r,o=t.disableEnforceFocus,a=o===void 0?!1:o,i=t.disableRestoreFocus,s=i===void 0?!1:i,u=t.getDoc,l=t.isEnabled,c=t.open,f=Nr.useRef(),d=Nr.useRef(null),p=Nr.useRef(null),m=Nr.useRef(),g=Nr.useRef(null),v=Nr.useCallback(function(b){g.current=Qre.findDOMNode(b)},[]),h=wt(e.ref,v),y=Nr.useRef();return Nr.useEffect(function(){y.current=c},[c]),!y.current&&c&&typeof window!="undefined"&&(m.current=u().activeElement),Nr.useEffect(function(){if(c){var b=cn(g.current);!n&&g.current&&!g.current.contains(b.activeElement)&&(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex",-1),g.current.focus());var E=function(){var P=g.current;if(P!==null){if(!b.hasFocus()||a||!l()||f.current){f.current=!1;return}g.current&&!g.current.contains(b.activeElement)&&g.current.focus()}},w=function(P){a||!l()||P.keyCode!==9||b.activeElement===g.current&&(f.current=!0,P.shiftKey?p.current.focus():d.current.focus())};b.addEventListener("focus",E,!0),b.addEventListener("keydown",w,!0);var S=setInterval(function(){E()},50);return function(){clearInterval(S),b.removeEventListener("focus",E,!0),b.removeEventListener("keydown",w,!0),s||(m.current&&m.current.focus&&m.current.focus(),m.current=null)}}},[n,a,s,l,c]),Nr.createElement(Nr.Fragment,null,Nr.createElement("div",{tabIndex:0,ref:d,"data-test":"sentinelStart"}),Nr.cloneElement(e,{ref:h}),Nr.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelEnd"}))}var Gj=NHe;var eI=q(z());var ene={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},AHe=eI.forwardRef(function(e,r){var n=e.invisible,o=n===void 0?!1:n,a=e.open,i=ce(e,["invisible","open"]);return a?eI.createElement("div",L({"aria-hidden":!0,ref:r},i,{style:L({},ene.root,o?ene.invisible:{},i.style)})):null}),tne=AHe;function MHe(t){return t=typeof t=="function"?t():t,rne.findDOMNode(t)}function FHe(t){return t.children?t.children.props.hasOwnProperty("in"):!1}var qHe=new Zre,jHe=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}},LHe=vr.forwardRef(function(e,r){var n=(0,tI.useTheme)(),o=(0,tI.getThemeProps)({name:"MuiModal",props:L({},e),theme:n}),a=o.BackdropComponent,i=a===void 0?tne:a,s=o.BackdropProps,u=o.children,l=o.closeAfterTransition,c=l===void 0?!1:l,f=o.container,d=o.disableAutoFocus,p=d===void 0?!1:d,m=o.disableBackdropClick,g=m===void 0?!1:m,v=o.disableEnforceFocus,h=v===void 0?!1:v,y=o.disableEscapeKeyDown,b=y===void 0?!1:y,E=o.disablePortal,w=E===void 0?!1:E,S=o.disableRestoreFocus,C=S===void 0?!1:S,P=o.disableScrollLock,k=P===void 0?!1:P,O=o.hideBackdrop,F=O===void 0?!1:O,U=o.keepMounted,J=U===void 0?!1:U,K=o.manager,Z=K===void 0?qHe:K,G=o.onBackdropClick,Q=o.onClose,N=o.onEscapeKeyDown,j=o.onRendered,V=o.open,Y=ce(o,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),X=vr.useState(!0),ie=X[0],de=X[1],fe=vr.useRef({}),le=vr.useRef(null),_e=vr.useRef(null),we=wt(_e,r),ge=FHe(o),Se=function(){return cn(le.current)},me=function(){return fe.current.modalRef=_e.current,fe.current.mountNode=le.current,fe.current},be=function(){Z.mount(me(),{disableScrollLock:k}),_e.current.scrollTop=0},Me=Bn(function(){var ue=MHe(f)||Se().body;Z.add(me(),ue),_e.current&&be()}),ve=vr.useCallback(function(){return Z.isTopModal(me())},[Z]),gt=Bn(function(ue){le.current=ue,ue&&(j&&j(),V&&ve()?be():Ym(_e.current,!0))}),qe=vr.useCallback(function(){Z.remove(me())},[Z]);if(vr.useEffect(function(){return function(){qe()}},[qe]),vr.useEffect(function(){V?Me():(!ge||!c)&&qe()},[V,qe,ge,c,Me]),!J&&!V&&(!ge||ie))return null;var nt=function(){de(!1)},Qe=function(){de(!0),c&&qe()},he=function(Be){Be.target===Be.currentTarget&&(G&&G(Be),!g&&Q&&Q(Be,"backdropClick"))},Ue=function(Be){Be.key!=="Escape"||!ve()||(N&&N(Be),b||(Be.stopPropagation(),Q&&Q(Be,"escapeKeyDown")))},Ie=jHe(n||{zIndex:CC}),Fe={};return u.props.tabIndex===void 0&&(Fe.tabIndex=u.props.tabIndex||"-1"),ge&&(Fe.onEnter=Vs(nt,u.props.onEnter),Fe.onExited=Vs(Qe,u.props.onExited)),vr.createElement(A_,{ref:gt,container:f,disablePortal:w},vr.createElement("div",L({ref:we,onKeyDown:Ue,role:"presentation"},Y,{style:L({},Ie.root,!V&&ie?Ie.hidden:{},Y.style)}),F?null:vr.createElement(i,L({open:V,onClick:he},s)),vr.createElement(Gj,{disableEnforceFocus:h,disableAutoFocus:p,disableRestoreFocus:C,getDoc:Se,isEnabled:ve,open:V},vr.cloneElement(u,Fe))))}),Vj=LHe;var ua=q(z());var one=q(Qp());var nne=function(e){return e.scrollTop};function Kj(t,e){var r=t.timeout,n=t.style,o=n===void 0?{}:n;return{duration:o.transitionDuration||typeof r=="number"?r:r[e.mode]||0,delay:o.transitionDelay}}function Yj(t){return"scale(".concat(t,", ").concat(Math.pow(t,2),")")}var BHe={entering:{opacity:1,transform:Yj(1)},entered:{opacity:1,transform:"none"}},ane=ua.forwardRef(function(e,r){var n=e.children,o=e.disableStrictModeCompat,a=o===void 0?!1:o,i=e.in,s=e.onEnter,u=e.onEntered,l=e.onEntering,c=e.onExit,f=e.onExited,d=e.onExiting,p=e.style,m=e.timeout,g=m===void 0?"auto":m,v=e.TransitionComponent,h=v===void 0?one.Transition:v,y=ce(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=ua.useRef(),E=ua.useRef(),w=Ws(),S=w.unstable_strictMode&&!a,C=ua.useRef(null),P=wt(n.ref,r),k=wt(S?C:void 0,P),O=function(j){return function(V,Y){if(j){var X=S?[C.current,V]:[V,Y],ie=bl(X,2),de=ie[0],fe=ie[1];fe===void 0?j(de):j(de,fe)}}},F=O(l),U=O(function(N,j){nne(N);var V=Kj({style:p,timeout:g},{mode:"enter"}),Y=V.duration,X=V.delay,ie;g==="auto"?(ie=w.transitions.getAutoHeightDuration(N.clientHeight),E.current=ie):ie=Y,N.style.transition=[w.transitions.create("opacity",{duration:ie,delay:X}),w.transitions.create("transform",{duration:ie*.666,delay:X})].join(","),s&&s(N,j)}),J=O(u),K=O(d),Z=O(function(N){var j=Kj({style:p,timeout:g},{mode:"exit"}),V=j.duration,Y=j.delay,X;g==="auto"?(X=w.transitions.getAutoHeightDuration(N.clientHeight),E.current=X):X=V,N.style.transition=[w.transitions.create("opacity",{duration:X,delay:Y}),w.transitions.create("transform",{duration:X*.666,delay:Y||X*.333})].join(","),N.style.opacity="0",N.style.transform=Yj(.75),c&&c(N)}),G=O(f),Q=function(j,V){var Y=S?j:V;g==="auto"&&(b.current=setTimeout(Y,E.current||0))};return ua.useEffect(function(){return function(){clearTimeout(b.current)}},[]),ua.createElement(h,L({appear:!0,in:i,nodeRef:S?C:void 0,onEnter:U,onEntered:J,onEntering:F,onExit:Z,onExited:G,onExiting:K,addEndListener:Q,timeout:g==="auto"?null:g},y),function(N,j){return ua.cloneElement(n,L({style:L({opacity:0,transform:Yj(.75),visibility:N==="exited"&&!i?"hidden":void 0},BHe[N],p,n.props.style),ref:k},j))})});ane.muiSupportAuto=!0;var Jj=ane;var rI=q(z());var ine=q(Le());var UHe=function(e){var r={};return e.shadows.forEach(function(n,o){r["elevation".concat(o)]={boxShadow:n}}),L({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},r)},zHe=rI.forwardRef(function(e,r){var n=e.classes,o=e.className,a=e.component,i=a===void 0?"div":a,s=e.square,u=s===void 0?!1:s,l=e.elevation,c=l===void 0?1:l,f=e.variant,d=f===void 0?"elevation":f,p=ce(e,["classes","className","component","square","elevation","variant"]);return rI.createElement(i,L({className:(0,ine.default)(n.root,o,d==="outlined"?n.outlined:n["elevation".concat(c)],!u&&n.rounded),ref:r},p))}),Xj=Ae(UHe,{name:"MuiPaper"})(zHe);function sne(t,e){var r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function une(t,e){var r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function lne(t){return[t.horizontal,t.vertical].map(function(e){return typeof e=="number"?"".concat(e,"px"):e}).join(" ")}function WHe(t,e){for(var r=e,n=0;r&&r!==t;)r=r.parentElement,n+=r.scrollTop;return n}function Zj(t){return typeof t=="function"?t():t}var $He={root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},HHe=Ir.forwardRef(function(e,r){var n=e.action,o=e.anchorEl,a=e.anchorOrigin,i=a===void 0?{vertical:"top",horizontal:"left"}:a,s=e.anchorPosition,u=e.anchorReference,l=u===void 0?"anchorEl":u,c=e.children,f=e.classes,d=e.className,p=e.container,m=e.elevation,g=m===void 0?8:m,v=e.getContentAnchorEl,h=e.marginThreshold,y=h===void 0?16:h,b=e.onEnter,E=e.onEntered,w=e.onEntering,S=e.onExit,C=e.onExited,P=e.onExiting,k=e.open,O=e.PaperProps,F=O===void 0?{}:O,U=e.transformOrigin,J=U===void 0?{vertical:"top",horizontal:"left"}:U,K=e.TransitionComponent,Z=K===void 0?Jj:K,G=e.transitionDuration,Q=G===void 0?"auto":G,N=e.TransitionProps,j=N===void 0?{}:N,V=ce(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),Y=Ir.useRef(),X=Ir.useCallback(function(me){if(l==="anchorPosition")return s;var be=Zj(o),Me=be&&be.nodeType===1?be:cn(Y.current).body,ve=Me.getBoundingClientRect();if(0)var gt;var qe=me===0?i.vertical:"center";return{top:ve.top+sne(ve,qe),left:ve.left+une(ve,i.horizontal)}},[o,i.horizontal,i.vertical,s,l]),ie=Ir.useCallback(function(me){var be=0;if(v&&l==="anchorEl"){var Me=v(me);if(Me&&me.contains(Me)){var ve=WHe(me,Me);be=Me.offsetTop+Me.clientHeight/2-ve||0}}return be},[i.vertical,l,v]),de=Ir.useCallback(function(me){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return{vertical:sne(me,J.vertical)+be,horizontal:une(me,J.horizontal)}},[J.horizontal,J.vertical]),fe=Ir.useCallback(function(me){var be=ie(me),Me={width:me.offsetWidth,height:me.offsetHeight},ve=de(Me,be);if(l==="none")return{top:null,left:null,transformOrigin:lne(ve)};var gt=X(be),qe=gt.top-ve.vertical,nt=gt.left-ve.horizontal,Qe=qe+Me.height,he=nt+Me.width,Ue=pd(Zj(o)),Ie=Ue.innerHeight-y,Fe=Ue.innerWidth-y;if(qeIe){var Be=Qe-Ie;qe-=Be,ve.vertical+=Be}if(ntFe){var ur=he-Fe;nt-=ur,ve.horizontal+=ur}return{top:"".concat(Math.round(qe),"px"),left:"".concat(Math.round(nt),"px"),transformOrigin:lne(ve)}},[o,l,X,ie,de,y]),le=Ir.useCallback(function(){var me=Y.current;if(me){var be=fe(me);be.top!==null&&(me.style.top=be.top),be.left!==null&&(me.style.left=be.left),me.style.transformOrigin=be.transformOrigin}},[fe]),_e=function(be,Me){w&&w(be,Me),le()},we=Ir.useCallback(function(me){Y.current=cne.findDOMNode(me)},[]);Ir.useEffect(function(){k&&le()}),Ir.useImperativeHandle(n,function(){return k?{updatePosition:function(){le()}}:null},[k,le]),Ir.useEffect(function(){if(k){var me=Ri(function(){le()});return window.addEventListener("resize",me),function(){me.clear(),window.removeEventListener("resize",me)}}},[k,le]);var ge=Q;Q==="auto"&&!Z.muiSupportAuto&&(ge=void 0);var Se=p||(o?cn(Zj(o)).body:void 0);return Ir.createElement(Vj,L({container:Se,open:k,ref:r,BackdropProps:{invisible:!0},className:(0,Qj.default)(f.root,d)},V),Ir.createElement(Z,L({appear:!0,in:k,onEnter:b,onEntered:E,onExit:S,onExited:C,onExiting:P,timeout:ge},j,{onEntering:Vs(_e,j.onEntering)}),Ir.createElement(Xj,L({elevation:g,ref:we},F,{className:(0,Qj.default)(f.paper,F.className)}),c)))}),eL=Ae($He,{name:"MuiPopover"})(HHe);var yr=q(z()),wft=q(Ef());var mne=q(jr());var Ed=q(z());var fne=q(Le());var dne=q(z()),GHe=dne.createContext({}),Jm=GHe;var VHe={root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},KHe=Ed.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.component,s=i===void 0?"ul":i,u=e.dense,l=u===void 0?!1:u,c=e.disablePadding,f=c===void 0?!1:c,d=e.subheader,p=ce(e,["children","classes","className","component","dense","disablePadding","subheader"]),m=Ed.useMemo(function(){return{dense:l}},[l]);return Ed.createElement(Jm.Provider,{value:m},Ed.createElement(s,L({className:(0,fne.default)(o.root,a,l&&o.dense,!f&&o.padding,d&&o.subheader),ref:r},p),d,n))}),tL=Ae(VHe,{name:"MuiList"})(KHe);function rL(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function pne(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function hne(t,e){if(e===void 0)return!0;var r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.indexOf(e.keys.join(""))===0}function F_(t,e,r,n,o,a){for(var i=!1,s=o(t,e,e?r:!1);s;){if(s===t.firstChild){if(i)return;i=!0}var u=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!hne(s,a)||u)s=o(t,s,r);else{s.focus();return}}}var YHe=typeof window=="undefined"?yr.useEffect:yr.useLayoutEffect,JHe=yr.forwardRef(function(e,r){var n=e.actions,o=e.autoFocus,a=o===void 0?!1:o,i=e.autoFocusItem,s=i===void 0?!1:i,u=e.children,l=e.className,c=e.disabledItemsFocusable,f=c===void 0?!1:c,d=e.disableListWrap,p=d===void 0?!1:d,m=e.onKeyDown,g=e.variant,v=g===void 0?"selectedMenu":g,h=ce(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),y=yr.useRef(null),b=yr.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});YHe(function(){a&&y.current.focus()},[a]),yr.useImperativeHandle(n,function(){return{adjustStyleForScrollbar:function(O,F){var U=!y.current.style.width;if(O.clientHeight0&&(G-K.lastTime>500?(K.keys=[],K.repeating=!0,K.previousKeyMatched=!0):K.repeating&&Z!==K.keys[0]&&(K.repeating=!1)),K.lastTime=G,K.keys.push(Z);var Q=J&&!K.repeating&&hne(J,K);K.previousKeyMatched&&(Q||F_(F,J,!1,f,rL,K))?O.preventDefault():K.previousKeyMatched=!1}m&&m(O)},w=yr.useCallback(function(k){y.current=mne.findDOMNode(k)},[]),S=wt(w,r),C=-1;yr.Children.forEach(u,function(k,O){yr.isValidElement(k)&&(k.props.disabled||(v==="selectedMenu"&&k.props.selected||C===-1)&&(C=O))});var P=yr.Children.map(u,function(k,O){if(O===C){var F={};return s&&(F.autoFocus=!0),k.props.tabIndex===void 0&&v==="selectedMenu"&&(F.tabIndex=0),yr.cloneElement(k,F)}return k});return yr.createElement(tL,L({role:"menu",ref:S,className:l,onKeyDown:E,tabIndex:a?0:-1},h),P)}),nL=JHe;var _ne=q(jr());var gne={vertical:"top",horizontal:"right"},vne={vertical:"top",horizontal:"left"},XHe={paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},ZHe=Un.forwardRef(function(e,r){var n=e.autoFocus,o=n===void 0?!0:n,a=e.children,i=e.classes,s=e.disableAutoFocusItem,u=s===void 0?!1:s,l=e.MenuListProps,c=l===void 0?{}:l,f=e.onClose,d=e.onEntering,p=e.open,m=e.PaperProps,g=m===void 0?{}:m,v=e.PopoverClasses,h=e.transitionDuration,y=h===void 0?"auto":h,b=e.TransitionProps;b=b===void 0?{}:b;var E=b.onEntering,w=ce(b,["onEntering"]),S=e.variant,C=S===void 0?"selectedMenu":S,P=ce(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),k=Ws(),O=o&&!u&&p,F=Un.useRef(null),U=Un.useRef(null),J=function(){return U.current},K=function(j,V){F.current&&F.current.adjustStyleForScrollbar(j,k),d&&d(j,V),E&&E(j,V)},Z=function(j){j.key==="Tab"&&(j.preventDefault(),f&&f(j,"tabKeyDown"))},G=-1;Un.Children.map(a,function(N,j){Un.isValidElement(N)&&(N.props.disabled||(C!=="menu"&&N.props.selected||G===-1)&&(G=j))});var Q=Un.Children.map(a,function(N,j){return j===G?Un.cloneElement(N,{ref:function(Y){U.current=_ne.findDOMNode(Y),Fa(N.ref,Y)}}):N});return Un.createElement(eL,L({getContentAnchorEl:J,classes:v,onClose:f,TransitionProps:L({onEntering:K},w),anchorOrigin:k.direction==="rtl"?gne:vne,transformOrigin:k.direction==="rtl"?gne:vne,PaperProps:L({},g,{classes:L({},g.classes,{root:i.paper})}),open:p,ref:r,transitionDuration:y},P),Un.createElement(nL,L({onKeyDown:Z,actions:F,autoFocus:o&&(G===-1||u),autoFocusItem:O,variant:C},c,{className:(0,yne.default)(i.list,c.className)}),Q))}),bne=Ae(XHe,{name:"MuiMenu"})(ZHe);var Td=q(z());function oL(t){var e=t.controlled,r=t.default,n=t.name,o=t.state,a=o===void 0?"value":o,i=Td.useRef(e!==void 0),s=i.current,u=Td.useState(r),l=u[0],c=u[1],f=s?e:l;if(0)var d,p;var m=Td.useCallback(function(g){s||c(g)},[]);return[f,m]}function Sne(t,e){return Bs(e)==="object"&&e!==null?t===e:String(t)===String(e)}function QHe(t){return t==null||typeof t=="string"&&!t.trim()}var e8e=Dt.forwardRef(function(e,r){var n=e["aria-label"],o=e.autoFocus,a=e.autoWidth,i=e.children,s=e.classes,u=e.className,l=e.defaultValue,c=e.disabled,f=e.displayEmpty,d=e.IconComponent,p=e.inputRef,m=e.labelId,g=e.MenuProps,v=g===void 0?{}:g,h=e.multiple,y=e.name,b=e.onBlur,E=e.onChange,w=e.onClose,S=e.onFocus,C=e.onOpen,P=e.open,k=e.readOnly,O=e.renderValue,F=e.SelectDisplayProps,U=F===void 0?{}:F,J=e.tabIndex,K=e.type,Z=e.value,G=e.variant,Q=G===void 0?"standard":G,N=ce(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),j=oL({controlled:Z,default:l,name:"Select"}),V=bl(j,2),Y=V[0],X=V[1],ie=Dt.useRef(null),de=Dt.useState(null),fe=de[0],le=de[1],_e=Dt.useRef(P!=null),we=_e.current,ge=Dt.useState(),Se=ge[0],me=ge[1],be=Dt.useState(!1),Me=be[0],ve=be[1],gt=wt(r,p);Dt.useImperativeHandle(gt,function(){return{focus:function(){fe.focus()},node:ie.current,value:Y}},[fe,Y]),Dt.useEffect(function(){o&&fe&&fe.focus()},[o,fe]),Dt.useEffect(function(){if(fe){var Je=cn(fe).getElementById(m);if(Je){var Pe=function(){getSelection().isCollapsed&&fe.focus()};return Je.addEventListener("click",Pe),function(){Je.removeEventListener("click",Pe)}}}},[m,fe]);var qe=function(Pe,ye){Pe?C&&C(ye):w&&w(ye),we||(me(a?null:fe.clientWidth),ve(Pe))},nt=function(Pe){Pe.button===0&&(Pe.preventDefault(),fe.focus(),qe(!0,Pe))},Qe=function(Pe){qe(!1,Pe)},he=Dt.Children.toArray(i),Ue=function(Pe){var ye=he.map(function(Re){return Re.props.value}).indexOf(Pe.target.value);if(ye!==-1){var H=he[ye];X(H.props.value),E&&E(Pe,H)}},Ie=function(Pe){return function(ye){h||qe(!1,ye);var H;if(h){H=Array.isArray(Y)?Y.slice():[];var Re=Y.indexOf(Pe.props.value);Re===-1?H.push(Pe.props.value):H.splice(Re,1)}else H=Pe.props.value;Pe.props.onClick&&Pe.props.onClick(ye),Y!==H&&(X(H),E&&(ye.persist(),Object.defineProperty(ye,"target",{writable:!0,value:{value:H,name:y}}),E(ye,Pe)))}},Fe=function(Pe){if(!k){var ye=[" ","ArrowUp","ArrowDown","Enter"];ye.indexOf(Pe.key)!==-1&&(Pe.preventDefault(),qe(!0,Pe))}},ue=fe!==null&&(we?P:Me),Be=function(Pe){!ue&&b&&(Pe.persist(),Object.defineProperty(Pe,"target",{writable:!0,value:{value:Y,name:y}}),b(Pe))};delete N["aria-invalid"];var kt,ur,dt=[],Xe=!1,it=!1;(Km({value:Y})||f)&&(O?kt=O(Y):Xe=!0);var kr=he.map(function(Je){if(!Dt.isValidElement(Je))return null;var Pe;if(h){if(!Array.isArray(Y))throw new Error((0,Ene.formatMuiErrorMessage)(2));Pe=Y.some(function(ye){return Sne(ye,Je.props.value)}),Pe&&Xe&&dt.push(Je.props.children)}else Pe=Sne(Y,Je.props.value),Pe&&Xe&&(ur=Je.props.children);return Pe&&(it=!0),Dt.cloneElement(Je,{"aria-selected":Pe?"true":void 0,onClick:Ie(Je),onKeyUp:function(H){H.key===" "&&H.preventDefault(),Je.props.onKeyUp&&Je.props.onKeyUp(H)},role:"option",selected:Pe,value:void 0,"data-value":Je.props.value})});Xe&&(kt=h?dt.join(", "):ur);var Yt=Se;!a&&we&&fe&&(Yt=fe.clientWidth);var et;typeof J!="undefined"?et=J:et=c?null:0;var Pt=U.id||(y?"mui-component-select-".concat(y):void 0);return Dt.createElement(Dt.Fragment,null,Dt.createElement("div",L({className:(0,aL.default)(s.root,s.select,s.selectMenu,s[Q],u,c&&s.disabled),ref:le,tabIndex:et,role:"button","aria-disabled":c?"true":void 0,"aria-expanded":ue?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[m,Pt].filter(Boolean).join(" ")||void 0,onKeyDown:Fe,onMouseDown:c||k?null:nt,onBlur:Be,onFocus:S},U,{id:Pt}),QHe(kt)?Dt.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):kt),Dt.createElement("input",L({value:Array.isArray(Y)?Y.join(","):Y,name:y,ref:ie,"aria-hidden":!0,onChange:Ue,tabIndex:-1,className:s.nativeInput,autoFocus:o},N)),Dt.createElement(d,{className:(0,aL.default)(s.icon,s["icon".concat(It(Q))],ue&&s.iconOpen,c&&s.disabled)}),Dt.createElement(bne,L({id:"menu-".concat(y||""),anchorEl:fe,open:ue,onClose:Qe},v,{MenuListProps:L({"aria-labelledby":m,role:"listbox",disableListWrap:!0},v.MenuListProps),PaperProps:L({},v.PaperProps,{style:L({minWidth:Yt},v.PaperProps!=null?v.PaperProps.style:null)})}),kr))}),Tne=e8e;var wne=q(z());var nI=zs(wne.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var Xm=q(z());var Sl=q(z());var iL=q(Le());var t8e=Sl.forwardRef(function(e,r){var n=e.classes,o=e.className,a=e.disabled,i=e.IconComponent,s=e.inputRef,u=e.variant,l=u===void 0?"standard":u,c=ce(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return Sl.createElement(Sl.Fragment,null,Sl.createElement("select",L({className:(0,iL.default)(n.root,n.select,n[l],o,a&&n.disabled),disabled:a,ref:s||r},c)),e.multiple?null:Sl.createElement(i,{className:(0,iL.default)(n.icon,n["icon".concat(It(l))],a&&n.disabled)}))}),oI=t8e;var sL=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:e.palette.type==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},r8e=Xm.createElement(_d,null),xne=Xm.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.IconComponent,i=a===void 0?nI:a,s=e.input,u=s===void 0?r8e:s,l=e.inputProps,c=e.variant,f=ce(e,["children","classes","IconComponent","input","inputProps","variant"]),d=qa(),p=Ro({props:e,muiFormControl:d,states:["variant"]});return Xm.cloneElement(u,L({inputComponent:oI,inputProps:L({children:n,classes:o,IconComponent:i,variant:p.variant,type:void 0},l,u?u.props.inputProps:{}),ref:r},f))});xne.muiName="Select";var vpt=Ae(sL,{name:"MuiNativeSelect"})(xne);var n8e=sL,o8e=El.createElement(_d,null),a8e=El.createElement(O_,null),Ine=El.forwardRef(function t(e,r){var n=e.autoWidth,o=n===void 0?!1:n,a=e.children,i=e.classes,s=e.displayEmpty,u=s===void 0?!1:s,l=e.IconComponent,c=l===void 0?nI:l,f=e.id,d=e.input,p=e.inputProps,m=e.label,g=e.labelId,v=e.labelWidth,h=v===void 0?0:v,y=e.MenuProps,b=e.multiple,E=b===void 0?!1:b,w=e.native,S=w===void 0?!1:w,C=e.onClose,P=e.onOpen,k=e.open,O=e.renderValue,F=e.SelectDisplayProps,U=e.variant,J=U===void 0?"standard":U,K=ce(e,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),Z=S?oI:Tne,G=qa(),Q=Ro({props:e,muiFormControl:G,states:["variant"]}),N=Q.variant||J,j=d||{standard:o8e,outlined:El.createElement(D_,{label:m,labelWidth:h}),filled:a8e}[N];return El.cloneElement(j,L({inputComponent:Z,inputProps:L({children:a,IconComponent:c,variant:N,type:void 0,multiple:E},S?{id:f}:{autoWidth:o,displayEmpty:u,labelId:g,MenuProps:y,onClose:C,onOpen:P,open:k,renderValue:O,SelectDisplayProps:L({id:f},F)},p,{classes:p?(0,Cne.mergeClasses)({baseClasses:i,newClasses:p.classes,Component:t}):i},d?d.props.inputProps:{}),ref:r},K))});Ine.muiName="Select";var q_=Ae(n8e,{name:"MuiSelect"})(Ine);var i8e={standard:_d,filled:O_,outlined:D_},s8e={root:{}},u8e=La.forwardRef(function(e,r){var n=e.autoComplete,o=e.autoFocus,a=o===void 0?!1:o,i=e.children,s=e.classes,u=e.className,l=e.color,c=l===void 0?"primary":l,f=e.defaultValue,d=e.disabled,p=d===void 0?!1:d,m=e.error,g=m===void 0?!1:m,v=e.FormHelperTextProps,h=e.fullWidth,y=h===void 0?!1:h,b=e.helperText,E=e.hiddenLabel,w=e.id,S=e.InputLabelProps,C=e.inputProps,P=e.InputProps,k=e.inputRef,O=e.label,F=e.multiline,U=F===void 0?!1:F,J=e.name,K=e.onBlur,Z=e.onChange,G=e.onFocus,Q=e.placeholder,N=e.required,j=N===void 0?!1:N,V=e.rows,Y=e.rowsMax,X=e.maxRows,ie=e.minRows,de=e.select,fe=de===void 0?!1:de,le=e.SelectProps,_e=e.type,we=e.value,ge=e.variant,Se=ge===void 0?"standard":ge,me=ce(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]),be={};if(Se==="outlined"&&(S&&typeof S.shrink!="undefined"&&(be.notched=S.shrink),O)){var Me,ve=(Me=S==null?void 0:S.required)!==null&&Me!==void 0?Me:j;be.label=La.createElement(La.Fragment,null,O,ve&&"\xA0*")}fe&&((!le||!le.native)&&(be.id=void 0),be["aria-describedby"]=void 0);var gt=b&&w?"".concat(w,"-helper-text"):void 0,qe=O&&w?"".concat(w,"-label"):void 0,nt=i8e[Se],Qe=La.createElement(nt,L({"aria-describedby":gt,autoComplete:n,autoFocus:a,defaultValue:f,fullWidth:y,multiline:U,name:J,rows:V,rowsMax:Y,maxRows:X,minRows:ie,type:_e,value:we,id:w,inputRef:k,onBlur:K,onChange:Z,onFocus:G,placeholder:Q,inputProps:C},be,P));return La.createElement(Wj,L({className:(0,kne.default)(s.root,u),disabled:p,error:g,fullWidth:y,hiddenLabel:E,ref:r,required:j,color:c,variant:Se},me),O&&La.createElement(bd,L({htmlFor:w,id:qe},S),O),fe?La.createElement(q_,L({"aria-describedby":gt,id:w,labelId:qe,value:we,input:Qe},le),i):Qe,b&&La.createElement(ja,L({id:gt},v),b))}),aI=Ae(s8e,{name:"MuiTextField"})(u8e);var sr=q(z());var xd=q(Le()),coe=q(zf());var Qt=q(z());var j_=typeof window!="undefined"&&typeof document!="undefined"&&typeof navigator!="undefined",l8e=function(){for(var t=["Edge","Trident","Firefox"],e=0;e=0)return 1;return 0}();function c8e(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function d8e(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},l8e))}}var f8e=j_&&window.Promise,p8e=f8e?c8e:d8e;function Ane(t){var e={};return t&&e.toString.call(t)==="[object Function]"}function wd(t,e){if(t.nodeType!==1)return[];var r=t.ownerDocument.defaultView,n=r.getComputedStyle(t,null);return e?n[e]:n}function pL(t){return t.nodeName==="HTML"?t:t.parentNode||t.host}function L_(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=wd(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(r+o+n)?t:L_(pL(t))}function Mne(t){return t&&t.referenceNode?t.referenceNode:t}var Pne=j_&&!!(window.MSInputMethodContext&&document.documentMode),One=j_&&/MSIE 10/.test(navigator.userAgent);function th(t){return t===11?Pne:t===10?One:Pne||One}function Zm(t){if(!t)return document.documentElement;for(var e=th(10)?document.body:null,r=t.offsetParent||null;r===e&&t.nextElementSibling;)r=(t=t.nextElementSibling).offsetParent;var n=r&&r.nodeName;return!n||n==="BODY"||n==="HTML"?t?t.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&wd(r,"position")==="static"?Zm(r):r}function m8e(t){var e=t.nodeName;return e==="BODY"?!1:e==="HTML"||Zm(t.firstElementChild)===t}function cL(t){return t.parentNode!==null?cL(t.parentNode):t}function iI(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var r=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?t:e,o=r?e:t,a=document.createRange();a.setStart(n,0),a.setEnd(o,0);var i=a.commonAncestorContainer;if(t!==i&&e!==i||n.contains(o))return m8e(i)?i:Zm(i);var s=cL(t);return s.host?iI(s.host,e):iI(t,cL(e).host)}function Qm(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",r=e==="top"?"scrollTop":"scrollLeft",n=t.nodeName;if(n==="BODY"||n==="HTML"){var o=t.ownerDocument.documentElement,a=t.ownerDocument.scrollingElement||o;return a[r]}return t[r]}function h8e(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Qm(e,"top"),o=Qm(e,"left"),a=r?-1:1;return t.top+=n*a,t.bottom+=n*a,t.left+=o*a,t.right+=o*a,t}function Rne(t,e){var r=e==="x"?"Left":"Top",n=r==="Left"?"Right":"Bottom";return parseFloat(t["border"+r+"Width"])+parseFloat(t["border"+n+"Width"])}function Dne(t,e,r,n){return Math.max(e["offset"+t],e["scroll"+t],r["client"+t],r["offset"+t],r["scroll"+t],th(10)?parseInt(r["offset"+t])+parseInt(n["margin"+(t==="Height"?"Top":"Left")])+parseInt(n["margin"+(t==="Height"?"Bottom":"Right")]):0)}function Fne(t){var e=t.body,r=t.documentElement,n=th(10)&&getComputedStyle(r);return{height:Dne("Height",e,r,n),width:Dne("Width",e,r,n)}}var g8e=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},v8e=function(){function t(e,r){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:!1,n=th(10),o=e.nodeName==="HTML",a=dL(t),i=dL(e),s=L_(t),u=wd(e),l=parseFloat(u.borderTopWidth),c=parseFloat(u.borderLeftWidth);r&&o&&(i.top=Math.max(i.top,0),i.left=Math.max(i.left,0));var f=Tl({top:a.top-i.top-l,left:a.left-i.left-c,width:a.width,height:a.height});if(f.marginTop=0,f.marginLeft=0,!n&&o){var d=parseFloat(u.marginTop),p=parseFloat(u.marginLeft);f.top-=l-d,f.bottom-=l-d,f.left-=c-p,f.right-=c-p,f.marginTop=d,f.marginLeft=p}return(n&&!r?e.contains(s):e===s&&s.nodeName!=="BODY")&&(f=h8e(f,e)),f}function y8e(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=t.ownerDocument.documentElement,n=mL(t,r),o=Math.max(r.clientWidth,window.innerWidth||0),a=Math.max(r.clientHeight,window.innerHeight||0),i=e?0:Qm(r),s=e?0:Qm(r,"left"),u={top:i-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:o,height:a};return Tl(u)}function qne(t){var e=t.nodeName;if(e==="BODY"||e==="HTML")return!1;if(wd(t,"position")==="fixed")return!0;var r=pL(t);return r?qne(r):!1}function jne(t){if(!t||!t.parentElement||th())return document.documentElement;for(var e=t.parentElement;e&&wd(e,"transform")==="none";)e=e.parentElement;return e||document.documentElement}function hL(t,e,r,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},i=o?jne(t):iI(t,Mne(e));if(n==="viewport")a=y8e(i,o);else{var s=void 0;n==="scrollParent"?(s=L_(pL(e)),s.nodeName==="BODY"&&(s=t.ownerDocument.documentElement)):n==="window"?s=t.ownerDocument.documentElement:s=n;var u=mL(s,i,o);if(s.nodeName==="HTML"&&!qne(i)){var l=Fne(t.ownerDocument),c=l.height,f=l.width;a.top+=u.top-u.marginTop,a.bottom=c+u.top,a.left+=u.left-u.marginLeft,a.right=f+u.left}else a=u}r=r||0;var d=typeof r=="number";return a.left+=d?r:r.left||0,a.top+=d?r:r.top||0,a.right-=d?r:r.right||0,a.bottom-=d?r:r.bottom||0,a}function _8e(t){var e=t.width,r=t.height;return e*r}function Lne(t,e,r,n,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(t.indexOf("auto")===-1)return t;var i=hL(r,n,a,o),s={top:{width:i.width,height:e.top-i.top},right:{width:i.right-e.right,height:i.height},bottom:{width:i.width,height:i.bottom-e.bottom},left:{width:e.left-i.left,height:i.height}},u=Object.keys(s).map(function(d){return la({key:d},s[d],{area:_8e(s[d])})}).sort(function(d,p){return p.area-d.area}),l=u.filter(function(d){var p=d.width,m=d.height;return p>=r.clientWidth&&m>=r.clientHeight}),c=l.length>0?l[0].key:u[0].key,f=t.split("-")[1];return c+(f?"-"+f:"")}function Bne(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,o=n?jne(e):iI(e,Mne(r));return mL(r,o,n)}function Une(t){var e=t.ownerDocument.defaultView,r=e.getComputedStyle(t),n=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),o=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),a={width:t.offsetWidth+o,height:t.offsetHeight+n};return a}function sI(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(r){return e[r]})}function zne(t,e,r){r=r.split("-")[0];var n=Une(t),o={width:n.width,height:n.height},a=["right","left"].indexOf(r)!==-1,i=a?"top":"left",s=a?"left":"top",u=a?"height":"width",l=a?"width":"height";return o[i]=e[i]+e[u]/2-n[u]/2,r===s?o[s]=e[s]-n[l]:o[s]=e[sI(s)],o}function B_(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function b8e(t,e,r){if(Array.prototype.findIndex)return t.findIndex(function(o){return o[e]===r});var n=B_(t,function(o){return o[e]===r});return t.indexOf(n)}function Wne(t,e,r){var n=r===void 0?t:t.slice(0,b8e(t,"name",r));return n.forEach(function(o){o.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var a=o.function||o.fn;o.enabled&&Ane(a)&&(e.offsets.popper=Tl(e.offsets.popper),e.offsets.reference=Tl(e.offsets.reference),e=a(e,o))}),e}function S8e(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=Bne(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=Lne(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=zne(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=Wne(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function $ne(t,e){return t.some(function(r){var n=r.name,o=r.enabled;return o&&n===e})}function gL(t){for(var e=[!1,"ms","Webkit","Moz","O"],r=t.charAt(0).toUpperCase()+t.slice(1),n=0;ni[p]&&(t.offsets.popper[f]+=s[f]+m-i[p]),t.offsets.popper=Tl(t.offsets.popper);var g=s[f]+s[l]/2-m/2,v=wd(t.instance.popper),h=parseFloat(v["margin"+c]),y=parseFloat(v["border"+c+"Width"]),b=g-t.offsets.popper[f]-h-y;return b=Math.max(Math.min(i[l]-m,b),0),t.arrowElement=n,t.offsets.arrow=(r={},eh(r,f,Math.round(b)),eh(r,d,""),r),t}function A8e(t){return t==="end"?"start":t==="start"?"end":t}var Kne=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],uL=Kne.slice(3);function Nne(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=uL.indexOf(t),n=uL.slice(r+1).concat(uL.slice(0,r));return e?n.reverse():n}var lL={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function M8e(t,e){if($ne(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var r=hL(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],o=sI(n),a=t.placement.split("-")[1]||"",i=[];switch(e.behavior){case lL.FLIP:i=[n,o];break;case lL.CLOCKWISE:i=Nne(n);break;case lL.COUNTERCLOCKWISE:i=Nne(n,!0);break;default:i=e.behavior}return i.forEach(function(s,u){if(n!==s||i.length===u+1)return t;n=t.placement.split("-")[0],o=sI(n);var l=t.offsets.popper,c=t.offsets.reference,f=Math.floor,d=n==="left"&&f(l.right)>f(c.left)||n==="right"&&f(l.left)f(c.top)||n==="bottom"&&f(l.top)f(r.right),g=f(l.top)f(r.bottom),h=n==="left"&&p||n==="right"&&m||n==="top"&&g||n==="bottom"&&v,y=["top","bottom"].indexOf(n)!==-1,b=!!e.flipVariations&&(y&&a==="start"&&p||y&&a==="end"&&m||!y&&a==="start"&&g||!y&&a==="end"&&v),E=!!e.flipVariationsByContent&&(y&&a==="start"&&m||y&&a==="end"&&p||!y&&a==="start"&&v||!y&&a==="end"&&g),w=b||E;(d||h||w)&&(t.flipped=!0,(d||h)&&(n=i[u+1]),w&&(a=A8e(a)),t.placement=n+(a?"-"+a:""),t.offsets.popper=la({},t.offsets.popper,zne(t.instance.popper,t.offsets.reference,t.placement)),t=Wne(t.instance.modifiers,t,"flip"))}),t}function F8e(t){var e=t.offsets,r=e.popper,n=e.reference,o=t.placement.split("-")[0],a=Math.floor,i=["top","bottom"].indexOf(o)!==-1,s=i?"right":"bottom",u=i?"left":"top",l=i?"width":"height";return r[s]a(n[s])&&(t.offsets.popper[u]=a(n[s])),t}function q8e(t,e,r,n){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],i=o[2];if(!a)return t;if(i.indexOf("%")===0){var s=void 0;switch(i){case"%p":s=r;break;case"%":case"%r":default:s=n}var u=Tl(s);return u[e]/100*a}else if(i==="vh"||i==="vw"){var l=void 0;return i==="vh"?l=Math.max(document.documentElement.clientHeight,window.innerHeight||0):l=Math.max(document.documentElement.clientWidth,window.innerWidth||0),l/100*a}else return a}function j8e(t,e,r,n){var o=[0,0],a=["right","left"].indexOf(n)!==-1,i=t.split(/(\+|\-)/).map(function(c){return c.trim()}),s=i.indexOf(B_(i,function(c){return c.search(/,|\s/)!==-1}));i[s]&&i[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,l=s!==-1?[i.slice(0,s).concat([i[s].split(u)[0]]),[i[s].split(u)[1]].concat(i.slice(s+1))]:[i];return l=l.map(function(c,f){var d=(f===1?!a:a)?"height":"width",p=!1;return c.reduce(function(m,g){return m[m.length-1]===""&&["+","-"].indexOf(g)!==-1?(m[m.length-1]=g,p=!0,m):p?(m[m.length-1]+=g,p=!1,m):m.concat(g)},[]).map(function(m){return q8e(m,d,e,r)})}),l.forEach(function(c,f){c.forEach(function(d,p){vL(d)&&(o[f]+=d*(c[p-1]==="-"?-1:1))})}),o}function L8e(t,e){var r=e.offset,n=t.placement,o=t.offsets,a=o.popper,i=o.reference,s=n.split("-")[0],u=void 0;return vL(+r)?u=[+r,0]:u=j8e(r,a,i,s),s==="left"?(a.top+=u[0],a.left-=u[1]):s==="right"?(a.top+=u[0],a.left+=u[1]):s==="top"?(a.left+=u[0],a.top-=u[1]):s==="bottom"&&(a.left+=u[0],a.top+=u[1]),t.popper=a,t}function B8e(t,e){var r=e.boundariesElement||Zm(t.instance.popper);t.instance.reference===r&&(r=Zm(r));var n=gL("transform"),o=t.instance.popper.style,a=o.top,i=o.left,s=o[n];o.top="",o.left="",o[n]="";var u=hL(t.instance.popper,t.instance.reference,e.padding,r,t.positionFixed);o.top=a,o.left=i,o[n]=s,e.boundaries=u;var l=e.priority,c=t.offsets.popper,f={primary:function(p){var m=c[p];return c[p]u[p]&&!e.escapeWithReference&&(g=Math.min(c[m],u[p]-(p==="right"?c.width:c.height))),eh({},m,g)}};return l.forEach(function(d){var p=["left","top"].indexOf(d)!==-1?"primary":"secondary";c=la({},c,f[p](d))}),t.offsets.popper=c,t}function U8e(t){var e=t.placement,r=e.split("-")[0],n=e.split("-")[1];if(n){var o=t.offsets,a=o.reference,i=o.popper,s=["bottom","top"].indexOf(r)!==-1,u=s?"left":"top",l=s?"width":"height",c={start:eh({},u,a[u]),end:eh({},u,a[u]+a[l]-i[l])};t.offsets.popper=la({},i,c[n])}return t}function z8e(t){if(!Vne(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,r=B_(t.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(e.bottomr.right||e.top>r.bottom||e.right2&&arguments[2]!==void 0?arguments[2]:{};g8e(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=p8e(this.update.bind(this)),this.options=la({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(la({},t.Defaults.modifiers,o.modifiers)).forEach(function(i){n.options.modifiers[i]=la({},t.Defaults.modifiers[i]||{},o.modifiers?o.modifiers[i]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(i){return la({name:i},n.options.modifiers[i])}).sort(function(i,s){return i.order-s.order}),this.modifiers.forEach(function(i){i.enabled&&Ane(i.onLoad)&&i.onLoad(n.reference,n.popper,n.options,i,n.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return v8e(t,[{key:"update",value:function(){return S8e.call(this)}},{key:"destroy",value:function(){return E8e.call(this)}},{key:"enableEventListeners",value:function(){return w8e.call(this)}},{key:"disableEventListeners",value:function(){return C8e.call(this)}}]),t}();uI.Utils=(typeof window!="undefined"?window:global).PopperUtils;uI.placements=Kne;uI.Defaults=H8e;var Yne=uI;var Xne=q(An());function G8e(t,e){var r=e&&e.direction||"ltr";if(r==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function Jne(t){return typeof t=="function"?t():t}var V8e=typeof window!="undefined"?Qt.useLayoutEffect:Qt.useEffect,K8e={},Y8e=Qt.forwardRef(function(e,r){var n=e.anchorEl,o=e.children,a=e.container,i=e.disablePortal,s=i===void 0?!1:i,u=e.keepMounted,l=u===void 0?!1:u,c=e.modifiers,f=e.open,d=e.placement,p=d===void 0?"bottom":d,m=e.popperOptions,g=m===void 0?K8e:m,v=e.popperRef,h=e.style,y=e.transition,b=y===void 0?!1:y,E=ce(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),w=Qt.useRef(null),S=wt(w,r),C=Qt.useRef(null),P=wt(C,v),k=Qt.useRef(P);V8e(function(){k.current=P},[P]),Qt.useImperativeHandle(v,function(){return C.current},[]);var O=Qt.useState(!0),F=O[0],U=O[1],J=(0,Xne.useTheme)(),K=G8e(p,J),Z=Qt.useState(K),G=Z[0],Q=Z[1];Qt.useEffect(function(){C.current&&C.current.update()});var N=Qt.useCallback(function(){if(!(!w.current||!n||!f)){C.current&&(C.current.destroy(),k.current(null));var de=function(ge){Q(ge.placement)},fe=Jne(n);if(0&&fe&&fe.nodeType===1)var le;var _e=new Yne(Jne(n),w.current,L({placement:K},g,{modifiers:L({},s?{}:{preventOverflow:{boundariesElement:"window"}},c,g.modifiers),onCreate:Vs(de,g.onCreate),onUpdate:Vs(de,g.onUpdate)}));k.current(_e)}},[n,s,c,f,K,g]),j=Qt.useCallback(function(de){Fa(S,de),N()},[S,N]),V=function(){U(!1)},Y=function(){C.current&&(C.current.destroy(),k.current(null))},X=function(){U(!0),Y()};if(Qt.useEffect(function(){return function(){Y()}},[]),Qt.useEffect(function(){!f&&!b&&Y()},[f,b]),!l&&!f&&(!b||F))return null;var ie={placement:G};return b&&(ie.TransitionProps={in:f,onEnter:V,onExited:X}),Qt.createElement(A_,{disablePortal:s,container:a},Qt.createElement("div",L({ref:j,role:"tooltip"},E,{style:L({position:"fixed",top:0,left:0,display:!f&&l&&!b?"none":null},h)}),typeof o=="function"?o(ie):o))}),yL=Y8e;var lI=q(z());var Zne=q(Le());var J8e=function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}},X8e=lI.forwardRef(function(e,r){var n=e.classes,o=e.className,a=e.color,i=a===void 0?"default":a,s=e.component,u=s===void 0?"li":s,l=e.disableGutters,c=l===void 0?!1:l,f=e.disableSticky,d=f===void 0?!1:f,p=e.inset,m=p===void 0?!1:p,g=ce(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return lI.createElement(u,L({className:(0,Zne.default)(n.root,o,i!=="default"&&n["color".concat(It(i))],m&&n.inset,!d&&n.sticky,!c&&n.gutters),ref:r},g))}),_L=Ae(J8e,{name:"MuiListSubheader"})(X8e);var doe=q(Bx()),EL=q(h_());var On=q(z());var wl=q(Le());var Qne=q(z());var eoe=zs(Qne.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");var Z8e=function(e){var r=e.palette.type==="light"?e.palette.grey[300]:e.palette.grey[700],n=sa(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(r),backgroundColor:r,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:e.palette.type==="light"?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:fd(r,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:fd(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:fd(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:fd(r,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:fd(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:fd(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat(e.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:sa(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:sa(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:sa(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:e.palette.type==="light"?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:sa(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:sa(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:sa(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:sa(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:sa(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}};function toe(t){return t.key==="Backspace"||t.key==="Delete"}var Q8e=On.forwardRef(function(e,r){var n=e.avatar,o=e.classes,a=e.className,i=e.clickable,s=e.color,u=s===void 0?"default":s,l=e.component,c=e.deleteIcon,f=e.disabled,d=f===void 0?!1:f,p=e.icon,m=e.label,g=e.onClick,v=e.onDelete,h=e.onKeyDown,y=e.onKeyUp,b=e.size,E=b===void 0?"medium":b,w=e.variant,S=w===void 0?"default":w,C=ce(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),P=On.useRef(null),k=wt(P,r),O=function(X){X.stopPropagation(),v&&v(X)},F=function(X){X.currentTarget===X.target&&toe(X)&&X.preventDefault(),h&&h(X)},U=function(X){X.currentTarget===X.target&&(v&&toe(X)?v(X):X.key==="Escape"&&P.current&&P.current.blur()),y&&y(X)},J=i!==!1&&g?!0:i,K=E==="small",Z=l||(J?Oi:"div"),G=Z===Oi?{component:"div"}:{},Q=null;if(v){var N=(0,wl.default)(u!=="default"&&(S==="default"?o["deleteIconColor".concat(It(u))]:o["deleteIconOutlinedColor".concat(It(u))]),K&&o.deleteIconSmall);Q=c&&On.isValidElement(c)?On.cloneElement(c,{className:(0,wl.default)(c.props.className,o.deleteIcon,N),onClick:O}):On.createElement(eoe,{className:(0,wl.default)(o.deleteIcon,N),onClick:O})}var j=null;n&&On.isValidElement(n)&&(j=On.cloneElement(n,{className:(0,wl.default)(o.avatar,n.props.className,K&&o.avatarSmall,u!=="default"&&o["avatarColor".concat(It(u))])}));var V=null;return p&&On.isValidElement(p)&&(V=On.cloneElement(p,{className:(0,wl.default)(o.icon,p.props.className,K&&o.iconSmall,u!=="default"&&o["iconColor".concat(It(u))])})),On.createElement(Z,L({role:J||v?"button":void 0,className:(0,wl.default)(o.root,a,u!=="default"&&[o["color".concat(It(u))],J&&o["clickableColor".concat(It(u))],v&&o["deletableColor".concat(It(u))]],S!=="default"&&[o.outlined,{primary:o.outlinedPrimary,secondary:o.outlinedSecondary}[u]],d&&o.disabled,K&&o.sizeSmall,J&&o.clickable,v&&o.deletable),"aria-disabled":d?!0:void 0,tabIndex:J||v?0:void 0,onClick:g,onKeyDown:F,onKeyUp:U,ref:k},G,C),j||V,On.createElement("span",{className:(0,wl.default)(o.label,K&&o.labelSmall)},m),Q)}),bL=Ae(Z8e,{name:"MuiChip"})(Q8e);var roe=q(z()),noe=q(m_()),ooe=(0,noe.createSvgIcon)(roe.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var aoe=q(z()),ioe=q(m_()),soe=(0,ioe.createSvgIcon)(aoe.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var dn=q(z()),so=q(m_());function uoe(t){return typeof t.normalize!="undefined"?t.normalize("NFD").replace(/[\u0300-\u036f]/g,""):t}function cI(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.ignoreAccents,r=e===void 0?!0:e,n=t.ignoreCase,o=n===void 0?!0:n,a=t.limit,i=t.matchFrom,s=i===void 0?"any":i,u=t.stringify,l=t.trim,c=l===void 0?!1:l;return function(f,d){var p=d.inputValue,m=d.getOptionLabel,g=c?p.trim():p;o&&(g=g.toLowerCase()),r&&(g=uoe(g));var v=f.filter(function(h){var y=(u||m)(h);return o&&(y=y.toLowerCase()),r&&(y=uoe(y)),s==="start"?y.indexOf(g)===0:y.indexOf(g)>-1});return typeof a=="number"?v.slice(0,a):v}}function SL(t,e){for(var r=0;r0)var tb;var Xs=(0,so.useEventCallback)(function(R){R===-1?dt.current.focus():kr.querySelector('[data-tag-index="'.concat(R,'"]')).focus()});dn.useEffect(function(){Se&&Pt>De.length-1&&(Je(-1),Xs(-1))},[De,Se,Pt,Xs]);function vh(R,I){if(!Xe.current||R===-1)return-1;for(var D=R;;){if(I==="next"&&D===Pr.length||I==="previous"&&D===-1)return-1;var W=Xe.current.querySelector('[data-option-index="'.concat(D,'"]')),oe=P?!1:W&&(W.disabled||W.getAttribute("aria-disabled")==="true");if(W&&!W.hasAttribute("tabindex")||oe)D+=I==="next"?1:-1;else return D}}var fa=(0,so.useEventCallback)(function(R){var I=R.event,D=R.index,W=R.reason,oe=W===void 0?"auto":W;if(ye.current=D,D===-1?dt.current.removeAttribute("aria-activedescendant"):dt.current.setAttribute("aria-activedescendant","".concat(ue,"-option-").concat(D)),Me&&Me(I,D===-1?null:Pr[D],oe),!!Xe.current){var ae=Xe.current.querySelector("[data-focus]");ae&&ae.removeAttribute("data-focus");var ne=Xe.current.parentElement.querySelector('[role="listbox"]');if(ne){if(D===-1){ne.scrollTop=0;return}var Ee=Xe.current.querySelector('[data-option-index="'.concat(D,'"]'));if(Ee&&(Ee.setAttribute("data-focus","true"),ne.scrollHeight>ne.clientHeight&&oe!=="mouse")){var xe=Ee,ze=ne.clientHeight+ne.scrollTop,ot=xe.offsetTop+xe.offsetHeight;ot>ze?ne.scrollTop=ot-ne.clientHeight:xe.offsetTop-xe.offsetHeight*(X?1.3:0)1?0:qt:Hr>qt?Hr===qt+1&&_e?-1:O||Math.abs(D)>1?qt:0:Hr},xe=vh(Ee(),oe);if(fa({index:xe,reason:ne,event:I}),r&&D!=="reset")if(xe===-1)dt.current.value=St;else{var ze=Be(Pr[xe]);dt.current.value=ze;var ot=ze.toLowerCase().indexOf(St.toLowerCase());ot===0&&St.length>0&&dt.current.setSelectionRange(St.length,ze.length)}}}),Fd=dn.useCallback(function(){if(Mr){var R=Se?De[0]:De;if(Pr.length===0||R==null){Wn({diff:"reset"});return}if(Xe.current){if(!K&&R!=null){var I=Pr[ye.current];if(Se&&I&&SL(De,function(W){return Y(I,W)})!==-1)return;var D=SL(Pr,function(W){return Y(W,R)});D===-1?Wn({diff:"reset"}):fa({index:D});return}if(ye.current>=Pr.length-1){fa({index:Pr.length-1});return}fa({index:ye.current})}}},[Pr.length===0,Se?!1:De,K,Wn,fa,Mr,St,Se]),qd=(0,so.useEventCallback)(function(R){(0,so.setRef)(Xe,R),R&&Fd()});dn.useEffect(function(){Fd()},[Fd]);var uo=function(I){zi||(Fl(!0),gt&>(I))},Zs=function(I,D){zi&&(Fl(!1),be&&be(I,D))},Wi=function(I,D,W,oe){De!==D&&(me&&me(I,D,W,oe),Ot(D))},Qs=dn.useRef(!1),Wt=function(I,D){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"select-option",oe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"options",ae=W,ne=D;if(Se){if(ne=Array.isArray(De)?De.slice():[],0)var Ee;var xe=SL(ne,function(ze){return Y(D,ze)});xe===-1?ne.push(D):oe!=="freeSolo"&&(ne.splice(xe,1),ae="remove-option")}Ui(I,ne),Wi(I,ne,ae,{option:D}),S||Zs(I,ae),(u===!0||u==="touch"&&Qs.current||u==="mouse"&&!Qs.current)&&dt.current.blur()};function yh(R,I){if(R===-1)return-1;for(var D=R;;){if(I==="next"&&D===De.length||I==="previous"&&D===-1)return-1;var W=kr.querySelector('[data-tag-index="'.concat(D,'"]'));if(W&&(!W.hasAttribute("tabindex")||W.disabled||W.getAttribute("aria-disabled")==="true"))D+=I==="next"?1:-1;else return D}}var jd=function(I,D){if(Se){Zs(I,"toggleInput");var W=Pt;Pt===-1?St===""&&D==="previous"&&(W=De.length-1):(W+=D==="next"?1:-1,W<0&&(W=0),W===De.length&&(W=-1)),W=yh(W,D),Je(W),Xs(W)}},Ld=function(I){kt.current=!0,zn(""),ve&&ve(I,"","clear"),Wi(I,Se?[]:null,"clear")},Bd=function(I){return function(D){switch(Pt!==-1&&["ArrowLeft","ArrowRight"].indexOf(D.key)===-1&&(Je(-1),Xs(-1)),D.key){case"Home":Mr&&de&&(D.preventDefault(),Wn({diff:"start",direction:"next",reason:"keyboard",event:D}));break;case"End":Mr&&de&&(D.preventDefault(),Wn({diff:"end",direction:"previous",reason:"keyboard",event:D}));break;case"PageUp":D.preventDefault(),Wn({diff:-loe,direction:"previous",reason:"keyboard",event:D}),uo(D);break;case"PageDown":D.preventDefault(),Wn({diff:loe,direction:"next",reason:"keyboard",event:D}),uo(D);break;case"ArrowDown":D.preventDefault(),Wn({diff:1,direction:"next",reason:"keyboard",event:D}),uo(D);break;case"ArrowUp":D.preventDefault(),Wn({diff:-1,direction:"previous",reason:"keyboard",event:D}),uo(D);break;case"ArrowLeft":jd(D,"previous");break;case"ArrowRight":jd(D,"next");break;case"Enter":if(D.which===229)break;if(ye.current!==-1&&Mr){var W=Pr[ye.current],oe=Q?Q(W):!1;if(D.preventDefault(),oe)return;Wt(D,W,"select-option"),r&&dt.current.setSelectionRange(dt.current.value.length,dt.current.value.length)}else G&&St!==""&&Md===!1&&(Se&&D.preventDefault(),Wt(D,St,"create-option","freeSolo"));break;case"Escape":Mr?(D.preventDefault(),D.stopPropagation(),Zs(D,"escape")):d&&(St!==""||Se&&De.length>0)&&(D.preventDefault(),D.stopPropagation(),Ld(D));break;case"Backspace":if(Se&&St===""&&De.length>0){var ae=Pt===-1?De.length-1:Pt,ne=De.slice();ne.splice(ae,1),Wi(D,ne,"remove-option",{option:De[ae]})}break;default:}I.onKeyDown&&I.onKeyDown(D)}},$i=function(I){Al(!0),Qe&&!kt.current&&uo(I)},Ud=function(I){if(Xe.current!==null&&document.activeElement===Xe.current.parentElement){dt.current.focus();return}Al(!1),ur.current=!0,kt.current=!1,!(v&&St!=="")&&(i&&ye.current!==-1&&Mr?Wt(I,Pr[ye.current],"blur"):i&&G&&St!==""?Wt(I,St,"blur","freeSolo"):c&&Ui(I,De),Zs(I,"blur"))},Ua=function(I){var D=I.target.value;St!==D&&(zn(D),ve&&ve(I,D,"input")),D===""?!E&&!Se&&Wi(I,null,"clear"):uo(I)},_h=function(I){fa({event:I,index:Number(I.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},za=function(){Qs.current=!0},ql=function(I){var D=Number(I.currentTarget.getAttribute("data-option-index"));Wt(I,Pr[D],"select-option"),Qs.current=!1},bh=function(I){return function(D){var W=De.slice();W.splice(I,1),Wi(D,W,"remove-option",{option:De[I]})}},Hi=function(I){zi?Zs(I,"toggleInput"):uo(I)},eu=function(I){I.target.getAttribute("id")!==ue&&I.preventDefault()},Sh=function(){dt.current.focus(),Ie&&ur.current&&dt.current.selectionEnd-dt.current.selectionStart===0&&dt.current.select(),ur.current=!1},tu=function(I){(St===""||!zi)&&Hi(I)},T=G&&St.length>0;T=T||(Se?De.length>0:De!==null);var A=Pr;if(X){var x=new Map,M=!1;A=Pr.reduce(function(R,I,D){var W=X(I);return R.length>0&&R[R.length-1].group===W?R[R.length-1].options.push(I):R.push({key:D,index:D,group:W,options:[I]}),R},[])}return{getRootProps:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return L({"aria-owns":Mr?"".concat(ue,"-popup"):null,role:"combobox","aria-expanded":Mr},I,{onKeyDown:Bd(I),onMouseDown:eu,onClick:Sh})},getInputLabelProps:function(){return{id:"".concat(ue,"-label"),htmlFor:ue}},getInputProps:function(){return{id:ue,value:St,onBlur:Ud,onFocus:$i,onChange:Ua,onMouseDown:tu,"aria-activedescendant":Mr?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Mr?"".concat(ue,"-popup"):null,autoComplete:"off",ref:dt,autoCapitalize:"none",spellCheck:"false"}},getClearProps:function(){return{tabIndex:-1,onClick:Ld}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:Hi}},getTagProps:function(I){var D=I.index;return{key:D,"data-tag-index":D,tabIndex:-1,onDelete:bh(D)}},getListboxProps:function(){return{role:"listbox",id:"".concat(ue,"-popup"),"aria-labelledby":"".concat(ue,"-label"),ref:qd,onMouseDown:function(D){D.preventDefault()}}},getOptionProps:function(I){var D=I.index,W=I.option,oe=(Se?De:[De]).some(function(ne){return ne!=null&&Y(W,ne)}),ae=Q?Q(W):!1;return{key:D,tabIndex:-1,role:"option",id:"".concat(ue,"-option-").concat(D),onMouseOver:_h,onClick:ql,onTouchStart:za,"data-option-index":D,"aria-disabled":ae,"aria-selected":oe}},id:ue,inputValue:St,value:De,dirty:T,popupOpen:Mr,focused:Q_||Pt!==-1,anchorEl:kr,setAnchorEl:Yt,focusedTag:Pt,groupedOptions:A}}var t6e=function(e){var r;return{root:{"&$focused $clearIndicatorDirty":{visibility:"visible"},"@media (pointer: fine)":{"&:hover $clearIndicatorDirty":{visibility:"visible"}}},fullWidth:{width:"100%"},focused:{},tag:{margin:3,maxWidth:"calc(100% - 6px)"},tagSizeSmall:{margin:2,maxWidth:"calc(100% - 4px)"},hasPopupIcon:{},hasClearIcon:{},inputRoot:{flexWrap:"wrap","$hasPopupIcon &, $hasClearIcon &":{paddingRight:30},"$hasPopupIcon$hasClearIcon &":{paddingRight:56},"& $input":{width:0,minWidth:30},'&[class*="MuiInput-root"]':{paddingBottom:1,"& $input":{padding:4},"& $input:first-child":{padding:"6px 0"}},'&[class*="MuiInput-root"][class*="MuiInput-marginDense"]':{"& $input":{padding:"4px 4px 5px"},"& $input:first-child":{padding:"3px 0 6px"}},'&[class*="MuiOutlinedInput-root"]':{padding:9,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9.5px 4px"},"& $input:first-child":{paddingLeft:6},"& $endAdornment":{right:9}},'&[class*="MuiOutlinedInput-root"][class*="MuiOutlinedInput-marginDense"]':{padding:6,"& $input":{padding:"4.5px 4px"}},'&[class*="MuiFilledInput-root"]':{paddingTop:19,paddingLeft:8,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9px 4px"},"& $endAdornment":{right:9}},'&[class*="MuiFilledInput-root"][class*="MuiFilledInput-marginDense"]':{paddingBottom:1,"& $input":{padding:"4.5px 4px"}}},input:{flexGrow:1,textOverflow:"ellipsis",opacity:0},inputFocused:{opacity:1},endAdornment:{position:"absolute",right:0,top:"calc(50% - 14px)"},clearIndicator:{marginRight:-2,padding:4,visibility:"hidden"},clearIndicatorDirty:{},popupIndicator:{padding:2,marginRight:-2},popupIndicatorOpen:{transform:"rotate(180deg)"},popper:{zIndex:e.zIndex.modal},popperDisablePortal:{position:"absolute"},paper:L({},e.typography.body1,{overflow:"hidden",margin:"4px 0"}),listbox:{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},loading:{color:e.palette.text.secondary,padding:"14px 16px"},noOptions:{color:e.palette.text.secondary,padding:"14px 16px"},option:(r={minHeight:48,display:"flex",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},or(r,e.breakpoints.up("sm"),{minHeight:"auto"}),or(r,'&[aria-selected="true"]',{backgroundColor:e.palette.action.selected}),or(r,'&[data-focus="true"]',{backgroundColor:e.palette.action.hover}),or(r,"&:active",{backgroundColor:e.palette.action.selected}),or(r,'&[aria-disabled="true"]',{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"}),r),groupLabel:{backgroundColor:e.palette.background.paper,top:-8},groupUl:{padding:0,"& $option":{paddingLeft:24}}}};function r6e(t){var e=t.anchorEl,r=t.open,n=ce(t,["anchorEl","open"]);return sr.createElement("div",n)}var n6e=sr.createElement(ooe,{fontSize:"small"}),o6e=sr.createElement(soe,null),a6e=sr.forwardRef(function(e,r){var n=e.autoComplete,o=n===void 0?!1:n,a=e.autoHighlight,i=a===void 0?!1:a,s=e.autoSelect,u=s===void 0?!1:s,l=e.blurOnSelect,c=l===void 0?!1:l,f=e.ChipProps,d=e.classes,p=e.className,m=e.clearOnBlur,g=m===void 0?!e.freeSolo:m,v=e.clearOnEscape,h=v===void 0?!1:v,y=e.clearText,b=y===void 0?"Clear":y,E=e.closeIcon,w=E===void 0?n6e:E,S=e.closeText,C=S===void 0?"Close":S,P=e.debug,k=P===void 0?!1:P,O=e.defaultValue,F=O===void 0?e.multiple?[]:null:O,U=e.disableClearable,J=U===void 0?!1:U,K=e.disableCloseOnSelect,Z=K===void 0?!1:K,G=e.disabled,Q=G===void 0?!1:G,N=e.disabledItemsFocusable,j=N===void 0?!1:N,V=e.disableListWrap,Y=V===void 0?!1:V,X=e.disablePortal,ie=X===void 0?!1:X,de=e.filterOptions,fe=e.filterSelectedOptions,le=fe===void 0?!1:fe,_e=e.forcePopupIcon,we=_e===void 0?"auto":_e,ge=e.freeSolo,Se=ge===void 0?!1:ge,me=e.fullWidth,be=me===void 0?!1:me,Me=e.getLimitTagsText,ve=Me===void 0?function(xe){return"+".concat(xe)}:Me,gt=e.getOptionDisabled,qe=e.getOptionLabel,nt=qe===void 0?function(xe){return xe}:qe,Qe=e.getOptionSelected,he=e.groupBy,Ue=e.handleHomeEndKeys,Ie=Ue===void 0?!e.freeSolo:Ue,Fe=e.id,ue=e.includeInputInList,Be=ue===void 0?!1:ue,kt=e.inputValue,ur=e.limitTags,dt=ur===void 0?-1:ur,Xe=e.ListboxComponent,it=Xe===void 0?"ul":Xe,kr=e.ListboxProps,Yt=e.loading,et=Yt===void 0?!1:Yt,Pt=e.loadingText,Je=Pt===void 0?"Loading\u2026":Pt,Pe=e.multiple,ye=Pe===void 0?!1:Pe,H=e.noOptionsText,Re=H===void 0?"No options":H,De=e.onChange,Ot=e.onClose,zt=e.onHighlightChange,Sr=e.onInputChange,St=e.onOpen,zn=e.open,Nl=e.openOnFocus,Q_=Nl===void 0?!1:Nl,Al=e.openText,Ui=Al===void 0?"Open":Al,eb=e.options,Ml=e.PaperComponent,zi=Ml===void 0?doe.default:Ml,Fl=e.PopperComponent,Md=Fl===void 0?yL:Fl,Mr=e.popupIcon,Pr=Mr===void 0?o6e:Mr,tb=e.renderGroup,Xs=e.renderInput,vh=e.renderOption,fa=e.renderTags,Wn=e.selectOnFocus,Fd=Wn===void 0?!e.freeSolo:Wn,qd=e.size,uo=qd===void 0?"medium":qd,Zs=e.value,Wi=ce(e,["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","classes","className","clearOnBlur","clearOnEscape","clearText","closeIcon","closeText","debug","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","getOptionSelected","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"]),Qs=ie?r6e:Md,Wt=dI(L({},e,{componentName:"Autocomplete"})),yh=Wt.getRootProps,jd=Wt.getInputProps,Ld=Wt.getInputLabelProps,Bd=Wt.getPopupIndicatorProps,$i=Wt.getClearProps,Ud=Wt.getTagProps,Ua=Wt.getListboxProps,_h=Wt.getOptionProps,za=Wt.value,ql=Wt.dirty,bh=Wt.id,Hi=Wt.popupOpen,eu=Wt.focused,Sh=Wt.focusedTag,tu=Wt.anchorEl,T=Wt.setAnchorEl,A=Wt.inputValue,x=Wt.groupedOptions,M;if(ye&&za.length>0){var R=function(ze){return L({className:(0,xd.default)(d.tag,uo==="small"&&d.tagSizeSmall),disabled:Q},Ud(ze))};fa?M=fa(za,R):M=za.map(function(xe,ze){return sr.createElement(bL,L({label:nt(xe),size:uo},R({index:ze}),f))})}if(dt>-1&&Array.isArray(M)){var I=M.length-dt;!eu&&I>0&&(M=M.splice(0,dt),M.push(sr.createElement("span",{className:d.tag,key:M.length},ve(I))))}var D=function(ze){return sr.createElement("li",{key:ze.key},sr.createElement(_L,{className:d.groupLabel,component:"div"},ze.group),sr.createElement("ul",{className:d.groupUl},ze.children))},W=tb||D,oe=vh||nt,ae=function(ze,ot){var $t=_h({option:ze,index:ot});return sr.createElement("li",L({},$t,{className:d.option}),oe(ze,{selected:$t["aria-selected"],inputValue:A}))},ne=!J&&!Q,Ee=(!Se||we===!0)&&we!==!1;return sr.createElement(sr.Fragment,null,sr.createElement("div",L({ref:r,className:(0,xd.default)(d.root,p,eu&&d.focused,be&&d.fullWidth,ne&&d.hasClearIcon,Ee&&d.hasPopupIcon)},yh(Wi)),Xs({id:bh,disabled:Q,fullWidth:!0,size:uo==="small"?"small":void 0,InputLabelProps:Ld(),InputProps:{ref:T,className:d.inputRoot,startAdornment:M,endAdornment:sr.createElement("div",{className:d.endAdornment},ne?sr.createElement(EL.default,L({},$i(),{"aria-label":b,title:b,className:(0,xd.default)(d.clearIndicator,ql&&d.clearIndicatorDirty)}),w):null,Ee?sr.createElement(EL.default,L({},Bd(),{disabled:Q,"aria-label":Hi?C:Ui,title:Hi?C:Ui,className:(0,xd.default)(d.popupIndicator,Hi&&d.popupIndicatorOpen)}),Pr):null)},inputProps:L({className:(0,xd.default)(d.input,Sh===-1&&d.inputFocused),disabled:Q},jd())})),Hi&&tu?sr.createElement(Qs,{className:(0,xd.default)(d.popper,ie&&d.popperDisablePortal),style:{width:tu?tu.clientWidth:null},role:"presentation",anchorEl:tu,open:!0},sr.createElement(zi,{className:d.paper},et&&x.length===0?sr.createElement("div",{className:d.loading},Je):null,x.length===0&&!Se&&!et?sr.createElement("div",{className:d.noOptions},Re):null,x.length>0?sr.createElement(it,L({className:d.listbox},Ua(),kr),x.map(function(xe,ze){return he?W({key:xe.key,group:xe.group,children:xe.options.map(function(ot,$t){return ae(ot,xe.index+$t)})}):ae(xe,ze)})):null)):null)}),TL=(0,coe.withStyles)(t6e,{name:"MuiAutocomplete"})(a6e);var tn=class extends xl.default.PureComponent{constructor(e){super(e),this.state={value:this.props.value}}componentDidUpdate(e){e.value!==this.props.value&&this.setState({value:this.props.value})}render(){var e;return xl.default.createElement(Ke,{item:!0,xs:this.props.xs,sm:this.props.sm,md:this.props.md,lg:this.props.lg,xl:this.props.xl},xl.default.createElement(foe.default,{fullWidth:!0},this.props.autoCompleteOptions?xl.default.createElement(TL,{freeSolo:!0,options:this.props.autoCompleteOptions,value:this.state.value,onChange:(r,n)=>this.handleChange(n!=null?n:""),renderInput:r=>{var n;return xl.default.createElement(aI,{...r,label:this.props.label,required:this.props.required,type:(n=this.props.type)!=null?n:"string",disabled:this.props.disabled,error:!!this.props.errorMsg,helperText:this.props.errorMsg,placeholder:this.props.placeholder,InputLabelProps:this.props.placeholder?{shrink:!0}:void 0,multiline:this.props.multiline,fullWidth:!0})}}):xl.default.createElement(aI,{label:this.props.label,value:this.state.value,required:this.props.required,type:(e=this.props.type)!=null?e:"string",disabled:this.props.disabled,error:!!this.props.errorMsg,helperText:this.props.errorMsg,placeholder:this.props.placeholder,InputLabelProps:this.props.placeholder?{shrink:!0}:void 0,multiline:this.props.multiline,fullWidth:!0,onChange:r=>this.handleChange(r.target.value)}),this.props.children&&xl.default.createElement(ja,null,this.props.children)))}handleChange(e){if(typeof this.props.transform=="function")e=this.props.transform(e,this.state.value);else switch(this.props.transform){case"lowerCase":e=e.toLowerCase();break;case"upperCase":e=e.toUpperCase();break}this.props.maxLength&&e.length>this.props.maxLength&&(e=e.slice(0,this.props.maxLength)),this.setState({value:e},()=>{this.props.onChange(this.state.value)})}};var poe=/^[\w-/]{1,}$/,fI=/^([0-7][0-9A-F]{2}|[01][0-9A-F]{7})$/,moe=/^([0-7][0-9A-F]{2}|[01][0-9A-F]{7})(-[0-8])?$/,hoe=/^[0-9a-z-_]{1,64}$/,goe=["rtr","raw","json","send"],voe=/^([^=]+=[^,]+,)*([^=]+=[^,]+)$/;var pI=class extends fn.default.Component{constructor(e){super(e),this.state=this.validateState({autoAddSeenMessages:this.props.native.autoAddSeenMessages,deleteUnconfiguredMessages:this.props.native.deleteUnconfiguredMessages,interface:this.props.native.interface,interfaceError:null,useRawStates:this.props.native.useRawStates,useRtrFlag:this.props.native.useRtrFlag})}render(){return fn.default.createElement(fn.default.Fragment,null,fn.default.createElement(yoe.default,{common:this.props.common,instance:this.props.context.instance,native:this.props.native,onError:this.props.onError,onLoad:this.props.setNative,classes:{buttons:"",logo:""}}),fn.default.createElement(Ke,{container:!0,spacing:3},fn.default.createElement(tn,{xs:12,sm:12,md:6,lg:4,label:Do.default.t("Interface"),value:this.state.interface,errorMsg:this.state.interfaceError,required:!0,onChange:e=>this.handleChange("interface",e)},Do.default.t("e.g.")," ",fn.default.createElement("code",null,"can0"))),fn.default.createElement(Ke,{container:!0,spacing:3},fn.default.createElement(xr,{xs:12,sm:12,md:6,label:Do.default.t("Auto add seen messages"),value:this.state.autoAddSeenMessages,onChange:e=>this.handleChange("autoAddSeenMessages",e)},Do.default.t("Automatically add new messages to the list of our known messages when they are received.")),fn.default.createElement(xr,{xs:12,sm:12,md:6,label:Do.default.t("Delete unconfigured messages"),value:this.state.deleteUnconfiguredMessages,onChange:e=>this.handleChange("deleteUnconfiguredMessages",e)},Do.default.t("Delete all objects of unconfigured messages on adapter startup."))),fn.default.createElement(Ke,{container:!0,spacing:3},fn.default.createElement(xr,{xs:12,sm:12,md:6,label:Do.default.t("Use raw states"),value:this.state.useRawStates,onChange:e=>this.handleChange("useRawStates",e)},Do.default.t("Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput."),fn.default.createElement("br",null),fn.default.createElement("code",null,this.props.context.adapterName,".",this.props.context.instance,".raw.received")," ",Do.default.t("and")," ",fn.default.createElement("code",null,this.props.context.adapterName,".",this.props.context.instance,".raw.send")),fn.default.createElement(xr,{xs:12,sm:12,md:6,label:Do.default.t("Use rtr flag"),value:this.state.useRtrFlag,onChange:e=>this.handleChange("useRtrFlag",e)},Do.default.t("Add an additional Remote Transmission Request (rtr) state on each message."))))}handleChange(e,r){let n={[e]:r};this.validateState(n),this.setState(n,()=>{this.props.onChange(e,r)})}validateState(e={}){var n;let r=!0;return e.interface!==void 0?e.interface.match(poe)?e.interfaceError=null:(e.interfaceError=Do.default.t("Only allowed chars: %s","0-9a-zA-Z-_/"),r=!1):((n=this.state)==null?void 0:n.interfaceError)!==null&&(r=!1),this.props.onValidate(r),e}};var Te=q(z()),Nd=q(rm());var mI=q(z());var _oe=q(Le());var i6e=function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:sa(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}},s6e=mI.forwardRef(function(e,r){var n=e.absolute,o=n===void 0?!1:n,a=e.classes,i=e.className,s=e.component,u=s===void 0?"hr":s,l=e.flexItem,c=l===void 0?!1:l,f=e.light,d=f===void 0?!1:f,p=e.orientation,m=p===void 0?"horizontal":p,g=e.role,v=g===void 0?u!=="hr"?"separator":void 0:g,h=e.variant,y=h===void 0?"fullWidth":h,b=ce(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return mI.createElement(u,L({className:(0,_oe.default)(a.root,i,y!=="fullWidth"&&a[y],o&&a.absolute,c&&a.flexItem,d&&a.light,m==="vertical"&&a.vertical),role:v,ref:r},b))}),wL=Ae(i6e,{name:"MuiDivider"})(s6e);var hh=q(p_()),Mie=q(boe()),Fie=q(Pj()),dB=q(kj()),qie=q(Soe()),bt=q(_o());var y6e={"":["",""],_:["",""],"*":["",""],"~":["",""],"\n":["
"]," ":["
"],"-":["
"]};function Eoe(t){return t.replace(RegExp("^"+(t.match(/^(\t| )+/)||"")[0],"gm"),"")}function U_(t){return(t+"").replace(/"/g,""").replace(//g,">")}function z_(t,e){var r,n,o,a,i,s=/((?:^|\n+)(?:\n---+|\* \*(?: \*)+)\n)|(?:^``` *(\w*)\n([\s\S]*?)\n```$)|((?:(?:^|\n+)(?:\t| {2,}).+)+\n*)|((?:(?:^|\n)([>*+-]|\d+\.)\s+.*)+)|(?:!\[([^\]]*?)\]\(([^)]+?)\))|(\[)|(\](?:\(([^)]+?)\))?)|(?:(?:^|\n+)([^\s].*)\n(-{3,}|={3,})(?:\n+|$))|(?:(?:^|\n+)(#{1,6})\s*(.+)(?:\n+|$))|(?:`([^`].*?)`)|( \n\n*|\n{2,}|__|\*\*|[_*]|~~)/gm,u=[],l="",c=e||{},f=0;function d(m){var g=y6e[m[1]||""],v=u[u.length-1]==m;return g?g[1]?(v?u.pop():u.push(m),g[0|v]):g[0]:m}function p(){for(var m="";u.length;)m+=d(u[u.length-1]);return m}for(t=t.replace(/^\[(.+?)\]:\s*(.+)$/gm,function(m,g,v){return c[g.toLowerCase()]=v,""}).replace(/^\n+|\n+$/g,"");o=s.exec(t);)n=t.substring(f,o.index),f=s.lastIndex,r=o[0],n.match(/[^\\](\\\\)*\\$/)||((i=o[3]||o[4])?r='
"+Eoe(U_(i).replace(/^\n+|\n+$/g,""))+"
":(i=o[6])?(i.match(/\./)&&(o[5]=o[5].replace(/^\d+/gm,"")),a=z_(Eoe(o[5].replace(/^\s*[>*+.-]/gm,""))),i==">"?i="blockquote":(i=i.match(/\./)?"ol":"ul",a=a.replace(/^(.*)(\n|$)/gm,"
  • $1
  • ")),r="<"+i+">"+a+""):o[8]?r=''+U_(o[7])+'':o[10]?(l=l.replace("
    ",''),r=p()+""):o[9]?r="":o[12]||o[14]?r="<"+(i="h"+(o[14]?o[14].length:o[13]>"="?1:2))+">"+z_(o[12]||o[15],c)+"":o[16]?r=""+U_(o[16])+"":(o[17]||o[1])&&(r=d(o[17]||"--"))),l+=n,l+=r;return(l+t.substring(f)+p()).replace(/^\n+|\n+$/g,"")}var Mi={parser:null,message:null};function Cl(){let t="";for(let e=0;e<32;e++){let r=Math.random()*16|0;(e===8||e===12||e===16||e===20)&&(t+="-"),t+=(e===12?4:e===16?r&3|8:r).toString(16)}return t}function xL(t,e){if(t===e)return!0;if(typeof t!="object"||typeof e!="object"||t===null||e===null)return!1;let r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let o of r){if(!n.includes(o))return!1;if(typeof t[o]=="function"||typeof e[o]=="function"){if(t[o].toString()!==e[o].toString())return!1}else if(!xL(t[o],e[o]))return!1}return!0}var _6e=/^(?:f(?:alse)?|no?|0+)$/i;function Cd(t){return!_6e.test(t)&&!!t}function W_(t,e,r){return!t[e]&&!t[r]?0:t[r]?t[e]?t[e].id.length>t[r].id.length?1:t[e].id.lengtht[r].id?1:t[e].idt[r].dlc?1:t[e].dlcr[n]=n)):r=this.props.options,this.state={id:Cl(),value:this.props.value,options:r}}componentDidUpdate(e){e.value!==this.props.value&&this.setState({value:this.props.value})}render(){return Il.default.createElement(Ke,{item:!0,xs:this.props.xs,sm:this.props.sm,md:this.props.md,lg:this.props.lg,xl:this.props.xl},Il.default.createElement(xoe.default,{fullWidth:!0},Il.default.createElement(bd,{id:`${this.state.id}_label`},this.props.label),Il.default.createElement(q_,{labelId:`${this.state.id}_label`,value:this.state.value,fullWidth:!0,disabled:this.props.disabled,onChange:e=>this.handleChange(e.target.value)},Object.keys(this.state.options).map(e=>{var r;return Il.default.createElement(IL,{key:e,value:e,disabled:(r=this.props.disabledOptions)==null?void 0:r.includes(e)},this.state.options[e])})),this.props.children&&Il.default.createElement(ja,null,this.props.children)))}handleChange(e){this.setState({value:e},()=>{this.props.onChange(this.state.value)})}};var fB=q(Die());var GGe=Nie(),VGe=Aie(),KGe=["msgUuid","msgId","msgName","msgDlc","msgReceive","msgSend","msgAutosend","parserUuid","parserId","parserName","parserDataType","parserDataLength","parserDataOffset","parserDataUnit","parserDataEncoding","parserBooleanMask","parserBooleanInvert","parserCustomDataType","parserCustomScriptRead","parserCustomScriptWrite","parserCommonRole","parserCommonStates","parserAutoSetInterval","parserAutoSetValue","parserAutoSetTriggerSend"],YGe="https://github.com/crycode-de/ioBroker.canbus/blob/master/well-known-messages/",JGe="https://raw.githubusercontent.com/crycode-de/ioBroker.canbus/master/well-known-messages/",Bi=class extends Te.default.Component{constructor(e){super(e),this.state={importOverwrite:!1,exportFormat:"json",exportSelected:!1,exportSelectedEntries:[],wellKnownMessagesIndex:{},wellKnownMessagesIndexLoaded:!1,wellKnownMessagesSelectedVersions:{}}}render(){var n;let e=(n=this.props.native.messages)!=null?n:{},r=Object.keys(e).sort((o,a)=>W_(e,o,a));return Te.default.createElement(Te.default.Fragment,null,Te.default.createElement("h2",null,bt.default.t("Import")),Te.default.createElement(Ke,{container:!0,spacing:3},Te.default.createElement(Ke,{item:!0},Te.default.createElement(hh.default,null,bt.default.t("Using this import feature you are able to import message configurations to extend your existing configuration.")),Te.default.createElement(hh.default,null,bt.default.t("You may use a predefined configuration from GitHub or upload a custom file.")))),Te.default.createElement(Ke,{container:!0,spacing:3},Te.default.createElement(xr,{xs:12,sm:12,md:12,lg:8,label:bt.default.t("Overwrite existing messages on import"),value:this.state.importOverwrite,onChange:o=>this.setState({importOverwrite:o})},bt.default.t("If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option."))),Te.default.createElement(Ke,{container:!0,spacing:3},Te.default.createElement(Ke,{item:!0,sm:12,md:6,lg:4},Te.default.createElement(Nd.default,{color:"primary",variant:"contained",fullWidth:!0,startIcon:Te.default.createElement(dB.default,null),onClick:this.importFromFile},bt.default.t("Import from file")))),!this.state.wellKnownMessagesIndexLoaded&&Te.default.createElement(Ke,{container:!0,spacing:3},Te.default.createElement(Ke,{item:!0,xs:12,sm:12,md:6,lg:4},Te.default.createElement(Nd.default,{color:"primary",variant:"contained",fullWidth:!0,startIcon:Te.default.createElement(Mie.default,null),onClick:this.fetchPredefinedConfigs},bt.default.t("Fetch configurations from GitHub")))),this.state.wellKnownMessagesIndexLoaded&&Te.default.createElement(Te.default.Fragment,null,Te.default.createElement("br",null),Te.default.createElement(hh.default,null,Te.default.createElement("strong",null,Te.default.createElement("em",null,bt.default.t("Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.")))),Object.keys(this.state.wellKnownMessagesIndex).map(o=>Te.default.createElement(Te.default.Fragment,{key:o},Te.default.createElement("h3",null,this.state.wellKnownMessagesIndex[o].name),Te.default.createElement(Ke,{container:!0,spacing:3},Te.default.createElement(Ke,{item:!0,xs:12,sm:12,dangerouslySetInnerHTML:{__html:this.renderMarkdown(this.state.wellKnownMessagesIndex[o].description)}})),Te.default.createElement(Ke,{container:!0,spacing:3},Te.default.createElement(Ke,{item:!0,xs:12,sm:12,md:8},Te.default.createElement("span",null,bt.default.t("Author"),": "),Te.default.createElement("span",{dangerouslySetInnerHTML:{__html:this.state.wellKnownMessagesIndex[o].authors.map(a=>this.renderMarkdown(a)).join(", ")}})),this.state.wellKnownMessagesIndex[o].license&&Te.default.createElement(Ke,{item:!0,xs:12,sm:12,md:4},Te.default.createElement("span",null,bt.default.t("License"),": "),Te.default.createElement("span",null,Te.default.createElement("a",{href:`https://spdx.org/licenses/${this.state.wellKnownMessagesIndex[o].license}.html`,target:"_blank",rel:"external nofollow"},this.state.wellKnownMessagesIndex[o].license)))),Te.default.createElement(Ke,{container:!0,spacing:3},Te.default.createElement(No,{xs:12,sm:6,md:2,lg:2,label:bt.default.t("Version"),value:this.state.wellKnownMessagesSelectedVersions[o],onChange:a=>this.setState({wellKnownMessagesSelectedVersions:{...this.state.wellKnownMessagesSelectedVersions,[o]:a}}),options:this.state.wellKnownMessagesIndex[o].releases.map(a=>a.version)}),Te.default.createElement(Ke,{item:!0,xs:12,sm:6,md:6,lg:4},Te.default.createElement(Nd.default,{color:"primary",variant:"contained",fullWidth:!0,startIcon:Te.default.createElement(qie.default,null),onClick:()=>this.showPredefinedConfig(o),disabled:!this.state.wellKnownMessagesSelectedVersions[o]},bt.default.t("Show on GitHub"))),Te.default.createElement(Ke,{item:!0,xs:12,sm:6,md:6,lg:4},Te.default.createElement(Nd.default,{color:"primary",variant:"contained",fullWidth:!0,startIcon:Te.default.createElement(dB.default,null),onClick:()=>this.importPredefinedConfig(o),disabled:!this.state.wellKnownMessagesSelectedVersions[o]},bt.default.t("Import from GitHub"))))))),Te.default.createElement("br",null),Te.default.createElement(wL,null),Te.default.createElement("h2",null,bt.default.t("Export")),Te.default.createElement(Ke,{container:!0,spacing:3},Te.default.createElement(Ke,{item:!0},Te.default.createElement(hh.default,null,bt.default.t("Using this export feature you are able to export your message configurations.")),Te.default.createElement(hh.default,null,bt.default.t("The exported files can be shared or edited externally and reimported to update your configuration.")))),Te.default.createElement(Ke,{container:!0,spacing:3},Te.default.createElement(No,{xs:12,sm:6,md:4,lg:2,label:bt.default.t("Export format"),value:this.state.exportFormat,options:["json","csv"],onChange:o=>this.setState({exportFormat:o})}),Te.default.createElement(xr,{xs:12,sm:12,md:6,label:bt.default.t("Select messages to export"),value:this.state.exportSelected,onChange:o=>this.setState({exportSelected:o})},bt.default.t("If checked, you can select the configured messages you want to export. If not checked, all messages will be exported."))),this.state.exportSelected&&Te.default.createElement(Ke,{container:!0,spacing:0},r.map(o=>Te.default.createElement(xr,{key:o,xs:12,sm:12,md:6,lg:4,label:`${e[o].id} ${e[o].name}`,value:this.state.exportSelectedEntries.includes(o),onChange:a=>this.handleExportSelectMsg(o,a)}))),Te.default.createElement(Ke,{container:!0,spacing:3},Te.default.createElement(Ke,{item:!0,xs:12,sm:12,md:6,lg:4},Te.default.createElement(Nd.default,{color:"primary",variant:"contained",fullWidth:!0,startIcon:Te.default.createElement(Fie.default,null),onClick:this.export},bt.default.t("Export to file")))))}handleExportSelectMsg(e,r){r?this.setState(n=>({exportSelectedEntries:[...n.exportSelectedEntries,e]})):this.setState(n=>({exportSelectedEntries:[...n.exportSelectedEntries.filter(o=>o!==e)]}))}async fetchPredefinedConfigs(){var e,r,n,o,a,i,s,u;try{let l=await this.fetchJson("index.json");if(!(0,fB.validate)(l,VGe).valid){this.props.onError(bt.default.t("The downloaded index is not valid"));return}let f={},d=bt.default.getLanguage();for(let p in l)l[p].name=(o=(n=(e=l[p].nameLang)==null?void 0:e[d])!=null?n:(r=l[p].nameLang)==null?void 0:r.en)!=null?o:l[p].name,l[p].description=(u=(s=(a=l[p].descriptionLang)==null?void 0:a[d])!=null?s:(i=l[p].descriptionLang)==null?void 0:i.en)!=null?u:l[p].description,l[p].releases.length>0&&(f[p]=l[p].releases[0].version);this.setState({wellKnownMessagesIndex:l,wellKnownMessagesIndexLoaded:!0,wellKnownMessagesSelectedVersions:f})}catch(l){console.error(l),this.props.onError(`${l}`)}}async fetchJson(e){let r=await fetch(JGe+e,{cache:"no-cache",credentials:"omit",referrerPolicy:"no-referrer"});if(r.status!==200)throw new Error(`HTTP Error: ${r.status} ${r.statusText}`);return await r.json()}export(){var l;let e="",r="",n="",o={id:"",name:"",dlc:-1,receive:!1,send:!1,autosend:!1,parsers:{}},a={id:"",name:"",dataType:"int8",dataLength:1,dataOffset:0,dataUnit:"",dataEncoding:"latin1",booleanMask:0,booleanInvert:!1,customScriptRead:"",customScriptWrite:"",customDataType:"number",commonRole:"state",commonStates:!1},i=(l=this.props.native.messages)!=null?l:{},s={};for(let c in i)if(!(this.state.exportSelected&&!this.state.exportSelectedEntries.includes(c))){s[c]={...o,...i[c],parsers:{}};for(let f in i[c].parsers)s[c].parsers[f]={...a,...i[c].parsers[f]}}if(this.state.exportFormat==="csv"){r="text/csv",n="canbus-messages.csv";let c=[];c.push(KGe.join(";"));for(let f in s){let d=s[f],p=Object.keys(d.parsers);p.length===0?c.push([f,this.escapeCsvValue(d.id),this.escapeCsvValue(d.name),d.dlc,d.receive?1:0,d.send?1:0,d.autosend?1:0,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null].join(";")):p.forEach(m=>{let g=d.parsers[m];c.push([f,this.escapeCsvValue(d.id),this.escapeCsvValue(d.name),d.dlc,d.receive?1:0,d.send?1:0,d.autosend?1:0,m,this.escapeCsvValue(g.id),this.escapeCsvValue(g.name),g.dataType,g.dataLength,g.dataOffset,this.escapeCsvValue(g.dataUnit),g.dataEncoding,g.booleanMask,g.booleanInvert?1:0,g.customDataType,this.escapeCsvValue(g.customScriptRead),this.escapeCsvValue(g.customScriptWrite),this.escapeCsvValue(g.commonRole),g.commonStates?this.escapeCsvValue(g.commonStates):"",g.autoSetInterval?g.autoSetInterval:0,g.dataType==="boolean"?g.autoSetValue?1:0:g.dataType==="string"?this.escapeCsvValue(g.autoSetValue):g.autoSetValue,g.autoSetTriggerSend?1:0].join(";"))})}e=c.join(`\r -`)}else r="application/json",n="canbus-messages.json",e=JSON.stringify(s,null,2);let u=window.document.createElement("a");u.setAttribute("href",`data:${r};charset=utf-8,${encodeURIComponent(e)}`),u.setAttribute("download",n),u.style.display="none",window.document.body.appendChild(u),u.click(),window.document.body.removeChild(u)}importFromFile(){let e=window.document.createElement("input");e.setAttribute("type","file"),e.setAttribute("id","files"),e.setAttribute("opacity","0"),e.addEventListener("change",this.handleImportFileSelect,!1),e.click()}handleImportFileSelect(e){var i,s;let r=(s=(i=e.target)==null?void 0:i.files)==null?void 0:s[0];if(!r){this.props.onError(bt.default.t("Failed to open file!"));return}let n=r.name.match(/\.([^.]+)$/);if(!n||n[1]!=="json"&&n[1]!=="csv"){this.props.onError(bt.default.t("Unsupported file type!"));return}let o=n[1],a=new window.FileReader;a.onload=u=>{var f;let l=(f=u.target)==null?void 0:f.result;if(!l){this.props.onError(bt.default.t("File is empty!"));return}let c={};try{if(o==="csv"){let d=this.readArrayFromCsv(l),p=d.shift();if(!(p!=null&&p.includes("msgUuid")))throw new Error("Invalid file");d.forEach((m,g)=>{var y;let v=p.map((b,E)=>({[b]:m[E]})),h=Object.assign({},...v);if(!h.msgUuid){console.warn(`Ignore invalid entry on line ${g+2}!`,m);return}if(c[h.msgUuid]||(c[h.msgUuid]={id:h.msgId,name:h.msgName,send:Cd(h.msgSend),receive:Cd(h.msgReceive),autosend:Cd(h.msgAutosend),dlc:parseInt(h.msgDlc,10),parsers:{}}),h.parserUuid){let b=h.parserDataType==="custom"?h.parserCustomDataType:h.parserDataType;c[h.msgUuid].parsers[h.parserUuid]={id:h.parserId,name:h.parserName,dataType:h.parserDataType,dataLength:parseInt(h.parserDataLength,10),dataOffset:parseInt(h.parserDataOffset,10),dataUnit:h.parserDataUnit,dataEncoding:h.parserDataEncoding,booleanMask:parseInt(h.parserBooleanMask,10),booleanInvert:Cd(h.parserBooleanInvert),customDataType:h.parserCustomDataType,customScriptRead:h.parserCustomScriptRead,customScriptWrite:h.parserCustomScriptWrite,commonRole:h.parserCommonRole,commonStates:h.parserCommonStates||!1,autoSetInterval:parseInt(h.parserAutoSetInterval,10)||!1,autoSetValue:b==="number"?parseInt(h.parserAutoSetValue,10):b==="boolean"?Cd(h.parserAutoSetValue):(y=h.parserAutoSetValue)!=null?y:"",autoSetTriggerSend:Cd(h.parserAutoSetTriggerSend)}}})}else c=JSON.parse(l)}catch(d){this.props.onError(bt.default.t("Error parsing file! %s",`${d}`));return}this.importMessagesObject(c)},a.readAsText(r)}showPredefinedConfig(e){var o;let r=this.state.wellKnownMessagesSelectedVersions[e],n=(o=this.state.wellKnownMessagesIndex[e])==null?void 0:o.releases.find(a=>a.version===r);if(!(n!=null&&n.file)){this.props.onError("Release not found");return}window.open(`${YGe}configs/${n.file}`)}async importPredefinedConfig(e){var a;let r=this.state.wellKnownMessagesSelectedVersions[e],n=(a=this.state.wellKnownMessagesIndex[e])==null?void 0:a.releases.find(i=>i.version===r);if(!(n!=null&&n.file)){this.props.onError("Release not found");return}let o={};try{o=await this.fetchJson("configs/"+n.file)}catch(i){console.error(i),this.props.onError(`${i}`)}this.importMessagesObject(o)}importMessagesObject(e,r=!1){var o,a,i,s,u,l,c,f;if(!r){let d=(0,fB.validate)(e,GGe);if(!d.valid){this.props.onError(Te.default.createElement("div",null,Te.default.createElement("div",null,Te.default.createElement("strong",null,bt.default.t("Validation error:"))),Te.default.createElement("ul",null,d.errors.map(p=>Te.default.createElement("li",null,Te.default.createElement("code",null,p.path.join(".")),Te.default.createElement("br",null),p.message))),Te.default.createElement(Nd.default,{color:"default",variant:"contained",fullWidth:!0,onClick:()=>{this.props.onError(""),this.importMessagesObject(e,!0)}},bt.default.t("Ignore this error and try to import"))));return}}let{native:n}=this.props;n.messages||(n.messages={});for(let d in e)if(e[d].name=((s=(i=(o=e[d].nameLang)==null?void 0:o[bt.default.getLanguage()])!=null?i:(a=e[d].nameLang)==null?void 0:a.en)!=null?s:e[d].name)||e[d].id,delete e[d].nameLang,!n.messages[d])n.messages[d]=e[d];else{if(this.state.importOverwrite){let{parsers:p,...m}=e[d];n.messages[d]={...n.messages[d],...m}}for(let p in e[d].parsers)e[d].parsers[p].name=((f=(c=(u=e[d].parsers[p].nameLang)==null?void 0:u[bt.default.getLanguage()])!=null?c:(l=e[d].parsers[p].nameLang)==null?void 0:l.en)!=null?f:e[d].parsers[p].name)||e[d].parsers[p].id,delete e[d].parsers[p].nameLang,n.messages[d].parsers[p]?this.state.importOverwrite&&(n.messages[d].parsers[p]={...n.messages[d].parsers[p],...e[d].parsers[p]}):n.messages[d].parsers[p]=e[d].parsers[p]}this.props.setNative(n),this.props.showToast(bt.default.t("Import done"))}escapeCsvValue(e){if(typeof e!="string")try{return`${e}`}catch(r){return""}return e.match(/[;"\r\n]/)&&(e=e.replace(/"/g,'""'),e=`"${e}"`),e}readArrayFromCsv(e){let r="",n=[""],o=0,a=0,i=!0,s,u=[n];for(s of e)s==='"'?(i&&s===r&&(n[o]+=s),i=!i):s===";"&&i?s=n[++o]="":s===` -`&&i?(r==="\r"&&(n[o]=n[o].slice(0,-1)),n=u[++a]=[s=""],o=0):n[o]+=s,r=s;return u}renderMarkdown(e){return e=e.replace(/<[^>]+>/,""),e=z_(e),e=e.replace(/]+)>/g,''),e}};Et([Tt],Bi.prototype,"handleExportSelectMsg",1),Et([Tt],Bi.prototype,"fetchPredefinedConfigs",1),Et([Tt],Bi.prototype,"export",1),Et([Tt],Bi.prototype,"importFromFile",1),Et([Tt],Bi.prototype,"handleImportFileSelect",1),Et([Tt],Bi.prototype,"importPredefinedConfig",1);var pt=q(z());var Yie=q(rm()),X_=q(g_());var gB=q(xj()),Jie=q(pB()),Xie=q(Uie()),ht=q(_o());var mB=q(z()),hB=q(Sm()),BI=(0,hB.default)(mB.default.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}),"ContentCopy"),UI=(0,hB.default)(mB.default.createElement("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"}),"ContentPaste");var Ge=q(z());var $I=q(g_()),Gie=q(h_()),Vie=q(pB()),Kie=q(zie()),He=q(_o());var Js=q(z());var Wie=q(Wm()),$ie=q(zC());var Hie=q(VC());var WI=class extends Js.default.PureComponent{constructor(e){super(e);let r=[];for(let n=0;n0;this.state={value:this.props.value,bits:r}}componentDidUpdate(e){if(e.value!==this.props.value){let r=[];for(let n=0;n0;this.setState({value:this.props.value,bits:r})}}render(){return Js.default.createElement(Ke,{item:!0,xs:this.props.xs,sm:this.props.sm,md:this.props.md,lg:this.props.lg,xl:this.props.xl},Js.default.createElement(Wie.default,null,Js.default.createElement(bd,{shrink:!0,style:{marginTop:"-5px"}},this.props.label),Js.default.createElement("div",null,this.state.bits.map((e,r)=>Js.default.createElement($ie.default,{key:r,control:Js.default.createElement(Hie.default,{checked:e,disabled:this.props.disabled,onChange:()=>this.changeBit(r)}),label:r}))),this.props.children&&Js.default.createElement(ja,null,this.props.children)))}changeBit(e){let r=[...this.state.bits];r[e]=!r[e];let n=0;r.forEach((o,a)=>{o&&(n|=1<{this.props.onChange(this.state.value)})}};var CVe={int8:"int8",uint8:"uint8",int16_be:"int16 BE",int16_le:"int16 LE",uint16_be:"uint16 BE",uint16_le:"uint16 LE",int32_be:"int32 BE",int32_le:"int32 LE",uint32_be:"uint32 BE",uint32_le:"uint32 LE",float32_be:"float32 BE",float32_le:"float32 LE",double64_be:"double64 BE",double64_le:"double64 LE",boolean:"boolean",string:"string",custom:"custom"},IVe=["state","button","indicator","level","level.temperature","switch","switch.power","switch.light","text","value","value.temperature","button.close.blind","button.close.tilt","button.fastforward","button.fastreverse","button.forward","button.long","button.mode.auto","button.mode.manual","button.mode.silent","button.next","button.open.blind","button.open.door","button.open.tilt","button.open.window","button.pause","button.play","button.press","button.prev","button.reverse","button.start","button.stop","button.stop.tilt","button.volume.down","button.volume.up","date","date.end","date.forecast.1","date.start","date.sunrise","date.sunset","dayofweek","html","indicator.alarm","indicator.alarm.fire","indicator.alarm.flood","indicator.alarm.health","indicator.alarm.secure","indicator.connected","indicator.lowbat","indicator.maintenance","indicator.maintenance.alarm","indicator.maintenance.lowbat","indicator.maintenance.unreach","indicator.maintenance.waste","indicator.reachable","indicator.working","info.address","info.display","info.ip","info.mac","info.name","info.port","info.standby","info.status","json","level.bass","level.blind","level.co2","level.color.blue","level.color.green","level.color.hue","level.color.luminance","level.color.red","level.color.rgb","level.color.saturation","level.color.temperature","level.color.white","level.curtain","level.dimmer","level.mode.cleanup","level.mode.fan","level.mode.swing","level.mode.thermostat","level.mode.work","level.tilt","level.timer","level.timer.sleep","level.treble","level.valve","level.volume","level.volume.group","list","location","media.add","media.album","media.artist","media.bitrate","media.broadcastDate","media.browser","media.clear","media.content","media.cover","media.cover.big","media.cover.small","media.date","media.duration","media.duration.text","media.elapsed","media.elapsed.text","media.episode","media.genre","media.input","media.jump","media.link","media.mode.repeat","media.mode.shuffle","media.mute","media.mute.group","media.playid","media.playlist","media.season","media.seek","media.state","media.title","media.title.next","media.track","media.tts","media.url","media.url.announcement","sensor.alarm","sensor.alarm.fire","sensor.alarm.flood","sensor.alarm.power","sensor.alarm.secure","sensor.door","sensor.light","sensor.lock","sensor.motion","sensor.noise","sensor.rain","sensor.window","switch.boost","switch.comfort","switch.enable","switch.lock","switch.lock.door","switch.lock.window","switch.mode.auto","switch.mode.color","switch.mode.manual","switch.mode.moonlight","switch.mode.silent","switch.pause","switch.power.zone","text.phone","text.url","url","url.audio","url.blank","url.cam","url.icon","url.same","value.battery","value.blind","value.blood.sugar","value.brightness","value.clouds","value.current","value.curtain","value.default","value.direction","value.direction.max.wind","value.direction.min.wind","value.direction.wind","value.direction.wind.forecast.0","value.direction.wind.forecast.1","value.distance","value.distance.visibility","value.fill","value.gps","value.gps.elevation","value.gps.latitude","value.gps.longitude","value.health.bmi","value.health.bpm","value.health.calories","value.health.fat","value.health.steps","value.health.weight","value.humidity","value.humidity.max","value.humidity.min","value.interval","value.lock","value.max","value.min","value.power.consumption","value.precipitation","value.precipitation.day.forecast.0","value.precipitation.forecast.0","value.precipitation.forecast.1","value.precipitation.hour","value.precipitation.night.forecast.0","value.precipitation.today","value.pressure","value.pressure.forecast.0","value.pressure.forecast.1","value.radiation","value.rain","value.rain.hour","value.rain.today","value.severity","value.snow","value.snow.hour","value.snow.today","value.snowline","value.speed","value.speed.max.wind","value.speed.min.wind","value.speed.wind","value.speed.wind.forecast.0","value.speed.wind.forecast.1","value.speed.wind.gust","value.state","value.sun.azimuth","value.sun.elevation","value.temperature.dewpoint","value.temperature.feelslike","value.temperature.max","value.temperature.max.forecast.0","value.temperature.max.forecast.1","value.temperature.min","value.temperature.min.forecast.0","value.temperature.min.forecast.1","value.temperature.windchill","value.tilt","value.time","value.uv","value.valve","value.voltage","value.warning","value.waste","value.water","value.window","weather.chart.url","weather.chart.url.forecast","weather.direction.wind","weather.direction.wind.forecast.0","weather.html","weather.icon","weather.icon.forecast.1","weather.icon.name","weather.icon.wind","weather.json","weather.state","weather.state.forecast.0","weather.state.forecast.1","weather.title","weather.title.forecast.0","weather.title.short","weather.type"],gh=class extends Ge.default.PureComponent{constructor(e){super(e),this.state=this.validateState(this.updateDependedElements({...this.props.config,idError:null,commonStatesError:null,disabledDataLengths:[],disabledDataOffsets:[],disabledDataEncoding:!1,disabledDataUnit:!1,disabledDataOffsetAndLength:!1}))}render(){let{classes:e}=this.props,r="number";return(this.state.dataType==="boolean"||this.state.dataType==="custom"&&this.state.customDataType==="boolean")&&(r="boolean"),(this.state.dataType==="string"||this.state.dataType==="custom"&&this.state.customDataType==="string")&&(r="string"),Ge.default.createElement(Ge.default.Fragment,null,Ge.default.createElement("div",{className:e.fabTopRight},Ge.default.createElement($I.default,{size:"small",color:"primary","aria-label":"copy",title:He.default.t("Copy"),onClick:this.copy},Ge.default.createElement(BI,null)),Ge.default.createElement($I.default,{size:"small",color:"primary","aria-label":"paste",title:He.default.t("Paste"),onClick:this.paste,disabled:this.props.readonly||!Mi.parser},Ge.default.createElement(UI,null)),Ge.default.createElement($I.default,{size:"small",color:"primary","aria-label":"delete",title:He.default.t("Remove"),onClick:()=>this.props.onDelete&&this.props.onDelete(this.props.uuid),disabled:this.props.readonly||!this.props.onDelete},Ge.default.createElement(Vie.default,null))),Ge.default.createElement(Ke,{container:!0,spacing:3},Ge.default.createElement(tn,{xs:12,sm:6,md:4,lg:4,label:He.default.t("Parser ID"),value:this.state.id,disabled:this.props.readonly,onChange:n=>this.handleChange("id",n),errorMsg:this.state.idError,transform:"lowerCase",maxLength:64},Ge.default.createElement("code",null,this.props.context.adapterName,".",this.props.context.instance,".",this.props.msgId||"",".",this.state.id||"")),Ge.default.createElement(tn,{xs:12,sm:6,md:6,lg:4,label:He.default.t("Name"),value:this.state.name,disabled:this.props.readonly,onChange:n=>this.handleChange("name",n)},He.default.t("e.g.")," ",Ge.default.createElement("code",null,He.default.t("Temperature")))),Ge.default.createElement(Ke,{container:!0,spacing:3},Ge.default.createElement(No,{xs:12,sm:6,md:4,lg:2,label:He.default.t("Data type"),value:this.state.dataType,disabled:this.props.readonly,onChange:n=>this.handleChange("dataType",n),options:CVe},He.default.t("Data type in the can message")),this.state.dataType==="custom"&&Ge.default.createElement(No,{xs:12,sm:6,md:4,lg:2,label:He.default.t("Data type"),value:this.state.customDataType,disabled:this.props.readonly,onChange:n=>this.handleChange("customDataType",n),options:["boolean","number","string","mixed"]},He.default.t("Data type in ioBroker")),!this.state.disabledDataOffsetAndLength&&Ge.default.createElement(Ge.default.Fragment,null,Ge.default.createElement(No,{xs:12,sm:6,md:2,lg:1,label:He.default.t("Offset"),value:this.state.dataOffset.toString(),disabled:this.props.readonly,onChange:n=>this.handleChange("dataOffset",parseInt(n,10)),options:["0","1","2","3","4","5","6","7"],disabledOptions:this.state.disabledDataOffsets}),Ge.default.createElement(No,{xs:12,sm:6,md:2,lg:1,label:He.default.t("Length"),value:this.state.dataLength.toString(),disabled:this.props.readonly,onChange:n=>this.handleChange("dataLength",parseInt(n,10)),options:["1","2","3","4","5","6","7","8"],disabledOptions:this.state.disabledDataLengths})),!this.state.disabledDataEncoding&&Ge.default.createElement(No,{xs:12,sm:6,md:2,lg:1,label:He.default.t("Encoding"),value:this.state.dataEncoding,disabled:this.props.readonly,onChange:n=>this.handleChange("dataEncoding",n),options:["ascii","base64","hex","latin1","utf8","utf16le"]}),!this.state.disabledDataUnit&&Ge.default.createElement(tn,{xs:12,sm:6,md:2,lg:1,label:He.default.t("Unit"),value:this.state.dataUnit,disabled:this.props.readonly,onChange:n=>this.handleChange("dataUnit",n)},He.default.t("e.g.")," ",Ge.default.createElement("code",null,"\xB0C")),Ge.default.createElement(tn,{xs:12,sm:6,md:4,lg:3,label:He.default.t("Role"),value:this.state.commonRole,disabled:this.props.readonly,onChange:n=>this.handleChange("commonRole",n),autoCompleteOptions:IVe},He.default.t('Select a suitable role for the ioBroker state or just use "state" if you are not sure.'),Ge.default.createElement(Gie.default,{color:"primary",size:"small",title:He.default.t("Information about the state roles in ioBroker on GitHub"),onClick:()=>window.open("https://github.com/ioBroker/ioBroker.docs/blob/master/docs/en/dev/stateroles.md")},Ge.default.createElement(Kie.default,{fontSize:"inherit"}))),Ge.default.createElement(xr,{xs:12,sm:6,md:4,lg:3,label:He.default.t("Define possible states"),value:!!this.state.commonStates,disabled:this.props.readonly,onChange:n=>this.handleChange("commonStates",n?"":!1)},He.default.t("Setup a list of predefined state values"))),typeof this.state.commonStates=="string"&&Ge.default.createElement(Ke,{container:!0,spacing:3},Ge.default.createElement(tn,{xs:12,sm:12,md:12,lg:12,label:He.default.t("Possible states"),value:this.state.commonStates,disabled:this.props.readonly,onChange:n=>this.handleChange("commonStates",n),errorMsg:this.state.commonStatesError},He.default.t("Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto"))),this.state.dataType==="boolean"&&Ge.default.createElement(Ke,{container:!0,spacing:3},Ge.default.createElement(WI,{xs:12,sm:12,md:12,lg:8,label:He.default.t("Boolean bitmask"),bits:8,value:this.state.booleanMask,disabled:this.props.readonly,onChange:n=>this.handleChange("booleanMask",n)},Ge.default.createElement("span",{dangerouslySetInnerHTML:{__html:He.default.t("Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.","true","true")}})),Ge.default.createElement(xr,{xs:12,sm:12,md:6,lg:3,label:He.default.t("Boolean invert"),value:this.state.booleanInvert,disabled:this.props.readonly,onChange:n=>this.handleChange("booleanInvert",n)},He.default.t("Invert the boolean value"))),this.state.dataType==="custom"&&Ge.default.createElement(Ke,{container:!0,spacing:3},Ge.default.createElement(tn,{xs:12,sm:12,md:6,label:He.default.t("Custom script read"),multiline:!0,value:this.state.customScriptRead,disabled:this.props.readonly,onChange:n=>this.handleChange("customScriptRead",n),placeholder:`// example: +`)),L({paddingLeft:e(2),paddingRight:e(2)},a,or({},t.up("sm"),L({paddingLeft:e(3),paddingRight:e(3)},a[t.up("sm")])))},toolbar:(n={minHeight:56},or(n,"".concat(t.up("xs")," and (orientation: landscape)"),{minHeight:48}),or(n,t.up("sm"),{minHeight:64}),n)},r)}var lj=q(at()),pte=q(at());var u3e={black:"#000",white:"#fff"},E_=u3e;var l3e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},yC=l3e;var c3e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},_C=c3e;var d3e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},bC=d3e;var p3e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},SC=p3e;var f3e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},EC=f3e;var m3e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},TC=m3e;var h3e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},wC=h3e;var ute=q(at());function aj(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.min(Math.max(e,t),r)}function g3e(t){t=t.substr(1);var e=new RegExp(".{1,".concat(t.length>=6?2:1,"}"),"g"),r=t.match(e);return r&&r[0].length===1&&(r=r.map(function(n){return n+n})),r?"rgb".concat(r.length===4?"a":"","(").concat(r.map(function(n,o){return o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3}).join(", "),")"):""}function v3e(t){t=dd(t);var e=t,r=e.values,n=r[0],o=r[1]/100,a=r[2]/100,i=o*Math.min(a,1-a),s=function(p){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:(p+n/30)%12;return a-i*Math.max(Math.min(d-3,9-d,1),-1)},u="rgb",l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return t.type==="hsla"&&(u+="a",l.push(r[3])),xC({type:u,values:l})}function dd(t){if(t.type)return t;if(t.charAt(0)==="#")return dd(g3e(t));var e=t.indexOf("("),r=t.substring(0,e);if(["rgb","rgba","hsl","hsla"].indexOf(r)===-1)throw new Error((0,ute.formatMuiErrorMessage)(3,t));var n=t.substring(e+1,t.length-1).split(",");return n=n.map(function(o){return parseFloat(o)}),{type:r,values:n}}function xC(t){var e=t.type,r=t.values;return e.indexOf("rgb")!==-1?r=r.map(function(n,o){return o<3?parseInt(n,10):n}):e.indexOf("hsl")!==-1&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(e,"(").concat(r.join(", "),")")}function lte(t,e){var r=oj(t),n=oj(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function oj(t){t=dd(t);var e=t.type==="hsl"?dd(v3e(t)).values:t.values;return e=e.map(function(r){return r/=255,r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function pd(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.15;return oj(t)>.5?ij(t,e):sj(t,e)}function sa(t,e){return t=dd(t),e=aj(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.values[3]=e,xC(t)}function ij(t,e){if(t=dd(t),e=aj(e),t.type.indexOf("hsl")!==-1)t.values[2]*=1-e;else if(t.type.indexOf("rgb")!==-1)for(var r=0;r<3;r+=1)t.values[r]*=1-e;return xC(t)}function sj(t,e){if(t=dd(t),e=aj(e),t.type.indexOf("hsl")!==-1)t.values[2]+=(100-t.values[2])*e;else if(t.type.indexOf("rgb")!==-1)for(var r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;return xC(t)}var cte={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:E_.white,default:yC[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},uj={text:{primary:E_.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:yC[800],default:"#303030"},action:{active:E_.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function dte(t,e,r,n){var o=n.light||n,a=n.dark||n*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=sj(t.main,o):e==="dark"&&(t.dark=ij(t.main,a)))}function cj(t){var e=t.primary,r=e===void 0?{light:_C[300],main:_C[500],dark:_C[700]}:e,n=t.secondary,o=n===void 0?{light:bC.A200,main:bC.A400,dark:bC.A700}:n,a=t.error,i=a===void 0?{light:SC[300],main:SC[500],dark:SC[700]}:a,s=t.warning,u=s===void 0?{light:EC[300],main:EC[500],dark:EC[700]}:s,l=t.info,c=l===void 0?{light:TC[300],main:TC[500],dark:TC[700]}:l,p=t.success,d=p===void 0?{light:wC[300],main:wC[500],dark:wC[700]}:p,f=t.type,m=f===void 0?"light":f,g=t.contrastThreshold,v=g===void 0?3:g,h=t.tonalOffset,y=h===void 0?.2:h,b=ce(t,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function E(P){var k=lte(P,uj.text.primary)>=v?uj.text.primary:cte.text.primary;if(0)var O;return k}var w=function(k){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:500,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:300,U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:700;if(k=L({},k),!k.main&&k[O]&&(k.main=k[O]),!k.main)throw new Error((0,lj.formatMuiErrorMessage)(4,O));if(typeof k.main!="string")throw new Error((0,lj.formatMuiErrorMessage)(5,JSON.stringify(k.main)));return dte(k,"light",F,y),dte(k,"dark",U,y),k.contrastText||(k.contrastText=E(k.main)),k},S={dark:uj,light:cte},C=(0,pte.deepmerge)(L({common:E_,type:m,primary:w(r),secondary:w(o,"A400","A200","A700"),error:w(i),warning:w(u),info:w(c),success:w(d),grey:yC,contrastThreshold:v,getContrastText:E,augmentColor:w,tonalOffset:y},S[m]),b);return C}var hte=q(at());function gte(t){return Math.round(t*1e5)/1e5}function y3e(t){return gte(t)}var fte={textTransform:"uppercase"},mte='"Roboto", "Helvetica", "Arial", sans-serif';function dj(t,e){var r=typeof e=="function"?e(t):e,n=r.fontFamily,o=n===void 0?mte:n,a=r.fontSize,i=a===void 0?14:a,s=r.fontWeightLight,u=s===void 0?300:s,l=r.fontWeightRegular,c=l===void 0?400:l,p=r.fontWeightMedium,d=p===void 0?500:p,f=r.fontWeightBold,m=f===void 0?700:f,g=r.htmlFontSize,v=g===void 0?16:g,h=r.allVariants,y=r.pxToRem,b=ce(r,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),E=i/14,w=y||function(P){return"".concat(P/v*E,"rem")},S=function(k,O,F,U,J){return L({fontFamily:o,fontWeight:k,fontSize:w(O),lineHeight:F},o===mte?{letterSpacing:"".concat(gte(U/O),"em")}:{},J,h)},C={h1:S(u,96,1.167,-1.5),h2:S(u,60,1.2,-.5),h3:S(c,48,1.167,0),h4:S(c,34,1.235,.25),h5:S(c,24,1.334,0),h6:S(d,20,1.6,.15),subtitle1:S(c,16,1.75,.15),subtitle2:S(d,14,1.57,.1),body1:S(c,16,1.5,.15),body2:S(c,14,1.43,.15),button:S(d,14,1.75,.4,fte),caption:S(c,12,1.66,.4),overline:S(c,12,2.66,1,fte)};return(0,hte.deepmerge)(L({htmlFontSize:v,pxToRem:w,round:y3e,fontFamily:o,fontSize:i,fontWeightLight:u,fontWeightRegular:c,fontWeightMedium:d,fontWeightBold:m},C),b,{clone:!1})}var _3e=.2,b3e=.14,S3e=.12;function ar(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(_3e,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(b3e,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(S3e,")")].join(",")}var E3e=["none",ar(0,2,1,-1,0,1,1,0,0,1,3,0),ar(0,3,1,-2,0,2,2,0,0,1,5,0),ar(0,3,3,-2,0,3,4,0,0,1,8,0),ar(0,2,4,-1,0,4,5,0,0,1,10,0),ar(0,3,5,-1,0,5,8,0,0,1,14,0),ar(0,3,5,-1,0,6,10,0,0,1,18,0),ar(0,4,5,-2,0,7,10,1,0,2,16,1),ar(0,5,5,-3,0,8,10,1,0,3,14,2),ar(0,5,6,-3,0,9,12,1,0,3,16,2),ar(0,6,6,-3,0,10,14,1,0,4,18,3),ar(0,6,7,-4,0,11,15,1,0,4,20,3),ar(0,7,8,-4,0,12,17,2,0,5,22,4),ar(0,7,8,-4,0,13,19,2,0,5,24,4),ar(0,7,9,-4,0,14,21,2,0,5,26,4),ar(0,8,9,-5,0,15,22,2,0,6,28,5),ar(0,8,10,-5,0,16,24,2,0,6,30,5),ar(0,8,11,-5,0,17,26,2,0,6,32,5),ar(0,9,11,-5,0,18,28,2,0,7,34,6),ar(0,9,12,-6,0,19,29,2,0,7,36,6),ar(0,10,13,-6,0,20,31,3,0,8,38,7),ar(0,10,13,-6,0,21,33,3,0,8,40,7),ar(0,10,14,-6,0,22,35,3,0,8,42,7),ar(0,11,14,-7,0,23,36,3,0,9,44,8),ar(0,11,15,-7,0,24,38,3,0,9,46,8)],vte=E3e;var T3e={borderRadius:4},yte=T3e;var _te=q(K0());function pj(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8;if(t.mui)return t;var e=(0,_te.createUnarySpacing)({spacing:t}),r=function(){for(var o=arguments.length,a=new Array(o),i=0;i0&&arguments[0]!==void 0?arguments[0]:["all"],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.duration,o=n===void 0?Ste.standard:n,a=r.easing,i=a===void 0?bte.easeInOut:a,s=r.delay,u=s===void 0?0:s,l=ce(r,["duration","easing","delay"]);if(0)var c,p;return(Array.isArray(e)?e:[e]).map(function(d){return"".concat(d," ").concat(typeof o=="string"?o:Ete(o)," ").concat(i," ").concat(typeof u=="string"?u:Ete(u))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var r=e/36;return Math.round((4+15*Math.pow(r,.25)+r/5)*10)}};var w3e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},CC=w3e;function x3e(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.breakpoints,r=e===void 0?{}:e,n=t.mixins,o=n===void 0?{}:n,a=t.palette,i=a===void 0?{}:a,s=t.spacing,u=t.typography,l=u===void 0?{}:u,c=ce(t,["breakpoints","mixins","palette","spacing","typography"]),p=cj(i),d=rj(r),f=pj(s),m=(0,fj.deepmerge)({breakpoints:d,direction:"ltr",mixins:nj(d,f,o),overrides:{},palette:p,props:{},shadows:vte,typography:dj(p,l),spacing:f,shape:yte,transitions:Tte,zIndex:CC},c),g=arguments.length,v=new Array(g>1?g-1:0),h=1;ht.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&arguments[0]!==void 0?arguments[0]:{},S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=arguments.length>2?arguments[2]:void 0,P=S.pulsate,k=P===void 0?!1:P,O=S.center,F=O===void 0?o||S.pulsate:O,U=S.fakeElement,J=U===void 0?!1:U;if(w.type==="mousedown"&&f.current){f.current=!1;return}w.type==="touchstart"&&(f.current=!0);var K=J?null:v.current,Z=K?K.getBoundingClientRect():{width:0,height:0,left:0,top:0},G,Q,N;if(F||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)G=Math.round(Z.width/2),Q=Math.round(Z.height/2);else{var j=w.touches?w.touches[0]:w,V=j.clientX,Y=j.clientY;G=Math.round(V-Z.left),Q=Math.round(Y-Z.top)}if(F)N=Math.sqrt((2*Math.pow(Z.width,2)+Math.pow(Z.height,2))/3),N%2===0&&(N+=1);else{var X=Math.max(Math.abs((K?K.clientWidth:0)-G),G)*2+2,ie=Math.max(Math.abs((K?K.clientHeight:0)-Q),Q)*2+2;N=Math.sqrt(Math.pow(X,2)+Math.pow(ie,2))}w.touches?g.current===null&&(g.current=function(){h({pulsate:k,rippleX:G,rippleY:Q,rippleSize:N,cb:C})},m.current=setTimeout(function(){g.current&&(g.current(),g.current=null)},B3e)):h({pulsate:k,rippleX:G,rippleY:Q,rippleSize:N,cb:C})},[o,h]),b=Ut.useCallback(function(){y({},{pulsate:!0})},[y]),E=Ut.useCallback(function(w,S){if(clearTimeout(m.current),w.type==="touchend"&&g.current){w.persist(),g.current(),g.current=null,m.current=setTimeout(function(){E(w,S)});return}g.current=null,c(function(C){return C.length>0?C.slice(1):C}),d.current=S},[]);return Ut.useImperativeHandle(r,function(){return{pulsate:b,start:y,stop:E}},[b,y,E]),Ut.createElement("span",L({className:(0,qte.default)(a.root,i),ref:v},s),Ut.createElement(Fte.TransitionGroup,{component:null,exit:!0},l))}),jte=Ae(U3e,{flip:!1,name:"MuiTouchRipple"})(Ut.memo(z3e));var W3e={root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},$3e=ln.forwardRef(function(e,r){var n=e.action,o=e.buttonRef,a=e.centerRipple,i=a===void 0?!1:a,s=e.children,u=e.classes,l=e.className,c=e.component,p=c===void 0?"button":c,d=e.disabled,f=d===void 0?!1:d,m=e.disableRipple,g=m===void 0?!1:m,v=e.disableTouchRipple,h=v===void 0?!1:v,y=e.focusRipple,b=y===void 0?!1:y,E=e.focusVisibleClassName,w=e.onBlur,S=e.onClick,C=e.onFocus,P=e.onFocusVisible,k=e.onKeyDown,O=e.onKeyUp,F=e.onMouseDown,U=e.onMouseLeave,J=e.onMouseUp,K=e.onTouchEnd,Z=e.onTouchMove,G=e.onTouchStart,Q=e.onDragLeave,N=e.tabIndex,j=N===void 0?0:N,V=e.TouchRippleProps,Y=e.type,X=Y===void 0?"button":Y,ie=ce(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),de=ln.useRef(null);function pe(){return Lte.findDOMNode(de.current)}var le=ln.useRef(null),_e=ln.useState(!1),we=_e[0],ge=_e[1];f&&we&&ge(!1);var Se=vj(),me=Se.isFocusVisible,be=Se.onBlurVisible,Me=Se.ref;ln.useImperativeHandle(n,function(){return{focusVisible:function(){ge(!0),de.current.focus()}}},[]),ln.useEffect(function(){we&&b&&!g&&le.current.pulsate()},[g,b,we]);function ve(H,Re){var De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h;return Bn(function(Ot){Re&&Re(Ot);var zt=De;return!zt&&le.current&&le.current[H](Ot),!0})}var gt=ve("start",F),qe=ve("stop",Q),nt=ve("stop",J),Qe=ve("stop",function(H){we&&H.preventDefault(),U&&U(H)}),he=ve("start",G),Ue=ve("stop",K),Ie=ve("stop",Z),Fe=ve("stop",function(H){we&&(be(H),ge(!1)),w&&w(H)},!1),ue=Bn(function(H){de.current||(de.current=H.currentTarget),me(H)&&(ge(!0),P&&P(H)),C&&C(H)}),Be=function(){var Re=pe();return p&&p!=="button"&&!(Re.tagName==="A"&&Re.href)},kt=ln.useRef(!1),ur=Bn(function(H){b&&!kt.current&&we&&le.current&&H.key===" "&&(kt.current=!0,H.persist(),le.current.stop(H,function(){le.current.start(H)})),H.target===H.currentTarget&&Be()&&H.key===" "&&H.preventDefault(),k&&k(H),H.target===H.currentTarget&&Be()&&H.key==="Enter"&&!f&&(H.preventDefault(),S&&S(H))}),dt=Bn(function(H){b&&H.key===" "&&le.current&&we&&!H.defaultPrevented&&(kt.current=!1,H.persist(),le.current.stop(H,function(){le.current.pulsate(H)})),O&&O(H),S&&H.target===H.currentTarget&&Be()&&H.key===" "&&!H.defaultPrevented&&S(H)}),Xe=p;Xe==="button"&&ie.href&&(Xe="a");var it={};Xe==="button"?(it.type=X,it.disabled=f):((Xe!=="a"||!ie.href)&&(it.role="button"),it["aria-disabled"]=f);var kr=wt(o,r),Yt=wt(Me,de),et=wt(kr,Yt),Pt=ln.useState(!1),Je=Pt[0],Pe=Pt[1];ln.useEffect(function(){Pe(!0)},[]);var ye=Je&&!g&&!f;return ln.createElement(Xe,L({className:(0,Bte.default)(u.root,l,we&&[u.focusVisible,E],f&&u.disabled),onBlur:Fe,onClick:S,onFocus:ue,onKeyDown:ur,onKeyUp:dt,onMouseDown:gt,onMouseLeave:Qe,onMouseUp:nt,onDragLeave:qe,onTouchEnd:Ue,onTouchMove:Ie,onTouchStart:he,ref:et,tabIndex:f?-1:j},it,ie),s,ye?ln.createElement(jte,L({ref:le,center:i},V)):null)}),Oi=Ae(W3e,{name:"MuiButtonBase"})($3e);var Ute=q(at());function It(t){if(typeof t!="string")throw new Error((0,Ute.formatMuiErrorMessage)(7));return t.charAt(0).toUpperCase()+t.slice(1)}var H3e=function(e){var r;return{root:L({},e.typography.button,(r={maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",minHeight:48,flexShrink:0,padding:"6px 12px"},or(r,e.breakpoints.up("sm"),{padding:"6px 24px"}),or(r,"overflow","hidden"),or(r,"whiteSpace","normal"),or(r,"textAlign","center"),or(r,e.breakpoints.up("sm"),{minWidth:160}),r)),labelIcon:{minHeight:72,paddingTop:9,"& $wrapper > *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:e.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}},G3e=w_.forwardRef(function(e,r){var n=e.classes,o=e.className,a=e.disabled,i=a===void 0?!1:a,s=e.disableFocusRipple,u=s===void 0?!1:s,l=e.fullWidth,c=e.icon,p=e.indicator,d=e.label,f=e.onChange,m=e.onClick,g=e.onFocus,v=e.selected,h=e.selectionFollowsFocus,y=e.textColor,b=y===void 0?"inherit":y,E=e.value,w=e.wrapped,S=w===void 0?!1:w,C=ce(e,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"]),P=function(F){f&&f(F,E),m&&m(F)},k=function(F){h&&!v&&f&&f(F,E),g&&g(F)};return w_.createElement(Oi,L({focusRipple:!u,className:(0,zte.default)(n.root,n["textColor".concat(It(b))],o,i&&n.disabled,v&&n.selected,d&&c&&n.labelIcon,l&&n.fullWidth,S&&n.wrapped),ref:r,role:"tab","aria-selected":v,disabled:i,onClick:P,onFocus:k,tabIndex:v?0:-1},C),w_.createElement("span",{className:n.wrapper},c,d),p)}),vl=Ae(H3e,{name:"MuiTab"})(G3e);var ct=q(z()),put=q(Sp());var Um=q(Le());function Ri(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:166,r;function n(){for(var o=arguments.length,a=new Array(o),i=0;i0?Lm="default":(t.scrollLeft=1,t.scrollLeft===0&&(Lm="negative")),document.body.removeChild(t),Lm}function Sj(t,e){var r=t.scrollLeft;if(e!=="rtl")return r;var n=bj();switch(n){case"negative":return t.scrollWidth-t.clientWidth+r;case"reverse":return t.scrollWidth-t.clientWidth-r;default:return r}}function V3e(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function Ej(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},a=n.ease,i=a===void 0?V3e:a,s=n.duration,u=s===void 0?300:s,l=null,c=e[t],p=!1,d=function(){p=!0},f=function m(g){if(p){o(new Error("Animation cancelled"));return}l===null&&(l=g);var v=Math.min(1,(g-l)/u);if(e[t]=i(v)*(r-c)+c,v>=1){requestAnimationFrame(function(){o(null)});return}requestAnimationFrame(m)};return c===r?(o(new Error("Element already at target position")),d):(requestAnimationFrame(f),d)}var yl=q(z());var K3e={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Tj(t){var e=t.onChange,r=ce(t,["onChange"]),n=yl.useRef(),o=yl.useRef(null),a=function(){n.current=o.current.offsetHeight-o.current.clientHeight};return yl.useEffect(function(){var i=Ri(function(){var s=n.current;a(),s!==n.current&&e(n.current)});return window.addEventListener("resize",i),function(){i.clear(),window.removeEventListener("resize",i)}},[e]),yl.useEffect(function(){a(),e(n.current)},[e]),yl.createElement("div",L({style:K3e,ref:o},r))}var OC=q(z());var Wte=q(Le());var Y3e=function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}},J3e=OC.forwardRef(function(e,r){var n=e.classes,o=e.className,a=e.color,i=e.orientation,s=ce(e,["classes","className","color","orientation"]);return OC.createElement("span",L({className:(0,Wte.default)(n.root,n["color".concat(It(a))],o,i==="vertical"&&n.vertical),ref:r},s))}),$te=Ae(Y3e,{name:"PrivateTabIndicator"})(J3e);var Bm=q(z());var Xte=q(Le());var Vte=q(z());var DC=q(z());var x_=q(z());var Hte=q(Le());var X3e=function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}},Gte=x_.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.color,s=i===void 0?"inherit":i,u=e.component,l=u===void 0?"svg":u,c=e.fontSize,p=c===void 0?"medium":c,d=e.htmlColor,f=e.titleAccess,m=e.viewBox,g=m===void 0?"0 0 24 24":m,v=ce(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return x_.createElement(l,L({className:(0,Hte.default)(o.root,a,s!=="inherit"&&o["color".concat(It(s))],p!=="default"&&p!=="medium"&&o["fontSize".concat(It(p))]),focusable:"false",viewBox:g,color:d,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},v),n,f?x_.createElement("title",null,f):null)});Gte.muiName="SvgIcon";var RC=Ae(X3e,{name:"MuiSvgIcon"})(Gte);function zs(t,e){var r=function(o,a){return DC.default.createElement(RC,L({ref:a},o),t)};return r.muiName=RC.muiName,DC.default.memo(DC.default.forwardRef(r))}var Kte=zs(Vte.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft");var Yte=q(z());var Jte=zs(Yte.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var Z3e={root:{width:40,flexShrink:0,opacity:.8,"&$disabled":{opacity:0}},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}},disabled:{}},Q3e=Bm.createElement(Kte,{fontSize:"small"}),e$e=Bm.createElement(Jte,{fontSize:"small"}),t$e=Bm.forwardRef(function(e,r){var n=e.classes,o=e.className,a=e.direction,i=e.orientation,s=e.disabled,u=ce(e,["classes","className","direction","orientation","disabled"]);return Bm.createElement(Oi,L({component:"div",className:(0,Xte.default)(n.root,o,s&&n.disabled,i==="vertical"&&n.vertical),ref:r,role:null,tabIndex:null},u),a==="left"?Q3e:e$e)}),wj=Ae(Z3e,{name:"MuiTabScrollButton"})(t$e);var Zte=q(An()),aut=q(z());function Ws(){var t=(0,Zte.useTheme)()||qm;return t}var r$e=function(e){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},vertical:{flexDirection:"column"},flexContainer:{display:"flex"},flexContainerVertical:{flexDirection:"column"},centered:{justifyContent:"center"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},scrollButtons:{},scrollButtonsDesktop:or({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}},n$e=ct.forwardRef(function(e,r){var n=e["aria-label"],o=e["aria-labelledby"],a=e.action,i=e.centered,s=i===void 0?!1:i,u=e.children,l=e.classes,c=e.className,p=e.component,d=p===void 0?"div":p,f=e.indicatorColor,m=f===void 0?"secondary":f,g=e.onChange,v=e.orientation,h=v===void 0?"horizontal":v,y=e.ScrollButtonComponent,b=y===void 0?wj:y,E=e.scrollButtons,w=E===void 0?"auto":E,S=e.selectionFollowsFocus,C=e.TabIndicatorProps,P=C===void 0?{}:C,k=e.TabScrollButtonProps,O=e.textColor,F=O===void 0?"inherit":O,U=e.value,J=e.variant,K=J===void 0?"standard":J,Z=ce(e,["aria-label","aria-labelledby","action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant"]),G=Ws(),Q=K==="scrollable",N=G.direction==="rtl",j=h==="vertical",V=j?"scrollTop":"scrollLeft",Y=j?"top":"left",X=j?"bottom":"right",ie=j?"clientHeight":"clientWidth",de=j?"height":"width",pe=ct.useState(!1),le=pe[0],_e=pe[1],we=ct.useState({}),ge=we[0],Se=we[1],me=ct.useState({start:!1,end:!1}),be=me[0],Me=me[1],ve=ct.useState({overflow:"hidden",marginBottom:null}),gt=ve[0],qe=ve[1],nt=new Map,Qe=ct.useRef(null),he=ct.useRef(null),Ue=function(){var H=Qe.current,Re;if(H){var De=H.getBoundingClientRect();Re={clientWidth:H.clientWidth,scrollLeft:H.scrollLeft,scrollTop:H.scrollTop,scrollLeftNormalized:Sj(H,G.direction),scrollWidth:H.scrollWidth,top:De.top,bottom:De.bottom,left:De.left,right:De.right}}var Ot;if(H&&U!==!1){var zt=he.current.children;if(zt.length>0){var Sr=zt[nt.get(U)];Ot=Sr?Sr.getBoundingClientRect():null}}return{tabsMeta:Re,tabMeta:Ot}},Ie=Bn(function(){var ye,H=Ue(),Re=H.tabsMeta,De=H.tabMeta,Ot=0;if(De&&Re)if(j)Ot=De.top-Re.top+Re.scrollTop;else{var zt=N?Re.scrollLeftNormalized+Re.clientWidth-Re.scrollWidth:Re.scrollLeft;Ot=De.left-Re.left+zt}var Sr=(ye={},or(ye,Y,Ot),or(ye,de,De?De[de]:0),ye);if(isNaN(ge[Y])||isNaN(ge[de]))Se(Sr);else{var St=Math.abs(ge[Y]-Sr[Y]),zn=Math.abs(ge[de]-Sr[de]);(St>=1||zn>=1)&&Se(Sr)}}),Fe=function(H){Ej(V,Qe.current,H)},ue=function(H){var Re=Qe.current[V];j?Re+=H:(Re+=H*(N?-1:1),Re*=N&&bj()==="reverse"?-1:1),Fe(Re)},Be=function(){ue(-Qe.current[ie])},kt=function(){ue(Qe.current[ie])},ur=ct.useCallback(function(ye){qe({overflow:null,marginBottom:-ye})},[]),dt=function(){var H={};H.scrollbarSizeListener=Q?ct.createElement(Tj,{className:l.scrollable,onChange:ur}):null;var Re=be.start||be.end,De=Q&&(w==="auto"&&Re||w==="desktop"||w==="on");return H.scrollButtonStart=De?ct.createElement(b,L({orientation:h,direction:N?"right":"left",onClick:Be,disabled:!be.start,className:(0,Um.default)(l.scrollButtons,w!=="on"&&l.scrollButtonsDesktop)},k)):null,H.scrollButtonEnd=De?ct.createElement(b,L({orientation:h,direction:N?"left":"right",onClick:kt,disabled:!be.end,className:(0,Um.default)(l.scrollButtons,w!=="on"&&l.scrollButtonsDesktop)},k)):null,H},Xe=Bn(function(){var ye=Ue(),H=ye.tabsMeta,Re=ye.tabMeta;if(!(!Re||!H)){if(Re[Y]H[X]){var Ot=H[V]+(Re[X]-H[X]);Fe(Ot)}}}),it=Bn(function(){if(Q&&w!=="off"){var ye=Qe.current,H=ye.scrollTop,Re=ye.scrollHeight,De=ye.clientHeight,Ot=ye.scrollWidth,zt=ye.clientWidth,Sr,St;if(j)Sr=H>1,St=H1,St=N?zn>1:zn{let{children:e,value:r,index:n,...o}=t;return Cj.default.createElement("div",{role:"tabpanel",hidden:r!==n,id:`vertical-tabpanel-${n}`,"aria-labelledby":`vertical-tab-${n}`,...o},r===n&&Cj.default.createElement(jm,{p:3},e))};var pn=q(z());var AC=q(z());var Qte=q(Le());var l$e=[0,1,2,3,4,5,6,7,8,9,10],c$e=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function d$e(t,e,r){var n={};c$e.forEach(function(o){var a="grid-".concat(r,"-").concat(o);if(o===!0){n[a]={flexBasis:0,flexGrow:1,maxWidth:"100%"};return}if(o==="auto"){n[a]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};return}var i="".concat(Math.round(o/12*1e8)/1e6,"%");n[a]={flexBasis:i,flexGrow:0,maxWidth:i}}),r==="xs"?L(t,n):t[e.breakpoints.up(r)]=n}function Ij(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=parseFloat(t);return"".concat(r/e).concat(String(t).replace(String(r),"")||"px")}function p$e(t,e){var r={};return l$e.forEach(function(n){var o=t.spacing(n);o!==0&&(r["spacing-".concat(e,"-").concat(n)]={margin:"-".concat(Ij(o,2)),width:"calc(100% + ".concat(Ij(o),")"),"& > $item":{padding:Ij(o,2)}})}),r}var f$e=function(e){return L({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},p$e(e,"xs"),e.breakpoints.keys.reduce(function(r,n){return d$e(r,e,n),r},{}))},m$e=AC.forwardRef(function(e,r){var n=e.alignContent,o=n===void 0?"stretch":n,a=e.alignItems,i=a===void 0?"stretch":a,s=e.classes,u=e.className,l=e.component,c=l===void 0?"div":l,p=e.container,d=p===void 0?!1:p,f=e.direction,m=f===void 0?"row":f,g=e.item,v=g===void 0?!1:g,h=e.justify,y=e.justifyContent,b=y===void 0?"flex-start":y,E=e.lg,w=E===void 0?!1:E,S=e.md,C=S===void 0?!1:S,P=e.sm,k=P===void 0?!1:P,O=e.spacing,F=O===void 0?0:O,U=e.wrap,J=U===void 0?"wrap":U,K=e.xl,Z=K===void 0?!1:K,G=e.xs,Q=G===void 0?!1:G,N=e.zeroMinWidth,j=N===void 0?!1:N,V=ce(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),Y=(0,Qte.default)(s.root,u,d&&[s.container,F!==0&&s["spacing-xs-".concat(String(F))]],v&&s.item,j&&s.zeroMinWidth,m!=="row"&&s["direction-xs-".concat(String(m))],J!=="wrap"&&s["wrap-xs-".concat(String(J))],i!=="stretch"&&s["align-items-xs-".concat(String(i))],o!=="stretch"&&s["align-content-xs-".concat(String(o))],(h||b)!=="flex-start"&&s["justify-content-xs-".concat(String(h||b))],Q!==!1&&s["grid-xs-".concat(String(Q))],k!==!1&&s["grid-sm-".concat(String(k))],C!==!1&&s["grid-md-".concat(String(C))],w!==!1&&s["grid-lg-".concat(String(w))],Z!==!1&&s["grid-xl-".concat(String(Z))]);return AC.createElement(c,L({className:Y,ref:r},V))}),h$e=Ae(f$e,{name:"MuiGrid"})(m$e);var Ke=h$e;var Do=q(_o()),yoe=q(nre());var vd=q(z());var kre=q(Wm()),Pre=q(zC());var P_=q(z());var vre=q(Le());function Ro(t){var e=t.props,r=t.states,n=t.muiFormControl;return r.reduce(function(o,a){return o[a]=e[a],n&&typeof e[a]=="undefined"&&(o[a]=n[a]),o},{})}var gre=q(z());var WC=q(z()),mre=WC.createContext();function hre(){return WC.useContext(mre)}var Hm=mre;function qa(){return gre.useContext(Hm)}var E4e=function(e){return{root:L({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}},T4e=P_.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.component,s=i===void 0?"p":i,u=e.disabled,l=e.error,c=e.filled,p=e.focused,d=e.margin,f=e.required,m=e.variant,g=ce(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"]),v=qa(),h=Ro({props:e,muiFormControl:v,states:["variant","margin","disabled","error","filled","focused","required"]});return P_.createElement(s,L({className:(0,vre.default)(o.root,(h.variant==="filled"||h.variant==="outlined")&&o.contained,a,h.disabled&&o.disabled,h.error&&o.error,h.filled&&o.filled,h.focused&&o.focused,h.required&&o.required,h.margin==="dense"&&o.marginDense),ref:r},g),n===" "?P_.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):n)}),ja=Ae(E4e,{name:"MuiFormHelperText"})(T4e);var Ore=q(VC()),xr=class extends vd.default.PureComponent{constructor(e){super(e),this.state={value:this.props.value}}componentDidUpdate(e){e.value!==this.props.value&&this.setState({value:this.props.value})}render(){return vd.default.createElement(Ke,{item:!0,xs:this.props.xs,sm:this.props.sm,md:this.props.md,lg:this.props.lg,xl:this.props.xl},vd.default.createElement(kre.default,null,vd.default.createElement(Pre.default,{control:vd.default.createElement(Ore.default,{checked:this.state.value,disabled:this.props.disabled,onChange:e=>this.handleChange(e.target.checked)}),label:this.props.label}),this.props.children&&vd.default.createElement(ja,null,this.props.children)))}handleChange(e){this.setState({value:e},()=>{this.props.onChange(this.state.value)})}};var xl=q(z());var poe=q(Wm());var La=q(z());var kne=q(Le());var YC=q(z());var Are=q(Le());var Nre=q(at()),Cr=q(z());var Bj=q(Le());var lr=q(z());function KC(t,e){return parseInt(t[e],10)||0}var dHe=typeof window!="undefined"?lr.useLayoutEffect:lr.useEffect,pHe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}},fHe=lr.forwardRef(function(e,r){var n=e.onChange,o=e.rows,a=e.rowsMax,i=e.rowsMin,s=e.maxRows,u=e.minRows,l=u===void 0?1:u,c=e.style,p=e.value,d=ce(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),f=s||a,m=o||i||l,g=lr.useRef(p!=null),v=g.current,h=lr.useRef(null),y=wt(r,h),b=lr.useRef(null),E=lr.useRef(0),w=lr.useState({}),S=w[0],C=w[1],P=lr.useCallback(function(){var O=h.current,F=window.getComputedStyle(O),U=b.current;U.style.width=F.width,U.value=O.value||e.placeholder||"x",U.value.slice(-1)===` +`&&(U.value+=" ");var J=F["box-sizing"],K=KC(F,"padding-bottom")+KC(F,"padding-top"),Z=KC(F,"border-bottom-width")+KC(F,"border-top-width"),G=U.scrollHeight-K;U.value="x";var Q=U.scrollHeight-K,N=G;m&&(N=Math.max(Number(m)*Q,N)),f&&(N=Math.min(Number(f)*Q,N)),N=Math.max(N,Q);var j=N+(J==="border-box"?K+Z:0),V=Math.abs(N-G)<=1;C(function(Y){return E.current<20&&(j>0&&Math.abs((Y.outerHeightStyle||0)-j)>1||Y.overflow!==V)?(E.current+=1,{overflow:V,outerHeightStyle:j}):Y})},[f,m,e.placeholder]);lr.useEffect(function(){var O=Ri(function(){E.current=0,P()});return window.addEventListener("resize",O),function(){O.clear(),window.removeEventListener("resize",O)}},[P]),dHe(function(){P()}),lr.useEffect(function(){E.current=0},[p]);var k=function(F){E.current=0,v||P(),n&&n(F)};return lr.createElement(lr.Fragment,null,lr.createElement("textarea",L({value:p,onChange:k,ref:y,rows:m,style:L({height:S.outerHeightStyle,overflow:S.overflow?"hidden":null},c)},d)),lr.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:b,tabIndex:-1,style:L({},pHe.shadow,c)}))}),Lj=fHe;function Rre(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function Km(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return t&&(Rre(t.value)&&t.value!==""||e&&Rre(t.defaultValue)&&t.defaultValue!=="")}function Dre(t){return t.startAdornment}var mHe=function(e){var r=e.palette.type==="light",n={color:"currentColor",opacity:r?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},a={opacity:r?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:L({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}},hHe=typeof window=="undefined"?Cr.useEffect:Cr.useLayoutEffect,gHe=Cr.forwardRef(function(e,r){var n=e["aria-describedby"],o=e.autoComplete,a=e.autoFocus,i=e.classes,s=e.className,u=e.color,l=e.defaultValue,c=e.disabled,p=e.endAdornment,d=e.error,f=e.fullWidth,m=f===void 0?!1:f,g=e.id,v=e.inputComponent,h=v===void 0?"input":v,y=e.inputProps,b=y===void 0?{}:y,E=e.inputRef,w=e.margin,S=e.multiline,C=S===void 0?!1:S,P=e.name,k=e.onBlur,O=e.onChange,F=e.onClick,U=e.onFocus,J=e.onKeyDown,K=e.onKeyUp,Z=e.placeholder,G=e.readOnly,Q=e.renderSuffix,N=e.rows,j=e.rowsMax,V=e.rowsMin,Y=e.maxRows,X=e.minRows,ie=e.startAdornment,de=e.type,pe=de===void 0?"text":de,le=e.value,_e=ce(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),we=b.value!=null?b.value:le,ge=Cr.useRef(we!=null),Se=ge.current,me=Cr.useRef(),be=Cr.useCallback(function(Yt){},[]),Me=wt(b.ref,be),ve=wt(E,Me),gt=wt(me,ve),qe=Cr.useState(!1),nt=qe[0],Qe=qe[1],he=hre(),Ue=Ro({props:e,muiFormControl:he,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});Ue.focused=he?he.focused:nt,Cr.useEffect(function(){!he&&c&&nt&&(Qe(!1),k&&k())},[he,c,nt,k]);var Ie=he&&he.onFilled,Fe=he&&he.onEmpty,ue=Cr.useCallback(function(Yt){Km(Yt)?Ie&&Ie():Fe&&Fe()},[Ie,Fe]);hHe(function(){Se&&ue({value:we})},[we,ue,Se]);var Be=function(et){if(Ue.disabled){et.stopPropagation();return}U&&U(et),b.onFocus&&b.onFocus(et),he&&he.onFocus?he.onFocus(et):Qe(!0)},kt=function(et){k&&k(et),b.onBlur&&b.onBlur(et),he&&he.onBlur?he.onBlur(et):Qe(!1)},ur=function(et){if(!Se){var Pt=et.target||me.current;if(Pt==null)throw new Error((0,Nre.formatMuiErrorMessage)(1));ue({value:Pt.value})}for(var Je=arguments.length,Pe=new Array(Je>1?Je-1:0),ye=1;ye span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}},bHe=Ai.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.label,s=e.labelWidth,u=e.notched,l=e.style,c=ce(e,["children","classes","className","label","labelWidth","notched","style"]),p=Ws(),d=p.direction==="rtl"?"right":"left";if(i!==void 0)return Ai.createElement("fieldset",L({"aria-hidden":!0,className:(0,XC.default)(o.root,a),ref:r,style:l},c),Ai.createElement("legend",{className:(0,XC.default)(o.legendLabelled,u&&o.legendNotched)},i?Ai.createElement("span",null,i):Ai.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var f=s>0?s*.75+8:.01;return Ai.createElement("fieldset",L({"aria-hidden":!0,style:L(or({},"padding".concat(It(d)),8),l),className:(0,XC.default)(o.root,a),ref:r},c),Ai.createElement("legend",{className:o.legend,style:{width:u?f:.01}},Ai.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))}),jre=Ae(_He,{name:"PrivateNotchedOutline"})(bHe);var SHe=function(e){var r=e.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:r}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:r},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:e.palette.type==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.type==="light"?null:"#fff",caretColor:e.palette.type==="light"?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}},Bre=R_.forwardRef(function(e,r){var n=e.classes,o=e.fullWidth,a=o===void 0?!1:o,i=e.inputComponent,s=i===void 0?"input":i,u=e.label,l=e.labelWidth,c=l===void 0?0:l,p=e.multiline,d=p===void 0?!1:p,f=e.notched,m=e.type,g=m===void 0?"text":m,v=ce(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return R_.createElement(yd,L({renderSuffix:function(y){return R_.createElement(jre,{className:n.notchedOutline,label:u,labelWidth:c,notched:typeof f!="undefined"?f:!!(y.startAdornment||y.filled||y.focused)})},classes:L({},n,{root:(0,Lre.default)(n.root,n.underline),notchedOutline:null}),fullWidth:a,inputComponent:s,multiline:d,ref:r,type:g},v))});Bre.muiName="Input";var D_=Ae(SHe,{name:"MuiOutlinedInput"})(Bre);var ZC=q(z());var Ure=q(Le());var N_=q(z());var Uj=q(Le());var EHe=function(e){return{root:L({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}},THe=N_.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.color,s=e.component,u=s===void 0?"label":s,l=e.disabled,c=e.error,p=e.filled,d=e.focused,f=e.required,m=ce(e,["children","classes","className","color","component","disabled","error","filled","focused","required"]),g=qa(),v=Ro({props:e,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]});return N_.createElement(u,L({className:(0,Uj.default)(o.root,o["color".concat(It(v.color||"primary"))],a,v.disabled&&o.disabled,v.error&&o.error,v.filled&&o.filled,v.focused&&o.focused,v.required&&o.required),ref:r},m),n,v.required&&N_.createElement("span",{"aria-hidden":!0,className:(0,Uj.default)(o.asterisk,v.error&&o.error)},"\u2009","*"))}),zj=Ae(EHe,{name:"MuiFormLabel"})(THe);var wHe=function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}},xHe=ZC.forwardRef(function(e,r){var n=e.classes,o=e.className,a=e.disableAnimation,i=a===void 0?!1:a,s=e.margin,u=e.shrink,l=e.variant,c=ce(e,["classes","className","disableAnimation","margin","shrink","variant"]),p=qa(),d=u;typeof d=="undefined"&&p&&(d=p.filled||p.focused||p.adornedStart);var f=Ro({props:e,muiFormControl:p,states:["margin","variant"]});return ZC.createElement(zj,L({"data-shrink":d,className:(0,Ure.default)(n.root,o,p&&n.formControl,!i&&n.animated,d&&n.shrink,f.margin==="dense"&&n.marginDense,{filled:n.filled,outlined:n.outlined}[f.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:r},c))}),bd=Ae(wHe,{name:"MuiInputLabel"})(xHe);var Pn=q(z());var Wre=q(Le());var zre=q(z());function Sd(t,e){return zre.isValidElement(t)&&e.indexOf(t.type.muiName)!==-1}var CHe={root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},IHe=Pn.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.color,s=i===void 0?"primary":i,u=e.component,l=u===void 0?"div":u,c=e.disabled,p=c===void 0?!1:c,d=e.error,f=d===void 0?!1:d,m=e.fullWidth,g=m===void 0?!1:m,v=e.focused,h=e.hiddenLabel,y=h===void 0?!1:h,b=e.margin,E=b===void 0?"none":b,w=e.required,S=w===void 0?!1:w,C=e.size,P=e.variant,k=P===void 0?"standard":P,O=ce(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),F=Pn.useState(function(){var le=!1;return n&&Pn.Children.forEach(n,function(_e){if(Sd(_e,["Input","Select"])){var we=Sd(_e,["Select"])?_e.props.input:_e;we&&Dre(we.props)&&(le=!0)}}),le}),U=F[0],J=F[1],K=Pn.useState(function(){var le=!1;return n&&Pn.Children.forEach(n,function(_e){Sd(_e,["Input","Select"])&&Km(_e.props,!0)&&(le=!0)}),le}),Z=K[0],G=K[1],Q=Pn.useState(!1),N=Q[0],j=Q[1],V=v!==void 0?v:N;p&&V&&j(!1);var Y;if(0)var X;var ie=Pn.useCallback(function(){G(!0)},[]),de=Pn.useCallback(function(){G(!1)},[]),pe={adornedStart:U,setAdornedStart:J,color:s,disabled:p,error:f,filled:Z,focused:V,fullWidth:g,hiddenLabel:y,margin:(C==="small"?"dense":void 0)||E,onBlur:function(){j(!1)},onEmpty:de,onFilled:ie,onFocus:function(){j(!0)},registerEffect:Y,required:S,variant:k};return Pn.createElement(Hm.Provider,{value:pe},Pn.createElement(l,L({className:(0,Wre.default)(o.root,a,E!=="none"&&o["margin".concat(It(E))],g&&o.fullWidth),ref:r},O),n))}),Wj=Ae(CHe,{name:"MuiFormControl"})(IHe);var El=q(z());var Cne=q(An());function $re(t){if(Array.isArray(t))return t}function Hre(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,o,a,i,s=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(c){l=!0,o=c}finally{try{if(!u&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}function Gre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bl(t,e){return $re(t)||Hre(t,e)||kC(t,e)||Gre()}var Ene=q(at()),Dt=q(z()),Kpt=q(Sp());var aL=q(Le());var Un=q(z()),Mpt=q(Sp());var yne=q(Le());var Ir=q(z());var cne=q(jr());var Qj=q(Le());function Vs(){for(var t=arguments.length,e=new Array(t),r=0;re.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function Ym(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function Jre(t){return parseInt(window.getComputedStyle(t)["padding-right"],10)||0}function Xre(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,a=[e,r].concat(PC(n)),i=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(t.children,function(s){s.nodeType===1&&a.indexOf(s)===-1&&i.indexOf(s.tagName)===-1&&Ym(s,o)})}function Hj(t,e){var r=-1;return t.some(function(n,o){return e(n)?(r=o,!0):!1}),r}function RHe(t,e){var r=[],n=[],o=t.container,a;if(!e.disableScrollLock){if(OHe(o)){var i=M_();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(Jre(o)+i,"px"),a=cn(o).querySelectorAll(".mui-fixed"),[].forEach.call(a,function(c){n.push(c.style.paddingRight),c.style.paddingRight="".concat(Jre(c)+i,"px")})}var s=o.parentElement,u=s.nodeName==="HTML"&&window.getComputedStyle(s)["overflow-y"]==="scroll"?s:o;r.push({value:u.style.overflow,key:"overflow",el:u}),u.style.overflow="hidden"}var l=function(){a&&[].forEach.call(a,function(p,d){n[d]?p.style.paddingRight=n[d]:p.style.removeProperty("padding-right")}),r.forEach(function(p){var d=p.value,f=p.el,m=p.key;d?f.style.setProperty(m,d):f.style.removeProperty(m)})};return l}function DHe(t){var e=[];return[].forEach.call(t.children,function(r){r.getAttribute&&r.getAttribute("aria-hidden")==="true"&&e.push(r)}),e}var Zre=function(){function t(){Vre(this,t),this.modals=[],this.containers=[]}return Yre(t,[{key:"add",value:function(r,n){var o=this.modals.indexOf(r);if(o!==-1)return o;o=this.modals.length,this.modals.push(r),r.modalRef&&Ym(r.modalRef,!1);var a=DHe(n);Xre(n,r.mountNode,r.modalRef,a,!0);var i=Hj(this.containers,function(s){return s.container===n});return i!==-1?(this.containers[i].modals.push(r),o):(this.containers.push({modals:[r],container:n,restore:null,hiddenSiblingNodes:a}),o)}},{key:"mount",value:function(r,n){var o=Hj(this.containers,function(i){return i.modals.indexOf(r)!==-1}),a=this.containers[o];a.restore||(a.restore=RHe(a,n))}},{key:"remove",value:function(r){var n=this.modals.indexOf(r);if(n===-1)return n;var o=Hj(this.containers,function(s){return s.modals.indexOf(r)!==-1}),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(r),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),r.modalRef&&Ym(r.modalRef,!0),Xre(a.container,r.mountNode,r.modalRef,a.hiddenSiblingNodes,!1),this.containers.splice(o,1);else{var i=a.modals[a.modals.length-1];i.modalRef&&Ym(i.modalRef,!1)}return n}},{key:"isTopModal",value:function(r){return this.modals.length>0&&this.modals[this.modals.length-1]===r}}]),t}();var Nr=q(z()),Qre=q(jr());function NHe(t){var e=t.children,r=t.disableAutoFocus,n=r===void 0?!1:r,o=t.disableEnforceFocus,a=o===void 0?!1:o,i=t.disableRestoreFocus,s=i===void 0?!1:i,u=t.getDoc,l=t.isEnabled,c=t.open,p=Nr.useRef(),d=Nr.useRef(null),f=Nr.useRef(null),m=Nr.useRef(),g=Nr.useRef(null),v=Nr.useCallback(function(b){g.current=Qre.findDOMNode(b)},[]),h=wt(e.ref,v),y=Nr.useRef();return Nr.useEffect(function(){y.current=c},[c]),!y.current&&c&&typeof window!="undefined"&&(m.current=u().activeElement),Nr.useEffect(function(){if(c){var b=cn(g.current);!n&&g.current&&!g.current.contains(b.activeElement)&&(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex",-1),g.current.focus());var E=function(){var P=g.current;if(P!==null){if(!b.hasFocus()||a||!l()||p.current){p.current=!1;return}g.current&&!g.current.contains(b.activeElement)&&g.current.focus()}},w=function(P){a||!l()||P.keyCode!==9||b.activeElement===g.current&&(p.current=!0,P.shiftKey?f.current.focus():d.current.focus())};b.addEventListener("focus",E,!0),b.addEventListener("keydown",w,!0);var S=setInterval(function(){E()},50);return function(){clearInterval(S),b.removeEventListener("focus",E,!0),b.removeEventListener("keydown",w,!0),s||(m.current&&m.current.focus&&m.current.focus(),m.current=null)}}},[n,a,s,l,c]),Nr.createElement(Nr.Fragment,null,Nr.createElement("div",{tabIndex:0,ref:d,"data-test":"sentinelStart"}),Nr.cloneElement(e,{ref:h}),Nr.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelEnd"}))}var Gj=NHe;var eI=q(z());var ene={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},AHe=eI.forwardRef(function(e,r){var n=e.invisible,o=n===void 0?!1:n,a=e.open,i=ce(e,["invisible","open"]);return a?eI.createElement("div",L({"aria-hidden":!0,ref:r},i,{style:L({},ene.root,o?ene.invisible:{},i.style)})):null}),tne=AHe;function MHe(t){return t=typeof t=="function"?t():t,rne.findDOMNode(t)}function FHe(t){return t.children?t.children.props.hasOwnProperty("in"):!1}var qHe=new Zre,jHe=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}},LHe=vr.forwardRef(function(e,r){var n=(0,tI.useTheme)(),o=(0,tI.getThemeProps)({name:"MuiModal",props:L({},e),theme:n}),a=o.BackdropComponent,i=a===void 0?tne:a,s=o.BackdropProps,u=o.children,l=o.closeAfterTransition,c=l===void 0?!1:l,p=o.container,d=o.disableAutoFocus,f=d===void 0?!1:d,m=o.disableBackdropClick,g=m===void 0?!1:m,v=o.disableEnforceFocus,h=v===void 0?!1:v,y=o.disableEscapeKeyDown,b=y===void 0?!1:y,E=o.disablePortal,w=E===void 0?!1:E,S=o.disableRestoreFocus,C=S===void 0?!1:S,P=o.disableScrollLock,k=P===void 0?!1:P,O=o.hideBackdrop,F=O===void 0?!1:O,U=o.keepMounted,J=U===void 0?!1:U,K=o.manager,Z=K===void 0?qHe:K,G=o.onBackdropClick,Q=o.onClose,N=o.onEscapeKeyDown,j=o.onRendered,V=o.open,Y=ce(o,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),X=vr.useState(!0),ie=X[0],de=X[1],pe=vr.useRef({}),le=vr.useRef(null),_e=vr.useRef(null),we=wt(_e,r),ge=FHe(o),Se=function(){return cn(le.current)},me=function(){return pe.current.modalRef=_e.current,pe.current.mountNode=le.current,pe.current},be=function(){Z.mount(me(),{disableScrollLock:k}),_e.current.scrollTop=0},Me=Bn(function(){var ue=MHe(p)||Se().body;Z.add(me(),ue),_e.current&&be()}),ve=vr.useCallback(function(){return Z.isTopModal(me())},[Z]),gt=Bn(function(ue){le.current=ue,ue&&(j&&j(),V&&ve()?be():Ym(_e.current,!0))}),qe=vr.useCallback(function(){Z.remove(me())},[Z]);if(vr.useEffect(function(){return function(){qe()}},[qe]),vr.useEffect(function(){V?Me():(!ge||!c)&&qe()},[V,qe,ge,c,Me]),!J&&!V&&(!ge||ie))return null;var nt=function(){de(!1)},Qe=function(){de(!0),c&&qe()},he=function(Be){Be.target===Be.currentTarget&&(G&&G(Be),!g&&Q&&Q(Be,"backdropClick"))},Ue=function(Be){Be.key!=="Escape"||!ve()||(N&&N(Be),b||(Be.stopPropagation(),Q&&Q(Be,"escapeKeyDown")))},Ie=jHe(n||{zIndex:CC}),Fe={};return u.props.tabIndex===void 0&&(Fe.tabIndex=u.props.tabIndex||"-1"),ge&&(Fe.onEnter=Vs(nt,u.props.onEnter),Fe.onExited=Vs(Qe,u.props.onExited)),vr.createElement(A_,{ref:gt,container:p,disablePortal:w},vr.createElement("div",L({ref:we,onKeyDown:Ue,role:"presentation"},Y,{style:L({},Ie.root,!V&&ie?Ie.hidden:{},Y.style)}),F?null:vr.createElement(i,L({open:V,onClick:he},s)),vr.createElement(Gj,{disableEnforceFocus:h,disableAutoFocus:f,disableRestoreFocus:C,getDoc:Se,isEnabled:ve,open:V},vr.cloneElement(u,Fe))))}),Vj=LHe;var ua=q(z());var one=q(Qf());var nne=function(e){return e.scrollTop};function Kj(t,e){var r=t.timeout,n=t.style,o=n===void 0?{}:n;return{duration:o.transitionDuration||typeof r=="number"?r:r[e.mode]||0,delay:o.transitionDelay}}function Yj(t){return"scale(".concat(t,", ").concat(Math.pow(t,2),")")}var BHe={entering:{opacity:1,transform:Yj(1)},entered:{opacity:1,transform:"none"}},ane=ua.forwardRef(function(e,r){var n=e.children,o=e.disableStrictModeCompat,a=o===void 0?!1:o,i=e.in,s=e.onEnter,u=e.onEntered,l=e.onEntering,c=e.onExit,p=e.onExited,d=e.onExiting,f=e.style,m=e.timeout,g=m===void 0?"auto":m,v=e.TransitionComponent,h=v===void 0?one.Transition:v,y=ce(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=ua.useRef(),E=ua.useRef(),w=Ws(),S=w.unstable_strictMode&&!a,C=ua.useRef(null),P=wt(n.ref,r),k=wt(S?C:void 0,P),O=function(j){return function(V,Y){if(j){var X=S?[C.current,V]:[V,Y],ie=bl(X,2),de=ie[0],pe=ie[1];pe===void 0?j(de):j(de,pe)}}},F=O(l),U=O(function(N,j){nne(N);var V=Kj({style:f,timeout:g},{mode:"enter"}),Y=V.duration,X=V.delay,ie;g==="auto"?(ie=w.transitions.getAutoHeightDuration(N.clientHeight),E.current=ie):ie=Y,N.style.transition=[w.transitions.create("opacity",{duration:ie,delay:X}),w.transitions.create("transform",{duration:ie*.666,delay:X})].join(","),s&&s(N,j)}),J=O(u),K=O(d),Z=O(function(N){var j=Kj({style:f,timeout:g},{mode:"exit"}),V=j.duration,Y=j.delay,X;g==="auto"?(X=w.transitions.getAutoHeightDuration(N.clientHeight),E.current=X):X=V,N.style.transition=[w.transitions.create("opacity",{duration:X,delay:Y}),w.transitions.create("transform",{duration:X*.666,delay:Y||X*.333})].join(","),N.style.opacity="0",N.style.transform=Yj(.75),c&&c(N)}),G=O(p),Q=function(j,V){var Y=S?j:V;g==="auto"&&(b.current=setTimeout(Y,E.current||0))};return ua.useEffect(function(){return function(){clearTimeout(b.current)}},[]),ua.createElement(h,L({appear:!0,in:i,nodeRef:S?C:void 0,onEnter:U,onEntered:J,onEntering:F,onExit:Z,onExited:G,onExiting:K,addEndListener:Q,timeout:g==="auto"?null:g},y),function(N,j){return ua.cloneElement(n,L({style:L({opacity:0,transform:Yj(.75),visibility:N==="exited"&&!i?"hidden":void 0},BHe[N],f,n.props.style),ref:k},j))})});ane.muiSupportAuto=!0;var Jj=ane;var rI=q(z());var ine=q(Le());var UHe=function(e){var r={};return e.shadows.forEach(function(n,o){r["elevation".concat(o)]={boxShadow:n}}),L({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},r)},zHe=rI.forwardRef(function(e,r){var n=e.classes,o=e.className,a=e.component,i=a===void 0?"div":a,s=e.square,u=s===void 0?!1:s,l=e.elevation,c=l===void 0?1:l,p=e.variant,d=p===void 0?"elevation":p,f=ce(e,["classes","className","component","square","elevation","variant"]);return rI.createElement(i,L({className:(0,ine.default)(n.root,o,d==="outlined"?n.outlined:n["elevation".concat(c)],!u&&n.rounded),ref:r},f))}),Xj=Ae(UHe,{name:"MuiPaper"})(zHe);function sne(t,e){var r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function une(t,e){var r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function lne(t){return[t.horizontal,t.vertical].map(function(e){return typeof e=="number"?"".concat(e,"px"):e}).join(" ")}function WHe(t,e){for(var r=e,n=0;r&&r!==t;)r=r.parentElement,n+=r.scrollTop;return n}function Zj(t){return typeof t=="function"?t():t}var $He={root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},HHe=Ir.forwardRef(function(e,r){var n=e.action,o=e.anchorEl,a=e.anchorOrigin,i=a===void 0?{vertical:"top",horizontal:"left"}:a,s=e.anchorPosition,u=e.anchorReference,l=u===void 0?"anchorEl":u,c=e.children,p=e.classes,d=e.className,f=e.container,m=e.elevation,g=m===void 0?8:m,v=e.getContentAnchorEl,h=e.marginThreshold,y=h===void 0?16:h,b=e.onEnter,E=e.onEntered,w=e.onEntering,S=e.onExit,C=e.onExited,P=e.onExiting,k=e.open,O=e.PaperProps,F=O===void 0?{}:O,U=e.transformOrigin,J=U===void 0?{vertical:"top",horizontal:"left"}:U,K=e.TransitionComponent,Z=K===void 0?Jj:K,G=e.transitionDuration,Q=G===void 0?"auto":G,N=e.TransitionProps,j=N===void 0?{}:N,V=ce(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),Y=Ir.useRef(),X=Ir.useCallback(function(me){if(l==="anchorPosition")return s;var be=Zj(o),Me=be&&be.nodeType===1?be:cn(Y.current).body,ve=Me.getBoundingClientRect();if(0)var gt;var qe=me===0?i.vertical:"center";return{top:ve.top+sne(ve,qe),left:ve.left+une(ve,i.horizontal)}},[o,i.horizontal,i.vertical,s,l]),ie=Ir.useCallback(function(me){var be=0;if(v&&l==="anchorEl"){var Me=v(me);if(Me&&me.contains(Me)){var ve=WHe(me,Me);be=Me.offsetTop+Me.clientHeight/2-ve||0}}return be},[i.vertical,l,v]),de=Ir.useCallback(function(me){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return{vertical:sne(me,J.vertical)+be,horizontal:une(me,J.horizontal)}},[J.horizontal,J.vertical]),pe=Ir.useCallback(function(me){var be=ie(me),Me={width:me.offsetWidth,height:me.offsetHeight},ve=de(Me,be);if(l==="none")return{top:null,left:null,transformOrigin:lne(ve)};var gt=X(be),qe=gt.top-ve.vertical,nt=gt.left-ve.horizontal,Qe=qe+Me.height,he=nt+Me.width,Ue=fd(Zj(o)),Ie=Ue.innerHeight-y,Fe=Ue.innerWidth-y;if(qeIe){var Be=Qe-Ie;qe-=Be,ve.vertical+=Be}if(ntFe){var ur=he-Fe;nt-=ur,ve.horizontal+=ur}return{top:"".concat(Math.round(qe),"px"),left:"".concat(Math.round(nt),"px"),transformOrigin:lne(ve)}},[o,l,X,ie,de,y]),le=Ir.useCallback(function(){var me=Y.current;if(me){var be=pe(me);be.top!==null&&(me.style.top=be.top),be.left!==null&&(me.style.left=be.left),me.style.transformOrigin=be.transformOrigin}},[pe]),_e=function(be,Me){w&&w(be,Me),le()},we=Ir.useCallback(function(me){Y.current=cne.findDOMNode(me)},[]);Ir.useEffect(function(){k&&le()}),Ir.useImperativeHandle(n,function(){return k?{updatePosition:function(){le()}}:null},[k,le]),Ir.useEffect(function(){if(k){var me=Ri(function(){le()});return window.addEventListener("resize",me),function(){me.clear(),window.removeEventListener("resize",me)}}},[k,le]);var ge=Q;Q==="auto"&&!Z.muiSupportAuto&&(ge=void 0);var Se=f||(o?cn(Zj(o)).body:void 0);return Ir.createElement(Vj,L({container:Se,open:k,ref:r,BackdropProps:{invisible:!0},className:(0,Qj.default)(p.root,d)},V),Ir.createElement(Z,L({appear:!0,in:k,onEnter:b,onEntered:E,onExit:S,onExited:C,onExiting:P,timeout:ge},j,{onEntering:Vs(_e,j.onEntering)}),Ir.createElement(Xj,L({elevation:g,ref:we},F,{className:(0,Qj.default)(p.paper,F.className)}),c)))}),eL=Ae($He,{name:"MuiPopover"})(HHe);var yr=q(z()),wpt=q(Sp());var mne=q(jr());var Ed=q(z());var pne=q(Le());var dne=q(z()),GHe=dne.createContext({}),Jm=GHe;var VHe={root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},KHe=Ed.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.className,i=e.component,s=i===void 0?"ul":i,u=e.dense,l=u===void 0?!1:u,c=e.disablePadding,p=c===void 0?!1:c,d=e.subheader,f=ce(e,["children","classes","className","component","dense","disablePadding","subheader"]),m=Ed.useMemo(function(){return{dense:l}},[l]);return Ed.createElement(Jm.Provider,{value:m},Ed.createElement(s,L({className:(0,pne.default)(o.root,a,l&&o.dense,!p&&o.padding,d&&o.subheader),ref:r},f),d,n))}),tL=Ae(VHe,{name:"MuiList"})(KHe);function rL(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function fne(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function hne(t,e){if(e===void 0)return!0;var r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.indexOf(e.keys.join(""))===0}function F_(t,e,r,n,o,a){for(var i=!1,s=o(t,e,e?r:!1);s;){if(s===t.firstChild){if(i)return;i=!0}var u=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!hne(s,a)||u)s=o(t,s,r);else{s.focus();return}}}var YHe=typeof window=="undefined"?yr.useEffect:yr.useLayoutEffect,JHe=yr.forwardRef(function(e,r){var n=e.actions,o=e.autoFocus,a=o===void 0?!1:o,i=e.autoFocusItem,s=i===void 0?!1:i,u=e.children,l=e.className,c=e.disabledItemsFocusable,p=c===void 0?!1:c,d=e.disableListWrap,f=d===void 0?!1:d,m=e.onKeyDown,g=e.variant,v=g===void 0?"selectedMenu":g,h=ce(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),y=yr.useRef(null),b=yr.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});YHe(function(){a&&y.current.focus()},[a]),yr.useImperativeHandle(n,function(){return{adjustStyleForScrollbar:function(O,F){var U=!y.current.style.width;if(O.clientHeight0&&(G-K.lastTime>500?(K.keys=[],K.repeating=!0,K.previousKeyMatched=!0):K.repeating&&Z!==K.keys[0]&&(K.repeating=!1)),K.lastTime=G,K.keys.push(Z);var Q=J&&!K.repeating&&hne(J,K);K.previousKeyMatched&&(Q||F_(F,J,!1,p,rL,K))?O.preventDefault():K.previousKeyMatched=!1}m&&m(O)},w=yr.useCallback(function(k){y.current=mne.findDOMNode(k)},[]),S=wt(w,r),C=-1;yr.Children.forEach(u,function(k,O){yr.isValidElement(k)&&(k.props.disabled||(v==="selectedMenu"&&k.props.selected||C===-1)&&(C=O))});var P=yr.Children.map(u,function(k,O){if(O===C){var F={};return s&&(F.autoFocus=!0),k.props.tabIndex===void 0&&v==="selectedMenu"&&(F.tabIndex=0),yr.cloneElement(k,F)}return k});return yr.createElement(tL,L({role:"menu",ref:S,className:l,onKeyDown:E,tabIndex:a?0:-1},h),P)}),nL=JHe;var _ne=q(jr());var gne={vertical:"top",horizontal:"right"},vne={vertical:"top",horizontal:"left"},XHe={paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},ZHe=Un.forwardRef(function(e,r){var n=e.autoFocus,o=n===void 0?!0:n,a=e.children,i=e.classes,s=e.disableAutoFocusItem,u=s===void 0?!1:s,l=e.MenuListProps,c=l===void 0?{}:l,p=e.onClose,d=e.onEntering,f=e.open,m=e.PaperProps,g=m===void 0?{}:m,v=e.PopoverClasses,h=e.transitionDuration,y=h===void 0?"auto":h,b=e.TransitionProps;b=b===void 0?{}:b;var E=b.onEntering,w=ce(b,["onEntering"]),S=e.variant,C=S===void 0?"selectedMenu":S,P=ce(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),k=Ws(),O=o&&!u&&f,F=Un.useRef(null),U=Un.useRef(null),J=function(){return U.current},K=function(j,V){F.current&&F.current.adjustStyleForScrollbar(j,k),d&&d(j,V),E&&E(j,V)},Z=function(j){j.key==="Tab"&&(j.preventDefault(),p&&p(j,"tabKeyDown"))},G=-1;Un.Children.map(a,function(N,j){Un.isValidElement(N)&&(N.props.disabled||(C!=="menu"&&N.props.selected||G===-1)&&(G=j))});var Q=Un.Children.map(a,function(N,j){return j===G?Un.cloneElement(N,{ref:function(Y){U.current=_ne.findDOMNode(Y),Fa(N.ref,Y)}}):N});return Un.createElement(eL,L({getContentAnchorEl:J,classes:v,onClose:p,TransitionProps:L({onEntering:K},w),anchorOrigin:k.direction==="rtl"?gne:vne,transformOrigin:k.direction==="rtl"?gne:vne,PaperProps:L({},g,{classes:L({},g.classes,{root:i.paper})}),open:f,ref:r,transitionDuration:y},P),Un.createElement(nL,L({onKeyDown:Z,actions:F,autoFocus:o&&(G===-1||u),autoFocusItem:O,variant:C},c,{className:(0,yne.default)(i.list,c.className)}),Q))}),bne=Ae(XHe,{name:"MuiMenu"})(ZHe);var Td=q(z());function oL(t){var e=t.controlled,r=t.default,n=t.name,o=t.state,a=o===void 0?"value":o,i=Td.useRef(e!==void 0),s=i.current,u=Td.useState(r),l=u[0],c=u[1],p=s?e:l;if(0)var d,f;var m=Td.useCallback(function(g){s||c(g)},[]);return[p,m]}function Sne(t,e){return Bs(e)==="object"&&e!==null?t===e:String(t)===String(e)}function QHe(t){return t==null||typeof t=="string"&&!t.trim()}var e8e=Dt.forwardRef(function(e,r){var n=e["aria-label"],o=e.autoFocus,a=e.autoWidth,i=e.children,s=e.classes,u=e.className,l=e.defaultValue,c=e.disabled,p=e.displayEmpty,d=e.IconComponent,f=e.inputRef,m=e.labelId,g=e.MenuProps,v=g===void 0?{}:g,h=e.multiple,y=e.name,b=e.onBlur,E=e.onChange,w=e.onClose,S=e.onFocus,C=e.onOpen,P=e.open,k=e.readOnly,O=e.renderValue,F=e.SelectDisplayProps,U=F===void 0?{}:F,J=e.tabIndex,K=e.type,Z=e.value,G=e.variant,Q=G===void 0?"standard":G,N=ce(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),j=oL({controlled:Z,default:l,name:"Select"}),V=bl(j,2),Y=V[0],X=V[1],ie=Dt.useRef(null),de=Dt.useState(null),pe=de[0],le=de[1],_e=Dt.useRef(P!=null),we=_e.current,ge=Dt.useState(),Se=ge[0],me=ge[1],be=Dt.useState(!1),Me=be[0],ve=be[1],gt=wt(r,f);Dt.useImperativeHandle(gt,function(){return{focus:function(){pe.focus()},node:ie.current,value:Y}},[pe,Y]),Dt.useEffect(function(){o&&pe&&pe.focus()},[o,pe]),Dt.useEffect(function(){if(pe){var Je=cn(pe).getElementById(m);if(Je){var Pe=function(){getSelection().isCollapsed&&pe.focus()};return Je.addEventListener("click",Pe),function(){Je.removeEventListener("click",Pe)}}}},[m,pe]);var qe=function(Pe,ye){Pe?C&&C(ye):w&&w(ye),we||(me(a?null:pe.clientWidth),ve(Pe))},nt=function(Pe){Pe.button===0&&(Pe.preventDefault(),pe.focus(),qe(!0,Pe))},Qe=function(Pe){qe(!1,Pe)},he=Dt.Children.toArray(i),Ue=function(Pe){var ye=he.map(function(Re){return Re.props.value}).indexOf(Pe.target.value);if(ye!==-1){var H=he[ye];X(H.props.value),E&&E(Pe,H)}},Ie=function(Pe){return function(ye){h||qe(!1,ye);var H;if(h){H=Array.isArray(Y)?Y.slice():[];var Re=Y.indexOf(Pe.props.value);Re===-1?H.push(Pe.props.value):H.splice(Re,1)}else H=Pe.props.value;Pe.props.onClick&&Pe.props.onClick(ye),Y!==H&&(X(H),E&&(ye.persist(),Object.defineProperty(ye,"target",{writable:!0,value:{value:H,name:y}}),E(ye,Pe)))}},Fe=function(Pe){if(!k){var ye=[" ","ArrowUp","ArrowDown","Enter"];ye.indexOf(Pe.key)!==-1&&(Pe.preventDefault(),qe(!0,Pe))}},ue=pe!==null&&(we?P:Me),Be=function(Pe){!ue&&b&&(Pe.persist(),Object.defineProperty(Pe,"target",{writable:!0,value:{value:Y,name:y}}),b(Pe))};delete N["aria-invalid"];var kt,ur,dt=[],Xe=!1,it=!1;(Km({value:Y})||p)&&(O?kt=O(Y):Xe=!0);var kr=he.map(function(Je){if(!Dt.isValidElement(Je))return null;var Pe;if(h){if(!Array.isArray(Y))throw new Error((0,Ene.formatMuiErrorMessage)(2));Pe=Y.some(function(ye){return Sne(ye,Je.props.value)}),Pe&&Xe&&dt.push(Je.props.children)}else Pe=Sne(Y,Je.props.value),Pe&&Xe&&(ur=Je.props.children);return Pe&&(it=!0),Dt.cloneElement(Je,{"aria-selected":Pe?"true":void 0,onClick:Ie(Je),onKeyUp:function(H){H.key===" "&&H.preventDefault(),Je.props.onKeyUp&&Je.props.onKeyUp(H)},role:"option",selected:Pe,value:void 0,"data-value":Je.props.value})});Xe&&(kt=h?dt.join(", "):ur);var Yt=Se;!a&&we&&pe&&(Yt=pe.clientWidth);var et;typeof J!="undefined"?et=J:et=c?null:0;var Pt=U.id||(y?"mui-component-select-".concat(y):void 0);return Dt.createElement(Dt.Fragment,null,Dt.createElement("div",L({className:(0,aL.default)(s.root,s.select,s.selectMenu,s[Q],u,c&&s.disabled),ref:le,tabIndex:et,role:"button","aria-disabled":c?"true":void 0,"aria-expanded":ue?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[m,Pt].filter(Boolean).join(" ")||void 0,onKeyDown:Fe,onMouseDown:c||k?null:nt,onBlur:Be,onFocus:S},U,{id:Pt}),QHe(kt)?Dt.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):kt),Dt.createElement("input",L({value:Array.isArray(Y)?Y.join(","):Y,name:y,ref:ie,"aria-hidden":!0,onChange:Ue,tabIndex:-1,className:s.nativeInput,autoFocus:o},N)),Dt.createElement(d,{className:(0,aL.default)(s.icon,s["icon".concat(It(Q))],ue&&s.iconOpen,c&&s.disabled)}),Dt.createElement(bne,L({id:"menu-".concat(y||""),anchorEl:pe,open:ue,onClose:Qe},v,{MenuListProps:L({"aria-labelledby":m,role:"listbox",disableListWrap:!0},v.MenuListProps),PaperProps:L({},v.PaperProps,{style:L({minWidth:Yt},v.PaperProps!=null?v.PaperProps.style:null)})}),kr))}),Tne=e8e;var wne=q(z());var nI=zs(wne.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var Xm=q(z());var Sl=q(z());var iL=q(Le());var t8e=Sl.forwardRef(function(e,r){var n=e.classes,o=e.className,a=e.disabled,i=e.IconComponent,s=e.inputRef,u=e.variant,l=u===void 0?"standard":u,c=ce(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return Sl.createElement(Sl.Fragment,null,Sl.createElement("select",L({className:(0,iL.default)(n.root,n.select,n[l],o,a&&n.disabled),disabled:a,ref:s||r},c)),e.multiple?null:Sl.createElement(i,{className:(0,iL.default)(n.icon,n["icon".concat(It(l))],a&&n.disabled)}))}),oI=t8e;var sL=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:e.palette.type==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},r8e=Xm.createElement(_d,null),xne=Xm.forwardRef(function(e,r){var n=e.children,o=e.classes,a=e.IconComponent,i=a===void 0?nI:a,s=e.input,u=s===void 0?r8e:s,l=e.inputProps,c=e.variant,p=ce(e,["children","classes","IconComponent","input","inputProps","variant"]),d=qa(),f=Ro({props:e,muiFormControl:d,states:["variant"]});return Xm.cloneElement(u,L({inputComponent:oI,inputProps:L({children:n,classes:o,IconComponent:i,variant:f.variant,type:void 0},l,u?u.props.inputProps:{}),ref:r},p))});xne.muiName="Select";var vft=Ae(sL,{name:"MuiNativeSelect"})(xne);var n8e=sL,o8e=El.createElement(_d,null),a8e=El.createElement(O_,null),Ine=El.forwardRef(function t(e,r){var n=e.autoWidth,o=n===void 0?!1:n,a=e.children,i=e.classes,s=e.displayEmpty,u=s===void 0?!1:s,l=e.IconComponent,c=l===void 0?nI:l,p=e.id,d=e.input,f=e.inputProps,m=e.label,g=e.labelId,v=e.labelWidth,h=v===void 0?0:v,y=e.MenuProps,b=e.multiple,E=b===void 0?!1:b,w=e.native,S=w===void 0?!1:w,C=e.onClose,P=e.onOpen,k=e.open,O=e.renderValue,F=e.SelectDisplayProps,U=e.variant,J=U===void 0?"standard":U,K=ce(e,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),Z=S?oI:Tne,G=qa(),Q=Ro({props:e,muiFormControl:G,states:["variant"]}),N=Q.variant||J,j=d||{standard:o8e,outlined:El.createElement(D_,{label:m,labelWidth:h}),filled:a8e}[N];return El.cloneElement(j,L({inputComponent:Z,inputProps:L({children:a,IconComponent:c,variant:N,type:void 0,multiple:E},S?{id:p}:{autoWidth:o,displayEmpty:u,labelId:g,MenuProps:y,onClose:C,onOpen:P,open:k,renderValue:O,SelectDisplayProps:L({id:p},F)},f,{classes:f?(0,Cne.mergeClasses)({baseClasses:i,newClasses:f.classes,Component:t}):i},d?d.props.inputProps:{}),ref:r},K))});Ine.muiName="Select";var q_=Ae(n8e,{name:"MuiSelect"})(Ine);var i8e={standard:_d,filled:O_,outlined:D_},s8e={root:{}},u8e=La.forwardRef(function(e,r){var n=e.autoComplete,o=e.autoFocus,a=o===void 0?!1:o,i=e.children,s=e.classes,u=e.className,l=e.color,c=l===void 0?"primary":l,p=e.defaultValue,d=e.disabled,f=d===void 0?!1:d,m=e.error,g=m===void 0?!1:m,v=e.FormHelperTextProps,h=e.fullWidth,y=h===void 0?!1:h,b=e.helperText,E=e.hiddenLabel,w=e.id,S=e.InputLabelProps,C=e.inputProps,P=e.InputProps,k=e.inputRef,O=e.label,F=e.multiline,U=F===void 0?!1:F,J=e.name,K=e.onBlur,Z=e.onChange,G=e.onFocus,Q=e.placeholder,N=e.required,j=N===void 0?!1:N,V=e.rows,Y=e.rowsMax,X=e.maxRows,ie=e.minRows,de=e.select,pe=de===void 0?!1:de,le=e.SelectProps,_e=e.type,we=e.value,ge=e.variant,Se=ge===void 0?"standard":ge,me=ce(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]),be={};if(Se==="outlined"&&(S&&typeof S.shrink!="undefined"&&(be.notched=S.shrink),O)){var Me,ve=(Me=S==null?void 0:S.required)!==null&&Me!==void 0?Me:j;be.label=La.createElement(La.Fragment,null,O,ve&&"\xA0*")}pe&&((!le||!le.native)&&(be.id=void 0),be["aria-describedby"]=void 0);var gt=b&&w?"".concat(w,"-helper-text"):void 0,qe=O&&w?"".concat(w,"-label"):void 0,nt=i8e[Se],Qe=La.createElement(nt,L({"aria-describedby":gt,autoComplete:n,autoFocus:a,defaultValue:p,fullWidth:y,multiline:U,name:J,rows:V,rowsMax:Y,maxRows:X,minRows:ie,type:_e,value:we,id:w,inputRef:k,onBlur:K,onChange:Z,onFocus:G,placeholder:Q,inputProps:C},be,P));return La.createElement(Wj,L({className:(0,kne.default)(s.root,u),disabled:f,error:g,fullWidth:y,hiddenLabel:E,ref:r,required:j,color:c,variant:Se},me),O&&La.createElement(bd,L({htmlFor:w,id:qe},S),O),pe?La.createElement(q_,L({"aria-describedby":gt,id:w,labelId:qe,value:we,input:Qe},le),i):Qe,b&&La.createElement(ja,L({id:gt},v),b))}),aI=Ae(s8e,{name:"MuiTextField"})(u8e);var sr=q(z());var xd=q(Le()),coe=q(Up());var Qt=q(z());var j_=typeof window!="undefined"&&typeof document!="undefined"&&typeof navigator!="undefined",l8e=function(){for(var t=["Edge","Trident","Firefox"],e=0;e=0)return 1;return 0}();function c8e(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function d8e(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},l8e))}}var p8e=j_&&window.Promise,f8e=p8e?c8e:d8e;function Ane(t){var e={};return t&&e.toString.call(t)==="[object Function]"}function wd(t,e){if(t.nodeType!==1)return[];var r=t.ownerDocument.defaultView,n=r.getComputedStyle(t,null);return e?n[e]:n}function fL(t){return t.nodeName==="HTML"?t:t.parentNode||t.host}function L_(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=wd(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(r+o+n)?t:L_(fL(t))}function Mne(t){return t&&t.referenceNode?t.referenceNode:t}var Pne=j_&&!!(window.MSInputMethodContext&&document.documentMode),One=j_&&/MSIE 10/.test(navigator.userAgent);function th(t){return t===11?Pne:t===10?One:Pne||One}function Zm(t){if(!t)return document.documentElement;for(var e=th(10)?document.body:null,r=t.offsetParent||null;r===e&&t.nextElementSibling;)r=(t=t.nextElementSibling).offsetParent;var n=r&&r.nodeName;return!n||n==="BODY"||n==="HTML"?t?t.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&wd(r,"position")==="static"?Zm(r):r}function m8e(t){var e=t.nodeName;return e==="BODY"?!1:e==="HTML"||Zm(t.firstElementChild)===t}function cL(t){return t.parentNode!==null?cL(t.parentNode):t}function iI(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var r=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?t:e,o=r?e:t,a=document.createRange();a.setStart(n,0),a.setEnd(o,0);var i=a.commonAncestorContainer;if(t!==i&&e!==i||n.contains(o))return m8e(i)?i:Zm(i);var s=cL(t);return s.host?iI(s.host,e):iI(t,cL(e).host)}function Qm(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",r=e==="top"?"scrollTop":"scrollLeft",n=t.nodeName;if(n==="BODY"||n==="HTML"){var o=t.ownerDocument.documentElement,a=t.ownerDocument.scrollingElement||o;return a[r]}return t[r]}function h8e(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Qm(e,"top"),o=Qm(e,"left"),a=r?-1:1;return t.top+=n*a,t.bottom+=n*a,t.left+=o*a,t.right+=o*a,t}function Rne(t,e){var r=e==="x"?"Left":"Top",n=r==="Left"?"Right":"Bottom";return parseFloat(t["border"+r+"Width"])+parseFloat(t["border"+n+"Width"])}function Dne(t,e,r,n){return Math.max(e["offset"+t],e["scroll"+t],r["client"+t],r["offset"+t],r["scroll"+t],th(10)?parseInt(r["offset"+t])+parseInt(n["margin"+(t==="Height"?"Top":"Left")])+parseInt(n["margin"+(t==="Height"?"Bottom":"Right")]):0)}function Fne(t){var e=t.body,r=t.documentElement,n=th(10)&&getComputedStyle(r);return{height:Dne("Height",e,r,n),width:Dne("Width",e,r,n)}}var g8e=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},v8e=function(){function t(e,r){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:!1,n=th(10),o=e.nodeName==="HTML",a=dL(t),i=dL(e),s=L_(t),u=wd(e),l=parseFloat(u.borderTopWidth),c=parseFloat(u.borderLeftWidth);r&&o&&(i.top=Math.max(i.top,0),i.left=Math.max(i.left,0));var p=Tl({top:a.top-i.top-l,left:a.left-i.left-c,width:a.width,height:a.height});if(p.marginTop=0,p.marginLeft=0,!n&&o){var d=parseFloat(u.marginTop),f=parseFloat(u.marginLeft);p.top-=l-d,p.bottom-=l-d,p.left-=c-f,p.right-=c-f,p.marginTop=d,p.marginLeft=f}return(n&&!r?e.contains(s):e===s&&s.nodeName!=="BODY")&&(p=h8e(p,e)),p}function y8e(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=t.ownerDocument.documentElement,n=mL(t,r),o=Math.max(r.clientWidth,window.innerWidth||0),a=Math.max(r.clientHeight,window.innerHeight||0),i=e?0:Qm(r),s=e?0:Qm(r,"left"),u={top:i-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:o,height:a};return Tl(u)}function qne(t){var e=t.nodeName;if(e==="BODY"||e==="HTML")return!1;if(wd(t,"position")==="fixed")return!0;var r=fL(t);return r?qne(r):!1}function jne(t){if(!t||!t.parentElement||th())return document.documentElement;for(var e=t.parentElement;e&&wd(e,"transform")==="none";)e=e.parentElement;return e||document.documentElement}function hL(t,e,r,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},i=o?jne(t):iI(t,Mne(e));if(n==="viewport")a=y8e(i,o);else{var s=void 0;n==="scrollParent"?(s=L_(fL(e)),s.nodeName==="BODY"&&(s=t.ownerDocument.documentElement)):n==="window"?s=t.ownerDocument.documentElement:s=n;var u=mL(s,i,o);if(s.nodeName==="HTML"&&!qne(i)){var l=Fne(t.ownerDocument),c=l.height,p=l.width;a.top+=u.top-u.marginTop,a.bottom=c+u.top,a.left+=u.left-u.marginLeft,a.right=p+u.left}else a=u}r=r||0;var d=typeof r=="number";return a.left+=d?r:r.left||0,a.top+=d?r:r.top||0,a.right-=d?r:r.right||0,a.bottom-=d?r:r.bottom||0,a}function _8e(t){var e=t.width,r=t.height;return e*r}function Lne(t,e,r,n,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(t.indexOf("auto")===-1)return t;var i=hL(r,n,a,o),s={top:{width:i.width,height:e.top-i.top},right:{width:i.right-e.right,height:i.height},bottom:{width:i.width,height:i.bottom-e.bottom},left:{width:e.left-i.left,height:i.height}},u=Object.keys(s).map(function(d){return la({key:d},s[d],{area:_8e(s[d])})}).sort(function(d,f){return f.area-d.area}),l=u.filter(function(d){var f=d.width,m=d.height;return f>=r.clientWidth&&m>=r.clientHeight}),c=l.length>0?l[0].key:u[0].key,p=t.split("-")[1];return c+(p?"-"+p:"")}function Bne(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,o=n?jne(e):iI(e,Mne(r));return mL(r,o,n)}function Une(t){var e=t.ownerDocument.defaultView,r=e.getComputedStyle(t),n=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),o=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),a={width:t.offsetWidth+o,height:t.offsetHeight+n};return a}function sI(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(r){return e[r]})}function zne(t,e,r){r=r.split("-")[0];var n=Une(t),o={width:n.width,height:n.height},a=["right","left"].indexOf(r)!==-1,i=a?"top":"left",s=a?"left":"top",u=a?"height":"width",l=a?"width":"height";return o[i]=e[i]+e[u]/2-n[u]/2,r===s?o[s]=e[s]-n[l]:o[s]=e[sI(s)],o}function B_(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function b8e(t,e,r){if(Array.prototype.findIndex)return t.findIndex(function(o){return o[e]===r});var n=B_(t,function(o){return o[e]===r});return t.indexOf(n)}function Wne(t,e,r){var n=r===void 0?t:t.slice(0,b8e(t,"name",r));return n.forEach(function(o){o.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var a=o.function||o.fn;o.enabled&&Ane(a)&&(e.offsets.popper=Tl(e.offsets.popper),e.offsets.reference=Tl(e.offsets.reference),e=a(e,o))}),e}function S8e(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=Bne(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=Lne(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=zne(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=Wne(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function $ne(t,e){return t.some(function(r){var n=r.name,o=r.enabled;return o&&n===e})}function gL(t){for(var e=[!1,"ms","Webkit","Moz","O"],r=t.charAt(0).toUpperCase()+t.slice(1),n=0;ni[f]&&(t.offsets.popper[p]+=s[p]+m-i[f]),t.offsets.popper=Tl(t.offsets.popper);var g=s[p]+s[l]/2-m/2,v=wd(t.instance.popper),h=parseFloat(v["margin"+c]),y=parseFloat(v["border"+c+"Width"]),b=g-t.offsets.popper[p]-h-y;return b=Math.max(Math.min(i[l]-m,b),0),t.arrowElement=n,t.offsets.arrow=(r={},eh(r,p,Math.round(b)),eh(r,d,""),r),t}function A8e(t){return t==="end"?"start":t==="start"?"end":t}var Kne=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],uL=Kne.slice(3);function Nne(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=uL.indexOf(t),n=uL.slice(r+1).concat(uL.slice(0,r));return e?n.reverse():n}var lL={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function M8e(t,e){if($ne(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var r=hL(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],o=sI(n),a=t.placement.split("-")[1]||"",i=[];switch(e.behavior){case lL.FLIP:i=[n,o];break;case lL.CLOCKWISE:i=Nne(n);break;case lL.COUNTERCLOCKWISE:i=Nne(n,!0);break;default:i=e.behavior}return i.forEach(function(s,u){if(n!==s||i.length===u+1)return t;n=t.placement.split("-")[0],o=sI(n);var l=t.offsets.popper,c=t.offsets.reference,p=Math.floor,d=n==="left"&&p(l.right)>p(c.left)||n==="right"&&p(l.left)p(c.top)||n==="bottom"&&p(l.top)p(r.right),g=p(l.top)p(r.bottom),h=n==="left"&&f||n==="right"&&m||n==="top"&&g||n==="bottom"&&v,y=["top","bottom"].indexOf(n)!==-1,b=!!e.flipVariations&&(y&&a==="start"&&f||y&&a==="end"&&m||!y&&a==="start"&&g||!y&&a==="end"&&v),E=!!e.flipVariationsByContent&&(y&&a==="start"&&m||y&&a==="end"&&f||!y&&a==="start"&&v||!y&&a==="end"&&g),w=b||E;(d||h||w)&&(t.flipped=!0,(d||h)&&(n=i[u+1]),w&&(a=A8e(a)),t.placement=n+(a?"-"+a:""),t.offsets.popper=la({},t.offsets.popper,zne(t.instance.popper,t.offsets.reference,t.placement)),t=Wne(t.instance.modifiers,t,"flip"))}),t}function F8e(t){var e=t.offsets,r=e.popper,n=e.reference,o=t.placement.split("-")[0],a=Math.floor,i=["top","bottom"].indexOf(o)!==-1,s=i?"right":"bottom",u=i?"left":"top",l=i?"width":"height";return r[s]a(n[s])&&(t.offsets.popper[u]=a(n[s])),t}function q8e(t,e,r,n){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],i=o[2];if(!a)return t;if(i.indexOf("%")===0){var s=void 0;switch(i){case"%p":s=r;break;case"%":case"%r":default:s=n}var u=Tl(s);return u[e]/100*a}else if(i==="vh"||i==="vw"){var l=void 0;return i==="vh"?l=Math.max(document.documentElement.clientHeight,window.innerHeight||0):l=Math.max(document.documentElement.clientWidth,window.innerWidth||0),l/100*a}else return a}function j8e(t,e,r,n){var o=[0,0],a=["right","left"].indexOf(n)!==-1,i=t.split(/(\+|\-)/).map(function(c){return c.trim()}),s=i.indexOf(B_(i,function(c){return c.search(/,|\s/)!==-1}));i[s]&&i[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,l=s!==-1?[i.slice(0,s).concat([i[s].split(u)[0]]),[i[s].split(u)[1]].concat(i.slice(s+1))]:[i];return l=l.map(function(c,p){var d=(p===1?!a:a)?"height":"width",f=!1;return c.reduce(function(m,g){return m[m.length-1]===""&&["+","-"].indexOf(g)!==-1?(m[m.length-1]=g,f=!0,m):f?(m[m.length-1]+=g,f=!1,m):m.concat(g)},[]).map(function(m){return q8e(m,d,e,r)})}),l.forEach(function(c,p){c.forEach(function(d,f){vL(d)&&(o[p]+=d*(c[f-1]==="-"?-1:1))})}),o}function L8e(t,e){var r=e.offset,n=t.placement,o=t.offsets,a=o.popper,i=o.reference,s=n.split("-")[0],u=void 0;return vL(+r)?u=[+r,0]:u=j8e(r,a,i,s),s==="left"?(a.top+=u[0],a.left-=u[1]):s==="right"?(a.top+=u[0],a.left+=u[1]):s==="top"?(a.left+=u[0],a.top-=u[1]):s==="bottom"&&(a.left+=u[0],a.top+=u[1]),t.popper=a,t}function B8e(t,e){var r=e.boundariesElement||Zm(t.instance.popper);t.instance.reference===r&&(r=Zm(r));var n=gL("transform"),o=t.instance.popper.style,a=o.top,i=o.left,s=o[n];o.top="",o.left="",o[n]="";var u=hL(t.instance.popper,t.instance.reference,e.padding,r,t.positionFixed);o.top=a,o.left=i,o[n]=s,e.boundaries=u;var l=e.priority,c=t.offsets.popper,p={primary:function(f){var m=c[f];return c[f]u[f]&&!e.escapeWithReference&&(g=Math.min(c[m],u[f]-(f==="right"?c.width:c.height))),eh({},m,g)}};return l.forEach(function(d){var f=["left","top"].indexOf(d)!==-1?"primary":"secondary";c=la({},c,p[f](d))}),t.offsets.popper=c,t}function U8e(t){var e=t.placement,r=e.split("-")[0],n=e.split("-")[1];if(n){var o=t.offsets,a=o.reference,i=o.popper,s=["bottom","top"].indexOf(r)!==-1,u=s?"left":"top",l=s?"width":"height",c={start:eh({},u,a[u]),end:eh({},u,a[u]+a[l]-i[l])};t.offsets.popper=la({},i,c[n])}return t}function z8e(t){if(!Vne(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,r=B_(t.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(e.bottomr.right||e.top>r.bottom||e.right2&&arguments[2]!==void 0?arguments[2]:{};g8e(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=f8e(this.update.bind(this)),this.options=la({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(la({},t.Defaults.modifiers,o.modifiers)).forEach(function(i){n.options.modifiers[i]=la({},t.Defaults.modifiers[i]||{},o.modifiers?o.modifiers[i]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(i){return la({name:i},n.options.modifiers[i])}).sort(function(i,s){return i.order-s.order}),this.modifiers.forEach(function(i){i.enabled&&Ane(i.onLoad)&&i.onLoad(n.reference,n.popper,n.options,i,n.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return v8e(t,[{key:"update",value:function(){return S8e.call(this)}},{key:"destroy",value:function(){return E8e.call(this)}},{key:"enableEventListeners",value:function(){return w8e.call(this)}},{key:"disableEventListeners",value:function(){return C8e.call(this)}}]),t}();uI.Utils=(typeof window!="undefined"?window:global).PopperUtils;uI.placements=Kne;uI.Defaults=H8e;var Yne=uI;var Xne=q(An());function G8e(t,e){var r=e&&e.direction||"ltr";if(r==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function Jne(t){return typeof t=="function"?t():t}var V8e=typeof window!="undefined"?Qt.useLayoutEffect:Qt.useEffect,K8e={},Y8e=Qt.forwardRef(function(e,r){var n=e.anchorEl,o=e.children,a=e.container,i=e.disablePortal,s=i===void 0?!1:i,u=e.keepMounted,l=u===void 0?!1:u,c=e.modifiers,p=e.open,d=e.placement,f=d===void 0?"bottom":d,m=e.popperOptions,g=m===void 0?K8e:m,v=e.popperRef,h=e.style,y=e.transition,b=y===void 0?!1:y,E=ce(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),w=Qt.useRef(null),S=wt(w,r),C=Qt.useRef(null),P=wt(C,v),k=Qt.useRef(P);V8e(function(){k.current=P},[P]),Qt.useImperativeHandle(v,function(){return C.current},[]);var O=Qt.useState(!0),F=O[0],U=O[1],J=(0,Xne.useTheme)(),K=G8e(f,J),Z=Qt.useState(K),G=Z[0],Q=Z[1];Qt.useEffect(function(){C.current&&C.current.update()});var N=Qt.useCallback(function(){if(!(!w.current||!n||!p)){C.current&&(C.current.destroy(),k.current(null));var de=function(ge){Q(ge.placement)},pe=Jne(n);if(0&&pe&&pe.nodeType===1)var le;var _e=new Yne(Jne(n),w.current,L({placement:K},g,{modifiers:L({},s?{}:{preventOverflow:{boundariesElement:"window"}},c,g.modifiers),onCreate:Vs(de,g.onCreate),onUpdate:Vs(de,g.onUpdate)}));k.current(_e)}},[n,s,c,p,K,g]),j=Qt.useCallback(function(de){Fa(S,de),N()},[S,N]),V=function(){U(!1)},Y=function(){C.current&&(C.current.destroy(),k.current(null))},X=function(){U(!0),Y()};if(Qt.useEffect(function(){return function(){Y()}},[]),Qt.useEffect(function(){!p&&!b&&Y()},[p,b]),!l&&!p&&(!b||F))return null;var ie={placement:G};return b&&(ie.TransitionProps={in:p,onEnter:V,onExited:X}),Qt.createElement(A_,{disablePortal:s,container:a},Qt.createElement("div",L({ref:j,role:"tooltip"},E,{style:L({position:"fixed",top:0,left:0,display:!p&&l&&!b?"none":null},h)}),typeof o=="function"?o(ie):o))}),yL=Y8e;var lI=q(z());var Zne=q(Le());var J8e=function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}},X8e=lI.forwardRef(function(e,r){var n=e.classes,o=e.className,a=e.color,i=a===void 0?"default":a,s=e.component,u=s===void 0?"li":s,l=e.disableGutters,c=l===void 0?!1:l,p=e.disableSticky,d=p===void 0?!1:p,f=e.inset,m=f===void 0?!1:f,g=ce(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return lI.createElement(u,L({className:(0,Zne.default)(n.root,o,i!=="default"&&n["color".concat(It(i))],m&&n.inset,!d&&n.sticky,!c&&n.gutters),ref:r},g))}),_L=Ae(J8e,{name:"MuiListSubheader"})(X8e);var doe=q(Bx()),EL=q(h_());var On=q(z());var wl=q(Le());var Qne=q(z());var eoe=zs(Qne.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");var Z8e=function(e){var r=e.palette.type==="light"?e.palette.grey[300]:e.palette.grey[700],n=sa(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(r),backgroundColor:r,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:e.palette.type==="light"?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:pd(r,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:pd(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:pd(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:pd(r,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:pd(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:pd(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat(e.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:sa(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:sa(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:sa(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:e.palette.type==="light"?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:sa(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:sa(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:sa(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:sa(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:sa(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}};function toe(t){return t.key==="Backspace"||t.key==="Delete"}var Q8e=On.forwardRef(function(e,r){var n=e.avatar,o=e.classes,a=e.className,i=e.clickable,s=e.color,u=s===void 0?"default":s,l=e.component,c=e.deleteIcon,p=e.disabled,d=p===void 0?!1:p,f=e.icon,m=e.label,g=e.onClick,v=e.onDelete,h=e.onKeyDown,y=e.onKeyUp,b=e.size,E=b===void 0?"medium":b,w=e.variant,S=w===void 0?"default":w,C=ce(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),P=On.useRef(null),k=wt(P,r),O=function(X){X.stopPropagation(),v&&v(X)},F=function(X){X.currentTarget===X.target&&toe(X)&&X.preventDefault(),h&&h(X)},U=function(X){X.currentTarget===X.target&&(v&&toe(X)?v(X):X.key==="Escape"&&P.current&&P.current.blur()),y&&y(X)},J=i!==!1&&g?!0:i,K=E==="small",Z=l||(J?Oi:"div"),G=Z===Oi?{component:"div"}:{},Q=null;if(v){var N=(0,wl.default)(u!=="default"&&(S==="default"?o["deleteIconColor".concat(It(u))]:o["deleteIconOutlinedColor".concat(It(u))]),K&&o.deleteIconSmall);Q=c&&On.isValidElement(c)?On.cloneElement(c,{className:(0,wl.default)(c.props.className,o.deleteIcon,N),onClick:O}):On.createElement(eoe,{className:(0,wl.default)(o.deleteIcon,N),onClick:O})}var j=null;n&&On.isValidElement(n)&&(j=On.cloneElement(n,{className:(0,wl.default)(o.avatar,n.props.className,K&&o.avatarSmall,u!=="default"&&o["avatarColor".concat(It(u))])}));var V=null;return f&&On.isValidElement(f)&&(V=On.cloneElement(f,{className:(0,wl.default)(o.icon,f.props.className,K&&o.iconSmall,u!=="default"&&o["iconColor".concat(It(u))])})),On.createElement(Z,L({role:J||v?"button":void 0,className:(0,wl.default)(o.root,a,u!=="default"&&[o["color".concat(It(u))],J&&o["clickableColor".concat(It(u))],v&&o["deletableColor".concat(It(u))]],S!=="default"&&[o.outlined,{primary:o.outlinedPrimary,secondary:o.outlinedSecondary}[u]],d&&o.disabled,K&&o.sizeSmall,J&&o.clickable,v&&o.deletable),"aria-disabled":d?!0:void 0,tabIndex:J||v?0:void 0,onClick:g,onKeyDown:F,onKeyUp:U,ref:k},G,C),j||V,On.createElement("span",{className:(0,wl.default)(o.label,K&&o.labelSmall)},m),Q)}),bL=Ae(Z8e,{name:"MuiChip"})(Q8e);var roe=q(z()),noe=q(m_()),ooe=(0,noe.createSvgIcon)(roe.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var aoe=q(z()),ioe=q(m_()),soe=(0,ioe.createSvgIcon)(aoe.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var dn=q(z()),so=q(m_());function uoe(t){return typeof t.normalize!="undefined"?t.normalize("NFD").replace(/[\u0300-\u036f]/g,""):t}function cI(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.ignoreAccents,r=e===void 0?!0:e,n=t.ignoreCase,o=n===void 0?!0:n,a=t.limit,i=t.matchFrom,s=i===void 0?"any":i,u=t.stringify,l=t.trim,c=l===void 0?!1:l;return function(p,d){var f=d.inputValue,m=d.getOptionLabel,g=c?f.trim():f;o&&(g=g.toLowerCase()),r&&(g=uoe(g));var v=p.filter(function(h){var y=(u||m)(h);return o&&(y=y.toLowerCase()),r&&(y=uoe(y)),s==="start"?y.indexOf(g)===0:y.indexOf(g)>-1});return typeof a=="number"?v.slice(0,a):v}}function SL(t,e){for(var r=0;r0)var tb;var Xs=(0,so.useEventCallback)(function(R){R===-1?dt.current.focus():kr.querySelector('[data-tag-index="'.concat(R,'"]')).focus()});dn.useEffect(function(){Se&&Pt>De.length-1&&(Je(-1),Xs(-1))},[De,Se,Pt,Xs]);function vh(R,I){if(!Xe.current||R===-1)return-1;for(var D=R;;){if(I==="next"&&D===Pr.length||I==="previous"&&D===-1)return-1;var W=Xe.current.querySelector('[data-option-index="'.concat(D,'"]')),oe=P?!1:W&&(W.disabled||W.getAttribute("aria-disabled")==="true");if(W&&!W.hasAttribute("tabindex")||oe)D+=I==="next"?1:-1;else return D}}var pa=(0,so.useEventCallback)(function(R){var I=R.event,D=R.index,W=R.reason,oe=W===void 0?"auto":W;if(ye.current=D,D===-1?dt.current.removeAttribute("aria-activedescendant"):dt.current.setAttribute("aria-activedescendant","".concat(ue,"-option-").concat(D)),Me&&Me(I,D===-1?null:Pr[D],oe),!!Xe.current){var ae=Xe.current.querySelector("[data-focus]");ae&&ae.removeAttribute("data-focus");var ne=Xe.current.parentElement.querySelector('[role="listbox"]');if(ne){if(D===-1){ne.scrollTop=0;return}var Ee=Xe.current.querySelector('[data-option-index="'.concat(D,'"]'));if(Ee&&(Ee.setAttribute("data-focus","true"),ne.scrollHeight>ne.clientHeight&&oe!=="mouse")){var xe=Ee,ze=ne.clientHeight+ne.scrollTop,ot=xe.offsetTop+xe.offsetHeight;ot>ze?ne.scrollTop=ot-ne.clientHeight:xe.offsetTop-xe.offsetHeight*(X?1.3:0)1?0:qt:Hr>qt?Hr===qt+1&&_e?-1:O||Math.abs(D)>1?qt:0:Hr},xe=vh(Ee(),oe);if(pa({index:xe,reason:ne,event:I}),r&&D!=="reset")if(xe===-1)dt.current.value=St;else{var ze=Be(Pr[xe]);dt.current.value=ze;var ot=ze.toLowerCase().indexOf(St.toLowerCase());ot===0&&St.length>0&&dt.current.setSelectionRange(St.length,ze.length)}}}),Fd=dn.useCallback(function(){if(Mr){var R=Se?De[0]:De;if(Pr.length===0||R==null){Wn({diff:"reset"});return}if(Xe.current){if(!K&&R!=null){var I=Pr[ye.current];if(Se&&I&&SL(De,function(W){return Y(I,W)})!==-1)return;var D=SL(Pr,function(W){return Y(W,R)});D===-1?Wn({diff:"reset"}):pa({index:D});return}if(ye.current>=Pr.length-1){pa({index:Pr.length-1});return}pa({index:ye.current})}}},[Pr.length===0,Se?!1:De,K,Wn,pa,Mr,St,Se]),qd=(0,so.useEventCallback)(function(R){(0,so.setRef)(Xe,R),R&&Fd()});dn.useEffect(function(){Fd()},[Fd]);var uo=function(I){zi||(Fl(!0),gt&>(I))},Zs=function(I,D){zi&&(Fl(!1),be&&be(I,D))},Wi=function(I,D,W,oe){De!==D&&(me&&me(I,D,W,oe),Ot(D))},Qs=dn.useRef(!1),Wt=function(I,D){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"select-option",oe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"options",ae=W,ne=D;if(Se){if(ne=Array.isArray(De)?De.slice():[],0)var Ee;var xe=SL(ne,function(ze){return Y(D,ze)});xe===-1?ne.push(D):oe!=="freeSolo"&&(ne.splice(xe,1),ae="remove-option")}Ui(I,ne),Wi(I,ne,ae,{option:D}),S||Zs(I,ae),(u===!0||u==="touch"&&Qs.current||u==="mouse"&&!Qs.current)&&dt.current.blur()};function yh(R,I){if(R===-1)return-1;for(var D=R;;){if(I==="next"&&D===De.length||I==="previous"&&D===-1)return-1;var W=kr.querySelector('[data-tag-index="'.concat(D,'"]'));if(W&&(!W.hasAttribute("tabindex")||W.disabled||W.getAttribute("aria-disabled")==="true"))D+=I==="next"?1:-1;else return D}}var jd=function(I,D){if(Se){Zs(I,"toggleInput");var W=Pt;Pt===-1?St===""&&D==="previous"&&(W=De.length-1):(W+=D==="next"?1:-1,W<0&&(W=0),W===De.length&&(W=-1)),W=yh(W,D),Je(W),Xs(W)}},Ld=function(I){kt.current=!0,zn(""),ve&&ve(I,"","clear"),Wi(I,Se?[]:null,"clear")},Bd=function(I){return function(D){switch(Pt!==-1&&["ArrowLeft","ArrowRight"].indexOf(D.key)===-1&&(Je(-1),Xs(-1)),D.key){case"Home":Mr&&de&&(D.preventDefault(),Wn({diff:"start",direction:"next",reason:"keyboard",event:D}));break;case"End":Mr&&de&&(D.preventDefault(),Wn({diff:"end",direction:"previous",reason:"keyboard",event:D}));break;case"PageUp":D.preventDefault(),Wn({diff:-loe,direction:"previous",reason:"keyboard",event:D}),uo(D);break;case"PageDown":D.preventDefault(),Wn({diff:loe,direction:"next",reason:"keyboard",event:D}),uo(D);break;case"ArrowDown":D.preventDefault(),Wn({diff:1,direction:"next",reason:"keyboard",event:D}),uo(D);break;case"ArrowUp":D.preventDefault(),Wn({diff:-1,direction:"previous",reason:"keyboard",event:D}),uo(D);break;case"ArrowLeft":jd(D,"previous");break;case"ArrowRight":jd(D,"next");break;case"Enter":if(D.which===229)break;if(ye.current!==-1&&Mr){var W=Pr[ye.current],oe=Q?Q(W):!1;if(D.preventDefault(),oe)return;Wt(D,W,"select-option"),r&&dt.current.setSelectionRange(dt.current.value.length,dt.current.value.length)}else G&&St!==""&&Md===!1&&(Se&&D.preventDefault(),Wt(D,St,"create-option","freeSolo"));break;case"Escape":Mr?(D.preventDefault(),D.stopPropagation(),Zs(D,"escape")):d&&(St!==""||Se&&De.length>0)&&(D.preventDefault(),D.stopPropagation(),Ld(D));break;case"Backspace":if(Se&&St===""&&De.length>0){var ae=Pt===-1?De.length-1:Pt,ne=De.slice();ne.splice(ae,1),Wi(D,ne,"remove-option",{option:De[ae]})}break;default:}I.onKeyDown&&I.onKeyDown(D)}},$i=function(I){Al(!0),Qe&&!kt.current&&uo(I)},Ud=function(I){if(Xe.current!==null&&document.activeElement===Xe.current.parentElement){dt.current.focus();return}Al(!1),ur.current=!0,kt.current=!1,!(v&&St!=="")&&(i&&ye.current!==-1&&Mr?Wt(I,Pr[ye.current],"blur"):i&&G&&St!==""?Wt(I,St,"blur","freeSolo"):c&&Ui(I,De),Zs(I,"blur"))},Ua=function(I){var D=I.target.value;St!==D&&(zn(D),ve&&ve(I,D,"input")),D===""?!E&&!Se&&Wi(I,null,"clear"):uo(I)},_h=function(I){pa({event:I,index:Number(I.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},za=function(){Qs.current=!0},ql=function(I){var D=Number(I.currentTarget.getAttribute("data-option-index"));Wt(I,Pr[D],"select-option"),Qs.current=!1},bh=function(I){return function(D){var W=De.slice();W.splice(I,1),Wi(D,W,"remove-option",{option:De[I]})}},Hi=function(I){zi?Zs(I,"toggleInput"):uo(I)},eu=function(I){I.target.getAttribute("id")!==ue&&I.preventDefault()},Sh=function(){dt.current.focus(),Ie&&ur.current&&dt.current.selectionEnd-dt.current.selectionStart===0&&dt.current.select(),ur.current=!1},tu=function(I){(St===""||!zi)&&Hi(I)},T=G&&St.length>0;T=T||(Se?De.length>0:De!==null);var A=Pr;if(X){var x=new Map,M=!1;A=Pr.reduce(function(R,I,D){var W=X(I);return R.length>0&&R[R.length-1].group===W?R[R.length-1].options.push(I):R.push({key:D,index:D,group:W,options:[I]}),R},[])}return{getRootProps:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return L({"aria-owns":Mr?"".concat(ue,"-popup"):null,role:"combobox","aria-expanded":Mr},I,{onKeyDown:Bd(I),onMouseDown:eu,onClick:Sh})},getInputLabelProps:function(){return{id:"".concat(ue,"-label"),htmlFor:ue}},getInputProps:function(){return{id:ue,value:St,onBlur:Ud,onFocus:$i,onChange:Ua,onMouseDown:tu,"aria-activedescendant":Mr?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Mr?"".concat(ue,"-popup"):null,autoComplete:"off",ref:dt,autoCapitalize:"none",spellCheck:"false"}},getClearProps:function(){return{tabIndex:-1,onClick:Ld}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:Hi}},getTagProps:function(I){var D=I.index;return{key:D,"data-tag-index":D,tabIndex:-1,onDelete:bh(D)}},getListboxProps:function(){return{role:"listbox",id:"".concat(ue,"-popup"),"aria-labelledby":"".concat(ue,"-label"),ref:qd,onMouseDown:function(D){D.preventDefault()}}},getOptionProps:function(I){var D=I.index,W=I.option,oe=(Se?De:[De]).some(function(ne){return ne!=null&&Y(W,ne)}),ae=Q?Q(W):!1;return{key:D,tabIndex:-1,role:"option",id:"".concat(ue,"-option-").concat(D),onMouseOver:_h,onClick:ql,onTouchStart:za,"data-option-index":D,"aria-disabled":ae,"aria-selected":oe}},id:ue,inputValue:St,value:De,dirty:T,popupOpen:Mr,focused:Q_||Pt!==-1,anchorEl:kr,setAnchorEl:Yt,focusedTag:Pt,groupedOptions:A}}var t6e=function(e){var r;return{root:{"&$focused $clearIndicatorDirty":{visibility:"visible"},"@media (pointer: fine)":{"&:hover $clearIndicatorDirty":{visibility:"visible"}}},fullWidth:{width:"100%"},focused:{},tag:{margin:3,maxWidth:"calc(100% - 6px)"},tagSizeSmall:{margin:2,maxWidth:"calc(100% - 4px)"},hasPopupIcon:{},hasClearIcon:{},inputRoot:{flexWrap:"wrap","$hasPopupIcon &, $hasClearIcon &":{paddingRight:30},"$hasPopupIcon$hasClearIcon &":{paddingRight:56},"& $input":{width:0,minWidth:30},'&[class*="MuiInput-root"]':{paddingBottom:1,"& $input":{padding:4},"& $input:first-child":{padding:"6px 0"}},'&[class*="MuiInput-root"][class*="MuiInput-marginDense"]':{"& $input":{padding:"4px 4px 5px"},"& $input:first-child":{padding:"3px 0 6px"}},'&[class*="MuiOutlinedInput-root"]':{padding:9,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9.5px 4px"},"& $input:first-child":{paddingLeft:6},"& $endAdornment":{right:9}},'&[class*="MuiOutlinedInput-root"][class*="MuiOutlinedInput-marginDense"]':{padding:6,"& $input":{padding:"4.5px 4px"}},'&[class*="MuiFilledInput-root"]':{paddingTop:19,paddingLeft:8,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9px 4px"},"& $endAdornment":{right:9}},'&[class*="MuiFilledInput-root"][class*="MuiFilledInput-marginDense"]':{paddingBottom:1,"& $input":{padding:"4.5px 4px"}}},input:{flexGrow:1,textOverflow:"ellipsis",opacity:0},inputFocused:{opacity:1},endAdornment:{position:"absolute",right:0,top:"calc(50% - 14px)"},clearIndicator:{marginRight:-2,padding:4,visibility:"hidden"},clearIndicatorDirty:{},popupIndicator:{padding:2,marginRight:-2},popupIndicatorOpen:{transform:"rotate(180deg)"},popper:{zIndex:e.zIndex.modal},popperDisablePortal:{position:"absolute"},paper:L({},e.typography.body1,{overflow:"hidden",margin:"4px 0"}),listbox:{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},loading:{color:e.palette.text.secondary,padding:"14px 16px"},noOptions:{color:e.palette.text.secondary,padding:"14px 16px"},option:(r={minHeight:48,display:"flex",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},or(r,e.breakpoints.up("sm"),{minHeight:"auto"}),or(r,'&[aria-selected="true"]',{backgroundColor:e.palette.action.selected}),or(r,'&[data-focus="true"]',{backgroundColor:e.palette.action.hover}),or(r,"&:active",{backgroundColor:e.palette.action.selected}),or(r,'&[aria-disabled="true"]',{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"}),r),groupLabel:{backgroundColor:e.palette.background.paper,top:-8},groupUl:{padding:0,"& $option":{paddingLeft:24}}}};function r6e(t){var e=t.anchorEl,r=t.open,n=ce(t,["anchorEl","open"]);return sr.createElement("div",n)}var n6e=sr.createElement(ooe,{fontSize:"small"}),o6e=sr.createElement(soe,null),a6e=sr.forwardRef(function(e,r){var n=e.autoComplete,o=n===void 0?!1:n,a=e.autoHighlight,i=a===void 0?!1:a,s=e.autoSelect,u=s===void 0?!1:s,l=e.blurOnSelect,c=l===void 0?!1:l,p=e.ChipProps,d=e.classes,f=e.className,m=e.clearOnBlur,g=m===void 0?!e.freeSolo:m,v=e.clearOnEscape,h=v===void 0?!1:v,y=e.clearText,b=y===void 0?"Clear":y,E=e.closeIcon,w=E===void 0?n6e:E,S=e.closeText,C=S===void 0?"Close":S,P=e.debug,k=P===void 0?!1:P,O=e.defaultValue,F=O===void 0?e.multiple?[]:null:O,U=e.disableClearable,J=U===void 0?!1:U,K=e.disableCloseOnSelect,Z=K===void 0?!1:K,G=e.disabled,Q=G===void 0?!1:G,N=e.disabledItemsFocusable,j=N===void 0?!1:N,V=e.disableListWrap,Y=V===void 0?!1:V,X=e.disablePortal,ie=X===void 0?!1:X,de=e.filterOptions,pe=e.filterSelectedOptions,le=pe===void 0?!1:pe,_e=e.forcePopupIcon,we=_e===void 0?"auto":_e,ge=e.freeSolo,Se=ge===void 0?!1:ge,me=e.fullWidth,be=me===void 0?!1:me,Me=e.getLimitTagsText,ve=Me===void 0?function(xe){return"+".concat(xe)}:Me,gt=e.getOptionDisabled,qe=e.getOptionLabel,nt=qe===void 0?function(xe){return xe}:qe,Qe=e.getOptionSelected,he=e.groupBy,Ue=e.handleHomeEndKeys,Ie=Ue===void 0?!e.freeSolo:Ue,Fe=e.id,ue=e.includeInputInList,Be=ue===void 0?!1:ue,kt=e.inputValue,ur=e.limitTags,dt=ur===void 0?-1:ur,Xe=e.ListboxComponent,it=Xe===void 0?"ul":Xe,kr=e.ListboxProps,Yt=e.loading,et=Yt===void 0?!1:Yt,Pt=e.loadingText,Je=Pt===void 0?"Loading\u2026":Pt,Pe=e.multiple,ye=Pe===void 0?!1:Pe,H=e.noOptionsText,Re=H===void 0?"No options":H,De=e.onChange,Ot=e.onClose,zt=e.onHighlightChange,Sr=e.onInputChange,St=e.onOpen,zn=e.open,Nl=e.openOnFocus,Q_=Nl===void 0?!1:Nl,Al=e.openText,Ui=Al===void 0?"Open":Al,eb=e.options,Ml=e.PaperComponent,zi=Ml===void 0?doe.default:Ml,Fl=e.PopperComponent,Md=Fl===void 0?yL:Fl,Mr=e.popupIcon,Pr=Mr===void 0?o6e:Mr,tb=e.renderGroup,Xs=e.renderInput,vh=e.renderOption,pa=e.renderTags,Wn=e.selectOnFocus,Fd=Wn===void 0?!e.freeSolo:Wn,qd=e.size,uo=qd===void 0?"medium":qd,Zs=e.value,Wi=ce(e,["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","classes","className","clearOnBlur","clearOnEscape","clearText","closeIcon","closeText","debug","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","getOptionSelected","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"]),Qs=ie?r6e:Md,Wt=dI(L({},e,{componentName:"Autocomplete"})),yh=Wt.getRootProps,jd=Wt.getInputProps,Ld=Wt.getInputLabelProps,Bd=Wt.getPopupIndicatorProps,$i=Wt.getClearProps,Ud=Wt.getTagProps,Ua=Wt.getListboxProps,_h=Wt.getOptionProps,za=Wt.value,ql=Wt.dirty,bh=Wt.id,Hi=Wt.popupOpen,eu=Wt.focused,Sh=Wt.focusedTag,tu=Wt.anchorEl,T=Wt.setAnchorEl,A=Wt.inputValue,x=Wt.groupedOptions,M;if(ye&&za.length>0){var R=function(ze){return L({className:(0,xd.default)(d.tag,uo==="small"&&d.tagSizeSmall),disabled:Q},Ud(ze))};pa?M=pa(za,R):M=za.map(function(xe,ze){return sr.createElement(bL,L({label:nt(xe),size:uo},R({index:ze}),p))})}if(dt>-1&&Array.isArray(M)){var I=M.length-dt;!eu&&I>0&&(M=M.splice(0,dt),M.push(sr.createElement("span",{className:d.tag,key:M.length},ve(I))))}var D=function(ze){return sr.createElement("li",{key:ze.key},sr.createElement(_L,{className:d.groupLabel,component:"div"},ze.group),sr.createElement("ul",{className:d.groupUl},ze.children))},W=tb||D,oe=vh||nt,ae=function(ze,ot){var $t=_h({option:ze,index:ot});return sr.createElement("li",L({},$t,{className:d.option}),oe(ze,{selected:$t["aria-selected"],inputValue:A}))},ne=!J&&!Q,Ee=(!Se||we===!0)&&we!==!1;return sr.createElement(sr.Fragment,null,sr.createElement("div",L({ref:r,className:(0,xd.default)(d.root,f,eu&&d.focused,be&&d.fullWidth,ne&&d.hasClearIcon,Ee&&d.hasPopupIcon)},yh(Wi)),Xs({id:bh,disabled:Q,fullWidth:!0,size:uo==="small"?"small":void 0,InputLabelProps:Ld(),InputProps:{ref:T,className:d.inputRoot,startAdornment:M,endAdornment:sr.createElement("div",{className:d.endAdornment},ne?sr.createElement(EL.default,L({},$i(),{"aria-label":b,title:b,className:(0,xd.default)(d.clearIndicator,ql&&d.clearIndicatorDirty)}),w):null,Ee?sr.createElement(EL.default,L({},Bd(),{disabled:Q,"aria-label":Hi?C:Ui,title:Hi?C:Ui,className:(0,xd.default)(d.popupIndicator,Hi&&d.popupIndicatorOpen)}),Pr):null)},inputProps:L({className:(0,xd.default)(d.input,Sh===-1&&d.inputFocused),disabled:Q},jd())})),Hi&&tu?sr.createElement(Qs,{className:(0,xd.default)(d.popper,ie&&d.popperDisablePortal),style:{width:tu?tu.clientWidth:null},role:"presentation",anchorEl:tu,open:!0},sr.createElement(zi,{className:d.paper},et&&x.length===0?sr.createElement("div",{className:d.loading},Je):null,x.length===0&&!Se&&!et?sr.createElement("div",{className:d.noOptions},Re):null,x.length>0?sr.createElement(it,L({className:d.listbox},Ua(),kr),x.map(function(xe,ze){return he?W({key:xe.key,group:xe.group,children:xe.options.map(function(ot,$t){return ae(ot,xe.index+$t)})}):ae(xe,ze)})):null)):null)}),TL=(0,coe.withStyles)(t6e,{name:"MuiAutocomplete"})(a6e);var tn=class extends xl.default.PureComponent{constructor(e){super(e),this.state={value:this.props.value}}componentDidUpdate(e){e.value!==this.props.value&&this.setState({value:this.props.value})}render(){var e;return xl.default.createElement(Ke,{item:!0,xs:this.props.xs,sm:this.props.sm,md:this.props.md,lg:this.props.lg,xl:this.props.xl},xl.default.createElement(poe.default,{fullWidth:!0},this.props.autoCompleteOptions?xl.default.createElement(TL,{freeSolo:!0,options:this.props.autoCompleteOptions,value:this.state.value,onChange:(r,n)=>this.handleChange(n!=null?n:""),renderInput:r=>{var n;return xl.default.createElement(aI,{...r,label:this.props.label,required:this.props.required,type:(n=this.props.type)!=null?n:"string",disabled:this.props.disabled,error:!!this.props.errorMsg,helperText:this.props.errorMsg,placeholder:this.props.placeholder,InputLabelProps:this.props.placeholder?{shrink:!0}:void 0,multiline:this.props.multiline,fullWidth:!0})}}):xl.default.createElement(aI,{label:this.props.label,value:this.state.value,required:this.props.required,type:(e=this.props.type)!=null?e:"string",disabled:this.props.disabled,error:!!this.props.errorMsg,helperText:this.props.errorMsg,placeholder:this.props.placeholder,InputLabelProps:this.props.placeholder?{shrink:!0}:void 0,multiline:this.props.multiline,fullWidth:!0,onChange:r=>this.handleChange(r.target.value)}),this.props.children&&xl.default.createElement(ja,null,this.props.children)))}handleChange(e){if(typeof this.props.transform=="function")e=this.props.transform(e,this.state.value);else switch(this.props.transform){case"lowerCase":e=e.toLowerCase();break;case"upperCase":e=e.toUpperCase();break}this.props.maxLength&&e.length>this.props.maxLength&&(e=e.slice(0,this.props.maxLength)),this.setState({value:e},()=>{this.props.onChange(this.state.value)})}};var foe=/^[\w-/]{1,}$/,pI=/^([0-7][0-9A-F]{2}|[01][0-9A-F]{7})$/,moe=/^([0-7][0-9A-F]{2}|[01][0-9A-F]{7})(-[0-8])?$/,hoe=/^[0-9a-z-_]{1,64}$/,goe=["rtr","raw","json","send"],voe=/^([^=]+=[^,]+,)*([^=]+=[^,]+)$/;var fI=class extends pn.default.Component{constructor(e){super(e),this.state=this.validateState({autoAddSeenMessages:this.props.native.autoAddSeenMessages,deleteUnconfiguredMessages:this.props.native.deleteUnconfiguredMessages,interface:this.props.native.interface,interfaceError:null,useRawStates:this.props.native.useRawStates,useRtrFlag:this.props.native.useRtrFlag})}render(){return pn.default.createElement(pn.default.Fragment,null,pn.default.createElement(yoe.default,{common:this.props.common,instance:this.props.context.instance,native:this.props.native,onError:this.props.onError,onLoad:this.props.setNative,classes:{buttons:"",logo:""}}),pn.default.createElement(Ke,{container:!0,spacing:3},pn.default.createElement(tn,{xs:12,sm:12,md:6,lg:4,label:Do.default.t("Interface"),value:this.state.interface,errorMsg:this.state.interfaceError,required:!0,onChange:e=>this.handleChange("interface",e)},Do.default.t("e.g.")," ",pn.default.createElement("code",null,"can0"))),pn.default.createElement(Ke,{container:!0,spacing:3},pn.default.createElement(xr,{xs:12,sm:12,md:6,label:Do.default.t("Auto add seen messages"),value:this.state.autoAddSeenMessages,onChange:e=>this.handleChange("autoAddSeenMessages",e)},Do.default.t("Automatically add new messages to the list of our known messages when they are received.")),pn.default.createElement(xr,{xs:12,sm:12,md:6,label:Do.default.t("Delete unconfigured messages"),value:this.state.deleteUnconfiguredMessages,onChange:e=>this.handleChange("deleteUnconfiguredMessages",e)},Do.default.t("Delete all objects of unconfigured messages on adapter startup."))),pn.default.createElement(Ke,{container:!0,spacing:3},pn.default.createElement(xr,{xs:12,sm:12,md:6,label:Do.default.t("Use raw states"),value:this.state.useRawStates,onChange:e=>this.handleChange("useRawStates",e)},Do.default.t("Use the raw states, which are updated with every received or sent message and can be used to send your own messages. This enables the usage in scripts, but may lead to a higher load on systems with a high message throughput."),pn.default.createElement("br",null),pn.default.createElement("code",null,this.props.context.adapterName,".",this.props.context.instance,".raw.received")," ",Do.default.t("and")," ",pn.default.createElement("code",null,this.props.context.adapterName,".",this.props.context.instance,".raw.send")),pn.default.createElement(xr,{xs:12,sm:12,md:6,label:Do.default.t("Use rtr flag"),value:this.state.useRtrFlag,onChange:e=>this.handleChange("useRtrFlag",e)},Do.default.t("Add an additional Remote Transmission Request (rtr) state on each message."))))}handleChange(e,r){let n={[e]:r};this.validateState(n),this.setState(n,()=>{this.props.onChange(e,r)})}validateState(e={}){var n;let r=!0;return e.interface!==void 0?e.interface.match(foe)?e.interfaceError=null:(e.interfaceError=Do.default.t("Only allowed chars: %s","0-9a-zA-Z-_/"),r=!1):((n=this.state)==null?void 0:n.interfaceError)!==null&&(r=!1),this.props.onValidate(r),e}};var Te=q(z()),Nd=q(rm());var mI=q(z());var _oe=q(Le());var i6e=function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:sa(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}},s6e=mI.forwardRef(function(e,r){var n=e.absolute,o=n===void 0?!1:n,a=e.classes,i=e.className,s=e.component,u=s===void 0?"hr":s,l=e.flexItem,c=l===void 0?!1:l,p=e.light,d=p===void 0?!1:p,f=e.orientation,m=f===void 0?"horizontal":f,g=e.role,v=g===void 0?u!=="hr"?"separator":void 0:g,h=e.variant,y=h===void 0?"fullWidth":h,b=ce(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return mI.createElement(u,L({className:(0,_oe.default)(a.root,i,y!=="fullWidth"&&a[y],o&&a.absolute,c&&a.flexItem,d&&a.light,m==="vertical"&&a.vertical),role:v,ref:r},b))}),wL=Ae(i6e,{name:"MuiDivider"})(s6e);var hh=q(f_()),Mie=q(boe()),Fie=q(Pj()),dB=q(kj()),qie=q(Soe()),bt=q(_o());var y6e={"":["",""],_:["",""],"*":["",""],"~":["",""],"\n":["
    "]," ":["
    "],"-":["
    "]};function Eoe(t){return t.replace(RegExp("^"+(t.match(/^(\t| )+/)||"")[0],"gm"),"")}function U_(t){return(t+"").replace(/"/g,""").replace(//g,">")}function z_(t,e){var r,n,o,a,i,s=/((?:^|\n+)(?:\n---+|\* \*(?: \*)+)\n)|(?:^``` *(\w*)\n([\s\S]*?)\n```$)|((?:(?:^|\n+)(?:\t| {2,}).+)+\n*)|((?:(?:^|\n)([>*+-]|\d+\.)\s+.*)+)|(?:!\[([^\]]*?)\]\(([^)]+?)\))|(\[)|(\](?:\(([^)]+?)\))?)|(?:(?:^|\n+)([^\s].*)\n(-{3,}|={3,})(?:\n+|$))|(?:(?:^|\n+)(#{1,6})\s*(.+)(?:\n+|$))|(?:`([^`].*?)`)|( \n\n*|\n{2,}|__|\*\*|[_*]|~~)/gm,u=[],l="",c=e||{},p=0;function d(m){var g=y6e[m[1]||""],v=u[u.length-1]==m;return g?g[1]?(v?u.pop():u.push(m),g[0|v]):g[0]:m}function f(){for(var m="";u.length;)m+=d(u[u.length-1]);return m}for(t=t.replace(/^\[(.+?)\]:\s*(.+)$/gm,function(m,g,v){return c[g.toLowerCase()]=v,""}).replace(/^\n+|\n+$/g,"");o=s.exec(t);)n=t.substring(p,o.index),p=s.lastIndex,r=o[0],n.match(/[^\\](\\\\)*\\$/)||((i=o[3]||o[4])?r='
    "+Eoe(U_(i).replace(/^\n+|\n+$/g,""))+"
    ":(i=o[6])?(i.match(/\./)&&(o[5]=o[5].replace(/^\d+/gm,"")),a=z_(Eoe(o[5].replace(/^\s*[>*+.-]/gm,""))),i==">"?i="blockquote":(i=i.match(/\./)?"ol":"ul",a=a.replace(/^(.*)(\n|$)/gm,"
  • $1
  • ")),r="<"+i+">"+a+""):o[8]?r=''+U_(o[7])+'':o[10]?(l=l.replace("
    ",''),r=f()+""):o[9]?r="":o[12]||o[14]?r="<"+(i="h"+(o[14]?o[14].length:o[13]>"="?1:2))+">"+z_(o[12]||o[15],c)+"":o[16]?r=""+U_(o[16])+"":(o[17]||o[1])&&(r=d(o[17]||"--"))),l+=n,l+=r;return(l+t.substring(p)+f()).replace(/^\n+|\n+$/g,"")}var Mi={parser:null,message:null};function Cl(){let t="";for(let e=0;e<32;e++){let r=Math.random()*16|0;(e===8||e===12||e===16||e===20)&&(t+="-"),t+=(e===12?4:e===16?r&3|8:r).toString(16)}return t}function xL(t,e){if(t===e)return!0;if(typeof t!="object"||typeof e!="object"||t===null||e===null)return!1;let r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let o of r){if(!n.includes(o))return!1;if(typeof t[o]=="function"||typeof e[o]=="function"){if(t[o].toString()!==e[o].toString())return!1}else if(!xL(t[o],e[o]))return!1}return!0}var _6e=/^(?:f(?:alse)?|no?|0+)$/i;function Cd(t){return!_6e.test(t)&&!!t}function W_(t,e,r){return!t[e]&&!t[r]?0:t[r]?t[e]?t[e].id.length>t[r].id.length?1:t[e].id.lengtht[r].id?1:t[e].idt[r].dlc?1:t[e].dlcr[n]=n)):r=this.props.options,this.state={id:Cl(),value:this.props.value,options:r}}componentDidUpdate(e){e.value!==this.props.value&&this.setState({value:this.props.value})}render(){return Il.default.createElement(Ke,{item:!0,xs:this.props.xs,sm:this.props.sm,md:this.props.md,lg:this.props.lg,xl:this.props.xl},Il.default.createElement(xoe.default,{fullWidth:!0},Il.default.createElement(bd,{id:`${this.state.id}_label`},this.props.label),Il.default.createElement(q_,{labelId:`${this.state.id}_label`,value:this.state.value,fullWidth:!0,disabled:this.props.disabled,onChange:e=>this.handleChange(e.target.value)},Object.keys(this.state.options).map(e=>{var r;return Il.default.createElement(IL,{key:e,value:e,disabled:(r=this.props.disabledOptions)==null?void 0:r.includes(e)},this.state.options[e])})),this.props.children&&Il.default.createElement(ja,null,this.props.children)))}handleChange(e){this.setState({value:e},()=>{this.props.onChange(this.state.value)})}};var pB=q(Die());var GGe=Nie(),VGe=Aie(),KGe=["msgUuid","msgId","msgName","msgDlc","msgReceive","msgSend","msgAutosend","parserUuid","parserId","parserName","parserDataType","parserDataLength","parserDataOffset","parserDataUnit","parserDataEncoding","parserBooleanMask","parserBooleanInvert","parserCustomDataType","parserCustomScriptRead","parserCustomScriptWrite","parserCommonRole","parserCommonStates","parserAutoSetInterval","parserAutoSetValue","parserAutoSetTriggerSend"],YGe="https://github.com/crycode-de/ioBroker.canbus/blob/master/well-known-messages/",JGe="https://raw.githubusercontent.com/crycode-de/ioBroker.canbus/master/well-known-messages/",Bi=class extends Te.default.Component{constructor(e){super(e),this.state={importOverwrite:!1,exportFormat:"json",exportSelected:!1,exportSelectedEntries:[],wellKnownMessagesIndex:{},wellKnownMessagesIndexLoaded:!1,wellKnownMessagesSelectedVersions:{}}}render(){var n;let e=(n=this.props.native.messages)!=null?n:{},r=Object.keys(e).sort((o,a)=>W_(e,o,a));return Te.default.createElement(Te.default.Fragment,null,Te.default.createElement("h2",null,bt.default.t("Import")),Te.default.createElement(Ke,{container:!0,spacing:3},Te.default.createElement(Ke,{item:!0},Te.default.createElement(hh.default,null,bt.default.t("Using this import feature you are able to import message configurations to extend your existing configuration.")),Te.default.createElement(hh.default,null,bt.default.t("You may use a predefined configuration from GitHub or upload a custom file.")))),Te.default.createElement(Ke,{container:!0,spacing:3},Te.default.createElement(xr,{xs:12,sm:12,md:12,lg:8,label:bt.default.t("Overwrite existing messages on import"),value:this.state.importOverwrite,onChange:o=>this.setState({importOverwrite:o})},bt.default.t("If not checked, an import will just add new messages and parsers and those that have already been defined are ignored. An existing message or parser is determined by it's internal UUID and not the ID. If you want to reimport an exported file to update you configuration you have to set this option."))),Te.default.createElement(Ke,{container:!0,spacing:3},Te.default.createElement(Ke,{item:!0,sm:12,md:6,lg:4},Te.default.createElement(Nd.default,{color:"primary",variant:"contained",fullWidth:!0,startIcon:Te.default.createElement(dB.default,null),onClick:this.importFromFile},bt.default.t("Import from file")))),!this.state.wellKnownMessagesIndexLoaded&&Te.default.createElement(Ke,{container:!0,spacing:3},Te.default.createElement(Ke,{item:!0,xs:12,sm:12,md:6,lg:4},Te.default.createElement(Nd.default,{color:"primary",variant:"contained",fullWidth:!0,startIcon:Te.default.createElement(Mie.default,null),onClick:this.fetchPredefinedConfigs},bt.default.t("Fetch configurations from GitHub")))),this.state.wellKnownMessagesIndexLoaded&&Te.default.createElement(Te.default.Fragment,null,Te.default.createElement("br",null),Te.default.createElement(hh.default,null,Te.default.createElement("strong",null,Te.default.createElement("em",null,bt.default.t("Hint: All configurations are provided without any warranty! Depending on the connected system, sending incorrect messages may damage the system.")))),Object.keys(this.state.wellKnownMessagesIndex).map(o=>Te.default.createElement(Te.default.Fragment,{key:o},Te.default.createElement("h3",null,this.state.wellKnownMessagesIndex[o].name),Te.default.createElement(Ke,{container:!0,spacing:3},Te.default.createElement(Ke,{item:!0,xs:12,sm:12,dangerouslySetInnerHTML:{__html:this.renderMarkdown(this.state.wellKnownMessagesIndex[o].description)}})),Te.default.createElement(Ke,{container:!0,spacing:3},Te.default.createElement(Ke,{item:!0,xs:12,sm:12,md:8},Te.default.createElement("span",null,bt.default.t("Author"),": "),Te.default.createElement("span",{dangerouslySetInnerHTML:{__html:this.state.wellKnownMessagesIndex[o].authors.map(a=>this.renderMarkdown(a)).join(", ")}})),this.state.wellKnownMessagesIndex[o].license&&Te.default.createElement(Ke,{item:!0,xs:12,sm:12,md:4},Te.default.createElement("span",null,bt.default.t("License"),": "),Te.default.createElement("span",null,Te.default.createElement("a",{href:`https://spdx.org/licenses/${this.state.wellKnownMessagesIndex[o].license}.html`,target:"_blank",rel:"external nofollow"},this.state.wellKnownMessagesIndex[o].license)))),Te.default.createElement(Ke,{container:!0,spacing:3},Te.default.createElement(No,{xs:12,sm:6,md:2,lg:2,label:bt.default.t("Version"),value:this.state.wellKnownMessagesSelectedVersions[o],onChange:a=>this.setState({wellKnownMessagesSelectedVersions:{...this.state.wellKnownMessagesSelectedVersions,[o]:a}}),options:this.state.wellKnownMessagesIndex[o].releases.map(a=>a.version)}),Te.default.createElement(Ke,{item:!0,xs:12,sm:6,md:6,lg:4},Te.default.createElement(Nd.default,{color:"primary",variant:"contained",fullWidth:!0,startIcon:Te.default.createElement(qie.default,null),onClick:()=>this.showPredefinedConfig(o),disabled:!this.state.wellKnownMessagesSelectedVersions[o]},bt.default.t("Show on GitHub"))),Te.default.createElement(Ke,{item:!0,xs:12,sm:6,md:6,lg:4},Te.default.createElement(Nd.default,{color:"primary",variant:"contained",fullWidth:!0,startIcon:Te.default.createElement(dB.default,null),onClick:()=>this.importPredefinedConfig(o),disabled:!this.state.wellKnownMessagesSelectedVersions[o]},bt.default.t("Import from GitHub"))))))),Te.default.createElement("br",null),Te.default.createElement(wL,null),Te.default.createElement("h2",null,bt.default.t("Export")),Te.default.createElement(Ke,{container:!0,spacing:3},Te.default.createElement(Ke,{item:!0},Te.default.createElement(hh.default,null,bt.default.t("Using this export feature you are able to export your message configurations.")),Te.default.createElement(hh.default,null,bt.default.t("The exported files can be shared or edited externally and reimported to update your configuration.")))),Te.default.createElement(Ke,{container:!0,spacing:3},Te.default.createElement(No,{xs:12,sm:6,md:4,lg:2,label:bt.default.t("Export format"),value:this.state.exportFormat,options:["json","csv"],onChange:o=>this.setState({exportFormat:o})}),Te.default.createElement(xr,{xs:12,sm:12,md:6,label:bt.default.t("Select messages to export"),value:this.state.exportSelected,onChange:o=>this.setState({exportSelected:o})},bt.default.t("If checked, you can select the configured messages you want to export. If not checked, all messages will be exported."))),this.state.exportSelected&&Te.default.createElement(Ke,{container:!0,spacing:0},r.map(o=>Te.default.createElement(xr,{key:o,xs:12,sm:12,md:6,lg:4,label:`${e[o].id} ${e[o].name}`,value:this.state.exportSelectedEntries.includes(o),onChange:a=>this.handleExportSelectMsg(o,a)}))),Te.default.createElement(Ke,{container:!0,spacing:3},Te.default.createElement(Ke,{item:!0,xs:12,sm:12,md:6,lg:4},Te.default.createElement(Nd.default,{color:"primary",variant:"contained",fullWidth:!0,startIcon:Te.default.createElement(Fie.default,null),onClick:this.export},bt.default.t("Export to file")))))}handleExportSelectMsg(e,r){r?this.setState(n=>({exportSelectedEntries:[...n.exportSelectedEntries,e]})):this.setState(n=>({exportSelectedEntries:[...n.exportSelectedEntries.filter(o=>o!==e)]}))}async fetchPredefinedConfigs(){var e,r,n,o,a,i,s,u;try{let l=await this.fetchJson("index.json");if(!(0,pB.validate)(l,VGe).valid){this.props.onError(bt.default.t("The downloaded index is not valid"));return}let p={},d=bt.default.getLanguage();for(let f in l)l[f].name=(o=(n=(e=l[f].nameLang)==null?void 0:e[d])!=null?n:(r=l[f].nameLang)==null?void 0:r.en)!=null?o:l[f].name,l[f].description=(u=(s=(a=l[f].descriptionLang)==null?void 0:a[d])!=null?s:(i=l[f].descriptionLang)==null?void 0:i.en)!=null?u:l[f].description,l[f].releases.length>0&&(p[f]=l[f].releases[0].version);this.setState({wellKnownMessagesIndex:l,wellKnownMessagesIndexLoaded:!0,wellKnownMessagesSelectedVersions:p})}catch(l){console.error(l),this.props.onError(`${l}`)}}async fetchJson(e){let r=await fetch(JGe+e,{cache:"no-cache",credentials:"omit",referrerPolicy:"no-referrer"});if(r.status!==200)throw new Error(`HTTP Error: ${r.status} ${r.statusText}`);return await r.json()}export(){var l;let e="",r="",n="",o={id:"",name:"",dlc:-1,receive:!1,send:!1,autosend:!1,parsers:{}},a={id:"",name:"",dataType:"int8",dataLength:1,dataOffset:0,dataUnit:"",dataEncoding:"latin1",booleanMask:0,booleanInvert:!1,customScriptRead:"",customScriptWrite:"",customDataType:"number",commonRole:"state",commonStates:!1},i=(l=this.props.native.messages)!=null?l:{},s={};for(let c in i)if(!(this.state.exportSelected&&!this.state.exportSelectedEntries.includes(c))){s[c]={...o,...i[c],parsers:{}};for(let p in i[c].parsers)s[c].parsers[p]={...a,...i[c].parsers[p]}}if(this.state.exportFormat==="csv"){r="text/csv",n="canbus-messages.csv";let c=[];c.push(KGe.join(";"));for(let p in s){let d=s[p],f=Object.keys(d.parsers);f.length===0?c.push([p,this.escapeCsvValue(d.id),this.escapeCsvValue(d.name),d.dlc,d.receive?1:0,d.send?1:0,d.autosend?1:0,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null].join(";")):f.forEach(m=>{let g=d.parsers[m];c.push([p,this.escapeCsvValue(d.id),this.escapeCsvValue(d.name),d.dlc,d.receive?1:0,d.send?1:0,d.autosend?1:0,m,this.escapeCsvValue(g.id),this.escapeCsvValue(g.name),g.dataType,g.dataLength,g.dataOffset,this.escapeCsvValue(g.dataUnit),g.dataEncoding,g.booleanMask,g.booleanInvert?1:0,g.customDataType,this.escapeCsvValue(g.customScriptRead),this.escapeCsvValue(g.customScriptWrite),this.escapeCsvValue(g.commonRole),g.commonStates?this.escapeCsvValue(g.commonStates):"",g.autoSetInterval?g.autoSetInterval:0,g.dataType==="boolean"?g.autoSetValue?1:0:g.dataType==="string"?this.escapeCsvValue(g.autoSetValue):g.autoSetValue,g.autoSetTriggerSend?1:0].join(";"))})}e=c.join(`\r +`)}else r="application/json",n="canbus-messages.json",e=JSON.stringify(s,null,2);let u=window.document.createElement("a");u.setAttribute("href",`data:${r};charset=utf-8,${encodeURIComponent(e)}`),u.setAttribute("download",n),u.style.display="none",window.document.body.appendChild(u),u.click(),window.document.body.removeChild(u)}importFromFile(){let e=window.document.createElement("input");e.setAttribute("type","file"),e.setAttribute("id","files"),e.setAttribute("opacity","0"),e.addEventListener("change",this.handleImportFileSelect,!1),e.click()}handleImportFileSelect(e){var i,s;let r=(s=(i=e.target)==null?void 0:i.files)==null?void 0:s[0];if(!r){this.props.onError(bt.default.t("Failed to open file!"));return}let n=r.name.match(/\.([^.]+)$/);if(!n||n[1]!=="json"&&n[1]!=="csv"){this.props.onError(bt.default.t("Unsupported file type!"));return}let o=n[1],a=new window.FileReader;a.onload=u=>{var p;let l=(p=u.target)==null?void 0:p.result;if(!l){this.props.onError(bt.default.t("File is empty!"));return}let c={};try{if(o==="csv"){let d=this.readArrayFromCsv(l),f=d.shift();if(!(f!=null&&f.includes("msgUuid")))throw new Error("Invalid file");d.forEach((m,g)=>{var y;let v=f.map((b,E)=>({[b]:m[E]})),h=Object.assign({},...v);if(!h.msgUuid){console.warn(`Ignore invalid entry on line ${g+2}!`,m);return}if(c[h.msgUuid]||(c[h.msgUuid]={id:h.msgId,name:h.msgName,send:Cd(h.msgSend),receive:Cd(h.msgReceive),autosend:Cd(h.msgAutosend),dlc:parseInt(h.msgDlc,10),parsers:{}}),h.parserUuid){let b=h.parserDataType==="custom"?h.parserCustomDataType:h.parserDataType;c[h.msgUuid].parsers[h.parserUuid]={id:h.parserId,name:h.parserName,dataType:h.parserDataType,dataLength:parseInt(h.parserDataLength,10),dataOffset:parseInt(h.parserDataOffset,10),dataUnit:h.parserDataUnit,dataEncoding:h.parserDataEncoding,booleanMask:parseInt(h.parserBooleanMask,10),booleanInvert:Cd(h.parserBooleanInvert),customDataType:h.parserCustomDataType,customScriptRead:h.parserCustomScriptRead,customScriptWrite:h.parserCustomScriptWrite,commonRole:h.parserCommonRole,commonStates:h.parserCommonStates||!1,autoSetInterval:parseInt(h.parserAutoSetInterval,10)||!1,autoSetValue:b==="number"?parseInt(h.parserAutoSetValue,10):b==="boolean"?Cd(h.parserAutoSetValue):(y=h.parserAutoSetValue)!=null?y:"",autoSetTriggerSend:Cd(h.parserAutoSetTriggerSend)}}})}else c=JSON.parse(l)}catch(d){this.props.onError(bt.default.t("Error parsing file! %s",`${d}`));return}this.importMessagesObject(c)},a.readAsText(r)}showPredefinedConfig(e){var o;let r=this.state.wellKnownMessagesSelectedVersions[e],n=(o=this.state.wellKnownMessagesIndex[e])==null?void 0:o.releases.find(a=>a.version===r);if(!(n!=null&&n.file)){this.props.onError("Release not found");return}window.open(`${YGe}configs/${n.file}`)}async importPredefinedConfig(e){var a;let r=this.state.wellKnownMessagesSelectedVersions[e],n=(a=this.state.wellKnownMessagesIndex[e])==null?void 0:a.releases.find(i=>i.version===r);if(!(n!=null&&n.file)){this.props.onError("Release not found");return}let o={};try{o=await this.fetchJson("configs/"+n.file)}catch(i){console.error(i),this.props.onError(`${i}`)}this.importMessagesObject(o)}importMessagesObject(e,r=!1){var o,a,i,s,u,l,c,p;if(!r){let d=(0,pB.validate)(e,GGe);if(!d.valid){this.props.onError(Te.default.createElement("div",null,Te.default.createElement("div",null,Te.default.createElement("strong",null,bt.default.t("Validation error:"))),Te.default.createElement("ul",null,d.errors.map(f=>Te.default.createElement("li",null,Te.default.createElement("code",null,f.path.join(".")),Te.default.createElement("br",null),f.message))),Te.default.createElement(Nd.default,{color:"default",variant:"contained",fullWidth:!0,onClick:()=>{this.props.onError(""),this.importMessagesObject(e,!0)}},bt.default.t("Ignore this error and try to import"))));return}}let{native:n}=this.props;n.messages||(n.messages={});for(let d in e)if(e[d].name=((s=(i=(o=e[d].nameLang)==null?void 0:o[bt.default.getLanguage()])!=null?i:(a=e[d].nameLang)==null?void 0:a.en)!=null?s:e[d].name)||e[d].id,delete e[d].nameLang,!n.messages[d])n.messages[d]=e[d];else{if(this.state.importOverwrite){let{parsers:f,...m}=e[d];n.messages[d]={...n.messages[d],...m}}for(let f in e[d].parsers)e[d].parsers[f].name=((p=(c=(u=e[d].parsers[f].nameLang)==null?void 0:u[bt.default.getLanguage()])!=null?c:(l=e[d].parsers[f].nameLang)==null?void 0:l.en)!=null?p:e[d].parsers[f].name)||e[d].parsers[f].id,delete e[d].parsers[f].nameLang,n.messages[d].parsers[f]?this.state.importOverwrite&&(n.messages[d].parsers[f]={...n.messages[d].parsers[f],...e[d].parsers[f]}):n.messages[d].parsers[f]=e[d].parsers[f]}this.props.setNative(n),this.props.showToast(bt.default.t("Import done"))}escapeCsvValue(e){if(typeof e!="string")try{return`${e}`}catch(r){return""}return e.match(/[;"\r\n]/)&&(e=e.replace(/"/g,'""'),e=`"${e}"`),e}readArrayFromCsv(e){let r="",n=[""],o=0,a=0,i=!0,s,u=[n];for(s of e)s==='"'?(i&&s===r&&(n[o]+=s),i=!i):s===";"&&i?s=n[++o]="":s===` +`&&i?(r==="\r"&&(n[o]=n[o].slice(0,-1)),n=u[++a]=[s=""],o=0):n[o]+=s,r=s;return u}renderMarkdown(e){return e=e.replace(/<[^>]+>/,""),e=z_(e),e=e.replace(/]+)>/g,''),e}};Et([Tt],Bi.prototype,"handleExportSelectMsg",1),Et([Tt],Bi.prototype,"fetchPredefinedConfigs",1),Et([Tt],Bi.prototype,"export",1),Et([Tt],Bi.prototype,"importFromFile",1),Et([Tt],Bi.prototype,"handleImportFileSelect",1),Et([Tt],Bi.prototype,"importPredefinedConfig",1);var ft=q(z());var Yie=q(rm()),X_=q(g_());var gB=q(xj()),Jie=q(fB()),Xie=q(Uie()),ht=q(_o());var mB=q(z()),hB=q(Sm()),BI=(0,hB.default)(mB.default.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}),"ContentCopy"),UI=(0,hB.default)(mB.default.createElement("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"}),"ContentPaste");var Ge=q(z());var $I=q(g_()),Gie=q(h_()),Vie=q(fB()),Kie=q(zie()),He=q(_o());var Js=q(z());var Wie=q(Wm()),$ie=q(zC());var Hie=q(VC());var WI=class extends Js.default.PureComponent{constructor(e){super(e);let r=[];for(let n=0;n0;this.state={value:this.props.value,bits:r}}componentDidUpdate(e){if(e.value!==this.props.value){let r=[];for(let n=0;n0;this.setState({value:this.props.value,bits:r})}}render(){return Js.default.createElement(Ke,{item:!0,xs:this.props.xs,sm:this.props.sm,md:this.props.md,lg:this.props.lg,xl:this.props.xl},Js.default.createElement(Wie.default,null,Js.default.createElement(bd,{shrink:!0,style:{marginTop:"-5px"}},this.props.label),Js.default.createElement("div",null,this.state.bits.map((e,r)=>Js.default.createElement($ie.default,{key:r,control:Js.default.createElement(Hie.default,{checked:e,disabled:this.props.disabled,onChange:()=>this.changeBit(r)}),label:r}))),this.props.children&&Js.default.createElement(ja,null,this.props.children)))}changeBit(e){let r=[...this.state.bits];r[e]=!r[e];let n=0;r.forEach((o,a)=>{o&&(n|=1<{this.props.onChange(this.state.value)})}};var CVe={int8:"int8",uint8:"uint8",int16_be:"int16 BE",int16_le:"int16 LE",uint16_be:"uint16 BE",uint16_le:"uint16 LE",int32_be:"int32 BE",int32_le:"int32 LE",uint32_be:"uint32 BE",uint32_le:"uint32 LE",float32_be:"float32 BE",float32_le:"float32 LE",double64_be:"double64 BE",double64_le:"double64 LE",boolean:"boolean",string:"string",custom:"custom"},IVe=["state","button","indicator","level","level.temperature","switch","switch.power","switch.light","text","value","value.temperature","button.close.blind","button.close.tilt","button.fastforward","button.fastreverse","button.forward","button.long","button.mode.auto","button.mode.manual","button.mode.silent","button.next","button.open.blind","button.open.door","button.open.tilt","button.open.window","button.pause","button.play","button.press","button.prev","button.reverse","button.start","button.stop","button.stop.tilt","button.volume.down","button.volume.up","date","date.end","date.forecast.1","date.start","date.sunrise","date.sunset","dayofweek","html","indicator.alarm","indicator.alarm.fire","indicator.alarm.flood","indicator.alarm.health","indicator.alarm.secure","indicator.connected","indicator.lowbat","indicator.maintenance","indicator.maintenance.alarm","indicator.maintenance.lowbat","indicator.maintenance.unreach","indicator.maintenance.waste","indicator.reachable","indicator.working","info.address","info.display","info.ip","info.mac","info.name","info.port","info.standby","info.status","json","level.bass","level.blind","level.co2","level.color.blue","level.color.green","level.color.hue","level.color.luminance","level.color.red","level.color.rgb","level.color.saturation","level.color.temperature","level.color.white","level.curtain","level.dimmer","level.mode.cleanup","level.mode.fan","level.mode.swing","level.mode.thermostat","level.mode.work","level.tilt","level.timer","level.timer.sleep","level.treble","level.valve","level.volume","level.volume.group","list","location","media.add","media.album","media.artist","media.bitrate","media.broadcastDate","media.browser","media.clear","media.content","media.cover","media.cover.big","media.cover.small","media.date","media.duration","media.duration.text","media.elapsed","media.elapsed.text","media.episode","media.genre","media.input","media.jump","media.link","media.mode.repeat","media.mode.shuffle","media.mute","media.mute.group","media.playid","media.playlist","media.season","media.seek","media.state","media.title","media.title.next","media.track","media.tts","media.url","media.url.announcement","sensor.alarm","sensor.alarm.fire","sensor.alarm.flood","sensor.alarm.power","sensor.alarm.secure","sensor.door","sensor.light","sensor.lock","sensor.motion","sensor.noise","sensor.rain","sensor.window","switch.boost","switch.comfort","switch.enable","switch.lock","switch.lock.door","switch.lock.window","switch.mode.auto","switch.mode.color","switch.mode.manual","switch.mode.moonlight","switch.mode.silent","switch.pause","switch.power.zone","text.phone","text.url","url","url.audio","url.blank","url.cam","url.icon","url.same","value.battery","value.blind","value.blood.sugar","value.brightness","value.clouds","value.current","value.curtain","value.default","value.direction","value.direction.max.wind","value.direction.min.wind","value.direction.wind","value.direction.wind.forecast.0","value.direction.wind.forecast.1","value.distance","value.distance.visibility","value.fill","value.gps","value.gps.elevation","value.gps.latitude","value.gps.longitude","value.health.bmi","value.health.bpm","value.health.calories","value.health.fat","value.health.steps","value.health.weight","value.humidity","value.humidity.max","value.humidity.min","value.interval","value.lock","value.max","value.min","value.power.consumption","value.precipitation","value.precipitation.day.forecast.0","value.precipitation.forecast.0","value.precipitation.forecast.1","value.precipitation.hour","value.precipitation.night.forecast.0","value.precipitation.today","value.pressure","value.pressure.forecast.0","value.pressure.forecast.1","value.radiation","value.rain","value.rain.hour","value.rain.today","value.severity","value.snow","value.snow.hour","value.snow.today","value.snowline","value.speed","value.speed.max.wind","value.speed.min.wind","value.speed.wind","value.speed.wind.forecast.0","value.speed.wind.forecast.1","value.speed.wind.gust","value.state","value.sun.azimuth","value.sun.elevation","value.temperature.dewpoint","value.temperature.feelslike","value.temperature.max","value.temperature.max.forecast.0","value.temperature.max.forecast.1","value.temperature.min","value.temperature.min.forecast.0","value.temperature.min.forecast.1","value.temperature.windchill","value.tilt","value.time","value.uv","value.valve","value.voltage","value.warning","value.waste","value.water","value.window","weather.chart.url","weather.chart.url.forecast","weather.direction.wind","weather.direction.wind.forecast.0","weather.html","weather.icon","weather.icon.forecast.1","weather.icon.name","weather.icon.wind","weather.json","weather.state","weather.state.forecast.0","weather.state.forecast.1","weather.title","weather.title.forecast.0","weather.title.short","weather.type"],gh=class extends Ge.default.PureComponent{constructor(e){super(e),this.state=this.validateState(this.updateDependedElements({...this.props.config,idError:null,commonStatesError:null,disabledDataLengths:[],disabledDataOffsets:[],disabledDataEncoding:!1,disabledDataUnit:!1,disabledDataOffsetAndLength:!1}))}render(){let{classes:e}=this.props,r="number";return(this.state.dataType==="boolean"||this.state.dataType==="custom"&&this.state.customDataType==="boolean")&&(r="boolean"),(this.state.dataType==="string"||this.state.dataType==="custom"&&this.state.customDataType==="string")&&(r="string"),Ge.default.createElement(Ge.default.Fragment,null,Ge.default.createElement("div",{className:e.fabTopRight},Ge.default.createElement($I.default,{size:"small",color:"primary","aria-label":"copy",title:He.default.t("Copy"),onClick:this.copy},Ge.default.createElement(BI,null)),Ge.default.createElement($I.default,{size:"small",color:"primary","aria-label":"paste",title:He.default.t("Paste"),onClick:this.paste,disabled:this.props.readonly||!Mi.parser},Ge.default.createElement(UI,null)),Ge.default.createElement($I.default,{size:"small",color:"primary","aria-label":"delete",title:He.default.t("Remove"),onClick:()=>this.props.onDelete&&this.props.onDelete(this.props.uuid),disabled:this.props.readonly||!this.props.onDelete},Ge.default.createElement(Vie.default,null))),Ge.default.createElement(Ke,{container:!0,spacing:3},Ge.default.createElement(tn,{xs:12,sm:6,md:4,lg:4,label:He.default.t("Parser ID"),value:this.state.id,disabled:this.props.readonly,onChange:n=>this.handleChange("id",n),errorMsg:this.state.idError,transform:"lowerCase",maxLength:64},Ge.default.createElement("code",null,this.props.context.adapterName,".",this.props.context.instance,".",this.props.msgId||"",".",this.state.id||"")),Ge.default.createElement(tn,{xs:12,sm:6,md:6,lg:4,label:He.default.t("Name"),value:this.state.name,disabled:this.props.readonly,onChange:n=>this.handleChange("name",n)},He.default.t("e.g.")," ",Ge.default.createElement("code",null,He.default.t("Temperature")))),Ge.default.createElement(Ke,{container:!0,spacing:3},Ge.default.createElement(No,{xs:12,sm:6,md:4,lg:2,label:He.default.t("Data type"),value:this.state.dataType,disabled:this.props.readonly,onChange:n=>this.handleChange("dataType",n),options:CVe},He.default.t("Data type in the can message")),this.state.dataType==="custom"&&Ge.default.createElement(No,{xs:12,sm:6,md:4,lg:2,label:He.default.t("Data type"),value:this.state.customDataType,disabled:this.props.readonly,onChange:n=>this.handleChange("customDataType",n),options:["boolean","number","string","mixed"]},He.default.t("Data type in ioBroker")),!this.state.disabledDataOffsetAndLength&&Ge.default.createElement(Ge.default.Fragment,null,Ge.default.createElement(No,{xs:12,sm:6,md:2,lg:1,label:He.default.t("Offset"),value:this.state.dataOffset.toString(),disabled:this.props.readonly,onChange:n=>this.handleChange("dataOffset",parseInt(n,10)),options:["0","1","2","3","4","5","6","7"],disabledOptions:this.state.disabledDataOffsets}),Ge.default.createElement(No,{xs:12,sm:6,md:2,lg:1,label:He.default.t("Length"),value:this.state.dataLength.toString(),disabled:this.props.readonly,onChange:n=>this.handleChange("dataLength",parseInt(n,10)),options:["1","2","3","4","5","6","7","8"],disabledOptions:this.state.disabledDataLengths})),!this.state.disabledDataEncoding&&Ge.default.createElement(No,{xs:12,sm:6,md:2,lg:1,label:He.default.t("Encoding"),value:this.state.dataEncoding,disabled:this.props.readonly,onChange:n=>this.handleChange("dataEncoding",n),options:["ascii","base64","hex","latin1","utf8","utf16le"]}),!this.state.disabledDataUnit&&Ge.default.createElement(tn,{xs:12,sm:6,md:2,lg:1,label:He.default.t("Unit"),value:this.state.dataUnit,disabled:this.props.readonly,onChange:n=>this.handleChange("dataUnit",n)},He.default.t("e.g.")," ",Ge.default.createElement("code",null,"\xB0C")),Ge.default.createElement(tn,{xs:12,sm:6,md:4,lg:3,label:He.default.t("Role"),value:this.state.commonRole,disabled:this.props.readonly,onChange:n=>this.handleChange("commonRole",n),autoCompleteOptions:IVe},He.default.t('Select a suitable role for the ioBroker state or just use "state" if you are not sure.'),Ge.default.createElement(Gie.default,{color:"primary",size:"small",title:He.default.t("Information about the state roles in ioBroker on GitHub"),onClick:()=>window.open("https://github.com/ioBroker/ioBroker.docs/blob/master/docs/en/dev/stateroles.md")},Ge.default.createElement(Kie.default,{fontSize:"inherit"}))),Ge.default.createElement(xr,{xs:12,sm:6,md:4,lg:3,label:He.default.t("Define possible states"),value:!!this.state.commonStates,disabled:this.props.readonly,onChange:n=>this.handleChange("commonStates",n?"":!1)},He.default.t("Setup a list of predefined state values"))),typeof this.state.commonStates=="string"&&Ge.default.createElement(Ke,{container:!0,spacing:3},Ge.default.createElement(tn,{xs:12,sm:12,md:12,lg:12,label:He.default.t("Possible states"),value:this.state.commonStates,disabled:this.props.readonly,onChange:n=>this.handleChange("commonStates",n),errorMsg:this.state.commonStatesError},He.default.t("Comma separated list of real values and display values. Example: 0=Off,1=On,2=Auto"))),this.state.dataType==="boolean"&&Ge.default.createElement(Ke,{container:!0,spacing:3},Ge.default.createElement(WI,{xs:12,sm:12,md:12,lg:8,label:He.default.t("Boolean bitmask"),bits:8,value:this.state.booleanMask,disabled:this.props.readonly,onChange:n=>this.handleChange("booleanMask",n)},Ge.default.createElement("span",{dangerouslySetInnerHTML:{__html:He.default.t("Bitmask to apply to detect/set a %s value. If no bits are selected any byte value greater than 0 will be interpreted as %s.","true","true")}})),Ge.default.createElement(xr,{xs:12,sm:12,md:6,lg:3,label:He.default.t("Boolean invert"),value:this.state.booleanInvert,disabled:this.props.readonly,onChange:n=>this.handleChange("booleanInvert",n)},He.default.t("Invert the boolean value"))),this.state.dataType==="custom"&&Ge.default.createElement(Ke,{container:!0,spacing:3},Ge.default.createElement(tn,{xs:12,sm:12,md:6,label:He.default.t("Custom script read"),multiline:!0,value:this.state.customScriptRead,disabled:this.props.readonly,onChange:n=>this.handleChange("customScriptRead",n),placeholder:`// example: value = buffer[0] + buffer[1];`},Ge.default.createElement("span",{dangerouslySetInnerHTML:{__html:He.default.t("Script to read the value from the buffer. The buffer is available as %s and the value has to be written into %s.","buffer","value")}})),Ge.default.createElement(tn,{xs:12,sm:12,md:6,label:He.default.t("Custom script write"),multiline:!0,value:this.state.customScriptWrite,disabled:this.props.readonly,onChange:n=>this.handleChange("customScriptWrite",n),placeholder:`// example: buffer[0] = value & 0xff; -buffer[1] = (value >> 8);`},Ge.default.createElement("span",{dangerouslySetInnerHTML:{__html:He.default.t("Script to write the value to the buffer. The buffer is available as %s and the value as %s.","buffer","value")}}))),this.props.msgSend&&Ge.default.createElement(Ke,{container:!0,spacing:3},Ge.default.createElement(xr,{xs:12,sm:6,md:4,lg:3,label:He.default.t("Automatically set a certain value"),value:typeof this.state.autoSetInterval=="number",disabled:this.props.readonly,onChange:n=>this.handleChange("autoSetInterval",n?6e4:!1)},He.default.t("Set a certain value automatically in a given interval")),typeof this.state.autoSetInterval=="number"&&Ge.default.createElement(Ge.default.Fragment,null,Ge.default.createElement(tn,{xs:12,sm:6,md:4,lg:3,label:He.default.t("Interval for automatic set"),value:this.state.autoSetInterval.toString(),disabled:this.props.readonly,onChange:n=>this.handleChange("autoSetInterval",parseInt(n,10)||0),transform:n=>n.replace(/\D/g,"")},He.default.t("Interval in milliseconds to automatically set the value")),r==="number"&&Ge.default.createElement(tn,{xs:12,sm:6,md:4,lg:3,label:He.default.t("Value to set"),value:(this.state.autoSetValue||0).toString(),disabled:this.props.readonly,onChange:n=>this.handleChange("autoSetValue",parseFloat(n)||0),transform:n=>n.replace(",",".").replace(/[^\d.]/g,"")},He.default.t("The value to set automatically in the given interval (%s)",r)),r==="boolean"&&Ge.default.createElement(xr,{xs:12,sm:6,md:4,lg:3,label:He.default.t("Value to set"),value:!!this.state.autoSetValue,disabled:this.props.readonly,onChange:n=>this.handleChange("autoSetValue",n)},He.default.t("The value to set automatically in the given interval (%s)",r)),r==="string"&&Ge.default.createElement(tn,{xs:12,sm:6,md:4,lg:3,label:He.default.t("Value to set"),value:this.state.autoSetValue||"",disabled:this.props.readonly,onChange:n=>this.handleChange("autoSetValue",n)},He.default.t("The value to set automatically in the given interval (%s)",r)),!this.props.msgAutoSend&&Ge.default.createElement(xr,{xs:12,sm:6,md:4,lg:3,label:He.default.t("Trigger send"),value:!!this.state.autoSetTriggerSend,disabled:this.props.readonly,onChange:n=>this.handleChange("autoSetTriggerSend",n)},He.default.t("Trigger the send action every time the value is set automatically")))))}onChange(){this.props.onChange(this.props.uuid,{id:this.state.id,name:this.state.name,dataType:this.state.dataType,dataLength:this.state.dataLength,dataOffset:this.state.dataOffset,dataUnit:this.state.dataUnit,dataEncoding:this.state.dataEncoding,booleanMask:this.state.booleanMask,booleanInvert:this.state.booleanInvert,customScriptRead:this.state.customScriptRead,customScriptWrite:this.state.customScriptWrite,customDataType:this.state.customDataType,commonRole:this.state.commonRole,commonStates:this.state.commonStates,autoSetInterval:this.state.autoSetInterval,autoSetValue:this.state.autoSetValue,autoSetTriggerSend:this.state.autoSetTriggerSend})}handleChange(e,r){let n={[e]:r};this.updateDependedElements(n),this.validateState(n),this.setState(n,()=>{this.onChange()})}updateDependedElements(e){var n,o,a;switch(e.dataType||((n=this.state)==null?void 0:n.dataType)||"uint8"){case"boolean":e.disabledDataOffsets=[],e.disabledDataLengths=["2","3","4","5","6","7","8"],e.dataLength=1,e.disabledDataEncoding=!0,e.disabledDataUnit=!0,e.disabledDataOffsetAndLength=!1,e.dataUnit="";break;case"int8":case"uint8":e.disabledDataOffsets=[],e.disabledDataLengths=["2","3","4","5","6","7","8"],e.dataLength=1,e.disabledDataEncoding=!0,e.disabledDataUnit=!1,e.disabledDataOffsetAndLength=!1;break;case"int16_be":case"int16_le":case"uint16_be":case"uint16_le":e.disabledDataOffsets=["7"],e.disabledDataLengths=["1","3","4","5","6","7","8"],e.dataLength=2,e.disabledDataEncoding=!0,e.disabledDataUnit=!1,e.disabledDataOffsetAndLength=!1;break;case"int32_be":case"int32_le":case"uint32_be":case"uint32_le":case"float32_be":case"float32_le":e.disabledDataOffsets=["5","6","7"],e.disabledDataLengths=["1","2","3","5","6","7","8"],e.dataLength=4,e.disabledDataEncoding=!0,e.disabledDataUnit=!1,e.disabledDataOffsetAndLength=!1;break;case"double64_be":case"double64_le":e.disabledDataOffsets=["1","2","3","4","5","6","7"],e.disabledDataLengths=["1","2","3","4","5","6","7"],e.dataLength=8,e.disabledDataEncoding=!0,e.disabledDataUnit=!1,e.disabledDataOffsetAndLength=!1;break;case"string":{e.disabledDataOffsets=[],e.disabledDataLengths=[],e.disabledDataEncoding=!1,e.disabledDataUnit=!0,e.disabledDataOffsetAndLength=!1,e.dataUnit="";let i=(o=e.dataOffset)!=null?o:this.state.dataOffset;((a=e.dataLength)!=null?a:this.state.dataLength)+i>8&&(e.dataLength=8-i);for(let u=1;u<=8;u++)u+i>8&&e.disabledDataLengths.push(u.toString());break}case"custom":e.disabledDataOffsets=[],e.disabledDataLengths=[],e.dataOffset=0,e.dataLength=8,e.disabledDataEncoding=!0,e.disabledDataUnit=!1,e.disabledDataOffsetAndLength=!0;break}return e}validateState(e){var n,o;let r=!0;return e.id!==void 0?goe.includes(e.id)?(e.idError=He.default.t("This ID is reserved and can't be used"),r=!1):e.id.match(hoe)?e.idError=null:(e.idError=He.default.t("Only allowed chars: %s","0-9a-z-_"),r=!1):((n=this.state)==null?void 0:n.idError)!==null&&(r=!1),e.commonStates!==void 0?e.commonStates!==!1&&!e.commonStates.match(voe)?(e.commonStatesError=He.default.t("Invalid format! Please use the format value=text,value=text,..."),r=!1):e.commonStatesError=null:(o=this.state)!=null&&o.commonStatesError&&(r=!1),this.props.onValidate(this.props.uuid,r),e}copy(){Mi.parser=JSON.stringify(this.state),this.props.showToast&&this.props.showToast(He.default.t("Parser configuration copied. Use the paste button to paste this configuration to an other parser."))}paste(){if(!Mi.parser){this.props.showToast&&this.props.showToast(He.default.t("Nothing to paste. Please use the copy button first."));return}try{let e=JSON.parse(Mi.parser);this.setState(this.validateState({...e}),()=>{this.onChange(),this.props.showToast&&this.props.showToast(He.default.t("Pasted"))})}catch(e){this.props.showToast&&this.props.showToast(He.default.t("Error while pasting: %s",`${e}`))}}};Et([Tt],gh.prototype,"copy",1),Et([Tt],gh.prototype,"paste",1);var da=class extends pt.default.Component{constructor(e){super(e),this.state=this.validateState({tabIndex:0,id:this.props.config.id||"",idError:null,name:this.props.config.name||"",dlc:typeof this.props.config.dlc=="number"?this.props.config.dlc:-1,receive:this.props.config.receive||!1,send:this.props.config.send||!1,autosend:this.props.config.autosend||!1,parsers:this.props.config.parsers||{},parsersValid:{},showRemoveConfirm:!1})}componentDidMount(){this.validateState()}render(){let{classes:e,context:r}=this.props;return pt.default.createElement(pt.default.Fragment,null,pt.default.createElement("div",{className:e.fabTopRight},pt.default.createElement(X_.default,{size:"small",color:"primary","aria-label":"copy",title:ht.default.t("Copy"),onClick:this.copy},pt.default.createElement(BI,null)),pt.default.createElement(X_.default,{size:"small",color:"primary","aria-label":"paste",title:ht.default.t("Paste"),onClick:this.paste,disabled:this.props.readonly||!Mi.message},pt.default.createElement(UI,null)),pt.default.createElement(X_.default,{size:"small",color:"primary","aria-label":"delete",title:ht.default.t("Remove"),onClick:()=>this.setState({showRemoveConfirm:!0}),disabled:this.props.readonly||!this.props.onDelete},pt.default.createElement(Jie.default,null)),this.props.onAdd&&pt.default.createElement(X_.default,{size:"small",color:"primary","aria-label":"add",title:ht.default.t("Add"),onClick:()=>this.props.onAdd&&this.props.onAdd(this.props.uuid)},pt.default.createElement(gB.default,null))),pt.default.createElement("h2",null,ht.default.t("Message")),pt.default.createElement(Ke,{container:!0,spacing:3},pt.default.createElement(tn,{xs:12,sm:6,md:4,lg:2,label:ht.default.t("Message ID"),value:this.state.id,required:!0,errorMsg:this.state.idError,disabled:this.props.readonly,transform:"upperCase",onChange:n=>this.handleChange("id",n)},ht.default.t("CAN message ID in hex"),", ",ht.default.t("e.g.")," ",pt.default.createElement("code",null,"00A0123B")," ",ht.default.t("or")," ",pt.default.createElement("code",null,"1AB")),pt.default.createElement(tn,{xs:12,sm:6,md:4,lg:4,label:ht.default.t("Name"),value:this.state.name,disabled:this.props.readonly,onChange:n=>this.handleChange("name",n)},ht.default.t("e.g.")," ",pt.default.createElement("code",null,ht.default.t("My super message"))),pt.default.createElement(No,{xs:12,sm:6,md:4,lg:3,label:ht.default.t("Data length"),value:this.state.dlc.toString(),options:{"-1":ht.default.t("Not set"),0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8"},disabled:this.props.readonly,onChange:n=>this.handleChange("dlc",parseInt(n,10))},ht.default.t("Optionally set a fixed data length for this message"))),pt.default.createElement(Ke,{container:!0,spacing:3},pt.default.createElement(xr,{xs:12,sm:12,md:4,lg:4,label:ht.default.t("Receive"),value:this.state.receive,disabled:this.props.readonly,onChange:n=>this.handleChange("receive",n)},ht.default.t("Receive messages with the given ID")),pt.default.createElement(xr,{xs:12,sm:12,md:4,lg:4,label:ht.default.t("Send"),value:this.state.send,disabled:this.props.readonly,onChange:n=>this.handleChange("send",n)},ht.default.t("Send messages with the given ID")),pt.default.createElement(xr,{xs:12,sm:12,md:4,lg:4,label:ht.default.t("Autosend"),value:this.state.autosend,disabled:this.props.readonly,onChange:n=>this.handleChange("autosend",n)},ht.default.t("Automatically send the message when some data part changed"))),pt.default.createElement("h2",null,ht.default.t("Parsers")),pt.default.createElement("div",{className:e.root},pt.default.createElement(C_,{orientation:"vertical",variant:"scrollable",value:this.state.tabIndex,onChange:this.handleTabChange,className:e.tabs},Object.keys(this.state.parsers).map((n,o)=>pt.default.createElement(vl,{key:`tab-${o}`,label:this.getParserTabLabel(this.state.parsers[n]),id:`${this.props.uuid}-tab-${o}`,className:e.tab,style:{color:this.state.parsersValid[n]===!1?"red":void 0,fontStyle:this.state.parsers[n].id?void 0:"italic"}})),!this.props.readonly&&pt.default.createElement(Yie.default,{color:"primary",startIcon:pt.default.createElement(gB.default,null),onClick:this.onParserAdd},ht.default.t("Add"))),Object.keys(this.state.parsers).map((n,o)=>pt.default.createElement($s,{key:`tabpanel-${o}`,value:this.state.tabIndex,index:o,className:e.tabpanel},pt.default.createElement(gh,{uuid:n,config:this.state.parsers[n],msgId:this.state.dlc>=0?`${this.state.id}-${this.state.dlc}`:this.state.id,msgReceive:this.state.receive,msgSend:this.state.send,msgAutoSend:this.state.autosend,onChange:this.onParserChange,onValidate:this.onParserValidate,onDelete:this.onParserDelete,showToast:this.props.showToast,context:r,classes:e,readonly:this.props.readonly})))),this.state.showRemoveConfirm&&pt.default.createElement(Xie.default,{title:ht.default.t("Remove this message?"),text:ht.default.t("Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart."),onClose:n=>{n&&this.props.onDelete&&this.props.onDelete(this.props.uuid),this.setState({showRemoveConfirm:!1})}}))}getParserTabLabel(e){return e!=null&&e.id?e.name?`${e.name} (${e.id})`:e.id:ht.default.t("ID missing")}handleTabChange(e,r){this.setState({tabIndex:r})}async handleChange(e,r){let n={[e]:r};e==="id"&&n.dlc===void 0?n.dlc=this.state.dlc:e==="dlc"&&n.id===void 0&&(n.id=this.state.id),this.validateState(n),await new Promise(o=>{this.setState(n,()=>{this.onChange(),o()})})}onChange(){this.props.onChange&&this.props.onChange(this.props.uuid,{id:this.state.id,name:this.state.name,dlc:this.state.dlc,receive:this.state.receive,send:this.state.send,autosend:this.state.autosend,parsers:{...this.state.parsers}})}validateState(e={}){var n,o;let r=!0;if(e.id!==void 0?e.id.match(fI)?this.props.knownMessageIds.find(a=>a.id===e.id&&a.dlc===e.dlc&&a.uuid!==this.props.uuid)?(e.idError=ht.default.t("This ID is configured multiple times with this data length"),r=!1):e.idError=null:(e.idError=ht.default.t("Must be a 3 or 8 char hex ID"),r=!1):((n=this.state)==null?void 0:n.idError)!==null&&(r=!1),(o=this.state)!=null&&o.parsersValid)for(let a in this.state.parsersValid)this.state.parsersValid[a]||(r=!1);return this.props.onValidate&&this.props.onValidate(this.props.uuid,r),e}async onParserAdd(){let e=Cl(),r={id:"",name:"",dataType:"int8",dataLength:1,dataOffset:0,dataUnit:"",dataEncoding:"latin1",booleanMask:0,booleanInvert:!1,customScriptRead:"",customScriptWrite:"",customDataType:"number",commonRole:"state",commonStates:!1,autoSetInterval:!1,autoSetValue:void 0},n={...this.state.parsers};n[e]=r,await this.handleChange("parsers",n),await this.onParserValidate(e,!1),this.setState({tabIndex:Object.keys(this.state.parsers).length-1})}async onParserValidate(e,r){let n={...this.state.parsersValid};return n[e]=r,await new Promise(o=>{this.setState({parsersValid:n},()=>{this.validateState(),o()})})}onParserChange(e,r){let n={...this.state.parsers};n[e]=r,this.handleChange("parsers",n)}async onParserDelete(e){let r={...this.state.parsers},n={...this.state.parsersValid};delete r[e],delete n[e],await this.handleChange("parsers",r),this.setState({tabIndex:this.state.tabIndex-1,parsersValid:n},()=>{this.validateState(),this.state.tabIndex<0&&this.setState({tabIndex:0})})}copy(){Mi.message=JSON.stringify(this.state),this.props.showToast&&this.props.showToast(ht.default.t("Message configuration copied. Use the paste button to paste this configuration to an other message."))}paste(){if(!Mi.message){this.props.showToast&&this.props.showToast(ht.default.t("Nothing to paste. Please use the copy button first."));return}try{let e=JSON.parse(Mi.message),r=Object.keys(e.parsers);for(let n of r){let o=Cl();e.parsers[o]=e.parsers[n],delete e.parsers[n]}this.setState(this.validateState({...e}),()=>{this.onChange(),this.props.showToast&&this.props.showToast(ht.default.t("Pasted"))})}catch(e){this.props.showToast&&this.props.showToast(ht.default.t("Error while pasting: %s",`${e}`))}}};Et([Tt],da.prototype,"handleTabChange",1),Et([Tt],da.prototype,"onParserAdd",1),Et([Tt],da.prototype,"onParserValidate",1),Et([Tt],da.prototype,"onParserChange",1),Et([Tt],da.prototype,"onParserDelete",1),Et([Tt],da.prototype,"copy",1),Et([Tt],da.prototype,"paste",1);var kVe=t=>({root:{flexGrow:1,backgroundColor:t.palette.background.paper,display:"flex",height:"calc(100% - 102px)"},tabs:{borderRight:`1px solid ${t.palette.divider}`},tab:{textTransform:"none"},tabpanel:{position:"relative",width:"100%",overflowY:"auto"},fabTopRight:{"& > button":{margin:t.spacing(1)},position:"absolute",top:t.spacing(2),right:t.spacing(2)}}),qo=class extends br.default.Component{constructor(e){var n;super(e);let r=(n=this.props.native.messages)!=null?n:{};this.state={tabIndex:0,generalValid:!0,messages:r,messagesKeys:Object.keys(r).sort((o,a)=>W_(r,o,a)),messagesValid:{},messagesUnconfigured:{},messagesUnconfiguredKeys:[]}}componentDidMount(){let{socket:e,instance:r,adapterName:n}=this.props.context;e.subscribeObject(`${n}.${r}.*`,this.handleObjChange),this.loadUnconfiguredMessages()}componentWillUnmount(){let{socket:e,instance:r,adapterName:n}=this.props.context;e.unsubscribeObject(`${n}.${r}.*`,this.handleObjChange)}render(){let{classes:e,native:r,common:n,context:o}=this.props,a=0,i=Object.keys(this.state.messages).map(s=>({id:this.state.messages[s].id,dlc:this.state.messages[s].dlc,uuid:s}));return br.default.createElement("div",{className:e.root},br.default.createElement(C_,{orientation:"vertical",variant:"scrollable",value:this.state.tabIndex,onChange:this.handleTabChange,className:e.tabs},br.default.createElement(vl,{label:Ad.default.t("General"),id:"tab-0",className:e.tab,style:{color:this.state.generalValid===!1?"red":void 0}}),br.default.createElement(vl,{label:Ad.default.t("Import / Export"),id:"tab-1",className:e.tab}),br.default.createElement(jm,{textAlign:"center"},Ad.default.t("Messages")),this.state.messagesKeys.map((s,u)=>this.state.messages[s]&&br.default.createElement(vl,{key:`tab-${u+1}`,label:this.getMessageTabLabel(this.state.messages[s]),id:`tab-${u+1}`,className:e.tab,style:{color:this.state.messagesValid[s]===!1?"red":void 0,fontStyle:this.state.messages[s].id?void 0:"italic"}})),this.state.messagesUnconfiguredKeys.length>0&&br.default.createElement(jm,{textAlign:"center"},Ad.default.t("Unconfigured messages")),this.state.messagesUnconfiguredKeys.map((s,u)=>this.state.messagesUnconfigured[s]&&br.default.createElement(vl,{key:`tab-unconf-${u}`,label:this.getMessageTabLabel(this.state.messagesUnconfigured[s]),id:`tab-unconf-${u}`,className:e.tab})),br.default.createElement(Zie.default,{color:"primary",startIcon:br.default.createElement(ese.default,null),onClick:this.onMessageAdd},Ad.default.t("Add"))),br.default.createElement($s,{value:this.state.tabIndex,index:a++,className:e.tabpanel},br.default.createElement(pI,{common:n,context:o,native:r,onChange:this.onGeneralChange,onError:this.props.onError,onValidate:this.onGeneralValidate,setNative:this.props.setNative})),br.default.createElement($s,{value:this.state.tabIndex,index:a++,className:e.tabpanel},br.default.createElement(Bi,{context:o,native:r,onError:this.props.onError,setNative:this.props.setNative,showToast:this.props.showToast})),br.default.createElement($s,{value:this.state.tabIndex,index:a++}),this.state.messagesKeys.map((s,u)=>this.state.messages[s]&&br.default.createElement($s,{key:`tabpanel-${u}`,value:this.state.tabIndex,index:a++,className:e.tabpanel},br.default.createElement(da,{key:s,context:o,classes:e,uuid:s,config:this.state.messages[s],knownMessageIds:i,onChange:this.onMessageChange,onDelete:this.onMessageDelete,onValidate:this.onMessageValidate,showToast:this.props.showToast}))),this.state.messagesUnconfiguredKeys.length>0&&br.default.createElement($s,{value:this.state.tabIndex,index:a++}),this.state.messagesUnconfiguredKeys.map((s,u)=>this.state.messagesUnconfigured[s]&&br.default.createElement($s,{key:`tabpanel-${u}`,value:this.state.tabIndex,index:a++,className:e.tabpanel},br.default.createElement(da,{key:s,context:o,classes:e,uuid:s,config:this.state.messagesUnconfigured[s],knownMessageIds:[],readonly:!0,onAdd:this.onMessageAddFromUnconfigured,showToast:this.props.showToast}))))}getMessageTabLabel(e){return e!=null&&e.id?e.dlc>=0?`${e.id}-${e.dlc} ${e.name}`:`${e.id} ${e.name}`:Ad.default.t("ID missing")}handleTabChange(e,r){this.setState({tabIndex:r})}async onGeneralChange(e,r){this.props.onChange(e,r),e==="messages"&&(Object.keys(r).length===0?await new Promise(n=>{this.setState({messages:r,tabIndex:0},n)}):await new Promise(n=>{this.setState({messages:r},n)}))}onMessageChange(e,r){let n={...this.state.messages};n[e]=r,this.onGeneralChange("messages",n)}async onMessageDelete(e){let r={...this.state.messages},n={...this.state.messagesValid},o=this.state.messagesKeys.filter(a=>a!==e);delete r[e],delete n[e],await this.onGeneralChange("messages",r),this.setState({tabIndex:this.state.tabIndex-1,messagesKeys:o,messagesValid:n},()=>{this.validate(),this.state.tabIndex<3&&this.setState({tabIndex:0})}),this.loadUnconfiguredMessages()}async onGeneralValidate(e){return await new Promise(r=>{this.setState({generalValid:e},()=>{this.validate(),r()})})}async onMessageValidate(e,r){let n={...this.state.messagesValid};return n[e]=r,await new Promise(o=>{this.setState({messagesValid:n},()=>{this.validate(),o()})})}async onMessageAdd(){let e=Cl(),r={id:"",name:"",dlc:-1,receive:!1,send:!1,autosend:!1,parsers:{}},n={...this.state.messages},o=[...this.state.messagesKeys,e];n[e]=r,await this.onGeneralChange("messages",n),await this.onMessageValidate(e,!1),this.setState({tabIndex:Object.keys(this.state.messages).length+2,messagesKeys:o})}async onMessageAddFromUnconfigured(e){let r=Cl(),n={...this.state.messagesUnconfigured[e]},o={...this.state.messages},a=[...this.state.messagesKeys,r];o[r]=n,await this.onGeneralChange("messages",o);let i={...this.state.messagesUnconfigured},s=this.state.messagesUnconfiguredKeys.filter(u=>u!==e);delete i[e],this.setState({tabIndex:Object.keys(this.state.messages).length+2,messagesKeys:a,messagesUnconfigured:i,messagesUnconfiguredKeys:s})}async loadUnconfiguredMessages(){let{socket:e,instance:r,adapterName:n}=this.props.context,o=await e.getObjectView(`${n}.${r}.`,`${n}.${r}.\u9999`,"channel"),a={};for(let i in o)this.addPossiblyUnconfiguredMessage(a,o[i]);this.setState({messagesUnconfigured:a,messagesUnconfiguredKeys:Object.keys(a).sort((i,s)=>W_(a,i,s))})}addPossiblyUnconfiguredMessage(e,r){if(r.type!=="channel")return!1;let n=r._id.split(".");if(!n[2].match(moe))return!1;let[o,a]=n[2].split("-"),i=a===void 0?-1:parseInt(a,10);for(let s in this.state.messages)if(this.state.messages[s].id===o&&this.state.messages[s].dlc===i)return!1;return e[n[2]]={id:o,name:r.common.name,dlc:i,receive:!0,send:!1,autosend:!1,parsers:{}},!0}handleObjChange(e,r){let{instance:n,adapterName:o}=this.props.context;if(!e.startsWith(`${o}.${n}.`))return;let a=e.split(".");if(!a[2].match(fI))return;if(!r){this.setState(s=>{let u={...s,messagesUnconfigured:{...s.messagesUnconfigured},messagesUnconfiguredKeys:s.messagesUnconfiguredKeys.filter(l=>l!==a[2])};return delete u.messagesUnconfigured[a[2]],u});return}let i={};this.addPossiblyUnconfiguredMessage(i,r)&&this.setState(s=>({...s,messagesUnconfigured:{...s.messagesUnconfigured,...i},messagesUnconfiguredKeys:[...s.messagesUnconfiguredKeys,a[2]]}))}validate(){let e=this.state.generalValid;if(e)for(let r in this.state.messagesValid)this.state.messagesValid[r]||(e=!1);return this.props.onValidate(e),e}};Et([Tt],qo.prototype,"handleTabChange",1),Et([Tt],qo.prototype,"onGeneralChange",1),Et([Tt],qo.prototype,"onMessageChange",1),Et([Tt],qo.prototype,"onMessageDelete",1),Et([Tt],qo.prototype,"onGeneralValidate",1),Et([Tt],qo.prototype,"onMessageValidate",1),Et([Tt],qo.prototype,"onMessageAdd",1),Et([Tt],qo.prototype,"onMessageAddFromUnconfigured",1),Et([Tt],qo.prototype,"loadUnconfiguredMessages",1),Et([Tt],qo.prototype,"handleObjChange",1);var tse=(0,Qie.withStyles)(kVe)(qo);var HI={name:"canbus",version:"2.0.0",news:{"2.0.0":{en:"Node.js >= 18, Admin >= 6.17, js-contoller >= 5.0.19 are required\nChanged how custom parser scripts are interpreted. Most custom parser scripts should work as before but they have a limited scope now.\nCustom parser scripts now support `getStateAsync`, `getForeignStateAsync`, `getObjectAsync` and `getForeignObjectAsync`. If you have used `getStateAsync`/`getObjectAsync` before you need to change them to `getForeignStateAsync`/`getForeignObjectAsync` or update the IDs if you get data from the same adapter instance.\nCustom write parser scripts an now return false to cancel the write\nUpdated dependencies",de:"Node.js >= 18, Admin >= 6.17, js-contoller >= 5.0.19 sind erforderlich\nArt der Ausf\xFChrung der Skripte in benutzerdefinierten Parsern ge\xE4ndert. Skripte sollten wie fr\xFCher funktionieren, aber sie werden jetzt in einer eingeschr\xE4nkten Umgebung ausgef\xFChrt.\nSkripte benutzerdefinierter Parser unterst\xFCtzen jetzt `getStateAsync`, `getForeignStateAsync`, `getObjectAsync` und `getForeignObjectAsync`. Wenn zuvor `getStateAsync`/`getObjectAsync` verwendet wurde, m\xFCssen diese ggf. auf `getForeignStateAsync`/`getForeignObjectAsync ge\xE4ndert werden oder die IDs m\xFCssen aktualisiert werden, wenn Sie Daten von der gleichen Adapterinstanz erhalten.\nSchreiben-Skripte benutzerdefinierter Parser k\xF6nnen jetzt `false` zur\xFCckgeben, um das Schreiben abzubrechen\nAbh\xE4ngigkeiten aktualisiert",ru:"Node.js >= 18, \u0410\u0434\u043C\u0438\u043D >= 6.17, js-contoller >= 5.0.19 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F\n\u0418\u0437\u043C\u0435\u043D\u0438\u043B\u0441\u044F \u0441\u043F\u043E\u0441\u043E\u0431 \u0438\u043D\u0442\u0435\u0440\u043F\u0440\u0435\u0442\u0430\u0446\u0438\u0438 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0445 \u0441\u0446\u0435\u043D\u0430\u0440\u0438\u0435\u0432. \u0411\u043E\u043B\u044C\u0448\u0438\u043D\u0441\u0442\u0432\u043E \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0445 \u0441\u0446\u0435\u043D\u0430\u0440\u0438\u0435\u0432 \u043F\u0430\u0440\u0441\u0435\u0440\u0430 \u0434\u043E\u043B\u0436\u043D\u044B \u0440\u0430\u0431\u043E\u0442\u0430\u0442\u044C \u0442\u0430\u043A, \u043A\u0430\u043A \u0440\u0430\u043D\u044C\u0448\u0435, \u043D\u043E \u0442\u0435\u043F\u0435\u0440\u044C \u043E\u043D\u0438 \u0438\u043C\u0435\u044E\u0442 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u043D\u044B\u0439 \u043E\u0445\u0432\u0430\u0442.\nCustom parserScripts \u0442\u0435\u043F\u0435\u0440\u044C \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 `getStateAsync', `getForeignStateAsync', `getObjectAsync' \u0438 `getForeignObjectAsync'. \u0415\u0441\u043B\u0438 \u0432\u044B \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043B\u0438 `getStateAsync'/`getObjectAsync', \u043F\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043C \u0432\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0438\u0445 \u043D\u0430 `getForeignStateAsync'/`getForeignObjectAsync' \u0438\u043B\u0438 \u043E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u044B, \u0435\u0441\u043B\u0438 \u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 \u0434\u0430\u043D\u043D\u044B\u0435 \u0438\u0437 \u0442\u043E\u0433\u043E \u0436\u0435 \u044D\u043A\u0437\u0435\u043C\u043F\u043B\u044F\u0440\u0430 \u0430\u0434\u0430\u043F\u0442\u0435\u0440\u0430.\n\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0439 \u043F\u0438\u0441\u0430\u0442\u044C \u043F\u0430\u0440\u0441\u0435\u0440 \u0441\u043A\u0440\u0438\u043F\u0442\u044B \u0442\u0435\u043F\u0435\u0440\u044C \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044F \u043B\u043E\u0436\u043D\u044B\u043C, \u0447\u0442\u043E\u0431\u044B \u043E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0437\u0430\u043F\u0438\u0441\u044C\n\u041E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u044B\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438",pt:"Node.js >= 18, Admin >= 6.17, js-contoller >= 5.0.19 s\xE3o necess\xE1rios\nAlterado como scripts de parser personalizados s\xE3o interpretados. A maioria dos scripts de parser personalizados deve funcionar como antes, mas eles t\xEAm um escopo limitado agora.\nScripts de parser personalizados agora suportam `getStateAsync`, `getForeignStateAsync`, `getObjectAsync` e `getForeignObjectAsync`. Se voc\xEA tiver usado `getStateAsync`/`getObjectAsync` antes de precisar alter\xE1-los para `getForeignStateAsync`/`getForeignObjectAsync ou atualizar os IDs se voc\xEA receber dados da mesma inst\xE2ncia do adaptador.\nCustom escrever scripts parser um agora retornar falso para cancelar a grava\xE7\xE3o\nDepend\xEAncias atualizadas",nl:`Voor de toepassing van deze onderverdeling wordt verstaan onder: 5.0.19 zijn vereist +buffer[1] = (value >> 8);`},Ge.default.createElement("span",{dangerouslySetInnerHTML:{__html:He.default.t("Script to write the value to the buffer. The buffer is available as %s and the value as %s.","buffer","value")}}))),this.props.msgSend&&Ge.default.createElement(Ke,{container:!0,spacing:3},Ge.default.createElement(xr,{xs:12,sm:6,md:4,lg:3,label:He.default.t("Automatically set a certain value"),value:typeof this.state.autoSetInterval=="number",disabled:this.props.readonly,onChange:n=>this.handleChange("autoSetInterval",n?6e4:!1)},He.default.t("Set a certain value automatically in a given interval")),typeof this.state.autoSetInterval=="number"&&Ge.default.createElement(Ge.default.Fragment,null,Ge.default.createElement(tn,{xs:12,sm:6,md:4,lg:3,label:He.default.t("Interval for automatic set"),value:this.state.autoSetInterval.toString(),disabled:this.props.readonly,onChange:n=>this.handleChange("autoSetInterval",parseInt(n,10)||0),transform:n=>n.replace(/\D/g,"")},He.default.t("Interval in milliseconds to automatically set the value")),r==="number"&&Ge.default.createElement(tn,{xs:12,sm:6,md:4,lg:3,label:He.default.t("Value to set"),value:(this.state.autoSetValue||0).toString(),disabled:this.props.readonly,onChange:n=>this.handleChange("autoSetValue",parseFloat(n)||0),transform:n=>n.replace(",",".").replace(/[^\d.]/g,"")},He.default.t("The value to set automatically in the given interval (%s)",r)),r==="boolean"&&Ge.default.createElement(xr,{xs:12,sm:6,md:4,lg:3,label:He.default.t("Value to set"),value:!!this.state.autoSetValue,disabled:this.props.readonly,onChange:n=>this.handleChange("autoSetValue",n)},He.default.t("The value to set automatically in the given interval (%s)",r)),r==="string"&&Ge.default.createElement(tn,{xs:12,sm:6,md:4,lg:3,label:He.default.t("Value to set"),value:this.state.autoSetValue||"",disabled:this.props.readonly,onChange:n=>this.handleChange("autoSetValue",n)},He.default.t("The value to set automatically in the given interval (%s)",r)),!this.props.msgAutoSend&&Ge.default.createElement(xr,{xs:12,sm:6,md:4,lg:3,label:He.default.t("Trigger send"),value:!!this.state.autoSetTriggerSend,disabled:this.props.readonly,onChange:n=>this.handleChange("autoSetTriggerSend",n)},He.default.t("Trigger the send action every time the value is set automatically")))))}onChange(){this.props.onChange(this.props.uuid,{id:this.state.id,name:this.state.name,dataType:this.state.dataType,dataLength:this.state.dataLength,dataOffset:this.state.dataOffset,dataUnit:this.state.dataUnit,dataEncoding:this.state.dataEncoding,booleanMask:this.state.booleanMask,booleanInvert:this.state.booleanInvert,customScriptRead:this.state.customScriptRead,customScriptWrite:this.state.customScriptWrite,customDataType:this.state.customDataType,commonRole:this.state.commonRole,commonStates:this.state.commonStates,autoSetInterval:this.state.autoSetInterval,autoSetValue:this.state.autoSetValue,autoSetTriggerSend:this.state.autoSetTriggerSend})}handleChange(e,r){let n={[e]:r};this.updateDependedElements(n),this.validateState(n),this.setState(n,()=>{this.onChange()})}updateDependedElements(e){var n,o,a;switch(e.dataType||((n=this.state)==null?void 0:n.dataType)||"uint8"){case"boolean":e.disabledDataOffsets=[],e.disabledDataLengths=["2","3","4","5","6","7","8"],e.dataLength=1,e.disabledDataEncoding=!0,e.disabledDataUnit=!0,e.disabledDataOffsetAndLength=!1,e.dataUnit="";break;case"int8":case"uint8":e.disabledDataOffsets=[],e.disabledDataLengths=["2","3","4","5","6","7","8"],e.dataLength=1,e.disabledDataEncoding=!0,e.disabledDataUnit=!1,e.disabledDataOffsetAndLength=!1;break;case"int16_be":case"int16_le":case"uint16_be":case"uint16_le":e.disabledDataOffsets=["7"],e.disabledDataLengths=["1","3","4","5","6","7","8"],e.dataLength=2,e.disabledDataEncoding=!0,e.disabledDataUnit=!1,e.disabledDataOffsetAndLength=!1;break;case"int32_be":case"int32_le":case"uint32_be":case"uint32_le":case"float32_be":case"float32_le":e.disabledDataOffsets=["5","6","7"],e.disabledDataLengths=["1","2","3","5","6","7","8"],e.dataLength=4,e.disabledDataEncoding=!0,e.disabledDataUnit=!1,e.disabledDataOffsetAndLength=!1;break;case"double64_be":case"double64_le":e.disabledDataOffsets=["1","2","3","4","5","6","7"],e.disabledDataLengths=["1","2","3","4","5","6","7"],e.dataLength=8,e.disabledDataEncoding=!0,e.disabledDataUnit=!1,e.disabledDataOffsetAndLength=!1;break;case"string":{e.disabledDataOffsets=[],e.disabledDataLengths=[],e.disabledDataEncoding=!1,e.disabledDataUnit=!0,e.disabledDataOffsetAndLength=!1,e.dataUnit="";let i=(o=e.dataOffset)!=null?o:this.state.dataOffset;((a=e.dataLength)!=null?a:this.state.dataLength)+i>8&&(e.dataLength=8-i);for(let u=1;u<=8;u++)u+i>8&&e.disabledDataLengths.push(u.toString());break}case"custom":e.disabledDataOffsets=[],e.disabledDataLengths=[],e.dataOffset=0,e.dataLength=8,e.disabledDataEncoding=!0,e.disabledDataUnit=!1,e.disabledDataOffsetAndLength=!0;break}return e}validateState(e){var n,o;let r=!0;return e.id!==void 0?goe.includes(e.id)?(e.idError=He.default.t("This ID is reserved and can't be used"),r=!1):e.id.match(hoe)?e.idError=null:(e.idError=He.default.t("Only allowed chars: %s","0-9a-z-_"),r=!1):((n=this.state)==null?void 0:n.idError)!==null&&(r=!1),e.commonStates!==void 0?e.commonStates!==!1&&!e.commonStates.match(voe)?(e.commonStatesError=He.default.t("Invalid format! Please use the format value=text,value=text,..."),r=!1):e.commonStatesError=null:(o=this.state)!=null&&o.commonStatesError&&(r=!1),this.props.onValidate(this.props.uuid,r),e}copy(){Mi.parser=JSON.stringify(this.state),this.props.showToast&&this.props.showToast(He.default.t("Parser configuration copied. Use the paste button to paste this configuration to an other parser."))}paste(){if(!Mi.parser){this.props.showToast&&this.props.showToast(He.default.t("Nothing to paste. Please use the copy button first."));return}try{let e=JSON.parse(Mi.parser);this.setState(this.validateState({...e}),()=>{this.onChange(),this.props.showToast&&this.props.showToast(He.default.t("Pasted"))})}catch(e){this.props.showToast&&this.props.showToast(He.default.t("Error while pasting: %s",`${e}`))}}};Et([Tt],gh.prototype,"copy",1),Et([Tt],gh.prototype,"paste",1);var da=class extends ft.default.Component{constructor(e){super(e),this.state=this.validateState({tabIndex:0,id:this.props.config.id||"",idError:null,name:this.props.config.name||"",dlc:typeof this.props.config.dlc=="number"?this.props.config.dlc:-1,receive:this.props.config.receive||!1,send:this.props.config.send||!1,autosend:this.props.config.autosend||!1,parsers:this.props.config.parsers||{},parsersValid:{},showRemoveConfirm:!1})}componentDidMount(){this.validateState()}render(){let{classes:e,context:r}=this.props;return ft.default.createElement(ft.default.Fragment,null,ft.default.createElement("div",{className:e.fabTopRight},ft.default.createElement(X_.default,{size:"small",color:"primary","aria-label":"copy",title:ht.default.t("Copy"),onClick:this.copy},ft.default.createElement(BI,null)),ft.default.createElement(X_.default,{size:"small",color:"primary","aria-label":"paste",title:ht.default.t("Paste"),onClick:this.paste,disabled:this.props.readonly||!Mi.message},ft.default.createElement(UI,null)),ft.default.createElement(X_.default,{size:"small",color:"primary","aria-label":"delete",title:ht.default.t("Remove"),onClick:()=>this.setState({showRemoveConfirm:!0}),disabled:this.props.readonly||!this.props.onDelete},ft.default.createElement(Jie.default,null)),this.props.onAdd&&ft.default.createElement(X_.default,{size:"small",color:"primary","aria-label":"add",title:ht.default.t("Add"),onClick:()=>this.props.onAdd&&this.props.onAdd(this.props.uuid)},ft.default.createElement(gB.default,null))),ft.default.createElement("h2",null,ht.default.t("Message")),ft.default.createElement(Ke,{container:!0,spacing:3},ft.default.createElement(tn,{xs:12,sm:6,md:4,lg:2,label:ht.default.t("Message ID"),value:this.state.id,required:!0,errorMsg:this.state.idError,disabled:this.props.readonly,transform:"upperCase",onChange:n=>this.handleChange("id",n)},ht.default.t("CAN message ID in hex"),", ",ht.default.t("e.g.")," ",ft.default.createElement("code",null,"00A0123B")," ",ht.default.t("or")," ",ft.default.createElement("code",null,"1AB")),ft.default.createElement(tn,{xs:12,sm:6,md:4,lg:4,label:ht.default.t("Name"),value:this.state.name,disabled:this.props.readonly,onChange:n=>this.handleChange("name",n)},ht.default.t("e.g.")," ",ft.default.createElement("code",null,ht.default.t("My super message"))),ft.default.createElement(No,{xs:12,sm:6,md:4,lg:3,label:ht.default.t("Data length"),value:this.state.dlc.toString(),options:{"-1":ht.default.t("Not set"),0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8"},disabled:this.props.readonly,onChange:n=>this.handleChange("dlc",parseInt(n,10))},ht.default.t("Optionally set a fixed data length for this message"))),ft.default.createElement(Ke,{container:!0,spacing:3},ft.default.createElement(xr,{xs:12,sm:12,md:4,lg:4,label:ht.default.t("Receive"),value:this.state.receive,disabled:this.props.readonly,onChange:n=>this.handleChange("receive",n)},ht.default.t("Receive messages with the given ID")),ft.default.createElement(xr,{xs:12,sm:12,md:4,lg:4,label:ht.default.t("Send"),value:this.state.send,disabled:this.props.readonly,onChange:n=>this.handleChange("send",n)},ht.default.t("Send messages with the given ID")),ft.default.createElement(xr,{xs:12,sm:12,md:4,lg:4,label:ht.default.t("Autosend"),value:this.state.autosend,disabled:this.props.readonly,onChange:n=>this.handleChange("autosend",n)},ht.default.t("Automatically send the message when some data part changed"))),ft.default.createElement("h2",null,ht.default.t("Parsers")),ft.default.createElement("div",{className:e.root},ft.default.createElement(C_,{orientation:"vertical",variant:"scrollable",value:this.state.tabIndex,onChange:this.handleTabChange,className:e.tabs},Object.keys(this.state.parsers).map((n,o)=>ft.default.createElement(vl,{key:`tab-${o}`,label:this.getParserTabLabel(this.state.parsers[n]),id:`${this.props.uuid}-tab-${o}`,className:e.tab,style:{color:this.state.parsersValid[n]===!1?"red":void 0,fontStyle:this.state.parsers[n].id?void 0:"italic"}})),!this.props.readonly&&ft.default.createElement(Yie.default,{color:"primary",startIcon:ft.default.createElement(gB.default,null),onClick:this.onParserAdd},ht.default.t("Add"))),Object.keys(this.state.parsers).map((n,o)=>ft.default.createElement($s,{key:`tabpanel-${o}`,value:this.state.tabIndex,index:o,className:e.tabpanel},ft.default.createElement(gh,{uuid:n,config:this.state.parsers[n],msgId:this.state.dlc>=0?`${this.state.id}-${this.state.dlc}`:this.state.id,msgReceive:this.state.receive,msgSend:this.state.send,msgAutoSend:this.state.autosend,onChange:this.onParserChange,onValidate:this.onParserValidate,onDelete:this.onParserDelete,showToast:this.props.showToast,context:r,classes:e,readonly:this.props.readonly})))),this.state.showRemoveConfirm&&ft.default.createElement(Xie.default,{title:ht.default.t("Remove this message?"),text:ht.default.t("Are you sure you want to remove this message? This will also remove all it's parsers. The message will be treated as unconfigured and may be deleted on adapter restart."),onClose:n=>{n&&this.props.onDelete&&this.props.onDelete(this.props.uuid),this.setState({showRemoveConfirm:!1})}}))}getParserTabLabel(e){return e!=null&&e.id?e.name?`${e.name} (${e.id})`:e.id:ht.default.t("ID missing")}handleTabChange(e,r){this.setState({tabIndex:r})}async handleChange(e,r){let n={[e]:r};e==="id"&&n.dlc===void 0?n.dlc=this.state.dlc:e==="dlc"&&n.id===void 0&&(n.id=this.state.id),this.validateState(n),await new Promise(o=>{this.setState(n,()=>{this.onChange(),o()})})}onChange(){this.props.onChange&&this.props.onChange(this.props.uuid,{id:this.state.id,name:this.state.name,dlc:this.state.dlc,receive:this.state.receive,send:this.state.send,autosend:this.state.autosend,parsers:{...this.state.parsers}})}validateState(e={}){var n,o;let r=!0;if(e.id!==void 0?e.id.match(pI)?this.props.knownMessageIds.find(a=>a.id===e.id&&a.dlc===e.dlc&&a.uuid!==this.props.uuid)?(e.idError=ht.default.t("This ID is configured multiple times with this data length"),r=!1):e.idError=null:(e.idError=ht.default.t("Must be a 3 or 8 char hex ID"),r=!1):((n=this.state)==null?void 0:n.idError)!==null&&(r=!1),(o=this.state)!=null&&o.parsersValid)for(let a in this.state.parsersValid)this.state.parsersValid[a]||(r=!1);return this.props.onValidate&&this.props.onValidate(this.props.uuid,r),e}async onParserAdd(){let e=Cl(),r={id:"",name:"",dataType:"int8",dataLength:1,dataOffset:0,dataUnit:"",dataEncoding:"latin1",booleanMask:0,booleanInvert:!1,customScriptRead:"",customScriptWrite:"",customDataType:"number",commonRole:"state",commonStates:!1,autoSetInterval:!1,autoSetValue:void 0},n={...this.state.parsers};n[e]=r,await this.handleChange("parsers",n),await this.onParserValidate(e,!1),this.setState({tabIndex:Object.keys(this.state.parsers).length-1})}async onParserValidate(e,r){let n={...this.state.parsersValid};return n[e]=r,await new Promise(o=>{this.setState({parsersValid:n},()=>{this.validateState(),o()})})}onParserChange(e,r){let n={...this.state.parsers};n[e]=r,this.handleChange("parsers",n)}async onParserDelete(e){let r={...this.state.parsers},n={...this.state.parsersValid};delete r[e],delete n[e],await this.handleChange("parsers",r),this.setState({tabIndex:this.state.tabIndex-1,parsersValid:n},()=>{this.validateState(),this.state.tabIndex<0&&this.setState({tabIndex:0})})}copy(){Mi.message=JSON.stringify(this.state),this.props.showToast&&this.props.showToast(ht.default.t("Message configuration copied. Use the paste button to paste this configuration to an other message."))}paste(){if(!Mi.message){this.props.showToast&&this.props.showToast(ht.default.t("Nothing to paste. Please use the copy button first."));return}try{let e=JSON.parse(Mi.message),r=Object.keys(e.parsers);for(let n of r){let o=Cl();e.parsers[o]=e.parsers[n],delete e.parsers[n]}this.setState(this.validateState({...e}),()=>{this.onChange(),this.props.showToast&&this.props.showToast(ht.default.t("Pasted"))})}catch(e){this.props.showToast&&this.props.showToast(ht.default.t("Error while pasting: %s",`${e}`))}}};Et([Tt],da.prototype,"handleTabChange",1),Et([Tt],da.prototype,"onParserAdd",1),Et([Tt],da.prototype,"onParserValidate",1),Et([Tt],da.prototype,"onParserChange",1),Et([Tt],da.prototype,"onParserDelete",1),Et([Tt],da.prototype,"copy",1),Et([Tt],da.prototype,"paste",1);var kVe=t=>({root:{flexGrow:1,backgroundColor:t.palette.background.paper,display:"flex",height:"calc(100% - 102px)"},tabs:{borderRight:`1px solid ${t.palette.divider}`},tab:{textTransform:"none"},tabpanel:{position:"relative",width:"100%",overflowY:"auto"},fabTopRight:{"& > button":{margin:t.spacing(1)},position:"absolute",top:t.spacing(2),right:t.spacing(2)}}),qo=class extends br.default.Component{constructor(e){var n;super(e);let r=(n=this.props.native.messages)!=null?n:{};this.state={tabIndex:0,generalValid:!0,messages:r,messagesKeys:Object.keys(r).sort((o,a)=>W_(r,o,a)),messagesValid:{},messagesUnconfigured:{},messagesUnconfiguredKeys:[]}}componentDidMount(){let{socket:e,instance:r,adapterName:n}=this.props.context;e.subscribeObject(`${n}.${r}.*`,this.handleObjChange),this.loadUnconfiguredMessages()}componentWillUnmount(){let{socket:e,instance:r,adapterName:n}=this.props.context;e.unsubscribeObject(`${n}.${r}.*`,this.handleObjChange)}render(){let{classes:e,native:r,common:n,context:o}=this.props,a=0,i=Object.keys(this.state.messages).map(s=>({id:this.state.messages[s].id,dlc:this.state.messages[s].dlc,uuid:s}));return br.default.createElement("div",{className:e.root},br.default.createElement(C_,{orientation:"vertical",variant:"scrollable",value:this.state.tabIndex,onChange:this.handleTabChange,className:e.tabs},br.default.createElement(vl,{label:Ad.default.t("General"),id:"tab-0",className:e.tab,style:{color:this.state.generalValid===!1?"red":void 0}}),br.default.createElement(vl,{label:Ad.default.t("Import / Export"),id:"tab-1",className:e.tab}),br.default.createElement(jm,{textAlign:"center"},Ad.default.t("Messages")),this.state.messagesKeys.map((s,u)=>this.state.messages[s]&&br.default.createElement(vl,{key:`tab-${u+1}`,label:this.getMessageTabLabel(this.state.messages[s]),id:`tab-${u+1}`,className:e.tab,style:{color:this.state.messagesValid[s]===!1?"red":void 0,fontStyle:this.state.messages[s].id?void 0:"italic"}})),this.state.messagesUnconfiguredKeys.length>0&&br.default.createElement(jm,{textAlign:"center"},Ad.default.t("Unconfigured messages")),this.state.messagesUnconfiguredKeys.map((s,u)=>this.state.messagesUnconfigured[s]&&br.default.createElement(vl,{key:`tab-unconf-${u}`,label:this.getMessageTabLabel(this.state.messagesUnconfigured[s]),id:`tab-unconf-${u}`,className:e.tab})),br.default.createElement(Zie.default,{color:"primary",startIcon:br.default.createElement(ese.default,null),onClick:this.onMessageAdd},Ad.default.t("Add"))),br.default.createElement($s,{value:this.state.tabIndex,index:a++,className:e.tabpanel},br.default.createElement(fI,{common:n,context:o,native:r,onChange:this.onGeneralChange,onError:this.props.onError,onValidate:this.onGeneralValidate,setNative:this.props.setNative})),br.default.createElement($s,{value:this.state.tabIndex,index:a++,className:e.tabpanel},br.default.createElement(Bi,{context:o,native:r,onError:this.props.onError,setNative:this.props.setNative,showToast:this.props.showToast})),br.default.createElement($s,{value:this.state.tabIndex,index:a++}),this.state.messagesKeys.map((s,u)=>this.state.messages[s]&&br.default.createElement($s,{key:`tabpanel-${u}`,value:this.state.tabIndex,index:a++,className:e.tabpanel},br.default.createElement(da,{key:s,context:o,classes:e,uuid:s,config:this.state.messages[s],knownMessageIds:i,onChange:this.onMessageChange,onDelete:this.onMessageDelete,onValidate:this.onMessageValidate,showToast:this.props.showToast}))),this.state.messagesUnconfiguredKeys.length>0&&br.default.createElement($s,{value:this.state.tabIndex,index:a++}),this.state.messagesUnconfiguredKeys.map((s,u)=>this.state.messagesUnconfigured[s]&&br.default.createElement($s,{key:`tabpanel-${u}`,value:this.state.tabIndex,index:a++,className:e.tabpanel},br.default.createElement(da,{key:s,context:o,classes:e,uuid:s,config:this.state.messagesUnconfigured[s],knownMessageIds:[],readonly:!0,onAdd:this.onMessageAddFromUnconfigured,showToast:this.props.showToast}))))}getMessageTabLabel(e){return e!=null&&e.id?e.dlc>=0?`${e.id}-${e.dlc} ${e.name}`:`${e.id} ${e.name}`:Ad.default.t("ID missing")}handleTabChange(e,r){this.setState({tabIndex:r})}async onGeneralChange(e,r){this.props.onChange(e,r),e==="messages"&&(Object.keys(r).length===0?await new Promise(n=>{this.setState({messages:r,tabIndex:0},n)}):await new Promise(n=>{this.setState({messages:r},n)}))}onMessageChange(e,r){let n={...this.state.messages};n[e]=r,this.onGeneralChange("messages",n)}async onMessageDelete(e){let r={...this.state.messages},n={...this.state.messagesValid},o=this.state.messagesKeys.filter(a=>a!==e);delete r[e],delete n[e],await this.onGeneralChange("messages",r),this.setState({tabIndex:this.state.tabIndex-1,messagesKeys:o,messagesValid:n},()=>{this.validate(),this.state.tabIndex<3&&this.setState({tabIndex:0})}),this.loadUnconfiguredMessages()}async onGeneralValidate(e){return await new Promise(r=>{this.setState({generalValid:e},()=>{this.validate(),r()})})}async onMessageValidate(e,r){let n={...this.state.messagesValid};return n[e]=r,await new Promise(o=>{this.setState({messagesValid:n},()=>{this.validate(),o()})})}async onMessageAdd(){let e=Cl(),r={id:"",name:"",dlc:-1,receive:!1,send:!1,autosend:!1,parsers:{}},n={...this.state.messages},o=[...this.state.messagesKeys,e];n[e]=r,await this.onGeneralChange("messages",n),await this.onMessageValidate(e,!1),this.setState({tabIndex:Object.keys(this.state.messages).length+2,messagesKeys:o})}async onMessageAddFromUnconfigured(e){let r=Cl(),n={...this.state.messagesUnconfigured[e]},o={...this.state.messages},a=[...this.state.messagesKeys,r];o[r]=n,await this.onGeneralChange("messages",o);let i={...this.state.messagesUnconfigured},s=this.state.messagesUnconfiguredKeys.filter(u=>u!==e);delete i[e],this.setState({tabIndex:Object.keys(this.state.messages).length+2,messagesKeys:a,messagesUnconfigured:i,messagesUnconfiguredKeys:s})}async loadUnconfiguredMessages(){let{socket:e,instance:r,adapterName:n}=this.props.context,o=await e.getObjectView(`${n}.${r}.`,`${n}.${r}.\u9999`,"channel"),a={};for(let i in o)this.addPossiblyUnconfiguredMessage(a,o[i]);this.setState({messagesUnconfigured:a,messagesUnconfiguredKeys:Object.keys(a).sort((i,s)=>W_(a,i,s))})}addPossiblyUnconfiguredMessage(e,r){if(r.type!=="channel")return!1;let n=r._id.split(".");if(!n[2].match(moe))return!1;let[o,a]=n[2].split("-"),i=a===void 0?-1:parseInt(a,10);for(let s in this.state.messages)if(this.state.messages[s].id===o&&this.state.messages[s].dlc===i)return!1;return e[n[2]]={id:o,name:r.common.name,dlc:i,receive:!0,send:!1,autosend:!1,parsers:{}},!0}handleObjChange(e,r){let{instance:n,adapterName:o}=this.props.context;if(!e.startsWith(`${o}.${n}.`))return;let a=e.split(".");if(!a[2].match(pI))return;if(!r){this.setState(s=>{let u={...s,messagesUnconfigured:{...s.messagesUnconfigured},messagesUnconfiguredKeys:s.messagesUnconfiguredKeys.filter(l=>l!==a[2])};return delete u.messagesUnconfigured[a[2]],u});return}let i={};this.addPossiblyUnconfiguredMessage(i,r)&&this.setState(s=>({...s,messagesUnconfigured:{...s.messagesUnconfigured,...i},messagesUnconfiguredKeys:[...s.messagesUnconfiguredKeys,a[2]]}))}validate(){let e=this.state.generalValid;if(e)for(let r in this.state.messagesValid)this.state.messagesValid[r]||(e=!1);return this.props.onValidate(e),e}};Et([Tt],qo.prototype,"handleTabChange",1),Et([Tt],qo.prototype,"onGeneralChange",1),Et([Tt],qo.prototype,"onMessageChange",1),Et([Tt],qo.prototype,"onMessageDelete",1),Et([Tt],qo.prototype,"onGeneralValidate",1),Et([Tt],qo.prototype,"onMessageValidate",1),Et([Tt],qo.prototype,"onMessageAdd",1),Et([Tt],qo.prototype,"onMessageAddFromUnconfigured",1),Et([Tt],qo.prototype,"loadUnconfiguredMessages",1),Et([Tt],qo.prototype,"handleObjChange",1);var tse=(0,Qie.withStyles)(kVe)(qo);var HI={name:"canbus",version:"2.1.0",news:{"2.1.0":{en:"Allow `setStateAsync` and `setForeignStateAsync` in custom parser scripts\nAllow `setTimeout` and `clearTimeout` in custom parser scripts (using the adapters setTimeout implementation)\nAdded `wait` function to custom parser scripts",de:"Lassen Sie `setStateAsync` und `setForeignStateAsync` in benutzerdefinierten Parser-Skripten\nLassen Sie `setTimeout` und `clearTimeout` in benutzerdefinierten Parser-Skripten (unter Verwendung der Adapter setTimeout-Implementierung)\n`wait` Funktion zu benutzerdefinierten Parser-Skripten hinzugef\xFCgt",ru:`\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044C "setStateAsync" \u0438 "setForeignStateAsync" \u0432 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0445 \u0441\u0446\u0435\u043D\u0430\u0440\u0438\u044F\u0445 +\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u0435 \`setTimeout' \u0438 \`clearTimeout' \u0432 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0445 \u0441\u0446\u0435\u043D\u0430\u0440\u0438\u044F\u0445 \u043F\u0430\u0440\u0441\u0435\u0440\u0430 (\u0441 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435\u043C \u0430\u0434\u0430\u043F\u0442\u0435\u0440\u043E\u0432 setTimeout) +\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0430 \u0444\u0443\u043D\u043A\u0446\u0438\u044F \xABwait\xBB \u043A \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u043C \u0441\u043A\u0440\u0438\u043F\u0442\u0430\u043C`,pt:"Permitir `setStateAsync` e `setForeignStateAsync` em scripts de parser personalizados\nPermitir `setTimeout` e `clearTimeout` em scripts de parser personalizados (usando os adaptadores setTimeout implementa\xE7\xE3o)\nAdicionada fun\xE7\xE3o `wait` para scripts de parser personalizados",nl:`Toestaan dat de StaatAsync en de StaatAsync in aangepaste parser scripts +Laat de setTimeout en de duidelijkeTimeout scripts in aangepaste parser scripts (met behulp van de adapters setTimeout implementatie) +Toegevoegd functie van de wachtruimte aan aangepaste parser scripts`,fr:"Autorise `setStateAsync` et `setForeignStateAsync` dans les scripts d'analyseurs personnalis\xE9s\nAutorise `setTimeout` et `clearTimeout` dans les scripts d'analyse personnalis\xE9s (en utilisant les adaptateurs setTimeout implementation)\nAjout de la fonction `Wait` aux scripts d'analyse personnalis\xE9s",it:"Consentire `setStateAsync` e `setForeignStateAsync` in script di parser personalizzati\nConsentire `setTimeout` e `clearTimeout` in script di parser personalizzati (utilizzando l'adattatore setEsecuzione timeout)\nAggiunto funzione `wait` a script parser personalizzati",es:"Permitir `setStateAsync` y `setForeignStateAsync` en scripts de parser personalizados\nPermitir `setTimeout` y `clearTimeout` en scripts de parser personalizados (utilizando los adaptadores setTimeout implementation)\nA\xF1adido `espera` funci\xF3n a scripts de parser personalizados",pl:`Pozw\xF3l 'setStateAsync' i 'setForeignStateAsync' w niestandardowych skryptach parsera +Pozw\xF3l 'setTimeout' i 'clearTimeout' w skryptach parser\xF3w niestandardowych (za pomoc\u0105 adapter\xF3w setTimeout implementacja) +Dodano funkcj\u0119 "czeka\u0107" do w\u0142asnych skrypt\xF3w parser\xF3w`,uk:"Allow `setStateAsync` \u0456 `setForeignStateAsync` \u0443 \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0438\u0445 \u0441\u0446\u0435\u043D\u0430\u0440\u0456\u044F\u0445\nAllow `setTimeout` \u0456 `clearTimeout` \u0432 \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0438\u0445 \u0441\u0446\u0435\u043D\u0430\u0440\u0456\u0457\u0432 \u043F\u0430\u0440\u0441\u0435\u0440\u0430 (\u0432\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u044F \u0430\u0434\u0430\u043F\u0442\u0435\u0440\u0456\u0432, \u0449\u043E \u0432\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u044E\u044E\u0442\u044C\u0441\u044FTimeout)\n\u0414\u043E\u0434\u0430\u043D\u043E \u0444\u0443\u043D\u043A\u0446\u0456\u044E `wait \u0434\u043B\u044F \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u043B\u044C\u043D\u0438\u0446\u044C\u043A\u0438\u0445 \u0441\u0446\u0435\u043D\u0430\u0440\u0456\u0457\u0432","zh-cn":`\u5728\u81EA\u5B9A\u4E49\u89E3\u6790\u811A\u672C\u4E2D\u5141\u8BB8\u201C set State Async\u201D \u548C\u201C setForegn State Async \u201D +\u5141\u8BB8\u81EA\u5B9A\u4E49\u89E3\u6790\u811A\u672C\u4E2D\u7684\u201C \u8BBE\u7F6E\u65F6\u65AD\u201D \u548C\u201C \u6E05\u6670\u65F6\u65AD\u201D (\u4F7F\u7528\u9002\u914D\u5668\u8BBE\u7F6E\u65F6\u65AD\u6267\u884C) +\u6DFB\u52A0\u5230\u81EA\u5B9A\u4E49\u89E3\u6790\u811A\u672C\u4E2D\u7684\u201C \u7B49\u5F85\u201D \u51FD\u6570`},"2.0.0":{en:"Node.js >= 18, Admin >= 6.17, js-contoller >= 5.0.19 are required\nChanged how custom parser scripts are interpreted. Most custom parser scripts should work as before but they have a limited scope now.\nCustom parser scripts now support `getStateAsync`, `getForeignStateAsync`, `getObjectAsync` and `getForeignObjectAsync`. If you have used `getStateAsync`/`getObjectAsync` before you need to change them to `getForeignStateAsync`/`getForeignObjectAsync` or update the IDs if you get data from the same adapter instance.\nCustom write parser scripts an now return false to cancel the write\nUpdated dependencies",de:"Node.js >= 18, Admin >= 6.17, js-contoller >= 5.0.19 sind erforderlich\nArt der Ausf\xFChrung der Skripte in benutzerdefinierten Parsern ge\xE4ndert. Skripte sollten wie fr\xFCher funktionieren, aber sie werden jetzt in einer eingeschr\xE4nkten Umgebung ausgef\xFChrt.\nSkripte benutzerdefinierter Parser unterst\xFCtzen jetzt `getStateAsync`, `getForeignStateAsync`, `getObjectAsync` und `getForeignObjectAsync`. Wenn zuvor `getStateAsync`/`getObjectAsync` verwendet wurde, m\xFCssen diese ggf. auf `getForeignStateAsync`/`getForeignObjectAsync ge\xE4ndert werden oder die IDs m\xFCssen aktualisiert werden, wenn Sie Daten von der gleichen Adapterinstanz erhalten.\nSchreiben-Skripte benutzerdefinierter Parser k\xF6nnen jetzt `false` zur\xFCckgeben, um das Schreiben abzubrechen\nAbh\xE4ngigkeiten aktualisiert",ru:"Node.js >= 18, \u0410\u0434\u043C\u0438\u043D >= 6.17, js-contoller >= 5.0.19 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F\n\u0418\u0437\u043C\u0435\u043D\u0438\u043B\u0441\u044F \u0441\u043F\u043E\u0441\u043E\u0431 \u0438\u043D\u0442\u0435\u0440\u043F\u0440\u0435\u0442\u0430\u0446\u0438\u0438 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0445 \u0441\u0446\u0435\u043D\u0430\u0440\u0438\u0435\u0432. \u0411\u043E\u043B\u044C\u0448\u0438\u043D\u0441\u0442\u0432\u043E \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0445 \u0441\u0446\u0435\u043D\u0430\u0440\u0438\u0435\u0432 \u043F\u0430\u0440\u0441\u0435\u0440\u0430 \u0434\u043E\u043B\u0436\u043D\u044B \u0440\u0430\u0431\u043E\u0442\u0430\u0442\u044C \u0442\u0430\u043A, \u043A\u0430\u043A \u0440\u0430\u043D\u044C\u0448\u0435, \u043D\u043E \u0442\u0435\u043F\u0435\u0440\u044C \u043E\u043D\u0438 \u0438\u043C\u0435\u044E\u0442 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u043D\u044B\u0439 \u043E\u0445\u0432\u0430\u0442.\nCustom parserScripts \u0442\u0435\u043F\u0435\u0440\u044C \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 `getStateAsync', `getForeignStateAsync', `getObjectAsync' \u0438 `getForeignObjectAsync'. \u0415\u0441\u043B\u0438 \u0432\u044B \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043B\u0438 `getStateAsync'/`getObjectAsync', \u043F\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043C \u0432\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0438\u0445 \u043D\u0430 `getForeignStateAsync'/`getForeignObjectAsync' \u0438\u043B\u0438 \u043E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u044B, \u0435\u0441\u043B\u0438 \u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 \u0434\u0430\u043D\u043D\u044B\u0435 \u0438\u0437 \u0442\u043E\u0433\u043E \u0436\u0435 \u044D\u043A\u0437\u0435\u043C\u043F\u043B\u044F\u0440\u0430 \u0430\u0434\u0430\u043F\u0442\u0435\u0440\u0430.\n\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0439 \u043F\u0438\u0441\u0430\u0442\u044C \u043F\u0430\u0440\u0441\u0435\u0440 \u0441\u043A\u0440\u0438\u043F\u0442\u044B \u0442\u0435\u043F\u0435\u0440\u044C \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044F \u043B\u043E\u0436\u043D\u044B\u043C, \u0447\u0442\u043E\u0431\u044B \u043E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0437\u0430\u043F\u0438\u0441\u044C\n\u041E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u044B\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438",pt:"Node.js >= 18, Admin >= 6.17, js-contoller >= 5.0.19 s\xE3o necess\xE1rios\nAlterado como scripts de parser personalizados s\xE3o interpretados. A maioria dos scripts de parser personalizados deve funcionar como antes, mas eles t\xEAm um escopo limitado agora.\nScripts de parser personalizados agora suportam `getStateAsync`, `getForeignStateAsync`, `getObjectAsync` e `getForeignObjectAsync`. Se voc\xEA tiver usado `getStateAsync`/`getObjectAsync` antes de precisar alter\xE1-los para `getForeignStateAsync`/`getForeignObjectAsync ou atualizar os IDs se voc\xEA receber dados da mesma inst\xE2ncia do adaptador.\nCustom escrever scripts parser um agora retornar falso para cancelar a grava\xE7\xE3o\nDepend\xEAncias atualizadas",nl:`Voor de toepassing van deze onderverdeling wordt verstaan onder: 5.0.19 zijn vereist Veranderd hoe aangepaste parser scripts worden ge\xEFnterpreteerd. De meeste aangepaste parser scripts moeten werken als voorheen, maar ze hebben een beperkte reikwijdte nu. Aangepaste parser scripts ondersteunen nu Als u gebruik hebt gemaakt van . Aangepast schrijven parser scripts an now return false to cancel the write @@ -426,7 +434,7 @@ Aktualizacja zale\u017Cno\u015Bci`,uk:"Node.js >= 18, \u0410\u0434\u043C\u0456\u \u66F4\u6539\u81EA\u5B9A\u4E49\u89E3\u6790\u811A\u672C\u7684\u89E3\u91CA\u65B9\u5F0F \u3002 \u5927\u591A\u6570\u81EA\u5B9A\u4E49\u89E3\u6790\u5668\u811A\u672C\u5E94\u8BE5\u548C\u4EE5\u524D\u4E00\u6837\u6709\u6548,\u4F46\u5B83\u4EEC\u73B0\u5728\u7684\u8303\u56F4\u6709\u9650. \u81EA\u5B9A\u4E49\u89E3\u6790\u811A\u672C\u73B0\u5728\u652F\u6301\u201Cget State Async\u201D\u3001\u201CgetForegnation Async\u201D\u3001\u201CgetObjectAsync\u201D\u548C\u201CgetForegineObjectAsync\u201D\u3002 \u5982\u679C\u60A8\u5148\u4F7F\u7528\u201C getState Async\u201D /\u201C get ObjectAsync \u201D ,\u7136\u540E\u9700\u8981\u5C06\u5176\u4FEE\u6539\u4E3A\u201C getForeign State Async\u201D /\u201C getForeign ObjectAsync \u201D ,\u6216\u8005\u5982\u679C\u60A8\u4ECE\u540C\u4E00\u4E2A\u9002\u914D\u5668\u5B9E\u4F8B\u83B7\u5F97\u6570\u636E,\u5219\u66F4\u65B0\u4E86ID. \u81EA\u5B9A\u4E49\u5199\u5165\u89E3\u6790\u811A\u672C -\u66F4\u65B0\u7684\u4F9D\u8D56\u5173\u7CFB`},"1.3.1":{en:"Fixed `autoSetValue` defaults for parsers, Fixed sentry admin integration, Updated dependencies",de:"`autoSetValue`-Standardwerte f\xFCr Parser korrigiert, Sentry-Admin-Integration korrigiert, Abh\xE4ngigkeiten aktualisiert",ru:"\u0418\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u044B \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E `autoSetValue` \u0434\u043B\u044F \u043F\u0430\u0440\u0441\u0435\u0440\u043E\u0432, \u0418\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0430 \u0438\u043D\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044F \u0441 \u0441\u0442\u043E\u0440\u043E\u0436\u0435\u0432\u044B\u043C \u0430\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440\u043E\u043C, \u041E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u044B \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438",pt:"Corrigidos padr\xF5es `autoSetValue` para analisadores, integra\xE7\xE3o de administra\xE7\xE3o sentry fixa, depend\xEAncias atualizadas",nl:"Vaste `autoSetValue`-standaardinstellingen voor parsers, Vaste Sentry-beheerdersintegratie, Bijgewerkte afhankelijkheden",fr:"Correction des valeurs par d\xE9faut de `autoSetValue` pour les analyseurs, int\xE9gration de l'administrateur de la sentinelle fixe, d\xE9pendances mises \xE0 jour",it:"Risolti i valori predefiniti di `autoSetValue` per i parser, risolta l'integrazione dell'amministratore della sentinella, Aggiornate le dipendenze",es:"Se corrigieron los valores predeterminados de `autoSetValue` para los analizadores, se corrigi\xF3 la integraci\xF3n del administrador centinela, se actualizaron las dependencias",pl:"Poprawiono domy\u015Blne ustawienia `autoSetValue` dla parser\xF3w, Poprawiono integracj\u0119 admina Sentry, Zaktualizowano zale\u017Cno\u015Bci","zh-cn":"\u4FEE\u590D\u4E86\u89E3\u6790\u5668\u7684\u201CautoSetValue\u201D\u9ED8\u8BA4\u503C\uFF0C\u4FEE\u590D\u4E86\u54E8\u5175\u7BA1\u7406\u5458\u96C6\u6210\uFF0C\u66F4\u65B0\u4E86\u4F9D\u8D56\u9879",uk:"\u0412\u0438\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0437\u0430 \u0437\u0430\u043C\u043E\u0432\u0447\u0443\u0432\u0430\u043D\u043D\u044F\u043C `autoSetValue` \u0434\u043B\u044F \u0430\u043D\u0430\u043B\u0456\u0437\u0430\u0442\u043E\u0440\u0456\u0432, \u0432\u0438\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043E \u0456\u043D\u0442\u0435\u0433\u0440\u0430\u0446\u0456\u044E \u0430\u0434\u043C\u0456\u043D\u0456\u0441\u0442\u0440\u0430\u0442\u043E\u0440\u0430 sentry, \u043E\u043D\u043E\u0432\u043B\u0435\u043D\u043E \u0437\u0430\u043B\u0435\u0436\u043D\u043E\u0441\u0442\u0456"},"1.3.0":{en:"Added sharedData object in custom parsers.",de:"sharedData-Objekt in benutzerdefinierten Parsern hinzugef\xFCgt.",ru:"\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D \u043E\u0431\u044A\u0435\u043A\u0442 sharedData \u0432 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0445 \u043F\u0430\u0440\u0441\u0435\u0440\u0430\u0445.",pt:"Adicionado o objeto sharedData em analisadores personalizados.",nl:"sharedData-object toegevoegd in aangepaste parsers.",fr:"Ajout d'un objet sharedData dans les analyseurs personnalis\xE9s.",it:"Aggiunto oggetto sharedData nei parser personalizzati.",es:"Se agreg\xF3 el objeto sharedData en analizadores personalizados.",pl:"Dodano obiekt sharedData w niestandardowych parserach.","zh-cn":"\u5728\u81EA\u5B9A\u4E49\u89E3\u6790\u5668\u4E2D\u6DFB\u52A0\u4E86 sharedData \u5BF9\u8C61\u3002",uk:"\u0414\u043E\u0434\u0430\u043D\u043E \u043E\u0431\u2019\u0454\u043A\u0442 sharedData \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u044E\u0432\u0430\u043D\u0438\u0445 \u043F\u0430\u0440\u0441\u0435\u0440\u0430\u0445."},"1.2.3":{en:"Added missing `autoSet...` parser options to csv export/import",de:"Fehlende `autoSet...`-Parser-Optionen zum CSV-Export/-Import hinzugef\xFCgt",ru:"\u0412 \u044D\u043A\u0441\u043F\u043E\u0440\u0442 / \u0438\u043C\u043F\u043E\u0440\u0442 CSV \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u044B \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u043F\u0430\u0440\u0441\u0435\u0440\u0430 autoSet ...",pt:"Adicionadas op\xE7\xF5es do analisador `autoSet ...` ausentes para exportar / importar csv",nl:"Ontbrekende `autoSet...` parser-opties toegevoegd aan csv export/import",fr:`Ajout d'options d'analyseur manquantes "autoSet..." \xE0 l'export/import csv`,it:"Aggiunte opzioni del parser `autoSet...` mancanti all'esportazione/importazione csv",es:"Se agregaron opciones faltantes del analizador `autoSet ...` a la exportaci\xF3n / importaci\xF3n de csv",pl:"Dodano brakuj\u0105ce opcje parsera `autoSet...` do eksportu/importu csv","zh-cn":"\u5411 csv \u5BFC\u51FA/\u5BFC\u5165\u6DFB\u52A0\u4E86\u7F3A\u5C11\u7684 `autoSet...` \u89E3\u6790\u5668\u9009\u9879",uk:"\u0414\u043E\u0434\u0430\u043D\u043E \u0432\u0456\u0434\u0441\u0443\u0442\u043D\u0456 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0438 \u0430\u043D\u0430\u043B\u0456\u0437\u0430\u0442\u043E\u0440\u0430 `autoSet...` \u0434\u043B\u044F \u0435\u043A\u0441\u043F\u043E\u0440\u0442\u0443/\u0456\u043C\u043F\u043E\u0440\u0442\u0443 CSV"},"1.2.2":{en:"Fixed text colors in dark theme of admin 5 and updated dependencies",de:"Textfarben im dunklen Thema von Admin 5 korrigiert und Abh\xE4ngigkeiten aktualisiert",ru:"\u0418\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u044B \u0446\u0432\u0435\u0442\u0430 \u0442\u0435\u043A\u0441\u0442\u0430 \u0432 \u0442\u0435\u043C\u043D\u043E\u0439 \u0442\u0435\u043C\u0435 admin 5 \u0438 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u044B \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438",pt:"Cores de texto corrigidas no tema escuro do admin 5 e depend\xEAncias atualizadas",nl:"Vaste tekstkleuren in donker thema van admin 5 en bijgewerkte afhankelijkheden",fr:"Couleurs de texte fixes dans le th\xE8me sombre de l'admin 5 et d\xE9pendances mises \xE0 jour",it:"Corretti i colori del testo nel tema scuro di admin 5 e le dipendenze aggiornate",es:"Colores de texto fijos en el tema oscuro de admin 5 y dependencias actualizadas",pl:"Poprawiono kolory tekstu w ciemnym motywie admina 5 i zaktualizowano zale\u017Cno\u015Bci","zh-cn":"\u4FEE\u590D\u4E86 admin 5 \u6DF1\u8272\u4E3B\u9898\u4E2D\u7684\u6587\u672C\u989C\u8272\u548C\u66F4\u65B0\u7684\u4F9D\u8D56\u9879",uk:"\u0412\u0438\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043E \u043A\u043E\u043B\u044C\u043E\u0440\u0438 \u0442\u0435\u043A\u0441\u0442\u0443 \u0432 \u0442\u0435\u043C\u043D\u0456\u0439 \u0442\u0435\u043C\u0456 admin 5 \u0456 \u043E\u043D\u043E\u0432\u043B\u0435\u043D\u043E \u0437\u0430\u043B\u0435\u0436\u043D\u043E\u0441\u0442\u0456"},"1.2.1":{en:"Added option to automatically set a certain value in a given interval for each parser",de:"Option hinzugef\xFCgt, um f\xFCr jeden Parser automatisch einen bestimmten Wert in einem bestimmten Intervall zu setzen",ru:"\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0430 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0443\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u043C \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B\u0435 \u0434\u043B\u044F \u043A\u0430\u0436\u0434\u043E\u0433\u043E \u043F\u0430\u0440\u0441\u0435\u0440\u0430.",pt:"Adicionada op\xE7\xE3o para definir automaticamente um certo valor em um determinado intervalo para cada analisador",nl:"Optie toegevoegd om automatisch een bepaalde waarde in te stellen in een bepaald interval voor elke parser",fr:"Ajout d'une option pour d\xE9finir automatiquement une certaine valeur dans un intervalle donn\xE9 pour chaque analyseur",it:"Aggiunta l'opzione per impostare automaticamente un determinato valore in un determinato intervallo per ogni parser",es:"Opci\xF3n agregada para establecer autom\xE1ticamente un cierto valor en un intervalo dado para cada analizador",pl:"Dodano opcj\u0119 automatycznego ustawiania okre\u015Blonej warto\u015Bci w zadanym przedziale dla ka\u017Cdego parsera","zh-cn":"\u6DFB\u52A0\u4E86\u5728\u7ED9\u5B9A\u95F4\u9694\u5185\u4E3A\u6BCF\u4E2A\u89E3\u6790\u5668\u81EA\u52A8\u8BBE\u7F6E\u7279\u5B9A\u503C\u7684\u9009\u9879",uk:"\u0414\u043E\u0434\u0430\u043D\u0430 \u043E\u043F\u0446\u0456\u044F \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u043D\u043E\u0433\u043E \u0432\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u044F \u043F\u0435\u0432\u043D\u043E\u0433\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0432 \u0437\u0430\u0434\u0430\u043D\u043E\u043C\u0443 \u0456\u043D\u0442\u0435\u0440\u0432\u0430\u043B\u0456 \u0434\u043B\u044F \u043A\u043E\u0436\u043D\u043E\u0433\u043E \u0430\u043D\u0430\u043B\u0456\u0437\u0430\u0442\u043E\u0440\u0430"},"1.1.4":{en:'Added license information to import of well-known configurations, Fixed "Parser returned wrong data type undefined" log message',de:'Es wurden Lizenzinformationen zum Importieren bekannter Konfigurationen hinzugef\xFCgt, Die Protokollmeldung "Parser returned wrong data type undefined" wurde behoben',ru:"\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0430 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u043E \u043B\u0438\u0446\u0435\u043D\u0437\u0438\u0438 \u0434\u043B\u044F \u0438\u043C\u043F\u043E\u0440\u0442\u0430 \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0445 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439, \u0438\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0436\u0443\u0440\u043D\u0430\u043B\u0430 \xAB\u041F\u0430\u0440\u0441\u0435\u0440 \u0432\u0435\u0440\u043D\u0443\u043B \u043D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0442\u0438\u043F \u0434\u0430\u043D\u043D\u044B\u0445 undefined\xBB",pt:'Adicionadas informa\xE7\xF5es de licen\xE7a para importa\xE7\xE3o de configura\xE7\xF5es conhecidas, mensagem de registro "O analisador retornou tipo de dados incorreto indefinido" corrigida',nl:'Licentie-informatie toegevoegd voor het importeren van bekende configuraties, Fixed "Parser retourneerde verkeerd gegevenstype ongedefinieerd" logbericht',fr:`Ajout d'informations sur la licence pour l'importation de configurations connues, correction du message de journal "L'analyseur a renvoy\xE9 un type de donn\xE9es incorrect non d\xE9fini"`,it:`Aggiunte informazioni sulla licenza per l'importazione di configurazioni note, corretto messaggio di registro "Parser restituito tipo di dati errato non definito"`,es:'Se agreg\xF3 informaci\xF3n de licencia para importar configuraciones conocidas, se corrigi\xF3 el mensaje de registro "El analizador devolvi\xF3 el tipo de datos incorrecto indefinido"',pl:"Dodano informacje o licencji do importu dobrze znanych konfiguracji, naprawiono komunikat dziennika \u201EParser zwr\xF3ci\u0142 nieprawid\u0142owy typ danych, niezdefiniowany\u201D","zh-cn":"\u6DFB\u52A0\u4E86\u8BB8\u53EF\u8BC1\u4FE1\u606F\u4EE5\u5BFC\u5165\u77E5\u540D\u914D\u7F6E\uFF0C\u4FEE\u590D\u4E86\u201C\u89E3\u6790\u5668\u8FD4\u56DE\u9519\u8BEF\u7684\u6570\u636E\u7C7B\u578B\u672A\u5B9A\u4E49\u201D\u65E5\u5FD7\u6D88\u606F",uk:"\u0414\u043E\u0434\u0430\u043D\u043E \u0456\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u044E \u043F\u0440\u043E \u043B\u0456\u0446\u0435\u043D\u0437\u0456\u044E \u0434\u043B\u044F \u0456\u043C\u043F\u043E\u0440\u0442\u0443 \u0432\u0456\u0434\u043E\u043C\u0438\u0445 \u043A\u043E\u043D\u0444\u0456\u0433\u0443\u0440\u0430\u0446\u0456\u0439, \u0432\u0438\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043E \u043F\u043E\u0432\u0456\u0434\u043E\u043C\u043B\u0435\u043D\u043D\u044F \u0436\u0443\u0440\u043D\u0430\u043B\u0443 \xAB\u0410\u043D\u0430\u043B\u0456\u0437\u0430\u0442\u043E\u0440 \u043F\u043E\u0432\u0435\u0440\u043D\u0443\u0432 \u043D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0442\u0438\u043F \u0434\u0430\u043D\u0438\u0445, \u043D\u0435 \u0432\u0438\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0439\xBB"}},titleLang:{en:"CAN-Bus",de:"CAN-Bus",ru:"CAN-Bus",pt:"\xD4nibus pode",nl:"CAN-bus",fr:"CAN-Bus",it:"CAN-Bus",uk:"CAN \u0430\u0432\u0442\u043E\u0431\u0443\u0441",es:"Puede transportar",pl:"Magistrala CAN","zh-cn":"CAN\u603B\u7EBF"},desc:{en:"CAN Bus integration",de:"CAN-Bus-Integration",ru:"\u0418\u043D\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044F \u0441 \u0448\u0438\u043D\u043E\u0439 CAN",pt:"Integra\xE7\xE3o de barramento CAN",nl:"CAN Bus-integratie",fr:"Int\xE9gration CAN Bus",it:"Integrazione CAN Bus",uk:"\u0406\u043D\u0442\u0435\u0433\u0440\u0430\u0446\u0456\u044F \u0448\u0438\u043D\u0438 CAN",es:"Integraci\xF3n de bus CAN",pl:"Integracja z magistral\u0105 CAN","zh-cn":"CAN\u603B\u7EBF\u96C6\u6210"},authors:["Peter M\xFCller "],keywords:["can","bus","can-bus","network"],licenseInformation:{license:"CC-BY-NC-SA-4.0",type:"free"},platform:"Javascript/Node.js",tier:3,icon:"canbus.png",enabled:!0,extIcon:"https://raw.githubusercontent.com/crycode-de/ioBroker.canbus/master/admin/canbus.png",readme:"https://github.com/crycode-de/ioBroker.canbus/blob/master/README.md",loglevel:"info",mode:"daemon",compact:!0,type:"hardware",connectionType:"local",dataSource:"push",adminUI:{config:"materialize"},eraseOnUpload:!0,dependencies:[{"js-controller":">=5.0.19"}],globalDependencies:[{admin:">=6.17"}],plugins:{sentry:{dsn:"https://c1c0ecf339f94ad88e89770783e281fb@sentry.cryhost.de/4"}},messages:[{condition:{operand:"and",rules:["oldVersion<2.0.0","newVersion>=2.0.0"]},title:{en:"Important notice!",de:"Wichtiger Hinweis!",ru:"\u0412\u0430\u0436\u043D\u043E\u0435 \u0437\u0430\u043C\u0435\u0447\u0430\u043D\u0438\u0435!",pt:"Not\xEDcia importante!",nl:"Belangrijke mededeling!",fr:"Avis important!",it:"Avviso IMPORTANTE!",es:"Noticia importante!",pl:"Wa\u017Cna uwaga!","zh-cn":"\u91CD\u8981\u901A\u77E5!",uk:"\u0412\u0430\u0436\u043B\u0438\u0432\u0435 \u043F\u043E\u0432\u0456\u0434\u043E\u043C\u043B\u0435\u043D\u043D\u044F!"},text:{en:"Staring with v2.0.0 of this adapter the interpetion of custom parser scripts has changed. These scripte are now run in a limited scope. If you are not doing something fancy your scripts should continue to work. If you are using getStateAsync or getObjectAsync you may need to change them to getForeignStateAsync/getForeignObjectAsync. Check readme for details.",de:"Ab Version 2.0.0 dieses Adapters hat sich die Art der Ausf\xFChrung der Skript von benutzerdefiniertenr Parsern ge\xE4ndert. Diese Skripte werden jetzt in einer eingeschr\xE4nkten Umgebung ausgef\xFChrt. Sofern keine ausgefallenen Dinge in den Skripten geschehen, sollten diese weiterhin funktionieren. Wenn getStateAsync oder getObjectAsync verwendet werden, m\xFCssen diese m\xF6glicherweise in getForeignStateAsync/getForeignObjectAsync ge\xE4ndert werden. Weitere Informationen in der Readme-Datei.",ru:"\u041D\u0430\u0447\u0438\u043D\u0430\u044F \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 2.0.0 \u044D\u0442\u043E\u0433\u043E \u0430\u0434\u0430\u043F\u0442\u0435\u0440\u0430, \u0438\u043D\u0442\u0435\u0440\u043F\u0440\u0435\u0442\u0430\u0446\u0438\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0445 \u0441\u0446\u0435\u043D\u0430\u0440\u0438\u0435\u0432 \u043F\u0430\u0440\u0441\u0435\u0440\u0430 \u0438\u0437\u043C\u0435\u043D\u0438\u043B\u0430\u0441\u044C. \u042D\u0442\u0438 \u0441\u0446\u0435\u043D\u0430\u0440\u0438\u0438 \u0442\u0435\u043F\u0435\u0440\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u044E\u0442\u0441\u044F \u0432 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u043D\u043E\u043C \u043E\u0431\u044A\u0435\u043C\u0435. \u0415\u0441\u043B\u0438 \u0432\u044B \u043D\u0435 \u0434\u0435\u043B\u0430\u0435\u0442\u0435 \u0447\u0435\u0433\u043E-\u0442\u043E \u043D\u0435\u043E\u0431\u044B\u0447\u043D\u043E\u0433\u043E, \u0432\u0430\u0448\u0438 \u0441\u0446\u0435\u043D\u0430\u0440\u0438\u0438 \u0434\u043E\u043B\u0436\u043D\u044B \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u0442\u044C \u0440\u0430\u0431\u043E\u0442\u0430\u0442\u044C. \u0415\u0441\u043B\u0438 \u0432\u044B \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0435 getStateAsync \u0438\u043B\u0438 getObjectAsync, \u0432\u0430\u043C \u043C\u043E\u0436\u0435\u0442 \u043F\u043E\u0442\u0440\u0435\u0431\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0438\u0445 \u043D\u0430 getForeignStateAsync/getForeignObjectAsync. \u041F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u0432 \u0444\u0430\u0439\u043B\u0435 readme.",pt:"A partir da vers\xE3o 2.0.0 deste adaptador, a interpreta\xE7\xE3o dos scripts do analisador customizado mudou. Esses scripts agora s\xE3o executados em um escopo limitado. Se voc\xEA n\xE3o estiver fazendo algo sofisticado, seus scripts dever\xE3o continuar funcionando. Se voc\xEA estiver usando getStateAsync ou getObjectAsync, talvez seja necess\xE1rio alter\xE1-los para getForeignStateAsync/getForeignObjectAsync. Verifique o leia-me para obter detalhes.",nl:"Sinds v2.0.0 van deze adapter is de interpetatie van aangepaste parserscripts veranderd. Deze scripts worden nu in een beperkt bereik uitgevoerd. Als u niets bijzonders doet, moeten uw scripts blijven werken. Als u getStateAsync of getObjectAsync gebruikt, moet u deze mogelijk wijzigen in getForeignStateAsync/getForeignObjectAsync. Controleer het leesmij-bestand voor meer informatie.",fr:"Depuis la version 2.0.0 de cet adaptateur, l'interpr\xE9tation des scripts d'analyseur personnalis\xE9s a chang\xE9. Ces scripts sont d\xE9sormais ex\xE9cut\xE9s dans une port\xE9e limit\xE9e. Si vous ne faites pas quelque chose d'extraordinaire, vos scripts devraient continuer \xE0 fonctionner. Si vous utilisez getStateAsync ou getObjectAsync, vous devrez peut-\xEAtre les remplacer par getForeignStateAsync/getForeignObjectAsync. Consultez le fichier Lisez-moi pour plus de d\xE9tails.",it:"A partire dalla versione 2.0.0 di questo adattatore, l'interpretazione degli script parser personalizzati \xE8 cambiata. Questi script vengono ora eseguiti in un ambito limitato. Se non stai facendo qualcosa di fantasioso, i tuoi script dovrebbero continuare a funzionare. Se utilizzi getStateAsync o getObjectAsync potrebbe essere necessario modificarli in getForeignStateAsync/getForeignObjectAsync. Controlla il file Leggimi per i dettagli.",es:"A partir de la versi\xF3n 2.0.0 de este adaptador, la interpretaci\xF3n de los scripts del analizador personalizado ha cambiado. Estos scripts ahora se ejecutan en un \xE1mbito limitado. Si no est\xE1 haciendo algo sofisticado, sus scripts deber\xEDan seguir funcionando. Si est\xE1 utilizando getStateAsync o getObjectAsync, es posible que deba cambiarlos a getForeignStateAsync/getForeignObjectAsync. Consulte el archivo L\xE9ame para obtener m\xE1s detalles.",pl:"Pocz\u0105wszy od wersji 2.0.0 tego adaptera, zmieni\u0142o si\u0119 interpretowanie niestandardowych skrypt\xF3w analizatora sk\u0142adni. Te skrypty s\u0105 teraz uruchamiane w ograniczonym zakresie. Je\u015Bli nie robisz czego\u015B wymy\u015Blnego, Twoje skrypty powinny nadal dzia\u0142a\u0107. Je\u015Bli u\u017Cywasz getStateAsync lub getObjectAsync, mo\u017Ce by\u0107 konieczna ich zmiana na getForeignStateAsync/getForeignObjectAsync. Sprawd\u017A plik Readme, aby uzyska\u0107 szczeg\xF3\u0142owe informacje.",uk:"\u041F\u043E\u0447\u0438\u043D\u0430\u044E\u0447\u0438 \u0437 \u0432\u0435\u0440\u0441\u0456\u0457 2.0.0 \u0446\u044C\u043E\u0433\u043E \u0430\u0434\u0430\u043F\u0442\u0435\u0440\u0430, \u0456\u043D\u0442\u0435\u0440\u043F\u0440\u0435\u0442\u0430\u0446\u0456\u044F \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0438\u0445 \u0441\u0446\u0435\u043D\u0430\u0440\u0456\u0457\u0432 \u0441\u0438\u043D\u0442\u0430\u043A\u0441\u0438\u0447\u043D\u043E\u0433\u043E \u0430\u043D\u0430\u043B\u0456\u0437\u0430\u0442\u043E\u0440\u0430 \u0437\u043C\u0456\u043D\u0438\u043B\u0430\u0441\u044F. \u0426\u0456 \u0441\u0446\u0435\u043D\u0430\u0440\u0456\u0457 \u0442\u0435\u043F\u0435\u0440 \u0432\u0438\u043A\u043E\u043D\u0443\u044E\u0442\u044C\u0441\u044F \u0432 \u043E\u0431\u043C\u0435\u0436\u0435\u043D\u043E\u043C\u0443 \u043E\u0431\u0441\u044F\u0437\u0456. \u042F\u043A\u0449\u043E \u0432\u0438 \u043D\u0435 \u0440\u043E\u0431\u0438\u0442\u0435 \u043D\u0456\u0447\u043E\u0433\u043E \u0434\u0438\u0432\u043D\u043E\u0433\u043E, \u0432\u0430\u0448\u0456 \u0441\u0446\u0435\u043D\u0430\u0440\u0456\u0457 \u043F\u043E\u0432\u0438\u043D\u043D\u0456 \u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0443\u0432\u0430\u0442\u0438 \u043F\u0440\u0430\u0446\u044E\u0432\u0430\u0442\u0438. \u042F\u043A\u0449\u043E \u0432\u0438 \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u043E\u0432\u0443\u0454\u0442\u0435 getStateAsync \u0430\u0431\u043E getObjectAsync, \u0432\u0430\u043C \u043C\u043E\u0436\u0435 \u0437\u043D\u0430\u0434\u043E\u0431\u0438\u0442\u0438\u0441\u044F \u0437\u043C\u0456\u043D\u0438\u0442\u0438 \u0457\u0445 \u043D\u0430 getForeignStateAsync/getForeignObjectAsync. \u041F\u043E\u0434\u0440\u043E\u0431\u0438\u0446\u0456 \u043F\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u0432 readme.","zh-cn":"\u4ECE\u8BE5\u9002\u914D\u5668\u7684 v2.0.0 \u5F00\u59CB\uFF0C\u81EA\u5B9A\u4E49\u89E3\u6790\u5668\u811A\u672C\u7684\u89E3\u91CA\u5DF2\u53D1\u751F\u53D8\u5316\u3002\u8FD9\u4E9B\u811A\u672C\u73B0\u5728\u5728\u6709\u9650\u7684\u8303\u56F4\u5185\u8FD0\u884C\u3002\u5982\u679C\u60A8\u6CA1\u6709\u505A\u4E00\u4E9B\u5947\u7279\u7684\u4E8B\u60C5\uFF0C\u60A8\u7684\u811A\u672C\u5E94\u8BE5\u7EE7\u7EED\u5DE5\u4F5C\u3002\u5982\u679C\u60A8\u4F7F\u7528 getStateAsync \u6216 getObjectAsync\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u5C06\u5B83\u4EEC\u66F4\u6539\u4E3A getForeignStateAsync/getForeignObjectAsync\u3002\u67E5\u770B\u81EA\u8FF0\u6587\u4EF6\u4E86\u89E3\u8BE6\u7EC6\u4FE1\u606F\u3002"},link:"https://github.com/crycode-de/ioBroker.discord#changelog",level:"warn",linkText:{en:"Changelog",de:"\xC4nderungsprotokoll",ru:"\u0421\u043F\u0438\u0441\u043E\u043A \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0439",pt:"Registro de altera\xE7\xF5es",nl:"Wijzigingslog",fr:"Journal des modifications",it:"Registro delle modifiche",es:"registro de cambios",pl:"Dziennik zmian","zh-cn":"\u53D8\u66F4\u65E5\u5FD7",uk:"\u0416\u0443\u0440\u043D\u0430\u043B \u0437\u043C\u0456\u043D"},buttons:["agree","cancel"]}]};var BVe=t=>({root:{}}),GI=class extends mse.default{constructor(e){let r={...e,encryptedFields:[],translations:{en:nse(),de:ose(),ru:ase(),pt:ise(),nl:sse(),fr:use(),it:lse(),es:cse(),pl:dse(),"zh-cn":fse()},sentryDSN:HI.plugins.sentry.dsn};super(e,r)}async onConnectionReady(){var r;let e=await this.socket.getObject(this.instanceId);this.savedNative=(r=e==null?void 0:e.native)!=null?r:{}}getIsChanged(e){return!xL(this.savedNative,e)}onPrepareSave(e){for(let r in e.messages)typeof e.messages[r].dlc!="number"&&(e.messages[r].dlc=-1);return super.onPrepareSave(e)}render(){if(!this.state.loaded)return super.render();let{theme:e}=this.state,r={socket:this.socket,adapterName:this.adapterName,instance:this.instance};return Z_.default.createElement(S_,{fallback:Z_.default.createElement("p",null,"An error has occurred"),showDialog:!0},Z_.default.createElement("div",{className:"App",style:{background:e.palette.background.default,color:e.palette.text.primary}},Z_.default.createElement(tse,{common:this.common,context:r,native:this.state.native,onChange:(n,o)=>this.updateNativeValue(n,o),onError:n=>this.showError(n),onValidate:n=>this.setState({isConfigurationError:n?"":hse.default.t("Your configuration is invalid. Please check the settings marked in red.")}),setNative:this.setNative,showToast:n=>this.showToast(n)}),this.renderError(),this.renderToast(),this.renderSaveCloseButtons()))}setNative(e){e=JSON.parse(JSON.stringify(e));let r=this.getIsChanged(e);this.setState({loaded:!1},()=>{this.setState({native:e,changed:r,loaded:!0})})}};Et([Tt],GI.prototype,"setNative",1);var gse=(0,pse.withStyles)(BVe)(GI);var vse=Sse.default.getThemeName();function Ese(){yse.default.render(vB.default.createElement(_se.MuiThemeProvider,{theme:(0,bse.default)(vse)},vB.default.createElement(gse,{adapterName:HI.name,onThemeChange:t=>{vse=t,Ese()}})),document.getElementById("root"))}Ese();})(); +\u66F4\u65B0\u7684\u4F9D\u8D56\u5173\u7CFB`},"1.3.1":{en:"Fixed `autoSetValue` defaults for parsers, Fixed sentry admin integration, Updated dependencies",de:"`autoSetValue`-Standardwerte f\xFCr Parser korrigiert, Sentry-Admin-Integration korrigiert, Abh\xE4ngigkeiten aktualisiert",ru:"\u0418\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u044B \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E `autoSetValue` \u0434\u043B\u044F \u043F\u0430\u0440\u0441\u0435\u0440\u043E\u0432, \u0418\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0430 \u0438\u043D\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044F \u0441 \u0441\u0442\u043E\u0440\u043E\u0436\u0435\u0432\u044B\u043C \u0430\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440\u043E\u043C, \u041E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u044B \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438",pt:"Corrigidos padr\xF5es `autoSetValue` para analisadores, integra\xE7\xE3o de administra\xE7\xE3o sentry fixa, depend\xEAncias atualizadas",nl:"Vaste `autoSetValue`-standaardinstellingen voor parsers, Vaste Sentry-beheerdersintegratie, Bijgewerkte afhankelijkheden",fr:"Correction des valeurs par d\xE9faut de `autoSetValue` pour les analyseurs, int\xE9gration de l'administrateur de la sentinelle fixe, d\xE9pendances mises \xE0 jour",it:"Risolti i valori predefiniti di `autoSetValue` per i parser, risolta l'integrazione dell'amministratore della sentinella, Aggiornate le dipendenze",es:"Se corrigieron los valores predeterminados de `autoSetValue` para los analizadores, se corrigi\xF3 la integraci\xF3n del administrador centinela, se actualizaron las dependencias",pl:"Poprawiono domy\u015Blne ustawienia `autoSetValue` dla parser\xF3w, Poprawiono integracj\u0119 admina Sentry, Zaktualizowano zale\u017Cno\u015Bci","zh-cn":"\u4FEE\u590D\u4E86\u89E3\u6790\u5668\u7684\u201CautoSetValue\u201D\u9ED8\u8BA4\u503C\uFF0C\u4FEE\u590D\u4E86\u54E8\u5175\u7BA1\u7406\u5458\u96C6\u6210\uFF0C\u66F4\u65B0\u4E86\u4F9D\u8D56\u9879",uk:"\u0412\u0438\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0437\u0430 \u0437\u0430\u043C\u043E\u0432\u0447\u0443\u0432\u0430\u043D\u043D\u044F\u043C `autoSetValue` \u0434\u043B\u044F \u0430\u043D\u0430\u043B\u0456\u0437\u0430\u0442\u043E\u0440\u0456\u0432, \u0432\u0438\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043E \u0456\u043D\u0442\u0435\u0433\u0440\u0430\u0446\u0456\u044E \u0430\u0434\u043C\u0456\u043D\u0456\u0441\u0442\u0440\u0430\u0442\u043E\u0440\u0430 sentry, \u043E\u043D\u043E\u0432\u043B\u0435\u043D\u043E \u0437\u0430\u043B\u0435\u0436\u043D\u043E\u0441\u0442\u0456"},"1.3.0":{en:"Added sharedData object in custom parsers.",de:"sharedData-Objekt in benutzerdefinierten Parsern hinzugef\xFCgt.",ru:"\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D \u043E\u0431\u044A\u0435\u043A\u0442 sharedData \u0432 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0445 \u043F\u0430\u0440\u0441\u0435\u0440\u0430\u0445.",pt:"Adicionado o objeto sharedData em analisadores personalizados.",nl:"sharedData-object toegevoegd in aangepaste parsers.",fr:"Ajout d'un objet sharedData dans les analyseurs personnalis\xE9s.",it:"Aggiunto oggetto sharedData nei parser personalizzati.",es:"Se agreg\xF3 el objeto sharedData en analizadores personalizados.",pl:"Dodano obiekt sharedData w niestandardowych parserach.","zh-cn":"\u5728\u81EA\u5B9A\u4E49\u89E3\u6790\u5668\u4E2D\u6DFB\u52A0\u4E86 sharedData \u5BF9\u8C61\u3002",uk:"\u0414\u043E\u0434\u0430\u043D\u043E \u043E\u0431\u2019\u0454\u043A\u0442 sharedData \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u044E\u0432\u0430\u043D\u0438\u0445 \u043F\u0430\u0440\u0441\u0435\u0440\u0430\u0445."},"1.2.3":{en:"Added missing `autoSet...` parser options to csv export/import",de:"Fehlende `autoSet...`-Parser-Optionen zum CSV-Export/-Import hinzugef\xFCgt",ru:"\u0412 \u044D\u043A\u0441\u043F\u043E\u0440\u0442 / \u0438\u043C\u043F\u043E\u0440\u0442 CSV \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u044B \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u043F\u0430\u0440\u0441\u0435\u0440\u0430 autoSet ...",pt:"Adicionadas op\xE7\xF5es do analisador `autoSet ...` ausentes para exportar / importar csv",nl:"Ontbrekende `autoSet...` parser-opties toegevoegd aan csv export/import",fr:`Ajout d'options d'analyseur manquantes "autoSet..." \xE0 l'export/import csv`,it:"Aggiunte opzioni del parser `autoSet...` mancanti all'esportazione/importazione csv",es:"Se agregaron opciones faltantes del analizador `autoSet ...` a la exportaci\xF3n / importaci\xF3n de csv",pl:"Dodano brakuj\u0105ce opcje parsera `autoSet...` do eksportu/importu csv","zh-cn":"\u5411 csv \u5BFC\u51FA/\u5BFC\u5165\u6DFB\u52A0\u4E86\u7F3A\u5C11\u7684 `autoSet...` \u89E3\u6790\u5668\u9009\u9879",uk:"\u0414\u043E\u0434\u0430\u043D\u043E \u0432\u0456\u0434\u0441\u0443\u0442\u043D\u0456 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0438 \u0430\u043D\u0430\u043B\u0456\u0437\u0430\u0442\u043E\u0440\u0430 `autoSet...` \u0434\u043B\u044F \u0435\u043A\u0441\u043F\u043E\u0440\u0442\u0443/\u0456\u043C\u043F\u043E\u0440\u0442\u0443 CSV"},"1.2.2":{en:"Fixed text colors in dark theme of admin 5 and updated dependencies",de:"Textfarben im dunklen Thema von Admin 5 korrigiert und Abh\xE4ngigkeiten aktualisiert",ru:"\u0418\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u044B \u0446\u0432\u0435\u0442\u0430 \u0442\u0435\u043A\u0441\u0442\u0430 \u0432 \u0442\u0435\u043C\u043D\u043E\u0439 \u0442\u0435\u043C\u0435 admin 5 \u0438 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u044B \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438",pt:"Cores de texto corrigidas no tema escuro do admin 5 e depend\xEAncias atualizadas",nl:"Vaste tekstkleuren in donker thema van admin 5 en bijgewerkte afhankelijkheden",fr:"Couleurs de texte fixes dans le th\xE8me sombre de l'admin 5 et d\xE9pendances mises \xE0 jour",it:"Corretti i colori del testo nel tema scuro di admin 5 e le dipendenze aggiornate",es:"Colores de texto fijos en el tema oscuro de admin 5 y dependencias actualizadas",pl:"Poprawiono kolory tekstu w ciemnym motywie admina 5 i zaktualizowano zale\u017Cno\u015Bci","zh-cn":"\u4FEE\u590D\u4E86 admin 5 \u6DF1\u8272\u4E3B\u9898\u4E2D\u7684\u6587\u672C\u989C\u8272\u548C\u66F4\u65B0\u7684\u4F9D\u8D56\u9879",uk:"\u0412\u0438\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043E \u043A\u043E\u043B\u044C\u043E\u0440\u0438 \u0442\u0435\u043A\u0441\u0442\u0443 \u0432 \u0442\u0435\u043C\u043D\u0456\u0439 \u0442\u0435\u043C\u0456 admin 5 \u0456 \u043E\u043D\u043E\u0432\u043B\u0435\u043D\u043E \u0437\u0430\u043B\u0435\u0436\u043D\u043E\u0441\u0442\u0456"},"1.2.1":{en:"Added option to automatically set a certain value in a given interval for each parser",de:"Option hinzugef\xFCgt, um f\xFCr jeden Parser automatisch einen bestimmten Wert in einem bestimmten Intervall zu setzen",ru:"\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0430 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0443\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u043C \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B\u0435 \u0434\u043B\u044F \u043A\u0430\u0436\u0434\u043E\u0433\u043E \u043F\u0430\u0440\u0441\u0435\u0440\u0430.",pt:"Adicionada op\xE7\xE3o para definir automaticamente um certo valor em um determinado intervalo para cada analisador",nl:"Optie toegevoegd om automatisch een bepaalde waarde in te stellen in een bepaald interval voor elke parser",fr:"Ajout d'une option pour d\xE9finir automatiquement une certaine valeur dans un intervalle donn\xE9 pour chaque analyseur",it:"Aggiunta l'opzione per impostare automaticamente un determinato valore in un determinato intervallo per ogni parser",es:"Opci\xF3n agregada para establecer autom\xE1ticamente un cierto valor en un intervalo dado para cada analizador",pl:"Dodano opcj\u0119 automatycznego ustawiania okre\u015Blonej warto\u015Bci w zadanym przedziale dla ka\u017Cdego parsera","zh-cn":"\u6DFB\u52A0\u4E86\u5728\u7ED9\u5B9A\u95F4\u9694\u5185\u4E3A\u6BCF\u4E2A\u89E3\u6790\u5668\u81EA\u52A8\u8BBE\u7F6E\u7279\u5B9A\u503C\u7684\u9009\u9879",uk:"\u0414\u043E\u0434\u0430\u043D\u0430 \u043E\u043F\u0446\u0456\u044F \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u043D\u043E\u0433\u043E \u0432\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u044F \u043F\u0435\u0432\u043D\u043E\u0433\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0432 \u0437\u0430\u0434\u0430\u043D\u043E\u043C\u0443 \u0456\u043D\u0442\u0435\u0440\u0432\u0430\u043B\u0456 \u0434\u043B\u044F \u043A\u043E\u0436\u043D\u043E\u0433\u043E \u0430\u043D\u0430\u043B\u0456\u0437\u0430\u0442\u043E\u0440\u0430"}},titleLang:{en:"CAN-Bus",de:"CAN-Bus",ru:"CAN-Bus",pt:"\xD4nibus pode",nl:"CAN-bus",fr:"CAN-Bus",it:"CAN-Bus",uk:"CAN \u0430\u0432\u0442\u043E\u0431\u0443\u0441",es:"Puede transportar",pl:"Magistrala CAN","zh-cn":"CAN\u603B\u7EBF"},desc:{en:"CAN Bus integration",de:"CAN-Bus-Integration",ru:"\u0418\u043D\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044F \u0441 \u0448\u0438\u043D\u043E\u0439 CAN",pt:"Integra\xE7\xE3o de barramento CAN",nl:"CAN Bus-integratie",fr:"Int\xE9gration CAN Bus",it:"Integrazione CAN Bus",uk:"\u0406\u043D\u0442\u0435\u0433\u0440\u0430\u0446\u0456\u044F \u0448\u0438\u043D\u0438 CAN",es:"Integraci\xF3n de bus CAN",pl:"Integracja z magistral\u0105 CAN","zh-cn":"CAN\u603B\u7EBF\u96C6\u6210"},authors:["Peter M\xFCller "],keywords:["can","bus","can-bus","network"],licenseInformation:{license:"CC-BY-NC-SA-4.0",type:"free"},platform:"Javascript/Node.js",tier:3,icon:"canbus.png",enabled:!0,extIcon:"https://raw.githubusercontent.com/crycode-de/ioBroker.canbus/master/admin/canbus.png",readme:"https://github.com/crycode-de/ioBroker.canbus/blob/master/README.md",loglevel:"info",mode:"daemon",compact:!0,type:"hardware",connectionType:"local",dataSource:"push",adminUI:{config:"materialize"},eraseOnUpload:!0,dependencies:[{"js-controller":">=5.0.19"}],globalDependencies:[{admin:">=6.17"}],plugins:{sentry:{dsn:"https://c1c0ecf339f94ad88e89770783e281fb@sentry.cryhost.de/4"}},messages:[{condition:{operand:"and",rules:["oldVersion<2.0.0","newVersion>=2.0.0"]},title:{en:"Important notice!",de:"Wichtiger Hinweis!",ru:"\u0412\u0430\u0436\u043D\u043E\u0435 \u0437\u0430\u043C\u0435\u0447\u0430\u043D\u0438\u0435!",pt:"Not\xEDcia importante!",nl:"Belangrijke mededeling!",fr:"Avis important!",it:"Avviso IMPORTANTE!",es:"Noticia importante!",pl:"Wa\u017Cna uwaga!","zh-cn":"\u91CD\u8981\u901A\u77E5!",uk:"\u0412\u0430\u0436\u043B\u0438\u0432\u0435 \u043F\u043E\u0432\u0456\u0434\u043E\u043C\u043B\u0435\u043D\u043D\u044F!"},text:{en:"Staring with v2.0.0 of this adapter the interpetion of custom parser scripts has changed. These scripte are now run in a limited scope. If you are not doing something fancy your scripts should continue to work. If you are using getStateAsync or getObjectAsync you may need to change them to getForeignStateAsync/getForeignObjectAsync. Check readme for details.",de:"Ab Version 2.0.0 dieses Adapters hat sich die Art der Ausf\xFChrung der Skript von benutzerdefiniertenr Parsern ge\xE4ndert. Diese Skripte werden jetzt in einer eingeschr\xE4nkten Umgebung ausgef\xFChrt. Sofern keine ausgefallenen Dinge in den Skripten geschehen, sollten diese weiterhin funktionieren. Wenn getStateAsync oder getObjectAsync verwendet werden, m\xFCssen diese m\xF6glicherweise in getForeignStateAsync/getForeignObjectAsync ge\xE4ndert werden. Weitere Informationen in der Readme-Datei.",ru:"\u041D\u0430\u0447\u0438\u043D\u0430\u044F \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 2.0.0 \u044D\u0442\u043E\u0433\u043E \u0430\u0434\u0430\u043F\u0442\u0435\u0440\u0430, \u0438\u043D\u0442\u0435\u0440\u043F\u0440\u0435\u0442\u0430\u0446\u0438\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0445 \u0441\u0446\u0435\u043D\u0430\u0440\u0438\u0435\u0432 \u043F\u0430\u0440\u0441\u0435\u0440\u0430 \u0438\u0437\u043C\u0435\u043D\u0438\u043B\u0430\u0441\u044C. \u042D\u0442\u0438 \u0441\u0446\u0435\u043D\u0430\u0440\u0438\u0438 \u0442\u0435\u043F\u0435\u0440\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u044E\u0442\u0441\u044F \u0432 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u043D\u043E\u043C \u043E\u0431\u044A\u0435\u043C\u0435. \u0415\u0441\u043B\u0438 \u0432\u044B \u043D\u0435 \u0434\u0435\u043B\u0430\u0435\u0442\u0435 \u0447\u0435\u0433\u043E-\u0442\u043E \u043D\u0435\u043E\u0431\u044B\u0447\u043D\u043E\u0433\u043E, \u0432\u0430\u0448\u0438 \u0441\u0446\u0435\u043D\u0430\u0440\u0438\u0438 \u0434\u043E\u043B\u0436\u043D\u044B \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u0442\u044C \u0440\u0430\u0431\u043E\u0442\u0430\u0442\u044C. \u0415\u0441\u043B\u0438 \u0432\u044B \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0435 getStateAsync \u0438\u043B\u0438 getObjectAsync, \u0432\u0430\u043C \u043C\u043E\u0436\u0435\u0442 \u043F\u043E\u0442\u0440\u0435\u0431\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0438\u0445 \u043D\u0430 getForeignStateAsync/getForeignObjectAsync. \u041F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u0432 \u0444\u0430\u0439\u043B\u0435 readme.",pt:"A partir da vers\xE3o 2.0.0 deste adaptador, a interpreta\xE7\xE3o dos scripts do analisador customizado mudou. Esses scripts agora s\xE3o executados em um escopo limitado. Se voc\xEA n\xE3o estiver fazendo algo sofisticado, seus scripts dever\xE3o continuar funcionando. Se voc\xEA estiver usando getStateAsync ou getObjectAsync, talvez seja necess\xE1rio alter\xE1-los para getForeignStateAsync/getForeignObjectAsync. Verifique o leia-me para obter detalhes.",nl:"Sinds v2.0.0 van deze adapter is de interpetatie van aangepaste parserscripts veranderd. Deze scripts worden nu in een beperkt bereik uitgevoerd. Als u niets bijzonders doet, moeten uw scripts blijven werken. Als u getStateAsync of getObjectAsync gebruikt, moet u deze mogelijk wijzigen in getForeignStateAsync/getForeignObjectAsync. Controleer het leesmij-bestand voor meer informatie.",fr:"Depuis la version 2.0.0 de cet adaptateur, l'interpr\xE9tation des scripts d'analyseur personnalis\xE9s a chang\xE9. Ces scripts sont d\xE9sormais ex\xE9cut\xE9s dans une port\xE9e limit\xE9e. Si vous ne faites pas quelque chose d'extraordinaire, vos scripts devraient continuer \xE0 fonctionner. Si vous utilisez getStateAsync ou getObjectAsync, vous devrez peut-\xEAtre les remplacer par getForeignStateAsync/getForeignObjectAsync. Consultez le fichier Lisez-moi pour plus de d\xE9tails.",it:"A partire dalla versione 2.0.0 di questo adattatore, l'interpretazione degli script parser personalizzati \xE8 cambiata. Questi script vengono ora eseguiti in un ambito limitato. Se non stai facendo qualcosa di fantasioso, i tuoi script dovrebbero continuare a funzionare. Se utilizzi getStateAsync o getObjectAsync potrebbe essere necessario modificarli in getForeignStateAsync/getForeignObjectAsync. Controlla il file Leggimi per i dettagli.",es:"A partir de la versi\xF3n 2.0.0 de este adaptador, la interpretaci\xF3n de los scripts del analizador personalizado ha cambiado. Estos scripts ahora se ejecutan en un \xE1mbito limitado. Si no est\xE1 haciendo algo sofisticado, sus scripts deber\xEDan seguir funcionando. Si est\xE1 utilizando getStateAsync o getObjectAsync, es posible que deba cambiarlos a getForeignStateAsync/getForeignObjectAsync. Consulte el archivo L\xE9ame para obtener m\xE1s detalles.",pl:"Pocz\u0105wszy od wersji 2.0.0 tego adaptera, zmieni\u0142o si\u0119 interpretowanie niestandardowych skrypt\xF3w analizatora sk\u0142adni. Te skrypty s\u0105 teraz uruchamiane w ograniczonym zakresie. Je\u015Bli nie robisz czego\u015B wymy\u015Blnego, Twoje skrypty powinny nadal dzia\u0142a\u0107. Je\u015Bli u\u017Cywasz getStateAsync lub getObjectAsync, mo\u017Ce by\u0107 konieczna ich zmiana na getForeignStateAsync/getForeignObjectAsync. Sprawd\u017A plik Readme, aby uzyska\u0107 szczeg\xF3\u0142owe informacje.",uk:"\u041F\u043E\u0447\u0438\u043D\u0430\u044E\u0447\u0438 \u0437 \u0432\u0435\u0440\u0441\u0456\u0457 2.0.0 \u0446\u044C\u043E\u0433\u043E \u0430\u0434\u0430\u043F\u0442\u0435\u0440\u0430, \u0456\u043D\u0442\u0435\u0440\u043F\u0440\u0435\u0442\u0430\u0446\u0456\u044F \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0438\u0445 \u0441\u0446\u0435\u043D\u0430\u0440\u0456\u0457\u0432 \u0441\u0438\u043D\u0442\u0430\u043A\u0441\u0438\u0447\u043D\u043E\u0433\u043E \u0430\u043D\u0430\u043B\u0456\u0437\u0430\u0442\u043E\u0440\u0430 \u0437\u043C\u0456\u043D\u0438\u043B\u0430\u0441\u044F. \u0426\u0456 \u0441\u0446\u0435\u043D\u0430\u0440\u0456\u0457 \u0442\u0435\u043F\u0435\u0440 \u0432\u0438\u043A\u043E\u043D\u0443\u044E\u0442\u044C\u0441\u044F \u0432 \u043E\u0431\u043C\u0435\u0436\u0435\u043D\u043E\u043C\u0443 \u043E\u0431\u0441\u044F\u0437\u0456. \u042F\u043A\u0449\u043E \u0432\u0438 \u043D\u0435 \u0440\u043E\u0431\u0438\u0442\u0435 \u043D\u0456\u0447\u043E\u0433\u043E \u0434\u0438\u0432\u043D\u043E\u0433\u043E, \u0432\u0430\u0448\u0456 \u0441\u0446\u0435\u043D\u0430\u0440\u0456\u0457 \u043F\u043E\u0432\u0438\u043D\u043D\u0456 \u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0443\u0432\u0430\u0442\u0438 \u043F\u0440\u0430\u0446\u044E\u0432\u0430\u0442\u0438. \u042F\u043A\u0449\u043E \u0432\u0438 \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u043E\u0432\u0443\u0454\u0442\u0435 getStateAsync \u0430\u0431\u043E getObjectAsync, \u0432\u0430\u043C \u043C\u043E\u0436\u0435 \u0437\u043D\u0430\u0434\u043E\u0431\u0438\u0442\u0438\u0441\u044F \u0437\u043C\u0456\u043D\u0438\u0442\u0438 \u0457\u0445 \u043D\u0430 getForeignStateAsync/getForeignObjectAsync. \u041F\u043E\u0434\u0440\u043E\u0431\u0438\u0446\u0456 \u043F\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u0432 readme.","zh-cn":"\u4ECE\u8BE5\u9002\u914D\u5668\u7684 v2.0.0 \u5F00\u59CB\uFF0C\u81EA\u5B9A\u4E49\u89E3\u6790\u5668\u811A\u672C\u7684\u89E3\u91CA\u5DF2\u53D1\u751F\u53D8\u5316\u3002\u8FD9\u4E9B\u811A\u672C\u73B0\u5728\u5728\u6709\u9650\u7684\u8303\u56F4\u5185\u8FD0\u884C\u3002\u5982\u679C\u60A8\u6CA1\u6709\u505A\u4E00\u4E9B\u5947\u7279\u7684\u4E8B\u60C5\uFF0C\u60A8\u7684\u811A\u672C\u5E94\u8BE5\u7EE7\u7EED\u5DE5\u4F5C\u3002\u5982\u679C\u60A8\u4F7F\u7528 getStateAsync \u6216 getObjectAsync\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u5C06\u5B83\u4EEC\u66F4\u6539\u4E3A getForeignStateAsync/getForeignObjectAsync\u3002\u67E5\u770B\u81EA\u8FF0\u6587\u4EF6\u4E86\u89E3\u8BE6\u7EC6\u4FE1\u606F\u3002"},link:"https://github.com/crycode-de/ioBroker.discord#changelog",level:"warn",linkText:{en:"Changelog",de:"\xC4nderungsprotokoll",ru:"\u0421\u043F\u0438\u0441\u043E\u043A \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0439",pt:"Registro de altera\xE7\xF5es",nl:"Wijzigingslog",fr:"Journal des modifications",it:"Registro delle modifiche",es:"registro de cambios",pl:"Dziennik zmian","zh-cn":"\u53D8\u66F4\u65E5\u5FD7",uk:"\u0416\u0443\u0440\u043D\u0430\u043B \u0437\u043C\u0456\u043D"},buttons:["agree","cancel"]}]};var BVe=t=>({root:{}}),GI=class extends mse.default{constructor(e){let r={...e,encryptedFields:[],translations:{en:nse(),de:ose(),ru:ase(),pt:ise(),nl:sse(),fr:use(),it:lse(),es:cse(),pl:dse(),"zh-cn":pse()},sentryDSN:HI.plugins.sentry.dsn};super(e,r)}async onConnectionReady(){var r;let e=await this.socket.getObject(this.instanceId);this.savedNative=(r=e==null?void 0:e.native)!=null?r:{}}getIsChanged(e){return!xL(this.savedNative,e)}onPrepareSave(e){for(let r in e.messages)typeof e.messages[r].dlc!="number"&&(e.messages[r].dlc=-1);return super.onPrepareSave(e)}render(){if(!this.state.loaded)return super.render();let{theme:e}=this.state,r={socket:this.socket,adapterName:this.adapterName,instance:this.instance};return Z_.default.createElement(S_,{fallback:Z_.default.createElement("p",null,"An error has occurred"),showDialog:!0},Z_.default.createElement("div",{className:"App",style:{background:e.palette.background.default,color:e.palette.text.primary}},Z_.default.createElement(tse,{common:this.common,context:r,native:this.state.native,onChange:(n,o)=>this.updateNativeValue(n,o),onError:n=>this.showError(n),onValidate:n=>this.setState({isConfigurationError:n?"":hse.default.t("Your configuration is invalid. Please check the settings marked in red.")}),setNative:this.setNative,showToast:n=>this.showToast(n)}),this.renderError(),this.renderToast(),this.renderSaveCloseButtons()))}setNative(e){e=JSON.parse(JSON.stringify(e));let r=this.getIsChanged(e);this.setState({loaded:!1},()=>{this.setState({native:e,changed:r,loaded:!0})})}};Et([Tt],GI.prototype,"setNative",1);var gse=(0,fse.withStyles)(BVe)(GI);var vse=Sse.default.getThemeName();function Ese(){yse.default.render(vB.default.createElement(_se.MuiThemeProvider,{theme:(0,bse.default)(vse)},vB.default.createElement(gse,{adapterName:HI.name,onThemeChange:t=>{vse=t,Ese()}})),document.getElementById("root"))}Ese();})(); /*! Bundled license information: object-assign/index.js: diff --git a/admin/build/index.js.map b/admin/build/index.js.map index 96109ab..40f8fec 100644 --- a/admin/build/index.js.map +++ b/admin/build/index.js.map @@ -1,7 +1,7 @@ { "version": 3, "sources": ["../../node_modules/object-assign/index.js", "../../node_modules/react/cjs/react.production.min.js", "../../node_modules/react/index.js", "../../node_modules/scheduler/cjs/scheduler.production.min.js", "../../node_modules/scheduler/index.js", "../../node_modules/react-dom/cjs/react-dom.production.min.js", "../../node_modules/react-dom/index.js", "../../node_modules/@babel/runtime/helpers/interopRequireDefault.js", "../../node_modules/@babel/runtime/helpers/typeof.js", "../../node_modules/@babel/runtime/helpers/interopRequireWildcard.js", "../../node_modules/@material-ui/utils/chainPropTypes.js", "../../node_modules/@babel/runtime/helpers/extends.js", "../../node_modules/@material-ui/utils/deepmerge.js", "../../node_modules/prop-types/lib/ReactPropTypesSecret.js", "../../node_modules/prop-types/factoryWithThrowingShims.js", "../../node_modules/prop-types/index.js", "../../node_modules/@material-ui/utils/elementAcceptingRef.js", "../../node_modules/@material-ui/utils/elementTypeAcceptingRef.js", "../../node_modules/@babel/runtime/helpers/toPrimitive.js", "../../node_modules/@babel/runtime/helpers/toPropertyKey.js", "../../node_modules/@babel/runtime/helpers/defineProperty.js", "../../node_modules/@material-ui/utils/exactProp.js", "../../node_modules/@material-ui/utils/formatMuiErrorMessage.js", "../../node_modules/react-is/cjs/react-is.production.min.js", "../../node_modules/react-is/index.js", "../../node_modules/@material-ui/utils/getDisplayName.js", "../../node_modules/@material-ui/utils/HTMLElementType.js", "../../node_modules/@material-ui/utils/ponyfillGlobal.js", "../../node_modules/@material-ui/utils/refType.js", "../../node_modules/@material-ui/utils/index.js", "../../node_modules/@material-ui/core/styles/colorManipulator.js", "../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js", "../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js", "../../node_modules/@material-ui/core/styles/createBreakpoints.js", "../../node_modules/@material-ui/core/styles/createMixins.js", "../../node_modules/@material-ui/core/colors/common.js", "../../node_modules/@material-ui/core/colors/grey.js", "../../node_modules/@material-ui/core/colors/indigo.js", "../../node_modules/@material-ui/core/colors/pink.js", "../../node_modules/@material-ui/core/colors/red.js", "../../node_modules/@material-ui/core/colors/orange.js", "../../node_modules/@material-ui/core/colors/blue.js", "../../node_modules/@material-ui/core/colors/green.js", "../../node_modules/@material-ui/core/styles/createPalette.js", "../../node_modules/@material-ui/core/styles/createTypography.js", "../../node_modules/@material-ui/core/styles/shadows.js", "../../node_modules/@material-ui/core/styles/shape.js", "../../node_modules/@material-ui/system/responsivePropType.js", "../../node_modules/@babel/runtime/helpers/arrayLikeToArray.js", "../../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js", "../../node_modules/@babel/runtime/helpers/iterableToArray.js", "../../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js", "../../node_modules/@babel/runtime/helpers/nonIterableSpread.js", "../../node_modules/@babel/runtime/helpers/toConsumableArray.js", "../../node_modules/@material-ui/system/merge.js", "../../node_modules/@material-ui/system/breakpoints.js", "../../node_modules/@material-ui/system/style.js", "../../node_modules/@material-ui/system/compose.js", "../../node_modules/@material-ui/system/borders.js", "../../node_modules/@material-ui/system/styleFunctionSx.js", "../../node_modules/@material-ui/system/display.js", "../../node_modules/@material-ui/system/flexbox.js", "../../node_modules/@material-ui/system/grid.js", "../../node_modules/@material-ui/system/palette.js", "../../node_modules/@material-ui/system/positions.js", "../../node_modules/@material-ui/system/shadows.js", "../../node_modules/@material-ui/system/sizing.js", "../../node_modules/@babel/runtime/helpers/arrayWithHoles.js", "../../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js", "../../node_modules/@babel/runtime/helpers/nonIterableRest.js", "../../node_modules/@babel/runtime/helpers/slicedToArray.js", "../../node_modules/@material-ui/system/memoize.js", "../../node_modules/@material-ui/system/spacing.js", "../../node_modules/@material-ui/system/typography.js", "../../node_modules/@material-ui/system/index.js", "../../node_modules/@material-ui/core/styles/createSpacing.js", "../../node_modules/@material-ui/core/styles/transitions.js", "../../node_modules/@material-ui/core/styles/zIndex.js", "../../node_modules/@material-ui/core/styles/createTheme.js", "../../node_modules/@material-ui/core/styles/createMuiStrictModeTheme.js", "../../node_modules/@material-ui/styles/ThemeProvider/nested.js", "../../node_modules/@material-ui/styles/createGenerateClassName/createGenerateClassName.js", "../../node_modules/@material-ui/styles/createGenerateClassName/index.js", "../../node_modules/@material-ui/styles/createStyles/createStyles.js", "../../node_modules/@material-ui/styles/createStyles/index.js", "../../node_modules/@material-ui/styles/getThemeProps/getThemeProps.js", "../../node_modules/@material-ui/styles/getThemeProps/index.js", "../../node_modules/tiny-warning/dist/tiny-warning.cjs.js", "../../node_modules/is-in-browser/dist/index.js", "../../node_modules/@babel/runtime/helpers/createClass.js", "../../node_modules/@babel/runtime/helpers/setPrototypeOf.js", "../../node_modules/@babel/runtime/helpers/inheritsLoose.js", "../../node_modules/@babel/runtime/helpers/assertThisInitialized.js", "../../node_modules/jss/dist/jss.cjs.js", "../../node_modules/jss-plugin-rule-value-function/dist/jss-plugin-rule-value-function.cjs.js", "../../node_modules/jss-plugin-global/dist/jss-plugin-global.cjs.js", "../../node_modules/jss-plugin-nested/dist/jss-plugin-nested.cjs.js", "../../node_modules/hyphenate-style-name/index.cjs.js", "../../node_modules/jss-plugin-camel-case/dist/jss-plugin-camel-case.cjs.js", "../../node_modules/jss-plugin-default-unit/dist/jss-plugin-default-unit.cjs.js", "../../node_modules/css-vendor/dist/css-vendor.cjs.js", "../../node_modules/jss-plugin-vendor-prefixer/dist/jss-plugin-vendor-prefixer.cjs.js", "../../node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.cjs.js", "../../node_modules/@material-ui/styles/jssPreset/jssPreset.js", "../../node_modules/@material-ui/styles/jssPreset/index.js", "../../node_modules/@material-ui/styles/mergeClasses/mergeClasses.js", "../../node_modules/@material-ui/styles/mergeClasses/index.js", "../../node_modules/@material-ui/styles/makeStyles/multiKeyStore.js", "../../node_modules/@material-ui/styles/useTheme/ThemeContext.js", "../../node_modules/@material-ui/styles/useTheme/useTheme.js", "../../node_modules/@material-ui/styles/useTheme/index.js", "../../node_modules/@material-ui/styles/StylesProvider/StylesProvider.js", "../../node_modules/@material-ui/styles/StylesProvider/index.js", "../../node_modules/@material-ui/styles/makeStyles/indexCounter.js", "../../node_modules/@material-ui/styles/getStylesCreator/noopTheme.js", "../../node_modules/@material-ui/styles/getStylesCreator/getStylesCreator.js", "../../node_modules/@material-ui/styles/getStylesCreator/index.js", "../../node_modules/@material-ui/styles/makeStyles/makeStyles.js", "../../node_modules/@material-ui/styles/makeStyles/index.js", "../../node_modules/@babel/runtime/helpers/classCallCheck.js", "../../node_modules/@material-ui/styles/ServerStyleSheets/ServerStyleSheets.js", "../../node_modules/@material-ui/styles/ServerStyleSheets/index.js", "../../node_modules/clsx/dist/clsx.js", "../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js", "../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js", "../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js", "../../node_modules/@material-ui/styles/styled/styled.js", "../../node_modules/@material-ui/styles/styled/index.js", "../../node_modules/@material-ui/styles/ThemeProvider/ThemeProvider.js", "../../node_modules/@material-ui/styles/ThemeProvider/index.js", "../../node_modules/@material-ui/styles/withStyles/withStyles.js", "../../node_modules/@material-ui/styles/withStyles/index.js", "../../node_modules/@material-ui/styles/withTheme/withTheme.js", "../../node_modules/@material-ui/styles/withTheme/index.js", "../../node_modules/@material-ui/styles/index.js", "../../node_modules/@material-ui/core/styles/createStyles.js", "../../node_modules/@material-ui/core/styles/defaultTheme.js", "../../node_modules/@material-ui/core/styles/makeStyles.js", "../../node_modules/@material-ui/core/styles/cssUtils.js", "../../node_modules/@material-ui/core/styles/responsiveFontSizes.js", "../../node_modules/@material-ui/core/styles/styled.js", "../../node_modules/@material-ui/core/styles/useTheme.js", "../../node_modules/@material-ui/core/styles/withStyles.js", "../../node_modules/@material-ui/core/styles/withTheme.js", "../../node_modules/@material-ui/core/styles/index.js", "../../node_modules/@iobroker/adapter-react/Theme.js", "../../node_modules/@iobroker/adapter-react/i18n.js", "../../node_modules/@iobroker/adapter-react/Components/Utils.js", "../../node_modules/@babel/runtime/helpers/getPrototypeOf.js", "../../node_modules/@babel/runtime/helpers/superPropBase.js", "../../node_modules/@babel/runtime/helpers/get.js", "../../node_modules/@babel/runtime/helpers/inherits.js", "../../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js", "../../node_modules/@iobroker/adapter-react/Connection.js", "../../node_modules/@sentry/src/is.ts", "../../node_modules/@sentry/src/string.ts", "../../node_modules/@sentry/src/aggregate-errors.ts", "../../node_modules/@sentry/src/worldwide.ts", "../../node_modules/@sentry/src/browser.ts", "../../node_modules/@sentry/src/debug-build.ts", "../../node_modules/@sentry/src/logger.ts", "../../node_modules/@sentry/src/dsn.ts", "../../node_modules/@sentry/src/error.ts", "../../node_modules/@sentry/src/object.ts", "../../node_modules/@sentry/src/node-stack-trace.ts", "../../node_modules/@sentry/src/stacktrace.ts", "../../node_modules/@sentry/src/instrument/_handlers.ts", "../../node_modules/@sentry/src/instrument/console.ts", "../../node_modules/@sentry/src/misc.ts", "../../node_modules/@sentry/src/instrument/dom.ts", "../../node_modules/@sentry/src/supports.ts", "../../node_modules/@sentry/src/instrument/fetch.ts", "../../node_modules/@sentry/src/instrument/globalError.ts", "../../node_modules/@sentry/src/instrument/globalUnhandledRejection.ts", "../../node_modules/@sentry/src/vendor/supportsHistory.ts", "../../node_modules/@sentry/src/instrument/history.ts", "../../node_modules/@sentry/src/instrument/xhr.ts", "../../node_modules/@sentry/src/instrument/index.ts", "../../node_modules/@sentry/src/env.ts", "../../node_modules/@sentry/src/node.ts", "../../node_modules/@sentry/src/isBrowser.ts", "../../node_modules/@sentry/src/memo.ts", "../../node_modules/@sentry/src/normalize.ts", "../../node_modules/@sentry/src/path.ts", "../../node_modules/@sentry/src/syncpromise.ts", "../../node_modules/@sentry/src/promisebuffer.ts", "../../node_modules/@sentry/src/cookie.ts", "../../node_modules/@sentry/src/url.ts", "../../node_modules/@sentry/src/requestdata.ts", "../../node_modules/@sentry/src/severity.ts", "../../node_modules/@sentry/src/time.ts", "../../node_modules/@sentry/src/baggage.ts", "../../node_modules/@sentry/src/tracing.ts", "../../node_modules/@sentry/src/envelope.ts", "../../node_modules/@sentry/src/clientreport.ts", "../../node_modules/@sentry/src/ratelimit.ts", "../../node_modules/@sentry/src/userIntegrations.ts", "../../node_modules/@sentry/src/cache.ts", "../../node_modules/@sentry/src/eventbuilder.ts", "../../node_modules/@sentry/src/anr.ts", "../../node_modules/@sentry/src/lru.ts", "../../node_modules/@sentry/src/buildPolyfills/_nullishCoalesce.ts", "../../node_modules/@sentry/src/buildPolyfills/_asyncNullishCoalesce.ts", "../../node_modules/@sentry/src/buildPolyfills/_asyncOptionalChain.ts", "../../node_modules/@sentry/src/buildPolyfills/_asyncOptionalChainDelete.ts", "../../node_modules/@sentry/src/buildPolyfills/_optionalChain.ts", "../../node_modules/@sentry/src/buildPolyfills/_optionalChainDelete.ts", "../../node_modules/@sentry/src/vendor/escapeStringForRegex.ts", "../../node_modules/@sentry/utils/cjs/index.js", "../../node_modules/@sentry/src/debug-build.ts", "../../node_modules/@sentry/src/constants.ts", "../../node_modules/@sentry/src/eventProcessors.ts", "../../node_modules/@sentry/src/session.ts", "../../node_modules/@sentry/src/utils/spanUtils.ts", "../../node_modules/@sentry/src/utils/prepareEvent.ts", "../../node_modules/@sentry/src/exports.ts", "../../node_modules/@sentry/src/utils/getRootSpan.ts", "../../node_modules/@sentry/src/tracing/dynamicSamplingContext.ts", "../../node_modules/@sentry/src/utils/applyScopeDataToEvent.ts", "../../node_modules/@sentry/src/scope.ts", "../../node_modules/@sentry/src/version.ts", "../../node_modules/@sentry/src/hub.ts", "../../node_modules/@sentry/src/tracing/utils.ts", "../../node_modules/@sentry/src/tracing/errors.ts", "../../node_modules/@sentry/src/tracing/spanstatus.ts", "../../node_modules/@sentry/src/utils/handleCallbackErrors.ts", "../../node_modules/@sentry/src/utils/hasTracingEnabled.ts", "../../node_modules/@sentry/src/tracing/trace.ts", "../../node_modules/@sentry/src/metrics/metric-summary.ts", "../../node_modules/@sentry/src/semanticAttributes.ts", "../../node_modules/@sentry/src/tracing/span.ts", "../../node_modules/@sentry/src/tracing/transaction.ts", "../../node_modules/@sentry/src/tracing/idletransaction.ts", "../../node_modules/@sentry/src/tracing/sampling.ts", "../../node_modules/@sentry/src/tracing/hubextensions.ts", "../../node_modules/@sentry/src/tracing/measurement.ts", "../../node_modules/@sentry/src/envelope.ts", "../../node_modules/@sentry/src/sessionflusher.ts", "../../node_modules/@sentry/src/api.ts", "../../node_modules/@sentry/src/integration.ts", "../../node_modules/@sentry/src/metrics/utils.ts", "../../node_modules/@sentry/src/metrics/envelope.ts", "../../node_modules/@sentry/src/baseclient.ts", "../../node_modules/@sentry/src/checkin.ts", "../../node_modules/@sentry/src/metrics/constants.ts", "../../node_modules/@sentry/src/metrics/instance.ts", "../../node_modules/@sentry/src/metrics/aggregator.ts", "../../node_modules/@sentry/src/server-runtime-client.ts", "../../node_modules/@sentry/src/sdk.ts", "../../node_modules/@sentry/src/transports/base.ts", "../../node_modules/@sentry/src/transports/offline.ts", "../../node_modules/@sentry/src/transports/multiplexed.ts", "../../node_modules/@sentry/src/span.ts", "../../node_modules/@sentry/src/utils/isSentryRequestUrl.ts", "../../node_modules/@sentry/src/utils/parameterize.ts", "../../node_modules/@sentry/src/utils/sdkMetadata.ts", "../../node_modules/@sentry/src/metadata.ts", "../../node_modules/@sentry/src/integrations/metadata.ts", "../../node_modules/@sentry/src/integrations/requestdata.ts", "../../node_modules/@sentry/src/integrations/inboundfilters.ts", "../../node_modules/@sentry/src/integrations/functiontostring.ts", "../../node_modules/@sentry/src/integrations/linkederrors.ts", "../../node_modules/@sentry/src/metrics/browser-aggregator.ts", "../../node_modules/@sentry/src/metrics/integration.ts", "../../node_modules/@sentry/src/metrics/exports.ts", "../../node_modules/@sentry/src/index.ts", "../../node_modules/@sentry-internal/src/common/debug-build.ts", "../../node_modules/@sentry-internal/src/node/integrations/utils/node-utils.ts", "../../node_modules/@sentry-internal/src/node/integrations/express.ts", "../../node_modules/@sentry-internal/src/node/integrations/postgres.ts", "../../node_modules/@sentry-internal/src/node/integrations/mysql.ts", "../../node_modules/@sentry-internal/src/node/integrations/mongo.ts", "../../node_modules/@sentry-internal/src/node/integrations/prisma.ts", "../../node_modules/@sentry-internal/src/node/integrations/graphql.ts", "../../node_modules/@sentry-internal/src/node/integrations/apollo.ts", "../../node_modules/@sentry-internal/src/node/integrations/lazy.ts", "../../node_modules/@sentry-internal/src/browser/types.ts", "../../node_modules/@sentry-internal/src/browser/backgroundtab.ts", "../../node_modules/@sentry-internal/src/browser/web-vitals/lib/bindReporter.ts", "../../node_modules/@sentry-internal/src/browser/web-vitals/lib/generateUniqueID.ts", "../../node_modules/@sentry-internal/src/browser/web-vitals/lib/getNavigationEntry.ts", "../../node_modules/@sentry-internal/src/browser/web-vitals/lib/getActivationStart.ts", "../../node_modules/@sentry-internal/src/browser/web-vitals/lib/initMetric.ts", "../../node_modules/@sentry-internal/src/browser/web-vitals/lib/observe.ts", "../../node_modules/@sentry-internal/src/browser/web-vitals/lib/onHidden.ts", "../../node_modules/@sentry-internal/src/browser/web-vitals/getCLS.ts", "../../node_modules/@sentry-internal/src/browser/web-vitals/lib/getVisibilityWatcher.ts", "../../node_modules/@sentry-internal/src/browser/web-vitals/getFID.ts", "../../node_modules/@sentry-internal/src/browser/web-vitals/lib/polyfills/interactionCountPolyfill.ts", "../../node_modules/@sentry-internal/src/browser/web-vitals/getINP.ts", "../../node_modules/@sentry-internal/src/browser/web-vitals/getLCP.ts", "../../node_modules/@sentry-internal/src/browser/web-vitals/onTTFB.ts", "../../node_modules/@sentry-internal/src/browser/instrument.ts", "../../node_modules/@sentry-internal/src/browser/metrics/utils.ts", "../../node_modules/@sentry-internal/src/browser/metrics/index.ts", "../../node_modules/@sentry-internal/src/common/fetch.ts", "../../node_modules/@sentry-internal/src/browser/request.ts", "../../node_modules/@sentry-internal/src/browser/router.ts", "../../node_modules/@sentry-internal/src/browser/browsertracing.ts", "../../node_modules/@sentry-internal/src/browser/browserTracingIntegration.ts", "../../node_modules/@sentry-internal/src/extensions.ts", "../../node_modules/@sentry-internal/tracing/cjs/index.js", "../../node_modules/src/helpers.ts", "../../node_modules/src/debug-build.ts", "../../node_modules/src/eventbuilder.ts", "../../node_modules/src/userfeedback.ts", "../../node_modules/src/client.ts", "../../node_modules/src/transports/utils.ts", "../../node_modules/src/transports/fetch.ts", "../../node_modules/src/transports/xhr.ts", "../../node_modules/src/stack-parsers.ts", "../../node_modules/src/integrations/breadcrumbs.ts", "../../node_modules/src/integrations/dedupe.ts", "../../node_modules/src/integrations/globalhandlers.ts", "../../node_modules/src/integrations/httpcontext.ts", "../../node_modules/src/integrations/linkederrors.ts", "../../node_modules/src/integrations/trycatch.ts", "../../node_modules/src/sdk.ts", "../../node_modules/src/constants.ts", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/rrweb/src/utils.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/types/dist/rrweb-types.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/rrweb/src/record/mutation.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/rrweb/src/record/error-handler.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/rrweb/src/record/observer.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/rrweb/src/record/cross-origin-iframe-mirror.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/rrweb/src/record/iframe-manager.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/rrweb/src/record/shadow-dom-manager.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/rrweb/src/record/observers/canvas/canvas-manager.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/rrweb/src/record/stylesheet-manager.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/rrweb/src/record/processed-node-manager.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/rrweb/src/record/index.js", "../../node_modules/src/types/rrweb.ts", "../../node_modules/src/util/timestamp.ts", "../../node_modules/src/coreHandlers/util/addBreadcrumbEvent.ts", "../../node_modules/src/coreHandlers/util/domUtils.ts", "../../node_modules/src/coreHandlers/util/onWindowOpen.ts", "../../node_modules/src/coreHandlers/handleClick.ts", "../../node_modules/src/util/createBreadcrumb.ts", "../../../node_modules/@sentry-internal/rrweb-snapshot/es/rrweb-snapshot.js", "../../node_modules/src/coreHandlers/util/getAttributesToRecord.ts", "../../node_modules/src/coreHandlers/handleDom.ts", "../../node_modules/src/coreHandlers/handleKeyboardEvent.ts", "../../node_modules/src/util/createPerformanceEntries.ts", "../../node_modules/src/coreHandlers/performanceObserver.ts", "../../node_modules/src/debug-build.ts", "../../replay-worker/build/npm/esm/worker.ts", "../../replay-worker/build/npm/esm/index.js", "../../node_modules/src/util/log.ts", "../../node_modules/src/eventBuffer/error.ts", "../../node_modules/src/eventBuffer/EventBufferArray.ts", "../../node_modules/src/eventBuffer/WorkerHandler.ts", "../../node_modules/src/eventBuffer/EventBufferCompressionWorker.ts", "../../node_modules/src/eventBuffer/EventBufferProxy.ts", "../../node_modules/src/eventBuffer/index.ts", "../../node_modules/src/util/hasSessionStorage.ts", "../../node_modules/src/session/clearSession.ts", "../../node_modules/src/util/isSampled.ts", "../../node_modules/src/session/Session.ts", "../../node_modules/src/session/saveSession.ts", "../../node_modules/src/session/createSession.ts", "../../node_modules/src/session/fetchSession.ts", "../../node_modules/src/util/isExpired.ts", "../../node_modules/src/util/isSessionExpired.ts", "../../node_modules/src/session/shouldRefreshSession.ts", "../../node_modules/src/session/loadOrCreateSession.ts", "../../node_modules/src/util/addEvent.ts", "../../node_modules/src/util/eventUtils.ts", "../../node_modules/src/coreHandlers/handleAfterSendEvent.ts", "../../node_modules/src/coreHandlers/handleBeforeSendEvent.ts", "../../node_modules/src/util/isRrwebError.ts", "../../node_modules/src/coreHandlers/util/addFeedbackBreadcrumb.ts", "../../node_modules/src/coreHandlers/util/shouldSampleForBufferEvent.ts", "../../node_modules/src/coreHandlers/handleGlobalEvent.ts", "../../node_modules/src/util/createPerformanceSpans.ts", "../../node_modules/src/coreHandlers/handleHistory.ts", "../../node_modules/src/util/shouldFilterRequest.ts", "../../node_modules/src/coreHandlers/util/addNetworkBreadcrumb.ts", "../../node_modules/src/coreHandlers/handleFetch.ts", "../../node_modules/src/coreHandlers/handleXhr.ts", "../../node_modules/src/coreHandlers/util/networkUtils.ts", "../../node_modules/src/coreHandlers/util/fetchUtils.ts", "../../node_modules/src/coreHandlers/util/xhrUtils.ts", "../../node_modules/src/coreHandlers/handleNetworkBreadcrumbs.ts", "../../node_modules/src/coreHandlers/handleScope.ts", "../../node_modules/src/util/addGlobalListeners.ts", "../../node_modules/src/util/addMemoryEntry.ts", "../../node_modules/src/util/debounce.ts", "../../node_modules/src/util/handleRecordingEmit.ts", "../../node_modules/src/util/createReplayEnvelope.ts", "../../node_modules/src/util/prepareRecordingData.ts", "../../node_modules/src/util/prepareReplayEvent.ts", "../../node_modules/src/util/sendReplayRequest.ts", "../../node_modules/src/util/sendReplay.ts", "../../node_modules/src/util/throttle.ts", "../../node_modules/src/replay.ts", "../../node_modules/src/util/getPrivacyOptions.ts", "../../node_modules/src/util/maskAttribute.ts", "../../node_modules/src/integration.ts", "../../node_modules/src/util/getReplay.ts", "../../node_modules/src/index.ts", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/rrweb/src/utils.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/types/dist/rrweb-types.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/rrweb/src/record/error-handler.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/ext/base64-arraybuffer/dist/base64-arraybuffer.es5.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/rrweb/src/record/observers/canvas/serialize-args.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/rrweb/src/record/observers/canvas/2d.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/rrweb/src/record/observers/canvas/canvas.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/rrweb/src/record/observers/canvas/webgl.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/rrweb-worker/es/rrweb-worker/image-bitmap-data-url-worker.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/rrweb-worker/es/rrweb-worker/index.js", "../../../node_modules/@sentry-internal/rrweb/es/rrweb/packages/rrweb/src/record/observers/canvas/canvas-manager.js", "../../node_modules/src/canvas.ts", "../../node_modules/src/constants.ts", "../../node_modules/src/util/prepareFeedbackEvent.ts", "../../node_modules/src/util/sendFeedbackRequest.ts", "../../node_modules/src/sendFeedback.ts", "../../node_modules/src/debug-build.ts", "../../node_modules/src/util/mergeOptions.ts", "../../node_modules/src/widget/Actor.css.ts", "../../node_modules/src/widget/Dialog.css.ts", "../../node_modules/src/widget/Main.css.ts", "../../node_modules/src/widget/createShadowHost.ts", "../../node_modules/src/util/handleFeedbackSubmit.ts", "../../node_modules/src/util/setAttributesNS.ts", "../../node_modules/src/widget/Icon.ts", "../../node_modules/src/widget/util/createElement.ts", "../../node_modules/src/widget/Actor.ts", "../../node_modules/src/widget/SubmitButton.ts", "../../node_modules/src/widget/Form.ts", "../../node_modules/src/widget/Logo.ts", "../../node_modules/src/widget/Dialog.ts", "../../node_modules/src/widget/SuccessIcon.ts", "../../node_modules/src/widget/SuccessMessage.ts", "../../node_modules/src/widget/createWidget.ts", "../../node_modules/src/integration.ts", "../../node_modules/src/captureconsole.ts", "../../node_modules/src/debug.ts", "../../node_modules/src/debug-build.ts", "../../node_modules/src/dedupe.ts", "../../node_modules/src/extraerrordata.ts", "../../node_modules/localforage/dist/localforage.js", "../../node_modules/src/offline.ts", "../../node_modules/src/reportingobserver.ts", "../../node_modules/src/rewriteframes.ts", "../../node_modules/src/sessiontiming.ts", "../../node_modules/src/transaction.ts", "../../node_modules/src/httpclient.ts", "../../node_modules/src/contextlines.ts", "../../node_modules/@sentry/integrations/cjs/index.js", "../../node_modules/src/transports/offline.ts", "../../node_modules/src/profiling/utils.ts", "../../node_modules/src/profiling/hubextensions.ts", "../../node_modules/src/profiling/integration.ts", "../../node_modules/src/index.ts", "../../node_modules/@material-ui/core/utils/setRef.js", "../../node_modules/@material-ui/core/utils/useForkRef.js", "../../node_modules/@material-ui/core/utils/useEventCallback.js", "../../node_modules/@material-ui/core/utils/deprecatedPropType.js", "../../node_modules/@material-ui/core/utils/useIsFocusVisible.js", "../../node_modules/dom-helpers/cjs/hasClass.js", "../../node_modules/dom-helpers/cjs/addClass.js", "../../node_modules/dom-helpers/cjs/removeClass.js", "../../node_modules/react-transition-group/cjs/config.js", "../../node_modules/react-transition-group/cjs/utils/PropTypes.js", "../../node_modules/react-transition-group/cjs/TransitionGroupContext.js", "../../node_modules/react-transition-group/cjs/utils/reflow.js", "../../node_modules/react-transition-group/cjs/Transition.js", "../../node_modules/react-transition-group/cjs/CSSTransition.js", "../../node_modules/react-transition-group/cjs/utils/ChildMapping.js", "../../node_modules/react-transition-group/cjs/TransitionGroup.js", "../../node_modules/react-transition-group/cjs/ReplaceTransition.js", "../../node_modules/react-transition-group/cjs/SwitchTransition.js", "../../node_modules/react-transition-group/cjs/index.js", "../../node_modules/@material-ui/core/ButtonBase/Ripple.js", "../../node_modules/@material-ui/core/ButtonBase/TouchRipple.js", "../../node_modules/@material-ui/core/ButtonBase/ButtonBase.js", "../../node_modules/@material-ui/core/ButtonBase/index.js", "../../node_modules/@material-ui/core/utils/capitalize.js", "../../node_modules/@material-ui/core/Button/Button.js", "../../node_modules/@material-ui/core/Button/index.js", "../../node_modules/@material-ui/core/utils/ownerDocument.js", "../../node_modules/@material-ui/core/Portal/Portal.js", "../../node_modules/@material-ui/core/Portal/index.js", "../../node_modules/@material-ui/core/utils/createChainedFunction.js", "../../node_modules/@material-ui/core/utils/getScrollbarSize.js", "../../node_modules/@material-ui/core/utils/ownerWindow.js", "../../node_modules/@material-ui/core/Modal/ModalManager.js", "../../node_modules/@material-ui/core/Unstable_TrapFocus/Unstable_TrapFocus.js", "../../node_modules/@material-ui/core/Unstable_TrapFocus/index.js", "../../node_modules/@material-ui/core/Modal/SimpleBackdrop.js", "../../node_modules/@material-ui/core/Modal/Modal.js", "../../node_modules/@material-ui/core/Modal/index.js", "../../node_modules/@material-ui/core/transitions/utils.js", "../../node_modules/@material-ui/core/Fade/Fade.js", "../../node_modules/@material-ui/core/Fade/index.js", "../../node_modules/@material-ui/core/Backdrop/Backdrop.js", "../../node_modules/@material-ui/core/Backdrop/index.js", "../../node_modules/@material-ui/core/Paper/Paper.js", "../../node_modules/@material-ui/core/Paper/index.js", "../../node_modules/@material-ui/core/Dialog/Dialog.js", "../../node_modules/@material-ui/core/Dialog/index.js", "../../node_modules/@material-ui/core/DialogActions/DialogActions.js", "../../node_modules/@material-ui/core/DialogActions/index.js", "../../node_modules/@material-ui/core/DialogContent/DialogContent.js", "../../node_modules/@material-ui/core/DialogContent/index.js", "../../node_modules/@material-ui/core/Typography/Typography.js", "../../node_modules/@material-ui/core/Typography/index.js", "../../node_modules/@material-ui/core/DialogContentText/DialogContentText.js", "../../node_modules/@material-ui/core/DialogContentText/index.js", "../../node_modules/@material-ui/core/DialogTitle/DialogTitle.js", "../../node_modules/@material-ui/core/DialogTitle/index.js", "../../node_modules/@material-ui/core/SvgIcon/SvgIcon.js", "../../node_modules/@material-ui/core/SvgIcon/index.js", "../../node_modules/@material-ui/core/utils/createSvgIcon.js", "../../node_modules/@material-ui/core/utils/debounce.js", "../../node_modules/@material-ui/core/utils/isMuiElement.js", "../../node_modules/@material-ui/core/utils/requirePropFactory.js", "../../node_modules/@material-ui/core/utils/unsupportedProp.js", "../../node_modules/@material-ui/core/utils/useControlled.js", "../../node_modules/@material-ui/core/utils/unstable_useId.js", "../../node_modules/@material-ui/core/utils/index.js", "../../node_modules/@material-ui/icons/utils/createSvgIcon.js", "../../node_modules/@material-ui/icons/Check.js", "../../node_modules/@iobroker/adapter-react/Dialogs/Error.js", "../../node_modules/@material-ui/core/ClickAwayListener/ClickAwayListener.js", "../../node_modules/@material-ui/core/ClickAwayListener/index.js", "../../node_modules/@material-ui/core/Grow/Grow.js", "../../node_modules/@material-ui/core/Grow/index.js", "../../node_modules/@material-ui/core/SnackbarContent/SnackbarContent.js", "../../node_modules/@material-ui/core/SnackbarContent/index.js", "../../node_modules/@material-ui/core/Snackbar/Snackbar.js", "../../node_modules/@material-ui/core/Snackbar/index.js", "../../node_modules/@material-ui/core/IconButton/IconButton.js", "../../node_modules/@material-ui/core/IconButton/index.js", "../../node_modules/@material-ui/icons/Close.js", "../../node_modules/@iobroker/adapter-react/Prompt.js", "../../node_modules/@iobroker/adapter-react/Components/loader.css", "../../node_modules/@iobroker/adapter-react/Components/Loader.js", "../../node_modules/@iobroker/adapter-react/Components/Router.js", "../../node_modules/@material-ui/core/Fab/Fab.js", "../../node_modules/@material-ui/core/Fab/index.js", "../../node_modules/@material-ui/core/Toolbar/Toolbar.js", "../../node_modules/@material-ui/core/Toolbar/index.js", "../../node_modules/@material-ui/icons/Save.js", "../../node_modules/@iobroker/adapter-react/Components/SaveCloseButtons.js", "../../node_modules/@iobroker/adapter-react/index.css", "../../node_modules/@iobroker/adapter-react/i18n/en.json", "../../node_modules/@iobroker/adapter-react/i18n/de.json", "../../node_modules/@iobroker/adapter-react/i18n/ru.json", "../../node_modules/@iobroker/adapter-react/i18n/pt.json", "../../node_modules/@iobroker/adapter-react/i18n/nl.json", "../../node_modules/@iobroker/adapter-react/i18n/fr.json", "../../node_modules/@iobroker/adapter-react/i18n/it.json", "../../node_modules/@iobroker/adapter-react/i18n/es.json", "../../node_modules/@iobroker/adapter-react/i18n/pl.json", "../../node_modules/@iobroker/adapter-react/i18n/zh-cn.json", "../../node_modules/@iobroker/adapter-react/GenericApp.js", "../../node_modules/@material-ui/icons/Add.js", "../../node_modules/@material-ui/icons/Help.js", "../../node_modules/@material-ui/icons/VerticalAlignTop.js", "../../node_modules/@material-ui/icons/VerticalAlignBottom.js", "../../node_modules/@iobroker/adapter-react/Components/Logo.js", "../../node_modules/@material-ui/core/InputBase/utils.js", "../../node_modules/@material-ui/core/FormControl/FormControlContext.js", "../../node_modules/@material-ui/core/FormControl/FormControl.js", "../../node_modules/@material-ui/core/FormControl/useFormControl.js", "../../node_modules/@material-ui/core/FormControl/index.js", "../../node_modules/@material-ui/core/FormControlLabel/FormControlLabel.js", "../../node_modules/@material-ui/core/FormControlLabel/index.js", "../../node_modules/@material-ui/core/internal/SwitchBase.js", "../../node_modules/@material-ui/core/internal/svg-icons/CheckBoxOutlineBlank.js", "../../node_modules/@material-ui/core/internal/svg-icons/CheckBox.js", "../../node_modules/@material-ui/core/internal/svg-icons/IndeterminateCheckBox.js", "../../node_modules/@material-ui/core/Checkbox/Checkbox.js", "../../node_modules/@material-ui/core/Checkbox/index.js", "../../node_modules/@material-ui/icons/Cached.js", "../../node_modules/@material-ui/icons/Visibility.js", "../../node_modules/punycode/punycode.js", "../../node_modules/es-errors/index.js", "../../node_modules/es-errors/eval.js", "../../node_modules/es-errors/range.js", "../../node_modules/es-errors/ref.js", "../../node_modules/es-errors/syntax.js", "../../node_modules/es-errors/type.js", "../../node_modules/es-errors/uri.js", "../../node_modules/has-symbols/shams.js", "../../node_modules/has-symbols/index.js", "../../node_modules/has-proto/index.js", "../../node_modules/function-bind/implementation.js", "../../node_modules/function-bind/index.js", "../../node_modules/hasown/index.js", "../../node_modules/get-intrinsic/index.js", "../../node_modules/es-define-property/index.js", "../../node_modules/gopd/index.js", "../../node_modules/define-data-property/index.js", "../../node_modules/has-property-descriptors/index.js", "../../node_modules/set-function-length/index.js", "../../node_modules/call-bind/index.js", "../../node_modules/call-bind/callBound.js", "../../node_modules/object-inspect/index.js", "../../node_modules/side-channel/index.js", "../../node_modules/qs/lib/formats.js", "../../node_modules/qs/lib/utils.js", "../../node_modules/qs/lib/stringify.js", "../../node_modules/qs/lib/parse.js", "../../node_modules/qs/lib/index.js", "../../node_modules/url/url.js", "../../node_modules/jsonschema/lib/helpers.js", "../../node_modules/jsonschema/lib/attribute.js", "../../node_modules/jsonschema/lib/scan.js", "../../node_modules/jsonschema/lib/validator.js", "../../node_modules/jsonschema/lib/index.js", "../../well-known-messages/schemas/messages.json", "../../well-known-messages/schemas/index.json", "../../node_modules/@material-ui/icons/Delete.js", "../../node_modules/@iobroker/adapter-react/Dialogs/Confirm.js", "../../node_modules/@material-ui/icons/Info.js", "../src/i18n/en.json", "../src/i18n/de.json", "../src/i18n/ru.json", "../src/i18n/pt.json", "../src/i18n/nl.json", "../src/i18n/fr.json", "../src/i18n/it.json", "../src/i18n/es.json", "../src/i18n/pl.json", "../src/i18n/zh-cn.json", "../src/index.tsx", "../../node_modules/autobind-decorator/lib/esm/index.js", "../src/app.tsx", "../../node_modules/@sentry/react/node_modules/@sentry/utils/src/is.ts", "../../node_modules/@sentry/react/node_modules/@sentry/utils/src/version.ts", "../../node_modules/@sentry/react/node_modules/@sentry/utils/src/worldwide.ts", "../../node_modules/@sentry/react/node_modules/@sentry/utils/src/debug-build.ts", "../../node_modules/@sentry/react/node_modules/@sentry/utils/src/logger.ts", "../../node_modules/@sentry/react/node_modules/@sentry/utils/src/dsn.ts", "../../node_modules/@sentry/react/node_modules/@sentry/utils/src/object.ts", "../../node_modules/@sentry/react/node_modules/@sentry/utils/src/time.ts", "../../node_modules/@sentry/react/node_modules/@sentry/utils/src/misc.ts", "../../node_modules/@sentry/react/node_modules/@sentry/utils/src/propagationContext.ts", "../../node_modules/@sentry/react/node_modules/@sentry/core/src/carrier.ts", "../../node_modules/@sentry/react/node_modules/@sentry/core/src/session.ts", "../../node_modules/@sentry/react/node_modules/@sentry/core/src/utils/spanOnScope.ts", "../../node_modules/@sentry/react/node_modules/@sentry/core/src/scope.ts", "../../node_modules/@sentry/react/node_modules/@sentry/core/src/defaultScopes.ts", "../../node_modules/@sentry/react/node_modules/@sentry/core/src/asyncContext/stackStrategy.ts", "../../node_modules/@sentry/react/node_modules/@sentry/core/src/asyncContext/index.ts", "../../node_modules/@sentry/react/node_modules/@sentry/core/src/currentScopes.ts", "../../node_modules/@sentry/react/node_modules/@sentry/core/src/utils/prepareEvent.ts", "../../node_modules/@sentry/react/node_modules/@sentry/core/src/exports.ts", "../../node_modules/@sentry/react/node_modules/@sentry/core/src/api.ts", "../../node_modules/@sentry/react/node_modules/@sentry/browser/src/helpers.ts", "../../node_modules/@sentry/react/node_modules/@sentry/browser/src/debug-build.ts", "../../node_modules/@sentry/react/node_modules/@sentry/browser/src/sdk.ts", "../../node_modules/@sentry/react/src/error.ts", "../../node_modules/@sentry/react/src/debug-build.ts", "../../node_modules/@sentry/react/src/errorboundary.tsx", "../src/components/settings.tsx", "../../node_modules/@material-ui/core/esm/Box/Box.js", "../../node_modules/@babel/runtime/helpers/esm/extends.js", "../../node_modules/@material-ui/core/esm/styles/styled.js", "../../node_modules/@babel/runtime/helpers/esm/typeof.js", "../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js", "../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js", "../../node_modules/@babel/runtime/helpers/esm/defineProperty.js", "../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js", "../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js", "../../node_modules/@material-ui/core/esm/styles/createTheme.js", "../../node_modules/@material-ui/core/esm/styles/createBreakpoints.js", "../../node_modules/@material-ui/core/esm/styles/createMixins.js", "../../node_modules/@material-ui/core/esm/styles/createPalette.js", "../../node_modules/@material-ui/core/esm/colors/common.js", "../../node_modules/@material-ui/core/esm/colors/grey.js", "../../node_modules/@material-ui/core/esm/colors/indigo.js", "../../node_modules/@material-ui/core/esm/colors/pink.js", "../../node_modules/@material-ui/core/esm/colors/red.js", "../../node_modules/@material-ui/core/esm/colors/orange.js", "../../node_modules/@material-ui/core/esm/colors/blue.js", "../../node_modules/@material-ui/core/esm/colors/green.js", "../../node_modules/@material-ui/core/esm/styles/colorManipulator.js", "../../node_modules/@material-ui/core/esm/styles/createTypography.js", "../../node_modules/@material-ui/core/esm/styles/shadows.js", "../../node_modules/@material-ui/core/esm/styles/shape.js", "../../node_modules/@material-ui/core/esm/styles/createSpacing.js", "../../node_modules/@material-ui/core/esm/styles/transitions.js", "../../node_modules/@material-ui/core/esm/styles/zIndex.js", "../../node_modules/@material-ui/core/esm/styles/defaultTheme.js", "../../node_modules/@material-ui/core/esm/Tab/Tab.js", "../../node_modules/@material-ui/core/esm/styles/withStyles.js", "../../node_modules/@material-ui/core/esm/ButtonBase/ButtonBase.js", "../../node_modules/@material-ui/core/esm/utils/useForkRef.js", "../../node_modules/@material-ui/core/esm/utils/setRef.js", "../../node_modules/@material-ui/core/esm/utils/useEventCallback.js", "../../node_modules/@material-ui/core/esm/utils/useIsFocusVisible.js", "../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js", "../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js", "../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js", "../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js", "../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js", "../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js", "../../node_modules/@material-ui/core/esm/ButtonBase/TouchRipple.js", "../../node_modules/@material-ui/core/esm/ButtonBase/Ripple.js", "../../node_modules/@material-ui/core/esm/utils/capitalize.js", "../../node_modules/@material-ui/core/esm/Tabs/Tabs.js", "../../node_modules/@material-ui/core/esm/utils/debounce.js", "../../node_modules/@material-ui/core/esm/utils/ownerDocument.js", "../../node_modules/@material-ui/core/esm/utils/ownerWindow.js", "../../node_modules/@material-ui/core/esm/utils/scrollLeft.js", "../../node_modules/@material-ui/core/esm/internal/animate.js", "../../node_modules/@material-ui/core/esm/Tabs/ScrollbarSize.js", "../../node_modules/@material-ui/core/esm/Tabs/TabIndicator.js", "../../node_modules/@material-ui/core/esm/TabScrollButton/TabScrollButton.js", "../../node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowLeft.js", "../../node_modules/@material-ui/core/esm/utils/createSvgIcon.js", "../../node_modules/@material-ui/core/esm/SvgIcon/SvgIcon.js", "../../node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowRight.js", "../../node_modules/@material-ui/core/esm/styles/useTheme.js", "../src/components/tab-panel.tsx", "../src/components/general.tsx", "../../node_modules/@material-ui/core/esm/Grid/Grid.js", "../src/components/input-checkbox.tsx", "../../node_modules/@material-ui/core/esm/FormHelperText/FormHelperText.js", "../../node_modules/@material-ui/core/esm/FormControl/formControlState.js", "../../node_modules/@material-ui/core/esm/FormControl/useFormControl.js", "../../node_modules/@material-ui/core/esm/FormControl/FormControlContext.js", "../src/components/input-text.tsx", "../../node_modules/@material-ui/core/esm/TextField/TextField.js", "../../node_modules/@material-ui/core/esm/Input/Input.js", "../../node_modules/@material-ui/core/esm/InputBase/InputBase.js", "../../node_modules/@material-ui/core/esm/TextareaAutosize/TextareaAutosize.js", "../../node_modules/@material-ui/core/esm/InputBase/utils.js", "../../node_modules/@material-ui/core/esm/FilledInput/FilledInput.js", "../../node_modules/@material-ui/core/esm/OutlinedInput/OutlinedInput.js", "../../node_modules/@material-ui/core/esm/OutlinedInput/NotchedOutline.js", "../../node_modules/@material-ui/core/esm/InputLabel/InputLabel.js", "../../node_modules/@material-ui/core/esm/FormLabel/FormLabel.js", "../../node_modules/@material-ui/core/esm/FormControl/FormControl.js", "../../node_modules/@material-ui/core/esm/utils/isMuiElement.js", "../../node_modules/@material-ui/core/esm/Select/Select.js", "../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js", "../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js", "../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js", "../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js", "../../node_modules/@material-ui/core/esm/Select/SelectInput.js", "../../node_modules/@material-ui/core/esm/Menu/Menu.js", "../../node_modules/@material-ui/core/esm/Popover/Popover.js", "../../node_modules/@material-ui/core/esm/utils/createChainedFunction.js", "../../node_modules/@material-ui/core/esm/Modal/Modal.js", "../../node_modules/@material-ui/core/esm/Portal/Portal.js", "../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js", "../../node_modules/@babel/runtime/helpers/esm/createClass.js", "../../node_modules/@material-ui/core/esm/utils/getScrollbarSize.js", "../../node_modules/@material-ui/core/esm/Modal/ModalManager.js", "../../node_modules/@material-ui/core/esm/Unstable_TrapFocus/Unstable_TrapFocus.js", "../../node_modules/@material-ui/core/esm/Modal/SimpleBackdrop.js", "../../node_modules/@material-ui/core/esm/Grow/Grow.js", "../../node_modules/@material-ui/core/esm/transitions/utils.js", "../../node_modules/@material-ui/core/esm/Paper/Paper.js", "../../node_modules/@material-ui/core/esm/MenuList/MenuList.js", "../../node_modules/@material-ui/core/esm/List/List.js", "../../node_modules/@material-ui/core/esm/List/ListContext.js", "../../node_modules/@material-ui/core/esm/utils/useControlled.js", "../../node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDropDown.js", "../../node_modules/@material-ui/core/esm/NativeSelect/NativeSelect.js", "../../node_modules/@material-ui/core/esm/NativeSelect/NativeSelectInput.js", "../../node_modules/@material-ui/lab/esm/Autocomplete/Autocomplete.js", "../../node_modules/@material-ui/core/esm/Popper/Popper.js", "../../node_modules/popper.js/src/utils/isBrowser.js", "../../node_modules/popper.js/src/utils/debounce.js", "../../node_modules/popper.js/src/utils/isFunction.js", "../../node_modules/popper.js/src/utils/getStyleComputedProperty.js", "../../node_modules/popper.js/src/utils/getParentNode.js", "../../node_modules/popper.js/src/utils/getScrollParent.js", "../../node_modules/popper.js/src/utils/getReferenceNode.js", "../../node_modules/popper.js/src/utils/isIE.js", "../../node_modules/popper.js/src/utils/getOffsetParent.js", "../../node_modules/popper.js/src/utils/isOffsetContainer.js", "../../node_modules/popper.js/src/utils/getRoot.js", "../../node_modules/popper.js/src/utils/findCommonOffsetParent.js", "../../node_modules/popper.js/src/utils/getScroll.js", "../../node_modules/popper.js/src/utils/includeScroll.js", "../../node_modules/popper.js/src/utils/getBordersSize.js", "../../node_modules/popper.js/src/utils/getWindowSizes.js", "../../node_modules/popper.js/src/utils/getClientRect.js", "../../node_modules/popper.js/src/utils/getBoundingClientRect.js", "../../node_modules/popper.js/src/utils/getOffsetRectRelativeToArbitraryNode.js", "../../node_modules/popper.js/src/utils/getViewportOffsetRectRelativeToArtbitraryNode.js", "../../node_modules/popper.js/src/utils/isFixed.js", "../../node_modules/popper.js/src/utils/getFixedPositionOffsetParent.js", "../../node_modules/popper.js/src/utils/getBoundaries.js", "../../node_modules/popper.js/src/utils/computeAutoPlacement.js", "../../node_modules/popper.js/src/utils/getReferenceOffsets.js", "../../node_modules/popper.js/src/utils/getOuterSizes.js", "../../node_modules/popper.js/src/utils/getOppositePlacement.js", "../../node_modules/popper.js/src/utils/getPopperOffsets.js", "../../node_modules/popper.js/src/utils/find.js", "../../node_modules/popper.js/src/utils/findIndex.js", "../../node_modules/popper.js/src/utils/runModifiers.js", "../../node_modules/popper.js/src/methods/update.js", "../../node_modules/popper.js/src/utils/isModifierEnabled.js", "../../node_modules/popper.js/src/utils/getSupportedPropertyName.js", "../../node_modules/popper.js/src/methods/destroy.js", "../../node_modules/popper.js/src/utils/getWindow.js", "../../node_modules/popper.js/src/utils/setupEventListeners.js", "../../node_modules/popper.js/src/methods/enableEventListeners.js", "../../node_modules/popper.js/src/utils/removeEventListeners.js", "../../node_modules/popper.js/src/methods/disableEventListeners.js", "../../node_modules/popper.js/src/utils/isNumeric.js", "../../node_modules/popper.js/src/utils/setStyles.js", "../../node_modules/popper.js/src/utils/setAttributes.js", "../../node_modules/popper.js/src/modifiers/applyStyle.js", "../../node_modules/popper.js/src/utils/getRoundedOffsets.js", "../../node_modules/popper.js/src/modifiers/computeStyle.js", "../../node_modules/popper.js/src/utils/isModifierRequired.js", "../../node_modules/popper.js/src/modifiers/arrow.js", "../../node_modules/popper.js/src/utils/getOppositeVariation.js", "../../node_modules/popper.js/src/methods/placements.js", "../../node_modules/popper.js/src/utils/clockwise.js", "../../node_modules/popper.js/src/modifiers/flip.js", "../../node_modules/popper.js/src/modifiers/keepTogether.js", "../../node_modules/popper.js/src/modifiers/offset.js", "../../node_modules/popper.js/src/modifiers/preventOverflow.js", "../../node_modules/popper.js/src/modifiers/shift.js", "../../node_modules/popper.js/src/modifiers/hide.js", "../../node_modules/popper.js/src/modifiers/inner.js", "../../node_modules/popper.js/src/modifiers/index.js", "../../node_modules/popper.js/src/methods/defaults.js", "../../node_modules/popper.js/src/index.js", "../../node_modules/@material-ui/core/esm/ListSubheader/ListSubheader.js", "../../node_modules/@material-ui/core/esm/Chip/Chip.js", "../../node_modules/@material-ui/core/esm/internal/svg-icons/Cancel.js", "../../node_modules/@material-ui/lab/esm/internal/svg-icons/Close.js", "../../node_modules/@material-ui/lab/esm/internal/svg-icons/ArrowDropDown.js", "../../node_modules/@material-ui/lab/esm/useAutocomplete/useAutocomplete.js", "../../src/consts.ts", "../src/components/import-export.tsx", "../../node_modules/@material-ui/core/esm/Divider/Divider.js", "../../node_modules/snarkdown/src/index.js", "../src/lib/helpers.ts", "../src/components/input-select.tsx", "../../node_modules/@material-ui/core/esm/MenuItem/MenuItem.js", "../../node_modules/@material-ui/core/esm/ListItem/ListItem.js", "../src/components/message.tsx", "../src/lib/icons.tsx", "../src/components/parser.tsx", "../src/components/input-bitmask.tsx", "../../io-package.json"], - "sourcesContent": ["/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n", "/** @license React v17.0.2\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var l=require(\"object-assign\"),n=60103,p=60106;exports.Fragment=60107;exports.StrictMode=60108;exports.Profiler=60114;var q=60109,r=60110,t=60112;exports.Suspense=60113;var u=60115,v=60116;\nif(\"function\"===typeof Symbol&&Symbol.for){var w=Symbol.for;n=w(\"react.element\");p=w(\"react.portal\");exports.Fragment=w(\"react.fragment\");exports.StrictMode=w(\"react.strict_mode\");exports.Profiler=w(\"react.profiler\");q=w(\"react.provider\");r=w(\"react.context\");t=w(\"react.forward_ref\");exports.Suspense=w(\"react.suspense\");u=w(\"react.memo\");v=w(\"react.lazy\")}var x=\"function\"===typeof Symbol&&Symbol.iterator;\nfunction y(a){if(null===a||\"object\"!==typeof a)return null;a=x&&a[x]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}function z(a){for(var b=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=1;c=\nE};k=function(){};exports.unstable_forceFrameRate=function(a){0>a||125>>1,e=a[d];if(void 0!==e&&0I(n,c))void 0!==r&&0>I(r,n)?(a[d]=r,a[v]=c,d=v):(a[d]=n,a[m]=c,d=m);else if(void 0!==r&&0>I(r,c))a[d]=r,a[v]=c,d=v;else break a}}return b}return null}function I(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}var L=[],M=[],N=1,O=null,P=3,Q=!1,R=!1,S=!1;\nfunction T(a){for(var b=J(M);null!==b;){if(null===b.callback)K(M);else if(b.startTime<=a)K(M),b.sortIndex=b.expirationTime,H(L,b);else break;b=J(M)}}function U(a){S=!1;T(a);if(!R)if(null!==J(L))R=!0,f(V);else{var b=J(M);null!==b&&g(U,b.startTime-a)}}\nfunction V(a,b){R=!1;S&&(S=!1,h());Q=!0;var c=P;try{T(b);for(O=J(L);null!==O&&(!(O.expirationTime>b)||a&&!exports.unstable_shouldYield());){var d=O.callback;if(\"function\"===typeof d){O.callback=null;P=O.priorityLevel;var e=d(O.expirationTime<=b);b=exports.unstable_now();\"function\"===typeof e?O.callback=e:O===J(L)&&K(L);T(b)}else K(L);O=J(L)}if(null!==O)var m=!0;else{var n=J(M);null!==n&&g(U,n.startTime-b);m=!1}return m}finally{O=null,P=c,Q=!1}}var W=k;exports.unstable_IdlePriority=5;\nexports.unstable_ImmediatePriority=1;exports.unstable_LowPriority=4;exports.unstable_NormalPriority=3;exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=2;exports.unstable_cancelCallback=function(a){a.callback=null};exports.unstable_continueExecution=function(){R||Q||(R=!0,f(V))};exports.unstable_getCurrentPriorityLevel=function(){return P};exports.unstable_getFirstCallbackNode=function(){return J(L)};\nexports.unstable_next=function(a){switch(P){case 1:case 2:case 3:var b=3;break;default:b=P}var c=P;P=b;try{return a()}finally{P=c}};exports.unstable_pauseExecution=function(){};exports.unstable_requestPaint=W;exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=P;P=a;try{return b()}finally{P=c}};\nexports.unstable_scheduleCallback=function(a,b,c){var d=exports.unstable_now();\"object\"===typeof c&&null!==c?(c=c.delay,c=\"number\"===typeof c&&0d?(a.sortIndex=c,H(M,a),null===J(L)&&a===J(M)&&(S?h():S=!0,g(U,c-d))):(a.sortIndex=e,H(L,a),R||Q||(R=!0,f(V)));return a};\nexports.unstable_wrapCallback=function(a){var b=P;return function(){var c=P;P=b;try{return a.apply(this,arguments)}finally{P=c}}};\n", "'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n", "/** @license React v17.0.2\n * react-dom.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n'use strict';var aa=require(\"react\"),m=require(\"object-assign\"),r=require(\"scheduler\");function y(a){for(var b=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=1;cb}return!1}function B(a,b,c,d,e,f,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f;this.removeEmptyString=g}var D={};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(a){D[a]=new B(a,0,!1,a,null,!1,!1)});[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(a){var b=a[0];D[b]=new B(b,1,!1,a[1],null,!1,!1)});[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(a){D[a]=new B(a,2,!1,a.toLowerCase(),null,!1,!1)});\n[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(a){D[a]=new B(a,2,!1,a,null,!1,!1)});\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(a){D[a]=new B(a,3,!1,a.toLowerCase(),null,!1,!1)});\n[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(a){D[a]=new B(a,3,!0,a,null,!1,!1)});[\"capture\",\"download\"].forEach(function(a){D[a]=new B(a,4,!1,a,null,!1,!1)});[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(a){D[a]=new B(a,6,!1,a,null,!1,!1)});[\"rowSpan\",\"start\"].forEach(function(a){D[a]=new B(a,5,!1,a.toLowerCase(),null,!1,!1)});var oa=/[\\-:]([a-z])/g;function pa(a){return a[1].toUpperCase()}\n\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(a){var b=a.replace(oa,\npa);D[b]=new B(b,1,!1,a,null,!1,!1)});\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(a){var b=a.replace(oa,pa);D[b]=new B(b,1,!1,a,\"http://www.w3.org/1999/xlink\",!1,!1)});[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(a){var b=a.replace(oa,pa);D[b]=new B(b,1,!1,a,\"http://www.w3.org/XML/1998/namespace\",!1,!1)});[\"tabIndex\",\"crossOrigin\"].forEach(function(a){D[a]=new B(a,1,!1,a.toLowerCase(),null,!1,!1)});\nD.xlinkHref=new B(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1);[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(a){D[a]=new B(a,1,!1,a.toLowerCase(),null,!0,!0)});\nfunction qa(a,b,c,d){var e=D.hasOwnProperty(b)?D[b]:null;var f=null!==e?0===e.type:d?!1:!(2h||e[g]!==f[h])return\"\\n\"+e[g].replace(\" at new \",\" at \");while(1<=g&&0<=h)}break}}}finally{Oa=!1,Error.prepareStackTrace=c}return(a=a?a.displayName||a.name:\"\")?Na(a):\"\"}\nfunction Qa(a){switch(a.tag){case 5:return Na(a.type);case 16:return Na(\"Lazy\");case 13:return Na(\"Suspense\");case 19:return Na(\"SuspenseList\");case 0:case 2:case 15:return a=Pa(a.type,!1),a;case 11:return a=Pa(a.type.render,!1),a;case 22:return a=Pa(a.type._render,!1),a;case 1:return a=Pa(a.type,!0),a;default:return\"\"}}\nfunction Ra(a){if(null==a)return null;if(\"function\"===typeof a)return a.displayName||a.name||null;if(\"string\"===typeof a)return a;switch(a){case ua:return\"Fragment\";case ta:return\"Portal\";case xa:return\"Profiler\";case wa:return\"StrictMode\";case Ba:return\"Suspense\";case Ca:return\"SuspenseList\"}if(\"object\"===typeof a)switch(a.$$typeof){case za:return(a.displayName||\"Context\")+\".Consumer\";case ya:return(a._context.displayName||\"Context\")+\".Provider\";case Aa:var b=a.render;b=b.displayName||b.name||\"\";\nreturn a.displayName||(\"\"!==b?\"ForwardRef(\"+b+\")\":\"ForwardRef\");case Da:return Ra(a.type);case Fa:return Ra(a._render);case Ea:b=a._payload;a=a._init;try{return Ra(a(b))}catch(c){}}return null}function Sa(a){switch(typeof a){case \"boolean\":case \"number\":case \"object\":case \"string\":case \"undefined\":return a;default:return\"\"}}function Ta(a){var b=a.type;return(a=a.nodeName)&&\"input\"===a.toLowerCase()&&(\"checkbox\"===b||\"radio\"===b)}\nfunction Ua(a){var b=Ta(a)?\"checked\":\"value\",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=\"\"+a[b];if(!a.hasOwnProperty(b)&&\"undefined\"!==typeof c&&\"function\"===typeof c.get&&\"function\"===typeof c.set){var e=c.get,f=c.set;Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=\"\"+a;f.call(this,a)}});Object.defineProperty(a,b,{enumerable:c.enumerable});return{getValue:function(){return d},setValue:function(a){d=\"\"+a},stopTracking:function(){a._valueTracker=\nnull;delete a[b]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d=\"\";a&&(d=Ta(a)?a.checked?\"true\":\"false\":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}function Xa(a){a=a||(\"undefined\"!==typeof document?document:void 0);if(\"undefined\"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}\nfunction Ya(a,b){var c=b.checked;return m({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Za(a,b){var c=null==b.defaultValue?\"\":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=Sa(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:\"checkbox\"===b.type||\"radio\"===b.type?null!=b.checked:null!=b.value}}function $a(a,b){b=b.checked;null!=b&&qa(a,\"checked\",b,!1)}\nfunction ab(a,b){$a(a,b);var c=Sa(b.value),d=b.type;if(null!=c)if(\"number\"===d){if(0===c&&\"\"===a.value||a.value!=c)a.value=\"\"+c}else a.value!==\"\"+c&&(a.value=\"\"+c);else if(\"submit\"===d||\"reset\"===d){a.removeAttribute(\"value\");return}b.hasOwnProperty(\"value\")?bb(a,b.type,c):b.hasOwnProperty(\"defaultValue\")&&bb(a,b.type,Sa(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)}\nfunction cb(a,b,c){if(b.hasOwnProperty(\"value\")||b.hasOwnProperty(\"defaultValue\")){var d=b.type;if(!(\"submit\"!==d&&\"reset\"!==d||void 0!==b.value&&null!==b.value))return;b=\"\"+a._wrapperState.initialValue;c||b===a.value||(a.value=b);a.defaultValue=b}c=a.name;\"\"!==c&&(a.name=\"\");a.defaultChecked=!!a._wrapperState.initialChecked;\"\"!==c&&(a.name=c)}\nfunction bb(a,b,c){if(\"number\"!==b||Xa(a.ownerDocument)!==a)null==c?a.defaultValue=\"\"+a._wrapperState.initialValue:a.defaultValue!==\"\"+c&&(a.defaultValue=\"\"+c)}function db(a){var b=\"\";aa.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}function eb(a,b){a=m({children:void 0},b);if(b=db(b.children))a.children=b;return a}\nfunction fb(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e=c.length))throw Error(y(93));c=c[0]}b=c}null==b&&(b=\"\");c=b}a._wrapperState={initialValue:Sa(c)}}\nfunction ib(a,b){var c=Sa(b.value),d=Sa(b.defaultValue);null!=c&&(c=\"\"+c,c!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c));null!=d&&(a.defaultValue=\"\"+d)}function jb(a){var b=a.textContent;b===a._wrapperState.initialValue&&\"\"!==b&&null!==b&&(a.value=b)}var kb={html:\"http://www.w3.org/1999/xhtml\",mathml:\"http://www.w3.org/1998/Math/MathML\",svg:\"http://www.w3.org/2000/svg\"};\nfunction lb(a){switch(a){case \"svg\":return\"http://www.w3.org/2000/svg\";case \"math\":return\"http://www.w3.org/1998/Math/MathML\";default:return\"http://www.w3.org/1999/xhtml\"}}function mb(a,b){return null==a||\"http://www.w3.org/1999/xhtml\"===a?lb(b):\"http://www.w3.org/2000/svg\"===a&&\"foreignObject\"===b?\"http://www.w3.org/1999/xhtml\":a}\nvar nb,ob=function(a){return\"undefined\"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)})}:a}(function(a,b){if(a.namespaceURI!==kb.svg||\"innerHTML\"in a)a.innerHTML=b;else{nb=nb||document.createElement(\"div\");nb.innerHTML=\"\"+b.valueOf().toString()+\"\";for(b=nb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});\nfunction pb(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}\nvar qb={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,\nfloodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rb=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(qb).forEach(function(a){rb.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);qb[b]=qb[a]})});function sb(a,b,c){return null==b||\"boolean\"===typeof b||\"\"===b?\"\":c||\"number\"!==typeof b||0===b||qb.hasOwnProperty(a)&&qb[a]?(\"\"+b).trim():b+\"px\"}\nfunction tb(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf(\"--\"),e=sb(c,b[c],d);\"float\"===c&&(c=\"cssFloat\");d?a.setProperty(c,e):a[c]=e}}var ub=m({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});\nfunction vb(a,b){if(b){if(ub[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(y(137,a));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(y(60));if(!(\"object\"===typeof b.dangerouslySetInnerHTML&&\"__html\"in b.dangerouslySetInnerHTML))throw Error(y(61));}if(null!=b.style&&\"object\"!==typeof b.style)throw Error(y(62));}}\nfunction wb(a,b){if(-1===a.indexOf(\"-\"))return\"string\"===typeof b.is;switch(a){case \"annotation-xml\":case \"color-profile\":case \"font-face\":case \"font-face-src\":case \"font-face-uri\":case \"font-face-format\":case \"font-face-name\":case \"missing-glyph\":return!1;default:return!0}}function xb(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}var yb=null,zb=null,Ab=null;\nfunction Bb(a){if(a=Cb(a)){if(\"function\"!==typeof yb)throw Error(y(280));var b=a.stateNode;b&&(b=Db(b),yb(a.stateNode,a.type,b))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,b=Ab;Ab=zb=null;Bb(a);if(b)for(a=0;ad?0:1<c;c++)b.push(a);return b}\nfunction $c(a,b,c){a.pendingLanes|=b;var d=b-1;a.suspendedLanes&=d;a.pingedLanes&=d;a=a.eventTimes;b=31-Vc(b);a[b]=c}var Vc=Math.clz32?Math.clz32:ad,bd=Math.log,cd=Math.LN2;function ad(a){return 0===a?32:31-(bd(a)/cd|0)|0}var dd=r.unstable_UserBlockingPriority,ed=r.unstable_runWithPriority,fd=!0;function gd(a,b,c,d){Kb||Ib();var e=hd,f=Kb;Kb=!0;try{Hb(e,a,b,c,d)}finally{(Kb=f)||Mb()}}function id(a,b,c,d){ed(dd,hd.bind(null,a,b,c,d))}\nfunction hd(a,b,c,d){if(fd){var e;if((e=0===(b&4))&&0=be),ee=String.fromCharCode(32),fe=!1;\nfunction ge(a,b){switch(a){case \"keyup\":return-1!==$d.indexOf(b.keyCode);case \"keydown\":return 229!==b.keyCode;case \"keypress\":case \"mousedown\":case \"focusout\":return!0;default:return!1}}function he(a){a=a.detail;return\"object\"===typeof a&&\"data\"in a?a.data:null}var ie=!1;function je(a,b){switch(a){case \"compositionend\":return he(b);case \"keypress\":if(32!==b.which)return null;fe=!0;return ee;case \"textInput\":return a=b.data,a===ee&&fe?null:a;default:return null}}\nfunction ke(a,b){if(ie)return\"compositionend\"===a||!ae&&ge(a,b)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case \"paste\":return null;case \"keypress\":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Ke(c)}}function Me(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?Me(a,b.parentNode):\"contains\"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}\nfunction Ne(){for(var a=window,b=Xa();b instanceof a.HTMLIFrameElement;){try{var c=\"string\"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=Xa(a.document)}return b}function Oe(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&(\"input\"===b&&(\"text\"===a.type||\"search\"===a.type||\"tel\"===a.type||\"url\"===a.type||\"password\"===a.type)||\"textarea\"===b||\"true\"===a.contentEditable)}\nvar Pe=fa&&\"documentMode\"in document&&11>=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;\nfunction Ue(a,b,c){var d=c.window===c?c.document:9===c.nodeType?c:c.ownerDocument;Te||null==Qe||Qe!==Xa(d)||(d=Qe,\"selectionStart\"in d&&Oe(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Se&&Je(Se,d)||(Se=d,d=oe(Re,\"onSelect\"),0Af||(a.current=zf[Af],zf[Af]=null,Af--)}function I(a,b){Af++;zf[Af]=a.current;a.current=b}var Cf={},M=Bf(Cf),N=Bf(!1),Df=Cf;\nfunction Ef(a,b){var c=a.type.contextTypes;if(!c)return Cf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function Ff(a){a=a.childContextTypes;return null!==a&&void 0!==a}function Gf(){H(N);H(M)}function Hf(a,b,c){if(M.current!==Cf)throw Error(y(168));I(M,b);I(N,c)}\nfunction If(a,b,c){var d=a.stateNode;a=b.childContextTypes;if(\"function\"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in a))throw Error(y(108,Ra(b)||\"Unknown\",e));return m({},c,d)}function Jf(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Cf;Df=M.current;I(M,a);I(N,N.current);return!0}function Kf(a,b,c){var d=a.stateNode;if(!d)throw Error(y(169));c?(a=If(a,b,Df),d.__reactInternalMemoizedMergedChildContext=a,H(N),H(M),I(M,a)):H(N);I(N,c)}\nvar Lf=null,Mf=null,Nf=r.unstable_runWithPriority,Of=r.unstable_scheduleCallback,Pf=r.unstable_cancelCallback,Qf=r.unstable_shouldYield,Rf=r.unstable_requestPaint,Sf=r.unstable_now,Tf=r.unstable_getCurrentPriorityLevel,Uf=r.unstable_ImmediatePriority,Vf=r.unstable_UserBlockingPriority,Wf=r.unstable_NormalPriority,Xf=r.unstable_LowPriority,Yf=r.unstable_IdlePriority,Zf={},$f=void 0!==Rf?Rf:function(){},ag=null,bg=null,cg=!1,dg=Sf(),O=1E4>dg?Sf:function(){return Sf()-dg};\nfunction eg(){switch(Tf()){case Uf:return 99;case Vf:return 98;case Wf:return 97;case Xf:return 96;case Yf:return 95;default:throw Error(y(332));}}function fg(a){switch(a){case 99:return Uf;case 98:return Vf;case 97:return Wf;case 96:return Xf;case 95:return Yf;default:throw Error(y(332));}}function gg(a,b){a=fg(a);return Nf(a,b)}function hg(a,b,c){a=fg(a);return Of(a,b,c)}function ig(){if(null!==bg){var a=bg;bg=null;Pf(a)}jg()}\nfunction jg(){if(!cg&&null!==ag){cg=!0;var a=0;try{var b=ag;gg(99,function(){for(;az?(q=u,u=null):q=u.sibling;var n=p(e,u,h[z],k);if(null===n){null===u&&(u=q);break}a&&u&&null===\nn.alternate&&b(e,u);g=f(n,g,z);null===t?l=n:t.sibling=n;t=n;u=q}if(z===h.length)return c(e,u),l;if(null===u){for(;zz?(q=u,u=null):q=u.sibling;var w=p(e,u,n.value,k);if(null===w){null===u&&(u=q);break}a&&u&&null===w.alternate&&b(e,u);g=f(w,g,z);null===t?l=w:t.sibling=w;t=w;u=q}if(n.done)return c(e,u),l;if(null===u){for(;!n.done;z++,n=h.next())n=A(e,n.value,k),null!==n&&(g=f(n,g,z),null===t?l=n:t.sibling=n,t=n);return l}for(u=d(e,u);!n.done;z++,n=h.next())n=C(u,e,z,n.value,k),null!==n&&(a&&null!==n.alternate&&\nu.delete(null===n.key?z:n.key),g=f(n,g,z),null===t?l=n:t.sibling=n,t=n);a&&u.forEach(function(a){return b(e,a)});return l}return function(a,d,f,h){var k=\"object\"===typeof f&&null!==f&&f.type===ua&&null===f.key;k&&(f=f.props.children);var l=\"object\"===typeof f&&null!==f;if(l)switch(f.$$typeof){case sa:a:{l=f.key;for(k=d;null!==k;){if(k.key===l){switch(k.tag){case 7:if(f.type===ua){c(a,k.sibling);d=e(k,f.props.children);d.return=a;a=d;break a}break;default:if(k.elementType===f.type){c(a,k.sibling);\nd=e(k,f.props);d.ref=Qg(a,k,f);d.return=a;a=d;break a}}c(a,k);break}else b(a,k);k=k.sibling}f.type===ua?(d=Xg(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=Vg(f.type,f.key,f.props,null,a.mode,h),h.ref=Qg(a,d,f),h.return=a,a=h)}return g(a);case ta:a:{for(k=f.key;null!==d;){if(d.key===k)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=\nWg(f,a.mode,h);d.return=a;a=d}return g(a)}if(\"string\"===typeof f||\"number\"===typeof f)return f=\"\"+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):(c(a,d),d=Ug(f,a.mode,h),d.return=a,a=d),g(a);if(Pg(f))return x(a,d,f,h);if(La(f))return w(a,d,f,h);l&&Rg(a,f);if(\"undefined\"===typeof f&&!k)switch(a.tag){case 1:case 22:case 0:case 11:case 15:throw Error(y(152,Ra(a.type)||\"Component\"));}return c(a,d)}}var Yg=Sg(!0),Zg=Sg(!1),$g={},ah=Bf($g),bh=Bf($g),ch=Bf($g);\nfunction dh(a){if(a===$g)throw Error(y(174));return a}function eh(a,b){I(ch,b);I(bh,a);I(ah,$g);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:mb(null,\"\");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=mb(b,a)}H(ah);I(ah,b)}function fh(){H(ah);H(bh);H(ch)}function gh(a){dh(ch.current);var b=dh(ah.current);var c=mb(b,a.type);b!==c&&(I(bh,a),I(ah,c))}function hh(a){bh.current===a&&(H(ah),H(bh))}var P=Bf(0);\nfunction ih(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||\"$?\"===c.data||\"$!\"===c.data))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.flags&64))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}var jh=null,kh=null,lh=!1;\nfunction mh(a,b){var c=nh(5,null,null,0);c.elementType=\"DELETED\";c.type=\"DELETED\";c.stateNode=b;c.return=a;c.flags=8;null!==a.lastEffect?(a.lastEffect.nextEffect=c,a.lastEffect=c):a.firstEffect=a.lastEffect=c}function oh(a,b){switch(a.tag){case 5:var c=a.type;b=1!==b.nodeType||c.toLowerCase()!==b.nodeName.toLowerCase()?null:b;return null!==b?(a.stateNode=b,!0):!1;case 6:return b=\"\"===a.pendingProps||3!==b.nodeType?null:b,null!==b?(a.stateNode=b,!0):!1;case 13:return!1;default:return!1}}\nfunction ph(a){if(lh){var b=kh;if(b){var c=b;if(!oh(a,b)){b=rf(c.nextSibling);if(!b||!oh(a,b)){a.flags=a.flags&-1025|2;lh=!1;jh=a;return}mh(jh,c)}jh=a;kh=rf(b.firstChild)}else a.flags=a.flags&-1025|2,lh=!1,jh=a}}function qh(a){for(a=a.return;null!==a&&5!==a.tag&&3!==a.tag&&13!==a.tag;)a=a.return;jh=a}\nfunction rh(a){if(a!==jh)return!1;if(!lh)return qh(a),lh=!0,!1;var b=a.type;if(5!==a.tag||\"head\"!==b&&\"body\"!==b&&!nf(b,a.memoizedProps))for(b=kh;b;)mh(a,b),b=rf(b.nextSibling);qh(a);if(13===a.tag){a=a.memoizedState;a=null!==a?a.dehydrated:null;if(!a)throw Error(y(317));a:{a=a.nextSibling;for(b=0;a;){if(8===a.nodeType){var c=a.data;if(\"/$\"===c){if(0===b){kh=rf(a.nextSibling);break a}b--}else\"$\"!==c&&\"$!\"!==c&&\"$?\"!==c||b++}a=a.nextSibling}kh=null}}else kh=jh?rf(a.stateNode.nextSibling):null;return!0}\nfunction sh(){kh=jh=null;lh=!1}var th=[];function uh(){for(var a=0;af))throw Error(y(301));f+=1;T=S=null;b.updateQueue=null;vh.current=Fh;a=c(d,e)}while(zh)}vh.current=Gh;b=null!==S&&null!==S.next;xh=0;T=S=R=null;yh=!1;if(b)throw Error(y(300));return a}function Hh(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};null===T?R.memoizedState=T=a:T=T.next=a;return T}\nfunction Ih(){if(null===S){var a=R.alternate;a=null!==a?a.memoizedState:null}else a=S.next;var b=null===T?R.memoizedState:T.next;if(null!==b)T=b,S=a;else{if(null===a)throw Error(y(310));S=a;a={memoizedState:S.memoizedState,baseState:S.baseState,baseQueue:S.baseQueue,queue:S.queue,next:null};null===T?R.memoizedState=T=a:T=T.next=a}return T}function Jh(a,b){return\"function\"===typeof b?b(a):b}\nfunction Kh(a){var b=Ih(),c=b.queue;if(null===c)throw Error(y(311));c.lastRenderedReducer=a;var d=S,e=d.baseQueue,f=c.pending;if(null!==f){if(null!==e){var g=e.next;e.next=f.next;f.next=g}d.baseQueue=e=f;c.pending=null}if(null!==e){e=e.next;d=d.baseState;var h=g=f=null,k=e;do{var l=k.lane;if((xh&l)===l)null!==h&&(h=h.next={lane:0,action:k.action,eagerReducer:k.eagerReducer,eagerState:k.eagerState,next:null}),d=k.eagerReducer===a?k.eagerState:a(d,k.action);else{var n={lane:l,action:k.action,eagerReducer:k.eagerReducer,\neagerState:k.eagerState,next:null};null===h?(g=h=n,f=d):h=h.next=n;R.lanes|=l;Dg|=l}k=k.next}while(null!==k&&k!==e);null===h?f=d:h.next=g;He(d,b.memoizedState)||(ug=!0);b.memoizedState=d;b.baseState=f;b.baseQueue=h;c.lastRenderedState=d}return[b.memoizedState,c.dispatch]}\nfunction Lh(a){var b=Ih(),c=b.queue;if(null===c)throw Error(y(311));c.lastRenderedReducer=a;var d=c.dispatch,e=c.pending,f=b.memoizedState;if(null!==e){c.pending=null;var g=e=e.next;do f=a(f,g.action),g=g.next;while(g!==e);He(f,b.memoizedState)||(ug=!0);b.memoizedState=f;null===b.baseQueue&&(b.baseState=f);c.lastRenderedState=f}return[f,d]}\nfunction Mh(a,b,c){var d=b._getVersion;d=d(b._source);var e=b._workInProgressVersionPrimary;if(null!==e)a=e===d;else if(a=a.mutableReadLanes,a=(xh&a)===a)b._workInProgressVersionPrimary=d,th.push(b);if(a)return c(b._source);th.push(b);throw Error(y(350));}\nfunction Nh(a,b,c,d){var e=U;if(null===e)throw Error(y(349));var f=b._getVersion,g=f(b._source),h=vh.current,k=h.useState(function(){return Mh(e,b,c)}),l=k[1],n=k[0];k=T;var A=a.memoizedState,p=A.refs,C=p.getSnapshot,x=A.source;A=A.subscribe;var w=R;a.memoizedState={refs:p,source:b,subscribe:d};h.useEffect(function(){p.getSnapshot=c;p.setSnapshot=l;var a=f(b._source);if(!He(g,a)){a=c(b._source);He(n,a)||(l(a),a=Ig(w),e.mutableReadLanes|=a&e.pendingLanes);a=e.mutableReadLanes;e.entangledLanes|=a;for(var d=\ne.entanglements,h=a;0c?98:c,function(){a(!0)});gg(97\\x3c/script>\",a=a.removeChild(a.firstChild)):\"string\"===typeof d.is?a=g.createElement(c,{is:d.is}):(a=g.createElement(c),\"select\"===c&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,c);a[wf]=b;a[xf]=d;Bi(a,b,!1,!1);b.stateNode=a;g=wb(c,d);switch(c){case \"dialog\":G(\"cancel\",a);G(\"close\",a);\ne=d;break;case \"iframe\":case \"object\":case \"embed\":G(\"load\",a);e=d;break;case \"video\":case \"audio\":for(e=0;eJi&&(b.flags|=64,f=!0,Fi(d,!1),b.lanes=33554432)}else{if(!f)if(a=ih(g),null!==a){if(b.flags|=64,f=!0,c=a.updateQueue,null!==c&&(b.updateQueue=c,b.flags|=4),Fi(d,!0),null===d.tail&&\"hidden\"===d.tailMode&&!g.alternate&&!lh)return b=b.lastEffect=d.lastEffect,null!==b&&(b.nextEffect=null),null}else 2*O()-d.renderingStartTime>Ji&&1073741824!==c&&(b.flags|=\n64,f=!0,Fi(d,!1),b.lanes=33554432);d.isBackwards?(g.sibling=b.child,b.child=g):(c=d.last,null!==c?c.sibling=g:b.child=g,d.last=g)}return null!==d.tail?(c=d.tail,d.rendering=c,d.tail=c.sibling,d.lastEffect=b.lastEffect,d.renderingStartTime=O(),c.sibling=null,b=P.current,I(P,f?b&1|2:b&1),c):null;case 23:case 24:return Ki(),null!==a&&null!==a.memoizedState!==(null!==b.memoizedState)&&\"unstable-defer-without-hiding\"!==d.mode&&(b.flags|=4),null}throw Error(y(156,b.tag));}\nfunction Li(a){switch(a.tag){case 1:Ff(a.type)&&Gf();var b=a.flags;return b&4096?(a.flags=b&-4097|64,a):null;case 3:fh();H(N);H(M);uh();b=a.flags;if(0!==(b&64))throw Error(y(285));a.flags=b&-4097|64;return a;case 5:return hh(a),null;case 13:return H(P),b=a.flags,b&4096?(a.flags=b&-4097|64,a):null;case 19:return H(P),null;case 4:return fh(),null;case 10:return rg(a),null;case 23:case 24:return Ki(),null;default:return null}}\nfunction Mi(a,b){try{var c=\"\",d=b;do c+=Qa(d),d=d.return;while(d);var e=c}catch(f){e=\"\\nError generating stack: \"+f.message+\"\\n\"+f.stack}return{value:a,source:b,stack:e}}function Ni(a,b){try{console.error(b.value)}catch(c){setTimeout(function(){throw c;})}}var Oi=\"function\"===typeof WeakMap?WeakMap:Map;function Pi(a,b,c){c=zg(-1,c);c.tag=3;c.payload={element:null};var d=b.value;c.callback=function(){Qi||(Qi=!0,Ri=d);Ni(a,b)};return c}\nfunction Si(a,b,c){c=zg(-1,c);c.tag=3;var d=a.type.getDerivedStateFromError;if(\"function\"===typeof d){var e=b.value;c.payload=function(){Ni(a,b);return d(e)}}var f=a.stateNode;null!==f&&\"function\"===typeof f.componentDidCatch&&(c.callback=function(){\"function\"!==typeof d&&(null===Ti?Ti=new Set([this]):Ti.add(this),Ni(a,b));var c=b.stack;this.componentDidCatch(b.value,{componentStack:null!==c?c:\"\"})});return c}var Ui=\"function\"===typeof WeakSet?WeakSet:Set;\nfunction Vi(a){var b=a.ref;if(null!==b)if(\"function\"===typeof b)try{b(null)}catch(c){Wi(a,c)}else b.current=null}function Xi(a,b){switch(b.tag){case 0:case 11:case 15:case 22:return;case 1:if(b.flags&256&&null!==a){var c=a.memoizedProps,d=a.memoizedState;a=b.stateNode;b=a.getSnapshotBeforeUpdate(b.elementType===b.type?c:lg(b.type,c),d);a.__reactInternalSnapshotBeforeUpdate=b}return;case 3:b.flags&256&&qf(b.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(y(163));}\nfunction Yi(a,b,c){switch(c.tag){case 0:case 11:case 15:case 22:b=c.updateQueue;b=null!==b?b.lastEffect:null;if(null!==b){a=b=b.next;do{if(3===(a.tag&3)){var d=a.create;a.destroy=d()}a=a.next}while(a!==b)}b=c.updateQueue;b=null!==b?b.lastEffect:null;if(null!==b){a=b=b.next;do{var e=a;d=e.next;e=e.tag;0!==(e&4)&&0!==(e&1)&&(Zi(c,a),$i(c,a));a=d}while(a!==b)}return;case 1:a=c.stateNode;c.flags&4&&(null===b?a.componentDidMount():(d=c.elementType===c.type?b.memoizedProps:lg(c.type,b.memoizedProps),a.componentDidUpdate(d,\nb.memoizedState,a.__reactInternalSnapshotBeforeUpdate)));b=c.updateQueue;null!==b&&Eg(c,b,a);return;case 3:b=c.updateQueue;if(null!==b){a=null;if(null!==c.child)switch(c.child.tag){case 5:a=c.child.stateNode;break;case 1:a=c.child.stateNode}Eg(c,b,a)}return;case 5:a=c.stateNode;null===b&&c.flags&4&&mf(c.type,c.memoizedProps)&&a.focus();return;case 6:return;case 4:return;case 12:return;case 13:null===c.memoizedState&&(c=c.alternate,null!==c&&(c=c.memoizedState,null!==c&&(c=c.dehydrated,null!==c&&Cc(c))));\nreturn;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(y(163));}\nfunction aj(a,b){for(var c=a;;){if(5===c.tag){var d=c.stateNode;if(b)d=d.style,\"function\"===typeof d.setProperty?d.setProperty(\"display\",\"none\",\"important\"):d.display=\"none\";else{d=c.stateNode;var e=c.memoizedProps.style;e=void 0!==e&&null!==e&&e.hasOwnProperty(\"display\")?e.display:null;d.style.display=sb(\"display\",e)}}else if(6===c.tag)c.stateNode.nodeValue=b?\"\":c.memoizedProps;else if((23!==c.tag&&24!==c.tag||null===c.memoizedState||c===a)&&null!==c.child){c.child.return=c;c=c.child;continue}if(c===\na)break;for(;null===c.sibling;){if(null===c.return||c.return===a)return;c=c.return}c.sibling.return=c.return;c=c.sibling}}\nfunction bj(a,b){if(Mf&&\"function\"===typeof Mf.onCommitFiberUnmount)try{Mf.onCommitFiberUnmount(Lf,b)}catch(f){}switch(b.tag){case 0:case 11:case 14:case 15:case 22:a=b.updateQueue;if(null!==a&&(a=a.lastEffect,null!==a)){var c=a=a.next;do{var d=c,e=d.destroy;d=d.tag;if(void 0!==e)if(0!==(d&4))Zi(b,c);else{d=b;try{e()}catch(f){Wi(d,f)}}c=c.next}while(c!==a)}break;case 1:Vi(b);a=b.stateNode;if(\"function\"===typeof a.componentWillUnmount)try{a.props=b.memoizedProps,a.state=b.memoizedState,a.componentWillUnmount()}catch(f){Wi(b,\nf)}break;case 5:Vi(b);break;case 4:cj(a,b)}}function dj(a){a.alternate=null;a.child=null;a.dependencies=null;a.firstEffect=null;a.lastEffect=null;a.memoizedProps=null;a.memoizedState=null;a.pendingProps=null;a.return=null;a.updateQueue=null}function ej(a){return 5===a.tag||3===a.tag||4===a.tag}\nfunction fj(a){a:{for(var b=a.return;null!==b;){if(ej(b))break a;b=b.return}throw Error(y(160));}var c=b;b=c.stateNode;switch(c.tag){case 5:var d=!1;break;case 3:b=b.containerInfo;d=!0;break;case 4:b=b.containerInfo;d=!0;break;default:throw Error(y(161));}c.flags&16&&(pb(b,\"\"),c.flags&=-17);a:b:for(c=a;;){for(;null===c.sibling;){if(null===c.return||ej(c.return)){c=null;break a}c=c.return}c.sibling.return=c.return;for(c=c.sibling;5!==c.tag&&6!==c.tag&&18!==c.tag;){if(c.flags&2)continue b;if(null===\nc.child||4===c.tag)continue b;else c.child.return=c,c=c.child}if(!(c.flags&2)){c=c.stateNode;break a}}d?gj(a,c,b):hj(a,c,b)}\nfunction gj(a,b,c){var d=a.tag,e=5===d||6===d;if(e)a=e?a.stateNode:a.stateNode.instance,b?8===c.nodeType?c.parentNode.insertBefore(a,b):c.insertBefore(a,b):(8===c.nodeType?(b=c.parentNode,b.insertBefore(a,c)):(b=c,b.appendChild(a)),c=c._reactRootContainer,null!==c&&void 0!==c||null!==b.onclick||(b.onclick=jf));else if(4!==d&&(a=a.child,null!==a))for(gj(a,b,c),a=a.sibling;null!==a;)gj(a,b,c),a=a.sibling}\nfunction hj(a,b,c){var d=a.tag,e=5===d||6===d;if(e)a=e?a.stateNode:a.stateNode.instance,b?c.insertBefore(a,b):c.appendChild(a);else if(4!==d&&(a=a.child,null!==a))for(hj(a,b,c),a=a.sibling;null!==a;)hj(a,b,c),a=a.sibling}\nfunction cj(a,b){for(var c=b,d=!1,e,f;;){if(!d){d=c.return;a:for(;;){if(null===d)throw Error(y(160));e=d.stateNode;switch(d.tag){case 5:f=!1;break a;case 3:e=e.containerInfo;f=!0;break a;case 4:e=e.containerInfo;f=!0;break a}d=d.return}d=!0}if(5===c.tag||6===c.tag){a:for(var g=a,h=c,k=h;;)if(bj(g,k),null!==k.child&&4!==k.tag)k.child.return=k,k=k.child;else{if(k===h)break a;for(;null===k.sibling;){if(null===k.return||k.return===h)break a;k=k.return}k.sibling.return=k.return;k=k.sibling}f?(g=e,h=c.stateNode,\n8===g.nodeType?g.parentNode.removeChild(h):g.removeChild(h)):e.removeChild(c.stateNode)}else if(4===c.tag){if(null!==c.child){e=c.stateNode.containerInfo;f=!0;c.child.return=c;c=c.child;continue}}else if(bj(a,c),null!==c.child){c.child.return=c;c=c.child;continue}if(c===b)break;for(;null===c.sibling;){if(null===c.return||c.return===b)return;c=c.return;4===c.tag&&(d=!1)}c.sibling.return=c.return;c=c.sibling}}\nfunction ij(a,b){switch(b.tag){case 0:case 11:case 14:case 15:case 22:var c=b.updateQueue;c=null!==c?c.lastEffect:null;if(null!==c){var d=c=c.next;do 3===(d.tag&3)&&(a=d.destroy,d.destroy=void 0,void 0!==a&&a()),d=d.next;while(d!==c)}return;case 1:return;case 5:c=b.stateNode;if(null!=c){d=b.memoizedProps;var e=null!==a?a.memoizedProps:d;a=b.type;var f=b.updateQueue;b.updateQueue=null;if(null!==f){c[xf]=d;\"input\"===a&&\"radio\"===d.type&&null!=d.name&&$a(c,d);wb(a,e);b=wb(a,d);for(e=0;ee&&(e=g);c&=~f}c=e;c=O()-c;c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3E3>c?3E3:4320>\nc?4320:1960*nj(c/1960))-c;if(10 component higher in the tree to provide a loading indicator or placeholder to display.\")}5!==V&&(V=2);k=Mi(k,h);p=\ng;do{switch(p.tag){case 3:f=k;p.flags|=4096;b&=-b;p.lanes|=b;var J=Pi(p,f,b);Bg(p,J);break a;case 1:f=k;var K=p.type,Q=p.stateNode;if(0===(p.flags&64)&&(\"function\"===typeof K.getDerivedStateFromError||null!==Q&&\"function\"===typeof Q.componentDidCatch&&(null===Ti||!Ti.has(Q)))){p.flags|=4096;b&=-b;p.lanes|=b;var L=Si(p,f,b);Bg(p,L);break a}}p=p.return}while(null!==p)}Zj(c)}catch(va){b=va;Y===c&&null!==c&&(Y=c=c.return);continue}break}while(1)}\nfunction Pj(){var a=oj.current;oj.current=Gh;return null===a?Gh:a}function Tj(a,b){var c=X;X|=16;var d=Pj();U===a&&W===b||Qj(a,b);do try{ak();break}catch(e){Sj(a,e)}while(1);qg();X=c;oj.current=d;if(null!==Y)throw Error(y(261));U=null;W=0;return V}function ak(){for(;null!==Y;)bk(Y)}function Rj(){for(;null!==Y&&!Qf();)bk(Y)}function bk(a){var b=ck(a.alternate,a,qj);a.memoizedProps=a.pendingProps;null===b?Zj(a):Y=b;pj.current=null}\nfunction Zj(a){var b=a;do{var c=b.alternate;a=b.return;if(0===(b.flags&2048)){c=Gi(c,b,qj);if(null!==c){Y=c;return}c=b;if(24!==c.tag&&23!==c.tag||null===c.memoizedState||0!==(qj&1073741824)||0===(c.mode&4)){for(var d=0,e=c.child;null!==e;)d|=e.lanes|e.childLanes,e=e.sibling;c.childLanes=d}null!==a&&0===(a.flags&2048)&&(null===a.firstEffect&&(a.firstEffect=b.firstEffect),null!==b.lastEffect&&(null!==a.lastEffect&&(a.lastEffect.nextEffect=b.firstEffect),a.lastEffect=b.lastEffect),1g&&(h=g,g=J,J=h),h=Le(t,J),f=Le(t,g),h&&f&&(1!==v.rangeCount||v.anchorNode!==h.node||v.anchorOffset!==h.offset||v.focusNode!==f.node||v.focusOffset!==f.offset)&&(q=q.createRange(),q.setStart(h.node,h.offset),v.removeAllRanges(),J>g?(v.addRange(q),v.extend(f.node,f.offset)):(q.setEnd(f.node,f.offset),v.addRange(q))))));q=[];for(v=t;v=v.parentNode;)1===v.nodeType&&q.push({element:v,left:v.scrollLeft,top:v.scrollTop});\"function\"===typeof t.focus&&t.focus();for(t=\n0;tO()-jj?Qj(a,0):uj|=c);Mj(a,b)}function lj(a,b){var c=a.stateNode;null!==c&&c.delete(b);b=0;0===b&&(b=a.mode,0===(b&2)?b=1:0===(b&4)?b=99===eg()?1:2:(0===Gj&&(Gj=tj),b=Yc(62914560&~Gj),0===b&&(b=4194304)));c=Hg();a=Kj(a,b);null!==a&&($c(a,b,c),Mj(a,c))}var ck;\nck=function(a,b,c){var d=b.lanes;if(null!==a)if(a.memoizedProps!==b.pendingProps||N.current)ug=!0;else if(0!==(c&d))ug=0!==(a.flags&16384)?!0:!1;else{ug=!1;switch(b.tag){case 3:ri(b);sh();break;case 5:gh(b);break;case 1:Ff(b.type)&&Jf(b);break;case 4:eh(b,b.stateNode.containerInfo);break;case 10:d=b.memoizedProps.value;var e=b.type._context;I(mg,e._currentValue);e._currentValue=d;break;case 13:if(null!==b.memoizedState){if(0!==(c&b.child.childLanes))return ti(a,b,c);I(P,P.current&1);b=hi(a,b,c);return null!==\nb?b.sibling:null}I(P,P.current&1);break;case 19:d=0!==(c&b.childLanes);if(0!==(a.flags&64)){if(d)return Ai(a,b,c);b.flags|=64}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null,e.lastEffect=null);I(P,P.current);if(d)break;else return null;case 23:case 24:return b.lanes=0,mi(a,b,c)}return hi(a,b,c)}else ug=!1;b.lanes=0;switch(b.tag){case 2:d=b.type;null!==a&&(a.alternate=null,b.alternate=null,b.flags|=2);a=b.pendingProps;e=Ef(b,M.current);tg(b,c);e=Ch(null,b,d,a,e,c);b.flags|=1;if(\"object\"===\ntypeof e&&null!==e&&\"function\"===typeof e.render&&void 0===e.$$typeof){b.tag=1;b.memoizedState=null;b.updateQueue=null;if(Ff(d)){var f=!0;Jf(b)}else f=!1;b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null;xg(b);var g=d.getDerivedStateFromProps;\"function\"===typeof g&&Gg(b,d,g,a);e.updater=Kg;b.stateNode=e;e._reactInternals=b;Og(b,d,a,c);b=qi(null,b,d,!0,f,c)}else b.tag=0,fi(null,b,e,c),b=b.child;return b;case 16:e=b.elementType;a:{null!==a&&(a.alternate=null,b.alternate=null,b.flags|=2);\na=b.pendingProps;f=e._init;e=f(e._payload);b.type=e;f=b.tag=hk(e);a=lg(e,a);switch(f){case 0:b=li(null,b,e,a,c);break a;case 1:b=pi(null,b,e,a,c);break a;case 11:b=gi(null,b,e,a,c);break a;case 14:b=ii(null,b,e,lg(e.type,a),d,c);break a}throw Error(y(306,e,\"\"));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:lg(d,e),li(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:lg(d,e),pi(a,b,d,e,c);case 3:ri(b);d=b.updateQueue;if(null===a||null===d)throw Error(y(282));\nd=b.pendingProps;e=b.memoizedState;e=null!==e?e.element:null;yg(a,b);Cg(b,d,null,c);d=b.memoizedState.element;if(d===e)sh(),b=hi(a,b,c);else{e=b.stateNode;if(f=e.hydrate)kh=rf(b.stateNode.containerInfo.firstChild),jh=b,f=lh=!0;if(f){a=e.mutableSourceEagerHydrationData;if(null!=a)for(e=0;e 2 && arguments[2] !== undefined ? arguments[2] : {\n clone: true\n };\n var output = options.clone ? (0, _extends2.default)({}, target) : target;\n\n if (isPlainObject(target) && isPlainObject(source)) {\n Object.keys(source).forEach(function (key) {\n // Avoid prototype pollution\n if (key === '__proto__') {\n return;\n }\n\n if (isPlainObject(source[key]) && key in target) {\n output[key] = deepmerge(target[key], source[key], options);\n } else {\n output[key] = source[key];\n }\n });\n }\n\n return output;\n}", "/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n", "/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n", "/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _chainPropTypes = _interopRequireDefault(require(\"./chainPropTypes\"));\n\nfunction isClassComponent(elementType) {\n // elementType.prototype?.isReactComponent\n var _elementType$prototyp = elementType.prototype,\n prototype = _elementType$prototyp === void 0 ? {} : _elementType$prototyp;\n return Boolean(prototype.isReactComponent);\n}\n\nfunction acceptingRef(props, propName, componentName, location, propFullName) {\n var element = props[propName];\n var safePropName = propFullName || propName;\n\n if (element == null) {\n return null;\n }\n\n var warningHint;\n var elementType = element.type;\n /**\n * Blacklisting instead of whitelisting\n *\n * Blacklisting will miss some components, such as React.Fragment. Those will at least\n * trigger a warning in React.\n * We can't whitelist because there is no safe way to detect React.forwardRef\n * or class components. \"Safe\" means there's no public API.\n *\n */\n\n if (typeof elementType === 'function' && !isClassComponent(elementType)) {\n warningHint = 'Did you accidentally use a plain function component for an element instead?';\n }\n\n if (warningHint !== undefined) {\n return new Error(\"Invalid \".concat(location, \" `\").concat(safePropName, \"` supplied to `\").concat(componentName, \"`. \") + \"Expected an element that can hold a ref. \".concat(warningHint, \" \") + 'For more information see https://mui.com/r/caveat-with-refs-guide');\n }\n\n return null;\n}\n\nvar elementAcceptingRef = (0, _chainPropTypes.default)(_propTypes.default.element, acceptingRef);\nelementAcceptingRef.isRequired = (0, _chainPropTypes.default)(_propTypes.default.element.isRequired, acceptingRef);\nvar _default = elementAcceptingRef;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar PropTypes = _interopRequireWildcard(require(\"prop-types\"));\n\nvar _chainPropTypes = _interopRequireDefault(require(\"./chainPropTypes\"));\n\nfunction isClassComponent(elementType) {\n // elementType.prototype?.isReactComponent\n var _elementType$prototyp = elementType.prototype,\n prototype = _elementType$prototyp === void 0 ? {} : _elementType$prototyp;\n return Boolean(prototype.isReactComponent);\n}\n\nfunction elementTypeAcceptingRef(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var safePropName = propFullName || propName;\n\n if (propValue == null) {\n return null;\n }\n\n var warningHint;\n /**\n * Blacklisting instead of whitelisting\n *\n * Blacklisting will miss some components, such as React.Fragment. Those will at least\n * trigger a warning in React.\n * We can't whitelist because there is no safe way to detect React.forwardRef\n * or class components. \"Safe\" means there's no public API.\n *\n */\n\n if (typeof propValue === 'function' && !isClassComponent(propValue)) {\n warningHint = 'Did you accidentally provide a plain function component instead?';\n }\n\n if (warningHint !== undefined) {\n return new Error(\"Invalid \".concat(location, \" `\").concat(safePropName, \"` supplied to `\").concat(componentName, \"`. \") + \"Expected an element type that can hold a ref. \".concat(warningHint, \" \") + 'For more information see https://mui.com/r/caveat-with-refs-guide');\n }\n\n return null;\n}\n\nvar _default = (0, _chainPropTypes.default)(PropTypes.elementType, elementTypeAcceptingRef);\n\nexports.default = _default;", "var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nmodule.exports = toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nmodule.exports = toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = exactProp;\nexports.specialProperty = void 0;\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _extends3 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\n// This module is based on https://github.com/airbnb/prop-types-exact repository.\n// However, in order to reduce the number of dependencies and to remove some extra safe checks\n// the module was forked.\n// Only exported for test purposes.\nvar specialProperty = \"exact-prop: \\u200B\";\nexports.specialProperty = specialProperty;\n\nfunction exactProp(propTypes) {\n if (process.env.NODE_ENV === 'production') {\n return propTypes;\n }\n\n return (0, _extends3.default)({}, propTypes, (0, _defineProperty2.default)({}, specialProperty, function (props) {\n var unsupportedProps = Object.keys(props).filter(function (prop) {\n return !propTypes.hasOwnProperty(prop);\n });\n\n if (unsupportedProps.length > 0) {\n return new Error(\"The following props are not supported: \".concat(unsupportedProps.map(function (prop) {\n return \"`\".concat(prop, \"`\");\n }).join(', '), \". Please remove them.\"));\n }\n\n return null;\n }));\n}", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = formatMuiErrorMessage;\n\n/**\n * WARNING: Don't import this directly.\n * Use `MuiError` from `@material-ui/utils/macros/MuiError.macro` instead.\n * @param {number} code\n */\nfunction formatMuiErrorMessage(code) {\n // Apply babel-plugin-transform-template-literals in loose mode\n // loose mode is safe iff we're concatenating primitives\n // see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose\n\n /* eslint-disable prefer-template */\n var url = 'https://mui.com/production-error/?code=' + code;\n\n for (var i = 1; i < arguments.length; i += 1) {\n // rest params over-transpile for this case\n // eslint-disable-next-line prefer-rest-params\n url += '&args[]=' + encodeURIComponent(arguments[i]);\n }\n\n return 'Minified Material-UI error #' + code + '; visit ' + url + ' for the full message.';\n /* eslint-enable prefer-template */\n}", "/** @license React v17.0.2\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var b=60103,c=60106,d=60107,e=60108,f=60114,g=60109,h=60110,k=60112,l=60113,m=60120,n=60115,p=60116,q=60121,r=60122,u=60117,v=60129,w=60131;\nif(\"function\"===typeof Symbol&&Symbol.for){var x=Symbol.for;b=x(\"react.element\");c=x(\"react.portal\");d=x(\"react.fragment\");e=x(\"react.strict_mode\");f=x(\"react.profiler\");g=x(\"react.provider\");h=x(\"react.context\");k=x(\"react.forward_ref\");l=x(\"react.suspense\");m=x(\"react.suspense_list\");n=x(\"react.memo\");p=x(\"react.lazy\");q=x(\"react.block\");r=x(\"react.server.block\");u=x(\"react.fundamental\");v=x(\"react.debug_trace_mode\");w=x(\"react.legacy_hidden\")}\nfunction y(a){if(\"object\"===typeof a&&null!==a){var t=a.$$typeof;switch(t){case b:switch(a=a.type,a){case d:case f:case e:case l:case m:return a;default:switch(a=a&&a.$$typeof,a){case h:case k:case p:case n:case g:return a;default:return t}}case c:return t}}}var z=g,A=b,B=k,C=d,D=p,E=n,F=c,G=f,H=e,I=l;exports.ContextConsumer=h;exports.ContextProvider=z;exports.Element=A;exports.ForwardRef=B;exports.Fragment=C;exports.Lazy=D;exports.Memo=E;exports.Portal=F;exports.Profiler=G;exports.StrictMode=H;\nexports.Suspense=I;exports.isAsyncMode=function(){return!1};exports.isConcurrentMode=function(){return!1};exports.isContextConsumer=function(a){return y(a)===h};exports.isContextProvider=function(a){return y(a)===g};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===b};exports.isForwardRef=function(a){return y(a)===k};exports.isFragment=function(a){return y(a)===d};exports.isLazy=function(a){return y(a)===p};exports.isMemo=function(a){return y(a)===n};\nexports.isPortal=function(a){return y(a)===c};exports.isProfiler=function(a){return y(a)===f};exports.isStrictMode=function(a){return y(a)===e};exports.isSuspense=function(a){return y(a)===l};exports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===d||a===f||a===v||a===e||a===l||a===m||a===w||\"object\"===typeof a&&null!==a&&(a.$$typeof===p||a.$$typeof===n||a.$$typeof===g||a.$$typeof===h||a.$$typeof===k||a.$$typeof===u||a.$$typeof===q||a[0]===r)?!0:!1};\nexports.typeOf=y;\n", "'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getFunctionName = getFunctionName;\nexports.default = getDisplayName;\n\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\n\nvar _reactIs = require(\"react-is\");\n\n// Simplified polyfill for IE 11 support\n// https://github.com/JamesMGreene/Function.name/blob/58b314d4a983110c3682f1228f845d39ccca1817/Function.name.js#L3\nvar fnNameMatchRegex = /^\\s*function(?:\\s|\\s*\\/\\*.*\\*\\/\\s*)+([^(\\s/]*)\\s*/;\n\nfunction getFunctionName(fn) {\n var match = \"\".concat(fn).match(fnNameMatchRegex);\n var name = match && match[1];\n return name || '';\n}\n/**\n * @param {function} Component\n * @param {string} fallback\n * @returns {string | undefined}\n */\n\n\nfunction getFunctionComponentName(Component) {\n var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n return Component.displayName || Component.name || getFunctionName(Component) || fallback;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var functionName = getFunctionComponentName(innerType);\n return outerType.displayName || (functionName !== '' ? \"\".concat(wrapperName, \"(\").concat(functionName, \")\") : wrapperName);\n}\n/**\n * cherry-pick from\n * https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js\n * originally forked from recompose/getDisplayName with added IE 11 support\n *\n * @param {React.ReactType} Component\n * @returns {string | undefined}\n */\n\n\nfunction getDisplayName(Component) {\n if (Component == null) {\n return undefined;\n }\n\n if (typeof Component === 'string') {\n return Component;\n }\n\n if (typeof Component === 'function') {\n return getFunctionComponentName(Component, 'Component');\n }\n\n if ((0, _typeof2.default)(Component) === 'object') {\n switch (Component.$$typeof) {\n case _reactIs.ForwardRef:\n return getWrappedName(Component, Component.render, 'ForwardRef');\n\n case _reactIs.Memo:\n return getWrappedName(Component, Component.type, 'memo');\n\n default:\n return undefined;\n }\n }\n\n return undefined;\n}", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = HTMLElementType;\n\nfunction HTMLElementType(props, propName, componentName, location, propFullName) {\n if (process.env.NODE_ENV === 'production') {\n return null;\n }\n\n var propValue = props[propName];\n var safePropName = propFullName || propName;\n\n if (propValue == null) {\n return null;\n }\n\n if (propValue && propValue.nodeType !== 1) {\n return new Error(\"Invalid \".concat(location, \" `\").concat(safePropName, \"` supplied to `\").concat(componentName, \"`. \") + \"Expected an HTMLElement.\");\n }\n\n return null;\n}", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\n/* eslint-disable */\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar _default = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\n\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar refType = _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]);\n\nvar _default = refType;\nexports.default = _default;", "/** @license Material-UI v4.11.3\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"chainPropTypes\", {\n enumerable: true,\n get: function get() {\n return _chainPropTypes.default;\n }\n});\nObject.defineProperty(exports, \"deepmerge\", {\n enumerable: true,\n get: function get() {\n return _deepmerge.default;\n }\n});\nObject.defineProperty(exports, \"elementAcceptingRef\", {\n enumerable: true,\n get: function get() {\n return _elementAcceptingRef.default;\n }\n});\nObject.defineProperty(exports, \"elementTypeAcceptingRef\", {\n enumerable: true,\n get: function get() {\n return _elementTypeAcceptingRef.default;\n }\n});\nObject.defineProperty(exports, \"exactProp\", {\n enumerable: true,\n get: function get() {\n return _exactProp.default;\n }\n});\nObject.defineProperty(exports, \"formatMuiErrorMessage\", {\n enumerable: true,\n get: function get() {\n return _formatMuiErrorMessage.default;\n }\n});\nObject.defineProperty(exports, \"getDisplayName\", {\n enumerable: true,\n get: function get() {\n return _getDisplayName.default;\n }\n});\nObject.defineProperty(exports, \"HTMLElementType\", {\n enumerable: true,\n get: function get() {\n return _HTMLElementType.default;\n }\n});\nObject.defineProperty(exports, \"ponyfillGlobal\", {\n enumerable: true,\n get: function get() {\n return _ponyfillGlobal.default;\n }\n});\nObject.defineProperty(exports, \"refType\", {\n enumerable: true,\n get: function get() {\n return _refType.default;\n }\n});\n\nvar _chainPropTypes = _interopRequireDefault(require(\"./chainPropTypes\"));\n\nvar _deepmerge = _interopRequireDefault(require(\"./deepmerge\"));\n\nvar _elementAcceptingRef = _interopRequireDefault(require(\"./elementAcceptingRef\"));\n\nvar _elementTypeAcceptingRef = _interopRequireDefault(require(\"./elementTypeAcceptingRef\"));\n\nvar _exactProp = _interopRequireDefault(require(\"./exactProp\"));\n\nvar _formatMuiErrorMessage = _interopRequireDefault(require(\"./formatMuiErrorMessage\"));\n\nvar _getDisplayName = _interopRequireDefault(require(\"./getDisplayName\"));\n\nvar _HTMLElementType = _interopRequireDefault(require(\"./HTMLElementType\"));\n\nvar _ponyfillGlobal = _interopRequireDefault(require(\"./ponyfillGlobal\"));\n\nvar _refType = _interopRequireDefault(require(\"./refType\"));", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.hexToRgb = hexToRgb;\nexports.rgbToHex = rgbToHex;\nexports.hslToRgb = hslToRgb;\nexports.decomposeColor = decomposeColor;\nexports.recomposeColor = recomposeColor;\nexports.getContrastRatio = getContrastRatio;\nexports.getLuminance = getLuminance;\nexports.emphasize = emphasize;\nexports.fade = fade;\nexports.alpha = alpha;\nexports.darken = darken;\nexports.lighten = lighten;\n\nvar _utils = require(\"@material-ui/utils\");\n\n/* eslint-disable no-use-before-define */\n\n/**\n * Returns a number whose value is limited to the given range.\n *\n * @param {number} value The value to be clamped\n * @param {number} min The lower boundary of the output range\n * @param {number} max The upper boundary of the output range\n * @returns {number} A number in the range [min, max]\n */\nfunction clamp(value) {\n var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n\n if (process.env.NODE_ENV !== 'production') {\n if (value < min || value > max) {\n console.error(\"Material-UI: The value provided \".concat(value, \" is out of range [\").concat(min, \", \").concat(max, \"].\"));\n }\n }\n\n return Math.min(Math.max(min, value), max);\n}\n/**\n * Converts a color from CSS hex format to CSS rgb format.\n *\n * @param {string} color - Hex color, i.e. #nnn or #nnnnnn\n * @returns {string} A CSS rgb color string\n */\n\n\nfunction hexToRgb(color) {\n color = color.substr(1);\n var re = new RegExp(\".{1,\".concat(color.length >= 6 ? 2 : 1, \"}\"), 'g');\n var colors = color.match(re);\n\n if (colors && colors[0].length === 1) {\n colors = colors.map(function (n) {\n return n + n;\n });\n }\n\n return colors ? \"rgb\".concat(colors.length === 4 ? 'a' : '', \"(\").concat(colors.map(function (n, index) {\n return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;\n }).join(', '), \")\") : '';\n}\n\nfunction intToHex(int) {\n var hex = int.toString(16);\n return hex.length === 1 ? \"0\".concat(hex) : hex;\n}\n/**\n * Converts a color from CSS rgb format to CSS hex format.\n *\n * @param {string} color - RGB color, i.e. rgb(n, n, n)\n * @returns {string} A CSS rgb color string, i.e. #nnnnnn\n */\n\n\nfunction rgbToHex(color) {\n // Idempotent\n if (color.indexOf('#') === 0) {\n return color;\n }\n\n var _decomposeColor = decomposeColor(color),\n values = _decomposeColor.values;\n\n return \"#\".concat(values.map(function (n) {\n return intToHex(n);\n }).join(''));\n}\n/**\n * Converts a color from hsl format to rgb format.\n *\n * @param {string} color - HSL color values\n * @returns {string} rgb color values\n */\n\n\nfunction hslToRgb(color) {\n color = decomposeColor(color);\n var _color = color,\n values = _color.values;\n var h = values[0];\n var s = values[1] / 100;\n var l = values[2] / 100;\n var a = s * Math.min(l, 1 - l);\n\n var f = function f(n) {\n var k = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (n + h / 30) % 12;\n return l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n };\n\n var type = 'rgb';\n var rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];\n\n if (color.type === 'hsla') {\n type += 'a';\n rgb.push(values[3]);\n }\n\n return recomposeColor({\n type: type,\n values: rgb\n });\n}\n/**\n * Returns an object with the type and values of a color.\n *\n * Note: Does not support rgb % values.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @returns {object} - A MUI color object: {type: string, values: number[]}\n */\n\n\nfunction decomposeColor(color) {\n // Idempotent\n if (color.type) {\n return color;\n }\n\n if (color.charAt(0) === '#') {\n return decomposeColor(hexToRgb(color));\n }\n\n var marker = color.indexOf('(');\n var type = color.substring(0, marker);\n\n if (['rgb', 'rgba', 'hsl', 'hsla'].indexOf(type) === -1) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? \"Material-UI: Unsupported `\".concat(color, \"` color.\\nWe support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla().\") : (0, _utils.formatMuiErrorMessage)(3, color));\n }\n\n var values = color.substring(marker + 1, color.length - 1).split(',');\n values = values.map(function (value) {\n return parseFloat(value);\n });\n return {\n type: type,\n values: values\n };\n}\n/**\n * Converts a color object with type and values to a string.\n *\n * @param {object} color - Decomposed color\n * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla'\n * @param {array} color.values - [n,n,n] or [n,n,n,n]\n * @returns {string} A CSS color string\n */\n\n\nfunction recomposeColor(color) {\n var type = color.type;\n var values = color.values;\n\n if (type.indexOf('rgb') !== -1) {\n // Only convert the first 3 values to int (i.e. not alpha)\n values = values.map(function (n, i) {\n return i < 3 ? parseInt(n, 10) : n;\n });\n } else if (type.indexOf('hsl') !== -1) {\n values[1] = \"\".concat(values[1], \"%\");\n values[2] = \"\".concat(values[2], \"%\");\n }\n\n return \"\".concat(type, \"(\").concat(values.join(', '), \")\");\n}\n/**\n * Calculates the contrast ratio between two colors.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n *\n * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @returns {number} A contrast ratio value in the range 0 - 21.\n */\n\n\nfunction getContrastRatio(foreground, background) {\n var lumA = getLuminance(foreground);\n var lumB = getLuminance(background);\n return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);\n}\n/**\n * The relative brightness of any point in a color space,\n * normalized to 0 for darkest black and 1 for lightest white.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @returns {number} The relative brightness of the color in the range 0 - 1\n */\n\n\nfunction getLuminance(color) {\n color = decomposeColor(color);\n var rgb = color.type === 'hsl' ? decomposeColor(hslToRgb(color)).values : color.values;\n rgb = rgb.map(function (val) {\n val /= 255; // normalized\n\n return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4);\n }); // Truncate at 3 digits\n\n return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));\n}\n/**\n * Darken or lighten a color, depending on its luminance.\n * Light colors are darkened, dark colors are lightened.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {number} coefficient=0.15 - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\n\n\nfunction emphasize(color) {\n var coefficient = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.15;\n return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);\n}\n\nvar warnedOnce = false;\n/**\n * Set the absolute transparency of a color.\n * Any existing alpha values are overwritten.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {number} value - value to set the alpha channel to in the range 0 -1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n *\n * @deprecated\n * Use `import { alpha } from '@material-ui/core/styles'` instead.\n */\n\nfunction fade(color, value) {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnedOnce) {\n warnedOnce = true;\n console.error(['Material-UI: The `fade` color utility was renamed to `alpha` to better describe its functionality.', '', \"You should use `import { alpha } from '@material-ui/core/styles'`\"].join('\\n'));\n }\n }\n\n return alpha(color, value);\n}\n/**\n * Set the absolute transparency of a color.\n * Any existing alpha value is overwritten.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {number} value - value to set the alpha channel to in the range 0-1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\n\n\nfunction alpha(color, value) {\n color = decomposeColor(color);\n value = clamp(value);\n\n if (color.type === 'rgb' || color.type === 'hsl') {\n color.type += 'a';\n }\n\n color.values[3] = value;\n return recomposeColor(color);\n}\n/**\n * Darkens a color.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\n\n\nfunction darken(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clamp(coefficient);\n\n if (color.type.indexOf('hsl') !== -1) {\n color.values[2] *= 1 - coefficient;\n } else if (color.type.indexOf('rgb') !== -1) {\n for (var i = 0; i < 3; i += 1) {\n color.values[i] *= 1 - coefficient;\n }\n }\n\n return recomposeColor(color);\n}\n/**\n * Lightens a color.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\n\n\nfunction lighten(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clamp(coefficient);\n\n if (color.type.indexOf('hsl') !== -1) {\n color.values[2] += (100 - color.values[2]) * coefficient;\n } else if (color.type.indexOf('rgb') !== -1) {\n for (var i = 0; i < 3; i += 1) {\n color.values[i] += (255 - color.values[i]) * coefficient;\n }\n }\n\n return recomposeColor(color);\n}", "function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (e.includes(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nmodule.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var objectWithoutPropertiesLoose = require(\"./objectWithoutPropertiesLoose.js\");\nfunction _objectWithoutProperties(e, t) {\n if (null == e) return {};\n var o,\n r,\n i = objectWithoutPropertiesLoose(e, t);\n if (Object.getOwnPropertySymbols) {\n var s = Object.getOwnPropertySymbols(e);\n for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);\n }\n return i;\n}\nmodule.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = createBreakpoints;\nexports.keys = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\n\n// Sorted ASC by size. That's important.\n// It can't be configured as it's used statically for propTypes.\nvar keys = ['xs', 'sm', 'md', 'lg', 'xl']; // Keep in mind that @media is inclusive by the CSS specification.\n\nexports.keys = keys;\n\nfunction createBreakpoints(breakpoints) {\n var _breakpoints$values = breakpoints.values,\n values = _breakpoints$values === void 0 ? {\n xs: 0,\n sm: 600,\n md: 960,\n lg: 1280,\n xl: 1920\n } : _breakpoints$values,\n _breakpoints$unit = breakpoints.unit,\n unit = _breakpoints$unit === void 0 ? 'px' : _breakpoints$unit,\n _breakpoints$step = breakpoints.step,\n step = _breakpoints$step === void 0 ? 5 : _breakpoints$step,\n other = (0, _objectWithoutProperties2.default)(breakpoints, [\"values\", \"unit\", \"step\"]);\n\n function up(key) {\n var value = typeof values[key] === 'number' ? values[key] : key;\n return \"@media (min-width:\".concat(value).concat(unit, \")\");\n }\n\n function down(key) {\n var endIndex = keys.indexOf(key) + 1;\n var upperbound = values[keys[endIndex]];\n\n if (endIndex === keys.length) {\n // xl down applies to all sizes\n return up('xs');\n }\n\n var value = typeof upperbound === 'number' && endIndex > 0 ? upperbound : key;\n return \"@media (max-width:\".concat(value - step / 100).concat(unit, \")\");\n }\n\n function between(start, end) {\n var endIndex = keys.indexOf(end);\n\n if (endIndex === keys.length - 1) {\n return up(start);\n }\n\n return \"@media (min-width:\".concat(typeof values[start] === 'number' ? values[start] : start).concat(unit, \") and \") + \"(max-width:\".concat((endIndex !== -1 && typeof values[keys[endIndex + 1]] === 'number' ? values[keys[endIndex + 1]] : end) - step / 100).concat(unit, \")\");\n }\n\n function only(key) {\n return between(key, key);\n }\n\n var warnedOnce = false;\n\n function width(key) {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnedOnce) {\n warnedOnce = true;\n console.warn([\"Material-UI: The `theme.breakpoints.width` utility is deprecated because it's redundant.\", 'Use the `theme.breakpoints.values` instead.'].join('\\n'));\n }\n }\n\n return values[key];\n }\n\n return (0, _extends2.default)({\n keys: keys,\n values: values,\n up: up,\n down: down,\n between: between,\n only: only,\n width: width\n }, other);\n}", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = createMixins;\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _extends3 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nfunction createMixins(breakpoints, spacing, mixins) {\n var _toolbar;\n\n return (0, _extends3.default)({\n gutters: function gutters() {\n var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n console.warn(['Material-UI: theme.mixins.gutters() is deprecated.', 'You can use the source of the mixin directly:', \"\\n paddingLeft: theme.spacing(2),\\n paddingRight: theme.spacing(2),\\n [theme.breakpoints.up('sm')]: {\\n paddingLeft: theme.spacing(3),\\n paddingRight: theme.spacing(3),\\n },\\n \"].join('\\n'));\n return (0, _extends3.default)({\n paddingLeft: spacing(2),\n paddingRight: spacing(2)\n }, styles, (0, _defineProperty2.default)({}, breakpoints.up('sm'), (0, _extends3.default)({\n paddingLeft: spacing(3),\n paddingRight: spacing(3)\n }, styles[breakpoints.up('sm')])));\n },\n toolbar: (_toolbar = {\n minHeight: 56\n }, (0, _defineProperty2.default)(_toolbar, \"\".concat(breakpoints.up('xs'), \" and (orientation: landscape)\"), {\n minHeight: 48\n }), (0, _defineProperty2.default)(_toolbar, breakpoints.up('sm'), {\n minHeight: 64\n }), _toolbar)\n }, mixins);\n}", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar common = {\n black: '#000',\n white: '#fff'\n};\nvar _default = common;\nexports.default = _default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar grey = {\n 50: '#fafafa',\n 100: '#f5f5f5',\n 200: '#eeeeee',\n 300: '#e0e0e0',\n 400: '#bdbdbd',\n 500: '#9e9e9e',\n 600: '#757575',\n 700: '#616161',\n 800: '#424242',\n 900: '#212121',\n A100: '#d5d5d5',\n A200: '#aaaaaa',\n A400: '#303030',\n A700: '#616161'\n};\nvar _default = grey;\nexports.default = _default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar indigo = {\n 50: '#e8eaf6',\n 100: '#c5cae9',\n 200: '#9fa8da',\n 300: '#7986cb',\n 400: '#5c6bc0',\n 500: '#3f51b5',\n 600: '#3949ab',\n 700: '#303f9f',\n 800: '#283593',\n 900: '#1a237e',\n A100: '#8c9eff',\n A200: '#536dfe',\n A400: '#3d5afe',\n A700: '#304ffe'\n};\nvar _default = indigo;\nexports.default = _default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar pink = {\n 50: '#fce4ec',\n 100: '#f8bbd0',\n 200: '#f48fb1',\n 300: '#f06292',\n 400: '#ec407a',\n 500: '#e91e63',\n 600: '#d81b60',\n 700: '#c2185b',\n 800: '#ad1457',\n 900: '#880e4f',\n A100: '#ff80ab',\n A200: '#ff4081',\n A400: '#f50057',\n A700: '#c51162'\n};\nvar _default = pink;\nexports.default = _default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar red = {\n 50: '#ffebee',\n 100: '#ffcdd2',\n 200: '#ef9a9a',\n 300: '#e57373',\n 400: '#ef5350',\n 500: '#f44336',\n 600: '#e53935',\n 700: '#d32f2f',\n 800: '#c62828',\n 900: '#b71c1c',\n A100: '#ff8a80',\n A200: '#ff5252',\n A400: '#ff1744',\n A700: '#d50000'\n};\nvar _default = red;\nexports.default = _default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar orange = {\n 50: '#fff3e0',\n 100: '#ffe0b2',\n 200: '#ffcc80',\n 300: '#ffb74d',\n 400: '#ffa726',\n 500: '#ff9800',\n 600: '#fb8c00',\n 700: '#f57c00',\n 800: '#ef6c00',\n 900: '#e65100',\n A100: '#ffd180',\n A200: '#ffab40',\n A400: '#ff9100',\n A700: '#ff6d00'\n};\nvar _default = orange;\nexports.default = _default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar blue = {\n 50: '#e3f2fd',\n 100: '#bbdefb',\n 200: '#90caf9',\n 300: '#64b5f6',\n 400: '#42a5f5',\n 500: '#2196f3',\n 600: '#1e88e5',\n 700: '#1976d2',\n 800: '#1565c0',\n 900: '#0d47a1',\n A100: '#82b1ff',\n A200: '#448aff',\n A400: '#2979ff',\n A700: '#2962ff'\n};\nvar _default = blue;\nexports.default = _default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar green = {\n 50: '#e8f5e9',\n 100: '#c8e6c9',\n 200: '#a5d6a7',\n 300: '#81c784',\n 400: '#66bb6a',\n 500: '#4caf50',\n 600: '#43a047',\n 700: '#388e3c',\n 800: '#2e7d32',\n 900: '#1b5e20',\n A100: '#b9f6ca',\n A200: '#69f0ae',\n A400: '#00e676',\n A700: '#00c853'\n};\nvar _default = green;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = createPalette;\nexports.dark = exports.light = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\n\nvar _utils = require(\"@material-ui/utils\");\n\nvar _common = _interopRequireDefault(require(\"../colors/common\"));\n\nvar _grey = _interopRequireDefault(require(\"../colors/grey\"));\n\nvar _indigo = _interopRequireDefault(require(\"../colors/indigo\"));\n\nvar _pink = _interopRequireDefault(require(\"../colors/pink\"));\n\nvar _red = _interopRequireDefault(require(\"../colors/red\"));\n\nvar _orange = _interopRequireDefault(require(\"../colors/orange\"));\n\nvar _blue = _interopRequireDefault(require(\"../colors/blue\"));\n\nvar _green = _interopRequireDefault(require(\"../colors/green\"));\n\nvar _colorManipulator = require(\"./colorManipulator\");\n\nvar light = {\n // The colors used to style the text.\n text: {\n // The most important text.\n primary: 'rgba(0, 0, 0, 0.87)',\n // Secondary text.\n secondary: 'rgba(0, 0, 0, 0.54)',\n // Disabled text have even lower visual prominence.\n disabled: 'rgba(0, 0, 0, 0.38)',\n // Text hints.\n hint: 'rgba(0, 0, 0, 0.38)'\n },\n // The color used to divide different elements.\n divider: 'rgba(0, 0, 0, 0.12)',\n // The background colors used to style the surfaces.\n // Consistency between these values is important.\n background: {\n paper: _common.default.white,\n default: _grey.default[50]\n },\n // The colors used to style the action elements.\n action: {\n // The color of an active action like an icon button.\n active: 'rgba(0, 0, 0, 0.54)',\n // The color of an hovered action.\n hover: 'rgba(0, 0, 0, 0.04)',\n hoverOpacity: 0.04,\n // The color of a selected action.\n selected: 'rgba(0, 0, 0, 0.08)',\n selectedOpacity: 0.08,\n // The color of a disabled action.\n disabled: 'rgba(0, 0, 0, 0.26)',\n // The background color of a disabled action.\n disabledBackground: 'rgba(0, 0, 0, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(0, 0, 0, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.12\n }\n};\nexports.light = light;\nvar dark = {\n text: {\n primary: _common.default.white,\n secondary: 'rgba(255, 255, 255, 0.7)',\n disabled: 'rgba(255, 255, 255, 0.5)',\n hint: 'rgba(255, 255, 255, 0.5)',\n icon: 'rgba(255, 255, 255, 0.5)'\n },\n divider: 'rgba(255, 255, 255, 0.12)',\n background: {\n paper: _grey.default[800],\n default: '#303030'\n },\n action: {\n active: _common.default.white,\n hover: 'rgba(255, 255, 255, 0.08)',\n hoverOpacity: 0.08,\n selected: 'rgba(255, 255, 255, 0.16)',\n selectedOpacity: 0.16,\n disabled: 'rgba(255, 255, 255, 0.3)',\n disabledBackground: 'rgba(255, 255, 255, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(255, 255, 255, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.24\n }\n};\nexports.dark = dark;\n\nfunction addLightOrDark(intent, direction, shade, tonalOffset) {\n var tonalOffsetLight = tonalOffset.light || tonalOffset;\n var tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;\n\n if (!intent[direction]) {\n if (intent.hasOwnProperty(shade)) {\n intent[direction] = intent[shade];\n } else if (direction === 'light') {\n intent.light = (0, _colorManipulator.lighten)(intent.main, tonalOffsetLight);\n } else if (direction === 'dark') {\n intent.dark = (0, _colorManipulator.darken)(intent.main, tonalOffsetDark);\n }\n }\n}\n\nfunction createPalette(palette) {\n var _palette$primary = palette.primary,\n primary = _palette$primary === void 0 ? {\n light: _indigo.default[300],\n main: _indigo.default[500],\n dark: _indigo.default[700]\n } : _palette$primary,\n _palette$secondary = palette.secondary,\n secondary = _palette$secondary === void 0 ? {\n light: _pink.default.A200,\n main: _pink.default.A400,\n dark: _pink.default.A700\n } : _palette$secondary,\n _palette$error = palette.error,\n error = _palette$error === void 0 ? {\n light: _red.default[300],\n main: _red.default[500],\n dark: _red.default[700]\n } : _palette$error,\n _palette$warning = palette.warning,\n warning = _palette$warning === void 0 ? {\n light: _orange.default[300],\n main: _orange.default[500],\n dark: _orange.default[700]\n } : _palette$warning,\n _palette$info = palette.info,\n info = _palette$info === void 0 ? {\n light: _blue.default[300],\n main: _blue.default[500],\n dark: _blue.default[700]\n } : _palette$info,\n _palette$success = palette.success,\n success = _palette$success === void 0 ? {\n light: _green.default[300],\n main: _green.default[500],\n dark: _green.default[700]\n } : _palette$success,\n _palette$type = palette.type,\n type = _palette$type === void 0 ? 'light' : _palette$type,\n _palette$contrastThre = palette.contrastThreshold,\n contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre,\n _palette$tonalOffset = palette.tonalOffset,\n tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset,\n other = (0, _objectWithoutProperties2.default)(palette, [\"primary\", \"secondary\", \"error\", \"warning\", \"info\", \"success\", \"type\", \"contrastThreshold\", \"tonalOffset\"]); // Use the same logic as\n // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59\n // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54\n\n function getContrastText(background) {\n var contrastText = (0, _colorManipulator.getContrastRatio)(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;\n\n if (process.env.NODE_ENV !== 'production') {\n var contrast = (0, _colorManipulator.getContrastRatio)(background, contrastText);\n\n if (contrast < 3) {\n console.error([\"Material-UI: The contrast ratio of \".concat(contrast, \":1 for \").concat(contrastText, \" on \").concat(background), 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\\n'));\n }\n }\n\n return contrastText;\n }\n\n var augmentColor = function augmentColor(color) {\n var mainShade = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;\n var lightShade = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 300;\n var darkShade = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 700;\n color = (0, _extends2.default)({}, color);\n\n if (!color.main && color[mainShade]) {\n color.main = color[mainShade];\n }\n\n if (!color.main) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? \"Material-UI: The color provided to augmentColor(color) is invalid.\\nThe color object needs to have a `main` property or a `\".concat(mainShade, \"` property.\") : (0, _utils.formatMuiErrorMessage)(4, mainShade));\n }\n\n if (typeof color.main !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? \"Material-UI: The color provided to augmentColor(color) is invalid.\\n`color.main` should be a string, but `\".concat(JSON.stringify(color.main), \"` was provided instead.\\n\\nDid you intend to use one of the following approaches?\\n\\nimport {\\xA0green } from \\\"@material-ui/core/colors\\\";\\n\\nconst theme1 = createTheme({ palette: {\\n primary: green,\\n} });\\n\\nconst theme2 = createTheme({ palette: {\\n primary: { main: green[500] },\\n} });\") : _formatMuiErrorMessage(5, JSON.stringify(color.main)));\n }\n\n addLightOrDark(color, 'light', lightShade, tonalOffset);\n addLightOrDark(color, 'dark', darkShade, tonalOffset);\n\n if (!color.contrastText) {\n color.contrastText = getContrastText(color.main);\n }\n\n return color;\n };\n\n var types = {\n dark: dark,\n light: light\n };\n\n if (process.env.NODE_ENV !== 'production') {\n if (!types[type]) {\n console.error(\"Material-UI: The palette type `\".concat(type, \"` is not supported.\"));\n }\n }\n\n var paletteOutput = (0, _utils.deepmerge)((0, _extends2.default)({\n // A collection of common colors.\n common: _common.default,\n // The palette type, can be light or dark.\n type: type,\n // The colors used to represent primary interface elements for a user.\n primary: augmentColor(primary),\n // The colors used to represent secondary interface elements for a user.\n secondary: augmentColor(secondary, 'A400', 'A200', 'A700'),\n // The colors used to represent interface elements that the user should be made aware of.\n error: augmentColor(error),\n // The colors used to represent potentially dangerous actions or important messages.\n warning: augmentColor(warning),\n // The colors used to present information to the user that is neutral and not necessarily important.\n info: augmentColor(info),\n // The colors used to indicate the successful completion of an action that user triggered.\n success: augmentColor(success),\n // The grey colors.\n grey: _grey.default,\n // Used by `getContrastText()` to maximize the contrast between\n // the background and the text.\n contrastThreshold: contrastThreshold,\n // Takes a background color and returns the text color that maximizes the contrast.\n getContrastText: getContrastText,\n // Generate a rich color object.\n augmentColor: augmentColor,\n // Used by the functions below to shift a color's luminance by approximately\n // two indexes within its tonal palette.\n // E.g., shift from Red 500 to Red 300 or Red 700.\n tonalOffset: tonalOffset\n }, types[type]), other);\n return paletteOutput;\n}", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = createTypography;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\n\nvar _utils = require(\"@material-ui/utils\");\n\nfunction round(value) {\n return Math.round(value * 1e5) / 1e5;\n}\n\nvar warnedOnce = false;\n\nfunction roundWithDeprecationWarning(value) {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnedOnce) {\n console.warn(['Material-UI: The `theme.typography.round` helper is deprecated.', 'Head to https://mui.com/r/migration-v4/#theme for a migration path.'].join('\\n'));\n warnedOnce = true;\n }\n }\n\n return round(value);\n}\n\nvar caseAllCaps = {\n textTransform: 'uppercase'\n};\nvar defaultFontFamily = '\"Roboto\", \"Helvetica\", \"Arial\", sans-serif';\n/**\n * @see @link{https://material.io/design/typography/the-type-system.html}\n * @see @link{https://material.io/design/typography/understanding-typography.html}\n */\n\nfunction createTypography(palette, typography) {\n var _ref = typeof typography === 'function' ? typography(palette) : typography,\n _ref$fontFamily = _ref.fontFamily,\n fontFamily = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily,\n _ref$fontSize = _ref.fontSize,\n fontSize = _ref$fontSize === void 0 ? 14 : _ref$fontSize,\n _ref$fontWeightLight = _ref.fontWeightLight,\n fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight,\n _ref$fontWeightRegula = _ref.fontWeightRegular,\n fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula,\n _ref$fontWeightMedium = _ref.fontWeightMedium,\n fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium,\n _ref$fontWeightBold = _ref.fontWeightBold,\n fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold,\n _ref$htmlFontSize = _ref.htmlFontSize,\n htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize,\n allVariants = _ref.allVariants,\n pxToRem2 = _ref.pxToRem,\n other = (0, _objectWithoutProperties2.default)(_ref, [\"fontFamily\", \"fontSize\", \"fontWeightLight\", \"fontWeightRegular\", \"fontWeightMedium\", \"fontWeightBold\", \"htmlFontSize\", \"allVariants\", \"pxToRem\"]);\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof fontSize !== 'number') {\n console.error('Material-UI: `fontSize` is required to be a number.');\n }\n\n if (typeof htmlFontSize !== 'number') {\n console.error('Material-UI: `htmlFontSize` is required to be a number.');\n }\n }\n\n var coef = fontSize / 14;\n\n var pxToRem = pxToRem2 || function (size) {\n return \"\".concat(size / htmlFontSize * coef, \"rem\");\n };\n\n var buildVariant = function buildVariant(fontWeight, size, lineHeight, letterSpacing, casing) {\n return (0, _extends2.default)({\n fontFamily: fontFamily,\n fontWeight: fontWeight,\n fontSize: pxToRem(size),\n // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/\n lineHeight: lineHeight\n }, fontFamily === defaultFontFamily ? {\n letterSpacing: \"\".concat(round(letterSpacing / size), \"em\")\n } : {}, casing, allVariants);\n };\n\n var variants = {\n h1: buildVariant(fontWeightLight, 96, 1.167, -1.5),\n h2: buildVariant(fontWeightLight, 60, 1.2, -0.5),\n h3: buildVariant(fontWeightRegular, 48, 1.167, 0),\n h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25),\n h5: buildVariant(fontWeightRegular, 24, 1.334, 0),\n h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15),\n subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15),\n subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1),\n body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15),\n body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15),\n button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps),\n caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),\n overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps)\n };\n return (0, _utils.deepmerge)((0, _extends2.default)({\n htmlFontSize: htmlFontSize,\n pxToRem: pxToRem,\n round: roundWithDeprecationWarning,\n // TODO v5: remove\n fontFamily: fontFamily,\n fontSize: fontSize,\n fontWeightLight: fontWeightLight,\n fontWeightRegular: fontWeightRegular,\n fontWeightMedium: fontWeightMedium,\n fontWeightBold: fontWeightBold\n }, variants), other, {\n clone: false // No need to clone deep\n\n });\n}", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar shadowKeyUmbraOpacity = 0.2;\nvar shadowKeyPenumbraOpacity = 0.14;\nvar shadowAmbientShadowOpacity = 0.12;\n\nfunction createShadow() {\n return [\"\".concat(arguments.length <= 0 ? undefined : arguments[0], \"px \").concat(arguments.length <= 1 ? undefined : arguments[1], \"px \").concat(arguments.length <= 2 ? undefined : arguments[2], \"px \").concat(arguments.length <= 3 ? undefined : arguments[3], \"px rgba(0,0,0,\").concat(shadowKeyUmbraOpacity, \")\"), \"\".concat(arguments.length <= 4 ? undefined : arguments[4], \"px \").concat(arguments.length <= 5 ? undefined : arguments[5], \"px \").concat(arguments.length <= 6 ? undefined : arguments[6], \"px \").concat(arguments.length <= 7 ? undefined : arguments[7], \"px rgba(0,0,0,\").concat(shadowKeyPenumbraOpacity, \")\"), \"\".concat(arguments.length <= 8 ? undefined : arguments[8], \"px \").concat(arguments.length <= 9 ? undefined : arguments[9], \"px \").concat(arguments.length <= 10 ? undefined : arguments[10], \"px \").concat(arguments.length <= 11 ? undefined : arguments[11], \"px rgba(0,0,0,\").concat(shadowAmbientShadowOpacity, \")\")].join(',');\n} // Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss\n\n\nvar shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];\nvar _default = shadows;\nexports.default = _default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar shape = {\n borderRadius: 4\n};\nvar _default = shape;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar responsivePropType = process.env.NODE_ENV !== 'production' ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string, _propTypes.default.object, _propTypes.default.array]) : {};\nvar _default = responsivePropType;\nexports.default = _default;", "function _arrayLikeToArray(r, a) {\n (null == a || a > r.length) && (a = r.length);\n for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];\n return n;\n}\nmodule.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _arrayWithoutHoles(r) {\n if (Array.isArray(r)) return arrayLikeToArray(r);\n}\nmodule.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _iterableToArray(r) {\n if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r);\n}\nmodule.exports = _iterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _unsupportedIterableToArray(r, a) {\n if (r) {\n if (\"string\" == typeof r) return arrayLikeToArray(r, a);\n var t = {}.toString.call(r).slice(8, -1);\n return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;\n }\n}\nmodule.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var arrayWithoutHoles = require(\"./arrayWithoutHoles.js\");\nvar iterableToArray = require(\"./iterableToArray.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableSpread = require(\"./nonIterableSpread.js\");\nfunction _toConsumableArray(r) {\n return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread();\n}\nmodule.exports = _toConsumableArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _utils = require(\"@material-ui/utils\");\n\nfunction merge(acc, item) {\n if (!item) {\n return acc;\n }\n\n return (0, _utils.deepmerge)(acc, item, {\n clone: false // No need to clone deep, it's way faster.\n\n });\n}\n\nvar _default = merge;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.handleBreakpoints = handleBreakpoints;\nexports.default = void 0;\n\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _merge = _interopRequireDefault(require(\"./merge\"));\n\n// The breakpoint **start** at this value.\n// For instance with the first breakpoint xs: [xs, sm[.\nvar values = {\n xs: 0,\n sm: 600,\n md: 960,\n lg: 1280,\n xl: 1920\n};\nvar defaultBreakpoints = {\n // Sorted ASC by size. That's important.\n // It can't be configured as it's used statically for propTypes.\n keys: ['xs', 'sm', 'md', 'lg', 'xl'],\n up: function up(key) {\n return \"@media (min-width:\".concat(values[key], \"px)\");\n }\n};\n\nfunction handleBreakpoints(props, propValue, styleFromPropValue) {\n if (process.env.NODE_ENV !== 'production') {\n if (!props.theme) {\n console.error('Material-UI: You are calling a style function without a theme value.');\n }\n }\n\n if (Array.isArray(propValue)) {\n var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;\n return propValue.reduce(function (acc, item, index) {\n acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);\n return acc;\n }, {});\n }\n\n if ((0, _typeof2.default)(propValue) === 'object') {\n var _themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;\n\n return Object.keys(propValue).reduce(function (acc, breakpoint) {\n acc[_themeBreakpoints.up(breakpoint)] = styleFromPropValue(propValue[breakpoint]);\n return acc;\n }, {});\n }\n\n var output = styleFromPropValue(propValue);\n return output;\n}\n\nfunction breakpoints(styleFunction) {\n var newStyleFunction = function newStyleFunction(props) {\n var base = styleFunction(props);\n var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;\n var extended = themeBreakpoints.keys.reduce(function (acc, key) {\n if (props[key]) {\n acc = acc || {};\n acc[themeBreakpoints.up(key)] = styleFunction((0, _extends2.default)({\n theme: props.theme\n }, props[key]));\n }\n\n return acc;\n }, null);\n return (0, _merge.default)(base, extended);\n };\n\n newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? (0, _extends2.default)({}, styleFunction.propTypes, {\n xs: _propTypes.default.object,\n sm: _propTypes.default.object,\n md: _propTypes.default.object,\n lg: _propTypes.default.object,\n xl: _propTypes.default.object\n }) : {};\n newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl'].concat((0, _toConsumableArray2.default)(styleFunction.filterProps));\n return newStyleFunction;\n}\n\nvar _default = breakpoints;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _responsivePropType = _interopRequireDefault(require(\"./responsivePropType\"));\n\nvar _breakpoints = require(\"./breakpoints\");\n\nfunction getPath(obj, path) {\n if (!path || typeof path !== 'string') {\n return null;\n }\n\n return path.split('.').reduce(function (acc, item) {\n return acc && acc[item] ? acc[item] : null;\n }, obj);\n}\n\nfunction style(options) {\n var prop = options.prop,\n _options$cssProperty = options.cssProperty,\n cssProperty = _options$cssProperty === void 0 ? options.prop : _options$cssProperty,\n themeKey = options.themeKey,\n transform = options.transform;\n\n var fn = function fn(props) {\n if (props[prop] == null) {\n return null;\n }\n\n var propValue = props[prop];\n var theme = props.theme;\n var themeMapping = getPath(theme, themeKey) || {};\n\n var styleFromPropValue = function styleFromPropValue(propValueFinal) {\n var value;\n\n if (typeof themeMapping === 'function') {\n value = themeMapping(propValueFinal);\n } else if (Array.isArray(themeMapping)) {\n value = themeMapping[propValueFinal] || propValueFinal;\n } else {\n value = getPath(themeMapping, propValueFinal) || propValueFinal;\n\n if (transform) {\n value = transform(value);\n }\n }\n\n if (cssProperty === false) {\n return value;\n }\n\n return (0, _defineProperty2.default)({}, cssProperty, value);\n };\n\n return (0, _breakpoints.handleBreakpoints)(props, propValue, styleFromPropValue);\n };\n\n fn.propTypes = process.env.NODE_ENV !== 'production' ? (0, _defineProperty2.default)({}, prop, _responsivePropType.default) : {};\n fn.filterProps = [prop];\n return fn;\n}\n\nvar _default = style;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _merge = _interopRequireDefault(require(\"./merge\"));\n\nfunction compose() {\n for (var _len = arguments.length, styles = new Array(_len), _key = 0; _key < _len; _key++) {\n styles[_key] = arguments[_key];\n }\n\n var fn = function fn(props) {\n return styles.reduce(function (acc, style) {\n var output = style(props);\n\n if (output) {\n return (0, _merge.default)(acc, output);\n }\n\n return acc;\n }, {});\n }; // Alternative approach that doesn't yield any performance gain.\n // const handlers = styles.reduce((acc, style) => {\n // style.filterProps.forEach(prop => {\n // acc[prop] = style;\n // });\n // return acc;\n // }, {});\n // const fn = props => {\n // return Object.keys(props).reduce((acc, prop) => {\n // if (handlers[prop]) {\n // return merge(acc, handlers[prop](props));\n // }\n // return acc;\n // }, {});\n // };\n\n\n fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce(function (acc, style) {\n return (0, _extends2.default)(acc, style.propTypes);\n }, {}) : {};\n fn.filterProps = styles.reduce(function (acc, style) {\n return acc.concat(style.filterProps);\n }, []);\n return fn;\n}\n\nvar _default = compose;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = exports.borderRadius = exports.borderColor = exports.borderLeft = exports.borderBottom = exports.borderRight = exports.borderTop = exports.border = void 0;\n\nvar _style = _interopRequireDefault(require(\"./style\"));\n\nvar _compose = _interopRequireDefault(require(\"./compose\"));\n\nfunction getBorder(value) {\n if (typeof value !== 'number') {\n return value;\n }\n\n return \"\".concat(value, \"px solid\");\n}\n\nvar border = (0, _style.default)({\n prop: 'border',\n themeKey: 'borders',\n transform: getBorder\n});\nexports.border = border;\nvar borderTop = (0, _style.default)({\n prop: 'borderTop',\n themeKey: 'borders',\n transform: getBorder\n});\nexports.borderTop = borderTop;\nvar borderRight = (0, _style.default)({\n prop: 'borderRight',\n themeKey: 'borders',\n transform: getBorder\n});\nexports.borderRight = borderRight;\nvar borderBottom = (0, _style.default)({\n prop: 'borderBottom',\n themeKey: 'borders',\n transform: getBorder\n});\nexports.borderBottom = borderBottom;\nvar borderLeft = (0, _style.default)({\n prop: 'borderLeft',\n themeKey: 'borders',\n transform: getBorder\n});\nexports.borderLeft = borderLeft;\nvar borderColor = (0, _style.default)({\n prop: 'borderColor',\n themeKey: 'palette'\n});\nexports.borderColor = borderColor;\nvar borderRadius = (0, _style.default)({\n prop: 'borderRadius',\n themeKey: 'shape'\n});\nexports.borderRadius = borderRadius;\nvar borders = (0, _compose.default)(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderRadius);\nvar _default = borders;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.css = css;\nexports.default = void 0;\n\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _utils = require(\"@material-ui/utils\");\n\nvar _merge = _interopRequireDefault(require(\"./merge\"));\n\nfunction omit(input, fields) {\n var output = {};\n Object.keys(input).forEach(function (prop) {\n if (fields.indexOf(prop) === -1) {\n output[prop] = input[prop];\n }\n });\n return output;\n}\n\nvar warnedOnce = false;\n\nfunction styleFunctionSx(styleFunction) {\n var newStyleFunction = function newStyleFunction(props) {\n var output = styleFunction(props);\n\n if (props.css) {\n return (0, _extends2.default)({}, (0, _merge.default)(output, styleFunction((0, _extends2.default)({\n theme: props.theme\n }, props.css))), omit(props.css, [styleFunction.filterProps]));\n }\n\n if (props.sx) {\n return (0, _extends2.default)({}, (0, _merge.default)(output, styleFunction((0, _extends2.default)({\n theme: props.theme\n }, props.sx))), omit(props.sx, [styleFunction.filterProps]));\n }\n\n return output;\n };\n\n newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? (0, _extends2.default)({}, styleFunction.propTypes, {\n css: (0, _utils.chainPropTypes)(_propTypes.default.object, function (props) {\n if (!warnedOnce && props.css !== undefined) {\n warnedOnce = true;\n return new Error('Material-UI: The `css` prop is deprecated, please use the `sx` prop instead.');\n }\n\n return null;\n }),\n sx: _propTypes.default.object\n }) : {};\n newStyleFunction.filterProps = ['css', 'sx'].concat((0, _toConsumableArray2.default)(styleFunction.filterProps));\n return newStyleFunction;\n}\n/**\n *\n * @deprecated\n * The css style function is deprecated. Use the `styleFunctionSx` instead.\n */\n\n\nfunction css(styleFunction) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('Material-UI: The `css` function is deprecated. Use the `styleFunctionSx` instead.');\n }\n\n return styleFunctionSx(styleFunction);\n}\n\nvar _default = styleFunctionSx;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = exports.whiteSpace = exports.visibility = exports.textOverflow = exports.overflow = exports.displayRaw = exports.displayPrint = void 0;\n\nvar _style = _interopRequireDefault(require(\"./style\"));\n\nvar _compose = _interopRequireDefault(require(\"./compose\"));\n\nvar displayPrint = (0, _style.default)({\n prop: 'displayPrint',\n cssProperty: false,\n transform: function transform(value) {\n return {\n '@media print': {\n display: value\n }\n };\n }\n});\nexports.displayPrint = displayPrint;\nvar displayRaw = (0, _style.default)({\n prop: 'display'\n});\nexports.displayRaw = displayRaw;\nvar overflow = (0, _style.default)({\n prop: 'overflow'\n});\nexports.overflow = overflow;\nvar textOverflow = (0, _style.default)({\n prop: 'textOverflow'\n});\nexports.textOverflow = textOverflow;\nvar visibility = (0, _style.default)({\n prop: 'visibility'\n});\nexports.visibility = visibility;\nvar whiteSpace = (0, _style.default)({\n prop: 'whiteSpace'\n});\nexports.whiteSpace = whiteSpace;\n\nvar _default = (0, _compose.default)(displayPrint, displayRaw, overflow, textOverflow, visibility, whiteSpace);\n\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = exports.justifySelf = exports.justifyItems = exports.alignSelf = exports.flexShrink = exports.flexGrow = exports.flex = exports.order = exports.alignContent = exports.alignItems = exports.justifyContent = exports.flexWrap = exports.flexDirection = exports.flexBasis = void 0;\n\nvar _style = _interopRequireDefault(require(\"./style\"));\n\nvar _compose = _interopRequireDefault(require(\"./compose\"));\n\nvar flexBasis = (0, _style.default)({\n prop: 'flexBasis'\n});\nexports.flexBasis = flexBasis;\nvar flexDirection = (0, _style.default)({\n prop: 'flexDirection'\n});\nexports.flexDirection = flexDirection;\nvar flexWrap = (0, _style.default)({\n prop: 'flexWrap'\n});\nexports.flexWrap = flexWrap;\nvar justifyContent = (0, _style.default)({\n prop: 'justifyContent'\n});\nexports.justifyContent = justifyContent;\nvar alignItems = (0, _style.default)({\n prop: 'alignItems'\n});\nexports.alignItems = alignItems;\nvar alignContent = (0, _style.default)({\n prop: 'alignContent'\n});\nexports.alignContent = alignContent;\nvar order = (0, _style.default)({\n prop: 'order'\n});\nexports.order = order;\nvar flex = (0, _style.default)({\n prop: 'flex'\n});\nexports.flex = flex;\nvar flexGrow = (0, _style.default)({\n prop: 'flexGrow'\n});\nexports.flexGrow = flexGrow;\nvar flexShrink = (0, _style.default)({\n prop: 'flexShrink'\n});\nexports.flexShrink = flexShrink;\nvar alignSelf = (0, _style.default)({\n prop: 'alignSelf'\n});\nexports.alignSelf = alignSelf;\nvar justifyItems = (0, _style.default)({\n prop: 'justifyItems'\n});\nexports.justifyItems = justifyItems;\nvar justifySelf = (0, _style.default)({\n prop: 'justifySelf'\n});\nexports.justifySelf = justifySelf;\nvar flexbox = (0, _compose.default)(flexBasis, flexDirection, flexWrap, justifyContent, alignItems, alignContent, order, flex, flexGrow, flexShrink, alignSelf, justifyItems, justifySelf);\nvar _default = flexbox;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = exports.gridArea = exports.gridTemplateAreas = exports.gridTemplateRows = exports.gridTemplateColumns = exports.gridAutoRows = exports.gridAutoColumns = exports.gridAutoFlow = exports.gridRow = exports.gridColumn = exports.gridRowGap = exports.gridColumnGap = exports.gridGap = void 0;\n\nvar _style = _interopRequireDefault(require(\"./style\"));\n\nvar _compose = _interopRequireDefault(require(\"./compose\"));\n\nvar gridGap = (0, _style.default)({\n prop: 'gridGap'\n});\nexports.gridGap = gridGap;\nvar gridColumnGap = (0, _style.default)({\n prop: 'gridColumnGap'\n});\nexports.gridColumnGap = gridColumnGap;\nvar gridRowGap = (0, _style.default)({\n prop: 'gridRowGap'\n});\nexports.gridRowGap = gridRowGap;\nvar gridColumn = (0, _style.default)({\n prop: 'gridColumn'\n});\nexports.gridColumn = gridColumn;\nvar gridRow = (0, _style.default)({\n prop: 'gridRow'\n});\nexports.gridRow = gridRow;\nvar gridAutoFlow = (0, _style.default)({\n prop: 'gridAutoFlow'\n});\nexports.gridAutoFlow = gridAutoFlow;\nvar gridAutoColumns = (0, _style.default)({\n prop: 'gridAutoColumns'\n});\nexports.gridAutoColumns = gridAutoColumns;\nvar gridAutoRows = (0, _style.default)({\n prop: 'gridAutoRows'\n});\nexports.gridAutoRows = gridAutoRows;\nvar gridTemplateColumns = (0, _style.default)({\n prop: 'gridTemplateColumns'\n});\nexports.gridTemplateColumns = gridTemplateColumns;\nvar gridTemplateRows = (0, _style.default)({\n prop: 'gridTemplateRows'\n});\nexports.gridTemplateRows = gridTemplateRows;\nvar gridTemplateAreas = (0, _style.default)({\n prop: 'gridTemplateAreas'\n});\nexports.gridTemplateAreas = gridTemplateAreas;\nvar gridArea = (0, _style.default)({\n prop: 'gridArea'\n});\nexports.gridArea = gridArea;\nvar grid = (0, _compose.default)(gridGap, gridColumnGap, gridRowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);\nvar _default = grid;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = exports.bgcolor = exports.color = void 0;\n\nvar _style = _interopRequireDefault(require(\"./style\"));\n\nvar _compose = _interopRequireDefault(require(\"./compose\"));\n\nvar color = (0, _style.default)({\n prop: 'color',\n themeKey: 'palette'\n});\nexports.color = color;\nvar bgcolor = (0, _style.default)({\n prop: 'bgcolor',\n cssProperty: 'backgroundColor',\n themeKey: 'palette'\n});\nexports.bgcolor = bgcolor;\nvar palette = (0, _compose.default)(color, bgcolor);\nvar _default = palette;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = exports.left = exports.bottom = exports.right = exports.top = exports.zIndex = exports.position = void 0;\n\nvar _style = _interopRequireDefault(require(\"./style\"));\n\nvar _compose = _interopRequireDefault(require(\"./compose\"));\n\nvar position = (0, _style.default)({\n prop: 'position'\n});\nexports.position = position;\nvar zIndex = (0, _style.default)({\n prop: 'zIndex',\n themeKey: 'zIndex'\n});\nexports.zIndex = zIndex;\nvar top = (0, _style.default)({\n prop: 'top'\n});\nexports.top = top;\nvar right = (0, _style.default)({\n prop: 'right'\n});\nexports.right = right;\nvar bottom = (0, _style.default)({\n prop: 'bottom'\n});\nexports.bottom = bottom;\nvar left = (0, _style.default)({\n prop: 'left'\n});\nexports.left = left;\n\nvar _default = (0, _compose.default)(position, zIndex, top, right, bottom, left);\n\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _style = _interopRequireDefault(require(\"./style\"));\n\nvar boxShadow = (0, _style.default)({\n prop: 'boxShadow',\n themeKey: 'shadows'\n});\nvar _default = boxShadow;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = exports.boxSizing = exports.sizeHeight = exports.sizeWidth = exports.minHeight = exports.maxHeight = exports.height = exports.minWidth = exports.maxWidth = exports.width = void 0;\n\nvar _style = _interopRequireDefault(require(\"./style\"));\n\nvar _compose = _interopRequireDefault(require(\"./compose\"));\n\nfunction transform(value) {\n return value <= 1 ? \"\".concat(value * 100, \"%\") : value;\n}\n\nvar width = (0, _style.default)({\n prop: 'width',\n transform: transform\n});\nexports.width = width;\nvar maxWidth = (0, _style.default)({\n prop: 'maxWidth',\n transform: transform\n});\nexports.maxWidth = maxWidth;\nvar minWidth = (0, _style.default)({\n prop: 'minWidth',\n transform: transform\n});\nexports.minWidth = minWidth;\nvar height = (0, _style.default)({\n prop: 'height',\n transform: transform\n});\nexports.height = height;\nvar maxHeight = (0, _style.default)({\n prop: 'maxHeight',\n transform: transform\n});\nexports.maxHeight = maxHeight;\nvar minHeight = (0, _style.default)({\n prop: 'minHeight',\n transform: transform\n});\nexports.minHeight = minHeight;\nvar sizeWidth = (0, _style.default)({\n prop: 'size',\n cssProperty: 'width',\n transform: transform\n});\nexports.sizeWidth = sizeWidth;\nvar sizeHeight = (0, _style.default)({\n prop: 'size',\n cssProperty: 'height',\n transform: transform\n});\nexports.sizeHeight = sizeHeight;\nvar boxSizing = (0, _style.default)({\n prop: 'boxSizing'\n});\nexports.boxSizing = boxSizing;\nvar sizing = (0, _compose.default)(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);\nvar _default = sizing;\nexports.default = _default;", "function _arrayWithHoles(r) {\n if (Array.isArray(r)) return r;\n}\nmodule.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}\nmodule.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableRest, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var arrayWithHoles = require(\"./arrayWithHoles.js\");\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableRest = require(\"./nonIterableRest.js\");\nfunction _slicedToArray(r, e) {\n return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();\n}\nmodule.exports = _slicedToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = memoize;\n\nfunction memoize(fn) {\n var cache = {};\n return function (arg) {\n if (cache[arg] === undefined) {\n cache[arg] = fn(arg);\n }\n\n return cache[arg];\n };\n}", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createUnarySpacing = createUnarySpacing;\nexports.default = void 0;\n\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\n\nvar _responsivePropType = _interopRequireDefault(require(\"./responsivePropType\"));\n\nvar _breakpoints = require(\"./breakpoints\");\n\nvar _merge = _interopRequireDefault(require(\"./merge\"));\n\nvar _memoize = _interopRequireDefault(require(\"./memoize\"));\n\nvar properties = {\n m: 'margin',\n p: 'padding'\n};\nvar directions = {\n t: 'Top',\n r: 'Right',\n b: 'Bottom',\n l: 'Left',\n x: ['Left', 'Right'],\n y: ['Top', 'Bottom']\n};\nvar aliases = {\n marginX: 'mx',\n marginY: 'my',\n paddingX: 'px',\n paddingY: 'py'\n}; // memoize() impact:\n// From 300,000 ops/sec\n// To 350,000 ops/sec\n\nvar getCssProperties = (0, _memoize.default)(function (prop) {\n // It's not a shorthand notation.\n if (prop.length > 2) {\n if (aliases[prop]) {\n prop = aliases[prop];\n } else {\n return [prop];\n }\n }\n\n var _prop$split = prop.split(''),\n _prop$split2 = (0, _slicedToArray2.default)(_prop$split, 2),\n a = _prop$split2[0],\n b = _prop$split2[1];\n\n var property = properties[a];\n var direction = directions[b] || '';\n return Array.isArray(direction) ? direction.map(function (dir) {\n return property + dir;\n }) : [property + direction];\n});\nvar spacingKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY'];\n\nfunction createUnarySpacing(theme) {\n var themeSpacing = theme.spacing || 8;\n\n if (typeof themeSpacing === 'number') {\n return function (abs) {\n if (process.env.NODE_ENV !== 'production') {\n if (typeof abs !== 'number') {\n console.error(\"Material-UI: Expected spacing argument to be a number, got \".concat(abs, \".\"));\n }\n }\n\n return themeSpacing * abs;\n };\n }\n\n if (Array.isArray(themeSpacing)) {\n return function (abs) {\n if (process.env.NODE_ENV !== 'production') {\n if (abs > themeSpacing.length - 1) {\n console.error([\"Material-UI: The value provided (\".concat(abs, \") overflows.\"), \"The supported values are: \".concat(JSON.stringify(themeSpacing), \".\"), \"\".concat(abs, \" > \").concat(themeSpacing.length - 1, \", you need to add the missing values.\")].join('\\n'));\n }\n }\n\n return themeSpacing[abs];\n };\n }\n\n if (typeof themeSpacing === 'function') {\n return themeSpacing;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n console.error([\"Material-UI: The `theme.spacing` value (\".concat(themeSpacing, \") is invalid.\"), 'It should be a number, an array or a function.'].join('\\n'));\n }\n\n return function () {\n return undefined;\n };\n}\n\nfunction getValue(transformer, propValue) {\n if (typeof propValue === 'string' || propValue == null) {\n return propValue;\n }\n\n var abs = Math.abs(propValue);\n var transformed = transformer(abs);\n\n if (propValue >= 0) {\n return transformed;\n }\n\n if (typeof transformed === 'number') {\n return -transformed;\n }\n\n return \"-\".concat(transformed);\n}\n\nfunction getStyleFromPropValue(cssProperties, transformer) {\n return function (propValue) {\n return cssProperties.reduce(function (acc, cssProperty) {\n acc[cssProperty] = getValue(transformer, propValue);\n return acc;\n }, {});\n };\n}\n\nfunction spacing(props) {\n var theme = props.theme;\n var transformer = createUnarySpacing(theme);\n return Object.keys(props).map(function (prop) {\n // Using a hash computation over an array iteration could be faster, but with only 28 items,\n // it's doesn't worth the bundle size.\n if (spacingKeys.indexOf(prop) === -1) {\n return null;\n }\n\n var cssProperties = getCssProperties(prop);\n var styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);\n var propValue = props[prop];\n return (0, _breakpoints.handleBreakpoints)(props, propValue, styleFromPropValue);\n }).reduce(_merge.default, {});\n}\n\nspacing.propTypes = process.env.NODE_ENV !== 'production' ? spacingKeys.reduce(function (obj, key) {\n obj[key] = _responsivePropType.default;\n return obj;\n}, {}) : {};\nspacing.filterProps = spacingKeys;\nvar _default = spacing;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = exports.textAlign = exports.lineHeight = exports.letterSpacing = exports.fontWeight = exports.fontStyle = exports.fontSize = exports.fontFamily = void 0;\n\nvar _style = _interopRequireDefault(require(\"./style\"));\n\nvar _compose = _interopRequireDefault(require(\"./compose\"));\n\nvar fontFamily = (0, _style.default)({\n prop: 'fontFamily',\n themeKey: 'typography'\n});\nexports.fontFamily = fontFamily;\nvar fontSize = (0, _style.default)({\n prop: 'fontSize',\n themeKey: 'typography'\n});\nexports.fontSize = fontSize;\nvar fontStyle = (0, _style.default)({\n prop: 'fontStyle',\n themeKey: 'typography'\n});\nexports.fontStyle = fontStyle;\nvar fontWeight = (0, _style.default)({\n prop: 'fontWeight',\n themeKey: 'typography'\n});\nexports.fontWeight = fontWeight;\nvar letterSpacing = (0, _style.default)({\n prop: 'letterSpacing'\n});\nexports.letterSpacing = letterSpacing;\nvar lineHeight = (0, _style.default)({\n prop: 'lineHeight'\n});\nexports.lineHeight = lineHeight;\nvar textAlign = (0, _style.default)({\n prop: 'textAlign'\n});\nexports.textAlign = textAlign;\nvar typography = (0, _compose.default)(fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textAlign);\nvar _default = typography;\nexports.default = _default;", "/** @license Material-UI v4.12.2\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {\n borders: true,\n breakpoints: true,\n compose: true,\n styleFunctionSx: true,\n display: true,\n flexbox: true,\n grid: true,\n palette: true,\n positions: true,\n shadows: true,\n sizing: true,\n spacing: true,\n style: true,\n typography: true\n};\nObject.defineProperty(exports, \"borders\", {\n enumerable: true,\n get: function get() {\n return _borders.default;\n }\n});\nObject.defineProperty(exports, \"breakpoints\", {\n enumerable: true,\n get: function get() {\n return _breakpoints.default;\n }\n});\nObject.defineProperty(exports, \"compose\", {\n enumerable: true,\n get: function get() {\n return _compose.default;\n }\n});\nObject.defineProperty(exports, \"styleFunctionSx\", {\n enumerable: true,\n get: function get() {\n return _styleFunctionSx.default;\n }\n});\nObject.defineProperty(exports, \"display\", {\n enumerable: true,\n get: function get() {\n return _display.default;\n }\n});\nObject.defineProperty(exports, \"flexbox\", {\n enumerable: true,\n get: function get() {\n return _flexbox.default;\n }\n});\nObject.defineProperty(exports, \"grid\", {\n enumerable: true,\n get: function get() {\n return _grid.default;\n }\n});\nObject.defineProperty(exports, \"palette\", {\n enumerable: true,\n get: function get() {\n return _palette.default;\n }\n});\nObject.defineProperty(exports, \"positions\", {\n enumerable: true,\n get: function get() {\n return _positions.default;\n }\n});\nObject.defineProperty(exports, \"shadows\", {\n enumerable: true,\n get: function get() {\n return _shadows.default;\n }\n});\nObject.defineProperty(exports, \"sizing\", {\n enumerable: true,\n get: function get() {\n return _sizing.default;\n }\n});\nObject.defineProperty(exports, \"spacing\", {\n enumerable: true,\n get: function get() {\n return _spacing.default;\n }\n});\nObject.defineProperty(exports, \"style\", {\n enumerable: true,\n get: function get() {\n return _style.default;\n }\n});\nObject.defineProperty(exports, \"typography\", {\n enumerable: true,\n get: function get() {\n return _typography.default;\n }\n});\n\nvar _borders = _interopRequireWildcard(require(\"./borders\"));\n\nObject.keys(_borders).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _borders[key];\n }\n });\n});\n\nvar _breakpoints = _interopRequireDefault(require(\"./breakpoints\"));\n\nvar _compose = _interopRequireDefault(require(\"./compose\"));\n\nvar _styleFunctionSx = _interopRequireWildcard(require(\"./styleFunctionSx\"));\n\nObject.keys(_styleFunctionSx).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _styleFunctionSx[key];\n }\n });\n});\n\nvar _display = _interopRequireDefault(require(\"./display\"));\n\nvar _flexbox = _interopRequireWildcard(require(\"./flexbox\"));\n\nObject.keys(_flexbox).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _flexbox[key];\n }\n });\n});\n\nvar _grid = _interopRequireWildcard(require(\"./grid\"));\n\nObject.keys(_grid).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _grid[key];\n }\n });\n});\n\nvar _palette = _interopRequireWildcard(require(\"./palette\"));\n\nObject.keys(_palette).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _palette[key];\n }\n });\n});\n\nvar _positions = _interopRequireWildcard(require(\"./positions\"));\n\nObject.keys(_positions).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _positions[key];\n }\n });\n});\n\nvar _shadows = _interopRequireDefault(require(\"./shadows\"));\n\nvar _sizing = _interopRequireWildcard(require(\"./sizing\"));\n\nObject.keys(_sizing).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _sizing[key];\n }\n });\n});\n\nvar _spacing = _interopRequireWildcard(require(\"./spacing\"));\n\nObject.keys(_spacing).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _spacing[key];\n }\n });\n});\n\nvar _style = _interopRequireDefault(require(\"./style\"));\n\nvar _typography = _interopRequireWildcard(require(\"./typography\"));\n\nObject.keys(_typography).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _typography[key];\n }\n });\n});", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = createSpacing;\n\nvar _system = require(\"@material-ui/system\");\n\nvar warnOnce;\n\nfunction createSpacing() {\n var spacingInput = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 8;\n\n // Already transformed.\n if (spacingInput.mui) {\n return spacingInput;\n } // Material Design layouts are visually balanced. Most measurements align to an 8dp grid applied, which aligns both spacing and the overall layout.\n // Smaller components, such as icons and type, can align to a 4dp grid.\n // https://material.io/design/layout/understanding-layout.html#usage\n\n\n var transform = (0, _system.createUnarySpacing)({\n spacing: spacingInput\n });\n\n var spacing = function spacing() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (!(args.length <= 4)) {\n console.error(\"Material-UI: Too many arguments provided, expected between 0 and 4, got \".concat(args.length));\n }\n }\n\n if (args.length === 0) {\n return transform(1);\n }\n\n if (args.length === 1) {\n return transform(args[0]);\n }\n\n return args.map(function (argument) {\n if (typeof argument === 'string') {\n return argument;\n }\n\n var output = transform(argument);\n return typeof output === 'number' ? \"\".concat(output, \"px\") : output;\n }).join(' ');\n }; // Backward compatibility, to remove in v5.\n\n\n Object.defineProperty(spacing, 'unit', {\n get: function get() {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnOnce || process.env.NODE_ENV === 'test') {\n console.error(['Material-UI: theme.spacing.unit usage has been deprecated.', 'It will be removed in v5.', 'You can replace `theme.spacing.unit * y` with `theme.spacing(y)`.', '', 'You can use the `https://github.com/mui-org/material-ui/tree/master/packages/material-ui-codemod/README.md#theme-spacing-api` migration helper to make the process smoother.'].join('\\n'));\n }\n\n warnOnce = true;\n }\n\n return spacingInput;\n }\n });\n spacing.mui = true;\n return spacing;\n}", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = exports.duration = exports.easing = void 0;\n\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\n\n// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves\n// to learn the context in which each easing should be used.\nvar easing = {\n // This is the most common easing curve.\n easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',\n // Objects enter the screen at full velocity from off-screen and\n // slowly decelerate to a resting point.\n easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',\n // Objects leave the screen at full velocity. They do not decelerate when off-screen.\n easeIn: 'cubic-bezier(0.4, 0, 1, 1)',\n // The sharp curve is used by objects that may return to the screen at any time.\n sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'\n}; // Follow https://material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations\n// to learn when use what timing\n\nexports.easing = easing;\nvar duration = {\n shortest: 150,\n shorter: 200,\n short: 250,\n // most basic recommended timing\n standard: 300,\n // this is to be used in complex animations\n complex: 375,\n // recommended when something is entering screen\n enteringScreen: 225,\n // recommended when something is leaving screen\n leavingScreen: 195\n};\nexports.duration = duration;\n\nfunction formatMs(milliseconds) {\n return \"\".concat(Math.round(milliseconds), \"ms\");\n}\n/**\n * @param {string|Array} props\n * @param {object} param\n * @param {string} param.prop\n * @param {number} param.duration\n * @param {string} param.easing\n * @param {number} param.delay\n */\n\n\nvar _default = {\n easing: easing,\n duration: duration,\n create: function create() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['all'];\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$duration = options.duration,\n durationOption = _options$duration === void 0 ? duration.standard : _options$duration,\n _options$easing = options.easing,\n easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing,\n _options$delay = options.delay,\n delay = _options$delay === void 0 ? 0 : _options$delay,\n other = (0, _objectWithoutProperties2.default)(options, [\"duration\", \"easing\", \"delay\"]);\n\n if (process.env.NODE_ENV !== 'production') {\n var isString = function isString(value) {\n return typeof value === 'string';\n };\n\n var isNumber = function isNumber(value) {\n return !isNaN(parseFloat(value));\n };\n\n if (!isString(props) && !Array.isArray(props)) {\n console.error('Material-UI: Argument \"props\" must be a string or Array.');\n }\n\n if (!isNumber(durationOption) && !isString(durationOption)) {\n console.error(\"Material-UI: Argument \\\"duration\\\" must be a number or a string but found \".concat(durationOption, \".\"));\n }\n\n if (!isString(easingOption)) {\n console.error('Material-UI: Argument \"easing\" must be a string.');\n }\n\n if (!isNumber(delay) && !isString(delay)) {\n console.error('Material-UI: Argument \"delay\" must be a number or a string.');\n }\n\n if (Object.keys(other).length !== 0) {\n console.error(\"Material-UI: Unrecognized argument(s) [\".concat(Object.keys(other).join(','), \"].\"));\n }\n }\n\n return (Array.isArray(props) ? props : [props]).map(function (animatedProp) {\n return \"\".concat(animatedProp, \" \").concat(typeof durationOption === 'string' ? durationOption : formatMs(durationOption), \" \").concat(easingOption, \" \").concat(typeof delay === 'string' ? delay : formatMs(delay));\n }).join(',');\n },\n getAutoHeightDuration: function getAutoHeightDuration(height) {\n if (!height) {\n return 0;\n }\n\n var constant = height / 36; // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10\n\n return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10);\n }\n};\nexports.default = _default;", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n// We need to centralize the zIndex definitions as they work\n// like global values in the browser.\nvar zIndex = {\n mobileStepper: 1000,\n speedDial: 1050,\n appBar: 1100,\n drawer: 1200,\n modal: 1300,\n snackbar: 1400,\n tooltip: 1500\n};\nvar _default = zIndex;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createMuiTheme = createMuiTheme;\nexports.default = void 0;\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\n\nvar _utils = require(\"@material-ui/utils\");\n\nvar _createBreakpoints = _interopRequireDefault(require(\"./createBreakpoints\"));\n\nvar _createMixins = _interopRequireDefault(require(\"./createMixins\"));\n\nvar _createPalette = _interopRequireDefault(require(\"./createPalette\"));\n\nvar _createTypography = _interopRequireDefault(require(\"./createTypography\"));\n\nvar _shadows = _interopRequireDefault(require(\"./shadows\"));\n\nvar _shape = _interopRequireDefault(require(\"./shape\"));\n\nvar _createSpacing = _interopRequireDefault(require(\"./createSpacing\"));\n\nvar _transitions = _interopRequireDefault(require(\"./transitions\"));\n\nvar _zIndex = _interopRequireDefault(require(\"./zIndex\"));\n\nfunction createTheme() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$breakpoints = options.breakpoints,\n breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints,\n _options$mixins = options.mixins,\n mixinsInput = _options$mixins === void 0 ? {} : _options$mixins,\n _options$palette = options.palette,\n paletteInput = _options$palette === void 0 ? {} : _options$palette,\n spacingInput = options.spacing,\n _options$typography = options.typography,\n typographyInput = _options$typography === void 0 ? {} : _options$typography,\n other = (0, _objectWithoutProperties2.default)(options, [\"breakpoints\", \"mixins\", \"palette\", \"spacing\", \"typography\"]);\n var palette = (0, _createPalette.default)(paletteInput);\n var breakpoints = (0, _createBreakpoints.default)(breakpointsInput);\n var spacing = (0, _createSpacing.default)(spacingInput);\n var muiTheme = (0, _utils.deepmerge)({\n breakpoints: breakpoints,\n direction: 'ltr',\n mixins: (0, _createMixins.default)(breakpoints, spacing, mixinsInput),\n overrides: {},\n // Inject custom styles\n palette: palette,\n props: {},\n // Provide default props\n shadows: _shadows.default,\n typography: (0, _createTypography.default)(palette, typographyInput),\n spacing: spacing,\n shape: _shape.default,\n transitions: _transitions.default,\n zIndex: _zIndex.default\n }, other);\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n muiTheme = args.reduce(function (acc, argument) {\n return (0, _utils.deepmerge)(acc, argument);\n }, muiTheme);\n\n if (process.env.NODE_ENV !== 'production') {\n var pseudoClasses = ['checked', 'disabled', 'error', 'focused', 'focusVisible', 'required', 'expanded', 'selected'];\n\n var traverse = function traverse(node, parentKey) {\n var depth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n var key; // eslint-disable-next-line guard-for-in, no-restricted-syntax\n\n for (key in node) {\n var child = node[key];\n\n if (depth === 1) {\n if (key.indexOf('Mui') === 0 && child) {\n traverse(child, key, depth + 1);\n }\n } else if (pseudoClasses.indexOf(key) !== -1 && Object.keys(child).length > 0) {\n if (process.env.NODE_ENV !== 'production') {\n console.error([\"Material-UI: The `\".concat(parentKey, \"` component increases \") + \"the CSS specificity of the `\".concat(key, \"` internal state.\"), 'You can not override it like this: ', JSON.stringify(node, null, 2), '', 'Instead, you need to use the $ruleName syntax:', JSON.stringify({\n root: (0, _defineProperty2.default)({}, \"&$\".concat(key), child)\n }, null, 2), '', 'https://mui.com/r/pseudo-classes-guide'].join('\\n'));\n } // Remove the style to prevent global conflicts.\n\n\n node[key] = {};\n }\n }\n };\n\n traverse(muiTheme.overrides);\n }\n\n return muiTheme;\n}\n\nvar warnedOnce = false;\n\nfunction createMuiTheme() {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnedOnce) {\n warnedOnce = true;\n console.error(['Material-UI: the createMuiTheme function was renamed to createTheme.', '', \"You should use `import { createTheme } from '@material-ui/core/styles'`\"].join('\\n'));\n }\n }\n\n return createTheme.apply(void 0, arguments);\n}\n\nvar _default = createTheme;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = createMuiStrictModeTheme;\n\nvar _utils = require(\"@material-ui/utils\");\n\nvar _createTheme = _interopRequireDefault(require(\"./createTheme\"));\n\nfunction createMuiStrictModeTheme(options) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return _createTheme.default.apply(void 0, [(0, _utils.deepmerge)({\n unstable_strictMode: true\n }, options)].concat(args));\n}", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\n\nvar _default = hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__';\n\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = createGenerateClassName;\n\nvar _nested = _interopRequireDefault(require(\"../ThemeProvider/nested\"));\n\n/**\n * This is the list of the style rule name we use as drop in replacement for the built-in\n * pseudo classes (:checked, :disabled, :focused, etc.).\n *\n * Why do they exist in the first place?\n * These classes are used at a specificity of 2.\n * It allows them to override previously definied styles as well as\n * being untouched by simple user overrides.\n */\nvar pseudoClasses = ['checked', 'disabled', 'error', 'focused', 'focusVisible', 'required', 'expanded', 'selected']; // Returns a function which generates unique class names based on counters.\n// When new generator function is created, rule counter is reset.\n// We need to reset the rule counter for SSR for each request.\n//\n// It's inspired by\n// https://github.com/cssinjs/jss/blob/4e6a05dd3f7b6572fdd3ab216861d9e446c20331/src/utils/createGenerateClassName.js\n\nfunction createGenerateClassName() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$disableGloba = options.disableGlobal,\n disableGlobal = _options$disableGloba === void 0 ? false : _options$disableGloba,\n _options$productionPr = options.productionPrefix,\n productionPrefix = _options$productionPr === void 0 ? 'jss' : _options$productionPr,\n _options$seed = options.seed,\n seed = _options$seed === void 0 ? '' : _options$seed;\n var seedPrefix = seed === '' ? '' : \"\".concat(seed, \"-\");\n var ruleCounter = 0;\n\n var getNextCounterId = function getNextCounterId() {\n ruleCounter += 1;\n\n if (process.env.NODE_ENV !== 'production') {\n if (ruleCounter >= 1e10) {\n console.warn(['Material-UI: You might have a memory leak.', 'The ruleCounter is not supposed to grow that much.'].join(''));\n }\n }\n\n return ruleCounter;\n };\n\n return function (rule, styleSheet) {\n var name = styleSheet.options.name; // Is a global static MUI style?\n\n if (name && name.indexOf('Mui') === 0 && !styleSheet.options.link && !disableGlobal) {\n // We can use a shorthand class name, we never use the keys to style the components.\n if (pseudoClasses.indexOf(rule.key) !== -1) {\n return \"Mui-\".concat(rule.key);\n }\n\n var prefix = \"\".concat(seedPrefix).concat(name, \"-\").concat(rule.key);\n\n if (!styleSheet.options.theme[_nested.default] || seed !== '') {\n return prefix;\n }\n\n return \"\".concat(prefix, \"-\").concat(getNextCounterId());\n }\n\n if (process.env.NODE_ENV === 'production') {\n return \"\".concat(seedPrefix).concat(productionPrefix).concat(getNextCounterId());\n }\n\n var suffix = \"\".concat(rule.key, \"-\").concat(getNextCounterId()); // Help with debuggability.\n\n if (styleSheet.options.classNamePrefix) {\n return \"\".concat(seedPrefix).concat(styleSheet.options.classNamePrefix, \"-\").concat(suffix);\n }\n\n return \"\".concat(seedPrefix).concat(suffix);\n };\n}", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _createGenerateClassName.default;\n }\n});\n\nvar _createGenerateClassName = _interopRequireDefault(require(\"./createGenerateClassName\"));", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = createStyles;\n\nfunction createStyles(styles) {\n return styles;\n}", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _createStyles.default;\n }\n});\n\nvar _createStyles = _interopRequireDefault(require(\"./createStyles\"));", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = getThemeProps;\n\n/* eslint-disable no-restricted-syntax */\nfunction getThemeProps(params) {\n var theme = params.theme,\n name = params.name,\n props = params.props;\n\n if (!theme || !theme.props || !theme.props[name]) {\n return props;\n } // Resolve default props, code borrow from React source.\n // https://github.com/facebook/react/blob/15a8f031838a553e41c0b66eb1bcf1da8448104d/packages/react/src/ReactElement.js#L221\n\n\n var defaultProps = theme.props[name];\n var propName;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n\n return props;\n}", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _getThemeProps.default;\n }\n});\n\nvar _getThemeProps = _interopRequireDefault(require(\"./getThemeProps\"));", "'use strict';\n\nvar isProduction = process.env.NODE_ENV === 'production';\nfunction warning(condition, message) {\n if (!isProduction) {\n if (condition) {\n return;\n }\n\n var text = \"Warning: \" + message;\n\n if (typeof console !== 'undefined') {\n console.warn(text);\n }\n\n try {\n throw Error(text);\n } catch (x) {}\n }\n}\n\nmodule.exports = warning;\n", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar isBrowser = exports.isBrowser = (typeof window === \"undefined\" ? \"undefined\" : _typeof(window)) === \"object\" && (typeof document === \"undefined\" ? \"undefined\" : _typeof(document)) === 'object' && document.nodeType === 9;\n\nexports.default = isBrowser;", "var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperties(e, r) {\n for (var t = 0; t < r.length; t++) {\n var o = r[t];\n o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);\n }\n}\nfunction _createClass(e, r, t) {\n return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", {\n writable: !1\n }), e;\n}\nmodule.exports = _createClass, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _setPrototypeOf(t, e) {\n return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _setPrototypeOf(t, e);\n}\nmodule.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var setPrototypeOf = require(\"./setPrototypeOf.js\");\nfunction _inheritsLoose(t, o) {\n t.prototype = Object.create(o.prototype), t.prototype.constructor = t, setPrototypeOf(t, o);\n}\nmodule.exports = _inheritsLoose, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _assertThisInitialized(e) {\n if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return e;\n}\nmodule.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar _extends = require('@babel/runtime/helpers/extends');\nvar isInBrowser = require('is-in-browser');\nvar warning = require('tiny-warning');\nvar _createClass = require('@babel/runtime/helpers/createClass');\nvar _inheritsLoose = require('@babel/runtime/helpers/inheritsLoose');\nvar _assertThisInitialized = require('@babel/runtime/helpers/assertThisInitialized');\nvar _objectWithoutPropertiesLoose = require('@babel/runtime/helpers/objectWithoutPropertiesLoose');\n\nfunction _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }\n\nvar _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);\nvar isInBrowser__default = /*#__PURE__*/_interopDefaultLegacy(isInBrowser);\nvar warning__default = /*#__PURE__*/_interopDefaultLegacy(warning);\nvar _createClass__default = /*#__PURE__*/_interopDefaultLegacy(_createClass);\nvar _inheritsLoose__default = /*#__PURE__*/_interopDefaultLegacy(_inheritsLoose);\nvar _assertThisInitialized__default = /*#__PURE__*/_interopDefaultLegacy(_assertThisInitialized);\nvar _objectWithoutPropertiesLoose__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutPropertiesLoose);\n\nvar plainObjectConstrurctor = {}.constructor;\nfunction cloneStyle(style) {\n if (style == null || typeof style !== 'object') return style;\n if (Array.isArray(style)) return style.map(cloneStyle);\n if (style.constructor !== plainObjectConstrurctor) return style;\n var newStyle = {};\n\n for (var name in style) {\n newStyle[name] = cloneStyle(style[name]);\n }\n\n return newStyle;\n}\n\n/**\n * Create a rule instance.\n */\n\nfunction createRule(name, decl, options) {\n if (name === void 0) {\n name = 'unnamed';\n }\n\n var jss = options.jss;\n var declCopy = cloneStyle(decl);\n var rule = jss.plugins.onCreateRule(name, declCopy, options);\n if (rule) return rule; // It is an at-rule and it has no instance.\n\n if (name[0] === '@') {\n process.env.NODE_ENV !== \"production\" ? warning__default['default'](false, \"[JSS] Unknown rule \" + name) : void 0;\n }\n\n return null;\n}\n\nvar join = function join(value, by) {\n var result = '';\n\n for (var i = 0; i < value.length; i++) {\n // Remove !important from the value, it will be readded later.\n if (value[i] === '!important') break;\n if (result) result += by;\n result += value[i];\n }\n\n return result;\n};\n/**\n * Converts JSS array value to a CSS string.\n *\n * `margin: [['5px', '10px']]` > `margin: 5px 10px;`\n * `border: ['1px', '2px']` > `border: 1px, 2px;`\n * `margin: [['5px', '10px'], '!important']` > `margin: 5px 10px !important;`\n * `color: ['red', !important]` > `color: red !important;`\n */\n\n\nvar toCssValue = function toCssValue(value) {\n if (!Array.isArray(value)) return value;\n var cssValue = ''; // Support space separated values via `[['5px', '10px']]`.\n\n if (Array.isArray(value[0])) {\n for (var i = 0; i < value.length; i++) {\n if (value[i] === '!important') break;\n if (cssValue) cssValue += ', ';\n cssValue += join(value[i], ' ');\n }\n } else cssValue = join(value, ', '); // Add !important, because it was ignored.\n\n\n if (value[value.length - 1] === '!important') {\n cssValue += ' !important';\n }\n\n return cssValue;\n};\n\nfunction getWhitespaceSymbols(options) {\n if (options && options.format === false) {\n return {\n linebreak: '',\n space: ''\n };\n }\n\n return {\n linebreak: '\\n',\n space: ' '\n };\n}\n\n/**\n * Indent a string.\n * http://jsperf.com/array-join-vs-for\n */\n\nfunction indentStr(str, indent) {\n var result = '';\n\n for (var index = 0; index < indent; index++) {\n result += ' ';\n }\n\n return result + str;\n}\n/**\n * Converts a Rule to CSS string.\n */\n\n\nfunction toCss(selector, style, options) {\n if (options === void 0) {\n options = {};\n }\n\n var result = '';\n if (!style) return result;\n var _options = options,\n _options$indent = _options.indent,\n indent = _options$indent === void 0 ? 0 : _options$indent;\n var fallbacks = style.fallbacks;\n\n if (options.format === false) {\n indent = -Infinity;\n }\n\n var _getWhitespaceSymbols = getWhitespaceSymbols(options),\n linebreak = _getWhitespaceSymbols.linebreak,\n space = _getWhitespaceSymbols.space;\n\n if (selector) indent++; // Apply fallbacks first.\n\n if (fallbacks) {\n // Array syntax {fallbacks: [{prop: value}]}\n if (Array.isArray(fallbacks)) {\n for (var index = 0; index < fallbacks.length; index++) {\n var fallback = fallbacks[index];\n\n for (var prop in fallback) {\n var value = fallback[prop];\n\n if (value != null) {\n if (result) result += linebreak;\n result += indentStr(prop + \":\" + space + toCssValue(value) + \";\", indent);\n }\n }\n }\n } else {\n // Object syntax {fallbacks: {prop: value}}\n for (var _prop in fallbacks) {\n var _value = fallbacks[_prop];\n\n if (_value != null) {\n if (result) result += linebreak;\n result += indentStr(_prop + \":\" + space + toCssValue(_value) + \";\", indent);\n }\n }\n }\n }\n\n for (var _prop2 in style) {\n var _value2 = style[_prop2];\n\n if (_value2 != null && _prop2 !== 'fallbacks') {\n if (result) result += linebreak;\n result += indentStr(_prop2 + \":\" + space + toCssValue(_value2) + \";\", indent);\n }\n } // Allow empty style in this case, because properties will be added dynamically.\n\n\n if (!result && !options.allowEmpty) return result; // When rule is being stringified before selector was defined.\n\n if (!selector) return result;\n indent--;\n if (result) result = \"\" + linebreak + result + linebreak;\n return indentStr(\"\" + selector + space + \"{\" + result, indent) + indentStr('}', indent);\n}\n\nvar escapeRegex = /([[\\].#*$><+~=|^:(),\"'`\\s])/g;\nvar nativeEscape = typeof CSS !== 'undefined' && CSS.escape;\nvar escape = (function (str) {\n return nativeEscape ? nativeEscape(str) : str.replace(escapeRegex, '\\\\$1');\n});\n\nvar BaseStyleRule =\n/*#__PURE__*/\nfunction () {\n function BaseStyleRule(key, style, options) {\n this.type = 'style';\n this.isProcessed = false;\n var sheet = options.sheet,\n Renderer = options.Renderer;\n this.key = key;\n this.options = options;\n this.style = style;\n if (sheet) this.renderer = sheet.renderer;else if (Renderer) this.renderer = new Renderer();\n }\n /**\n * Get or set a style property.\n */\n\n\n var _proto = BaseStyleRule.prototype;\n\n _proto.prop = function prop(name, value, options) {\n // It's a getter.\n if (value === undefined) return this.style[name]; // Don't do anything if the value has not changed.\n\n var force = options ? options.force : false;\n if (!force && this.style[name] === value) return this;\n var newValue = value;\n\n if (!options || options.process !== false) {\n newValue = this.options.jss.plugins.onChangeValue(value, name, this);\n }\n\n var isEmpty = newValue == null || newValue === false;\n var isDefined = name in this.style; // Value is empty and wasn't defined before.\n\n if (isEmpty && !isDefined && !force) return this; // We are going to remove this value.\n\n var remove = isEmpty && isDefined;\n if (remove) delete this.style[name];else this.style[name] = newValue; // Renderable is defined if StyleSheet option `link` is true.\n\n if (this.renderable && this.renderer) {\n if (remove) this.renderer.removeProperty(this.renderable, name);else this.renderer.setProperty(this.renderable, name, newValue);\n return this;\n }\n\n var sheet = this.options.sheet;\n\n if (sheet && sheet.attached) {\n process.env.NODE_ENV !== \"production\" ? warning__default['default'](false, '[JSS] Rule is not linked. Missing sheet option \"link: true\".') : void 0;\n }\n\n return this;\n };\n\n return BaseStyleRule;\n}();\nvar StyleRule =\n/*#__PURE__*/\nfunction (_BaseStyleRule) {\n _inheritsLoose__default['default'](StyleRule, _BaseStyleRule);\n\n function StyleRule(key, style, options) {\n var _this;\n\n _this = _BaseStyleRule.call(this, key, style, options) || this;\n var selector = options.selector,\n scoped = options.scoped,\n sheet = options.sheet,\n generateId = options.generateId;\n\n if (selector) {\n _this.selectorText = selector;\n } else if (scoped !== false) {\n _this.id = generateId(_assertThisInitialized__default['default'](_assertThisInitialized__default['default'](_this)), sheet);\n _this.selectorText = \".\" + escape(_this.id);\n }\n\n return _this;\n }\n /**\n * Set selector string.\n * Attention: use this with caution. Most browsers didn't implement\n * selectorText setter, so this may result in rerendering of entire Style Sheet.\n */\n\n\n var _proto2 = StyleRule.prototype;\n\n /**\n * Apply rule to an element inline.\n */\n _proto2.applyTo = function applyTo(renderable) {\n var renderer = this.renderer;\n\n if (renderer) {\n var json = this.toJSON();\n\n for (var prop in json) {\n renderer.setProperty(renderable, prop, json[prop]);\n }\n }\n\n return this;\n }\n /**\n * Returns JSON representation of the rule.\n * Fallbacks are not supported.\n * Useful for inline styles.\n */\n ;\n\n _proto2.toJSON = function toJSON() {\n var json = {};\n\n for (var prop in this.style) {\n var value = this.style[prop];\n if (typeof value !== 'object') json[prop] = value;else if (Array.isArray(value)) json[prop] = toCssValue(value);\n }\n\n return json;\n }\n /**\n * Generates a CSS string.\n */\n ;\n\n _proto2.toString = function toString(options) {\n var sheet = this.options.sheet;\n var link = sheet ? sheet.options.link : false;\n var opts = link ? _extends__default['default']({}, options, {\n allowEmpty: true\n }) : options;\n return toCss(this.selectorText, this.style, opts);\n };\n\n _createClass__default['default'](StyleRule, [{\n key: \"selector\",\n set: function set(selector) {\n if (selector === this.selectorText) return;\n this.selectorText = selector;\n var renderer = this.renderer,\n renderable = this.renderable;\n if (!renderable || !renderer) return;\n var hasChanged = renderer.setSelector(renderable, selector); // If selector setter is not implemented, rerender the rule.\n\n if (!hasChanged) {\n renderer.replaceRule(renderable, this);\n }\n }\n /**\n * Get selector string.\n */\n ,\n get: function get() {\n return this.selectorText;\n }\n }]);\n\n return StyleRule;\n}(BaseStyleRule);\nvar pluginStyleRule = {\n onCreateRule: function onCreateRule(key, style, options) {\n if (key[0] === '@' || options.parent && options.parent.type === 'keyframes') {\n return null;\n }\n\n return new StyleRule(key, style, options);\n }\n};\n\nvar defaultToStringOptions = {\n indent: 1,\n children: true\n};\nvar atRegExp = /@([\\w-]+)/;\n/**\n * Conditional rule for @media, @supports\n */\n\nvar ConditionalRule =\n/*#__PURE__*/\nfunction () {\n function ConditionalRule(key, styles, options) {\n this.type = 'conditional';\n this.isProcessed = false;\n this.key = key;\n var atMatch = key.match(atRegExp);\n this.at = atMatch ? atMatch[1] : 'unknown'; // Key might contain a unique suffix in case the `name` passed by user was duplicate.\n\n this.query = options.name || \"@\" + this.at;\n this.options = options;\n this.rules = new RuleList(_extends__default['default']({}, options, {\n parent: this\n }));\n\n for (var name in styles) {\n this.rules.add(name, styles[name]);\n }\n\n this.rules.process();\n }\n /**\n * Get a rule.\n */\n\n\n var _proto = ConditionalRule.prototype;\n\n _proto.getRule = function getRule(name) {\n return this.rules.get(name);\n }\n /**\n * Get index of a rule.\n */\n ;\n\n _proto.indexOf = function indexOf(rule) {\n return this.rules.indexOf(rule);\n }\n /**\n * Create and register rule, run plugins.\n */\n ;\n\n _proto.addRule = function addRule(name, style, options) {\n var rule = this.rules.add(name, style, options);\n if (!rule) return null;\n this.options.jss.plugins.onProcessRule(rule);\n return rule;\n }\n /**\n * Replace rule, run plugins.\n */\n ;\n\n _proto.replaceRule = function replaceRule(name, style, options) {\n var newRule = this.rules.replace(name, style, options);\n if (newRule) this.options.jss.plugins.onProcessRule(newRule);\n return newRule;\n }\n /**\n * Generates a CSS string.\n */\n ;\n\n _proto.toString = function toString(options) {\n if (options === void 0) {\n options = defaultToStringOptions;\n }\n\n var _getWhitespaceSymbols = getWhitespaceSymbols(options),\n linebreak = _getWhitespaceSymbols.linebreak;\n\n if (options.indent == null) options.indent = defaultToStringOptions.indent;\n if (options.children == null) options.children = defaultToStringOptions.children;\n\n if (options.children === false) {\n return this.query + \" {}\";\n }\n\n var children = this.rules.toString(options);\n return children ? this.query + \" {\" + linebreak + children + linebreak + \"}\" : '';\n };\n\n return ConditionalRule;\n}();\nvar keyRegExp = /@container|@media|@supports\\s+/;\nvar pluginConditionalRule = {\n onCreateRule: function onCreateRule(key, styles, options) {\n return keyRegExp.test(key) ? new ConditionalRule(key, styles, options) : null;\n }\n};\n\nvar defaultToStringOptions$1 = {\n indent: 1,\n children: true\n};\nvar nameRegExp = /@keyframes\\s+([\\w-]+)/;\n/**\n * Rule for @keyframes\n */\n\nvar KeyframesRule =\n/*#__PURE__*/\nfunction () {\n function KeyframesRule(key, frames, options) {\n this.type = 'keyframes';\n this.at = '@keyframes';\n this.isProcessed = false;\n var nameMatch = key.match(nameRegExp);\n\n if (nameMatch && nameMatch[1]) {\n this.name = nameMatch[1];\n } else {\n this.name = 'noname';\n process.env.NODE_ENV !== \"production\" ? warning__default['default'](false, \"[JSS] Bad keyframes name \" + key) : void 0;\n }\n\n this.key = this.type + \"-\" + this.name;\n this.options = options;\n var scoped = options.scoped,\n sheet = options.sheet,\n generateId = options.generateId;\n this.id = scoped === false ? this.name : escape(generateId(this, sheet));\n this.rules = new RuleList(_extends__default['default']({}, options, {\n parent: this\n }));\n\n for (var name in frames) {\n this.rules.add(name, frames[name], _extends__default['default']({}, options, {\n parent: this\n }));\n }\n\n this.rules.process();\n }\n /**\n * Generates a CSS string.\n */\n\n\n var _proto = KeyframesRule.prototype;\n\n _proto.toString = function toString(options) {\n if (options === void 0) {\n options = defaultToStringOptions$1;\n }\n\n var _getWhitespaceSymbols = getWhitespaceSymbols(options),\n linebreak = _getWhitespaceSymbols.linebreak;\n\n if (options.indent == null) options.indent = defaultToStringOptions$1.indent;\n if (options.children == null) options.children = defaultToStringOptions$1.children;\n\n if (options.children === false) {\n return this.at + \" \" + this.id + \" {}\";\n }\n\n var children = this.rules.toString(options);\n if (children) children = \"\" + linebreak + children + linebreak;\n return this.at + \" \" + this.id + \" {\" + children + \"}\";\n };\n\n return KeyframesRule;\n}();\nvar keyRegExp$1 = /@keyframes\\s+/;\nvar refRegExp = /\\$([\\w-]+)/g;\n\nvar findReferencedKeyframe = function findReferencedKeyframe(val, keyframes) {\n if (typeof val === 'string') {\n return val.replace(refRegExp, function (match, name) {\n if (name in keyframes) {\n return keyframes[name];\n }\n\n process.env.NODE_ENV !== \"production\" ? warning__default['default'](false, \"[JSS] Referenced keyframes rule \\\"\" + name + \"\\\" is not defined.\") : void 0;\n return match;\n });\n }\n\n return val;\n};\n/**\n * Replace the reference for a animation name.\n */\n\n\nvar replaceRef = function replaceRef(style, prop, keyframes) {\n var value = style[prop];\n var refKeyframe = findReferencedKeyframe(value, keyframes);\n\n if (refKeyframe !== value) {\n style[prop] = refKeyframe;\n }\n};\n\nvar pluginKeyframesRule = {\n onCreateRule: function onCreateRule(key, frames, options) {\n return typeof key === 'string' && keyRegExp$1.test(key) ? new KeyframesRule(key, frames, options) : null;\n },\n // Animation name ref replacer.\n onProcessStyle: function onProcessStyle(style, rule, sheet) {\n if (rule.type !== 'style' || !sheet) return style;\n if ('animation-name' in style) replaceRef(style, 'animation-name', sheet.keyframes);\n if ('animation' in style) replaceRef(style, 'animation', sheet.keyframes);\n return style;\n },\n onChangeValue: function onChangeValue(val, prop, rule) {\n var sheet = rule.options.sheet;\n\n if (!sheet) {\n return val;\n }\n\n switch (prop) {\n case 'animation':\n return findReferencedKeyframe(val, sheet.keyframes);\n\n case 'animation-name':\n return findReferencedKeyframe(val, sheet.keyframes);\n\n default:\n return val;\n }\n }\n};\n\nvar KeyframeRule =\n/*#__PURE__*/\nfunction (_BaseStyleRule) {\n _inheritsLoose__default['default'](KeyframeRule, _BaseStyleRule);\n\n function KeyframeRule() {\n return _BaseStyleRule.apply(this, arguments) || this;\n }\n\n var _proto = KeyframeRule.prototype;\n\n /**\n * Generates a CSS string.\n */\n _proto.toString = function toString(options) {\n var sheet = this.options.sheet;\n var link = sheet ? sheet.options.link : false;\n var opts = link ? _extends__default['default']({}, options, {\n allowEmpty: true\n }) : options;\n return toCss(this.key, this.style, opts);\n };\n\n return KeyframeRule;\n}(BaseStyleRule);\nvar pluginKeyframeRule = {\n onCreateRule: function onCreateRule(key, style, options) {\n if (options.parent && options.parent.type === 'keyframes') {\n return new KeyframeRule(key, style, options);\n }\n\n return null;\n }\n};\n\nvar FontFaceRule =\n/*#__PURE__*/\nfunction () {\n function FontFaceRule(key, style, options) {\n this.type = 'font-face';\n this.at = '@font-face';\n this.isProcessed = false;\n this.key = key;\n this.style = style;\n this.options = options;\n }\n /**\n * Generates a CSS string.\n */\n\n\n var _proto = FontFaceRule.prototype;\n\n _proto.toString = function toString(options) {\n var _getWhitespaceSymbols = getWhitespaceSymbols(options),\n linebreak = _getWhitespaceSymbols.linebreak;\n\n if (Array.isArray(this.style)) {\n var str = '';\n\n for (var index = 0; index < this.style.length; index++) {\n str += toCss(this.at, this.style[index]);\n if (this.style[index + 1]) str += linebreak;\n }\n\n return str;\n }\n\n return toCss(this.at, this.style, options);\n };\n\n return FontFaceRule;\n}();\nvar keyRegExp$2 = /@font-face/;\nvar pluginFontFaceRule = {\n onCreateRule: function onCreateRule(key, style, options) {\n return keyRegExp$2.test(key) ? new FontFaceRule(key, style, options) : null;\n }\n};\n\nvar ViewportRule =\n/*#__PURE__*/\nfunction () {\n function ViewportRule(key, style, options) {\n this.type = 'viewport';\n this.at = '@viewport';\n this.isProcessed = false;\n this.key = key;\n this.style = style;\n this.options = options;\n }\n /**\n * Generates a CSS string.\n */\n\n\n var _proto = ViewportRule.prototype;\n\n _proto.toString = function toString(options) {\n return toCss(this.key, this.style, options);\n };\n\n return ViewportRule;\n}();\nvar pluginViewportRule = {\n onCreateRule: function onCreateRule(key, style, options) {\n return key === '@viewport' || key === '@-ms-viewport' ? new ViewportRule(key, style, options) : null;\n }\n};\n\nvar SimpleRule =\n/*#__PURE__*/\nfunction () {\n function SimpleRule(key, value, options) {\n this.type = 'simple';\n this.isProcessed = false;\n this.key = key;\n this.value = value;\n this.options = options;\n }\n /**\n * Generates a CSS string.\n */\n // eslint-disable-next-line no-unused-vars\n\n\n var _proto = SimpleRule.prototype;\n\n _proto.toString = function toString(options) {\n if (Array.isArray(this.value)) {\n var str = '';\n\n for (var index = 0; index < this.value.length; index++) {\n str += this.key + \" \" + this.value[index] + \";\";\n if (this.value[index + 1]) str += '\\n';\n }\n\n return str;\n }\n\n return this.key + \" \" + this.value + \";\";\n };\n\n return SimpleRule;\n}();\nvar keysMap = {\n '@charset': true,\n '@import': true,\n '@namespace': true\n};\nvar pluginSimpleRule = {\n onCreateRule: function onCreateRule(key, value, options) {\n return key in keysMap ? new SimpleRule(key, value, options) : null;\n }\n};\n\nvar plugins = [pluginStyleRule, pluginConditionalRule, pluginKeyframesRule, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];\n\nvar defaultUpdateOptions = {\n process: true\n};\nvar forceUpdateOptions = {\n force: true,\n process: true\n /**\n * Contains rules objects and allows adding/removing etc.\n * Is used for e.g. by `StyleSheet` or `ConditionalRule`.\n */\n\n};\n\nvar RuleList =\n/*#__PURE__*/\nfunction () {\n // Rules registry for access by .get() method.\n // It contains the same rule registered by name and by selector.\n // Original styles object.\n // Used to ensure correct rules order.\n function RuleList(options) {\n this.map = {};\n this.raw = {};\n this.index = [];\n this.counter = 0;\n this.options = options;\n this.classes = options.classes;\n this.keyframes = options.keyframes;\n }\n /**\n * Create and register rule.\n *\n * Will not render after Style Sheet was rendered the first time.\n */\n\n\n var _proto = RuleList.prototype;\n\n _proto.add = function add(name, decl, ruleOptions) {\n var _this$options = this.options,\n parent = _this$options.parent,\n sheet = _this$options.sheet,\n jss = _this$options.jss,\n Renderer = _this$options.Renderer,\n generateId = _this$options.generateId,\n scoped = _this$options.scoped;\n\n var options = _extends__default['default']({\n classes: this.classes,\n parent: parent,\n sheet: sheet,\n jss: jss,\n Renderer: Renderer,\n generateId: generateId,\n scoped: scoped,\n name: name,\n keyframes: this.keyframes,\n selector: undefined\n }, ruleOptions); // When user uses .createStyleSheet(), duplicate names are not possible, but\n // `sheet.addRule()` opens the door for any duplicate rule name. When this happens\n // we need to make the key unique within this RuleList instance scope.\n\n\n var key = name;\n\n if (name in this.raw) {\n key = name + \"-d\" + this.counter++;\n } // We need to save the original decl before creating the rule\n // because cache plugin needs to use it as a key to return a cached rule.\n\n\n this.raw[key] = decl;\n\n if (key in this.classes) {\n // E.g. rules inside of @media container\n options.selector = \".\" + escape(this.classes[key]);\n }\n\n var rule = createRule(key, decl, options);\n if (!rule) return null;\n this.register(rule);\n var index = options.index === undefined ? this.index.length : options.index;\n this.index.splice(index, 0, rule);\n return rule;\n }\n /**\n * Replace rule.\n * Create a new rule and remove old one instead of overwriting\n * because we want to invoke onCreateRule hook to make plugins work.\n */\n ;\n\n _proto.replace = function replace(name, decl, ruleOptions) {\n var oldRule = this.get(name);\n var oldIndex = this.index.indexOf(oldRule);\n\n if (oldRule) {\n this.remove(oldRule);\n }\n\n var options = ruleOptions;\n if (oldIndex !== -1) options = _extends__default['default']({}, ruleOptions, {\n index: oldIndex\n });\n return this.add(name, decl, options);\n }\n /**\n * Get a rule by name or selector.\n */\n ;\n\n _proto.get = function get(nameOrSelector) {\n return this.map[nameOrSelector];\n }\n /**\n * Delete a rule.\n */\n ;\n\n _proto.remove = function remove(rule) {\n this.unregister(rule);\n delete this.raw[rule.key];\n this.index.splice(this.index.indexOf(rule), 1);\n }\n /**\n * Get index of a rule.\n */\n ;\n\n _proto.indexOf = function indexOf(rule) {\n return this.index.indexOf(rule);\n }\n /**\n * Run `onProcessRule()` plugins on every rule.\n */\n ;\n\n _proto.process = function process() {\n var plugins = this.options.jss.plugins; // We need to clone array because if we modify the index somewhere else during a loop\n // we end up with very hard-to-track-down side effects.\n\n this.index.slice(0).forEach(plugins.onProcessRule, plugins);\n }\n /**\n * Register a rule in `.map`, `.classes` and `.keyframes` maps.\n */\n ;\n\n _proto.register = function register(rule) {\n this.map[rule.key] = rule;\n\n if (rule instanceof StyleRule) {\n this.map[rule.selector] = rule;\n if (rule.id) this.classes[rule.key] = rule.id;\n } else if (rule instanceof KeyframesRule && this.keyframes) {\n this.keyframes[rule.name] = rule.id;\n }\n }\n /**\n * Unregister a rule.\n */\n ;\n\n _proto.unregister = function unregister(rule) {\n delete this.map[rule.key];\n\n if (rule instanceof StyleRule) {\n delete this.map[rule.selector];\n delete this.classes[rule.key];\n } else if (rule instanceof KeyframesRule) {\n delete this.keyframes[rule.name];\n }\n }\n /**\n * Update the function values with a new data.\n */\n ;\n\n _proto.update = function update() {\n var name;\n var data;\n var options;\n\n if (typeof (arguments.length <= 0 ? undefined : arguments[0]) === 'string') {\n name = arguments.length <= 0 ? undefined : arguments[0];\n data = arguments.length <= 1 ? undefined : arguments[1];\n options = arguments.length <= 2 ? undefined : arguments[2];\n } else {\n data = arguments.length <= 0 ? undefined : arguments[0];\n options = arguments.length <= 1 ? undefined : arguments[1];\n name = null;\n }\n\n if (name) {\n this.updateOne(this.get(name), data, options);\n } else {\n for (var index = 0; index < this.index.length; index++) {\n this.updateOne(this.index[index], data, options);\n }\n }\n }\n /**\n * Execute plugins, update rule props.\n */\n ;\n\n _proto.updateOne = function updateOne(rule, data, options) {\n if (options === void 0) {\n options = defaultUpdateOptions;\n }\n\n var _this$options2 = this.options,\n plugins = _this$options2.jss.plugins,\n sheet = _this$options2.sheet; // It is a rules container like for e.g. ConditionalRule.\n\n if (rule.rules instanceof RuleList) {\n rule.rules.update(data, options);\n return;\n }\n\n var style = rule.style;\n plugins.onUpdate(data, rule, sheet, options); // We rely on a new `style` ref in case it was mutated during onUpdate hook.\n\n if (options.process && style && style !== rule.style) {\n // We need to run the plugins in case new `style` relies on syntax plugins.\n plugins.onProcessStyle(rule.style, rule, sheet); // Update and add props.\n\n for (var prop in rule.style) {\n var nextValue = rule.style[prop];\n var prevValue = style[prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.\n // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.\n\n if (nextValue !== prevValue) {\n rule.prop(prop, nextValue, forceUpdateOptions);\n }\n } // Remove props.\n\n\n for (var _prop in style) {\n var _nextValue = rule.style[_prop];\n var _prevValue = style[_prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.\n // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.\n\n if (_nextValue == null && _nextValue !== _prevValue) {\n rule.prop(_prop, null, forceUpdateOptions);\n }\n }\n }\n }\n /**\n * Convert rules to a CSS string.\n */\n ;\n\n _proto.toString = function toString(options) {\n var str = '';\n var sheet = this.options.sheet;\n var link = sheet ? sheet.options.link : false;\n\n var _getWhitespaceSymbols = getWhitespaceSymbols(options),\n linebreak = _getWhitespaceSymbols.linebreak;\n\n for (var index = 0; index < this.index.length; index++) {\n var rule = this.index[index];\n var css = rule.toString(options); // No need to render an empty rule.\n\n if (!css && !link) continue;\n if (str) str += linebreak;\n str += css;\n }\n\n return str;\n };\n\n return RuleList;\n}();\n\nvar StyleSheet =\n/*#__PURE__*/\nfunction () {\n function StyleSheet(styles, options) {\n this.attached = false;\n this.deployed = false;\n this.classes = {};\n this.keyframes = {};\n this.options = _extends__default['default']({}, options, {\n sheet: this,\n parent: this,\n classes: this.classes,\n keyframes: this.keyframes\n });\n\n if (options.Renderer) {\n this.renderer = new options.Renderer(this);\n }\n\n this.rules = new RuleList(this.options);\n\n for (var name in styles) {\n this.rules.add(name, styles[name]);\n }\n\n this.rules.process();\n }\n /**\n * Attach renderable to the render tree.\n */\n\n\n var _proto = StyleSheet.prototype;\n\n _proto.attach = function attach() {\n if (this.attached) return this;\n if (this.renderer) this.renderer.attach();\n this.attached = true; // Order is important, because we can't use insertRule API if style element is not attached.\n\n if (!this.deployed) this.deploy();\n return this;\n }\n /**\n * Remove renderable from render tree.\n */\n ;\n\n _proto.detach = function detach() {\n if (!this.attached) return this;\n if (this.renderer) this.renderer.detach();\n this.attached = false;\n return this;\n }\n /**\n * Add a rule to the current stylesheet.\n * Will insert a rule also after the stylesheet has been rendered first time.\n */\n ;\n\n _proto.addRule = function addRule(name, decl, options) {\n var queue = this.queue; // Plugins can create rules.\n // In order to preserve the right order, we need to queue all `.addRule` calls,\n // which happen after the first `rules.add()` call.\n\n if (this.attached && !queue) this.queue = [];\n var rule = this.rules.add(name, decl, options);\n if (!rule) return null;\n this.options.jss.plugins.onProcessRule(rule);\n\n if (this.attached) {\n if (!this.deployed) return rule; // Don't insert rule directly if there is no stringified version yet.\n // It will be inserted all together when .attach is called.\n\n if (queue) queue.push(rule);else {\n this.insertRule(rule);\n\n if (this.queue) {\n this.queue.forEach(this.insertRule, this);\n this.queue = undefined;\n }\n }\n return rule;\n } // We can't add rules to a detached style node.\n // We will redeploy the sheet once user will attach it.\n\n\n this.deployed = false;\n return rule;\n }\n /**\n * Replace a rule in the current stylesheet.\n */\n ;\n\n _proto.replaceRule = function replaceRule(nameOrSelector, decl, options) {\n var oldRule = this.rules.get(nameOrSelector);\n if (!oldRule) return this.addRule(nameOrSelector, decl, options);\n var newRule = this.rules.replace(nameOrSelector, decl, options);\n\n if (newRule) {\n this.options.jss.plugins.onProcessRule(newRule);\n }\n\n if (this.attached) {\n if (!this.deployed) return newRule; // Don't replace / delete rule directly if there is no stringified version yet.\n // It will be inserted all together when .attach is called.\n\n if (this.renderer) {\n if (!newRule) {\n this.renderer.deleteRule(oldRule);\n } else if (oldRule.renderable) {\n this.renderer.replaceRule(oldRule.renderable, newRule);\n }\n }\n\n return newRule;\n } // We can't replace rules to a detached style node.\n // We will redeploy the sheet once user will attach it.\n\n\n this.deployed = false;\n return newRule;\n }\n /**\n * Insert rule into the StyleSheet\n */\n ;\n\n _proto.insertRule = function insertRule(rule) {\n if (this.renderer) {\n this.renderer.insertRule(rule);\n }\n }\n /**\n * Create and add rules.\n * Will render also after Style Sheet was rendered the first time.\n */\n ;\n\n _proto.addRules = function addRules(styles, options) {\n var added = [];\n\n for (var name in styles) {\n var rule = this.addRule(name, styles[name], options);\n if (rule) added.push(rule);\n }\n\n return added;\n }\n /**\n * Get a rule by name or selector.\n */\n ;\n\n _proto.getRule = function getRule(nameOrSelector) {\n return this.rules.get(nameOrSelector);\n }\n /**\n * Delete a rule by name.\n * Returns `true`: if rule has been deleted from the DOM.\n */\n ;\n\n _proto.deleteRule = function deleteRule(name) {\n var rule = typeof name === 'object' ? name : this.rules.get(name);\n\n if (!rule || // Style sheet was created without link: true and attached, in this case we\n // won't be able to remove the CSS rule from the DOM.\n this.attached && !rule.renderable) {\n return false;\n }\n\n this.rules.remove(rule);\n\n if (this.attached && rule.renderable && this.renderer) {\n return this.renderer.deleteRule(rule.renderable);\n }\n\n return true;\n }\n /**\n * Get index of a rule.\n */\n ;\n\n _proto.indexOf = function indexOf(rule) {\n return this.rules.indexOf(rule);\n }\n /**\n * Deploy pure CSS string to a renderable.\n */\n ;\n\n _proto.deploy = function deploy() {\n if (this.renderer) this.renderer.deploy();\n this.deployed = true;\n return this;\n }\n /**\n * Update the function values with a new data.\n */\n ;\n\n _proto.update = function update() {\n var _this$rules;\n\n (_this$rules = this.rules).update.apply(_this$rules, arguments);\n\n return this;\n }\n /**\n * Updates a single rule.\n */\n ;\n\n _proto.updateOne = function updateOne(rule, data, options) {\n this.rules.updateOne(rule, data, options);\n return this;\n }\n /**\n * Convert rules to a CSS string.\n */\n ;\n\n _proto.toString = function toString(options) {\n return this.rules.toString(options);\n };\n\n return StyleSheet;\n}();\n\nvar PluginsRegistry =\n/*#__PURE__*/\nfunction () {\n function PluginsRegistry() {\n this.plugins = {\n internal: [],\n external: []\n };\n this.registry = {};\n }\n\n var _proto = PluginsRegistry.prototype;\n\n /**\n * Call `onCreateRule` hooks and return an object if returned by a hook.\n */\n _proto.onCreateRule = function onCreateRule(name, decl, options) {\n for (var i = 0; i < this.registry.onCreateRule.length; i++) {\n var rule = this.registry.onCreateRule[i](name, decl, options);\n if (rule) return rule;\n }\n\n return null;\n }\n /**\n * Call `onProcessRule` hooks.\n */\n ;\n\n _proto.onProcessRule = function onProcessRule(rule) {\n if (rule.isProcessed) return;\n var sheet = rule.options.sheet;\n\n for (var i = 0; i < this.registry.onProcessRule.length; i++) {\n this.registry.onProcessRule[i](rule, sheet);\n }\n\n if (rule.style) this.onProcessStyle(rule.style, rule, sheet);\n rule.isProcessed = true;\n }\n /**\n * Call `onProcessStyle` hooks.\n */\n ;\n\n _proto.onProcessStyle = function onProcessStyle(style, rule, sheet) {\n for (var i = 0; i < this.registry.onProcessStyle.length; i++) {\n rule.style = this.registry.onProcessStyle[i](rule.style, rule, sheet);\n }\n }\n /**\n * Call `onProcessSheet` hooks.\n */\n ;\n\n _proto.onProcessSheet = function onProcessSheet(sheet) {\n for (var i = 0; i < this.registry.onProcessSheet.length; i++) {\n this.registry.onProcessSheet[i](sheet);\n }\n }\n /**\n * Call `onUpdate` hooks.\n */\n ;\n\n _proto.onUpdate = function onUpdate(data, rule, sheet, options) {\n for (var i = 0; i < this.registry.onUpdate.length; i++) {\n this.registry.onUpdate[i](data, rule, sheet, options);\n }\n }\n /**\n * Call `onChangeValue` hooks.\n */\n ;\n\n _proto.onChangeValue = function onChangeValue(value, prop, rule) {\n var processedValue = value;\n\n for (var i = 0; i < this.registry.onChangeValue.length; i++) {\n processedValue = this.registry.onChangeValue[i](processedValue, prop, rule);\n }\n\n return processedValue;\n }\n /**\n * Register a plugin.\n */\n ;\n\n _proto.use = function use(newPlugin, options) {\n if (options === void 0) {\n options = {\n queue: 'external'\n };\n }\n\n var plugins = this.plugins[options.queue]; // Avoids applying same plugin twice, at least based on ref.\n\n if (plugins.indexOf(newPlugin) !== -1) {\n return;\n }\n\n plugins.push(newPlugin);\n this.registry = [].concat(this.plugins.external, this.plugins.internal).reduce(function (registry, plugin) {\n for (var name in plugin) {\n if (name in registry) {\n registry[name].push(plugin[name]);\n } else {\n process.env.NODE_ENV !== \"production\" ? warning__default['default'](false, \"[JSS] Unknown hook \\\"\" + name + \"\\\".\") : void 0;\n }\n }\n\n return registry;\n }, {\n onCreateRule: [],\n onProcessRule: [],\n onProcessStyle: [],\n onProcessSheet: [],\n onChangeValue: [],\n onUpdate: []\n });\n };\n\n return PluginsRegistry;\n}();\n\n/**\n * Sheets registry to access all instances in one place.\n */\n\nvar SheetsRegistry =\n/*#__PURE__*/\nfunction () {\n function SheetsRegistry() {\n this.registry = [];\n }\n\n var _proto = SheetsRegistry.prototype;\n\n /**\n * Register a Style Sheet.\n */\n _proto.add = function add(sheet) {\n var registry = this.registry;\n var index = sheet.options.index;\n if (registry.indexOf(sheet) !== -1) return;\n\n if (registry.length === 0 || index >= this.index) {\n registry.push(sheet);\n return;\n } // Find a position.\n\n\n for (var i = 0; i < registry.length; i++) {\n if (registry[i].options.index > index) {\n registry.splice(i, 0, sheet);\n return;\n }\n }\n }\n /**\n * Reset the registry.\n */\n ;\n\n _proto.reset = function reset() {\n this.registry = [];\n }\n /**\n * Remove a Style Sheet.\n */\n ;\n\n _proto.remove = function remove(sheet) {\n var index = this.registry.indexOf(sheet);\n this.registry.splice(index, 1);\n }\n /**\n * Convert all attached sheets to a CSS string.\n */\n ;\n\n _proto.toString = function toString(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n attached = _ref.attached,\n options = _objectWithoutPropertiesLoose__default['default'](_ref, [\"attached\"]);\n\n var _getWhitespaceSymbols = getWhitespaceSymbols(options),\n linebreak = _getWhitespaceSymbols.linebreak;\n\n var css = '';\n\n for (var i = 0; i < this.registry.length; i++) {\n var sheet = this.registry[i];\n\n if (attached != null && sheet.attached !== attached) {\n continue;\n }\n\n if (css) css += linebreak;\n css += sheet.toString(options);\n }\n\n return css;\n };\n\n _createClass__default['default'](SheetsRegistry, [{\n key: \"index\",\n\n /**\n * Current highest index number.\n */\n get: function get() {\n return this.registry.length === 0 ? 0 : this.registry[this.registry.length - 1].options.index;\n }\n }]);\n\n return SheetsRegistry;\n}();\n\n/**\n * This is a global sheets registry. Only DomRenderer will add sheets to it.\n * On the server one should use an own SheetsRegistry instance and add the\n * sheets to it, because you need to make sure to create a new registry for\n * each request in order to not leak sheets across requests.\n */\n\nvar sheets = new SheetsRegistry();\n\n/* eslint-disable */\n\n/**\n * Now that `globalThis` is available on most platforms\n * (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis#browser_compatibility)\n * we check for `globalThis` first. `globalThis` is necessary for jss\n * to run in Agoric's secure version of JavaScript (SES). Under SES,\n * `globalThis` exists, but `window`, `self`, and `Function('return\n * this')()` are all undefined for security reasons.\n *\n * https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\n */\nvar globalThis$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' && window.Math === Math ? window : typeof self !== 'undefined' && self.Math === Math ? self : Function('return this')();\n\nvar ns = '2f1acc6c3a606b082e5eef5e54414ffb';\nif (globalThis$1[ns] == null) globalThis$1[ns] = 0; // Bundle may contain multiple JSS versions at the same time. In order to identify\n// the current version with just one short number and use it for classes generation\n// we use a counter. Also it is more accurate, because user can manually reevaluate\n// the module.\n\nvar moduleId = globalThis$1[ns]++;\n\nvar maxRules = 1e10;\n/**\n * Returns a function which generates unique class names based on counters.\n * When new generator function is created, rule counter is reseted.\n * We need to reset the rule counter for SSR for each request.\n */\n\nvar createGenerateId = function createGenerateId(options) {\n if (options === void 0) {\n options = {};\n }\n\n var ruleCounter = 0;\n\n var generateId = function generateId(rule, sheet) {\n ruleCounter += 1;\n\n if (ruleCounter > maxRules) {\n process.env.NODE_ENV !== \"production\" ? warning__default['default'](false, \"[JSS] You might have a memory leak. Rule counter is at \" + ruleCounter + \".\") : void 0;\n }\n\n var jssId = '';\n var prefix = '';\n\n if (sheet) {\n if (sheet.options.classNamePrefix) {\n prefix = sheet.options.classNamePrefix;\n }\n\n if (sheet.options.jss.id != null) {\n jssId = String(sheet.options.jss.id);\n }\n }\n\n if (options.minify) {\n // Using \"c\" because a number can't be the first char in a class name.\n return \"\" + (prefix || 'c') + moduleId + jssId + ruleCounter;\n }\n\n return prefix + rule.key + \"-\" + moduleId + (jssId ? \"-\" + jssId : '') + \"-\" + ruleCounter;\n };\n\n return generateId;\n};\n\n/**\n * Cache the value from the first time a function is called.\n */\n\nvar memoize = function memoize(fn) {\n var value;\n return function () {\n if (!value) value = fn();\n return value;\n };\n};\n/**\n * Get a style property value.\n */\n\n\nvar getPropertyValue = function getPropertyValue(cssRule, prop) {\n try {\n // Support CSSTOM.\n if (cssRule.attributeStyleMap) {\n return cssRule.attributeStyleMap.get(prop);\n }\n\n return cssRule.style.getPropertyValue(prop);\n } catch (err) {\n // IE may throw if property is unknown.\n return '';\n }\n};\n/**\n * Set a style property.\n */\n\n\nvar setProperty = function setProperty(cssRule, prop, value) {\n try {\n var cssValue = value;\n\n if (Array.isArray(value)) {\n cssValue = toCssValue(value);\n } // Support CSSTOM.\n\n\n if (cssRule.attributeStyleMap) {\n cssRule.attributeStyleMap.set(prop, cssValue);\n } else {\n var indexOfImportantFlag = cssValue ? cssValue.indexOf('!important') : -1;\n var cssValueWithoutImportantFlag = indexOfImportantFlag > -1 ? cssValue.substr(0, indexOfImportantFlag - 1) : cssValue;\n cssRule.style.setProperty(prop, cssValueWithoutImportantFlag, indexOfImportantFlag > -1 ? 'important' : '');\n }\n } catch (err) {\n // IE may throw if property is unknown.\n return false;\n }\n\n return true;\n};\n/**\n * Remove a style property.\n */\n\n\nvar removeProperty = function removeProperty(cssRule, prop) {\n try {\n // Support CSSTOM.\n if (cssRule.attributeStyleMap) {\n cssRule.attributeStyleMap.delete(prop);\n } else {\n cssRule.style.removeProperty(prop);\n }\n } catch (err) {\n process.env.NODE_ENV !== \"production\" ? warning__default['default'](false, \"[JSS] DOMException \\\"\" + err.message + \"\\\" was thrown. Tried to remove property \\\"\" + prop + \"\\\".\") : void 0;\n }\n};\n/**\n * Set the selector.\n */\n\n\nvar setSelector = function setSelector(cssRule, selectorText) {\n cssRule.selectorText = selectorText; // Return false if setter was not successful.\n // Currently works in chrome only.\n\n return cssRule.selectorText === selectorText;\n};\n/**\n * Gets the `head` element upon the first call and caches it.\n * We assume it can't be null.\n */\n\n\nvar getHead = memoize(function () {\n return document.querySelector('head');\n});\n/**\n * Find attached sheet with an index higher than the passed one.\n */\n\nfunction findHigherSheet(registry, options) {\n for (var i = 0; i < registry.length; i++) {\n var sheet = registry[i];\n\n if (sheet.attached && sheet.options.index > options.index && sheet.options.insertionPoint === options.insertionPoint) {\n return sheet;\n }\n }\n\n return null;\n}\n/**\n * Find attached sheet with the highest index.\n */\n\n\nfunction findHighestSheet(registry, options) {\n for (var i = registry.length - 1; i >= 0; i--) {\n var sheet = registry[i];\n\n if (sheet.attached && sheet.options.insertionPoint === options.insertionPoint) {\n return sheet;\n }\n }\n\n return null;\n}\n/**\n * Find a comment with \"jss\" inside.\n */\n\n\nfunction findCommentNode(text) {\n var head = getHead();\n\n for (var i = 0; i < head.childNodes.length; i++) {\n var node = head.childNodes[i];\n\n if (node.nodeType === 8 && node.nodeValue.trim() === text) {\n return node;\n }\n }\n\n return null;\n}\n/**\n * Find a node before which we can insert the sheet.\n */\n\n\nfunction findPrevNode(options) {\n var registry = sheets.registry;\n\n if (registry.length > 0) {\n // Try to insert before the next higher sheet.\n var sheet = findHigherSheet(registry, options);\n\n if (sheet && sheet.renderer) {\n return {\n parent: sheet.renderer.element.parentNode,\n node: sheet.renderer.element\n };\n } // Otherwise insert after the last attached.\n\n\n sheet = findHighestSheet(registry, options);\n\n if (sheet && sheet.renderer) {\n return {\n parent: sheet.renderer.element.parentNode,\n node: sheet.renderer.element.nextSibling\n };\n }\n } // Try to find a comment placeholder if registry is empty.\n\n\n var insertionPoint = options.insertionPoint;\n\n if (insertionPoint && typeof insertionPoint === 'string') {\n var comment = findCommentNode(insertionPoint);\n\n if (comment) {\n return {\n parent: comment.parentNode,\n node: comment.nextSibling\n };\n } // If user specifies an insertion point and it can't be found in the document -\n // bad specificity issues may appear.\n\n\n process.env.NODE_ENV !== \"production\" ? warning__default['default'](false, \"[JSS] Insertion point \\\"\" + insertionPoint + \"\\\" not found.\") : void 0;\n }\n\n return false;\n}\n/**\n * Insert style element into the DOM.\n */\n\n\nfunction insertStyle(style, options) {\n var insertionPoint = options.insertionPoint;\n var nextNode = findPrevNode(options);\n\n if (nextNode !== false && nextNode.parent) {\n nextNode.parent.insertBefore(style, nextNode.node);\n return;\n } // Works with iframes and any node types.\n\n\n if (insertionPoint && typeof insertionPoint.nodeType === 'number') {\n var insertionPointElement = insertionPoint;\n var parentNode = insertionPointElement.parentNode;\n if (parentNode) parentNode.insertBefore(style, insertionPointElement.nextSibling);else process.env.NODE_ENV !== \"production\" ? warning__default['default'](false, '[JSS] Insertion point is not in the DOM.') : void 0;\n return;\n }\n\n getHead().appendChild(style);\n}\n/**\n * Read jss nonce setting from the page if the user has set it.\n */\n\n\nvar getNonce = memoize(function () {\n var node = document.querySelector('meta[property=\"csp-nonce\"]');\n return node ? node.getAttribute('content') : null;\n});\n\nvar _insertRule = function insertRule(container, rule, index) {\n try {\n if ('insertRule' in container) {\n container.insertRule(rule, index);\n } // Keyframes rule.\n else if ('appendRule' in container) {\n container.appendRule(rule);\n }\n } catch (err) {\n process.env.NODE_ENV !== \"production\" ? warning__default['default'](false, \"[JSS] \" + err.message) : void 0;\n return false;\n }\n\n return container.cssRules[index];\n};\n\nvar getValidRuleInsertionIndex = function getValidRuleInsertionIndex(container, index) {\n var maxIndex = container.cssRules.length; // In case previous insertion fails, passed index might be wrong\n\n if (index === undefined || index > maxIndex) {\n // eslint-disable-next-line no-param-reassign\n return maxIndex;\n }\n\n return index;\n};\n\nvar createStyle = function createStyle() {\n var el = document.createElement('style'); // Without it, IE will have a broken source order specificity if we\n // insert rules after we insert the style tag.\n // It seems to kick-off the source order specificity algorithm.\n\n el.textContent = '\\n';\n return el;\n};\n\nvar DomRenderer =\n/*#__PURE__*/\nfunction () {\n // Will be empty if link: true option is not set, because\n // it is only for use together with insertRule API.\n function DomRenderer(sheet) {\n this.getPropertyValue = getPropertyValue;\n this.setProperty = setProperty;\n this.removeProperty = removeProperty;\n this.setSelector = setSelector;\n this.hasInsertedRules = false;\n this.cssRules = [];\n // There is no sheet when the renderer is used from a standalone StyleRule.\n if (sheet) sheets.add(sheet);\n this.sheet = sheet;\n\n var _ref = this.sheet ? this.sheet.options : {},\n media = _ref.media,\n meta = _ref.meta,\n element = _ref.element;\n\n this.element = element || createStyle();\n this.element.setAttribute('data-jss', '');\n if (media) this.element.setAttribute('media', media);\n if (meta) this.element.setAttribute('data-meta', meta);\n var nonce = getNonce();\n if (nonce) this.element.setAttribute('nonce', nonce);\n }\n /**\n * Insert style element into render tree.\n */\n\n\n var _proto = DomRenderer.prototype;\n\n _proto.attach = function attach() {\n // In the case the element node is external and it is already in the DOM.\n if (this.element.parentNode || !this.sheet) return;\n insertStyle(this.element, this.sheet.options); // When rules are inserted using `insertRule` API, after `sheet.detach().attach()`\n // most browsers create a new CSSStyleSheet, except of all IEs.\n\n var deployed = Boolean(this.sheet && this.sheet.deployed);\n\n if (this.hasInsertedRules && deployed) {\n this.hasInsertedRules = false;\n this.deploy();\n }\n }\n /**\n * Remove style element from render tree.\n */\n ;\n\n _proto.detach = function detach() {\n if (!this.sheet) return;\n var parentNode = this.element.parentNode;\n if (parentNode) parentNode.removeChild(this.element); // In the most browsers, rules inserted using insertRule() API will be lost when style element is removed.\n // Though IE will keep them and we need a consistent behavior.\n\n if (this.sheet.options.link) {\n this.cssRules = [];\n this.element.textContent = '\\n';\n }\n }\n /**\n * Inject CSS string into element.\n */\n ;\n\n _proto.deploy = function deploy() {\n var sheet = this.sheet;\n if (!sheet) return;\n\n if (sheet.options.link) {\n this.insertRules(sheet.rules);\n return;\n }\n\n this.element.textContent = \"\\n\" + sheet.toString() + \"\\n\";\n }\n /**\n * Insert RuleList into an element.\n */\n ;\n\n _proto.insertRules = function insertRules(rules, nativeParent) {\n for (var i = 0; i < rules.index.length; i++) {\n this.insertRule(rules.index[i], i, nativeParent);\n }\n }\n /**\n * Insert a rule into element.\n */\n ;\n\n _proto.insertRule = function insertRule(rule, index, nativeParent) {\n if (nativeParent === void 0) {\n nativeParent = this.element.sheet;\n }\n\n if (rule.rules) {\n var parent = rule;\n var latestNativeParent = nativeParent;\n\n if (rule.type === 'conditional' || rule.type === 'keyframes') {\n var _insertionIndex = getValidRuleInsertionIndex(nativeParent, index); // We need to render the container without children first.\n\n\n latestNativeParent = _insertRule(nativeParent, parent.toString({\n children: false\n }), _insertionIndex);\n\n if (latestNativeParent === false) {\n return false;\n }\n\n this.refCssRule(rule, _insertionIndex, latestNativeParent);\n }\n\n this.insertRules(parent.rules, latestNativeParent);\n return latestNativeParent;\n }\n\n var ruleStr = rule.toString();\n if (!ruleStr) return false;\n var insertionIndex = getValidRuleInsertionIndex(nativeParent, index);\n\n var nativeRule = _insertRule(nativeParent, ruleStr, insertionIndex);\n\n if (nativeRule === false) {\n return false;\n }\n\n this.hasInsertedRules = true;\n this.refCssRule(rule, insertionIndex, nativeRule);\n return nativeRule;\n };\n\n _proto.refCssRule = function refCssRule(rule, index, cssRule) {\n rule.renderable = cssRule; // We only want to reference the top level rules, deleteRule API doesn't support removing nested rules\n // like rules inside media queries or keyframes\n\n if (rule.options.parent instanceof StyleSheet) {\n this.cssRules.splice(index, 0, cssRule);\n }\n }\n /**\n * Delete a rule.\n */\n ;\n\n _proto.deleteRule = function deleteRule(cssRule) {\n var sheet = this.element.sheet;\n var index = this.indexOf(cssRule);\n if (index === -1) return false;\n sheet.deleteRule(index);\n this.cssRules.splice(index, 1);\n return true;\n }\n /**\n * Get index of a CSS Rule.\n */\n ;\n\n _proto.indexOf = function indexOf(cssRule) {\n return this.cssRules.indexOf(cssRule);\n }\n /**\n * Generate a new CSS rule and replace the existing one.\n */\n ;\n\n _proto.replaceRule = function replaceRule(cssRule, rule) {\n var index = this.indexOf(cssRule);\n if (index === -1) return false;\n this.element.sheet.deleteRule(index);\n this.cssRules.splice(index, 1);\n return this.insertRule(rule, index);\n }\n /**\n * Get all rules elements.\n */\n ;\n\n _proto.getRules = function getRules() {\n return this.element.sheet.cssRules;\n };\n\n return DomRenderer;\n}();\n\nvar instanceCounter = 0;\n\nvar Jss =\n/*#__PURE__*/\nfunction () {\n function Jss(options) {\n this.id = instanceCounter++;\n this.version = \"10.10.0\";\n this.plugins = new PluginsRegistry();\n this.options = {\n id: {\n minify: false\n },\n createGenerateId: createGenerateId,\n Renderer: isInBrowser__default['default'] ? DomRenderer : null,\n plugins: []\n };\n this.generateId = createGenerateId({\n minify: false\n });\n\n for (var i = 0; i < plugins.length; i++) {\n this.plugins.use(plugins[i], {\n queue: 'internal'\n });\n }\n\n this.setup(options);\n }\n /**\n * Prepares various options, applies plugins.\n * Should not be used twice on the same instance, because there is no plugins\n * deduplication logic.\n */\n\n\n var _proto = Jss.prototype;\n\n _proto.setup = function setup(options) {\n if (options === void 0) {\n options = {};\n }\n\n if (options.createGenerateId) {\n this.options.createGenerateId = options.createGenerateId;\n }\n\n if (options.id) {\n this.options.id = _extends__default['default']({}, this.options.id, options.id);\n }\n\n if (options.createGenerateId || options.id) {\n this.generateId = this.options.createGenerateId(this.options.id);\n }\n\n if (options.insertionPoint != null) this.options.insertionPoint = options.insertionPoint;\n\n if ('Renderer' in options) {\n this.options.Renderer = options.Renderer;\n } // eslint-disable-next-line prefer-spread\n\n\n if (options.plugins) this.use.apply(this, options.plugins);\n return this;\n }\n /**\n * Create a Style Sheet.\n */\n ;\n\n _proto.createStyleSheet = function createStyleSheet(styles, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n index = _options.index;\n\n if (typeof index !== 'number') {\n index = sheets.index === 0 ? 0 : sheets.index + 1;\n }\n\n var sheet = new StyleSheet(styles, _extends__default['default']({}, options, {\n jss: this,\n generateId: options.generateId || this.generateId,\n insertionPoint: this.options.insertionPoint,\n Renderer: this.options.Renderer,\n index: index\n }));\n this.plugins.onProcessSheet(sheet);\n return sheet;\n }\n /**\n * Detach the Style Sheet and remove it from the registry.\n */\n ;\n\n _proto.removeStyleSheet = function removeStyleSheet(sheet) {\n sheet.detach();\n sheets.remove(sheet);\n return this;\n }\n /**\n * Create a rule without a Style Sheet.\n * [Deprecated] will be removed in the next major version.\n */\n ;\n\n _proto.createRule = function createRule$1(name, style, options) {\n if (style === void 0) {\n style = {};\n }\n\n if (options === void 0) {\n options = {};\n }\n\n // Enable rule without name for inline styles.\n if (typeof name === 'object') {\n return this.createRule(undefined, name, style);\n }\n\n var ruleOptions = _extends__default['default']({}, options, {\n name: name,\n jss: this,\n Renderer: this.options.Renderer\n });\n\n if (!ruleOptions.generateId) ruleOptions.generateId = this.generateId;\n if (!ruleOptions.classes) ruleOptions.classes = {};\n if (!ruleOptions.keyframes) ruleOptions.keyframes = {};\n\n var rule = createRule(name, style, ruleOptions);\n\n if (rule) this.plugins.onProcessRule(rule);\n return rule;\n }\n /**\n * Register plugin. Passed function will be invoked with a rule instance.\n */\n ;\n\n _proto.use = function use() {\n var _this = this;\n\n for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {\n plugins[_key] = arguments[_key];\n }\n\n plugins.forEach(function (plugin) {\n _this.plugins.use(plugin);\n });\n return this;\n };\n\n return Jss;\n}();\n\nvar createJss = function createJss(options) {\n return new Jss(options);\n};\n\n/**\n * SheetsManager is like a WeakMap which is designed to count StyleSheet\n * instances and attach/detach automatically.\n * Used in react-jss.\n */\n\nvar SheetsManager =\n/*#__PURE__*/\nfunction () {\n function SheetsManager() {\n this.length = 0;\n this.sheets = new WeakMap();\n }\n\n var _proto = SheetsManager.prototype;\n\n _proto.get = function get(key) {\n var entry = this.sheets.get(key);\n return entry && entry.sheet;\n };\n\n _proto.add = function add(key, sheet) {\n if (this.sheets.has(key)) return;\n this.length++;\n this.sheets.set(key, {\n sheet: sheet,\n refs: 0\n });\n };\n\n _proto.manage = function manage(key) {\n var entry = this.sheets.get(key);\n\n if (entry) {\n if (entry.refs === 0) {\n entry.sheet.attach();\n }\n\n entry.refs++;\n return entry.sheet;\n }\n\n warning__default['default'](false, \"[JSS] SheetsManager: can't find sheet to manage\");\n return undefined;\n };\n\n _proto.unmanage = function unmanage(key) {\n var entry = this.sheets.get(key);\n\n if (entry) {\n if (entry.refs > 0) {\n entry.refs--;\n if (entry.refs === 0) entry.sheet.detach();\n }\n } else {\n warning__default['default'](false, \"SheetsManager: can't find sheet to unmanage\");\n }\n };\n\n _createClass__default['default'](SheetsManager, [{\n key: \"size\",\n get: function get() {\n return this.length;\n }\n }]);\n\n return SheetsManager;\n}();\n\n/**\n* Export a constant indicating if this browser has CSSTOM support.\n* https://developers.google.com/web/updates/2018/03/cssom\n*/\nvar hasCSSTOMSupport = typeof CSS === 'object' && CSS != null && 'number' in CSS;\n\n/**\n * Extracts a styles object with only props that contain function values.\n */\nfunction getDynamicStyles(styles) {\n var to = null;\n\n for (var key in styles) {\n var value = styles[key];\n var type = typeof value;\n\n if (type === 'function') {\n if (!to) to = {};\n to[key] = value;\n } else if (type === 'object' && value !== null && !Array.isArray(value)) {\n var extracted = getDynamicStyles(value);\n\n if (extracted) {\n if (!to) to = {};\n to[key] = extracted;\n }\n }\n }\n\n return to;\n}\n\n/**\n * A better abstraction over CSS.\n *\n * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present\n * @website https://github.com/cssinjs/jss\n * @license MIT\n */\nvar index = createJss();\n\nexports.RuleList = RuleList;\nexports.SheetsManager = SheetsManager;\nexports.SheetsRegistry = SheetsRegistry;\nexports.create = createJss;\nexports.createGenerateId = createGenerateId;\nexports.createRule = createRule;\nexports.default = index;\nexports.getDynamicStyles = getDynamicStyles;\nexports.hasCSSTOMSupport = hasCSSTOMSupport;\nexports.sheets = sheets;\nexports.toCssValue = toCssValue;\n", "'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar warning = require('tiny-warning');\nvar jss = require('jss');\n\nfunction _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }\n\nvar warning__default = /*#__PURE__*/_interopDefaultLegacy(warning);\n\nvar now = Date.now();\nvar fnValuesNs = \"fnValues\" + now;\nvar fnRuleNs = \"fnStyle\" + ++now;\n\nvar functionPlugin = function functionPlugin() {\n return {\n onCreateRule: function onCreateRule(name, decl, options) {\n if (typeof decl !== 'function') return null;\n var rule = jss.createRule(name, {}, options);\n rule[fnRuleNs] = decl;\n return rule;\n },\n onProcessStyle: function onProcessStyle(style, rule) {\n // We need to extract function values from the declaration, so that we can keep core unaware of them.\n // We need to do that only once.\n // We don't need to extract functions on each style update, since this can happen only once.\n // We don't support function values inside of function rules.\n if (fnValuesNs in rule || fnRuleNs in rule) return style;\n var fnValues = {};\n\n for (var prop in style) {\n var value = style[prop];\n if (typeof value !== 'function') continue;\n delete style[prop];\n fnValues[prop] = value;\n }\n\n rule[fnValuesNs] = fnValues;\n return style;\n },\n onUpdate: function onUpdate(data, rule, sheet, options) {\n var styleRule = rule;\n var fnRule = styleRule[fnRuleNs]; // If we have a style function, the entire rule is dynamic and style object\n // will be returned from that function.\n\n if (fnRule) {\n // Empty object will remove all currently defined props\n // in case function rule returns a falsy value.\n styleRule.style = fnRule(data) || {};\n\n if (process.env.NODE_ENV === 'development') {\n for (var prop in styleRule.style) {\n if (typeof styleRule.style[prop] === 'function') {\n process.env.NODE_ENV !== \"production\" ? warning__default['default'](false, '[JSS] Function values inside function rules are not supported.') : void 0;\n break;\n }\n }\n }\n }\n\n var fnValues = styleRule[fnValuesNs]; // If we have a fn values map, it is a rule with function values.\n\n if (fnValues) {\n for (var _prop in fnValues) {\n styleRule.prop(_prop, fnValues[_prop](data), options);\n }\n }\n }\n };\n};\n\nexports.default = functionPlugin;\n", "'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar _extends = require('@babel/runtime/helpers/extends');\nvar jss = require('jss');\n\nfunction _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }\n\nvar _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);\n\nvar at = '@global';\nvar atPrefix = '@global ';\n\nvar GlobalContainerRule =\n/*#__PURE__*/\nfunction () {\n function GlobalContainerRule(key, styles, options) {\n this.type = 'global';\n this.at = at;\n this.isProcessed = false;\n this.key = key;\n this.options = options;\n this.rules = new jss.RuleList(_extends__default['default']({}, options, {\n parent: this\n }));\n\n for (var selector in styles) {\n this.rules.add(selector, styles[selector]);\n }\n\n this.rules.process();\n }\n /**\n * Get a rule.\n */\n\n\n var _proto = GlobalContainerRule.prototype;\n\n _proto.getRule = function getRule(name) {\n return this.rules.get(name);\n }\n /**\n * Create and register rule, run plugins.\n */\n ;\n\n _proto.addRule = function addRule(name, style, options) {\n var rule = this.rules.add(name, style, options);\n if (rule) this.options.jss.plugins.onProcessRule(rule);\n return rule;\n }\n /**\n * Replace rule, run plugins.\n */\n ;\n\n _proto.replaceRule = function replaceRule(name, style, options) {\n var newRule = this.rules.replace(name, style, options);\n if (newRule) this.options.jss.plugins.onProcessRule(newRule);\n return newRule;\n }\n /**\n * Get index of a rule.\n */\n ;\n\n _proto.indexOf = function indexOf(rule) {\n return this.rules.indexOf(rule);\n }\n /**\n * Generates a CSS string.\n */\n ;\n\n _proto.toString = function toString(options) {\n return this.rules.toString(options);\n };\n\n return GlobalContainerRule;\n}();\n\nvar GlobalPrefixedRule =\n/*#__PURE__*/\nfunction () {\n function GlobalPrefixedRule(key, style, options) {\n this.type = 'global';\n this.at = at;\n this.isProcessed = false;\n this.key = key;\n this.options = options;\n var selector = key.substr(atPrefix.length);\n this.rule = options.jss.createRule(selector, style, _extends__default['default']({}, options, {\n parent: this\n }));\n }\n\n var _proto2 = GlobalPrefixedRule.prototype;\n\n _proto2.toString = function toString(options) {\n return this.rule ? this.rule.toString(options) : '';\n };\n\n return GlobalPrefixedRule;\n}();\n\nvar separatorRegExp = /\\s*,\\s*/g;\n\nfunction addScope(selector, scope) {\n var parts = selector.split(separatorRegExp);\n var scoped = '';\n\n for (var i = 0; i < parts.length; i++) {\n scoped += scope + \" \" + parts[i].trim();\n if (parts[i + 1]) scoped += ', ';\n }\n\n return scoped;\n}\n\nfunction handleNestedGlobalContainerRule(rule, sheet) {\n var options = rule.options,\n style = rule.style;\n var rules = style ? style[at] : null;\n if (!rules) return;\n\n for (var name in rules) {\n sheet.addRule(name, rules[name], _extends__default['default']({}, options, {\n selector: addScope(name, rule.selector)\n }));\n }\n\n delete style[at];\n}\n\nfunction handlePrefixedGlobalRule(rule, sheet) {\n var options = rule.options,\n style = rule.style;\n\n for (var prop in style) {\n if (prop[0] !== '@' || prop.substr(0, at.length) !== at) continue;\n var selector = addScope(prop.substr(at.length), rule.selector);\n sheet.addRule(selector, style[prop], _extends__default['default']({}, options, {\n selector: selector\n }));\n delete style[prop];\n }\n}\n/**\n * Convert nested rules to separate, remove them from original styles.\n */\n\n\nfunction jssGlobal() {\n function onCreateRule(name, styles, options) {\n if (!name) return null;\n\n if (name === at) {\n return new GlobalContainerRule(name, styles, options);\n }\n\n if (name[0] === '@' && name.substr(0, atPrefix.length) === atPrefix) {\n return new GlobalPrefixedRule(name, styles, options);\n }\n\n var parent = options.parent;\n\n if (parent) {\n if (parent.type === 'global' || parent.options.parent && parent.options.parent.type === 'global') {\n options.scoped = false;\n }\n }\n\n if (!options.selector && options.scoped === false) {\n options.selector = name;\n }\n\n return null;\n }\n\n function onProcessRule(rule, sheet) {\n if (rule.type !== 'style' || !sheet) return;\n handleNestedGlobalContainerRule(rule, sheet);\n handlePrefixedGlobalRule(rule, sheet);\n }\n\n return {\n onCreateRule: onCreateRule,\n onProcessRule: onProcessRule\n };\n}\n\nexports.default = jssGlobal;\n", "'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar _extends = require('@babel/runtime/helpers/extends');\nvar warning = require('tiny-warning');\n\nfunction _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }\n\nvar _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);\nvar warning__default = /*#__PURE__*/_interopDefaultLegacy(warning);\n\nvar separatorRegExp = /\\s*,\\s*/g;\nvar parentRegExp = /&/g;\nvar refRegExp = /\\$([\\w-]+)/g;\n/**\n * Convert nested rules to separate, remove them from original styles.\n */\n\nfunction jssNested() {\n // Get a function to be used for $ref replacement.\n function getReplaceRef(container, sheet) {\n return function (match, key) {\n var rule = container.getRule(key) || sheet && sheet.getRule(key);\n\n if (rule) {\n return rule.selector;\n }\n\n process.env.NODE_ENV !== \"production\" ? warning__default['default'](false, \"[JSS] Could not find the referenced rule \\\"\" + key + \"\\\" in \\\"\" + (container.options.meta || container.toString()) + \"\\\".\") : void 0;\n return key;\n };\n }\n\n function replaceParentRefs(nestedProp, parentProp) {\n var parentSelectors = parentProp.split(separatorRegExp);\n var nestedSelectors = nestedProp.split(separatorRegExp);\n var result = '';\n\n for (var i = 0; i < parentSelectors.length; i++) {\n var parent = parentSelectors[i];\n\n for (var j = 0; j < nestedSelectors.length; j++) {\n var nested = nestedSelectors[j];\n if (result) result += ', '; // Replace all & by the parent or prefix & with the parent.\n\n result += nested.indexOf('&') !== -1 ? nested.replace(parentRegExp, parent) : parent + \" \" + nested;\n }\n }\n\n return result;\n }\n\n function getOptions(rule, container, prevOptions) {\n // Options has been already created, now we only increase index.\n if (prevOptions) return _extends__default['default']({}, prevOptions, {\n index: prevOptions.index + 1\n });\n var nestingLevel = rule.options.nestingLevel;\n nestingLevel = nestingLevel === undefined ? 1 : nestingLevel + 1;\n\n var options = _extends__default['default']({}, rule.options, {\n nestingLevel: nestingLevel,\n index: container.indexOf(rule) + 1 // We don't need the parent name to be set options for chlid.\n\n });\n\n delete options.name;\n return options;\n }\n\n function onProcessStyle(style, rule, sheet) {\n if (rule.type !== 'style') return style;\n var styleRule = rule;\n var container = styleRule.options.parent;\n var options;\n var replaceRef;\n\n for (var prop in style) {\n var isNested = prop.indexOf('&') !== -1;\n var isNestedConditional = prop[0] === '@';\n if (!isNested && !isNestedConditional) continue;\n options = getOptions(styleRule, container, options);\n\n if (isNested) {\n var selector = replaceParentRefs(prop, styleRule.selector); // Lazily create the ref replacer function just once for\n // all nested rules within the sheet.\n\n if (!replaceRef) replaceRef = getReplaceRef(container, sheet); // Replace all $refs.\n\n selector = selector.replace(refRegExp, replaceRef);\n var name = styleRule.key + \"-\" + prop;\n\n if ('replaceRule' in container) {\n // for backward compatibility\n container.replaceRule(name, style[prop], _extends__default['default']({}, options, {\n selector: selector\n }));\n } else {\n container.addRule(name, style[prop], _extends__default['default']({}, options, {\n selector: selector\n }));\n }\n } else if (isNestedConditional) {\n // Place conditional right after the parent rule to ensure right ordering.\n container.addRule(prop, {}, options).addRule(styleRule.key, style[prop], {\n selector: styleRule.selector\n });\n }\n\n delete style[prop];\n }\n\n return style;\n }\n\n return {\n onProcessStyle: onProcessStyle\n };\n}\n\nexports.default = jssNested;\n", "'use strict';\n\n/* eslint-disable no-var, prefer-template */\nvar uppercasePattern = /[A-Z]/g;\nvar msPattern = /^ms-/;\nvar cache = {};\n\nfunction toHyphenLower(match) {\n return '-' + match.toLowerCase()\n}\n\nfunction hyphenateStyleName(name) {\n if (cache.hasOwnProperty(name)) {\n return cache[name]\n }\n\n var hName = name.replace(uppercasePattern, toHyphenLower);\n return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)\n}\n\nmodule.exports = hyphenateStyleName;\n", "'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar hyphenate = require('hyphenate-style-name');\n\nfunction _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }\n\nvar hyphenate__default = /*#__PURE__*/_interopDefaultLegacy(hyphenate);\n\n/**\n * Convert camel cased property names to dash separated.\n */\n\nfunction convertCase(style) {\n var converted = {};\n\n for (var prop in style) {\n var key = prop.indexOf('--') === 0 ? prop : hyphenate__default['default'](prop);\n converted[key] = style[prop];\n }\n\n if (style.fallbacks) {\n if (Array.isArray(style.fallbacks)) converted.fallbacks = style.fallbacks.map(convertCase);else converted.fallbacks = convertCase(style.fallbacks);\n }\n\n return converted;\n}\n/**\n * Allow camel cased property names by converting them back to dasherized.\n */\n\n\nfunction camelCase() {\n function onProcessStyle(style) {\n if (Array.isArray(style)) {\n // Handle rules like @font-face, which can have multiple styles in an array\n for (var index = 0; index < style.length; index++) {\n style[index] = convertCase(style[index]);\n }\n\n return style;\n }\n\n return convertCase(style);\n }\n\n function onChangeValue(value, prop, rule) {\n if (prop.indexOf('--') === 0) {\n return value;\n }\n\n var hyphenatedProp = hyphenate__default['default'](prop); // There was no camel case in place\n\n if (prop === hyphenatedProp) return value;\n rule.prop(hyphenatedProp, value); // Core will ignore that property value we set the proper one above.\n\n return null;\n }\n\n return {\n onProcessStyle: onProcessStyle,\n onChangeValue: onChangeValue\n };\n}\n\nexports.default = camelCase;\n", "'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar jss = require('jss');\n\nvar px = jss.hasCSSTOMSupport && CSS ? CSS.px : 'px';\nvar ms = jss.hasCSSTOMSupport && CSS ? CSS.ms : 'ms';\nvar percent = jss.hasCSSTOMSupport && CSS ? CSS.percent : '%';\n/**\n * Generated jss-plugin-default-unit CSS property units\n */\n\nvar defaultUnits = {\n // Animation properties\n 'animation-delay': ms,\n 'animation-duration': ms,\n // Background properties\n 'background-position': px,\n 'background-position-x': px,\n 'background-position-y': px,\n 'background-size': px,\n // Border Properties\n border: px,\n 'border-bottom': px,\n 'border-bottom-left-radius': px,\n 'border-bottom-right-radius': px,\n 'border-bottom-width': px,\n 'border-left': px,\n 'border-left-width': px,\n 'border-radius': px,\n 'border-right': px,\n 'border-right-width': px,\n 'border-top': px,\n 'border-top-left-radius': px,\n 'border-top-right-radius': px,\n 'border-top-width': px,\n 'border-width': px,\n 'border-block': px,\n 'border-block-end': px,\n 'border-block-end-width': px,\n 'border-block-start': px,\n 'border-block-start-width': px,\n 'border-block-width': px,\n 'border-inline': px,\n 'border-inline-end': px,\n 'border-inline-end-width': px,\n 'border-inline-start': px,\n 'border-inline-start-width': px,\n 'border-inline-width': px,\n 'border-start-start-radius': px,\n 'border-start-end-radius': px,\n 'border-end-start-radius': px,\n 'border-end-end-radius': px,\n // Margin properties\n margin: px,\n 'margin-bottom': px,\n 'margin-left': px,\n 'margin-right': px,\n 'margin-top': px,\n 'margin-block': px,\n 'margin-block-end': px,\n 'margin-block-start': px,\n 'margin-inline': px,\n 'margin-inline-end': px,\n 'margin-inline-start': px,\n // Padding properties\n padding: px,\n 'padding-bottom': px,\n 'padding-left': px,\n 'padding-right': px,\n 'padding-top': px,\n 'padding-block': px,\n 'padding-block-end': px,\n 'padding-block-start': px,\n 'padding-inline': px,\n 'padding-inline-end': px,\n 'padding-inline-start': px,\n // Mask properties\n 'mask-position-x': px,\n 'mask-position-y': px,\n 'mask-size': px,\n // Width and height properties\n height: px,\n width: px,\n 'min-height': px,\n 'max-height': px,\n 'min-width': px,\n 'max-width': px,\n // Position properties\n bottom: px,\n left: px,\n top: px,\n right: px,\n inset: px,\n 'inset-block': px,\n 'inset-block-end': px,\n 'inset-block-start': px,\n 'inset-inline': px,\n 'inset-inline-end': px,\n 'inset-inline-start': px,\n // Shadow properties\n 'box-shadow': px,\n 'text-shadow': px,\n // Column properties\n 'column-gap': px,\n 'column-rule': px,\n 'column-rule-width': px,\n 'column-width': px,\n // Font and text properties\n 'font-size': px,\n 'font-size-delta': px,\n 'letter-spacing': px,\n 'text-decoration-thickness': px,\n 'text-indent': px,\n 'text-stroke': px,\n 'text-stroke-width': px,\n 'word-spacing': px,\n // Motion properties\n motion: px,\n 'motion-offset': px,\n // Outline properties\n outline: px,\n 'outline-offset': px,\n 'outline-width': px,\n // Perspective properties\n perspective: px,\n 'perspective-origin-x': percent,\n 'perspective-origin-y': percent,\n // Transform properties\n 'transform-origin': percent,\n 'transform-origin-x': percent,\n 'transform-origin-y': percent,\n 'transform-origin-z': percent,\n // Transition properties\n 'transition-delay': ms,\n 'transition-duration': ms,\n // Alignment properties\n 'vertical-align': px,\n 'flex-basis': px,\n // Some random properties\n 'shape-margin': px,\n size: px,\n gap: px,\n // Grid properties\n grid: px,\n 'grid-gap': px,\n 'row-gap': px,\n 'grid-row-gap': px,\n 'grid-column-gap': px,\n 'grid-template-rows': px,\n 'grid-template-columns': px,\n 'grid-auto-rows': px,\n 'grid-auto-columns': px,\n // Not existing properties.\n // Used to avoid issues with jss-plugin-expand integration.\n 'box-shadow-x': px,\n 'box-shadow-y': px,\n 'box-shadow-blur': px,\n 'box-shadow-spread': px,\n 'font-line-height': px,\n 'text-shadow-x': px,\n 'text-shadow-y': px,\n 'text-shadow-blur': px\n};\n\n/**\n * Clones the object and adds a camel cased property version.\n */\n\nfunction addCamelCasedVersion(obj) {\n var regExp = /(-[a-z])/g;\n\n var replace = function replace(str) {\n return str[1].toUpperCase();\n };\n\n var newObj = {};\n\n for (var key in obj) {\n newObj[key] = obj[key];\n newObj[key.replace(regExp, replace)] = obj[key];\n }\n\n return newObj;\n}\n\nvar units = addCamelCasedVersion(defaultUnits);\n/**\n * Recursive deep style passing function\n */\n\nfunction iterate(prop, value, options) {\n if (value == null) return value;\n\n if (Array.isArray(value)) {\n for (var i = 0; i < value.length; i++) {\n value[i] = iterate(prop, value[i], options);\n }\n } else if (typeof value === 'object') {\n if (prop === 'fallbacks') {\n for (var innerProp in value) {\n value[innerProp] = iterate(innerProp, value[innerProp], options);\n }\n } else {\n for (var _innerProp in value) {\n value[_innerProp] = iterate(prop + \"-\" + _innerProp, value[_innerProp], options);\n }\n } // eslint-disable-next-line no-restricted-globals\n\n } else if (typeof value === 'number' && isNaN(value) === false) {\n var unit = options[prop] || units[prop]; // Add the unit if available, except for the special case of 0px.\n\n if (unit && !(value === 0 && unit === px)) {\n return typeof unit === 'function' ? unit(value).toString() : \"\" + value + unit;\n }\n\n return value.toString();\n }\n\n return value;\n}\n/**\n * Add unit to numeric values.\n */\n\n\nfunction defaultUnit(options) {\n if (options === void 0) {\n options = {};\n }\n\n var camelCasedOptions = addCamelCasedVersion(options);\n\n function onProcessStyle(style, rule) {\n if (rule.type !== 'style') return style;\n\n for (var prop in style) {\n style[prop] = iterate(prop, style[prop], camelCasedOptions);\n }\n\n return style;\n }\n\n function onChangeValue(value, prop) {\n return iterate(prop, value, camelCasedOptions);\n }\n\n return {\n onProcessStyle: onProcessStyle,\n onChangeValue: onChangeValue\n };\n}\n\nexports.default = defaultUnit;\n", "'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nfunction _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }\n\nvar isInBrowser = _interopDefault(require('is-in-browser'));\nvar _toConsumableArray = _interopDefault(require('@babel/runtime/helpers/toConsumableArray'));\n\n// Export javascript style and css style vendor prefixes.\nvar js = '';\nvar css = '';\nvar vendor = '';\nvar browser = '';\nvar isTouch = isInBrowser && 'ontouchstart' in document.documentElement; // We should not do anything if required serverside.\n\nif (isInBrowser) {\n // Order matters. We need to check Webkit the last one because\n // other vendors use to add Webkit prefixes to some properties\n var jsCssMap = {\n Moz: '-moz-',\n ms: '-ms-',\n O: '-o-',\n Webkit: '-webkit-'\n };\n\n var _document$createEleme = document.createElement('p'),\n style = _document$createEleme.style;\n\n var testProp = 'Transform';\n\n for (var key in jsCssMap) {\n if (key + testProp in style) {\n js = key;\n css = jsCssMap[key];\n break;\n }\n } // Correctly detect the Edge browser.\n\n\n if (js === 'Webkit' && 'msHyphens' in style) {\n js = 'ms';\n css = jsCssMap.ms;\n browser = 'edge';\n } // Correctly detect the Safari browser.\n\n\n if (js === 'Webkit' && '-apple-trailing-word' in style) {\n vendor = 'apple';\n }\n}\n/**\n * Vendor prefix string for the current browser.\n *\n * @type {{js: String, css: String, vendor: String, browser: String}}\n * @api public\n */\n\n\nvar prefix = {\n js: js,\n css: css,\n vendor: vendor,\n browser: browser,\n isTouch: isTouch\n};\n\n/**\n * Test if a keyframe at-rule should be prefixed or not\n *\n * @param {String} vendor prefix string for the current browser.\n * @return {String}\n * @api public\n */\n\nfunction supportedKeyframes(key) {\n // Keyframes is already prefixed. e.g. key = '@-webkit-keyframes a'\n if (key[1] === '-') return key; // No need to prefix IE/Edge. Older browsers will ignore unsupported rules.\n // https://caniuse.com/#search=keyframes\n\n if (prefix.js === 'ms') return key;\n return \"@\" + prefix.css + \"keyframes\" + key.substr(10);\n}\n\n// https://caniuse.com/#search=appearance\n\nvar appearence = {\n noPrefill: ['appearance'],\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'appearance') return false;\n if (prefix.js === 'ms') return \"-webkit-\" + prop;\n return prefix.css + prop;\n }\n};\n\n// https://caniuse.com/#search=color-adjust\n\nvar colorAdjust = {\n noPrefill: ['color-adjust'],\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'color-adjust') return false;\n if (prefix.js === 'Webkit') return prefix.css + \"print-\" + prop;\n return prop;\n }\n};\n\nvar regExp = /[-\\s]+(.)?/g;\n/**\n * Replaces the letter with the capital letter\n *\n * @param {String} match\n * @param {String} c\n * @return {String}\n * @api private\n */\n\nfunction toUpper(match, c) {\n return c ? c.toUpperCase() : '';\n}\n/**\n * Convert dash separated strings to camel-cased.\n *\n * @param {String} str\n * @return {String}\n * @api private\n */\n\n\nfunction camelize(str) {\n return str.replace(regExp, toUpper);\n}\n\n/**\n * Convert dash separated strings to pascal cased.\n *\n * @param {String} str\n * @return {String}\n * @api private\n */\n\nfunction pascalize(str) {\n return camelize(\"-\" + str);\n}\n\n// but we can use a longhand property instead.\n// https://caniuse.com/#search=mask\n\nvar mask = {\n noPrefill: ['mask'],\n supportedProperty: function supportedProperty(prop, style) {\n if (!/^mask/.test(prop)) return false;\n\n if (prefix.js === 'Webkit') {\n var longhand = 'mask-image';\n\n if (camelize(longhand) in style) {\n return prop;\n }\n\n if (prefix.js + pascalize(longhand) in style) {\n return prefix.css + prop;\n }\n }\n\n return prop;\n }\n};\n\n// https://caniuse.com/#search=text-orientation\n\nvar textOrientation = {\n noPrefill: ['text-orientation'],\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'text-orientation') return false;\n\n if (prefix.vendor === 'apple' && !prefix.isTouch) {\n return prefix.css + prop;\n }\n\n return prop;\n }\n};\n\n// https://caniuse.com/#search=transform\n\nvar transform = {\n noPrefill: ['transform'],\n supportedProperty: function supportedProperty(prop, style, options) {\n if (prop !== 'transform') return false;\n\n if (options.transform) {\n return prop;\n }\n\n return prefix.css + prop;\n }\n};\n\n// https://caniuse.com/#search=transition\n\nvar transition = {\n noPrefill: ['transition'],\n supportedProperty: function supportedProperty(prop, style, options) {\n if (prop !== 'transition') return false;\n\n if (options.transition) {\n return prop;\n }\n\n return prefix.css + prop;\n }\n};\n\n// https://caniuse.com/#search=writing-mode\n\nvar writingMode = {\n noPrefill: ['writing-mode'],\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'writing-mode') return false;\n\n if (prefix.js === 'Webkit' || prefix.js === 'ms' && prefix.browser !== 'edge') {\n return prefix.css + prop;\n }\n\n return prop;\n }\n};\n\n// https://caniuse.com/#search=user-select\n\nvar userSelect = {\n noPrefill: ['user-select'],\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'user-select') return false;\n\n if (prefix.js === 'Moz' || prefix.js === 'ms' || prefix.vendor === 'apple') {\n return prefix.css + prop;\n }\n\n return prop;\n }\n};\n\n// https://caniuse.com/#search=multicolumn\n// https://github.com/postcss/autoprefixer/issues/491\n// https://github.com/postcss/autoprefixer/issues/177\n\nvar breakPropsOld = {\n supportedProperty: function supportedProperty(prop, style) {\n if (!/^break-/.test(prop)) return false;\n\n if (prefix.js === 'Webkit') {\n var jsProp = \"WebkitColumn\" + pascalize(prop);\n return jsProp in style ? prefix.css + \"column-\" + prop : false;\n }\n\n if (prefix.js === 'Moz') {\n var _jsProp = \"page\" + pascalize(prop);\n\n return _jsProp in style ? \"page-\" + prop : false;\n }\n\n return false;\n }\n};\n\n// See https://github.com/postcss/autoprefixer/issues/324.\n\nvar inlineLogicalOld = {\n supportedProperty: function supportedProperty(prop, style) {\n if (!/^(border|margin|padding)-inline/.test(prop)) return false;\n if (prefix.js === 'Moz') return prop;\n var newProp = prop.replace('-inline', '');\n return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;\n }\n};\n\n// Camelization is required because we can't test using.\n// CSS syntax for e.g. in FF.\n\nvar unprefixed = {\n supportedProperty: function supportedProperty(prop, style) {\n return camelize(prop) in style ? prop : false;\n }\n};\n\nvar prefixed = {\n supportedProperty: function supportedProperty(prop, style) {\n var pascalized = pascalize(prop); // Return custom CSS variable without prefixing.\n\n if (prop[0] === '-') return prop; // Return already prefixed value without prefixing.\n\n if (prop[0] === '-' && prop[1] === '-') return prop;\n if (prefix.js + pascalized in style) return prefix.css + prop; // Try webkit fallback.\n\n if (prefix.js !== 'Webkit' && \"Webkit\" + pascalized in style) return \"-webkit-\" + prop;\n return false;\n }\n};\n\n// https://caniuse.com/#search=scroll-snap\n\nvar scrollSnap = {\n supportedProperty: function supportedProperty(prop) {\n if (prop.substring(0, 11) !== 'scroll-snap') return false;\n\n if (prefix.js === 'ms') {\n return \"\" + prefix.css + prop;\n }\n\n return prop;\n }\n};\n\n// https://caniuse.com/#search=overscroll-behavior\n\nvar overscrollBehavior = {\n supportedProperty: function supportedProperty(prop) {\n if (prop !== 'overscroll-behavior') return false;\n\n if (prefix.js === 'ms') {\n return prefix.css + \"scroll-chaining\";\n }\n\n return prop;\n }\n};\n\nvar propMap = {\n 'flex-grow': 'flex-positive',\n 'flex-shrink': 'flex-negative',\n 'flex-basis': 'flex-preferred-size',\n 'justify-content': 'flex-pack',\n order: 'flex-order',\n 'align-items': 'flex-align',\n 'align-content': 'flex-line-pack' // 'align-self' is handled by 'align-self' plugin.\n\n}; // Support old flex spec from 2012.\n\nvar flex2012 = {\n supportedProperty: function supportedProperty(prop, style) {\n var newProp = propMap[prop];\n if (!newProp) return false;\n return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;\n }\n};\n\nvar propMap$1 = {\n flex: 'box-flex',\n 'flex-grow': 'box-flex',\n 'flex-direction': ['box-orient', 'box-direction'],\n order: 'box-ordinal-group',\n 'align-items': 'box-align',\n 'flex-flow': ['box-orient', 'box-direction'],\n 'justify-content': 'box-pack'\n};\nvar propKeys = Object.keys(propMap$1);\n\nvar prefixCss = function prefixCss(p) {\n return prefix.css + p;\n}; // Support old flex spec from 2009.\n\n\nvar flex2009 = {\n supportedProperty: function supportedProperty(prop, style, _ref) {\n var multiple = _ref.multiple;\n\n if (propKeys.indexOf(prop) > -1) {\n var newProp = propMap$1[prop];\n\n if (!Array.isArray(newProp)) {\n return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;\n }\n\n if (!multiple) return false;\n\n for (var i = 0; i < newProp.length; i++) {\n if (!(prefix.js + pascalize(newProp[0]) in style)) {\n return false;\n }\n }\n\n return newProp.map(prefixCss);\n }\n\n return false;\n }\n};\n\n// plugins = [\n// ...plugins,\n// breakPropsOld,\n// inlineLogicalOld,\n// unprefixed,\n// prefixed,\n// scrollSnap,\n// flex2012,\n// flex2009\n// ]\n// Plugins without 'noPrefill' value, going last.\n// 'flex-*' plugins should be at the bottom.\n// 'flex2009' going after 'flex2012'.\n// 'prefixed' going after 'unprefixed'\n\nvar plugins = [appearence, colorAdjust, mask, textOrientation, transform, transition, writingMode, userSelect, breakPropsOld, inlineLogicalOld, unprefixed, prefixed, scrollSnap, overscrollBehavior, flex2012, flex2009];\nvar propertyDetectors = plugins.filter(function (p) {\n return p.supportedProperty;\n}).map(function (p) {\n return p.supportedProperty;\n});\nvar noPrefill = plugins.filter(function (p) {\n return p.noPrefill;\n}).reduce(function (a, p) {\n a.push.apply(a, _toConsumableArray(p.noPrefill));\n return a;\n}, []);\n\nvar el;\nvar cache = {};\n\nif (isInBrowser) {\n el = document.createElement('p'); // We test every property on vendor prefix requirement.\n // Once tested, result is cached. It gives us up to 70% perf boost.\n // http://jsperf.com/element-style-object-access-vs-plain-object\n //\n // Prefill cache with known css properties to reduce amount of\n // properties we need to feature test at runtime.\n // http://davidwalsh.name/vendor-prefix\n\n var computed = window.getComputedStyle(document.documentElement, '');\n\n for (var key$1 in computed) {\n // eslint-disable-next-line no-restricted-globals\n if (!isNaN(key$1)) cache[computed[key$1]] = computed[key$1];\n } // Properties that cannot be correctly detected using the\n // cache prefill method.\n\n\n noPrefill.forEach(function (x) {\n return delete cache[x];\n });\n}\n/**\n * Test if a property is supported, returns supported property with vendor\n * prefix if required. Returns `false` if not supported.\n *\n * @param {String} prop dash separated\n * @param {Object} [options]\n * @return {String|Boolean}\n * @api public\n */\n\n\nfunction supportedProperty(prop, options) {\n if (options === void 0) {\n options = {};\n }\n\n // For server-side rendering.\n if (!el) return prop; // Remove cache for benchmark tests or return property from the cache.\n\n if (process.env.NODE_ENV !== 'benchmark' && cache[prop] != null) {\n return cache[prop];\n } // Check if 'transition' or 'transform' natively supported in browser.\n\n\n if (prop === 'transition' || prop === 'transform') {\n options[prop] = prop in el.style;\n } // Find a plugin for current prefix property.\n\n\n for (var i = 0; i < propertyDetectors.length; i++) {\n cache[prop] = propertyDetectors[i](prop, el.style, options); // Break loop, if value found.\n\n if (cache[prop]) break;\n } // Reset styles for current property.\n // Firefox can even throw an error for invalid properties, e.g., \"0\".\n\n\n try {\n el.style[prop] = '';\n } catch (err) {\n return false;\n }\n\n return cache[prop];\n}\n\nvar cache$1 = {};\nvar transitionProperties = {\n transition: 1,\n 'transition-property': 1,\n '-webkit-transition': 1,\n '-webkit-transition-property': 1\n};\nvar transPropsRegExp = /(^\\s*[\\w-]+)|, (\\s*[\\w-]+)(?![^()]*\\))/g;\nvar el$1;\n/**\n * Returns prefixed value transition/transform if needed.\n *\n * @param {String} match\n * @param {String} p1\n * @param {String} p2\n * @return {String}\n * @api private\n */\n\nfunction prefixTransitionCallback(match, p1, p2) {\n if (p1 === 'var') return 'var';\n if (p1 === 'all') return 'all';\n if (p2 === 'all') return ', all';\n var prefixedValue = p1 ? supportedProperty(p1) : \", \" + supportedProperty(p2);\n if (!prefixedValue) return p1 || p2;\n return prefixedValue;\n}\n\nif (isInBrowser) el$1 = document.createElement('p');\n/**\n * Returns prefixed value if needed. Returns `false` if value is not supported.\n *\n * @param {String} property\n * @param {String} value\n * @return {String|Boolean}\n * @api public\n */\n\nfunction supportedValue(property, value) {\n // For server-side rendering.\n var prefixedValue = value;\n if (!el$1 || property === 'content') return value; // It is a string or a number as a string like '1'.\n // We want only prefixable values here.\n // eslint-disable-next-line no-restricted-globals\n\n if (typeof prefixedValue !== 'string' || !isNaN(parseInt(prefixedValue, 10))) {\n return prefixedValue;\n } // Create cache key for current value.\n\n\n var cacheKey = property + prefixedValue; // Remove cache for benchmark tests or return value from cache.\n\n if (process.env.NODE_ENV !== 'benchmark' && cache$1[cacheKey] != null) {\n return cache$1[cacheKey];\n } // IE can even throw an error in some cases, for e.g. style.content = 'bar'.\n\n\n try {\n // Test value as it is.\n el$1.style[property] = prefixedValue;\n } catch (err) {\n // Return false if value not supported.\n cache$1[cacheKey] = false;\n return false;\n } // If 'transition' or 'transition-property' property.\n\n\n if (transitionProperties[property]) {\n prefixedValue = prefixedValue.replace(transPropsRegExp, prefixTransitionCallback);\n } else if (el$1.style[property] === '') {\n // Value with a vendor prefix.\n prefixedValue = prefix.css + prefixedValue; // Hardcode test to convert \"flex\" to \"-ms-flexbox\" for IE10.\n\n if (prefixedValue === '-ms-flex') el$1.style[property] = '-ms-flexbox'; // Test prefixed value.\n\n el$1.style[property] = prefixedValue; // Return false if value not supported.\n\n if (el$1.style[property] === '') {\n cache$1[cacheKey] = false;\n return false;\n }\n } // Reset styles for current property.\n\n\n el$1.style[property] = ''; // Write current value to cache.\n\n cache$1[cacheKey] = prefixedValue;\n return cache$1[cacheKey];\n}\n\nexports.prefix = prefix;\nexports.supportedKeyframes = supportedKeyframes;\nexports.supportedProperty = supportedProperty;\nexports.supportedValue = supportedValue;\n", "'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar vendor = require('css-vendor');\nvar jss = require('jss');\n\n/**\n * Add vendor prefix to a property name when needed.\n */\n\nfunction jssVendorPrefixer() {\n function onProcessRule(rule) {\n if (rule.type === 'keyframes') {\n var atRule = rule;\n atRule.at = vendor.supportedKeyframes(atRule.at);\n }\n }\n\n function prefixStyle(style) {\n for (var prop in style) {\n var value = style[prop];\n\n if (prop === 'fallbacks' && Array.isArray(value)) {\n style[prop] = value.map(prefixStyle);\n continue;\n }\n\n var changeProp = false;\n var supportedProp = vendor.supportedProperty(prop);\n if (supportedProp && supportedProp !== prop) changeProp = true;\n var changeValue = false;\n var supportedValue = vendor.supportedValue(supportedProp, jss.toCssValue(value));\n if (supportedValue && supportedValue !== value) changeValue = true;\n\n if (changeProp || changeValue) {\n if (changeProp) delete style[prop];\n style[supportedProp || prop] = supportedValue || value;\n }\n }\n\n return style;\n }\n\n function onProcessStyle(style, rule) {\n if (rule.type !== 'style') return style;\n return prefixStyle(style);\n }\n\n function onChangeValue(value, prop) {\n return vendor.supportedValue(prop, jss.toCssValue(value)) || value;\n }\n\n return {\n onProcessRule: onProcessRule,\n onProcessStyle: onProcessStyle,\n onChangeValue: onChangeValue\n };\n}\n\nexports.default = jssVendorPrefixer;\n", "'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n/**\n * Sort props by length.\n */\nfunction jssPropsSort() {\n var sort = function sort(prop0, prop1) {\n if (prop0.length === prop1.length) {\n return prop0 > prop1 ? 1 : -1;\n }\n\n return prop0.length - prop1.length;\n };\n\n return {\n onProcessStyle: function onProcessStyle(style, rule) {\n if (rule.type !== 'style') return style;\n var newStyle = {};\n var props = Object.keys(style).sort(sort);\n\n for (var i = 0; i < props.length; i++) {\n newStyle[props[i]] = style[props[i]];\n }\n\n return newStyle;\n }\n };\n}\n\nexports.default = jssPropsSort;\n", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = jssPreset;\n\nvar _jssPluginRuleValueFunction = _interopRequireDefault(require(\"jss-plugin-rule-value-function\"));\n\nvar _jssPluginGlobal = _interopRequireDefault(require(\"jss-plugin-global\"));\n\nvar _jssPluginNested = _interopRequireDefault(require(\"jss-plugin-nested\"));\n\nvar _jssPluginCamelCase = _interopRequireDefault(require(\"jss-plugin-camel-case\"));\n\nvar _jssPluginDefaultUnit = _interopRequireDefault(require(\"jss-plugin-default-unit\"));\n\nvar _jssPluginVendorPrefixer = _interopRequireDefault(require(\"jss-plugin-vendor-prefixer\"));\n\nvar _jssPluginPropsSort = _interopRequireDefault(require(\"jss-plugin-props-sort\"));\n\n// Subset of jss-preset-default with only the plugins the Material-UI components are using.\nfunction jssPreset() {\n return {\n plugins: [(0, _jssPluginRuleValueFunction.default)(), (0, _jssPluginGlobal.default)(), (0, _jssPluginNested.default)(), (0, _jssPluginCamelCase.default)(), (0, _jssPluginDefaultUnit.default)(), // Disable the vendor prefixer server-side, it does nothing.\n // This way, we can get a performance boost.\n // In the documentation, we are using `autoprefixer` to solve this problem.\n typeof window === 'undefined' ? null : (0, _jssPluginVendorPrefixer.default)(), (0, _jssPluginPropsSort.default)()]\n };\n}", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _jssPreset.default;\n }\n});\n\nvar _jssPreset = _interopRequireDefault(require(\"./jssPreset\"));", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = mergeClasses;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _utils = require(\"@material-ui/utils\");\n\nfunction mergeClasses() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var baseClasses = options.baseClasses,\n newClasses = options.newClasses,\n Component = options.Component;\n\n if (!newClasses) {\n return baseClasses;\n }\n\n var nextClasses = (0, _extends2.default)({}, baseClasses);\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof newClasses === 'string') {\n console.error([\"Material-UI: The value `\".concat(newClasses, \"` \") + \"provided to the classes prop of \".concat((0, _utils.getDisplayName)(Component), \" is incorrect.\"), 'You might want to use the className prop instead.'].join('\\n'));\n return baseClasses;\n }\n }\n\n Object.keys(newClasses).forEach(function (key) {\n if (process.env.NODE_ENV !== 'production') {\n if (!baseClasses[key] && newClasses[key]) {\n console.error([\"Material-UI: The key `\".concat(key, \"` \") + \"provided to the classes prop is not implemented in \".concat((0, _utils.getDisplayName)(Component), \".\"), \"You can only override one of the following: \".concat(Object.keys(baseClasses).join(','), \".\")].join('\\n'));\n }\n\n if (newClasses[key] && typeof newClasses[key] !== 'string') {\n console.error([\"Material-UI: The key `\".concat(key, \"` \") + \"provided to the classes prop is not valid for \".concat((0, _utils.getDisplayName)(Component), \".\"), \"You need to provide a non empty string instead of: \".concat(newClasses[key], \".\")].join('\\n'));\n }\n }\n\n if (newClasses[key]) {\n nextClasses[key] = \"\".concat(baseClasses[key], \" \").concat(newClasses[key]);\n }\n });\n return nextClasses;\n}", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _mergeClasses.default;\n }\n});\n\nvar _mergeClasses = _interopRequireDefault(require(\"./mergeClasses\"));", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n// Used https://github.com/thinkloop/multi-key-cache as inspiration\nvar multiKeyStore = {\n set: function set(cache, key1, key2, value) {\n var subCache = cache.get(key1);\n\n if (!subCache) {\n subCache = new Map();\n cache.set(key1, subCache);\n }\n\n subCache.set(key2, value);\n },\n get: function get(cache, key1, key2) {\n var subCache = cache.get(key1);\n return subCache ? subCache.get(key2) : undefined;\n },\n delete: function _delete(cache, key1, key2) {\n var subCache = cache.get(key1);\n subCache.delete(key2);\n }\n};\nvar _default = multiKeyStore;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar ThemeContext = _react.default.createContext(null);\n\nif (process.env.NODE_ENV !== 'production') {\n ThemeContext.displayName = 'ThemeContext';\n}\n\nvar _default = ThemeContext;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = useTheme;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _ThemeContext = _interopRequireDefault(require(\"./ThemeContext\"));\n\nfunction useTheme() {\n var theme = _react.default.useContext(_ThemeContext.default);\n\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n _react.default.useDebugValue(theme);\n }\n\n return theme;\n}", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _useTheme.default;\n }\n});\n\nvar _useTheme = _interopRequireDefault(require(\"./useTheme\"));", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = StylesProvider;\nexports.StylesContext = exports.sheetsManager = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _utils = require(\"@material-ui/utils\");\n\nvar _createGenerateClassName = _interopRequireDefault(require(\"../createGenerateClassName\"));\n\nvar _jss = require(\"jss\");\n\nvar _jssPreset = _interopRequireDefault(require(\"../jssPreset\"));\n\n// Default JSS instance.\nvar jss = (0, _jss.create)((0, _jssPreset.default)()); // Use a singleton or the provided one by the context.\n//\n// The counter-based approach doesn't tolerate any mistake.\n// It's much safer to use the same counter everywhere.\n\nvar generateClassName = (0, _createGenerateClassName.default)(); // Exported for test purposes\n\nvar sheetsManager = new Map();\nexports.sheetsManager = sheetsManager;\nvar defaultOptions = {\n disableGeneration: false,\n generateClassName: generateClassName,\n jss: jss,\n sheetsCache: null,\n sheetsManager: sheetsManager,\n sheetsRegistry: null\n};\n\nvar StylesContext = _react.default.createContext(defaultOptions);\n\nexports.StylesContext = StylesContext;\n\nif (process.env.NODE_ENV !== 'production') {\n StylesContext.displayName = 'StylesContext';\n}\n\nvar injectFirstNode;\n\nfunction StylesProvider(props) {\n var children = props.children,\n _props$injectFirst = props.injectFirst,\n injectFirst = _props$injectFirst === void 0 ? false : _props$injectFirst,\n _props$disableGenerat = props.disableGeneration,\n disableGeneration = _props$disableGenerat === void 0 ? false : _props$disableGenerat,\n localOptions = (0, _objectWithoutProperties2.default)(props, [\"children\", \"injectFirst\", \"disableGeneration\"]);\n\n var outerOptions = _react.default.useContext(StylesContext);\n\n var context = (0, _extends2.default)({}, outerOptions, {\n disableGeneration: disableGeneration\n }, localOptions);\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof window === 'undefined' && !context.sheetsManager) {\n console.error('Material-UI: You need to use the ServerStyleSheets API when rendering on the server.');\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (context.jss.options.insertionPoint && injectFirst) {\n console.error('Material-UI: You cannot use a custom insertionPoint and at the same time.');\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (injectFirst && localOptions.jss) {\n console.error('Material-UI: You cannot use the jss and injectFirst props at the same time.');\n }\n }\n\n if (!context.jss.options.insertionPoint && injectFirst && typeof window !== 'undefined') {\n if (!injectFirstNode) {\n var head = document.head;\n injectFirstNode = document.createComment('mui-inject-first');\n head.insertBefore(injectFirstNode, head.firstChild);\n }\n\n context.jss = (0, _jss.create)({\n plugins: (0, _jssPreset.default)().plugins,\n insertionPoint: injectFirstNode\n });\n }\n\n return /*#__PURE__*/_react.default.createElement(StylesContext.Provider, {\n value: context\n }, children);\n}\n\nprocess.env.NODE_ENV !== \"production\" ? StylesProvider.propTypes = {\n /**\n * Your component tree.\n */\n children: _propTypes.default.node.isRequired,\n\n /**\n * You can disable the generation of the styles with this option.\n * It can be useful when traversing the React tree outside of the HTML\n * rendering step on the server.\n * Let's say you are using react-apollo to extract all\n * the queries made by the interface server-side - you can significantly speed up the traversal with this prop.\n */\n disableGeneration: _propTypes.default.bool,\n\n /**\n * JSS's class name generator.\n */\n generateClassName: _propTypes.default.func,\n\n /**\n * By default, the styles are injected last in the element of the page.\n * As a result, they gain more specificity than any other style sheet.\n * If you want to override Material-UI's styles, set this prop.\n */\n injectFirst: _propTypes.default.bool,\n\n /**\n * JSS's instance.\n */\n jss: _propTypes.default.object,\n\n /**\n * @ignore\n */\n serverGenerateClassName: _propTypes.default.func,\n\n /**\n * @ignore\n *\n * Beta feature.\n *\n * Cache for the sheets.\n */\n sheetsCache: _propTypes.default.object,\n\n /**\n * @ignore\n *\n * The sheetsManager is used to deduplicate style sheet injection in the page.\n * It's deduplicating using the (theme, styles) couple.\n * On the server, you should provide a new instance for each request.\n */\n sheetsManager: _propTypes.default.object,\n\n /**\n * @ignore\n *\n * Collect the sheets.\n */\n sheetsRegistry: _propTypes.default.object\n} : void 0;\n\nif (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? StylesProvider.propTypes = (0, _utils.exactProp)(StylesProvider.propTypes) : void 0;\n}", "\"use strict\";\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {};\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _StylesProvider.default;\n }\n});\n\nvar _StylesProvider = _interopRequireWildcard(require(\"./StylesProvider\"));\n\nObject.keys(_StylesProvider).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _StylesProvider[key];\n }\n });\n});", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.increment = increment;\n\n/* eslint-disable import/prefer-default-export */\n// Global index counter to preserve source order.\n// We create the style sheet during the creation of the component,\n// children are handled after the parents, so the order of style elements would be parent->child.\n// It is a problem though when a parent passes a className\n// which needs to override any child's styles.\n// StyleSheet of the child has a higher specificity, because of the source order.\n// So our solution is to render sheets them in the reverse order child->sheet, so\n// that parent has a higher specificity.\nvar indexCounter = -1e9;\n\nfunction increment() {\n indexCounter += 1;\n\n if (process.env.NODE_ENV !== 'production') {\n if (indexCounter >= 0) {\n console.warn(['Material-UI: You might have a memory leak.', 'The indexCounter is not supposed to grow that much.'].join('\\n'));\n }\n }\n\n return indexCounter;\n}", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n// We use the same empty object to ref count the styles that don't need a theme object.\nvar noopTheme = {};\nvar _default = noopTheme;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = getStylesCreator;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\n\nvar _utils = require(\"@material-ui/utils\");\n\nvar _noopTheme = _interopRequireDefault(require(\"./noopTheme\"));\n\nfunction getStylesCreator(stylesOrCreator) {\n var themingEnabled = typeof stylesOrCreator === 'function';\n\n if (process.env.NODE_ENV !== 'production') {\n if ((0, _typeof2.default)(stylesOrCreator) !== 'object' && !themingEnabled) {\n console.error(['Material-UI: The `styles` argument provided is invalid.', 'You need to provide a function generating the styles or a styles object.'].join('\\n'));\n }\n }\n\n return {\n create: function create(theme, name) {\n var styles;\n\n try {\n styles = themingEnabled ? stylesOrCreator(theme) : stylesOrCreator;\n } catch (err) {\n if (process.env.NODE_ENV !== 'production') {\n if (themingEnabled === true && theme === _noopTheme.default) {\n // TODO: prepend error message/name instead\n console.error(['Material-UI: The `styles` argument provided is invalid.', 'You are providing a function without a theme in the context.', 'One of the parent elements needs to use a ThemeProvider.'].join('\\n'));\n }\n }\n\n throw err;\n }\n\n if (!name || !theme.overrides || !theme.overrides[name]) {\n return styles;\n }\n\n var overrides = theme.overrides[name];\n var stylesWithOverrides = (0, _extends2.default)({}, styles);\n Object.keys(overrides).forEach(function (key) {\n if (process.env.NODE_ENV !== 'production') {\n if (!stylesWithOverrides[key]) {\n console.warn(['Material-UI: You are trying to override a style that does not exist.', \"Fix the `\".concat(key, \"` key of `theme.overrides.\").concat(name, \"`.\")].join('\\n'));\n }\n }\n\n stylesWithOverrides[key] = (0, _utils.deepmerge)(stylesWithOverrides[key], overrides[key]);\n });\n return stylesWithOverrides;\n },\n options: {}\n };\n}", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _getStylesCreator.default;\n }\n});\n\nvar _getStylesCreator = _interopRequireDefault(require(\"./getStylesCreator\"));", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = makeStyles;\n\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _jss = require(\"jss\");\n\nvar _mergeClasses = _interopRequireDefault(require(\"../mergeClasses\"));\n\nvar _multiKeyStore = _interopRequireDefault(require(\"./multiKeyStore\"));\n\nvar _useTheme = _interopRequireDefault(require(\"../useTheme\"));\n\nvar _StylesProvider = require(\"../StylesProvider\");\n\nvar _indexCounter = require(\"./indexCounter\");\n\nvar _getStylesCreator = _interopRequireDefault(require(\"../getStylesCreator\"));\n\nvar _noopTheme = _interopRequireDefault(require(\"../getStylesCreator/noopTheme\"));\n\nfunction getClasses(_ref, classes, Component) {\n var state = _ref.state,\n stylesOptions = _ref.stylesOptions;\n\n if (stylesOptions.disableGeneration) {\n return classes || {};\n }\n\n if (!state.cacheClasses) {\n state.cacheClasses = {\n // Cache for the finalized classes value.\n value: null,\n // Cache for the last used classes prop pointer.\n lastProp: null,\n // Cache for the last used rendered classes pointer.\n lastJSS: {}\n };\n } // Tracks if either the rendered classes or classes prop has changed,\n // requiring the generation of a new finalized classes object.\n\n\n var generate = false;\n\n if (state.classes !== state.cacheClasses.lastJSS) {\n state.cacheClasses.lastJSS = state.classes;\n generate = true;\n }\n\n if (classes !== state.cacheClasses.lastProp) {\n state.cacheClasses.lastProp = classes;\n generate = true;\n }\n\n if (generate) {\n state.cacheClasses.value = (0, _mergeClasses.default)({\n baseClasses: state.cacheClasses.lastJSS,\n newClasses: classes,\n Component: Component\n });\n }\n\n return state.cacheClasses.value;\n}\n\nfunction attach(_ref2, props) {\n var state = _ref2.state,\n theme = _ref2.theme,\n stylesOptions = _ref2.stylesOptions,\n stylesCreator = _ref2.stylesCreator,\n name = _ref2.name;\n\n if (stylesOptions.disableGeneration) {\n return;\n }\n\n var sheetManager = _multiKeyStore.default.get(stylesOptions.sheetsManager, stylesCreator, theme);\n\n if (!sheetManager) {\n sheetManager = {\n refs: 0,\n staticSheet: null,\n dynamicStyles: null\n };\n\n _multiKeyStore.default.set(stylesOptions.sheetsManager, stylesCreator, theme, sheetManager);\n }\n\n var options = (0, _extends2.default)({}, stylesCreator.options, stylesOptions, {\n theme: theme,\n flip: typeof stylesOptions.flip === 'boolean' ? stylesOptions.flip : theme.direction === 'rtl'\n });\n options.generateId = options.serverGenerateClassName || options.generateClassName;\n var sheetsRegistry = stylesOptions.sheetsRegistry;\n\n if (sheetManager.refs === 0) {\n var staticSheet;\n\n if (stylesOptions.sheetsCache) {\n staticSheet = _multiKeyStore.default.get(stylesOptions.sheetsCache, stylesCreator, theme);\n }\n\n var styles = stylesCreator.create(theme, name);\n\n if (!staticSheet) {\n staticSheet = stylesOptions.jss.createStyleSheet(styles, (0, _extends2.default)({\n link: false\n }, options));\n staticSheet.attach();\n\n if (stylesOptions.sheetsCache) {\n _multiKeyStore.default.set(stylesOptions.sheetsCache, stylesCreator, theme, staticSheet);\n }\n }\n\n if (sheetsRegistry) {\n sheetsRegistry.add(staticSheet);\n }\n\n sheetManager.staticSheet = staticSheet;\n sheetManager.dynamicStyles = (0, _jss.getDynamicStyles)(styles);\n }\n\n if (sheetManager.dynamicStyles) {\n var dynamicSheet = stylesOptions.jss.createStyleSheet(sheetManager.dynamicStyles, (0, _extends2.default)({\n link: true\n }, options));\n dynamicSheet.update(props);\n dynamicSheet.attach();\n state.dynamicSheet = dynamicSheet;\n state.classes = (0, _mergeClasses.default)({\n baseClasses: sheetManager.staticSheet.classes,\n newClasses: dynamicSheet.classes\n });\n\n if (sheetsRegistry) {\n sheetsRegistry.add(dynamicSheet);\n }\n } else {\n state.classes = sheetManager.staticSheet.classes;\n }\n\n sheetManager.refs += 1;\n}\n\nfunction update(_ref3, props) {\n var state = _ref3.state;\n\n if (state.dynamicSheet) {\n state.dynamicSheet.update(props);\n }\n}\n\nfunction detach(_ref4) {\n var state = _ref4.state,\n theme = _ref4.theme,\n stylesOptions = _ref4.stylesOptions,\n stylesCreator = _ref4.stylesCreator;\n\n if (stylesOptions.disableGeneration) {\n return;\n }\n\n var sheetManager = _multiKeyStore.default.get(stylesOptions.sheetsManager, stylesCreator, theme);\n\n sheetManager.refs -= 1;\n var sheetsRegistry = stylesOptions.sheetsRegistry;\n\n if (sheetManager.refs === 0) {\n _multiKeyStore.default.delete(stylesOptions.sheetsManager, stylesCreator, theme);\n\n stylesOptions.jss.removeStyleSheet(sheetManager.staticSheet);\n\n if (sheetsRegistry) {\n sheetsRegistry.remove(sheetManager.staticSheet);\n }\n }\n\n if (state.dynamicSheet) {\n stylesOptions.jss.removeStyleSheet(state.dynamicSheet);\n\n if (sheetsRegistry) {\n sheetsRegistry.remove(state.dynamicSheet);\n }\n }\n}\n\nfunction useSynchronousEffect(func, values) {\n var key = _react.default.useRef([]);\n\n var output; // Store \"generation\" key. Just returns a new object every time\n\n var currentKey = _react.default.useMemo(function () {\n return {};\n }, values); // eslint-disable-line react-hooks/exhaustive-deps\n // \"the first render\", or \"memo dropped the value\"\n\n\n if (key.current !== currentKey) {\n key.current = currentKey;\n output = func();\n }\n\n _react.default.useEffect(function () {\n return function () {\n if (output) {\n output();\n }\n };\n }, [currentKey] // eslint-disable-line react-hooks/exhaustive-deps\n );\n}\n\nfunction makeStyles(stylesOrCreator) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var name = options.name,\n classNamePrefixOption = options.classNamePrefix,\n Component = options.Component,\n _options$defaultTheme = options.defaultTheme,\n defaultTheme = _options$defaultTheme === void 0 ? _noopTheme.default : _options$defaultTheme,\n stylesOptions2 = (0, _objectWithoutProperties2.default)(options, [\"name\", \"classNamePrefix\", \"Component\", \"defaultTheme\"]);\n var stylesCreator = (0, _getStylesCreator.default)(stylesOrCreator);\n var classNamePrefix = name || classNamePrefixOption || 'makeStyles';\n stylesCreator.options = {\n index: (0, _indexCounter.increment)(),\n name: name,\n meta: classNamePrefix,\n classNamePrefix: classNamePrefix\n };\n\n var useStyles = function useStyles() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var theme = (0, _useTheme.default)() || defaultTheme;\n var stylesOptions = (0, _extends2.default)({}, _react.default.useContext(_StylesProvider.StylesContext), stylesOptions2);\n\n var instance = _react.default.useRef();\n\n var shouldUpdate = _react.default.useRef();\n\n useSynchronousEffect(function () {\n var current = {\n name: name,\n state: {},\n stylesCreator: stylesCreator,\n stylesOptions: stylesOptions,\n theme: theme\n };\n attach(current, props);\n shouldUpdate.current = false;\n instance.current = current;\n return function () {\n detach(current);\n };\n }, [theme, stylesCreator]);\n\n _react.default.useEffect(function () {\n if (shouldUpdate.current) {\n update(instance.current, props);\n }\n\n shouldUpdate.current = true;\n });\n\n var classes = getClasses(instance.current, props.classes, Component);\n\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n _react.default.useDebugValue(classes);\n }\n\n return classes;\n };\n\n return useStyles;\n}", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _makeStyles.default;\n }\n});\n\nvar _makeStyles = _interopRequireDefault(require(\"./makeStyles\"));", "function _classCallCheck(a, n) {\n if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\");\n}\nmodule.exports = _classCallCheck, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _classCallCheck2 = _interopRequireDefault(require(\"@babel/runtime/helpers/classCallCheck\"));\n\nvar _createClass2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createClass\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _jss = require(\"jss\");\n\nvar _StylesProvider = _interopRequireDefault(require(\"../StylesProvider\"));\n\nvar _createGenerateClassName = _interopRequireDefault(require(\"../createGenerateClassName\"));\n\nvar ServerStyleSheets = /*#__PURE__*/function () {\n function ServerStyleSheets() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n (0, _classCallCheck2.default)(this, ServerStyleSheets);\n this.options = options;\n }\n\n (0, _createClass2.default)(ServerStyleSheets, [{\n key: \"collect\",\n value: function collect(children) {\n // This is needed in order to deduplicate the injection of CSS in the page.\n var sheetsManager = new Map(); // This is needed in order to inject the critical CSS.\n\n this.sheetsRegistry = new _jss.SheetsRegistry(); // A new class name generator\n\n var generateClassName = (0, _createGenerateClassName.default)();\n return /*#__PURE__*/_react.default.createElement(_StylesProvider.default, (0, _extends2.default)({\n sheetsManager: sheetsManager,\n serverGenerateClassName: generateClassName,\n sheetsRegistry: this.sheetsRegistry\n }, this.options), children);\n }\n }, {\n key: \"toString\",\n value: function toString() {\n return this.sheetsRegistry ? this.sheetsRegistry.toString() : '';\n }\n }, {\n key: \"getStyleElement\",\n value: function getStyleElement(props) {\n return /*#__PURE__*/_react.default.createElement('style', (0, _extends2.default)({\n id: 'jss-server-side',\n key: 'jss-server-side',\n dangerouslySetInnerHTML: {\n __html: this.toString()\n }\n }, props));\n }\n }]);\n return ServerStyleSheets;\n}();\n\nexports.default = ServerStyleSheets;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _ServerStyleSheets.default;\n }\n});\n\nvar _ServerStyleSheets = _interopRequireDefault(require(\"./ServerStyleSheets\"));", "function e(r){var o,t,f=\"\";if(\"string\"==typeof r||\"number\"==typeof r)f+=r;else if(\"object\"==typeof r)if(Array.isArray(r))for(o=0;o 1 && arguments[1] !== undefined ? arguments[1] : {};\n var name = options.name,\n stylesOptions = (0, _objectWithoutProperties2.default)(options, [\"name\"]);\n\n if (process.env.NODE_ENV !== 'production' && Component === undefined) {\n throw new Error(['You are calling styled(Component)(style) with an undefined component.', 'You may have forgotten to import it.'].join('\\n'));\n }\n\n var classNamePrefix = name;\n\n if (process.env.NODE_ENV !== 'production') {\n if (!name) {\n // Provide a better DX outside production.\n var displayName = (0, _utils.getDisplayName)(Component);\n\n if (displayName !== undefined) {\n classNamePrefix = displayName;\n }\n }\n }\n\n var stylesOrCreator = typeof style === 'function' ? function (theme) {\n return {\n root: function root(props) {\n return style((0, _extends2.default)({\n theme: theme\n }, props));\n }\n };\n } : {\n root: style\n };\n var useStyles = (0, _makeStyles.default)(stylesOrCreator, (0, _extends2.default)({\n Component: Component,\n name: name || Component.displayName,\n classNamePrefix: classNamePrefix\n }, stylesOptions));\n var filterProps;\n var propTypes = {};\n\n if (style.filterProps) {\n filterProps = style.filterProps;\n delete style.filterProps;\n }\n /* eslint-disable react/forbid-foreign-prop-types */\n\n\n if (style.propTypes) {\n propTypes = style.propTypes;\n delete style.propTypes;\n }\n /* eslint-enable react/forbid-foreign-prop-types */\n\n\n var StyledComponent = /*#__PURE__*/_react.default.forwardRef(function StyledComponent(props, ref) {\n var children = props.children,\n classNameProp = props.className,\n clone = props.clone,\n ComponentProp = props.component,\n other = (0, _objectWithoutProperties2.default)(props, [\"children\", \"className\", \"clone\", \"component\"]);\n var classes = useStyles(props);\n var className = (0, _clsx.default)(classes.root, classNameProp);\n var spread = other;\n\n if (filterProps) {\n spread = omit(spread, filterProps);\n }\n\n if (clone) {\n return /*#__PURE__*/_react.default.cloneElement(children, (0, _extends2.default)({\n className: (0, _clsx.default)(children.props.className, className)\n }, spread));\n }\n\n if (typeof children === 'function') {\n return children((0, _extends2.default)({\n className: className\n }, spread));\n }\n\n var FinalComponent = ComponentProp || Component;\n return /*#__PURE__*/_react.default.createElement(FinalComponent, (0, _extends2.default)({\n ref: ref,\n className: className\n }, spread), children);\n });\n\n process.env.NODE_ENV !== \"production\" ? StyledComponent.propTypes = (0, _extends2.default)({\n /**\n * A render function or node.\n */\n children: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),\n\n /**\n * @ignore\n */\n className: _propTypes.default.string,\n\n /**\n * If `true`, the component will recycle it's children HTML element.\n * It's using `React.cloneElement` internally.\n *\n * This prop will be deprecated and removed in v5\n */\n clone: (0, _utils.chainPropTypes)(_propTypes.default.bool, function (props) {\n if (props.clone && props.component) {\n return new Error('You can not use the clone and component prop at the same time.');\n }\n\n return null;\n }),\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: _propTypes.default\n /* @typescript-to-proptypes-ignore */\n .elementType\n }, propTypes) : void 0;\n\n if (process.env.NODE_ENV !== 'production') {\n StyledComponent.displayName = \"Styled(\".concat(classNamePrefix, \")\");\n }\n\n (0, _hoistNonReactStatics.default)(StyledComponent, Component);\n return StyledComponent;\n };\n\n return componentCreator;\n}", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _styled.default;\n }\n});\n\nvar _styled = _interopRequireDefault(require(\"./styled\"));", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _utils = require(\"@material-ui/utils\");\n\nvar _ThemeContext = _interopRequireDefault(require(\"../useTheme/ThemeContext\"));\n\nvar _useTheme = _interopRequireDefault(require(\"../useTheme\"));\n\nvar _nested = _interopRequireDefault(require(\"./nested\"));\n\n// To support composition of theme.\nfunction mergeOuterLocalTheme(outerTheme, localTheme) {\n if (typeof localTheme === 'function') {\n var mergedTheme = localTheme(outerTheme);\n\n if (process.env.NODE_ENV !== 'production') {\n if (!mergedTheme) {\n console.error(['Material-UI: You should return an object from your theme function, i.e.', ' ({})} />'].join('\\n'));\n }\n }\n\n return mergedTheme;\n }\n\n return (0, _extends2.default)({}, outerTheme, localTheme);\n}\n/**\n * This component takes a `theme` prop.\n * It makes the `theme` available down the React tree thanks to React context.\n * This component should preferably be used at **the root of your component tree**.\n */\n\n\nfunction ThemeProvider(props) {\n var children = props.children,\n localTheme = props.theme;\n var outerTheme = (0, _useTheme.default)();\n\n if (process.env.NODE_ENV !== 'production') {\n if (outerTheme === null && typeof localTheme === 'function') {\n console.error(['Material-UI: You are providing a theme function prop to the ThemeProvider component:', ' outerTheme} />', '', 'However, no outer theme is present.', 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.'].join('\\n'));\n }\n }\n\n var theme = _react.default.useMemo(function () {\n var output = outerTheme === null ? localTheme : mergeOuterLocalTheme(outerTheme, localTheme);\n\n if (output != null) {\n output[_nested.default] = outerTheme !== null;\n }\n\n return output;\n }, [localTheme, outerTheme]);\n\n return /*#__PURE__*/_react.default.createElement(_ThemeContext.default.Provider, {\n value: theme\n }, children);\n}\n\nprocess.env.NODE_ENV !== \"production\" ? ThemeProvider.propTypes = {\n /**\n * Your component tree.\n */\n children: _propTypes.default.node.isRequired,\n\n /**\n * A theme object. You can provide a function to extend the outer theme.\n */\n theme: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.func]).isRequired\n} : void 0;\n\nif (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? ThemeProvider.propTypes = (0, _utils.exactProp)(ThemeProvider.propTypes) : void 0;\n}\n\nvar _default = ThemeProvider;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _ThemeProvider.default;\n }\n});\n\nvar _ThemeProvider = _interopRequireDefault(require(\"./ThemeProvider\"));", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _hoistNonReactStatics = _interopRequireDefault(require(\"hoist-non-react-statics\"));\n\nvar _utils = require(\"@material-ui/utils\");\n\nvar _makeStyles = _interopRequireDefault(require(\"../makeStyles\"));\n\nvar _getThemeProps = _interopRequireDefault(require(\"../getThemeProps\"));\n\nvar _useTheme = _interopRequireDefault(require(\"../useTheme\"));\n\n// Link a style sheet with a component.\n// It does not modify the component passed to it;\n// instead, it returns a new component, with a `classes` property.\nvar withStyles = function withStyles(stylesOrCreator) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return function (Component) {\n var defaultTheme = options.defaultTheme,\n _options$withTheme = options.withTheme,\n withTheme = _options$withTheme === void 0 ? false : _options$withTheme,\n name = options.name,\n stylesOptions = (0, _objectWithoutProperties2.default)(options, [\"defaultTheme\", \"withTheme\", \"name\"]);\n\n if (process.env.NODE_ENV !== 'production') {\n if (Component === undefined) {\n throw new Error(['You are calling withStyles(styles)(Component) with an undefined component.', 'You may have forgotten to import it.'].join('\\n'));\n }\n }\n\n var classNamePrefix = name;\n\n if (process.env.NODE_ENV !== 'production') {\n if (!name) {\n // Provide a better DX outside production.\n var displayName = (0, _utils.getDisplayName)(Component);\n\n if (displayName !== undefined) {\n classNamePrefix = displayName;\n }\n }\n }\n\n var useStyles = (0, _makeStyles.default)(stylesOrCreator, (0, _extends2.default)({\n defaultTheme: defaultTheme,\n Component: Component,\n name: name || Component.displayName,\n classNamePrefix: classNamePrefix\n }, stylesOptions));\n\n var WithStyles = /*#__PURE__*/_react.default.forwardRef(function WithStyles(props, ref) {\n var classesProp = props.classes,\n innerRef = props.innerRef,\n other = (0, _objectWithoutProperties2.default)(props, [\"classes\", \"innerRef\"]); // The wrapper receives only user supplied props, which could be a subset of\n // the actual props Component might receive due to merging with defaultProps.\n // So copying it here would give us the same result in the wrapper as well.\n\n var classes = useStyles((0, _extends2.default)({}, Component.defaultProps, props));\n var theme;\n var more = other;\n\n if (typeof name === 'string' || withTheme) {\n // name and withTheme are invariant in the outer scope\n // eslint-disable-next-line react-hooks/rules-of-hooks\n theme = (0, _useTheme.default)() || defaultTheme;\n\n if (name) {\n more = (0, _getThemeProps.default)({\n theme: theme,\n name: name,\n props: other\n });\n } // Provide the theme to the wrapped component.\n // So we don't have to use the `withTheme()` Higher-order Component.\n\n\n if (withTheme && !more.theme) {\n more.theme = theme;\n }\n }\n\n return /*#__PURE__*/_react.default.createElement(Component, (0, _extends2.default)({\n ref: innerRef || ref,\n classes: classes\n }, more));\n });\n\n process.env.NODE_ENV !== \"production\" ? WithStyles.propTypes = {\n /**\n * Override or extend the styles applied to the component.\n */\n classes: _propTypes.default.object,\n\n /**\n * Use that prop to pass a ref to the decorated component.\n * @deprecated\n */\n innerRef: (0, _utils.chainPropTypes)(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]), function (props) {\n if (props.innerRef == null) {\n return null;\n }\n\n return null; // return new Error(\n // 'Material-UI: The `innerRef` prop is deprecated and will be removed in v5. ' +\n // 'Refs are now automatically forwarded to the inner component.',\n // );\n })\n } : void 0;\n\n if (process.env.NODE_ENV !== 'production') {\n WithStyles.displayName = \"WithStyles(\".concat((0, _utils.getDisplayName)(Component), \")\");\n }\n\n (0, _hoistNonReactStatics.default)(WithStyles, Component);\n\n if (process.env.NODE_ENV !== 'production') {\n // Exposed for test purposes.\n WithStyles.Naked = Component;\n WithStyles.options = options;\n WithStyles.useStyles = useStyles;\n }\n\n return WithStyles;\n };\n};\n\nvar _default = withStyles;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _withStyles.default;\n }\n});\n\nvar _withStyles = _interopRequireDefault(require(\"./withStyles\"));", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.withThemeCreator = withThemeCreator;\nexports.default = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _objectWithoutProperties2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _hoistNonReactStatics = _interopRequireDefault(require(\"hoist-non-react-statics\"));\n\nvar _utils = require(\"@material-ui/utils\");\n\nvar _useTheme = _interopRequireDefault(require(\"../useTheme\"));\n\nfunction withThemeCreator() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var defaultTheme = options.defaultTheme;\n\n var withTheme = function withTheme(Component) {\n if (process.env.NODE_ENV !== 'production') {\n if (Component === undefined) {\n throw new Error(['You are calling withTheme(Component) with an undefined component.', 'You may have forgotten to import it.'].join('\\n'));\n }\n }\n\n var WithTheme = /*#__PURE__*/_react.default.forwardRef(function WithTheme(props, ref) {\n var innerRef = props.innerRef,\n other = (0, _objectWithoutProperties2.default)(props, [\"innerRef\"]);\n var theme = (0, _useTheme.default)() || defaultTheme;\n return /*#__PURE__*/_react.default.createElement(Component, (0, _extends2.default)({\n theme: theme,\n ref: innerRef || ref\n }, other));\n });\n\n process.env.NODE_ENV !== \"production\" ? WithTheme.propTypes = {\n /**\n * Use that prop to pass a ref to the decorated component.\n * @deprecated\n */\n innerRef: (0, _utils.chainPropTypes)(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]), function (props) {\n if (props.innerRef == null) {\n return null;\n }\n\n return new Error('Material-UI: The `innerRef` prop is deprecated and will be removed in v5. ' + 'Refs are now automatically forwarded to the inner component.');\n })\n } : void 0;\n\n if (process.env.NODE_ENV !== 'production') {\n WithTheme.displayName = \"WithTheme(\".concat((0, _utils.getDisplayName)(Component), \")\");\n }\n\n (0, _hoistNonReactStatics.default)(WithTheme, Component);\n\n if (process.env.NODE_ENV !== 'production') {\n // Exposed for test purposes.\n WithTheme.Naked = Component;\n }\n\n return WithTheme;\n };\n\n return withTheme;\n} // Provide the theme object as a prop to the input component.\n// It's an alternative API to useTheme().\n// We encourage the usage of useTheme() where possible.\n\n\nvar withTheme = withThemeCreator();\nvar _default = withTheme;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {};\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _withTheme.default;\n }\n});\n\nvar _withTheme = _interopRequireWildcard(require(\"./withTheme\"));\n\nObject.keys(_withTheme).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _withTheme[key];\n }\n });\n});", "/** @license Material-UI v4.11.5\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\"use strict\";\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {\n createGenerateClassName: true,\n createStyles: true,\n getThemeProps: true,\n jssPreset: true,\n makeStyles: true,\n mergeClasses: true,\n ServerStyleSheets: true,\n styled: true,\n StylesProvider: true,\n ThemeProvider: true,\n useTheme: true,\n withStyles: true,\n withTheme: true\n};\nObject.defineProperty(exports, \"createGenerateClassName\", {\n enumerable: true,\n get: function get() {\n return _createGenerateClassName.default;\n }\n});\nObject.defineProperty(exports, \"createStyles\", {\n enumerable: true,\n get: function get() {\n return _createStyles.default;\n }\n});\nObject.defineProperty(exports, \"getThemeProps\", {\n enumerable: true,\n get: function get() {\n return _getThemeProps.default;\n }\n});\nObject.defineProperty(exports, \"jssPreset\", {\n enumerable: true,\n get: function get() {\n return _jssPreset.default;\n }\n});\nObject.defineProperty(exports, \"makeStyles\", {\n enumerable: true,\n get: function get() {\n return _makeStyles.default;\n }\n});\nObject.defineProperty(exports, \"mergeClasses\", {\n enumerable: true,\n get: function get() {\n return _mergeClasses.default;\n }\n});\nObject.defineProperty(exports, \"ServerStyleSheets\", {\n enumerable: true,\n get: function get() {\n return _ServerStyleSheets.default;\n }\n});\nObject.defineProperty(exports, \"styled\", {\n enumerable: true,\n get: function get() {\n return _styled.default;\n }\n});\nObject.defineProperty(exports, \"StylesProvider\", {\n enumerable: true,\n get: function get() {\n return _StylesProvider.default;\n }\n});\nObject.defineProperty(exports, \"ThemeProvider\", {\n enumerable: true,\n get: function get() {\n return _ThemeProvider.default;\n }\n});\nObject.defineProperty(exports, \"useTheme\", {\n enumerable: true,\n get: function get() {\n return _useTheme.default;\n }\n});\nObject.defineProperty(exports, \"withStyles\", {\n enumerable: true,\n get: function get() {\n return _withStyles.default;\n }\n});\nObject.defineProperty(exports, \"withTheme\", {\n enumerable: true,\n get: function get() {\n return _withTheme.default;\n }\n});\n\nvar _utils = require(\"@material-ui/utils\");\n\nvar _createGenerateClassName = _interopRequireWildcard(require(\"./createGenerateClassName\"));\n\nObject.keys(_createGenerateClassName).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _createGenerateClassName[key];\n }\n });\n});\n\nvar _createStyles = _interopRequireWildcard(require(\"./createStyles\"));\n\nObject.keys(_createStyles).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _createStyles[key];\n }\n });\n});\n\nvar _getThemeProps = _interopRequireWildcard(require(\"./getThemeProps\"));\n\nObject.keys(_getThemeProps).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _getThemeProps[key];\n }\n });\n});\n\nvar _jssPreset = _interopRequireWildcard(require(\"./jssPreset\"));\n\nObject.keys(_jssPreset).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _jssPreset[key];\n }\n });\n});\n\nvar _makeStyles = _interopRequireWildcard(require(\"./makeStyles\"));\n\nObject.keys(_makeStyles).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _makeStyles[key];\n }\n });\n});\n\nvar _mergeClasses = _interopRequireWildcard(require(\"./mergeClasses\"));\n\nObject.keys(_mergeClasses).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _mergeClasses[key];\n }\n });\n});\n\nvar _ServerStyleSheets = _interopRequireWildcard(require(\"./ServerStyleSheets\"));\n\nObject.keys(_ServerStyleSheets).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _ServerStyleSheets[key];\n }\n });\n});\n\nvar _styled = _interopRequireWildcard(require(\"./styled\"));\n\nObject.keys(_styled).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _styled[key];\n }\n });\n});\n\nvar _StylesProvider = _interopRequireWildcard(require(\"./StylesProvider\"));\n\nObject.keys(_StylesProvider).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _StylesProvider[key];\n }\n });\n});\n\nvar _ThemeProvider = _interopRequireWildcard(require(\"./ThemeProvider\"));\n\nObject.keys(_ThemeProvider).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _ThemeProvider[key];\n }\n });\n});\n\nvar _useTheme = _interopRequireWildcard(require(\"./useTheme\"));\n\nObject.keys(_useTheme).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _useTheme[key];\n }\n });\n});\n\nvar _withStyles = _interopRequireWildcard(require(\"./withStyles\"));\n\nObject.keys(_withStyles).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _withStyles[key];\n }\n });\n});\n\nvar _withTheme = _interopRequireWildcard(require(\"./withTheme\"));\n\nObject.keys(_withTheme).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _withTheme[key];\n }\n });\n});\n\n/* eslint-disable import/export */\n\n/* Warning if there are several instances of @material-ui/styles */\nif (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test' && typeof window !== 'undefined') {\n _utils.ponyfillGlobal['__@material-ui/styles-init__'] = _utils.ponyfillGlobal['__@material-ui/styles-init__'] || 0;\n\n if (_utils.ponyfillGlobal['__@material-ui/styles-init__'] === 1) {\n console.warn(['It looks like there are several instances of `@material-ui/styles` initialized in this application.', 'This may cause theme propagation issues, broken class names, ' + 'specificity issues, and makes your application bigger without a good reason.', '', 'See https://mui.com/r/styles-instance-warning for more info.'].join('\\n'));\n }\n\n _utils.ponyfillGlobal['__@material-ui/styles-init__'] += 1;\n}", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = createStyles;\n\nvar _styles = require(\"@material-ui/styles\");\n\n// let warnOnce = false;\n// To remove in v5\nfunction createStyles(styles) {\n // warning(\n // warnOnce,\n // [\n // 'Material-UI: createStyles from @material-ui/core/styles is deprecated.',\n // 'Please use @material-ui/styles/createStyles',\n // ].join('\\n'),\n // );\n // warnOnce = true;\n return (0, _styles.createStyles)(styles);\n}", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createTheme = _interopRequireDefault(require(\"./createTheme\"));\n\nvar defaultTheme = (0, _createTheme.default)();\nvar _default = defaultTheme;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _styles = require(\"@material-ui/styles\");\n\nvar _defaultTheme = _interopRequireDefault(require(\"./defaultTheme\"));\n\nfunction makeStyles(stylesOrCreator) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return (0, _styles.makeStyles)(stylesOrCreator, (0, _extends2.default)({\n defaultTheme: _defaultTheme.default\n }, options));\n}\n\nvar _default = makeStyles;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isUnitless = isUnitless;\nexports.getUnit = getUnit;\nexports.toUnitless = toUnitless;\nexports.convertLength = convertLength;\nexports.alignProperty = alignProperty;\nexports.fontGrid = fontGrid;\nexports.responsiveProperty = responsiveProperty;\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nfunction isUnitless(value) {\n return String(parseFloat(value)).length === String(value).length;\n} // Ported from Compass\n// https://github.com/Compass/compass/blob/master/core/stylesheets/compass/typography/_units.scss\n// Emulate the sass function \"unit\"\n\n\nfunction getUnit(input) {\n return String(input).match(/[\\d.\\-+]*\\s*(.*)/)[1] || '';\n} // Emulate the sass function \"unitless\"\n\n\nfunction toUnitless(length) {\n return parseFloat(length);\n} // Convert any CSS or value to any another.\n// From https://github.com/KyleAMathews/convert-css-length\n\n\nfunction convertLength(baseFontSize) {\n return function (length, toUnit) {\n var fromUnit = getUnit(length); // Optimize for cases where `from` and `to` units are accidentally the same.\n\n if (fromUnit === toUnit) {\n return length;\n } // Convert input length to pixels.\n\n\n var pxLength = toUnitless(length);\n\n if (fromUnit !== 'px') {\n if (fromUnit === 'em') {\n pxLength = toUnitless(length) * toUnitless(baseFontSize);\n } else if (fromUnit === 'rem') {\n pxLength = toUnitless(length) * toUnitless(baseFontSize);\n return length;\n }\n } // Convert length in pixels to the output unit\n\n\n var outputLength = pxLength;\n\n if (toUnit !== 'px') {\n if (toUnit === 'em') {\n outputLength = pxLength / toUnitless(baseFontSize);\n } else if (toUnit === 'rem') {\n outputLength = pxLength / toUnitless(baseFontSize);\n } else {\n return length;\n }\n }\n\n return parseFloat(outputLength.toFixed(5)) + toUnit;\n };\n}\n\nfunction alignProperty(_ref) {\n var size = _ref.size,\n grid = _ref.grid;\n var sizeBelow = size - size % grid;\n var sizeAbove = sizeBelow + grid;\n return size - sizeBelow < sizeAbove - size ? sizeBelow : sizeAbove;\n} // fontGrid finds a minimal grid (in rem) for the fontSize values so that the\n// lineHeight falls under a x pixels grid, 4px in the case of Material Design,\n// without changing the relative line height\n\n\nfunction fontGrid(_ref2) {\n var lineHeight = _ref2.lineHeight,\n pixels = _ref2.pixels,\n htmlFontSize = _ref2.htmlFontSize;\n return pixels / (lineHeight * htmlFontSize);\n}\n/**\n * generate a responsive version of a given CSS property\n * @example\n * responsiveProperty({\n * cssProperty: 'fontSize',\n * min: 15,\n * max: 20,\n * unit: 'px',\n * breakpoints: [300, 600],\n * })\n *\n * // this returns\n *\n * {\n * fontSize: '15px',\n * '@media (min-width:300px)': {\n * fontSize: '17.5px',\n * },\n * '@media (min-width:600px)': {\n * fontSize: '20px',\n * },\n * }\n *\n * @param {Object} params\n * @param {string} params.cssProperty - The CSS property to be made responsive\n * @param {number} params.min - The smallest value of the CSS property\n * @param {number} params.max - The largest value of the CSS property\n * @param {string} [params.unit] - The unit to be used for the CSS property\n * @param {Array.number} [params.breakpoints] - An array of breakpoints\n * @param {number} [params.alignStep] - Round scaled value to fall under this grid\n * @returns {Object} responsive styles for {params.cssProperty}\n */\n\n\nfunction responsiveProperty(_ref3) {\n var cssProperty = _ref3.cssProperty,\n min = _ref3.min,\n max = _ref3.max,\n _ref3$unit = _ref3.unit,\n unit = _ref3$unit === void 0 ? 'rem' : _ref3$unit,\n _ref3$breakpoints = _ref3.breakpoints,\n breakpoints = _ref3$breakpoints === void 0 ? [600, 960, 1280] : _ref3$breakpoints,\n _ref3$transform = _ref3.transform,\n transform = _ref3$transform === void 0 ? null : _ref3$transform;\n var output = (0, _defineProperty2.default)({}, cssProperty, \"\".concat(min).concat(unit));\n var factor = (max - min) / breakpoints[breakpoints.length - 1];\n breakpoints.forEach(function (breakpoint) {\n var value = min + factor * breakpoint;\n\n if (transform !== null) {\n value = transform(value);\n }\n\n output[\"@media (min-width:\".concat(breakpoint, \"px)\")] = (0, _defineProperty2.default)({}, cssProperty, \"\".concat(Math.round(value * 10000) / 10000).concat(unit));\n });\n return output;\n}", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = responsiveFontSizes;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _utils = require(\"@material-ui/utils\");\n\nvar _cssUtils = require(\"./cssUtils\");\n\nfunction responsiveFontSizes(themeInput) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$breakpoints = options.breakpoints,\n breakpoints = _options$breakpoints === void 0 ? ['sm', 'md', 'lg'] : _options$breakpoints,\n _options$disableAlign = options.disableAlign,\n disableAlign = _options$disableAlign === void 0 ? false : _options$disableAlign,\n _options$factor = options.factor,\n factor = _options$factor === void 0 ? 2 : _options$factor,\n _options$variants = options.variants,\n variants = _options$variants === void 0 ? ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'caption', 'button', 'overline'] : _options$variants;\n var theme = (0, _extends2.default)({}, themeInput);\n theme.typography = (0, _extends2.default)({}, theme.typography);\n var typography = theme.typography; // Convert between css lengths e.g. em->px or px->rem\n // Set the baseFontSize for your project. Defaults to 16px (also the browser default).\n\n var convert = (0, _cssUtils.convertLength)(typography.htmlFontSize);\n var breakpointValues = breakpoints.map(function (x) {\n return theme.breakpoints.values[x];\n });\n variants.forEach(function (variant) {\n var style = typography[variant];\n var remFontSize = parseFloat(convert(style.fontSize, 'rem'));\n\n if (remFontSize <= 1) {\n return;\n }\n\n var maxFontSize = remFontSize;\n var minFontSize = 1 + (maxFontSize - 1) / factor;\n var lineHeight = style.lineHeight;\n\n if (!(0, _cssUtils.isUnitless)(lineHeight) && !disableAlign) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? \"Material-UI: Unsupported non-unitless line height with grid alignment.\\nUse unitless line heights instead.\" : (0, _utils.formatMuiErrorMessage)(6));\n }\n\n if (!(0, _cssUtils.isUnitless)(lineHeight)) {\n // make it unitless\n lineHeight = parseFloat(convert(lineHeight, 'rem')) / parseFloat(remFontSize);\n }\n\n var transform = null;\n\n if (!disableAlign) {\n transform = function transform(value) {\n return (0, _cssUtils.alignProperty)({\n size: value,\n grid: (0, _cssUtils.fontGrid)({\n pixels: 4,\n lineHeight: lineHeight,\n htmlFontSize: typography.htmlFontSize\n })\n });\n };\n }\n\n typography[variant] = (0, _extends2.default)({}, style, (0, _cssUtils.responsiveProperty)({\n cssProperty: 'fontSize',\n min: minFontSize,\n max: maxFontSize,\n unit: 'rem',\n breakpoints: breakpointValues,\n transform: transform\n }));\n });\n return theme;\n}", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _styles = require(\"@material-ui/styles\");\n\nvar _defaultTheme = _interopRequireDefault(require(\"./defaultTheme\"));\n\nvar styled = function styled(Component) {\n var componentCreator = (0, _styles.styled)(Component);\n return function (style, options) {\n return componentCreator(style, (0, _extends2.default)({\n defaultTheme: _defaultTheme.default\n }, options));\n };\n};\n\nvar _default = styled;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = useTheme;\n\nvar _styles = require(\"@material-ui/styles\");\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _defaultTheme = _interopRequireDefault(require(\"./defaultTheme\"));\n\nfunction useTheme() {\n var theme = (0, _styles.useTheme)() || _defaultTheme.default;\n\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n _react.default.useDebugValue(theme);\n }\n\n return theme;\n}", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _styles = require(\"@material-ui/styles\");\n\nvar _defaultTheme = _interopRequireDefault(require(\"./defaultTheme\"));\n\nfunction withStyles(stylesOrCreator, options) {\n return (0, _styles.withStyles)(stylesOrCreator, (0, _extends2.default)({\n defaultTheme: _defaultTheme.default\n }, options));\n}\n\nvar _default = withStyles;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _styles = require(\"@material-ui/styles\");\n\nvar _defaultTheme = _interopRequireDefault(require(\"./defaultTheme\"));\n\nvar withTheme = (0, _styles.withThemeCreator)({\n defaultTheme: _defaultTheme.default\n});\nvar _default = withTheme;\nexports.default = _default;", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {\n createTheme: true,\n createMuiTheme: true,\n unstable_createMuiStrictModeTheme: true,\n createStyles: true,\n makeStyles: true,\n responsiveFontSizes: true,\n styled: true,\n useTheme: true,\n withStyles: true,\n withTheme: true,\n createGenerateClassName: true,\n jssPreset: true,\n ServerStyleSheets: true,\n StylesProvider: true,\n MuiThemeProvider: true,\n ThemeProvider: true\n};\nObject.defineProperty(exports, \"createTheme\", {\n enumerable: true,\n get: function get() {\n return _createTheme.default;\n }\n});\nObject.defineProperty(exports, \"createMuiTheme\", {\n enumerable: true,\n get: function get() {\n return _createTheme.createMuiTheme;\n }\n});\nObject.defineProperty(exports, \"unstable_createMuiStrictModeTheme\", {\n enumerable: true,\n get: function get() {\n return _createMuiStrictModeTheme.default;\n }\n});\nObject.defineProperty(exports, \"createStyles\", {\n enumerable: true,\n get: function get() {\n return _createStyles.default;\n }\n});\nObject.defineProperty(exports, \"makeStyles\", {\n enumerable: true,\n get: function get() {\n return _makeStyles.default;\n }\n});\nObject.defineProperty(exports, \"responsiveFontSizes\", {\n enumerable: true,\n get: function get() {\n return _responsiveFontSizes.default;\n }\n});\nObject.defineProperty(exports, \"styled\", {\n enumerable: true,\n get: function get() {\n return _styled.default;\n }\n});\nObject.defineProperty(exports, \"useTheme\", {\n enumerable: true,\n get: function get() {\n return _useTheme.default;\n }\n});\nObject.defineProperty(exports, \"withStyles\", {\n enumerable: true,\n get: function get() {\n return _withStyles.default;\n }\n});\nObject.defineProperty(exports, \"withTheme\", {\n enumerable: true,\n get: function get() {\n return _withTheme.default;\n }\n});\nObject.defineProperty(exports, \"createGenerateClassName\", {\n enumerable: true,\n get: function get() {\n return _styles.createGenerateClassName;\n }\n});\nObject.defineProperty(exports, \"jssPreset\", {\n enumerable: true,\n get: function get() {\n return _styles.jssPreset;\n }\n});\nObject.defineProperty(exports, \"ServerStyleSheets\", {\n enumerable: true,\n get: function get() {\n return _styles.ServerStyleSheets;\n }\n});\nObject.defineProperty(exports, \"StylesProvider\", {\n enumerable: true,\n get: function get() {\n return _styles.StylesProvider;\n }\n});\nObject.defineProperty(exports, \"MuiThemeProvider\", {\n enumerable: true,\n get: function get() {\n return _styles.ThemeProvider;\n }\n});\nObject.defineProperty(exports, \"ThemeProvider\", {\n enumerable: true,\n get: function get() {\n return _styles.ThemeProvider;\n }\n});\n\nvar _colorManipulator = require(\"./colorManipulator\");\n\nObject.keys(_colorManipulator).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _colorManipulator[key];\n }\n });\n});\n\nvar _createTheme = _interopRequireWildcard(require(\"./createTheme\"));\n\nvar _createMuiStrictModeTheme = _interopRequireDefault(require(\"./createMuiStrictModeTheme\"));\n\nvar _createStyles = _interopRequireDefault(require(\"./createStyles\"));\n\nvar _makeStyles = _interopRequireDefault(require(\"./makeStyles\"));\n\nvar _responsiveFontSizes = _interopRequireDefault(require(\"./responsiveFontSizes\"));\n\nvar _styled = _interopRequireDefault(require(\"./styled\"));\n\nvar _transitions = require(\"./transitions\");\n\nObject.keys(_transitions).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _transitions[key];\n }\n });\n});\n\nvar _useTheme = _interopRequireDefault(require(\"./useTheme\"));\n\nvar _withStyles = _interopRequireDefault(require(\"./withStyles\"));\n\nvar _withTheme = _interopRequireDefault(require(\"./withTheme\"));\n\nvar _styles = require(\"@material-ui/styles\");", "import { createTheme } from '@material-ui/core/styles';\n\nimport orange from '@material-ui/core/colors/orange';\n\nconst step = (16 - 5) / 23 / 100;\n\n/**\n * Convert hex color in the format '#rrggbb' or '#rgb' to an RGB object.\n * @param {string} hex\n * @returns {{r: number, g: number, b: number}}\n */\nfunction toInt(hex) {\n const rgb = {\n r: 0,\n g: 0,\n b: 0,\n };\n\n if (hex.length === 7) {\n rgb.r = parseInt(hex.substr(1, 2), 16);\n rgb.g = parseInt(hex.substr(3, 2), 16);\n rgb.b = parseInt(hex.substr(5, 2), 16);\n } else if (hex.length === 4) {\n const r = hex.substr(1, 1);\n const g = hex.substr(2, 1);\n const b = hex.substr(3, 1);\n\n rgb.r = parseInt(r + r, 16);\n rgb.g = parseInt(g + g, 16);\n rgb.b = parseInt(b + b, 16);\n }\n\n return rgb;\n}\n\n/**\n * Convert an RGB object to a hex color string in the format '#rrggbb'.\n * @param {{r: number, g: number, b: number}} int\n * @returns {string}\n */\nfunction toHex(int) {\n return `#${Math.round(int.r).toString(16)}${Math.round(int.g).toString(16)}${Math.round(int.b).toString(16)}`;\n}\n\n/**\n * @param {string} color color in the format '#rrggbb' or '#rgb'\n * @param {string} overlayColor overlay color in the format '#rrggbb' or '#rgb'\n * @param {number} elevation elevation as an integer starting with 1\n * @returns {string} the hex color string in the format '#rrggbb'\n */\nfunction getElevation(color, overlayColor, elevation) {\n const rgb = toInt(color);\n const overlay = toInt(overlayColor);\n\n rgb.r += overlay.r * (0.05 + step * (elevation - 1));\n rgb.g += overlay.g * (0.05 + step * (elevation - 1));\n rgb.b += overlay.b * (0.05 + step * (elevation - 1));\n\n return toHex(rgb);\n}\n\n/**\n * Get all 24 elevations of the given color and overlay.\n * @param {string} color color in the format '#rrggbb' or '#rgb'\n * @param {string} overlay overlay color in the format '#rrggbb' or '#rgb'\n * @returns {import('@material-ui/core/styles/withStyles').CSSProperties}\n */\nfunction getElevations(color, overlay) {\n /** @type {import('@material-ui/core/styles/withStyles').CSSProperties} */\n const elevations = {};\n\n for (let i = 1; i <= 24; i++) {\n elevations[`elevation${i}`] = {\n backgroundColor: getElevation(color, overlay, i),\n };\n }\n\n return elevations;\n}\n\n/**\n * The theme creation factory function.\n * @param {string} type\n * @returns {import('./types').Theme}\n */\nconst Theme = type => {\n let theme;\n if (type === 'dark') {\n theme = {\n name: type,\n palette: {\n type: 'dark',\n background: {\n paper: '#121212',\n default: '#121212'\n },\n primary: {\n main: '#4dabf5'\n },\n secondary: {\n main: '#436a93'\n },\n expert: '#14bb00',\n text: {\n primary: '#ffffff',\n secondary: '#ffffff'\n }\n },\n overrides: {\n MuiAppBar: {\n colorDefault: {\n backgroundColor: '#272727'\n }\n },\n MuiLink: {\n root: {\n textTransform: 'uppercase',\n transition: 'color .3s ease',\n color: orange[200],\n '&:hover': {\n color: orange[100]\n }\n }\n },\n MuiPaper: getElevations('#121212', '#fff')\n }\n };\n } else if (type === 'blue') {\n theme = {\n name: type,\n palette: {\n type: 'dark',\n background: {\n paper: '#151d21',\n default: '#151d21'\n },\n primary: {\n main: '#4dabf5'\n },\n secondary: {\n main: '#436a93'\n },\n expert: '#14bb00',\n text: {\n primary: '#ffffff',\n secondary: '#ffffff'\n }\n },\n overrides: {\n MuiAppBar: {\n colorDefault: {\n backgroundColor: '#2a3135'\n }\n },\n MuiLink: {\n root: {\n textTransform: 'uppercase',\n transition: 'color .3s ease',\n color: orange[200],\n '&:hover': {\n color: orange[100]\n }\n }\n },\n MuiPaper: getElevations('#151d21', '#fff')\n }\n };\n } else if (type === 'colored') {\n theme = {\n name: type,\n palette: {\n type: 'light',\n primary: {\n main: '#3399CC'\n },\n secondary: {\n main: '#164477'\n },\n expert: '#96fc96'\n },\n overrides: {\n MuiAppBar: {\n colorDefault: {\n backgroundColor: '#3399CC'\n }\n },\n MuiLink: {\n root: {\n textTransform: 'uppercase',\n transition: 'color .3s ease',\n color: orange[400],\n '&:hover': {\n color: orange[300]\n }\n }\n }\n }\n };\n } else if (type === 'PT') {\n theme = {\n name: type,\n palette: {\n type: 'light',\n primary: {\n main: '#0F99DE'\n },\n secondary: {\n main: '#88A536'\n },\n expert: '#BD1B24'\n },\n overrides: {\n MuiAppBar: {\n colorDefault: {\n backgroundColor: '#0F99DE'\n }\n },\n MuiLink: {\n root: {\n textTransform: 'uppercase',\n transition: 'color .3s ease',\n color: orange[400],\n '&:hover': {\n color: orange[300]\n }\n }\n }\n }\n };\n } else if (type === 'DX') {\n theme = {\n name: type,\n palette: {\n type: 'light',\n primary: {\n main: '#F5F5F7'\n },\n secondary: {\n main: '#a9a9a9'\n },\n expert: '#BD1B24',\n text: {\n primary: '#007AFE',\n secondary: '#007AFE',\n disabled: '#007AFEAA',\n }\n },\n overrides: {\n MuiAppBar: {\n colorDefault: {\n backgroundColor: '#a9a9a9'\n }\n },\n MuiLink: {\n root: {\n textTransform: 'uppercase',\n transition: 'color .3s ease',\n color: orange[400],\n '&:hover': {\n color: orange[300]\n }\n }\n }\n }\n };\n } else {\n theme = {\n name: type,\n palette: {\n type: 'light',\n primary: {\n main: '#3399CC'\n },\n secondary: {\n main: '#164477'\n },\n expert: '#14bb00'\n },\n overrides: {\n MuiLink: {\n root: {\n textTransform: 'uppercase',\n transition: 'color .3s ease',\n color: orange[400],\n '&:hover': {\n color: orange[300]\n }\n }\n }\n }\n };\n }\n\n theme.toolbar = {\n height: 48\n };\n\n // add save toolbar\n theme.saveToolbar = {\n background: theme.palette.primary.main,\n button: {\n borderRadius: 3,\n height: 32\n }\n };\n\n return createTheme(theme);\n};\n\nexport default Theme;\n", "/***\n * Copyright 2018-2022 bluefox \n *\n * MIT License\n *\n ***/\n\n /**\n * Translation string management.\n */\nclass I18n {\n /**\n * List of all languages with their translations.\n * @type {{ [lang in ioBroker.Languages]?: Record; }}\n */\n static translations = {};\n\n /**\n * The currently displayed language.\n * @type {ioBroker.Languages}\n */\n static lang = window.sysLang || 'en';\n\n static _disableWarning = false;\n\n /**\n * Set the language to display.\n * @param {ioBroker.Languages} lang\n */\n static setLanguage(lang) {\n if (lang) {\n I18n.lang = lang;\n }\n }\n\n /**\n * Add translations\n * User can provide two types of structures:\n * - {\"word1\": \"translated word1\", \"word2\": \"translated word2\"}, but in this case the lang must be provided\n * - {\"word1\": {\"en\": \"translated en word1\", \"de\": \"translated de word1\"}, \"word2\": {\"en\": \"translated en word2\", \"de\": \"translated de word2\"}}, but no lang must be provided\n * @param {object} words additional words for specific language\n * @param {ioBroker.Languages} lang\n */\n static extendTranslations(words, lang) {\n try {\n if (!lang) {\n Object.keys(words).forEach(word => {\n Object.keys(words[word]).forEach(lang => {\n if (!I18n.translations[lang]) {\n console.warn(`Used unknown language: ${lang}`);\n }\n if (!I18n.translations[lang][word]) {\n I18n.translations[lang][word] = words[word][lang];\n } else if (I18n.translations[lang][word] !== words[word][lang]) {\n console.warn(`Translation for word \"${word}\" in \"${lang}\" was ignored: existing = \"${I18n.translations[lang][word]}\", new = ${words[word][lang]}`);\n }\n });\n });\n } else {\n if (!I18n.translations[lang]) {\n console.warn(`Used unknown language: ${lang}`);\n }\n I18n.translations[lang] = I18n.translations[lang] || {};\n Object.keys(words)\n .forEach(word => {\n if (!I18n.translations[lang][word]) {\n I18n.translations[lang][word] = words[word];\n } else if (I18n.translations[lang][word] !== words[word]) {\n console.warn(`Translation for word \"${word}\" in \"${lang}\" was ignored: existing = \"${I18n.translations[lang][word]}\", new = ${words[word]}`);\n }\n });\n }\n } catch (e) {\n console.error(`Cannot apply translations: ${e}`);\n }\n }\n\n /**\n * Sets all translations (in all languages).\n * @param {{ [lang in ioBroker.Languages]?: Record; }} translations\n */\n static setTranslations(translations) {\n if (translations) {\n I18n.translations = translations;\n }\n }\n\n /**\n * Get the currently chosen language.\n * @returns {ioBroker.Languages} The current language.\n */\n static getLanguage() {\n return I18n.lang;\n }\n\n /**\n * Translate the given string to the selected language.\n * @param {string} word The (key) word to look up the string.\n * @param {string[]} args Optional arguments which will replace the first (second, third, ...) occurrences of %s\n */\n static t(word, ...args) {\n const translation = I18n.translations[I18n.lang];\n if (translation) {\n const w = translation[word];\n if (w) {\n word = w;\n } else {\n I18n._disableWarning && console.log(`Translate: ${word}`);\n }\n }\n for (const arg of args) {\n word = word.replace('%s', arg);\n }\n return word;\n }\n\n /**\n * Disable warning about non-translated words\n * Required during development\n * @param {boolean} disable Do the warning should be disabled\n */\n static disableWarning(disable) {\n I18n._disableWarning = !!disable;\n }\n}\n\n/*I18n.translations = {\n 'en': require('./i18n/en'),\n 'ru': require('./i18n/ru'),\n 'de': require('./i18n/de'),\n};\nI18n.fallbacks = true;\nI18n.t = function () {};*/\n\nexport default I18n;", "/**\r\n * Copyright 2018-2022 bluefox \r\n *\r\n * MIT License\r\n *\r\n **/\r\nimport React from 'react';\r\nimport I18n from '../i18n';\r\n\r\nconst NAMESPACE = 'material';\r\nconst days = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'];\r\nconst months = ['Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];\r\nconst QUALITY_BITS = {\r\n 0x00: '0x00 - good',\r\n\r\n 0x01: '0x01 - general problem',\r\n 0x02: '0x02 - no connection problem',\r\n\r\n 0x10: '0x10 - substitute value from controller',\r\n 0x20: '0x20 - substitute initial value',\r\n 0x40: '0x40 - substitute value from device or instance',\r\n 0x80: '0x80 - substitute value from sensor',\r\n\r\n 0x11: '0x11 - general problem by instance',\r\n 0x41: '0x41 - general problem by device',\r\n 0x81: '0x81 - general problem by sensor',\r\n\r\n 0x12: '0x12 - instance not connected',\r\n 0x42: '0x42 - device not connected',\r\n 0x82: '0x82 - sensor not connected',\r\n\r\n 0x44: '0x44 - device reports error',\r\n 0x84: '0x84 - sensor reports error',\r\n};\r\n\r\nclass Utils {\r\n static namespace = NAMESPACE;\r\n static INSTANCES = 'instances';\r\n static dateFormat = ['DD', 'MM'];\r\n static FORBIDDEN_CHARS = /[^._\\-/ :!#$%&()+=@^{}|~\\p{Ll}\\p{Lu}\\p{Nd}]+/gu;\r\n\r\n /**\r\n * Capitalize words.\r\n * @param {string | undefined} name\r\n * @returns {string}\r\n */\r\n static CapitalWords(name) {\r\n return (name || '').split(/[\\s_]/)\r\n .filter(item => item)\r\n .map(word => word ? word[0].toUpperCase() + word.substring(1).toLowerCase() : '')\r\n .join(' ');\r\n }\r\n\r\n static formatSeconds(seconds) {\r\n const days = Math.floor(seconds / (3600 * 24));\r\n seconds %= 3600 * 24;\r\n let hours = Math.floor(seconds / 3600);\r\n if (hours < 10) {\r\n hours = '0' + hours;\r\n }\r\n seconds %= 3600;\r\n let minutes = Math.floor(seconds / 60);\r\n if (minutes < 10) {\r\n minutes = '0' + minutes;\r\n }\r\n seconds %= 60;\r\n seconds = Math.floor(seconds);\r\n if (seconds < 10) {\r\n seconds = '0' + seconds;\r\n }\r\n let text = '';\r\n if (days) {\r\n text += `${days} ${I18n.t('ra_daysShortText')} `;\r\n }\r\n text += `${hours}:${minutes}:${seconds}`;\r\n\r\n return text;\r\n }\r\n\r\n /**\r\n * Get the name of the object by id from the name or description.\r\n * @param {Record} objects\r\n * @param {string} id\r\n * @param {{ name: any; } | ioBroker.Languages | null} settings\r\n * @param {{ language?: ioBroker.Languages; }} options\r\n * @param {boolean} [isDesc] Set to true to get the description.\r\n * @returns {string}\r\n */\r\n static getObjectName(objects, id, settings, options, isDesc) {\r\n let item = objects[id];\r\n let text = id;\r\n const attr = isDesc ? 'desc' : 'name';\r\n\r\n if (typeof settings === 'string' && !options) {\r\n options = {language: settings};\r\n settings = null;\r\n }\r\n\r\n options = options || {};\r\n if (!options.language) {\r\n options.language = (objects['system.config'] && objects['system.config'].common && objects['system.config'].common.language) || window.sysLang || 'en';\r\n }\r\n if (settings && settings.name) {\r\n text = settings.name;\r\n if (typeof text === 'object') {\r\n text = text[options.language] || text.en;\r\n }\r\n } else\r\n if (item && item.common && item.common[attr]) {\r\n text = item.common[attr];\r\n if (attr !== 'desc' && !text && item.common.desc) {\r\n text = item.common.desc;\r\n }\r\n if (typeof text === 'object') {\r\n text = text[options.language] || text.en || text.de || text.ru || '';\r\n }\r\n text = (text || '').toString().replace(/[_.]/g, ' ');\r\n\r\n if (text === text.toUpperCase()) {\r\n text = text[0] + text.substring(1).toLowerCase();\r\n }\r\n } else {\r\n let pos = id.lastIndexOf('.');\r\n text = id.substring(pos + 1).replace(/[_.]/g, ' ');\r\n text = Utils.CapitalWords(text);\r\n }\r\n\r\n return text.trim();\r\n }\r\n\r\n /**\r\n * Get the name of the object from the name or description.\r\n * @param {ioBroker.PartialObject} obj\r\n * @param {{ name: any; } | ioBroker.Languages | null } settings or language\r\n * @param {{ language?: ioBroker.Languages; } } options\r\n * @param {boolean} [isDesc] Set to true to get the description.\r\n * @returns {string}\r\n */\r\n static getObjectNameFromObj(obj, settings, options, isDesc) {\r\n let item = obj;\r\n let text = (obj && obj._id) || '';\r\n const attr = isDesc ? 'desc' : 'name';\r\n\r\n if (typeof settings === 'string' && !options) {\r\n options = {language: settings};\r\n settings = null;\r\n }\r\n\r\n options = options || {};\r\n\r\n if (settings && settings.name) {\r\n text = settings.name;\r\n if (typeof text === 'object') {\r\n text = text[options.language] || text.en;\r\n }\r\n } else\r\n if (item && item.common && item.common[attr]) {\r\n text = item.common[attr];\r\n if (attr !== 'desc' && !text && item.common.desc) {\r\n text = item.common.desc;\r\n }\r\n if (typeof text === 'object') {\r\n text = text[options.language] || text.en;\r\n }\r\n text = (text || '').toString().replace(/[_.]/g, ' ');\r\n\r\n if (text === text.toUpperCase()) {\r\n text = text[0] + text.substring(1).toLowerCase();\r\n }\r\n }\r\n return text.trim();\r\n }\r\n\r\n /**\r\n * @param {ioBroker.PartialObject | ioBroker.ObjectCommon} obj\r\n * @param {string} forEnumId\r\n * @param {{ user: string; }} options\r\n * @returns {string | null}\r\n */\r\n static getSettingsOrder(obj, forEnumId, options) {\r\n if (obj && obj.hasOwnProperty('common')) {\r\n obj = obj.common;\r\n }\r\n let settings;\r\n if (obj && obj.custom) {\r\n settings = (obj.custom || {})[NAMESPACE];\r\n const user = options.user || 'admin';\r\n if (settings && settings[user]) {\r\n if (forEnumId) {\r\n if (settings[user].subOrder && settings[user].subOrder[forEnumId]) {\r\n return JSON.parse(JSON.stringify(settings[user].subOrder[forEnumId]));\r\n }\r\n } else {\r\n if (settings[user].order) {\r\n return JSON.parse(JSON.stringify(settings[user].order));\r\n }\r\n }\r\n }\r\n }\r\n return null;\r\n }\r\n\r\n /**\r\n * @param {ioBroker.PartialObject | ioBroker.ObjectCommon} obj\r\n * @param {string} forEnumId\r\n * @param {{ user: string; }} options\r\n */\r\n static getSettingsCustomURLs(obj, forEnumId, options) {\r\n if (obj && obj.hasOwnProperty('common')) {\r\n obj = obj.common;\r\n }\r\n let settings;\r\n if (obj && obj.custom) {\r\n settings = (obj.custom || {})[NAMESPACE];\r\n const user = options.user || 'admin';\r\n if (settings && settings[user]) {\r\n if (forEnumId) {\r\n if (settings[user].subURLs && settings[user].subURLs[forEnumId]) {\r\n return JSON.parse(JSON.stringify(settings[user].subURLs[forEnumId]));\r\n }\r\n } else {\r\n if (settings[user].URLs) {\r\n return JSON.parse(JSON.stringify(settings[user].URLs));\r\n }\r\n }\r\n }\r\n }\r\n return null;\r\n }\r\n\r\n /**\r\n * Reorder the array items in list between source and dest.\r\n * @param {Iterable | ArrayLike} list\r\n * @param {number} source\r\n * @param {number} dest\r\n */\r\n static reorder(list, source, dest) {\r\n const result = Array.from(list);\r\n const [removed] = result.splice(source, 1);\r\n result.splice(dest, 0, removed);\r\n return result;\r\n };\r\n\r\n /**\r\n * @param {any} obj\r\n * @param {{ id: any; user: any; name: any; icon: any; color: any; language: ioBroker.Languages; }} options\r\n * @param {boolean} [defaultEnabling]\r\n */\r\n static getSettings(obj, options, defaultEnabling) {\r\n let settings;\r\n const id = (obj && obj._id) || (options && options.id);\r\n if (obj && obj.hasOwnProperty('common')) {\r\n obj = obj.common;\r\n }\r\n if (obj && obj.custom) {\r\n settings = obj.custom || {};\r\n settings = settings[NAMESPACE] && settings[NAMESPACE][options.user || 'admin'] ? JSON.parse(JSON.stringify(settings[NAMESPACE][options.user || 'admin'])) : {enabled: true};\r\n } else {\r\n settings = {enabled: defaultEnabling === undefined ? true : defaultEnabling, useCustom: false};\r\n }\r\n\r\n if (!settings.hasOwnProperty('enabled')) {\r\n settings.enabled = defaultEnabling === undefined ? true : defaultEnabling;\r\n }\r\n\r\n if (false && settings.useCommon) {\r\n if (obj.color) settings.color = obj.color;\r\n if (obj.icon) settings.icon = obj.icon;\r\n if (obj.name) settings.name = obj.name;\r\n } else {\r\n if (options) {\r\n if (!settings.name && options.name) settings.name = options.name;\r\n if (!settings.icon && options.icon) settings.icon = options.icon;\r\n if (!settings.color && options.color) settings.color = options.color;\r\n }\r\n\r\n if (obj) {\r\n if (!settings.color && obj.color) settings.color = obj.color;\r\n if (!settings.icon && obj.icon) settings.icon = obj.icon;\r\n if (!settings.name && obj.name) settings.name = obj.name;\r\n }\r\n }\r\n\r\n if (typeof settings.name === 'object') {\r\n settings.name = settings.name[options.language] || settings.name.en;\r\n\r\n settings.name = (settings.name || '').toString().replace(/_/g, ' ');\r\n\r\n if (settings.name === settings.name.toUpperCase()) {\r\n settings.name = settings.name[0] + settings.name.substring(1).toLowerCase();\r\n }\r\n }\r\n if (!settings.name && id) {\r\n let pos = id.lastIndexOf('.');\r\n settings.name = id.substring(pos + 1).replace(/[_.]/g, ' ');\r\n settings.name = (settings.name || '').toString().replace(/_/g, ' ');\r\n settings.name = Utils.CapitalWords(settings.name);\r\n }\r\n\r\n return settings;\r\n }\r\n\r\n /**\r\n * @param {any} obj\r\n * @param {any} settings\r\n * @param {{ user: any; language: ioBroker.Languages; }} options\r\n */\r\n static setSettings(obj, settings, options) {\r\n if (obj) {\r\n obj.common = obj.common || {};\r\n obj.common.custom = obj.common.custom || {};\r\n obj.common.custom[NAMESPACE] = obj.common.custom[NAMESPACE] || {};\r\n obj.common.custom[NAMESPACE][options.user || 'admin'] = settings;\r\n const s = obj.common.custom[NAMESPACE][options.user || 'admin'];\r\n if (s.useCommon) {\r\n if (s.color !== undefined) {\r\n obj.common.color = s.color;\r\n delete s.color;\r\n }\r\n if (s.icon !== undefined) {\r\n obj.common.icon = s.icon;\r\n delete s.icon;\r\n }\r\n if (s.name !== undefined) {\r\n if (typeof obj.common.name !== 'object') {\r\n obj.common.name = {};\r\n obj.common.name[options.language] = s.name;\r\n } else{\r\n obj.common.name[options.language] = s.name;\r\n }\r\n delete s.name;\r\n }\r\n }\r\n\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n /**\r\n * Get the icon for the given settings.\r\n * @param {{ icon: string | undefined; name: string | undefined; prefix: string | undefined}} settings\r\n * @param {any} style\r\n * @returns {JSX.Element | null}\r\n */\r\n static getIcon(settings, style) {\r\n if (settings && settings.icon) {\r\n // If UTF-8 icon\r\n if (settings.icon.length <= 2) {\r\n return {settings.icon};\r\n } else\r\n if (settings.icon.startsWith('data:image')) {\r\n return {settings.name};\r\n } else { // may be later some changes for second type\r\n return {settings.name};\r\n }\r\n }\r\n return null;\r\n }\r\n\r\n /**\r\n * Get the icon for the given object.\r\n * @param {string} id\r\n * @param {{ common: { icon: any; }; }} obj\r\n * @returns {string | null}\r\n */\r\n static getObjectIcon(id, obj) {\r\n // If id is Object\r\n if (typeof id === 'object') {\r\n obj = id;\r\n id = obj._id;\r\n }\r\n\r\n if (obj && obj.common && obj.common.icon) {\r\n let icon = obj.common.icon;\r\n // If UTF-8 icon\r\n if (typeof icon === 'string' && icon.length <= 2) {\r\n return icon;\r\n } else\r\n if (icon.startsWith('data:image')) {\r\n return icon;\r\n } else {\r\n const parts = id.split('.');\r\n if (parts[0] === 'system') {\r\n icon = 'adapter/' + parts[2] + (icon.startsWith('/') ? '' : '/') + icon;\r\n } else {\r\n icon = 'adapter/' + parts[0] + (icon.startsWith('/') ? '' : '/') + icon;\r\n }\r\n\r\n if (window.location.pathname.match(/adapter\\/[^/]+\\/[^/]+\\.html/)) {\r\n icon = '../../' + icon;\r\n } else if (window.location.pathname.match(/material\\/[.\\d]+/)) {\r\n icon = '../../' + icon;\r\n } else\r\n if (window.location.pathname.match(/material\\//)) {\r\n icon = '../' + icon;\r\n }\r\n return icon;\r\n }\r\n } else {\r\n return null;\r\n }\r\n }\r\n\r\n /**\r\n * Splits CamelCase into words.\r\n * @param {string | undefined} text\r\n * @returns {string}\r\n */\r\n static splitCamelCase(text) {\r\n if (false && text !== text.toUpperCase()) {\r\n const words = text.split(/\\s+/);\r\n for (let i = 0; i < words.length; i++) {\r\n let word = words[i];\r\n if (word.toLowerCase() !== word && word.toUpperCase() !== word) {\r\n let z = 0;\r\n const ww = [];\r\n let start = 0;\r\n while (z < word.length) {\r\n if (word[z].match(/[A-ZÜÄÖА-Я]/)) {\r\n ww.push(word.substring(start, z));\r\n start = z;\r\n }\r\n z++;\r\n }\r\n if (start !== z) {\r\n ww.push(word.substring(start, z));\r\n }\r\n for (let k = 0; k < ww.length; k++) {\r\n words.splice(i + k, 0, ww[k]);\r\n }\r\n i += ww.length;\r\n }\r\n }\r\n\r\n return words.map(w => {\r\n w = w.trim();\r\n if (w) {\r\n return w[0].toUpperCase() + w.substring(1).toLowerCase();\r\n }\r\n return '';\r\n }).join(' ');\r\n } else {\r\n return Utils.CapitalWords(text);\r\n }\r\n }\r\n\r\n /**\r\n * Check if the given color is bright.\r\n * https://stackoverflow.com/questions/35969656/how-can-i-generate-the-opposite-color-according-to-current-color\r\n * @param {string | null | undefined} color\r\n * @param {boolean} [defaultValue]\r\n * @returns {boolean}\r\n */\r\n static isUseBright(color, defaultValue) {\r\n if (color === null || color === undefined || color === '') {\r\n return defaultValue === undefined ? true : defaultValue;\r\n }\r\n color = color.toString();\r\n if (color.indexOf('#') === 0) {\r\n color = color.slice(1);\r\n }\r\n let r;\r\n let g;\r\n let b;\r\n\r\n const rgb = color.match(/^rgba?[\\s+]?\\([\\s+]?(\\d+)[\\s+]?,[\\s+]?(\\d+)[\\s+]?,[\\s+]?(\\d+)[\\s+]?/i);\r\n if (rgb && rgb.length === 4) {\r\n r = parseInt(rgb[1], 10);\r\n g = parseInt(rgb[2], 10);\r\n b = parseInt(rgb[3], 10);\r\n } else {\r\n // convert 3-digit hex to 6-digits.\r\n if (color.length === 3) {\r\n color = color[0] + color[0] + color[1] + color[1] + color[2] + color[2];\r\n }\r\n if (color.length !== 6) {\r\n return false;\r\n }\r\n\r\n r = parseInt(color.slice(0, 2), 16);\r\n g = parseInt(color.slice(2, 4), 16);\r\n b = parseInt(color.slice(4, 6), 16);\r\n }\r\n\r\n // http://stackoverflow.com/a/3943023/112731\r\n return (r * 0.299 + g * 0.587 + b * 0.114) <= 186;\r\n };\r\n\r\n /**\r\n * Get the time string in the format 00:00.\r\n * @param {string | number} seconds\r\n */\r\n static getTimeString(seconds) {\r\n seconds = parseFloat(seconds);\r\n if (isNaN(seconds)) {\r\n return '--:--';\r\n }\r\n const hours = Math.floor(seconds / 3600);\r\n let minutes = Math.floor((seconds % 3600) / 60);\r\n let secs = seconds % 60;\r\n if (hours) {\r\n if (minutes < 10) minutes = '0' + minutes;\r\n if (secs < 10) secs = '0' + secs;\r\n return hours + ':' + minutes + ':' + secs;\r\n } else {\r\n if (secs < 10) secs = '0' + secs;\r\n return minutes + ':' + secs;\r\n }\r\n }\r\n\r\n /**\r\n * Gets the wind direction with the given angle (degrees).\r\n * @param {number} angle in degrees.\r\n * @returns {string | undefined}\r\n */\r\n static getWindDirection(angle) {\r\n if (angle >= 0 && angle < 11.25) {\r\n return 'N'\r\n } else if (angle >= 11.25 && angle < 33.75) {\r\n return 'NNE'\r\n } else if (angle >= 33.75 && angle < 56.25) {\r\n return 'NE'\r\n } else if (angle >= 56.25 && angle < 78.75) {\r\n return 'ENE'\r\n } else if (angle >= 78.75 && angle < 101.25) {\r\n return 'E'\r\n } else if (angle >= 101.25 && angle < 123.75) {\r\n return 'ESE'\r\n } else if (angle >= 123.75 && angle < 146.25) {\r\n return 'SE'\r\n } else if (angle >= 146.25 && angle < 168.75) {\r\n return 'SSE'\r\n } else if (angle >= 168.75 && angle < 191.25) {\r\n return 'S'\r\n } else if (angle >= 191.25 && angle < 213.75) {\r\n return 'SSW'\r\n } else if (angle >= 213.75 && angle < 236.25) {\r\n return 'SW'\r\n } else if (angle >= 236.25 && angle < 258.75) {\r\n return 'WSW'\r\n } else if (angle >= 258.75 && angle < 281.25) {\r\n return 'W'\r\n } else if (angle >= 281.25 && angle < 303.75) {\r\n return 'WNW'\r\n } else if (angle >= 303.75 && angle < 326.25) {\r\n return 'NW'\r\n } else if (angle >= 326.25 && angle < 348.75) {\r\n return 'NNW'\r\n } else if (angle >= 348.75) {\r\n return 'N'\r\n }\r\n }\r\n\r\n /**\r\n * Pad the given number with a zero if its not 2 digits long.\r\n * @param {string | number} num\r\n */\r\n static padding(num) {\r\n if (typeof num === 'string') {\r\n if (num.length < 2) {\r\n return '0' + num;\r\n } else {\r\n return num;\r\n }\r\n } else if (num < 10) {\r\n return '0' + num;\r\n } else {\r\n return num;\r\n }\r\n }\r\n\r\n /**\r\n * Sets the date format.\r\n * @param {string} format\r\n */\r\n static setDataFormat(format) {\r\n if (format) {\r\n Utils.dateFormat = format.toUpperCase().split(/[.-/]/);\r\n Utils.dateFormat.splice(Utils.dateFormat.indexOf('YYYY'), 1);\r\n }\r\n }\r\n\r\n /**\r\n * Converts the date to a string.\r\n * @param {string | number | Date} now\r\n * @returns {string}\r\n */\r\n static date2string(now) {\r\n if (typeof now === 'string') {\r\n now = now.trim();\r\n if (!now) return '';\r\n // only letters\r\n if (now.match(/^[\\w\\s]+$/)) {\r\n // Day of week\r\n return now;\r\n }\r\n let m = now.match(/(\\d{1,4})[-./](\\d{1,2})[-./](\\d{1,4})/);\r\n if (m) {\r\n let a = [parseInt(m[1], 10), parseInt(m[2], 10), parseInt(m[3], 10)];\r\n let year = a.find(y => y > 31);\r\n a.splice(a.indexOf(year), 1);\r\n let day = a.find(m => m > 12);\r\n if (day) {\r\n a.splice(a.indexOf(day), 1);\r\n now = new Date(year, a[0] - 1, day);\r\n } else {\r\n // MM DD\r\n if (Utils.dateFormat[0][0] === 'M' && Utils.dateFormat[1][0] === 'D') {\r\n now = new Date(year, a[0] - 1, a[1]);\r\n if (Math.abs(now.getTime - Date.now()) > 3600000 * 24 * 10) {\r\n now = new Date(year, a[1] - 1, a[0]);\r\n }\r\n } else\r\n // DD MM\r\n if (Utils.dateFormat[0][0] === 'D' && Utils.dateFormat[1][0] === 'M') {\r\n now = new Date(year, a[1] - 1, a[0]);\r\n if (Math.abs(now.getTime - Date.now()) > 3600000 * 24 * 10) {\r\n now = new Date(year, a[0] - 1, a[1]);\r\n }\r\n } else {\r\n now = new Date(now);\r\n }\r\n }\r\n } else {\r\n now = new Date(now);\r\n }\r\n } else {\r\n now = new Date(now);\r\n }\r\n\r\n let date = I18n.t('ra_dow_' + days[now.getDay()]).replace('ra_dow_', '');\r\n date += '. ' + now.getDate() + ' ' + I18n.t('ra_month_' + months[now.getMonth()]).replace('ra_month_', '');\r\n return date;\r\n }\r\n\r\n /**\r\n * Render a text as a link.\r\n * @param {string} text\r\n * @returns {string | JSX.Element[]}\r\n */\r\n static renderTextWithA(text) {\r\n let m = text.match(/|/);\r\n if (m) {\r\n const result = [];\r\n let key = 1;\r\n do {\r\n const p = text.split(m[0]);\r\n p[0] && result.push({p[0]});\r\n\r\n if (m[0].startsWith(');\r\n } else {\r\n let href = m[0].match(/href=\"([^\"]+)\"/) || m[0].match(/href='([^']+)'/);\r\n let target = m[0].match(/target=\"([^\"]+)\"/) || m[0].match(/target='([^']+)'/);\r\n let rel = m[0].match(/rel=\"([^\"]+)\"/) || m[0].match(/rel='([^']+)'/);\r\n const title = m[0].match(/>([^<]*){title ? title[1] : ''});\r\n }\r\n\r\n text = p[1];\r\n\r\n m = text && text.match(/|/);\r\n if (!m) {\r\n p[1] && result.push({p[1]});\r\n }\r\n } while (m);\r\n\r\n return result;\r\n } else {\r\n return text;\r\n }\r\n }\r\n\r\n /**\r\n * Get the smart name of the given state.\r\n * @param {Record | ioBroker.StateObject} states\r\n * @param {string} id\r\n * @param {string} instanceId\r\n * @param {boolean} [noCommon]\r\n */\r\n static getSmartName(states, id, instanceId, noCommon) {\r\n if (!id) {\r\n if (!noCommon) {\r\n if (!states.common) {\r\n return states.smartName;\r\n } else {\r\n if (states && !states.common) {\r\n return states.smartName;\r\n } else {\r\n return states.common.smartName;\r\n }\r\n }\r\n } else {\r\n if (states && !states.common) {\r\n return states.smartName;\r\n } else {\r\n return (states &&\r\n states.common &&\r\n states.common.custom &&\r\n states.common.custom[instanceId]) ?\r\n states.common.custom[instanceId].smartName : undefined;\r\n }\r\n }\r\n } else\r\n if (!noCommon) {\r\n return states[id].common.smartName;\r\n } else {\r\n return (states[id] &&\r\n states[id].common &&\r\n states[id].common.custom &&\r\n states[id].common.custom[instanceId]) ?\r\n states[id].common.custom[instanceId].smartName || null : null;\r\n }\r\n }\r\n\r\n /**\r\n * Get the smart name from a state.\r\n * @param {ioBroker.StateObject} obj\r\n * @param {string} instanceId\r\n * @param {boolean} [noCommon]\r\n */\r\n static getSmartNameFromObj(obj, instanceId, noCommon) {\r\n if (!noCommon) {\r\n if (!obj.common) {\r\n return obj.smartName;\r\n } else {\r\n if (obj && !obj.common) {\r\n return obj.smartName;\r\n } else {\r\n return obj.common.smartName;\r\n }\r\n }\r\n } else {\r\n if (obj && !obj.common) {\r\n return obj.smartName;\r\n } else {\r\n return (obj &&\r\n obj.common &&\r\n obj.common.custom &&\r\n obj.common.custom[instanceId]) ?\r\n obj.common.custom[instanceId].smartName : undefined;\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Enable smart name for a state.\r\n * @param {ioBroker.StateObject} obj\r\n * @param {string} instanceId\r\n * @param {boolean} [noCommon]\r\n */\r\n static enableSmartName(obj, instanceId, noCommon) {\r\n if (noCommon) {\r\n obj.common.custom = obj.common.custom || {};\r\n obj.common.custom[instanceId] = obj.common.custom[instanceId] || {};\r\n obj.common.custom[instanceId].smartName = {};\r\n } else {\r\n obj.common.smartName = {};\r\n }\r\n }\r\n\r\n /**\r\n * Completely remove smart name from a state.\r\n * @param {ioBroker.StateObject} obj\r\n * @param {string | number} instanceId\r\n * @param {boolean} [noCommon]\r\n */\r\n static removeSmartName(obj, instanceId, noCommon) {\r\n if (noCommon) {\r\n if (obj.common && obj.common.custom && obj.common.custom[instanceId]) {\r\n obj.common.custom[instanceId] = null;\r\n }\r\n } else {\r\n obj.common.smartName = null;\r\n }\r\n }\r\n\r\n /**\r\n * Update the smartname of a state.\r\n * @param {ioBroker.StateObject} obj\r\n * @param {string} newSmartName\r\n * @param {string | undefined} byON\r\n * @param {string | undefined} smartType\r\n * @param {string} instanceId\r\n * @param {boolean} [noCommon]\r\n */\r\n static updateSmartName(obj, newSmartName, byON, smartType, instanceId, noCommon) {\r\n const language = I18n.getLanguage();\r\n\r\n // convert Old format\r\n if (typeof obj.common.smartName === 'string') {\r\n const nnn = obj.common.smartName;\r\n obj.common.smartName = {};\r\n obj.common.smartName[language] = nnn;\r\n }\r\n\r\n // convert old settings\r\n if (obj.native && obj.native.byON) {\r\n delete obj.native.byON;\r\n let _smartName = obj.common.smartName;\r\n\r\n if (!_smartName || typeof _smartName !== 'object') {\r\n _smartName = {en: _smartName};\r\n _smartName[language] = _smartName.en;\r\n }\r\n obj.common.smartName = _smartName;\r\n }\r\n if (smartType !== undefined) {\r\n if (noCommon) {\r\n obj.common.custom = obj.common.custom || {};\r\n obj.common.custom[instanceId] = obj.common.custom[instanceId] || {};\r\n obj.common.custom[instanceId].smartName = obj.common.custom[instanceId].smartName || {};\r\n if (!smartType) {\r\n delete obj.common.custom[instanceId].smartName.smartType;\r\n } else {\r\n obj.common.custom[instanceId].smartName.smartType = smartType;\r\n }\r\n } else {\r\n obj.common.smartName = obj.common.smartName || {};\r\n if (!smartType) {\r\n delete obj.common.smartName.smartType;\r\n } else {\r\n obj.common.smartName.smartType = smartType;\r\n }\r\n\r\n }\r\n }\r\n if (byON !== undefined) {\r\n if (noCommon) {\r\n obj.common.custom = obj.common.custom || {};\r\n obj.common.custom[instanceId] = obj.common.custom[instanceId] || {};\r\n obj.common.custom[instanceId].smartName = obj.common.custom[instanceId].smartName || {};\r\n obj.common.custom[instanceId].smartName.byON = byON;\r\n } else {\r\n obj.common.smartName = obj.common.smartName || {};\r\n obj.common.smartName.byON = byON;\r\n }\r\n }\r\n if (newSmartName !== undefined) {\r\n let smartName;\r\n if (noCommon) {\r\n obj.common.custom = obj.common.custom || {};\r\n obj.common.custom[instanceId] = obj.common.custom[instanceId] || {};\r\n obj.common.custom[instanceId].smartName = obj.common.custom[instanceId].smartName || {};\r\n smartName = obj.common.custom[instanceId].smartName;\r\n } else {\r\n obj.common.smartName = obj.common.smartName || {};\r\n smartName = obj.common.smartName;\r\n }\r\n smartName[language] = newSmartName;\r\n\r\n // If smart name deleted\r\n if (smartName && (!smartName[language] ||\r\n (smartName[language] === obj.common.name &&\r\n (!obj.common.role || obj.common.role.indexOf('button') >= 0)))) {\r\n delete smartName[language];\r\n let empty = true;\r\n // Check if structure has any definitions\r\n for (const key in smartName) {\r\n if (smartName.hasOwnProperty(key)) {\r\n empty = false;\r\n break;\r\n }\r\n }\r\n // If empty => delete smartName completely\r\n if (empty) {\r\n if (noCommon) {\r\n if (obj.common.custom[instanceId].smartName.byON === undefined) {\r\n delete obj.common.custom[instanceId];\r\n } else {\r\n delete obj.common.custom[instanceId].en;\r\n delete obj.common.custom[instanceId].de;\r\n delete obj.common.custom[instanceId].ru;\r\n delete obj.common.custom[instanceId].nl;\r\n delete obj.common.custom[instanceId].pl;\r\n delete obj.common.custom[instanceId].it;\r\n delete obj.common.custom[instanceId].fr;\r\n delete obj.common.custom[instanceId].pt;\r\n delete obj.common.custom[instanceId].es;\r\n delete obj.common.custom[instanceId]['zh-cn'];\r\n }\r\n } else {\r\n if (obj.common.smartName.byON !== undefined) {\r\n delete obj.common.smartName.en;\r\n delete obj.common.smartName.de;\r\n delete obj.common.smartName.ru;\r\n delete obj.common.smartName.nl;\r\n delete obj.common.smartName.pl;\r\n delete obj.common.smartName.it;\r\n delete obj.common.smartName.fr;\r\n delete obj.common.smartName.pt;\r\n delete obj.common.smartName.es;\r\n delete obj.common.smartName['zh-cn'];\r\n } else {\r\n obj.common.smartName = null;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Disable the smart name of a state.\r\n * @param {ioBroker.StateObject} obj\r\n * @param {string} instanceId\r\n * @param {boolean} [noCommon]\r\n */\r\n static disableSmartName(obj, instanceId, noCommon) {\r\n if (noCommon) {\r\n obj.common.custom = obj.common.custom || {};\r\n obj.common.custom[instanceId] = obj.common.custom[instanceId] || {};\r\n obj.common.custom[instanceId].smartName = false;\r\n } else {\r\n obj.common.smartName = false;\r\n }\r\n }\r\n\r\n /**\r\n * Copy text to the clipboard.\r\n * @param {string} text\r\n * @param {Event} [e]\r\n */\r\n static copyToClipboard(text, e) {\r\n const el = window.document.createElement('textarea');\r\n el.value = text;\r\n window.document.body.appendChild(el);\r\n el.select();\r\n window.document.execCommand('copy');\r\n window.document.body.removeChild(el);\r\n console.log(text);\r\n e && e.stopPropagation();\r\n e && e.preventDefault();\r\n }\r\n\r\n /**\r\n * Gets the extension of a file name.\r\n * @param {string | null} [fileName] the file name.\r\n * @returns {string | null} The extension in lower case.\r\n */\r\n static getFileExtension(fileName) {\r\n const pos = (fileName || '').lastIndexOf('.');\r\n if (pos !== -1) {\r\n return fileName.substring(pos + 1).toLowerCase();\r\n } else {\r\n return null;\r\n }\r\n }\r\n\r\n /**\r\n * Format number of bytes as a string with B, KB, MB or GB.\r\n * The base for all calculations is 1024.\r\n * @param {number} bytes The number of bytes.\r\n * @returns {string} The formatted string (e.g. '723.5 KB')\r\n */\r\n static formatBytes(bytes) {\r\n if (Math.abs(bytes) < 1024) {\r\n return bytes + ' B';\r\n }\r\n\r\n const units = ['KB','MB','GB'];\r\n //const units = ['KiB','MiB','GiB','TiB','PiB','EiB','ZiB','YiB'];\r\n let u = -1;\r\n\r\n do {\r\n bytes /= 1024;\r\n ++u;\r\n } while (Math.abs(bytes) >= 1024 && u < units.length - 1);\r\n\r\n return bytes.toFixed(1) + ' ' + units[u];\r\n }\r\n\r\n /**\r\n * Invert the given color according to theme type to get the inverted text color for background\r\n * @param {string} color Color in the format '#rrggbb' or '#rgb' (or without hash)\r\n * @param {string} themeType theme type\r\n * @param {string} invert dark theme has light color in control or light theme has light color in control\r\n * @returns {string}\r\n */\r\n static getInvertedColor(color, themeType, invert) {\r\n if (!color) {\r\n return undefined;\r\n } else {\r\n const invertedColor = Utils.invertColor(color, true);\r\n if (invertedColor === '#FFFFFF' && (themeType === 'dark' || (invert && themeType === 'light'))) {\r\n return '#DDD';\r\n } else\r\n if (invertedColor === '#000000' && (themeType === 'light' || (invert && themeType === 'dark'))) {\r\n return '#222';\r\n } else {\r\n return undefined;\r\n }\r\n }\r\n }\r\n\r\n // Big thanks to: https://stackoverflow.com/questions/35969656/how-can-i-generate-the-opposite-color-according-to-current-color\r\n /**\r\n * Invert the given color\r\n * @param {string} hex Color in the format '#rrggbb' or '#rgb' (or without hash)\r\n * @param {boolean} bw Set to black or white.\r\n * @returns {string}\r\n */\r\n static invertColor(hex, bw) {\r\n if (hex === undefined || hex === null || hex === '' || typeof hex !== 'string') {\r\n return '';\r\n }\r\n if (hex.startsWith('rgba')) {\r\n const m = hex.match(/rgba?\\((\\d+),\\s*(\\d+),\\s*(\\d+),\\s*([.\\d]+)\\)/);\r\n if (m) {\r\n hex = parseInt(m[1], 10).toString(16).padStart(2, '0') +\r\n parseInt(m[2], 10).toString(16).padStart(2, '0') +\r\n parseInt(m[2], 10).toString(16).padStart(2, '0');\r\n }\r\n } else if (hex.startsWith('rgba')) {\r\n const m = hex.match(/rgb?\\((\\d+),\\s*(\\d+),\\s*(\\d+)\\)/);\r\n if (m) {\r\n hex = parseInt(m[1], 10).toString(16).padStart(2, '0') +\r\n parseInt(m[2], 10).toString(16).padStart(2, '0') +\r\n parseInt(m[2], 10).toString(16).padStart(2, '0');\r\n }\r\n } else\r\n if (hex.startsWith('#')) {\r\n hex = hex.slice(1);\r\n }\r\n // convert 3-digit hex to 6-digits.\r\n if (hex.length === 3) {\r\n hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];\r\n }\r\n if (hex.length !== 6) {\r\n console.warn('Cannot invert color: ' + hex);\r\n return hex;\r\n }\r\n let r = parseInt(hex.slice(0, 2), 16);\r\n let g = parseInt(hex.slice(2, 4), 16);\r\n let b = parseInt(hex.slice(4, 6), 16);\r\n\r\n if (bw) {\r\n // http://stackoverflow.com/a/3943023/112731\r\n return (r * 0.299 + g * 0.587 + b * 0.114) > 186\r\n ? '#000000'\r\n : '#FFFFFF';\r\n }\r\n // invert color components\r\n r = (255 - r).toString(16);\r\n g = (255 - g).toString(16);\r\n b = (255 - b).toString(16);\r\n // pad each with zeros and return\r\n return '#' + r.padStart(2, '0') + g.padStart(2, '0') + b.padStart(2, '0');\r\n }\r\n\r\n // https://github.com/lukeed/clsx/blob/master/src/index.js\r\n // License\r\n // MIT © Luke Edwards\r\n /**\r\n * @private\r\n * @param {any} mix\r\n * @returns {string}\r\n */\r\n static _toVal(mix) {\r\n let k, y, str='';\r\n\r\n if (typeof mix === 'string' || typeof mix === 'number') {\r\n str += mix;\r\n } else if (typeof mix === 'object') {\r\n if (Array.isArray(mix)) {\r\n for (k=0; k < mix.length; k++) {\r\n if (mix[k]) {\r\n if ((y = Utils._toVal(mix[k]))) {\r\n str && (str += ' ');\r\n str += y;\r\n }\r\n }\r\n }\r\n } else {\r\n for (k in mix) {\r\n if (mix[k]) {\r\n str && (str += ' ');\r\n str += k;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return str;\r\n }\r\n\r\n // https://github.com/lukeed/clsx/blob/master/src/index.js\r\n // License\r\n // MIT © Luke Edwards\r\n /**\r\n * Convert any object to a string with its values.\r\n * @returns {string}\r\n */\r\n static clsx () {\r\n let i = 0;\r\n let tmp;\r\n let x;\r\n let str = '';\r\n while (i < arguments.length) {\r\n if ((tmp = arguments[i++])) {\r\n if ((x = Utils._toVal(tmp))) {\r\n str && (str += ' ');\r\n str += x\r\n }\r\n }\r\n }\r\n return str;\r\n }\r\n\r\n /**\r\n * Get the current theme name (either from local storage or the browser settings).\r\n * @param {string} [themeName]\r\n * @returns {string}\r\n */\r\n static getThemeName(themeName = '') {\r\n if (window.vendorPrefix && window.vendorPrefix !== '@@vendorPrefix@@') {\r\n return window.vendorPrefix;\r\n }\r\n\r\n return themeName ? themeName : window.localStorage && window.localStorage.getItem('App.themeName') ?\r\n window.localStorage.getItem('App.themeName') : window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'colored';\r\n }\r\n\r\n /**\r\n * Get the type of theme.\r\n * @param {string} [themeName]\r\n * @returns {'dark' | 'light'}\r\n */\r\n static getThemeType(themeName = '') {\r\n if (window.vendorPrefix && window.vendorPrefix !== '@@vendorPrefix@@') {\r\n return 'light';\r\n }\r\n\r\n themeName = themeName || (window.localStorage && window.localStorage.getItem('App.themeName'));\r\n return themeName === 'dark' || themeName === 'blue' ? 'dark' : 'light';\r\n }\r\n\r\n /**\r\n * Set the theme name and theme type.\r\n * @param {string} themeName\r\n */\r\n static setThemeName(themeName) {\r\n if (window.vendorPrefix && window.vendorPrefix !== '@@vendorPrefix@@') {\r\n return; // ignore\r\n }\r\n window.localStorage.setItem('App.themeName', themeName);\r\n window.localStorage.setItem('App.theme', themeName === 'dark' || themeName === 'blue' ? 'dark' : 'light');\r\n }\r\n\r\n /**\r\n * Toggle the theme name between 'dark' and 'colored'.\r\n * @param {string | null} themeName\r\n * @returns {string} the new theme name.\r\n */\r\n static toggleTheme(themeName) {\r\n if (window.vendorPrefix && window.vendorPrefix !== '@@vendorPrefix@@') {\r\n return window.vendorPrefix;\r\n }\r\n themeName = themeName || (window.localStorage && window.localStorage.getItem('App.themeName'));\r\n\r\n // dark => blue => colored => light => dark\r\n const themes = Utils.getThemeNames();\r\n const pos = themes.indexOf(themeName);\r\n let newTheme;\r\n if (pos !== -1) {\r\n newTheme = themes[(pos + 1) % themes.length];\r\n } else {\r\n newTheme = themes[0];\r\n }\r\n Utils.setThemeName(newTheme);\r\n\r\n return newTheme;\r\n }\r\n\r\n /**\r\n * Get the list of themes\r\n * @returns {array} list of possible themes\r\n */\r\n static getThemeNames() {\r\n if (window.vendorPrefix && window.vendorPrefix !== '@@vendorPrefix@@') {\r\n return [window.vendorPrefix];\r\n }\r\n\r\n return ['light', 'dark', 'blue', 'colored'];\r\n }\r\n\r\n /**\r\n * Parse a query string into its parts.\r\n * @param {string} query\r\n * @returns {Record}\r\n */\r\n static parseQuery(query) {\r\n query = (query || '').toString().replace(/^\\?/, '');\r\n /** @type {Record} */\r\n const result = {};\r\n query.split('&').forEach(part => {\r\n part = part.trim();\r\n if (part) {\r\n const parts = part.split('=');\r\n const attr = decodeURIComponent(parts[0]).trim();\r\n if (parts.length > 1) {\r\n result[attr] = decodeURIComponent(parts[1]);\r\n if (result[attr] === 'true') {\r\n result[attr] = true;\r\n } else if (result[attr] === 'false') {\r\n result[attr] = false;\r\n } else {\r\n const f = parseFloat(result[attr]);\r\n if (f.toString() === result[attr]) {\r\n result[attr] = f;\r\n }\r\n }\r\n } else {\r\n result[attr] = true;\r\n }\r\n }\r\n });\r\n return result;\r\n }\r\n\r\n /**\r\n * Returns parent ID.\r\n * @param {string} id\r\n * @returns {string | null} parent ID or null if no parent\r\n */\r\n static getParentId(id) {\r\n const p = (id || '').toString().split('.');\r\n if (p.length > 1) {\r\n p.pop();\r\n return p.join('.');\r\n } else {\r\n return null;\r\n }\r\n }\r\n\r\n static formatDate(dateObj, dateFormat) {\r\n // format could be DD.MM.YYYY, YYYY.MM.DD or MM/DD/YYYY\r\n\r\n if (!dateObj) {\r\n return '';\r\n }\r\n\r\n let text;\r\n let mm = dateObj.getMonth() + 1;\r\n if (mm < 10) {\r\n mm = '0' + mm;\r\n }\r\n\r\n let dd = dateObj.getDate();\r\n if (dd < 10) {\r\n dd = '0' + dd;\r\n }\r\n\r\n if (dateFormat === 'MM/DD/YYYY') {\r\n text = mm + '/' + dd + '/' + dateObj.getFullYear();\r\n } else {\r\n text = dateObj.getFullYear() + '-' + mm + '-' + dd;\r\n }\r\n\r\n // time\r\n let v = dateObj.getHours();\r\n if (v < 10) {\r\n text += ' 0' + v;\r\n } else {\r\n text += ' ' + v;\r\n }\r\n v = dateObj.getMinutes();\r\n if (v < 10) {\r\n text += ':0' + v;\r\n } else {\r\n text += ':' + v;\r\n }\r\n\r\n v = dateObj.getSeconds();\r\n if (v < 10) {\r\n text += ':0' + v;\r\n } else {\r\n text += ':' + v;\r\n }\r\n\r\n v = dateObj.getMilliseconds();\r\n if (v < 10) {\r\n text += '.00' + v;\r\n } else if (v < 100) {\r\n text += '.0' + v;\r\n } else {\r\n text += '.' + v;\r\n }\r\n\r\n return text;\r\n }\r\n\r\n static formatTime(seconds) {\r\n if (seconds) {\r\n seconds = Math.round(seconds);\r\n const d = Math.floor(seconds / (3600 * 24));\r\n const h = Math.floor((seconds % (3600 * 24)) / 3600);\r\n const m = Math.floor((seconds % 3600) / 60);\r\n const s = seconds % 60;\r\n if (d) {\r\n return `${d}.${h.toString().padStart(2, '0')}:${m.toString().padStart(2, '0')}:${s.toString().padStart(2, '0')}`;\r\n } else if (h) {\r\n return `${h}:${m.toString().padStart(2, '0')}:${s.toString().padStart(2, '0')}`;\r\n } else {\r\n return `0:${m.toString().padStart(2, '0')}:${s.toString().padStart(2, '0')}`;\r\n }\r\n } else {\r\n return '0:00:00';\r\n }\r\n }\r\n\r\n static MDtext2link(text) {\r\n const m = text.match(/\\d+\\.\\)\\s/);\r\n if (m) {\r\n text = text.replace(m[0], m[0].replace(/\\s/, ' '));\r\n }\r\n\r\n return text.replace(/[^a-zA-Zа-яА-Я0-9]/g, '').trim().replace(/\\s/g, '').toLowerCase();\r\n }\r\n\r\n static openLink(url, target) {\r\n // replace IPv6 Address with [ipv6]:port\r\n url = url.replace(/\\/\\/([0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*:[0-9a-f]*)(:\\d+)?\\//i, '//[$1]$2/');\r\n\r\n if (target === 'this') {\r\n window.location = url;\r\n } else {\r\n window.open(url, target || '_blank');\r\n }\r\n }\r\n\r\n static MDgetTitle(text) {\r\n let {body, header} = Utils.extractHeader(text);\r\n if (!header.title) {\r\n // remove {docsify-bla}\r\n body = body.replace(/{[^}]*}/g, '');\r\n body = body.trim();\r\n const lines = body.replace(/\\r/g, '').split('\\n');\r\n for (let i = 0; i < lines.length; i++) {\r\n if (lines[i].startsWith('# ')) {\r\n return lines[i].substring(2).trim();\r\n }\r\n }\r\n return '';\r\n } else {\r\n return header.title;\r\n }\r\n }\r\n\r\n static MDextractHeader(text) {\r\n const attrs = {};\r\n if (text.substring(0, 3) === '---') {\r\n const pos = text.substring(3).indexOf('\\n---');\r\n if (pos !== -1) {\r\n const _header = text.substring(3, pos + 3);\r\n const lines = _header.replace(/\\r/g, '').split('\\n');\r\n lines.forEach(line => {\r\n if (!line.trim()) {\r\n return;\r\n }\r\n const pos = line.indexOf(':');\r\n if (pos !== -1) {\r\n const attr = line.substring(0, pos).trim();\r\n attrs[attr] = line.substring(pos + 1).trim();\r\n attrs[attr] = attrs[attr].replace(/^['\"]|['\"]$/g, '');\r\n if (attrs[attr] === 'true') {\r\n attrs[attr] = true;\r\n } else if (attrs[attr] === 'false') {\r\n attrs[attr] = false;\r\n } else if (parseFloat(attrs[attr]).toString() === attrs[attr]) {\r\n attrs[attr] = parseFloat(attrs[attr]);\r\n }\r\n } else {\r\n attrs[line.trim()] = true;\r\n }\r\n });\r\n text = text.substring(pos + 7);\r\n }\r\n }\r\n return {header: attrs, body: text};\r\n }\r\n\r\n static MDremoveDocsify(text) {\r\n const m = text.match(/{docsify-[^}]*}/g);\r\n if (m) {\r\n m.forEach(doc => text = text.replace(doc, ''));\r\n }\r\n return text;\r\n }\r\n\r\n /**\r\n * Generate the json file on the file for download.\r\n * @param {string} filename file name\r\n * @returns {object} json structure (not stringified)\r\n */\r\n static generateFile(filename, json) {\r\n let el = document.createElement('a');\r\n el.setAttribute('href', 'data:application/json;charset=utf-8,' + encodeURIComponent(JSON.stringify(json, null, 2)));\r\n el.setAttribute('download', filename);\r\n\r\n el.style.display = 'none';\r\n document.body.appendChild(el);\r\n\r\n el.click();\r\n\r\n document.body.removeChild(el);\r\n }\r\n\r\n /**\r\n * Convert quality code into text\r\n * @param {number} quality code\r\n * @returns {array} lines that decode qulity\r\n */\r\n static quality2text(quality) {\r\n const custom = quality & 0xFFFF0000;\r\n const text = QUALITY_BITS[quality];\r\n let result;\r\n if (text) {\r\n result = [text];\r\n } else if (quality & 0x01) {\r\n result = [QUALITY_BITS[0x01], '0x' + (quality & (0xFFFF & ~1)).toString(16)];\r\n } else if (quality & 0x02) {\r\n result = [QUALITY_BITS[0x02], '0x' + (quality & (0xFFFF & ~2)).toString(16)];\r\n } else {\r\n result = ['0x' + quality.toString(16)];\r\n }\r\n if (custom) {\r\n result.push('0x' + (custom >> 16).toString(16).toUpperCase());\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * Deep copy object\r\n * @param {object} object\r\n * @returns {object}\r\n */\r\n static clone(object) {\r\n return JSON.parse(JSON.stringify(object));\r\n }\r\n\r\n /**\r\n * Get states of object\r\n * @param {object} obj\r\n * @returns {object} states as an object in form {\"value1\": \"label1\", \"value2\": \"label2\"} or null\r\n */\r\n static getStates(obj) {\r\n let states = obj?.common?.states;\r\n if (states) {\r\n if (typeof states === 'string' && states[0] === '{') {\r\n try {\r\n states = JSON.parse(states);\r\n } catch (ex) {\r\n console.error(`Cannot parse states: ${states}`);\r\n states = null;\r\n }\r\n } else\r\n // if old format val1:text1;val2:text2\r\n if (typeof states === 'string') {\r\n const parts = states.split(';');\r\n states = {};\r\n for (let p = 0; p < parts.length; p++) {\r\n const s = parts[p].split(':');\r\n states[s[0]] = s[1];\r\n }\r\n } else if (Array.isArray(states)) {\r\n const result = {};\r\n states.forEach((value, key) => result[key] = value);\r\n return result;\r\n }\r\n }\r\n return states;\r\n }\r\n\r\n /**\r\n * Get svg file as text\r\n * @param {string} url URL of SVG file\r\n * @returns {object} Promise with \"data:image...\"\r\n */\r\n static getSvg(url) {\r\n return fetch(url)\r\n .then(response => response.blob())\r\n .then(blob => {\r\n return new Promise(resolve => {\r\n const reader = new FileReader();\r\n reader.onload = function() { // do not optimize this function. \"this\" is important.\r\n resolve(this.result);\r\n };\r\n reader.readAsDataURL(blob);\r\n });\r\n });\r\n }\r\n}\r\n\r\nexport default Utils;\r\n", "function _getPrototypeOf(t) {\n return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {\n return t.__proto__ || Object.getPrototypeOf(t);\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _getPrototypeOf(t);\n}\nmodule.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var getPrototypeOf = require(\"./getPrototypeOf.js\");\nfunction _superPropBase(t, o) {\n for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t)););\n return t;\n}\nmodule.exports = _superPropBase, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var superPropBase = require(\"./superPropBase.js\");\nfunction _get() {\n return module.exports = _get = \"undefined\" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {\n var p = superPropBase(e, t);\n if (p) {\n var n = Object.getOwnPropertyDescriptor(p, t);\n return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;\n }\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _get.apply(null, arguments);\n}\nmodule.exports = _get, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var setPrototypeOf = require(\"./setPrototypeOf.js\");\nfunction _inherits(t, e) {\n if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\");\n t.prototype = Object.create(e && e.prototype, {\n constructor: {\n value: t,\n writable: !0,\n configurable: !0\n }\n }), Object.defineProperty(t, \"prototype\", {\n writable: !1\n }), e && setPrototypeOf(t, e);\n}\nmodule.exports = _inherits, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var _typeof = require(\"./typeof.js\")[\"default\"];\nvar assertThisInitialized = require(\"./assertThisInitialized.js\");\nfunction _possibleConstructorReturn(t, e) {\n if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e;\n if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\");\n return assertThisInitialized(t);\n}\nmodule.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "/**\r\n * Copyright 2020-2022, bluefox \r\n *\r\n * MIT License\r\n *\r\n **/\r\nimport PropTypes from 'prop-types';\r\n\r\n/** Possible progress states. */\r\nexport const PROGRESS = {\r\n /** The socket is connecting. */\r\n CONNECTING: 0,\r\n /** The socket is successfully connected. */\r\n CONNECTED: 1,\r\n /** All objects are loaded. */\r\n OBJECTS_LOADED: 2,\r\n /** The socket is ready for use. */\r\n READY: 3\r\n};\r\n\r\nconst PERMISSION_ERROR = 'permissionError';\r\nconst NOT_CONNECTED = 'notConnectedError';\r\nconst TIMEOUT_FOR_ADMIN4 = 1300;\r\n\r\nexport const ERRORS = {\r\n PERMISSION_ERROR,\r\n NOT_CONNECTED\r\n};\r\n\r\nfunction fixAdminUI(obj) {\r\n if (obj && obj.common && !obj.common.adminUI) {\r\n if (obj.common.noConfig) {\r\n obj.common.adminUI = obj.common.adminUI || {};\r\n obj.common.adminUI.config = 'none';\r\n } else if (obj.common.jsonConfig) {\r\n obj.common.adminUI = obj.common.adminUI || {};\r\n obj.common.adminUI.config = 'json';\r\n } else if (obj.common.materialize) {\r\n obj.common.adminUI = obj.common.adminUI || {};\r\n obj.common.adminUI.config = 'materialize';\r\n } else {\r\n obj.common.adminUI = obj.common.adminUI || {};\r\n obj.common.adminUI.config = 'html';\r\n }\r\n\r\n if (obj.common.jsonCustom) {\r\n obj.common.adminUI = obj.common.adminUI || {};\r\n obj.common.adminUI.custom = 'json';\r\n } else if (obj.common.supportCustoms) {\r\n obj.common.adminUI = obj.common.adminUI || {};\r\n obj.common.adminUI.custom = 'json';\r\n }\r\n\r\n if (obj.common.materializeTab && obj.common.adminTab) {\r\n obj.common.adminUI = obj.common.adminUI || {};\r\n obj.common.adminUI.tab = 'materialize';\r\n } else if (obj.common.adminTab) {\r\n obj.common.adminUI = obj.common.adminUI || {};\r\n obj.common.adminUI.tab = 'html';\r\n }\r\n\r\n obj.common.adminUI && console.debug(`Please add to \"${obj._id.replace(/\\.\\d+$/, '')}\" common.adminUI=${JSON.stringify(obj.common.adminUI)}`);\r\n }\r\n return obj;\r\n}\r\n\r\nclass Connection {\r\n /**\r\n * @param {import('./types').ConnectionProps} props\r\n */\r\n constructor(props) {\r\n props = props || { protocol: window.location.protocol, host: window.location.hostname };\r\n this.props = props;\r\n\r\n this.autoSubscribes = this.props.autoSubscribes || [];\r\n this.autoSubscribeLog = this.props.autoSubscribeLog;\r\n\r\n this.props.protocol = this.props.protocol || window.location.protocol;\r\n this.props.host = this.props.host || window.location.hostname;\r\n this.props.port = this.props.port || (window.location.port === '3000' ? (Connection.isWeb() ? 8082 : 8081) : window.location.port);\r\n this.props.ioTimeout = Math.max(this.props.ioTimeout || 20000, 20000);\r\n this.props.cmdTimeout = Math.max(this.props.cmdTimeout || 5000, 5000);\r\n\r\n // breaking change. Do not load all objects by default is true\r\n this.doNotLoadAllObjects = this.props.doNotLoadAllObjects === undefined ? true : this.props.doNotLoadAllObjects;\r\n this.doNotLoadACL = this.props.doNotLoadACL === undefined ? true : this.props.doNotLoadACL;\r\n\r\n /** @type {Record} */\r\n this.states = {};\r\n this.objects = null;\r\n this.acl = null;\r\n this.firstConnect = true;\r\n this.waitForRestart = false;\r\n /** @type {ioBroker.Languages} */\r\n this.systemLang = 'en';\r\n this.connected = false;\r\n this._waitForFirstConnection = new Promise(resolve => { this._waitForFirstConnectionResolve = resolve });\r\n\r\n /** @type {Record} */\r\n this.statesSubscribes = {}; // subscribe for states\r\n\r\n /** @type {Record} */\r\n this.objectsSubscribes = {}; // subscribe for objects\r\n this.onProgress = this.props.onProgress || function () { };\r\n this.onError = this.props.onError || function (err) { console.error(err); };\r\n this.loaded = false;\r\n this.loadTimer = null;\r\n this.loadCounter = 0;\r\n this.admin5only = this.props.admin5only || false;\r\n\r\n /** @type {((connected: boolean) => void)[]} */\r\n this.onConnectionHandlers = [];\r\n /** @type {((message: string) => void)[]} */\r\n this.onLogHandlers = [];\r\n\r\n /** @type {Record>} */\r\n this._promises = {};\r\n\r\n this.log.error = text => this.log(text, 'error');\r\n this.log.warn = text => this.log(text, 'warn');\r\n this.log.info = text => this.log(text, 'info');\r\n this.log.debug = text => this.log(text, 'debug');\r\n this.log.silly = text => this.log(text, 'silly');\r\n\r\n this.startSocket();\r\n }\r\n\r\n /**\r\n * Checks if this connection is running in a web adapter and not in an admin.\r\n * @returns {boolean} True if running in a web adapter or in a socketio adapter.\r\n */\r\n static isWeb() {\r\n return window.adapterName === 'material' ||\r\n window.adapterName === 'vis' ||\r\n window.adapterName === 'echarts-show' ||\r\n window.socketUrl !== undefined;\r\n }\r\n\r\n /**\r\n * Starts the socket.io connection.\r\n * @returns {void}\r\n */\r\n startSocket() {\r\n // if socket io is not yet loaded\r\n if (typeof window.io === 'undefined') {\r\n // if in index.html the onLoad function not defined\r\n if (typeof window.registerSocketOnLoad !== 'function') {\r\n // poll if loaded\r\n this.scriptLoadCounter = this.scriptLoadCounter || 0;\r\n this.scriptLoadCounter++;\r\n\r\n if (this.scriptLoadCounter < 30) {\r\n // wait till the script loaded\r\n setTimeout(() => this.startSocket(), 100);\r\n return;\r\n } else {\r\n window.alert('Cannot load socket.io.js!');\r\n }\r\n } else {\r\n // register on load\r\n window.registerSocketOnLoad(() => this.startSocket());\r\n }\r\n return;\r\n } else {\r\n // socket was initialized, do not repeat\r\n if (this._socket) {\r\n return;\r\n }\r\n }\r\n\r\n let host = this.props.host;\r\n let port = this.props.port;\r\n let protocol = this.props.protocol.replace(':', '');\r\n let path = window.location.pathname;\r\n\r\n if (\r\n window.location.hostname === 'iobroker.net' ||\r\n window.location.hostname === 'iobroker.pro'\r\n ) {\r\n path = '';\r\n } else {\r\n // if web adapter, socket io could be on other port or even host\r\n if (window.socketUrl) {\r\n let parts = window.socketUrl.split(':');\r\n host = parts[0] || host;\r\n port = parts[1] || port;\r\n if (host.includes('://')) {\r\n parts = host.split('://');\r\n protocol = parts[0];\r\n host = parts[1];\r\n }\r\n }\r\n // get current path\r\n const pos = path.lastIndexOf('/');\r\n if (pos !== -1) {\r\n path = path.substring(0, pos + 1);\r\n }\r\n\r\n if (Connection.isWeb()) {\r\n // remove one level, like echarts, vis, .... We have here: '/echarts/'\r\n const parts = path.split('/');\r\n if (parts.length > 2) {\r\n parts.pop();\r\n parts.pop();\r\n path = parts.join('/');\r\n if (!path.endsWith('/')) {\r\n path += '/';\r\n }\r\n }\r\n }\r\n }\r\n\r\n const url = port ? `${protocol}://${host}:${port}${path}` : `${protocol}://${host}${path}`;\r\n\r\n this._socket = window.io.connect(\r\n url,\r\n {\r\n path: path.endsWith('/') ? path + 'socket.io' : path + '/socket.io',\r\n query: 'ws=true',\r\n name: this.props.name,\r\n timeout: this.props.ioTimeout\r\n }\r\n );\r\n\r\n this._socket.on('connect', noTimeout => {\r\n // If the user is not admin it takes some time to install the handlers, because all rights must be checked\r\n if (noTimeout !== true) {\r\n setTimeout(() =>\r\n this.getVersion()\r\n .then(info => {\r\n const [major, minor, patch] = info.version.split('.');\r\n const v = parseInt(major, 10) * 10000 + parseInt(minor, 10) * 100 + parseInt(patch, 10);\r\n if (v < 40102) {\r\n this._authTimer = null;\r\n // possible this is old version of admin\r\n this.onPreConnect(false, false);\r\n } else {\r\n this._socket.emit('authenticate', (isOk, isSecure) => this.onPreConnect(isOk, isSecure));\r\n }\r\n }), 500);\r\n } else {\r\n // iobroker websocket waits, till all handlers are installed\r\n this._socket.emit('authenticate', (isOk, isSecure) => this.onPreConnect(isOk, isSecure));\r\n }\r\n });\r\n\r\n this._socket.on('reconnect', () => {\r\n this.onProgress(PROGRESS.READY);\r\n this.connected = true;\r\n\r\n if (this.waitForRestart) {\r\n window.location.reload(false);\r\n } else {\r\n this._subscribe(true);\r\n this.onConnectionHandlers.forEach(cb => cb(true));\r\n }\r\n });\r\n\r\n this._socket.on('disconnect', () => {\r\n this.connected = false;\r\n this.subscribed = false;\r\n this.onProgress(PROGRESS.CONNECTING);\r\n this.onConnectionHandlers.forEach(cb => cb(false));\r\n });\r\n\r\n this._socket.on('reauthenticate', () =>\r\n this.authenticate());\r\n\r\n this._socket.on('log', message => {\r\n this.props.onLog && this.props.onLog(message);\r\n this.onLogHandlers.forEach(cb => cb(message));\r\n });\r\n\r\n this._socket.on('error', err => {\r\n let _err = err || '';\r\n if (typeof _err.toString !== 'function') {\r\n _err = JSON.stringify(_err);\r\n console.error(`Received strange error: ${_err}`);\r\n }\r\n _err = _err.toString();\r\n if (_err.includes('User not authorized')) {\r\n this.authenticate();\r\n } else {\r\n window.alert(`Socket Error: ${err}`);\r\n }\r\n });\r\n\r\n this._socket.on('connect_error', err =>\r\n console.error(`Connect error: ${err}`));\r\n\r\n this._socket.on('permissionError', err =>\r\n this.onError({ message: 'no permission', operation: err.operation, type: err.type, id: (err.id || '') }));\r\n\r\n this._socket.on('objectChange', (id, obj) =>\r\n setTimeout(() => this.objectChange(id, obj), 0));\r\n\r\n this._socket.on('stateChange', (id, state) =>\r\n setTimeout(() => this.stateChange(id, state), 0));\r\n\r\n this._socket.on('cmdStdout', (id, text) =>\r\n this.onCmdStdoutHandler && this.onCmdStdoutHandler(id, text));\r\n\r\n this._socket.on('cmdStderr', (id, text) =>\r\n this.onCmdStderrHandler && this.onCmdStderrHandler(id, text));\r\n\r\n this._socket.on('cmdExit', (id, exitCode) =>\r\n this.onCmdExitHandler && this.onCmdExitHandler(id, exitCode));\r\n }\r\n\r\n /**\r\n * Called internally.\r\n * @private\r\n * @param {boolean} isOk\r\n * @param {boolean} isSecure\r\n */\r\n onPreConnect(isOk, isSecure) {\r\n if (this._authTimer) {\r\n clearTimeout(this._authTimer);\r\n this._authTimer = null;\r\n }\r\n\r\n this.connected = true;\r\n this.isSecure = isSecure;\r\n\r\n if (this.waitForRestart) {\r\n window.location.reload(false);\r\n } else {\r\n if (this.firstConnect) {\r\n // retry strategy\r\n this.loadTimer = setTimeout(() => {\r\n this.loadTimer = null;\r\n this.loadCounter++;\r\n if (this.loadCounter < 10) {\r\n this.onConnect();\r\n }\r\n }, 1000);\r\n\r\n if (!this.loaded) {\r\n this.onConnect();\r\n }\r\n } else {\r\n this.onProgress(PROGRESS.READY);\r\n }\r\n\r\n this._subscribe(true);\r\n this.onConnectionHandlers.forEach(cb => cb(true));\r\n }\r\n\r\n if (this._waitForFirstConnectionResolve) {\r\n this._waitForFirstConnectionResolve();\r\n this._waitForFirstConnectionResolve = null;\r\n }\r\n }\r\n\r\n /**\r\n * Checks if the socket is connected.\r\n * @returns {boolean} true if connected.\r\n */\r\n isConnected() {\r\n return this.connected;\r\n }\r\n\r\n /**\r\n * Checks if the socket is connected.\r\n * @returns {Promise} Promise resolves if once connected.\r\n */\r\n waitForFirstConnection() {\r\n return this._waitForFirstConnection;\r\n }\r\n\r\n /**\r\n * Called internally.\r\n * @private\r\n */\r\n _getUserPermissions(cb) {\r\n if (this.doNotLoadACL) {\r\n return cb && cb();\r\n } else {\r\n this._socket.emit('getUserPermissions', cb);\r\n }\r\n }\r\n\r\n /**\r\n * Called internally.\r\n * @private\r\n */\r\n onConnect() {\r\n this._getUserPermissions((err, acl) => {\r\n if (err) {\r\n return this.onError('Cannot read user permissions: ' + err);\r\n } else\r\n if (!this.doNotLoadACL) {\r\n if (this.loaded) {\r\n return;\r\n }\r\n this.loaded = true;\r\n clearTimeout(this.loadTimer);\r\n this.loadTimer = null;\r\n\r\n this.onProgress(PROGRESS.CONNECTED);\r\n this.firstConnect = false;\r\n\r\n this.acl = acl;\r\n }\r\n\r\n // Read system configuration\r\n return (this.admin5only && !window.vendorPrefix ? this.getCompactSystemConfig() : this.getSystemConfig())\r\n .then(data => {\r\n if (this.doNotLoadACL) {\r\n if (this.loaded) {\r\n return undefined;\r\n }\r\n this.loaded = true;\r\n clearTimeout(this.loadTimer);\r\n this.loadTimer = null;\r\n\r\n this.onProgress(PROGRESS.CONNECTED);\r\n this.firstConnect = false;\r\n }\r\n\r\n this.systemConfig = data;\r\n if (this.systemConfig && this.systemConfig.common) {\r\n this.systemLang = this.systemConfig.common.language;\r\n } else {\r\n this.systemLang = window.navigator.userLanguage || window.navigator.language;\r\n\r\n if (this.systemLang !== 'en' && this.systemLang !== 'de' && this.systemLang !== 'ru') {\r\n this.systemConfig.common.language = 'en';\r\n this.systemLang = 'en';\r\n }\r\n }\r\n\r\n this.props.onLanguage && this.props.onLanguage(this.systemLang);\r\n\r\n if (!this.doNotLoadAllObjects) {\r\n return this.getObjects()\r\n .then(() => {\r\n this.onProgress(PROGRESS.READY);\r\n this.props.onReady && this.props.onReady(this.objects);\r\n });\r\n } else {\r\n this.objects = this.admin5only ? {} : { 'system.config': data };\r\n this.onProgress(PROGRESS.READY);\r\n this.props.onReady && this.props.onReady(this.objects);\r\n }\r\n return undefined;\r\n })\r\n .catch(e => this.onError('Cannot read system config: ' + e));\r\n });\r\n }\r\n\r\n /**\r\n * Called internally.\r\n * @private\r\n */\r\n authenticate() {\r\n if (window.location.search.includes('&href=')) {\r\n window.location = `${window.location.protocol}//${window.location.host}${window.location.pathname}${window.location.search}${window.location.hash}`;\r\n } else {\r\n window.location = `${window.location.protocol}//${window.location.host}${window.location.pathname}?login&href=${window.location.search}${window.location.hash}`;\r\n }\r\n }\r\n\r\n /**\r\n * Subscribe to changes of the given state.\r\n * @param {string} id The ioBroker state ID.\r\n * @param {ioBroker.StateChangeHandler} cb The callback.\r\n */\r\n /**\r\n * Subscribe to changes of the given state.\r\n * @param {string} id The ioBroker state ID.\r\n * @param {boolean} binary Set to true if the given state is binary and requires Base64 decoding.\r\n * @param {ioBroker.StateChangeHandler} cb The callback.\r\n */\r\n subscribeState(id, binary, cb) {\r\n if (typeof binary === 'function') {\r\n cb = binary;\r\n binary = false;\r\n }\r\n\r\n if (!this.statesSubscribes[id]) {\r\n let reg = id\r\n .replace(/\\./g, '\\\\.')\r\n .replace(/\\*/g, '.*')\r\n .replace(/\\(/g, '\\\\(')\r\n .replace(/\\)/g, '\\\\)')\r\n .replace(/\\+/g, '\\\\+')\r\n .replace(/\\[/g, '\\\\[');\r\n\r\n if (reg.indexOf('*') === -1) {\r\n reg += '$';\r\n }\r\n this.statesSubscribes[id] = { reg: new RegExp(reg), cbs: [] };\r\n this.statesSubscribes[id].cbs.push(cb);\r\n if (this.connected) {\r\n this._socket.emit('subscribe', id);\r\n }\r\n } else {\r\n !this.statesSubscribes[id].cbs.includes(cb) && this.statesSubscribes[id].cbs.push(cb);\r\n }\r\n if (typeof cb === 'function' && this.connected) {\r\n if (binary) {\r\n this.getBinaryState(id)\r\n .then(base64 => cb(id, base64))\r\n .catch(e => console.error(`Cannot getForeignStates \"${id}\": ${JSON.stringify(e)}`));\r\n } else {\r\n if (Connection.isWeb()) {\r\n this._socket.emit('getStates', id, (err, states) => {\r\n err && console.error(`Cannot getForeignStates \"${id}\": ${JSON.stringify(err)}`);\r\n states && Object.keys(states).forEach(id => cb(id, states[id]));\r\n });\r\n } else {\r\n this._socket.emit('getForeignStates', id, (err, states) => {\r\n err && console.error(`Cannot getForeignStates \"${id}\": ${JSON.stringify(err)}`);\r\n states && Object.keys(states).forEach(id => cb(id, states[id]));\r\n });\r\n }\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Unsubscribes all callbacks from changes of the given state.\r\n * @param {string} id The ioBroker state ID.\r\n */\r\n /**\r\n * Unsubscribes the given callback from changes of the given state.\r\n * @param {string} id The ioBroker state ID.\r\n * @param {ioBroker.StateChangeHandler} cb The callback.\r\n */\r\n unsubscribeState(id, cb) {\r\n if (this.statesSubscribes[id]) {\r\n if (cb) {\r\n const pos = this.statesSubscribes[id].cbs.indexOf(cb);\r\n pos !== -1 && this.statesSubscribes[id].cbs.splice(pos, 1);\r\n } else {\r\n this.statesSubscribes[id].cbs = [];\r\n }\r\n\r\n if (!this.statesSubscribes[id].cbs || !this.statesSubscribes[id].cbs.length) {\r\n delete this.statesSubscribes[id];\r\n this.connected && this._socket.emit('unsubscribe', id);\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Subscribe to changes of the given object.\r\n * @param {string} id The ioBroker object ID.\r\n * @param {import('./types').ObjectChangeHandler} cb The callback.\r\n * @returns {Promise}\r\n */\r\n subscribeObject(id, cb) {\r\n if (!this.objectsSubscribes[id]) {\r\n let reg = id.replace(/\\./g, '\\\\.').replace(/\\*/g, '.*');\r\n if (!reg.includes('*')) {\r\n reg += '$';\r\n }\r\n this.objectsSubscribes[id] = { reg: new RegExp(reg), cbs: [] };\r\n this.objectsSubscribes[id].cbs.push(cb);\r\n this.connected && this._socket.emit('subscribeObjects', id);\r\n } else {\r\n !this.objectsSubscribes[id].cbs.includes(cb) && this.objectsSubscribes[id].cbs.push(cb);\r\n }\r\n return Promise.resolve();\r\n }\r\n\r\n /**\r\n * Unsubscribes all callbacks from changes of the given object.\r\n * @param {string} id The ioBroker object ID.\r\n * @returns {Promise}\r\n */\r\n /**\r\n * Unsubscribes the given callback from changes of the given object.\r\n * @param {string} id The ioBroker object ID.\r\n * @param {import('./types').ObjectChangeHandler} cb The callback.\r\n * @returns {Promise}\r\n */\r\n unsubscribeObject(id, cb) {\r\n if (this.objectsSubscribes[id]) {\r\n if (cb) {\r\n const pos = this.objectsSubscribes[id].cbs.indexOf(cb);\r\n pos !== -1 && this.objectsSubscribes[id].cbs.splice(pos, 1);\r\n } else {\r\n this.objectsSubscribes[id].cbs = [];\r\n }\r\n\r\n if (this.connected && (!this.objectsSubscribes[id].cbs || !this.objectsSubscribes[id].cbs.length)) {\r\n delete this.objectsSubscribes[id];\r\n this.connected && this._socket.emit('unsubscribeObjects', id);\r\n }\r\n }\r\n return Promise.resolve();\r\n }\r\n\r\n /**\r\n * Called internally.\r\n * @private\r\n * @param {string} id\r\n * @param {ioBroker.Object | null | undefined} obj\r\n */\r\n objectChange(id, obj) {\r\n // update main.objects cache\r\n if (!this.objects) {\r\n return;\r\n }\r\n\r\n /** @type {import(\"./types\").OldObject} */\r\n let oldObj;\r\n\r\n let changed = false;\r\n if (obj) {\r\n if (obj._rev && this.objects[id]) {\r\n this.objects[id]._rev = obj._rev;\r\n }\r\n\r\n if (this.objects[id]) {\r\n oldObj = { _id: id, type: this.objects[id].type };\r\n }\r\n\r\n if (!this.objects[id] || JSON.stringify(this.objects[id]) !== JSON.stringify(obj)) {\r\n this.objects[id] = obj;\r\n changed = true;\r\n }\r\n } else if (this.objects[id]) {\r\n oldObj = { _id: id, type: this.objects[id].type };\r\n delete this.objects[id];\r\n changed = true;\r\n }\r\n\r\n Object.keys(this.objectsSubscribes).forEach(_id => {\r\n if (_id === id || this.objectsSubscribes[_id].reg.test(id)) {\r\n //@ts-ignore\r\n this.objectsSubscribes[_id].cbs.forEach(cb => cb(id, obj, oldObj));\r\n }\r\n });\r\n\r\n if (changed && this.props.onObjectChange) {\r\n this.props.onObjectChange(id, obj);\r\n }\r\n }\r\n\r\n /**\r\n * Called internally.\r\n * @private\r\n * @param {string} id\r\n * @param {ioBroker.State | null | undefined} state\r\n */\r\n stateChange(id, state) {\r\n for (const task in this.statesSubscribes) {\r\n if (this.statesSubscribes.hasOwnProperty(task) && this.statesSubscribes[task].reg.test(id)) {\r\n this.statesSubscribes[task].cbs.forEach(cb => cb(id, state));\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Gets all states.\r\n * @param {boolean} disableProgressUpdate don't call onProgress() when done\r\n * @returns {Promise>}\r\n */\r\n getStates(disableProgressUpdate) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('getStates', (err, res) => {\r\n this.states = res;\r\n //@ts-ignore\r\n !disableProgressUpdate && this.onProgress(PROGRESS.STATES_LOADED);\r\n return err ? reject(err) : resolve(this.states);\r\n }));\r\n }\r\n\r\n /**\r\n * Gets the given state.\r\n * @param {string} id The state ID.\r\n * @returns {Promise}\r\n */\r\n getState(id) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('getState', id, (err, state) => err ? reject(err) : resolve(state)));\r\n }\r\n\r\n /**\r\n * Gets the given binary state.\r\n * @param {string} id The state ID.\r\n * @returns {Promise}\r\n */\r\n getBinaryState(id) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n // the data will come in base64\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('getBinaryState', id, (err, state) => err ? reject(err) : resolve(state)));\r\n }\r\n\r\n /**\r\n * Sets the given binary state.\r\n * @param {string} id The state ID.\r\n * @param {string} base64 The Base64 encoded binary data.\r\n * @returns {Promise}\r\n */\r\n setBinaryState(id, base64) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n // the data will come in base64\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('setBinaryState', id, base64, err => err ? reject(err) : resolve()));\r\n }\r\n\r\n /**\r\n * Sets the given state value.\r\n * @param {string} id The state ID.\r\n * @param {string | number | boolean | ioBroker.State | ioBroker.SettableState | null} val The state value.\r\n * @returns {Promise}\r\n */\r\n setState(id, val) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('setState', id, val, err =>\r\n err ? reject(err) : resolve()));\r\n }\r\n\r\n /**\r\n * Gets all objects.\r\n * @param {(objects?: Record) => void} update Callback that is executed when all objects are retrieved.\r\n * @returns {void}\r\n */\r\n /**\r\n * Gets all objects.\r\n * @param {boolean} update Set to true to retrieve all objects from the server (instead of using the local cache).\r\n * @param {boolean} disableProgressUpdate don't call onProgress() when done\r\n * @returns {Promise> | undefined}\r\n */\r\n getObjects(update, disableProgressUpdate) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n } else {\r\n return new Promise((resolve, reject) => {\r\n if (!update && this.objects) {\r\n return resolve(this.objects);\r\n }\r\n\r\n this._socket.emit(Connection.isWeb() ? 'getObjects' : 'getAllObjects', (err, res) => {\r\n this.objects = res;\r\n disableProgressUpdate && this.onProgress(PROGRESS.OBJECTS_LOADED);\r\n err ? reject(err) : resolve(this.objects);\r\n });\r\n });\r\n }\r\n }\r\n\r\n /**\r\n * Called internally.\r\n * @private\r\n * @param {boolean} isEnable\r\n */\r\n _subscribe(isEnable) {\r\n if (isEnable && !this.subscribed) {\r\n this.subscribed = true;\r\n this.autoSubscribes.forEach(id => this._socket.emit('subscribeObjects', id));\r\n // re subscribe objects\r\n Object.keys(this.objectsSubscribes).forEach(id => this._socket.emit('subscribeObjects', id));\r\n // re-subscribe logs\r\n this.autoSubscribeLog && this._socket.emit('requireLog', true);\r\n // re subscribe states\r\n Object.keys(this.statesSubscribes).forEach(id => this._socket.emit('subscribe', id));\r\n } else if (!isEnable && this.subscribed) {\r\n this.subscribed = false;\r\n // un-subscribe objects\r\n this.autoSubscribes.forEach(id => this._socket.emit('unsubscribeObjects', id));\r\n Object.keys(this.objectsSubscribes).forEach(id => this._socket.emit('unsubscribeObjects', id));\r\n // un-subscribe logs\r\n this.autoSubscribeLog && this._socket.emit('requireLog', false);\r\n\r\n // un-subscribe states\r\n Object.keys(this.statesSubscribes).forEach(id => this._socket.emit('unsubscribe', id));\r\n }\r\n }\r\n\r\n /**\r\n * Requests log updates.\r\n * @param {boolean} isEnabled Set to true to get logs.\r\n * @returns {Promise}\r\n */\r\n requireLog(isEnabled) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('requireLog', isEnabled, err =>\r\n err ? reject(err) : resolve()));\r\n }\r\n\r\n /**\r\n * Deletes the given object.\r\n * @param {string} id The object ID.\r\n * @param {boolean} maintenance Force deletion of non conform IDs.\r\n * @returns {Promise}\r\n */\r\n delObject(id, maintenance) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('delObject', id, { maintenance: !!maintenance }, err =>\r\n err ? reject(err) : resolve()));\r\n }\r\n\r\n /**\r\n * Deletes the given object and all its children.\r\n * @param {string} id The object ID.\r\n * @param {boolean} maintenance Force deletion of non conform IDs.\r\n * @returns {Promise}\r\n */\r\n delObjects(id, maintenance) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('delObjects', id, {maintenance: !!maintenance}, err =>\r\n err ? reject(err) : resolve()));\r\n }\r\n\r\n /**\r\n * Sets the object.\r\n * @param {string} id The object ID.\r\n * @param {ioBroker.SettableObject} obj The object.\r\n * @returns {Promise}\r\n */\r\n setObject(id, obj) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n if (!obj) {\r\n return Promise.reject('Null object is not allowed');\r\n }\r\n\r\n obj = JSON.parse(JSON.stringify(obj));\r\n\r\n if (obj.hasOwnProperty('from')) {\r\n delete obj.from;\r\n }\r\n if (obj.hasOwnProperty('user')) {\r\n delete obj.user;\r\n }\r\n if (obj.hasOwnProperty('ts')) {\r\n delete obj.ts;\r\n }\r\n\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('setObject', id, obj, err =>\r\n err ? reject(err) : resolve()));\r\n }\r\n\r\n /**\r\n * Gets the object with the given id from the server.\r\n * @param {string} id The object ID.\r\n * @returns {ioBroker.GetObjectPromise} The object.\r\n */\r\n getObject(id) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('getObject', id, (err, obj) =>\r\n err ? reject(err) : resolve(obj)));\r\n }\r\n\r\n /**\r\n * Get all adapter instances.\r\n * @param {boolean} [update] Force update.\r\n * @returns {Promise}\r\n */\r\n /**\r\n * Get all instances of the given adapter.\r\n * @param {string} adapter The name of the adapter.\r\n * @param {boolean} [update] Force update.\r\n * @returns {Promise}\r\n */\r\n getAdapterInstances(adapter, update) {\r\n if (typeof adapter === 'boolean') {\r\n update = adapter;\r\n adapter = '';\r\n }\r\n adapter = adapter || '';\r\n\r\n if (!update && this._promises['instances_' + adapter]) {\r\n return this._promises['instances_' + adapter];\r\n }\r\n\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n this._promises['instances_' + adapter] = new Promise((resolve, reject) => {\r\n let timeout = setTimeout(() => {\r\n timeout = null;\r\n this.getObjectView(\r\n `system.adapter.${adapter ? adapter + '.' : ''}`,\r\n `system.adapter.${adapter ? adapter + '.' : ''}\\u9999`,\r\n 'instance'\r\n )\r\n .then(items => resolve(Object.keys(items).map(id => fixAdminUI(items[id]))))\r\n .catch(e => reject(e));\r\n }, TIMEOUT_FOR_ADMIN4);\r\n\r\n this._socket.emit('getAdapterInstances', adapter, (err, instances) => {\r\n if (timeout) {\r\n clearTimeout(timeout);\r\n timeout = null;\r\n return err ? reject(err) : resolve(instances);\r\n }\r\n });\r\n });\r\n\r\n return this._promises['instances_' + adapter];\r\n }\r\n\r\n /**\r\n * Get all adapters.\r\n * @param {boolean} [update] Force update.\r\n * @returns {Promise}\r\n */\r\n /**\r\n * Get adapters with the given name.\r\n * @param {string} adapter The name of the adapter.\r\n * @param {boolean} [update] Force update.\r\n * @returns {Promise}\r\n */\r\n getAdapters(adapter, update) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n\r\n if (typeof adapter === 'boolean') {\r\n update = adapter;\r\n adapter = '';\r\n }\r\n\r\n adapter = adapter || '';\r\n\r\n if (!update && this._promises['adapter_' + adapter]) {\r\n return this._promises['adapter_' + adapter];\r\n }\r\n\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n this._promises['adapter_' + adapter] = new Promise((resolve, reject) => {\r\n let timeout = setTimeout(() => {\r\n timeout = null;\r\n this.getObjectView(\r\n `system.adapter.${adapter}.`,\r\n `system.adapter.${adapter}.\\u9999`,\r\n 'adapter'\r\n )\r\n .then(items => resolve(Object.keys(items).map(id => fixAdminUI(items[id]))))\r\n .catch(e => reject(e));\r\n }, TIMEOUT_FOR_ADMIN4);\r\n\r\n this._socket.emit('getAdapters', adapter, (err, adapters) => {\r\n if (timeout) {\r\n clearTimeout(timeout);\r\n timeout = null;\r\n return err ? reject(err) : resolve(adapters);\r\n }\r\n });\r\n });\r\n\r\n return this._promises['adapter_' + adapter];\r\n }\r\n\r\n /**\r\n * Called internally.\r\n * @private\r\n * @param {any[]} objs\r\n * @param {(err?: any) => void} cb\r\n */\r\n _renameGroups(objs, cb) {\r\n if (!objs || !objs.length) {\r\n cb && cb();\r\n } else {\r\n let obj = objs.pop();\r\n let oldId = obj._id;\r\n obj._id = obj.newId;\r\n delete obj.newId;\r\n\r\n this.setObject(obj._id, obj)\r\n .then(() => this.delObject(oldId))\r\n .then(() => setTimeout(() => this._renameGroups(objs, cb), 0))\r\n .catch(err => cb && cb(err));\r\n }\r\n }\r\n\r\n /**\r\n * Rename a group.\r\n * @param {string} id The id.\r\n * @param {string} newId The new id.\r\n * @param {string | { [lang in ioBroker.Languages]?: string; }} newName The new name.\r\n */\r\n renameGroup(id, newId, newName) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n\r\n return this.getGroups(true)\r\n .then(groups => {\r\n if (groups.length) {\r\n // find all elements\r\n const groupsToRename = groups\r\n .filter(group => group._id.startsWith(id + '.'));\r\n\r\n groupsToRename.forEach(group => group.newId = newId + group._id.substring(id.length));\r\n\r\n return new Promise((resolve, reject) =>\r\n this._renameGroups(groupsToRename, err => err ? reject(err) : resolve()))\r\n .then(() => {\r\n const obj = groups.find(group => group._id === id);\r\n\r\n if (obj) {\r\n obj._id = newId;\r\n if (newName !== undefined) {\r\n obj.common = obj.common || {};\r\n obj.common.name = newName;\r\n }\r\n\r\n return this.setObject(obj._id, obj)\r\n .then(() => this.delObject(id));\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Sends a message to a specific instance or all instances of some specific adapter.\r\n * @param {string} instance The instance to send this message to.\r\n * @param {string} [command] Command name of the target instance.\r\n * @param {ioBroker.MessagePayload} [data] The message data to send.\r\n * @returns {Promise}\r\n */\r\n sendTo(instance, command, data) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n return new Promise(resolve =>\r\n this._socket.emit('sendTo', instance, command, data, result =>\r\n resolve(result)));\r\n }\r\n\r\n /**\r\n * Extend an object and create it if it might not exist.\r\n * @param {string} id The id.\r\n * @param {ioBroker.PartialObject} obj The object.\r\n */\r\n extendObject(id, obj) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n obj = JSON.parse(JSON.stringify(obj));\r\n\r\n if (obj.hasOwnProperty('from')) {\r\n delete obj.from;\r\n }\r\n if (obj.hasOwnProperty('user')) {\r\n delete obj.user;\r\n }\r\n if (obj.hasOwnProperty('ts')) {\r\n delete obj.ts;\r\n }\r\n\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('extendObject', id, obj, err => err ? reject(err) : resolve()));\r\n }\r\n\r\n /**\r\n * Register a handler for log messages.\r\n * @param {(message: string) => void} handler The handler.\r\n */\r\n registerLogHandler(handler) {\r\n !this.onLogHandlers.includes(handler) && this.onLogHandlers.push(handler);\r\n }\r\n\r\n /**\r\n * Unregister a handler for log messages.\r\n * @param {(message: string) => void} handler The handler.\r\n */\r\n unregisterLogHandler(handler) {\r\n const pos = this.onLogHandlers.indexOf(handler);\r\n pos !== -1 && this.onLogHandlers.splice(pos, 1);\r\n }\r\n\r\n /**\r\n * Register a handler for the connection state.\r\n * @param {(connected: boolean) => void} handler The handler.\r\n */\r\n registerConnectionHandler(handler) {\r\n !this.onConnectionHandlers.includes(handler) && this.onConnectionHandlers.push(handler);\r\n }\r\n\r\n /**\r\n * Unregister a handler for the connection state.\r\n * @param {(connected: boolean) => void} handler The handler.\r\n */\r\n unregisterConnectionHandler(handler) {\r\n const pos = this.onConnectionHandlers.indexOf(handler);\r\n pos !== -1 && this.onConnectionHandlers.splice(pos, 1);\r\n }\r\n\r\n /**\r\n * Set the handler for standard output of a command.\r\n * @param {(id: string, text: string) => void} handler The handler.\r\n */\r\n registerCmdStdoutHandler(handler) {\r\n this.onCmdStdoutHandler = handler;\r\n }\r\n\r\n /**\r\n * Unset the handler for standard output of a command.\r\n * @param {(id: string, text: string) => void} handler The handler.\r\n */\r\n unregisterCmdStdoutHandler(handler) {\r\n this.onCmdStdoutHandler = null;\r\n }\r\n\r\n /**\r\n * Set the handler for standard error of a command.\r\n * @param {(id: string, text: string) => void} handler The handler.\r\n */\r\n registerCmdStderrHandler(handler) {\r\n this.onCmdStderrHandler = handler;\r\n }\r\n\r\n /**\r\n * Unset the handler for standard error of a command.\r\n * @param {(id: string, text: string) => void} handler The handler.\r\n */\r\n unregisterCmdStderrHandler(handler) {\r\n this.onCmdStderrHandler = null;\r\n }\r\n\r\n /**\r\n * Set the handler for exit of a command.\r\n * @param {(id: string, exitCode: number) => void} handler The handler.\r\n */\r\n registerCmdExitHandler(handler) {\r\n this.onCmdExitHandler = handler;\r\n }\r\n\r\n /**\r\n * Unset the handler for exit of a command.\r\n * @param {(id: string, exitCode: number) => void} handler The handler.\r\n */\r\n unregisterCmdExitHandler(handler) {\r\n this.onCmdExitHandler = null;\r\n }\r\n\r\n /**\r\n * Get all enums with the given name.\r\n * @param {string} [_enum] The name of the enum\r\n * @param {boolean} [update] Force update.\r\n * @returns {Promise>}\r\n */\r\n getEnums(_enum, update) {\r\n if (!update && this._promises['enums_' + (_enum || 'all')]) {\r\n return this._promises['enums_' + (_enum || 'all')];\r\n }\r\n\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n this._promises['enums_' + (_enum || 'all')] = new Promise((resolve, reject) => {\r\n this._socket.emit('getObjectView', 'system', 'enum', { startkey: 'enum.' + (_enum || ''), endkey: 'enum.' + (_enum ? (_enum + '.') : '') + '\\u9999' }, (err, res) => {\r\n if (!err && res) {\r\n const _res = {};\r\n for (let i = 0; i < res.rows.length; i++) {\r\n if (_enum && res.rows[i].id === 'enum.' + _enum) {\r\n continue;\r\n }\r\n _res[res.rows[i].id] = res.rows[i].value;\r\n }\r\n resolve(_res);\r\n } else {\r\n reject(err);\r\n }\r\n });\r\n });\r\n\r\n return this._promises['enums_' + (_enum || 'all')];\r\n }\r\n\r\n /**\r\n * Query a predefined object view.\r\n * @param {string} start The start ID.\r\n * @param {string} end The end ID.\r\n * @param {string} type The type of object.\r\n * @returns {Promise>}\r\n */\r\n getObjectView(start, end, type) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n start = start || '';\r\n end = end || '\\u9999';\r\n\r\n return new Promise((resolve, reject) => {\r\n this._socket.emit('getObjectView', 'system', type, { startkey: start, endkey: end }, (err, res) => {\r\n if (!err) {\r\n const _res = {};\r\n if (res && res.rows) {\r\n for (let i = 0; i < res.rows.length; i++) {\r\n _res[res.rows[i].id] = res.rows[i].value;\r\n }\r\n }\r\n resolve(_res);\r\n } else {\r\n reject(err);\r\n }\r\n });\r\n });\r\n }\r\n\r\n /**\r\n * Get the stored certificates.\r\n * @param {boolean} [update] Force update.\r\n * @returns {Promise<{name: string; type: 'public' | 'private' | 'chained'}[]>}\r\n */\r\n getCertificates(update) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n\r\n if (this._promises.cert && !update) {\r\n return this._promises.cert;\r\n }\r\n\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n this._promises.cert = this.getObject('system.certificates')\r\n .then(res => {\r\n const certs = [];\r\n if (res && res.native && res.native.certificates) {\r\n Object.keys(res.native.certificates).forEach(c => {\r\n const cert = res.native.certificates[c];\r\n if (!cert) {\r\n return;\r\n }\r\n const _cert = {\r\n name: c,\r\n type: ''\r\n };\r\n // If it is filename, it could be everything\r\n if (cert.length < 700 && (cert.indexOf('/') !== -1 || cert.indexOf('\\\\') !== -1)) {\r\n if (c.toLowerCase().includes('private')) {\r\n _cert.type = 'private';\r\n } else if (cert.toLowerCase().includes('private')) {\r\n _cert.type = 'private';\r\n } else if (c.toLowerCase().includes('public')) {\r\n _cert.type = 'public';\r\n } else if (cert.toLowerCase().includes('public')) {\r\n _cert.type = 'public';\r\n }\r\n certs.push(_cert);\r\n } else {\r\n _cert.type = (cert.substring(0, '-----BEGIN RSA PRIVATE KEY'.length) === '-----BEGIN RSA PRIVATE KEY' || cert.substring(0, '-----BEGIN PRIVATE KEY'.length) === '-----BEGIN PRIVATE KEY') ? 'private' : 'public';\r\n\r\n if (_cert.type === 'public') {\r\n const m = cert.split('-----END CERTIFICATE-----');\r\n if (m.filter(t => t.replace(/\\r\\n|\\r|\\n/, '').trim()).length > 1) {\r\n _cert.type = 'chained';\r\n }\r\n }\r\n\r\n certs.push(_cert);\r\n }\r\n });\r\n }\r\n return certs;\r\n });\r\n\r\n return this._promises.cert;\r\n }\r\n\r\n /**\r\n * Get the logs from a host (only for admin connection).\r\n * @param {string} host\r\n * @param {number} [linesNumber]\r\n * @returns {Promise}\r\n */\r\n getLogs(host, linesNumber) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n return new Promise(resolve =>\r\n this._socket.emit('sendToHost', host, 'getLogs', linesNumber || 200, lines =>\r\n resolve(lines)));\r\n }\r\n\r\n /**\r\n * Get the log files (only for admin connection).\r\n * @returns {Promise}\r\n */\r\n getLogsFiles(host) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('readLogs', host, (err, files) =>\r\n err ? reject(err) : resolve(files)));\r\n }\r\n\r\n /**\r\n * Delete the logs from a host (only for admin connection).\r\n * @param {string} host\r\n * @returns {Promise}\r\n */\r\n delLogs(host) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('sendToHost', host, 'delLogs', null, error =>\r\n error ? reject(error) : resolve()));\r\n }\r\n\r\n /**\r\n * Read the meta items.\r\n * @returns {Promise}\r\n */\r\n readMetaItems() {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('getObjectView', 'system', 'meta', { startkey: '', endkey: '\\u9999' }, (err, objs) =>\r\n err ? reject(err) : resolve(objs.rows && objs.rows.map(obj => obj.value))));\r\n }\r\n\r\n /**\r\n * Read the directory of an adapter.\r\n * @param {string} adapter The adapter name.\r\n * @param {string} fileName The directory name.\r\n * @returns {Promise}\r\n */\r\n readDir(adapter, fileName) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('readDir', adapter, fileName, (err, files) =>\r\n err ? reject(err) : resolve(files)));\r\n }\r\n\r\n /**\r\n * Read a file of an adapter.\r\n * @param {string} adapter The adapter name.\r\n * @param {string} fileName The file name.\r\n * @param {boolean} base64 If it must be a base64 format\r\n * @returns {Promise}\r\n */\r\n readFile(adapter, fileName, base64) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n return new Promise((resolve, reject) => {\r\n if (!base64) {\r\n this._socket.emit('readFile', adapter, fileName, (err, data, type) => {\r\n //@ts-ignore\r\n err ? reject(err) : resolve({data, type});\r\n });\r\n } else {\r\n this._socket.emit('readFile64', adapter, fileName, base64, (err, data) =>\r\n err ? reject(err) : resolve(data));\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Write a file of an adapter.\r\n * @param {string} adapter The adapter name.\r\n * @param {string} fileName The file name.\r\n * @param {Buffer | string} data The data (if it's a Buffer, it will be converted to Base64).\r\n * @returns {Promise}\r\n */\r\n writeFile64(adapter, fileName, data) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n return new Promise((resolve, reject) => {\r\n if (typeof data === 'string') {\r\n this._socket.emit('writeFile', adapter, fileName, data, err =>\r\n err ? reject(err) : resolve());\r\n } else {\r\n const base64 = btoa(\r\n new Uint8Array(data)\r\n .reduce((data, byte) => data + String.fromCharCode(byte), '')\r\n );\r\n\r\n this._socket.emit('writeFile64', adapter, fileName, base64, err =>\r\n err ? reject(err) : resolve());\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Rename a file or folder of an adapter.\r\n *\r\n * All files in folder will be renamed too.\r\n * @param {string} adapter The adapter name.\r\n * @param {string} oldName The file name of the file to be renamed.\r\n * @param {string} newName The new file name.\r\n * @returns {Promise}\r\n */\r\n rename(adapter, oldName, newName) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('rename', adapter, oldName, newName, err =>\r\n err ? reject(err) : resolve()));\r\n }\r\n\r\n /**\r\n * Delete a file of an adapter.\r\n * @param {string} adapter The adapter name.\r\n * @param {string} fileName The file name.\r\n * @returns {Promise}\r\n */\r\n deleteFile(adapter, fileName) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('unlink', adapter, fileName, err =>\r\n err ? reject(err) : resolve()));\r\n }\r\n\r\n /**\r\n * Delete a folder of an adapter.\r\n * All files in folder will be deleted.\r\n * @param {string} adapter The adapter name.\r\n * @param {string} folderName The folder name.\r\n * @returns {Promise}\r\n */\r\n deleteFolder(adapter, folderName) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('deleteFolder', adapter, folderName, err =>\r\n err ? reject(err) : resolve()));\r\n }\r\n\r\n /**\r\n * Get the list of all hosts.\r\n * @param {boolean} [update] Force update.\r\n * @returns {Promise}\r\n */\r\n getHosts(update) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n if (!update && this._promises.hosts) {\r\n return this._promises.hosts;\r\n }\r\n\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n this._promises.hosts = new Promise((resolve, reject) =>\r\n this._socket.emit(\r\n 'getObjectView',\r\n 'system',\r\n 'host',\r\n {startkey: 'system.host.', endkey: 'system.host.\\u9999'},\r\n (err, doc) => {\r\n if (err) {\r\n reject(err);\r\n } else {\r\n resolve(doc.rows.map(item => item.value));\r\n }\r\n }));\r\n\r\n return this._promises.hosts;\r\n }\r\n\r\n /**\r\n * Get the list of all users.\r\n * @param {boolean} [update] Force update.\r\n * @returns {Promise}\r\n */\r\n getUsers(update) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n if (!update && this._promises.users) {\r\n return this._promises.users;\r\n }\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n this._promises.users = new Promise((resolve, reject) =>\r\n this._socket.emit(\r\n 'getObjectView',\r\n 'system',\r\n 'user',\r\n {startkey: 'system.user.', endkey: 'system.user.\\u9999'},\r\n (err, doc) => {\r\n if (err) {\r\n reject(err);\r\n } else {\r\n resolve(doc.rows.map(item => item.value));\r\n }\r\n }));\r\n\r\n return this._promises.users;\r\n }\r\n\r\n /**\r\n * Get the list of all groups.\r\n * @param {boolean} [update] Force update.\r\n * @returns {Promise}\r\n */\r\n getGroups(update) {\r\n if (!update && this._promises.groups) {\r\n return this._promises.groups;\r\n }\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n this._promises.groups = new Promise((resolve, reject) =>\r\n this._socket.emit(\r\n 'getObjectView',\r\n 'system',\r\n 'group',\r\n {startkey: 'system.group.', endkey: 'system.group.\\u9999'},\r\n (err, doc) => {\r\n if (err) {\r\n reject(err);\r\n } else {\r\n resolve(doc.rows.map(item => item.value));\r\n }\r\n }));\r\n\r\n return this._promises.groups;\r\n }\r\n\r\n /**\r\n * Get the host information.\r\n * @param {string} host\r\n * @param {boolean} [update] Force update.\r\n * @param {number} [timeoutMs] optional read timeout.\r\n * @returns {Promise}\r\n */\r\n getHostInfo(host, update, timeoutMs) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n if (!host.startsWith('system.host.')) {\r\n host += 'system.host.' + host;\r\n }\r\n\r\n if (!update && this._promises['hostInfo' + host]) {\r\n return this._promises['hostInfo' + host];\r\n }\r\n\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n this._promises['hostInfo' + host] = new Promise((resolve, reject) => {\r\n let timeout = setTimeout(() => {\r\n if (timeout) {\r\n timeout = null;\r\n reject('getHostInfo timeout');\r\n }\r\n }, timeoutMs || this.props.cmdTimeout);\r\n\r\n this._socket.emit('sendToHost', host, 'getHostInfo', null, data => {\r\n if (timeout) {\r\n clearTimeout(timeout);\r\n timeout = null;\r\n if (data === PERMISSION_ERROR) {\r\n reject('May not read \"getHostInfo\"');\r\n } else if (!data) {\r\n reject('Cannot read \"getHostInfo\"');\r\n } else {\r\n resolve(data);\r\n }\r\n }\r\n });\r\n });\r\n\r\n return this._promises['hostInfo' + host];\r\n }\r\n\r\n /**\r\n * Get the host information (short version).\r\n * @param {string} host\r\n * @param {boolean} [update] Force update.\r\n * @param {number} [timeoutMs] optional read timeout.\r\n * @returns {Promise}\r\n */\r\n getHostInfoShort(host, update, timeoutMs) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n if (!host.startsWith('system.host.')) {\r\n host += 'system.host.' + host;\r\n }\r\n\r\n if (!update && this._promises['hostInfoShort' + host]) {\r\n return this._promises['hostInfoShort' + host];\r\n }\r\n\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n this._promises['hostInfoShort' + host] = new Promise((resolve, reject) => {\r\n let timeout = setTimeout(() => {\r\n if (timeout) {\r\n timeout = null;\r\n reject('hostInfoShort timeout');\r\n }\r\n }, timeoutMs || this.props.cmdTimeout);\r\n\r\n this._socket.emit('sendToHost', host, 'getHostInfoShort', null, data => {\r\n if (timeout) {\r\n clearTimeout(timeout);\r\n timeout = null;\r\n if (data === PERMISSION_ERROR) {\r\n reject('May not read \"getHostInfoShort\"');\r\n } else if (!data) {\r\n reject('Cannot read \"getHostInfoShort\"');\r\n } else {\r\n resolve(data);\r\n }\r\n }\r\n });\r\n });\r\n\r\n return this._promises['hostInfoShort' + host];\r\n }\r\n\r\n /**\r\n * Get the repository.\r\n * @param {string} host\r\n * @param {any} [args]\r\n * @param {boolean} [update] Force update.\r\n * @param {number} [timeoutMs] timeout in ms.\r\n * @returns {Promise}\r\n */\r\n getRepository(host, args, update, timeoutMs) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n if (!update && this._promises.repo) {\r\n return this._promises.repo;\r\n }\r\n\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n if (!host.startsWith('system.host.')) {\r\n host += 'system.host.' + host;\r\n }\r\n\r\n this._promises.repo = new Promise((resolve, reject) => {\r\n let timeout = setTimeout(() => {\r\n if (timeout) {\r\n timeout = null;\r\n reject('getRepository timeout');\r\n }\r\n }, timeoutMs || this.props.cmdTimeout);\r\n\r\n this._socket.emit('sendToHost', host, 'getRepository', args, data => {\r\n if (timeout) {\r\n clearTimeout(timeout);\r\n timeout = null;\r\n if (data === PERMISSION_ERROR) {\r\n reject('May not read \"getRepository\"');\r\n } else if (!data) {\r\n reject('Cannot read \"getRepository\"');\r\n } else {\r\n resolve(data);\r\n }\r\n }\r\n });\r\n });\r\n\r\n return this._promises.repo;\r\n }\r\n\r\n /**\r\n * Get the installed.\r\n * @param {string} host\r\n * @param {boolean} [update] Force update.\r\n * @param {number} [cmdTimeout] timeout in ms (optional)\r\n * @returns {Promise}\r\n */\r\n getInstalled(host, update, cmdTimeout) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n\r\n this._promises.installed = this._promises.installed || {};\r\n\r\n if (!update && this._promises.installed[host]) {\r\n return this._promises.installed[host];\r\n }\r\n\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n if (!host.startsWith('system.host.')) {\r\n host += 'system.host.' + host;\r\n }\r\n\r\n this._promises.installed[host] = new Promise((resolve, reject) => {\r\n let timeout = setTimeout(() => {\r\n if (timeout) {\r\n timeout = null;\r\n reject('getInstalled timeout');\r\n }\r\n }, cmdTimeout || this.props.cmdTimeout);\r\n\r\n this._socket.emit('sendToHost', host, 'getInstalled', null, data => {\r\n if (timeout) {\r\n clearTimeout(timeout);\r\n timeout = null;\r\n if (data === PERMISSION_ERROR) {\r\n reject('May not read \"getInstalled\"');\r\n } else if (!data) {\r\n reject('Cannot read \"getInstalled\"');\r\n } else {\r\n resolve(data);\r\n }\r\n }\r\n });\r\n });\r\n\r\n return this._promises.installed[host];\r\n }\r\n\r\n /**\r\n * Execute a command on a host.\r\n * @param {string} host The host name.\r\n * @param {string} cmd The command.\r\n * @param {string} cmdId The command ID.\r\n * @param {number} cmdTimeout Timeout of command in ms\r\n * @returns {Promise}\r\n */\r\n cmdExec(host, cmd, cmdId, cmdTimeout) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n if (!host.startsWith(host)) {\r\n host += 'system.host.' + host;\r\n }\r\n\r\n return new Promise((resolve, reject) => {\r\n let timeout = cmdTimeout && setTimeout(() => {\r\n if (timeout) {\r\n timeout = null;\r\n reject('cmdExec timeout');\r\n }\r\n }, cmdTimeout);\r\n\r\n this._socket.emit('cmdExec', host, cmdId, cmd, null, err => {\r\n if (!cmdTimeout || timeout) {\r\n timeout && clearTimeout(timeout);\r\n timeout = null;\r\n if (err) {\r\n reject(err);\r\n } else {\r\n resolve();\r\n }\r\n }\r\n });\r\n });\r\n }\r\n\r\n /**\r\n * Checks if a given feature is supported.\r\n * @param {string} feature The feature to check.\r\n * @param {boolean} [update] Force update.\r\n * @returns {Promise}\r\n */\r\n checkFeatureSupported(feature, update) {\r\n if (!update && this._promises['supportedFeatures_' + feature]) {\r\n return this._promises['supportedFeatures_' + feature];\r\n }\r\n\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n this._promises['supportedFeatures_' + feature] = new Promise((resolve, reject) =>\r\n this._socket.emit('checkFeatureSupported', feature, (err, features) => {\r\n err ? reject(err) : resolve(features)\r\n }));\r\n\r\n return this._promises['supportedFeatures_' + feature];\r\n }\r\n\r\n /**\r\n * Read the base settings of a given host.\r\n * @param {string} host\r\n * @returns {Promise}\r\n */\r\n readBaseSettings(host) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n return this.checkFeatureSupported('CONTROLLER_READWRITE_BASE_SETTINGS')\r\n .then(result => {\r\n if (result) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n return new Promise((resolve, reject) => {\r\n let timeout = setTimeout(() => {\r\n if (timeout) {\r\n timeout = null;\r\n reject('readBaseSettings timeout');\r\n }\r\n }, this.props.cmdTimeout);\r\n\r\n if (host.startsWith('system.host.')) {\r\n host = host.replace(/^system\\.host\\./, '');\r\n }\r\n\r\n this._socket.emit('sendToHost', host, 'readBaseSettings', null, data => {\r\n if (timeout) {\r\n clearTimeout(timeout);\r\n timeout = null;\r\n\r\n if (data === PERMISSION_ERROR) {\r\n reject('May not read \"BaseSettings\"');\r\n } else if (!data) {\r\n reject('Cannot read \"BaseSettings\"');\r\n } else {\r\n resolve(data);\r\n }\r\n }\r\n });\r\n });\r\n } else {\r\n return Promise.reject('Not supported');\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Write the base settings of a given host.\r\n * @param {string} host\r\n * @param {any} config\r\n * @returns {Promise}\r\n */\r\n writeBaseSettings(host, config) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n return this.checkFeatureSupported('CONTROLLER_READWRITE_BASE_SETTINGS')\r\n .then(result => {\r\n if (result) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n return new Promise((resolve, reject) => {\r\n let timeout = setTimeout(() => {\r\n if (timeout) {\r\n timeout = null;\r\n reject('writeBaseSettings timeout');\r\n }\r\n }, this.props.cmdTimeout);\r\n\r\n this._socket.emit('sendToHost', host, 'writeBaseSettings', config, data => {\r\n if (timeout) {\r\n clearTimeout(timeout);\r\n timeout = null;\r\n\r\n if (data === PERMISSION_ERROR) {\r\n reject('May not write \"BaseSettings\"');\r\n } else if (!data) {\r\n reject('Cannot write \"BaseSettings\"');\r\n } else {\r\n resolve(data);\r\n }\r\n }\r\n });\r\n });\r\n } else {\r\n return Promise.reject('Not supported');\r\n }\r\n })\r\n }\r\n\r\n /**\r\n * Send command to restart the iobroker on host\r\n * @param {string} host\r\n * @returns {Promise}\r\n */\r\n restartController(host) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n return new Promise((resolve, reject) => {\r\n this._socket.emit('sendToHost', host, 'restartController', null, error => {\r\n error ? reject(error) : resolve(true);\r\n });\r\n });\r\n }\r\n\r\n /**\r\n * Read statistics information from host\r\n * @param {string} host\r\n * @param {string} typeOfDiag one of none, normal, no-city, extended\r\n * @returns {Promise}\r\n */\r\n getDiagData(host, typeOfDiag) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n return new Promise(resolve => {\r\n this._socket.emit('sendToHost', host, 'getDiagData', typeOfDiag, result =>\r\n resolve(result));\r\n });\r\n }\r\n\r\n /**\r\n * Read all states (which might not belong to this adapter) which match the given pattern.\r\n * @param {string} pattern\r\n * @returns {ioBroker.GetStatesPromise}\r\n */\r\n getForeignStates(pattern) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n if (Connection.isWeb()) {\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('getStates', pattern || '*', (err, states) =>\r\n err ? reject(err) : resolve(states)));\r\n } else {\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('getForeignStates', pattern || '*', (err, states) =>\r\n err ? reject(err) : resolve(states)));\r\n }\r\n }\r\n\r\n /**\r\n * Get foreign objects by pattern, by specific type and resolve their enums.\r\n * @param {string} pattern\r\n * @param {string} [type]\r\n * @returns {ioBroker.GetObjectsPromise}\r\n */\r\n getForeignObjects(pattern, type) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('getForeignObjects', pattern || '*', type, (err, states) =>\r\n err ? reject(err) : resolve(states)));\r\n }\r\n\r\n /**\r\n * Gets the system configuration.\r\n * @param {boolean} [update] Force update.\r\n * @returns {Promise}\r\n */\r\n getSystemConfig(update) {\r\n if (!update && this._promises.systemConfig) {\r\n return this._promises.systemConfig;\r\n }\r\n\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n this._promises.systemConfig = this.getObject('system.config')\r\n .then(systemConfig => {\r\n //@ts-ignore\r\n systemConfig = systemConfig || {};\r\n //@ts-ignore\r\n systemConfig.common = systemConfig.common || {};\r\n //@ts-ignore\r\n systemConfig.native = systemConfig.native || {};\r\n return systemConfig;\r\n });\r\n\r\n return this._promises.systemConfig;\r\n }\r\n\r\n /**\r\n * Sets the system configuration.\r\n * @param {ioBroker.SettableObjectWorker} obj\r\n * @returns {Promise>}\r\n */\r\n setSystemConfig(obj) {\r\n return this.setObject('system.config', obj)\r\n .then(() => this._promises.systemConfig = Promise.resolve(obj));\r\n }\r\n\r\n /**\r\n * Get the raw socket.io socket.\r\n * @returns {any}\r\n */\r\n getRawSocket() {\r\n return this._socket;\r\n }\r\n\r\n /**\r\n * Get the history of a given state.\r\n * @param {string} id\r\n * @param {ioBroker.GetHistoryOptions} options\r\n * @returns {Promise}\r\n */\r\n getHistory(id, options) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('getHistory', id, options, (err, values) =>\r\n err ? reject(err) : resolve(values)));\r\n }\r\n\r\n /**\r\n * Get the history of a given state.\r\n * @param {string} id\r\n * @param {ioBroker.GetHistoryOptions} options\r\n * @returns {Promise<{values: ioBroker.GetHistoryResult; sesionId: string; stepIgnore: number}>}\r\n */\r\n getHistoryEx(id, options) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('getHistory', id, options, (err, values, stepIgnore, sessionId) =>\r\n err ? reject(err) : resolve({ values, sessionId, stepIgnore })));\r\n }\r\n\r\n /**\r\n * Change the password of the given user.\r\n * @param {string} user\r\n * @param {string} password\r\n * @returns {Promise}\r\n */\r\n changePassword(user, password) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('changePassword', user, password, err =>\r\n err ? reject(err) : resolve()));\r\n }\r\n\r\n /**\r\n * Get the IP addresses of the given host.\r\n * @param {string} host\r\n * @param {boolean} [update] Force update.\r\n * @returns {Promise}\r\n */\r\n getIpAddresses(host, update) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n if (!host.startsWith('system.host.')) {\r\n host = 'system.host.' + host;\r\n }\r\n\r\n if (!update && this._promises['IPs_' + host]) {\r\n return this._promises['IPs_' + host];\r\n }\r\n this._promises['IPs_' + host] = this.getObject(host)\r\n .then(obj => obj && obj.common ? obj.common.address || [] : []);\r\n\r\n return this._promises['IPs_' + host];\r\n }\r\n\r\n /**\r\n * Get the IP addresses with interface names of the given host or find host by IP.\r\n * @param {string} ipOrHostName\r\n * @param {boolean} [update] Force update.\r\n * @returns {Promise]>}\r\n */\r\n getHostByIp(ipOrHostName, update) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n if (ipOrHostName.startsWith('system.host.')) {\r\n ipOrHostName = ipOrHostName.replace(/^system\\.host\\./, '');\r\n }\r\n\r\n if (!update && this._promises['rIPs_' + ipOrHostName]) {\r\n return this._promises['rIPs_' + ipOrHostName];\r\n }\r\n this._promises['rIPs_' + ipOrHostName] = new Promise(resolve =>\r\n this._socket.emit('getHostByIp', ipOrHostName, (ip, host) => {\r\n const IPs4 = [{name: '[IPv4] 0.0.0.0 - Listen on all IPs', address: '0.0.0.0', family: 'ipv4'}];\r\n const IPs6 = [{name: '[IPv6] :: - Listen on all IPs', address: '::', family: 'ipv6'}];\r\n if (host?.native?.hardware?.networkInterfaces) {\r\n for (const eth in host.native.hardware.networkInterfaces) {\r\n if (!host.native.hardware.networkInterfaces.hasOwnProperty(eth)) {\r\n continue;\r\n }\r\n for (let num = 0; num < host.native.hardware.networkInterfaces[eth].length; num++) {\r\n if (host.native.hardware.networkInterfaces[eth][num].family !== 'IPv6') {\r\n IPs4.push({name: `[${host.native.hardware.networkInterfaces[eth][num].family}] ${host.native.hardware.networkInterfaces[eth][num].address} - ${eth}`, address: host.native.hardware.networkInterfaces[eth][num].address, family: 'ipv4'});\r\n } else {\r\n IPs6.push({name: `[${host.native.hardware.networkInterfaces[eth][num].family}] ${host.native.hardware.networkInterfaces[eth][num].address} - ${eth}`, address: host.native.hardware.networkInterfaces[eth][num].address, family: 'ipv6'});\r\n }\r\n }\r\n }\r\n }\r\n for (let i = 0; i < IPs6.length; i++) {\r\n IPs4.push(IPs6[i]);\r\n }\r\n resolve(IPs4);\r\n }));\r\n\r\n return this._promises['rIPs_' + ipOrHostName];\r\n }\r\n\r\n /**\r\n * Encrypt a text\r\n * @param {string} text\r\n * @returns {Promise}\r\n */\r\n encrypt(text) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('encrypt', text, (err, text) =>\r\n err ? reject(err) : resolve(text)));\r\n }\r\n\r\n /**\r\n * Decrypt a text\r\n * @param {string} encryptedText\r\n * @returns {Promise}\r\n */\r\n decrypt(encryptedText) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('decrypt', encryptedText, (err, text) =>\r\n err ? reject(err) : resolve(text)));\r\n }\r\n\r\n /**\r\n * Gets the version.\r\n * @returns {Promise<{version: string; serverName: string}>}\r\n */\r\n getVersion(update) {\r\n if (update && this._promises.version) {\r\n this._promises.version = null;\r\n }\r\n\r\n this._promises.version = this._promises.version || new Promise((resolve, reject) =>\r\n this._socket.emit('getVersion', (err, version, serverName) => {\r\n // support of old socket.io\r\n if (err && !version && typeof err === 'string' && err.match(/\\d+\\.\\d+\\.\\d+/)) {\r\n resolve({ version: err, serverName: 'socketio' });\r\n } else {\r\n return err ? reject(err) : resolve({ version, serverName });\r\n }\r\n }));\r\n\r\n return this._promises.version;\r\n }\r\n\r\n /**\r\n * Gets the web server name.\r\n * @returns {Promise}\r\n */\r\n getWebServerName() {\r\n this._promises.webName = this._promises.webName || new Promise((resolve, reject) =>\r\n this._socket.emit('getAdapterName', (err, name) =>\r\n err ? reject(err) : resolve(name)));\r\n\r\n return this._promises.webName;\r\n }\r\n\r\n /**\r\n * Gets the admin version.\r\n * @deprecated use getVersion()\r\n * @returns {Promise<{version: string; serverName: string}>}\r\n */\r\n getAdminVersion() {\r\n console.log('Deprecated: use getVersion');\r\n return this.getVersion();\r\n }\r\n\r\n /**\r\n * Change access rights for file\r\n * @param {string} [adapter] adapter name\r\n * @param {string} [filename] file name with full path. it could be like vis.0/*\r\n * @param {object} [options] like {mode: 0x644}\r\n * @returns {Promise<{entries: array}>}\r\n */\r\n chmodFile(adapter, filename, options) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('chmodFile', adapter, filename, options, (err, entries, id) =>\r\n err ? reject(err) : resolve({entries, id})));\r\n }\r\n\r\n /**\r\n * Change owner or/and owner group for file\r\n * @param {string} [adapter] adapter name\r\n * @param {string} [filename] file name with full path. it could be like vis.0/*\r\n * @param {object} [options] like {owner: 'newOwner', ownerGroup: 'newGroup'}\r\n * @returns {Promise<{entries: array}>}\r\n */\r\n chownFile(adapter, filename, options) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('chownFile', adapter, filename, options, (err, entries, id) =>\r\n err ? reject(err) : resolve({entries, id})));\r\n }\r\n\r\n /**\r\n * Check if the file exists\r\n * @param {string} [adapter] adapter name\r\n * @param {string} [filename] file name with full path. it could be like vis.0/*\r\n * @returns {Promise}\r\n */\r\n fileExists(adapter, filename) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('fileExists', adapter, filename, (err, exists) =>\r\n err ? reject(err) : resolve(exists)));\r\n }\r\n\r\n /**\r\n * Get the alarm notifications from a host (only for admin connection).\r\n * @param {string} host\r\n * @param {string} [category] - optional\r\n * @returns {Promise}\r\n */\r\n getNotifications(host, category) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n return new Promise(resolve =>\r\n this._socket.emit('sendToHost', host, 'getNotifications', {category}, notifications =>\r\n resolve(notifications)));\r\n }\r\n\r\n /**\r\n * Clear the alarm notifications on a host (only for admin connection).\r\n * @param {string} host\r\n * @param {string} [category] - optional\r\n * @returns {Promise}\r\n */\r\n clearNotifications(host, category) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n return new Promise(resolve =>\r\n this._socket.emit('sendToHost', host, 'clearNotifications', {category}, notifications =>\r\n resolve(notifications)));\r\n }\r\n\r\n /**\r\n * Read if only easy mode is allowed (only for admin connection).\r\n * @returns {Promise}\r\n */\r\n getIsEasyModeStrict() {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('getIsEasyModeStrict', (error, isStrict) =>\r\n error ? reject(error) : resolve(isStrict)));\r\n }\r\n\r\n /**\r\n * Read easy mode configuration (only for admin connection).\r\n * @returns {Promise}\r\n */\r\n getEasyMode() {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('getEasyMode', (error, config) =>\r\n error ? reject(error) : resolve(config)));\r\n }\r\n\r\n /**\r\n * Read current user\r\n * @returns {Promise}\r\n */\r\n getCurrentUser() {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n return new Promise(resolve =>\r\n this._socket.emit('authEnabled', (isSecure, user) =>\r\n resolve(user)));\r\n }\r\n\r\n getCurrentSession(cmdTimeout) {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n return new Promise((resolve, reject) => {\r\n const controller = new AbortController();\r\n\r\n let timeout = setTimeout(() => {\r\n if (timeout) {\r\n timeout = null;\r\n controller.abort();\r\n reject('getCurrentSession timeout');\r\n }\r\n }, cmdTimeout || 5000);\r\n\r\n return fetch('./session', { signal: controller.signal })\r\n .then(res => res.json())\r\n .then(json => {\r\n if (timeout) {\r\n clearTimeout(timeout);\r\n timeout = null;\r\n resolve(json);\r\n }\r\n })\r\n .catch(e =>\r\n reject('getCurrentSession: ' + e));\r\n });\r\n }\r\n\r\n /**\r\n * Read adapter ratings\r\n * @returns {Promise}\r\n */\r\n getRatings(update) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('getRatings', update, (err, ratings) =>\r\n err ? reject(err) : resolve(ratings)));\r\n }\r\n\r\n /**\r\n * Read current web, socketio or admin namespace, like admin.0\r\n * @returns {Promise}\r\n */\r\n getCurrentInstance() {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n this._promises.currentInstance = this._promises.currentInstance ||\r\n new Promise((resolve, reject) =>\r\n this._socket.emit('getCurrentInstance', (err, namespace) =>\r\n err ? reject(err) : resolve(namespace)));\r\n\r\n return this._promises.currentInstance;\r\n }\r\n\r\n // returns very optimized information for adapters to minimize connection load\r\n getCompactAdapters(update) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n if (!update && this._promises.compactAdapters) {\r\n return this._promises.compactAdapters;\r\n }\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n this._promises.compactAdapters = new Promise((resolve, reject) =>\r\n this._socket.emit('getCompactAdapters', (err, adapters) =>\r\n err ? reject(err) : resolve(adapters)));\r\n\r\n return this._promises.compactAdapters;\r\n }\r\n\r\n // returns very optimized information for adapters to minimize connection load\r\n getCompactInstances(update) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n if (!update && this._promises.compactInstances) {\r\n return this._promises.compactInstances;\r\n }\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n this._promises.compactInstances = new Promise((resolve, reject) =>\r\n this._socket.emit('getCompactInstances', (err, instances) =>\r\n err ? reject(err) : resolve(instances)));\r\n\r\n return this._promises.compactInstances;\r\n }\r\n\r\n // returns very optimized information for adapters to minimize connection load\r\n // reads only version of installed adapter\r\n getCompactInstalled(host, update, cmdTimeout) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n\r\n this._promises.installedCompact = this._promises.installedCompact || {};\r\n\r\n if (!update && this._promises.installedCompact[host]) {\r\n return this._promises.installedCompact[host];\r\n }\r\n\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n if (!host.startsWith('system.host.')) {\r\n host += 'system.host.' + host;\r\n }\r\n\r\n this._promises.installedCompact[host] = new Promise((resolve, reject) => {\r\n let timeout = setTimeout(() => {\r\n if (timeout) {\r\n timeout = null;\r\n reject('getCompactInstalled timeout');\r\n }\r\n }, cmdTimeout || this.props.cmdTimeout);\r\n\r\n this._socket.emit('getCompactInstalled', host, data => {\r\n if (timeout) {\r\n clearTimeout(timeout);\r\n timeout = null;\r\n if (data === PERMISSION_ERROR) {\r\n reject('May not read \"getCompactInstalled\"');\r\n } else if (!data) {\r\n reject('Cannot read \"getCompactInstalled\"');\r\n } else {\r\n resolve(data);\r\n }\r\n }\r\n });\r\n });\r\n\r\n return this._promises.installedCompact[host];\r\n }\r\n\r\n // returns very optimized information for adapters to minimize connection load\r\n getCompactSystemConfig(update) {\r\n if (!update && this._promises.systemConfigCommon) {\r\n return this._promises.systemConfigCommon;\r\n }\r\n\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n this._promises.systemConfigCommon = new Promise((resolve, reject) =>\r\n this._socket.emit('getCompactSystemConfig', (err, systemConfig) =>\r\n err ? reject(err) : resolve(systemConfig)));\r\n\r\n return this._promises.systemConfigCommon;\r\n }\r\n\r\n /**\r\n * Get the repository in compact form (only version and icon).\r\n * @param {string} host\r\n * @param {boolean} [update] Force update.\r\n * @param {number} [timeoutMs] timeout in ms.\r\n * @returns {Promise}\r\n */\r\n getCompactRepository(host, update, timeoutMs) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n if (!update && this._promises.repoCompact) {\r\n return this._promises.repoCompact;\r\n }\r\n\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n if (!host.startsWith('system.host.')) {\r\n host += 'system.host.' + host;\r\n }\r\n\r\n this._promises.repoCompact = new Promise((resolve, reject) => {\r\n let timeout = setTimeout(() => {\r\n if (timeout) {\r\n timeout = null;\r\n reject('getCompactRepository timeout');\r\n }\r\n }, timeoutMs || this.props.cmdTimeout);\r\n\r\n this._socket.emit('getCompactRepository', host, data => {\r\n if (timeout) {\r\n clearTimeout(timeout);\r\n timeout = null;\r\n if (data === PERMISSION_ERROR) {\r\n reject('May not read \"getCompactRepository\"');\r\n } else if (!data) {\r\n reject('Cannot read \"getCompactRepository\"');\r\n } else {\r\n resolve(data);\r\n }\r\n }\r\n });\r\n });\r\n\r\n return this._promises.repoCompact;\r\n }\r\n\r\n /**\r\n * Get the list of all hosts in compact form (only _id, common.name, common.icon, common.color, native.hardware.networkInterfaces)\r\n * @param {boolean} [update] Force update.\r\n * @returns {Promise}\r\n */\r\n getCompactHosts(update) {\r\n if (Connection.isWeb()) {\r\n return Promise.reject('Allowed only in admin');\r\n }\r\n if (!update && this._promises.hostsCompact) {\r\n return this._promises.hostsCompact;\r\n }\r\n\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n this._promises.hostsCompact = new Promise((resolve, reject) =>\r\n this._socket.emit('getCompactHosts', (err, hosts) =>\r\n err ? reject(err) : resolve(hosts)));\r\n\r\n return this._promises.hostsCompact;\r\n }\r\n\r\n /**\r\n * Get uuid\r\n * @returns {Promise}\r\n */\r\n getUuid() {\r\n if (this._promises.uuid) {\r\n return this._promises.uuid;\r\n }\r\n\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n this._promises.uuid = this.getObject('system.meta.uuid')\r\n //@ts-ignore\r\n .then(obj => obj?.native?.uuid);\r\n\r\n return this._promises.uuid;\r\n }\r\n\r\n /**\r\n * Send log to ioBroker log\r\n * @param {string} [text] Log text\r\n * @param {string} [level] `info`, `debug`, `warn`, `error` or `silly`\r\n * @returns {void}\r\n */\r\n log(text, level) {\r\n text && this._socket.emit('log', text, level || 'debug');\r\n }\r\n\r\n /**\r\n * Logout current user\r\n * @returns {Promise}\r\n */\r\n logout() {\r\n if (!this.connected) {\r\n return Promise.reject(NOT_CONNECTED);\r\n }\r\n\r\n return new Promise((resolve, reject) =>\r\n this._socket.emit('logout', err =>\r\n err ? reject(err) : resolve(null)));\r\n }\r\n}\r\n\r\nConnection.Connection = {\r\n onLog: PropTypes.func,\r\n onReady: PropTypes.func,\r\n onProgress: PropTypes.func,\r\n};\r\n\r\nexport default Connection;\r\n", "/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n\nimport type { ParameterizedString, PolymorphicEvent, Primitive } from '@sentry/types';\n\n// eslint-disable-next-line @typescript-eslint/unbound-method\nconst objectToString = Object.prototype.toString;\n\n/**\n * Checks whether given value's type is one of a few Error or Error-like\n * {@link isError}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isError(wat: unknown): wat is Error {\n switch (objectToString.call(wat)) {\n case '[object Error]':\n case '[object Exception]':\n case '[object DOMException]':\n return true;\n default:\n return isInstanceOf(wat, Error);\n }\n}\n/**\n * Checks whether given value is an instance of the given built-in class.\n *\n * @param wat The value to be checked\n * @param className\n * @returns A boolean representing the result.\n */\nfunction isBuiltin(wat: unknown, className: string): boolean {\n return objectToString.call(wat) === `[object ${className}]`;\n}\n\n/**\n * Checks whether given value's type is ErrorEvent\n * {@link isErrorEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isErrorEvent(wat: unknown): boolean {\n return isBuiltin(wat, 'ErrorEvent');\n}\n\n/**\n * Checks whether given value's type is DOMError\n * {@link isDOMError}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isDOMError(wat: unknown): boolean {\n return isBuiltin(wat, 'DOMError');\n}\n\n/**\n * Checks whether given value's type is DOMException\n * {@link isDOMException}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isDOMException(wat: unknown): boolean {\n return isBuiltin(wat, 'DOMException');\n}\n\n/**\n * Checks whether given value's type is a string\n * {@link isString}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isString(wat: unknown): wat is string {\n return isBuiltin(wat, 'String');\n}\n\n/**\n * Checks whether given string is parameterized\n * {@link isParameterizedString}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isParameterizedString(wat: unknown): wat is ParameterizedString {\n return (\n typeof wat === 'object' &&\n wat !== null &&\n '__sentry_template_string__' in wat &&\n '__sentry_template_values__' in wat\n );\n}\n\n/**\n * Checks whether given value is a primitive (undefined, null, number, boolean, string, bigint, symbol)\n * {@link isPrimitive}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isPrimitive(wat: unknown): wat is Primitive {\n return wat === null || isParameterizedString(wat) || (typeof wat !== 'object' && typeof wat !== 'function');\n}\n\n/**\n * Checks whether given value's type is an object literal, or a class instance.\n * {@link isPlainObject}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isPlainObject(wat: unknown): wat is Record {\n return isBuiltin(wat, 'Object');\n}\n\n/**\n * Checks whether given value's type is an Event instance\n * {@link isEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isEvent(wat: unknown): wat is PolymorphicEvent {\n return typeof Event !== 'undefined' && isInstanceOf(wat, Event);\n}\n\n/**\n * Checks whether given value's type is an Element instance\n * {@link isElement}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isElement(wat: unknown): boolean {\n return typeof Element !== 'undefined' && isInstanceOf(wat, Element);\n}\n\n/**\n * Checks whether given value's type is an regexp\n * {@link isRegExp}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isRegExp(wat: unknown): wat is RegExp {\n return isBuiltin(wat, 'RegExp');\n}\n\n/**\n * Checks whether given value has a then function.\n * @param wat A value to be checked.\n */\nexport function isThenable(wat: any): wat is PromiseLike {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return Boolean(wat && wat.then && typeof wat.then === 'function');\n}\n\n/**\n * Checks whether given value's type is a SyntheticEvent\n * {@link isSyntheticEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isSyntheticEvent(wat: unknown): boolean {\n return isPlainObject(wat) && 'nativeEvent' in wat && 'preventDefault' in wat && 'stopPropagation' in wat;\n}\n\n/**\n * Checks whether given value is NaN\n * {@link isNaN}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isNaN(wat: unknown): boolean {\n return typeof wat === 'number' && wat !== wat;\n}\n\n/**\n * Checks whether given value's type is an instance of provided constructor.\n * {@link isInstanceOf}.\n *\n * @param wat A value to be checked.\n * @param base A constructor to be used in a check.\n * @returns A boolean representing the result.\n */\nexport function isInstanceOf(wat: any, base: any): boolean {\n try {\n return wat instanceof base;\n } catch (_e) {\n return false;\n }\n}\n\ninterface VueViewModel {\n // Vue3\n __isVue?: boolean;\n // Vue2\n _isVue?: boolean;\n}\n/**\n * Checks whether given value's type is a Vue ViewModel.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isVueViewModel(wat: unknown): boolean {\n // Not using Object.prototype.toString because in Vue 3 it would read the instance's Symbol(Symbol.toStringTag) property.\n return !!(typeof wat === 'object' && wat !== null && ((wat as VueViewModel).__isVue || (wat as VueViewModel)._isVue));\n}\n", "import { isRegExp, isString, isVueViewModel } from './is';\n\nexport { escapeStringForRegex } from './vendor/escapeStringForRegex';\n\n/**\n * Truncates given string to the maximum characters count\n *\n * @param str An object that contains serializable values\n * @param max Maximum number of characters in truncated string (0 = unlimited)\n * @returns string Encoded\n */\nexport function truncate(str: string, max: number = 0): string {\n if (typeof str !== 'string' || max === 0) {\n return str;\n }\n return str.length <= max ? str : `${str.slice(0, max)}...`;\n}\n\n/**\n * This is basically just `trim_line` from\n * https://github.com/getsentry/sentry/blob/master/src/sentry/lang/javascript/processor.py#L67\n *\n * @param str An object that contains serializable values\n * @param max Maximum number of characters in truncated string\n * @returns string Encoded\n */\nexport function snipLine(line: string, colno: number): string {\n let newLine = line;\n const lineLength = newLine.length;\n if (lineLength <= 150) {\n return newLine;\n }\n if (colno > lineLength) {\n // eslint-disable-next-line no-param-reassign\n colno = lineLength;\n }\n\n let start = Math.max(colno - 60, 0);\n if (start < 5) {\n start = 0;\n }\n\n let end = Math.min(start + 140, lineLength);\n if (end > lineLength - 5) {\n end = lineLength;\n }\n if (end === lineLength) {\n start = Math.max(end - 140, 0);\n }\n\n newLine = newLine.slice(start, end);\n if (start > 0) {\n newLine = `'{snip} ${newLine}`;\n }\n if (end < lineLength) {\n newLine += ' {snip}';\n }\n\n return newLine;\n}\n\n/**\n * Join values in array\n * @param input array of values to be joined together\n * @param delimiter string to be placed in-between values\n * @returns Joined values\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function safeJoin(input: any[], delimiter?: string): string {\n if (!Array.isArray(input)) {\n return '';\n }\n\n const output = [];\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (let i = 0; i < input.length; i++) {\n const value = input[i];\n try {\n // This is a hack to fix a Vue3-specific bug that causes an infinite loop of\n // console warnings. This happens when a Vue template is rendered with\n // an undeclared variable, which we try to stringify, ultimately causing\n // Vue to issue another warning which repeats indefinitely.\n // see: https://github.com/getsentry/sentry-javascript/pull/8981\n if (isVueViewModel(value)) {\n output.push('[VueViewModel]');\n } else {\n output.push(String(value));\n }\n } catch (e) {\n output.push('[value cannot be serialized]');\n }\n }\n\n return output.join(delimiter);\n}\n\n/**\n * Checks if the given value matches a regex or string\n *\n * @param value The string to test\n * @param pattern Either a regex or a string against which `value` will be matched\n * @param requireExactStringMatch If true, `value` must match `pattern` exactly. If false, `value` will match\n * `pattern` if it contains `pattern`. Only applies to string-type patterns.\n */\nexport function isMatchingPattern(\n value: string,\n pattern: RegExp | string,\n requireExactStringMatch: boolean = false,\n): boolean {\n if (!isString(value)) {\n return false;\n }\n\n if (isRegExp(pattern)) {\n return pattern.test(value);\n }\n if (isString(pattern)) {\n return requireExactStringMatch ? value === pattern : value.includes(pattern);\n }\n\n return false;\n}\n\n/**\n * Test the given string against an array of strings and regexes. By default, string matching is done on a\n * substring-inclusion basis rather than a strict equality basis\n *\n * @param testString The string to test\n * @param patterns The patterns against which to test the string\n * @param requireExactStringMatch If true, `testString` must match one of the given string patterns exactly in order to\n * count. If false, `testString` will match a string pattern if it contains that pattern.\n * @returns\n */\nexport function stringMatchesSomePattern(\n testString: string,\n patterns: Array = [],\n requireExactStringMatch: boolean = false,\n): boolean {\n return patterns.some(pattern => isMatchingPattern(testString, pattern, requireExactStringMatch));\n}\n", "import type { Event, EventHint, Exception, ExtendedError, StackParser } from '@sentry/types';\n\nimport { isInstanceOf } from './is';\nimport { truncate } from './string';\n\n/**\n * Creates exceptions inside `event.exception.values` for errors that are nested on properties based on the `key` parameter.\n */\nexport function applyAggregateErrorsToEvent(\n exceptionFromErrorImplementation: (stackParser: StackParser, ex: Error) => Exception,\n parser: StackParser,\n maxValueLimit: number = 250,\n key: string,\n limit: number,\n event: Event,\n hint?: EventHint,\n): void {\n if (!event.exception || !event.exception.values || !hint || !isInstanceOf(hint.originalException, Error)) {\n return;\n }\n\n // Generally speaking the last item in `event.exception.values` is the exception originating from the original Error\n const originalException: Exception | undefined =\n event.exception.values.length > 0 ? event.exception.values[event.exception.values.length - 1] : undefined;\n\n // We only create exception grouping if there is an exception in the event.\n if (originalException) {\n event.exception.values = truncateAggregateExceptions(\n aggregateExceptionsFromError(\n exceptionFromErrorImplementation,\n parser,\n limit,\n hint.originalException as ExtendedError,\n key,\n event.exception.values,\n originalException,\n 0,\n ),\n maxValueLimit,\n );\n }\n}\n\nfunction aggregateExceptionsFromError(\n exceptionFromErrorImplementation: (stackParser: StackParser, ex: Error) => Exception,\n parser: StackParser,\n limit: number,\n error: ExtendedError,\n key: string,\n prevExceptions: Exception[],\n exception: Exception,\n exceptionId: number,\n): Exception[] {\n if (prevExceptions.length >= limit + 1) {\n return prevExceptions;\n }\n\n let newExceptions = [...prevExceptions];\n\n // Recursively call this function in order to walk down a chain of errors\n if (isInstanceOf(error[key], Error)) {\n applyExceptionGroupFieldsForParentException(exception, exceptionId);\n const newException = exceptionFromErrorImplementation(parser, error[key]);\n const newExceptionId = newExceptions.length;\n applyExceptionGroupFieldsForChildException(newException, key, newExceptionId, exceptionId);\n newExceptions = aggregateExceptionsFromError(\n exceptionFromErrorImplementation,\n parser,\n limit,\n error[key],\n key,\n [newException, ...newExceptions],\n newException,\n newExceptionId,\n );\n }\n\n // This will create exception grouping for AggregateErrors\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError\n if (Array.isArray(error.errors)) {\n error.errors.forEach((childError, i) => {\n if (isInstanceOf(childError, Error)) {\n applyExceptionGroupFieldsForParentException(exception, exceptionId);\n const newException = exceptionFromErrorImplementation(parser, childError);\n const newExceptionId = newExceptions.length;\n applyExceptionGroupFieldsForChildException(newException, `errors[${i}]`, newExceptionId, exceptionId);\n newExceptions = aggregateExceptionsFromError(\n exceptionFromErrorImplementation,\n parser,\n limit,\n childError,\n key,\n [newException, ...newExceptions],\n newException,\n newExceptionId,\n );\n }\n });\n }\n\n return newExceptions;\n}\n\nfunction applyExceptionGroupFieldsForParentException(exception: Exception, exceptionId: number): void {\n // Don't know if this default makes sense. The protocol requires us to set these values so we pick *some* default.\n exception.mechanism = exception.mechanism || { type: 'generic', handled: true };\n\n exception.mechanism = {\n ...exception.mechanism,\n ...(exception.type === 'AggregateError' && { is_exception_group: true }),\n exception_id: exceptionId,\n };\n}\n\nfunction applyExceptionGroupFieldsForChildException(\n exception: Exception,\n source: string,\n exceptionId: number,\n parentId: number | undefined,\n): void {\n // Don't know if this default makes sense. The protocol requires us to set these values so we pick *some* default.\n exception.mechanism = exception.mechanism || { type: 'generic', handled: true };\n\n exception.mechanism = {\n ...exception.mechanism,\n type: 'chained',\n source,\n exception_id: exceptionId,\n parent_id: parentId,\n };\n}\n\n/**\n * Truncate the message (exception.value) of all exceptions in the event.\n * Because this event processor is ran after `applyClientOptions`,\n * we need to truncate the message of the added exceptions here.\n */\nfunction truncateAggregateExceptions(exceptions: Exception[], maxValueLength: number): Exception[] {\n return exceptions.map(exception => {\n if (exception.value) {\n exception.value = truncate(exception.value, maxValueLength);\n }\n return exception;\n });\n}\n", "/**\n * NOTE: In order to avoid circular dependencies, if you add a function to this module and it needs to print something,\n * you must either a) use `console.log` rather than the logger, or b) put your function elsewhere.\n *\n * Note: This file was originally called `global.ts`, but was changed to unblock users which might be doing\n * string replaces with bundlers like Vite for `global` (would break imports that rely on importing from utils/src/global).\n *\n * Why worldwide?\n *\n * Why not?\n */\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport type { Integration } from '@sentry/types';\n\nimport type { SdkSource } from './env';\n\n/** Internal global with common properties and Sentry extensions */\nexport interface InternalGlobal {\n navigator?: { userAgent?: string };\n console: Console;\n Sentry?: {\n Integrations?: Integration[];\n };\n onerror?: {\n (event: object | string, source?: string, lineno?: number, colno?: number, error?: Error): any;\n __SENTRY_INSTRUMENTED__?: true;\n __SENTRY_LOADER__?: true;\n };\n onunhandledrejection?: {\n (event: unknown): boolean;\n __SENTRY_INSTRUMENTED__?: true;\n __SENTRY_LOADER__?: true;\n };\n SENTRY_ENVIRONMENT?: string;\n SENTRY_DSN?: string;\n SENTRY_RELEASE?: {\n id?: string;\n };\n SENTRY_SDK_SOURCE?: SdkSource;\n /**\n * Debug IDs are indirectly injected by Sentry CLI or bundler plugins to directly reference a particular source map\n * for resolving of a source file. The injected code will place an entry into the record for each loaded bundle/JS\n * file.\n */\n _sentryDebugIds?: Record;\n __SENTRY__: {\n globalEventProcessors: any;\n hub: any;\n logger: any;\n extensions?: {\n /** Extension methods for the hub, which are bound to the current Hub instance */\n // eslint-disable-next-line @typescript-eslint/ban-types\n [key: string]: Function;\n };\n };\n /**\n * Raw module metadata that is injected by bundler plugins.\n *\n * Keys are `error.stack` strings, values are the metadata.\n */\n _sentryModuleMetadata?: Record;\n}\n\n// The code below for 'isGlobalObj' and 'GLOBAL_OBJ' was copied from core-js before modification\n// https://github.com/zloirock/core-js/blob/1b944df55282cdc99c90db5f49eb0b6eda2cc0a3/packages/core-js/internals/global.js\n// core-js has the following licence:\n//\n// Copyright (c) 2014-2022 Denis Pushkarev\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n/** Returns 'obj' if it's the global object, otherwise returns undefined */\nfunction isGlobalObj(obj: { Math?: Math }): any | undefined {\n return obj && obj.Math == Math ? obj : undefined;\n}\n\n/** Get's the global object for the current JavaScript runtime */\nexport const GLOBAL_OBJ: InternalGlobal =\n (typeof globalThis == 'object' && isGlobalObj(globalThis)) ||\n // eslint-disable-next-line no-restricted-globals\n (typeof window == 'object' && isGlobalObj(window)) ||\n (typeof self == 'object' && isGlobalObj(self)) ||\n (typeof global == 'object' && isGlobalObj(global)) ||\n (function (this: any) {\n return this;\n })() ||\n {};\n\n/**\n * @deprecated Use GLOBAL_OBJ instead or WINDOW from @sentry/browser. This will be removed in v8\n */\nexport function getGlobalObject(): T & InternalGlobal {\n return GLOBAL_OBJ as T & InternalGlobal;\n}\n\n/**\n * Returns a global singleton contained in the global `__SENTRY__` object.\n *\n * If the singleton doesn't already exist in `__SENTRY__`, it will be created using the given factory\n * function and added to the `__SENTRY__` object.\n *\n * @param name name of the global singleton on __SENTRY__\n * @param creator creator Factory function to create the singleton if it doesn't already exist on `__SENTRY__`\n * @param obj (Optional) The global object on which to look for `__SENTRY__`, if not `GLOBAL_OBJ`'s return value\n * @returns the singleton\n */\nexport function getGlobalSingleton(name: keyof InternalGlobal['__SENTRY__'], creator: () => T, obj?: unknown): T {\n const gbl = (obj || GLOBAL_OBJ) as InternalGlobal;\n const __SENTRY__ = (gbl.__SENTRY__ = gbl.__SENTRY__ || {});\n const singleton = __SENTRY__[name] || (__SENTRY__[name] = creator());\n return singleton;\n}\n", "import { isString } from './is';\nimport { getGlobalObject } from './worldwide';\n\n// eslint-disable-next-line deprecation/deprecation\nconst WINDOW = getGlobalObject();\n\nconst DEFAULT_MAX_STRING_LENGTH = 80;\n\ntype SimpleNode = {\n parentNode: SimpleNode;\n} | null;\n\n/**\n * Given a child DOM element, returns a query-selector statement describing that\n * and its ancestors\n * e.g. [HTMLElement] => body > div > input#foo.btn[name=baz]\n * @returns generated DOM path\n */\nexport function htmlTreeAsString(\n elem: unknown,\n options: string[] | { keyAttrs?: string[]; maxStringLength?: number } = {},\n): string {\n if (!elem) {\n return '';\n }\n\n // try/catch both:\n // - accessing event.target (see getsentry/raven-js#838, #768)\n // - `htmlTreeAsString` because it's complex, and just accessing the DOM incorrectly\n // - can throw an exception in some circumstances.\n try {\n let currentElem = elem as SimpleNode;\n const MAX_TRAVERSE_HEIGHT = 5;\n const out = [];\n let height = 0;\n let len = 0;\n const separator = ' > ';\n const sepLength = separator.length;\n let nextStr;\n const keyAttrs = Array.isArray(options) ? options : options.keyAttrs;\n const maxStringLength = (!Array.isArray(options) && options.maxStringLength) || DEFAULT_MAX_STRING_LENGTH;\n\n while (currentElem && height++ < MAX_TRAVERSE_HEIGHT) {\n nextStr = _htmlElementAsString(currentElem, keyAttrs);\n // bail out if\n // - nextStr is the 'html' element\n // - the length of the string that would be created exceeds maxStringLength\n // (ignore this limit if we are on the first iteration)\n if (nextStr === 'html' || (height > 1 && len + out.length * sepLength + nextStr.length >= maxStringLength)) {\n break;\n }\n\n out.push(nextStr);\n\n len += nextStr.length;\n currentElem = currentElem.parentNode;\n }\n\n return out.reverse().join(separator);\n } catch (_oO) {\n return '';\n }\n}\n\n/**\n * Returns a simple, query-selector representation of a DOM element\n * e.g. [HTMLElement] => input#foo.btn[name=baz]\n * @returns generated DOM path\n */\nfunction _htmlElementAsString(el: unknown, keyAttrs?: string[]): string {\n const elem = el as {\n tagName?: string;\n id?: string;\n className?: string;\n getAttribute(key: string): string;\n };\n\n const out = [];\n let className;\n let classes;\n let key;\n let attr;\n let i;\n\n if (!elem || !elem.tagName) {\n return '';\n }\n\n // @ts-expect-error WINDOW has HTMLElement\n if (WINDOW.HTMLElement) {\n // If using the component name annotation plugin, this value may be available on the DOM node\n if (elem instanceof HTMLElement && elem.dataset && elem.dataset['sentryComponent']) {\n return elem.dataset['sentryComponent'];\n }\n }\n\n out.push(elem.tagName.toLowerCase());\n\n // Pairs of attribute keys defined in `serializeAttribute` and their values on element.\n const keyAttrPairs =\n keyAttrs && keyAttrs.length\n ? keyAttrs.filter(keyAttr => elem.getAttribute(keyAttr)).map(keyAttr => [keyAttr, elem.getAttribute(keyAttr)])\n : null;\n\n if (keyAttrPairs && keyAttrPairs.length) {\n keyAttrPairs.forEach(keyAttrPair => {\n out.push(`[${keyAttrPair[0]}=\"${keyAttrPair[1]}\"]`);\n });\n } else {\n if (elem.id) {\n out.push(`#${elem.id}`);\n }\n\n // eslint-disable-next-line prefer-const\n className = elem.className;\n if (className && isString(className)) {\n classes = className.split(/\\s+/);\n for (i = 0; i < classes.length; i++) {\n out.push(`.${classes[i]}`);\n }\n }\n }\n const allowedAttrs = ['aria-label', 'type', 'name', 'title', 'alt'];\n for (i = 0; i < allowedAttrs.length; i++) {\n key = allowedAttrs[i];\n attr = elem.getAttribute(key);\n if (attr) {\n out.push(`[${key}=\"${attr}\"]`);\n }\n }\n return out.join('');\n}\n\n/**\n * A safe form of location.href\n */\nexport function getLocationHref(): string {\n try {\n return WINDOW.document.location.href;\n } catch (oO) {\n return '';\n }\n}\n\n/**\n * Gets a DOM element by using document.querySelector.\n *\n * This wrapper will first check for the existance of the function before\n * actually calling it so that we don't have to take care of this check,\n * every time we want to access the DOM.\n *\n * Reason: DOM/querySelector is not available in all environments.\n *\n * We have to cast to any because utils can be consumed by a variety of environments,\n * and we don't want to break TS users. If you know what element will be selected by\n * `document.querySelector`, specify it as part of the generic call. For example,\n * `const element = getDomElement('selector');`\n *\n * @param selector the selector string passed on to document.querySelector\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function getDomElement(selector: string): E | null {\n if (WINDOW.document && WINDOW.document.querySelector) {\n return WINDOW.document.querySelector(selector) as unknown as E;\n }\n return null;\n}\n\n/**\n * Given a DOM element, traverses up the tree until it finds the first ancestor node\n * that has the `data-sentry-component` attribute. This attribute is added at build-time\n * by projects that have the component name annotation plugin installed.\n *\n * @returns a string representation of the component for the provided DOM element, or `null` if not found\n */\nexport function getComponentName(elem: unknown): string | null {\n // @ts-expect-error WINDOW has HTMLElement\n if (!WINDOW.HTMLElement) {\n return null;\n }\n\n let currentElem = elem as SimpleNode;\n const MAX_TRAVERSE_HEIGHT = 5;\n for (let i = 0; i < MAX_TRAVERSE_HEIGHT; i++) {\n if (!currentElem) {\n return null;\n }\n\n if (currentElem instanceof HTMLElement && currentElem.dataset['sentryComponent']) {\n return currentElem.dataset['sentryComponent'];\n }\n\n currentElem = currentElem.parentNode;\n }\n\n return null;\n}\n", "declare const __DEBUG_BUILD__: boolean;\n\n/**\n * This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.\n *\n * ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.\n */\nexport const DEBUG_BUILD = __DEBUG_BUILD__;\n", "import type { ConsoleLevel } from '@sentry/types';\n\nimport { DEBUG_BUILD } from './debug-build';\nimport { GLOBAL_OBJ } from './worldwide';\n\n/** Prefix for logging strings */\nconst PREFIX = 'Sentry Logger ';\n\nexport const CONSOLE_LEVELS: readonly ConsoleLevel[] = [\n 'debug',\n 'info',\n 'warn',\n 'error',\n 'log',\n 'assert',\n 'trace',\n] as const;\n\ntype LoggerMethod = (...args: unknown[]) => void;\ntype LoggerConsoleMethods = Record;\n\n/** This may be mutated by the console instrumentation. */\nexport const originalConsoleMethods: {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [key in ConsoleLevel]?: (...args: any[]) => void;\n} = {};\n\n/** JSDoc */\ninterface Logger extends LoggerConsoleMethods {\n disable(): void;\n enable(): void;\n isEnabled(): boolean;\n}\n\n/**\n * Temporarily disable sentry console instrumentations.\n *\n * @param callback The function to run against the original `console` messages\n * @returns The results of the callback\n */\nexport function consoleSandbox(callback: () => T): T {\n if (!('console' in GLOBAL_OBJ)) {\n return callback();\n }\n\n const console = GLOBAL_OBJ.console as Console;\n const wrappedFuncs: Partial = {};\n\n const wrappedLevels = Object.keys(originalConsoleMethods) as ConsoleLevel[];\n\n // Restore all wrapped console methods\n wrappedLevels.forEach(level => {\n const originalConsoleMethod = originalConsoleMethods[level] as LoggerMethod;\n wrappedFuncs[level] = console[level] as LoggerMethod | undefined;\n console[level] = originalConsoleMethod;\n });\n\n try {\n return callback();\n } finally {\n // Revert restoration to wrapped state\n wrappedLevels.forEach(level => {\n console[level] = wrappedFuncs[level] as LoggerMethod;\n });\n }\n}\n\nfunction makeLogger(): Logger {\n let enabled = false;\n const logger: Partial = {\n enable: () => {\n enabled = true;\n },\n disable: () => {\n enabled = false;\n },\n isEnabled: () => enabled,\n };\n\n if (DEBUG_BUILD) {\n CONSOLE_LEVELS.forEach(name => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n logger[name] = (...args: any[]) => {\n if (enabled) {\n consoleSandbox(() => {\n GLOBAL_OBJ.console[name](`${PREFIX}[${name}]:`, ...args);\n });\n }\n };\n });\n } else {\n CONSOLE_LEVELS.forEach(name => {\n logger[name] = () => undefined;\n });\n }\n\n return logger as Logger;\n}\n\nexport const logger = makeLogger();\n", "import type { DsnComponents, DsnLike, DsnProtocol } from '@sentry/types';\n\nimport { DEBUG_BUILD } from './debug-build';\nimport { consoleSandbox, logger } from './logger';\n\n/** Regular expression used to parse a Dsn. */\nconst DSN_REGEX = /^(?:(\\w+):)\\/\\/(?:(\\w+)(?::(\\w+)?)?@)([\\w.-]+)(?::(\\d+))?\\/(.+)/;\n\nfunction isValidProtocol(protocol?: string): protocol is DsnProtocol {\n return protocol === 'http' || protocol === 'https';\n}\n\n/**\n * Renders the string representation of this Dsn.\n *\n * By default, this will render the public representation without the password\n * component. To get the deprecated private representation, set `withPassword`\n * to true.\n *\n * @param withPassword When set to true, the password will be included.\n */\nexport function dsnToString(dsn: DsnComponents, withPassword: boolean = false): string {\n const { host, path, pass, port, projectId, protocol, publicKey } = dsn;\n return (\n `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ''}` +\n `@${host}${port ? `:${port}` : ''}/${path ? `${path}/` : path}${projectId}`\n );\n}\n\n/**\n * Parses a Dsn from a given string.\n *\n * @param str A Dsn as string\n * @returns Dsn as DsnComponents or undefined if @param str is not a valid DSN string\n */\nexport function dsnFromString(str: string): DsnComponents | undefined {\n const match = DSN_REGEX.exec(str);\n\n if (!match) {\n // This should be logged to the console\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.error(`Invalid Sentry Dsn: ${str}`);\n });\n return undefined;\n }\n\n const [protocol, publicKey, pass = '', host, port = '', lastPath] = match.slice(1);\n let path = '';\n let projectId = lastPath;\n\n const split = projectId.split('/');\n if (split.length > 1) {\n path = split.slice(0, -1).join('/');\n projectId = split.pop() as string;\n }\n\n if (projectId) {\n const projectMatch = projectId.match(/^\\d+/);\n if (projectMatch) {\n projectId = projectMatch[0];\n }\n }\n\n return dsnFromComponents({ host, pass, path, projectId, port, protocol: protocol as DsnProtocol, publicKey });\n}\n\nfunction dsnFromComponents(components: DsnComponents): DsnComponents {\n return {\n protocol: components.protocol,\n publicKey: components.publicKey || '',\n pass: components.pass || '',\n host: components.host,\n port: components.port || '',\n path: components.path || '',\n projectId: components.projectId,\n };\n}\n\nfunction validateDsn(dsn: DsnComponents): boolean {\n if (!DEBUG_BUILD) {\n return true;\n }\n\n const { port, projectId, protocol } = dsn;\n\n const requiredComponents: ReadonlyArray = ['protocol', 'publicKey', 'host', 'projectId'];\n const hasMissingRequiredComponent = requiredComponents.find(component => {\n if (!dsn[component]) {\n logger.error(`Invalid Sentry Dsn: ${component} missing`);\n return true;\n }\n return false;\n });\n\n if (hasMissingRequiredComponent) {\n return false;\n }\n\n if (!projectId.match(/^\\d+$/)) {\n logger.error(`Invalid Sentry Dsn: Invalid projectId ${projectId}`);\n return false;\n }\n\n if (!isValidProtocol(protocol)) {\n logger.error(`Invalid Sentry Dsn: Invalid protocol ${protocol}`);\n return false;\n }\n\n if (port && isNaN(parseInt(port, 10))) {\n logger.error(`Invalid Sentry Dsn: Invalid port ${port}`);\n return false;\n }\n\n return true;\n}\n\n/**\n * Creates a valid Sentry Dsn object, identifying a Sentry instance and project.\n * @returns a valid DsnComponents object or `undefined` if @param from is an invalid DSN source\n */\nexport function makeDsn(from: DsnLike): DsnComponents | undefined {\n const components = typeof from === 'string' ? dsnFromString(from) : dsnFromComponents(from);\n if (!components || !validateDsn(components)) {\n return undefined;\n }\n return components;\n}\n", "import type { ConsoleLevel } from '@sentry/types';\n\n/** An error emitted by Sentry SDKs and related utilities. */\nexport class SentryError extends Error {\n /** Display name of this error instance. */\n public name: string;\n\n public logLevel: ConsoleLevel;\n\n public constructor(public message: string, logLevel: ConsoleLevel = 'warn') {\n super(message);\n\n this.name = new.target.prototype.constructor.name;\n // This sets the prototype to be `Error`, not `SentryError`. It's unclear why we do this, but commenting this line\n // out causes various (seemingly totally unrelated) playwright tests consistently time out. FYI, this makes\n // instances of `SentryError` fail `obj instanceof SentryError` checks.\n Object.setPrototypeOf(this, new.target.prototype);\n this.logLevel = logLevel;\n }\n}\n", "/* eslint-disable max-lines */\n/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { WrappedFunction } from '@sentry/types';\n\nimport { htmlTreeAsString } from './browser';\nimport { DEBUG_BUILD } from './debug-build';\nimport { isElement, isError, isEvent, isInstanceOf, isPlainObject, isPrimitive } from './is';\nimport { logger } from './logger';\nimport { truncate } from './string';\n\n/**\n * Replace a method in an object with a wrapped version of itself.\n *\n * @param source An object that contains a method to be wrapped.\n * @param name The name of the method to be wrapped.\n * @param replacementFactory A higher-order function that takes the original version of the given method and returns a\n * wrapped version. Note: The function returned by `replacementFactory` needs to be a non-arrow function, in order to\n * preserve the correct value of `this`, and the original method must be called using `origMethod.call(this, )` or `origMethod.apply(this, [])` (rather than being called directly), again to preserve `this`.\n * @returns void\n */\nexport function fill(source: { [key: string]: any }, name: string, replacementFactory: (...args: any[]) => any): void {\n if (!(name in source)) {\n return;\n }\n\n const original = source[name] as () => any;\n const wrapped = replacementFactory(original) as WrappedFunction;\n\n // Make sure it's a function first, as we need to attach an empty prototype for `defineProperties` to work\n // otherwise it'll throw \"TypeError: Object.defineProperties called on non-object\"\n if (typeof wrapped === 'function') {\n markFunctionWrapped(wrapped, original);\n }\n\n source[name] = wrapped;\n}\n\n/**\n * Defines a non-enumerable property on the given object.\n *\n * @param obj The object on which to set the property\n * @param name The name of the property to be set\n * @param value The value to which to set the property\n */\nexport function addNonEnumerableProperty(obj: object, name: string, value: unknown): void {\n try {\n Object.defineProperty(obj, name, {\n // enumerable: false, // the default, so we can save on bundle size by not explicitly setting it\n value: value,\n writable: true,\n configurable: true,\n });\n } catch (o_O) {\n DEBUG_BUILD && logger.log(`Failed to add non-enumerable property \"${name}\" to object`, obj);\n }\n}\n\n/**\n * Remembers the original function on the wrapped function and\n * patches up the prototype.\n *\n * @param wrapped the wrapper function\n * @param original the original function that gets wrapped\n */\nexport function markFunctionWrapped(wrapped: WrappedFunction, original: WrappedFunction): void {\n try {\n const proto = original.prototype || {};\n wrapped.prototype = original.prototype = proto;\n addNonEnumerableProperty(wrapped, '__sentry_original__', original);\n } catch (o_O) {} // eslint-disable-line no-empty\n}\n\n/**\n * This extracts the original function if available. See\n * `markFunctionWrapped` for more information.\n *\n * @param func the function to unwrap\n * @returns the unwrapped version of the function if available.\n */\nexport function getOriginalFunction(func: WrappedFunction): WrappedFunction | undefined {\n return func.__sentry_original__;\n}\n\n/**\n * Encodes given object into url-friendly format\n *\n * @param object An object that contains serializable values\n * @returns string Encoded\n */\nexport function urlEncode(object: { [key: string]: any }): string {\n return Object.keys(object)\n .map(key => `${encodeURIComponent(key)}=${encodeURIComponent(object[key])}`)\n .join('&');\n}\n\n/**\n * Transforms any `Error` or `Event` into a plain object with all of their enumerable properties, and some of their\n * non-enumerable properties attached.\n *\n * @param value Initial source that we have to transform in order for it to be usable by the serializer\n * @returns An Event or Error turned into an object - or the value argurment itself, when value is neither an Event nor\n * an Error.\n */\nexport function convertToPlainObject(\n value: V,\n):\n | {\n [ownProps: string]: unknown;\n type: string;\n target: string;\n currentTarget: string;\n detail?: unknown;\n }\n | {\n [ownProps: string]: unknown;\n message: string;\n name: string;\n stack?: string;\n }\n | V {\n if (isError(value)) {\n return {\n message: value.message,\n name: value.name,\n stack: value.stack,\n ...getOwnProperties(value),\n };\n } else if (isEvent(value)) {\n const newObj: {\n [ownProps: string]: unknown;\n type: string;\n target: string;\n currentTarget: string;\n detail?: unknown;\n } = {\n type: value.type,\n target: serializeEventTarget(value.target),\n currentTarget: serializeEventTarget(value.currentTarget),\n ...getOwnProperties(value),\n };\n\n if (typeof CustomEvent !== 'undefined' && isInstanceOf(value, CustomEvent)) {\n newObj.detail = value.detail;\n }\n\n return newObj;\n } else {\n return value;\n }\n}\n\n/** Creates a string representation of the target of an `Event` object */\nfunction serializeEventTarget(target: unknown): string {\n try {\n return isElement(target) ? htmlTreeAsString(target) : Object.prototype.toString.call(target);\n } catch (_oO) {\n return '';\n }\n}\n\n/** Filters out all but an object's own properties */\nfunction getOwnProperties(obj: unknown): { [key: string]: unknown } {\n if (typeof obj === 'object' && obj !== null) {\n const extractedProps: { [key: string]: unknown } = {};\n for (const property in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, property)) {\n extractedProps[property] = (obj as Record)[property];\n }\n }\n return extractedProps;\n } else {\n return {};\n }\n}\n\n/**\n * Given any captured exception, extract its keys and create a sorted\n * and truncated list that will be used inside the event message.\n * eg. `Non-error exception captured with keys: foo, bar, baz`\n */\nexport function extractExceptionKeysForMessage(exception: Record, maxLength: number = 40): string {\n const keys = Object.keys(convertToPlainObject(exception));\n keys.sort();\n\n if (!keys.length) {\n return '[object has no keys]';\n }\n\n if (keys[0].length >= maxLength) {\n return truncate(keys[0], maxLength);\n }\n\n for (let includedKeys = keys.length; includedKeys > 0; includedKeys--) {\n const serialized = keys.slice(0, includedKeys).join(', ');\n if (serialized.length > maxLength) {\n continue;\n }\n if (includedKeys === keys.length) {\n return serialized;\n }\n return truncate(serialized, maxLength);\n }\n\n return '';\n}\n\n/**\n * Given any object, return a new object having removed all fields whose value was `undefined`.\n * Works recursively on objects and arrays.\n *\n * Attention: This function keeps circular references in the returned object.\n */\nexport function dropUndefinedKeys(inputValue: T): T {\n // This map keeps track of what already visited nodes map to.\n // Our Set - based memoBuilder doesn't work here because we want to the output object to have the same circular\n // references as the input object.\n const memoizationMap = new Map();\n\n // This function just proxies `_dropUndefinedKeys` to keep the `memoBuilder` out of this function's API\n return _dropUndefinedKeys(inputValue, memoizationMap);\n}\n\nfunction _dropUndefinedKeys(inputValue: T, memoizationMap: Map): T {\n if (isPojo(inputValue)) {\n // If this node has already been visited due to a circular reference, return the object it was mapped to in the new object\n const memoVal = memoizationMap.get(inputValue);\n if (memoVal !== undefined) {\n return memoVal as T;\n }\n\n const returnValue: { [key: string]: any } = {};\n // Store the mapping of this value in case we visit it again, in case of circular data\n memoizationMap.set(inputValue, returnValue);\n\n for (const key of Object.keys(inputValue)) {\n if (typeof inputValue[key] !== 'undefined') {\n returnValue[key] = _dropUndefinedKeys(inputValue[key], memoizationMap);\n }\n }\n\n return returnValue as T;\n }\n\n if (Array.isArray(inputValue)) {\n // If this node has already been visited due to a circular reference, return the array it was mapped to in the new object\n const memoVal = memoizationMap.get(inputValue);\n if (memoVal !== undefined) {\n return memoVal as T;\n }\n\n const returnValue: unknown[] = [];\n // Store the mapping of this value in case we visit it again, in case of circular data\n memoizationMap.set(inputValue, returnValue);\n\n inputValue.forEach((item: unknown) => {\n returnValue.push(_dropUndefinedKeys(item, memoizationMap));\n });\n\n return returnValue as unknown as T;\n }\n\n return inputValue;\n}\n\nfunction isPojo(input: unknown): input is Record {\n if (!isPlainObject(input)) {\n return false;\n }\n\n try {\n const name = (Object.getPrototypeOf(input) as { constructor: { name: string } }).constructor.name;\n return !name || name === 'Object';\n } catch {\n return true;\n }\n}\n\n/**\n * Ensure that something is an object.\n *\n * Turns `undefined` and `null` into `String`s and all other primitives into instances of their respective wrapper\n * classes (String, Boolean, Number, etc.). Acts as the identity function on non-primitives.\n *\n * @param wat The subject of the objectification\n * @returns A version of `wat` which can safely be used with `Object` class methods\n */\nexport function objectify(wat: unknown): typeof Object {\n let objectified;\n switch (true) {\n case wat === undefined || wat === null:\n objectified = new String(wat);\n break;\n\n // Though symbols and bigints do have wrapper classes (`Symbol` and `BigInt`, respectively), for whatever reason\n // those classes don't have constructors which can be used with the `new` keyword. We therefore need to cast each as\n // an object in order to wrap it.\n case typeof wat === 'symbol' || typeof wat === 'bigint':\n objectified = Object(wat);\n break;\n\n // this will catch the remaining primitives: `String`, `Number`, and `Boolean`\n case isPrimitive(wat):\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n objectified = new (wat as any).constructor(wat);\n break;\n\n // by process of elimination, at this point we know that `wat` must already be an object\n default:\n objectified = wat;\n break;\n }\n return objectified;\n}\n", "// This code was originally forked from https://github.com/felixge/node-stack-trace\n// Since then it has been highly modified to fit our needs.\n\n// Copyright (c) 2011 Felix Geisendörfer (felix@debuggable.com)//\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions://\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.//\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\nimport type { StackLineParserFn } from '@sentry/types';\n\nexport type GetModuleFn = (filename: string | undefined) => string | undefined;\n\n/**\n * Does this filename look like it's part of the app code?\n */\nexport function filenameIsInApp(filename: string, isNative: boolean = false): boolean {\n const isInternal =\n isNative ||\n (filename &&\n // It's not internal if it's an absolute linux path\n !filename.startsWith('/') &&\n // It's not internal if it's an absolute windows path\n !filename.match(/^[A-Z]:/) &&\n // It's not internal if the path is starting with a dot\n !filename.startsWith('.') &&\n // It's not internal if the frame has a protocol. In node, this is usually the case if the file got pre-processed with a bundler like webpack\n !filename.match(/^[a-zA-Z]([a-zA-Z0-9.\\-+])*:\\/\\//)); // Schema from: https://stackoverflow.com/a/3641782\n\n // in_app is all that's not an internal Node function or a module within node_modules\n // note that isNative appears to return true even for node core libraries\n // see https://github.com/getsentry/raven-node/issues/176\n\n return !isInternal && filename !== undefined && !filename.includes('node_modules/');\n}\n\n/** Node Stack line parser */\n// eslint-disable-next-line complexity\nexport function node(getModule?: GetModuleFn): StackLineParserFn {\n const FILENAME_MATCH = /^\\s*[-]{4,}$/;\n const FULL_MATCH = /at (?:async )?(?:(.+?)\\s+\\()?(?:(.+):(\\d+):(\\d+)?|([^)]+))\\)?/;\n\n // eslint-disable-next-line complexity\n return (line: string) => {\n const lineMatch = line.match(FULL_MATCH);\n\n if (lineMatch) {\n let object: string | undefined;\n let method: string | undefined;\n let functionName: string | undefined;\n let typeName: string | undefined;\n let methodName: string | undefined;\n\n if (lineMatch[1]) {\n functionName = lineMatch[1];\n\n let methodStart = functionName.lastIndexOf('.');\n if (functionName[methodStart - 1] === '.') {\n methodStart--;\n }\n\n if (methodStart > 0) {\n object = functionName.slice(0, methodStart);\n method = functionName.slice(methodStart + 1);\n const objectEnd = object.indexOf('.Module');\n if (objectEnd > 0) {\n functionName = functionName.slice(objectEnd + 1);\n object = object.slice(0, objectEnd);\n }\n }\n typeName = undefined;\n }\n\n if (method) {\n typeName = object;\n methodName = method;\n }\n\n if (method === '') {\n methodName = undefined;\n functionName = undefined;\n }\n\n if (functionName === undefined) {\n methodName = methodName || '';\n functionName = typeName ? `${typeName}.${methodName}` : methodName;\n }\n\n let filename = lineMatch[2] && lineMatch[2].startsWith('file://') ? lineMatch[2].slice(7) : lineMatch[2];\n const isNative = lineMatch[5] === 'native';\n\n // If it's a Windows path, trim the leading slash so that `/C:/foo` becomes `C:/foo`\n if (filename && filename.match(/\\/[A-Z]:/)) {\n filename = filename.slice(1);\n }\n\n if (!filename && lineMatch[5] && !isNative) {\n filename = lineMatch[5];\n }\n\n return {\n filename,\n module: getModule ? getModule(filename) : undefined,\n function: functionName,\n lineno: parseInt(lineMatch[3], 10) || undefined,\n colno: parseInt(lineMatch[4], 10) || undefined,\n in_app: filenameIsInApp(filename, isNative),\n };\n }\n\n if (line.match(FILENAME_MATCH)) {\n return {\n filename: line,\n };\n }\n\n return undefined;\n };\n}\n", "import type { StackFrame, StackLineParser, StackParser } from '@sentry/types';\n\nimport type { GetModuleFn } from './node-stack-trace';\nimport { filenameIsInApp, node } from './node-stack-trace';\n\nexport { filenameIsInApp };\n\nconst STACKTRACE_FRAME_LIMIT = 50;\n// Used to sanitize webpack (error: *) wrapped stack errors\nconst WEBPACK_ERROR_REGEXP = /\\(error: (.*)\\)/;\nconst STRIP_FRAME_REGEXP = /captureMessage|captureException/;\n\n/**\n * Creates a stack parser with the supplied line parsers\n *\n * StackFrames are returned in the correct order for Sentry Exception\n * frames and with Sentry SDK internal frames removed from the top and bottom\n *\n */\nexport function createStackParser(...parsers: StackLineParser[]): StackParser {\n const sortedParsers = parsers.sort((a, b) => a[0] - b[0]).map(p => p[1]);\n\n return (stack: string, skipFirst: number = 0): StackFrame[] => {\n const frames: StackFrame[] = [];\n const lines = stack.split('\\n');\n\n for (let i = skipFirst; i < lines.length; i++) {\n const line = lines[i];\n // Ignore lines over 1kb as they are unlikely to be stack frames.\n // Many of the regular expressions use backtracking which results in run time that increases exponentially with\n // input size. Huge strings can result in hangs/Denial of Service:\n // https://github.com/getsentry/sentry-javascript/issues/2286\n if (line.length > 1024) {\n continue;\n }\n\n // https://github.com/getsentry/sentry-javascript/issues/5459\n // Remove webpack (error: *) wrappers\n const cleanedLine = WEBPACK_ERROR_REGEXP.test(line) ? line.replace(WEBPACK_ERROR_REGEXP, '$1') : line;\n\n // https://github.com/getsentry/sentry-javascript/issues/7813\n // Skip Error: lines\n if (cleanedLine.match(/\\S*Error: /)) {\n continue;\n }\n\n for (const parser of sortedParsers) {\n const frame = parser(cleanedLine);\n\n if (frame) {\n frames.push(frame);\n break;\n }\n }\n\n if (frames.length >= STACKTRACE_FRAME_LIMIT) {\n break;\n }\n }\n\n return stripSentryFramesAndReverse(frames);\n };\n}\n\n/**\n * Gets a stack parser implementation from Options.stackParser\n * @see Options\n *\n * If options contains an array of line parsers, it is converted into a parser\n */\nexport function stackParserFromStackParserOptions(stackParser: StackParser | StackLineParser[]): StackParser {\n if (Array.isArray(stackParser)) {\n return createStackParser(...stackParser);\n }\n return stackParser;\n}\n\n/**\n * Removes Sentry frames from the top and bottom of the stack if present and enforces a limit of max number of frames.\n * Assumes stack input is ordered from top to bottom and returns the reverse representation so call site of the\n * function that caused the crash is the last frame in the array.\n * @hidden\n */\nexport function stripSentryFramesAndReverse(stack: ReadonlyArray): StackFrame[] {\n if (!stack.length) {\n return [];\n }\n\n const localStack = Array.from(stack);\n\n // If stack starts with one of our API calls, remove it (starts, meaning it's the top of the stack - aka last call)\n if (/sentryWrapped/.test(localStack[localStack.length - 1].function || '')) {\n localStack.pop();\n }\n\n // Reversing in the middle of the procedure allows us to just pop the values off the stack\n localStack.reverse();\n\n // If stack ends with one of our internal API calls, remove it (ends, meaning it's the bottom of the stack - aka top-most call)\n if (STRIP_FRAME_REGEXP.test(localStack[localStack.length - 1].function || '')) {\n localStack.pop();\n\n // When using synthetic events, we will have a 2 levels deep stack, as `new Error('Sentry syntheticException')`\n // is produced within the hub itself, making it:\n //\n // Sentry.captureException()\n // getCurrentHub().captureException()\n //\n // instead of just the top `Sentry` call itself.\n // This forces us to possibly strip an additional frame in the exact same was as above.\n if (STRIP_FRAME_REGEXP.test(localStack[localStack.length - 1].function || '')) {\n localStack.pop();\n }\n }\n\n return localStack.slice(0, STACKTRACE_FRAME_LIMIT).map(frame => ({\n ...frame,\n filename: frame.filename || localStack[localStack.length - 1].filename,\n function: frame.function || '?',\n }));\n}\n\nconst defaultFunctionName = '';\n\n/**\n * Safely extract function name from itself\n */\nexport function getFunctionName(fn: unknown): string {\n try {\n if (!fn || typeof fn !== 'function') {\n return defaultFunctionName;\n }\n return fn.name || defaultFunctionName;\n } catch (e) {\n // Just accessing custom props in some Selenium environments\n // can cause a \"Permission denied\" exception (see raven-js#495).\n return defaultFunctionName;\n }\n}\n\n/**\n * Node.js stack line parser\n *\n * This is in @sentry/utils so it can be used from the Electron SDK in the browser for when `nodeIntegration == true`.\n * This allows it to be used without referencing or importing any node specific code which causes bundlers to complain\n */\nexport function nodeStackLineParser(getModule?: GetModuleFn): StackLineParser {\n return [90, node(getModule)];\n}\n", "import { DEBUG_BUILD } from '../debug-build';\nimport { logger } from '../logger';\nimport { getFunctionName } from '../stacktrace';\n\nexport type InstrumentHandlerType = 'console' | 'dom' | 'fetch' | 'history' | 'xhr' | 'error' | 'unhandledrejection';\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type InstrumentHandlerCallback = (data: any) => void;\n\n// We keep the handlers globally\nconst handlers: { [key in InstrumentHandlerType]?: InstrumentHandlerCallback[] } = {};\nconst instrumented: { [key in InstrumentHandlerType]?: boolean } = {};\n\n/** Add a handler function. */\nexport function addHandler(type: InstrumentHandlerType, handler: InstrumentHandlerCallback): void {\n handlers[type] = handlers[type] || [];\n (handlers[type] as InstrumentHandlerCallback[]).push(handler);\n}\n\n/**\n * Reset all instrumentation handlers.\n * This can be used by tests to ensure we have a clean slate of instrumentation handlers.\n */\nexport function resetInstrumentationHandlers(): void {\n Object.keys(handlers).forEach(key => {\n handlers[key as InstrumentHandlerType] = undefined;\n });\n}\n\n/** Maybe run an instrumentation function, unless it was already called. */\nexport function maybeInstrument(type: InstrumentHandlerType, instrumentFn: () => void): void {\n if (!instrumented[type]) {\n instrumentFn();\n instrumented[type] = true;\n }\n}\n\n/** Trigger handlers for a given instrumentation type. */\nexport function triggerHandlers(type: InstrumentHandlerType, data: unknown): void {\n const typeHandlers = type && handlers[type];\n if (!typeHandlers) {\n return;\n }\n\n for (const handler of typeHandlers) {\n try {\n handler(data);\n } catch (e) {\n DEBUG_BUILD &&\n logger.error(\n `Error while triggering instrumentation handler.\\nType: ${type}\\nName: ${getFunctionName(handler)}\\nError:`,\n e,\n );\n }\n }\n}\n", "/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/ban-types */\nimport type { ConsoleLevel, HandlerDataConsole } from '@sentry/types';\n\nimport { CONSOLE_LEVELS, originalConsoleMethods } from '../logger';\nimport { fill } from '../object';\nimport { GLOBAL_OBJ } from '../worldwide';\nimport { addHandler, maybeInstrument, triggerHandlers } from './_handlers';\n\n/**\n * Add an instrumentation handler for when a console.xxx method is called.\n *\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nexport function addConsoleInstrumentationHandler(handler: (data: HandlerDataConsole) => void): void {\n const type = 'console';\n addHandler(type, handler);\n maybeInstrument(type, instrumentConsole);\n}\n\nfunction instrumentConsole(): void {\n if (!('console' in GLOBAL_OBJ)) {\n return;\n }\n\n CONSOLE_LEVELS.forEach(function (level: ConsoleLevel): void {\n if (!(level in GLOBAL_OBJ.console)) {\n return;\n }\n\n fill(GLOBAL_OBJ.console, level, function (originalConsoleMethod: () => any): Function {\n originalConsoleMethods[level] = originalConsoleMethod;\n\n return function (...args: any[]): void {\n const handlerData: HandlerDataConsole = { args, level };\n triggerHandlers('console', handlerData);\n\n const log = originalConsoleMethods[level];\n log && log.apply(GLOBAL_OBJ.console, args);\n };\n });\n });\n}\n", "/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { Event, Exception, Mechanism, StackFrame } from '@sentry/types';\n\nimport { addNonEnumerableProperty } from './object';\nimport { snipLine } from './string';\nimport { GLOBAL_OBJ } from './worldwide';\n\ninterface CryptoInternal {\n getRandomValues(array: Uint8Array): Uint8Array;\n randomUUID?(): string;\n}\n\n/** An interface for common properties on global */\ninterface CryptoGlobal {\n msCrypto?: CryptoInternal;\n crypto?: CryptoInternal;\n}\n\n/**\n * UUID4 generator\n *\n * @returns string Generated UUID4.\n */\nexport function uuid4(): string {\n const gbl = GLOBAL_OBJ as typeof GLOBAL_OBJ & CryptoGlobal;\n const crypto = gbl.crypto || gbl.msCrypto;\n\n let getRandomByte = (): number => Math.random() * 16;\n try {\n if (crypto && crypto.randomUUID) {\n return crypto.randomUUID().replace(/-/g, '');\n }\n if (crypto && crypto.getRandomValues) {\n getRandomByte = () => {\n // crypto.getRandomValues might return undefined instead of the typed array\n // in old Chromium versions (e.g. 23.0.1235.0 (151422))\n // However, `typedArray` is still filled in-place.\n // @see https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues#typedarray\n const typedArray = new Uint8Array(1);\n crypto.getRandomValues(typedArray);\n return typedArray[0];\n };\n }\n } catch (_) {\n // some runtimes can crash invoking crypto\n // https://github.com/getsentry/sentry-javascript/issues/8935\n }\n\n // http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/2117523#2117523\n // Concatenating the following numbers as strings results in '10000000100040008000100000000000'\n return (([1e7] as unknown as string) + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, c =>\n // eslint-disable-next-line no-bitwise\n ((c as unknown as number) ^ ((getRandomByte() & 15) >> ((c as unknown as number) / 4))).toString(16),\n );\n}\n\nfunction getFirstException(event: Event): Exception | undefined {\n return event.exception && event.exception.values ? event.exception.values[0] : undefined;\n}\n\n/**\n * Extracts either message or type+value from an event that can be used for user-facing logs\n * @returns event's description\n */\nexport function getEventDescription(event: Event): string {\n const { message, event_id: eventId } = event;\n if (message) {\n return message;\n }\n\n const firstException = getFirstException(event);\n if (firstException) {\n if (firstException.type && firstException.value) {\n return `${firstException.type}: ${firstException.value}`;\n }\n return firstException.type || firstException.value || eventId || '';\n }\n return eventId || '';\n}\n\n/**\n * Adds exception values, type and value to an synthetic Exception.\n * @param event The event to modify.\n * @param value Value of the exception.\n * @param type Type of the exception.\n * @hidden\n */\nexport function addExceptionTypeValue(event: Event, value?: string, type?: string): void {\n const exception = (event.exception = event.exception || {});\n const values = (exception.values = exception.values || []);\n const firstException = (values[0] = values[0] || {});\n if (!firstException.value) {\n firstException.value = value || '';\n }\n if (!firstException.type) {\n firstException.type = type || 'Error';\n }\n}\n\n/**\n * Adds exception mechanism data to a given event. Uses defaults if the second parameter is not passed.\n *\n * @param event The event to modify.\n * @param newMechanism Mechanism data to add to the event.\n * @hidden\n */\nexport function addExceptionMechanism(event: Event, newMechanism?: Partial): void {\n const firstException = getFirstException(event);\n if (!firstException) {\n return;\n }\n\n const defaultMechanism = { type: 'generic', handled: true };\n const currentMechanism = firstException.mechanism;\n firstException.mechanism = { ...defaultMechanism, ...currentMechanism, ...newMechanism };\n\n if (newMechanism && 'data' in newMechanism) {\n const mergedData = { ...(currentMechanism && currentMechanism.data), ...newMechanism.data };\n firstException.mechanism.data = mergedData;\n }\n}\n\n// https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string\nconst SEMVER_REGEXP =\n /^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$/;\n\n/**\n * Represents Semantic Versioning object\n */\ninterface SemVer {\n major?: number;\n minor?: number;\n patch?: number;\n prerelease?: string;\n buildmetadata?: string;\n}\n\n/**\n * Parses input into a SemVer interface\n * @param input string representation of a semver version\n */\nexport function parseSemver(input: string): SemVer {\n const match = input.match(SEMVER_REGEXP) || [];\n const major = parseInt(match[1], 10);\n const minor = parseInt(match[2], 10);\n const patch = parseInt(match[3], 10);\n return {\n buildmetadata: match[5],\n major: isNaN(major) ? undefined : major,\n minor: isNaN(minor) ? undefined : minor,\n patch: isNaN(patch) ? undefined : patch,\n prerelease: match[4],\n };\n}\n\n/**\n * This function adds context (pre/post/line) lines to the provided frame\n *\n * @param lines string[] containing all lines\n * @param frame StackFrame that will be mutated\n * @param linesOfContext number of context lines we want to add pre/post\n */\nexport function addContextToFrame(lines: string[], frame: StackFrame, linesOfContext: number = 5): void {\n // When there is no line number in the frame, attaching context is nonsensical and will even break grouping\n if (frame.lineno === undefined) {\n return;\n }\n\n const maxLines = lines.length;\n const sourceLine = Math.max(Math.min(maxLines - 1, frame.lineno - 1), 0);\n\n frame.pre_context = lines\n .slice(Math.max(0, sourceLine - linesOfContext), sourceLine)\n .map((line: string) => snipLine(line, 0));\n\n frame.context_line = snipLine(lines[Math.min(maxLines - 1, sourceLine)], frame.colno || 0);\n\n frame.post_context = lines\n .slice(Math.min(sourceLine + 1, maxLines), sourceLine + 1 + linesOfContext)\n .map((line: string) => snipLine(line, 0));\n}\n\n/**\n * Checks whether or not we've already captured the given exception (note: not an identical exception - the very object\n * in question), and marks it captured if not.\n *\n * This is useful because it's possible for an error to get captured by more than one mechanism. After we intercept and\n * record an error, we rethrow it (assuming we've intercepted it before it's reached the top-level global handlers), so\n * that we don't interfere with whatever effects the error might have had were the SDK not there. At that point, because\n * the error has been rethrown, it's possible for it to bubble up to some other code we've instrumented. If it's not\n * caught after that, it will bubble all the way up to the global handlers (which of course we also instrument). This\n * function helps us ensure that even if we encounter the same error more than once, we only record it the first time we\n * see it.\n *\n * Note: It will ignore primitives (always return `false` and not mark them as seen), as properties can't be set on\n * them. {@link: Object.objectify} can be used on exceptions to convert any that are primitives into their equivalent\n * object wrapper forms so that this check will always work. However, because we need to flag the exact object which\n * will get rethrown, and because that rethrowing happens outside of the event processing pipeline, the objectification\n * must be done before the exception captured.\n *\n * @param A thrown exception to check or flag as having been seen\n * @returns `true` if the exception has already been captured, `false` if not (with the side effect of marking it seen)\n */\nexport function checkOrSetAlreadyCaught(exception: unknown): boolean {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (exception && (exception as any).__sentry_captured__) {\n return true;\n }\n\n try {\n // set it this way rather than by assignment so that it's not ennumerable and therefore isn't recorded by the\n // `ExtraErrorData` integration\n addNonEnumerableProperty(exception as { [key: string]: unknown }, '__sentry_captured__', true);\n } catch (err) {\n // `exception` is a primitive, so we can't mark it seen\n }\n\n return false;\n}\n\n/**\n * Checks whether the given input is already an array, and if it isn't, wraps it in one.\n *\n * @param maybeArray Input to turn into an array, if necessary\n * @returns The input, if already an array, or an array with the input as the only element, if not\n */\nexport function arrayify(maybeArray: T | T[]): T[] {\n return Array.isArray(maybeArray) ? maybeArray : [maybeArray];\n}\n", "// TODO(v8): Move everything in this file into the browser package. Nothing here is generic and we run risk of leaking browser types into non-browser packages.\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/ban-types */\nimport type { HandlerDataDom } from '@sentry/types';\n\nimport { uuid4 } from '../misc';\nimport { addNonEnumerableProperty, fill } from '../object';\nimport { GLOBAL_OBJ } from '../worldwide';\nimport { addHandler, maybeInstrument, triggerHandlers } from './_handlers';\n\ntype SentryWrappedTarget = HTMLElement & { _sentryId?: string };\n\ntype AddEventListener = (\n type: string,\n listener: EventListenerOrEventListenerObject,\n options?: boolean | AddEventListenerOptions,\n) => void;\ntype RemoveEventListener = (\n type: string,\n listener: EventListenerOrEventListenerObject,\n options?: boolean | EventListenerOptions,\n) => void;\n\ntype InstrumentedElement = Element & {\n __sentry_instrumentation_handlers__?: {\n [key in 'click' | 'keypress']?: {\n handler?: Function;\n /** The number of custom listeners attached to this element */\n refCount: number;\n };\n };\n};\n\nconst WINDOW = GLOBAL_OBJ as unknown as Window;\nconst DEBOUNCE_DURATION = 1000;\n\nlet debounceTimerID: number | undefined;\nlet lastCapturedEventType: string | undefined;\nlet lastCapturedEventTargetId: string | undefined;\n\n/**\n * Add an instrumentation handler for when a click or a keypress happens.\n *\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nexport function addClickKeypressInstrumentationHandler(handler: (data: HandlerDataDom) => void): void {\n const type = 'dom';\n addHandler(type, handler);\n maybeInstrument(type, instrumentDOM);\n}\n\n/** Exported for tests only. */\nexport function instrumentDOM(): void {\n if (!WINDOW.document) {\n return;\n }\n\n // Make it so that any click or keypress that is unhandled / bubbled up all the way to the document triggers our dom\n // handlers. (Normally we have only one, which captures a breadcrumb for each click or keypress.) Do this before\n // we instrument `addEventListener` so that we don't end up attaching this handler twice.\n const triggerDOMHandler = triggerHandlers.bind(null, 'dom');\n const globalDOMEventHandler = makeDOMEventHandler(triggerDOMHandler, true);\n WINDOW.document.addEventListener('click', globalDOMEventHandler, false);\n WINDOW.document.addEventListener('keypress', globalDOMEventHandler, false);\n\n // After hooking into click and keypress events bubbled up to `document`, we also hook into user-handled\n // clicks & keypresses, by adding an event listener of our own to any element to which they add a listener. That\n // way, whenever one of their handlers is triggered, ours will be, too. (This is needed because their handler\n // could potentially prevent the event from bubbling up to our global listeners. This way, our handler are still\n // guaranteed to fire at least once.)\n ['EventTarget', 'Node'].forEach((target: string) => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n const proto = (WINDOW as any)[target] && (WINDOW as any)[target].prototype;\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, no-prototype-builtins\n if (!proto || !proto.hasOwnProperty || !proto.hasOwnProperty('addEventListener')) {\n return;\n }\n\n fill(proto, 'addEventListener', function (originalAddEventListener: AddEventListener): AddEventListener {\n return function (\n this: Element,\n type: string,\n listener: EventListenerOrEventListenerObject,\n options?: boolean | AddEventListenerOptions,\n ): AddEventListener {\n if (type === 'click' || type == 'keypress') {\n try {\n const el = this as InstrumentedElement;\n const handlers = (el.__sentry_instrumentation_handlers__ = el.__sentry_instrumentation_handlers__ || {});\n const handlerForType = (handlers[type] = handlers[type] || { refCount: 0 });\n\n if (!handlerForType.handler) {\n const handler = makeDOMEventHandler(triggerDOMHandler);\n handlerForType.handler = handler;\n originalAddEventListener.call(this, type, handler, options);\n }\n\n handlerForType.refCount++;\n } catch (e) {\n // Accessing dom properties is always fragile.\n // Also allows us to skip `addEventListenrs` calls with no proper `this` context.\n }\n }\n\n return originalAddEventListener.call(this, type, listener, options);\n };\n });\n\n fill(\n proto,\n 'removeEventListener',\n function (originalRemoveEventListener: RemoveEventListener): RemoveEventListener {\n return function (\n this: Element,\n type: string,\n listener: EventListenerOrEventListenerObject,\n options?: boolean | EventListenerOptions,\n ): () => void {\n if (type === 'click' || type == 'keypress') {\n try {\n const el = this as InstrumentedElement;\n const handlers = el.__sentry_instrumentation_handlers__ || {};\n const handlerForType = handlers[type];\n\n if (handlerForType) {\n handlerForType.refCount--;\n // If there are no longer any custom handlers of the current type on this element, we can remove ours, too.\n if (handlerForType.refCount <= 0) {\n originalRemoveEventListener.call(this, type, handlerForType.handler, options);\n handlerForType.handler = undefined;\n delete handlers[type]; // eslint-disable-line @typescript-eslint/no-dynamic-delete\n }\n\n // If there are no longer any custom handlers of any type on this element, cleanup everything.\n if (Object.keys(handlers).length === 0) {\n delete el.__sentry_instrumentation_handlers__;\n }\n }\n } catch (e) {\n // Accessing dom properties is always fragile.\n // Also allows us to skip `addEventListenrs` calls with no proper `this` context.\n }\n }\n\n return originalRemoveEventListener.call(this, type, listener, options);\n };\n },\n );\n });\n}\n\n/**\n * Check whether the event is similar to the last captured one. For example, two click events on the same button.\n */\nfunction isSimilarToLastCapturedEvent(event: Event): boolean {\n // If both events have different type, then user definitely performed two separate actions. e.g. click + keypress.\n if (event.type !== lastCapturedEventType) {\n return false;\n }\n\n try {\n // If both events have the same type, it's still possible that actions were performed on different targets.\n // e.g. 2 clicks on different buttons.\n if (!event.target || (event.target as SentryWrappedTarget)._sentryId !== lastCapturedEventTargetId) {\n return false;\n }\n } catch (e) {\n // just accessing `target` property can throw an exception in some rare circumstances\n // see: https://github.com/getsentry/sentry-javascript/issues/838\n }\n\n // If both events have the same type _and_ same `target` (an element which triggered an event, _not necessarily_\n // to which an event listener was attached), we treat them as the same action, as we want to capture\n // only one breadcrumb. e.g. multiple clicks on the same button, or typing inside a user input box.\n return true;\n}\n\n/**\n * Decide whether an event should be captured.\n * @param event event to be captured\n */\nfunction shouldSkipDOMEvent(eventType: string, target: SentryWrappedTarget | null): boolean {\n // We are only interested in filtering `keypress` events for now.\n if (eventType !== 'keypress') {\n return false;\n }\n\n if (!target || !target.tagName) {\n return true;\n }\n\n // Only consider keypress events on actual input elements. This will disregard keypresses targeting body\n // e.g.tabbing through elements, hotkeys, etc.\n if (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA' || target.isContentEditable) {\n return false;\n }\n\n return true;\n}\n\n/**\n * Wraps addEventListener to capture UI breadcrumbs\n */\nfunction makeDOMEventHandler(\n handler: (data: HandlerDataDom) => void,\n globalListener: boolean = false,\n): (event: Event) => void {\n return (event: Event & { _sentryCaptured?: true }): void => {\n // It's possible this handler might trigger multiple times for the same\n // event (e.g. event propagation through node ancestors).\n // Ignore if we've already captured that event.\n if (!event || event['_sentryCaptured']) {\n return;\n }\n\n const target = getEventTarget(event);\n\n // We always want to skip _some_ events.\n if (shouldSkipDOMEvent(event.type, target)) {\n return;\n }\n\n // Mark event as \"seen\"\n addNonEnumerableProperty(event, '_sentryCaptured', true);\n\n if (target && !target._sentryId) {\n // Add UUID to event target so we can identify if\n addNonEnumerableProperty(target, '_sentryId', uuid4());\n }\n\n const name = event.type === 'keypress' ? 'input' : event.type;\n\n // If there is no last captured event, it means that we can safely capture the new event and store it for future comparisons.\n // If there is a last captured event, see if the new event is different enough to treat it as a unique one.\n // If that's the case, emit the previous event and store locally the newly-captured DOM event.\n if (!isSimilarToLastCapturedEvent(event)) {\n const handlerData: HandlerDataDom = { event, name, global: globalListener };\n handler(handlerData);\n lastCapturedEventType = event.type;\n lastCapturedEventTargetId = target ? target._sentryId : undefined;\n }\n\n // Start a new debounce timer that will prevent us from capturing multiple events that should be grouped together.\n clearTimeout(debounceTimerID);\n debounceTimerID = WINDOW.setTimeout(() => {\n lastCapturedEventTargetId = undefined;\n lastCapturedEventType = undefined;\n }, DEBOUNCE_DURATION);\n };\n}\n\nfunction getEventTarget(event: Event): SentryWrappedTarget | null {\n try {\n return event.target as SentryWrappedTarget | null;\n } catch (e) {\n // just accessing `target` property can throw an exception in some rare circumstances\n // see: https://github.com/getsentry/sentry-javascript/issues/838\n return null;\n }\n}\n", "import { DEBUG_BUILD } from './debug-build';\nimport { logger } from './logger';\nimport { getGlobalObject } from './worldwide';\n\n// eslint-disable-next-line deprecation/deprecation\nconst WINDOW = getGlobalObject();\n\ndeclare const EdgeRuntime: string | undefined;\n\nexport { supportsHistory } from './vendor/supportsHistory';\n\n/**\n * Tells whether current environment supports ErrorEvent objects\n * {@link supportsErrorEvent}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsErrorEvent(): boolean {\n try {\n new ErrorEvent('');\n return true;\n } catch (e) {\n return false;\n }\n}\n\n/**\n * Tells whether current environment supports DOMError objects\n * {@link supportsDOMError}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsDOMError(): boolean {\n try {\n // Chrome: VM89:1 Uncaught TypeError: Failed to construct 'DOMError':\n // 1 argument required, but only 0 present.\n // @ts-expect-error It really needs 1 argument, not 0.\n new DOMError('');\n return true;\n } catch (e) {\n return false;\n }\n}\n\n/**\n * Tells whether current environment supports DOMException objects\n * {@link supportsDOMException}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsDOMException(): boolean {\n try {\n new DOMException('');\n return true;\n } catch (e) {\n return false;\n }\n}\n\n/**\n * Tells whether current environment supports Fetch API\n * {@link supportsFetch}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsFetch(): boolean {\n if (!('fetch' in WINDOW)) {\n return false;\n }\n\n try {\n new Headers();\n new Request('http://www.example.com');\n new Response();\n return true;\n } catch (e) {\n return false;\n }\n}\n/**\n * isNativeFetch checks if the given function is a native implementation of fetch()\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function isNativeFetch(func: Function): boolean {\n return func && /^function fetch\\(\\)\\s+\\{\\s+\\[native code\\]\\s+\\}$/.test(func.toString());\n}\n\n/**\n * Tells whether current environment supports Fetch API natively\n * {@link supportsNativeFetch}.\n *\n * @returns true if `window.fetch` is natively implemented, false otherwise\n */\nexport function supportsNativeFetch(): boolean {\n if (typeof EdgeRuntime === 'string') {\n return true;\n }\n\n if (!supportsFetch()) {\n return false;\n }\n\n // Fast path to avoid DOM I/O\n // eslint-disable-next-line @typescript-eslint/unbound-method\n if (isNativeFetch(WINDOW.fetch)) {\n return true;\n }\n\n // window.fetch is implemented, but is polyfilled or already wrapped (e.g: by a chrome extension)\n // so create a \"pure\" iframe to see if that has native fetch\n let result = false;\n const doc = WINDOW.document;\n // eslint-disable-next-line deprecation/deprecation\n if (doc && typeof (doc.createElement as unknown) === 'function') {\n try {\n const sandbox = doc.createElement('iframe');\n sandbox.hidden = true;\n doc.head.appendChild(sandbox);\n if (sandbox.contentWindow && sandbox.contentWindow.fetch) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n result = isNativeFetch(sandbox.contentWindow.fetch);\n }\n doc.head.removeChild(sandbox);\n } catch (err) {\n DEBUG_BUILD &&\n logger.warn('Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ', err);\n }\n }\n\n return result;\n}\n\n/**\n * Tells whether current environment supports ReportingObserver API\n * {@link supportsReportingObserver}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsReportingObserver(): boolean {\n return 'ReportingObserver' in WINDOW;\n}\n\n/**\n * Tells whether current environment supports Referrer Policy API\n * {@link supportsReferrerPolicy}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsReferrerPolicy(): boolean {\n // Despite all stars in the sky saying that Edge supports old draft syntax, aka 'never', 'always', 'origin' and 'default'\n // (see https://caniuse.com/#feat=referrer-policy),\n // it doesn't. And it throws an exception instead of ignoring this parameter...\n // REF: https://github.com/getsentry/raven-js/issues/1233\n\n if (!supportsFetch()) {\n return false;\n }\n\n try {\n new Request('_', {\n referrerPolicy: 'origin' as ReferrerPolicy,\n });\n return true;\n } catch (e) {\n return false;\n }\n}\n", "/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/ban-types */\nimport type { HandlerDataFetch } from '@sentry/types';\n\nimport { fill } from '../object';\nimport { supportsNativeFetch } from '../supports';\nimport { GLOBAL_OBJ } from '../worldwide';\nimport { addHandler, maybeInstrument, triggerHandlers } from './_handlers';\n\ntype FetchResource = string | { toString(): string } | { url: string };\n\n/**\n * Add an instrumentation handler for when a fetch request happens.\n * The handler function is called once when the request starts and once when it ends,\n * which can be identified by checking if it has an `endTimestamp`.\n *\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nexport function addFetchInstrumentationHandler(handler: (data: HandlerDataFetch) => void): void {\n const type = 'fetch';\n addHandler(type, handler);\n maybeInstrument(type, instrumentFetch);\n}\n\nfunction instrumentFetch(): void {\n if (!supportsNativeFetch()) {\n return;\n }\n\n fill(GLOBAL_OBJ, 'fetch', function (originalFetch: () => void): () => void {\n return function (...args: any[]): void {\n const { method, url } = parseFetchArgs(args);\n\n const handlerData: HandlerDataFetch = {\n args,\n fetchData: {\n method,\n url,\n },\n startTimestamp: Date.now(),\n };\n\n triggerHandlers('fetch', {\n ...handlerData,\n });\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return originalFetch.apply(GLOBAL_OBJ, args).then(\n (response: Response) => {\n const finishedHandlerData: HandlerDataFetch = {\n ...handlerData,\n endTimestamp: Date.now(),\n response,\n };\n\n triggerHandlers('fetch', finishedHandlerData);\n return response;\n },\n (error: Error) => {\n const erroredHandlerData: HandlerDataFetch = {\n ...handlerData,\n endTimestamp: Date.now(),\n error,\n };\n\n triggerHandlers('fetch', erroredHandlerData);\n // NOTE: If you are a Sentry user, and you are seeing this stack frame,\n // it means the sentry.javascript SDK caught an error invoking your application code.\n // This is expected behavior and NOT indicative of a bug with sentry.javascript.\n throw error;\n },\n );\n };\n });\n}\n\nfunction hasProp(obj: unknown, prop: T): obj is Record {\n return !!obj && typeof obj === 'object' && !!(obj as Record)[prop];\n}\n\nfunction getUrlFromResource(resource: FetchResource): string {\n if (typeof resource === 'string') {\n return resource;\n }\n\n if (!resource) {\n return '';\n }\n\n if (hasProp(resource, 'url')) {\n return resource.url;\n }\n\n if (resource.toString) {\n return resource.toString();\n }\n\n return '';\n}\n\n/**\n * Parses the fetch arguments to find the used Http method and the url of the request.\n * Exported for tests only.\n */\nexport function parseFetchArgs(fetchArgs: unknown[]): { method: string; url: string } {\n if (fetchArgs.length === 0) {\n return { method: 'GET', url: '' };\n }\n\n if (fetchArgs.length === 2) {\n const [url, options] = fetchArgs as [FetchResource, object];\n\n return {\n url: getUrlFromResource(url),\n method: hasProp(options, 'method') ? String(options.method).toUpperCase() : 'GET',\n };\n }\n\n const arg = fetchArgs[0];\n return {\n url: getUrlFromResource(arg as FetchResource),\n method: hasProp(arg, 'method') ? String(arg.method).toUpperCase() : 'GET',\n };\n}\n", "import type { HandlerDataError } from '@sentry/types';\n\nimport { GLOBAL_OBJ } from '../worldwide';\nimport { addHandler, maybeInstrument, triggerHandlers } from './_handlers';\n\nlet _oldOnErrorHandler: (typeof GLOBAL_OBJ)['onerror'] | null = null;\n\n/**\n * Add an instrumentation handler for when an error is captured by the global error handler.\n *\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nexport function addGlobalErrorInstrumentationHandler(handler: (data: HandlerDataError) => void): void {\n const type = 'error';\n addHandler(type, handler);\n maybeInstrument(type, instrumentError);\n}\n\nfunction instrumentError(): void {\n _oldOnErrorHandler = GLOBAL_OBJ.onerror;\n\n GLOBAL_OBJ.onerror = function (\n msg: string | object,\n url?: string,\n line?: number,\n column?: number,\n error?: Error,\n ): boolean {\n const handlerData: HandlerDataError = {\n column,\n error,\n line,\n msg,\n url,\n };\n triggerHandlers('error', handlerData);\n\n if (_oldOnErrorHandler && !_oldOnErrorHandler.__SENTRY_LOADER__) {\n // eslint-disable-next-line prefer-rest-params\n return _oldOnErrorHandler.apply(this, arguments);\n }\n\n return false;\n };\n\n GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__ = true;\n}\n", "/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport type { HandlerDataUnhandledRejection } from '@sentry/types';\n\nimport { GLOBAL_OBJ } from '../worldwide';\nimport { addHandler, maybeInstrument, triggerHandlers } from './_handlers';\n\nlet _oldOnUnhandledRejectionHandler: (typeof GLOBAL_OBJ)['onunhandledrejection'] | null = null;\n\n/**\n * Add an instrumentation handler for when an unhandled promise rejection is captured.\n *\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nexport function addGlobalUnhandledRejectionInstrumentationHandler(\n handler: (data: HandlerDataUnhandledRejection) => void,\n): void {\n const type = 'unhandledrejection';\n addHandler(type, handler);\n maybeInstrument(type, instrumentUnhandledRejection);\n}\n\nfunction instrumentUnhandledRejection(): void {\n _oldOnUnhandledRejectionHandler = GLOBAL_OBJ.onunhandledrejection;\n\n GLOBAL_OBJ.onunhandledrejection = function (e: any): boolean {\n const handlerData: HandlerDataUnhandledRejection = e;\n triggerHandlers('unhandledrejection', handlerData);\n\n if (_oldOnUnhandledRejectionHandler && !_oldOnUnhandledRejectionHandler.__SENTRY_LOADER__) {\n // eslint-disable-next-line prefer-rest-params\n return _oldOnUnhandledRejectionHandler.apply(this, arguments);\n }\n\n return true;\n };\n\n GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__ = true;\n}\n", "// Based on https://github.com/angular/angular.js/pull/13945/files\n// The MIT License\n\n// Copyright (c) 2010-2016 Google, Inc. http://angularjs.org\n\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\nimport { getGlobalObject } from '../worldwide';\n\n// eslint-disable-next-line deprecation/deprecation\nconst WINDOW = getGlobalObject();\n\n/**\n * Tells whether current environment supports History API\n * {@link supportsHistory}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsHistory(): boolean {\n // NOTE: in Chrome App environment, touching history.pushState, *even inside\n // a try/catch block*, will cause Chrome to output an error to console.error\n // borrowed from: https://github.com/angular/angular.js/pull/13945/files\n /* eslint-disable @typescript-eslint/no-unsafe-member-access */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const chromeVar = (WINDOW as any).chrome;\n const isChromePackagedApp = chromeVar && chromeVar.app && chromeVar.app.runtime;\n /* eslint-enable @typescript-eslint/no-unsafe-member-access */\n const hasHistoryApi = 'history' in WINDOW && !!WINDOW.history.pushState && !!WINDOW.history.replaceState;\n\n return !isChromePackagedApp && hasHistoryApi;\n}\n", "// TODO(v8): Move everything in this file into the browser package. Nothing here is generic and we run risk of leaking browser types into non-browser packages.\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/ban-types */\nimport type { HandlerDataHistory } from '@sentry/types';\n\nimport { fill } from '../object';\nimport { supportsHistory } from '../supports';\nimport { GLOBAL_OBJ } from '../worldwide';\nimport { addHandler, maybeInstrument, triggerHandlers } from './_handlers';\n\nconst WINDOW = GLOBAL_OBJ as unknown as Window;\n\nlet lastHref: string | undefined;\n\n/**\n * Add an instrumentation handler for when a fetch request happens.\n * The handler function is called once when the request starts and once when it ends,\n * which can be identified by checking if it has an `endTimestamp`.\n *\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nexport function addHistoryInstrumentationHandler(handler: (data: HandlerDataHistory) => void): void {\n const type = 'history';\n addHandler(type, handler);\n maybeInstrument(type, instrumentHistory);\n}\n\nfunction instrumentHistory(): void {\n if (!supportsHistory()) {\n return;\n }\n\n const oldOnPopState = WINDOW.onpopstate;\n WINDOW.onpopstate = function (this: WindowEventHandlers, ...args: any[]): any {\n const to = WINDOW.location.href;\n // keep track of the current URL state, as we always receive only the updated state\n const from = lastHref;\n lastHref = to;\n const handlerData: HandlerDataHistory = { from, to };\n triggerHandlers('history', handlerData);\n if (oldOnPopState) {\n // Apparently this can throw in Firefox when incorrectly implemented plugin is installed.\n // https://github.com/getsentry/sentry-javascript/issues/3344\n // https://github.com/bugsnag/bugsnag-js/issues/469\n try {\n return oldOnPopState.apply(this, args);\n } catch (_oO) {\n // no-empty\n }\n }\n };\n\n function historyReplacementFunction(originalHistoryFunction: () => void): () => void {\n return function (this: History, ...args: any[]): void {\n const url = args.length > 2 ? args[2] : undefined;\n if (url) {\n // coerce to string (this is what pushState does)\n const from = lastHref;\n const to = String(url);\n // keep track of the current URL state, as we always receive only the updated state\n lastHref = to;\n const handlerData: HandlerDataHistory = { from, to };\n triggerHandlers('history', handlerData);\n }\n return originalHistoryFunction.apply(this, args);\n };\n }\n\n fill(WINDOW.history, 'pushState', historyReplacementFunction);\n fill(WINDOW.history, 'replaceState', historyReplacementFunction);\n}\n", "// TODO(v8): Move everything in this file into the browser package. Nothing here is generic and we run risk of leaking browser types into non-browser packages.\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/ban-types */\nimport type { HandlerDataXhr, SentryWrappedXMLHttpRequest, WrappedFunction } from '@sentry/types';\n\nimport { isString } from '../is';\nimport { fill } from '../object';\nimport { GLOBAL_OBJ } from '../worldwide';\nimport { addHandler, maybeInstrument, triggerHandlers } from './_handlers';\n\nconst WINDOW = GLOBAL_OBJ as unknown as Window;\n\nexport const SENTRY_XHR_DATA_KEY = '__sentry_xhr_v3__';\n\n/**\n * Add an instrumentation handler for when an XHR request happens.\n * The handler function is called once when the request starts and once when it ends,\n * which can be identified by checking if it has an `endTimestamp`.\n *\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nexport function addXhrInstrumentationHandler(handler: (data: HandlerDataXhr) => void): void {\n const type = 'xhr';\n addHandler(type, handler);\n maybeInstrument(type, instrumentXHR);\n}\n\n/** Exported only for tests. */\nexport function instrumentXHR(): void {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (!(WINDOW as any).XMLHttpRequest) {\n return;\n }\n\n const xhrproto = XMLHttpRequest.prototype;\n\n fill(xhrproto, 'open', function (originalOpen: () => void): () => void {\n return function (this: XMLHttpRequest & SentryWrappedXMLHttpRequest, ...args: any[]): void {\n const startTimestamp = Date.now();\n\n // open() should always be called with two or more arguments\n // But to be on the safe side, we actually validate this and bail out if we don't have a method & url\n const method = isString(args[0]) ? args[0].toUpperCase() : undefined;\n const url = parseUrl(args[1]);\n\n if (!method || !url) {\n return originalOpen.apply(this, args);\n }\n\n this[SENTRY_XHR_DATA_KEY] = {\n method,\n url,\n request_headers: {},\n };\n\n // if Sentry key appears in URL, don't capture it as a request\n if (method === 'POST' && url.match(/sentry_key/)) {\n this.__sentry_own_request__ = true;\n }\n\n const onreadystatechangeHandler: () => void = () => {\n // For whatever reason, this is not the same instance here as from the outer method\n const xhrInfo = this[SENTRY_XHR_DATA_KEY];\n\n if (!xhrInfo) {\n return;\n }\n\n if (this.readyState === 4) {\n try {\n // touching statusCode in some platforms throws\n // an exception\n xhrInfo.status_code = this.status;\n } catch (e) {\n /* do nothing */\n }\n\n const handlerData: HandlerDataXhr = {\n args: [method, url],\n endTimestamp: Date.now(),\n startTimestamp,\n xhr: this,\n };\n triggerHandlers('xhr', handlerData);\n }\n };\n\n if ('onreadystatechange' in this && typeof this.onreadystatechange === 'function') {\n fill(this, 'onreadystatechange', function (original: WrappedFunction): Function {\n return function (this: SentryWrappedXMLHttpRequest, ...readyStateArgs: any[]): void {\n onreadystatechangeHandler();\n return original.apply(this, readyStateArgs);\n };\n });\n } else {\n this.addEventListener('readystatechange', onreadystatechangeHandler);\n }\n\n // Intercepting `setRequestHeader` to access the request headers of XHR instance.\n // This will only work for user/library defined headers, not for the default/browser-assigned headers.\n // Request cookies are also unavailable for XHR, as `Cookie` header can't be defined by `setRequestHeader`.\n fill(this, 'setRequestHeader', function (original: WrappedFunction): Function {\n return function (this: SentryWrappedXMLHttpRequest, ...setRequestHeaderArgs: unknown[]): void {\n const [header, value] = setRequestHeaderArgs;\n\n const xhrInfo = this[SENTRY_XHR_DATA_KEY];\n\n if (xhrInfo && isString(header) && isString(value)) {\n xhrInfo.request_headers[header.toLowerCase()] = value;\n }\n\n return original.apply(this, setRequestHeaderArgs);\n };\n });\n\n return originalOpen.apply(this, args);\n };\n });\n\n fill(xhrproto, 'send', function (originalSend: () => void): () => void {\n return function (this: XMLHttpRequest & SentryWrappedXMLHttpRequest, ...args: any[]): void {\n const sentryXhrData = this[SENTRY_XHR_DATA_KEY];\n\n if (!sentryXhrData) {\n return originalSend.apply(this, args);\n }\n\n if (args[0] !== undefined) {\n sentryXhrData.body = args[0];\n }\n\n const handlerData: HandlerDataXhr = {\n args: [sentryXhrData.method, sentryXhrData.url],\n startTimestamp: Date.now(),\n xhr: this,\n };\n triggerHandlers('xhr', handlerData);\n\n return originalSend.apply(this, args);\n };\n });\n}\n\nfunction parseUrl(url: string | unknown): string | undefined {\n if (isString(url)) {\n return url;\n }\n\n try {\n // url can be a string or URL\n // but since URL is not available in IE11, we do not check for it,\n // but simply assume it is an URL and return `toString()` from it (which returns the full URL)\n // If that fails, we just return undefined\n return (url as URL).toString();\n } catch {} // eslint-disable-line no-empty\n\n return undefined;\n}\n", "// TODO(v8): Consider moving this file (or at least parts of it) into the browser package. The registered handlers are mostly non-generic and we risk leaking runtime specific code into generic packages.\n\nimport { DEBUG_BUILD } from '../debug-build';\nimport { logger } from './../logger';\nimport type {\n InstrumentHandlerCallback as _InstrumentHandlerCallback,\n InstrumentHandlerType as _InstrumentHandlerType,\n} from './_handlers';\nimport { resetInstrumentationHandlers } from './_handlers';\nimport { addConsoleInstrumentationHandler } from './console';\nimport { addClickKeypressInstrumentationHandler } from './dom';\nimport { addFetchInstrumentationHandler } from './fetch';\nimport { addGlobalErrorInstrumentationHandler } from './globalError';\nimport { addGlobalUnhandledRejectionInstrumentationHandler } from './globalUnhandledRejection';\nimport { addHistoryInstrumentationHandler } from './history';\nimport { SENTRY_XHR_DATA_KEY, addXhrInstrumentationHandler } from './xhr';\n\n/**\n * Add handler that will be called when given type of instrumentation triggers.\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n * @deprecated Use the proper function per instrumentation type instead!\n */\nexport function addInstrumentationHandler(type: _InstrumentHandlerType, callback: _InstrumentHandlerCallback): void {\n switch (type) {\n case 'console':\n return addConsoleInstrumentationHandler(callback);\n case 'dom':\n return addClickKeypressInstrumentationHandler(callback);\n case 'xhr':\n return addXhrInstrumentationHandler(callback);\n case 'fetch':\n return addFetchInstrumentationHandler(callback);\n case 'history':\n return addHistoryInstrumentationHandler(callback);\n case 'error':\n return addGlobalErrorInstrumentationHandler(callback);\n case 'unhandledrejection':\n return addGlobalUnhandledRejectionInstrumentationHandler(callback);\n default:\n DEBUG_BUILD && logger.warn('unknown instrumentation type:', type);\n }\n}\n\n/**\n * @deprecated Use the specific handler data types from @sentry/types instead, e.g. HandlerDataFetch, HandlerDataConsole, ...\n */\ntype InstrumentHandlerCallback = _InstrumentHandlerCallback;\n\n/**\n * @deprecated Use the specific handler functions instead, e.g. addConsoleInstrumentationHandler, ...\n */\ntype InstrumentHandlerType = _InstrumentHandlerType;\n\n// eslint-disable-next-line deprecation/deprecation\nexport type { InstrumentHandlerCallback, InstrumentHandlerType };\n\nexport {\n addConsoleInstrumentationHandler,\n addClickKeypressInstrumentationHandler,\n addXhrInstrumentationHandler,\n addFetchInstrumentationHandler,\n addHistoryInstrumentationHandler,\n addGlobalErrorInstrumentationHandler,\n addGlobalUnhandledRejectionInstrumentationHandler,\n SENTRY_XHR_DATA_KEY,\n // Only exported for tests\n resetInstrumentationHandlers,\n};\n", "/*\n * This module exists for optimizations in the build process through rollup and terser. We define some global\n * constants, which can be overridden during build. By guarding certain pieces of code with functions that return these\n * constants, we can control whether or not they appear in the final bundle. (Any code guarded by a false condition will\n * never run, and will hence be dropped during treeshaking.) The two primary uses for this are stripping out calls to\n * `logger` and preventing node-related code from appearing in browser bundles.\n *\n * Attention:\n * This file should not be used to define constants/flags that are intended to be used for tree-shaking conducted by\n * users. These flags should live in their respective packages, as we identified user tooling (specifically webpack)\n * having issues tree-shaking these constants across package boundaries.\n * An example for this is the __SENTRY_DEBUG__ constant. It is declared in each package individually because we want\n * users to be able to shake away expressions that it guards.\n */\n\ndeclare const __SENTRY_BROWSER_BUNDLE__: boolean | undefined;\n\nexport type SdkSource = 'npm' | 'cdn' | 'loader';\n\n/**\n * Figures out if we're building a browser bundle.\n *\n * @returns true if this is a browser bundle build.\n */\nexport function isBrowserBundle(): boolean {\n return typeof __SENTRY_BROWSER_BUNDLE__ !== 'undefined' && !!__SENTRY_BROWSER_BUNDLE__;\n}\n\n/**\n * Get source of SDK.\n */\nexport function getSDKSource(): SdkSource {\n // @ts-expect-error __SENTRY_SDK_SOURCE__ is injected by rollup during build process\n return __SENTRY_SDK_SOURCE__;\n}\n", "/**\n * NOTE: In order to avoid circular dependencies, if you add a function to this module and it needs to print something,\n * you must either a) use `console.log` rather than the logger, or b) put your function elsewhere.\n */\n\nimport { isBrowserBundle } from './env';\n\n/**\n * Checks whether we're in the Node.js or Browser environment\n *\n * @returns Answer to given question\n */\nexport function isNodeEnv(): boolean {\n // explicitly check for browser bundles as those can be optimized statically\n // by terser/rollup.\n return (\n !isBrowserBundle() &&\n Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'\n );\n}\n\n/**\n * Requires a module which is protected against bundler minification.\n *\n * @param request The module path to resolve\n */\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any\nexport function dynamicRequire(mod: any, request: string): any {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return mod.require(request);\n}\n\n/**\n * Helper for dynamically loading module that should work with linked dependencies.\n * The problem is that we _should_ be using `require(require.resolve(moduleName, { paths: [cwd()] }))`\n * However it's _not possible_ to do that with Webpack, as it has to know all the dependencies during\n * build time. `require.resolve` is also not available in any other way, so we cannot create,\n * a fake helper like we do with `dynamicRequire`.\n *\n * We always prefer to use local package, thus the value is not returned early from each `try/catch` block.\n * That is to mimic the behavior of `require.resolve` exactly.\n *\n * @param moduleName module name to require\n * @returns possibly required module\n */\nexport function loadModule(moduleName: string): T | undefined {\n let mod: T | undefined;\n\n try {\n mod = dynamicRequire(module, moduleName);\n } catch (e) {\n // no-empty\n }\n\n try {\n const { cwd } = dynamicRequire(module, 'process');\n mod = dynamicRequire(module, `${cwd()}/node_modules/${moduleName}`) as T;\n } catch (e) {\n // no-empty\n }\n\n return mod;\n}\n", "import { isNodeEnv } from './node';\nimport { GLOBAL_OBJ } from './worldwide';\n\n/**\n * Returns true if we are in the browser.\n */\nexport function isBrowser(): boolean {\n // eslint-disable-next-line no-restricted-globals\n return typeof window !== 'undefined' && (!isNodeEnv() || isElectronNodeRenderer());\n}\n\ntype ElectronProcess = { type?: string };\n\n// Electron renderers with nodeIntegration enabled are detected as Node.js so we specifically test for them\nfunction isElectronNodeRenderer(): boolean {\n return (\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any\n (GLOBAL_OBJ as any).process !== undefined && ((GLOBAL_OBJ as any).process as ElectronProcess).type === 'renderer'\n );\n}\n", "/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nexport type MemoFunc = [\n // memoize\n (obj: any) => boolean,\n // unmemoize\n (obj: any) => void,\n];\n\n/**\n * Helper to decycle json objects\n */\nexport function memoBuilder(): MemoFunc {\n const hasWeakSet = typeof WeakSet === 'function';\n const inner: any = hasWeakSet ? new WeakSet() : [];\n function memoize(obj: any): boolean {\n if (hasWeakSet) {\n if (inner.has(obj)) {\n return true;\n }\n inner.add(obj);\n return false;\n }\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (let i = 0; i < inner.length; i++) {\n const value = inner[i];\n if (value === obj) {\n return true;\n }\n }\n inner.push(obj);\n return false;\n }\n\n function unmemoize(obj: any): void {\n if (hasWeakSet) {\n inner.delete(obj);\n } else {\n for (let i = 0; i < inner.length; i++) {\n if (inner[i] === obj) {\n inner.splice(i, 1);\n break;\n }\n }\n }\n }\n return [memoize, unmemoize];\n}\n", "import type { Primitive } from '@sentry/types';\n\nimport { isNaN, isSyntheticEvent, isVueViewModel } from './is';\nimport type { MemoFunc } from './memo';\nimport { memoBuilder } from './memo';\nimport { convertToPlainObject } from './object';\nimport { getFunctionName } from './stacktrace';\n\ntype Prototype = { constructor: (...args: unknown[]) => unknown };\n// This is a hack to placate TS, relying on the fact that technically, arrays are objects with integer keys. Normally we\n// think of those keys as actual numbers, but `arr['0']` turns out to work just as well as `arr[0]`, and doing it this\n// way lets us use a single type in the places where behave as if we are only dealing with objects, even if some of them\n// might be arrays.\ntype ObjOrArray = { [key: string]: T };\n\n/**\n * Recursively normalizes the given object.\n *\n * - Creates a copy to prevent original input mutation\n * - Skips non-enumerable properties\n * - When stringifying, calls `toJSON` if implemented\n * - Removes circular references\n * - Translates non-serializable values (`undefined`/`NaN`/functions) to serializable format\n * - Translates known global objects/classes to a string representations\n * - Takes care of `Error` object serialization\n * - Optionally limits depth of final output\n * - Optionally limits number of properties/elements included in any single object/array\n *\n * @param input The object to be normalized.\n * @param depth The max depth to which to normalize the object. (Anything deeper stringified whole.)\n * @param maxProperties The max number of elements or properties to be included in any single array or\n * object in the normallized output.\n * @returns A normalized version of the object, or `\"**non-serializable**\"` if any errors are thrown during normalization.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function normalize(input: unknown, depth: number = 100, maxProperties: number = +Infinity): any {\n try {\n // since we're at the outermost level, we don't provide a key\n return visit('', input, depth, maxProperties);\n } catch (err) {\n return { ERROR: `**non-serializable** (${err})` };\n }\n}\n\n/** JSDoc */\nexport function normalizeToSize(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n object: { [key: string]: any },\n // Default Node.js REPL depth\n depth: number = 3,\n // 100kB, as 200kB is max payload size, so half sounds reasonable\n maxSize: number = 100 * 1024,\n): T {\n const normalized = normalize(object, depth);\n\n if (jsonSize(normalized) > maxSize) {\n return normalizeToSize(object, depth - 1, maxSize);\n }\n\n return normalized as T;\n}\n\n/**\n * Visits a node to perform normalization on it\n *\n * @param key The key corresponding to the given node\n * @param value The node to be visited\n * @param depth Optional number indicating the maximum recursion depth\n * @param maxProperties Optional maximum number of properties/elements included in any single object/array\n * @param memo Optional Memo class handling decycling\n */\nfunction visit(\n key: string,\n value: unknown,\n depth: number = +Infinity,\n maxProperties: number = +Infinity,\n memo: MemoFunc = memoBuilder(),\n): Primitive | ObjOrArray {\n const [memoize, unmemoize] = memo;\n\n // Get the simple cases out of the way first\n if (\n value == null || // this matches null and undefined -> eqeq not eqeqeq\n (['number', 'boolean', 'string'].includes(typeof value) && !isNaN(value))\n ) {\n return value as Primitive;\n }\n\n const stringified = stringifyValue(key, value);\n\n // Anything we could potentially dig into more (objects or arrays) will have come back as `\"[object XXXX]\"`.\n // Everything else will have already been serialized, so if we don't see that pattern, we're done.\n if (!stringified.startsWith('[object ')) {\n return stringified;\n }\n\n // From here on, we can assert that `value` is either an object or an array.\n\n // Do not normalize objects that we know have already been normalized. As a general rule, the\n // \"__sentry_skip_normalization__\" property should only be used sparingly and only should only be set on objects that\n // have already been normalized.\n if ((value as ObjOrArray)['__sentry_skip_normalization__']) {\n return value as ObjOrArray;\n }\n\n // We can set `__sentry_override_normalization_depth__` on an object to ensure that from there\n // We keep a certain amount of depth.\n // This should be used sparingly, e.g. we use it for the redux integration to ensure we get a certain amount of state.\n const remainingDepth =\n typeof (value as ObjOrArray)['__sentry_override_normalization_depth__'] === 'number'\n ? ((value as ObjOrArray)['__sentry_override_normalization_depth__'] as number)\n : depth;\n\n // We're also done if we've reached the max depth\n if (remainingDepth === 0) {\n // At this point we know `serialized` is a string of the form `\"[object XXXX]\"`. Clean it up so it's just `\"[XXXX]\"`.\n return stringified.replace('object ', '');\n }\n\n // If we've already visited this branch, bail out, as it's circular reference. If not, note that we're seeing it now.\n if (memoize(value)) {\n return '[Circular ~]';\n }\n\n // If the value has a `toJSON` method, we call it to extract more information\n const valueWithToJSON = value as unknown & { toJSON?: () => unknown };\n if (valueWithToJSON && typeof valueWithToJSON.toJSON === 'function') {\n try {\n const jsonValue = valueWithToJSON.toJSON();\n // We need to normalize the return value of `.toJSON()` in case it has circular references\n return visit('', jsonValue, remainingDepth - 1, maxProperties, memo);\n } catch (err) {\n // pass (The built-in `toJSON` failed, but we can still try to do it ourselves)\n }\n }\n\n // At this point we know we either have an object or an array, we haven't seen it before, and we're going to recurse\n // because we haven't yet reached the max depth. Create an accumulator to hold the results of visiting each\n // property/entry, and keep track of the number of items we add to it.\n const normalized = (Array.isArray(value) ? [] : {}) as ObjOrArray;\n let numAdded = 0;\n\n // Before we begin, convert`Error` and`Event` instances into plain objects, since some of each of their relevant\n // properties are non-enumerable and otherwise would get missed.\n const visitable = convertToPlainObject(value as ObjOrArray);\n\n for (const visitKey in visitable) {\n // Avoid iterating over fields in the prototype if they've somehow been exposed to enumeration.\n if (!Object.prototype.hasOwnProperty.call(visitable, visitKey)) {\n continue;\n }\n\n if (numAdded >= maxProperties) {\n normalized[visitKey] = '[MaxProperties ~]';\n break;\n }\n\n // Recursively visit all the child nodes\n const visitValue = visitable[visitKey];\n normalized[visitKey] = visit(visitKey, visitValue, remainingDepth - 1, maxProperties, memo);\n\n numAdded++;\n }\n\n // Once we've visited all the branches, remove the parent from memo storage\n unmemoize(value);\n\n // Return accumulated values\n return normalized;\n}\n\n/**\n * @deprecated This export will be removed in v8.\n */\nexport { visit as walk };\n\n/* eslint-disable complexity */\n/**\n * Stringify the given value. Handles various known special values and types.\n *\n * Not meant to be used on simple primitives which already have a string representation, as it will, for example, turn\n * the number 1231 into \"[Object Number]\", nor on `null`, as it will throw.\n *\n * @param value The value to stringify\n * @returns A stringified representation of the given value\n */\nfunction stringifyValue(\n key: unknown,\n // this type is a tiny bit of a cheat, since this function does handle NaN (which is technically a number), but for\n // our internal use, it'll do\n value: Exclude,\n): string {\n try {\n if (key === 'domain' && value && typeof value === 'object' && (value as { _events: unknown })._events) {\n return '[Domain]';\n }\n\n if (key === 'domainEmitter') {\n return '[DomainEmitter]';\n }\n\n // It's safe to use `global`, `window`, and `document` here in this manner, as we are asserting using `typeof` first\n // which won't throw if they are not present.\n\n if (typeof global !== 'undefined' && value === global) {\n return '[Global]';\n }\n\n // eslint-disable-next-line no-restricted-globals\n if (typeof window !== 'undefined' && value === window) {\n return '[Window]';\n }\n\n // eslint-disable-next-line no-restricted-globals\n if (typeof document !== 'undefined' && value === document) {\n return '[Document]';\n }\n\n if (isVueViewModel(value)) {\n return '[VueViewModel]';\n }\n\n // React's SyntheticEvent thingy\n if (isSyntheticEvent(value)) {\n return '[SyntheticEvent]';\n }\n\n if (typeof value === 'number' && value !== value) {\n return '[NaN]';\n }\n\n if (typeof value === 'function') {\n return `[Function: ${getFunctionName(value)}]`;\n }\n\n if (typeof value === 'symbol') {\n return `[${String(value)}]`;\n }\n\n // stringified BigInts are indistinguishable from regular numbers, so we need to label them to avoid confusion\n if (typeof value === 'bigint') {\n return `[BigInt: ${String(value)}]`;\n }\n\n // Now that we've knocked out all the special cases and the primitives, all we have left are objects. Simply casting\n // them to strings means that instances of classes which haven't defined their `toStringTag` will just come out as\n // `\"[object Object]\"`. If we instead look at the constructor's name (which is the same as the name of the class),\n // we can make sure that only plain objects come out that way.\n const objName = getConstructorName(value);\n\n // Handle HTML Elements\n if (/^HTML(\\w*)Element$/.test(objName)) {\n return `[HTMLElement: ${objName}]`;\n }\n\n return `[object ${objName}]`;\n } catch (err) {\n return `**non-serializable** (${err})`;\n }\n}\n/* eslint-enable complexity */\n\nfunction getConstructorName(value: unknown): string {\n const prototype: Prototype | null = Object.getPrototypeOf(value);\n\n return prototype ? prototype.constructor.name : 'null prototype';\n}\n\n/** Calculates bytes size of input string */\nfunction utf8Length(value: string): number {\n // eslint-disable-next-line no-bitwise\n return ~-encodeURI(value).split(/%..|./).length;\n}\n\n/** Calculates bytes size of input object */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction jsonSize(value: any): number {\n return utf8Length(JSON.stringify(value));\n}\n\n/**\n * Normalizes URLs in exceptions and stacktraces to a base path so Sentry can fingerprint\n * across platforms and working directory.\n *\n * @param url The URL to be normalized.\n * @param basePath The application base path.\n * @returns The normalized URL.\n */\nexport function normalizeUrlToBase(url: string, basePath: string): string {\n const escapedBase = basePath\n // Backslash to forward\n .replace(/\\\\/g, '/')\n // Escape RegExp special characters\n .replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&');\n\n let newUrl = url;\n try {\n newUrl = decodeURI(url);\n } catch (_Oo) {\n // Sometime this breaks\n }\n return (\n newUrl\n .replace(/\\\\/g, '/')\n .replace(/webpack:\\/?/g, '') // Remove intermediate base path\n // eslint-disable-next-line @sentry-internal/sdk/no-regexp-constructor\n .replace(new RegExp(`(file://)?/*${escapedBase}/*`, 'ig'), 'app:///')\n );\n}\n", "// Slightly modified (no IE8 support, ES6) and transcribed to TypeScript\n// https://github.com/calvinmetcalf/rollup-plugin-node-builtins/blob/63ab8aacd013767445ca299e468d9a60a95328d7/src/es6/path.js\n//\n// Copyright Joyent, Inc.and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n/** JSDoc */\nfunction normalizeArray(parts: string[], allowAboveRoot?: boolean): string[] {\n // if the path tries to go above the root, `up` ends up > 0\n let up = 0;\n for (let i = parts.length - 1; i >= 0; i--) {\n const last = parts[i];\n if (last === '.') {\n parts.splice(i, 1);\n } else if (last === '..') {\n parts.splice(i, 1);\n up++;\n } else if (up) {\n parts.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (allowAboveRoot) {\n for (; up--; up) {\n parts.unshift('..');\n }\n }\n\n return parts;\n}\n\n// Split a filename into [root, dir, basename, ext], unix version\n// 'root' is just a slash, or nothing.\nconst splitPathRe = /^(\\S+:\\\\|\\/?)([\\s\\S]*?)((?:\\.{1,2}|[^/\\\\]+?|)(\\.[^./\\\\]*|))(?:[/\\\\]*)$/;\n/** JSDoc */\nfunction splitPath(filename: string): string[] {\n // Truncate files names greater than 1024 characters to avoid regex dos\n // https://github.com/getsentry/sentry-javascript/pull/8737#discussion_r1285719172\n const truncated = filename.length > 1024 ? `${filename.slice(-1024)}` : filename;\n const parts = splitPathRe.exec(truncated);\n return parts ? parts.slice(1) : [];\n}\n\n// path.resolve([from ...], to)\n// posix version\n/** JSDoc */\nexport function resolve(...args: string[]): string {\n let resolvedPath = '';\n let resolvedAbsolute = false;\n\n for (let i = args.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n const path = i >= 0 ? args[i] : '/';\n\n // Skip empty entries\n if (!path) {\n continue;\n }\n\n resolvedPath = `${path}/${resolvedPath}`;\n resolvedAbsolute = path.charAt(0) === '/';\n }\n\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeArray(\n resolvedPath.split('/').filter(p => !!p),\n !resolvedAbsolute,\n ).join('/');\n\n return (resolvedAbsolute ? '/' : '') + resolvedPath || '.';\n}\n\n/** JSDoc */\nfunction trim(arr: string[]): string[] {\n let start = 0;\n for (; start < arr.length; start++) {\n if (arr[start] !== '') {\n break;\n }\n }\n\n let end = arr.length - 1;\n for (; end >= 0; end--) {\n if (arr[end] !== '') {\n break;\n }\n }\n\n if (start > end) {\n return [];\n }\n return arr.slice(start, end - start + 1);\n}\n\n// path.relative(from, to)\n// posix version\n/** JSDoc */\nexport function relative(from: string, to: string): string {\n /* eslint-disable no-param-reassign */\n from = resolve(from).slice(1);\n to = resolve(to).slice(1);\n /* eslint-enable no-param-reassign */\n\n const fromParts = trim(from.split('/'));\n const toParts = trim(to.split('/'));\n\n const length = Math.min(fromParts.length, toParts.length);\n let samePartsLength = length;\n for (let i = 0; i < length; i++) {\n if (fromParts[i] !== toParts[i]) {\n samePartsLength = i;\n break;\n }\n }\n\n let outputParts = [];\n for (let i = samePartsLength; i < fromParts.length; i++) {\n outputParts.push('..');\n }\n\n outputParts = outputParts.concat(toParts.slice(samePartsLength));\n\n return outputParts.join('/');\n}\n\n// path.normalize(path)\n// posix version\n/** JSDoc */\nexport function normalizePath(path: string): string {\n const isPathAbsolute = isAbsolute(path);\n const trailingSlash = path.slice(-1) === '/';\n\n // Normalize the path\n let normalizedPath = normalizeArray(\n path.split('/').filter(p => !!p),\n !isPathAbsolute,\n ).join('/');\n\n if (!normalizedPath && !isPathAbsolute) {\n normalizedPath = '.';\n }\n if (normalizedPath && trailingSlash) {\n normalizedPath += '/';\n }\n\n return (isPathAbsolute ? '/' : '') + normalizedPath;\n}\n\n// posix version\n/** JSDoc */\nexport function isAbsolute(path: string): boolean {\n return path.charAt(0) === '/';\n}\n\n// posix version\n/** JSDoc */\nexport function join(...args: string[]): string {\n return normalizePath(args.join('/'));\n}\n\n/** JSDoc */\nexport function dirname(path: string): string {\n const result = splitPath(path);\n const root = result[0];\n let dir = result[1];\n\n if (!root && !dir) {\n // No dirname whatsoever\n return '.';\n }\n\n if (dir) {\n // It has a dirname, strip trailing slash\n dir = dir.slice(0, dir.length - 1);\n }\n\n return root + dir;\n}\n\n/** JSDoc */\nexport function basename(path: string, ext?: string): string {\n let f = splitPath(path)[2];\n if (ext && f.slice(ext.length * -1) === ext) {\n f = f.slice(0, f.length - ext.length);\n }\n return f;\n}\n", "/* eslint-disable @typescript-eslint/explicit-function-return-type */\n/* eslint-disable @typescript-eslint/typedef */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { isThenable } from './is';\n\n/** SyncPromise internal states */\nconst enum States {\n /** Pending */\n PENDING = 0,\n /** Resolved / OK */\n RESOLVED = 1,\n /** Rejected / Error */\n REJECTED = 2,\n}\n\n// Overloads so we can call resolvedSyncPromise without arguments and generic argument\nexport function resolvedSyncPromise(): PromiseLike;\nexport function resolvedSyncPromise(value: T | PromiseLike): PromiseLike;\n\n/**\n * Creates a resolved sync promise.\n *\n * @param value the value to resolve the promise with\n * @returns the resolved sync promise\n */\nexport function resolvedSyncPromise(value?: T | PromiseLike): PromiseLike {\n return new SyncPromise(resolve => {\n resolve(value);\n });\n}\n\n/**\n * Creates a rejected sync promise.\n *\n * @param value the value to reject the promise with\n * @returns the rejected sync promise\n */\nexport function rejectedSyncPromise(reason?: any): PromiseLike {\n return new SyncPromise((_, reject) => {\n reject(reason);\n });\n}\n\n/**\n * Thenable class that behaves like a Promise and follows it's interface\n * but is not async internally\n */\nclass SyncPromise implements PromiseLike {\n private _state: States;\n private _handlers: Array<[boolean, (value: T) => void, (reason: any) => any]>;\n private _value: any;\n\n public constructor(\n executor: (resolve: (value?: T | PromiseLike | null) => void, reject: (reason?: any) => void) => void,\n ) {\n this._state = States.PENDING;\n this._handlers = [];\n\n try {\n executor(this._resolve, this._reject);\n } catch (e) {\n this._reject(e);\n }\n }\n\n /** JSDoc */\n public then(\n onfulfilled?: ((value: T) => TResult1 | PromiseLike) | null,\n onrejected?: ((reason: any) => TResult2 | PromiseLike) | null,\n ): PromiseLike {\n return new SyncPromise((resolve, reject) => {\n this._handlers.push([\n false,\n result => {\n if (!onfulfilled) {\n // TODO: ¯\\_(ツ)_/¯\n // TODO: FIXME\n resolve(result as any);\n } else {\n try {\n resolve(onfulfilled(result));\n } catch (e) {\n reject(e);\n }\n }\n },\n reason => {\n if (!onrejected) {\n reject(reason);\n } else {\n try {\n resolve(onrejected(reason));\n } catch (e) {\n reject(e);\n }\n }\n },\n ]);\n this._executeHandlers();\n });\n }\n\n /** JSDoc */\n public catch(\n onrejected?: ((reason: any) => TResult | PromiseLike) | null,\n ): PromiseLike {\n return this.then(val => val, onrejected);\n }\n\n /** JSDoc */\n public finally(onfinally?: (() => void) | null): PromiseLike {\n return new SyncPromise((resolve, reject) => {\n let val: TResult | any;\n let isRejected: boolean;\n\n return this.then(\n value => {\n isRejected = false;\n val = value;\n if (onfinally) {\n onfinally();\n }\n },\n reason => {\n isRejected = true;\n val = reason;\n if (onfinally) {\n onfinally();\n }\n },\n ).then(() => {\n if (isRejected) {\n reject(val);\n return;\n }\n\n resolve(val as unknown as any);\n });\n });\n }\n\n /** JSDoc */\n private readonly _resolve = (value?: T | PromiseLike | null) => {\n this._setResult(States.RESOLVED, value);\n };\n\n /** JSDoc */\n private readonly _reject = (reason?: any) => {\n this._setResult(States.REJECTED, reason);\n };\n\n /** JSDoc */\n private readonly _setResult = (state: States, value?: T | PromiseLike | any) => {\n if (this._state !== States.PENDING) {\n return;\n }\n\n if (isThenable(value)) {\n void (value as PromiseLike).then(this._resolve, this._reject);\n return;\n }\n\n this._state = state;\n this._value = value;\n\n this._executeHandlers();\n };\n\n /** JSDoc */\n private readonly _executeHandlers = () => {\n if (this._state === States.PENDING) {\n return;\n }\n\n const cachedHandlers = this._handlers.slice();\n this._handlers = [];\n\n cachedHandlers.forEach(handler => {\n if (handler[0]) {\n return;\n }\n\n if (this._state === States.RESOLVED) {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n handler[1](this._value as unknown as any);\n }\n\n if (this._state === States.REJECTED) {\n handler[2](this._value);\n }\n\n handler[0] = true;\n });\n };\n}\n\nexport { SyncPromise };\n", "import { SentryError } from './error';\nimport { SyncPromise, rejectedSyncPromise, resolvedSyncPromise } from './syncpromise';\n\nexport interface PromiseBuffer {\n // exposes the internal array so tests can assert on the state of it.\n // XXX: this really should not be public api.\n $: Array>;\n add(taskProducer: () => PromiseLike): PromiseLike;\n drain(timeout?: number): PromiseLike;\n}\n\n/**\n * Creates an new PromiseBuffer object with the specified limit\n * @param limit max number of promises that can be stored in the buffer\n */\nexport function makePromiseBuffer(limit?: number): PromiseBuffer {\n const buffer: Array> = [];\n\n function isReady(): boolean {\n return limit === undefined || buffer.length < limit;\n }\n\n /**\n * Remove a promise from the queue.\n *\n * @param task Can be any PromiseLike\n * @returns Removed promise.\n */\n function remove(task: PromiseLike): PromiseLike {\n return buffer.splice(buffer.indexOf(task), 1)[0];\n }\n\n /**\n * Add a promise (representing an in-flight action) to the queue, and set it to remove itself on fulfillment.\n *\n * @param taskProducer A function producing any PromiseLike; In previous versions this used to be `task:\n * PromiseLike`, but under that model, Promises were instantly created on the call-site and their executor\n * functions therefore ran immediately. Thus, even if the buffer was full, the action still happened. By\n * requiring the promise to be wrapped in a function, we can defer promise creation until after the buffer\n * limit check.\n * @returns The original promise.\n */\n function add(taskProducer: () => PromiseLike): PromiseLike {\n if (!isReady()) {\n return rejectedSyncPromise(new SentryError('Not adding Promise because buffer limit was reached.'));\n }\n\n // start the task and add its promise to the queue\n const task = taskProducer();\n if (buffer.indexOf(task) === -1) {\n buffer.push(task);\n }\n void task\n .then(() => remove(task))\n // Use `then(null, rejectionHandler)` rather than `catch(rejectionHandler)` so that we can use `PromiseLike`\n // rather than `Promise`. `PromiseLike` doesn't have a `.catch` method, making its polyfill smaller. (ES5 didn't\n // have promises, so TS has to polyfill when down-compiling.)\n .then(null, () =>\n remove(task).then(null, () => {\n // We have to add another catch here because `remove()` starts a new promise chain.\n }),\n );\n return task;\n }\n\n /**\n * Wait for all promises in the queue to resolve or for timeout to expire, whichever comes first.\n *\n * @param timeout The time, in ms, after which to resolve to `false` if the queue is still non-empty. Passing `0` (or\n * not passing anything) will make the promise wait as long as it takes for the queue to drain before resolving to\n * `true`.\n * @returns A promise which will resolve to `true` if the queue is already empty or drains before the timeout, and\n * `false` otherwise\n */\n function drain(timeout?: number): PromiseLike {\n return new SyncPromise((resolve, reject) => {\n let counter = buffer.length;\n\n if (!counter) {\n return resolve(true);\n }\n\n // wait for `timeout` ms and then resolve to `false` (if not cancelled first)\n const capturedSetTimeout = setTimeout(() => {\n if (timeout && timeout > 0) {\n resolve(false);\n }\n }, timeout);\n\n // if all promises resolve in time, cancel the timer and resolve to `true`\n buffer.forEach(item => {\n void resolvedSyncPromise(item).then(() => {\n if (!--counter) {\n clearTimeout(capturedSetTimeout);\n resolve(true);\n }\n }, reject);\n });\n });\n }\n\n return {\n $: buffer,\n add,\n drain,\n };\n}\n", "/**\n * This code was originally copied from the 'cookie` module at v0.5.0 and was simplified for our use case.\n * https://github.com/jshttp/cookie/blob/a0c84147aab6266bdb3996cf4062e93907c0b0fc/index.js\n * It had the following license:\n *\n * (The MIT License)\n *\n * Copyright (c) 2012-2014 Roman Shtylman \n * Copyright (c) 2015 Douglas Christopher Wilson \n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * 'Software'), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\n/**\n * Parses a cookie string\n */\nexport function parseCookie(str: string): Record {\n const obj: Record = {};\n let index = 0;\n\n while (index < str.length) {\n const eqIdx = str.indexOf('=', index);\n\n // no more cookie pairs\n if (eqIdx === -1) {\n break;\n }\n\n let endIdx = str.indexOf(';', index);\n\n if (endIdx === -1) {\n endIdx = str.length;\n } else if (endIdx < eqIdx) {\n // backtrack on prior semicolon\n index = str.lastIndexOf(';', eqIdx - 1) + 1;\n continue;\n }\n\n const key = str.slice(index, eqIdx).trim();\n\n // only assign once\n if (undefined === obj[key]) {\n let val = str.slice(eqIdx + 1, endIdx).trim();\n\n // quoted values\n if (val.charCodeAt(0) === 0x22) {\n val = val.slice(1, -1);\n }\n\n try {\n obj[key] = val.indexOf('%') !== -1 ? decodeURIComponent(val) : val;\n } catch (e) {\n obj[key] = val;\n }\n }\n\n index = endIdx + 1;\n }\n\n return obj;\n}\n", "type PartialURL = {\n host?: string;\n path?: string;\n protocol?: string;\n relative?: string;\n search?: string;\n hash?: string;\n};\n\n/**\n * Parses string form of URL into an object\n * // borrowed from https://tools.ietf.org/html/rfc3986#appendix-B\n * // intentionally using regex and not href parsing trick because React Native and other\n * // environments where DOM might not be available\n * @returns parsed URL object\n */\nexport function parseUrl(url: string): PartialURL {\n if (!url) {\n return {};\n }\n\n const match = url.match(/^(([^:/?#]+):)?(\\/\\/([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/);\n\n if (!match) {\n return {};\n }\n\n // coerce to undefined values to empty string so we don't get 'undefined'\n const query = match[6] || '';\n const fragment = match[8] || '';\n return {\n host: match[4],\n path: match[5],\n protocol: match[2],\n search: query,\n hash: fragment,\n relative: match[5] + query + fragment, // everything minus origin\n };\n}\n\n/**\n * Strip the query string and fragment off of a given URL or path (if present)\n *\n * @param urlPath Full URL or path, including possible query string and/or fragment\n * @returns URL or path without query string or fragment\n */\nexport function stripUrlQueryAndFragment(urlPath: string): string {\n // eslint-disable-next-line no-useless-escape\n return urlPath.split(/[\\?#]/, 1)[0];\n}\n\n/**\n * Returns number of URL segments of a passed string URL.\n */\nexport function getNumberOfUrlSegments(url: string): number {\n // split at '/' or at '\\/' to split regex urls correctly\n return url.split(/\\\\?\\//).filter(s => s.length > 0 && s !== ',').length;\n}\n\n/**\n * Takes a URL object and returns a sanitized string which is safe to use as span description\n * see: https://develop.sentry.dev/sdk/data-handling/#structuring-data\n */\nexport function getSanitizedUrlString(url: PartialURL): string {\n const { protocol, host, path } = url;\n\n const filteredHost =\n (host &&\n host\n // Always filter out authority\n .replace(/^.*@/, '[filtered]:[filtered]@')\n // Don't show standard :80 (http) and :443 (https) ports to reduce the noise\n // TODO: Use new URL global if it exists\n .replace(/(:80)$/, '')\n .replace(/(:443)$/, '')) ||\n '';\n\n return `${protocol ? `${protocol}://` : ''}${filteredHost}${path}`;\n}\n", "import type {\n Event,\n ExtractedNodeRequestData,\n PolymorphicRequest,\n Transaction,\n TransactionSource,\n WebFetchHeaders,\n WebFetchRequest,\n} from '@sentry/types';\n\nimport { parseCookie } from './cookie';\nimport { DEBUG_BUILD } from './debug-build';\nimport { isPlainObject, isString } from './is';\nimport { logger } from './logger';\nimport { normalize } from './normalize';\nimport { stripUrlQueryAndFragment } from './url';\n\nconst DEFAULT_INCLUDES = {\n ip: false,\n request: true,\n transaction: true,\n user: true,\n};\nconst DEFAULT_REQUEST_INCLUDES = ['cookies', 'data', 'headers', 'method', 'query_string', 'url'];\nexport const DEFAULT_USER_INCLUDES = ['id', 'username', 'email'];\n\ntype InjectedNodeDeps = {\n cookie: {\n parse: (cookieStr: string) => Record;\n };\n url: {\n parse: (urlStr: string) => {\n query: string | null;\n };\n };\n};\n\n/**\n * Options deciding what parts of the request to use when enhancing an event\n */\nexport type AddRequestDataToEventOptions = {\n /** Flags controlling whether each type of data should be added to the event */\n include?: {\n ip?: boolean;\n request?: boolean | Array<(typeof DEFAULT_REQUEST_INCLUDES)[number]>;\n transaction?: boolean | TransactionNamingScheme;\n user?: boolean | Array<(typeof DEFAULT_USER_INCLUDES)[number]>;\n };\n\n /** Injected platform-specific dependencies */\n deps?: {\n cookie: {\n parse: (cookieStr: string) => Record;\n };\n url: {\n parse: (urlStr: string) => {\n query: string | null;\n };\n };\n };\n};\n\nexport type TransactionNamingScheme = 'path' | 'methodPath' | 'handler';\n\n/**\n * Sets parameterized route as transaction name e.g.: `GET /users/:id`\n * Also adds more context data on the transaction from the request.\n *\n * @deprecated This utility will be removed in v8.\n */\nexport function addRequestDataToTransaction(\n transaction: Transaction | undefined,\n req: PolymorphicRequest,\n deps?: InjectedNodeDeps,\n): void {\n if (!transaction) return;\n // eslint-disable-next-line deprecation/deprecation\n if (!transaction.metadata.source || transaction.metadata.source === 'url') {\n // Attempt to grab a parameterized route off of the request\n const [name, source] = extractPathForTransaction(req, { path: true, method: true });\n transaction.updateName(name);\n // TODO: SEMANTIC_ATTRIBUTE_SENTRY_SOURCE is in core, align this once we merge utils & core\n // eslint-disable-next-line deprecation/deprecation\n transaction.setMetadata({ source });\n }\n transaction.setAttribute('url', req.originalUrl || req.url);\n if (req.baseUrl) {\n transaction.setAttribute('baseUrl', req.baseUrl);\n }\n // TODO: We need to rewrite this to a flat format?\n // eslint-disable-next-line deprecation/deprecation\n transaction.setData('query', extractQueryParams(req, deps));\n}\n\n/**\n * Extracts a complete and parameterized path from the request object and uses it to construct transaction name.\n * If the parameterized transaction name cannot be extracted, we fall back to the raw URL.\n *\n * Additionally, this function determines and returns the transaction name source\n *\n * eg. GET /mountpoint/user/:id\n *\n * @param req A request object\n * @param options What to include in the transaction name (method, path, or a custom route name to be\n * used instead of the request's route)\n *\n * @returns A tuple of the fully constructed transaction name [0] and its source [1] (can be either 'route' or 'url')\n */\nexport function extractPathForTransaction(\n req: PolymorphicRequest,\n options: { path?: boolean; method?: boolean; customRoute?: string } = {},\n): [string, TransactionSource] {\n const method = req.method && req.method.toUpperCase();\n\n let path = '';\n let source: TransactionSource = 'url';\n\n // Check to see if there's a parameterized route we can use (as there is in Express)\n if (options.customRoute || req.route) {\n path = options.customRoute || `${req.baseUrl || ''}${req.route && req.route.path}`;\n source = 'route';\n }\n\n // Otherwise, just take the original URL\n else if (req.originalUrl || req.url) {\n path = stripUrlQueryAndFragment(req.originalUrl || req.url || '');\n }\n\n let name = '';\n if (options.method && method) {\n name += method;\n }\n if (options.method && options.path) {\n name += ' ';\n }\n if (options.path && path) {\n name += path;\n }\n\n return [name, source];\n}\n\n/** JSDoc */\nfunction extractTransaction(req: PolymorphicRequest, type: boolean | TransactionNamingScheme): string {\n switch (type) {\n case 'path': {\n return extractPathForTransaction(req, { path: true })[0];\n }\n case 'handler': {\n return (req.route && req.route.stack && req.route.stack[0] && req.route.stack[0].name) || '';\n }\n case 'methodPath':\n default: {\n // if exist _reconstructedRoute return that path instead of route.path\n const customRoute = req._reconstructedRoute ? req._reconstructedRoute : undefined;\n return extractPathForTransaction(req, { path: true, method: true, customRoute })[0];\n }\n }\n}\n\n/** JSDoc */\nfunction extractUserData(\n user: {\n [key: string]: unknown;\n },\n keys: boolean | string[],\n): { [key: string]: unknown } {\n const extractedUser: { [key: string]: unknown } = {};\n const attributes = Array.isArray(keys) ? keys : DEFAULT_USER_INCLUDES;\n\n attributes.forEach(key => {\n if (user && key in user) {\n extractedUser[key] = user[key];\n }\n });\n\n return extractedUser;\n}\n\n/**\n * Normalize data from the request object, accounting for framework differences.\n *\n * @param req The request object from which to extract data\n * @param options.include An optional array of keys to include in the normalized data. Defaults to\n * DEFAULT_REQUEST_INCLUDES if not provided.\n * @param options.deps Injected, platform-specific dependencies\n * @returns An object containing normalized request data\n */\nexport function extractRequestData(\n req: PolymorphicRequest,\n options?: {\n include?: string[];\n deps?: InjectedNodeDeps;\n },\n): ExtractedNodeRequestData {\n const { include = DEFAULT_REQUEST_INCLUDES, deps } = options || {};\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const requestData: { [key: string]: any } = {};\n\n // headers:\n // node, express, koa, nextjs: req.headers\n const headers = (req.headers || {}) as {\n host?: string;\n cookie?: string;\n };\n // method:\n // node, express, koa, nextjs: req.method\n const method = req.method;\n // host:\n // express: req.hostname in > 4 and req.host in < 4\n // koa: req.host\n // node, nextjs: req.headers.host\n // Express 4 mistakenly strips off port number from req.host / req.hostname so we can't rely on them\n // See: https://github.com/expressjs/express/issues/3047#issuecomment-236653223\n // Also: https://github.com/getsentry/sentry-javascript/issues/1917\n const host = headers.host || req.hostname || req.host || '';\n // protocol:\n // node, nextjs: \n // express, koa: req.protocol\n const protocol = req.protocol === 'https' || (req.socket && req.socket.encrypted) ? 'https' : 'http';\n // url (including path and query string):\n // node, express: req.originalUrl\n // koa, nextjs: req.url\n const originalUrl = req.originalUrl || req.url || '';\n // absolute url\n const absoluteUrl = originalUrl.startsWith(protocol) ? originalUrl : `${protocol}://${host}${originalUrl}`;\n include.forEach(key => {\n switch (key) {\n case 'headers': {\n requestData.headers = headers;\n\n // Remove the Cookie header in case cookie data should not be included in the event\n if (!include.includes('cookies')) {\n delete (requestData.headers as { cookie?: string }).cookie;\n }\n\n break;\n }\n case 'method': {\n requestData.method = method;\n break;\n }\n case 'url': {\n requestData.url = absoluteUrl;\n break;\n }\n case 'cookies': {\n // cookies:\n // node, express, koa: req.headers.cookie\n // vercel, sails.js, express (w/ cookie middleware), nextjs: req.cookies\n requestData.cookies =\n // TODO (v8 / #5257): We're only sending the empty object for backwards compatibility, so the last bit can\n // come off in v8\n req.cookies || (headers.cookie && parseCookie(headers.cookie)) || {};\n break;\n }\n case 'query_string': {\n // query string:\n // node: req.url (raw)\n // express, koa, nextjs: req.query\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n requestData.query_string = extractQueryParams(req, deps);\n break;\n }\n case 'data': {\n if (method === 'GET' || method === 'HEAD') {\n break;\n }\n // body data:\n // express, koa, nextjs: req.body\n //\n // when using node by itself, you have to read the incoming stream(see\n // https://nodejs.dev/learn/get-http-request-body-data-using-nodejs); if a user is doing that, we can't know\n // where they're going to store the final result, so they'll have to capture this data themselves\n if (req.body !== undefined) {\n requestData.data = isString(req.body) ? req.body : JSON.stringify(normalize(req.body));\n }\n break;\n }\n default: {\n if ({}.hasOwnProperty.call(req, key)) {\n requestData[key] = (req as { [key: string]: unknown })[key];\n }\n }\n }\n });\n\n return requestData;\n}\n\n/**\n * Add data from the given request to the given event\n *\n * @param event The event to which the request data will be added\n * @param req Request object\n * @param options.include Flags to control what data is included\n * @param options.deps Injected platform-specific dependencies\n * @returns The mutated `Event` object\n */\nexport function addRequestDataToEvent(\n event: Event,\n req: PolymorphicRequest,\n options?: AddRequestDataToEventOptions,\n): Event {\n const include = {\n ...DEFAULT_INCLUDES,\n ...(options && options.include),\n };\n\n if (include.request) {\n const extractedRequestData = Array.isArray(include.request)\n ? extractRequestData(req, { include: include.request, deps: options && options.deps })\n : extractRequestData(req, { deps: options && options.deps });\n\n event.request = {\n ...event.request,\n ...extractedRequestData,\n };\n }\n\n if (include.user) {\n const extractedUser = req.user && isPlainObject(req.user) ? extractUserData(req.user, include.user) : {};\n\n if (Object.keys(extractedUser).length) {\n event.user = {\n ...event.user,\n ...extractedUser,\n };\n }\n }\n\n // client ip:\n // node, nextjs: req.socket.remoteAddress\n // express, koa: req.ip\n if (include.ip) {\n const ip = req.ip || (req.socket && req.socket.remoteAddress);\n if (ip) {\n event.user = {\n ...event.user,\n ip_address: ip,\n };\n }\n }\n\n if (include.transaction && !event.transaction) {\n // TODO do we even need this anymore?\n // TODO make this work for nextjs\n event.transaction = extractTransaction(req, include.transaction);\n }\n\n return event;\n}\n\nfunction extractQueryParams(\n req: PolymorphicRequest,\n deps?: InjectedNodeDeps,\n): string | Record | undefined {\n // url (including path and query string):\n // node, express: req.originalUrl\n // koa, nextjs: req.url\n let originalUrl = req.originalUrl || req.url || '';\n\n if (!originalUrl) {\n return;\n }\n\n // The `URL` constructor can't handle internal URLs of the form `/some/path/here`, so stick a dummy protocol and\n // hostname on the beginning. Since the point here is just to grab the query string, it doesn't matter what we use.\n if (originalUrl.startsWith('/')) {\n originalUrl = `http://dogs.are.great${originalUrl}`;\n }\n\n try {\n return (\n req.query ||\n (typeof URL !== 'undefined' && new URL(originalUrl).search.slice(1)) ||\n // In Node 8, `URL` isn't in the global scope, so we have to use the built-in module from Node\n (deps && deps.url && deps.url.parse(originalUrl).query) ||\n undefined\n );\n } catch {\n return undefined;\n }\n}\n\n/**\n * Transforms a `Headers` object that implements the `Web Fetch API` (https://developer.mozilla.org/en-US/docs/Web/API/Headers) into a simple key-value dict.\n * The header keys will be lower case: e.g. A \"Content-Type\" header will be stored as \"content-type\".\n */\n// TODO(v8): Make this function return undefined when the extraction fails.\nexport function winterCGHeadersToDict(winterCGHeaders: WebFetchHeaders): Record {\n const headers: Record = {};\n try {\n winterCGHeaders.forEach((value, key) => {\n if (typeof value === 'string') {\n // We check that value is a string even though it might be redundant to make sure prototype pollution is not possible.\n headers[key] = value;\n }\n });\n } catch (e) {\n DEBUG_BUILD &&\n logger.warn('Sentry failed extracting headers from a request object. If you see this, please file an issue.');\n }\n\n return headers;\n}\n\n/**\n * Converts a `Request` object that implements the `Web Fetch API` (https://developer.mozilla.org/en-US/docs/Web/API/Headers) into the format that the `RequestData` integration understands.\n */\nexport function winterCGRequestToRequestData(req: WebFetchRequest): PolymorphicRequest {\n const headers = winterCGHeadersToDict(req.headers);\n return {\n method: req.method,\n url: req.url,\n headers,\n };\n}\n", "/* eslint-disable deprecation/deprecation */\nimport type { Severity, SeverityLevel } from '@sentry/types';\n\n// Note: Ideally the `SeverityLevel` type would be derived from `validSeverityLevels`, but that would mean either\n//\n// a) moving `validSeverityLevels` to `@sentry/types`,\n// b) moving the`SeverityLevel` type here, or\n// c) importing `validSeverityLevels` from here into `@sentry/types`.\n//\n// Option A would make `@sentry/types` a runtime dependency of `@sentry/utils` (not good), and options B and C would\n// create a circular dependency between `@sentry/types` and `@sentry/utils` (also not good). So a TODO accompanying the\n// type, reminding anyone who changes it to change this list also, will have to do.\n\nexport const validSeverityLevels = ['fatal', 'error', 'warning', 'log', 'info', 'debug'];\n\n/**\n * Converts a string-based level into a member of the deprecated {@link Severity} enum.\n *\n * @deprecated `severityFromString` is deprecated. Please use `severityLevelFromString` instead.\n *\n * @param level String representation of Severity\n * @returns Severity\n */\nexport function severityFromString(level: Severity | SeverityLevel | string): Severity {\n return severityLevelFromString(level) as Severity;\n}\n\n/**\n * Converts a string-based level into a `SeverityLevel`, normalizing it along the way.\n *\n * @param level String representation of desired `SeverityLevel`.\n * @returns The `SeverityLevel` corresponding to the given string, or 'log' if the string isn't a valid level.\n */\nexport function severityLevelFromString(level: SeverityLevel | string): SeverityLevel {\n return (level === 'warn' ? 'warning' : validSeverityLevels.includes(level) ? level : 'log') as SeverityLevel;\n}\n", "import { GLOBAL_OBJ } from './worldwide';\n\nconst ONE_SECOND_IN_MS = 1000;\n\n/**\n * A partial definition of the [Performance Web API]{@link https://developer.mozilla.org/en-US/docs/Web/API/Performance}\n * for accessing a high-resolution monotonic clock.\n */\ninterface Performance {\n /**\n * The millisecond timestamp at which measurement began, measured in Unix time.\n */\n timeOrigin: number;\n /**\n * Returns the current millisecond timestamp, where 0 represents the start of measurement.\n */\n now(): number;\n}\n\n/**\n * Returns a timestamp in seconds since the UNIX epoch using the Date API.\n *\n * TODO(v8): Return type should be rounded.\n */\nexport function dateTimestampInSeconds(): number {\n return Date.now() / ONE_SECOND_IN_MS;\n}\n\n/**\n * Returns a wrapper around the native Performance API browser implementation, or undefined for browsers that do not\n * support the API.\n *\n * Wrapping the native API works around differences in behavior from different browsers.\n */\nfunction createUnixTimestampInSecondsFunc(): () => number {\n const { performance } = GLOBAL_OBJ as typeof GLOBAL_OBJ & { performance?: Performance };\n if (!performance || !performance.now) {\n return dateTimestampInSeconds;\n }\n\n // Some browser and environments don't have a timeOrigin, so we fallback to\n // using Date.now() to compute the starting time.\n const approxStartingTimeOrigin = Date.now() - performance.now();\n const timeOrigin = performance.timeOrigin == undefined ? approxStartingTimeOrigin : performance.timeOrigin;\n\n // performance.now() is a monotonic clock, which means it starts at 0 when the process begins. To get the current\n // wall clock time (actual UNIX timestamp), we need to add the starting time origin and the current time elapsed.\n //\n // TODO: This does not account for the case where the monotonic clock that powers performance.now() drifts from the\n // wall clock time, which causes the returned timestamp to be inaccurate. We should investigate how to detect and\n // correct for this.\n // See: https://github.com/getsentry/sentry-javascript/issues/2590\n // See: https://github.com/mdn/content/issues/4713\n // See: https://dev.to/noamr/when-a-millisecond-is-not-a-millisecond-3h6\n return () => {\n return (timeOrigin + performance.now()) / ONE_SECOND_IN_MS;\n };\n}\n\n/**\n * Returns a timestamp in seconds since the UNIX epoch using either the Performance or Date APIs, depending on the\n * availability of the Performance API.\n *\n * BUG: Note that because of how browsers implement the Performance API, the clock might stop when the computer is\n * asleep. This creates a skew between `dateTimestampInSeconds` and `timestampInSeconds`. The\n * skew can grow to arbitrary amounts like days, weeks or months.\n * See https://github.com/getsentry/sentry-javascript/issues/2590.\n */\nexport const timestampInSeconds = createUnixTimestampInSecondsFunc();\n\n/**\n * Re-exported with an old name for backwards-compatibility.\n * TODO (v8): Remove this\n *\n * @deprecated Use `timestampInSeconds` instead.\n */\nexport const timestampWithMs = timestampInSeconds;\n\n/**\n * Internal helper to store what is the source of browserPerformanceTimeOrigin below. For debugging only.\n */\nexport let _browserPerformanceTimeOriginMode: string;\n\n/**\n * The number of milliseconds since the UNIX epoch. This value is only usable in a browser, and only when the\n * performance API is available.\n */\nexport const browserPerformanceTimeOrigin = ((): number | undefined => {\n // Unfortunately browsers may report an inaccurate time origin data, through either performance.timeOrigin or\n // performance.timing.navigationStart, which results in poor results in performance data. We only treat time origin\n // data as reliable if they are within a reasonable threshold of the current time.\n\n const { performance } = GLOBAL_OBJ as typeof GLOBAL_OBJ & Window;\n if (!performance || !performance.now) {\n _browserPerformanceTimeOriginMode = 'none';\n return undefined;\n }\n\n const threshold = 3600 * 1000;\n const performanceNow = performance.now();\n const dateNow = Date.now();\n\n // if timeOrigin isn't available set delta to threshold so it isn't used\n const timeOriginDelta = performance.timeOrigin\n ? Math.abs(performance.timeOrigin + performanceNow - dateNow)\n : threshold;\n const timeOriginIsReliable = timeOriginDelta < threshold;\n\n // While performance.timing.navigationStart is deprecated in favor of performance.timeOrigin, performance.timeOrigin\n // is not as widely supported. Namely, performance.timeOrigin is undefined in Safari as of writing.\n // Also as of writing, performance.timing is not available in Web Workers in mainstream browsers, so it is not always\n // a valid fallback. In the absence of an initial time provided by the browser, fallback to the current time from the\n // Date API.\n // eslint-disable-next-line deprecation/deprecation\n const navigationStart = performance.timing && performance.timing.navigationStart;\n const hasNavigationStart = typeof navigationStart === 'number';\n // if navigationStart isn't available set delta to threshold so it isn't used\n const navigationStartDelta = hasNavigationStart ? Math.abs(navigationStart + performanceNow - dateNow) : threshold;\n const navigationStartIsReliable = navigationStartDelta < threshold;\n\n if (timeOriginIsReliable || navigationStartIsReliable) {\n // Use the more reliable time origin\n if (timeOriginDelta <= navigationStartDelta) {\n _browserPerformanceTimeOriginMode = 'timeOrigin';\n return performance.timeOrigin;\n } else {\n _browserPerformanceTimeOriginMode = 'navigationStart';\n return navigationStart;\n }\n }\n\n // Either both timeOrigin and navigationStart are skewed or neither is available, fallback to Date.\n _browserPerformanceTimeOriginMode = 'dateNow';\n return dateNow;\n})();\n", "import type { DynamicSamplingContext } from '@sentry/types';\n\nimport { DEBUG_BUILD } from './debug-build';\nimport { isString } from './is';\nimport { logger } from './logger';\n\nexport const BAGGAGE_HEADER_NAME = 'baggage';\n\nexport const SENTRY_BAGGAGE_KEY_PREFIX = 'sentry-';\n\nexport const SENTRY_BAGGAGE_KEY_PREFIX_REGEX = /^sentry-/;\n\n/**\n * Max length of a serialized baggage string\n *\n * https://www.w3.org/TR/baggage/#limits\n */\nexport const MAX_BAGGAGE_STRING_LENGTH = 8192;\n\n/**\n * Takes a baggage header and turns it into Dynamic Sampling Context, by extracting all the \"sentry-\" prefixed values\n * from it.\n *\n * @param baggageHeader A very bread definition of a baggage header as it might appear in various frameworks.\n * @returns The Dynamic Sampling Context that was found on `baggageHeader`, if there was any, `undefined` otherwise.\n */\nexport function baggageHeaderToDynamicSamplingContext(\n // Very liberal definition of what any incoming header might look like\n baggageHeader: string | string[] | number | null | undefined | boolean,\n): Partial | undefined {\n if (!isString(baggageHeader) && !Array.isArray(baggageHeader)) {\n return undefined;\n }\n\n // Intermediary object to store baggage key value pairs of incoming baggage headers on.\n // It is later used to read Sentry-DSC-values from.\n let baggageObject: Readonly> = {};\n\n if (Array.isArray(baggageHeader)) {\n // Combine all baggage headers into one object containing the baggage values so we can later read the Sentry-DSC-values from it\n baggageObject = baggageHeader.reduce>((acc, curr) => {\n const currBaggageObject = baggageHeaderToObject(curr);\n for (const key of Object.keys(currBaggageObject)) {\n acc[key] = currBaggageObject[key];\n }\n return acc;\n }, {});\n } else {\n // Return undefined if baggage header is an empty string (technically an empty baggage header is not spec conform but\n // this is how we choose to handle it)\n if (!baggageHeader) {\n return undefined;\n }\n\n baggageObject = baggageHeaderToObject(baggageHeader);\n }\n\n // Read all \"sentry-\" prefixed values out of the baggage object and put it onto a dynamic sampling context object.\n const dynamicSamplingContext = Object.entries(baggageObject).reduce>((acc, [key, value]) => {\n if (key.match(SENTRY_BAGGAGE_KEY_PREFIX_REGEX)) {\n const nonPrefixedKey = key.slice(SENTRY_BAGGAGE_KEY_PREFIX.length);\n acc[nonPrefixedKey] = value;\n }\n return acc;\n }, {});\n\n // Only return a dynamic sampling context object if there are keys in it.\n // A keyless object means there were no sentry values on the header, which means that there is no DSC.\n if (Object.keys(dynamicSamplingContext).length > 0) {\n return dynamicSamplingContext as Partial;\n } else {\n return undefined;\n }\n}\n\n/**\n * Turns a Dynamic Sampling Object into a baggage header by prefixing all the keys on the object with \"sentry-\".\n *\n * @param dynamicSamplingContext The Dynamic Sampling Context to turn into a header. For convenience and compatibility\n * with the `getDynamicSamplingContext` method on the Transaction class ,this argument can also be `undefined`. If it is\n * `undefined` the function will return `undefined`.\n * @returns a baggage header, created from `dynamicSamplingContext`, or `undefined` either if `dynamicSamplingContext`\n * was `undefined`, or if `dynamicSamplingContext` didn't contain any values.\n */\nexport function dynamicSamplingContextToSentryBaggageHeader(\n // this also takes undefined for convenience and bundle size in other places\n dynamicSamplingContext?: Partial,\n): string | undefined {\n if (!dynamicSamplingContext) {\n return undefined;\n }\n\n // Prefix all DSC keys with \"sentry-\" and put them into a new object\n const sentryPrefixedDSC = Object.entries(dynamicSamplingContext).reduce>(\n (acc, [dscKey, dscValue]) => {\n if (dscValue) {\n acc[`${SENTRY_BAGGAGE_KEY_PREFIX}${dscKey}`] = dscValue;\n }\n return acc;\n },\n {},\n );\n\n return objectToBaggageHeader(sentryPrefixedDSC);\n}\n\n/**\n * Will parse a baggage header, which is a simple key-value map, into a flat object.\n *\n * @param baggageHeader The baggage header to parse.\n * @returns a flat object containing all the key-value pairs from `baggageHeader`.\n */\nfunction baggageHeaderToObject(baggageHeader: string): Record {\n return baggageHeader\n .split(',')\n .map(baggageEntry => baggageEntry.split('=').map(keyOrValue => decodeURIComponent(keyOrValue.trim())))\n .reduce>((acc, [key, value]) => {\n acc[key] = value;\n return acc;\n }, {});\n}\n\n/**\n * Turns a flat object (key-value pairs) into a baggage header, which is also just key-value pairs.\n *\n * @param object The object to turn into a baggage header.\n * @returns a baggage header string, or `undefined` if the object didn't have any values, since an empty baggage header\n * is not spec compliant.\n */\nfunction objectToBaggageHeader(object: Record): string | undefined {\n if (Object.keys(object).length === 0) {\n // An empty baggage header is not spec compliant: We return undefined.\n return undefined;\n }\n\n return Object.entries(object).reduce((baggageHeader, [objectKey, objectValue], currentIndex) => {\n const baggageEntry = `${encodeURIComponent(objectKey)}=${encodeURIComponent(objectValue)}`;\n const newBaggageHeader = currentIndex === 0 ? baggageEntry : `${baggageHeader},${baggageEntry}`;\n if (newBaggageHeader.length > MAX_BAGGAGE_STRING_LENGTH) {\n DEBUG_BUILD &&\n logger.warn(\n `Not adding key: ${objectKey} with val: ${objectValue} to baggage header due to exceeding baggage size limits.`,\n );\n return baggageHeader;\n } else {\n return newBaggageHeader;\n }\n }, '');\n}\n", "import type { PropagationContext, TraceparentData } from '@sentry/types';\n\nimport { baggageHeaderToDynamicSamplingContext } from './baggage';\nimport { uuid4 } from './misc';\n\n// eslint-disable-next-line @sentry-internal/sdk/no-regexp-constructor -- RegExp is used for readability here\nexport const TRACEPARENT_REGEXP = new RegExp(\n '^[ \\\\t]*' + // whitespace\n '([0-9a-f]{32})?' + // trace_id\n '-?([0-9a-f]{16})?' + // span_id\n '-?([01])?' + // sampled\n '[ \\\\t]*$', // whitespace\n);\n\n/**\n * Extract transaction context data from a `sentry-trace` header.\n *\n * @param traceparent Traceparent string\n *\n * @returns Object containing data from the header, or undefined if traceparent string is malformed\n */\nexport function extractTraceparentData(traceparent?: string): TraceparentData | undefined {\n if (!traceparent) {\n return undefined;\n }\n\n const matches = traceparent.match(TRACEPARENT_REGEXP);\n if (!matches) {\n return undefined;\n }\n\n let parentSampled: boolean | undefined;\n if (matches[3] === '1') {\n parentSampled = true;\n } else if (matches[3] === '0') {\n parentSampled = false;\n }\n\n return {\n traceId: matches[1],\n parentSampled,\n parentSpanId: matches[2],\n };\n}\n\n/**\n * Create tracing context from incoming headers.\n *\n * @deprecated Use `propagationContextFromHeaders` instead.\n */\n// TODO(v8): Remove this function\nexport function tracingContextFromHeaders(\n sentryTrace: Parameters[0],\n baggage: Parameters[0],\n): {\n traceparentData: ReturnType;\n dynamicSamplingContext: ReturnType;\n propagationContext: PropagationContext;\n} {\n const traceparentData = extractTraceparentData(sentryTrace);\n const dynamicSamplingContext = baggageHeaderToDynamicSamplingContext(baggage);\n\n const { traceId, parentSpanId, parentSampled } = traceparentData || {};\n\n if (!traceparentData) {\n return {\n traceparentData,\n dynamicSamplingContext: undefined,\n propagationContext: {\n traceId: traceId || uuid4(),\n spanId: uuid4().substring(16),\n },\n };\n } else {\n return {\n traceparentData,\n dynamicSamplingContext: dynamicSamplingContext || {}, // If we have traceparent data but no DSC it means we are not head of trace and we must freeze it\n propagationContext: {\n traceId: traceId || uuid4(),\n parentSpanId: parentSpanId || uuid4().substring(16),\n spanId: uuid4().substring(16),\n sampled: parentSampled,\n dsc: dynamicSamplingContext || {}, // If we have traceparent data but no DSC it means we are not head of trace and we must freeze it\n },\n };\n }\n}\n\n/**\n * Create a propagation context from incoming headers.\n */\nexport function propagationContextFromHeaders(\n sentryTrace: string | undefined,\n baggage: string | number | boolean | string[] | null | undefined,\n): PropagationContext {\n const traceparentData = extractTraceparentData(sentryTrace);\n const dynamicSamplingContext = baggageHeaderToDynamicSamplingContext(baggage);\n\n const { traceId, parentSpanId, parentSampled } = traceparentData || {};\n\n if (!traceparentData) {\n return {\n traceId: traceId || uuid4(),\n spanId: uuid4().substring(16),\n };\n } else {\n return {\n traceId: traceId || uuid4(),\n parentSpanId: parentSpanId || uuid4().substring(16),\n spanId: uuid4().substring(16),\n sampled: parentSampled,\n dsc: dynamicSamplingContext || {}, // If we have traceparent data but no DSC it means we are not head of trace and we must freeze it\n };\n }\n}\n\n/**\n * Create sentry-trace header from span context values.\n */\nexport function generateSentryTraceHeader(\n traceId: string = uuid4(),\n spanId: string = uuid4().substring(16),\n sampled?: boolean,\n): string {\n let sampledString = '';\n if (sampled !== undefined) {\n sampledString = sampled ? '-1' : '-0';\n }\n return `${traceId}-${spanId}${sampledString}`;\n}\n", "import type {\n Attachment,\n AttachmentItem,\n BaseEnvelopeHeaders,\n BaseEnvelopeItemHeaders,\n DataCategory,\n DsnComponents,\n Envelope,\n EnvelopeItemType,\n Event,\n EventEnvelopeHeaders,\n SdkInfo,\n SdkMetadata,\n TextEncoderInternal,\n} from '@sentry/types';\n\nimport { dsnToString } from './dsn';\nimport { normalize } from './normalize';\nimport { dropUndefinedKeys } from './object';\n\n/**\n * Creates an envelope.\n * Make sure to always explicitly provide the generic to this function\n * so that the envelope types resolve correctly.\n */\nexport function createEnvelope(headers: E[0], items: E[1] = []): E {\n return [headers, items] as E;\n}\n\n/**\n * Add an item to an envelope.\n * Make sure to always explicitly provide the generic to this function\n * so that the envelope types resolve correctly.\n */\nexport function addItemToEnvelope(envelope: E, newItem: E[1][number]): E {\n const [headers, items] = envelope;\n return [headers, [...items, newItem]] as unknown as E;\n}\n\n/**\n * Convenience function to loop through the items and item types of an envelope.\n * (This function was mostly created because working with envelope types is painful at the moment)\n *\n * If the callback returns true, the rest of the items will be skipped.\n */\nexport function forEachEnvelopeItem(\n envelope: Envelope,\n callback: (envelopeItem: E[1][number], envelopeItemType: E[1][number][0]['type']) => boolean | void,\n): boolean {\n const envelopeItems = envelope[1];\n\n for (const envelopeItem of envelopeItems) {\n const envelopeItemType = envelopeItem[0].type;\n const result = callback(envelopeItem, envelopeItemType);\n\n if (result) {\n return true;\n }\n }\n\n return false;\n}\n\n/**\n * Returns true if the envelope contains any of the given envelope item types\n */\nexport function envelopeContainsItemType(envelope: Envelope, types: EnvelopeItemType[]): boolean {\n return forEachEnvelopeItem(envelope, (_, type) => types.includes(type));\n}\n\n/**\n * Encode a string to UTF8.\n */\nfunction encodeUTF8(input: string, textEncoder?: TextEncoderInternal): Uint8Array {\n const utf8 = textEncoder || new TextEncoder();\n return utf8.encode(input);\n}\n\n/**\n * Serializes an envelope.\n */\nexport function serializeEnvelope(envelope: Envelope, textEncoder?: TextEncoderInternal): string | Uint8Array {\n const [envHeaders, items] = envelope;\n\n // Initially we construct our envelope as a string and only convert to binary chunks if we encounter binary data\n let parts: string | Uint8Array[] = JSON.stringify(envHeaders);\n\n function append(next: string | Uint8Array): void {\n if (typeof parts === 'string') {\n parts = typeof next === 'string' ? parts + next : [encodeUTF8(parts, textEncoder), next];\n } else {\n parts.push(typeof next === 'string' ? encodeUTF8(next, textEncoder) : next);\n }\n }\n\n for (const item of items) {\n const [itemHeaders, payload] = item;\n\n append(`\\n${JSON.stringify(itemHeaders)}\\n`);\n\n if (typeof payload === 'string' || payload instanceof Uint8Array) {\n append(payload);\n } else {\n let stringifiedPayload: string;\n try {\n stringifiedPayload = JSON.stringify(payload);\n } catch (e) {\n // In case, despite all our efforts to keep `payload` circular-dependency-free, `JSON.strinify()` still\n // fails, we try again after normalizing it again with infinite normalization depth. This of course has a\n // performance impact but in this case a performance hit is better than throwing.\n stringifiedPayload = JSON.stringify(normalize(payload));\n }\n append(stringifiedPayload);\n }\n }\n\n return typeof parts === 'string' ? parts : concatBuffers(parts);\n}\n\nfunction concatBuffers(buffers: Uint8Array[]): Uint8Array {\n const totalLength = buffers.reduce((acc, buf) => acc + buf.length, 0);\n\n const merged = new Uint8Array(totalLength);\n let offset = 0;\n for (const buffer of buffers) {\n merged.set(buffer, offset);\n offset += buffer.length;\n }\n\n return merged;\n}\n\nexport interface TextDecoderInternal {\n decode(input?: Uint8Array): string;\n}\n\n/**\n * Parses an envelope\n */\nexport function parseEnvelope(\n env: string | Uint8Array,\n textEncoder: TextEncoderInternal,\n textDecoder: TextDecoderInternal,\n): Envelope {\n let buffer = typeof env === 'string' ? textEncoder.encode(env) : env;\n\n function readBinary(length: number): Uint8Array {\n const bin = buffer.subarray(0, length);\n // Replace the buffer with the remaining data excluding trailing newline\n buffer = buffer.subarray(length + 1);\n return bin;\n }\n\n function readJson(): T {\n let i = buffer.indexOf(0xa);\n // If we couldn't find a newline, we must have found the end of the buffer\n if (i < 0) {\n i = buffer.length;\n }\n\n return JSON.parse(textDecoder.decode(readBinary(i))) as T;\n }\n\n const envelopeHeader = readJson();\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const items: [any, any][] = [];\n\n while (buffer.length) {\n const itemHeader = readJson();\n const binaryLength = typeof itemHeader.length === 'number' ? itemHeader.length : undefined;\n\n items.push([itemHeader, binaryLength ? readBinary(binaryLength) : readJson()]);\n }\n\n return [envelopeHeader, items];\n}\n\n/**\n * Creates attachment envelope items\n */\nexport function createAttachmentEnvelopeItem(\n attachment: Attachment,\n textEncoder?: TextEncoderInternal,\n): AttachmentItem {\n const buffer = typeof attachment.data === 'string' ? encodeUTF8(attachment.data, textEncoder) : attachment.data;\n\n return [\n dropUndefinedKeys({\n type: 'attachment',\n length: buffer.length,\n filename: attachment.filename,\n content_type: attachment.contentType,\n attachment_type: attachment.attachmentType,\n }),\n buffer,\n ];\n}\n\nconst ITEM_TYPE_TO_DATA_CATEGORY_MAP: Record = {\n session: 'session',\n sessions: 'session',\n attachment: 'attachment',\n transaction: 'transaction',\n event: 'error',\n client_report: 'internal',\n user_report: 'default',\n profile: 'profile',\n replay_event: 'replay',\n replay_recording: 'replay',\n check_in: 'monitor',\n feedback: 'feedback',\n span: 'span',\n statsd: 'metric_bucket',\n};\n\n/**\n * Maps the type of an envelope item to a data category.\n */\nexport function envelopeItemTypeToDataCategory(type: EnvelopeItemType): DataCategory {\n return ITEM_TYPE_TO_DATA_CATEGORY_MAP[type];\n}\n\n/** Extracts the minimal SDK info from the metadata or an events */\nexport function getSdkMetadataForEnvelopeHeader(metadataOrEvent?: SdkMetadata | Event): SdkInfo | undefined {\n if (!metadataOrEvent || !metadataOrEvent.sdk) {\n return;\n }\n const { name, version } = metadataOrEvent.sdk;\n return { name, version };\n}\n\n/**\n * Creates event envelope headers, based on event, sdk info and tunnel\n * Note: This function was extracted from the core package to make it available in Replay\n */\nexport function createEventEnvelopeHeaders(\n event: Event,\n sdkInfo: SdkInfo | undefined,\n tunnel: string | undefined,\n dsn?: DsnComponents,\n): EventEnvelopeHeaders {\n const dynamicSamplingContext = event.sdkProcessingMetadata && event.sdkProcessingMetadata.dynamicSamplingContext;\n return {\n event_id: event.event_id as string,\n sent_at: new Date().toISOString(),\n ...(sdkInfo && { sdk: sdkInfo }),\n ...(!!tunnel && dsn && { dsn: dsnToString(dsn) }),\n ...(dynamicSamplingContext && {\n trace: dropUndefinedKeys({ ...dynamicSamplingContext }),\n }),\n };\n}\n", "import type { ClientReport, ClientReportEnvelope, ClientReportItem } from '@sentry/types';\n\nimport { createEnvelope } from './envelope';\nimport { dateTimestampInSeconds } from './time';\n\n/**\n * Creates client report envelope\n * @param discarded_events An array of discard events\n * @param dsn A DSN that can be set on the header. Optional.\n */\nexport function createClientReportEnvelope(\n discarded_events: ClientReport['discarded_events'],\n dsn?: string,\n timestamp?: number,\n): ClientReportEnvelope {\n const clientReportItem: ClientReportItem = [\n { type: 'client_report' },\n {\n timestamp: timestamp || dateTimestampInSeconds(),\n discarded_events,\n },\n ];\n return createEnvelope(dsn ? { dsn } : {}, [clientReportItem]);\n}\n", "import type { DataCategory, TransportMakeRequestResponse } from '@sentry/types';\n\n// Intentionally keeping the key broad, as we don't know for sure what rate limit headers get returned from backend\nexport type RateLimits = Record;\n\nexport const DEFAULT_RETRY_AFTER = 60 * 1000; // 60 seconds\n\n/**\n * Extracts Retry-After value from the request header or returns default value\n * @param header string representation of 'Retry-After' header\n * @param now current unix timestamp\n *\n */\nexport function parseRetryAfterHeader(header: string, now: number = Date.now()): number {\n const headerDelay = parseInt(`${header}`, 10);\n if (!isNaN(headerDelay)) {\n return headerDelay * 1000;\n }\n\n const headerDate = Date.parse(`${header}`);\n if (!isNaN(headerDate)) {\n return headerDate - now;\n }\n\n return DEFAULT_RETRY_AFTER;\n}\n\n/**\n * Gets the time that the given category is disabled until for rate limiting.\n * In case no category-specific limit is set but a general rate limit across all categories is active,\n * that time is returned.\n *\n * @return the time in ms that the category is disabled until or 0 if there's no active rate limit.\n */\nexport function disabledUntil(limits: RateLimits, dataCategory: DataCategory): number {\n return limits[dataCategory] || limits.all || 0;\n}\n\n/**\n * Checks if a category is rate limited\n */\nexport function isRateLimited(limits: RateLimits, dataCategory: DataCategory, now: number = Date.now()): boolean {\n return disabledUntil(limits, dataCategory) > now;\n}\n\n/**\n * Update ratelimits from incoming headers.\n *\n * @return the updated RateLimits object.\n */\nexport function updateRateLimits(\n limits: RateLimits,\n { statusCode, headers }: TransportMakeRequestResponse,\n now: number = Date.now(),\n): RateLimits {\n const updatedRateLimits: RateLimits = {\n ...limits,\n };\n\n // \"The name is case-insensitive.\"\n // https://developer.mozilla.org/en-US/docs/Web/API/Headers/get\n const rateLimitHeader = headers && headers['x-sentry-rate-limits'];\n const retryAfterHeader = headers && headers['retry-after'];\n\n if (rateLimitHeader) {\n /**\n * rate limit headers are of the form\n *
    ,
    ,..\n * where each
    is of the form\n * : : : : \n * where\n * is a delay in seconds\n * is the event type(s) (error, transaction, etc) being rate limited and is of the form\n * ;;...\n * is what's being limited (org, project, or key) - ignored by SDK\n * is an arbitrary string like \"org_quota\" - ignored by SDK\n * Semicolon-separated list of metric namespace identifiers. Defines which namespace(s) will be affected.\n * Only present if rate limit applies to the metric_bucket data category.\n */\n for (const limit of rateLimitHeader.trim().split(',')) {\n const [retryAfter, categories, , , namespaces] = limit.split(':', 5);\n const headerDelay = parseInt(retryAfter, 10);\n const delay = (!isNaN(headerDelay) ? headerDelay : 60) * 1000; // 60sec default\n if (!categories) {\n updatedRateLimits.all = now + delay;\n } else {\n for (const category of categories.split(';')) {\n if (category === 'metric_bucket') {\n // namespaces will be present when category === 'metric_bucket'\n if (!namespaces || namespaces.split(';').includes('custom')) {\n updatedRateLimits[category] = now + delay;\n }\n } else {\n updatedRateLimits[category] = now + delay;\n }\n }\n }\n }\n } else if (retryAfterHeader) {\n updatedRateLimits.all = now + parseRetryAfterHeader(retryAfterHeader, now);\n } else if (statusCode === 429) {\n updatedRateLimits.all = now + 60 * 1000;\n }\n\n return updatedRateLimits;\n}\n", "import type { Integration } from '@sentry/types';\n\nexport type UserIntegrationsFunction = (integrations: Integration[]) => Integration[];\nexport type UserIntegrations = Integration[] | UserIntegrationsFunction;\nexport type IntegrationWithExclusionOption = Integration & {\n /**\n * Allow the user to exclude this integration by not returning it from a function provided as the `integrations` option\n * in `Sentry.init()`. Meant to be used with default integrations, the idea being that if a user has actively filtered\n * an integration out, we should be able to respect that choice if we wish.\n */\n allowExclusionByUser?: boolean;\n};\n\ntype ForcedIntegrationOptions = {\n [keyPath: string]: unknown;\n};\n\n/**\n * Recursively traverses an object to update an existing nested key.\n * Note: The provided key path must include existing properties,\n * the function will not create objects while traversing.\n *\n * @param obj An object to update\n * @param value The value to update the nested key with\n * @param keyPath The path to the key to update ex. fizz.buzz.foo\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction setNestedKey(obj: Record, keyPath: string, value: unknown): void {\n // Ex. foo.bar.zoop will extract foo and bar.zoop\n const match = keyPath.match(/([a-z_]+)\\.(.*)/i);\n // The match will be null when there's no more recursing to do, i.e., when we've reached the right level of the object\n if (match === null) {\n obj[keyPath] = value;\n } else {\n // `match[1]` is the initial segment of the path, and `match[2]` is the remainder of the path\n const innerObj = obj[match[1]];\n setNestedKey(innerObj, match[2], value);\n }\n}\n\n/**\n * Enforces inclusion of a given integration with specified options in an integration array originally determined by the\n * user, by either including the given default instance or by patching an existing user instance with the given options.\n *\n * Ideally this would happen when integrations are set up, but there isn't currently a mechanism there for merging\n * options from a default integration instance with those from a user-provided instance of the same integration, only\n * for allowing the user to override a default instance entirely. (TODO: Fix that.)\n *\n * @param defaultIntegrationInstance An instance of the integration with the correct options already set\n * @param userIntegrations Integrations defined by the user.\n * @param forcedOptions Options with which to patch an existing user-derived instance on the integration.\n * @returns A final integrations array.\n *\n * @deprecated This will be removed in v8.\n */\nexport function addOrUpdateIntegration(\n defaultIntegrationInstance: Integration,\n userIntegrations: T,\n forcedOptions: ForcedIntegrationOptions = {},\n): T {\n return (\n Array.isArray(userIntegrations)\n ? addOrUpdateIntegrationInArray(defaultIntegrationInstance, userIntegrations, forcedOptions)\n : addOrUpdateIntegrationInFunction(\n defaultIntegrationInstance,\n // Somehow TS can't figure out that not being an array makes this necessarily a function\n userIntegrations as UserIntegrationsFunction,\n forcedOptions,\n )\n ) as T;\n}\n\nfunction addOrUpdateIntegrationInArray(\n defaultIntegrationInstance: Integration,\n userIntegrations: Integration[],\n forcedOptions: ForcedIntegrationOptions,\n): Integration[] {\n const userInstance = userIntegrations.find(integration => integration.name === defaultIntegrationInstance.name);\n\n if (userInstance) {\n for (const [keyPath, value] of Object.entries(forcedOptions)) {\n setNestedKey(userInstance, keyPath, value);\n }\n\n return userIntegrations;\n }\n\n return [...userIntegrations, defaultIntegrationInstance];\n}\n\nfunction addOrUpdateIntegrationInFunction(\n defaultIntegrationInstance: IntegrationWithExclusionOption,\n userIntegrationsFunc: UserIntegrationsFunction,\n forcedOptions: ForcedIntegrationOptions,\n): UserIntegrationsFunction {\n const wrapper: UserIntegrationsFunction = defaultIntegrations => {\n const userFinalIntegrations = userIntegrationsFunc(defaultIntegrations);\n\n // There are instances where we want the user to be able to prevent an integration from appearing at all, which they\n // would do by providing a function which filters out the integration in question. If that's happened in one of\n // those cases, don't add our default back in.\n if (defaultIntegrationInstance.allowExclusionByUser) {\n const userFinalInstance = userFinalIntegrations.find(\n integration => integration.name === defaultIntegrationInstance.name,\n );\n if (!userFinalInstance) {\n return userFinalIntegrations;\n }\n }\n\n return addOrUpdateIntegrationInArray(defaultIntegrationInstance, userFinalIntegrations, forcedOptions);\n };\n\n return wrapper;\n}\n", "/**\n * Creates a cache that evicts keys in fifo order\n * @param size {Number}\n */\nexport function makeFifoCache(\n size: number,\n): {\n get: (key: Key) => Value | undefined;\n add: (key: Key, value: Value) => void;\n delete: (key: Key) => boolean;\n clear: () => void;\n size: () => number;\n} {\n // Maintain a fifo queue of keys, we cannot rely on Object.keys as the browser may not support it.\n let evictionOrder: Key[] = [];\n let cache: Record = {};\n\n return {\n add(key: Key, value: Value) {\n while (evictionOrder.length >= size) {\n // shift is O(n) but this is small size and only happens if we are\n // exceeding the cache size so it should be fine.\n const evictCandidate = evictionOrder.shift();\n\n if (evictCandidate !== undefined) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete cache[evictCandidate];\n }\n }\n\n // in case we have a collision, delete the old key.\n if (cache[key]) {\n this.delete(key);\n }\n\n evictionOrder.push(key);\n cache[key] = value;\n },\n clear() {\n cache = {};\n evictionOrder = [];\n },\n get(key: Key): Value | undefined {\n return cache[key];\n },\n size() {\n return evictionOrder.length;\n },\n // Delete cache key and return true if it existed, false otherwise.\n delete(key: Key): boolean {\n if (!cache[key]) {\n return false;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete cache[key];\n\n for (let i = 0; i < evictionOrder.length; i++) {\n if (evictionOrder[i] === key) {\n evictionOrder.splice(i, 1);\n break;\n }\n }\n\n return true;\n },\n };\n}\n", "import type {\n Client,\n Event,\n EventHint,\n Exception,\n Extras,\n Hub,\n Mechanism,\n ParameterizedString,\n Severity,\n SeverityLevel,\n StackFrame,\n StackParser,\n} from '@sentry/types';\n\nimport { isError, isParameterizedString, isPlainObject } from './is';\nimport { addExceptionMechanism, addExceptionTypeValue } from './misc';\nimport { normalizeToSize } from './normalize';\nimport { extractExceptionKeysForMessage } from './object';\n\n/**\n * Extracts stack frames from the error.stack string\n */\nexport function parseStackFrames(stackParser: StackParser, error: Error): StackFrame[] {\n return stackParser(error.stack || '', 1);\n}\n\n/**\n * Extracts stack frames from the error and builds a Sentry Exception\n */\nexport function exceptionFromError(stackParser: StackParser, error: Error): Exception {\n const exception: Exception = {\n type: error.name || error.constructor.name,\n value: error.message,\n };\n\n const frames = parseStackFrames(stackParser, error);\n if (frames.length) {\n exception.stacktrace = { frames };\n }\n\n return exception;\n}\n\nfunction getMessageForObject(exception: object): string {\n if ('name' in exception && typeof exception.name === 'string') {\n let message = `'${exception.name}' captured as exception`;\n\n if ('message' in exception && typeof exception.message === 'string') {\n message += ` with message '${exception.message}'`;\n }\n\n return message;\n } else if ('message' in exception && typeof exception.message === 'string') {\n return exception.message;\n } else {\n // This will allow us to group events based on top-level keys\n // which is much better than creating new group when any key/value change\n return `Object captured as exception with keys: ${extractExceptionKeysForMessage(\n exception as Record,\n )}`;\n }\n}\n\n/**\n * Builds and Event from a Exception\n *\n * TODO(v8): Remove getHub fallback\n * @hidden\n */\nexport function eventFromUnknownInput(\n // eslint-disable-next-line deprecation/deprecation\n getHubOrClient: (() => Hub) | Client | undefined,\n stackParser: StackParser,\n exception: unknown,\n hint?: EventHint,\n): Event {\n const client =\n typeof getHubOrClient === 'function'\n ? // eslint-disable-next-line deprecation/deprecation\n getHubOrClient().getClient()\n : getHubOrClient;\n\n let ex: unknown = exception;\n const providedMechanism: Mechanism | undefined =\n hint && hint.data && (hint.data as { mechanism: Mechanism }).mechanism;\n const mechanism: Mechanism = providedMechanism || {\n handled: true,\n type: 'generic',\n };\n\n let extras: Extras | undefined;\n\n if (!isError(exception)) {\n if (isPlainObject(exception)) {\n const normalizeDepth = client && client.getOptions().normalizeDepth;\n extras = { ['__serialized__']: normalizeToSize(exception as Record, normalizeDepth) };\n\n const message = getMessageForObject(exception);\n ex = (hint && hint.syntheticException) || new Error(message);\n (ex as Error).message = message;\n } else {\n // This handles when someone does: `throw \"something awesome\";`\n // We use synthesized Error here so we can extract a (rough) stack trace.\n ex = (hint && hint.syntheticException) || new Error(exception as string);\n (ex as Error).message = exception as string;\n }\n mechanism.synthetic = true;\n }\n\n const event: Event = {\n exception: {\n values: [exceptionFromError(stackParser, ex as Error)],\n },\n };\n\n if (extras) {\n event.extra = extras;\n }\n\n addExceptionTypeValue(event, undefined, undefined);\n addExceptionMechanism(event, mechanism);\n\n return {\n ...event,\n event_id: hint && hint.event_id,\n };\n}\n\n/**\n * Builds and Event from a Message\n * @hidden\n */\nexport function eventFromMessage(\n stackParser: StackParser,\n message: ParameterizedString,\n // eslint-disable-next-line deprecation/deprecation\n level: Severity | SeverityLevel = 'info',\n hint?: EventHint,\n attachStacktrace?: boolean,\n): Event {\n const event: Event = {\n event_id: hint && hint.event_id,\n level,\n };\n\n if (attachStacktrace && hint && hint.syntheticException) {\n const frames = parseStackFrames(stackParser, hint.syntheticException);\n if (frames.length) {\n event.exception = {\n values: [\n {\n value: message,\n stacktrace: { frames },\n },\n ],\n };\n }\n }\n\n if (isParameterizedString(message)) {\n const { __sentry_template_string__, __sentry_template_values__ } = message;\n\n event.logentry = {\n message: __sentry_template_string__,\n params: __sentry_template_values__,\n };\n return event;\n }\n\n event.message = message;\n return event;\n}\n", "import type { StackFrame } from '@sentry/types';\n\nimport { dropUndefinedKeys } from './object';\nimport { filenameIsInApp } from './stacktrace';\n\ntype WatchdogReturn = {\n /** Resets the watchdog timer */\n poll: () => void;\n /** Enables or disables the watchdog timer */\n enabled: (state: boolean) => void;\n};\n\ntype CreateTimerImpl = () => { getTimeMs: () => number; reset: () => void };\n\n/**\n * A node.js watchdog timer\n * @param pollInterval The interval that we expect to get polled at\n * @param anrThreshold The threshold for when we consider ANR\n * @param callback The callback to call for ANR\n * @returns An object with `poll` and `enabled` functions {@link WatchdogReturn}\n */\nexport function watchdogTimer(\n createTimer: CreateTimerImpl,\n pollInterval: number,\n anrThreshold: number,\n callback: () => void,\n): WatchdogReturn {\n const timer = createTimer();\n let triggered = false;\n let enabled = true;\n\n setInterval(() => {\n const diffMs = timer.getTimeMs();\n\n if (triggered === false && diffMs > pollInterval + anrThreshold) {\n triggered = true;\n if (enabled) {\n callback();\n }\n }\n\n if (diffMs < pollInterval + anrThreshold) {\n triggered = false;\n }\n }, 20);\n\n return {\n poll: () => {\n timer.reset();\n },\n enabled: (state: boolean) => {\n enabled = state;\n },\n };\n}\n\n// types copied from inspector.d.ts\ninterface Location {\n scriptId: string;\n lineNumber: number;\n columnNumber?: number;\n}\n\ninterface CallFrame {\n functionName: string;\n location: Location;\n url: string;\n}\n\n/**\n * Converts Debugger.CallFrame to Sentry StackFrame\n */\nexport function callFrameToStackFrame(\n frame: CallFrame,\n url: string | undefined,\n getModuleFromFilename: (filename: string | undefined) => string | undefined,\n): StackFrame {\n const filename = url ? url.replace(/^file:\\/\\//, '') : undefined;\n\n // CallFrame row/col are 0 based, whereas StackFrame are 1 based\n const colno = frame.location.columnNumber ? frame.location.columnNumber + 1 : undefined;\n const lineno = frame.location.lineNumber ? frame.location.lineNumber + 1 : undefined;\n\n return dropUndefinedKeys({\n filename,\n module: getModuleFromFilename(filename),\n function: frame.functionName || '?',\n colno,\n lineno,\n in_app: filename ? filenameIsInApp(filename) : undefined,\n });\n}\n", "/** A simple Least Recently Used map */\nexport class LRUMap {\n private readonly _cache: Map;\n\n public constructor(private readonly _maxSize: number) {\n this._cache = new Map();\n }\n\n /** Get the current size of the cache */\n public get size(): number {\n return this._cache.size;\n }\n\n /** Get an entry or undefined if it was not in the cache. Re-inserts to update the recently used order */\n public get(key: K): V | undefined {\n const value = this._cache.get(key);\n if (value === undefined) {\n return undefined;\n }\n // Remove and re-insert to update the order\n this._cache.delete(key);\n this._cache.set(key, value);\n return value;\n }\n\n /** Insert an entry and evict an older entry if we've reached maxSize */\n public set(key: K, value: V): void {\n if (this._cache.size >= this._maxSize) {\n // keys() returns an iterator in insertion order so keys().next() gives us the oldest key\n this._cache.delete(this._cache.keys().next().value);\n }\n this._cache.set(key, value);\n }\n\n /** Remove an entry and return the entry if it was in the cache */\n public remove(key: K): V | undefined {\n const value = this._cache.get(key);\n if (value) {\n this._cache.delete(key);\n }\n return value;\n }\n\n /** Clear all entries */\n public clear(): void {\n this._cache.clear();\n }\n\n /** Get all the keys */\n public keys(): Array {\n return Array.from(this._cache.keys());\n }\n\n /** Get all the values */\n public values(): Array {\n const values: V[] = [];\n this._cache.forEach(value => values.push(value));\n return values;\n }\n}\n", "// https://github.com/alangpierce/sucrase/tree/265887868966917f3b924ce38dfad01fbab1329f\n//\n// The MIT License (MIT)\n//\n// Copyright (c) 2012-2018 various contributors (see AUTHORS)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\n/**\n * Polyfill for the nullish coalescing operator (`??`).\n *\n * Note that the RHS is wrapped in a function so that if it's a computed value, that evaluation won't happen unless the\n * LHS evaluates to a nullish value, to mimic the operator's short-circuiting behavior.\n *\n * Adapted from Sucrase (https://github.com/alangpierce/sucrase)\n *\n * @param lhs The value of the expression to the left of the `??`\n * @param rhsFn A function returning the value of the expression to the right of the `??`\n * @returns The LHS value, unless it's `null` or `undefined`, in which case, the RHS value\n */\nexport function _nullishCoalesce(lhs: unknown, rhsFn: () => unknown): unknown {\n // by checking for loose equality to `null`, we catch both `null` and `undefined`\n return lhs != null ? lhs : rhsFn();\n}\n\n// Sucrase version:\n// function _nullishCoalesce(lhs, rhsFn) {\n// if (lhs != null) {\n// return lhs;\n// } else {\n// return rhsFn();\n// }\n// }\n", "// https://github.com/alangpierce/sucrase/tree/265887868966917f3b924ce38dfad01fbab1329f\n//\n// The MIT License (MIT)\n//\n// Copyright (c) 2012-2018 various contributors (see AUTHORS)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport { _nullishCoalesce } from './_nullishCoalesce';\n\n/**\n * Polyfill for the nullish coalescing operator (`??`), when used in situations where at least one of the values is the\n * result of an async operation.\n *\n * Note that the RHS is wrapped in a function so that if it's a computed value, that evaluation won't happen unless the\n * LHS evaluates to a nullish value, to mimic the operator's short-circuiting behavior.\n *\n * Adapted from Sucrase (https://github.com/alangpierce/sucrase)\n *\n * @param lhs The value of the expression to the left of the `??`\n * @param rhsFn A function returning the value of the expression to the right of the `??`\n * @returns The LHS value, unless it's `null` or `undefined`, in which case, the RHS value\n */\nexport async function _asyncNullishCoalesce(lhs: unknown, rhsFn: () => unknown): Promise {\n return _nullishCoalesce(lhs, rhsFn);\n}\n\n// Sucrase version:\n// async function _asyncNullishCoalesce(lhs, rhsFn) {\n// if (lhs != null) {\n// return lhs;\n// } else {\n// return await rhsFn();\n// }\n// }\n", "// https://github.com/alangpierce/sucrase/tree/265887868966917f3b924ce38dfad01fbab1329f\n//\n// The MIT License (MIT)\n//\n// Copyright (c) 2012-2018 various contributors (see AUTHORS)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport type { GenericFunction } from './types';\n\n/**\n * Polyfill for the optional chain operator, `?.`, given previous conversion of the expression into an array of values,\n * descriptors, and functions, for situations in which at least one part of the expression is async.\n *\n * Adapted from Sucrase (https://github.com/alangpierce/sucrase) See\n * https://github.com/alangpierce/sucrase/blob/265887868966917f3b924ce38dfad01fbab1329f/src/transformers/OptionalChainingNullishTransformer.ts#L15\n *\n * @param ops Array result of expression conversion\n * @returns The value of the expression\n */\nexport async function _asyncOptionalChain(ops: unknown[]): Promise {\n let lastAccessLHS: unknown = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i] as string;\n const fn = ops[i + 1] as (intermediateValue: unknown) => Promise;\n i += 2;\n // by checking for loose equality to `null`, we catch both `null` and `undefined`\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n // really we're meaning to return `undefined` as an actual value here, but it saves bytes not to write it\n return;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = await fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = await fn((...args: unknown[]) => (value as GenericFunction).call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n}\n\n// Sucrase version:\n// async function _asyncOptionalChain(ops) {\n// let lastAccessLHS = undefined;\n// let value = ops[0];\n// let i = 1;\n// while (i < ops.length) {\n// const op = ops[i];\n// const fn = ops[i + 1];\n// i += 2;\n// if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n// return undefined;\n// }\n// if (op === 'access' || op === 'optionalAccess') {\n// lastAccessLHS = value;\n// value = await fn(value);\n// } else if (op === 'call' || op === 'optionalCall') {\n// value = await fn((...args) => value.call(lastAccessLHS, ...args));\n// lastAccessLHS = undefined;\n// }\n// }\n// return value;\n// }\n", "// https://github.com/alangpierce/sucrase/tree/265887868966917f3b924ce38dfad01fbab1329f\n//\n// The MIT License (MIT)\n//\n// Copyright (c) 2012-2018 various contributors (see AUTHORS)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport { _asyncOptionalChain } from './_asyncOptionalChain';\n\n/**\n * Polyfill for the optional chain operator, `?.`, given previous conversion of the expression into an array of values,\n * descriptors, and functions, in cases where the value of the expression is to be deleted.\n *\n * Adapted from Sucrase (https://github.com/alangpierce/sucrase) See\n * https://github.com/alangpierce/sucrase/blob/265887868966917f3b924ce38dfad01fbab1329f/src/transformers/OptionalChainingNullishTransformer.ts#L15\n *\n * @param ops Array result of expression conversion\n * @returns The return value of the `delete` operator: `true`, unless the deletion target is an own, non-configurable\n * property (one which can't be deleted or turned into an accessor, and whose enumerability can't be changed), in which\n * case `false`.\n */\nexport async function _asyncOptionalChainDelete(ops: unknown[]): Promise {\n const result = (await _asyncOptionalChain(ops)) as Promise;\n // If `result` is `null`, it means we didn't get to the end of the chain and so nothing was deleted (in which case,\n // return `true` since that's what `delete` does when it no-ops). If it's non-null, we know the delete happened, in\n // which case we return whatever the `delete` returned, which will be a boolean.\n return result == null ? true : (result as Promise);\n}\n\n// Sucrase version:\n// async function asyncOptionalChainDelete(ops) {\n// const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);\n// return result == null ? true : result;\n// }\n", "// https://github.com/alangpierce/sucrase/tree/265887868966917f3b924ce38dfad01fbab1329f\n//\n// The MIT License (MIT)\n//\n// Copyright (c) 2012-2018 various contributors (see AUTHORS)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport type { GenericFunction } from './types';\n\n/**\n * Polyfill for the optional chain operator, `?.`, given previous conversion of the expression into an array of values,\n * descriptors, and functions.\n *\n * Adapted from Sucrase (https://github.com/alangpierce/sucrase)\n * See https://github.com/alangpierce/sucrase/blob/265887868966917f3b924ce38dfad01fbab1329f/src/transformers/OptionalChainingNullishTransformer.ts#L15\n *\n * @param ops Array result of expression conversion\n * @returns The value of the expression\n */\nexport function _optionalChain(ops: unknown[]): unknown {\n let lastAccessLHS: unknown = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i] as string;\n const fn = ops[i + 1] as (intermediateValue: unknown) => unknown;\n i += 2;\n // by checking for loose equality to `null`, we catch both `null` and `undefined`\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n // really we're meaning to return `undefined` as an actual value here, but it saves bytes not to write it\n return;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = fn((...args: unknown[]) => (value as GenericFunction).call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n}\n\n// Sucrase version\n// function _optionalChain(ops) {\n// let lastAccessLHS = undefined;\n// let value = ops[0];\n// let i = 1;\n// while (i < ops.length) {\n// const op = ops[i];\n// const fn = ops[i + 1];\n// i += 2;\n// if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n// return undefined;\n// }\n// if (op === 'access' || op === 'optionalAccess') {\n// lastAccessLHS = value;\n// value = fn(value);\n// } else if (op === 'call' || op === 'optionalCall') {\n// value = fn((...args) => value.call(lastAccessLHS, ...args));\n// lastAccessLHS = undefined;\n// }\n// }\n// return value;\n// }\n", "// https://github.com/alangpierce/sucrase/tree/265887868966917f3b924ce38dfad01fbab1329f\n//\n// The MIT License (MIT)\n//\n// Copyright (c) 2012-2018 various contributors (see AUTHORS)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport { _optionalChain } from './_optionalChain';\n\n/**\n * Polyfill for the optional chain operator, `?.`, given previous conversion of the expression into an array of values,\n * descriptors, and functions, in cases where the value of the expression is to be deleted.\n *\n * Adapted from Sucrase (https://github.com/alangpierce/sucrase) See\n * https://github.com/alangpierce/sucrase/blob/265887868966917f3b924ce38dfad01fbab1329f/src/transformers/OptionalChainingNullishTransformer.ts#L15\n *\n * @param ops Array result of expression conversion\n * @returns The return value of the `delete` operator: `true`, unless the deletion target is an own, non-configurable\n * property (one which can't be deleted or turned into an accessor, and whose enumerability can't be changed), in which\n * case `false`.\n */\nexport function _optionalChainDelete(ops: unknown[]): boolean {\n const result = _optionalChain(ops) as boolean | null;\n // If `result` is `null`, it means we didn't get to the end of the chain and so nothing was deleted (in which case,\n // return `true` since that's what `delete` does when it no-ops). If it's non-null, we know the delete happened, in\n // which case we return whatever the `delete` returned, which will be a boolean.\n return result == null ? true : result;\n}\n\n// Sucrase version:\n// function _optionalChainDelete(ops) {\n// const result = _optionalChain(ops);\n// // by checking for loose equality to `null`, we catch both `null` and `undefined`\n// return result == null ? true : result;\n// }\n", "// Based on https://github.com/sindresorhus/escape-string-regexp but with modifications to:\n// a) reduce the size by skipping the runtime type - checking\n// b) ensure it gets down - compiled for old versions of Node(the published package only supports Node 12+).\n//\n// MIT License\n//\n// Copyright (c) Sindre Sorhus (https://sindresorhus.com)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated\n// documentation files(the \"Software\"), to deal in the Software without restriction, including without limitation\n// the rights to use, copy, modify, merge, publish, distribute, sublicense, and / or sell copies of the Software, and\n// to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all copies or substantial portions of\n// the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO\n// THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n// IN THE SOFTWARE.\n\n/**\n * Given a string, escape characters which have meaning in the regex grammar, such that the result is safe to feed to\n * `new RegExp()`.\n *\n * @param regexString The string to escape\n * @returns An version of the string with all special regex characters escaped\n */\nexport function escapeStringForRegex(regexString: string): string {\n // escape the hyphen separately so we can also replace it with a unicode literal hyphen, to avoid the problems\n // discussed in https://github.com/sindresorhus/escape-string-regexp/issues/20.\n return regexString.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&').replace(/-/g, '\\\\x2d');\n}\n", "Object.defineProperty(exports, '__esModule', { value: true });\n\nconst aggregateErrors = require('./aggregate-errors.js');\nconst browser = require('./browser.js');\nconst dsn = require('./dsn.js');\nconst error = require('./error.js');\nconst worldwide = require('./worldwide.js');\nconst index = require('./instrument/index.js');\nconst is = require('./is.js');\nconst isBrowser = require('./isBrowser.js');\nconst logger = require('./logger.js');\nconst memo = require('./memo.js');\nconst misc = require('./misc.js');\nconst node = require('./node.js');\nconst normalize = require('./normalize.js');\nconst object = require('./object.js');\nconst path = require('./path.js');\nconst promisebuffer = require('./promisebuffer.js');\nconst requestdata = require('./requestdata.js');\nconst severity = require('./severity.js');\nconst stacktrace = require('./stacktrace.js');\nconst string = require('./string.js');\nconst supports = require('./supports.js');\nconst syncpromise = require('./syncpromise.js');\nconst time = require('./time.js');\nconst tracing = require('./tracing.js');\nconst env = require('./env.js');\nconst envelope = require('./envelope.js');\nconst clientreport = require('./clientreport.js');\nconst ratelimit = require('./ratelimit.js');\nconst baggage = require('./baggage.js');\nconst url = require('./url.js');\nconst userIntegrations = require('./userIntegrations.js');\nconst cache = require('./cache.js');\nconst eventbuilder = require('./eventbuilder.js');\nconst anr = require('./anr.js');\nconst lru = require('./lru.js');\nconst _asyncNullishCoalesce = require('./buildPolyfills/_asyncNullishCoalesce.js');\nconst _asyncOptionalChain = require('./buildPolyfills/_asyncOptionalChain.js');\nconst _asyncOptionalChainDelete = require('./buildPolyfills/_asyncOptionalChainDelete.js');\nconst _nullishCoalesce = require('./buildPolyfills/_nullishCoalesce.js');\nconst _optionalChain = require('./buildPolyfills/_optionalChain.js');\nconst _optionalChainDelete = require('./buildPolyfills/_optionalChainDelete.js');\nconst console = require('./instrument/console.js');\nconst dom = require('./instrument/dom.js');\nconst xhr = require('./instrument/xhr.js');\nconst fetch = require('./instrument/fetch.js');\nconst history = require('./instrument/history.js');\nconst globalError = require('./instrument/globalError.js');\nconst globalUnhandledRejection = require('./instrument/globalUnhandledRejection.js');\nconst _handlers = require('./instrument/_handlers.js');\nconst nodeStackTrace = require('./node-stack-trace.js');\nconst escapeStringForRegex = require('./vendor/escapeStringForRegex.js');\nconst supportsHistory = require('./vendor/supportsHistory.js');\n\n\n\nexports.applyAggregateErrorsToEvent = aggregateErrors.applyAggregateErrorsToEvent;\nexports.getComponentName = browser.getComponentName;\nexports.getDomElement = browser.getDomElement;\nexports.getLocationHref = browser.getLocationHref;\nexports.htmlTreeAsString = browser.htmlTreeAsString;\nexports.dsnFromString = dsn.dsnFromString;\nexports.dsnToString = dsn.dsnToString;\nexports.makeDsn = dsn.makeDsn;\nexports.SentryError = error.SentryError;\nexports.GLOBAL_OBJ = worldwide.GLOBAL_OBJ;\nexports.getGlobalObject = worldwide.getGlobalObject;\nexports.getGlobalSingleton = worldwide.getGlobalSingleton;\nexports.addInstrumentationHandler = index.addInstrumentationHandler;\nexports.isDOMError = is.isDOMError;\nexports.isDOMException = is.isDOMException;\nexports.isElement = is.isElement;\nexports.isError = is.isError;\nexports.isErrorEvent = is.isErrorEvent;\nexports.isEvent = is.isEvent;\nexports.isInstanceOf = is.isInstanceOf;\nexports.isNaN = is.isNaN;\nexports.isParameterizedString = is.isParameterizedString;\nexports.isPlainObject = is.isPlainObject;\nexports.isPrimitive = is.isPrimitive;\nexports.isRegExp = is.isRegExp;\nexports.isString = is.isString;\nexports.isSyntheticEvent = is.isSyntheticEvent;\nexports.isThenable = is.isThenable;\nexports.isVueViewModel = is.isVueViewModel;\nexports.isBrowser = isBrowser.isBrowser;\nexports.CONSOLE_LEVELS = logger.CONSOLE_LEVELS;\nexports.consoleSandbox = logger.consoleSandbox;\nexports.logger = logger.logger;\nexports.originalConsoleMethods = logger.originalConsoleMethods;\nexports.memoBuilder = memo.memoBuilder;\nexports.addContextToFrame = misc.addContextToFrame;\nexports.addExceptionMechanism = misc.addExceptionMechanism;\nexports.addExceptionTypeValue = misc.addExceptionTypeValue;\nexports.arrayify = misc.arrayify;\nexports.checkOrSetAlreadyCaught = misc.checkOrSetAlreadyCaught;\nexports.getEventDescription = misc.getEventDescription;\nexports.parseSemver = misc.parseSemver;\nexports.uuid4 = misc.uuid4;\nexports.dynamicRequire = node.dynamicRequire;\nexports.isNodeEnv = node.isNodeEnv;\nexports.loadModule = node.loadModule;\nexports.normalize = normalize.normalize;\nexports.normalizeToSize = normalize.normalizeToSize;\nexports.normalizeUrlToBase = normalize.normalizeUrlToBase;\nexports.walk = normalize.walk;\nexports.addNonEnumerableProperty = object.addNonEnumerableProperty;\nexports.convertToPlainObject = object.convertToPlainObject;\nexports.dropUndefinedKeys = object.dropUndefinedKeys;\nexports.extractExceptionKeysForMessage = object.extractExceptionKeysForMessage;\nexports.fill = object.fill;\nexports.getOriginalFunction = object.getOriginalFunction;\nexports.markFunctionWrapped = object.markFunctionWrapped;\nexports.objectify = object.objectify;\nexports.urlEncode = object.urlEncode;\nexports.basename = path.basename;\nexports.dirname = path.dirname;\nexports.isAbsolute = path.isAbsolute;\nexports.join = path.join;\nexports.normalizePath = path.normalizePath;\nexports.relative = path.relative;\nexports.resolve = path.resolve;\nexports.makePromiseBuffer = promisebuffer.makePromiseBuffer;\nexports.DEFAULT_USER_INCLUDES = requestdata.DEFAULT_USER_INCLUDES;\nexports.addRequestDataToEvent = requestdata.addRequestDataToEvent;\nexports.addRequestDataToTransaction = requestdata.addRequestDataToTransaction;\nexports.extractPathForTransaction = requestdata.extractPathForTransaction;\nexports.extractRequestData = requestdata.extractRequestData;\nexports.winterCGHeadersToDict = requestdata.winterCGHeadersToDict;\nexports.winterCGRequestToRequestData = requestdata.winterCGRequestToRequestData;\nexports.severityFromString = severity.severityFromString;\nexports.severityLevelFromString = severity.severityLevelFromString;\nexports.validSeverityLevels = severity.validSeverityLevels;\nexports.createStackParser = stacktrace.createStackParser;\nexports.getFunctionName = stacktrace.getFunctionName;\nexports.nodeStackLineParser = stacktrace.nodeStackLineParser;\nexports.stackParserFromStackParserOptions = stacktrace.stackParserFromStackParserOptions;\nexports.stripSentryFramesAndReverse = stacktrace.stripSentryFramesAndReverse;\nexports.isMatchingPattern = string.isMatchingPattern;\nexports.safeJoin = string.safeJoin;\nexports.snipLine = string.snipLine;\nexports.stringMatchesSomePattern = string.stringMatchesSomePattern;\nexports.truncate = string.truncate;\nexports.isNativeFetch = supports.isNativeFetch;\nexports.supportsDOMError = supports.supportsDOMError;\nexports.supportsDOMException = supports.supportsDOMException;\nexports.supportsErrorEvent = supports.supportsErrorEvent;\nexports.supportsFetch = supports.supportsFetch;\nexports.supportsNativeFetch = supports.supportsNativeFetch;\nexports.supportsReferrerPolicy = supports.supportsReferrerPolicy;\nexports.supportsReportingObserver = supports.supportsReportingObserver;\nexports.SyncPromise = syncpromise.SyncPromise;\nexports.rejectedSyncPromise = syncpromise.rejectedSyncPromise;\nexports.resolvedSyncPromise = syncpromise.resolvedSyncPromise;\nObject.defineProperty(exports, '_browserPerformanceTimeOriginMode', {\n\tenumerable: true,\n\tget: () => time._browserPerformanceTimeOriginMode\n});\nexports.browserPerformanceTimeOrigin = time.browserPerformanceTimeOrigin;\nexports.dateTimestampInSeconds = time.dateTimestampInSeconds;\nexports.timestampInSeconds = time.timestampInSeconds;\nexports.timestampWithMs = time.timestampWithMs;\nexports.TRACEPARENT_REGEXP = tracing.TRACEPARENT_REGEXP;\nexports.extractTraceparentData = tracing.extractTraceparentData;\nexports.generateSentryTraceHeader = tracing.generateSentryTraceHeader;\nexports.propagationContextFromHeaders = tracing.propagationContextFromHeaders;\nexports.tracingContextFromHeaders = tracing.tracingContextFromHeaders;\nexports.getSDKSource = env.getSDKSource;\nexports.isBrowserBundle = env.isBrowserBundle;\nexports.addItemToEnvelope = envelope.addItemToEnvelope;\nexports.createAttachmentEnvelopeItem = envelope.createAttachmentEnvelopeItem;\nexports.createEnvelope = envelope.createEnvelope;\nexports.createEventEnvelopeHeaders = envelope.createEventEnvelopeHeaders;\nexports.envelopeContainsItemType = envelope.envelopeContainsItemType;\nexports.envelopeItemTypeToDataCategory = envelope.envelopeItemTypeToDataCategory;\nexports.forEachEnvelopeItem = envelope.forEachEnvelopeItem;\nexports.getSdkMetadataForEnvelopeHeader = envelope.getSdkMetadataForEnvelopeHeader;\nexports.parseEnvelope = envelope.parseEnvelope;\nexports.serializeEnvelope = envelope.serializeEnvelope;\nexports.createClientReportEnvelope = clientreport.createClientReportEnvelope;\nexports.DEFAULT_RETRY_AFTER = ratelimit.DEFAULT_RETRY_AFTER;\nexports.disabledUntil = ratelimit.disabledUntil;\nexports.isRateLimited = ratelimit.isRateLimited;\nexports.parseRetryAfterHeader = ratelimit.parseRetryAfterHeader;\nexports.updateRateLimits = ratelimit.updateRateLimits;\nexports.BAGGAGE_HEADER_NAME = baggage.BAGGAGE_HEADER_NAME;\nexports.MAX_BAGGAGE_STRING_LENGTH = baggage.MAX_BAGGAGE_STRING_LENGTH;\nexports.SENTRY_BAGGAGE_KEY_PREFIX = baggage.SENTRY_BAGGAGE_KEY_PREFIX;\nexports.SENTRY_BAGGAGE_KEY_PREFIX_REGEX = baggage.SENTRY_BAGGAGE_KEY_PREFIX_REGEX;\nexports.baggageHeaderToDynamicSamplingContext = baggage.baggageHeaderToDynamicSamplingContext;\nexports.dynamicSamplingContextToSentryBaggageHeader = baggage.dynamicSamplingContextToSentryBaggageHeader;\nexports.getNumberOfUrlSegments = url.getNumberOfUrlSegments;\nexports.getSanitizedUrlString = url.getSanitizedUrlString;\nexports.parseUrl = url.parseUrl;\nexports.stripUrlQueryAndFragment = url.stripUrlQueryAndFragment;\nexports.addOrUpdateIntegration = userIntegrations.addOrUpdateIntegration;\nexports.makeFifoCache = cache.makeFifoCache;\nexports.eventFromMessage = eventbuilder.eventFromMessage;\nexports.eventFromUnknownInput = eventbuilder.eventFromUnknownInput;\nexports.exceptionFromError = eventbuilder.exceptionFromError;\nexports.parseStackFrames = eventbuilder.parseStackFrames;\nexports.callFrameToStackFrame = anr.callFrameToStackFrame;\nexports.watchdogTimer = anr.watchdogTimer;\nexports.LRUMap = lru.LRUMap;\nexports._asyncNullishCoalesce = _asyncNullishCoalesce._asyncNullishCoalesce;\nexports._asyncOptionalChain = _asyncOptionalChain._asyncOptionalChain;\nexports._asyncOptionalChainDelete = _asyncOptionalChainDelete._asyncOptionalChainDelete;\nexports._nullishCoalesce = _nullishCoalesce._nullishCoalesce;\nexports._optionalChain = _optionalChain._optionalChain;\nexports._optionalChainDelete = _optionalChainDelete._optionalChainDelete;\nexports.addConsoleInstrumentationHandler = console.addConsoleInstrumentationHandler;\nexports.addClickKeypressInstrumentationHandler = dom.addClickKeypressInstrumentationHandler;\nexports.SENTRY_XHR_DATA_KEY = xhr.SENTRY_XHR_DATA_KEY;\nexports.addXhrInstrumentationHandler = xhr.addXhrInstrumentationHandler;\nexports.addFetchInstrumentationHandler = fetch.addFetchInstrumentationHandler;\nexports.addHistoryInstrumentationHandler = history.addHistoryInstrumentationHandler;\nexports.addGlobalErrorInstrumentationHandler = globalError.addGlobalErrorInstrumentationHandler;\nexports.addGlobalUnhandledRejectionInstrumentationHandler = globalUnhandledRejection.addGlobalUnhandledRejectionInstrumentationHandler;\nexports.resetInstrumentationHandlers = _handlers.resetInstrumentationHandlers;\nexports.filenameIsInApp = nodeStackTrace.filenameIsInApp;\nexports.escapeStringForRegex = escapeStringForRegex.escapeStringForRegex;\nexports.supportsHistory = supportsHistory.supportsHistory;\n//# sourceMappingURL=index.js.map\n", "declare const __DEBUG_BUILD__: boolean;\n\n/**\n * This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.\n *\n * ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.\n */\nexport const DEBUG_BUILD = __DEBUG_BUILD__;\n", "export const DEFAULT_ENVIRONMENT = 'production';\n", "import type { Event, EventHint, EventProcessor } from '@sentry/types';\nimport { SyncPromise, getGlobalSingleton, isThenable, logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from './debug-build';\n\n/**\n * Returns the global event processors.\n * @deprecated Global event processors will be removed in v8.\n */\nexport function getGlobalEventProcessors(): EventProcessor[] {\n return getGlobalSingleton('globalEventProcessors', () => []);\n}\n\n/**\n * Add a EventProcessor to be kept globally.\n * @deprecated Use `addEventProcessor` instead. Global event processors will be removed in v8.\n */\nexport function addGlobalEventProcessor(callback: EventProcessor): void {\n // eslint-disable-next-line deprecation/deprecation\n getGlobalEventProcessors().push(callback);\n}\n\n/**\n * Process an array of event processors, returning the processed event (or `null` if the event was dropped).\n */\nexport function notifyEventProcessors(\n processors: EventProcessor[],\n event: Event | null,\n hint: EventHint,\n index: number = 0,\n): PromiseLike {\n return new SyncPromise((resolve, reject) => {\n const processor = processors[index];\n if (event === null || typeof processor !== 'function') {\n resolve(event);\n } else {\n const result = processor({ ...event }, hint) as Event | null;\n\n DEBUG_BUILD && processor.id && result === null && logger.log(`Event processor \"${processor.id}\" dropped event`);\n\n if (isThenable(result)) {\n void result\n .then(final => notifyEventProcessors(processors, final, hint, index + 1).then(resolve))\n .then(null, reject);\n } else {\n void notifyEventProcessors(processors, result, hint, index + 1)\n .then(resolve)\n .then(null, reject);\n }\n }\n });\n}\n", "import type { SerializedSession, Session, SessionContext, SessionStatus } from '@sentry/types';\nimport { dropUndefinedKeys, timestampInSeconds, uuid4 } from '@sentry/utils';\n/**\n * Creates a new `Session` object by setting certain default parameters. If optional @param context\n * is passed, the passed properties are applied to the session object.\n *\n * @param context (optional) additional properties to be applied to the returned session object\n *\n * @returns a new `Session` object\n */\nexport function makeSession(context?: Omit): Session {\n // Both timestamp and started are in seconds since the UNIX epoch.\n const startingTime = timestampInSeconds();\n\n const session: Session = {\n sid: uuid4(),\n init: true,\n timestamp: startingTime,\n started: startingTime,\n duration: 0,\n status: 'ok',\n errors: 0,\n ignoreDuration: false,\n toJSON: () => sessionToJSON(session),\n };\n\n if (context) {\n updateSession(session, context);\n }\n\n return session;\n}\n\n/**\n * Updates a session object with the properties passed in the context.\n *\n * Note that this function mutates the passed object and returns void.\n * (Had to do this instead of returning a new and updated session because closing and sending a session\n * makes an update to the session after it was passed to the sending logic.\n * @see BaseClient.captureSession )\n *\n * @param session the `Session` to update\n * @param context the `SessionContext` holding the properties that should be updated in @param session\n */\n// eslint-disable-next-line complexity\nexport function updateSession(session: Session, context: SessionContext = {}): void {\n if (context.user) {\n if (!session.ipAddress && context.user.ip_address) {\n session.ipAddress = context.user.ip_address;\n }\n\n if (!session.did && !context.did) {\n session.did = context.user.id || context.user.email || context.user.username;\n }\n }\n\n session.timestamp = context.timestamp || timestampInSeconds();\n\n if (context.abnormal_mechanism) {\n session.abnormal_mechanism = context.abnormal_mechanism;\n }\n\n if (context.ignoreDuration) {\n session.ignoreDuration = context.ignoreDuration;\n }\n if (context.sid) {\n // Good enough uuid validation. — Kamil\n session.sid = context.sid.length === 32 ? context.sid : uuid4();\n }\n if (context.init !== undefined) {\n session.init = context.init;\n }\n if (!session.did && context.did) {\n session.did = `${context.did}`;\n }\n if (typeof context.started === 'number') {\n session.started = context.started;\n }\n if (session.ignoreDuration) {\n session.duration = undefined;\n } else if (typeof context.duration === 'number') {\n session.duration = context.duration;\n } else {\n const duration = session.timestamp - session.started;\n session.duration = duration >= 0 ? duration : 0;\n }\n if (context.release) {\n session.release = context.release;\n }\n if (context.environment) {\n session.environment = context.environment;\n }\n if (!session.ipAddress && context.ipAddress) {\n session.ipAddress = context.ipAddress;\n }\n if (!session.userAgent && context.userAgent) {\n session.userAgent = context.userAgent;\n }\n if (typeof context.errors === 'number') {\n session.errors = context.errors;\n }\n if (context.status) {\n session.status = context.status;\n }\n}\n\n/**\n * Closes a session by setting its status and updating the session object with it.\n * Internally calls `updateSession` to update the passed session object.\n *\n * Note that this function mutates the passed session (@see updateSession for explanation).\n *\n * @param session the `Session` object to be closed\n * @param status the `SessionStatus` with which the session was closed. If you don't pass a status,\n * this function will keep the previously set status, unless it was `'ok'` in which case\n * it is changed to `'exited'`.\n */\nexport function closeSession(session: Session, status?: Exclude): void {\n let context = {};\n if (status) {\n context = { status };\n } else if (session.status === 'ok') {\n context = { status: 'exited' };\n }\n\n updateSession(session, context);\n}\n\n/**\n * Serializes a passed session object to a JSON object with a slightly different structure.\n * This is necessary because the Sentry backend requires a slightly different schema of a session\n * than the one the JS SDKs use internally.\n *\n * @param session the session to be converted\n *\n * @returns a JSON object of the passed session\n */\nfunction sessionToJSON(session: Session): SerializedSession {\n return dropUndefinedKeys({\n sid: `${session.sid}`,\n init: session.init,\n // Make sure that sec is converted to ms for date constructor\n started: new Date(session.started * 1000).toISOString(),\n timestamp: new Date(session.timestamp * 1000).toISOString(),\n status: session.status,\n errors: session.errors,\n did: typeof session.did === 'number' || typeof session.did === 'string' ? `${session.did}` : undefined,\n duration: session.duration,\n abnormal_mechanism: session.abnormal_mechanism,\n attrs: {\n release: session.release,\n environment: session.environment,\n ip_address: session.ipAddress,\n user_agent: session.userAgent,\n },\n });\n}\n", "import type { Span, SpanJSON, SpanTimeInput, TraceContext } from '@sentry/types';\nimport { dropUndefinedKeys, generateSentryTraceHeader, timestampInSeconds } from '@sentry/utils';\nimport type { Span as SpanClass } from '../tracing/span';\n\n// These are aligned with OpenTelemetry trace flags\nexport const TRACE_FLAG_NONE = 0x0;\nexport const TRACE_FLAG_SAMPLED = 0x1;\n\n/**\n * Convert a span to a trace context, which can be sent as the `trace` context in an event.\n */\nexport function spanToTraceContext(span: Span): TraceContext {\n const { spanId: span_id, traceId: trace_id } = span.spanContext();\n const { data, op, parent_span_id, status, tags, origin } = spanToJSON(span);\n\n return dropUndefinedKeys({\n data,\n op,\n parent_span_id,\n span_id,\n status,\n tags,\n trace_id,\n origin,\n });\n}\n\n/**\n * Convert a Span to a Sentry trace header.\n */\nexport function spanToTraceHeader(span: Span): string {\n const { traceId, spanId } = span.spanContext();\n const sampled = spanIsSampled(span);\n return generateSentryTraceHeader(traceId, spanId, sampled);\n}\n\n/**\n * Convert a span time input intp a timestamp in seconds.\n */\nexport function spanTimeInputToSeconds(input: SpanTimeInput | undefined): number {\n if (typeof input === 'number') {\n return ensureTimestampInSeconds(input);\n }\n\n if (Array.isArray(input)) {\n // See {@link HrTime} for the array-based time format\n return input[0] + input[1] / 1e9;\n }\n\n if (input instanceof Date) {\n return ensureTimestampInSeconds(input.getTime());\n }\n\n return timestampInSeconds();\n}\n\n/**\n * Converts a timestamp to second, if it was in milliseconds, or keeps it as second.\n */\nfunction ensureTimestampInSeconds(timestamp: number): number {\n const isMs = timestamp > 9999999999;\n return isMs ? timestamp / 1000 : timestamp;\n}\n\n/**\n * Convert a span to a JSON representation.\n * Note that all fields returned here are optional and need to be guarded against.\n *\n * Note: Because of this, we currently have a circular type dependency (which we opted out of in package.json).\n * This is not avoidable as we need `spanToJSON` in `spanUtils.ts`, which in turn is needed by `span.ts` for backwards compatibility.\n * And `spanToJSON` needs the Span class from `span.ts` to check here.\n * TODO v8: When we remove the deprecated stuff from `span.ts`, we can remove the circular dependency again.\n */\nexport function spanToJSON(span: Span): Partial {\n if (spanIsSpanClass(span)) {\n return span.getSpanJSON();\n }\n\n // Fallback: We also check for `.toJSON()` here...\n // eslint-disable-next-line deprecation/deprecation\n if (typeof span.toJSON === 'function') {\n // eslint-disable-next-line deprecation/deprecation\n return span.toJSON();\n }\n\n return {};\n}\n\n/**\n * Sadly, due to circular dependency checks we cannot actually import the Span class here and check for instanceof.\n * :( So instead we approximate this by checking if it has the `getSpanJSON` method.\n */\nfunction spanIsSpanClass(span: Span): span is SpanClass {\n return typeof (span as SpanClass).getSpanJSON === 'function';\n}\n\n/**\n * Returns true if a span is sampled.\n * In most cases, you should just use `span.isRecording()` instead.\n * However, this has a slightly different semantic, as it also returns false if the span is finished.\n * So in the case where this distinction is important, use this method.\n */\nexport function spanIsSampled(span: Span): boolean {\n // We align our trace flags with the ones OpenTelemetry use\n // So we also check for sampled the same way they do.\n const { traceFlags } = span.spanContext();\n // eslint-disable-next-line no-bitwise\n return Boolean(traceFlags & TRACE_FLAG_SAMPLED);\n}\n", "import type {\n CaptureContext,\n Client,\n ClientOptions,\n Event,\n EventHint,\n Scope as ScopeInterface,\n ScopeContext,\n StackFrame,\n StackParser,\n} from '@sentry/types';\nimport { GLOBAL_OBJ, addExceptionMechanism, dateTimestampInSeconds, normalize, truncate, uuid4 } from '@sentry/utils';\n\nimport { DEFAULT_ENVIRONMENT } from '../constants';\nimport { getGlobalEventProcessors, notifyEventProcessors } from '../eventProcessors';\nimport { Scope, getGlobalScope } from '../scope';\nimport { applyScopeDataToEvent, mergeScopeData } from './applyScopeDataToEvent';\nimport { spanToJSON } from './spanUtils';\n\n/**\n * This type makes sure that we get either a CaptureContext, OR an EventHint.\n * It does not allow mixing them, which could lead to unexpected outcomes, e.g. this is disallowed:\n * { user: { id: '123' }, mechanism: { handled: false } }\n */\nexport type ExclusiveEventHintOrCaptureContext =\n | (CaptureContext & Partial<{ [key in keyof EventHint]: never }>)\n | (EventHint & Partial<{ [key in keyof ScopeContext]: never }>);\n\n/**\n * Adds common information to events.\n *\n * The information includes release and environment from `options`,\n * breadcrumbs and context (extra, tags and user) from the scope.\n *\n * Information that is already present in the event is never overwritten. For\n * nested objects, such as the context, keys are merged.\n *\n * Note: This also triggers callbacks for `addGlobalEventProcessor`, but not `beforeSend`.\n *\n * @param event The original event.\n * @param hint May contain additional information about the original exception.\n * @param scope A scope containing event metadata.\n * @returns A new event with more information.\n * @hidden\n */\nexport function prepareEvent(\n options: ClientOptions,\n event: Event,\n hint: EventHint,\n scope?: Scope,\n client?: Client,\n isolationScope?: Scope,\n): PromiseLike {\n const { normalizeDepth = 3, normalizeMaxBreadth = 1_000 } = options;\n const prepared: Event = {\n ...event,\n event_id: event.event_id || hint.event_id || uuid4(),\n timestamp: event.timestamp || dateTimestampInSeconds(),\n };\n const integrations = hint.integrations || options.integrations.map(i => i.name);\n\n applyClientOptions(prepared, options);\n applyIntegrationsMetadata(prepared, integrations);\n\n // Only put debug IDs onto frames for error events.\n if (event.type === undefined) {\n applyDebugIds(prepared, options.stackParser);\n }\n\n // If we have scope given to us, use it as the base for further modifications.\n // This allows us to prevent unnecessary copying of data if `captureContext` is not provided.\n const finalScope = getFinalScope(scope, hint.captureContext);\n\n if (hint.mechanism) {\n addExceptionMechanism(prepared, hint.mechanism);\n }\n\n const clientEventProcessors = client && client.getEventProcessors ? client.getEventProcessors() : [];\n\n // This should be the last thing called, since we want that\n // {@link Hub.addEventProcessor} gets the finished prepared event.\n // Merge scope data together\n const data = getGlobalScope().getScopeData();\n\n if (isolationScope) {\n const isolationData = isolationScope.getScopeData();\n mergeScopeData(data, isolationData);\n }\n\n if (finalScope) {\n const finalScopeData = finalScope.getScopeData();\n mergeScopeData(data, finalScopeData);\n }\n\n const attachments = [...(hint.attachments || []), ...data.attachments];\n if (attachments.length) {\n hint.attachments = attachments;\n }\n\n applyScopeDataToEvent(prepared, data);\n\n // TODO (v8): Update this order to be: Global > Client > Scope\n const eventProcessors = [\n ...clientEventProcessors,\n // eslint-disable-next-line deprecation/deprecation\n ...getGlobalEventProcessors(),\n // Run scope event processors _after_ all other processors\n ...data.eventProcessors,\n ];\n\n const result = notifyEventProcessors(eventProcessors, prepared, hint);\n\n return result.then(evt => {\n if (evt) {\n // We apply the debug_meta field only after all event processors have ran, so that if any event processors modified\n // file names (e.g.the RewriteFrames integration) the filename -> debug ID relationship isn't destroyed.\n // This should not cause any PII issues, since we're only moving data that is already on the event and not adding\n // any new data\n applyDebugMeta(evt);\n }\n\n if (typeof normalizeDepth === 'number' && normalizeDepth > 0) {\n return normalizeEvent(evt, normalizeDepth, normalizeMaxBreadth);\n }\n return evt;\n });\n}\n\n/**\n * Enhances event using the client configuration.\n * It takes care of all \"static\" values like environment, release and `dist`,\n * as well as truncating overly long values.\n * @param event event instance to be enhanced\n */\nfunction applyClientOptions(event: Event, options: ClientOptions): void {\n const { environment, release, dist, maxValueLength = 250 } = options;\n\n if (!('environment' in event)) {\n event.environment = 'environment' in options ? environment : DEFAULT_ENVIRONMENT;\n }\n\n if (event.release === undefined && release !== undefined) {\n event.release = release;\n }\n\n if (event.dist === undefined && dist !== undefined) {\n event.dist = dist;\n }\n\n if (event.message) {\n event.message = truncate(event.message, maxValueLength);\n }\n\n const exception = event.exception && event.exception.values && event.exception.values[0];\n if (exception && exception.value) {\n exception.value = truncate(exception.value, maxValueLength);\n }\n\n const request = event.request;\n if (request && request.url) {\n request.url = truncate(request.url, maxValueLength);\n }\n}\n\nconst debugIdStackParserCache = new WeakMap>();\n\n/**\n * Puts debug IDs into the stack frames of an error event.\n */\nexport function applyDebugIds(event: Event, stackParser: StackParser): void {\n const debugIdMap = GLOBAL_OBJ._sentryDebugIds;\n\n if (!debugIdMap) {\n return;\n }\n\n let debugIdStackFramesCache: Map;\n const cachedDebugIdStackFrameCache = debugIdStackParserCache.get(stackParser);\n if (cachedDebugIdStackFrameCache) {\n debugIdStackFramesCache = cachedDebugIdStackFrameCache;\n } else {\n debugIdStackFramesCache = new Map();\n debugIdStackParserCache.set(stackParser, debugIdStackFramesCache);\n }\n\n // Build a map of filename -> debug_id\n const filenameDebugIdMap = Object.keys(debugIdMap).reduce>((acc, debugIdStackTrace) => {\n let parsedStack: StackFrame[];\n const cachedParsedStack = debugIdStackFramesCache.get(debugIdStackTrace);\n if (cachedParsedStack) {\n parsedStack = cachedParsedStack;\n } else {\n parsedStack = stackParser(debugIdStackTrace);\n debugIdStackFramesCache.set(debugIdStackTrace, parsedStack);\n }\n\n for (let i = parsedStack.length - 1; i >= 0; i--) {\n const stackFrame = parsedStack[i];\n if (stackFrame.filename) {\n acc[stackFrame.filename] = debugIdMap[debugIdStackTrace];\n break;\n }\n }\n return acc;\n }, {});\n\n try {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n event!.exception!.values!.forEach(exception => {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n exception.stacktrace!.frames!.forEach(frame => {\n if (frame.filename) {\n frame.debug_id = filenameDebugIdMap[frame.filename];\n }\n });\n });\n } catch (e) {\n // To save bundle size we're just try catching here instead of checking for the existence of all the different objects.\n }\n}\n\n/**\n * Moves debug IDs from the stack frames of an error event into the debug_meta field.\n */\nexport function applyDebugMeta(event: Event): void {\n // Extract debug IDs and filenames from the stack frames on the event.\n const filenameDebugIdMap: Record = {};\n try {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n event.exception!.values!.forEach(exception => {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n exception.stacktrace!.frames!.forEach(frame => {\n if (frame.debug_id) {\n if (frame.abs_path) {\n filenameDebugIdMap[frame.abs_path] = frame.debug_id;\n } else if (frame.filename) {\n filenameDebugIdMap[frame.filename] = frame.debug_id;\n }\n delete frame.debug_id;\n }\n });\n });\n } catch (e) {\n // To save bundle size we're just try catching here instead of checking for the existence of all the different objects.\n }\n\n if (Object.keys(filenameDebugIdMap).length === 0) {\n return;\n }\n\n // Fill debug_meta information\n event.debug_meta = event.debug_meta || {};\n event.debug_meta.images = event.debug_meta.images || [];\n const images = event.debug_meta.images;\n Object.keys(filenameDebugIdMap).forEach(filename => {\n images.push({\n type: 'sourcemap',\n code_file: filename,\n debug_id: filenameDebugIdMap[filename],\n });\n });\n}\n\n/**\n * This function adds all used integrations to the SDK info in the event.\n * @param event The event that will be filled with all integrations.\n */\nfunction applyIntegrationsMetadata(event: Event, integrationNames: string[]): void {\n if (integrationNames.length > 0) {\n event.sdk = event.sdk || {};\n event.sdk.integrations = [...(event.sdk.integrations || []), ...integrationNames];\n }\n}\n\n/**\n * Applies `normalize` function on necessary `Event` attributes to make them safe for serialization.\n * Normalized keys:\n * - `breadcrumbs.data`\n * - `user`\n * - `contexts`\n * - `extra`\n * @param event Event\n * @returns Normalized event\n */\nfunction normalizeEvent(event: Event | null, depth: number, maxBreadth: number): Event | null {\n if (!event) {\n return null;\n }\n\n const normalized: Event = {\n ...event,\n ...(event.breadcrumbs && {\n breadcrumbs: event.breadcrumbs.map(b => ({\n ...b,\n ...(b.data && {\n data: normalize(b.data, depth, maxBreadth),\n }),\n })),\n }),\n ...(event.user && {\n user: normalize(event.user, depth, maxBreadth),\n }),\n ...(event.contexts && {\n contexts: normalize(event.contexts, depth, maxBreadth),\n }),\n ...(event.extra && {\n extra: normalize(event.extra, depth, maxBreadth),\n }),\n };\n\n // event.contexts.trace stores information about a Transaction. Similarly,\n // event.spans[] stores information about child Spans. Given that a\n // Transaction is conceptually a Span, normalization should apply to both\n // Transactions and Spans consistently.\n // For now the decision is to skip normalization of Transactions and Spans,\n // so this block overwrites the normalized event to add back the original\n // Transaction information prior to normalization.\n if (event.contexts && event.contexts.trace && normalized.contexts) {\n normalized.contexts.trace = event.contexts.trace;\n\n // event.contexts.trace.data may contain circular/dangerous data so we need to normalize it\n if (event.contexts.trace.data) {\n normalized.contexts.trace.data = normalize(event.contexts.trace.data, depth, maxBreadth);\n }\n }\n\n // event.spans[].data may contain circular/dangerous data so we need to normalize it\n if (event.spans) {\n normalized.spans = event.spans.map(span => {\n const data = spanToJSON(span).data;\n\n if (data) {\n // This is a bit weird, as we generally have `Span` instances here, but to be safe we do not assume so\n // eslint-disable-next-line deprecation/deprecation\n span.data = normalize(data, depth, maxBreadth);\n }\n\n return span;\n });\n }\n\n return normalized;\n}\n\nfunction getFinalScope(scope: Scope | undefined, captureContext: CaptureContext | undefined): Scope | undefined {\n if (!captureContext) {\n return scope;\n }\n\n const finalScope = scope ? scope.clone() : new Scope();\n finalScope.update(captureContext);\n return finalScope;\n}\n\n/**\n * Parse either an `EventHint` directly, or convert a `CaptureContext` to an `EventHint`.\n * This is used to allow to update method signatures that used to accept a `CaptureContext` but should now accept an `EventHint`.\n */\nexport function parseEventHintOrCaptureContext(\n hint: ExclusiveEventHintOrCaptureContext | undefined,\n): EventHint | undefined {\n if (!hint) {\n return undefined;\n }\n\n // If you pass a Scope or `() => Scope` as CaptureContext, we just return this as captureContext\n if (hintIsScopeOrFunction(hint)) {\n return { captureContext: hint };\n }\n\n if (hintIsScopeContext(hint)) {\n return {\n captureContext: hint,\n };\n }\n\n return hint;\n}\n\nfunction hintIsScopeOrFunction(\n hint: CaptureContext | EventHint,\n): hint is ScopeInterface | ((scope: ScopeInterface) => ScopeInterface) {\n return hint instanceof Scope || typeof hint === 'function';\n}\n\ntype ScopeContextProperty = keyof ScopeContext;\nconst captureContextKeys: readonly ScopeContextProperty[] = [\n 'user',\n 'level',\n 'extra',\n 'contexts',\n 'tags',\n 'fingerprint',\n 'requestSession',\n 'propagationContext',\n] as const;\n\nfunction hintIsScopeContext(hint: Partial | EventHint): hint is Partial {\n return Object.keys(hint).some(key => captureContextKeys.includes(key as ScopeContextProperty));\n}\n", "import type {\n Breadcrumb,\n BreadcrumbHint,\n CaptureContext,\n CheckIn,\n Client,\n CustomSamplingContext,\n Event,\n EventHint,\n Extra,\n Extras,\n FinishedCheckIn,\n MonitorConfig,\n Primitive,\n Scope as ScopeInterface,\n Session,\n SessionContext,\n Severity,\n SeverityLevel,\n Span,\n TransactionContext,\n User,\n} from '@sentry/types';\nimport { GLOBAL_OBJ, isThenable, logger, timestampInSeconds, uuid4 } from '@sentry/utils';\n\nimport { DEFAULT_ENVIRONMENT } from './constants';\nimport { DEBUG_BUILD } from './debug-build';\nimport type { Hub } from './hub';\nimport { runWithAsyncContext } from './hub';\nimport { getCurrentHub, getIsolationScope } from './hub';\nimport type { Scope } from './scope';\nimport { closeSession, makeSession, updateSession } from './session';\nimport type { ExclusiveEventHintOrCaptureContext } from './utils/prepareEvent';\nimport { parseEventHintOrCaptureContext } from './utils/prepareEvent';\n\n/**\n * Captures an exception event and sends it to Sentry.\n *\n * @param exception The exception to capture.\n * @param hint Optional additional data to attach to the Sentry event.\n * @returns the id of the captured Sentry event.\n */\nexport function captureException(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n exception: any,\n hint?: ExclusiveEventHintOrCaptureContext,\n): string {\n // eslint-disable-next-line deprecation/deprecation\n return getCurrentHub().captureException(exception, parseEventHintOrCaptureContext(hint));\n}\n\n/**\n * Captures a message event and sends it to Sentry.\n *\n * @param exception The exception to capture.\n * @param captureContext Define the level of the message or pass in additional data to attach to the message.\n * @returns the id of the captured message.\n */\nexport function captureMessage(\n message: string,\n // eslint-disable-next-line deprecation/deprecation\n captureContext?: CaptureContext | Severity | SeverityLevel,\n): string {\n // This is necessary to provide explicit scopes upgrade, without changing the original\n // arity of the `captureMessage(message, level)` method.\n const level = typeof captureContext === 'string' ? captureContext : undefined;\n const context = typeof captureContext !== 'string' ? { captureContext } : undefined;\n // eslint-disable-next-line deprecation/deprecation\n return getCurrentHub().captureMessage(message, level, context);\n}\n\n/**\n * Captures a manually created event and sends it to Sentry.\n *\n * @param exception The event to send to Sentry.\n * @param hint Optional additional data to attach to the Sentry event.\n * @returns the id of the captured event.\n */\nexport function captureEvent(event: Event, hint?: EventHint): string {\n // eslint-disable-next-line deprecation/deprecation\n return getCurrentHub().captureEvent(event, hint);\n}\n\n/**\n * Callback to set context information onto the scope.\n * @param callback Callback function that receives Scope.\n *\n * @deprecated Use getCurrentScope() directly.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function configureScope(callback: (scope: Scope) => void): ReturnType {\n // eslint-disable-next-line deprecation/deprecation\n getCurrentHub().configureScope(callback);\n}\n\n/**\n * Records a new breadcrumb which will be attached to future events.\n *\n * Breadcrumbs will be added to subsequent events to provide more context on\n * user's actions prior to an error or crash.\n *\n * @param breadcrumb The breadcrumb to record.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function addBreadcrumb(breadcrumb: Breadcrumb, hint?: BreadcrumbHint): ReturnType {\n // eslint-disable-next-line deprecation/deprecation\n getCurrentHub().addBreadcrumb(breadcrumb, hint);\n}\n\n/**\n * Sets context data with the given name.\n * @param name of the context\n * @param context Any kind of data. This data will be normalized.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any, deprecation/deprecation\nexport function setContext(name: string, context: { [key: string]: any } | null): ReturnType {\n // eslint-disable-next-line deprecation/deprecation\n getCurrentHub().setContext(name, context);\n}\n\n/**\n * Set an object that will be merged sent as extra data with the event.\n * @param extras Extras object to merge into current context.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function setExtras(extras: Extras): ReturnType {\n // eslint-disable-next-line deprecation/deprecation\n getCurrentHub().setExtras(extras);\n}\n\n/**\n * Set key:value that will be sent as extra data with the event.\n * @param key String of extra\n * @param extra Any kind of data. This data will be normalized.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function setExtra(key: string, extra: Extra): ReturnType {\n // eslint-disable-next-line deprecation/deprecation\n getCurrentHub().setExtra(key, extra);\n}\n\n/**\n * Set an object that will be merged sent as tags data with the event.\n * @param tags Tags context object to merge into current context.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function setTags(tags: { [key: string]: Primitive }): ReturnType {\n // eslint-disable-next-line deprecation/deprecation\n getCurrentHub().setTags(tags);\n}\n\n/**\n * Set key:value that will be sent as tags data with the event.\n *\n * Can also be used to unset a tag, by passing `undefined`.\n *\n * @param key String key of tag\n * @param value Value of tag\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function setTag(key: string, value: Primitive): ReturnType {\n // eslint-disable-next-line deprecation/deprecation\n getCurrentHub().setTag(key, value);\n}\n\n/**\n * Updates user context information for future events.\n *\n * @param user User context object to be set in the current context. Pass `null` to unset the user.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function setUser(user: User | null): ReturnType {\n // eslint-disable-next-line deprecation/deprecation\n getCurrentHub().setUser(user);\n}\n\n/**\n * Creates a new scope with and executes the given operation within.\n * The scope is automatically removed once the operation\n * finishes or throws.\n *\n * This is essentially a convenience function for:\n *\n * pushScope();\n * callback();\n * popScope();\n */\nexport function withScope(callback: (scope: Scope) => T): T;\n/**\n * Set the given scope as the active scope in the callback.\n */\nexport function withScope(scope: ScopeInterface | undefined, callback: (scope: Scope) => T): T;\n/**\n * Either creates a new active scope, or sets the given scope as active scope in the given callback.\n */\nexport function withScope(\n ...rest: [callback: (scope: Scope) => T] | [scope: ScopeInterface | undefined, callback: (scope: Scope) => T]\n): T {\n // eslint-disable-next-line deprecation/deprecation\n const hub = getCurrentHub();\n\n // If a scope is defined, we want to make this the active scope instead of the default one\n if (rest.length === 2) {\n const [scope, callback] = rest;\n if (!scope) {\n // eslint-disable-next-line deprecation/deprecation\n return hub.withScope(callback);\n }\n\n // eslint-disable-next-line deprecation/deprecation\n return hub.withScope(() => {\n // eslint-disable-next-line deprecation/deprecation\n hub.getStackTop().scope = scope as Scope;\n return callback(scope as Scope);\n });\n }\n\n // eslint-disable-next-line deprecation/deprecation\n return hub.withScope(rest[0]);\n}\n\n/**\n * Attempts to fork the current isolation scope and the current scope based on the current async context strategy. If no\n * async context strategy is set, the isolation scope and the current scope will not be forked (this is currently the\n * case, for example, in the browser).\n *\n * Usage of this function in environments without async context strategy is discouraged and may lead to unexpected behaviour.\n *\n * This function is intended for Sentry SDK and SDK integration development. It is not recommended to be used in \"normal\"\n * applications directly because it comes with pitfalls. Use at your own risk!\n *\n * @param callback The callback in which the passed isolation scope is active. (Note: In environments without async\n * context strategy, the currently active isolation scope may change within execution of the callback.)\n * @returns The same value that `callback` returns.\n */\nexport function withIsolationScope(callback: (isolationScope: Scope) => T): T {\n return runWithAsyncContext(() => {\n return callback(getIsolationScope());\n });\n}\n\n/**\n * Forks the current scope and sets the provided span as active span in the context of the provided callback.\n *\n * @param span Spans started in the context of the provided callback will be children of this span.\n * @param callback Execution context in which the provided span will be active. Is passed the newly forked scope.\n * @returns the value returned from the provided callback function.\n */\nexport function withActiveSpan(span: Span, callback: (scope: Scope) => T): T {\n return withScope(scope => {\n // eslint-disable-next-line deprecation/deprecation\n scope.setSpan(span);\n return callback(scope);\n });\n}\n\n/**\n * Starts a new `Transaction` and returns it. This is the entry point to manual tracing instrumentation.\n *\n * A tree structure can be built by adding child spans to the transaction, and child spans to other spans. To start a\n * new child span within the transaction or any span, call the respective `.startChild()` method.\n *\n * Every child span must be finished before the transaction is finished, otherwise the unfinished spans are discarded.\n *\n * The transaction must be finished with a call to its `.end()` method, at which point the transaction with all its\n * finished child spans will be sent to Sentry.\n *\n * NOTE: This function should only be used for *manual* instrumentation. Auto-instrumentation should call\n * `startTransaction` directly on the hub.\n *\n * @param context Properties of the new `Transaction`.\n * @param customSamplingContext Information given to the transaction sampling function (along with context-dependent\n * default values). See {@link Options.tracesSampler}.\n *\n * @returns The transaction which was just started\n *\n * @deprecated Use `startSpan()`, `startSpanManual()` or `startInactiveSpan()` instead.\n */\nexport function startTransaction(\n context: TransactionContext,\n customSamplingContext?: CustomSamplingContext,\n // eslint-disable-next-line deprecation/deprecation\n): ReturnType {\n // eslint-disable-next-line deprecation/deprecation\n return getCurrentHub().startTransaction({ ...context }, customSamplingContext);\n}\n\n/**\n * Create a cron monitor check in and send it to Sentry.\n *\n * @param checkIn An object that describes a check in.\n * @param upsertMonitorConfig An optional object that describes a monitor config. Use this if you want\n * to create a monitor automatically when sending a check in.\n */\nexport function captureCheckIn(checkIn: CheckIn, upsertMonitorConfig?: MonitorConfig): string {\n const scope = getCurrentScope();\n const client = getClient();\n if (!client) {\n DEBUG_BUILD && logger.warn('Cannot capture check-in. No client defined.');\n } else if (!client.captureCheckIn) {\n DEBUG_BUILD && logger.warn('Cannot capture check-in. Client does not support sending check-ins.');\n } else {\n return client.captureCheckIn(checkIn, upsertMonitorConfig, scope);\n }\n\n return uuid4();\n}\n\n/**\n * Wraps a callback with a cron monitor check in. The check in will be sent to Sentry when the callback finishes.\n *\n * @param monitorSlug The distinct slug of the monitor.\n * @param upsertMonitorConfig An optional object that describes a monitor config. Use this if you want\n * to create a monitor automatically when sending a check in.\n */\nexport function withMonitor(\n monitorSlug: CheckIn['monitorSlug'],\n callback: () => T,\n upsertMonitorConfig?: MonitorConfig,\n): T {\n const checkInId = captureCheckIn({ monitorSlug, status: 'in_progress' }, upsertMonitorConfig);\n const now = timestampInSeconds();\n\n function finishCheckIn(status: FinishedCheckIn['status']): void {\n captureCheckIn({ monitorSlug, status, checkInId, duration: timestampInSeconds() - now });\n }\n\n let maybePromiseResult: T;\n try {\n maybePromiseResult = callback();\n } catch (e) {\n finishCheckIn('error');\n throw e;\n }\n\n if (isThenable(maybePromiseResult)) {\n Promise.resolve(maybePromiseResult).then(\n () => {\n finishCheckIn('ok');\n },\n () => {\n finishCheckIn('error');\n },\n );\n } else {\n finishCheckIn('ok');\n }\n\n return maybePromiseResult;\n}\n\n/**\n * Call `flush()` on the current client, if there is one. See {@link Client.flush}.\n *\n * @param timeout Maximum time in ms the client should wait to flush its event queue. Omitting this parameter will cause\n * the client to wait until all events are sent before resolving the promise.\n * @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it\n * doesn't (or if there's no client defined).\n */\nexport async function flush(timeout?: number): Promise {\n const client = getClient();\n if (client) {\n return client.flush(timeout);\n }\n DEBUG_BUILD && logger.warn('Cannot flush events. No client defined.');\n return Promise.resolve(false);\n}\n\n/**\n * Call `close()` on the current client, if there is one. See {@link Client.close}.\n *\n * @param timeout Maximum time in ms the client should wait to flush its event queue before shutting down. Omitting this\n * parameter will cause the client to wait until all events are sent before disabling itself.\n * @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it\n * doesn't (or if there's no client defined).\n */\nexport async function close(timeout?: number): Promise {\n const client = getClient();\n if (client) {\n return client.close(timeout);\n }\n DEBUG_BUILD && logger.warn('Cannot flush events and disable SDK. No client defined.');\n return Promise.resolve(false);\n}\n\n/**\n * This is the getter for lastEventId.\n *\n * @returns The last event id of a captured event.\n */\nexport function lastEventId(): string | undefined {\n // eslint-disable-next-line deprecation/deprecation\n return getCurrentHub().lastEventId();\n}\n\n/**\n * Get the currently active client.\n */\nexport function getClient(): C | undefined {\n // eslint-disable-next-line deprecation/deprecation\n return getCurrentHub().getClient();\n}\n\n/**\n * Returns true if Sentry has been properly initialized.\n */\nexport function isInitialized(): boolean {\n return !!getClient();\n}\n\n/**\n * Get the currently active scope.\n */\nexport function getCurrentScope(): Scope {\n // eslint-disable-next-line deprecation/deprecation\n return getCurrentHub().getScope();\n}\n\n/**\n * Start a session on the current isolation scope.\n *\n * @param context (optional) additional properties to be applied to the returned session object\n *\n * @returns the new active session\n */\nexport function startSession(context?: SessionContext): Session {\n const client = getClient();\n const isolationScope = getIsolationScope();\n const currentScope = getCurrentScope();\n\n const { release, environment = DEFAULT_ENVIRONMENT } = (client && client.getOptions()) || {};\n\n // Will fetch userAgent if called from browser sdk\n const { userAgent } = GLOBAL_OBJ.navigator || {};\n\n const session = makeSession({\n release,\n environment,\n user: currentScope.getUser() || isolationScope.getUser(),\n ...(userAgent && { userAgent }),\n ...context,\n });\n\n // End existing session if there's one\n const currentSession = isolationScope.getSession();\n if (currentSession && currentSession.status === 'ok') {\n updateSession(currentSession, { status: 'exited' });\n }\n\n endSession();\n\n // Afterwards we set the new session on the scope\n isolationScope.setSession(session);\n\n // TODO (v8): Remove this and only use the isolation scope(?).\n // For v7 though, we can't \"soft-break\" people using getCurrentHub().getScope().setSession()\n currentScope.setSession(session);\n\n return session;\n}\n\n/**\n * End the session on the current isolation scope.\n */\nexport function endSession(): void {\n const isolationScope = getIsolationScope();\n const currentScope = getCurrentScope();\n\n const session = currentScope.getSession() || isolationScope.getSession();\n if (session) {\n closeSession(session);\n }\n _sendSessionUpdate();\n\n // the session is over; take it off of the scope\n isolationScope.setSession();\n\n // TODO (v8): Remove this and only use the isolation scope(?).\n // For v7 though, we can't \"soft-break\" people using getCurrentHub().getScope().setSession()\n currentScope.setSession();\n}\n\n/**\n * Sends the current Session on the scope\n */\nfunction _sendSessionUpdate(): void {\n const isolationScope = getIsolationScope();\n const currentScope = getCurrentScope();\n const client = getClient();\n // TODO (v8): Remove currentScope and only use the isolation scope(?).\n // For v7 though, we can't \"soft-break\" people using getCurrentHub().getScope().setSession()\n const session = currentScope.getSession() || isolationScope.getSession();\n if (session && client && client.captureSession) {\n client.captureSession(session);\n }\n}\n\n/**\n * Sends the current session on the scope to Sentry\n *\n * @param end If set the session will be marked as exited and removed from the scope.\n * Defaults to `false`.\n */\nexport function captureSession(end: boolean = false): void {\n // both send the update and pull the session from the scope\n if (end) {\n endSession();\n return;\n }\n\n // only send the update\n _sendSessionUpdate();\n}\n", "import type { Span } from '@sentry/types';\n\n/**\n * Returns the root span of a given span.\n *\n * As long as we use `Transaction`s internally, the returned root span\n * will be a `Transaction` but be aware that this might change in the future.\n *\n * If the given span has no root span or transaction, `undefined` is returned.\n */\nexport function getRootSpan(span: Span): Span | undefined {\n // TODO (v8): Remove this check and just return span\n // eslint-disable-next-line deprecation/deprecation\n return span.transaction;\n}\n", "import type { Client, DynamicSamplingContext, Scope, Span, Transaction } from '@sentry/types';\nimport { dropUndefinedKeys } from '@sentry/utils';\n\nimport { DEFAULT_ENVIRONMENT } from '../constants';\nimport { getClient, getCurrentScope } from '../exports';\nimport { getRootSpan } from '../utils/getRootSpan';\nimport { spanIsSampled, spanToJSON } from '../utils/spanUtils';\n\n/**\n * Creates a dynamic sampling context from a client.\n *\n * Dispatches the `createDsc` lifecycle hook as a side effect.\n */\nexport function getDynamicSamplingContextFromClient(\n trace_id: string,\n client: Client,\n scope?: Scope,\n): DynamicSamplingContext {\n const options = client.getOptions();\n\n const { publicKey: public_key } = client.getDsn() || {};\n // TODO(v8): Remove segment from User\n // eslint-disable-next-line deprecation/deprecation\n const { segment: user_segment } = (scope && scope.getUser()) || {};\n\n const dsc = dropUndefinedKeys({\n environment: options.environment || DEFAULT_ENVIRONMENT,\n release: options.release,\n user_segment,\n public_key,\n trace_id,\n }) as DynamicSamplingContext;\n\n client.emit && client.emit('createDsc', dsc);\n\n return dsc;\n}\n\n/**\n * A Span with a frozen dynamic sampling context.\n */\ntype TransactionWithV7FrozenDsc = Transaction & { _frozenDynamicSamplingContext?: DynamicSamplingContext };\n\n/**\n * Creates a dynamic sampling context from a span (and client and scope)\n *\n * @param span the span from which a few values like the root span name and sample rate are extracted.\n *\n * @returns a dynamic sampling context\n */\nexport function getDynamicSamplingContextFromSpan(span: Span): Readonly> {\n const client = getClient();\n if (!client) {\n return {};\n }\n\n // passing emit=false here to only emit later once the DSC is actually populated\n const dsc = getDynamicSamplingContextFromClient(spanToJSON(span).trace_id || '', client, getCurrentScope());\n\n // TODO (v8): Remove v7FrozenDsc as a Transaction will no longer have _frozenDynamicSamplingContext\n const txn = getRootSpan(span) as TransactionWithV7FrozenDsc | undefined;\n if (!txn) {\n return dsc;\n }\n\n // TODO (v8): Remove v7FrozenDsc as a Transaction will no longer have _frozenDynamicSamplingContext\n // For now we need to avoid breaking users who directly created a txn with a DSC, where this field is still set.\n // @see Transaction class constructor\n const v7FrozenDsc = txn && txn._frozenDynamicSamplingContext;\n if (v7FrozenDsc) {\n return v7FrozenDsc;\n }\n\n // TODO (v8): Replace txn.metadata with txn.attributes[]\n // We can't do this yet because attributes aren't always set yet.\n // eslint-disable-next-line deprecation/deprecation\n const { sampleRate: maybeSampleRate, source } = txn.metadata;\n if (maybeSampleRate != null) {\n dsc.sample_rate = `${maybeSampleRate}`;\n }\n\n // We don't want to have a transaction name in the DSC if the source is \"url\" because URLs might contain PII\n const jsonSpan = spanToJSON(txn);\n\n // after JSON conversion, txn.name becomes jsonSpan.description\n if (source && source !== 'url') {\n dsc.transaction = jsonSpan.description;\n }\n\n dsc.sampled = String(spanIsSampled(txn));\n\n client.emit && client.emit('createDsc', dsc);\n\n return dsc;\n}\n", "import type { Breadcrumb, Event, ScopeData, Span } from '@sentry/types';\nimport { arrayify, dropUndefinedKeys } from '@sentry/utils';\nimport { getDynamicSamplingContextFromSpan } from '../tracing/dynamicSamplingContext';\nimport { getRootSpan } from './getRootSpan';\nimport { spanToJSON, spanToTraceContext } from './spanUtils';\n\n/**\n * Applies data from the scope to the event and runs all event processors on it.\n */\nexport function applyScopeDataToEvent(event: Event, data: ScopeData): void {\n const { fingerprint, span, breadcrumbs, sdkProcessingMetadata } = data;\n\n // Apply general data\n applyDataToEvent(event, data);\n\n // We want to set the trace context for normal events only if there isn't already\n // a trace context on the event. There is a product feature in place where we link\n // errors with transaction and it relies on that.\n if (span) {\n applySpanToEvent(event, span);\n }\n\n applyFingerprintToEvent(event, fingerprint);\n applyBreadcrumbsToEvent(event, breadcrumbs);\n applySdkMetadataToEvent(event, sdkProcessingMetadata);\n}\n\n/** Merge data of two scopes together. */\nexport function mergeScopeData(data: ScopeData, mergeData: ScopeData): void {\n const {\n extra,\n tags,\n user,\n contexts,\n level,\n sdkProcessingMetadata,\n breadcrumbs,\n fingerprint,\n eventProcessors,\n attachments,\n propagationContext,\n // eslint-disable-next-line deprecation/deprecation\n transactionName,\n span,\n } = mergeData;\n\n mergeAndOverwriteScopeData(data, 'extra', extra);\n mergeAndOverwriteScopeData(data, 'tags', tags);\n mergeAndOverwriteScopeData(data, 'user', user);\n mergeAndOverwriteScopeData(data, 'contexts', contexts);\n mergeAndOverwriteScopeData(data, 'sdkProcessingMetadata', sdkProcessingMetadata);\n\n if (level) {\n data.level = level;\n }\n\n if (transactionName) {\n // eslint-disable-next-line deprecation/deprecation\n data.transactionName = transactionName;\n }\n\n if (span) {\n data.span = span;\n }\n\n if (breadcrumbs.length) {\n data.breadcrumbs = [...data.breadcrumbs, ...breadcrumbs];\n }\n\n if (fingerprint.length) {\n data.fingerprint = [...data.fingerprint, ...fingerprint];\n }\n\n if (eventProcessors.length) {\n data.eventProcessors = [...data.eventProcessors, ...eventProcessors];\n }\n\n if (attachments.length) {\n data.attachments = [...data.attachments, ...attachments];\n }\n\n data.propagationContext = { ...data.propagationContext, ...propagationContext };\n}\n\n/**\n * Merges certain scope data. Undefined values will overwrite any existing values.\n * Exported only for tests.\n */\nexport function mergeAndOverwriteScopeData<\n Prop extends 'extra' | 'tags' | 'user' | 'contexts' | 'sdkProcessingMetadata',\n Data extends ScopeData,\n>(data: Data, prop: Prop, mergeVal: Data[Prop]): void {\n if (mergeVal && Object.keys(mergeVal).length) {\n // Clone object\n data[prop] = { ...data[prop] };\n for (const key in mergeVal) {\n if (Object.prototype.hasOwnProperty.call(mergeVal, key)) {\n data[prop][key] = mergeVal[key];\n }\n }\n }\n}\n\n/** Exported only for tests */\nexport function mergeArray(\n event: Event,\n prop: Prop,\n mergeVal: ScopeData[Prop],\n): void {\n const prevVal = event[prop];\n // If we are not merging any new values,\n // we only need to proceed if there was an empty array before (as we want to replace it with undefined)\n if (!mergeVal.length && (!prevVal || prevVal.length)) {\n return;\n }\n\n const merged = [...(prevVal || []), ...mergeVal] as ScopeData[Prop];\n event[prop] = merged.length ? merged : undefined;\n}\n\nfunction applyDataToEvent(event: Event, data: ScopeData): void {\n const {\n extra,\n tags,\n user,\n contexts,\n level,\n // eslint-disable-next-line deprecation/deprecation\n transactionName,\n } = data;\n\n const cleanedExtra = dropUndefinedKeys(extra);\n if (cleanedExtra && Object.keys(cleanedExtra).length) {\n event.extra = { ...cleanedExtra, ...event.extra };\n }\n\n const cleanedTags = dropUndefinedKeys(tags);\n if (cleanedTags && Object.keys(cleanedTags).length) {\n event.tags = { ...cleanedTags, ...event.tags };\n }\n\n const cleanedUser = dropUndefinedKeys(user);\n if (cleanedUser && Object.keys(cleanedUser).length) {\n event.user = { ...cleanedUser, ...event.user };\n }\n\n const cleanedContexts = dropUndefinedKeys(contexts);\n if (cleanedContexts && Object.keys(cleanedContexts).length) {\n event.contexts = { ...cleanedContexts, ...event.contexts };\n }\n\n if (level) {\n event.level = level;\n }\n\n if (transactionName) {\n event.transaction = transactionName;\n }\n}\n\nfunction applyBreadcrumbsToEvent(event: Event, breadcrumbs: Breadcrumb[]): void {\n const mergedBreadcrumbs = [...(event.breadcrumbs || []), ...breadcrumbs];\n event.breadcrumbs = mergedBreadcrumbs.length ? mergedBreadcrumbs : undefined;\n}\n\nfunction applySdkMetadataToEvent(event: Event, sdkProcessingMetadata: ScopeData['sdkProcessingMetadata']): void {\n event.sdkProcessingMetadata = {\n ...event.sdkProcessingMetadata,\n ...sdkProcessingMetadata,\n };\n}\n\nfunction applySpanToEvent(event: Event, span: Span): void {\n event.contexts = { trace: spanToTraceContext(span), ...event.contexts };\n const rootSpan = getRootSpan(span);\n if (rootSpan) {\n event.sdkProcessingMetadata = {\n dynamicSamplingContext: getDynamicSamplingContextFromSpan(span),\n ...event.sdkProcessingMetadata,\n };\n const transactionName = spanToJSON(rootSpan).description;\n if (transactionName) {\n event.tags = { transaction: transactionName, ...event.tags };\n }\n }\n}\n\n/**\n * Applies fingerprint from the scope to the event if there's one,\n * uses message if there's one instead or get rid of empty fingerprint\n */\nfunction applyFingerprintToEvent(event: Event, fingerprint: ScopeData['fingerprint'] | undefined): void {\n // Make sure it's an array first and we actually have something in place\n event.fingerprint = event.fingerprint ? arrayify(event.fingerprint) : [];\n\n // If we have something on the scope, then merge it with event\n if (fingerprint) {\n event.fingerprint = event.fingerprint.concat(fingerprint);\n }\n\n // If we have no data at all, remove empty array default\n if (event.fingerprint && !event.fingerprint.length) {\n delete event.fingerprint;\n }\n}\n", "/* eslint-disable max-lines */\nimport type {\n Attachment,\n Breadcrumb,\n CaptureContext,\n Client,\n Context,\n Contexts,\n Event,\n EventHint,\n EventProcessor,\n Extra,\n Extras,\n Primitive,\n PropagationContext,\n RequestSession,\n Scope as ScopeInterface,\n ScopeContext,\n ScopeData,\n Session,\n Severity,\n SeverityLevel,\n Span,\n Transaction,\n User,\n} from '@sentry/types';\nimport { dateTimestampInSeconds, isPlainObject, logger, uuid4 } from '@sentry/utils';\n\nimport { getGlobalEventProcessors, notifyEventProcessors } from './eventProcessors';\nimport { updateSession } from './session';\nimport { applyScopeDataToEvent } from './utils/applyScopeDataToEvent';\n\n/**\n * Default value for maximum number of breadcrumbs added to an event.\n */\nconst DEFAULT_MAX_BREADCRUMBS = 100;\n\n/**\n * The global scope is kept in this module.\n * When accessing this via `getGlobalScope()` we'll make sure to set one if none is currently present.\n */\nlet globalScope: ScopeInterface | undefined;\n\n/**\n * Holds additional event information. {@link Scope.applyToEvent} will be\n * called by the client before an event will be sent.\n */\nexport class Scope implements ScopeInterface {\n /** Flag if notifying is happening. */\n protected _notifyingListeners: boolean;\n\n /** Callback for client to receive scope changes. */\n protected _scopeListeners: Array<(scope: Scope) => void>;\n\n /** Callback list that will be called after {@link applyToEvent}. */\n protected _eventProcessors: EventProcessor[];\n\n /** Array of breadcrumbs. */\n protected _breadcrumbs: Breadcrumb[];\n\n /** User */\n protected _user: User;\n\n /** Tags */\n protected _tags: { [key: string]: Primitive };\n\n /** Extra */\n protected _extra: Extras;\n\n /** Contexts */\n protected _contexts: Contexts;\n\n /** Attachments */\n protected _attachments: Attachment[];\n\n /** Propagation Context for distributed tracing */\n protected _propagationContext: PropagationContext;\n\n /**\n * A place to stash data which is needed at some point in the SDK's event processing pipeline but which shouldn't get\n * sent to Sentry\n */\n protected _sdkProcessingMetadata: { [key: string]: unknown };\n\n /** Fingerprint */\n protected _fingerprint?: string[];\n\n /** Severity */\n // eslint-disable-next-line deprecation/deprecation\n protected _level?: Severity | SeverityLevel;\n\n /**\n * Transaction Name\n */\n protected _transactionName?: string;\n\n /** Span */\n protected _span?: Span;\n\n /** Session */\n protected _session?: Session;\n\n /** Request Mode Session Status */\n protected _requestSession?: RequestSession;\n\n /** The client on this scope */\n protected _client?: Client;\n\n // NOTE: Any field which gets added here should get added not only to the constructor but also to the `clone` method.\n\n public constructor() {\n this._notifyingListeners = false;\n this._scopeListeners = [];\n this._eventProcessors = [];\n this._breadcrumbs = [];\n this._attachments = [];\n this._user = {};\n this._tags = {};\n this._extra = {};\n this._contexts = {};\n this._sdkProcessingMetadata = {};\n this._propagationContext = generatePropagationContext();\n }\n\n /**\n * Inherit values from the parent scope.\n * @deprecated Use `scope.clone()` and `new Scope()` instead.\n */\n public static clone(scope?: Scope): Scope {\n return scope ? scope.clone() : new Scope();\n }\n\n /**\n * Clone this scope instance.\n */\n public clone(): Scope {\n const newScope = new Scope();\n newScope._breadcrumbs = [...this._breadcrumbs];\n newScope._tags = { ...this._tags };\n newScope._extra = { ...this._extra };\n newScope._contexts = { ...this._contexts };\n newScope._user = this._user;\n newScope._level = this._level;\n newScope._span = this._span;\n newScope._session = this._session;\n newScope._transactionName = this._transactionName;\n newScope._fingerprint = this._fingerprint;\n newScope._eventProcessors = [...this._eventProcessors];\n newScope._requestSession = this._requestSession;\n newScope._attachments = [...this._attachments];\n newScope._sdkProcessingMetadata = { ...this._sdkProcessingMetadata };\n newScope._propagationContext = { ...this._propagationContext };\n newScope._client = this._client;\n\n return newScope;\n }\n\n /** Update the client on the scope. */\n public setClient(client: Client | undefined): void {\n this._client = client;\n }\n\n /**\n * Get the client assigned to this scope.\n *\n * It is generally recommended to use the global function `Sentry.getClient()` instead, unless you know what you are doing.\n */\n public getClient(): Client | undefined {\n return this._client;\n }\n\n /**\n * Add internal on change listener. Used for sub SDKs that need to store the scope.\n * @hidden\n */\n public addScopeListener(callback: (scope: Scope) => void): void {\n this._scopeListeners.push(callback);\n }\n\n /**\n * @inheritDoc\n */\n public addEventProcessor(callback: EventProcessor): this {\n this._eventProcessors.push(callback);\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public setUser(user: User | null): this {\n // If null is passed we want to unset everything, but still define keys,\n // so that later down in the pipeline any existing values are cleared.\n this._user = user || {\n email: undefined,\n id: undefined,\n ip_address: undefined,\n segment: undefined,\n username: undefined,\n };\n\n if (this._session) {\n updateSession(this._session, { user });\n }\n\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public getUser(): User | undefined {\n return this._user;\n }\n\n /**\n * @inheritDoc\n */\n public getRequestSession(): RequestSession | undefined {\n return this._requestSession;\n }\n\n /**\n * @inheritDoc\n */\n public setRequestSession(requestSession?: RequestSession): this {\n this._requestSession = requestSession;\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public setTags(tags: { [key: string]: Primitive }): this {\n this._tags = {\n ...this._tags,\n ...tags,\n };\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public setTag(key: string, value: Primitive): this {\n this._tags = { ...this._tags, [key]: value };\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public setExtras(extras: Extras): this {\n this._extra = {\n ...this._extra,\n ...extras,\n };\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public setExtra(key: string, extra: Extra): this {\n this._extra = { ...this._extra, [key]: extra };\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public setFingerprint(fingerprint: string[]): this {\n this._fingerprint = fingerprint;\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public setLevel(\n // eslint-disable-next-line deprecation/deprecation\n level: Severity | SeverityLevel,\n ): this {\n this._level = level;\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * Sets the transaction name on the scope for future events.\n */\n public setTransactionName(name?: string): this {\n this._transactionName = name;\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public setContext(key: string, context: Context | null): this {\n if (context === null) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete this._contexts[key];\n } else {\n this._contexts[key] = context;\n }\n\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * Sets the Span on the scope.\n * @param span Span\n * @deprecated Instead of setting a span on a scope, use `startSpan()`/`startSpanManual()` instead.\n */\n public setSpan(span?: Span): this {\n this._span = span;\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * Returns the `Span` if there is one.\n * @deprecated Use `getActiveSpan()` instead.\n */\n public getSpan(): Span | undefined {\n return this._span;\n }\n\n /**\n * Returns the `Transaction` attached to the scope (if there is one).\n * @deprecated You should not rely on the transaction, but just use `startSpan()` APIs instead.\n */\n public getTransaction(): Transaction | undefined {\n // Often, this span (if it exists at all) will be a transaction, but it's not guaranteed to be. Regardless, it will\n // have a pointer to the currently-active transaction.\n const span = this._span;\n // Cannot replace with getRootSpan because getRootSpan returns a span, not a transaction\n // Also, this method will be removed anyway.\n // eslint-disable-next-line deprecation/deprecation\n return span && span.transaction;\n }\n\n /**\n * @inheritDoc\n */\n public setSession(session?: Session): this {\n if (!session) {\n delete this._session;\n } else {\n this._session = session;\n }\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public getSession(): Session | undefined {\n return this._session;\n }\n\n /**\n * @inheritDoc\n */\n public update(captureContext?: CaptureContext): this {\n if (!captureContext) {\n return this;\n }\n\n const scopeToMerge = typeof captureContext === 'function' ? captureContext(this) : captureContext;\n\n if (scopeToMerge instanceof Scope) {\n const scopeData = scopeToMerge.getScopeData();\n\n this._tags = { ...this._tags, ...scopeData.tags };\n this._extra = { ...this._extra, ...scopeData.extra };\n this._contexts = { ...this._contexts, ...scopeData.contexts };\n if (scopeData.user && Object.keys(scopeData.user).length) {\n this._user = scopeData.user;\n }\n if (scopeData.level) {\n this._level = scopeData.level;\n }\n if (scopeData.fingerprint.length) {\n this._fingerprint = scopeData.fingerprint;\n }\n if (scopeToMerge.getRequestSession()) {\n this._requestSession = scopeToMerge.getRequestSession();\n }\n if (scopeData.propagationContext) {\n this._propagationContext = scopeData.propagationContext;\n }\n } else if (isPlainObject(scopeToMerge)) {\n const scopeContext = captureContext as ScopeContext;\n this._tags = { ...this._tags, ...scopeContext.tags };\n this._extra = { ...this._extra, ...scopeContext.extra };\n this._contexts = { ...this._contexts, ...scopeContext.contexts };\n if (scopeContext.user) {\n this._user = scopeContext.user;\n }\n if (scopeContext.level) {\n this._level = scopeContext.level;\n }\n if (scopeContext.fingerprint) {\n this._fingerprint = scopeContext.fingerprint;\n }\n if (scopeContext.requestSession) {\n this._requestSession = scopeContext.requestSession;\n }\n if (scopeContext.propagationContext) {\n this._propagationContext = scopeContext.propagationContext;\n }\n }\n\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public clear(): this {\n this._breadcrumbs = [];\n this._tags = {};\n this._extra = {};\n this._user = {};\n this._contexts = {};\n this._level = undefined;\n this._transactionName = undefined;\n this._fingerprint = undefined;\n this._requestSession = undefined;\n this._span = undefined;\n this._session = undefined;\n this._notifyScopeListeners();\n this._attachments = [];\n this._propagationContext = generatePropagationContext();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public addBreadcrumb(breadcrumb: Breadcrumb, maxBreadcrumbs?: number): this {\n const maxCrumbs = typeof maxBreadcrumbs === 'number' ? maxBreadcrumbs : DEFAULT_MAX_BREADCRUMBS;\n\n // No data has been changed, so don't notify scope listeners\n if (maxCrumbs <= 0) {\n return this;\n }\n\n const mergedBreadcrumb = {\n timestamp: dateTimestampInSeconds(),\n ...breadcrumb,\n };\n\n const breadcrumbs = this._breadcrumbs;\n breadcrumbs.push(mergedBreadcrumb);\n this._breadcrumbs = breadcrumbs.length > maxCrumbs ? breadcrumbs.slice(-maxCrumbs) : breadcrumbs;\n\n this._notifyScopeListeners();\n\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public getLastBreadcrumb(): Breadcrumb | undefined {\n return this._breadcrumbs[this._breadcrumbs.length - 1];\n }\n\n /**\n * @inheritDoc\n */\n public clearBreadcrumbs(): this {\n this._breadcrumbs = [];\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public addAttachment(attachment: Attachment): this {\n this._attachments.push(attachment);\n return this;\n }\n\n /**\n * @inheritDoc\n * @deprecated Use `getScopeData()` instead.\n */\n public getAttachments(): Attachment[] {\n const data = this.getScopeData();\n\n return data.attachments;\n }\n\n /**\n * @inheritDoc\n */\n public clearAttachments(): this {\n this._attachments = [];\n return this;\n }\n\n /** @inheritDoc */\n public getScopeData(): ScopeData {\n const {\n _breadcrumbs,\n _attachments,\n _contexts,\n _tags,\n _extra,\n _user,\n _level,\n _fingerprint,\n _eventProcessors,\n _propagationContext,\n _sdkProcessingMetadata,\n _transactionName,\n _span,\n } = this;\n\n return {\n breadcrumbs: _breadcrumbs,\n attachments: _attachments,\n contexts: _contexts,\n tags: _tags,\n extra: _extra,\n user: _user,\n level: _level,\n fingerprint: _fingerprint || [],\n eventProcessors: _eventProcessors,\n propagationContext: _propagationContext,\n sdkProcessingMetadata: _sdkProcessingMetadata,\n transactionName: _transactionName,\n span: _span,\n };\n }\n\n /**\n * Applies data from the scope to the event and runs all event processors on it.\n *\n * @param event Event\n * @param hint Object containing additional information about the original exception, for use by the event processors.\n * @hidden\n * @deprecated Use `applyScopeDataToEvent()` directly\n */\n public applyToEvent(\n event: Event,\n hint: EventHint = {},\n additionalEventProcessors: EventProcessor[] = [],\n ): PromiseLike {\n applyScopeDataToEvent(event, this.getScopeData());\n\n // TODO (v8): Update this order to be: Global > Client > Scope\n const eventProcessors: EventProcessor[] = [\n ...additionalEventProcessors,\n // eslint-disable-next-line deprecation/deprecation\n ...getGlobalEventProcessors(),\n ...this._eventProcessors,\n ];\n\n return notifyEventProcessors(eventProcessors, event, hint);\n }\n\n /**\n * Add data which will be accessible during event processing but won't get sent to Sentry\n */\n public setSDKProcessingMetadata(newData: { [key: string]: unknown }): this {\n this._sdkProcessingMetadata = { ...this._sdkProcessingMetadata, ...newData };\n\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public setPropagationContext(context: PropagationContext): this {\n this._propagationContext = context;\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public getPropagationContext(): PropagationContext {\n return this._propagationContext;\n }\n\n /**\n * Capture an exception for this scope.\n *\n * @param exception The exception to capture.\n * @param hint Optinal additional data to attach to the Sentry event.\n * @returns the id of the captured Sentry event.\n */\n public captureException(exception: unknown, hint?: EventHint): string {\n const eventId = hint && hint.event_id ? hint.event_id : uuid4();\n\n if (!this._client) {\n logger.warn('No client configured on scope - will not capture exception!');\n return eventId;\n }\n\n const syntheticException = new Error('Sentry syntheticException');\n\n this._client.captureException(\n exception,\n {\n originalException: exception,\n syntheticException,\n ...hint,\n event_id: eventId,\n },\n this,\n );\n\n return eventId;\n }\n\n /**\n * Capture a message for this scope.\n *\n * @param message The message to capture.\n * @param level An optional severity level to report the message with.\n * @param hint Optional additional data to attach to the Sentry event.\n * @returns the id of the captured message.\n */\n public captureMessage(message: string, level?: SeverityLevel, hint?: EventHint): string {\n const eventId = hint && hint.event_id ? hint.event_id : uuid4();\n\n if (!this._client) {\n logger.warn('No client configured on scope - will not capture message!');\n return eventId;\n }\n\n const syntheticException = new Error(message);\n\n this._client.captureMessage(\n message,\n level,\n {\n originalException: message,\n syntheticException,\n ...hint,\n event_id: eventId,\n },\n this,\n );\n\n return eventId;\n }\n\n /**\n * Captures a manually created event for this scope and sends it to Sentry.\n *\n * @param exception The event to capture.\n * @param hint Optional additional data to attach to the Sentry event.\n * @returns the id of the captured event.\n */\n public captureEvent(event: Event, hint?: EventHint): string {\n const eventId = hint && hint.event_id ? hint.event_id : uuid4();\n\n if (!this._client) {\n logger.warn('No client configured on scope - will not capture event!');\n return eventId;\n }\n\n this._client.captureEvent(event, { ...hint, event_id: eventId }, this);\n\n return eventId;\n }\n\n /**\n * This will be called on every set call.\n */\n protected _notifyScopeListeners(): void {\n // We need this check for this._notifyingListeners to be able to work on scope during updates\n // If this check is not here we'll produce endless recursion when something is done with the scope\n // during the callback.\n if (!this._notifyingListeners) {\n this._notifyingListeners = true;\n this._scopeListeners.forEach(callback => {\n callback(this);\n });\n this._notifyingListeners = false;\n }\n }\n}\n\n/**\n * Get the global scope.\n * This scope is applied to _all_ events.\n */\nexport function getGlobalScope(): ScopeInterface {\n if (!globalScope) {\n globalScope = new Scope();\n }\n\n return globalScope;\n}\n\n/**\n * This is mainly needed for tests.\n * DO NOT USE this, as this is an internal API and subject to change.\n * @hidden\n */\nexport function setGlobalScope(scope: ScopeInterface | undefined): void {\n globalScope = scope;\n}\n\nfunction generatePropagationContext(): PropagationContext {\n return {\n traceId: uuid4(),\n spanId: uuid4().substring(16),\n };\n}\n", "export const SDK_VERSION = '7.119.2';\n", "/* eslint-disable max-lines */\nimport type {\n Breadcrumb,\n BreadcrumbHint,\n Client,\n CustomSamplingContext,\n Event,\n EventHint,\n Extra,\n Extras,\n Hub as HubInterface,\n Integration,\n IntegrationClass,\n Primitive,\n Session,\n SessionContext,\n Severity,\n SeverityLevel,\n Transaction,\n TransactionContext,\n User,\n} from '@sentry/types';\nimport {\n GLOBAL_OBJ,\n consoleSandbox,\n dateTimestampInSeconds,\n getGlobalSingleton,\n isThenable,\n logger,\n uuid4,\n} from '@sentry/utils';\n\nimport { DEFAULT_ENVIRONMENT } from './constants';\nimport { DEBUG_BUILD } from './debug-build';\nimport { Scope } from './scope';\nimport { closeSession, makeSession, updateSession } from './session';\nimport { SDK_VERSION } from './version';\n\n/**\n * API compatibility version of this hub.\n *\n * WARNING: This number should only be increased when the global interface\n * changes and new methods are introduced.\n *\n * @hidden\n */\nexport const API_VERSION = parseFloat(SDK_VERSION);\n\n/**\n * Default maximum number of breadcrumbs added to an event. Can be overwritten\n * with {@link Options.maxBreadcrumbs}.\n */\nconst DEFAULT_BREADCRUMBS = 100;\n\nexport interface RunWithAsyncContextOptions {\n /** Whether to reuse an existing async context if one exists. Defaults to false. */\n reuseExisting?: boolean;\n}\n\n/**\n * @private Private API with no semver guarantees!\n *\n * Strategy used to track async context.\n */\nexport interface AsyncContextStrategy {\n /**\n * Gets the current async context. Returns undefined if there is no current async context.\n */\n // eslint-disable-next-line deprecation/deprecation\n getCurrentHub: () => Hub | undefined;\n /**\n * Runs the supplied callback in its own async context.\n */\n runWithAsyncContext(callback: () => T, options: RunWithAsyncContextOptions): T;\n}\n\n/**\n * A layer in the process stack.\n * @hidden\n */\nexport interface Layer {\n client?: Client;\n scope: Scope;\n}\n\n/**\n * An object that contains a hub and maintains a scope stack.\n * @hidden\n */\nexport interface Carrier {\n __SENTRY__?: {\n // eslint-disable-next-line deprecation/deprecation\n hub?: Hub;\n acs?: AsyncContextStrategy;\n /**\n * Extra Hub properties injected by various SDKs\n */\n integrations?: Integration[];\n extensions?: {\n /** Extension methods for the hub, which are bound to the current Hub instance */\n // eslint-disable-next-line @typescript-eslint/ban-types\n [key: string]: Function;\n };\n };\n}\n\n/**\n * @deprecated The `Hub` class will be removed in version 8 of the SDK in favour of `Scope` and `Client` objects.\n *\n * If you previously used the `Hub` class directly, replace it with `Scope` and `Client` objects. More information:\n * - [Multiple Sentry Instances](https://docs.sentry.io/platforms/javascript/best-practices/multiple-sentry-instances/)\n * - [Browser Extensions](https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/)\n *\n * Some of our APIs are typed with the Hub class instead of the interface (e.g. `getCurrentHub`). Most of them are deprecated\n * themselves and will also be removed in version 8. More information:\n * - [Migration Guide](https://github.com/getsentry/sentry-javascript/blob/develop/MIGRATION.md#deprecate-hub)\n */\n// eslint-disable-next-line deprecation/deprecation\nexport class Hub implements HubInterface {\n /** Is a {@link Layer}[] containing the client and scope */\n private readonly _stack: Layer[];\n\n /** Contains the last event id of a captured event. */\n private _lastEventId?: string;\n\n private _isolationScope: Scope;\n\n /**\n * Creates a new instance of the hub, will push one {@link Layer} into the\n * internal stack on creation.\n *\n * @param client bound to the hub.\n * @param scope bound to the hub.\n * @param version number, higher number means higher priority.\n *\n * @deprecated Instantiation of Hub objects is deprecated and the constructor will be removed in version 8 of the SDK.\n *\n * If you are currently using the Hub for multi-client use like so:\n *\n * ```\n * // OLD\n * const hub = new Hub();\n * hub.bindClient(client);\n * makeMain(hub)\n * ```\n *\n * instead initialize the client as follows:\n *\n * ```\n * // NEW\n * Sentry.withIsolationScope(() => {\n * Sentry.setCurrentClient(client);\n * client.init();\n * });\n * ```\n *\n * If you are using the Hub to capture events like so:\n *\n * ```\n * // OLD\n * const client = new Client();\n * const hub = new Hub(client);\n * hub.captureException()\n * ```\n *\n * instead capture isolated events as follows:\n *\n * ```\n * // NEW\n * const client = new Client();\n * const scope = new Scope();\n * scope.setClient(client);\n * scope.captureException();\n * ```\n */\n public constructor(\n client?: Client,\n scope?: Scope,\n isolationScope?: Scope,\n private readonly _version: number = API_VERSION,\n ) {\n let assignedScope;\n if (!scope) {\n assignedScope = new Scope();\n assignedScope.setClient(client);\n } else {\n assignedScope = scope;\n }\n\n let assignedIsolationScope;\n if (!isolationScope) {\n assignedIsolationScope = new Scope();\n assignedIsolationScope.setClient(client);\n } else {\n assignedIsolationScope = isolationScope;\n }\n\n this._stack = [{ scope: assignedScope }];\n\n if (client) {\n // eslint-disable-next-line deprecation/deprecation\n this.bindClient(client);\n }\n\n this._isolationScope = assignedIsolationScope;\n }\n\n /**\n * Checks if this hub's version is older than the given version.\n *\n * @param version A version number to compare to.\n * @return True if the given version is newer; otherwise false.\n *\n * @deprecated This will be removed in v8.\n */\n public isOlderThan(version: number): boolean {\n return this._version < version;\n }\n\n /**\n * This binds the given client to the current scope.\n * @param client An SDK client (client) instance.\n *\n * @deprecated Use `initAndBind()` directly, or `setCurrentClient()` and/or `client.init()` instead.\n */\n public bindClient(client?: Client): void {\n // eslint-disable-next-line deprecation/deprecation\n const top = this.getStackTop();\n top.client = client;\n top.scope.setClient(client);\n // eslint-disable-next-line deprecation/deprecation\n if (client && client.setupIntegrations) {\n // eslint-disable-next-line deprecation/deprecation\n client.setupIntegrations();\n }\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `withScope` instead.\n */\n public pushScope(): Scope {\n // We want to clone the content of prev scope\n // eslint-disable-next-line deprecation/deprecation\n const scope = this.getScope().clone();\n // eslint-disable-next-line deprecation/deprecation\n this.getStack().push({\n // eslint-disable-next-line deprecation/deprecation\n client: this.getClient(),\n scope,\n });\n return scope;\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `withScope` instead.\n */\n public popScope(): boolean {\n // eslint-disable-next-line deprecation/deprecation\n if (this.getStack().length <= 1) return false;\n // eslint-disable-next-line deprecation/deprecation\n return !!this.getStack().pop();\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `Sentry.withScope()` instead.\n */\n public withScope(callback: (scope: Scope) => T): T {\n // eslint-disable-next-line deprecation/deprecation\n const scope = this.pushScope();\n\n let maybePromiseResult: T;\n try {\n maybePromiseResult = callback(scope);\n } catch (e) {\n // eslint-disable-next-line deprecation/deprecation\n this.popScope();\n throw e;\n }\n\n if (isThenable(maybePromiseResult)) {\n // @ts-expect-error - isThenable returns the wrong type\n return maybePromiseResult.then(\n res => {\n // eslint-disable-next-line deprecation/deprecation\n this.popScope();\n return res;\n },\n e => {\n // eslint-disable-next-line deprecation/deprecation\n this.popScope();\n throw e;\n },\n );\n }\n\n // eslint-disable-next-line deprecation/deprecation\n this.popScope();\n return maybePromiseResult;\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `Sentry.getClient()` instead.\n */\n public getClient(): C | undefined {\n // eslint-disable-next-line deprecation/deprecation\n return this.getStackTop().client as C;\n }\n\n /**\n * Returns the scope of the top stack.\n *\n * @deprecated Use `Sentry.getCurrentScope()` instead.\n */\n public getScope(): Scope {\n // eslint-disable-next-line deprecation/deprecation\n return this.getStackTop().scope;\n }\n\n /**\n * @deprecated Use `Sentry.getIsolationScope()` instead.\n */\n public getIsolationScope(): Scope {\n return this._isolationScope;\n }\n\n /**\n * Returns the scope stack for domains or the process.\n * @deprecated This will be removed in v8.\n */\n public getStack(): Layer[] {\n return this._stack;\n }\n\n /**\n * Returns the topmost scope layer in the order domain > local > process.\n * @deprecated This will be removed in v8.\n */\n public getStackTop(): Layer {\n return this._stack[this._stack.length - 1];\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `Sentry.captureException()` instead.\n */\n public captureException(exception: unknown, hint?: EventHint): string {\n const eventId = (this._lastEventId = hint && hint.event_id ? hint.event_id : uuid4());\n const syntheticException = new Error('Sentry syntheticException');\n // eslint-disable-next-line deprecation/deprecation\n this.getScope().captureException(exception, {\n originalException: exception,\n syntheticException,\n ...hint,\n event_id: eventId,\n });\n\n return eventId;\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `Sentry.captureMessage()` instead.\n */\n public captureMessage(\n message: string,\n // eslint-disable-next-line deprecation/deprecation\n level?: Severity | SeverityLevel,\n hint?: EventHint,\n ): string {\n const eventId = (this._lastEventId = hint && hint.event_id ? hint.event_id : uuid4());\n const syntheticException = new Error(message);\n // eslint-disable-next-line deprecation/deprecation\n this.getScope().captureMessage(message, level, {\n originalException: message,\n syntheticException,\n ...hint,\n event_id: eventId,\n });\n\n return eventId;\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `Sentry.captureEvent()` instead.\n */\n public captureEvent(event: Event, hint?: EventHint): string {\n const eventId = hint && hint.event_id ? hint.event_id : uuid4();\n if (!event.type) {\n this._lastEventId = eventId;\n }\n // eslint-disable-next-line deprecation/deprecation\n this.getScope().captureEvent(event, { ...hint, event_id: eventId });\n return eventId;\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated This will be removed in v8.\n */\n public lastEventId(): string | undefined {\n return this._lastEventId;\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `Sentry.addBreadcrumb()` instead.\n */\n public addBreadcrumb(breadcrumb: Breadcrumb, hint?: BreadcrumbHint): void {\n // eslint-disable-next-line deprecation/deprecation\n const { scope, client } = this.getStackTop();\n\n if (!client) return;\n\n const { beforeBreadcrumb = null, maxBreadcrumbs = DEFAULT_BREADCRUMBS } =\n (client.getOptions && client.getOptions()) || {};\n\n if (maxBreadcrumbs <= 0) return;\n\n const timestamp = dateTimestampInSeconds();\n const mergedBreadcrumb = { timestamp, ...breadcrumb };\n const finalBreadcrumb = beforeBreadcrumb\n ? (consoleSandbox(() => beforeBreadcrumb(mergedBreadcrumb, hint)) as Breadcrumb | null)\n : mergedBreadcrumb;\n\n if (finalBreadcrumb === null) return;\n\n if (client.emit) {\n client.emit('beforeAddBreadcrumb', finalBreadcrumb, hint);\n }\n\n // TODO(v8): I know this comment doesn't make much sense because the hub will be deprecated but I still wanted to\n // write it down. In theory, we would have to add the breadcrumbs to the isolation scope here, however, that would\n // duplicate all of the breadcrumbs. There was the possibility of adding breadcrumbs to both, the isolation scope\n // and the normal scope, and deduplicating it down the line in the event processing pipeline. However, that would\n // have been very fragile, because the breadcrumb objects would have needed to keep their identity all throughout\n // the event processing pipeline.\n // In the new implementation, the top level `Sentry.addBreadcrumb()` should ONLY write to the isolation scope.\n\n scope.addBreadcrumb(finalBreadcrumb, maxBreadcrumbs);\n }\n\n /**\n * @inheritDoc\n * @deprecated Use `Sentry.setUser()` instead.\n */\n public setUser(user: User | null): void {\n // TODO(v8): The top level `Sentry.setUser()` function should write ONLY to the isolation scope.\n // eslint-disable-next-line deprecation/deprecation\n this.getScope().setUser(user);\n // eslint-disable-next-line deprecation/deprecation\n this.getIsolationScope().setUser(user);\n }\n\n /**\n * @inheritDoc\n * @deprecated Use `Sentry.setTags()` instead.\n */\n public setTags(tags: { [key: string]: Primitive }): void {\n // TODO(v8): The top level `Sentry.setTags()` function should write ONLY to the isolation scope.\n // eslint-disable-next-line deprecation/deprecation\n this.getScope().setTags(tags);\n // eslint-disable-next-line deprecation/deprecation\n this.getIsolationScope().setTags(tags);\n }\n\n /**\n * @inheritDoc\n * @deprecated Use `Sentry.setExtras()` instead.\n */\n public setExtras(extras: Extras): void {\n // TODO(v8): The top level `Sentry.setExtras()` function should write ONLY to the isolation scope.\n // eslint-disable-next-line deprecation/deprecation\n this.getScope().setExtras(extras);\n // eslint-disable-next-line deprecation/deprecation\n this.getIsolationScope().setExtras(extras);\n }\n\n /**\n * @inheritDoc\n * @deprecated Use `Sentry.setTag()` instead.\n */\n public setTag(key: string, value: Primitive): void {\n // TODO(v8): The top level `Sentry.setTag()` function should write ONLY to the isolation scope.\n // eslint-disable-next-line deprecation/deprecation\n this.getScope().setTag(key, value);\n // eslint-disable-next-line deprecation/deprecation\n this.getIsolationScope().setTag(key, value);\n }\n\n /**\n * @inheritDoc\n * @deprecated Use `Sentry.setExtra()` instead.\n */\n public setExtra(key: string, extra: Extra): void {\n // TODO(v8): The top level `Sentry.setExtra()` function should write ONLY to the isolation scope.\n // eslint-disable-next-line deprecation/deprecation\n this.getScope().setExtra(key, extra);\n // eslint-disable-next-line deprecation/deprecation\n this.getIsolationScope().setExtra(key, extra);\n }\n\n /**\n * @inheritDoc\n * @deprecated Use `Sentry.setContext()` instead.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n public setContext(name: string, context: { [key: string]: any } | null): void {\n // TODO(v8): The top level `Sentry.setContext()` function should write ONLY to the isolation scope.\n // eslint-disable-next-line deprecation/deprecation\n this.getScope().setContext(name, context);\n // eslint-disable-next-line deprecation/deprecation\n this.getIsolationScope().setContext(name, context);\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `getScope()` directly.\n */\n public configureScope(callback: (scope: Scope) => void): void {\n // eslint-disable-next-line deprecation/deprecation\n const { scope, client } = this.getStackTop();\n if (client) {\n callback(scope);\n }\n }\n\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line deprecation/deprecation\n public run(callback: (hub: Hub) => void): void {\n // eslint-disable-next-line deprecation/deprecation\n const oldHub = makeMain(this);\n try {\n callback(this);\n } finally {\n // eslint-disable-next-line deprecation/deprecation\n makeMain(oldHub);\n }\n }\n\n /**\n * @inheritDoc\n * @deprecated Use `Sentry.getClient().getIntegrationByName()` instead.\n */\n public getIntegration(integration: IntegrationClass): T | null {\n // eslint-disable-next-line deprecation/deprecation\n const client = this.getClient();\n if (!client) return null;\n try {\n // eslint-disable-next-line deprecation/deprecation\n return client.getIntegration(integration);\n } catch (_oO) {\n DEBUG_BUILD && logger.warn(`Cannot retrieve integration ${integration.id} from the current Hub`);\n return null;\n }\n }\n\n /**\n * Starts a new `Transaction` and returns it. This is the entry point to manual tracing instrumentation.\n *\n * A tree structure can be built by adding child spans to the transaction, and child spans to other spans. To start a\n * new child span within the transaction or any span, call the respective `.startChild()` method.\n *\n * Every child span must be finished before the transaction is finished, otherwise the unfinished spans are discarded.\n *\n * The transaction must be finished with a call to its `.end()` method, at which point the transaction with all its\n * finished child spans will be sent to Sentry.\n *\n * @param context Properties of the new `Transaction`.\n * @param customSamplingContext Information given to the transaction sampling function (along with context-dependent\n * default values). See {@link Options.tracesSampler}.\n *\n * @returns The transaction which was just started\n *\n * @deprecated Use `startSpan()`, `startSpanManual()` or `startInactiveSpan()` instead.\n */\n public startTransaction(context: TransactionContext, customSamplingContext?: CustomSamplingContext): Transaction {\n const result = this._callExtensionMethod('startTransaction', context, customSamplingContext);\n\n if (DEBUG_BUILD && !result) {\n // eslint-disable-next-line deprecation/deprecation\n const client = this.getClient();\n if (!client) {\n logger.warn(\n \"Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'\",\n );\n } else {\n logger.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n`);\n }\n }\n\n return result;\n }\n\n /**\n * @inheritDoc\n * @deprecated Use `spanToTraceHeader()` instead.\n */\n public traceHeaders(): { [key: string]: string } {\n return this._callExtensionMethod<{ [key: string]: string }>('traceHeaders');\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use top level `captureSession` instead.\n */\n public captureSession(endSession: boolean = false): void {\n // both send the update and pull the session from the scope\n if (endSession) {\n // eslint-disable-next-line deprecation/deprecation\n return this.endSession();\n }\n\n // only send the update\n this._sendSessionUpdate();\n }\n\n /**\n * @inheritDoc\n * @deprecated Use top level `endSession` instead.\n */\n public endSession(): void {\n // eslint-disable-next-line deprecation/deprecation\n const layer = this.getStackTop();\n const scope = layer.scope;\n const session = scope.getSession();\n if (session) {\n closeSession(session);\n }\n this._sendSessionUpdate();\n\n // the session is over; take it off of the scope\n scope.setSession();\n }\n\n /**\n * @inheritDoc\n * @deprecated Use top level `startSession` instead.\n */\n public startSession(context?: SessionContext): Session {\n // eslint-disable-next-line deprecation/deprecation\n const { scope, client } = this.getStackTop();\n const { release, environment = DEFAULT_ENVIRONMENT } = (client && client.getOptions()) || {};\n\n // Will fetch userAgent if called from browser sdk\n const { userAgent } = GLOBAL_OBJ.navigator || {};\n\n const session = makeSession({\n release,\n environment,\n user: scope.getUser(),\n ...(userAgent && { userAgent }),\n ...context,\n });\n\n // End existing session if there's one\n const currentSession = scope.getSession && scope.getSession();\n if (currentSession && currentSession.status === 'ok') {\n updateSession(currentSession, { status: 'exited' });\n }\n // eslint-disable-next-line deprecation/deprecation\n this.endSession();\n\n // Afterwards we set the new session on the scope\n scope.setSession(session);\n\n return session;\n }\n\n /**\n * Returns if default PII should be sent to Sentry and propagated in ourgoing requests\n * when Tracing is used.\n *\n * @deprecated Use top-level `getClient().getOptions().sendDefaultPii` instead. This function\n * only unnecessarily increased API surface but only wrapped accessing the option.\n */\n public shouldSendDefaultPii(): boolean {\n // eslint-disable-next-line deprecation/deprecation\n const client = this.getClient();\n const options = client && client.getOptions();\n return Boolean(options && options.sendDefaultPii);\n }\n\n /**\n * Sends the current Session on the scope\n */\n private _sendSessionUpdate(): void {\n // eslint-disable-next-line deprecation/deprecation\n const { scope, client } = this.getStackTop();\n\n const session = scope.getSession();\n if (session && client && client.captureSession) {\n client.captureSession(session);\n }\n }\n\n /**\n * Calls global extension method and binding current instance to the function call\n */\n // @ts-expect-error Function lacks ending return statement and return type does not include 'undefined'. ts(2366)\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private _callExtensionMethod(method: string, ...args: any[]): T {\n const carrier = getMainCarrier();\n const sentry = carrier.__SENTRY__;\n if (sentry && sentry.extensions && typeof sentry.extensions[method] === 'function') {\n return sentry.extensions[method].apply(this, args);\n }\n DEBUG_BUILD && logger.warn(`Extension method ${method} couldn't be found, doing nothing.`);\n }\n}\n\n/**\n * Returns the global shim registry.\n *\n * FIXME: This function is problematic, because despite always returning a valid Carrier,\n * it has an optional `__SENTRY__` property, which then in turn requires us to always perform an unnecessary check\n * at the call-site. We always access the carrier through this function, so we can guarantee that `__SENTRY__` is there.\n **/\nexport function getMainCarrier(): Carrier {\n GLOBAL_OBJ.__SENTRY__ = GLOBAL_OBJ.__SENTRY__ || {\n extensions: {},\n hub: undefined,\n };\n return GLOBAL_OBJ;\n}\n\n/**\n * Replaces the current main hub with the passed one on the global object\n *\n * @returns The old replaced hub\n *\n * @deprecated Use `setCurrentClient()` instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function makeMain(hub: Hub): Hub {\n const registry = getMainCarrier();\n const oldHub = getHubFromCarrier(registry);\n setHubOnCarrier(registry, hub);\n return oldHub;\n}\n\n/**\n * Returns the default hub instance.\n *\n * If a hub is already registered in the global carrier but this module\n * contains a more recent version, it replaces the registered version.\n * Otherwise, the currently registered hub will be returned.\n *\n * @deprecated Use the respective replacement method directly instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function getCurrentHub(): Hub {\n // Get main carrier (global for every environment)\n const registry = getMainCarrier();\n\n if (registry.__SENTRY__ && registry.__SENTRY__.acs) {\n const hub = registry.__SENTRY__.acs.getCurrentHub();\n\n if (hub) {\n return hub;\n }\n }\n\n // Return hub that lives on a global object\n return getGlobalHub(registry);\n}\n\n/**\n * Get the currently active isolation scope.\n * The isolation scope is active for the current exection context,\n * meaning that it will remain stable for the same Hub.\n */\nexport function getIsolationScope(): Scope {\n // eslint-disable-next-line deprecation/deprecation\n return getCurrentHub().getIsolationScope();\n}\n\n// eslint-disable-next-line deprecation/deprecation\nfunction getGlobalHub(registry: Carrier = getMainCarrier()): Hub {\n // If there's no hub, or its an old API, assign a new one\n\n if (\n !hasHubOnCarrier(registry) ||\n // eslint-disable-next-line deprecation/deprecation\n getHubFromCarrier(registry).isOlderThan(API_VERSION)\n ) {\n // eslint-disable-next-line deprecation/deprecation\n setHubOnCarrier(registry, new Hub());\n }\n\n // Return hub that lives on a global object\n return getHubFromCarrier(registry);\n}\n\n/**\n * @private Private API with no semver guarantees!\n *\n * If the carrier does not contain a hub, a new hub is created with the global hub client and scope.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function ensureHubOnCarrier(carrier: Carrier, parent: Hub = getGlobalHub()): void {\n // If there's no hub on current domain, or it's an old API, assign a new one\n if (\n !hasHubOnCarrier(carrier) ||\n // eslint-disable-next-line deprecation/deprecation\n getHubFromCarrier(carrier).isOlderThan(API_VERSION)\n ) {\n // eslint-disable-next-line deprecation/deprecation\n const client = parent.getClient();\n // eslint-disable-next-line deprecation/deprecation\n const scope = parent.getScope();\n // eslint-disable-next-line deprecation/deprecation\n const isolationScope = parent.getIsolationScope();\n // eslint-disable-next-line deprecation/deprecation\n setHubOnCarrier(carrier, new Hub(client, scope.clone(), isolationScope.clone()));\n }\n}\n\n/**\n * @private Private API with no semver guarantees!\n *\n * Sets the global async context strategy\n */\nexport function setAsyncContextStrategy(strategy: AsyncContextStrategy | undefined): void {\n // Get main carrier (global for every environment)\n const registry = getMainCarrier();\n registry.__SENTRY__ = registry.__SENTRY__ || {};\n registry.__SENTRY__.acs = strategy;\n}\n\n/**\n * Runs the supplied callback in its own async context. Async Context strategies are defined per SDK.\n *\n * @param callback The callback to run in its own async context\n * @param options Options to pass to the async context strategy\n * @returns The result of the callback\n */\nexport function runWithAsyncContext(callback: () => T, options: RunWithAsyncContextOptions = {}): T {\n const registry = getMainCarrier();\n\n if (registry.__SENTRY__ && registry.__SENTRY__.acs) {\n return registry.__SENTRY__.acs.runWithAsyncContext(callback, options);\n }\n\n // if there was no strategy, fallback to just calling the callback\n return callback();\n}\n\n/**\n * This will tell whether a carrier has a hub on it or not\n * @param carrier object\n */\nfunction hasHubOnCarrier(carrier: Carrier): boolean {\n return !!(carrier && carrier.__SENTRY__ && carrier.__SENTRY__.hub);\n}\n\n/**\n * This will create a new {@link Hub} and add to the passed object on\n * __SENTRY__.hub.\n * @param carrier object\n * @hidden\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function getHubFromCarrier(carrier: Carrier): Hub {\n // eslint-disable-next-line deprecation/deprecation\n return getGlobalSingleton('hub', () => new Hub(), carrier);\n}\n\n/**\n * This will set passed {@link Hub} on the passed object's __SENTRY__.hub attribute\n * @param carrier object\n * @param hub Hub\n * @returns A boolean indicating success or failure\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function setHubOnCarrier(carrier: Carrier, hub: Hub): boolean {\n if (!carrier) return false;\n const __SENTRY__ = (carrier.__SENTRY__ = carrier.__SENTRY__ || {});\n __SENTRY__.hub = hub;\n return true;\n}\n", "import type { Transaction } from '@sentry/types';\nimport { extractTraceparentData as _extractTraceparentData } from '@sentry/utils';\n\nimport type { Hub } from '../hub';\nimport { getCurrentHub } from '../hub';\n\n/**\n * Grabs active transaction off scope.\n *\n * @deprecated You should not rely on the transaction, but just use `startSpan()` APIs instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function getActiveTransaction(maybeHub?: Hub): T | undefined {\n // eslint-disable-next-line deprecation/deprecation\n const hub = maybeHub || getCurrentHub();\n // eslint-disable-next-line deprecation/deprecation\n const scope = hub.getScope();\n // eslint-disable-next-line deprecation/deprecation\n return scope.getTransaction() as T | undefined;\n}\n\n// so it can be used in manual instrumentation without necessitating a hard dependency on @sentry/utils\nexport { stripUrlQueryAndFragment } from '@sentry/utils';\n\n/**\n * The `extractTraceparentData` function and `TRACEPARENT_REGEXP` constant used\n * to be declared in this file. It was later moved into `@sentry/utils` as part of a\n * move to remove `@sentry/tracing` dependencies from `@sentry/node` (`extractTraceparentData`\n * is the only tracing function used by `@sentry/node`).\n *\n * These exports are kept here for backwards compatability's sake.\n *\n * See https://github.com/getsentry/sentry-javascript/issues/4642 for more details.\n *\n * @deprecated Import this function from `@sentry/utils` instead\n */\nexport const extractTraceparentData = _extractTraceparentData;\n", "import {\n addGlobalErrorInstrumentationHandler,\n addGlobalUnhandledRejectionInstrumentationHandler,\n logger,\n} from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { SpanStatusType } from './spanstatus';\nimport { getActiveTransaction } from './utils';\n\nlet errorsInstrumented = false;\n\n/**\n * Configures global error listeners\n */\nexport function registerErrorInstrumentation(): void {\n if (errorsInstrumented) {\n return;\n }\n\n errorsInstrumented = true;\n addGlobalErrorInstrumentationHandler(errorCallback);\n addGlobalUnhandledRejectionInstrumentationHandler(errorCallback);\n}\n\n/**\n * If an error or unhandled promise occurs, we mark the active transaction as failed\n */\nfunction errorCallback(): void {\n // eslint-disable-next-line deprecation/deprecation\n const activeTransaction = getActiveTransaction();\n if (activeTransaction) {\n const status: SpanStatusType = 'internal_error';\n DEBUG_BUILD && logger.log(`[Tracing] Transaction: ${status} -> Global error occured`);\n activeTransaction.setStatus(status);\n }\n}\n\n// The function name will be lost when bundling but we need to be able to identify this listener later to maintain the\n// node.js default exit behaviour\nerrorCallback.tag = 'sentry_tracingErrorCallback';\n", "import type { Span } from '@sentry/types';\n\n/** The status of an Span.\n *\n * @deprecated Use string literals - if you require type casting, cast to SpanStatusType type\n */\nexport enum SpanStatus {\n /** The operation completed successfully. */\n Ok = 'ok',\n /** Deadline expired before operation could complete. */\n DeadlineExceeded = 'deadline_exceeded',\n /** 401 Unauthorized (actually does mean unauthenticated according to RFC 7235) */\n Unauthenticated = 'unauthenticated',\n /** 403 Forbidden */\n PermissionDenied = 'permission_denied',\n /** 404 Not Found. Some requested entity (file or directory) was not found. */\n NotFound = 'not_found',\n /** 429 Too Many Requests */\n ResourceExhausted = 'resource_exhausted',\n /** Client specified an invalid argument. 4xx. */\n InvalidArgument = 'invalid_argument',\n /** 501 Not Implemented */\n Unimplemented = 'unimplemented',\n /** 503 Service Unavailable */\n Unavailable = 'unavailable',\n /** Other/generic 5xx. */\n InternalError = 'internal_error',\n /** Unknown. Any non-standard HTTP status code. */\n UnknownError = 'unknown_error',\n /** The operation was cancelled (typically by the user). */\n Cancelled = 'cancelled',\n /** Already exists (409) */\n AlreadyExists = 'already_exists',\n /** Operation was rejected because the system is not in a state required for the operation's */\n FailedPrecondition = 'failed_precondition',\n /** The operation was aborted, typically due to a concurrency issue. */\n Aborted = 'aborted',\n /** Operation was attempted past the valid range. */\n OutOfRange = 'out_of_range',\n /** Unrecoverable data loss or corruption */\n DataLoss = 'data_loss',\n}\n\nexport type SpanStatusType =\n /** The operation completed successfully. */\n | 'ok'\n /** Deadline expired before operation could complete. */\n | 'deadline_exceeded'\n /** 401 Unauthorized (actually does mean unauthenticated according to RFC 7235) */\n | 'unauthenticated'\n /** 403 Forbidden */\n | 'permission_denied'\n /** 404 Not Found. Some requested entity (file or directory) was not found. */\n | 'not_found'\n /** 429 Too Many Requests */\n | 'resource_exhausted'\n /** Client specified an invalid argument. 4xx. */\n | 'invalid_argument'\n /** 501 Not Implemented */\n | 'unimplemented'\n /** 503 Service Unavailable */\n | 'unavailable'\n /** Other/generic 5xx. */\n | 'internal_error'\n /** Unknown. Any non-standard HTTP status code. */\n | 'unknown_error'\n /** The operation was cancelled (typically by the user). */\n | 'cancelled'\n /** Already exists (409) */\n | 'already_exists'\n /** Operation was rejected because the system is not in a state required for the operation's */\n | 'failed_precondition'\n /** The operation was aborted, typically due to a concurrency issue. */\n | 'aborted'\n /** Operation was attempted past the valid range. */\n | 'out_of_range'\n /** Unrecoverable data loss or corruption */\n | 'data_loss';\n\n/**\n * Converts a HTTP status code into a {@link SpanStatusType}.\n *\n * @param httpStatus The HTTP response status code.\n * @returns The span status or unknown_error.\n */\nexport function getSpanStatusFromHttpCode(httpStatus: number): SpanStatusType {\n if (httpStatus < 400 && httpStatus >= 100) {\n return 'ok';\n }\n\n if (httpStatus >= 400 && httpStatus < 500) {\n switch (httpStatus) {\n case 401:\n return 'unauthenticated';\n case 403:\n return 'permission_denied';\n case 404:\n return 'not_found';\n case 409:\n return 'already_exists';\n case 413:\n return 'failed_precondition';\n case 429:\n return 'resource_exhausted';\n default:\n return 'invalid_argument';\n }\n }\n\n if (httpStatus >= 500 && httpStatus < 600) {\n switch (httpStatus) {\n case 501:\n return 'unimplemented';\n case 503:\n return 'unavailable';\n case 504:\n return 'deadline_exceeded';\n default:\n return 'internal_error';\n }\n }\n\n return 'unknown_error';\n}\n\n/**\n * Converts a HTTP status code into a {@link SpanStatusType}.\n *\n * @deprecated Use {@link spanStatusFromHttpCode} instead.\n * This export will be removed in v8 as the signature contains a typo.\n *\n * @param httpStatus The HTTP response status code.\n * @returns The span status or unknown_error.\n */\nexport const spanStatusfromHttpCode = getSpanStatusFromHttpCode;\n\n/**\n * Sets the Http status attributes on the current span based on the http code.\n * Additionally, the span's status is updated, depending on the http code.\n */\nexport function setHttpStatus(span: Span, httpStatus: number): void {\n // TODO (v8): Remove these calls\n // Relay does not require us to send the status code as a tag\n // For now, just because users might expect it to land as a tag we keep sending it.\n // Same with data.\n // In v8, we replace both, simply with\n // span.setAttribute('http.response.status_code', httpStatus);\n\n // eslint-disable-next-line deprecation/deprecation\n span.setTag('http.status_code', String(httpStatus));\n // eslint-disable-next-line deprecation/deprecation\n span.setData('http.response.status_code', httpStatus);\n\n const spanStatus = getSpanStatusFromHttpCode(httpStatus);\n if (spanStatus !== 'unknown_error') {\n span.setStatus(spanStatus);\n }\n}\n", "import { isThenable } from '@sentry/utils';\n\n/**\n * Wrap a callback function with error handling.\n * If an error is thrown, it will be passed to the `onError` callback and re-thrown.\n *\n * If the return value of the function is a promise, it will be handled with `maybeHandlePromiseRejection`.\n *\n * If an `onFinally` callback is provided, this will be called when the callback has finished\n * - so if it returns a promise, once the promise resolved/rejected,\n * else once the callback has finished executing.\n * The `onFinally` callback will _always_ be called, no matter if an error was thrown or not.\n */\nexport function handleCallbackErrors<\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n Fn extends () => any,\n>(\n fn: Fn,\n onError: (error: unknown) => void,\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n onFinally: () => void = () => {},\n): ReturnType {\n let maybePromiseResult: ReturnType;\n try {\n maybePromiseResult = fn();\n } catch (e) {\n onError(e);\n onFinally();\n throw e;\n }\n\n return maybeHandlePromiseRejection(maybePromiseResult, onError, onFinally);\n}\n\n/**\n * Maybe handle a promise rejection.\n * This expects to be given a value that _may_ be a promise, or any other value.\n * If it is a promise, and it rejects, it will call the `onError` callback.\n * Other than this, it will generally return the given value as-is.\n */\nfunction maybeHandlePromiseRejection(\n value: MaybePromise,\n onError: (error: unknown) => void,\n onFinally: () => void,\n): MaybePromise {\n if (isThenable(value)) {\n // @ts-expect-error - the isThenable check returns the \"wrong\" type here\n return value.then(\n res => {\n onFinally();\n return res;\n },\n e => {\n onError(e);\n onFinally();\n throw e;\n },\n );\n }\n\n onFinally();\n return value;\n}\n", "import type { Options } from '@sentry/types';\n\nimport { getClient } from '../exports';\n\n// Treeshakable guard to remove all code related to tracing\ndeclare const __SENTRY_TRACING__: boolean | undefined;\n\n/**\n * Determines if tracing is currently enabled.\n *\n * Tracing is enabled when at least one of `tracesSampleRate` and `tracesSampler` is defined in the SDK config.\n */\nexport function hasTracingEnabled(\n maybeOptions?: Pick | undefined,\n): boolean {\n if (typeof __SENTRY_TRACING__ === 'boolean' && !__SENTRY_TRACING__) {\n return false;\n }\n\n const client = getClient();\n const options = maybeOptions || (client && client.getOptions());\n return !!options && (options.enableTracing || 'tracesSampleRate' in options || 'tracesSampler' in options);\n}\n", "import type { Scope, Span, SpanTimeInput, StartSpanOptions, TransactionContext } from '@sentry/types';\n\nimport { addNonEnumerableProperty, dropUndefinedKeys, logger, tracingContextFromHeaders } from '@sentry/utils';\nimport { getDynamicSamplingContextFromSpan } from '.';\n\nimport { DEBUG_BUILD } from '../debug-build';\nimport { getCurrentScope, withScope } from '../exports';\nimport type { Hub } from '../hub';\nimport { runWithAsyncContext } from '../hub';\nimport { getIsolationScope } from '../hub';\nimport { getCurrentHub } from '../hub';\nimport type { Scope as ScopeClass } from '../scope';\nimport { handleCallbackErrors } from '../utils/handleCallbackErrors';\nimport { hasTracingEnabled } from '../utils/hasTracingEnabled';\nimport { spanIsSampled, spanTimeInputToSeconds, spanToJSON } from '../utils/spanUtils';\n\n/**\n * Wraps a function with a transaction/span and finishes the span after the function is done.\n *\n * Note that if you have not enabled tracing extensions via `addTracingExtensions`\n * or you didn't set `tracesSampleRate`, this function will not generate spans\n * and the `span` returned from the callback will be undefined.\n *\n * This function is meant to be used internally and may break at any time. Use at your own risk.\n *\n * @internal\n * @private\n *\n * @deprecated Use `startSpan` instead.\n */\nexport function trace(\n context: TransactionContext,\n callback: (span?: Span) => T,\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n onError: (error: unknown, span?: Span) => void = () => {},\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n afterFinish: () => void = () => {},\n): T {\n // eslint-disable-next-line deprecation/deprecation\n const hub = getCurrentHub();\n const scope = getCurrentScope();\n // eslint-disable-next-line deprecation/deprecation\n const parentSpan = scope.getSpan();\n\n const spanContext = normalizeContext(context);\n const activeSpan = createChildSpanOrTransaction(hub, {\n parentSpan,\n spanContext,\n forceTransaction: false,\n scope,\n });\n\n // eslint-disable-next-line deprecation/deprecation\n scope.setSpan(activeSpan);\n\n return handleCallbackErrors(\n () => callback(activeSpan),\n error => {\n activeSpan && activeSpan.setStatus('internal_error');\n onError(error, activeSpan);\n },\n () => {\n activeSpan && activeSpan.end();\n // eslint-disable-next-line deprecation/deprecation\n scope.setSpan(parentSpan);\n afterFinish();\n },\n );\n}\n\n/**\n * Wraps a function with a transaction/span and finishes the span after the function is done.\n * The created span is the active span and will be used as parent by other spans created inside the function\n * and can be accessed via `Sentry.getSpan()`, as long as the function is executed while the scope is active.\n *\n * If you want to create a span that is not set as active, use {@link startInactiveSpan}.\n *\n * Note that if you have not enabled tracing extensions via `addTracingExtensions`\n * or you didn't set `tracesSampleRate`, this function will not generate spans\n * and the `span` returned from the callback will be undefined.\n */\nexport function startSpan(context: StartSpanOptions, callback: (span: Span | undefined) => T): T {\n const spanContext = normalizeContext(context);\n\n return runWithAsyncContext(() => {\n return withScope(context.scope, scope => {\n // eslint-disable-next-line deprecation/deprecation\n const hub = getCurrentHub();\n // eslint-disable-next-line deprecation/deprecation\n const parentSpan = scope.getSpan();\n\n const shouldSkipSpan = context.onlyIfParent && !parentSpan;\n const activeSpan = shouldSkipSpan\n ? undefined\n : createChildSpanOrTransaction(hub, {\n parentSpan,\n spanContext,\n forceTransaction: context.forceTransaction,\n scope,\n });\n\n return handleCallbackErrors(\n () => callback(activeSpan),\n () => {\n // Only update the span status if it hasn't been changed yet\n if (activeSpan) {\n const { status } = spanToJSON(activeSpan);\n if (!status || status === 'ok') {\n activeSpan.setStatus('internal_error');\n }\n }\n },\n () => activeSpan && activeSpan.end(),\n );\n });\n });\n}\n\n/**\n * @deprecated Use {@link startSpan} instead.\n */\nexport const startActiveSpan = startSpan;\n\n/**\n * Similar to `Sentry.startSpan`. Wraps a function with a transaction/span, but does not finish the span\n * after the function is done automatically. You'll have to call `span.end()` manually.\n *\n * The created span is the active span and will be used as parent by other spans created inside the function\n * and can be accessed via `Sentry.getActiveSpan()`, as long as the function is executed while the scope is active.\n *\n * Note that if you have not enabled tracing extensions via `addTracingExtensions`\n * or you didn't set `tracesSampleRate`, this function will not generate spans\n * and the `span` returned from the callback will be undefined.\n */\nexport function startSpanManual(\n context: StartSpanOptions,\n callback: (span: Span | undefined, finish: () => void) => T,\n): T {\n const spanContext = normalizeContext(context);\n\n return runWithAsyncContext(() => {\n return withScope(context.scope, scope => {\n // eslint-disable-next-line deprecation/deprecation\n const hub = getCurrentHub();\n // eslint-disable-next-line deprecation/deprecation\n const parentSpan = scope.getSpan();\n\n const shouldSkipSpan = context.onlyIfParent && !parentSpan;\n const activeSpan = shouldSkipSpan\n ? undefined\n : createChildSpanOrTransaction(hub, {\n parentSpan,\n spanContext,\n forceTransaction: context.forceTransaction,\n scope,\n });\n\n function finishAndSetSpan(): void {\n activeSpan && activeSpan.end();\n }\n\n return handleCallbackErrors(\n () => callback(activeSpan, finishAndSetSpan),\n () => {\n // Only update the span status if it hasn't been changed yet, and the span is not yet finished\n if (activeSpan && activeSpan.isRecording()) {\n const { status } = spanToJSON(activeSpan);\n if (!status || status === 'ok') {\n activeSpan.setStatus('internal_error');\n }\n }\n },\n );\n });\n });\n}\n\n/**\n * Creates a span. This span is not set as active, so will not get automatic instrumentation spans\n * as children or be able to be accessed via `Sentry.getSpan()`.\n *\n * If you want to create a span that is set as active, use {@link startSpan}.\n *\n * Note that if you have not enabled tracing extensions via `addTracingExtensions`\n * or you didn't set `tracesSampleRate` or `tracesSampler`, this function will not generate spans\n * and the `span` returned from the callback will be undefined.\n */\nexport function startInactiveSpan(context: StartSpanOptions): Span | undefined {\n if (!hasTracingEnabled()) {\n return undefined;\n }\n\n const spanContext = normalizeContext(context);\n // eslint-disable-next-line deprecation/deprecation\n const hub = getCurrentHub();\n const parentSpan = context.scope\n ? // eslint-disable-next-line deprecation/deprecation\n context.scope.getSpan()\n : getActiveSpan();\n\n const shouldSkipSpan = context.onlyIfParent && !parentSpan;\n\n if (shouldSkipSpan) {\n return undefined;\n }\n\n const scope = context.scope || getCurrentScope();\n\n // Even though we don't actually want to make this span active on the current scope,\n // we need to make it active on a temporary scope that we use for event processing\n // as otherwise, it won't pick the correct span for the event when processing it\n const temporaryScope = (scope as ScopeClass).clone();\n\n return createChildSpanOrTransaction(hub, {\n parentSpan,\n spanContext,\n forceTransaction: context.forceTransaction,\n scope: temporaryScope,\n });\n}\n\n/**\n * Returns the currently active span.\n */\nexport function getActiveSpan(): Span | undefined {\n // eslint-disable-next-line deprecation/deprecation\n return getCurrentScope().getSpan();\n}\n\ninterface ContinueTrace {\n /**\n * Continue a trace from `sentry-trace` and `baggage` values.\n * These values can be obtained from incoming request headers,\n * or in the browser from `` and `` HTML tags.\n *\n * @deprecated Use the version of this function taking a callback as second parameter instead:\n *\n * ```\n * Sentry.continueTrace(sentryTrace: '...', baggage: '...' }, () => {\n * // ...\n * })\n * ```\n *\n */\n ({\n sentryTrace,\n baggage,\n }: {\n // eslint-disable-next-line deprecation/deprecation\n sentryTrace: Parameters[0];\n // eslint-disable-next-line deprecation/deprecation\n baggage: Parameters[1];\n }): Partial;\n\n /**\n * Continue a trace from `sentry-trace` and `baggage` values.\n * These values can be obtained from incoming request headers, or in the browser from ``\n * and `` HTML tags.\n *\n * Spans started with `startSpan`, `startSpanManual` and `startInactiveSpan`, within the callback will automatically\n * be attached to the incoming trace.\n *\n * Deprecation notice: In the next major version of the SDK the provided callback will not receive a transaction\n * context argument.\n */\n (\n {\n sentryTrace,\n baggage,\n }: {\n // eslint-disable-next-line deprecation/deprecation\n sentryTrace: Parameters[0];\n // eslint-disable-next-line deprecation/deprecation\n baggage: Parameters[1];\n },\n // TODO(v8): Remove parameter from this callback.\n callback: (transactionContext: Partial) => V,\n ): V;\n}\n\nexport const continueTrace: ContinueTrace = (\n {\n sentryTrace,\n baggage,\n }: {\n // eslint-disable-next-line deprecation/deprecation\n sentryTrace: Parameters[0];\n // eslint-disable-next-line deprecation/deprecation\n baggage: Parameters[1];\n },\n callback?: (transactionContext: Partial) => V,\n): V | Partial => {\n // TODO(v8): Change this function so it doesn't do anything besides setting the propagation context on the current scope:\n /*\n return withScope((scope) => {\n const propagationContext = propagationContextFromHeaders(sentryTrace, baggage);\n scope.setPropagationContext(propagationContext);\n return callback();\n })\n */\n\n const currentScope = getCurrentScope();\n\n // eslint-disable-next-line deprecation/deprecation\n const { traceparentData, dynamicSamplingContext, propagationContext } = tracingContextFromHeaders(\n sentryTrace,\n baggage,\n );\n\n currentScope.setPropagationContext(propagationContext);\n\n if (DEBUG_BUILD && traceparentData) {\n logger.log(`[Tracing] Continuing trace ${traceparentData.traceId}.`);\n }\n\n const transactionContext: Partial = {\n ...traceparentData,\n metadata: dropUndefinedKeys({\n dynamicSamplingContext,\n }),\n };\n\n if (!callback) {\n return transactionContext;\n }\n\n return runWithAsyncContext(() => {\n return callback(transactionContext);\n });\n};\n\nfunction createChildSpanOrTransaction(\n // eslint-disable-next-line deprecation/deprecation\n hub: Hub,\n {\n parentSpan,\n spanContext,\n forceTransaction,\n scope,\n }: {\n parentSpan: Span | undefined;\n spanContext: TransactionContext;\n forceTransaction?: boolean;\n scope: Scope;\n },\n): Span | undefined {\n if (!hasTracingEnabled()) {\n return undefined;\n }\n\n const isolationScope = getIsolationScope();\n\n let span: Span | undefined;\n if (parentSpan && !forceTransaction) {\n // eslint-disable-next-line deprecation/deprecation\n span = parentSpan.startChild(spanContext);\n } else if (parentSpan) {\n // If we forced a transaction but have a parent span, make sure to continue from the parent span, not the scope\n const dsc = getDynamicSamplingContextFromSpan(parentSpan);\n const { traceId, spanId: parentSpanId } = parentSpan.spanContext();\n const sampled = spanIsSampled(parentSpan);\n\n // eslint-disable-next-line deprecation/deprecation\n span = hub.startTransaction({\n traceId,\n parentSpanId,\n parentSampled: sampled,\n ...spanContext,\n metadata: {\n dynamicSamplingContext: dsc,\n // eslint-disable-next-line deprecation/deprecation\n ...spanContext.metadata,\n },\n });\n } else {\n const { traceId, dsc, parentSpanId, sampled } = {\n ...isolationScope.getPropagationContext(),\n ...scope.getPropagationContext(),\n };\n\n // eslint-disable-next-line deprecation/deprecation\n span = hub.startTransaction({\n traceId,\n parentSpanId,\n parentSampled: sampled,\n ...spanContext,\n metadata: {\n dynamicSamplingContext: dsc,\n // eslint-disable-next-line deprecation/deprecation\n ...spanContext.metadata,\n },\n });\n }\n\n // We always set this as active span on the scope\n // In the case of this being an inactive span, we ensure to pass a detached scope in here in the first place\n // But by having this here, we can ensure that the lookup through `getCapturedScopesOnSpan` results in the correct scope & span combo\n // eslint-disable-next-line deprecation/deprecation\n scope.setSpan(span);\n\n setCapturedScopesOnSpan(span, scope, isolationScope);\n\n return span;\n}\n\n/**\n * This converts StartSpanOptions to TransactionContext.\n * For the most part (for now) we accept the same options,\n * but some of them need to be transformed.\n *\n * Eventually the StartSpanOptions will be more aligned with OpenTelemetry.\n */\nfunction normalizeContext(context: StartSpanOptions): TransactionContext {\n if (context.startTime) {\n const ctx: TransactionContext & { startTime?: SpanTimeInput } = { ...context };\n ctx.startTimestamp = spanTimeInputToSeconds(context.startTime);\n delete ctx.startTime;\n return ctx;\n }\n\n return context;\n}\n\nconst SCOPE_ON_START_SPAN_FIELD = '_sentryScope';\nconst ISOLATION_SCOPE_ON_START_SPAN_FIELD = '_sentryIsolationScope';\n\ntype SpanWithScopes = Span & {\n [SCOPE_ON_START_SPAN_FIELD]?: Scope;\n [ISOLATION_SCOPE_ON_START_SPAN_FIELD]?: Scope;\n};\n\nfunction setCapturedScopesOnSpan(span: Span | undefined, scope: Scope, isolationScope: Scope): void {\n if (span) {\n addNonEnumerableProperty(span, ISOLATION_SCOPE_ON_START_SPAN_FIELD, isolationScope);\n addNonEnumerableProperty(span, SCOPE_ON_START_SPAN_FIELD, scope);\n }\n}\n\n/**\n * Grabs the scope and isolation scope off a span that were active when the span was started.\n */\nexport function getCapturedScopesOnSpan(span: Span): { scope?: Scope; isolationScope?: Scope } {\n return {\n scope: (span as SpanWithScopes)[SCOPE_ON_START_SPAN_FIELD],\n isolationScope: (span as SpanWithScopes)[ISOLATION_SCOPE_ON_START_SPAN_FIELD],\n };\n}\n", "import type { MeasurementUnit, Span } from '@sentry/types';\nimport type { MetricSummary } from '@sentry/types';\nimport type { Primitive } from '@sentry/types';\nimport { dropUndefinedKeys } from '@sentry/utils';\nimport { getActiveSpan } from '../tracing';\nimport type { MetricType } from './types';\n\n/**\n * key: bucketKey\n * value: [exportKey, MetricSummary]\n */\ntype MetricSummaryStorage = Map;\n\nlet SPAN_METRIC_SUMMARY: WeakMap | undefined;\n\nfunction getMetricStorageForSpan(span: Span): MetricSummaryStorage | undefined {\n return SPAN_METRIC_SUMMARY ? SPAN_METRIC_SUMMARY.get(span) : undefined;\n}\n\n/**\n * Fetches the metric summary if it exists for the passed span\n */\nexport function getMetricSummaryJsonForSpan(span: Span): Record> | undefined {\n const storage = getMetricStorageForSpan(span);\n\n if (!storage) {\n return undefined;\n }\n const output: Record> = {};\n\n for (const [, [exportKey, summary]] of storage) {\n if (!output[exportKey]) {\n output[exportKey] = [];\n }\n\n output[exportKey].push(dropUndefinedKeys(summary));\n }\n\n return output;\n}\n\n/**\n * Updates the metric summary on the currently active span\n */\nexport function updateMetricSummaryOnActiveSpan(\n metricType: MetricType,\n sanitizedName: string,\n value: number,\n unit: MeasurementUnit,\n tags: Record,\n bucketKey: string,\n): void {\n const span = getActiveSpan();\n if (span) {\n const storage = getMetricStorageForSpan(span) || new Map();\n\n const exportKey = `${metricType}:${sanitizedName}@${unit}`;\n const bucketItem = storage.get(bucketKey);\n\n if (bucketItem) {\n const [, summary] = bucketItem;\n storage.set(bucketKey, [\n exportKey,\n {\n min: Math.min(summary.min, value),\n max: Math.max(summary.max, value),\n count: (summary.count += 1),\n sum: (summary.sum += value),\n tags: summary.tags,\n },\n ]);\n } else {\n storage.set(bucketKey, [\n exportKey,\n {\n min: value,\n max: value,\n count: 1,\n sum: value,\n tags,\n },\n ]);\n }\n\n if (!SPAN_METRIC_SUMMARY) {\n SPAN_METRIC_SUMMARY = new WeakMap();\n }\n\n SPAN_METRIC_SUMMARY.set(span, storage);\n }\n}\n", "/**\n * Use this attribute to represent the source of a span.\n * Should be one of: custom, url, route, view, component, task, unknown\n *\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_SOURCE = 'sentry.source';\n\n/**\n * Use this attribute to represent the sample rate used for a span.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE = 'sentry.sample_rate';\n\n/**\n * Use this attribute to represent the operation of a span.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_OP = 'sentry.op';\n\n/**\n * Use this attribute to represent the origin of a span.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = 'sentry.origin';\n\n/**\n * The id of the profile that this span occured in.\n */\nexport const SEMANTIC_ATTRIBUTE_PROFILE_ID = 'profile_id';\n", "/* eslint-disable max-lines */\nimport type {\n Instrumenter,\n Measurements,\n Primitive,\n Span as SpanInterface,\n SpanAttributeValue,\n SpanAttributes,\n SpanContext,\n SpanContextData,\n SpanJSON,\n SpanOrigin,\n SpanTimeInput,\n TraceContext,\n Transaction,\n} from '@sentry/types';\nimport { dropUndefinedKeys, logger, timestampInSeconds, uuid4 } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../debug-build';\nimport { getMetricSummaryJsonForSpan } from '../metrics/metric-summary';\nimport {\n SEMANTIC_ATTRIBUTE_PROFILE_ID,\n SEMANTIC_ATTRIBUTE_SENTRY_OP,\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n} from '../semanticAttributes';\nimport { getRootSpan } from '../utils/getRootSpan';\nimport {\n TRACE_FLAG_NONE,\n TRACE_FLAG_SAMPLED,\n spanTimeInputToSeconds,\n spanToJSON,\n spanToTraceContext,\n spanToTraceHeader,\n} from '../utils/spanUtils';\nimport type { SpanStatusType } from './spanstatus';\nimport { setHttpStatus } from './spanstatus';\n\n/**\n * Keeps track of finished spans for a given transaction\n * @internal\n * @hideconstructor\n * @hidden\n */\nexport class SpanRecorder {\n public spans: Span[];\n\n private readonly _maxlen: number;\n\n public constructor(maxlen: number = 1000) {\n this._maxlen = maxlen;\n this.spans = [];\n }\n\n /**\n * This is just so that we don't run out of memory while recording a lot\n * of spans. At some point we just stop and flush out the start of the\n * trace tree (i.e.the first n spans with the smallest\n * start_timestamp).\n */\n public add(span: Span): void {\n if (this.spans.length > this._maxlen) {\n // eslint-disable-next-line deprecation/deprecation\n span.spanRecorder = undefined;\n } else {\n this.spans.push(span);\n }\n }\n}\n\n/**\n * Span contains all data about a span\n */\nexport class Span implements SpanInterface {\n /**\n * Tags for the span.\n * @deprecated Use `spanToJSON(span).atttributes` instead.\n */\n public tags: { [key: string]: Primitive };\n\n /**\n * Data for the span.\n * @deprecated Use `spanToJSON(span).atttributes` instead.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n public data: { [key: string]: any };\n\n /**\n * List of spans that were finalized\n *\n * @deprecated This property will no longer be public. Span recording will be handled internally.\n */\n public spanRecorder?: SpanRecorder;\n\n /**\n * @inheritDoc\n * @deprecated Use top level `Sentry.getRootSpan()` instead\n */\n public transaction?: Transaction;\n\n /**\n * The instrumenter that created this span.\n *\n * TODO (v8): This can probably be replaced by an `instanceOf` check of the span class.\n * the instrumenter can only be sentry or otel so we can check the span instance\n * to verify which one it is and remove this field entirely.\n *\n * @deprecated This field will be removed.\n */\n public instrumenter: Instrumenter;\n\n protected _traceId: string;\n protected _spanId: string;\n protected _parentSpanId?: string | undefined;\n protected _sampled: boolean | undefined;\n protected _name?: string | undefined;\n protected _attributes: SpanAttributes;\n /** Epoch timestamp in seconds when the span started. */\n protected _startTime: number;\n /** Epoch timestamp in seconds when the span ended. */\n protected _endTime?: number | undefined;\n /** Internal keeper of the status */\n protected _status?: SpanStatusType | string | undefined;\n protected _exclusiveTime?: number;\n\n protected _measurements: Measurements;\n\n private _logMessage?: string;\n\n /**\n * You should never call the constructor manually, always use `Sentry.startTransaction()`\n * or call `startChild()` on an existing span.\n * @internal\n * @hideconstructor\n * @hidden\n */\n public constructor(spanContext: SpanContext = {}) {\n this._traceId = spanContext.traceId || uuid4();\n this._spanId = spanContext.spanId || uuid4().substring(16);\n this._startTime = spanContext.startTimestamp || timestampInSeconds();\n // eslint-disable-next-line deprecation/deprecation\n this.tags = spanContext.tags ? { ...spanContext.tags } : {};\n // eslint-disable-next-line deprecation/deprecation\n this.data = spanContext.data ? { ...spanContext.data } : {};\n // eslint-disable-next-line deprecation/deprecation\n this.instrumenter = spanContext.instrumenter || 'sentry';\n\n this._attributes = {};\n this.setAttributes({\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: spanContext.origin || 'manual',\n [SEMANTIC_ATTRIBUTE_SENTRY_OP]: spanContext.op,\n ...spanContext.attributes,\n });\n\n // eslint-disable-next-line deprecation/deprecation\n this._name = spanContext.name || spanContext.description;\n\n if (spanContext.parentSpanId) {\n this._parentSpanId = spanContext.parentSpanId;\n }\n // We want to include booleans as well here\n if ('sampled' in spanContext) {\n this._sampled = spanContext.sampled;\n }\n if (spanContext.status) {\n this._status = spanContext.status;\n }\n if (spanContext.endTimestamp) {\n this._endTime = spanContext.endTimestamp;\n }\n if (spanContext.exclusiveTime !== undefined) {\n this._exclusiveTime = spanContext.exclusiveTime;\n }\n this._measurements = spanContext.measurements ? { ...spanContext.measurements } : {};\n }\n\n // This rule conflicts with another eslint rule :(\n /* eslint-disable @typescript-eslint/member-ordering */\n\n /**\n * An alias for `description` of the Span.\n * @deprecated Use `spanToJSON(span).description` instead.\n */\n public get name(): string {\n return this._name || '';\n }\n\n /**\n * Update the name of the span.\n * @deprecated Use `spanToJSON(span).description` instead.\n */\n public set name(name: string) {\n this.updateName(name);\n }\n\n /**\n * Get the description of the Span.\n * @deprecated Use `spanToJSON(span).description` instead.\n */\n public get description(): string | undefined {\n return this._name;\n }\n\n /**\n * Get the description of the Span.\n * @deprecated Use `spanToJSON(span).description` instead.\n */\n public set description(description: string | undefined) {\n this._name = description;\n }\n\n /**\n * The ID of the trace.\n * @deprecated Use `spanContext().traceId` instead.\n */\n public get traceId(): string {\n return this._traceId;\n }\n\n /**\n * The ID of the trace.\n * @deprecated You cannot update the traceId of a span after span creation.\n */\n public set traceId(traceId: string) {\n this._traceId = traceId;\n }\n\n /**\n * The ID of the span.\n * @deprecated Use `spanContext().spanId` instead.\n */\n public get spanId(): string {\n return this._spanId;\n }\n\n /**\n * The ID of the span.\n * @deprecated You cannot update the spanId of a span after span creation.\n */\n public set spanId(spanId: string) {\n this._spanId = spanId;\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `startSpan` functions instead.\n */\n public set parentSpanId(string) {\n this._parentSpanId = string;\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `spanToJSON(span).parent_span_id` instead.\n */\n public get parentSpanId(): string | undefined {\n return this._parentSpanId;\n }\n\n /**\n * Was this span chosen to be sent as part of the sample?\n * @deprecated Use `isRecording()` instead.\n */\n public get sampled(): boolean | undefined {\n return this._sampled;\n }\n\n /**\n * Was this span chosen to be sent as part of the sample?\n * @deprecated You cannot update the sampling decision of a span after span creation.\n */\n public set sampled(sampled: boolean | undefined) {\n this._sampled = sampled;\n }\n\n /**\n * Attributes for the span.\n * @deprecated Use `spanToJSON(span).atttributes` instead.\n */\n public get attributes(): SpanAttributes {\n return this._attributes;\n }\n\n /**\n * Attributes for the span.\n * @deprecated Use `setAttributes()` instead.\n */\n public set attributes(attributes: SpanAttributes) {\n this._attributes = attributes;\n }\n\n /**\n * Timestamp in seconds (epoch time) indicating when the span started.\n * @deprecated Use `spanToJSON()` instead.\n */\n public get startTimestamp(): number {\n return this._startTime;\n }\n\n /**\n * Timestamp in seconds (epoch time) indicating when the span started.\n * @deprecated In v8, you will not be able to update the span start time after creation.\n */\n public set startTimestamp(startTime: number) {\n this._startTime = startTime;\n }\n\n /**\n * Timestamp in seconds when the span ended.\n * @deprecated Use `spanToJSON()` instead.\n */\n public get endTimestamp(): number | undefined {\n return this._endTime;\n }\n\n /**\n * Timestamp in seconds when the span ended.\n * @deprecated Set the end time via `span.end()` instead.\n */\n public set endTimestamp(endTime: number | undefined) {\n this._endTime = endTime;\n }\n\n /**\n * The status of the span.\n *\n * @deprecated Use `spanToJSON().status` instead to get the status.\n */\n public get status(): SpanStatusType | string | undefined {\n return this._status;\n }\n\n /**\n * The status of the span.\n *\n * @deprecated Use `.setStatus()` instead to set or update the status.\n */\n public set status(status: SpanStatusType | string | undefined) {\n this._status = status;\n }\n\n /**\n * Operation of the span\n *\n * @deprecated Use `spanToJSON().op` to read the op instead.\n */\n public get op(): string | undefined {\n return this._attributes[SEMANTIC_ATTRIBUTE_SENTRY_OP] as string | undefined;\n }\n\n /**\n * Operation of the span\n *\n * @deprecated Use `startSpan()` functions to set or `span.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_OP, 'op')\n * to update the span instead.\n */\n public set op(op: string | undefined) {\n this.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_OP, op);\n }\n\n /**\n * The origin of the span, giving context about what created the span.\n *\n * @deprecated Use `spanToJSON().origin` to read the origin instead.\n */\n public get origin(): SpanOrigin | undefined {\n return this._attributes[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN] as SpanOrigin | undefined;\n }\n\n /**\n * The origin of the span, giving context about what created the span.\n *\n * @deprecated Use `startSpan()` functions to set the origin instead.\n */\n public set origin(origin: SpanOrigin | undefined) {\n this.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, origin);\n }\n\n /* eslint-enable @typescript-eslint/member-ordering */\n\n /** @inheritdoc */\n public spanContext(): SpanContextData {\n const { _spanId: spanId, _traceId: traceId, _sampled: sampled } = this;\n return {\n spanId,\n traceId,\n traceFlags: sampled ? TRACE_FLAG_SAMPLED : TRACE_FLAG_NONE,\n };\n }\n\n /**\n * Creates a new `Span` while setting the current `Span.id` as `parentSpanId`.\n * Also the `sampled` decision will be inherited.\n *\n * @deprecated Use `startSpan()`, `startSpanManual()` or `startInactiveSpan()` instead.\n */\n public startChild(\n spanContext?: Pick>,\n ): SpanInterface {\n const childSpan = new Span({\n ...spanContext,\n parentSpanId: this._spanId,\n sampled: this._sampled,\n traceId: this._traceId,\n });\n\n // eslint-disable-next-line deprecation/deprecation\n childSpan.spanRecorder = this.spanRecorder;\n // eslint-disable-next-line deprecation/deprecation\n if (childSpan.spanRecorder) {\n // eslint-disable-next-line deprecation/deprecation\n childSpan.spanRecorder.add(childSpan);\n }\n\n const rootSpan = getRootSpan(this);\n // TODO: still set span.transaction here until we have a more permanent solution\n // Probably similarly to the weakmap we hold in node-experimental\n // eslint-disable-next-line deprecation/deprecation\n childSpan.transaction = rootSpan as Transaction;\n\n if (DEBUG_BUILD && rootSpan) {\n const opStr = (spanContext && spanContext.op) || '< unknown op >';\n const nameStr = spanToJSON(childSpan).description || '< unknown name >';\n const idStr = rootSpan.spanContext().spanId;\n\n const logMessage = `[Tracing] Starting '${opStr}' span on transaction '${nameStr}' (${idStr}).`;\n logger.log(logMessage);\n this._logMessage = logMessage;\n }\n\n return childSpan;\n }\n\n /**\n * Sets the tag attribute on the current span.\n *\n * Can also be used to unset a tag, by passing `undefined`.\n *\n * @param key Tag key\n * @param value Tag value\n * @deprecated Use `setAttribute()` instead.\n */\n public setTag(key: string, value: Primitive): this {\n // eslint-disable-next-line deprecation/deprecation\n this.tags = { ...this.tags, [key]: value };\n return this;\n }\n\n /**\n * Sets the data attribute on the current span\n * @param key Data key\n * @param value Data value\n * @deprecated Use `setAttribute()` instead.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n public setData(key: string, value: any): this {\n // eslint-disable-next-line deprecation/deprecation\n this.data = { ...this.data, [key]: value };\n return this;\n }\n\n /** @inheritdoc */\n public setAttribute(key: string, value: SpanAttributeValue | undefined): void {\n if (value === undefined) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete this._attributes[key];\n } else {\n this._attributes[key] = value;\n }\n }\n\n /** @inheritdoc */\n public setAttributes(attributes: SpanAttributes): void {\n Object.keys(attributes).forEach(key => this.setAttribute(key, attributes[key]));\n }\n\n /**\n * @inheritDoc\n */\n public setStatus(value: SpanStatusType): this {\n this._status = value;\n return this;\n }\n\n /**\n * @inheritDoc\n * @deprecated Use top-level `setHttpStatus()` instead.\n */\n public setHttpStatus(httpStatus: number): this {\n setHttpStatus(this, httpStatus);\n return this;\n }\n\n /**\n * @inheritdoc\n *\n * @deprecated Use `.updateName()` instead.\n */\n public setName(name: string): void {\n this.updateName(name);\n }\n\n /**\n * @inheritDoc\n */\n public updateName(name: string): this {\n this._name = name;\n return this;\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `spanToJSON(span).status === 'ok'` instead.\n */\n public isSuccess(): boolean {\n return this._status === 'ok';\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `.end()` instead.\n */\n public finish(endTimestamp?: number): void {\n return this.end(endTimestamp);\n }\n\n /** @inheritdoc */\n public end(endTimestamp?: SpanTimeInput): void {\n // If already ended, skip\n if (this._endTime) {\n return;\n }\n const rootSpan = getRootSpan(this);\n if (\n DEBUG_BUILD &&\n // Don't call this for transactions\n rootSpan &&\n rootSpan.spanContext().spanId !== this._spanId\n ) {\n const logMessage = this._logMessage;\n if (logMessage) {\n logger.log((logMessage as string).replace('Starting', 'Finishing'));\n }\n }\n\n this._endTime = spanTimeInputToSeconds(endTimestamp);\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `spanToTraceHeader()` instead.\n */\n public toTraceparent(): string {\n return spanToTraceHeader(this);\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `spanToJSON()` or access the fields directly instead.\n */\n public toContext(): SpanContext {\n return dropUndefinedKeys({\n data: this._getData(),\n description: this._name,\n endTimestamp: this._endTime,\n // eslint-disable-next-line deprecation/deprecation\n op: this.op,\n parentSpanId: this._parentSpanId,\n sampled: this._sampled,\n spanId: this._spanId,\n startTimestamp: this._startTime,\n status: this._status,\n // eslint-disable-next-line deprecation/deprecation\n tags: this.tags,\n traceId: this._traceId,\n });\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Update the fields directly instead.\n */\n public updateWithContext(spanContext: SpanContext): this {\n // eslint-disable-next-line deprecation/deprecation\n this.data = spanContext.data || {};\n // eslint-disable-next-line deprecation/deprecation\n this._name = spanContext.name || spanContext.description;\n this._endTime = spanContext.endTimestamp;\n // eslint-disable-next-line deprecation/deprecation\n this.op = spanContext.op;\n this._parentSpanId = spanContext.parentSpanId;\n this._sampled = spanContext.sampled;\n this._spanId = spanContext.spanId || this._spanId;\n this._startTime = spanContext.startTimestamp || this._startTime;\n this._status = spanContext.status;\n // eslint-disable-next-line deprecation/deprecation\n this.tags = spanContext.tags || {};\n this._traceId = spanContext.traceId || this._traceId;\n\n return this;\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `spanToTraceContext()` util function instead.\n */\n public getTraceContext(): TraceContext {\n return spanToTraceContext(this);\n }\n\n /**\n * Get JSON representation of this span.\n *\n * @hidden\n * @internal This method is purely for internal purposes and should not be used outside\n * of SDK code. If you need to get a JSON representation of a span,\n * use `spanToJSON(span)` instead.\n */\n public getSpanJSON(): SpanJSON {\n return dropUndefinedKeys({\n data: this._getData(),\n description: this._name,\n op: this._attributes[SEMANTIC_ATTRIBUTE_SENTRY_OP] as string | undefined,\n parent_span_id: this._parentSpanId,\n span_id: this._spanId,\n start_timestamp: this._startTime,\n status: this._status,\n // eslint-disable-next-line deprecation/deprecation\n tags: Object.keys(this.tags).length > 0 ? this.tags : undefined,\n timestamp: this._endTime,\n trace_id: this._traceId,\n origin: this._attributes[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN] as SpanOrigin | undefined,\n _metrics_summary: getMetricSummaryJsonForSpan(this),\n profile_id: this._attributes[SEMANTIC_ATTRIBUTE_PROFILE_ID] as string | undefined,\n exclusive_time: this._exclusiveTime,\n measurements: Object.keys(this._measurements).length > 0 ? this._measurements : undefined,\n });\n }\n\n /** @inheritdoc */\n public isRecording(): boolean {\n return !this._endTime && !!this._sampled;\n }\n\n /**\n * Convert the object to JSON.\n * @deprecated Use `spanToJSON(span)` instead.\n */\n public toJSON(): SpanJSON {\n return this.getSpanJSON();\n }\n\n /**\n * Get the merged data for this span.\n * For now, this combines `data` and `attributes` together,\n * until eventually we can ingest `attributes` directly.\n */\n private _getData():\n | {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [key: string]: any;\n }\n | undefined {\n // eslint-disable-next-line deprecation/deprecation\n const { data, _attributes: attributes } = this;\n\n const hasData = Object.keys(data).length > 0;\n const hasAttributes = Object.keys(attributes).length > 0;\n\n if (!hasData && !hasAttributes) {\n return undefined;\n }\n\n if (hasData && hasAttributes) {\n return {\n ...data,\n ...attributes,\n };\n }\n\n return hasData ? data : attributes;\n }\n}\n", "import type {\n Context,\n Contexts,\n DynamicSamplingContext,\n MeasurementUnit,\n SpanTimeInput,\n Transaction as TransactionInterface,\n TransactionContext,\n TransactionEvent,\n TransactionMetadata,\n} from '@sentry/types';\nimport { dropUndefinedKeys, logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { Hub } from '../hub';\nimport { getCurrentHub } from '../hub';\nimport { getMetricSummaryJsonForSpan } from '../metrics/metric-summary';\nimport { SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE } from '../semanticAttributes';\nimport { spanTimeInputToSeconds, spanToJSON, spanToTraceContext } from '../utils/spanUtils';\nimport { getDynamicSamplingContextFromSpan } from './dynamicSamplingContext';\nimport { Span as SpanClass, SpanRecorder } from './span';\nimport { getCapturedScopesOnSpan } from './trace';\n\n/** JSDoc */\nexport class Transaction extends SpanClass implements TransactionInterface {\n /**\n * The reference to the current hub.\n */\n // eslint-disable-next-line deprecation/deprecation\n public _hub: Hub;\n\n protected _name: string;\n\n private _contexts: Contexts;\n\n private _trimEnd?: boolean | undefined;\n\n // DO NOT yet remove this property, it is used in a hack for v7 backwards compatibility.\n private _frozenDynamicSamplingContext: Readonly> | undefined;\n\n private _metadata: Partial;\n\n /**\n * This constructor should never be called manually. Those instrumenting tracing should use\n * `Sentry.startTransaction()`, and internal methods should use `hub.startTransaction()`.\n * @internal\n * @hideconstructor\n * @hidden\n *\n * @deprecated Transactions will be removed in v8. Use spans instead.\n */\n // eslint-disable-next-line deprecation/deprecation\n public constructor(transactionContext: TransactionContext, hub?: Hub) {\n super(transactionContext);\n this._contexts = {};\n\n // eslint-disable-next-line deprecation/deprecation\n this._hub = hub || getCurrentHub();\n\n this._name = transactionContext.name || '';\n\n this._metadata = {\n // eslint-disable-next-line deprecation/deprecation\n ...transactionContext.metadata,\n };\n\n this._trimEnd = transactionContext.trimEnd;\n\n // this is because transactions are also spans, and spans have a transaction pointer\n // TODO (v8): Replace this with another way to set the root span\n // eslint-disable-next-line deprecation/deprecation\n this.transaction = this;\n\n // If Dynamic Sampling Context is provided during the creation of the transaction, we freeze it as it usually means\n // there is incoming Dynamic Sampling Context. (Either through an incoming request, a baggage meta-tag, or other means)\n const incomingDynamicSamplingContext = this._metadata.dynamicSamplingContext;\n if (incomingDynamicSamplingContext) {\n // We shallow copy this in case anything writes to the original reference of the passed in `dynamicSamplingContext`\n this._frozenDynamicSamplingContext = { ...incomingDynamicSamplingContext };\n }\n }\n\n // This sadly conflicts with the getter/setter ordering :(\n /* eslint-disable @typescript-eslint/member-ordering */\n\n /**\n * Getter for `name` property.\n * @deprecated Use `spanToJSON(span).description` instead.\n */\n public get name(): string {\n return this._name;\n }\n\n /**\n * Setter for `name` property, which also sets `source` as custom.\n * @deprecated Use `updateName()` and `setMetadata()` instead.\n */\n public set name(newName: string) {\n // eslint-disable-next-line deprecation/deprecation\n this.setName(newName);\n }\n\n /**\n * Get the metadata for this transaction.\n * @deprecated Use `spanGetMetadata(transaction)` instead.\n */\n public get metadata(): TransactionMetadata {\n // We merge attributes in for backwards compatibility\n return {\n // Defaults\n // eslint-disable-next-line deprecation/deprecation\n source: 'custom',\n spanMetadata: {},\n\n // Legacy metadata\n ...this._metadata,\n\n // From attributes\n ...(this._attributes[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE] && {\n source: this._attributes[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE] as TransactionMetadata['source'],\n }),\n ...(this._attributes[SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE] && {\n sampleRate: this._attributes[SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE] as TransactionMetadata['sampleRate'],\n }),\n };\n }\n\n /**\n * Update the metadata for this transaction.\n * @deprecated Use `spanGetMetadata(transaction)` instead.\n */\n public set metadata(metadata: TransactionMetadata) {\n this._metadata = metadata;\n }\n\n /* eslint-enable @typescript-eslint/member-ordering */\n\n /**\n * Setter for `name` property, which also sets `source` on the metadata.\n *\n * @deprecated Use `.updateName()` and `.setAttribute()` instead.\n */\n public setName(name: string, source: TransactionMetadata['source'] = 'custom'): void {\n this._name = name;\n this.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, source);\n }\n\n /** @inheritdoc */\n public updateName(name: string): this {\n this._name = name;\n return this;\n }\n\n /**\n * Attaches SpanRecorder to the span itself\n * @param maxlen maximum number of spans that can be recorded\n */\n public initSpanRecorder(maxlen: number = 1000): void {\n // eslint-disable-next-line deprecation/deprecation\n if (!this.spanRecorder) {\n // eslint-disable-next-line deprecation/deprecation\n this.spanRecorder = new SpanRecorder(maxlen);\n }\n // eslint-disable-next-line deprecation/deprecation\n this.spanRecorder.add(this);\n }\n\n /**\n * Set the context of a transaction event.\n * @deprecated Use either `.setAttribute()`, or set the context on the scope before creating the transaction.\n */\n public setContext(key: string, context: Context | null): void {\n if (context === null) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete this._contexts[key];\n } else {\n this._contexts[key] = context;\n }\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use top-level `setMeasurement()` instead.\n */\n public setMeasurement(name: string, value: number, unit: MeasurementUnit = ''): void {\n this._measurements[name] = { value, unit };\n }\n\n /**\n * Store metadata on this transaction.\n * @deprecated Use attributes or store data on the scope instead.\n */\n public setMetadata(newMetadata: Partial): void {\n this._metadata = { ...this._metadata, ...newMetadata };\n }\n\n /**\n * @inheritDoc\n */\n public end(endTimestamp?: SpanTimeInput): string | undefined {\n const timestampInS = spanTimeInputToSeconds(endTimestamp);\n const transaction = this._finishTransaction(timestampInS);\n if (!transaction) {\n return undefined;\n }\n // eslint-disable-next-line deprecation/deprecation\n return this._hub.captureEvent(transaction);\n }\n\n /**\n * @inheritDoc\n */\n public toContext(): TransactionContext {\n // eslint-disable-next-line deprecation/deprecation\n const spanContext = super.toContext();\n\n return dropUndefinedKeys({\n ...spanContext,\n name: this._name,\n trimEnd: this._trimEnd,\n });\n }\n\n /**\n * @inheritDoc\n */\n public updateWithContext(transactionContext: TransactionContext): this {\n // eslint-disable-next-line deprecation/deprecation\n super.updateWithContext(transactionContext);\n\n this._name = transactionContext.name || '';\n this._trimEnd = transactionContext.trimEnd;\n\n return this;\n }\n\n /**\n * @inheritdoc\n *\n * @experimental\n *\n * @deprecated Use top-level `getDynamicSamplingContextFromSpan` instead.\n */\n public getDynamicSamplingContext(): Readonly> {\n return getDynamicSamplingContextFromSpan(this);\n }\n\n /**\n * Override the current hub with a new one.\n * Used if you want another hub to finish the transaction.\n *\n * @internal\n */\n // eslint-disable-next-line deprecation/deprecation\n public setHub(hub: Hub): void {\n this._hub = hub;\n }\n\n /**\n * Get the profile id of the transaction.\n */\n public getProfileId(): string | undefined {\n if (this._contexts !== undefined && this._contexts['profile'] !== undefined) {\n return this._contexts['profile'].profile_id as string;\n }\n return undefined;\n }\n\n /**\n * Finish the transaction & prepare the event to send to Sentry.\n */\n protected _finishTransaction(endTimestamp?: number): TransactionEvent | undefined {\n // This transaction is already finished, so we should not flush it again.\n if (this._endTime !== undefined) {\n return undefined;\n }\n\n if (!this._name) {\n DEBUG_BUILD && logger.warn('Transaction has no name, falling back to ``.');\n this._name = '';\n }\n\n // just sets the end timestamp\n super.end(endTimestamp);\n\n // eslint-disable-next-line deprecation/deprecation\n const client = this._hub.getClient();\n if (client && client.emit) {\n client.emit('finishTransaction', this);\n }\n\n if (this._sampled !== true) {\n // At this point if `sampled !== true` we want to discard the transaction.\n DEBUG_BUILD && logger.log('[Tracing] Discarding transaction because its trace was not chosen to be sampled.');\n\n if (client) {\n client.recordDroppedEvent('sample_rate', 'transaction');\n }\n\n return undefined;\n }\n\n // eslint-disable-next-line deprecation/deprecation\n const finishedSpans = this.spanRecorder\n ? // eslint-disable-next-line deprecation/deprecation\n this.spanRecorder.spans.filter(span => span !== this && spanToJSON(span).timestamp)\n : [];\n\n if (this._trimEnd && finishedSpans.length > 0) {\n const endTimes = finishedSpans.map(span => spanToJSON(span).timestamp).filter(Boolean) as number[];\n this._endTime = endTimes.reduce((prev, current) => {\n return prev > current ? prev : current;\n });\n }\n\n const { scope: capturedSpanScope, isolationScope: capturedSpanIsolationScope } = getCapturedScopesOnSpan(this);\n\n // eslint-disable-next-line deprecation/deprecation\n const { metadata } = this;\n // eslint-disable-next-line deprecation/deprecation\n const { source } = metadata;\n\n const transaction: TransactionEvent = {\n contexts: {\n ...this._contexts,\n // We don't want to override trace context\n trace: spanToTraceContext(this),\n },\n // TODO: Pass spans serialized via `spanToJSON()` here instead in v8.\n spans: finishedSpans,\n start_timestamp: this._startTime,\n // eslint-disable-next-line deprecation/deprecation\n tags: this.tags,\n timestamp: this._endTime,\n transaction: this._name,\n type: 'transaction',\n sdkProcessingMetadata: {\n ...metadata,\n capturedSpanScope,\n capturedSpanIsolationScope,\n ...dropUndefinedKeys({\n dynamicSamplingContext: getDynamicSamplingContextFromSpan(this),\n }),\n },\n _metrics_summary: getMetricSummaryJsonForSpan(this),\n ...(source && {\n transaction_info: {\n source,\n },\n }),\n };\n\n const hasMeasurements = Object.keys(this._measurements).length > 0;\n\n if (hasMeasurements) {\n DEBUG_BUILD &&\n logger.log(\n '[Measurements] Adding measurements to transaction',\n JSON.stringify(this._measurements, undefined, 2),\n );\n transaction.measurements = this._measurements;\n }\n\n // eslint-disable-next-line deprecation/deprecation\n DEBUG_BUILD && logger.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`);\n\n return transaction;\n }\n}\n", "/* eslint-disable max-lines */\nimport type { SpanTimeInput, TransactionContext } from '@sentry/types';\nimport { logger, timestampInSeconds } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { Hub } from '../hub';\nimport { spanTimeInputToSeconds, spanToJSON } from '../utils/spanUtils';\nimport type { Span } from './span';\nimport { SpanRecorder } from './span';\nimport { Transaction } from './transaction';\n\nexport const TRACING_DEFAULTS = {\n idleTimeout: 1000,\n finalTimeout: 30000,\n heartbeatInterval: 5000,\n};\n\nconst FINISH_REASON_TAG = 'finishReason';\n\nconst IDLE_TRANSACTION_FINISH_REASONS = [\n 'heartbeatFailed',\n 'idleTimeout',\n 'documentHidden',\n 'finalTimeout',\n 'externalFinish',\n 'cancelled',\n];\n\n/**\n * @inheritDoc\n */\nexport class IdleTransactionSpanRecorder extends SpanRecorder {\n public constructor(\n private readonly _pushActivity: (id: string) => void,\n private readonly _popActivity: (id: string) => void,\n public transactionSpanId: string,\n maxlen?: number,\n ) {\n super(maxlen);\n }\n\n /**\n * @inheritDoc\n */\n public add(span: Span): void {\n // We should make sure we do not push and pop activities for\n // the transaction that this span recorder belongs to.\n if (span.spanContext().spanId !== this.transactionSpanId) {\n // We patch span.end() to pop an activity after setting an endTimestamp.\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const originalEnd = span.end;\n span.end = (...rest: unknown[]) => {\n this._popActivity(span.spanContext().spanId);\n return originalEnd.apply(span, rest);\n };\n\n // We should only push new activities if the span does not have an end timestamp.\n if (spanToJSON(span).timestamp === undefined) {\n this._pushActivity(span.spanContext().spanId);\n }\n }\n\n super.add(span);\n }\n}\n\nexport type BeforeFinishCallback = (transactionSpan: IdleTransaction, endTimestamp: number) => void;\n\n/**\n * An IdleTransaction is a transaction that automatically finishes. It does this by tracking child spans as activities.\n * You can have multiple IdleTransactions active, but if the `onScope` option is specified, the idle transaction will\n * put itself on the scope on creation.\n */\nexport class IdleTransaction extends Transaction {\n // Activities store a list of active spans\n public activities: Record;\n // Track state of activities in previous heartbeat\n private _prevHeartbeatString: string | undefined;\n\n // Amount of times heartbeat has counted. Will cause transaction to finish after 3 beats.\n private _heartbeatCounter: number;\n\n // We should not use heartbeat if we finished a transaction\n private _finished: boolean;\n\n // Idle timeout was canceled and we should finish the transaction with the last span end.\n private _idleTimeoutCanceledPermanently: boolean;\n\n private readonly _beforeFinishCallbacks: BeforeFinishCallback[];\n\n /**\n * Timer that tracks Transaction idleTimeout\n */\n private _idleTimeoutID: ReturnType | undefined;\n\n private _finishReason: (typeof IDLE_TRANSACTION_FINISH_REASONS)[number];\n\n private _autoFinishAllowed: boolean;\n\n /**\n * @deprecated Transactions will be removed in v8. Use spans instead.\n */\n public constructor(\n transactionContext: TransactionContext,\n // eslint-disable-next-line deprecation/deprecation\n private readonly _idleHub: Hub,\n /**\n * The time to wait in ms until the idle transaction will be finished. This timer is started each time\n * there are no active spans on this transaction.\n */\n private readonly _idleTimeout: number = TRACING_DEFAULTS.idleTimeout,\n /**\n * The final value in ms that a transaction cannot exceed\n */\n private readonly _finalTimeout: number = TRACING_DEFAULTS.finalTimeout,\n private readonly _heartbeatInterval: number = TRACING_DEFAULTS.heartbeatInterval,\n // Whether or not the transaction should put itself on the scope when it starts and pop itself off when it ends\n private readonly _onScope: boolean = false,\n /**\n * When set to `true`, will disable the idle timeout (`_idleTimeout` option) and heartbeat mechanisms (`_heartbeatInterval`\n * option) until the `sendAutoFinishSignal()` method is called. The final timeout mechanism (`_finalTimeout` option)\n * will not be affected by this option, meaning the transaction will definitely be finished when the final timeout is\n * reached, no matter what this option is configured to.\n *\n * Defaults to `false`.\n */\n delayAutoFinishUntilSignal: boolean = false,\n ) {\n super(transactionContext, _idleHub);\n\n this.activities = {};\n this._heartbeatCounter = 0;\n this._finished = false;\n this._idleTimeoutCanceledPermanently = false;\n this._beforeFinishCallbacks = [];\n this._finishReason = IDLE_TRANSACTION_FINISH_REASONS[4];\n this._autoFinishAllowed = !delayAutoFinishUntilSignal;\n\n if (_onScope) {\n // We set the transaction here on the scope so error events pick up the trace\n // context and attach it to the error.\n DEBUG_BUILD && logger.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`);\n // eslint-disable-next-line deprecation/deprecation\n _idleHub.getScope().setSpan(this);\n }\n\n if (!delayAutoFinishUntilSignal) {\n this._restartIdleTimeout();\n }\n\n setTimeout(() => {\n if (!this._finished) {\n this.setStatus('deadline_exceeded');\n this._finishReason = IDLE_TRANSACTION_FINISH_REASONS[3];\n this.end();\n }\n }, this._finalTimeout);\n }\n\n /** {@inheritDoc} */\n public end(endTimestamp?: SpanTimeInput): string | undefined {\n const endTimestampInS = spanTimeInputToSeconds(endTimestamp);\n\n this._finished = true;\n this.activities = {};\n\n // eslint-disable-next-line deprecation/deprecation\n if (this.op === 'ui.action.click') {\n this.setAttribute(FINISH_REASON_TAG, this._finishReason);\n }\n\n // eslint-disable-next-line deprecation/deprecation\n if (this.spanRecorder) {\n DEBUG_BUILD &&\n // eslint-disable-next-line deprecation/deprecation\n logger.log('[Tracing] finishing IdleTransaction', new Date(endTimestampInS * 1000).toISOString(), this.op);\n\n for (const callback of this._beforeFinishCallbacks) {\n callback(this, endTimestampInS);\n }\n\n // eslint-disable-next-line deprecation/deprecation\n this.spanRecorder.spans = this.spanRecorder.spans.filter((span: Span) => {\n // If we are dealing with the transaction itself, we just return it\n if (span.spanContext().spanId === this.spanContext().spanId) {\n return true;\n }\n\n // We cancel all pending spans with status \"cancelled\" to indicate the idle transaction was finished early\n if (!spanToJSON(span).timestamp) {\n span.setStatus('cancelled');\n span.end(endTimestampInS);\n DEBUG_BUILD &&\n logger.log('[Tracing] cancelling span since transaction ended early', JSON.stringify(span, undefined, 2));\n }\n\n const { start_timestamp: startTime, timestamp: endTime } = spanToJSON(span);\n const spanStartedBeforeTransactionFinish = startTime && startTime < endTimestampInS;\n\n // Add a delta with idle timeout so that we prevent false positives\n const timeoutWithMarginOfError = (this._finalTimeout + this._idleTimeout) / 1000;\n const spanEndedBeforeFinalTimeout = endTime && startTime && endTime - startTime < timeoutWithMarginOfError;\n\n if (DEBUG_BUILD) {\n const stringifiedSpan = JSON.stringify(span, undefined, 2);\n if (!spanStartedBeforeTransactionFinish) {\n logger.log('[Tracing] discarding Span since it happened after Transaction was finished', stringifiedSpan);\n } else if (!spanEndedBeforeFinalTimeout) {\n logger.log('[Tracing] discarding Span since it finished after Transaction final timeout', stringifiedSpan);\n }\n }\n\n return spanStartedBeforeTransactionFinish && spanEndedBeforeFinalTimeout;\n });\n\n DEBUG_BUILD && logger.log('[Tracing] flushing IdleTransaction');\n } else {\n DEBUG_BUILD && logger.log('[Tracing] No active IdleTransaction');\n }\n\n // if `this._onScope` is `true`, the transaction put itself on the scope when it started\n if (this._onScope) {\n // eslint-disable-next-line deprecation/deprecation\n const scope = this._idleHub.getScope();\n // eslint-disable-next-line deprecation/deprecation\n if (scope.getTransaction() === this) {\n // eslint-disable-next-line deprecation/deprecation\n scope.setSpan(undefined);\n }\n }\n\n return super.end(endTimestamp);\n }\n\n /**\n * Register a callback function that gets executed before the transaction finishes.\n * Useful for cleanup or if you want to add any additional spans based on current context.\n *\n * This is exposed because users have no other way of running something before an idle transaction\n * finishes.\n */\n public registerBeforeFinishCallback(callback: BeforeFinishCallback): void {\n this._beforeFinishCallbacks.push(callback);\n }\n\n /**\n * @inheritDoc\n */\n public initSpanRecorder(maxlen?: number): void {\n // eslint-disable-next-line deprecation/deprecation\n if (!this.spanRecorder) {\n const pushActivity = (id: string): void => {\n if (this._finished) {\n return;\n }\n this._pushActivity(id);\n };\n const popActivity = (id: string): void => {\n if (this._finished) {\n return;\n }\n this._popActivity(id);\n };\n\n // eslint-disable-next-line deprecation/deprecation\n this.spanRecorder = new IdleTransactionSpanRecorder(pushActivity, popActivity, this.spanContext().spanId, maxlen);\n\n // Start heartbeat so that transactions do not run forever.\n DEBUG_BUILD && logger.log('Starting heartbeat');\n this._pingHeartbeat();\n }\n // eslint-disable-next-line deprecation/deprecation\n this.spanRecorder.add(this);\n }\n\n /**\n * Cancels the existing idle timeout, if there is one.\n * @param restartOnChildSpanChange Default is `true`.\n * If set to false the transaction will end\n * with the last child span.\n */\n public cancelIdleTimeout(\n endTimestamp?: Parameters[0],\n {\n restartOnChildSpanChange,\n }: {\n restartOnChildSpanChange?: boolean;\n } = {\n restartOnChildSpanChange: true,\n },\n ): void {\n this._idleTimeoutCanceledPermanently = restartOnChildSpanChange === false;\n if (this._idleTimeoutID) {\n clearTimeout(this._idleTimeoutID);\n this._idleTimeoutID = undefined;\n\n if (Object.keys(this.activities).length === 0 && this._idleTimeoutCanceledPermanently) {\n this._finishReason = IDLE_TRANSACTION_FINISH_REASONS[5];\n this.end(endTimestamp);\n }\n }\n }\n\n /**\n * Temporary method used to externally set the transaction's `finishReason`\n *\n * ** WARNING**\n * This is for the purpose of experimentation only and will be removed in the near future, do not use!\n *\n * @internal\n *\n */\n public setFinishReason(reason: string): void {\n this._finishReason = reason;\n }\n\n /**\n * Permits the IdleTransaction to automatically end itself via the idle timeout and heartbeat mechanisms when the `delayAutoFinishUntilSignal` option was set to `true`.\n */\n public sendAutoFinishSignal(): void {\n if (!this._autoFinishAllowed) {\n DEBUG_BUILD && logger.log('[Tracing] Received finish signal for idle transaction.');\n this._restartIdleTimeout();\n this._autoFinishAllowed = true;\n }\n }\n\n /**\n * Restarts idle timeout, if there is no running idle timeout it will start one.\n */\n private _restartIdleTimeout(endTimestamp?: Parameters[0]): void {\n this.cancelIdleTimeout();\n this._idleTimeoutID = setTimeout(() => {\n if (!this._finished && Object.keys(this.activities).length === 0) {\n this._finishReason = IDLE_TRANSACTION_FINISH_REASONS[1];\n this.end(endTimestamp);\n }\n }, this._idleTimeout);\n }\n\n /**\n * Start tracking a specific activity.\n * @param spanId The span id that represents the activity\n */\n private _pushActivity(spanId: string): void {\n this.cancelIdleTimeout(undefined, { restartOnChildSpanChange: !this._idleTimeoutCanceledPermanently });\n DEBUG_BUILD && logger.log(`[Tracing] pushActivity: ${spanId}`);\n this.activities[spanId] = true;\n DEBUG_BUILD && logger.log('[Tracing] new activities count', Object.keys(this.activities).length);\n }\n\n /**\n * Remove an activity from usage\n * @param spanId The span id that represents the activity\n */\n private _popActivity(spanId: string): void {\n if (this.activities[spanId]) {\n DEBUG_BUILD && logger.log(`[Tracing] popActivity ${spanId}`);\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete this.activities[spanId];\n DEBUG_BUILD && logger.log('[Tracing] new activities count', Object.keys(this.activities).length);\n }\n\n if (Object.keys(this.activities).length === 0) {\n const endTimestamp = timestampInSeconds();\n if (this._idleTimeoutCanceledPermanently) {\n if (this._autoFinishAllowed) {\n this._finishReason = IDLE_TRANSACTION_FINISH_REASONS[5];\n this.end(endTimestamp);\n }\n } else {\n // We need to add the timeout here to have the real endtimestamp of the transaction\n // Remember timestampInSeconds is in seconds, timeout is in ms\n this._restartIdleTimeout(endTimestamp + this._idleTimeout / 1000);\n }\n }\n }\n\n /**\n * Checks when entries of this.activities are not changing for 3 beats.\n * If this occurs we finish the transaction.\n */\n private _beat(): void {\n // We should not be running heartbeat if the idle transaction is finished.\n if (this._finished) {\n return;\n }\n\n const heartbeatString = Object.keys(this.activities).join('');\n\n if (heartbeatString === this._prevHeartbeatString) {\n this._heartbeatCounter++;\n } else {\n this._heartbeatCounter = 1;\n }\n\n this._prevHeartbeatString = heartbeatString;\n\n if (this._heartbeatCounter >= 3) {\n if (this._autoFinishAllowed) {\n DEBUG_BUILD && logger.log('[Tracing] Transaction finished because of no change for 3 heart beats');\n this.setStatus('deadline_exceeded');\n this._finishReason = IDLE_TRANSACTION_FINISH_REASONS[0];\n this.end();\n }\n } else {\n this._pingHeartbeat();\n }\n }\n\n /**\n * Pings the heartbeat\n */\n private _pingHeartbeat(): void {\n DEBUG_BUILD && logger.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`);\n setTimeout(() => {\n this._beat();\n }, this._heartbeatInterval);\n }\n}\n", "import type { Options, SamplingContext } from '@sentry/types';\nimport { isNaN, logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../debug-build';\nimport { SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE } from '../semanticAttributes';\nimport { hasTracingEnabled } from '../utils/hasTracingEnabled';\nimport { spanToJSON } from '../utils/spanUtils';\nimport type { Transaction } from './transaction';\n\n/**\n * Makes a sampling decision for the given transaction and stores it on the transaction.\n *\n * Called every time a transaction is created. Only transactions which emerge with a `sampled` value of `true` will be\n * sent to Sentry.\n *\n * This method muttes the given `transaction` and will set the `sampled` value on it.\n * It returns the same transaction, for convenience.\n */\nexport function sampleTransaction(\n transaction: T,\n options: Pick,\n samplingContext: SamplingContext,\n): T {\n // nothing to do if tracing is not enabled\n if (!hasTracingEnabled(options)) {\n // eslint-disable-next-line deprecation/deprecation\n transaction.sampled = false;\n return transaction;\n }\n\n // if the user has forced a sampling decision by passing a `sampled` value in their transaction context, go with that\n // eslint-disable-next-line deprecation/deprecation\n if (transaction.sampled !== undefined) {\n // eslint-disable-next-line deprecation/deprecation\n transaction.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, Number(transaction.sampled));\n return transaction;\n }\n\n // we would have bailed already if neither `tracesSampler` nor `tracesSampleRate` nor `enableTracing` were defined, so one of these should\n // work; prefer the hook if so\n let sampleRate;\n if (typeof options.tracesSampler === 'function') {\n sampleRate = options.tracesSampler(samplingContext);\n transaction.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, Number(sampleRate));\n } else if (samplingContext.parentSampled !== undefined) {\n sampleRate = samplingContext.parentSampled;\n } else if (typeof options.tracesSampleRate !== 'undefined') {\n sampleRate = options.tracesSampleRate;\n transaction.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, Number(sampleRate));\n } else {\n // When `enableTracing === true`, we use a sample rate of 100%\n sampleRate = 1;\n transaction.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, sampleRate);\n }\n\n // Since this is coming from the user (or from a function provided by the user), who knows what we might get. (The\n // only valid values are booleans or numbers between 0 and 1.)\n if (!isValidSampleRate(sampleRate)) {\n DEBUG_BUILD && logger.warn('[Tracing] Discarding transaction because of invalid sample rate.');\n // eslint-disable-next-line deprecation/deprecation\n transaction.sampled = false;\n return transaction;\n }\n\n // if the function returned 0 (or false), or if `tracesSampleRate` is 0, it's a sign the transaction should be dropped\n if (!sampleRate) {\n DEBUG_BUILD &&\n logger.log(\n `[Tracing] Discarding transaction because ${\n typeof options.tracesSampler === 'function'\n ? 'tracesSampler returned 0 or false'\n : 'a negative sampling decision was inherited or tracesSampleRate is set to 0'\n }`,\n );\n // eslint-disable-next-line deprecation/deprecation\n transaction.sampled = false;\n return transaction;\n }\n\n // Now we roll the dice. Math.random is inclusive of 0, but not of 1, so strict < is safe here. In case sampleRate is\n // a boolean, the < comparison will cause it to be automatically cast to 1 if it's true and 0 if it's false.\n // eslint-disable-next-line deprecation/deprecation\n transaction.sampled = Math.random() < (sampleRate as number | boolean);\n\n // if we're not going to keep it, we're done\n // eslint-disable-next-line deprecation/deprecation\n if (!transaction.sampled) {\n DEBUG_BUILD &&\n logger.log(\n `[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(\n sampleRate,\n )})`,\n );\n return transaction;\n }\n\n DEBUG_BUILD &&\n // eslint-disable-next-line deprecation/deprecation\n logger.log(`[Tracing] starting ${transaction.op} transaction - ${spanToJSON(transaction).description}`);\n return transaction;\n}\n\n/**\n * Checks the given sample rate to make sure it is valid type and value (a boolean, or a number between 0 and 1).\n */\nexport function isValidSampleRate(rate: unknown): boolean {\n // we need to check NaN explicitly because it's of type 'number' and therefore wouldn't get caught by this typecheck\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (isNaN(rate) || !(typeof rate === 'number' || typeof rate === 'boolean')) {\n DEBUG_BUILD &&\n logger.warn(\n `[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(\n rate,\n )} of type ${JSON.stringify(typeof rate)}.`,\n );\n return false;\n }\n\n // in case sampleRate is a boolean, it will get automatically cast to 1 if it's true and 0 if it's false\n if (rate < 0 || rate > 1) {\n DEBUG_BUILD &&\n logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${rate}.`);\n return false;\n }\n return true;\n}\n", "import type { ClientOptions, CustomSamplingContext, TransactionContext } from '@sentry/types';\nimport { logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { Hub } from '../hub';\nimport { getMainCarrier } from '../hub';\nimport { spanToTraceHeader } from '../utils/spanUtils';\nimport { registerErrorInstrumentation } from './errors';\nimport { IdleTransaction } from './idletransaction';\nimport { sampleTransaction } from './sampling';\nimport { Transaction } from './transaction';\n\n/** Returns all trace headers that are currently on the top scope. */\n// eslint-disable-next-line deprecation/deprecation\nfunction traceHeaders(this: Hub): { [key: string]: string } {\n // eslint-disable-next-line deprecation/deprecation\n const scope = this.getScope();\n // eslint-disable-next-line deprecation/deprecation\n const span = scope.getSpan();\n\n return span\n ? {\n 'sentry-trace': spanToTraceHeader(span),\n }\n : {};\n}\n\n/**\n * Creates a new transaction and adds a sampling decision if it doesn't yet have one.\n *\n * The Hub.startTransaction method delegates to this method to do its work, passing the Hub instance in as `this`, as if\n * it had been called on the hub directly. Exists as a separate function so that it can be injected into the class as an\n * \"extension method.\"\n *\n * @param this: The Hub starting the transaction\n * @param transactionContext: Data used to configure the transaction\n * @param CustomSamplingContext: Optional data to be provided to the `tracesSampler` function (if any)\n *\n * @returns The new transaction\n *\n * @see {@link Hub.startTransaction}\n */\nfunction _startTransaction(\n // eslint-disable-next-line deprecation/deprecation\n this: Hub,\n transactionContext: TransactionContext,\n customSamplingContext?: CustomSamplingContext,\n): Transaction {\n // eslint-disable-next-line deprecation/deprecation\n const client = this.getClient();\n const options: Partial = (client && client.getOptions()) || {};\n\n const configInstrumenter = options.instrumenter || 'sentry';\n const transactionInstrumenter = transactionContext.instrumenter || 'sentry';\n\n if (configInstrumenter !== transactionInstrumenter) {\n DEBUG_BUILD &&\n logger.error(\n `A transaction was started with instrumenter=\\`${transactionInstrumenter}\\`, but the SDK is configured with the \\`${configInstrumenter}\\` instrumenter.\nThe transaction will not be sampled. Please use the ${configInstrumenter} instrumentation to start transactions.`,\n );\n\n // eslint-disable-next-line deprecation/deprecation\n transactionContext.sampled = false;\n }\n\n // eslint-disable-next-line deprecation/deprecation\n let transaction = new Transaction(transactionContext, this);\n transaction = sampleTransaction(transaction, options, {\n name: transactionContext.name,\n parentSampled: transactionContext.parentSampled,\n transactionContext,\n attributes: {\n // eslint-disable-next-line deprecation/deprecation\n ...transactionContext.data,\n ...transactionContext.attributes,\n },\n ...customSamplingContext,\n });\n if (transaction.isRecording()) {\n transaction.initSpanRecorder(options._experiments && (options._experiments.maxSpans as number));\n }\n if (client && client.emit) {\n client.emit('startTransaction', transaction);\n }\n return transaction;\n}\n\n/**\n * Create new idle transaction.\n */\nexport function startIdleTransaction(\n // eslint-disable-next-line deprecation/deprecation\n hub: Hub,\n transactionContext: TransactionContext,\n idleTimeout: number,\n finalTimeout: number,\n onScope?: boolean,\n customSamplingContext?: CustomSamplingContext,\n heartbeatInterval?: number,\n delayAutoFinishUntilSignal: boolean = false,\n): IdleTransaction {\n // eslint-disable-next-line deprecation/deprecation\n const client = hub.getClient();\n const options: Partial = (client && client.getOptions()) || {};\n\n // eslint-disable-next-line deprecation/deprecation\n let transaction = new IdleTransaction(\n transactionContext,\n hub,\n idleTimeout,\n finalTimeout,\n heartbeatInterval,\n onScope,\n delayAutoFinishUntilSignal,\n );\n transaction = sampleTransaction(transaction, options, {\n name: transactionContext.name,\n parentSampled: transactionContext.parentSampled,\n transactionContext,\n attributes: {\n // eslint-disable-next-line deprecation/deprecation\n ...transactionContext.data,\n ...transactionContext.attributes,\n },\n ...customSamplingContext,\n });\n if (transaction.isRecording()) {\n transaction.initSpanRecorder(options._experiments && (options._experiments.maxSpans as number));\n }\n if (client && client.emit) {\n client.emit('startTransaction', transaction);\n }\n return transaction;\n}\n\n/**\n * Adds tracing extensions to the global hub.\n */\nexport function addTracingExtensions(): void {\n const carrier = getMainCarrier();\n if (!carrier.__SENTRY__) {\n return;\n }\n carrier.__SENTRY__.extensions = carrier.__SENTRY__.extensions || {};\n if (!carrier.__SENTRY__.extensions.startTransaction) {\n carrier.__SENTRY__.extensions.startTransaction = _startTransaction;\n }\n if (!carrier.__SENTRY__.extensions.traceHeaders) {\n carrier.__SENTRY__.extensions.traceHeaders = traceHeaders;\n }\n\n registerErrorInstrumentation();\n}\n", "import type { MeasurementUnit } from '@sentry/types';\n\nimport { getActiveTransaction } from './utils';\n\n/**\n * Adds a measurement to the current active transaction.\n */\nexport function setMeasurement(name: string, value: number, unit: MeasurementUnit): void {\n // eslint-disable-next-line deprecation/deprecation\n const transaction = getActiveTransaction();\n if (transaction) {\n // eslint-disable-next-line deprecation/deprecation\n transaction.setMeasurement(name, value, unit);\n }\n}\n", "import type {\n DsnComponents,\n Event,\n EventEnvelope,\n EventItem,\n SdkInfo,\n SdkMetadata,\n Session,\n SessionAggregates,\n SessionEnvelope,\n SessionItem,\n} from '@sentry/types';\nimport {\n createEnvelope,\n createEventEnvelopeHeaders,\n dsnToString,\n getSdkMetadataForEnvelopeHeader,\n} from '@sentry/utils';\n\n/**\n * Apply SdkInfo (name, version, packages, integrations) to the corresponding event key.\n * Merge with existing data if any.\n **/\nfunction enhanceEventWithSdkInfo(event: Event, sdkInfo?: SdkInfo): Event {\n if (!sdkInfo) {\n return event;\n }\n event.sdk = event.sdk || {};\n event.sdk.name = event.sdk.name || sdkInfo.name;\n event.sdk.version = event.sdk.version || sdkInfo.version;\n event.sdk.integrations = [...(event.sdk.integrations || []), ...(sdkInfo.integrations || [])];\n event.sdk.packages = [...(event.sdk.packages || []), ...(sdkInfo.packages || [])];\n return event;\n}\n\n/** Creates an envelope from a Session */\nexport function createSessionEnvelope(\n session: Session | SessionAggregates,\n dsn?: DsnComponents,\n metadata?: SdkMetadata,\n tunnel?: string,\n): SessionEnvelope {\n const sdkInfo = getSdkMetadataForEnvelopeHeader(metadata);\n const envelopeHeaders = {\n sent_at: new Date().toISOString(),\n ...(sdkInfo && { sdk: sdkInfo }),\n ...(!!tunnel && dsn && { dsn: dsnToString(dsn) }),\n };\n\n const envelopeItem: SessionItem =\n 'aggregates' in session ? [{ type: 'sessions' }, session] : [{ type: 'session' }, session.toJSON()];\n\n return createEnvelope(envelopeHeaders, [envelopeItem]);\n}\n\n/**\n * Create an Envelope from an event.\n */\nexport function createEventEnvelope(\n event: Event,\n dsn?: DsnComponents,\n metadata?: SdkMetadata,\n tunnel?: string,\n): EventEnvelope {\n const sdkInfo = getSdkMetadataForEnvelopeHeader(metadata);\n\n /*\n Note: Due to TS, event.type may be `replay_event`, theoretically.\n In practice, we never call `createEventEnvelope` with `replay_event` type,\n and we'd have to adjut a looot of types to make this work properly.\n We want to avoid casting this around, as that could lead to bugs (e.g. when we add another type)\n So the safe choice is to really guard against the replay_event type here.\n */\n const eventType = event.type && event.type !== 'replay_event' ? event.type : 'event';\n\n enhanceEventWithSdkInfo(event, metadata && metadata.sdk);\n\n const envelopeHeaders = createEventEnvelopeHeaders(event, sdkInfo, tunnel, dsn);\n\n // Prevent this data (which, if it exists, was used in earlier steps in the processing pipeline) from being sent to\n // sentry. (Note: Our use of this property comes and goes with whatever we might be debugging, whatever hacks we may\n // have temporarily added, etc. Even if we don't happen to be using it at some point in the future, let's not get rid\n // of this `delete`, lest we miss putting it back in the next time the property is in use.)\n delete event.sdkProcessingMetadata;\n\n const eventItem: EventItem = [{ type: eventType }, event];\n return createEnvelope(envelopeHeaders, [eventItem]);\n}\n", "import type {\n AggregationCounts,\n Client,\n RequestSessionStatus,\n SessionAggregates,\n SessionFlusherLike,\n} from '@sentry/types';\nimport { dropUndefinedKeys } from '@sentry/utils';\nimport { getCurrentScope } from './exports';\n\ntype ReleaseHealthAttributes = {\n environment?: string;\n release: string;\n};\n\n/**\n * @inheritdoc\n */\nexport class SessionFlusher implements SessionFlusherLike {\n public readonly flushTimeout: number;\n private _pendingAggregates: Record;\n private _sessionAttrs: ReleaseHealthAttributes;\n // Cast to any so that it can use Node.js timeout\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private _intervalId: any;\n private _isEnabled: boolean;\n private _client: Client;\n\n public constructor(client: Client, attrs: ReleaseHealthAttributes) {\n this._client = client;\n this.flushTimeout = 60;\n this._pendingAggregates = {};\n this._isEnabled = true;\n\n // Call to setInterval, so that flush is called every 60 seconds.\n this._intervalId = setInterval(() => this.flush(), this.flushTimeout * 1000);\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (this._intervalId.unref) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n this._intervalId.unref();\n }\n this._sessionAttrs = attrs;\n }\n\n /** Checks if `pendingAggregates` has entries, and if it does flushes them by calling `sendSession` */\n public flush(): void {\n const sessionAggregates = this.getSessionAggregates();\n if (sessionAggregates.aggregates.length === 0) {\n return;\n }\n this._pendingAggregates = {};\n this._client.sendSession(sessionAggregates);\n }\n\n /** Massages the entries in `pendingAggregates` and returns aggregated sessions */\n public getSessionAggregates(): SessionAggregates {\n const aggregates: AggregationCounts[] = Object.keys(this._pendingAggregates).map((key: string) => {\n return this._pendingAggregates[parseInt(key)];\n });\n\n const sessionAggregates: SessionAggregates = {\n attrs: this._sessionAttrs,\n aggregates,\n };\n return dropUndefinedKeys(sessionAggregates);\n }\n\n /** JSDoc */\n public close(): void {\n clearInterval(this._intervalId);\n this._isEnabled = false;\n this.flush();\n }\n\n /**\n * Wrapper function for _incrementSessionStatusCount that checks if the instance of SessionFlusher is enabled then\n * fetches the session status of the request from `Scope.getRequestSession().status` on the scope and passes them to\n * `_incrementSessionStatusCount` along with the start date\n */\n public incrementSessionStatusCount(): void {\n if (!this._isEnabled) {\n return;\n }\n const scope = getCurrentScope();\n const requestSession = scope.getRequestSession();\n\n if (requestSession && requestSession.status) {\n this._incrementSessionStatusCount(requestSession.status, new Date());\n // This is not entirely necessarily but is added as a safe guard to indicate the bounds of a request and so in\n // case captureRequestSession is called more than once to prevent double count\n scope.setRequestSession(undefined);\n /* eslint-enable @typescript-eslint/no-unsafe-member-access */\n }\n }\n\n /**\n * Increments status bucket in pendingAggregates buffer (internal state) corresponding to status of\n * the session received\n */\n private _incrementSessionStatusCount(status: RequestSessionStatus, date: Date): number {\n // Truncate minutes and seconds on Session Started attribute to have one minute bucket keys\n const sessionStartedTrunc = new Date(date).setSeconds(0, 0);\n this._pendingAggregates[sessionStartedTrunc] = this._pendingAggregates[sessionStartedTrunc] || {};\n\n // corresponds to aggregated sessions in one specific minute bucket\n // for example, {\"started\":\"2021-03-16T08:00:00.000Z\",\"exited\":4, \"errored\": 1}\n const aggregationCounts: AggregationCounts = this._pendingAggregates[sessionStartedTrunc];\n if (!aggregationCounts.started) {\n aggregationCounts.started = new Date(sessionStartedTrunc).toISOString();\n }\n\n switch (status) {\n case 'errored':\n aggregationCounts.errored = (aggregationCounts.errored || 0) + 1;\n return aggregationCounts.errored;\n case 'ok':\n aggregationCounts.exited = (aggregationCounts.exited || 0) + 1;\n return aggregationCounts.exited;\n default:\n aggregationCounts.crashed = (aggregationCounts.crashed || 0) + 1;\n return aggregationCounts.crashed;\n }\n }\n}\n", "import type { ClientOptions, DsnComponents, DsnLike, SdkInfo } from '@sentry/types';\nimport { dsnToString, makeDsn, urlEncode } from '@sentry/utils';\n\nconst SENTRY_API_VERSION = '7';\n\n/** Returns the prefix to construct Sentry ingestion API endpoints. */\nfunction getBaseApiEndpoint(dsn: DsnComponents): string {\n const protocol = dsn.protocol ? `${dsn.protocol}:` : '';\n const port = dsn.port ? `:${dsn.port}` : '';\n return `${protocol}//${dsn.host}${port}${dsn.path ? `/${dsn.path}` : ''}/api/`;\n}\n\n/** Returns the ingest API endpoint for target. */\nfunction _getIngestEndpoint(dsn: DsnComponents): string {\n return `${getBaseApiEndpoint(dsn)}${dsn.projectId}/envelope/`;\n}\n\n/** Returns a URL-encoded string with auth config suitable for a query string. */\nfunction _encodedAuth(dsn: DsnComponents, sdkInfo: SdkInfo | undefined): string {\n return urlEncode({\n // We send only the minimum set of required information. See\n // https://github.com/getsentry/sentry-javascript/issues/2572.\n sentry_key: dsn.publicKey,\n sentry_version: SENTRY_API_VERSION,\n ...(sdkInfo && { sentry_client: `${sdkInfo.name}/${sdkInfo.version}` }),\n });\n}\n\n/**\n * Returns the envelope endpoint URL with auth in the query string.\n *\n * Sending auth as part of the query string and not as custom HTTP headers avoids CORS preflight requests.\n */\nexport function getEnvelopeEndpointWithUrlEncodedAuth(\n dsn: DsnComponents,\n // TODO (v8): Remove `tunnelOrOptions` in favor of `options`, and use the substitute code below\n // options: ClientOptions = {} as ClientOptions,\n tunnelOrOptions: string | ClientOptions = {} as ClientOptions,\n): string {\n // TODO (v8): Use this code instead\n // const { tunnel, _metadata = {} } = options;\n // return tunnel ? tunnel : `${_getIngestEndpoint(dsn)}?${_encodedAuth(dsn, _metadata.sdk)}`;\n\n const tunnel = typeof tunnelOrOptions === 'string' ? tunnelOrOptions : tunnelOrOptions.tunnel;\n const sdkInfo =\n typeof tunnelOrOptions === 'string' || !tunnelOrOptions._metadata ? undefined : tunnelOrOptions._metadata.sdk;\n\n return tunnel ? tunnel : `${_getIngestEndpoint(dsn)}?${_encodedAuth(dsn, sdkInfo)}`;\n}\n\n/** Returns the url to the report dialog endpoint. */\nexport function getReportDialogEndpoint(\n dsnLike: DsnLike,\n dialogOptions: {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [key: string]: any;\n user?: { name?: string; email?: string };\n },\n): string {\n const dsn = makeDsn(dsnLike);\n if (!dsn) {\n return '';\n }\n\n const endpoint = `${getBaseApiEndpoint(dsn)}embed/error-page/`;\n\n let encodedOptions = `dsn=${dsnToString(dsn)}`;\n for (const key in dialogOptions) {\n if (key === 'dsn') {\n continue;\n }\n\n if (key === 'onClose') {\n continue;\n }\n\n if (key === 'user') {\n const user = dialogOptions.user;\n if (!user) {\n continue;\n }\n if (user.name) {\n encodedOptions += `&name=${encodeURIComponent(user.name)}`;\n }\n if (user.email) {\n encodedOptions += `&email=${encodeURIComponent(user.email)}`;\n }\n } else {\n encodedOptions += `&${encodeURIComponent(key)}=${encodeURIComponent(dialogOptions[key] as string)}`;\n }\n }\n\n return `${endpoint}?${encodedOptions}`;\n}\n", "import type {\n Client,\n Event,\n EventHint,\n Integration,\n IntegrationClass,\n IntegrationFn,\n IntegrationFnResult,\n Options,\n} from '@sentry/types';\nimport { arrayify, logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from './debug-build';\nimport { addGlobalEventProcessor } from './eventProcessors';\nimport { getClient } from './exports';\nimport { getCurrentHub } from './hub';\n\ndeclare module '@sentry/types' {\n interface Integration {\n isDefaultInstance?: boolean;\n }\n}\n\nexport const installedIntegrations: string[] = [];\n\n/** Map of integrations assigned to a client */\nexport type IntegrationIndex = {\n [key: string]: Integration;\n};\n\n/**\n * Remove duplicates from the given array, preferring the last instance of any duplicate. Not guaranteed to\n * preseve the order of integrations in the array.\n *\n * @private\n */\nfunction filterDuplicates(integrations: Integration[]): Integration[] {\n const integrationsByName: { [key: string]: Integration } = {};\n\n integrations.forEach(currentInstance => {\n const { name } = currentInstance;\n\n const existingInstance = integrationsByName[name];\n\n // We want integrations later in the array to overwrite earlier ones of the same type, except that we never want a\n // default instance to overwrite an existing user instance\n if (existingInstance && !existingInstance.isDefaultInstance && currentInstance.isDefaultInstance) {\n return;\n }\n\n integrationsByName[name] = currentInstance;\n });\n\n return Object.keys(integrationsByName).map(k => integrationsByName[k]);\n}\n\n/** Gets integrations to install */\nexport function getIntegrationsToSetup(options: Pick): Integration[] {\n const defaultIntegrations = options.defaultIntegrations || [];\n const userIntegrations = options.integrations;\n\n // We flag default instances, so that later we can tell them apart from any user-created instances of the same class\n defaultIntegrations.forEach(integration => {\n integration.isDefaultInstance = true;\n });\n\n let integrations: Integration[];\n\n if (Array.isArray(userIntegrations)) {\n integrations = [...defaultIntegrations, ...userIntegrations];\n } else if (typeof userIntegrations === 'function') {\n integrations = arrayify(userIntegrations(defaultIntegrations));\n } else {\n integrations = defaultIntegrations;\n }\n\n const finalIntegrations = filterDuplicates(integrations);\n\n // The `Debug` integration prints copies of the `event` and `hint` which will be passed to `beforeSend` or\n // `beforeSendTransaction`. It therefore has to run after all other integrations, so that the changes of all event\n // processors will be reflected in the printed values. For lack of a more elegant way to guarantee that, we therefore\n // locate it and, assuming it exists, pop it out of its current spot and shove it onto the end of the array.\n const debugIndex = findIndex(finalIntegrations, integration => integration.name === 'Debug');\n if (debugIndex !== -1) {\n const [debugInstance] = finalIntegrations.splice(debugIndex, 1);\n finalIntegrations.push(debugInstance);\n }\n\n return finalIntegrations;\n}\n\n/**\n * Given a list of integration instances this installs them all. When `withDefaults` is set to `true` then all default\n * integrations are added unless they were already provided before.\n * @param integrations array of integration instances\n * @param withDefault should enable default integrations\n */\nexport function setupIntegrations(client: Client, integrations: Integration[]): IntegrationIndex {\n const integrationIndex: IntegrationIndex = {};\n\n integrations.forEach(integration => {\n // guard against empty provided integrations\n if (integration) {\n setupIntegration(client, integration, integrationIndex);\n }\n });\n\n return integrationIndex;\n}\n\n/**\n * Execute the `afterAllSetup` hooks of the given integrations.\n */\nexport function afterSetupIntegrations(client: Client, integrations: Integration[]): void {\n for (const integration of integrations) {\n // guard against empty provided integrations\n if (integration && integration.afterAllSetup) {\n integration.afterAllSetup(client);\n }\n }\n}\n\n/** Setup a single integration. */\nexport function setupIntegration(client: Client, integration: Integration, integrationIndex: IntegrationIndex): void {\n if (integrationIndex[integration.name]) {\n DEBUG_BUILD && logger.log(`Integration skipped because it was already installed: ${integration.name}`);\n return;\n }\n integrationIndex[integration.name] = integration;\n\n // `setupOnce` is only called the first time\n if (installedIntegrations.indexOf(integration.name) === -1) {\n // eslint-disable-next-line deprecation/deprecation\n integration.setupOnce(addGlobalEventProcessor, getCurrentHub);\n installedIntegrations.push(integration.name);\n }\n\n // `setup` is run for each client\n if (integration.setup && typeof integration.setup === 'function') {\n integration.setup(client);\n }\n\n if (client.on && typeof integration.preprocessEvent === 'function') {\n const callback = integration.preprocessEvent.bind(integration) as typeof integration.preprocessEvent;\n client.on('preprocessEvent', (event, hint) => callback(event, hint, client));\n }\n\n if (client.addEventProcessor && typeof integration.processEvent === 'function') {\n const callback = integration.processEvent.bind(integration) as typeof integration.processEvent;\n\n const processor = Object.assign((event: Event, hint: EventHint) => callback(event, hint, client), {\n id: integration.name,\n });\n\n client.addEventProcessor(processor);\n }\n\n DEBUG_BUILD && logger.log(`Integration installed: ${integration.name}`);\n}\n\n/** Add an integration to the current hub's client. */\nexport function addIntegration(integration: Integration): void {\n const client = getClient();\n\n if (!client || !client.addIntegration) {\n DEBUG_BUILD && logger.warn(`Cannot add integration \"${integration.name}\" because no SDK Client is available.`);\n return;\n }\n\n client.addIntegration(integration);\n}\n\n// Polyfill for Array.findIndex(), which is not supported in ES5\nfunction findIndex(arr: T[], callback: (item: T) => boolean): number {\n for (let i = 0; i < arr.length; i++) {\n if (callback(arr[i]) === true) {\n return i;\n }\n }\n\n return -1;\n}\n\n/**\n * Convert a new integration function to the legacy class syntax.\n * In v8, we can remove this and instead export the integration functions directly.\n *\n * @deprecated This will be removed in v8!\n */\nexport function convertIntegrationFnToClass(\n name: string,\n fn: Fn,\n): IntegrationClass {\n return Object.assign(\n function ConvertedIntegration(...args: Parameters): Integration {\n return fn(...args);\n },\n { id: name },\n ) as unknown as IntegrationClass;\n}\n\n/**\n * Define an integration function that can be used to create an integration instance.\n * Note that this by design hides the implementation details of the integration, as they are considered internal.\n */\nexport function defineIntegration(fn: Fn): (...args: Parameters) => IntegrationFnResult {\n return fn;\n}\n", "import type { MeasurementUnit, MetricBucketItem, Primitive } from '@sentry/types';\nimport { dropUndefinedKeys } from '@sentry/utils';\nimport type { MetricType } from './types';\n\n/**\n * Generate bucket key from metric properties.\n */\nexport function getBucketKey(\n metricType: MetricType,\n name: string,\n unit: MeasurementUnit,\n tags: Record,\n): string {\n const stringifiedTags = Object.entries(dropUndefinedKeys(tags)).sort((a, b) => a[0].localeCompare(b[0]));\n return `${metricType}${name}${unit}${stringifiedTags}`;\n}\n\n/* eslint-disable no-bitwise */\n/**\n * Simple hash function for strings.\n */\nexport function simpleHash(s: string): number {\n let rv = 0;\n for (let i = 0; i < s.length; i++) {\n const c = s.charCodeAt(i);\n rv = (rv << 5) - rv + c;\n rv &= rv;\n }\n return rv >>> 0;\n}\n/* eslint-enable no-bitwise */\n\n/**\n * Serialize metrics buckets into a string based on statsd format.\n *\n * Example of format:\n * metric.name@second:1:1.2|d|#a:value,b:anothervalue|T12345677\n * Segments:\n * name: metric.name\n * unit: second\n * value: [1, 1.2]\n * type of metric: d (distribution)\n * tags: { a: value, b: anothervalue }\n * timestamp: 12345677\n */\nexport function serializeMetricBuckets(metricBucketItems: MetricBucketItem[]): string {\n let out = '';\n for (const item of metricBucketItems) {\n const tagEntries = Object.entries(item.tags);\n const maybeTags = tagEntries.length > 0 ? `|#${tagEntries.map(([key, value]) => `${key}:${value}`).join(',')}` : '';\n out += `${item.name}@${item.unit}:${item.metric}|${item.metricType}${maybeTags}|T${item.timestamp}\\n`;\n }\n return out;\n}\n\n/** Sanitizes units */\nexport function sanitizeUnit(unit: string): string {\n return unit.replace(/[^\\w]+/gi, '_');\n}\n\n/** Sanitizes metric keys */\nexport function sanitizeMetricKey(key: string): string {\n return key.replace(/[^\\w\\-.]+/gi, '_');\n}\n\nfunction sanitizeTagKey(key: string): string {\n return key.replace(/[^\\w\\-./]+/gi, '');\n}\n\nconst tagValueReplacements: [string, string][] = [\n ['\\n', '\\\\n'],\n ['\\r', '\\\\r'],\n ['\\t', '\\\\t'],\n ['\\\\', '\\\\\\\\'],\n ['|', '\\\\u{7c}'],\n [',', '\\\\u{2c}'],\n];\n\nfunction getCharOrReplacement(input: string): string {\n for (const [search, replacement] of tagValueReplacements) {\n if (input === search) {\n return replacement;\n }\n }\n\n return input;\n}\n\nfunction sanitizeTagValue(value: string): string {\n return [...value].reduce((acc, char) => acc + getCharOrReplacement(char), '');\n}\n\n/**\n * Sanitizes tags.\n */\nexport function sanitizeTags(unsanitizedTags: Record): Record {\n const tags: Record = {};\n for (const key in unsanitizedTags) {\n if (Object.prototype.hasOwnProperty.call(unsanitizedTags, key)) {\n const sanitizedKey = sanitizeTagKey(key);\n tags[sanitizedKey] = sanitizeTagValue(String(unsanitizedTags[key]));\n }\n }\n return tags;\n}\n", "import type { DsnComponents, MetricBucketItem, SdkMetadata, StatsdEnvelope, StatsdItem } from '@sentry/types';\nimport { createEnvelope, dsnToString } from '@sentry/utils';\nimport { serializeMetricBuckets } from './utils';\n\n/**\n * Create envelope from a metric aggregate.\n */\nexport function createMetricEnvelope(\n metricBucketItems: Array,\n dsn?: DsnComponents,\n metadata?: SdkMetadata,\n tunnel?: string,\n): StatsdEnvelope {\n const headers: StatsdEnvelope[0] = {\n sent_at: new Date().toISOString(),\n };\n\n if (metadata && metadata.sdk) {\n headers.sdk = {\n name: metadata.sdk.name,\n version: metadata.sdk.version,\n };\n }\n\n if (!!tunnel && dsn) {\n headers.dsn = dsnToString(dsn);\n }\n\n const item = createMetricEnvelopeItem(metricBucketItems);\n return createEnvelope(headers, [item]);\n}\n\nfunction createMetricEnvelopeItem(metricBucketItems: MetricBucketItem[]): StatsdItem {\n const payload = serializeMetricBuckets(metricBucketItems);\n const metricHeaders: StatsdItem[0] = {\n type: 'statsd',\n length: payload.length,\n };\n return [metricHeaders, payload];\n}\n", "/* eslint-disable max-lines */\nimport type {\n Breadcrumb,\n BreadcrumbHint,\n Client,\n ClientOptions,\n DataCategory,\n DsnComponents,\n DynamicSamplingContext,\n Envelope,\n ErrorEvent,\n Event,\n EventDropReason,\n EventHint,\n EventProcessor,\n FeedbackEvent,\n Integration,\n IntegrationClass,\n MetricBucketItem,\n MetricsAggregator,\n Outcome,\n ParameterizedString,\n SdkMetadata,\n Session,\n SessionAggregates,\n Severity,\n SeverityLevel,\n StartSpanOptions,\n Transaction,\n TransactionEvent,\n Transport,\n TransportMakeRequestResponse,\n} from '@sentry/types';\nimport {\n SentryError,\n SyncPromise,\n addItemToEnvelope,\n checkOrSetAlreadyCaught,\n createAttachmentEnvelopeItem,\n isParameterizedString,\n isPlainObject,\n isPrimitive,\n isThenable,\n logger,\n makeDsn,\n rejectedSyncPromise,\n resolvedSyncPromise,\n} from '@sentry/utils';\n\nimport { getEnvelopeEndpointWithUrlEncodedAuth } from './api';\nimport { DEBUG_BUILD } from './debug-build';\nimport { createEventEnvelope, createSessionEnvelope } from './envelope';\nimport { getClient } from './exports';\nimport { getIsolationScope } from './hub';\nimport type { IntegrationIndex } from './integration';\nimport { afterSetupIntegrations } from './integration';\nimport { setupIntegration, setupIntegrations } from './integration';\nimport { createMetricEnvelope } from './metrics/envelope';\nimport type { Scope } from './scope';\nimport { updateSession } from './session';\nimport { getDynamicSamplingContextFromClient } from './tracing/dynamicSamplingContext';\nimport { prepareEvent } from './utils/prepareEvent';\n\nconst ALREADY_SEEN_ERROR = \"Not capturing exception because it's already been captured.\";\n\n/**\n * Base implementation for all JavaScript SDK clients.\n *\n * Call the constructor with the corresponding options\n * specific to the client subclass. To access these options later, use\n * {@link Client.getOptions}.\n *\n * If a Dsn is specified in the options, it will be parsed and stored. Use\n * {@link Client.getDsn} to retrieve the Dsn at any moment. In case the Dsn is\n * invalid, the constructor will throw a {@link SentryException}. Note that\n * without a valid Dsn, the SDK will not send any events to Sentry.\n *\n * Before sending an event, it is passed through\n * {@link BaseClient._prepareEvent} to add SDK information and scope data\n * (breadcrumbs and context). To add more custom information, override this\n * method and extend the resulting prepared event.\n *\n * To issue automatically created events (e.g. via instrumentation), use\n * {@link Client.captureEvent}. It will prepare the event and pass it through\n * the callback lifecycle. To issue auto-breadcrumbs, use\n * {@link Client.addBreadcrumb}.\n *\n * @example\n * class NodeClient extends BaseClient {\n * public constructor(options: NodeOptions) {\n * super(options);\n * }\n *\n * // ...\n * }\n */\nexport abstract class BaseClient implements Client {\n /**\n * A reference to a metrics aggregator\n *\n * @experimental Note this is alpha API. It may experience breaking changes in the future.\n */\n public metricsAggregator?: MetricsAggregator;\n\n /** Options passed to the SDK. */\n protected readonly _options: O;\n\n /** The client Dsn, if specified in options. Without this Dsn, the SDK will be disabled. */\n protected readonly _dsn?: DsnComponents;\n\n protected readonly _transport?: Transport;\n\n /** Array of set up integrations. */\n protected _integrations: IntegrationIndex;\n\n /** Indicates whether this client's integrations have been set up. */\n protected _integrationsInitialized: boolean;\n\n /** Number of calls being processed */\n protected _numProcessing: number;\n\n protected _eventProcessors: EventProcessor[];\n\n /** Holds flushable */\n private _outcomes: { [key: string]: number };\n\n // eslint-disable-next-line @typescript-eslint/ban-types\n private _hooks: Record;\n\n /**\n * Initializes this client instance.\n *\n * @param options Options for the client.\n */\n protected constructor(options: O) {\n this._options = options;\n this._integrations = {};\n this._integrationsInitialized = false;\n this._numProcessing = 0;\n this._outcomes = {};\n this._hooks = {};\n this._eventProcessors = [];\n\n if (options.dsn) {\n this._dsn = makeDsn(options.dsn);\n } else {\n DEBUG_BUILD && logger.warn('No DSN provided, client will not send events.');\n }\n\n if (this._dsn) {\n const url = getEnvelopeEndpointWithUrlEncodedAuth(this._dsn, options);\n this._transport = options.transport({\n tunnel: this._options.tunnel,\n recordDroppedEvent: this.recordDroppedEvent.bind(this),\n ...options.transportOptions,\n url,\n });\n }\n }\n\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\n public captureException(exception: any, hint?: EventHint, scope?: Scope): string | undefined {\n // ensure we haven't captured this very object before\n if (checkOrSetAlreadyCaught(exception)) {\n DEBUG_BUILD && logger.log(ALREADY_SEEN_ERROR);\n return;\n }\n\n let eventId: string | undefined = hint && hint.event_id;\n\n this._process(\n this.eventFromException(exception, hint)\n .then(event => this._captureEvent(event, hint, scope))\n .then(result => {\n eventId = result;\n }),\n );\n\n return eventId;\n }\n\n /**\n * @inheritDoc\n */\n public captureMessage(\n message: ParameterizedString,\n // eslint-disable-next-line deprecation/deprecation\n level?: Severity | SeverityLevel,\n hint?: EventHint,\n scope?: Scope,\n ): string | undefined {\n let eventId: string | undefined = hint && hint.event_id;\n\n const eventMessage = isParameterizedString(message) ? message : String(message);\n\n const promisedEvent = isPrimitive(message)\n ? this.eventFromMessage(eventMessage, level, hint)\n : this.eventFromException(message, hint);\n\n this._process(\n promisedEvent\n .then(event => this._captureEvent(event, hint, scope))\n .then(result => {\n eventId = result;\n }),\n );\n\n return eventId;\n }\n\n /**\n * @inheritDoc\n */\n public captureEvent(event: Event, hint?: EventHint, scope?: Scope): string | undefined {\n // ensure we haven't captured this very object before\n if (hint && hint.originalException && checkOrSetAlreadyCaught(hint.originalException)) {\n DEBUG_BUILD && logger.log(ALREADY_SEEN_ERROR);\n return;\n }\n\n let eventId: string | undefined = hint && hint.event_id;\n\n const sdkProcessingMetadata = event.sdkProcessingMetadata || {};\n const capturedSpanScope: Scope | undefined = sdkProcessingMetadata.capturedSpanScope;\n\n this._process(\n this._captureEvent(event, hint, capturedSpanScope || scope).then(result => {\n eventId = result;\n }),\n );\n\n return eventId;\n }\n\n /**\n * @inheritDoc\n */\n public captureSession(session: Session): void {\n if (!(typeof session.release === 'string')) {\n DEBUG_BUILD && logger.warn('Discarded session because of missing or non-string release');\n } else {\n this.sendSession(session);\n // After sending, we set init false to indicate it's not the first occurrence\n updateSession(session, { init: false });\n }\n }\n\n /**\n * @inheritDoc\n */\n public getDsn(): DsnComponents | undefined {\n return this._dsn;\n }\n\n /**\n * @inheritDoc\n */\n public getOptions(): O {\n return this._options;\n }\n\n /**\n * @see SdkMetadata in @sentry/types\n *\n * @return The metadata of the SDK\n */\n public getSdkMetadata(): SdkMetadata | undefined {\n return this._options._metadata;\n }\n\n /**\n * @inheritDoc\n */\n public getTransport(): Transport | undefined {\n return this._transport;\n }\n\n /**\n * @inheritDoc\n */\n public flush(timeout?: number): PromiseLike {\n const transport = this._transport;\n if (transport) {\n if (this.metricsAggregator) {\n this.metricsAggregator.flush();\n }\n return this._isClientDoneProcessing(timeout).then(clientFinished => {\n return transport.flush(timeout).then(transportFlushed => clientFinished && transportFlushed);\n });\n } else {\n return resolvedSyncPromise(true);\n }\n }\n\n /**\n * @inheritDoc\n */\n public close(timeout?: number): PromiseLike {\n return this.flush(timeout).then(result => {\n this.getOptions().enabled = false;\n if (this.metricsAggregator) {\n this.metricsAggregator.close();\n }\n return result;\n });\n }\n\n /** Get all installed event processors. */\n public getEventProcessors(): EventProcessor[] {\n return this._eventProcessors;\n }\n\n /** @inheritDoc */\n public addEventProcessor(eventProcessor: EventProcessor): void {\n this._eventProcessors.push(eventProcessor);\n }\n\n /**\n * This is an internal function to setup all integrations that should run on the client.\n * @deprecated Use `client.init()` instead.\n */\n public setupIntegrations(forceInitialize?: boolean): void {\n if ((forceInitialize && !this._integrationsInitialized) || (this._isEnabled() && !this._integrationsInitialized)) {\n this._setupIntegrations();\n }\n }\n\n /** @inheritdoc */\n public init(): void {\n if (this._isEnabled()) {\n this._setupIntegrations();\n }\n }\n\n /**\n * Gets an installed integration by its `id`.\n *\n * @returns The installed integration or `undefined` if no integration with that `id` was installed.\n * @deprecated Use `getIntegrationByName()` instead.\n */\n public getIntegrationById(integrationId: string): Integration | undefined {\n return this.getIntegrationByName(integrationId);\n }\n\n /**\n * Gets an installed integration by its name.\n *\n * @returns The installed integration or `undefined` if no integration with that `name` was installed.\n */\n public getIntegrationByName(integrationName: string): T | undefined {\n return this._integrations[integrationName] as T | undefined;\n }\n\n /**\n * Returns the client's instance of the given integration class, it any.\n * @deprecated Use `getIntegrationByName()` instead.\n */\n public getIntegration(integration: IntegrationClass): T | null {\n try {\n return (this._integrations[integration.id] as T) || null;\n } catch (_oO) {\n DEBUG_BUILD && logger.warn(`Cannot retrieve integration ${integration.id} from the current Client`);\n return null;\n }\n }\n\n /**\n * @inheritDoc\n */\n public addIntegration(integration: Integration): void {\n const isAlreadyInstalled = this._integrations[integration.name];\n\n // This hook takes care of only installing if not already installed\n setupIntegration(this, integration, this._integrations);\n // Here we need to check manually to make sure to not run this multiple times\n if (!isAlreadyInstalled) {\n afterSetupIntegrations(this, [integration]);\n }\n }\n\n /**\n * @inheritDoc\n */\n public sendEvent(event: Event, hint: EventHint = {}): void {\n this.emit('beforeSendEvent', event, hint);\n\n let env = createEventEnvelope(event, this._dsn, this._options._metadata, this._options.tunnel);\n\n for (const attachment of hint.attachments || []) {\n env = addItemToEnvelope(\n env,\n createAttachmentEnvelopeItem(\n attachment,\n this._options.transportOptions && this._options.transportOptions.textEncoder,\n ),\n );\n }\n\n const promise = this._sendEnvelope(env);\n if (promise) {\n promise.then(sendResponse => this.emit('afterSendEvent', event, sendResponse), null);\n }\n }\n\n /**\n * @inheritDoc\n */\n public sendSession(session: Session | SessionAggregates): void {\n const env = createSessionEnvelope(session, this._dsn, this._options._metadata, this._options.tunnel);\n\n // _sendEnvelope should not throw\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this._sendEnvelope(env);\n }\n\n /**\n * @inheritDoc\n */\n public recordDroppedEvent(reason: EventDropReason, category: DataCategory, eventOrCount?: Event | number): void {\n if (this._options.sendClientReports) {\n // TODO v9: We do not need the `event` passed as third argument anymore, and can possibly remove this overload\n // If event is passed as third argument, we assume this is a count of 1\n const count = typeof eventOrCount === 'number' ? eventOrCount : 1;\n\n // We want to track each category (error, transaction, session, replay_event) separately\n // but still keep the distinction between different type of outcomes.\n // We could use nested maps, but it's much easier to read and type this way.\n // A correct type for map-based implementation if we want to go that route\n // would be `Partial>>>`\n // With typescript 4.1 we could even use template literal types\n const key = `${reason}:${category}`;\n DEBUG_BUILD && logger.log(`Recording outcome: \"${key}\"${count > 1 ? ` (${count} times)` : ''}`);\n this._outcomes[key] = (this._outcomes[key] || 0) + count;\n }\n }\n\n /**\n * @inheritDoc\n */\n public captureAggregateMetrics(metricBucketItems: Array): void {\n DEBUG_BUILD && logger.log(`Flushing aggregated metrics, number of metrics: ${metricBucketItems.length}`);\n const metricsEnvelope = createMetricEnvelope(\n metricBucketItems,\n this._dsn,\n this._options._metadata,\n this._options.tunnel,\n );\n\n // _sendEnvelope should not throw\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this._sendEnvelope(metricsEnvelope);\n }\n\n // Keep on() & emit() signatures in sync with types' client.ts interface\n /* eslint-disable @typescript-eslint/unified-signatures */\n\n /** @inheritdoc */\n public on(hook: 'startTransaction', callback: (transaction: Transaction) => void): void;\n\n /** @inheritdoc */\n public on(hook: 'finishTransaction', callback: (transaction: Transaction) => void): void;\n\n /** @inheritdoc */\n public on(hook: 'beforeEnvelope', callback: (envelope: Envelope) => void): void;\n\n /** @inheritdoc */\n public on(hook: 'beforeSendEvent', callback: (event: Event, hint?: EventHint) => void): void;\n\n /** @inheritdoc */\n public on(hook: 'preprocessEvent', callback: (event: Event, hint?: EventHint) => void): void;\n\n /** @inheritdoc */\n public on(\n hook: 'afterSendEvent',\n callback: (event: Event, sendResponse: TransportMakeRequestResponse | void) => void,\n ): void;\n\n /** @inheritdoc */\n public on(hook: 'beforeAddBreadcrumb', callback: (breadcrumb: Breadcrumb, hint?: BreadcrumbHint) => void): void;\n\n /** @inheritdoc */\n public on(hook: 'createDsc', callback: (dsc: DynamicSamplingContext) => void): void;\n\n /** @inheritdoc */\n public on(hook: 'otelSpanEnd', callback: (otelSpan: unknown, mutableOptions: { drop: boolean }) => void): void;\n\n /** @inheritdoc */\n public on(\n hook: 'beforeSendFeedback',\n callback: (feedback: FeedbackEvent, options?: { includeReplay: boolean }) => void,\n ): void;\n\n /** @inheritdoc */\n public on(hook: 'startPageLoadSpan', callback: (options: StartSpanOptions) => void): void;\n\n /** @inheritdoc */\n public on(hook: 'startNavigationSpan', callback: (options: StartSpanOptions) => void): void;\n\n /** @inheritdoc */\n public on(hook: string, callback: unknown): void {\n if (!this._hooks[hook]) {\n this._hooks[hook] = [];\n }\n\n // @ts-expect-error We assue the types are correct\n this._hooks[hook].push(callback);\n }\n\n /** @inheritdoc */\n public emit(hook: 'startTransaction', transaction: Transaction): void;\n\n /** @inheritdoc */\n public emit(hook: 'finishTransaction', transaction: Transaction): void;\n\n /** @inheritdoc */\n public emit(hook: 'beforeEnvelope', envelope: Envelope): void;\n\n /** @inheritdoc */\n public emit(hook: 'beforeSendEvent', event: Event, hint?: EventHint): void;\n\n /** @inheritdoc */\n public emit(hook: 'preprocessEvent', event: Event, hint?: EventHint): void;\n\n /** @inheritdoc */\n public emit(hook: 'afterSendEvent', event: Event, sendResponse: TransportMakeRequestResponse | void): void;\n\n /** @inheritdoc */\n public emit(hook: 'beforeAddBreadcrumb', breadcrumb: Breadcrumb, hint?: BreadcrumbHint): void;\n\n /** @inheritdoc */\n public emit(hook: 'createDsc', dsc: DynamicSamplingContext): void;\n\n /** @inheritdoc */\n public emit(hook: 'otelSpanEnd', otelSpan: unknown, mutableOptions: { drop: boolean }): void;\n\n /** @inheritdoc */\n public emit(hook: 'beforeSendFeedback', feedback: FeedbackEvent, options?: { includeReplay: boolean }): void;\n\n /** @inheritdoc */\n public emit(hook: 'startPageLoadSpan', options: StartSpanOptions): void;\n\n /** @inheritdoc */\n public emit(hook: 'startNavigationSpan', options: StartSpanOptions): void;\n\n /** @inheritdoc */\n public emit(hook: string, ...rest: unknown[]): void {\n if (this._hooks[hook]) {\n this._hooks[hook].forEach(callback => callback(...rest));\n }\n }\n\n /* eslint-enable @typescript-eslint/unified-signatures */\n\n /** Setup integrations for this client. */\n protected _setupIntegrations(): void {\n const { integrations } = this._options;\n this._integrations = setupIntegrations(this, integrations);\n afterSetupIntegrations(this, integrations);\n\n // TODO v8: We don't need this flag anymore\n this._integrationsInitialized = true;\n }\n\n /** Updates existing session based on the provided event */\n protected _updateSessionFromEvent(session: Session, event: Event): void {\n let crashed = false;\n let errored = false;\n const exceptions = event.exception && event.exception.values;\n\n if (exceptions) {\n errored = true;\n\n for (const ex of exceptions) {\n const mechanism = ex.mechanism;\n if (mechanism && mechanism.handled === false) {\n crashed = true;\n break;\n }\n }\n }\n\n // A session is updated and that session update is sent in only one of the two following scenarios:\n // 1. Session with non terminal status and 0 errors + an error occurred -> Will set error count to 1 and send update\n // 2. Session with non terminal status and 1 error + a crash occurred -> Will set status crashed and send update\n const sessionNonTerminal = session.status === 'ok';\n const shouldUpdateAndSend = (sessionNonTerminal && session.errors === 0) || (sessionNonTerminal && crashed);\n\n if (shouldUpdateAndSend) {\n updateSession(session, {\n ...(crashed && { status: 'crashed' }),\n errors: session.errors || Number(errored || crashed),\n });\n this.captureSession(session);\n }\n }\n\n /**\n * Determine if the client is finished processing. Returns a promise because it will wait `timeout` ms before saying\n * \"no\" (resolving to `false`) in order to give the client a chance to potentially finish first.\n *\n * @param timeout The time, in ms, after which to resolve to `false` if the client is still busy. Passing `0` (or not\n * passing anything) will make the promise wait as long as it takes for processing to finish before resolving to\n * `true`.\n * @returns A promise which will resolve to `true` if processing is already done or finishes before the timeout, and\n * `false` otherwise\n */\n protected _isClientDoneProcessing(timeout?: number): PromiseLike {\n return new SyncPromise(resolve => {\n let ticked: number = 0;\n const tick: number = 1;\n\n const interval = setInterval(() => {\n if (this._numProcessing == 0) {\n clearInterval(interval);\n resolve(true);\n } else {\n ticked += tick;\n if (timeout && ticked >= timeout) {\n clearInterval(interval);\n resolve(false);\n }\n }\n }, tick);\n });\n }\n\n /** Determines whether this SDK is enabled and a transport is present. */\n protected _isEnabled(): boolean {\n return this.getOptions().enabled !== false && this._transport !== undefined;\n }\n\n /**\n * Adds common information to events.\n *\n * The information includes release and environment from `options`,\n * breadcrumbs and context (extra, tags and user) from the scope.\n *\n * Information that is already present in the event is never overwritten. For\n * nested objects, such as the context, keys are merged.\n *\n * @param event The original event.\n * @param hint May contain additional information about the original exception.\n * @param scope A scope containing event metadata.\n * @returns A new event with more information.\n */\n protected _prepareEvent(\n event: Event,\n hint: EventHint,\n scope?: Scope,\n isolationScope = getIsolationScope(),\n ): PromiseLike {\n const options = this.getOptions();\n const integrations = Object.keys(this._integrations);\n if (!hint.integrations && integrations.length > 0) {\n hint.integrations = integrations;\n }\n\n this.emit('preprocessEvent', event, hint);\n\n return prepareEvent(options, event, hint, scope, this, isolationScope).then(evt => {\n if (evt === null) {\n return evt;\n }\n\n const propagationContext = {\n ...isolationScope.getPropagationContext(),\n ...(scope ? scope.getPropagationContext() : undefined),\n };\n\n const trace = evt.contexts && evt.contexts.trace;\n if (!trace && propagationContext) {\n const { traceId: trace_id, spanId, parentSpanId, dsc } = propagationContext;\n evt.contexts = {\n trace: {\n trace_id,\n span_id: spanId,\n parent_span_id: parentSpanId,\n },\n ...evt.contexts,\n };\n\n const dynamicSamplingContext = dsc ? dsc : getDynamicSamplingContextFromClient(trace_id, this, scope);\n\n evt.sdkProcessingMetadata = {\n dynamicSamplingContext,\n ...evt.sdkProcessingMetadata,\n };\n }\n return evt;\n });\n }\n\n /**\n * Processes the event and logs an error in case of rejection\n * @param event\n * @param hint\n * @param scope\n */\n protected _captureEvent(event: Event, hint: EventHint = {}, scope?: Scope): PromiseLike {\n return this._processEvent(event, hint, scope).then(\n finalEvent => {\n return finalEvent.event_id;\n },\n reason => {\n if (DEBUG_BUILD) {\n // If something's gone wrong, log the error as a warning. If it's just us having used a `SentryError` for\n // control flow, log just the message (no stack) as a log-level log.\n const sentryError = reason as SentryError;\n if (sentryError.logLevel === 'log') {\n logger.log(sentryError.message);\n } else {\n logger.warn(sentryError);\n }\n }\n return undefined;\n },\n );\n }\n\n /**\n * Processes an event (either error or message) and sends it to Sentry.\n *\n * This also adds breadcrumbs and context information to the event. However,\n * platform specific meta data (such as the User's IP address) must be added\n * by the SDK implementor.\n *\n *\n * @param event The event to send to Sentry.\n * @param hint May contain additional information about the original exception.\n * @param scope A scope containing event metadata.\n * @returns A SyncPromise that resolves with the event or rejects in case event was/will not be send.\n */\n protected _processEvent(event: Event, hint: EventHint, scope?: Scope): PromiseLike {\n const options = this.getOptions();\n const { sampleRate } = options;\n\n const isTransaction = isTransactionEvent(event);\n const isError = isErrorEvent(event);\n const eventType = event.type || 'error';\n const beforeSendLabel = `before send for type \\`${eventType}\\``;\n\n // 1.0 === 100% events are sent\n // 0.0 === 0% events are sent\n // Sampling for transaction happens somewhere else\n if (isError && typeof sampleRate === 'number' && Math.random() > sampleRate) {\n this.recordDroppedEvent('sample_rate', 'error', event);\n return rejectedSyncPromise(\n new SentryError(\n `Discarding event because it's not included in the random sample (sampling rate = ${sampleRate})`,\n 'log',\n ),\n );\n }\n\n const dataCategory: DataCategory = eventType === 'replay_event' ? 'replay' : eventType;\n\n const sdkProcessingMetadata = event.sdkProcessingMetadata || {};\n const capturedSpanIsolationScope: Scope | undefined = sdkProcessingMetadata.capturedSpanIsolationScope;\n\n return this._prepareEvent(event, hint, scope, capturedSpanIsolationScope)\n .then(prepared => {\n if (prepared === null) {\n this.recordDroppedEvent('event_processor', dataCategory, event);\n throw new SentryError('An event processor returned `null`, will not send event.', 'log');\n }\n\n const isInternalException = hint.data && (hint.data as { __sentry__: boolean }).__sentry__ === true;\n if (isInternalException) {\n return prepared;\n }\n\n const result = processBeforeSend(options, prepared, hint);\n return _validateBeforeSendResult(result, beforeSendLabel);\n })\n .then(processedEvent => {\n if (processedEvent === null) {\n this.recordDroppedEvent('before_send', dataCategory, event);\n if (isTransaction) {\n const spans = event.spans || [];\n // the transaction itself counts as one span, plus all the child spans that are added\n const spanCount = 1 + spans.length;\n this.recordDroppedEvent('before_send', 'span', spanCount);\n }\n throw new SentryError(`${beforeSendLabel} returned \\`null\\`, will not send event.`, 'log');\n }\n\n const session = scope && scope.getSession();\n if (!isTransaction && session) {\n this._updateSessionFromEvent(session, processedEvent);\n }\n\n if (isTransaction) {\n const spanCountBefore =\n (processedEvent.sdkProcessingMetadata && processedEvent.sdkProcessingMetadata.spanCountBeforeProcessing) ||\n 0;\n const spanCountAfter = processedEvent.spans ? processedEvent.spans.length : 0;\n\n const droppedSpanCount = spanCountBefore - spanCountAfter;\n if (droppedSpanCount > 0) {\n this.recordDroppedEvent('before_send', 'span', droppedSpanCount);\n }\n }\n\n // None of the Sentry built event processor will update transaction name,\n // so if the transaction name has been changed by an event processor, we know\n // it has to come from custom event processor added by a user\n const transactionInfo = processedEvent.transaction_info;\n if (isTransaction && transactionInfo && processedEvent.transaction !== event.transaction) {\n const source = 'custom';\n processedEvent.transaction_info = {\n ...transactionInfo,\n source,\n };\n }\n\n this.sendEvent(processedEvent, hint);\n return processedEvent;\n })\n .then(null, reason => {\n if (reason instanceof SentryError) {\n throw reason;\n }\n\n this.captureException(reason, {\n data: {\n __sentry__: true,\n },\n originalException: reason,\n });\n throw new SentryError(\n `Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\\nReason: ${reason}`,\n );\n });\n }\n\n /**\n * Occupies the client with processing and event\n */\n protected _process(promise: PromiseLike): void {\n this._numProcessing++;\n void promise.then(\n value => {\n this._numProcessing--;\n return value;\n },\n reason => {\n this._numProcessing--;\n return reason;\n },\n );\n }\n\n /**\n * @inheritdoc\n */\n protected _sendEnvelope(envelope: Envelope): PromiseLike | void {\n this.emit('beforeEnvelope', envelope);\n\n if (this._isEnabled() && this._transport) {\n return this._transport.send(envelope).then(null, reason => {\n DEBUG_BUILD && logger.error('Error while sending event:', reason);\n });\n } else {\n DEBUG_BUILD && logger.error('Transport disabled');\n }\n }\n\n /**\n * Clears outcomes on this client and returns them.\n */\n protected _clearOutcomes(): Outcome[] {\n const outcomes = this._outcomes;\n this._outcomes = {};\n return Object.keys(outcomes).map(key => {\n const [reason, category] = key.split(':') as [EventDropReason, DataCategory];\n return {\n reason,\n category,\n quantity: outcomes[key],\n };\n });\n }\n\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\n public abstract eventFromException(_exception: any, _hint?: EventHint): PromiseLike;\n\n /**\n * @inheritDoc\n */\n public abstract eventFromMessage(\n _message: ParameterizedString,\n // eslint-disable-next-line deprecation/deprecation\n _level?: Severity | SeverityLevel,\n _hint?: EventHint,\n ): PromiseLike;\n}\n\n/**\n * Verifies that return value of configured `beforeSend` or `beforeSendTransaction` is of expected type, and returns the value if so.\n */\nfunction _validateBeforeSendResult(\n beforeSendResult: PromiseLike | Event | null,\n beforeSendLabel: string,\n): PromiseLike | Event | null {\n const invalidValueError = `${beforeSendLabel} must return \\`null\\` or a valid event.`;\n if (isThenable(beforeSendResult)) {\n return beforeSendResult.then(\n event => {\n if (!isPlainObject(event) && event !== null) {\n throw new SentryError(invalidValueError);\n }\n return event;\n },\n e => {\n throw new SentryError(`${beforeSendLabel} rejected with ${e}`);\n },\n );\n } else if (!isPlainObject(beforeSendResult) && beforeSendResult !== null) {\n throw new SentryError(invalidValueError);\n }\n return beforeSendResult;\n}\n\n/**\n * Process the matching `beforeSendXXX` callback.\n */\nfunction processBeforeSend(\n options: ClientOptions,\n event: Event,\n hint: EventHint,\n): PromiseLike | Event | null {\n const { beforeSend, beforeSendTransaction } = options;\n\n if (isErrorEvent(event) && beforeSend) {\n return beforeSend(event, hint);\n }\n\n if (isTransactionEvent(event) && beforeSendTransaction) {\n if (event.spans) {\n // We store the # of spans before processing in SDK metadata,\n // so we can compare it afterwards to determine how many spans were dropped\n const spanCountBefore = event.spans.length;\n event.sdkProcessingMetadata = {\n ...event.sdkProcessingMetadata,\n spanCountBeforeProcessing: spanCountBefore,\n };\n }\n return beforeSendTransaction(event, hint);\n }\n\n return event;\n}\n\nfunction isErrorEvent(event: Event): event is ErrorEvent {\n return event.type === undefined;\n}\n\nfunction isTransactionEvent(event: Event): event is TransactionEvent {\n return event.type === 'transaction';\n}\n\n/**\n * Add an event processor to the current client.\n * This event processor will run for all events processed by this client.\n */\nexport function addEventProcessor(callback: EventProcessor): void {\n const client = getClient();\n\n if (!client || !client.addEventProcessor) {\n return;\n }\n\n client.addEventProcessor(callback);\n}\n", "import type {\n CheckInEnvelope,\n CheckInItem,\n DsnComponents,\n DynamicSamplingContext,\n SdkMetadata,\n SerializedCheckIn,\n} from '@sentry/types';\nimport { createEnvelope, dropUndefinedKeys, dsnToString } from '@sentry/utils';\n\n/**\n * Create envelope from check in item.\n */\nexport function createCheckInEnvelope(\n checkIn: SerializedCheckIn,\n dynamicSamplingContext?: Partial,\n metadata?: SdkMetadata,\n tunnel?: string,\n dsn?: DsnComponents,\n): CheckInEnvelope {\n const headers: CheckInEnvelope[0] = {\n sent_at: new Date().toISOString(),\n };\n\n if (metadata && metadata.sdk) {\n headers.sdk = {\n name: metadata.sdk.name,\n version: metadata.sdk.version,\n };\n }\n\n if (!!tunnel && !!dsn) {\n headers.dsn = dsnToString(dsn);\n }\n\n if (dynamicSamplingContext) {\n headers.trace = dropUndefinedKeys(dynamicSamplingContext) as DynamicSamplingContext;\n }\n\n const item = createCheckInEnvelopeItem(checkIn);\n return createEnvelope(headers, [item]);\n}\n\nfunction createCheckInEnvelopeItem(checkIn: SerializedCheckIn): CheckInItem {\n const checkInHeaders: CheckInItem[0] = {\n type: 'check_in',\n };\n return [checkInHeaders, checkIn];\n}\n", "export const COUNTER_METRIC_TYPE = 'c' as const;\nexport const GAUGE_METRIC_TYPE = 'g' as const;\nexport const SET_METRIC_TYPE = 's' as const;\nexport const DISTRIBUTION_METRIC_TYPE = 'd' as const;\n\n/**\n * This does not match spec in https://develop.sentry.dev/sdk/metrics\n * but was chosen to optimize for the most common case in browser environments.\n */\nexport const DEFAULT_BROWSER_FLUSH_INTERVAL = 5000;\n\n/**\n * SDKs are required to bucket into 10 second intervals (rollup in seconds)\n * which is the current lower bound of metric accuracy.\n */\nexport const DEFAULT_FLUSH_INTERVAL = 10000;\n\n/**\n * The maximum number of metrics that should be stored in memory.\n */\nexport const MAX_WEIGHT = 10000;\n", "import type { MetricInstance } from '@sentry/types';\nimport { COUNTER_METRIC_TYPE, DISTRIBUTION_METRIC_TYPE, GAUGE_METRIC_TYPE, SET_METRIC_TYPE } from './constants';\nimport { simpleHash } from './utils';\n\n/**\n * A metric instance representing a counter.\n */\nexport class CounterMetric implements MetricInstance {\n public constructor(private _value: number) {}\n\n /** @inheritDoc */\n public get weight(): number {\n return 1;\n }\n\n /** @inheritdoc */\n public add(value: number): void {\n this._value += value;\n }\n\n /** @inheritdoc */\n public toString(): string {\n return `${this._value}`;\n }\n}\n\n/**\n * A metric instance representing a gauge.\n */\nexport class GaugeMetric implements MetricInstance {\n private _last: number;\n private _min: number;\n private _max: number;\n private _sum: number;\n private _count: number;\n\n public constructor(value: number) {\n this._last = value;\n this._min = value;\n this._max = value;\n this._sum = value;\n this._count = 1;\n }\n\n /** @inheritDoc */\n public get weight(): number {\n return 5;\n }\n\n /** @inheritdoc */\n public add(value: number): void {\n this._last = value;\n if (value < this._min) {\n this._min = value;\n }\n if (value > this._max) {\n this._max = value;\n }\n this._sum += value;\n this._count++;\n }\n\n /** @inheritdoc */\n public toString(): string {\n return `${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`;\n }\n}\n\n/**\n * A metric instance representing a distribution.\n */\nexport class DistributionMetric implements MetricInstance {\n private _value: number[];\n\n public constructor(first: number) {\n this._value = [first];\n }\n\n /** @inheritDoc */\n public get weight(): number {\n return this._value.length;\n }\n\n /** @inheritdoc */\n public add(value: number): void {\n this._value.push(value);\n }\n\n /** @inheritdoc */\n public toString(): string {\n return this._value.join(':');\n }\n}\n\n/**\n * A metric instance representing a set.\n */\nexport class SetMetric implements MetricInstance {\n private _value: Set;\n\n public constructor(public first: number | string) {\n this._value = new Set([first]);\n }\n\n /** @inheritDoc */\n public get weight(): number {\n return this._value.size;\n }\n\n /** @inheritdoc */\n public add(value: number | string): void {\n this._value.add(value);\n }\n\n /** @inheritdoc */\n public toString(): string {\n return Array.from(this._value)\n .map(val => (typeof val === 'string' ? simpleHash(val) : val))\n .join(':');\n }\n}\n\nexport const METRIC_MAP = {\n [COUNTER_METRIC_TYPE]: CounterMetric,\n [GAUGE_METRIC_TYPE]: GaugeMetric,\n [DISTRIBUTION_METRIC_TYPE]: DistributionMetric,\n [SET_METRIC_TYPE]: SetMetric,\n};\n", "import type {\n Client,\n ClientOptions,\n MeasurementUnit,\n MetricsAggregator as MetricsAggregatorBase,\n Primitive,\n} from '@sentry/types';\nimport { timestampInSeconds } from '@sentry/utils';\nimport { DEFAULT_FLUSH_INTERVAL, MAX_WEIGHT, SET_METRIC_TYPE } from './constants';\nimport { METRIC_MAP } from './instance';\nimport { updateMetricSummaryOnActiveSpan } from './metric-summary';\nimport type { MetricBucket, MetricType } from './types';\nimport { getBucketKey, sanitizeMetricKey, sanitizeTags, sanitizeUnit } from './utils';\n\n/**\n * A metrics aggregator that aggregates metrics in memory and flushes them periodically.\n */\nexport class MetricsAggregator implements MetricsAggregatorBase {\n // TODO(@anonrig): Use FinalizationRegistry to have a proper way of flushing the buckets\n // when the aggregator is garbage collected.\n // Ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry\n private _buckets: MetricBucket;\n\n // Different metrics have different weights. We use this to limit the number of metrics\n // that we store in memory.\n private _bucketsTotalWeight;\n\n // Cast to any so that it can use Node.js timeout\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private readonly _interval: any;\n\n // SDKs are required to shift the flush interval by random() * rollup_in_seconds.\n // That shift is determined once per startup to create jittering.\n private readonly _flushShift: number;\n\n // An SDK is required to perform force flushing ahead of scheduled time if the memory\n // pressure is too high. There is no rule for this other than that SDKs should be tracking\n // abstract aggregation complexity (eg: a counter only carries a single float, whereas a\n // distribution is a float per emission).\n //\n // Force flush is used on either shutdown, flush() or when we exceed the max weight.\n private _forceFlush: boolean;\n\n public constructor(private readonly _client: Client) {\n this._buckets = new Map();\n this._bucketsTotalWeight = 0;\n\n this._interval = setInterval(() => this._flush(), DEFAULT_FLUSH_INTERVAL) as any;\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (this._interval.unref) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n this._interval.unref();\n }\n\n this._flushShift = Math.floor((Math.random() * DEFAULT_FLUSH_INTERVAL) / 1000);\n this._forceFlush = false;\n }\n\n /**\n * @inheritDoc\n */\n public add(\n metricType: MetricType,\n unsanitizedName: string,\n value: number | string,\n unsanitizedUnit: MeasurementUnit = 'none',\n unsanitizedTags: Record = {},\n maybeFloatTimestamp = timestampInSeconds(),\n ): void {\n const timestamp = Math.floor(maybeFloatTimestamp);\n const name = sanitizeMetricKey(unsanitizedName);\n const tags = sanitizeTags(unsanitizedTags);\n const unit = sanitizeUnit(unsanitizedUnit as string);\n\n const bucketKey = getBucketKey(metricType, name, unit, tags);\n\n let bucketItem = this._buckets.get(bucketKey);\n // If this is a set metric, we need to calculate the delta from the previous weight.\n const previousWeight = bucketItem && metricType === SET_METRIC_TYPE ? bucketItem.metric.weight : 0;\n\n if (bucketItem) {\n bucketItem.metric.add(value);\n // TODO(abhi): Do we need this check?\n if (bucketItem.timestamp < timestamp) {\n bucketItem.timestamp = timestamp;\n }\n } else {\n bucketItem = {\n // @ts-expect-error we don't need to narrow down the type of value here, saves bundle size.\n metric: new METRIC_MAP[metricType](value),\n timestamp,\n metricType,\n name,\n unit,\n tags,\n };\n this._buckets.set(bucketKey, bucketItem);\n }\n\n // If value is a string, it's a set metric so calculate the delta from the previous weight.\n const val = typeof value === 'string' ? bucketItem.metric.weight - previousWeight : value;\n updateMetricSummaryOnActiveSpan(metricType, name, val, unit, unsanitizedTags, bucketKey);\n\n // We need to keep track of the total weight of the buckets so that we can\n // flush them when we exceed the max weight.\n this._bucketsTotalWeight += bucketItem.metric.weight;\n\n if (this._bucketsTotalWeight >= MAX_WEIGHT) {\n this.flush();\n }\n }\n\n /**\n * Flushes the current metrics to the transport via the transport.\n */\n public flush(): void {\n this._forceFlush = true;\n this._flush();\n }\n\n /**\n * Shuts down metrics aggregator and clears all metrics.\n */\n public close(): void {\n this._forceFlush = true;\n clearInterval(this._interval);\n this._flush();\n }\n\n /**\n * Flushes the buckets according to the internal state of the aggregator.\n * If it is a force flush, which happens on shutdown, it will flush all buckets.\n * Otherwise, it will only flush buckets that are older than the flush interval,\n * and according to the flush shift.\n *\n * This function mutates `_forceFlush` and `_bucketsTotalWeight` properties.\n */\n private _flush(): void {\n // TODO(@anonrig): Add Atomics for locking to avoid having force flush and regular flush\n // running at the same time.\n // Ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics\n\n // This path eliminates the need for checking for timestamps since we're forcing a flush.\n // Remember to reset the flag, or it will always flush all metrics.\n if (this._forceFlush) {\n this._forceFlush = false;\n this._bucketsTotalWeight = 0;\n this._captureMetrics(this._buckets);\n this._buckets.clear();\n return;\n }\n const cutoffSeconds = Math.floor(timestampInSeconds()) - DEFAULT_FLUSH_INTERVAL / 1000 - this._flushShift;\n // TODO(@anonrig): Optimization opportunity.\n // Convert this map to an array and store key in the bucketItem.\n const flushedBuckets: MetricBucket = new Map();\n for (const [key, bucket] of this._buckets) {\n if (bucket.timestamp <= cutoffSeconds) {\n flushedBuckets.set(key, bucket);\n this._bucketsTotalWeight -= bucket.metric.weight;\n }\n }\n\n for (const [key] of flushedBuckets) {\n this._buckets.delete(key);\n }\n\n this._captureMetrics(flushedBuckets);\n }\n\n /**\n * Only captures a subset of the buckets passed to this function.\n * @param flushedBuckets\n */\n private _captureMetrics(flushedBuckets: MetricBucket): void {\n if (flushedBuckets.size > 0 && this._client.captureAggregateMetrics) {\n // TODO(@anonrig): Optimization opportunity.\n // This copy operation can be avoided if we store the key in the bucketItem.\n const buckets = Array.from(flushedBuckets).map(([, bucketItem]) => bucketItem);\n this._client.captureAggregateMetrics(buckets);\n }\n }\n}\n", "import type {\n BaseTransportOptions,\n CheckIn,\n ClientOptions,\n DynamicSamplingContext,\n Event,\n EventHint,\n MonitorConfig,\n ParameterizedString,\n SerializedCheckIn,\n Severity,\n SeverityLevel,\n TraceContext,\n} from '@sentry/types';\nimport { eventFromMessage, eventFromUnknownInput, logger, resolvedSyncPromise, uuid4 } from '@sentry/utils';\n\nimport { BaseClient } from './baseclient';\nimport { createCheckInEnvelope } from './checkin';\nimport { DEBUG_BUILD } from './debug-build';\nimport { getClient } from './exports';\nimport { MetricsAggregator } from './metrics/aggregator';\nimport type { Scope } from './scope';\nimport { SessionFlusher } from './sessionflusher';\nimport {\n addTracingExtensions,\n getDynamicSamplingContextFromClient,\n getDynamicSamplingContextFromSpan,\n} from './tracing';\nimport { getRootSpan } from './utils/getRootSpan';\nimport { spanToTraceContext } from './utils/spanUtils';\n\nexport interface ServerRuntimeClientOptions extends ClientOptions {\n platform?: string;\n runtime?: { name: string; version?: string };\n serverName?: string;\n}\n\n/**\n * The Sentry Server Runtime Client SDK.\n */\nexport class ServerRuntimeClient<\n O extends ClientOptions & ServerRuntimeClientOptions = ServerRuntimeClientOptions,\n> extends BaseClient {\n protected _sessionFlusher: SessionFlusher | undefined;\n\n /**\n * Creates a new Edge SDK instance.\n * @param options Configuration options for this SDK.\n */\n public constructor(options: O) {\n // Server clients always support tracing\n addTracingExtensions();\n\n super(options);\n\n if (options._experiments && options._experiments['metricsAggregator']) {\n this.metricsAggregator = new MetricsAggregator(this);\n }\n }\n\n /**\n * @inheritDoc\n */\n public eventFromException(exception: unknown, hint?: EventHint): PromiseLike {\n return resolvedSyncPromise(eventFromUnknownInput(getClient(), this._options.stackParser, exception, hint));\n }\n\n /**\n * @inheritDoc\n */\n public eventFromMessage(\n message: ParameterizedString,\n // eslint-disable-next-line deprecation/deprecation\n level: Severity | SeverityLevel = 'info',\n hint?: EventHint,\n ): PromiseLike {\n return resolvedSyncPromise(\n eventFromMessage(this._options.stackParser, message, level, hint, this._options.attachStacktrace),\n );\n }\n\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\n public captureException(exception: any, hint?: EventHint, scope?: Scope): string | undefined {\n // Check if the flag `autoSessionTracking` is enabled, and if `_sessionFlusher` exists because it is initialised only\n // when the `requestHandler` middleware is used, and hence the expectation is to have SessionAggregates payload\n // sent to the Server only when the `requestHandler` middleware is used\n if (this._options.autoSessionTracking && this._sessionFlusher && scope) {\n const requestSession = scope.getRequestSession();\n\n // Necessary checks to ensure this is code block is executed only within a request\n // Should override the status only if `requestSession.status` is `Ok`, which is its initial stage\n if (requestSession && requestSession.status === 'ok') {\n requestSession.status = 'errored';\n }\n }\n\n return super.captureException(exception, hint, scope);\n }\n\n /**\n * @inheritDoc\n */\n public captureEvent(event: Event, hint?: EventHint, scope?: Scope): string | undefined {\n // Check if the flag `autoSessionTracking` is enabled, and if `_sessionFlusher` exists because it is initialised only\n // when the `requestHandler` middleware is used, and hence the expectation is to have SessionAggregates payload\n // sent to the Server only when the `requestHandler` middleware is used\n if (this._options.autoSessionTracking && this._sessionFlusher && scope) {\n const eventType = event.type || 'exception';\n const isException =\n eventType === 'exception' && event.exception && event.exception.values && event.exception.values.length > 0;\n\n // If the event is of type Exception, then a request session should be captured\n if (isException) {\n const requestSession = scope.getRequestSession();\n\n // Ensure that this is happening within the bounds of a request, and make sure not to override\n // Session Status if Errored / Crashed\n if (requestSession && requestSession.status === 'ok') {\n requestSession.status = 'errored';\n }\n }\n }\n\n return super.captureEvent(event, hint, scope);\n }\n\n /**\n *\n * @inheritdoc\n */\n public close(timeout?: number): PromiseLike {\n if (this._sessionFlusher) {\n this._sessionFlusher.close();\n }\n return super.close(timeout);\n }\n\n /** Method that initialises an instance of SessionFlusher on Client */\n public initSessionFlusher(): void {\n const { release, environment } = this._options;\n if (!release) {\n DEBUG_BUILD && logger.warn('Cannot initialise an instance of SessionFlusher if no release is provided!');\n } else {\n this._sessionFlusher = new SessionFlusher(this, {\n release,\n environment,\n });\n }\n }\n\n /**\n * Create a cron monitor check in and send it to Sentry.\n *\n * @param checkIn An object that describes a check in.\n * @param upsertMonitorConfig An optional object that describes a monitor config. Use this if you want\n * to create a monitor automatically when sending a check in.\n */\n public captureCheckIn(checkIn: CheckIn, monitorConfig?: MonitorConfig, scope?: Scope): string {\n const id = 'checkInId' in checkIn && checkIn.checkInId ? checkIn.checkInId : uuid4();\n if (!this._isEnabled()) {\n DEBUG_BUILD && logger.warn('SDK not enabled, will not capture checkin.');\n return id;\n }\n\n const options = this.getOptions();\n const { release, environment, tunnel } = options;\n\n const serializedCheckIn: SerializedCheckIn = {\n check_in_id: id,\n monitor_slug: checkIn.monitorSlug,\n status: checkIn.status,\n release,\n environment,\n };\n\n if ('duration' in checkIn) {\n serializedCheckIn.duration = checkIn.duration;\n }\n\n if (monitorConfig) {\n serializedCheckIn.monitor_config = {\n schedule: monitorConfig.schedule,\n checkin_margin: monitorConfig.checkinMargin,\n max_runtime: monitorConfig.maxRuntime,\n timezone: monitorConfig.timezone,\n };\n }\n\n const [dynamicSamplingContext, traceContext] = this._getTraceInfoFromScope(scope);\n if (traceContext) {\n serializedCheckIn.contexts = {\n trace: traceContext,\n };\n }\n\n const envelope = createCheckInEnvelope(\n serializedCheckIn,\n dynamicSamplingContext,\n this.getSdkMetadata(),\n tunnel,\n this.getDsn(),\n );\n\n DEBUG_BUILD && logger.info('Sending checkin:', checkIn.monitorSlug, checkIn.status);\n\n // _sendEnvelope should not throw\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this._sendEnvelope(envelope);\n\n return id;\n }\n\n /**\n * Method responsible for capturing/ending a request session by calling `incrementSessionStatusCount` to increment\n * appropriate session aggregates bucket\n */\n protected _captureRequestSession(): void {\n if (!this._sessionFlusher) {\n DEBUG_BUILD && logger.warn('Discarded request mode session because autoSessionTracking option was disabled');\n } else {\n this._sessionFlusher.incrementSessionStatusCount();\n }\n }\n\n /**\n * @inheritDoc\n */\n protected _prepareEvent(\n event: Event,\n hint: EventHint,\n scope?: Scope,\n isolationScope?: Scope,\n ): PromiseLike {\n if (this._options.platform) {\n event.platform = event.platform || this._options.platform;\n }\n\n if (this._options.runtime) {\n event.contexts = {\n ...event.contexts,\n runtime: (event.contexts || {}).runtime || this._options.runtime,\n };\n }\n\n if (this._options.serverName) {\n event.server_name = event.server_name || this._options.serverName;\n }\n\n return super._prepareEvent(event, hint, scope, isolationScope);\n }\n\n /** Extract trace information from scope */\n private _getTraceInfoFromScope(\n scope: Scope | undefined,\n ): [dynamicSamplingContext: Partial | undefined, traceContext: TraceContext | undefined] {\n if (!scope) {\n return [undefined, undefined];\n }\n\n // eslint-disable-next-line deprecation/deprecation\n const span = scope.getSpan();\n if (span) {\n const samplingContext = getRootSpan(span) ? getDynamicSamplingContextFromSpan(span) : undefined;\n return [samplingContext, spanToTraceContext(span)];\n }\n\n const { traceId, spanId, parentSpanId, dsc } = scope.getPropagationContext();\n const traceContext: TraceContext = {\n trace_id: traceId,\n span_id: spanId,\n parent_span_id: parentSpanId,\n };\n if (dsc) {\n return [dsc, traceContext];\n }\n\n return [getDynamicSamplingContextFromClient(traceId, this, scope), traceContext];\n }\n}\n", "import type { Client, ClientOptions } from '@sentry/types';\nimport { consoleSandbox, logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from './debug-build';\nimport { getCurrentScope } from './exports';\nimport { getCurrentHub } from './hub';\n\n/** A class object that can instantiate Client objects. */\nexport type ClientClass = new (options: O) => F;\n\n/**\n * Internal function to create a new SDK client instance. The client is\n * installed and then bound to the current scope.\n *\n * @param clientClass The client class to instantiate.\n * @param options Options to pass to the client.\n */\nexport function initAndBind(\n clientClass: ClientClass,\n options: O,\n): void {\n if (options.debug === true) {\n if (DEBUG_BUILD) {\n logger.enable();\n } else {\n // use `console.warn` rather than `logger.warn` since by non-debug bundles have all `logger.x` statements stripped\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.warn('[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.');\n });\n }\n }\n const scope = getCurrentScope();\n scope.update(options.initialScope);\n\n const client = new clientClass(options);\n setCurrentClient(client);\n initializeClient(client);\n}\n\n/**\n * Make the given client the current client.\n */\nexport function setCurrentClient(client: Client): void {\n // eslint-disable-next-line deprecation/deprecation\n const hub = getCurrentHub();\n // eslint-disable-next-line deprecation/deprecation\n const top = hub.getStackTop();\n top.client = client;\n top.scope.setClient(client);\n}\n\n/**\n * Initialize the client for the current scope.\n * Make sure to call this after `setCurrentClient()`.\n */\nfunction initializeClient(client: Client): void {\n if (client.init) {\n client.init();\n // TODO v8: Remove this fallback\n // eslint-disable-next-line deprecation/deprecation\n } else if (client.setupIntegrations) {\n // eslint-disable-next-line deprecation/deprecation\n client.setupIntegrations();\n }\n}\n", "import type {\n Envelope,\n EnvelopeItem,\n EnvelopeItemType,\n Event,\n EventDropReason,\n EventItem,\n InternalBaseTransportOptions,\n Transport,\n TransportMakeRequestResponse,\n TransportRequestExecutor,\n} from '@sentry/types';\nimport type { PromiseBuffer, RateLimits } from '@sentry/utils';\nimport {\n SentryError,\n createEnvelope,\n envelopeItemTypeToDataCategory,\n forEachEnvelopeItem,\n isRateLimited,\n logger,\n makePromiseBuffer,\n resolvedSyncPromise,\n serializeEnvelope,\n updateRateLimits,\n} from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../debug-build';\n\nexport const DEFAULT_TRANSPORT_BUFFER_SIZE = 30;\n\n/**\n * Creates an instance of a Sentry `Transport`\n *\n * @param options\n * @param makeRequest\n */\nexport function createTransport(\n options: InternalBaseTransportOptions,\n makeRequest: TransportRequestExecutor,\n buffer: PromiseBuffer = makePromiseBuffer(\n options.bufferSize || DEFAULT_TRANSPORT_BUFFER_SIZE,\n ),\n): Transport {\n let rateLimits: RateLimits = {};\n const flush = (timeout?: number): PromiseLike => buffer.drain(timeout);\n\n function send(envelope: Envelope): PromiseLike {\n const filteredEnvelopeItems: EnvelopeItem[] = [];\n\n // Drop rate limited items from envelope\n forEachEnvelopeItem(envelope, (item, type) => {\n const dataCategory = envelopeItemTypeToDataCategory(type);\n if (isRateLimited(rateLimits, dataCategory)) {\n const event: Event | undefined = getEventForEnvelopeItem(item, type);\n options.recordDroppedEvent('ratelimit_backoff', dataCategory, event);\n } else {\n filteredEnvelopeItems.push(item);\n }\n });\n\n // Skip sending if envelope is empty after filtering out rate limited events\n if (filteredEnvelopeItems.length === 0) {\n return resolvedSyncPromise();\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const filteredEnvelope: Envelope = createEnvelope(envelope[0], filteredEnvelopeItems as any);\n\n // Creates client report for each item in an envelope\n const recordEnvelopeLoss = (reason: EventDropReason): void => {\n forEachEnvelopeItem(filteredEnvelope, (item, type) => {\n const event: Event | undefined = getEventForEnvelopeItem(item, type);\n options.recordDroppedEvent(reason, envelopeItemTypeToDataCategory(type), event);\n });\n };\n\n const requestTask = (): PromiseLike =>\n makeRequest({ body: serializeEnvelope(filteredEnvelope, options.textEncoder) }).then(\n response => {\n // We don't want to throw on NOK responses, but we want to at least log them\n if (response.statusCode !== undefined && (response.statusCode < 200 || response.statusCode >= 300)) {\n DEBUG_BUILD && logger.warn(`Sentry responded with status code ${response.statusCode} to sent event.`);\n }\n\n rateLimits = updateRateLimits(rateLimits, response);\n return response;\n },\n error => {\n recordEnvelopeLoss('network_error');\n throw error;\n },\n );\n\n return buffer.add(requestTask).then(\n result => result,\n error => {\n if (error instanceof SentryError) {\n DEBUG_BUILD && logger.error('Skipped sending event because buffer is full.');\n recordEnvelopeLoss('queue_overflow');\n return resolvedSyncPromise();\n } else {\n throw error;\n }\n },\n );\n }\n\n // We use this to identifify if the transport is the base transport\n // TODO (v8): Remove this again as we'll no longer need it\n send.__sentry__baseTransport__ = true;\n\n return {\n send,\n flush,\n };\n}\n\nfunction getEventForEnvelopeItem(item: Envelope[1][number], type: EnvelopeItemType): Event | undefined {\n if (type !== 'event' && type !== 'transaction') {\n return undefined;\n }\n\n return Array.isArray(item) ? (item as EventItem)[1] : undefined;\n}\n", "import type { Envelope, InternalBaseTransportOptions, Transport, TransportMakeRequestResponse } from '@sentry/types';\nimport { envelopeContainsItemType, logger, parseRetryAfterHeader } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../debug-build';\n\nexport const MIN_DELAY = 100; // 100 ms\nexport const START_DELAY = 5_000; // 5 seconds\nconst MAX_DELAY = 3.6e6; // 1 hour\n\nfunction log(msg: string, error?: Error): void {\n DEBUG_BUILD && logger.info(`[Offline]: ${msg}`, error);\n}\n\nexport interface OfflineStore {\n insert(env: Envelope): Promise;\n pop(): Promise;\n}\n\nexport type CreateOfflineStore = (options: OfflineTransportOptions) => OfflineStore;\n\nexport interface OfflineTransportOptions extends InternalBaseTransportOptions {\n /**\n * A function that creates the offline store instance.\n */\n createStore?: CreateOfflineStore;\n\n /**\n * Flush the offline store shortly after startup.\n *\n * Defaults: false\n */\n flushAtStartup?: boolean;\n\n /**\n * Called before an event is stored.\n *\n * Return false to drop the envelope rather than store it.\n *\n * @param envelope The envelope that failed to send.\n * @param error The error that occurred.\n * @param retryDelay The current retry delay in milliseconds.\n */\n shouldStore?: (envelope: Envelope, error: Error, retryDelay: number) => boolean | Promise;\n}\n\ntype Timer = number | { unref?: () => void };\n\n/**\n * Wraps a transport and stores and retries events when they fail to send.\n *\n * @param createTransport The transport to wrap.\n */\nexport function makeOfflineTransport(\n createTransport: (options: TO) => Transport,\n): (options: TO & OfflineTransportOptions) => Transport {\n return options => {\n const transport = createTransport(options);\n const store = options.createStore ? options.createStore(options) : undefined;\n\n let retryDelay = START_DELAY;\n let flushTimer: Timer | undefined;\n\n function shouldQueue(env: Envelope, error: Error, retryDelay: number): boolean | Promise {\n // We don't queue Session Replay envelopes because they are:\n // - Ordered and Replay relies on the response status to know when they're successfully sent.\n // - Likely to fill the queue quickly and block other events from being sent.\n // We also want to drop client reports because they can be generated when we retry sending events while offline.\n if (envelopeContainsItemType(env, ['replay_event', 'replay_recording', 'client_report'])) {\n return false;\n }\n\n if (options.shouldStore) {\n return options.shouldStore(env, error, retryDelay);\n }\n\n return true;\n }\n\n function flushIn(delay: number): void {\n if (!store) {\n return;\n }\n\n if (flushTimer) {\n clearTimeout(flushTimer as ReturnType);\n }\n\n flushTimer = setTimeout(async () => {\n flushTimer = undefined;\n\n const found = await store.pop();\n if (found) {\n log('Attempting to send previously queued event');\n void send(found).catch(e => {\n log('Failed to retry sending', e);\n });\n }\n }, delay) as Timer;\n\n // We need to unref the timer in node.js, otherwise the node process never exit.\n if (typeof flushTimer !== 'number' && flushTimer.unref) {\n flushTimer.unref();\n }\n }\n\n function flushWithBackOff(): void {\n if (flushTimer) {\n return;\n }\n\n flushIn(retryDelay);\n\n retryDelay = Math.min(retryDelay * 2, MAX_DELAY);\n }\n\n async function send(envelope: Envelope): Promise {\n try {\n const result = await transport.send(envelope);\n\n let delay = MIN_DELAY;\n\n if (result) {\n // If there's a retry-after header, use that as the next delay.\n if (result.headers && result.headers['retry-after']) {\n delay = parseRetryAfterHeader(result.headers['retry-after']);\n } // If we have a server error, return now so we don't flush the queue.\n else if ((result.statusCode || 0) >= 400) {\n return result;\n }\n }\n\n flushIn(delay);\n retryDelay = START_DELAY;\n return result;\n } catch (e) {\n if (store && (await shouldQueue(envelope, e as Error, retryDelay))) {\n await store.insert(envelope);\n flushWithBackOff();\n log('Error sending. Event queued', e as Error);\n return {};\n } else {\n throw e;\n }\n }\n }\n\n if (options.flushAtStartup) {\n flushWithBackOff();\n }\n\n return {\n send,\n flush: t => transport.flush(t),\n };\n };\n}\n", "import type {\n BaseTransportOptions,\n Envelope,\n EnvelopeItemType,\n Event,\n EventItem,\n Transport,\n TransportMakeRequestResponse,\n} from '@sentry/types';\nimport { createEnvelope, dsnFromString, forEachEnvelopeItem } from '@sentry/utils';\n\nimport { getEnvelopeEndpointWithUrlEncodedAuth } from '../api';\n\ninterface MatchParam {\n /** The envelope to be sent */\n envelope: Envelope;\n /**\n * A function that returns an event from the envelope if one exists. You can optionally pass an array of envelope item\n * types to filter by - only envelopes matching the given types will be multiplexed.\n * Allowed values are: 'event', 'transaction', 'profile', 'replay_event'\n *\n * @param types Defaults to ['event']\n */\n getEvent(types?: EnvelopeItemType[]): Event | undefined;\n}\n\ntype RouteTo = { dsn: string; release: string };\ntype Matcher = (param: MatchParam) => (string | RouteTo)[];\n\n/**\n * Gets an event from an envelope.\n *\n * This is only exported for use in the tests\n */\nexport function eventFromEnvelope(env: Envelope, types: EnvelopeItemType[]): Event | undefined {\n let event: Event | undefined;\n\n forEachEnvelopeItem(env, (item, type) => {\n if (types.includes(type)) {\n event = Array.isArray(item) ? (item as EventItem)[1] : undefined;\n }\n // bail out if we found an event\n return !!event;\n });\n\n return event;\n}\n\n/**\n * Creates a transport that overrides the release on all events.\n */\nfunction makeOverrideReleaseTransport(\n createTransport: (options: TO) => Transport,\n release: string,\n): (options: TO) => Transport {\n return options => {\n const transport = createTransport(options);\n\n return {\n ...transport,\n send: async (envelope: Envelope): Promise => {\n const event = eventFromEnvelope(envelope, ['event', 'transaction', 'profile', 'replay_event']);\n\n if (event) {\n event.release = release;\n }\n return transport.send(envelope);\n },\n };\n };\n}\n\n/** Overrides the DSN in the envelope header */\nfunction overrideDsn(envelope: Envelope, dsn: string): Envelope {\n return createEnvelope(\n dsn\n ? {\n ...envelope[0],\n dsn,\n }\n : envelope[0],\n envelope[1],\n );\n}\n\n/**\n * Creates a transport that can send events to different DSNs depending on the envelope contents.\n */\nexport function makeMultiplexedTransport(\n createTransport: (options: TO) => Transport,\n matcher: Matcher,\n): (options: TO) => Transport {\n return options => {\n const fallbackTransport = createTransport(options);\n const otherTransports = new Map();\n\n function getTransport(dsn: string, release: string | undefined): [string, Transport] | undefined {\n // We create a transport for every unique dsn/release combination as there may be code from multiple releases in\n // use at the same time\n const key = release ? `${dsn}:${release}` : dsn;\n\n let transport = otherTransports.get(key);\n\n if (!transport) {\n const validatedDsn = dsnFromString(dsn);\n if (!validatedDsn) {\n return undefined;\n }\n\n const url = getEnvelopeEndpointWithUrlEncodedAuth(validatedDsn, options.tunnel);\n\n transport = release\n ? makeOverrideReleaseTransport(createTransport, release)({ ...options, url })\n : createTransport({ ...options, url });\n\n otherTransports.set(key, transport);\n }\n\n return [dsn, transport];\n }\n\n async function send(envelope: Envelope): Promise {\n function getEvent(types?: EnvelopeItemType[]): Event | undefined {\n const eventTypes: EnvelopeItemType[] = types && types.length ? types : ['event'];\n return eventFromEnvelope(envelope, eventTypes);\n }\n\n const transports = matcher({ envelope, getEvent })\n .map(result => {\n if (typeof result === 'string') {\n return getTransport(result, undefined);\n } else {\n return getTransport(result.dsn, result.release);\n }\n })\n .filter((t): t is [string, Transport] => !!t);\n\n // If we have no transports to send to, use the fallback transport\n if (transports.length === 0) {\n // Don't override the DSN in the header for the fallback transport. '' is falsy\n transports.push(['', fallbackTransport]);\n }\n\n const results = await Promise.all(\n transports.map(([dsn, transport]) => transport.send(overrideDsn(envelope, dsn))),\n );\n\n return results[0];\n }\n\n async function flush(timeout: number | undefined): Promise {\n const promises = [await fallbackTransport.flush(timeout)];\n for (const [, transport] of otherTransports) {\n promises.push(await transport.flush(timeout));\n }\n\n return promises.every(r => r);\n }\n\n return {\n send,\n flush,\n };\n };\n}\n", "import type { DsnComponents, SpanEnvelope, SpanItem } from '@sentry/types';\nimport type { Span } from '@sentry/types';\nimport { createEnvelope, dsnToString } from '@sentry/utils';\n\n/**\n * Create envelope from Span item.\n */\nexport function createSpanEnvelope(spans: Span[], dsn?: DsnComponents): SpanEnvelope {\n const headers: SpanEnvelope[0] = {\n sent_at: new Date().toISOString(),\n };\n\n if (dsn) {\n headers.dsn = dsnToString(dsn);\n }\n\n const items = spans.map(createSpanItem);\n return createEnvelope(headers, items);\n}\n\nfunction createSpanItem(span: Span): SpanItem {\n const spanHeaders: SpanItem[0] = {\n type: 'span',\n };\n return [spanHeaders, span];\n}\n", "import type { Client, DsnComponents, Hub } from '@sentry/types';\n\n/**\n * Checks whether given url points to Sentry server\n * @param url url to verify\n *\n * TODO(v8): Remove Hub fallback type\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function isSentryRequestUrl(url: string, hubOrClient: Hub | Client | undefined): boolean {\n const client =\n hubOrClient && isHub(hubOrClient)\n ? // eslint-disable-next-line deprecation/deprecation\n hubOrClient.getClient()\n : hubOrClient;\n const dsn = client && client.getDsn();\n const tunnel = client && client.getOptions().tunnel;\n\n return checkDsn(url, dsn) || checkTunnel(url, tunnel);\n}\n\nfunction checkTunnel(url: string, tunnel: string | undefined): boolean {\n if (!tunnel) {\n return false;\n }\n\n return removeTrailingSlash(url) === removeTrailingSlash(tunnel);\n}\n\nfunction checkDsn(url: string, dsn: DsnComponents | undefined): boolean {\n return dsn ? url.includes(dsn.host) : false;\n}\n\nfunction removeTrailingSlash(str: string): string {\n return str[str.length - 1] === '/' ? str.slice(0, -1) : str;\n}\n\n// eslint-disable-next-line deprecation/deprecation\nfunction isHub(hubOrClient: Hub | Client | undefined): hubOrClient is Hub {\n // eslint-disable-next-line deprecation/deprecation\n return (hubOrClient as Hub).getClient !== undefined;\n}\n", "import type { ParameterizedString } from '@sentry/types';\n\n/**\n * Tagged template function which returns paramaterized representation of the message\n * For example: parameterize`This is a log statement with ${x} and ${y} params`, would return:\n * \"__sentry_template_string__\": 'This is a log statement with %s and %s params',\n * \"__sentry_template_values__\": ['first', 'second']\n * @param strings An array of string values splitted between expressions\n * @param values Expressions extracted from template string\n * @returns String with template information in __sentry_template_string__ and __sentry_template_values__ properties\n */\nexport function parameterize(strings: TemplateStringsArray, ...values: string[]): ParameterizedString {\n const formatted = new String(String.raw(strings, ...values)) as ParameterizedString;\n formatted.__sentry_template_string__ = strings.join('\\x00').replace(/%/g, '%%').replace(/\\0/g, '%s');\n formatted.__sentry_template_values__ = values;\n return formatted;\n}\n", "import type { Options } from '@sentry/types';\nimport { SDK_VERSION } from '../version';\n\n/**\n * A builder for the SDK metadata in the options for the SDK initialization.\n *\n * Note: This function is identical to `buildMetadata` in Remix and NextJS and SvelteKit.\n * We don't extract it for bundle size reasons.\n * @see https://github.com/getsentry/sentry-javascript/pull/7404\n * @see https://github.com/getsentry/sentry-javascript/pull/4196\n *\n * If you make changes to this function consider updating the others as well.\n *\n * @param options SDK options object that gets mutated\n * @param names list of package names\n */\nexport function applySdkMetadata(options: Options, name: string, names = [name], source = 'npm'): void {\n const metadata = options._metadata || {};\n\n if (!metadata.sdk) {\n metadata.sdk = {\n name: `sentry.javascript.${name}`,\n packages: names.map(name => ({\n name: `${source}:@sentry/${name}`,\n version: SDK_VERSION,\n })),\n version: SDK_VERSION,\n };\n }\n\n options._metadata = metadata;\n}\n", "import type { Event, StackParser } from '@sentry/types';\nimport { GLOBAL_OBJ } from '@sentry/utils';\n\n/** Keys are source filename/url, values are metadata objects. */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst filenameMetadataMap = new Map();\n/** Set of stack strings that have already been parsed. */\nconst parsedStacks = new Set();\n\nfunction ensureMetadataStacksAreParsed(parser: StackParser): void {\n if (!GLOBAL_OBJ._sentryModuleMetadata) {\n return;\n }\n\n for (const stack of Object.keys(GLOBAL_OBJ._sentryModuleMetadata)) {\n const metadata = GLOBAL_OBJ._sentryModuleMetadata[stack];\n\n if (parsedStacks.has(stack)) {\n continue;\n }\n\n // Ensure this stack doesn't get parsed again\n parsedStacks.add(stack);\n\n const frames = parser(stack);\n\n // Go through the frames starting from the top of the stack and find the first one with a filename\n for (const frame of frames.reverse()) {\n if (frame.filename) {\n // Save the metadata for this filename\n filenameMetadataMap.set(frame.filename, metadata);\n break;\n }\n }\n }\n}\n\n/**\n * Retrieve metadata for a specific JavaScript file URL.\n *\n * Metadata is injected by the Sentry bundler plugins using the `_experiments.moduleMetadata` config option.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function getMetadataForUrl(parser: StackParser, filename: string): any | undefined {\n ensureMetadataStacksAreParsed(parser);\n return filenameMetadataMap.get(filename);\n}\n\n/**\n * Adds metadata to stack frames.\n *\n * Metadata is injected by the Sentry bundler plugins using the `_experiments.moduleMetadata` config option.\n */\nexport function addMetadataToStackFrames(parser: StackParser, event: Event): void {\n try {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n event.exception!.values!.forEach(exception => {\n if (!exception.stacktrace) {\n return;\n }\n\n for (const frame of exception.stacktrace.frames || []) {\n if (!frame.filename) {\n continue;\n }\n\n const metadata = getMetadataForUrl(parser, frame.filename);\n\n if (metadata) {\n frame.module_metadata = metadata;\n }\n }\n });\n } catch (_) {\n // To save bundle size we're just try catching here instead of checking for the existence of all the different objects.\n }\n}\n\n/**\n * Strips metadata from stack frames.\n */\nexport function stripMetadataFromStackFrames(event: Event): void {\n try {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n event.exception!.values!.forEach(exception => {\n if (!exception.stacktrace) {\n return;\n }\n\n for (const frame of exception.stacktrace.frames || []) {\n delete frame.module_metadata;\n }\n });\n } catch (_) {\n // To save bundle size we're just try catching here instead of checking for the existence of all the different objects.\n }\n}\n", "import type { Client, Event, EventHint, EventItem, Integration, IntegrationClass, IntegrationFn } from '@sentry/types';\nimport { forEachEnvelopeItem } from '@sentry/utils';\nimport { convertIntegrationFnToClass, defineIntegration } from '../integration';\n\nimport { addMetadataToStackFrames, stripMetadataFromStackFrames } from '../metadata';\n\nconst INTEGRATION_NAME = 'ModuleMetadata';\n\nconst _moduleMetadataIntegration = (() => {\n return {\n name: INTEGRATION_NAME,\n // TODO v8: Remove this\n setupOnce() {}, // eslint-disable-line @typescript-eslint/no-empty-function\n setup(client) {\n if (typeof client.on !== 'function') {\n return;\n }\n\n // We need to strip metadata from stack frames before sending them to Sentry since these are client side only.\n client.on('beforeEnvelope', envelope => {\n forEachEnvelopeItem(envelope, (item, type) => {\n if (type === 'event') {\n const event = Array.isArray(item) ? (item as EventItem)[1] : undefined;\n\n if (event) {\n stripMetadataFromStackFrames(event);\n item[1] = event;\n }\n }\n });\n });\n },\n\n processEvent(event, _hint, client) {\n const stackParser = client.getOptions().stackParser;\n addMetadataToStackFrames(stackParser, event);\n return event;\n },\n };\n}) satisfies IntegrationFn;\n\nexport const moduleMetadataIntegration = defineIntegration(_moduleMetadataIntegration);\n\n/**\n * Adds module metadata to stack frames.\n *\n * Metadata can be injected by the Sentry bundler plugins using the `_experiments.moduleMetadata` config option.\n *\n * When this integration is added, the metadata passed to the bundler plugin is added to the stack frames of all events\n * under the `module_metadata` property. This can be used to help in tagging or routing of events from different teams\n * our sources\n *\n * @deprecated Use `moduleMetadataIntegration()` instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport const ModuleMetadata = convertIntegrationFnToClass(\n INTEGRATION_NAME,\n moduleMetadataIntegration,\n) as IntegrationClass<\n Integration & {\n setup: (client: Client) => void;\n processEvent: (event: Event, hint: EventHint, client: Client) => Event;\n }\n>;\n", "import type {\n Client,\n Event,\n EventHint,\n Integration,\n IntegrationClass,\n IntegrationFn,\n Transaction,\n} from '@sentry/types';\nimport type { AddRequestDataToEventOptions, TransactionNamingScheme } from '@sentry/utils';\nimport { addRequestDataToEvent, extractPathForTransaction } from '@sentry/utils';\nimport { convertIntegrationFnToClass, defineIntegration } from '../integration';\nimport { spanToJSON } from '../utils/spanUtils';\n\nexport type RequestDataIntegrationOptions = {\n /**\n * Controls what data is pulled from the request and added to the event\n */\n include?: {\n cookies?: boolean;\n data?: boolean;\n headers?: boolean;\n ip?: boolean;\n query_string?: boolean;\n url?: boolean;\n user?:\n | boolean\n | {\n id?: boolean;\n username?: boolean;\n email?: boolean;\n };\n };\n\n /** Whether to identify transactions by parameterized path, parameterized path with method, or handler name */\n transactionNamingScheme?: TransactionNamingScheme;\n};\n\nconst DEFAULT_OPTIONS = {\n include: {\n cookies: true,\n data: true,\n headers: true,\n ip: false,\n query_string: true,\n url: true,\n user: {\n id: true,\n username: true,\n email: true,\n },\n },\n transactionNamingScheme: 'methodPath',\n};\n\nconst INTEGRATION_NAME = 'RequestData';\n\nconst _requestDataIntegration = ((options: RequestDataIntegrationOptions = {}) => {\n const _addRequestData = addRequestDataToEvent;\n const _options: Required = {\n ...DEFAULT_OPTIONS,\n ...options,\n include: {\n // @ts-expect-error It's mad because `method` isn't a known `include` key. (It's only here and not set by default in\n // `addRequestDataToEvent` for legacy reasons. TODO (v8): Change that.)\n method: true,\n ...DEFAULT_OPTIONS.include,\n ...options.include,\n user:\n options.include && typeof options.include.user === 'boolean'\n ? options.include.user\n : {\n ...DEFAULT_OPTIONS.include.user,\n // Unclear why TS still thinks `options.include.user` could be a boolean at this point\n ...((options.include || {}).user as Record),\n },\n },\n };\n\n return {\n name: INTEGRATION_NAME,\n // TODO v8: Remove this\n setupOnce() {}, // eslint-disable-line @typescript-eslint/no-empty-function\n processEvent(event, _hint, client) {\n // Note: In the long run, most of the logic here should probably move into the request data utility functions. For\n // the moment it lives here, though, until https://github.com/getsentry/sentry-javascript/issues/5718 is addressed.\n // (TL;DR: Those functions touch many parts of the repo in many different ways, and need to be clened up. Once\n // that's happened, it will be easier to add this logic in without worrying about unexpected side effects.)\n const { transactionNamingScheme } = _options;\n\n const { sdkProcessingMetadata = {} } = event;\n const req = sdkProcessingMetadata.request;\n\n if (!req) {\n return event;\n }\n\n // The Express request handler takes a similar `include` option to that which can be passed to this integration.\n // If passed there, we store it in `sdkProcessingMetadata`. TODO(v8): Force express and GCP people to use this\n // integration, so that all of this passing and conversion isn't necessary\n const addRequestDataOptions =\n sdkProcessingMetadata.requestDataOptionsFromExpressHandler ||\n sdkProcessingMetadata.requestDataOptionsFromGCPWrapper ||\n convertReqDataIntegrationOptsToAddReqDataOpts(_options);\n\n const processedEvent = _addRequestData(event, req, addRequestDataOptions);\n\n // Transaction events already have the right `transaction` value\n if (event.type === 'transaction' || transactionNamingScheme === 'handler') {\n return processedEvent;\n }\n\n // In all other cases, use the request's associated transaction (if any) to overwrite the event's `transaction`\n // value with a high-quality one\n const reqWithTransaction = req as { _sentryTransaction?: Transaction };\n const transaction = reqWithTransaction._sentryTransaction;\n if (transaction) {\n const name = spanToJSON(transaction).description || '';\n\n // TODO (v8): Remove the nextjs check and just base it on `transactionNamingScheme` for all SDKs. (We have to\n // keep it the way it is for the moment, because changing the names of transactions in Sentry has the potential\n // to break things like alert rules.)\n const shouldIncludeMethodInTransactionName =\n getSDKName(client) === 'sentry.javascript.nextjs'\n ? name.startsWith('/api')\n : transactionNamingScheme !== 'path';\n\n const [transactionValue] = extractPathForTransaction(req, {\n path: true,\n method: shouldIncludeMethodInTransactionName,\n customRoute: name,\n });\n\n processedEvent.transaction = transactionValue;\n }\n\n return processedEvent;\n },\n };\n}) satisfies IntegrationFn;\n\nexport const requestDataIntegration = defineIntegration(_requestDataIntegration);\n\n/**\n * Add data about a request to an event. Primarily for use in Node-based SDKs, but included in `@sentry/integrations`\n * so it can be used in cross-platform SDKs like `@sentry/nextjs`.\n * @deprecated Use `requestDataIntegration()` instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport const RequestData = convertIntegrationFnToClass(INTEGRATION_NAME, requestDataIntegration) as IntegrationClass<\n Integration & { processEvent: (event: Event, hint: EventHint, client: Client) => Event }\n> & {\n new (options?: {\n /**\n * Controls what data is pulled from the request and added to the event\n */\n include?: {\n cookies?: boolean;\n data?: boolean;\n headers?: boolean;\n ip?: boolean;\n query_string?: boolean;\n url?: boolean;\n user?:\n | boolean\n | {\n id?: boolean;\n username?: boolean;\n email?: boolean;\n };\n };\n\n /** Whether to identify transactions by parameterized path, parameterized path with method, or handler name */\n transactionNamingScheme?: TransactionNamingScheme;\n }): Integration;\n};\n\n/** Convert this integration's options to match what `addRequestDataToEvent` expects */\n/** TODO: Can possibly be deleted once https://github.com/getsentry/sentry-javascript/issues/5718 is fixed */\nfunction convertReqDataIntegrationOptsToAddReqDataOpts(\n integrationOptions: Required,\n): AddRequestDataToEventOptions {\n const {\n transactionNamingScheme,\n include: { ip, user, ...requestOptions },\n } = integrationOptions;\n\n const requestIncludeKeys: string[] = [];\n for (const [key, value] of Object.entries(requestOptions)) {\n if (value) {\n requestIncludeKeys.push(key);\n }\n }\n\n let addReqDataUserOpt;\n if (user === undefined) {\n addReqDataUserOpt = true;\n } else if (typeof user === 'boolean') {\n addReqDataUserOpt = user;\n } else {\n const userIncludeKeys: string[] = [];\n for (const [key, value] of Object.entries(user)) {\n if (value) {\n userIncludeKeys.push(key);\n }\n }\n addReqDataUserOpt = userIncludeKeys;\n }\n\n return {\n include: {\n ip,\n user: addReqDataUserOpt,\n request: requestIncludeKeys.length !== 0 ? requestIncludeKeys : undefined,\n transaction: transactionNamingScheme,\n },\n };\n}\n\nfunction getSDKName(client: Client): string | undefined {\n try {\n // For a long chain like this, it's fewer bytes to combine a try-catch with assuming everything is there than to\n // write out a long chain of `a && a.b && a.b.c && ...`\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return client.getOptions()._metadata!.sdk!.name;\n } catch (err) {\n // In theory we should never get here\n return undefined;\n }\n}\n", "import type { Client, Event, EventHint, Integration, IntegrationClass, IntegrationFn, StackFrame } from '@sentry/types';\nimport { getEventDescription, logger, stringMatchesSomePattern } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../debug-build';\nimport { convertIntegrationFnToClass, defineIntegration } from '../integration';\n\n// \"Script error.\" is hard coded into browsers for errors that it can't read.\n// this is the result of a script being pulled in from an external domain and CORS.\nconst DEFAULT_IGNORE_ERRORS = [\n /^Script error\\.?$/,\n /^Javascript error: Script error\\.? on line 0$/,\n /^ResizeObserver loop completed with undelivered notifications.$/,\n /^Cannot redefine property: googletag$/,\n];\n\nconst DEFAULT_IGNORE_TRANSACTIONS = [\n /^.*\\/healthcheck$/,\n /^.*\\/healthy$/,\n /^.*\\/live$/,\n /^.*\\/ready$/,\n /^.*\\/heartbeat$/,\n /^.*\\/health$/,\n /^.*\\/healthz$/,\n];\n\n/** Options for the InboundFilters integration */\nexport interface InboundFiltersOptions {\n allowUrls: Array;\n denyUrls: Array;\n ignoreErrors: Array;\n ignoreTransactions: Array;\n ignoreInternal: boolean;\n disableErrorDefaults: boolean;\n disableTransactionDefaults: boolean;\n}\n\nconst INTEGRATION_NAME = 'InboundFilters';\nconst _inboundFiltersIntegration = ((options: Partial = {}) => {\n return {\n name: INTEGRATION_NAME,\n // TODO v8: Remove this\n setupOnce() {}, // eslint-disable-line @typescript-eslint/no-empty-function\n processEvent(event, _hint, client) {\n const clientOptions = client.getOptions();\n const mergedOptions = _mergeOptions(options, clientOptions);\n return _shouldDropEvent(event, mergedOptions) ? null : event;\n },\n };\n}) satisfies IntegrationFn;\n\nexport const inboundFiltersIntegration = defineIntegration(_inboundFiltersIntegration);\n\n/**\n * Inbound filters configurable by the user.\n * @deprecated Use `inboundFiltersIntegration()` instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport const InboundFilters = convertIntegrationFnToClass(\n INTEGRATION_NAME,\n inboundFiltersIntegration,\n) as IntegrationClass void }> & {\n new (\n options?: Partial<{\n allowUrls: Array;\n denyUrls: Array;\n ignoreErrors: Array;\n ignoreTransactions: Array;\n ignoreInternal: boolean;\n disableErrorDefaults: boolean;\n disableTransactionDefaults: boolean;\n }>,\n ): Integration;\n};\n\nfunction _mergeOptions(\n internalOptions: Partial = {},\n clientOptions: Partial = {},\n): Partial {\n return {\n allowUrls: [...(internalOptions.allowUrls || []), ...(clientOptions.allowUrls || [])],\n denyUrls: [...(internalOptions.denyUrls || []), ...(clientOptions.denyUrls || [])],\n ignoreErrors: [\n ...(internalOptions.ignoreErrors || []),\n ...(clientOptions.ignoreErrors || []),\n ...(internalOptions.disableErrorDefaults ? [] : DEFAULT_IGNORE_ERRORS),\n ],\n ignoreTransactions: [\n ...(internalOptions.ignoreTransactions || []),\n ...(clientOptions.ignoreTransactions || []),\n ...(internalOptions.disableTransactionDefaults ? [] : DEFAULT_IGNORE_TRANSACTIONS),\n ],\n ignoreInternal: internalOptions.ignoreInternal !== undefined ? internalOptions.ignoreInternal : true,\n };\n}\n\nfunction _shouldDropEvent(event: Event, options: Partial): boolean {\n if (options.ignoreInternal && _isSentryError(event)) {\n DEBUG_BUILD &&\n logger.warn(`Event dropped due to being internal Sentry Error.\\nEvent: ${getEventDescription(event)}`);\n return true;\n }\n if (_isIgnoredError(event, options.ignoreErrors)) {\n DEBUG_BUILD &&\n logger.warn(\n `Event dropped due to being matched by \\`ignoreErrors\\` option.\\nEvent: ${getEventDescription(event)}`,\n );\n return true;\n }\n if (_isIgnoredTransaction(event, options.ignoreTransactions)) {\n DEBUG_BUILD &&\n logger.warn(\n `Event dropped due to being matched by \\`ignoreTransactions\\` option.\\nEvent: ${getEventDescription(event)}`,\n );\n return true;\n }\n if (_isDeniedUrl(event, options.denyUrls)) {\n DEBUG_BUILD &&\n logger.warn(\n `Event dropped due to being matched by \\`denyUrls\\` option.\\nEvent: ${getEventDescription(\n event,\n )}.\\nUrl: ${_getEventFilterUrl(event)}`,\n );\n return true;\n }\n if (!_isAllowedUrl(event, options.allowUrls)) {\n DEBUG_BUILD &&\n logger.warn(\n `Event dropped due to not being matched by \\`allowUrls\\` option.\\nEvent: ${getEventDescription(\n event,\n )}.\\nUrl: ${_getEventFilterUrl(event)}`,\n );\n return true;\n }\n return false;\n}\n\nfunction _isIgnoredError(event: Event, ignoreErrors?: Array): boolean {\n // If event.type, this is not an error\n if (event.type || !ignoreErrors || !ignoreErrors.length) {\n return false;\n }\n\n return _getPossibleEventMessages(event).some(message => stringMatchesSomePattern(message, ignoreErrors));\n}\n\nfunction _isIgnoredTransaction(event: Event, ignoreTransactions?: Array): boolean {\n if (event.type !== 'transaction' || !ignoreTransactions || !ignoreTransactions.length) {\n return false;\n }\n\n const name = event.transaction;\n return name ? stringMatchesSomePattern(name, ignoreTransactions) : false;\n}\n\nfunction _isDeniedUrl(event: Event, denyUrls?: Array): boolean {\n // TODO: Use Glob instead?\n if (!denyUrls || !denyUrls.length) {\n return false;\n }\n const url = _getEventFilterUrl(event);\n return !url ? false : stringMatchesSomePattern(url, denyUrls);\n}\n\nfunction _isAllowedUrl(event: Event, allowUrls?: Array): boolean {\n // TODO: Use Glob instead?\n if (!allowUrls || !allowUrls.length) {\n return true;\n }\n const url = _getEventFilterUrl(event);\n return !url ? true : stringMatchesSomePattern(url, allowUrls);\n}\n\nfunction _getPossibleEventMessages(event: Event): string[] {\n const possibleMessages: string[] = [];\n\n if (event.message) {\n possibleMessages.push(event.message);\n }\n\n let lastException;\n try {\n // @ts-expect-error Try catching to save bundle size\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n lastException = event.exception.values[event.exception.values.length - 1];\n } catch (e) {\n // try catching to save bundle size checking existence of variables\n }\n\n if (lastException) {\n if (lastException.value) {\n possibleMessages.push(lastException.value);\n if (lastException.type) {\n possibleMessages.push(`${lastException.type}: ${lastException.value}`);\n }\n }\n }\n\n if (DEBUG_BUILD && possibleMessages.length === 0) {\n logger.error(`Could not extract message for event ${getEventDescription(event)}`);\n }\n\n return possibleMessages;\n}\n\nfunction _isSentryError(event: Event): boolean {\n try {\n // @ts-expect-error can't be a sentry error if undefined\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return event.exception.values[0].type === 'SentryError';\n } catch (e) {\n // ignore\n }\n return false;\n}\n\nfunction _getLastValidUrl(frames: StackFrame[] = []): string | null {\n for (let i = frames.length - 1; i >= 0; i--) {\n const frame = frames[i];\n\n if (frame && frame.filename !== '' && frame.filename !== '[native code]') {\n return frame.filename || null;\n }\n }\n\n return null;\n}\n\nfunction _getEventFilterUrl(event: Event): string | null {\n try {\n let frames;\n try {\n // @ts-expect-error we only care about frames if the whole thing here is defined\n frames = event.exception.values[0].stacktrace.frames;\n } catch (e) {\n // ignore\n }\n return frames ? _getLastValidUrl(frames) : null;\n } catch (oO) {\n DEBUG_BUILD && logger.error(`Cannot extract url for event ${getEventDescription(event)}`);\n return null;\n }\n}\n", "import type { Client, Integration, IntegrationClass, IntegrationFn, WrappedFunction } from '@sentry/types';\nimport { getOriginalFunction } from '@sentry/utils';\nimport { getClient } from '../exports';\nimport { convertIntegrationFnToClass, defineIntegration } from '../integration';\n\nlet originalFunctionToString: () => void;\n\nconst INTEGRATION_NAME = 'FunctionToString';\n\nconst SETUP_CLIENTS = new WeakMap();\n\nconst _functionToStringIntegration = (() => {\n return {\n name: INTEGRATION_NAME,\n setupOnce() {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n originalFunctionToString = Function.prototype.toString;\n\n // intrinsics (like Function.prototype) might be immutable in some environments\n // e.g. Node with --frozen-intrinsics, XS (an embedded JavaScript engine) or SES (a JavaScript proposal)\n try {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n Function.prototype.toString = function (this: WrappedFunction, ...args: any[]): string {\n const originalFunction = getOriginalFunction(this);\n const context =\n SETUP_CLIENTS.has(getClient() as Client) && originalFunction !== undefined ? originalFunction : this;\n return originalFunctionToString.apply(context, args);\n };\n } catch {\n // ignore errors here, just don't patch this\n }\n },\n setup(client) {\n SETUP_CLIENTS.set(client, true);\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Patch toString calls to return proper name for wrapped functions.\n *\n * ```js\n * Sentry.init({\n * integrations: [\n * functionToStringIntegration(),\n * ],\n * });\n * ```\n */\nexport const functionToStringIntegration = defineIntegration(_functionToStringIntegration);\n\n/**\n * Patch toString calls to return proper name for wrapped functions.\n *\n * @deprecated Use `functionToStringIntegration()` instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport const FunctionToString = convertIntegrationFnToClass(\n INTEGRATION_NAME,\n functionToStringIntegration,\n) as IntegrationClass void }>;\n\n// eslint-disable-next-line deprecation/deprecation\nexport type FunctionToString = typeof FunctionToString;\n", "import type { Client, Event, EventHint, Integration, IntegrationClass, IntegrationFn } from '@sentry/types';\nimport { applyAggregateErrorsToEvent, exceptionFromError } from '@sentry/utils';\nimport { convertIntegrationFnToClass, defineIntegration } from '../integration';\n\ninterface LinkedErrorsOptions {\n key?: string;\n limit?: number;\n}\n\nconst DEFAULT_KEY = 'cause';\nconst DEFAULT_LIMIT = 5;\n\nconst INTEGRATION_NAME = 'LinkedErrors';\n\nconst _linkedErrorsIntegration = ((options: LinkedErrorsOptions = {}) => {\n const limit = options.limit || DEFAULT_LIMIT;\n const key = options.key || DEFAULT_KEY;\n\n return {\n name: INTEGRATION_NAME,\n // TODO v8: Remove this\n setupOnce() {}, // eslint-disable-line @typescript-eslint/no-empty-function\n preprocessEvent(event, hint, client) {\n const options = client.getOptions();\n\n applyAggregateErrorsToEvent(\n exceptionFromError,\n options.stackParser,\n options.maxValueLength,\n key,\n limit,\n event,\n hint,\n );\n },\n };\n}) satisfies IntegrationFn;\n\nexport const linkedErrorsIntegration = defineIntegration(_linkedErrorsIntegration);\n\n/**\n * Adds SDK info to an event.\n * @deprecated Use `linkedErrorsIntegration()` instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport const LinkedErrors = convertIntegrationFnToClass(INTEGRATION_NAME, linkedErrorsIntegration) as IntegrationClass<\n Integration & { preprocessEvent: (event: Event, hint: EventHint, client: Client) => void }\n> & { new (options?: { key?: string; limit?: number }): Integration };\n", "import type { Client, ClientOptions, MeasurementUnit, MetricsAggregator, Primitive } from '@sentry/types';\nimport { timestampInSeconds } from '@sentry/utils';\nimport { DEFAULT_BROWSER_FLUSH_INTERVAL, SET_METRIC_TYPE } from './constants';\nimport { METRIC_MAP } from './instance';\nimport { updateMetricSummaryOnActiveSpan } from './metric-summary';\nimport type { MetricBucket, MetricType } from './types';\nimport { getBucketKey, sanitizeMetricKey, sanitizeTags, sanitizeUnit } from './utils';\n\n/**\n * A simple metrics aggregator that aggregates metrics in memory and flushes them periodically.\n * Default flush interval is 5 seconds.\n *\n * @experimental This API is experimental and might change in the future.\n */\nexport class BrowserMetricsAggregator implements MetricsAggregator {\n // TODO(@anonrig): Use FinalizationRegistry to have a proper way of flushing the buckets\n // when the aggregator is garbage collected.\n // Ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry\n private _buckets: MetricBucket;\n private readonly _interval: ReturnType;\n\n public constructor(private readonly _client: Client) {\n this._buckets = new Map();\n this._interval = setInterval(() => this.flush(), DEFAULT_BROWSER_FLUSH_INTERVAL);\n }\n\n /**\n * @inheritDoc\n */\n public add(\n metricType: MetricType,\n unsanitizedName: string,\n value: number | string,\n unsanitizedUnit: MeasurementUnit | undefined = 'none',\n unsanitizedTags: Record | undefined = {},\n maybeFloatTimestamp: number | undefined = timestampInSeconds(),\n ): void {\n const timestamp = Math.floor(maybeFloatTimestamp);\n const name = sanitizeMetricKey(unsanitizedName);\n const tags = sanitizeTags(unsanitizedTags);\n const unit = sanitizeUnit(unsanitizedUnit as string);\n\n const bucketKey = getBucketKey(metricType, name, unit, tags);\n\n let bucketItem = this._buckets.get(bucketKey);\n // If this is a set metric, we need to calculate the delta from the previous weight.\n const previousWeight = bucketItem && metricType === SET_METRIC_TYPE ? bucketItem.metric.weight : 0;\n\n if (bucketItem) {\n bucketItem.metric.add(value);\n // TODO(abhi): Do we need this check?\n if (bucketItem.timestamp < timestamp) {\n bucketItem.timestamp = timestamp;\n }\n } else {\n bucketItem = {\n // @ts-expect-error we don't need to narrow down the type of value here, saves bundle size.\n metric: new METRIC_MAP[metricType](value),\n timestamp,\n metricType,\n name,\n unit,\n tags,\n };\n this._buckets.set(bucketKey, bucketItem);\n }\n\n // If value is a string, it's a set metric so calculate the delta from the previous weight.\n const val = typeof value === 'string' ? bucketItem.metric.weight - previousWeight : value;\n updateMetricSummaryOnActiveSpan(metricType, name, val, unit, unsanitizedTags, bucketKey);\n }\n\n /**\n * @inheritDoc\n */\n public flush(): void {\n // short circuit if buckets are empty.\n if (this._buckets.size === 0) {\n return;\n }\n\n if (this._client.captureAggregateMetrics) {\n // TODO(@anonrig): Use Object.values() when we support ES6+\n const metricBuckets = Array.from(this._buckets).map(([, bucketItem]) => bucketItem);\n this._client.captureAggregateMetrics(metricBuckets);\n }\n\n this._buckets.clear();\n }\n\n /**\n * @inheritDoc\n */\n public close(): void {\n clearInterval(this._interval);\n this.flush();\n }\n}\n", "import type { Client, ClientOptions, Integration, IntegrationClass, IntegrationFn } from '@sentry/types';\nimport type { BaseClient } from '../baseclient';\nimport { convertIntegrationFnToClass, defineIntegration } from '../integration';\nimport { BrowserMetricsAggregator } from './browser-aggregator';\n\nconst INTEGRATION_NAME = 'MetricsAggregator';\n\nconst _metricsAggregatorIntegration = (() => {\n return {\n name: INTEGRATION_NAME,\n // TODO v8: Remove this\n setupOnce() {}, // eslint-disable-line @typescript-eslint/no-empty-function\n setup(client: BaseClient) {\n client.metricsAggregator = new BrowserMetricsAggregator(client);\n },\n };\n}) satisfies IntegrationFn;\n\nexport const metricsAggregatorIntegration = defineIntegration(_metricsAggregatorIntegration);\n\n/**\n * Enables Sentry metrics monitoring.\n *\n * @experimental This API is experimental and might having breaking changes in the future.\n * @deprecated Use `metricsAggegratorIntegration()` instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport const MetricsAggregator = convertIntegrationFnToClass(\n INTEGRATION_NAME,\n metricsAggregatorIntegration,\n) as IntegrationClass void }>;\n", "import type { ClientOptions, MeasurementUnit, Primitive } from '@sentry/types';\nimport { logger } from '@sentry/utils';\nimport type { BaseClient } from '../baseclient';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { getClient, getCurrentScope } from '../exports';\nimport { spanToJSON } from '../utils/spanUtils';\nimport { COUNTER_METRIC_TYPE, DISTRIBUTION_METRIC_TYPE, GAUGE_METRIC_TYPE, SET_METRIC_TYPE } from './constants';\nimport { MetricsAggregator, metricsAggregatorIntegration } from './integration';\nimport type { MetricType } from './types';\n\ninterface MetricData {\n unit?: MeasurementUnit;\n tags?: Record;\n timestamp?: number;\n}\n\nfunction addToMetricsAggregator(\n metricType: MetricType,\n name: string,\n value: number | string,\n data: MetricData | undefined = {},\n): void {\n const client = getClient>();\n const scope = getCurrentScope();\n if (client) {\n if (!client.metricsAggregator) {\n DEBUG_BUILD &&\n logger.warn('No metrics aggregator enabled. Please add the MetricsAggregator integration to use metrics APIs');\n return;\n }\n const { unit, tags, timestamp } = data;\n const { release, environment } = client.getOptions();\n // eslint-disable-next-line deprecation/deprecation\n const transaction = scope.getTransaction();\n const metricTags: Record = {};\n if (release) {\n metricTags.release = release;\n }\n if (environment) {\n metricTags.environment = environment;\n }\n if (transaction) {\n metricTags.transaction = spanToJSON(transaction).description || '';\n }\n\n DEBUG_BUILD && logger.log(`Adding value of ${value} to ${metricType} metric ${name}`);\n client.metricsAggregator.add(metricType, name, value, unit, { ...metricTags, ...tags }, timestamp);\n }\n}\n\n/**\n * Adds a value to a counter metric\n *\n * @experimental This API is experimental and might have breaking changes in the future.\n */\nexport function increment(name: string, value: number = 1, data?: MetricData): void {\n addToMetricsAggregator(COUNTER_METRIC_TYPE, name, value, data);\n}\n\n/**\n * Adds a value to a distribution metric\n *\n * @experimental This API is experimental and might have breaking changes in the future.\n */\nexport function distribution(name: string, value: number, data?: MetricData): void {\n addToMetricsAggregator(DISTRIBUTION_METRIC_TYPE, name, value, data);\n}\n\n/**\n * Adds a value to a set metric. Value must be a string or integer.\n *\n * @experimental This API is experimental and might have breaking changes in the future.\n */\nexport function set(name: string, value: number | string, data?: MetricData): void {\n addToMetricsAggregator(SET_METRIC_TYPE, name, value, data);\n}\n\n/**\n * Adds a value to a gauge metric\n *\n * @experimental This API is experimental and might have breaking changes in the future.\n */\nexport function gauge(name: string, value: number, data?: MetricData): void {\n addToMetricsAggregator(GAUGE_METRIC_TYPE, name, value, data);\n}\n\nexport const metrics = {\n increment,\n distribution,\n set,\n gauge,\n /** @deprecated Use `metrics.metricsAggregratorIntegration()` instead. */\n // eslint-disable-next-line deprecation/deprecation\n MetricsAggregator,\n metricsAggregatorIntegration,\n};\n", "export type { ClientClass } from './sdk';\nexport type { AsyncContextStrategy, Carrier, Layer, RunWithAsyncContextOptions } from './hub';\nexport type { OfflineStore, OfflineTransportOptions } from './transports/offline';\nexport type { ServerRuntimeClientOptions } from './server-runtime-client';\nexport type { RequestDataIntegrationOptions } from './integrations/requestdata';\nexport type { IntegrationIndex } from './integration';\n\nexport * from './tracing';\nexport * from './semanticAttributes';\nexport { createEventEnvelope, createSessionEnvelope } from './envelope';\nexport {\n addBreadcrumb,\n captureCheckIn,\n withMonitor,\n captureException,\n captureEvent,\n captureMessage,\n close,\n // eslint-disable-next-line deprecation/deprecation\n configureScope,\n flush,\n lastEventId,\n // eslint-disable-next-line deprecation/deprecation\n startTransaction,\n setContext,\n setExtra,\n setExtras,\n setTag,\n setTags,\n setUser,\n withScope,\n withIsolationScope,\n getClient,\n isInitialized,\n getCurrentScope,\n startSession,\n endSession,\n captureSession,\n withActiveSpan,\n} from './exports';\nexport {\n // eslint-disable-next-line deprecation/deprecation\n getCurrentHub,\n getIsolationScope,\n getHubFromCarrier,\n // eslint-disable-next-line deprecation/deprecation\n Hub,\n // eslint-disable-next-line deprecation/deprecation\n makeMain,\n getMainCarrier,\n runWithAsyncContext,\n setHubOnCarrier,\n ensureHubOnCarrier,\n setAsyncContextStrategy,\n} from './hub';\nexport { makeSession, closeSession, updateSession } from './session';\nexport { SessionFlusher } from './sessionflusher';\nexport { Scope, getGlobalScope, setGlobalScope } from './scope';\nexport {\n notifyEventProcessors,\n // eslint-disable-next-line deprecation/deprecation\n addGlobalEventProcessor,\n} from './eventProcessors';\nexport { getEnvelopeEndpointWithUrlEncodedAuth, getReportDialogEndpoint } from './api';\nexport { BaseClient, addEventProcessor } from './baseclient';\nexport { ServerRuntimeClient } from './server-runtime-client';\nexport { initAndBind, setCurrentClient } from './sdk';\nexport { createTransport } from './transports/base';\nexport { makeOfflineTransport } from './transports/offline';\nexport { makeMultiplexedTransport } from './transports/multiplexed';\nexport { SDK_VERSION } from './version';\nexport {\n getIntegrationsToSetup,\n addIntegration,\n defineIntegration,\n // eslint-disable-next-line deprecation/deprecation\n convertIntegrationFnToClass,\n} from './integration';\nexport { applyScopeDataToEvent, mergeScopeData } from './utils/applyScopeDataToEvent';\nexport { prepareEvent } from './utils/prepareEvent';\nexport { createCheckInEnvelope } from './checkin';\nexport { createSpanEnvelope } from './span';\nexport { hasTracingEnabled } from './utils/hasTracingEnabled';\nexport { isSentryRequestUrl } from './utils/isSentryRequestUrl';\nexport { handleCallbackErrors } from './utils/handleCallbackErrors';\nexport { parameterize } from './utils/parameterize';\nexport { spanToTraceHeader, spanToJSON, spanIsSampled, spanToTraceContext } from './utils/spanUtils';\nexport { getRootSpan } from './utils/getRootSpan';\nexport { applySdkMetadata } from './utils/sdkMetadata';\nexport { DEFAULT_ENVIRONMENT } from './constants';\n/* eslint-disable deprecation/deprecation */\nexport { ModuleMetadata } from './integrations/metadata';\nexport { RequestData } from './integrations/requestdata';\nexport { InboundFilters } from './integrations/inboundfilters';\nexport { FunctionToString } from './integrations/functiontostring';\nexport { LinkedErrors } from './integrations/linkederrors';\n/* eslint-enable deprecation/deprecation */\nimport * as INTEGRATIONS from './integrations';\nexport { functionToStringIntegration } from './integrations/functiontostring';\nexport { inboundFiltersIntegration } from './integrations/inboundfilters';\nexport { linkedErrorsIntegration } from './integrations/linkederrors';\nexport { moduleMetadataIntegration } from './integrations/metadata';\nexport { requestDataIntegration } from './integrations/requestdata';\nexport { metrics } from './metrics/exports';\n\n/** @deprecated Import the integration function directly, e.g. `inboundFiltersIntegration()` instead of `new Integrations.InboundFilter(). */\nconst Integrations = INTEGRATIONS;\n\n// eslint-disable-next-line deprecation/deprecation\nexport { Integrations };\n", "declare const __DEBUG_BUILD__: boolean;\n\n/**\n * This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.\n *\n * ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.\n */\nexport const DEBUG_BUILD = __DEBUG_BUILD__;\n", "import type { Hub } from '@sentry/types';\n\n/**\n * Check if Sentry auto-instrumentation should be disabled.\n *\n * @param getCurrentHub A method to fetch the current hub\n * @returns boolean\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function shouldDisableAutoInstrumentation(getCurrentHub: () => Hub): boolean {\n // eslint-disable-next-line deprecation/deprecation\n const clientOptions = getCurrentHub().getClient()?.getOptions();\n const instrumenter = clientOptions?.instrumenter || 'sentry';\n\n return instrumenter !== 'sentry';\n}\n", "/* eslint-disable max-lines */\nimport { SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, spanToJSON } from '@sentry/core';\nimport type { Hub, Integration, PolymorphicRequest, Transaction } from '@sentry/types';\nimport {\n GLOBAL_OBJ,\n extractPathForTransaction,\n getNumberOfUrlSegments,\n isRegExp,\n logger,\n stripUrlQueryAndFragment,\n} from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../../common/debug-build';\nimport { shouldDisableAutoInstrumentation } from './utils/node-utils';\n\ntype Method =\n | 'all'\n | 'get'\n | 'post'\n | 'put'\n | 'delete'\n | 'patch'\n | 'options'\n | 'head'\n | 'checkout'\n | 'copy'\n | 'lock'\n | 'merge'\n | 'mkactivity'\n | 'mkcol'\n | 'move'\n | 'm-search'\n | 'notify'\n | 'purge'\n | 'report'\n | 'search'\n | 'subscribe'\n | 'trace'\n | 'unlock'\n | 'unsubscribe'\n | 'use';\n\ntype Router = {\n [method in Method]: (...args: any) => any; // eslint-disable-line @typescript-eslint/no-explicit-any\n};\n\n/* Extend the PolymorphicRequest type with a patched parameter to build a reconstructed route */\ntype PatchedRequest = PolymorphicRequest & { _reconstructedRoute?: string; _hasParameters?: boolean };\n\n/* Types used for patching the express router prototype */\ntype ExpressRouter = Router & {\n _router?: ExpressRouter;\n stack?: Layer[];\n lazyrouter?: () => void;\n settings?: unknown;\n process_params: (\n layer: Layer,\n called: unknown,\n req: PatchedRequest,\n res: ExpressResponse,\n done: () => void,\n ) => unknown;\n};\n\ntype Layer = {\n match: (path: string) => boolean;\n handle_request: (req: PatchedRequest, res: ExpressResponse, next: () => void) => void;\n route?: { path: RouteType | RouteType[] };\n path?: string;\n regexp?: RegExp;\n keys?: { name: string | number; offset: number; optional: boolean }[];\n};\n\ntype RouteType = string | RegExp;\n\ninterface ExpressResponse {\n once(name: string, callback: () => void): void;\n}\n\n/**\n * Internal helper for `__sentry_transaction`\n * @hidden\n */\ninterface SentryTracingResponse {\n __sentry_transaction?: Transaction;\n}\n\n/**\n * Express integration\n *\n * Provides an request and error handler for Express framework as well as tracing capabilities\n */\nexport class Express implements Integration {\n /**\n * @inheritDoc\n */\n public static id: string = 'Express';\n\n /**\n * @inheritDoc\n */\n public name: string;\n\n /**\n * Express App instance\n */\n private readonly _router?: Router;\n private readonly _methods?: Method[];\n\n /**\n * @inheritDoc\n */\n public constructor(options: { app?: Router; router?: Router; methods?: Method[] } = {}) {\n this.name = Express.id;\n this._router = options.router || options.app;\n this._methods = (Array.isArray(options.methods) ? options.methods : []).concat('use');\n }\n\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line deprecation/deprecation\n public setupOnce(_: unknown, getCurrentHub: () => Hub): void {\n if (!this._router) {\n DEBUG_BUILD && logger.error('ExpressIntegration is missing an Express instance');\n return;\n }\n\n if (shouldDisableAutoInstrumentation(getCurrentHub)) {\n DEBUG_BUILD && logger.log('Express Integration is skipped because of instrumenter configuration.');\n return;\n }\n\n instrumentMiddlewares(this._router, this._methods);\n instrumentRouter(this._router as ExpressRouter);\n }\n}\n\n/**\n * Wraps original middleware function in a tracing call, which stores the info about the call as a span,\n * and finishes it once the middleware is done invoking.\n *\n * Express middlewares have 3 various forms, thus we have to take care of all of them:\n * // sync\n * app.use(function (req, res) { ... })\n * // async\n * app.use(function (req, res, next) { ... })\n * // error handler\n * app.use(function (err, req, res, next) { ... })\n *\n * They all internally delegate to the `router[method]` of the given application instance.\n */\n// eslint-disable-next-line @typescript-eslint/ban-types, @typescript-eslint/no-explicit-any\nfunction wrap(fn: Function, method: Method): (...args: any[]) => void {\n const arity = fn.length;\n\n switch (arity) {\n case 2: {\n return function (this: NodeJS.Global, req: unknown, res: ExpressResponse & SentryTracingResponse): void {\n const transaction = res.__sentry_transaction;\n if (transaction) {\n // eslint-disable-next-line deprecation/deprecation\n const span = transaction.startChild({\n description: fn.name,\n op: `middleware.express.${method}`,\n origin: 'auto.middleware.express',\n });\n res.once('finish', () => {\n span.end();\n });\n }\n return fn.call(this, req, res);\n };\n }\n case 3: {\n return function (\n this: NodeJS.Global,\n req: unknown,\n res: ExpressResponse & SentryTracingResponse,\n next: () => void,\n ): void {\n const transaction = res.__sentry_transaction;\n // eslint-disable-next-line deprecation/deprecation\n const span = transaction?.startChild({\n description: fn.name,\n op: `middleware.express.${method}`,\n origin: 'auto.middleware.express',\n });\n fn.call(this, req, res, function (this: NodeJS.Global, ...args: unknown[]): void {\n span?.end();\n next.call(this, ...args);\n });\n };\n }\n case 4: {\n return function (\n this: NodeJS.Global,\n err: Error,\n req: Request,\n res: Response & SentryTracingResponse,\n next: () => void,\n ): void {\n const transaction = res.__sentry_transaction;\n // eslint-disable-next-line deprecation/deprecation\n const span = transaction?.startChild({\n description: fn.name,\n op: `middleware.express.${method}`,\n origin: 'auto.middleware.express',\n });\n fn.call(this, err, req, res, function (this: NodeJS.Global, ...args: unknown[]): void {\n span?.end();\n next.call(this, ...args);\n });\n };\n }\n default: {\n throw new Error(`Express middleware takes 2-4 arguments. Got: ${arity}`);\n }\n }\n}\n\n/**\n * Takes all the function arguments passed to the original `app` or `router` method, eg. `app.use` or `router.use`\n * and wraps every function, as well as array of functions with a call to our `wrap` method.\n * We have to take care of the arrays as well as iterate over all of the arguments,\n * as `app.use` can accept middlewares in few various forms.\n *\n * app.use([], )\n * app.use([], , ...)\n * app.use([], ...[])\n */\nfunction wrapMiddlewareArgs(args: unknown[], method: Method): unknown[] {\n return args.map((arg: unknown) => {\n if (typeof arg === 'function') {\n return wrap(arg, method);\n }\n\n if (Array.isArray(arg)) {\n return arg.map((a: unknown) => {\n if (typeof a === 'function') {\n return wrap(a, method);\n }\n return a;\n });\n }\n\n return arg;\n });\n}\n\n/**\n * Patches original router to utilize our tracing functionality\n */\nfunction patchMiddleware(router: Router, method: Method): Router {\n const originalCallback = router[method];\n\n router[method] = function (...args: unknown[]): void {\n return originalCallback.call(this, ...wrapMiddlewareArgs(args, method));\n };\n\n return router;\n}\n\n/**\n * Patches original router methods\n */\nfunction instrumentMiddlewares(router: Router, methods: Method[] = []): void {\n methods.forEach((method: Method) => patchMiddleware(router, method));\n}\n\n/**\n * Patches the prototype of Express.Router to accumulate the resolved route\n * if a layer instance's `match` function was called and it returned a successful match.\n *\n * @see https://github.com/expressjs/express/blob/master/lib/router/index.js\n *\n * @param appOrRouter the router instance which can either be an app (i.e. top-level) or a (nested) router.\n */\nfunction instrumentRouter(appOrRouter: ExpressRouter): void {\n // This is how we can distinguish between app and routers\n const isApp = 'settings' in appOrRouter;\n\n // In case the app's top-level router hasn't been initialized yet, we have to do it now\n if (isApp && appOrRouter._router === undefined && appOrRouter.lazyrouter) {\n appOrRouter.lazyrouter();\n }\n\n const router = isApp ? appOrRouter._router : appOrRouter;\n\n if (!router) {\n /*\n If we end up here, this means likely that this integration is used with Express 3 or Express 5.\n For now, we don't support these versions (3 is very old and 5 is still in beta). To support Express 5,\n we'd need to make more changes to the routing instrumentation because the router is no longer part of\n the Express core package but maintained in its own package. The new router has different function\n signatures and works slightly differently, demanding more changes than just taking the router from\n `app.router` instead of `app._router`.\n @see https://github.com/pillarjs/router\n\n TODO: Proper Express 5 support\n */\n DEBUG_BUILD && logger.debug('Cannot instrument router for URL Parameterization (did not find a valid router).');\n DEBUG_BUILD && logger.debug('Routing instrumentation is currently only supported in Express 4.');\n return;\n }\n\n const routerProto = Object.getPrototypeOf(router) as ExpressRouter;\n\n const originalProcessParams = routerProto.process_params;\n routerProto.process_params = function process_params(\n layer: Layer,\n called: unknown,\n req: PatchedRequest,\n res: ExpressResponse & SentryTracingResponse,\n done: () => unknown,\n ) {\n // Base case: We're in the first part of the URL (thus we start with the root '/')\n if (!req._reconstructedRoute) {\n req._reconstructedRoute = '';\n }\n\n // If the layer's partial route has params, is a regex or an array, the route is stored in layer.route.\n const { layerRoutePath, isRegex, isArray, numExtraSegments }: LayerRoutePathInfo = getLayerRoutePathInfo(layer);\n\n if (layerRoutePath || isRegex || isArray) {\n req._hasParameters = true;\n }\n\n // Otherwise, the hardcoded path (i.e. a partial route without params) is stored in layer.path\n let partialRoute;\n\n if (layerRoutePath) {\n partialRoute = layerRoutePath;\n } else {\n /**\n * prevent duplicate segment in _reconstructedRoute param if router match multiple routes before final path\n * example:\n * original url: /api/v1/1234\n * prevent: /api/api/v1/:userId\n * router structure\n * /api -> middleware\n * /api/v1 -> middleware\n * /1234 -> endpoint with param :userId\n * final _reconstructedRoute is /api/v1/:userId\n */\n partialRoute = preventDuplicateSegments(req.originalUrl, req._reconstructedRoute, layer.path) || '';\n }\n\n // Normalize the partial route so that it doesn't contain leading or trailing slashes\n // and exclude empty or '*' wildcard routes.\n // The exclusion of '*' routes is our best effort to not \"pollute\" the transaction name\n // with interim handlers (e.g. ones that check authentication or do other middleware stuff).\n // We want to end up with the parameterized URL of the incoming request without any extraneous path segments.\n const finalPartialRoute = partialRoute\n .split('/')\n .filter(segment => segment.length > 0 && (isRegex || isArray || !segment.includes('*')))\n .join('/');\n\n // If we found a valid partial URL, we append it to the reconstructed route\n if (finalPartialRoute && finalPartialRoute.length > 0) {\n // If the partial route is from a regex route, we append a '/' to close the regex\n req._reconstructedRoute += `/${finalPartialRoute}${isRegex ? '/' : ''}`;\n }\n\n // Now we check if we are in the \"last\" part of the route. We determine this by comparing the\n // number of URL segments from the original URL to that of our reconstructed parameterized URL.\n // If we've reached our final destination, we update the transaction name.\n const urlLength = getNumberOfUrlSegments(stripUrlQueryAndFragment(req.originalUrl || '')) + numExtraSegments;\n const routeLength = getNumberOfUrlSegments(req._reconstructedRoute);\n\n if (urlLength === routeLength) {\n if (!req._hasParameters) {\n if (req._reconstructedRoute !== req.originalUrl) {\n req._reconstructedRoute = req.originalUrl ? stripUrlQueryAndFragment(req.originalUrl) : req.originalUrl;\n }\n }\n\n const transaction = res.__sentry_transaction;\n const attributes = (transaction && spanToJSON(transaction).data) || {};\n if (transaction && attributes[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE] !== 'custom') {\n // If the request URL is '/' or empty, the reconstructed route will be empty.\n // Therefore, we fall back to setting the final route to '/' in this case.\n const finalRoute = req._reconstructedRoute || '/';\n\n const [name, source] = extractPathForTransaction(req, { path: true, method: true, customRoute: finalRoute });\n transaction.updateName(name);\n transaction.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, source);\n }\n }\n\n return originalProcessParams.call(this, layer, called, req, res, done);\n };\n}\n\ntype LayerRoutePathInfo = {\n layerRoutePath?: string;\n isRegex: boolean;\n isArray: boolean;\n numExtraSegments: number;\n};\n\n/**\n * Recreate layer.route.path from layer.regexp and layer.keys.\n * Works until express.js used package path-to-regexp@0.1.7\n * or until layer.keys contain offset attribute\n *\n * @param layer the layer to extract the stringified route from\n *\n * @returns string in layer.route.path structure 'router/:pathParam' or undefined\n */\nexport const extractOriginalRoute = (\n path?: Layer['path'],\n regexp?: Layer['regexp'],\n keys?: Layer['keys'],\n): string | undefined => {\n if (!path || !regexp || !keys || Object.keys(keys).length === 0 || !keys[0]?.offset) {\n return undefined;\n }\n\n const orderedKeys = keys.sort((a, b) => a.offset - b.offset);\n\n // add d flag for getting indices from regexp result\n // eslint-disable-next-line @sentry-internal/sdk/no-regexp-constructor -- regexp comes from express.js\n const pathRegex = new RegExp(regexp, `${regexp.flags}d`);\n /**\n * use custom type cause of TS error with missing indices in RegExpExecArray\n */\n const execResult = pathRegex.exec(path) as (RegExpExecArray & { indices: [number, number][] }) | null;\n\n if (!execResult || !execResult.indices) {\n return undefined;\n }\n /**\n * remove first match from regex cause contain whole layer.path\n */\n const [, ...paramIndices] = execResult.indices;\n\n if (paramIndices.length !== orderedKeys.length) {\n return undefined;\n }\n let resultPath = path;\n let indexShift = 0;\n\n /**\n * iterate param matches from regexp.exec\n */\n paramIndices.forEach((item: [number, number] | undefined, index: number) => {\n /** check if offsets is define because in some cases regex d flag returns undefined */\n if (item) {\n const [startOffset, endOffset] = item;\n /**\n * isolate part before param\n */\n const substr1 = resultPath.substring(0, startOffset - indexShift);\n /**\n * define paramName as replacement in format :pathParam\n */\n const replacement = `:${orderedKeys[index].name}`;\n\n /**\n * isolate part after param\n */\n const substr2 = resultPath.substring(endOffset - indexShift);\n\n /**\n * recreate original path but with param replacement\n */\n resultPath = substr1 + replacement + substr2;\n\n /**\n * calculate new index shift after resultPath was modified\n */\n indexShift = indexShift + (endOffset - startOffset - replacement.length);\n }\n });\n\n return resultPath;\n};\n\n/**\n * Extracts and stringifies the layer's route which can either be a string with parameters (`users/:id`),\n * a RegEx (`/test/`) or an array of strings and regexes (`['/path1', /\\/path[2-5]/, /path/:id]`). Additionally\n * returns extra information about the route, such as if the route is defined as regex or as an array.\n *\n * @param layer the layer to extract the stringified route from\n *\n * @returns an object containing the stringified route, a flag determining if the route was a regex\n * and the number of extra segments to the matched path that are additionally in the route,\n * if the route was an array (defaults to 0).\n */\nfunction getLayerRoutePathInfo(layer: Layer): LayerRoutePathInfo {\n let lrp = layer.route?.path;\n\n const isRegex = isRegExp(lrp);\n const isArray = Array.isArray(lrp);\n\n if (!lrp) {\n // parse node.js major version\n // Next.js will complain if we directly use `proces.versions` here because of edge runtime.\n const [major] = (GLOBAL_OBJ as unknown as NodeJS.Global).process.versions.node.split('.').map(Number);\n\n // allow call extractOriginalRoute only if node version support Regex d flag, node 16+\n if (major >= 16) {\n /**\n * If lrp does not exist try to recreate original layer path from route regexp\n */\n lrp = extractOriginalRoute(layer.path, layer.regexp, layer.keys);\n }\n }\n\n if (!lrp) {\n return { isRegex, isArray, numExtraSegments: 0 };\n }\n\n const numExtraSegments = isArray\n ? Math.max(getNumberOfArrayUrlSegments(lrp as RouteType[]) - getNumberOfUrlSegments(layer.path || ''), 0)\n : 0;\n\n const layerRoutePath = getLayerRoutePathString(isArray, lrp);\n\n return { layerRoutePath, isRegex, isArray, numExtraSegments };\n}\n\n/**\n * Returns the number of URL segments in an array of routes\n *\n * Example: ['/api/test', /\\/api\\/post[0-9]/, '/users/:id/details`] -> 7\n */\nfunction getNumberOfArrayUrlSegments(routesArray: RouteType[]): number {\n return routesArray.reduce((accNumSegments: number, currentRoute: RouteType) => {\n // array members can be a RegEx -> convert them toString\n return accNumSegments + getNumberOfUrlSegments(currentRoute.toString());\n }, 0);\n}\n\n/**\n * Extracts and returns the stringified version of the layers route path\n * Handles route arrays (by joining the paths together) as well as RegExp and normal\n * string values (in the latter case the toString conversion is technically unnecessary but\n * it doesn't hurt us either).\n */\nfunction getLayerRoutePathString(isArray: boolean, lrp?: RouteType | RouteType[]): string | undefined {\n if (isArray) {\n return (lrp as RouteType[]).map(r => r.toString()).join(',');\n }\n return lrp && lrp.toString();\n}\n\n/**\n * remove duplicate segment contain in layerPath against reconstructedRoute,\n * and return only unique segment that can be added into reconstructedRoute\n */\nexport function preventDuplicateSegments(\n originalUrl?: string,\n reconstructedRoute?: string,\n layerPath?: string,\n): string | undefined {\n // filter query params\n const normalizeURL = stripUrlQueryAndFragment(originalUrl || '');\n const originalUrlSplit = normalizeURL?.split('/').filter(v => !!v);\n let tempCounter = 0;\n const currentOffset = reconstructedRoute?.split('/').filter(v => !!v).length || 0;\n const result = layerPath\n ?.split('/')\n .filter(segment => {\n if (originalUrlSplit?.[currentOffset + tempCounter] === segment) {\n tempCounter += 1;\n return true;\n }\n return false;\n })\n .join('/');\n return result;\n}\n", "import type { Hub } from '@sentry/core';\nimport type { EventProcessor } from '@sentry/types';\nimport { fill, isThenable, loadModule, logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../../common/debug-build';\nimport type { LazyLoadedIntegration } from './lazy';\nimport { shouldDisableAutoInstrumentation } from './utils/node-utils';\n\ntype PgClientQuery = (\n config: unknown,\n values?: unknown,\n callback?: (err: unknown, result: unknown) => void,\n) => void | Promise;\n\ninterface PgClient {\n prototype: {\n query: PgClientQuery;\n };\n}\n\ninterface PgClientThis {\n database?: string;\n host?: string;\n port?: number;\n user?: string;\n}\n\ninterface PgOptions {\n usePgNative?: boolean;\n /**\n * Supply your postgres module directly, instead of having Sentry attempt automatic resolution.\n * Use this if you (a) use a module that's not `pg`, or (b) use a bundler that breaks resolution (e.g. esbuild).\n *\n * Usage:\n * ```\n * import pg from 'pg';\n *\n * Sentry.init({\n * integrations: [new Sentry.Integrations.Postgres({ module: pg })],\n * });\n * ```\n */\n module?: PGModule;\n}\n\ntype PGModule = { Client: PgClient; native: { Client: PgClient } | null };\n\n/** Tracing integration for node-postgres package */\nexport class Postgres implements LazyLoadedIntegration {\n /**\n * @inheritDoc\n */\n public static id: string = 'Postgres';\n\n /**\n * @inheritDoc\n */\n public name: string;\n\n private _usePgNative: boolean;\n\n private _module?: PGModule;\n\n public constructor(options: PgOptions = {}) {\n this.name = Postgres.id;\n this._usePgNative = !!options.usePgNative;\n this._module = options.module;\n }\n\n /** @inheritdoc */\n public loadDependency(): PGModule | undefined {\n return (this._module = this._module || loadModule('pg'));\n }\n\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line deprecation/deprecation\n public setupOnce(_: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void {\n if (shouldDisableAutoInstrumentation(getCurrentHub)) {\n DEBUG_BUILD && logger.log('Postgres Integration is skipped because of instrumenter configuration.');\n return;\n }\n\n const pkg = this.loadDependency();\n\n if (!pkg) {\n DEBUG_BUILD && logger.error('Postgres Integration was unable to require `pg` package.');\n return;\n }\n\n const Client = this._usePgNative ? pkg.native?.Client : pkg.Client;\n\n if (!Client) {\n DEBUG_BUILD && logger.error(\"Postgres Integration was unable to access 'pg-native' bindings.\");\n return;\n }\n\n /**\n * function (query, callback) => void\n * function (query, params, callback) => void\n * function (query) => Promise\n * function (query, params) => Promise\n * function (pg.Cursor) => pg.Cursor\n */\n fill(Client.prototype, 'query', function (orig: PgClientQuery) {\n return function (this: PgClientThis, config: unknown, values: unknown, callback: unknown) {\n // eslint-disable-next-line deprecation/deprecation\n const scope = getCurrentHub().getScope();\n // eslint-disable-next-line deprecation/deprecation\n const parentSpan = scope.getSpan();\n\n const data: Record = {\n 'db.system': 'postgresql',\n };\n\n try {\n if (this.database) {\n data['db.name'] = this.database;\n }\n if (this.host) {\n data['server.address'] = this.host;\n }\n if (this.port) {\n data['server.port'] = this.port;\n }\n if (this.user) {\n data['db.user'] = this.user;\n }\n } catch (e) {\n // ignore\n }\n\n // eslint-disable-next-line deprecation/deprecation\n const span = parentSpan?.startChild({\n description: typeof config === 'string' ? config : (config as { text: string }).text,\n op: 'db',\n origin: 'auto.db.postgres',\n data,\n });\n\n if (typeof callback === 'function') {\n return orig.call(this, config, values, function (err: Error, result: unknown) {\n span?.end();\n callback(err, result);\n });\n }\n\n if (typeof values === 'function') {\n return orig.call(this, config, function (err: Error, result: unknown) {\n span?.end();\n values(err, result);\n });\n }\n\n const rv = typeof values !== 'undefined' ? orig.call(this, config, values) : orig.call(this, config);\n\n if (isThenable(rv)) {\n return rv.then((res: unknown) => {\n span?.end();\n return res;\n });\n }\n\n span?.end();\n return rv;\n };\n });\n }\n}\n", "import type { Hub } from '@sentry/core';\nimport type { EventProcessor, Span } from '@sentry/types';\nimport { fill, loadModule, logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../../common/debug-build';\nimport type { LazyLoadedIntegration } from './lazy';\nimport { shouldDisableAutoInstrumentation } from './utils/node-utils';\n\ninterface MysqlConnection {\n prototype: {\n connect: () => void;\n };\n createQuery: () => void;\n}\n\ninterface MysqlConnectionConfig {\n host: string;\n port: number;\n user: string;\n}\n\n/** Tracing integration for node-mysql package */\nexport class Mysql implements LazyLoadedIntegration {\n /**\n * @inheritDoc\n */\n public static id: string = 'Mysql';\n\n /**\n * @inheritDoc\n */\n public name: string;\n\n private _module?: MysqlConnection;\n\n public constructor() {\n this.name = Mysql.id;\n }\n\n /** @inheritdoc */\n public loadDependency(): MysqlConnection | undefined {\n return (this._module = this._module || loadModule('mysql/lib/Connection.js'));\n }\n\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line deprecation/deprecation\n public setupOnce(_: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void {\n if (shouldDisableAutoInstrumentation(getCurrentHub)) {\n DEBUG_BUILD && logger.log('Mysql Integration is skipped because of instrumenter configuration.');\n return;\n }\n\n const pkg = this.loadDependency();\n\n if (!pkg) {\n DEBUG_BUILD && logger.error('Mysql Integration was unable to require `mysql` package.');\n return;\n }\n\n let mySqlConfig: MysqlConnectionConfig | undefined = undefined;\n\n try {\n pkg.prototype.connect = new Proxy(pkg.prototype.connect, {\n apply(wrappingTarget, thisArg: { config: MysqlConnectionConfig }, args) {\n if (!mySqlConfig) {\n mySqlConfig = thisArg.config;\n }\n return wrappingTarget.apply(thisArg, args);\n },\n });\n } catch (e) {\n DEBUG_BUILD && logger.error('Mysql Integration was unable to instrument `mysql` config.');\n }\n\n function spanDataFromConfig(): Record {\n if (!mySqlConfig) {\n return {};\n }\n return {\n 'server.address': mySqlConfig.host,\n 'server.port': mySqlConfig.port,\n 'db.user': mySqlConfig.user,\n };\n }\n\n function finishSpan(span: Span | undefined): void {\n if (!span) {\n return;\n }\n\n const data = spanDataFromConfig();\n Object.keys(data).forEach(key => {\n span.setAttribute(key, data[key]);\n });\n\n span.end();\n }\n\n // The original function will have one of these signatures:\n // function (callback) => void\n // function (options, callback) => void\n // function (options, values, callback) => void\n fill(pkg, 'createQuery', function (orig: () => void) {\n return function (this: unknown, options: unknown, values: unknown, callback: unknown) {\n // eslint-disable-next-line deprecation/deprecation\n const scope = getCurrentHub().getScope();\n // eslint-disable-next-line deprecation/deprecation\n const parentSpan = scope.getSpan();\n\n // eslint-disable-next-line deprecation/deprecation\n const span = parentSpan?.startChild({\n description: typeof options === 'string' ? options : (options as { sql: string }).sql,\n op: 'db',\n origin: 'auto.db.mysql',\n data: {\n 'db.system': 'mysql',\n },\n });\n\n if (typeof callback === 'function') {\n return orig.call(this, options, values, function (err: Error, result: unknown, fields: unknown) {\n finishSpan(span);\n callback(err, result, fields);\n });\n }\n\n if (typeof values === 'function') {\n return orig.call(this, options, function (err: Error, result: unknown, fields: unknown) {\n finishSpan(span);\n values(err, result, fields);\n });\n }\n\n // streaming, no callback!\n const query = orig.call(this, options, values) as { on: (event: string, callback: () => void) => void };\n\n query.on('end', () => {\n finishSpan(span);\n });\n\n return query;\n };\n });\n }\n}\n", "import type { Hub } from '@sentry/core';\nimport type { EventProcessor, SpanContext } from '@sentry/types';\nimport { fill, isThenable, loadModule, logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../../common/debug-build';\nimport type { LazyLoadedIntegration } from './lazy';\nimport { shouldDisableAutoInstrumentation } from './utils/node-utils';\n\n// This allows us to use the same array for both defaults options and the type itself.\n// (note `as const` at the end to make it a union of string literal types (i.e. \"a\" | \"b\" | ... )\n// and not just a string[])\ntype Operation = (typeof OPERATIONS)[number];\nconst OPERATIONS = [\n 'aggregate', // aggregate(pipeline, options, callback)\n 'bulkWrite', // bulkWrite(operations, options, callback)\n 'countDocuments', // countDocuments(query, options, callback)\n 'createIndex', // createIndex(fieldOrSpec, options, callback)\n 'createIndexes', // createIndexes(indexSpecs, options, callback)\n 'deleteMany', // deleteMany(filter, options, callback)\n 'deleteOne', // deleteOne(filter, options, callback)\n 'distinct', // distinct(key, query, options, callback)\n 'drop', // drop(options, callback)\n 'dropIndex', // dropIndex(indexName, options, callback)\n 'dropIndexes', // dropIndexes(options, callback)\n 'estimatedDocumentCount', // estimatedDocumentCount(options, callback)\n 'find', // find(query, options, callback)\n 'findOne', // findOne(query, options, callback)\n 'findOneAndDelete', // findOneAndDelete(filter, options, callback)\n 'findOneAndReplace', // findOneAndReplace(filter, replacement, options, callback)\n 'findOneAndUpdate', // findOneAndUpdate(filter, update, options, callback)\n 'indexes', // indexes(options, callback)\n 'indexExists', // indexExists(indexes, options, callback)\n 'indexInformation', // indexInformation(options, callback)\n 'initializeOrderedBulkOp', // initializeOrderedBulkOp(options, callback)\n 'insertMany', // insertMany(docs, options, callback)\n 'insertOne', // insertOne(doc, options, callback)\n 'isCapped', // isCapped(options, callback)\n 'mapReduce', // mapReduce(map, reduce, options, callback)\n 'options', // options(options, callback)\n 'parallelCollectionScan', // parallelCollectionScan(options, callback)\n 'rename', // rename(newName, options, callback)\n 'replaceOne', // replaceOne(filter, doc, options, callback)\n 'stats', // stats(options, callback)\n 'updateMany', // updateMany(filter, update, options, callback)\n 'updateOne', // updateOne(filter, update, options, callback)\n] as const;\n\n// All of the operations above take `options` and `callback` as their final parameters, but some of them\n// take additional parameters as well. For those operations, this is a map of\n// { : [] }, as a way to know what to call the operation's\n// positional arguments when we add them to the span's `data` object later\nconst OPERATION_SIGNATURES: {\n [op in Operation]?: string[];\n} = {\n // aggregate intentionally not included because `pipeline` arguments are too complex to serialize well\n // see https://github.com/getsentry/sentry-javascript/pull/3102\n bulkWrite: ['operations'],\n countDocuments: ['query'],\n createIndex: ['fieldOrSpec'],\n createIndexes: ['indexSpecs'],\n deleteMany: ['filter'],\n deleteOne: ['filter'],\n distinct: ['key', 'query'],\n dropIndex: ['indexName'],\n find: ['query'],\n findOne: ['query'],\n findOneAndDelete: ['filter'],\n findOneAndReplace: ['filter', 'replacement'],\n findOneAndUpdate: ['filter', 'update'],\n indexExists: ['indexes'],\n insertMany: ['docs'],\n insertOne: ['doc'],\n mapReduce: ['map', 'reduce'],\n rename: ['newName'],\n replaceOne: ['filter', 'doc'],\n updateMany: ['filter', 'update'],\n updateOne: ['filter', 'update'],\n};\n\ninterface MongoCollection {\n collectionName: string;\n dbName: string;\n namespace: string;\n prototype: {\n [operation in Operation]: (...args: unknown[]) => unknown;\n };\n}\n\ninterface MongoOptions {\n operations?: Operation[];\n describeOperations?: boolean | Operation[];\n useMongoose?: boolean;\n}\n\ninterface MongoCursor {\n once(event: 'close', listener: () => void): void;\n}\n\nfunction isCursor(maybeCursor: MongoCursor): maybeCursor is MongoCursor {\n return maybeCursor && typeof maybeCursor === 'object' && maybeCursor.once && typeof maybeCursor.once === 'function';\n}\n\ntype MongoModule = { Collection: MongoCollection };\n\n/** Tracing integration for mongo package */\nexport class Mongo implements LazyLoadedIntegration {\n /**\n * @inheritDoc\n */\n public static id: string = 'Mongo';\n\n /**\n * @inheritDoc\n */\n public name: string;\n\n private _operations: Operation[];\n private _describeOperations?: boolean | Operation[];\n private _useMongoose: boolean;\n\n private _module?: MongoModule;\n\n /**\n * @inheritDoc\n */\n public constructor(options: MongoOptions = {}) {\n this.name = Mongo.id;\n this._operations = Array.isArray(options.operations) ? options.operations : (OPERATIONS as unknown as Operation[]);\n this._describeOperations = 'describeOperations' in options ? options.describeOperations : true;\n this._useMongoose = !!options.useMongoose;\n }\n\n /** @inheritdoc */\n public loadDependency(): MongoModule | undefined {\n const moduleName = this._useMongoose ? 'mongoose' : 'mongodb';\n return (this._module = this._module || loadModule(moduleName));\n }\n\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line deprecation/deprecation\n public setupOnce(_: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void {\n if (shouldDisableAutoInstrumentation(getCurrentHub)) {\n DEBUG_BUILD && logger.log('Mongo Integration is skipped because of instrumenter configuration.');\n return;\n }\n\n const pkg = this.loadDependency();\n\n if (!pkg) {\n const moduleName = this._useMongoose ? 'mongoose' : 'mongodb';\n DEBUG_BUILD && logger.error(`Mongo Integration was unable to require \\`${moduleName}\\` package.`);\n return;\n }\n\n this._instrumentOperations(pkg.Collection, this._operations, getCurrentHub);\n }\n\n /**\n * Patches original collection methods\n */\n // eslint-disable-next-line deprecation/deprecation\n private _instrumentOperations(collection: MongoCollection, operations: Operation[], getCurrentHub: () => Hub): void {\n operations.forEach((operation: Operation) => this._patchOperation(collection, operation, getCurrentHub));\n }\n\n /**\n * Patches original collection to utilize our tracing functionality\n */\n // eslint-disable-next-line deprecation/deprecation\n private _patchOperation(collection: MongoCollection, operation: Operation, getCurrentHub: () => Hub): void {\n if (!(operation in collection.prototype)) return;\n\n const getSpanContext = this._getSpanContextFromOperationArguments.bind(this);\n\n fill(collection.prototype, operation, function (orig: () => void | Promise) {\n return function (this: unknown, ...args: unknown[]) {\n const lastArg = args[args.length - 1];\n // eslint-disable-next-line deprecation/deprecation\n const hub = getCurrentHub();\n // eslint-disable-next-line deprecation/deprecation\n const scope = hub.getScope();\n // eslint-disable-next-line deprecation/deprecation\n const client = hub.getClient();\n // eslint-disable-next-line deprecation/deprecation\n const parentSpan = scope.getSpan();\n\n const sendDefaultPii = client?.getOptions().sendDefaultPii;\n\n // Check if the operation was passed a callback. (mapReduce requires a different check, as\n // its (non-callback) arguments can also be functions.)\n if (typeof lastArg !== 'function' || (operation === 'mapReduce' && args.length === 2)) {\n // eslint-disable-next-line deprecation/deprecation\n const span = parentSpan?.startChild(getSpanContext(this, operation, args, sendDefaultPii));\n const maybePromiseOrCursor = orig.call(this, ...args);\n\n if (isThenable(maybePromiseOrCursor)) {\n return maybePromiseOrCursor.then((res: unknown) => {\n span?.end();\n return res;\n });\n }\n // If the operation returns a Cursor\n // we need to attach a listener to it to finish the span when the cursor is closed.\n else if (isCursor(maybePromiseOrCursor)) {\n const cursor = maybePromiseOrCursor as MongoCursor;\n\n try {\n cursor.once('close', () => {\n span?.end();\n });\n } catch (e) {\n // If the cursor is already closed, `once` will throw an error. In that case, we can\n // finish the span immediately.\n span?.end();\n }\n\n return cursor;\n } else {\n span?.end();\n return maybePromiseOrCursor;\n }\n }\n\n // eslint-disable-next-line deprecation/deprecation\n const span = parentSpan?.startChild(getSpanContext(this, operation, args.slice(0, -1)));\n\n return orig.call(this, ...args.slice(0, -1), function (err: Error, result: unknown) {\n span?.end();\n lastArg(err, result);\n });\n };\n });\n }\n\n /**\n * Form a SpanContext based on the user input to a given operation.\n */\n private _getSpanContextFromOperationArguments(\n collection: MongoCollection,\n operation: Operation,\n args: unknown[],\n sendDefaultPii: boolean | undefined = false,\n ): SpanContext {\n const data: { [key: string]: string } = {\n 'db.system': 'mongodb',\n 'db.name': collection.dbName,\n 'db.operation': operation,\n 'db.mongodb.collection': collection.collectionName,\n };\n const spanContext: SpanContext = {\n op: 'db',\n // TODO v8: Use `${collection.collectionName}.${operation}`\n origin: 'auto.db.mongo',\n description: operation,\n data,\n };\n\n // If the operation takes no arguments besides `options` and `callback`, or if argument\n // collection is disabled for this operation, just return early.\n const signature = OPERATION_SIGNATURES[operation];\n const shouldDescribe = Array.isArray(this._describeOperations)\n ? this._describeOperations.includes(operation)\n : this._describeOperations;\n\n if (!signature || !shouldDescribe || !sendDefaultPii) {\n return spanContext;\n }\n\n try {\n // Special case for `mapReduce`, as the only one accepting functions as arguments.\n if (operation === 'mapReduce') {\n const [map, reduce] = args as { name?: string }[];\n data[signature[0]] = typeof map === 'string' ? map : map.name || '';\n data[signature[1]] = typeof reduce === 'string' ? reduce : reduce.name || '';\n } else {\n for (let i = 0; i < signature.length; i++) {\n data[`db.mongodb.${signature[i]}`] = JSON.stringify(args[i]);\n }\n }\n } catch (_oO) {\n // no-empty\n }\n\n return spanContext;\n }\n}\n", "import { SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, getCurrentHub, startSpan } from '@sentry/core';\nimport type { Integration } from '@sentry/types';\nimport { addNonEnumerableProperty, logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../../common/debug-build';\nimport { shouldDisableAutoInstrumentation } from './utils/node-utils';\n\ntype PrismaAction =\n | 'findUnique'\n | 'findMany'\n | 'findFirst'\n | 'create'\n | 'createMany'\n | 'update'\n | 'updateMany'\n | 'upsert'\n | 'delete'\n | 'deleteMany'\n | 'executeRaw'\n | 'queryRaw'\n | 'aggregate'\n | 'count'\n | 'runCommandRaw';\n\ninterface PrismaMiddlewareParams {\n model?: unknown;\n action: PrismaAction;\n args: unknown;\n dataPath: string[];\n runInTransaction: boolean;\n}\n\ntype PrismaMiddleware = (\n params: PrismaMiddlewareParams,\n next: (params: PrismaMiddlewareParams) => Promise,\n) => Promise;\n\ninterface PrismaClient {\n _sentryInstrumented?: boolean;\n _engineConfig?: {\n activeProvider?: string;\n clientVersion?: string;\n };\n $use: (cb: PrismaMiddleware) => void;\n}\n\nfunction isValidPrismaClient(possibleClient: unknown): possibleClient is PrismaClient {\n return !!possibleClient && !!(possibleClient as PrismaClient)['$use'];\n}\n\n/** Tracing integration for @prisma/client package */\nexport class Prisma implements Integration {\n /**\n * @inheritDoc\n */\n public static id: string = 'Prisma';\n\n /**\n * @inheritDoc\n */\n public name: string;\n\n /**\n * @inheritDoc\n */\n public constructor(options: { client?: unknown } = {}) {\n this.name = Prisma.id;\n\n // We instrument the PrismaClient inside the constructor and not inside `setupOnce` because in some cases of server-side\n // bundling (Next.js) multiple Prisma clients can be instantiated, even though users don't intend to. When instrumenting\n // in setupOnce we can only ever instrument one client.\n // https://github.com/getsentry/sentry-javascript/issues/7216#issuecomment-1602375012\n // In the future we might explore providing a dedicated PrismaClient middleware instead of this hack.\n if (isValidPrismaClient(options.client) && !options.client._sentryInstrumented) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n addNonEnumerableProperty(options.client as any, '_sentryInstrumented', true);\n\n const clientData: Record = {};\n try {\n const engineConfig = (options.client as PrismaClient)._engineConfig;\n if (engineConfig) {\n const { activeProvider, clientVersion } = engineConfig;\n if (activeProvider) {\n clientData['db.system'] = activeProvider;\n }\n if (clientVersion) {\n clientData['db.prisma.version'] = clientVersion;\n }\n }\n } catch (e) {\n // ignore\n }\n\n options.client.$use((params, next: (params: PrismaMiddlewareParams) => Promise) => {\n // eslint-disable-next-line deprecation/deprecation\n if (shouldDisableAutoInstrumentation(getCurrentHub)) {\n return next(params);\n }\n\n const action = params.action;\n const model = params.model;\n\n return startSpan(\n {\n name: model ? `${model} ${action}` : action,\n onlyIfParent: true,\n op: 'db.prisma',\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.db.prisma',\n },\n data: { ...clientData, 'db.operation': action },\n },\n () => next(params),\n );\n });\n } else {\n DEBUG_BUILD &&\n logger.warn('Unsupported Prisma client provided to PrismaIntegration. Provided client:', options.client);\n }\n }\n\n /**\n * @inheritDoc\n */\n public setupOnce(): void {\n // Noop - here for backwards compatibility\n }\n}\n", "import type { Hub } from '@sentry/core';\nimport type { EventProcessor } from '@sentry/types';\nimport { fill, isThenable, loadModule, logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../../common/debug-build';\nimport type { LazyLoadedIntegration } from './lazy';\nimport { shouldDisableAutoInstrumentation } from './utils/node-utils';\n\ntype GraphQLModule = {\n [method: string]: (...args: unknown[]) => unknown;\n};\n\n/** Tracing integration for graphql package */\nexport class GraphQL implements LazyLoadedIntegration {\n /**\n * @inheritDoc\n */\n public static id: string = 'GraphQL';\n\n /**\n * @inheritDoc\n */\n public name: string;\n\n private _module?: GraphQLModule;\n\n public constructor() {\n this.name = GraphQL.id;\n }\n\n /** @inheritdoc */\n public loadDependency(): GraphQLModule | undefined {\n return (this._module = this._module || loadModule('graphql/execution/execute.js'));\n }\n\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line deprecation/deprecation\n public setupOnce(_: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void {\n if (shouldDisableAutoInstrumentation(getCurrentHub)) {\n DEBUG_BUILD && logger.log('GraphQL Integration is skipped because of instrumenter configuration.');\n return;\n }\n\n const pkg = this.loadDependency();\n\n if (!pkg) {\n DEBUG_BUILD && logger.error('GraphQL Integration was unable to require graphql/execution package.');\n return;\n }\n\n fill(pkg, 'execute', function (orig: () => void | Promise) {\n return function (this: unknown, ...args: unknown[]) {\n // eslint-disable-next-line deprecation/deprecation\n const scope = getCurrentHub().getScope();\n // eslint-disable-next-line deprecation/deprecation\n const parentSpan = scope.getSpan();\n\n // eslint-disable-next-line deprecation/deprecation\n const span = parentSpan?.startChild({\n description: 'execute',\n op: 'graphql.execute',\n origin: 'auto.graphql.graphql',\n });\n\n // eslint-disable-next-line deprecation/deprecation\n scope?.setSpan(span);\n\n const rv = orig.call(this, ...args);\n\n if (isThenable(rv)) {\n return rv.then((res: unknown) => {\n span?.end();\n // eslint-disable-next-line deprecation/deprecation\n scope?.setSpan(parentSpan);\n\n return res;\n });\n }\n\n span?.end();\n // eslint-disable-next-line deprecation/deprecation\n scope?.setSpan(parentSpan);\n return rv;\n };\n });\n }\n}\n", "import type { Hub } from '@sentry/core';\nimport type { EventProcessor } from '@sentry/types';\nimport { arrayify, fill, isThenable, loadModule, logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../../common/debug-build';\nimport type { LazyLoadedIntegration } from './lazy';\nimport { shouldDisableAutoInstrumentation } from './utils/node-utils';\n\ninterface ApolloOptions {\n useNestjs?: boolean;\n}\n\ntype ApolloResolverGroup = {\n [key: string]: () => unknown;\n};\n\ntype ApolloModelResolvers = {\n [key: string]: ApolloResolverGroup;\n};\n\ntype GraphQLModule = {\n GraphQLFactory: {\n prototype: {\n create: (resolvers: ApolloModelResolvers[]) => unknown;\n };\n };\n};\n\ntype ApolloModule = {\n ApolloServerBase: {\n prototype: {\n constructSchema: (config: unknown) => unknown;\n };\n };\n};\n\n/** Tracing integration for Apollo */\nexport class Apollo implements LazyLoadedIntegration {\n /**\n * @inheritDoc\n */\n public static id: string = 'Apollo';\n\n /**\n * @inheritDoc\n */\n public name: string;\n\n private readonly _useNest: boolean;\n\n private _module?: GraphQLModule & ApolloModule;\n\n /**\n * @inheritDoc\n */\n public constructor(\n options: ApolloOptions = {\n useNestjs: false,\n },\n ) {\n this.name = Apollo.id;\n this._useNest = !!options.useNestjs;\n }\n\n /** @inheritdoc */\n public loadDependency(): (GraphQLModule & ApolloModule) | undefined {\n if (this._useNest) {\n this._module = this._module || loadModule('@nestjs/graphql');\n } else {\n this._module = this._module || loadModule('apollo-server-core');\n }\n\n return this._module;\n }\n\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line deprecation/deprecation\n public setupOnce(_: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void {\n if (shouldDisableAutoInstrumentation(getCurrentHub)) {\n DEBUG_BUILD && logger.log('Apollo Integration is skipped because of instrumenter configuration.');\n return;\n }\n\n if (this._useNest) {\n const pkg = this.loadDependency();\n\n if (!pkg) {\n DEBUG_BUILD && logger.error('Apollo-NestJS Integration was unable to require @nestjs/graphql package.');\n return;\n }\n\n /**\n * Iterate over resolvers of NestJS ResolversExplorerService before schemas are constructed.\n */\n fill(\n pkg.GraphQLFactory.prototype,\n 'mergeWithSchema',\n function (orig: (this: unknown, ...args: unknown[]) => unknown) {\n return function (\n this: { resolversExplorerService: { explore: () => ApolloModelResolvers[] } },\n ...args: unknown[]\n ) {\n fill(this.resolversExplorerService, 'explore', function (orig: () => ApolloModelResolvers[]) {\n return function (this: unknown) {\n const resolvers = arrayify(orig.call(this));\n\n const instrumentedResolvers = instrumentResolvers(resolvers, getCurrentHub);\n\n return instrumentedResolvers;\n };\n });\n\n return orig.call(this, ...args);\n };\n },\n );\n } else {\n const pkg = this.loadDependency();\n\n if (!pkg) {\n DEBUG_BUILD && logger.error('Apollo Integration was unable to require apollo-server-core package.');\n return;\n }\n\n /**\n * Iterate over resolvers of the ApolloServer instance before schemas are constructed.\n */\n fill(pkg.ApolloServerBase.prototype, 'constructSchema', function (orig: (config: unknown) => unknown) {\n return function (this: {\n config: { resolvers?: ApolloModelResolvers[]; schema?: unknown; modules?: unknown };\n }) {\n if (!this.config.resolvers) {\n if (DEBUG_BUILD) {\n if (this.config.schema) {\n logger.warn(\n 'Apollo integration is not able to trace `ApolloServer` instances constructed via `schema` property.' +\n 'If you are using NestJS with Apollo, please use `Sentry.Integrations.Apollo({ useNestjs: true })` instead.',\n );\n logger.warn();\n } else if (this.config.modules) {\n logger.warn(\n 'Apollo integration is not able to trace `ApolloServer` instances constructed via `modules` property.',\n );\n }\n\n logger.error('Skipping tracing as no resolvers found on the `ApolloServer` instance.');\n }\n\n return orig.call(this);\n }\n\n const resolvers = arrayify(this.config.resolvers);\n\n this.config.resolvers = instrumentResolvers(resolvers, getCurrentHub);\n\n return orig.call(this);\n };\n });\n }\n }\n}\n\n// eslint-disable-next-line deprecation/deprecation\nfunction instrumentResolvers(resolvers: ApolloModelResolvers[], getCurrentHub: () => Hub): ApolloModelResolvers[] {\n return resolvers.map(model => {\n Object.keys(model).forEach(resolverGroupName => {\n Object.keys(model[resolverGroupName]).forEach(resolverName => {\n if (typeof model[resolverGroupName][resolverName] !== 'function') {\n return;\n }\n\n wrapResolver(model, resolverGroupName, resolverName, getCurrentHub);\n });\n });\n\n return model;\n });\n}\n\n/**\n * Wrap a single resolver which can be a parent of other resolvers and/or db operations.\n */\nfunction wrapResolver(\n model: ApolloModelResolvers,\n resolverGroupName: string,\n resolverName: string,\n // eslint-disable-next-line deprecation/deprecation\n getCurrentHub: () => Hub,\n): void {\n fill(model[resolverGroupName], resolverName, function (orig: () => unknown | Promise) {\n return function (this: unknown, ...args: unknown[]) {\n // eslint-disable-next-line deprecation/deprecation\n const scope = getCurrentHub().getScope();\n // eslint-disable-next-line deprecation/deprecation\n const parentSpan = scope.getSpan();\n // eslint-disable-next-line deprecation/deprecation\n const span = parentSpan?.startChild({\n description: `${resolverGroupName}.${resolverName}`,\n op: 'graphql.resolve',\n origin: 'auto.graphql.apollo',\n });\n\n const rv = orig.call(this, ...args);\n\n if (isThenable(rv)) {\n return rv.then((res: unknown) => {\n span?.end();\n return res;\n });\n }\n\n span?.end();\n\n return rv;\n };\n });\n}\n", "import type { Integration, IntegrationClass } from '@sentry/types';\nimport { dynamicRequire } from '@sentry/utils';\n\nexport interface LazyLoadedIntegration extends Integration {\n /**\n * Loads the integration's dependency and caches it so it doesn't have to be loaded again.\n *\n * If this returns undefined, the dependency could not be loaded.\n */\n loadDependency(): T | undefined;\n}\n\nexport const lazyLoadedNodePerformanceMonitoringIntegrations: (() => LazyLoadedIntegration)[] = [\n () => {\n const integration = dynamicRequire(module, './apollo') as {\n Apollo: IntegrationClass;\n };\n return new integration.Apollo();\n },\n () => {\n const integration = dynamicRequire(module, './apollo') as {\n Apollo: IntegrationClass;\n };\n return new integration.Apollo({ useNestjs: true });\n },\n () => {\n const integration = dynamicRequire(module, './graphql') as {\n GraphQL: IntegrationClass;\n };\n return new integration.GraphQL();\n },\n () => {\n const integration = dynamicRequire(module, './mongo') as {\n Mongo: IntegrationClass;\n };\n return new integration.Mongo();\n },\n () => {\n const integration = dynamicRequire(module, './mongo') as {\n Mongo: IntegrationClass;\n };\n return new integration.Mongo({ mongoose: true });\n },\n () => {\n const integration = dynamicRequire(module, './mysql') as {\n Mysql: IntegrationClass;\n };\n return new integration.Mysql();\n },\n () => {\n const integration = dynamicRequire(module, './postgres') as {\n Postgres: IntegrationClass;\n };\n return new integration.Postgres();\n },\n];\n", "import { GLOBAL_OBJ } from '@sentry/utils';\n\nexport const WINDOW = GLOBAL_OBJ as typeof GLOBAL_OBJ &\n // document is not available in all browser environments (webworkers). We make it optional so you have to explicitly check for it\n Omit &\n Partial>;\n", "import type { IdleTransaction, SpanStatusType } from '@sentry/core';\nimport { getActiveTransaction, spanToJSON } from '@sentry/core';\nimport { logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../common/debug-build';\nimport { WINDOW } from './types';\n\n/**\n * Add a listener that cancels and finishes a transaction when the global\n * document is hidden.\n */\nexport function registerBackgroundTabDetection(): void {\n if (WINDOW.document) {\n WINDOW.document.addEventListener('visibilitychange', () => {\n // eslint-disable-next-line deprecation/deprecation\n const activeTransaction = getActiveTransaction() as IdleTransaction;\n if (WINDOW.document!.hidden && activeTransaction) {\n const statusType: SpanStatusType = 'cancelled';\n\n const { op, status } = spanToJSON(activeTransaction);\n\n DEBUG_BUILD &&\n logger.log(`[Tracing] Transaction: ${statusType} -> since tab moved to the background, op: ${op}`);\n // We should not set status if it is already set, this prevent important statuses like\n // error or data loss from being overwritten on transaction.\n if (!status) {\n activeTransaction.setStatus(statusType);\n }\n // TODO: Can we rewrite this to an attribute?\n // eslint-disable-next-line deprecation/deprecation\n activeTransaction.setTag('visibilitychange', 'document.hidden');\n activeTransaction.end();\n }\n });\n } else {\n DEBUG_BUILD && logger.warn('[Tracing] Could not set up background tab detection due to lack of global document');\n }\n}\n", "/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { Metric, ReportCallback } from '../types';\n\nexport const bindReporter = (\n callback: ReportCallback,\n metric: Metric,\n reportAllChanges?: boolean,\n): ((forceReport?: boolean) => void) => {\n let prevValue: number;\n let delta: number;\n return (forceReport?: boolean) => {\n if (metric.value >= 0) {\n if (forceReport || reportAllChanges) {\n delta = metric.value - (prevValue || 0);\n\n // Report the metric if there's a non-zero delta or if no previous\n // value exists (which can happen in the case of the document becoming\n // hidden when the metric value is 0).\n // See: https://github.com/GoogleChrome/web-vitals/issues/14\n if (delta || prevValue === undefined) {\n prevValue = metric.value;\n metric.delta = delta;\n callback(metric);\n }\n }\n }\n };\n};\n", "/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Performantly generate a unique, 30-char string by combining a version\n * number, the current timestamp with a 13-digit number integer.\n * @return {string}\n */\nexport const generateUniqueID = (): string => {\n return `v3-${Date.now()}-${Math.floor(Math.random() * (9e12 - 1)) + 1e12}`;\n};\n", "/*\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { WINDOW } from '../../types';\nimport type { NavigationTimingPolyfillEntry } from '../types';\n\nconst getNavigationEntryFromPerformanceTiming = (): NavigationTimingPolyfillEntry => {\n // eslint-disable-next-line deprecation/deprecation\n const timing = WINDOW.performance.timing;\n // eslint-disable-next-line deprecation/deprecation\n const type = WINDOW.performance.navigation.type;\n\n const navigationEntry: { [key: string]: number | string } = {\n entryType: 'navigation',\n startTime: 0,\n type: type == 2 ? 'back_forward' : type === 1 ? 'reload' : 'navigate',\n };\n\n for (const key in timing) {\n if (key !== 'navigationStart' && key !== 'toJSON') {\n // eslint-disable-next-line deprecation/deprecation\n navigationEntry[key] = Math.max((timing[key as keyof PerformanceTiming] as number) - timing.navigationStart, 0);\n }\n }\n return navigationEntry as unknown as NavigationTimingPolyfillEntry;\n};\n\nexport const getNavigationEntry = (): PerformanceNavigationTiming | NavigationTimingPolyfillEntry | undefined => {\n if (WINDOW.__WEB_VITALS_POLYFILL__) {\n return (\n WINDOW.performance &&\n ((performance.getEntriesByType && performance.getEntriesByType('navigation')[0]) ||\n getNavigationEntryFromPerformanceTiming())\n );\n } else {\n return WINDOW.performance && performance.getEntriesByType && performance.getEntriesByType('navigation')[0];\n }\n};\n", "/*\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { getNavigationEntry } from './getNavigationEntry';\n\nexport const getActivationStart = (): number => {\n const navEntry = getNavigationEntry();\n return (navEntry && navEntry.activationStart) || 0;\n};\n", "/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { WINDOW } from '../../types';\nimport type { Metric } from '../types';\nimport { generateUniqueID } from './generateUniqueID';\nimport { getActivationStart } from './getActivationStart';\nimport { getNavigationEntry } from './getNavigationEntry';\n\nexport const initMetric = (name: Metric['name'], value?: number): Metric => {\n const navEntry = getNavigationEntry();\n let navigationType: Metric['navigationType'] = 'navigate';\n\n if (navEntry) {\n if ((WINDOW.document && WINDOW.document.prerendering) || getActivationStart() > 0) {\n navigationType = 'prerender';\n } else {\n navigationType = navEntry.type.replace(/_/g, '-') as Metric['navigationType'];\n }\n }\n\n return {\n name,\n value: typeof value === 'undefined' ? -1 : value,\n rating: 'good', // Will be updated if the value changes.\n delta: 0,\n entries: [],\n id: generateUniqueID(),\n navigationType,\n };\n};\n", "/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { FirstInputPolyfillEntry, NavigationTimingPolyfillEntry, PerformancePaintTiming } from '../types';\n\nexport interface PerformanceEntryHandler {\n (entry: PerformanceEntry): void;\n}\n\ninterface PerformanceEntryMap {\n event: PerformanceEventTiming[];\n paint: PerformancePaintTiming[];\n 'layout-shift': LayoutShift[];\n 'largest-contentful-paint': LargestContentfulPaint[];\n 'first-input': PerformanceEventTiming[] | FirstInputPolyfillEntry[];\n navigation: PerformanceNavigationTiming[] | NavigationTimingPolyfillEntry[];\n resource: PerformanceResourceTiming[];\n longtask: PerformanceEntry[];\n}\n\n/**\n * Takes a performance entry type and a callback function, and creates a\n * `PerformanceObserver` instance that will observe the specified entry type\n * with buffering enabled and call the callback _for each entry_.\n *\n * This function also feature-detects entry support and wraps the logic in a\n * try/catch to avoid errors in unsupporting browsers.\n */\nexport const observe = (\n type: K,\n callback: (entries: PerformanceEntryMap[K]) => void,\n opts?: PerformanceObserverInit,\n): PerformanceObserver | undefined => {\n try {\n if (PerformanceObserver.supportedEntryTypes.includes(type)) {\n const po = new PerformanceObserver(list => {\n callback(list.getEntries() as PerformanceEntryMap[K]);\n });\n po.observe(\n Object.assign(\n {\n type,\n buffered: true,\n },\n opts || {},\n ) as PerformanceObserverInit,\n );\n return po;\n }\n } catch (e) {\n // Do nothing.\n }\n return;\n};\n", "/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { WINDOW } from '../../types';\n\nexport interface OnHiddenCallback {\n (event: Event): void;\n}\n\nexport const onHidden = (cb: OnHiddenCallback, once?: boolean): void => {\n const onHiddenOrPageHide = (event: Event): void => {\n if (event.type === 'pagehide' || WINDOW.document!.visibilityState === 'hidden') {\n cb(event);\n if (once) {\n removeEventListener('visibilitychange', onHiddenOrPageHide, true);\n removeEventListener('pagehide', onHiddenOrPageHide, true);\n }\n }\n };\n\n if (WINDOW.document) {\n addEventListener('visibilitychange', onHiddenOrPageHide, true);\n // Some browsers have buggy implementations of visibilitychange,\n // so we use pagehide in addition, just to be safe.\n addEventListener('pagehide', onHiddenOrPageHide, true);\n }\n};\n", "/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { bindReporter } from './lib/bindReporter';\nimport { initMetric } from './lib/initMetric';\nimport { observe } from './lib/observe';\nimport { onHidden } from './lib/onHidden';\nimport type { CLSMetric, ReportCallback, StopListening } from './types';\n\n/**\n * Calculates the [CLS](https://web.dev/cls/) value for the current page and\n * calls the `callback` function once the value is ready to be reported, along\n * with all `layout-shift` performance entries that were used in the metric\n * value calculation. The reported value is a `double` (corresponding to a\n * [layout shift score](https://web.dev/cls/#layout-shift-score)).\n *\n * If the `reportAllChanges` configuration option is set to `true`, the\n * `callback` function will be called as soon as the value is initially\n * determined as well as any time the value changes throughout the page\n * lifespan.\n *\n * _**Important:** CLS should be continually monitored for changes throughout\n * the entire lifespan of a page—including if the user returns to the page after\n * it's been hidden/backgrounded. However, since browsers often [will not fire\n * additional callbacks once the user has backgrounded a\n * page](https://developer.chrome.com/blog/page-lifecycle-api/#advice-hidden),\n * `callback` is always called when the page's visibility state changes to\n * hidden. As a result, the `callback` function might be called multiple times\n * during the same page load._\n */\nexport const onCLS = (\n onReport: ReportCallback,\n options: { reportAllChanges?: boolean } = {},\n): StopListening | undefined => {\n const metric = initMetric('CLS', 0);\n let report: ReturnType;\n\n let sessionValue = 0;\n let sessionEntries: PerformanceEntry[] = [];\n\n // const handleEntries = (entries: Metric['entries']) => {\n const handleEntries = (entries: LayoutShift[]): void => {\n entries.forEach(entry => {\n // Only count layout shifts without recent user input.\n if (!entry.hadRecentInput) {\n const firstSessionEntry = sessionEntries[0];\n const lastSessionEntry = sessionEntries[sessionEntries.length - 1];\n\n // If the entry occurred less than 1 second after the previous entry and\n // less than 5 seconds after the first entry in the session, include the\n // entry in the current session. Otherwise, start a new session.\n if (\n sessionValue &&\n sessionEntries.length !== 0 &&\n entry.startTime - lastSessionEntry.startTime < 1000 &&\n entry.startTime - firstSessionEntry.startTime < 5000\n ) {\n sessionValue += entry.value;\n sessionEntries.push(entry);\n } else {\n sessionValue = entry.value;\n sessionEntries = [entry];\n }\n\n // If the current session value is larger than the current CLS value,\n // update CLS and the entries contributing to it.\n if (sessionValue > metric.value) {\n metric.value = sessionValue;\n metric.entries = sessionEntries;\n if (report) {\n report();\n }\n }\n }\n });\n };\n\n const po = observe('layout-shift', handleEntries);\n if (po) {\n report = bindReporter(onReport, metric, options.reportAllChanges);\n\n const stopListening = (): void => {\n handleEntries(po.takeRecords() as CLSMetric['entries']);\n report(true);\n };\n\n onHidden(stopListening);\n\n return stopListening;\n }\n\n return;\n};\n", "/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { WINDOW } from '../../types';\nimport { onHidden } from './onHidden';\n\nlet firstHiddenTime = -1;\n\nconst initHiddenTime = (): void => {\n // If the document is hidden and not prerendering, assume it was always\n // hidden and the page was loaded in the background.\n if (WINDOW.document && WINDOW.document.visibilityState) {\n firstHiddenTime = WINDOW.document.visibilityState === 'hidden' && !WINDOW.document.prerendering ? 0 : Infinity;\n }\n};\n\nconst trackChanges = (): void => {\n // Update the time if/when the document becomes hidden.\n onHidden(({ timeStamp }) => {\n firstHiddenTime = timeStamp;\n }, true);\n};\n\nexport const getVisibilityWatcher = (): {\n readonly firstHiddenTime: number;\n} => {\n if (firstHiddenTime < 0) {\n // If the document is hidden when this code runs, assume it was hidden\n // since navigation start. This isn't a perfect heuristic, but it's the\n // best we can do until an API is available to support querying past\n // visibilityState.\n initHiddenTime();\n trackChanges();\n }\n return {\n get firstHiddenTime() {\n return firstHiddenTime;\n },\n };\n};\n", "/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { bindReporter } from './lib/bindReporter';\nimport { getVisibilityWatcher } from './lib/getVisibilityWatcher';\nimport { initMetric } from './lib/initMetric';\nimport { observe } from './lib/observe';\nimport { onHidden } from './lib/onHidden';\nimport type { FIDMetric, PerformanceEventTiming, ReportCallback } from './types';\n\n/**\n * Calculates the [FID](https://web.dev/fid/) value for the current page and\n * calls the `callback` function once the value is ready, along with the\n * relevant `first-input` performance entry used to determine the value. The\n * reported value is a `DOMHighResTimeStamp`.\n *\n * _**Important:** since FID is only reported after the user interacts with the\n * page, it's possible that it will not be reported for some page loads._\n */\nexport const onFID = (onReport: ReportCallback): void => {\n const visibilityWatcher = getVisibilityWatcher();\n const metric = initMetric('FID');\n // eslint-disable-next-line prefer-const\n let report: ReturnType;\n\n const handleEntry = (entry: PerformanceEventTiming): void => {\n // Only report if the page wasn't hidden prior to the first input.\n if (entry.startTime < visibilityWatcher.firstHiddenTime) {\n metric.value = entry.processingStart - entry.startTime;\n metric.entries.push(entry);\n report(true);\n }\n };\n\n const handleEntries = (entries: FIDMetric['entries']): void => {\n (entries as PerformanceEventTiming[]).forEach(handleEntry);\n };\n\n const po = observe('first-input', handleEntries);\n report = bindReporter(onReport, metric);\n\n if (po) {\n onHidden(() => {\n handleEntries(po.takeRecords() as FIDMetric['entries']);\n po.disconnect();\n }, true);\n }\n};\n", "/*\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { Metric } from '../../types';\nimport { observe } from '../observe';\n\ndeclare global {\n interface Performance {\n interactionCount: number;\n }\n}\n\nlet interactionCountEstimate = 0;\nlet minKnownInteractionId = Infinity;\nlet maxKnownInteractionId = 0;\n\nconst updateEstimate = (entries: Metric['entries']): void => {\n (entries as PerformanceEventTiming[]).forEach(e => {\n if (e.interactionId) {\n minKnownInteractionId = Math.min(minKnownInteractionId, e.interactionId);\n maxKnownInteractionId = Math.max(maxKnownInteractionId, e.interactionId);\n\n interactionCountEstimate = maxKnownInteractionId ? (maxKnownInteractionId - minKnownInteractionId) / 7 + 1 : 0;\n }\n });\n};\n\nlet po: PerformanceObserver | undefined;\n\n/**\n * Returns the `interactionCount` value using the native API (if available)\n * or the polyfill estimate in this module.\n */\nexport const getInteractionCount = (): number => {\n return po ? interactionCountEstimate : performance.interactionCount || 0;\n};\n\n/**\n * Feature detects native support or initializes the polyfill if needed.\n */\nexport const initInteractionCountPolyfill = (): void => {\n if ('interactionCount' in performance || po) return;\n\n po = observe('event', updateEstimate, {\n type: 'event',\n buffered: true,\n durationThreshold: 0,\n } as PerformanceObserverInit);\n};\n", "/*\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { bindReporter } from './lib/bindReporter';\nimport { initMetric } from './lib/initMetric';\nimport { observe } from './lib/observe';\nimport { onHidden } from './lib/onHidden';\nimport { getInteractionCount, initInteractionCountPolyfill } from './lib/polyfills/interactionCountPolyfill';\nimport type { ReportCallback, ReportOpts } from './types';\nimport type { INPMetric } from './types/inp';\n\ninterface Interaction {\n id: number;\n latency: number;\n entries: PerformanceEventTiming[];\n}\n\n/**\n * Returns the interaction count since the last bfcache restore (or for the\n * full page lifecycle if there were no bfcache restores).\n */\nconst getInteractionCountForNavigation = (): number => {\n return getInteractionCount();\n};\n\n// To prevent unnecessary memory usage on pages with lots of interactions,\n// store at most 10 of the longest interactions to consider as INP candidates.\nconst MAX_INTERACTIONS_TO_CONSIDER = 10;\n\n// A list of longest interactions on the page (by latency) sorted so the\n// longest one is first. The list is as most MAX_INTERACTIONS_TO_CONSIDER long.\nconst longestInteractionList: Interaction[] = [];\n\n// A mapping of longest interactions by their interaction ID.\n// This is used for faster lookup.\nconst longestInteractionMap: { [interactionId: string]: Interaction } = {};\n\n/**\n * Takes a performance entry and adds it to the list of worst interactions\n * if its duration is long enough to make it among the worst. If the\n * entry is part of an existing interaction, it is merged and the latency\n * and entries list is updated as needed.\n */\nconst processEntry = (entry: PerformanceEventTiming): void => {\n // The least-long of the 10 longest interactions.\n const minLongestInteraction = longestInteractionList[longestInteractionList.length - 1];\n\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const existingInteraction = longestInteractionMap[entry.interactionId!];\n\n // Only process the entry if it's possibly one of the ten longest,\n // or if it's part of an existing interaction.\n if (\n existingInteraction ||\n longestInteractionList.length < MAX_INTERACTIONS_TO_CONSIDER ||\n entry.duration > minLongestInteraction.latency\n ) {\n // If the interaction already exists, update it. Otherwise create one.\n if (existingInteraction) {\n existingInteraction.entries.push(entry);\n existingInteraction.latency = Math.max(existingInteraction.latency, entry.duration);\n } else {\n const interaction = {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n id: entry.interactionId!,\n latency: entry.duration,\n entries: [entry],\n };\n longestInteractionMap[interaction.id] = interaction;\n longestInteractionList.push(interaction);\n }\n\n // Sort the entries by latency (descending) and keep only the top ten.\n longestInteractionList.sort((a, b) => b.latency - a.latency);\n longestInteractionList.splice(MAX_INTERACTIONS_TO_CONSIDER).forEach(i => {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete longestInteractionMap[i.id];\n });\n }\n};\n\n/**\n * Returns the estimated p98 longest interaction based on the stored\n * interaction candidates and the interaction count for the current page.\n */\nconst estimateP98LongestInteraction = (): Interaction => {\n const candidateInteractionIndex = Math.min(\n longestInteractionList.length - 1,\n Math.floor(getInteractionCountForNavigation() / 50),\n );\n\n return longestInteractionList[candidateInteractionIndex];\n};\n\n/**\n * Calculates the [INP](https://web.dev/responsiveness/) value for the current\n * page and calls the `callback` function once the value is ready, along with\n * the `event` performance entries reported for that interaction. The reported\n * value is a `DOMHighResTimeStamp`.\n *\n * A custom `durationThreshold` configuration option can optionally be passed to\n * control what `event-timing` entries are considered for INP reporting. The\n * default threshold is `40`, which means INP scores of less than 40 are\n * reported as 0. Note that this will not affect your 75th percentile INP value\n * unless that value is also less than 40 (well below the recommended\n * [good](https://web.dev/inp/#what-is-a-good-inp-score) threshold).\n *\n * If the `reportAllChanges` configuration option is set to `true`, the\n * `callback` function will be called as soon as the value is initially\n * determined as well as any time the value changes throughout the page\n * lifespan.\n *\n * _**Important:** INP should be continually monitored for changes throughout\n * the entire lifespan of a page—including if the user returns to the page after\n * it's been hidden/backgrounded. However, since browsers often [will not fire\n * additional callbacks once the user has backgrounded a\n * page](https://developer.chrome.com/blog/page-lifecycle-api/#advice-hidden),\n * `callback` is always called when the page's visibility state changes to\n * hidden. As a result, the `callback` function might be called multiple times\n * during the same page load._\n */\nexport const onINP = (onReport: ReportCallback, opts?: ReportOpts): void => {\n // Set defaults\n // eslint-disable-next-line no-param-reassign\n opts = opts || {};\n\n // https://web.dev/inp/#what's-a-%22good%22-inp-value\n // const thresholds = [200, 500];\n\n // TODO(philipwalton): remove once the polyfill is no longer needed.\n initInteractionCountPolyfill();\n\n const metric = initMetric('INP');\n // eslint-disable-next-line prefer-const\n let report: ReturnType;\n\n const handleEntries = (entries: INPMetric['entries']): void => {\n entries.forEach(entry => {\n if (entry.interactionId) {\n processEntry(entry);\n }\n\n // Entries of type `first-input` don't currently have an `interactionId`,\n // so to consider them in INP we have to first check that an existing\n // entry doesn't match the `duration` and `startTime`.\n // Note that this logic assumes that `event` entries are dispatched\n // before `first-input` entries. This is true in Chrome but it is not\n // true in Firefox; however, Firefox doesn't support interactionId, so\n // it's not an issue at the moment.\n // TODO(philipwalton): remove once crbug.com/1325826 is fixed.\n if (entry.entryType === 'first-input') {\n const noMatchingEntry = !longestInteractionList.some(interaction => {\n return interaction.entries.some(prevEntry => {\n return entry.duration === prevEntry.duration && entry.startTime === prevEntry.startTime;\n });\n });\n if (noMatchingEntry) {\n processEntry(entry);\n }\n }\n });\n\n const inp = estimateP98LongestInteraction();\n\n if (inp && inp.latency !== metric.value) {\n metric.value = inp.latency;\n metric.entries = inp.entries;\n report();\n }\n };\n\n const po = observe('event', handleEntries, {\n // Event Timing entries have their durations rounded to the nearest 8ms,\n // so a duration of 40ms would be any event that spans 2.5 or more frames\n // at 60Hz. This threshold is chosen to strike a balance between usefulness\n // and performance. Running this callback for any interaction that spans\n // just one or two frames is likely not worth the insight that could be\n // gained.\n durationThreshold: opts.durationThreshold || 40,\n } as PerformanceObserverInit);\n\n report = bindReporter(onReport, metric, opts.reportAllChanges);\n\n if (po) {\n // Also observe entries of type `first-input`. This is useful in cases\n // where the first interaction is less than the `durationThreshold`.\n po.observe({ type: 'first-input', buffered: true });\n\n onHidden(() => {\n handleEntries(po.takeRecords() as INPMetric['entries']);\n\n // If the interaction count shows that there were interactions but\n // none were captured by the PerformanceObserver, report a latency of 0.\n if (metric.value < 0 && getInteractionCountForNavigation() > 0) {\n metric.value = 0;\n metric.entries = [];\n }\n\n report(true);\n });\n }\n};\n", "/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { WINDOW } from '../types';\nimport { bindReporter } from './lib/bindReporter';\nimport { getActivationStart } from './lib/getActivationStart';\nimport { getVisibilityWatcher } from './lib/getVisibilityWatcher';\nimport { initMetric } from './lib/initMetric';\nimport { observe } from './lib/observe';\nimport { onHidden } from './lib/onHidden';\nimport type { LCPMetric, ReportCallback, StopListening } from './types';\n\nconst reportedMetricIDs: Record = {};\n\n/**\n * Calculates the [LCP](https://web.dev/lcp/) value for the current page and\n * calls the `callback` function once the value is ready (along with the\n * relevant `largest-contentful-paint` performance entry used to determine the\n * value). The reported value is a `DOMHighResTimeStamp`.\n */\nexport const onLCP = (onReport: ReportCallback): StopListening | undefined => {\n const visibilityWatcher = getVisibilityWatcher();\n const metric = initMetric('LCP');\n let report: ReturnType;\n\n const handleEntries = (entries: LCPMetric['entries']): void => {\n const lastEntry = entries[entries.length - 1] as LargestContentfulPaint;\n if (lastEntry) {\n // The startTime attribute returns the value of the renderTime if it is\n // not 0, and the value of the loadTime otherwise. The activationStart\n // reference is used because LCP should be relative to page activation\n // rather than navigation start if the page was prerendered.\n const value = Math.max(lastEntry.startTime - getActivationStart(), 0);\n\n // Only report if the page wasn't hidden prior to LCP.\n if (value < visibilityWatcher.firstHiddenTime) {\n metric.value = value;\n metric.entries = [lastEntry];\n report();\n }\n }\n };\n\n const po = observe('largest-contentful-paint', handleEntries);\n\n if (po) {\n report = bindReporter(onReport, metric);\n\n const stopListening = (): void => {\n if (!reportedMetricIDs[metric.id]) {\n handleEntries(po.takeRecords() as LCPMetric['entries']);\n po.disconnect();\n reportedMetricIDs[metric.id] = true;\n report(true);\n }\n };\n\n // Stop listening after input. Note: while scrolling is an input that\n // stop LCP observation, it's unreliable since it can be programmatically\n // generated. See: https://github.com/GoogleChrome/web-vitals/issues/75\n ['keydown', 'click'].forEach(type => {\n if (WINDOW.document) {\n addEventListener(type, stopListening, { once: true, capture: true });\n }\n });\n\n onHidden(stopListening, true);\n\n return stopListening;\n }\n\n return;\n};\n", "/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { WINDOW } from '../types';\nimport { bindReporter } from './lib/bindReporter';\nimport { getActivationStart } from './lib/getActivationStart';\nimport { getNavigationEntry } from './lib/getNavigationEntry';\nimport { initMetric } from './lib/initMetric';\nimport type { ReportCallback, ReportOpts } from './types';\nimport type { TTFBMetric } from './types/ttfb';\n\n/**\n * Runs in the next task after the page is done loading and/or prerendering.\n * @param callback\n */\nconst whenReady = (callback: () => void): void => {\n if (!WINDOW.document) {\n return;\n }\n\n if (WINDOW.document.prerendering) {\n addEventListener('prerenderingchange', () => whenReady(callback), true);\n } else if (WINDOW.document.readyState !== 'complete') {\n addEventListener('load', () => whenReady(callback), true);\n } else {\n // Queue a task so the callback runs after `loadEventEnd`.\n setTimeout(callback, 0);\n }\n};\n\n/**\n * Calculates the [TTFB](https://web.dev/time-to-first-byte/) value for the\n * current page and calls the `callback` function once the page has loaded,\n * along with the relevant `navigation` performance entry used to determine the\n * value. The reported value is a `DOMHighResTimeStamp`.\n *\n * Note, this function waits until after the page is loaded to call `callback`\n * in order to ensure all properties of the `navigation` entry are populated.\n * This is useful if you want to report on other metrics exposed by the\n * [Navigation Timing API](https://w3c.github.io/navigation-timing/). For\n * example, the TTFB metric starts from the page's [time\n * origin](https://www.w3.org/TR/hr-time-2/#sec-time-origin), which means it\n * includes time spent on DNS lookup, connection negotiation, network latency,\n * and server processing time.\n */\nexport const onTTFB = (onReport: ReportCallback, opts?: ReportOpts): void => {\n // Set defaults\n // eslint-disable-next-line no-param-reassign\n opts = opts || {};\n\n // https://web.dev/ttfb/#what-is-a-good-ttfb-score\n // const thresholds = [800, 1800];\n\n const metric = initMetric('TTFB');\n const report = bindReporter(onReport, metric, opts.reportAllChanges);\n\n whenReady(() => {\n const navEntry = getNavigationEntry() as TTFBMetric['entries'][number];\n\n if (navEntry) {\n // The activationStart reference is used because TTFB should be\n // relative to page activation rather than navigation start if the\n // page was prerendered. But in cases where `activationStart` occurs\n // after the first byte is received, this time should be clamped at 0.\n metric.value = Math.max(navEntry.responseStart - getActivationStart(), 0);\n\n // In some cases the value reported is negative or is larger\n // than the current page time. Ignore these cases:\n // https://github.com/GoogleChrome/web-vitals/issues/137\n // https://github.com/GoogleChrome/web-vitals/issues/162\n if (metric.value < 0 || metric.value > performance.now()) return;\n\n metric.entries = [navEntry];\n\n report(true);\n }\n });\n};\n", "import { getFunctionName, logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../common/debug-build';\nimport { onCLS } from './web-vitals/getCLS';\nimport { onFID } from './web-vitals/getFID';\nimport { onINP } from './web-vitals/getINP';\nimport { onLCP } from './web-vitals/getLCP';\nimport { observe } from './web-vitals/lib/observe';\nimport { onTTFB } from './web-vitals/onTTFB';\n\ntype InstrumentHandlerTypePerformanceObserver =\n | 'longtask'\n | 'event'\n | 'navigation'\n | 'paint'\n | 'resource'\n | 'first-input';\n\ntype InstrumentHandlerTypeMetric = 'cls' | 'lcp' | 'fid' | 'ttfb' | 'inp';\n\n// We provide this here manually instead of relying on a global, as this is not available in non-browser environements\n// And we do not want to expose such types\ninterface PerformanceEntry {\n readonly duration: number;\n readonly entryType: string;\n readonly name: string;\n readonly startTime: number;\n toJSON(): Record;\n}\ninterface PerformanceEventTiming extends PerformanceEntry {\n processingStart: number;\n processingEnd: number;\n duration: number;\n cancelable?: boolean;\n target?: unknown | null;\n interactionId?: number;\n}\n\ninterface Metric {\n /**\n * The name of the metric (in acronym form).\n */\n name: 'CLS' | 'FCP' | 'FID' | 'INP' | 'LCP' | 'TTFB';\n\n /**\n * The current value of the metric.\n */\n value: number;\n\n /**\n * The rating as to whether the metric value is within the \"good\",\n * \"needs improvement\", or \"poor\" thresholds of the metric.\n */\n rating: 'good' | 'needs-improvement' | 'poor';\n\n /**\n * The delta between the current value and the last-reported value.\n * On the first report, `delta` and `value` will always be the same.\n */\n delta: number;\n\n /**\n * A unique ID representing this particular metric instance. This ID can\n * be used by an analytics tool to dedupe multiple values sent for the same\n * metric instance, or to group multiple deltas together and calculate a\n * total. It can also be used to differentiate multiple different metric\n * instances sent from the same page, which can happen if the page is\n * restored from the back/forward cache (in that case new metrics object\n * get created).\n */\n id: string;\n\n /**\n * Any performance entries relevant to the metric value calculation.\n * The array may also be empty if the metric value was not based on any\n * entries (e.g. a CLS value of 0 given no layout shifts).\n */\n entries: PerformanceEntry[];\n\n /**\n * The type of navigation\n *\n * Navigation Timing API (or `undefined` if the browser doesn't\n * support that API). For pages that are restored from the bfcache, this\n * value will be 'back-forward-cache'.\n */\n navigationType: 'navigate' | 'reload' | 'back-forward' | 'back-forward-cache' | 'prerender';\n}\n\ntype InstrumentHandlerType = InstrumentHandlerTypeMetric | InstrumentHandlerTypePerformanceObserver;\n\ntype StopListening = undefined | void | (() => void);\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype InstrumentHandlerCallback = (data: any) => void;\n\ntype CleanupHandlerCallback = () => void;\n\nconst handlers: { [key in InstrumentHandlerType]?: InstrumentHandlerCallback[] } = {};\nconst instrumented: { [key in InstrumentHandlerType]?: boolean } = {};\n\nlet _previousCls: Metric | undefined;\nlet _previousFid: Metric | undefined;\nlet _previousLcp: Metric | undefined;\nlet _previousTtfb: Metric | undefined;\nlet _previousInp: Metric | undefined;\n\n/**\n * Add a callback that will be triggered when a CLS metric is available.\n * Returns a cleanup callback which can be called to remove the instrumentation handler.\n *\n * Pass `stopOnCallback = true` to stop listening for CLS when the cleanup callback is called.\n * This will lead to the CLS being finalized and frozen.\n */\nexport function addClsInstrumentationHandler(\n callback: (data: { metric: Metric }) => void,\n stopOnCallback = false,\n): CleanupHandlerCallback {\n return addMetricObserver('cls', callback, instrumentCls, _previousCls, stopOnCallback);\n}\n\n/**\n * Add a callback that will be triggered when a LCP metric is available.\n * Returns a cleanup callback which can be called to remove the instrumentation handler.\n *\n * Pass `stopOnCallback = true` to stop listening for LCP when the cleanup callback is called.\n * This will lead to the LCP being finalized and frozen.\n */\nexport function addLcpInstrumentationHandler(\n callback: (data: { metric: Metric }) => void,\n stopOnCallback = false,\n): CleanupHandlerCallback {\n return addMetricObserver('lcp', callback, instrumentLcp, _previousLcp, stopOnCallback);\n}\n\n/**\n * Add a callback that will be triggered when a FID metric is available.\n */\nexport function addTtfbInstrumentationHandler(callback: (data: { metric: Metric }) => void): CleanupHandlerCallback {\n return addMetricObserver('ttfb', callback, instrumentTtfb, _previousTtfb);\n}\n\n/**\n * Add a callback that will be triggered when a FID metric is available.\n * Returns a cleanup callback which can be called to remove the instrumentation handler.\n */\nexport function addFidInstrumentationHandler(callback: (data: { metric: Metric }) => void): CleanupHandlerCallback {\n return addMetricObserver('fid', callback, instrumentFid, _previousFid);\n}\n\n/**\n * Add a callback that will be triggered when a INP metric is available.\n * Returns a cleanup callback which can be called to remove the instrumentation handler.\n */\nexport function addInpInstrumentationHandler(\n callback: (data: { metric: Omit & { entries: PerformanceEventTiming[] } }) => void,\n): CleanupHandlerCallback {\n return addMetricObserver('inp', callback, instrumentInp, _previousInp);\n}\n\nexport function addPerformanceInstrumentationHandler(\n type: 'event' | 'first-input',\n callback: (data: { entries: ((PerformanceEntry & { target?: unknown | null }) | PerformanceEventTiming)[] }) => void,\n): CleanupHandlerCallback;\nexport function addPerformanceInstrumentationHandler(\n type: InstrumentHandlerTypePerformanceObserver,\n callback: (data: { entries: PerformanceEntry[] }) => void,\n): CleanupHandlerCallback;\n\n/**\n * Add a callback that will be triggered when a performance observer is triggered,\n * and receives the entries of the observer.\n * Returns a cleanup callback which can be called to remove the instrumentation handler.\n */\nexport function addPerformanceInstrumentationHandler(\n type: InstrumentHandlerTypePerformanceObserver,\n callback: (data: { entries: PerformanceEntry[] }) => void,\n): CleanupHandlerCallback {\n addHandler(type, callback);\n\n if (!instrumented[type]) {\n instrumentPerformanceObserver(type);\n instrumented[type] = true;\n }\n\n return getCleanupCallback(type, callback);\n}\n\n/** Trigger all handlers of a given type. */\nfunction triggerHandlers(type: InstrumentHandlerType, data: unknown): void {\n const typeHandlers = handlers[type];\n\n if (!typeHandlers || !typeHandlers.length) {\n return;\n }\n\n for (const handler of typeHandlers) {\n try {\n handler(data);\n } catch (e) {\n DEBUG_BUILD &&\n logger.error(\n `Error while triggering instrumentation handler.\\nType: ${type}\\nName: ${getFunctionName(handler)}\\nError:`,\n e,\n );\n }\n }\n}\n\nfunction instrumentCls(): StopListening {\n return onCLS(\n metric => {\n triggerHandlers('cls', {\n metric,\n });\n _previousCls = metric;\n },\n { reportAllChanges: true },\n );\n}\n\nfunction instrumentFid(): void {\n return onFID(metric => {\n triggerHandlers('fid', {\n metric,\n });\n _previousFid = metric;\n });\n}\n\nfunction instrumentLcp(): StopListening {\n return onLCP(metric => {\n triggerHandlers('lcp', {\n metric,\n });\n _previousLcp = metric;\n });\n}\n\nfunction instrumentTtfb(): StopListening {\n return onTTFB(metric => {\n triggerHandlers('ttfb', {\n metric,\n });\n _previousTtfb = metric;\n });\n}\n\nfunction instrumentInp(): void {\n return onINP(metric => {\n triggerHandlers('inp', {\n metric,\n });\n _previousInp = metric;\n });\n}\n\nfunction addMetricObserver(\n type: InstrumentHandlerTypeMetric,\n callback: InstrumentHandlerCallback,\n instrumentFn: () => StopListening,\n previousValue: Metric | undefined,\n stopOnCallback = false,\n): CleanupHandlerCallback {\n addHandler(type, callback);\n\n let stopListening: StopListening | undefined;\n\n if (!instrumented[type]) {\n stopListening = instrumentFn();\n instrumented[type] = true;\n }\n\n if (previousValue) {\n callback({ metric: previousValue });\n }\n\n return getCleanupCallback(type, callback, stopOnCallback ? stopListening : undefined);\n}\n\nfunction instrumentPerformanceObserver(type: InstrumentHandlerTypePerformanceObserver): void {\n const options: PerformanceObserverInit = {};\n\n // Special per-type options we want to use\n if (type === 'event') {\n options.durationThreshold = 0;\n }\n\n observe(\n type,\n entries => {\n triggerHandlers(type, { entries });\n },\n options,\n );\n}\n\nfunction addHandler(type: InstrumentHandlerType, handler: InstrumentHandlerCallback): void {\n handlers[type] = handlers[type] || [];\n (handlers[type] as InstrumentHandlerCallback[]).push(handler);\n}\n\n// Get a callback which can be called to remove the instrumentation handler\nfunction getCleanupCallback(\n type: InstrumentHandlerType,\n callback: InstrumentHandlerCallback,\n stopListening: StopListening,\n): CleanupHandlerCallback {\n return () => {\n if (stopListening) {\n stopListening();\n }\n\n const typeHandlers = handlers[type];\n\n if (!typeHandlers) {\n return;\n }\n\n const index = typeHandlers.indexOf(callback);\n if (index !== -1) {\n typeHandlers.splice(index, 1);\n }\n };\n}\n", "import type { Transaction } from '@sentry/core';\nimport type { Span, SpanContext } from '@sentry/types';\n\n/**\n * Checks if a given value is a valid measurement value.\n */\nexport function isMeasurementValue(value: unknown): value is number {\n return typeof value === 'number' && isFinite(value);\n}\n\n/**\n * Helper function to start child on transactions. This function will make sure that the transaction will\n * use the start timestamp of the created child span if it is earlier than the transactions actual\n * start timestamp.\n *\n * Note: this will not be possible anymore in v8,\n * unless we do some special handling for browser here...\n */\nexport function _startChild(transaction: Transaction, { startTimestamp, ...ctx }: SpanContext): Span {\n // eslint-disable-next-line deprecation/deprecation\n if (startTimestamp && transaction.startTimestamp > startTimestamp) {\n // eslint-disable-next-line deprecation/deprecation\n transaction.startTimestamp = startTimestamp;\n }\n\n // eslint-disable-next-line deprecation/deprecation\n return transaction.startChild({\n startTimestamp,\n ...ctx,\n });\n}\n", "/* eslint-disable max-lines */\nimport type { IdleTransaction, Transaction } from '@sentry/core';\nimport {\n Span,\n getActiveTransaction,\n getClient,\n hasTracingEnabled,\n isValidSampleRate,\n setMeasurement,\n} from '@sentry/core';\nimport type { ClientOptions, Measurements, SpanContext, TransactionContext } from '@sentry/types';\nimport { browserPerformanceTimeOrigin, getComponentName, htmlTreeAsString, logger, parseUrl } from '@sentry/utils';\n\nimport { spanToJSON } from '@sentry/core';\nimport { DEBUG_BUILD } from '../../common/debug-build';\nimport {\n addClsInstrumentationHandler,\n addFidInstrumentationHandler,\n addInpInstrumentationHandler,\n addLcpInstrumentationHandler,\n addPerformanceInstrumentationHandler,\n addTtfbInstrumentationHandler,\n} from '../instrument';\nimport { WINDOW } from '../types';\nimport { getVisibilityWatcher } from '../web-vitals/lib/getVisibilityWatcher';\nimport type {\n InteractionRouteNameMapping,\n NavigatorDeviceMemory,\n NavigatorNetworkInformation,\n} from '../web-vitals/types';\nimport { _startChild, isMeasurementValue } from './utils';\n\nimport { createSpanEnvelope } from '@sentry/core';\nimport { getNavigationEntry } from '../web-vitals/lib/getNavigationEntry';\n\nconst MAX_INT_AS_BYTES = 2147483647;\n\n/**\n * Converts from milliseconds to seconds\n * @param time time in ms\n */\nfunction msToSec(time: number): number {\n return time / 1000;\n}\n\nfunction getBrowserPerformanceAPI(): Performance | undefined {\n // @ts-expect-error we want to make sure all of these are available, even if TS is sure they are\n return WINDOW && WINDOW.addEventListener && WINDOW.performance;\n}\n\nlet _performanceCursor: number = 0;\n\nlet _measurements: Measurements = {};\nlet _lcpEntry: LargestContentfulPaint | undefined;\nlet _clsEntry: LayoutShift | undefined;\n\n/**\n * Start tracking web vitals.\n * The callback returned by this function can be used to stop tracking & ensure all measurements are final & captured.\n *\n * @returns A function that forces web vitals collection\n */\nexport function startTrackingWebVitals(): () => void {\n const performance = getBrowserPerformanceAPI();\n if (performance && browserPerformanceTimeOrigin) {\n // @ts-expect-error we want to make sure all of these are available, even if TS is sure they are\n if (performance.mark) {\n WINDOW.performance.mark('sentry-tracing-init');\n }\n const fidCallback = _trackFID();\n const clsCallback = _trackCLS();\n const lcpCallback = _trackLCP();\n const ttfbCallback = _trackTtfb();\n\n return (): void => {\n fidCallback();\n clsCallback();\n lcpCallback();\n ttfbCallback();\n };\n }\n\n return () => undefined;\n}\n\n/**\n * Start tracking long tasks.\n */\nexport function startTrackingLongTasks(): void {\n addPerformanceInstrumentationHandler('longtask', ({ entries }) => {\n for (const entry of entries) {\n // eslint-disable-next-line deprecation/deprecation\n const transaction = getActiveTransaction() as IdleTransaction | undefined;\n if (!transaction) {\n return;\n }\n const startTime = msToSec((browserPerformanceTimeOrigin as number) + entry.startTime);\n const duration = msToSec(entry.duration);\n\n // eslint-disable-next-line deprecation/deprecation\n transaction.startChild({\n description: 'Main UI thread blocked',\n op: 'ui.long-task',\n origin: 'auto.ui.browser.metrics',\n startTimestamp: startTime,\n endTimestamp: startTime + duration,\n });\n }\n });\n}\n\n/**\n * Start tracking interaction events.\n */\nexport function startTrackingInteractions(): void {\n addPerformanceInstrumentationHandler('event', ({ entries }) => {\n for (const entry of entries) {\n // eslint-disable-next-line deprecation/deprecation\n const transaction = getActiveTransaction() as IdleTransaction | undefined;\n if (!transaction) {\n return;\n }\n\n if (entry.name === 'click') {\n const startTime = msToSec((browserPerformanceTimeOrigin as number) + entry.startTime);\n const duration = msToSec(entry.duration);\n\n const span: SpanContext = {\n description: htmlTreeAsString(entry.target),\n op: `ui.interaction.${entry.name}`,\n origin: 'auto.ui.browser.metrics',\n startTimestamp: startTime,\n endTimestamp: startTime + duration,\n };\n\n const componentName = getComponentName(entry.target);\n if (componentName) {\n span.attributes = { 'ui.component_name': componentName };\n }\n\n // eslint-disable-next-line deprecation/deprecation\n transaction.startChild(span);\n }\n }\n });\n}\n\n/**\n * Start tracking INP webvital events.\n */\nexport function startTrackingINP(\n interactionIdtoRouteNameMapping: InteractionRouteNameMapping,\n interactionsSampleRate: number,\n): () => void {\n const performance = getBrowserPerformanceAPI();\n if (performance && browserPerformanceTimeOrigin) {\n const inpCallback = _trackINP(interactionIdtoRouteNameMapping, interactionsSampleRate);\n\n return (): void => {\n inpCallback();\n };\n }\n\n return () => undefined;\n}\n\n/** Starts tracking the Cumulative Layout Shift on the current page. */\nfunction _trackCLS(): () => void {\n return addClsInstrumentationHandler(({ metric }) => {\n const entry = metric.entries[metric.entries.length - 1];\n if (!entry) {\n return;\n }\n\n DEBUG_BUILD && logger.log('[Measurements] Adding CLS');\n _measurements['cls'] = { value: metric.value, unit: '' };\n _clsEntry = entry as LayoutShift;\n }, true);\n}\n\n/** Starts tracking the Largest Contentful Paint on the current page. */\nfunction _trackLCP(): () => void {\n return addLcpInstrumentationHandler(({ metric }) => {\n const entry = metric.entries[metric.entries.length - 1];\n if (!entry) {\n return;\n }\n\n DEBUG_BUILD && logger.log('[Measurements] Adding LCP');\n _measurements['lcp'] = { value: metric.value, unit: 'millisecond' };\n _lcpEntry = entry as LargestContentfulPaint;\n }, true);\n}\n\n/** Starts tracking the First Input Delay on the current page. */\nfunction _trackFID(): () => void {\n return addFidInstrumentationHandler(({ metric }) => {\n const entry = metric.entries[metric.entries.length - 1];\n if (!entry) {\n return;\n }\n\n const timeOrigin = msToSec(browserPerformanceTimeOrigin as number);\n const startTime = msToSec(entry.startTime);\n DEBUG_BUILD && logger.log('[Measurements] Adding FID');\n _measurements['fid'] = { value: metric.value, unit: 'millisecond' };\n _measurements['mark.fid'] = { value: timeOrigin + startTime, unit: 'second' };\n });\n}\n\nfunction _trackTtfb(): () => void {\n return addTtfbInstrumentationHandler(({ metric }) => {\n const entry = metric.entries[metric.entries.length - 1];\n if (!entry) {\n return;\n }\n\n DEBUG_BUILD && logger.log('[Measurements] Adding TTFB');\n _measurements['ttfb'] = { value: metric.value, unit: 'millisecond' };\n });\n}\n\nconst INP_ENTRY_MAP: Record = {\n click: 'click',\n pointerdown: 'click',\n pointerup: 'click',\n mousedown: 'click',\n mouseup: 'click',\n touchstart: 'click',\n touchend: 'click',\n mouseover: 'hover',\n mouseout: 'hover',\n mouseenter: 'hover',\n mouseleave: 'hover',\n pointerover: 'hover',\n pointerout: 'hover',\n pointerenter: 'hover',\n pointerleave: 'hover',\n dragstart: 'drag',\n dragend: 'drag',\n drag: 'drag',\n dragenter: 'drag',\n dragleave: 'drag',\n dragover: 'drag',\n drop: 'drag',\n keydown: 'press',\n keyup: 'press',\n keypress: 'press',\n input: 'press',\n};\n\n/** Starts tracking the Interaction to Next Paint on the current page. */\nfunction _trackINP(\n interactionIdToRouteNameMapping: InteractionRouteNameMapping,\n interactionsSampleRate: number,\n): () => void {\n return addInpInstrumentationHandler(({ metric }) => {\n if (metric.value === undefined) {\n return;\n }\n const entry = metric.entries.find(\n entry => entry.duration === metric.value && INP_ENTRY_MAP[entry.name] !== undefined,\n );\n const client = getClient();\n if (!entry || !client) {\n return;\n }\n const interactionType = INP_ENTRY_MAP[entry.name];\n const options = client.getOptions();\n /** Build the INP span, create an envelope from the span, and then send the envelope */\n const startTime = msToSec((browserPerformanceTimeOrigin as number) + entry.startTime);\n const duration = msToSec(metric.value);\n const interaction =\n entry.interactionId !== undefined ? interactionIdToRouteNameMapping[entry.interactionId] : undefined;\n if (interaction === undefined) {\n return;\n }\n const { routeName, parentContext, activeTransaction, user, replayId } = interaction;\n const userDisplay = user !== undefined ? user.email || user.id || user.ip_address : undefined;\n // eslint-disable-next-line deprecation/deprecation\n const profileId = activeTransaction !== undefined ? activeTransaction.getProfileId() : undefined;\n const span = new Span({\n startTimestamp: startTime,\n endTimestamp: startTime + duration,\n op: `ui.interaction.${interactionType}`,\n name: htmlTreeAsString(entry.target),\n attributes: {\n release: options.release,\n environment: options.environment,\n transaction: routeName,\n ...(userDisplay !== undefined && userDisplay !== '' ? { user: userDisplay } : {}),\n ...(profileId !== undefined ? { profile_id: profileId } : {}),\n ...(replayId !== undefined ? { replay_id: replayId } : {}),\n },\n exclusiveTime: metric.value,\n measurements: {\n inp: { value: metric.value, unit: 'millisecond' },\n },\n });\n\n /** Check to see if the span should be sampled */\n const sampleRate = getSampleRate(parentContext, options, interactionsSampleRate);\n\n if (!sampleRate) {\n return;\n }\n\n if (Math.random() < (sampleRate as number | boolean)) {\n const envelope = span ? createSpanEnvelope([span], client.getDsn()) : undefined;\n const transport = client && client.getTransport();\n if (transport && envelope) {\n transport.send(envelope).then(null, reason => {\n DEBUG_BUILD && logger.error('Error while sending interaction:', reason);\n });\n }\n return;\n }\n });\n}\n\n/** Add performance related spans to a transaction */\nexport function addPerformanceEntries(transaction: Transaction): void {\n const performance = getBrowserPerformanceAPI();\n if (!performance || !WINDOW.performance.getEntries || !browserPerformanceTimeOrigin) {\n // Gatekeeper if performance API not available\n return;\n }\n\n DEBUG_BUILD && logger.log('[Tracing] Adding & adjusting spans using Performance API');\n const timeOrigin = msToSec(browserPerformanceTimeOrigin);\n\n const performanceEntries = performance.getEntries();\n\n const { op, start_timestamp: transactionStartTime } = spanToJSON(transaction);\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n performanceEntries.slice(_performanceCursor).forEach((entry: Record) => {\n const startTime = msToSec(entry.startTime);\n const duration = msToSec(entry.duration);\n\n // eslint-disable-next-line deprecation/deprecation\n if (transaction.op === 'navigation' && transactionStartTime && timeOrigin + startTime < transactionStartTime) {\n return;\n }\n\n switch (entry.entryType) {\n case 'navigation': {\n _addNavigationSpans(transaction, entry, timeOrigin);\n break;\n }\n case 'mark':\n case 'paint':\n case 'measure': {\n _addMeasureSpans(transaction, entry, startTime, duration, timeOrigin);\n\n // capture web vitals\n const firstHidden = getVisibilityWatcher();\n // Only report if the page wasn't hidden prior to the web vital.\n const shouldRecord = entry.startTime < firstHidden.firstHiddenTime;\n\n if (entry.name === 'first-paint' && shouldRecord) {\n DEBUG_BUILD && logger.log('[Measurements] Adding FP');\n _measurements['fp'] = { value: entry.startTime, unit: 'millisecond' };\n }\n if (entry.name === 'first-contentful-paint' && shouldRecord) {\n DEBUG_BUILD && logger.log('[Measurements] Adding FCP');\n _measurements['fcp'] = { value: entry.startTime, unit: 'millisecond' };\n }\n break;\n }\n case 'resource': {\n _addResourceSpans(transaction, entry, entry.name as string, startTime, duration, timeOrigin);\n break;\n }\n default:\n // Ignore other entry types.\n }\n });\n\n _performanceCursor = Math.max(performanceEntries.length - 1, 0);\n\n _trackNavigator(transaction);\n\n // Measurements are only available for pageload transactions\n if (op === 'pageload') {\n _addTtfbRequestTimeToMeasurements(_measurements);\n\n ['fcp', 'fp', 'lcp'].forEach(name => {\n if (!_measurements[name] || !transactionStartTime || timeOrigin >= transactionStartTime) {\n return;\n }\n // The web vitals, fcp, fp, lcp, and ttfb, all measure relative to timeOrigin.\n // Unfortunately, timeOrigin is not captured within the transaction span data, so these web vitals will need\n // to be adjusted to be relative to transaction.startTimestamp.\n const oldValue = _measurements[name].value;\n const measurementTimestamp = timeOrigin + msToSec(oldValue);\n\n // normalizedValue should be in milliseconds\n const normalizedValue = Math.abs((measurementTimestamp - transactionStartTime) * 1000);\n const delta = normalizedValue - oldValue;\n\n DEBUG_BUILD && logger.log(`[Measurements] Normalized ${name} from ${oldValue} to ${normalizedValue} (${delta})`);\n _measurements[name].value = normalizedValue;\n });\n\n const fidMark = _measurements['mark.fid'];\n if (fidMark && _measurements['fid']) {\n // create span for FID\n _startChild(transaction, {\n description: 'first input delay',\n endTimestamp: fidMark.value + msToSec(_measurements['fid'].value),\n op: 'ui.action',\n origin: 'auto.ui.browser.metrics',\n startTimestamp: fidMark.value,\n });\n\n // Delete mark.fid as we don't want it to be part of final payload\n delete _measurements['mark.fid'];\n }\n\n // If FCP is not recorded we should not record the cls value\n // according to the new definition of CLS.\n if (!('fcp' in _measurements)) {\n delete _measurements.cls;\n }\n\n Object.keys(_measurements).forEach(measurementName => {\n setMeasurement(measurementName, _measurements[measurementName].value, _measurements[measurementName].unit);\n });\n\n _tagMetricInfo(transaction);\n }\n\n _lcpEntry = undefined;\n _clsEntry = undefined;\n _measurements = {};\n}\n\n/** Create measure related spans */\nexport function _addMeasureSpans(\n transaction: Transaction,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n entry: Record,\n startTime: number,\n duration: number,\n timeOrigin: number,\n): number {\n const measureStartTimestamp = timeOrigin + startTime;\n const measureEndTimestamp = measureStartTimestamp + duration;\n\n _startChild(transaction, {\n description: entry.name as string,\n endTimestamp: measureEndTimestamp,\n op: entry.entryType as string,\n origin: 'auto.resource.browser.metrics',\n startTimestamp: measureStartTimestamp,\n });\n\n return measureStartTimestamp;\n}\n\n/** Instrument navigation entries */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction _addNavigationSpans(transaction: Transaction, entry: Record, timeOrigin: number): void {\n ['unloadEvent', 'redirect', 'domContentLoadedEvent', 'loadEvent', 'connect'].forEach(event => {\n _addPerformanceNavigationTiming(transaction, entry, event, timeOrigin);\n });\n _addPerformanceNavigationTiming(transaction, entry, 'secureConnection', timeOrigin, 'TLS/SSL', 'connectEnd');\n _addPerformanceNavigationTiming(transaction, entry, 'fetch', timeOrigin, 'cache', 'domainLookupStart');\n _addPerformanceNavigationTiming(transaction, entry, 'domainLookup', timeOrigin, 'DNS');\n _addRequest(transaction, entry, timeOrigin);\n}\n\n/** Create performance navigation related spans */\nfunction _addPerformanceNavigationTiming(\n transaction: Transaction,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n entry: Record,\n event: string,\n timeOrigin: number,\n description?: string,\n eventEnd?: string,\n): void {\n const end = eventEnd ? (entry[eventEnd] as number | undefined) : (entry[`${event}End`] as number | undefined);\n const start = entry[`${event}Start`] as number | undefined;\n if (!start || !end) {\n return;\n }\n _startChild(transaction, {\n op: 'browser',\n origin: 'auto.browser.browser.metrics',\n description: description || event,\n startTimestamp: timeOrigin + msToSec(start),\n endTimestamp: timeOrigin + msToSec(end),\n });\n}\n\n/** Create request and response related spans */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction _addRequest(transaction: Transaction, entry: Record, timeOrigin: number): void {\n if (entry.responseEnd) {\n // It is possible that we are collecting these metrics when the page hasn't finished loading yet, for example when the HTML slowly streams in.\n // In this case, ie. when the document request hasn't finished yet, `entry.responseEnd` will be 0.\n // In order not to produce faulty spans, where the end timestamp is before the start timestamp, we will only collect\n // these spans when the responseEnd value is available. The backend (Relay) would drop the entire transaction if it contained faulty spans.\n _startChild(transaction, {\n op: 'browser',\n origin: 'auto.browser.browser.metrics',\n description: 'request',\n startTimestamp: timeOrigin + msToSec(entry.requestStart as number),\n endTimestamp: timeOrigin + msToSec(entry.responseEnd as number),\n });\n\n _startChild(transaction, {\n op: 'browser',\n origin: 'auto.browser.browser.metrics',\n description: 'response',\n startTimestamp: timeOrigin + msToSec(entry.responseStart as number),\n endTimestamp: timeOrigin + msToSec(entry.responseEnd as number),\n });\n }\n}\n\nexport interface ResourceEntry extends Record {\n initiatorType?: string;\n transferSize?: number;\n encodedBodySize?: number;\n decodedBodySize?: number;\n renderBlockingStatus?: string;\n}\n\n/** Create resource-related spans */\nexport function _addResourceSpans(\n transaction: Transaction,\n entry: ResourceEntry,\n resourceUrl: string,\n startTime: number,\n duration: number,\n timeOrigin: number,\n): void {\n // we already instrument based on fetch and xhr, so we don't need to\n // duplicate spans here.\n if (entry.initiatorType === 'xmlhttprequest' || entry.initiatorType === 'fetch') {\n return;\n }\n\n const parsedUrl = parseUrl(resourceUrl);\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const data: Record = {};\n setResourceEntrySizeData(data, entry, 'transferSize', 'http.response_transfer_size');\n setResourceEntrySizeData(data, entry, 'encodedBodySize', 'http.response_content_length');\n setResourceEntrySizeData(data, entry, 'decodedBodySize', 'http.decoded_response_content_length');\n\n if ('renderBlockingStatus' in entry) {\n data['resource.render_blocking_status'] = entry.renderBlockingStatus;\n }\n if (parsedUrl.protocol) {\n data['url.scheme'] = parsedUrl.protocol.split(':').pop(); // the protocol returned by parseUrl includes a :, but OTEL spec does not, so we remove it.\n }\n\n if (parsedUrl.host) {\n data['server.address'] = parsedUrl.host;\n }\n\n data['url.same_origin'] = resourceUrl.includes(WINDOW.location.origin);\n\n const startTimestamp = timeOrigin + startTime;\n const endTimestamp = startTimestamp + duration;\n\n _startChild(transaction, {\n description: resourceUrl.replace(WINDOW.location.origin, ''),\n endTimestamp,\n op: entry.initiatorType ? `resource.${entry.initiatorType}` : 'resource.other',\n origin: 'auto.resource.browser.metrics',\n startTimestamp,\n data,\n });\n}\n\n/**\n * Capture the information of the user agent.\n */\nfunction _trackNavigator(transaction: Transaction): void {\n const navigator = WINDOW.navigator as null | (Navigator & NavigatorNetworkInformation & NavigatorDeviceMemory);\n if (!navigator) {\n return;\n }\n\n // track network connectivity\n const connection = navigator.connection;\n if (connection) {\n if (connection.effectiveType) {\n // TODO: Can we rewrite this to an attribute?\n // eslint-disable-next-line deprecation/deprecation\n transaction.setTag('effectiveConnectionType', connection.effectiveType);\n }\n\n if (connection.type) {\n // TODO: Can we rewrite this to an attribute?\n // eslint-disable-next-line deprecation/deprecation\n transaction.setTag('connectionType', connection.type);\n }\n\n if (isMeasurementValue(connection.rtt)) {\n _measurements['connection.rtt'] = { value: connection.rtt, unit: 'millisecond' };\n }\n }\n\n if (isMeasurementValue(navigator.deviceMemory)) {\n // TODO: Can we rewrite this to an attribute?\n // eslint-disable-next-line deprecation/deprecation\n transaction.setTag('deviceMemory', `${navigator.deviceMemory} GB`);\n }\n\n if (isMeasurementValue(navigator.hardwareConcurrency)) {\n // TODO: Can we rewrite this to an attribute?\n // eslint-disable-next-line deprecation/deprecation\n transaction.setTag('hardwareConcurrency', String(navigator.hardwareConcurrency));\n }\n}\n\n/** Add LCP / CLS data to transaction to allow debugging */\nfunction _tagMetricInfo(transaction: Transaction): void {\n if (_lcpEntry) {\n DEBUG_BUILD && logger.log('[Measurements] Adding LCP Data');\n\n // Capture Properties of the LCP element that contributes to the LCP.\n\n if (_lcpEntry.element) {\n // TODO: Can we rewrite this to an attribute?\n // eslint-disable-next-line deprecation/deprecation\n transaction.setTag('lcp.element', htmlTreeAsString(_lcpEntry.element));\n }\n\n if (_lcpEntry.id) {\n // TODO: Can we rewrite this to an attribute?\n // eslint-disable-next-line deprecation/deprecation\n transaction.setTag('lcp.id', _lcpEntry.id);\n }\n\n if (_lcpEntry.url) {\n // Trim URL to the first 200 characters.\n // TODO: Can we rewrite this to an attribute?\n // eslint-disable-next-line deprecation/deprecation\n transaction.setTag('lcp.url', _lcpEntry.url.trim().slice(0, 200));\n }\n\n // TODO: Can we rewrite this to an attribute?\n // eslint-disable-next-line deprecation/deprecation\n transaction.setTag('lcp.size', _lcpEntry.size);\n }\n\n // See: https://developer.mozilla.org/en-US/docs/Web/API/LayoutShift\n if (_clsEntry && _clsEntry.sources) {\n DEBUG_BUILD && logger.log('[Measurements] Adding CLS Data');\n _clsEntry.sources.forEach((source, index) =>\n // TODO: Can we rewrite this to an attribute?\n // eslint-disable-next-line deprecation/deprecation\n transaction.setTag(`cls.source.${index + 1}`, htmlTreeAsString(source.node)),\n );\n }\n}\n\nfunction setResourceEntrySizeData(\n data: Record,\n entry: ResourceEntry,\n key: keyof Pick,\n dataKey: 'http.response_transfer_size' | 'http.response_content_length' | 'http.decoded_response_content_length',\n): void {\n const entryVal = entry[key];\n if (entryVal != null && entryVal < MAX_INT_AS_BYTES) {\n data[dataKey] = entryVal;\n }\n}\n\n/**\n * Add ttfb request time information to measurements.\n *\n * ttfb information is added via vendored web vitals library.\n */\nfunction _addTtfbRequestTimeToMeasurements(_measurements: Measurements): void {\n const navEntry = getNavigationEntry();\n if (!navEntry) {\n return;\n }\n\n const { responseStart, requestStart } = navEntry;\n\n if (requestStart <= responseStart) {\n DEBUG_BUILD && logger.log('[Measurements] Adding TTFB Request Time');\n _measurements['ttfb.requestTime'] = {\n value: responseStart - requestStart,\n unit: 'millisecond',\n };\n }\n}\n\n/** Taken from @sentry/core sampling.ts */\nfunction getSampleRate(\n transactionContext: TransactionContext | undefined,\n options: ClientOptions,\n interactionsSampleRate: number,\n): number | boolean {\n if (!hasTracingEnabled(options)) {\n return false;\n }\n let sampleRate;\n if (transactionContext !== undefined && typeof options.tracesSampler === 'function') {\n sampleRate = options.tracesSampler({\n transactionContext,\n name: transactionContext.name,\n parentSampled: transactionContext.parentSampled,\n attributes: {\n // eslint-disable-next-line deprecation/deprecation\n ...transactionContext.data,\n ...transactionContext.attributes,\n },\n location: WINDOW.location,\n });\n } else if (transactionContext !== undefined && transactionContext.sampled !== undefined) {\n sampleRate = transactionContext.sampled;\n } else if (typeof options.tracesSampleRate !== 'undefined') {\n sampleRate = options.tracesSampleRate;\n } else {\n sampleRate = 1;\n }\n if (!isValidSampleRate(sampleRate)) {\n DEBUG_BUILD && logger.warn('[Tracing] Discarding interaction span because of invalid sample rate.');\n return false;\n }\n if (sampleRate === true) {\n return interactionsSampleRate;\n } else if (sampleRate === false) {\n return 0;\n }\n return sampleRate * interactionsSampleRate;\n}\n", "import {\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n getClient,\n getCurrentScope,\n getDynamicSamplingContextFromClient,\n getDynamicSamplingContextFromSpan,\n getIsolationScope,\n hasTracingEnabled,\n setHttpStatus,\n spanToTraceHeader,\n startInactiveSpan,\n} from '@sentry/core';\nimport type { Client, HandlerDataFetch, Scope, Span, SpanOrigin } from '@sentry/types';\nimport {\n BAGGAGE_HEADER_NAME,\n dynamicSamplingContextToSentryBaggageHeader,\n generateSentryTraceHeader,\n isInstanceOf,\n parseUrl,\n} from '@sentry/utils';\n\ntype PolymorphicRequestHeaders =\n | Record\n | Array<[string, string]>\n // the below is not preicsely the Header type used in Request, but it'll pass duck-typing\n | {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [key: string]: any;\n append: (key: string, value: string) => void;\n get: (key: string) => string | null | undefined;\n };\n\n/**\n * Create and track fetch request spans for usage in combination with `addInstrumentationHandler`.\n *\n * @returns Span if a span was created, otherwise void.\n */\nexport function instrumentFetchRequest(\n handlerData: HandlerDataFetch,\n shouldCreateSpan: (url: string) => boolean,\n shouldAttachHeaders: (url: string) => boolean,\n spans: Record,\n spanOrigin: SpanOrigin = 'auto.http.browser',\n): Span | undefined {\n if (!hasTracingEnabled() || !handlerData.fetchData) {\n return undefined;\n }\n\n const shouldCreateSpanResult = shouldCreateSpan(handlerData.fetchData.url);\n\n if (handlerData.endTimestamp && shouldCreateSpanResult) {\n const spanId = handlerData.fetchData.__span;\n if (!spanId) return;\n\n const span = spans[spanId];\n if (span) {\n endSpan(span, handlerData);\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete spans[spanId];\n }\n return undefined;\n }\n\n const scope = getCurrentScope();\n const client = getClient();\n\n const { method, url } = handlerData.fetchData;\n\n const fullUrl = getFullURL(url);\n const host = fullUrl ? parseUrl(fullUrl).host : undefined;\n\n const span = shouldCreateSpanResult\n ? startInactiveSpan({\n name: `${method} ${url}`,\n onlyIfParent: true,\n attributes: {\n url,\n type: 'fetch',\n 'http.method': method,\n 'http.url': fullUrl,\n 'server.address': host,\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: spanOrigin,\n },\n op: 'http.client',\n })\n : undefined;\n\n if (span) {\n handlerData.fetchData.__span = span.spanContext().spanId;\n spans[span.spanContext().spanId] = span;\n }\n\n if (shouldAttachHeaders(handlerData.fetchData.url) && client) {\n const request: string | Request = handlerData.args[0];\n\n // In case the user hasn't set the second argument of a fetch call we default it to `{}`.\n handlerData.args[1] = handlerData.args[1] || {};\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const options: { [key: string]: any } = handlerData.args[1];\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access\n options.headers = addTracingHeadersToFetchRequest(request, client, scope, options, span);\n }\n\n return span;\n}\n\n/**\n * Adds sentry-trace and baggage headers to the various forms of fetch headers\n */\nexport function addTracingHeadersToFetchRequest(\n request: string | unknown, // unknown is actually type Request but we can't export DOM types from this package,\n client: Client,\n scope: Scope,\n options: {\n headers?:\n | {\n [key: string]: string[] | string | undefined;\n }\n | PolymorphicRequestHeaders;\n },\n requestSpan?: Span,\n): PolymorphicRequestHeaders | undefined {\n // eslint-disable-next-line deprecation/deprecation\n const span = requestSpan || scope.getSpan();\n\n const isolationScope = getIsolationScope();\n\n const { traceId, spanId, sampled, dsc } = {\n ...isolationScope.getPropagationContext(),\n ...scope.getPropagationContext(),\n };\n\n const sentryTraceHeader = span ? spanToTraceHeader(span) : generateSentryTraceHeader(traceId, spanId, sampled);\n\n const sentryBaggageHeader = dynamicSamplingContextToSentryBaggageHeader(\n dsc ||\n (span ? getDynamicSamplingContextFromSpan(span) : getDynamicSamplingContextFromClient(traceId, client, scope)),\n );\n\n const headers =\n options.headers ||\n (typeof Request !== 'undefined' && isInstanceOf(request, Request) ? (request as Request).headers : undefined);\n\n if (!headers) {\n return { 'sentry-trace': sentryTraceHeader, baggage: sentryBaggageHeader };\n } else if (typeof Headers !== 'undefined' && isInstanceOf(headers, Headers)) {\n const newHeaders = new Headers(headers as Headers);\n\n newHeaders.append('sentry-trace', sentryTraceHeader);\n\n if (sentryBaggageHeader) {\n // If the same header is appended multiple times the browser will merge the values into a single request header.\n // Its therefore safe to simply push a \"baggage\" entry, even though there might already be another baggage header.\n newHeaders.append(BAGGAGE_HEADER_NAME, sentryBaggageHeader);\n }\n\n return newHeaders as PolymorphicRequestHeaders;\n } else if (Array.isArray(headers)) {\n const newHeaders = [...headers, ['sentry-trace', sentryTraceHeader]];\n\n if (sentryBaggageHeader) {\n // If there are multiple entries with the same key, the browser will merge the values into a single request header.\n // Its therefore safe to simply push a \"baggage\" entry, even though there might already be another baggage header.\n newHeaders.push([BAGGAGE_HEADER_NAME, sentryBaggageHeader]);\n }\n\n return newHeaders as PolymorphicRequestHeaders;\n } else {\n const existingBaggageHeader = 'baggage' in headers ? headers.baggage : undefined;\n const newBaggageHeaders: string[] = [];\n\n if (Array.isArray(existingBaggageHeader)) {\n newBaggageHeaders.push(...existingBaggageHeader);\n } else if (existingBaggageHeader) {\n newBaggageHeaders.push(existingBaggageHeader);\n }\n\n if (sentryBaggageHeader) {\n newBaggageHeaders.push(sentryBaggageHeader);\n }\n\n return {\n ...(headers as Exclude),\n 'sentry-trace': sentryTraceHeader,\n baggage: newBaggageHeaders.length > 0 ? newBaggageHeaders.join(',') : undefined,\n };\n }\n}\n\nfunction getFullURL(url: string): string | undefined {\n try {\n const parsed = new URL(url);\n return parsed.href;\n } catch {\n return undefined;\n }\n}\n\nfunction endSpan(span: Span, handlerData: HandlerDataFetch): void {\n if (handlerData.response) {\n setHttpStatus(span, handlerData.response.status);\n\n const contentLength =\n handlerData.response && handlerData.response.headers && handlerData.response.headers.get('content-length');\n\n if (contentLength) {\n const contentLengthNum = parseInt(contentLength);\n if (contentLengthNum > 0) {\n span.setAttribute('http.response_content_length', contentLengthNum);\n }\n }\n } else if (handlerData.error) {\n span.setStatus('internal_error');\n }\n span.end();\n}\n", "/* eslint-disable max-lines */\nimport {\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n getClient,\n getCurrentScope,\n getDynamicSamplingContextFromClient,\n getDynamicSamplingContextFromSpan,\n getIsolationScope,\n hasTracingEnabled,\n setHttpStatus,\n spanToJSON,\n spanToTraceHeader,\n startInactiveSpan,\n} from '@sentry/core';\nimport type { HandlerDataXhr, SentryWrappedXMLHttpRequest, Span } from '@sentry/types';\nimport {\n BAGGAGE_HEADER_NAME,\n SENTRY_XHR_DATA_KEY,\n addFetchInstrumentationHandler,\n addXhrInstrumentationHandler,\n browserPerformanceTimeOrigin,\n dynamicSamplingContextToSentryBaggageHeader,\n generateSentryTraceHeader,\n parseUrl,\n stringMatchesSomePattern,\n} from '@sentry/utils';\n\nimport { instrumentFetchRequest } from '../common/fetch';\nimport { addPerformanceInstrumentationHandler } from './instrument';\nimport { WINDOW } from './types';\n\nexport const DEFAULT_TRACE_PROPAGATION_TARGETS = ['localhost', /^\\/(?!\\/)/];\n\n/** Options for Request Instrumentation */\nexport interface RequestInstrumentationOptions {\n /**\n * @deprecated Will be removed in v8.\n * Use `shouldCreateSpanForRequest` to control span creation and `tracePropagationTargets` to control\n * trace header attachment.\n */\n tracingOrigins: Array;\n\n /**\n * List of strings and/or regexes used to determine which outgoing requests will have `sentry-trace` and `baggage`\n * headers attached.\n *\n * @deprecated Use the top-level `tracePropagationTargets` option in `Sentry.init` instead.\n * This option will be removed in v8.\n *\n * Default: ['localhost', /^\\//] @see {DEFAULT_TRACE_PROPAGATION_TARGETS}\n */\n tracePropagationTargets: Array;\n\n /**\n * Flag to disable patching all together for fetch requests.\n *\n * Default: true\n */\n traceFetch: boolean;\n\n /**\n * Flag to disable patching all together for xhr requests.\n *\n * Default: true\n */\n traceXHR: boolean;\n\n /**\n * If true, Sentry will capture http timings and add them to the corresponding http spans.\n *\n * Default: true\n */\n enableHTTPTimings: boolean;\n\n /**\n * This function will be called before creating a span for a request with the given url.\n * Return false if you don't want a span for the given url.\n *\n * Default: (url: string) => true\n */\n shouldCreateSpanForRequest?(this: void, url: string): boolean;\n}\n\nexport const defaultRequestInstrumentationOptions: RequestInstrumentationOptions = {\n traceFetch: true,\n traceXHR: true,\n enableHTTPTimings: true,\n // TODO (v8): Remove this property\n tracingOrigins: DEFAULT_TRACE_PROPAGATION_TARGETS,\n tracePropagationTargets: DEFAULT_TRACE_PROPAGATION_TARGETS,\n};\n\n/** Registers span creators for xhr and fetch requests */\nexport function instrumentOutgoingRequests(_options?: Partial): void {\n const {\n traceFetch,\n traceXHR,\n // eslint-disable-next-line deprecation/deprecation\n tracePropagationTargets,\n // eslint-disable-next-line deprecation/deprecation\n tracingOrigins,\n shouldCreateSpanForRequest,\n enableHTTPTimings,\n } = {\n traceFetch: defaultRequestInstrumentationOptions.traceFetch,\n traceXHR: defaultRequestInstrumentationOptions.traceXHR,\n ..._options,\n };\n\n const shouldCreateSpan =\n typeof shouldCreateSpanForRequest === 'function' ? shouldCreateSpanForRequest : (_: string) => true;\n\n // TODO(v8) Remove tracingOrigins here\n // The only reason we're passing it in here is because this instrumentOutgoingRequests function is publicly exported\n // and we don't want to break the API. We can remove it in v8.\n const shouldAttachHeadersWithTargets = (url: string): boolean =>\n shouldAttachHeaders(url, tracePropagationTargets || tracingOrigins);\n\n const spans: Record = {};\n\n if (traceFetch) {\n addFetchInstrumentationHandler(handlerData => {\n const createdSpan = instrumentFetchRequest(handlerData, shouldCreateSpan, shouldAttachHeadersWithTargets, spans);\n // We cannot use `window.location` in the generic fetch instrumentation,\n // but we need it for reliable `server.address` attribute.\n // so we extend this in here\n if (createdSpan) {\n const fullUrl = getFullURL(handlerData.fetchData.url);\n const host = fullUrl ? parseUrl(fullUrl).host : undefined;\n createdSpan.setAttributes({\n 'http.url': fullUrl,\n 'server.address': host,\n });\n }\n\n if (enableHTTPTimings && createdSpan) {\n addHTTPTimings(createdSpan);\n }\n });\n }\n\n if (traceXHR) {\n addXhrInstrumentationHandler(handlerData => {\n const createdSpan = xhrCallback(handlerData, shouldCreateSpan, shouldAttachHeadersWithTargets, spans);\n if (enableHTTPTimings && createdSpan) {\n addHTTPTimings(createdSpan);\n }\n });\n }\n}\n\nfunction isPerformanceResourceTiming(entry: PerformanceEntry): entry is PerformanceResourceTiming {\n return (\n entry.entryType === 'resource' &&\n 'initiatorType' in entry &&\n typeof (entry as PerformanceResourceTiming).nextHopProtocol === 'string' &&\n (entry.initiatorType === 'fetch' || entry.initiatorType === 'xmlhttprequest')\n );\n}\n\n/**\n * Creates a temporary observer to listen to the next fetch/xhr resourcing timings,\n * so that when timings hit their per-browser limit they don't need to be removed.\n *\n * @param span A span that has yet to be finished, must contain `url` on data.\n */\nfunction addHTTPTimings(span: Span): void {\n const { url } = spanToJSON(span).data || {};\n\n if (!url || typeof url !== 'string') {\n return;\n }\n\n const cleanup = addPerformanceInstrumentationHandler('resource', ({ entries }) => {\n entries.forEach(entry => {\n if (isPerformanceResourceTiming(entry) && entry.name.endsWith(url)) {\n const spanData = resourceTimingEntryToSpanData(entry);\n spanData.forEach(data => span.setAttribute(...data));\n // In the next tick, clean this handler up\n // We have to wait here because otherwise this cleans itself up before it is fully done\n setTimeout(cleanup);\n }\n });\n });\n}\n\n/**\n * Converts ALPN protocol ids to name and version.\n *\n * (https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids)\n * @param nextHopProtocol PerformanceResourceTiming.nextHopProtocol\n */\nexport function extractNetworkProtocol(nextHopProtocol: string): { name: string; version: string } {\n let name = 'unknown';\n let version = 'unknown';\n let _name = '';\n for (const char of nextHopProtocol) {\n // http/1.1 etc.\n if (char === '/') {\n [name, version] = nextHopProtocol.split('/');\n break;\n }\n // h2, h3 etc.\n if (!isNaN(Number(char))) {\n name = _name === 'h' ? 'http' : _name;\n version = nextHopProtocol.split(_name)[1];\n break;\n }\n _name += char;\n }\n if (_name === nextHopProtocol) {\n // webrtc, ftp, etc.\n name = _name;\n }\n return { name, version };\n}\n\nfunction getAbsoluteTime(time: number = 0): number {\n return ((browserPerformanceTimeOrigin || performance.timeOrigin) + time) / 1000;\n}\n\nfunction resourceTimingEntryToSpanData(resourceTiming: PerformanceResourceTiming): [string, string | number][] {\n const { name, version } = extractNetworkProtocol(resourceTiming.nextHopProtocol);\n\n const timingSpanData: [string, string | number][] = [];\n\n timingSpanData.push(['network.protocol.version', version], ['network.protocol.name', name]);\n\n if (!browserPerformanceTimeOrigin) {\n return timingSpanData;\n }\n return [\n ...timingSpanData,\n ['http.request.redirect_start', getAbsoluteTime(resourceTiming.redirectStart)],\n ['http.request.fetch_start', getAbsoluteTime(resourceTiming.fetchStart)],\n ['http.request.domain_lookup_start', getAbsoluteTime(resourceTiming.domainLookupStart)],\n ['http.request.domain_lookup_end', getAbsoluteTime(resourceTiming.domainLookupEnd)],\n ['http.request.connect_start', getAbsoluteTime(resourceTiming.connectStart)],\n ['http.request.secure_connection_start', getAbsoluteTime(resourceTiming.secureConnectionStart)],\n ['http.request.connection_end', getAbsoluteTime(resourceTiming.connectEnd)],\n ['http.request.request_start', getAbsoluteTime(resourceTiming.requestStart)],\n ['http.request.response_start', getAbsoluteTime(resourceTiming.responseStart)],\n ['http.request.response_end', getAbsoluteTime(resourceTiming.responseEnd)],\n ];\n}\n\n/**\n * A function that determines whether to attach tracing headers to a request.\n * This was extracted from `instrumentOutgoingRequests` to make it easier to test shouldAttachHeaders.\n * We only export this fuction for testing purposes.\n */\nexport function shouldAttachHeaders(url: string, tracePropagationTargets: (string | RegExp)[] | undefined): boolean {\n return stringMatchesSomePattern(url, tracePropagationTargets || DEFAULT_TRACE_PROPAGATION_TARGETS);\n}\n\n/**\n * Create and track xhr request spans\n *\n * @returns Span if a span was created, otherwise void.\n */\n// eslint-disable-next-line complexity\nexport function xhrCallback(\n handlerData: HandlerDataXhr,\n shouldCreateSpan: (url: string) => boolean,\n shouldAttachHeaders: (url: string) => boolean,\n spans: Record,\n): Span | undefined {\n const xhr = handlerData.xhr;\n const sentryXhrData = xhr && xhr[SENTRY_XHR_DATA_KEY];\n\n if (!hasTracingEnabled() || !xhr || xhr.__sentry_own_request__ || !sentryXhrData) {\n return undefined;\n }\n\n const shouldCreateSpanResult = shouldCreateSpan(sentryXhrData.url);\n\n // check first if the request has finished and is tracked by an existing span which should now end\n if (handlerData.endTimestamp && shouldCreateSpanResult) {\n const spanId = xhr.__sentry_xhr_span_id__;\n if (!spanId) return;\n\n const span = spans[spanId];\n if (span && sentryXhrData.status_code !== undefined) {\n setHttpStatus(span, sentryXhrData.status_code);\n span.end();\n\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete spans[spanId];\n }\n return undefined;\n }\n\n const scope = getCurrentScope();\n const isolationScope = getIsolationScope();\n\n const fullUrl = getFullURL(sentryXhrData.url);\n const host = fullUrl ? parseUrl(fullUrl).host : undefined;\n\n const span = shouldCreateSpanResult\n ? startInactiveSpan({\n name: `${sentryXhrData.method} ${sentryXhrData.url}`,\n onlyIfParent: true,\n attributes: {\n type: 'xhr',\n 'http.method': sentryXhrData.method,\n 'http.url': fullUrl,\n url: sentryXhrData.url,\n 'server.address': host,\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.http.browser',\n },\n op: 'http.client',\n })\n : undefined;\n\n if (span) {\n xhr.__sentry_xhr_span_id__ = span.spanContext().spanId;\n spans[xhr.__sentry_xhr_span_id__] = span;\n }\n\n const client = getClient();\n\n if (xhr.setRequestHeader && shouldAttachHeaders(sentryXhrData.url) && client) {\n const { traceId, spanId, sampled, dsc } = {\n ...isolationScope.getPropagationContext(),\n ...scope.getPropagationContext(),\n };\n\n const sentryTraceHeader = span ? spanToTraceHeader(span) : generateSentryTraceHeader(traceId, spanId, sampled);\n\n const sentryBaggageHeader = dynamicSamplingContextToSentryBaggageHeader(\n dsc ||\n (span ? getDynamicSamplingContextFromSpan(span) : getDynamicSamplingContextFromClient(traceId, client, scope)),\n );\n\n setHeaderOnXhr(xhr, sentryTraceHeader, sentryBaggageHeader);\n }\n\n return span;\n}\n\nfunction setHeaderOnXhr(\n xhr: SentryWrappedXMLHttpRequest,\n sentryTraceHeader: string,\n sentryBaggageHeader: string | undefined,\n): void {\n try {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n xhr.setRequestHeader!('sentry-trace', sentryTraceHeader);\n if (sentryBaggageHeader) {\n // From MDN: \"If this method is called several times with the same header, the values are merged into one single request header.\"\n // We can therefore simply set a baggage header without checking what was there before\n // https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/setRequestHeader\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n xhr.setRequestHeader!(BAGGAGE_HEADER_NAME, sentryBaggageHeader);\n }\n } catch (_) {\n // Error: InvalidStateError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': The object's state must be OPENED.\n }\n}\n\nfunction getFullURL(url: string): string | undefined {\n try {\n // By adding a base URL to new URL(), this will also work for relative urls\n // If `url` is a full URL, the base URL is ignored anyhow\n const parsed = new URL(url, WINDOW.location.origin);\n return parsed.href;\n } catch {\n return undefined;\n }\n}\n", "import type { Transaction, TransactionContext } from '@sentry/types';\nimport { addHistoryInstrumentationHandler, browserPerformanceTimeOrigin, logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../common/debug-build';\nimport { WINDOW } from './types';\n\n/**\n * Default function implementing pageload and navigation transactions\n */\nexport function instrumentRoutingWithDefaults(\n customStartTransaction: (context: TransactionContext) => T | undefined,\n startTransactionOnPageLoad: boolean = true,\n startTransactionOnLocationChange: boolean = true,\n): void {\n if (!WINDOW || !WINDOW.location) {\n DEBUG_BUILD && logger.warn('Could not initialize routing instrumentation due to invalid location');\n return;\n }\n\n let startingUrl: string | undefined = WINDOW.location.href;\n\n let activeTransaction: T | undefined;\n if (startTransactionOnPageLoad) {\n activeTransaction = customStartTransaction({\n name: WINDOW.location.pathname,\n // pageload should always start at timeOrigin (and needs to be in s, not ms)\n startTimestamp: browserPerformanceTimeOrigin ? browserPerformanceTimeOrigin / 1000 : undefined,\n op: 'pageload',\n origin: 'auto.pageload.browser',\n metadata: { source: 'url' },\n });\n }\n\n if (startTransactionOnLocationChange) {\n addHistoryInstrumentationHandler(({ to, from }) => {\n /**\n * This early return is there to account for some cases where a navigation transaction starts right after\n * long-running pageload. We make sure that if `from` is undefined and a valid `startingURL` exists, we don't\n * create an uneccessary navigation transaction.\n *\n * This was hard to duplicate, but this behavior stopped as soon as this fix was applied. This issue might also\n * only be caused in certain development environments where the usage of a hot module reloader is causing\n * errors.\n */\n if (from === undefined && startingUrl && startingUrl.indexOf(to) !== -1) {\n startingUrl = undefined;\n return;\n }\n\n if (from !== to) {\n startingUrl = undefined;\n if (activeTransaction) {\n DEBUG_BUILD && logger.log(`[Tracing] Finishing current transaction with op: ${activeTransaction.op}`);\n // If there's an open transaction on the scope, we need to finish it before creating an new one.\n activeTransaction.end();\n }\n activeTransaction = customStartTransaction({\n name: WINDOW.location.pathname,\n op: 'navigation',\n origin: 'auto.navigation.browser',\n metadata: { source: 'url' },\n });\n }\n });\n }\n}\n", "/* eslint-disable max-lines */\nimport type { Hub, IdleTransaction } from '@sentry/core';\nimport { getClient, getCurrentScope } from '@sentry/core';\nimport {\n SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,\n TRACING_DEFAULTS,\n addTracingExtensions,\n getActiveTransaction,\n startIdleTransaction,\n} from '@sentry/core';\nimport type { EventProcessor, Integration, Transaction, TransactionContext, TransactionSource } from '@sentry/types';\nimport { getDomElement, logger, propagationContextFromHeaders } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../common/debug-build';\nimport { registerBackgroundTabDetection } from './backgroundtab';\nimport { addPerformanceInstrumentationHandler } from './instrument';\nimport {\n addPerformanceEntries,\n startTrackingINP,\n startTrackingInteractions,\n startTrackingLongTasks,\n startTrackingWebVitals,\n} from './metrics';\nimport type { RequestInstrumentationOptions } from './request';\nimport { defaultRequestInstrumentationOptions, instrumentOutgoingRequests } from './request';\nimport { instrumentRoutingWithDefaults } from './router';\nimport { WINDOW } from './types';\nimport type { InteractionRouteNameMapping } from './web-vitals/types';\n\nexport const BROWSER_TRACING_INTEGRATION_ID = 'BrowserTracing';\n\n/** Options for Browser Tracing integration */\nexport interface BrowserTracingOptions extends RequestInstrumentationOptions {\n /**\n * The time to wait in ms until the transaction will be finished during an idle state. An idle state is defined\n * by a moment where there are no in-progress spans.\n *\n * The transaction will use the end timestamp of the last finished span as the endtime for the transaction.\n * If there are still active spans when this the `idleTimeout` is set, the `idleTimeout` will get reset.\n * Time is in ms.\n *\n * Default: 1000\n */\n idleTimeout: number;\n\n /**\n * The max duration for a transaction. If a transaction duration hits the `finalTimeout` value, it\n * will be finished.\n * Time is in ms.\n *\n * Default: 30000\n */\n finalTimeout: number;\n\n /**\n * The heartbeat interval. If no new spans are started or open spans are finished within 3 heartbeats,\n * the transaction will be finished.\n * Time is in ms.\n *\n * Default: 5000\n */\n heartbeatInterval: number;\n\n /**\n * Flag to enable/disable creation of `navigation` transaction on history changes.\n *\n * Default: true\n */\n startTransactionOnLocationChange: boolean;\n\n /**\n * Flag to enable/disable creation of `pageload` transaction on first pageload.\n *\n * Default: true\n */\n startTransactionOnPageLoad: boolean;\n\n /**\n * Flag Transactions where tabs moved to background with \"cancelled\". Browser background tab timing is\n * not suited towards doing precise measurements of operations. By default, we recommend that this option\n * be enabled as background transactions can mess up your statistics in nondeterministic ways.\n *\n * Default: true\n */\n markBackgroundTransactions: boolean;\n\n /**\n * If true, Sentry will capture long tasks and add them to the corresponding transaction.\n *\n * Default: true\n */\n enableLongTask: boolean;\n\n /**\n * If true, Sentry will capture INP web vitals as standalone spans .\n *\n * Default: false\n */\n enableInp: boolean;\n\n /**\n * Sample rate to determine interaction span sampling.\n * interactionsSampleRate is applied on top of the global tracesSampleRate.\n * ie a tracesSampleRate of 0.1 and interactionsSampleRate of 0.5 will result in a 0.05 sample rate for interactions.\n *\n * Default: 1\n */\n interactionsSampleRate: number;\n\n /**\n * _metricOptions allows the user to send options to change how metrics are collected.\n *\n * _metricOptions is currently experimental.\n *\n * Default: undefined\n */\n _metricOptions?: Partial<{\n /**\n * @deprecated This property no longer has any effect and will be removed in v8.\n */\n _reportAllChanges: boolean;\n }>;\n\n /**\n * _experiments allows the user to send options to define how this integration works.\n * Note that the `enableLongTask` options is deprecated in favor of the option at the top level, and will be removed in v8.\n *\n * TODO (v8): Remove enableLongTask\n *\n * Default: undefined\n */\n _experiments: Partial<{\n enableLongTask: boolean;\n enableInteractions: boolean;\n // eslint-disable-next-line deprecation/deprecation\n onStartRouteTransaction: (t: Transaction | undefined, ctx: TransactionContext, getCurrentHub: () => Hub) => void;\n }>;\n\n /**\n * beforeNavigate is called before a pageload/navigation transaction is created and allows users to modify transaction\n * context data, or drop the transaction entirely (by setting `sampled = false` in the context).\n *\n * Note: For legacy reasons, transactions can also be dropped by returning `undefined`.\n *\n * @param context: The context data which will be passed to `startTransaction` by default\n *\n * @returns A (potentially) modified context object, with `sampled = false` if the transaction should be dropped.\n */\n beforeNavigate?(this: void, context: TransactionContext): TransactionContext | undefined;\n\n /**\n * Instrumentation that creates routing change transactions. By default creates\n * pageload and navigation transactions.\n */\n routingInstrumentation(\n this: void,\n customStartTransaction: (context: TransactionContext) => T | undefined,\n startTransactionOnPageLoad?: boolean,\n startTransactionOnLocationChange?: boolean,\n ): void;\n}\n\nconst DEFAULT_BROWSER_TRACING_OPTIONS: BrowserTracingOptions = {\n ...TRACING_DEFAULTS,\n markBackgroundTransactions: true,\n routingInstrumentation: instrumentRoutingWithDefaults,\n startTransactionOnLocationChange: true,\n startTransactionOnPageLoad: true,\n enableLongTask: true,\n enableInp: false,\n interactionsSampleRate: 1,\n _experiments: {},\n ...defaultRequestInstrumentationOptions,\n};\n\n/** We store up to 10 interaction candidates max to cap memory usage. This is the same cap as getINP from web-vitals */\nconst MAX_INTERACTIONS = 10;\n\n/**\n * The Browser Tracing integration automatically instruments browser pageload/navigation\n * actions as transactions, and captures requests, metrics and errors as spans.\n *\n * The integration can be configured with a variety of options, and can be extended to use\n * any routing library. This integration uses {@see IdleTransaction} to create transactions.\n *\n * @deprecated Use `browserTracingIntegration()` instead.\n */\nexport class BrowserTracing implements Integration {\n // This class currently doesn't have a static `id` field like the other integration classes, because it prevented\n // @sentry/tracing from being treeshaken. Tree shakers do not like static fields, because they behave like side effects.\n // TODO: Come up with a better plan, than using static fields on integration classes, and use that plan on all\n // integrations.\n\n /** Browser Tracing integration options */\n public options: BrowserTracingOptions;\n\n /**\n * @inheritDoc\n */\n public name: string;\n\n // eslint-disable-next-line deprecation/deprecation\n private _getCurrentHub?: () => Hub;\n\n private _collectWebVitals: () => void;\n\n private _hasSetTracePropagationTargets: boolean;\n private _interactionIdToRouteNameMapping: InteractionRouteNameMapping;\n private _latestRoute: {\n name: string | undefined;\n context: TransactionContext | undefined;\n };\n\n public constructor(_options?: Partial) {\n this.name = BROWSER_TRACING_INTEGRATION_ID;\n this._hasSetTracePropagationTargets = false;\n\n addTracingExtensions();\n\n if (DEBUG_BUILD) {\n this._hasSetTracePropagationTargets = !!(\n _options &&\n // eslint-disable-next-line deprecation/deprecation\n (_options.tracePropagationTargets || _options.tracingOrigins)\n );\n }\n\n this.options = {\n ...DEFAULT_BROWSER_TRACING_OPTIONS,\n ..._options,\n };\n\n // Special case: enableLongTask can be set in _experiments\n // TODO (v8): Remove this in v8\n if (this.options._experiments.enableLongTask !== undefined) {\n this.options.enableLongTask = this.options._experiments.enableLongTask;\n }\n\n // TODO (v8): remove this block after tracingOrigins is removed\n // Set tracePropagationTargets to tracingOrigins if specified by the user\n // In case both are specified, tracePropagationTargets takes precedence\n // eslint-disable-next-line deprecation/deprecation\n if (_options && !_options.tracePropagationTargets && _options.tracingOrigins) {\n // eslint-disable-next-line deprecation/deprecation\n this.options.tracePropagationTargets = _options.tracingOrigins;\n }\n\n this._collectWebVitals = startTrackingWebVitals();\n /** Stores a mapping of interactionIds from PerformanceEventTimings to the origin interaction path */\n this._interactionIdToRouteNameMapping = {};\n\n if (this.options.enableInp) {\n startTrackingINP(this._interactionIdToRouteNameMapping, this.options.interactionsSampleRate);\n }\n if (this.options.enableLongTask) {\n startTrackingLongTasks();\n }\n if (this.options._experiments.enableInteractions) {\n startTrackingInteractions();\n }\n\n this._latestRoute = {\n name: undefined,\n context: undefined,\n };\n }\n\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line deprecation/deprecation\n public setupOnce(_: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void {\n this._getCurrentHub = getCurrentHub;\n const hub = getCurrentHub();\n // eslint-disable-next-line deprecation/deprecation\n const client = hub.getClient();\n const clientOptions = client && client.getOptions();\n\n const {\n routingInstrumentation: instrumentRouting,\n startTransactionOnLocationChange,\n startTransactionOnPageLoad,\n markBackgroundTransactions,\n traceFetch,\n traceXHR,\n shouldCreateSpanForRequest,\n enableHTTPTimings,\n _experiments,\n } = this.options;\n\n const clientOptionsTracePropagationTargets = clientOptions && clientOptions.tracePropagationTargets;\n // There are three ways to configure tracePropagationTargets:\n // 1. via top level client option `tracePropagationTargets`\n // 2. via BrowserTracing option `tracePropagationTargets`\n // 3. via BrowserTracing option `tracingOrigins` (deprecated)\n //\n // To avoid confusion, favour top level client option `tracePropagationTargets`, and fallback to\n // BrowserTracing option `tracePropagationTargets` and then `tracingOrigins` (deprecated).\n // This is done as it minimizes bundle size (we don't have to have undefined checks).\n //\n // If both 1 and either one of 2 or 3 are set (from above), we log out a warning.\n // eslint-disable-next-line deprecation/deprecation\n const tracePropagationTargets = clientOptionsTracePropagationTargets || this.options.tracePropagationTargets;\n if (DEBUG_BUILD && this._hasSetTracePropagationTargets && clientOptionsTracePropagationTargets) {\n logger.warn(\n '[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.',\n );\n }\n\n instrumentRouting(\n (context: TransactionContext) => {\n const transaction = this._createRouteTransaction(context);\n\n this.options._experiments.onStartRouteTransaction &&\n this.options._experiments.onStartRouteTransaction(transaction, context, getCurrentHub);\n\n return transaction;\n },\n startTransactionOnPageLoad,\n startTransactionOnLocationChange,\n );\n\n if (markBackgroundTransactions) {\n registerBackgroundTabDetection();\n }\n\n if (_experiments.enableInteractions) {\n this._registerInteractionListener();\n }\n\n if (this.options.enableInp) {\n this._registerInpInteractionListener();\n }\n\n instrumentOutgoingRequests({\n traceFetch,\n traceXHR,\n tracePropagationTargets,\n shouldCreateSpanForRequest,\n enableHTTPTimings,\n });\n }\n\n /** Create routing idle transaction. */\n private _createRouteTransaction(context: TransactionContext): Transaction | undefined {\n if (!this._getCurrentHub) {\n DEBUG_BUILD &&\n logger.warn(`[Tracing] Did not create ${context.op} transaction because _getCurrentHub is invalid.`);\n return undefined;\n }\n\n const hub = this._getCurrentHub();\n\n const { beforeNavigate, idleTimeout, finalTimeout, heartbeatInterval } = this.options;\n\n const isPageloadTransaction = context.op === 'pageload';\n\n let expandedContext: TransactionContext;\n if (isPageloadTransaction) {\n const sentryTrace = isPageloadTransaction ? getMetaContent('sentry-trace') : '';\n const baggage = isPageloadTransaction ? getMetaContent('baggage') : undefined;\n const { traceId, dsc, parentSpanId, sampled } = propagationContextFromHeaders(sentryTrace, baggage);\n expandedContext = {\n traceId,\n parentSpanId,\n parentSampled: sampled,\n ...context,\n metadata: {\n // eslint-disable-next-line deprecation/deprecation\n ...context.metadata,\n dynamicSamplingContext: dsc,\n },\n trimEnd: true,\n };\n } else {\n expandedContext = {\n trimEnd: true,\n ...context,\n };\n }\n\n const modifiedContext = typeof beforeNavigate === 'function' ? beforeNavigate(expandedContext) : expandedContext;\n\n // For backwards compatibility reasons, beforeNavigate can return undefined to \"drop\" the transaction (prevent it\n // from being sent to Sentry).\n const finalContext = modifiedContext === undefined ? { ...expandedContext, sampled: false } : modifiedContext;\n\n // If `beforeNavigate` set a custom name, record that fact\n // eslint-disable-next-line deprecation/deprecation\n finalContext.metadata =\n finalContext.name !== expandedContext.name\n ? // eslint-disable-next-line deprecation/deprecation\n { ...finalContext.metadata, source: 'custom' }\n : // eslint-disable-next-line deprecation/deprecation\n finalContext.metadata;\n\n this._latestRoute.name = finalContext.name;\n this._latestRoute.context = finalContext;\n\n // eslint-disable-next-line deprecation/deprecation\n if (finalContext.sampled === false) {\n DEBUG_BUILD && logger.log(`[Tracing] Will not send ${finalContext.op} transaction because of beforeNavigate.`);\n }\n\n DEBUG_BUILD && logger.log(`[Tracing] Starting ${finalContext.op} transaction on scope`);\n\n const { location } = WINDOW;\n\n const idleTransaction = startIdleTransaction(\n hub,\n finalContext,\n idleTimeout,\n finalTimeout,\n true,\n { location }, // for use in the tracesSampler\n heartbeatInterval,\n isPageloadTransaction, // should wait for finish signal if it's a pageload transaction\n );\n\n if (isPageloadTransaction) {\n if (WINDOW.document) {\n WINDOW.document.addEventListener('readystatechange', () => {\n if (['interactive', 'complete'].includes(WINDOW.document!.readyState)) {\n idleTransaction.sendAutoFinishSignal();\n }\n });\n\n if (['interactive', 'complete'].includes(WINDOW.document.readyState)) {\n idleTransaction.sendAutoFinishSignal();\n }\n }\n }\n\n idleTransaction.registerBeforeFinishCallback(transaction => {\n this._collectWebVitals();\n addPerformanceEntries(transaction);\n });\n\n return idleTransaction as Transaction;\n }\n\n /** Start listener for interaction transactions */\n private _registerInteractionListener(): void {\n let inflightInteractionTransaction: IdleTransaction | undefined;\n const registerInteractionTransaction = (): void => {\n const { idleTimeout, finalTimeout, heartbeatInterval } = this.options;\n const op = 'ui.action.click';\n\n // eslint-disable-next-line deprecation/deprecation\n const currentTransaction = getActiveTransaction();\n if (currentTransaction && currentTransaction.op && ['navigation', 'pageload'].includes(currentTransaction.op)) {\n DEBUG_BUILD &&\n logger.warn(\n `[Tracing] Did not create ${op} transaction because a pageload or navigation transaction is in progress.`,\n );\n return undefined;\n }\n\n if (inflightInteractionTransaction) {\n inflightInteractionTransaction.setFinishReason('interactionInterrupted');\n inflightInteractionTransaction.end();\n inflightInteractionTransaction = undefined;\n }\n\n if (!this._getCurrentHub) {\n DEBUG_BUILD && logger.warn(`[Tracing] Did not create ${op} transaction because _getCurrentHub is invalid.`);\n return undefined;\n }\n\n if (!this._latestRoute.name) {\n DEBUG_BUILD && logger.warn(`[Tracing] Did not create ${op} transaction because _latestRouteName is missing.`);\n return undefined;\n }\n\n const hub = this._getCurrentHub();\n const { location } = WINDOW;\n\n const context: TransactionContext = {\n name: this._latestRoute.name,\n op,\n trimEnd: true,\n data: {\n [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: this._latestRoute.context\n ? getSource(this._latestRoute.context)\n : undefined || 'url',\n },\n };\n\n inflightInteractionTransaction = startIdleTransaction(\n hub,\n context,\n idleTimeout,\n finalTimeout,\n true,\n { location }, // for use in the tracesSampler\n heartbeatInterval,\n );\n };\n\n ['click'].forEach(type => {\n if (WINDOW.document) {\n addEventListener(type, registerInteractionTransaction, { once: false, capture: true });\n }\n });\n }\n\n /** Creates a listener on interaction entries, and maps interactionIds to the origin path of the interaction */\n private _registerInpInteractionListener(): void {\n const handleEntries = ({ entries }: { entries: PerformanceEntry[] }): void => {\n const client = getClient();\n // We need to get the replay, user, and activeTransaction from the current scope\n // so that we can associate replay id, profile id, and a user display to the span\n const replay =\n client !== undefined && client.getIntegrationByName !== undefined\n ? (client.getIntegrationByName('Replay') as Integration & { getReplayId: () => string })\n : undefined;\n const replayId = replay !== undefined ? replay.getReplayId() : undefined;\n // eslint-disable-next-line deprecation/deprecation\n const activeTransaction = getActiveTransaction();\n const currentScope = getCurrentScope();\n const user = currentScope !== undefined ? currentScope.getUser() : undefined;\n entries.forEach(entry => {\n if (isPerformanceEventTiming(entry)) {\n const interactionId = entry.interactionId;\n if (interactionId === undefined) {\n return;\n }\n const existingInteraction = this._interactionIdToRouteNameMapping[interactionId];\n const duration = entry.duration;\n const startTime = entry.startTime;\n const keys = Object.keys(this._interactionIdToRouteNameMapping);\n const minInteractionId =\n keys.length > 0\n ? keys.reduce((a, b) => {\n return this._interactionIdToRouteNameMapping[a].duration <\n this._interactionIdToRouteNameMapping[b].duration\n ? a\n : b;\n })\n : undefined;\n // For a first input event to be considered, we must check that an interaction event does not already exist with the same duration and start time.\n // This is also checked in the web-vitals library.\n if (entry.entryType === 'first-input') {\n const matchingEntry = keys\n .map(key => this._interactionIdToRouteNameMapping[key])\n .some(interaction => {\n return interaction.duration === duration && interaction.startTime === startTime;\n });\n if (matchingEntry) {\n return;\n }\n }\n // Interactions with an id of 0 and are not first-input are not valid.\n if (!interactionId) {\n return;\n }\n // If the interaction already exists, we want to use the duration of the longest entry, since that is what the INP metric uses.\n if (existingInteraction) {\n existingInteraction.duration = Math.max(existingInteraction.duration, duration);\n } else if (\n keys.length < MAX_INTERACTIONS ||\n minInteractionId === undefined ||\n duration > this._interactionIdToRouteNameMapping[minInteractionId].duration\n ) {\n // If the interaction does not exist, we want to add it to the mapping if there is space, or if the duration is longer than the shortest entry.\n const routeName = this._latestRoute.name;\n const parentContext = this._latestRoute.context;\n if (routeName && parentContext) {\n if (minInteractionId && Object.keys(this._interactionIdToRouteNameMapping).length >= MAX_INTERACTIONS) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete this._interactionIdToRouteNameMapping[minInteractionId];\n }\n this._interactionIdToRouteNameMapping[interactionId] = {\n routeName,\n duration,\n parentContext,\n user,\n activeTransaction,\n replayId,\n startTime,\n };\n }\n }\n }\n });\n };\n addPerformanceInstrumentationHandler('event', handleEntries);\n addPerformanceInstrumentationHandler('first-input', handleEntries);\n }\n}\n\n/** Returns the value of a meta tag */\nexport function getMetaContent(metaName: string): string | undefined {\n // Can't specify generic to `getDomElement` because tracing can be used\n // in a variety of environments, have to disable `no-unsafe-member-access`\n // as a result.\n const metaTag = getDomElement(`meta[name=${metaName}]`);\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return metaTag ? metaTag.getAttribute('content') : undefined;\n}\n\nfunction getSource(context: TransactionContext): TransactionSource | undefined {\n const sourceFromAttributes = context.attributes && context.attributes[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];\n // eslint-disable-next-line deprecation/deprecation\n const sourceFromData = context.data && context.data[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];\n // eslint-disable-next-line deprecation/deprecation\n const sourceFromMetadata = context.metadata && context.metadata.source;\n\n return sourceFromAttributes || sourceFromData || sourceFromMetadata;\n}\n\nfunction isPerformanceEventTiming(entry: PerformanceEntry): entry is PerformanceEventTiming {\n return 'duration' in entry;\n}\n", "/* eslint-disable max-lines */\nimport type { IdleTransaction } from '@sentry/core';\nimport { getActiveSpan, getClient, getCurrentScope } from '@sentry/core';\nimport { getCurrentHub } from '@sentry/core';\nimport {\n SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,\n TRACING_DEFAULTS,\n addTracingExtensions,\n getActiveTransaction,\n spanToJSON,\n startIdleTransaction,\n} from '@sentry/core';\nimport type {\n Client,\n Integration,\n IntegrationFn,\n StartSpanOptions,\n Transaction,\n TransactionContext,\n TransactionSource,\n} from '@sentry/types';\nimport type { Span } from '@sentry/types';\nimport {\n addHistoryInstrumentationHandler,\n browserPerformanceTimeOrigin,\n getDomElement,\n logger,\n propagationContextFromHeaders,\n} from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../common/debug-build';\nimport { registerBackgroundTabDetection } from './backgroundtab';\nimport { addPerformanceInstrumentationHandler } from './instrument';\nimport {\n addPerformanceEntries,\n startTrackingINP,\n startTrackingInteractions,\n startTrackingLongTasks,\n startTrackingWebVitals,\n} from './metrics';\nimport type { RequestInstrumentationOptions } from './request';\nimport { defaultRequestInstrumentationOptions, instrumentOutgoingRequests } from './request';\nimport { WINDOW } from './types';\nimport type { InteractionRouteNameMapping } from './web-vitals/types';\n\nexport const BROWSER_TRACING_INTEGRATION_ID = 'BrowserTracing';\n\n/** Options for Browser Tracing integration */\nexport interface BrowserTracingOptions extends RequestInstrumentationOptions {\n /**\n * The time to wait in ms until the transaction will be finished during an idle state. An idle state is defined\n * by a moment where there are no in-progress spans.\n *\n * The transaction will use the end timestamp of the last finished span as the endtime for the transaction.\n * If there are still active spans when this the `idleTimeout` is set, the `idleTimeout` will get reset.\n * Time is in ms.\n *\n * Default: 1000\n */\n idleTimeout: number;\n\n /**\n * The max duration for a transaction. If a transaction duration hits the `finalTimeout` value, it\n * will be finished.\n * Time is in ms.\n *\n * Default: 30000\n */\n finalTimeout: number;\n\n /**\n * The heartbeat interval. If no new spans are started or open spans are finished within 3 heartbeats,\n * the transaction will be finished.\n * Time is in ms.\n *\n * Default: 5000\n */\n heartbeatInterval: number;\n\n /**\n * If a span should be created on page load.\n * If this is set to `false`, this integration will not start the default page load span.\n * Default: true\n */\n instrumentPageLoad: boolean;\n\n /**\n * If a span should be created on navigation (history change).\n * If this is set to `false`, this integration will not start the default navigation spans.\n * Default: true\n */\n instrumentNavigation: boolean;\n\n /**\n * Flag spans where tabs moved to background with \"cancelled\". Browser background tab timing is\n * not suited towards doing precise measurements of operations. By default, we recommend that this option\n * be enabled as background transactions can mess up your statistics in nondeterministic ways.\n *\n * Default: true\n */\n markBackgroundSpan: boolean;\n\n /**\n * If true, Sentry will capture long tasks and add them to the corresponding transaction.\n *\n * Default: true\n */\n enableLongTask: boolean;\n\n /**\n * If true, Sentry will capture INP web vitals as standalone spans .\n *\n * Default: false\n */\n enableInp: boolean;\n\n /**\n * Sample rate to determine interaction span sampling.\n * interactionsSampleRate is applied on top of the global tracesSampleRate.\n * ie a tracesSampleRate of 0.1 and interactionsSampleRate of 0.5 will result in a 0.05 sample rate for interactions.\n *\n * Default: 1\n */\n interactionsSampleRate: number;\n\n /**\n * _metricOptions allows the user to send options to change how metrics are collected.\n *\n * _metricOptions is currently experimental.\n *\n * Default: undefined\n */\n _metricOptions?: Partial<{\n /**\n * @deprecated This property no longer has any effect and will be removed in v8.\n */\n _reportAllChanges: boolean;\n }>;\n\n /**\n * _experiments allows the user to send options to define how this integration works.\n * Note that the `enableLongTask` options is deprecated in favor of the option at the top level, and will be removed in v8.\n *\n * TODO (v8): Remove enableLongTask\n *\n * Default: undefined\n */\n _experiments: Partial<{\n enableInteractions: boolean;\n }>;\n\n /**\n * A callback which is called before a span for a pageload or navigation is started.\n * It receives the options passed to `startSpan`, and expects to return an updated options object.\n */\n beforeStartSpan?: (options: StartSpanOptions) => StartSpanOptions;\n}\n\nconst DEFAULT_BROWSER_TRACING_OPTIONS: BrowserTracingOptions = {\n ...TRACING_DEFAULTS,\n instrumentNavigation: true,\n instrumentPageLoad: true,\n markBackgroundSpan: true,\n enableLongTask: true,\n enableInp: false,\n interactionsSampleRate: 1,\n _experiments: {},\n ...defaultRequestInstrumentationOptions,\n};\n\n/**\n * The Browser Tracing integration automatically instruments browser pageload/navigation\n * actions as transactions, and captures requests, metrics and errors as spans.\n *\n * The integration can be configured with a variety of options, and can be extended to use\n * any routing library. This integration uses {@see IdleTransaction} to create transactions.\n *\n * We explicitly export the proper type here, as this has to be extended in some cases.\n */\nexport const browserTracingIntegration = ((_options: Partial = {}) => {\n const _hasSetTracePropagationTargets = DEBUG_BUILD\n ? !!(\n // eslint-disable-next-line deprecation/deprecation\n (_options.tracePropagationTargets || _options.tracingOrigins)\n )\n : false;\n\n addTracingExtensions();\n\n // TODO (v8): remove this block after tracingOrigins is removed\n // Set tracePropagationTargets to tracingOrigins if specified by the user\n // In case both are specified, tracePropagationTargets takes precedence\n // eslint-disable-next-line deprecation/deprecation\n if (!_options.tracePropagationTargets && _options.tracingOrigins) {\n // eslint-disable-next-line deprecation/deprecation\n _options.tracePropagationTargets = _options.tracingOrigins;\n }\n\n const options = {\n ...DEFAULT_BROWSER_TRACING_OPTIONS,\n ..._options,\n };\n\n const _collectWebVitals = startTrackingWebVitals();\n\n /** Stores a mapping of interactionIds from PerformanceEventTimings to the origin interaction path */\n const interactionIdToRouteNameMapping: InteractionRouteNameMapping = {};\n if (options.enableInp) {\n startTrackingINP(interactionIdToRouteNameMapping, options.interactionsSampleRate);\n }\n\n if (options.enableLongTask) {\n startTrackingLongTasks();\n }\n if (options._experiments.enableInteractions) {\n startTrackingInteractions();\n }\n\n const latestRoute: {\n name: string | undefined;\n context: TransactionContext | undefined;\n } = {\n name: undefined,\n context: undefined,\n };\n\n /** Create routing idle transaction. */\n function _createRouteTransaction(context: TransactionContext): Transaction | undefined {\n // eslint-disable-next-line deprecation/deprecation\n const hub = getCurrentHub();\n\n const { beforeStartSpan, idleTimeout, finalTimeout, heartbeatInterval } = options;\n\n const isPageloadTransaction = context.op === 'pageload';\n\n let expandedContext: TransactionContext;\n if (isPageloadTransaction) {\n const sentryTrace = isPageloadTransaction ? getMetaContent('sentry-trace') : '';\n const baggage = isPageloadTransaction ? getMetaContent('baggage') : undefined;\n const { traceId, dsc, parentSpanId, sampled } = propagationContextFromHeaders(sentryTrace, baggage);\n expandedContext = {\n traceId,\n parentSpanId,\n parentSampled: sampled,\n ...context,\n metadata: {\n // eslint-disable-next-line deprecation/deprecation\n ...context.metadata,\n dynamicSamplingContext: dsc,\n },\n trimEnd: true,\n };\n } else {\n expandedContext = {\n trimEnd: true,\n ...context,\n };\n }\n\n const finalContext = beforeStartSpan ? beforeStartSpan(expandedContext) : expandedContext;\n\n // If `beforeStartSpan` set a custom name, record that fact\n // eslint-disable-next-line deprecation/deprecation\n finalContext.metadata =\n finalContext.name !== expandedContext.name\n ? // eslint-disable-next-line deprecation/deprecation\n { ...finalContext.metadata, source: 'custom' }\n : // eslint-disable-next-line deprecation/deprecation\n finalContext.metadata;\n\n latestRoute.name = finalContext.name;\n latestRoute.context = finalContext;\n\n if (finalContext.sampled === false) {\n DEBUG_BUILD && logger.log(`[Tracing] Will not send ${finalContext.op} transaction because of beforeNavigate.`);\n }\n\n DEBUG_BUILD && logger.log(`[Tracing] Starting ${finalContext.op} transaction on scope`);\n\n const { location } = WINDOW;\n\n const idleTransaction = startIdleTransaction(\n hub,\n finalContext,\n idleTimeout,\n finalTimeout,\n true,\n { location }, // for use in the tracesSampler\n heartbeatInterval,\n isPageloadTransaction, // should wait for finish signal if it's a pageload transaction\n );\n\n if (isPageloadTransaction && WINDOW.document) {\n WINDOW.document.addEventListener('readystatechange', () => {\n if (['interactive', 'complete'].includes(WINDOW.document!.readyState)) {\n idleTransaction.sendAutoFinishSignal();\n }\n });\n\n if (['interactive', 'complete'].includes(WINDOW.document.readyState)) {\n idleTransaction.sendAutoFinishSignal();\n }\n }\n\n idleTransaction.registerBeforeFinishCallback(transaction => {\n _collectWebVitals();\n addPerformanceEntries(transaction);\n });\n\n return idleTransaction as Transaction;\n }\n\n return {\n name: BROWSER_TRACING_INTEGRATION_ID,\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n setupOnce: () => {},\n afterAllSetup(client) {\n const clientOptions = client.getOptions();\n\n const { markBackgroundSpan, traceFetch, traceXHR, shouldCreateSpanForRequest, enableHTTPTimings, _experiments } =\n options;\n\n const clientOptionsTracePropagationTargets = clientOptions && clientOptions.tracePropagationTargets;\n // There are three ways to configure tracePropagationTargets:\n // 1. via top level client option `tracePropagationTargets`\n // 2. via BrowserTracing option `tracePropagationTargets`\n // 3. via BrowserTracing option `tracingOrigins` (deprecated)\n //\n // To avoid confusion, favour top level client option `tracePropagationTargets`, and fallback to\n // BrowserTracing option `tracePropagationTargets` and then `tracingOrigins` (deprecated).\n // This is done as it minimizes bundle size (we don't have to have undefined checks).\n //\n // If both 1 and either one of 2 or 3 are set (from above), we log out a warning.\n // eslint-disable-next-line deprecation/deprecation\n const tracePropagationTargets = clientOptionsTracePropagationTargets || options.tracePropagationTargets;\n if (DEBUG_BUILD && _hasSetTracePropagationTargets && clientOptionsTracePropagationTargets) {\n logger.warn(\n '[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.',\n );\n }\n\n let activeSpan: Span | undefined;\n let startingUrl: string | undefined = WINDOW.location && WINDOW.location.href;\n\n if (client.on) {\n client.on('startNavigationSpan', (context: StartSpanOptions) => {\n if (activeSpan) {\n DEBUG_BUILD && logger.log(`[Tracing] Finishing current transaction with op: ${spanToJSON(activeSpan).op}`);\n // If there's an open transaction on the scope, we need to finish it before creating an new one.\n activeSpan.end();\n }\n activeSpan = _createRouteTransaction({\n op: 'navigation',\n ...context,\n });\n });\n\n client.on('startPageLoadSpan', (context: StartSpanOptions) => {\n if (activeSpan) {\n DEBUG_BUILD && logger.log(`[Tracing] Finishing current transaction with op: ${spanToJSON(activeSpan).op}`);\n // If there's an open transaction on the scope, we need to finish it before creating an new one.\n activeSpan.end();\n }\n activeSpan = _createRouteTransaction({\n op: 'pageload',\n ...context,\n });\n });\n }\n\n if (options.instrumentPageLoad && client.emit && WINDOW.location) {\n const context: StartSpanOptions = {\n name: WINDOW.location.pathname,\n // pageload should always start at timeOrigin (and needs to be in s, not ms)\n startTimestamp: browserPerformanceTimeOrigin ? browserPerformanceTimeOrigin / 1000 : undefined,\n origin: 'auto.pageload.browser',\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url',\n },\n };\n startBrowserTracingPageLoadSpan(client, context);\n }\n\n if (options.instrumentNavigation && client.emit && WINDOW.location) {\n addHistoryInstrumentationHandler(({ to, from }) => {\n /**\n * This early return is there to account for some cases where a navigation transaction starts right after\n * long-running pageload. We make sure that if `from` is undefined and a valid `startingURL` exists, we don't\n * create an uneccessary navigation transaction.\n *\n * This was hard to duplicate, but this behavior stopped as soon as this fix was applied. This issue might also\n * only be caused in certain development environments where the usage of a hot module reloader is causing\n * errors.\n */\n if (from === undefined && startingUrl && startingUrl.indexOf(to) !== -1) {\n startingUrl = undefined;\n return;\n }\n\n if (from !== to) {\n startingUrl = undefined;\n const context: StartSpanOptions = {\n name: WINDOW.location.pathname,\n origin: 'auto.navigation.browser',\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url',\n },\n };\n\n startBrowserTracingNavigationSpan(client, context);\n }\n });\n }\n\n if (markBackgroundSpan) {\n registerBackgroundTabDetection();\n }\n\n if (_experiments.enableInteractions) {\n registerInteractionListener(options, latestRoute);\n }\n\n if (options.enableInp) {\n registerInpInteractionListener(interactionIdToRouteNameMapping, latestRoute);\n }\n\n instrumentOutgoingRequests({\n traceFetch,\n traceXHR,\n tracePropagationTargets,\n shouldCreateSpanForRequest,\n enableHTTPTimings,\n });\n },\n // TODO v8: Remove this again\n // This is private API that we use to fix converted BrowserTracing integrations in Next.js & SvelteKit\n options,\n };\n}) satisfies IntegrationFn;\n\n/**\n * Manually start a page load span.\n * This will only do something if the BrowserTracing integration has been setup.\n */\nexport function startBrowserTracingPageLoadSpan(client: Client, spanOptions: StartSpanOptions): Span | undefined {\n if (!client.emit) {\n return;\n }\n\n client.emit('startPageLoadSpan', spanOptions);\n\n const span = getActiveSpan();\n const op = span && spanToJSON(span).op;\n return op === 'pageload' ? span : undefined;\n}\n\n/**\n * Manually start a navigation span.\n * This will only do something if the BrowserTracing integration has been setup.\n */\nexport function startBrowserTracingNavigationSpan(client: Client, spanOptions: StartSpanOptions): Span | undefined {\n if (!client.emit) {\n return;\n }\n\n client.emit('startNavigationSpan', spanOptions);\n\n const span = getActiveSpan();\n const op = span && spanToJSON(span).op;\n return op === 'navigation' ? span : undefined;\n}\n\n/** Returns the value of a meta tag */\nexport function getMetaContent(metaName: string): string | undefined {\n // Can't specify generic to `getDomElement` because tracing can be used\n // in a variety of environments, have to disable `no-unsafe-member-access`\n // as a result.\n const metaTag = getDomElement(`meta[name=${metaName}]`);\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return metaTag ? metaTag.getAttribute('content') : undefined;\n}\n\n/** Start listener for interaction transactions */\nfunction registerInteractionListener(\n options: BrowserTracingOptions,\n latestRoute: {\n name: string | undefined;\n context: TransactionContext | undefined;\n },\n): void {\n let inflightInteractionTransaction: IdleTransaction | undefined;\n const registerInteractionTransaction = (): void => {\n const { idleTimeout, finalTimeout, heartbeatInterval } = options;\n const op = 'ui.action.click';\n\n // eslint-disable-next-line deprecation/deprecation\n const currentTransaction = getActiveTransaction();\n if (currentTransaction && currentTransaction.op && ['navigation', 'pageload'].includes(currentTransaction.op)) {\n DEBUG_BUILD &&\n logger.warn(\n `[Tracing] Did not create ${op} transaction because a pageload or navigation transaction is in progress.`,\n );\n return undefined;\n }\n\n if (inflightInteractionTransaction) {\n inflightInteractionTransaction.setFinishReason('interactionInterrupted');\n inflightInteractionTransaction.end();\n inflightInteractionTransaction = undefined;\n }\n\n if (!latestRoute.name) {\n DEBUG_BUILD && logger.warn(`[Tracing] Did not create ${op} transaction because _latestRouteName is missing.`);\n return undefined;\n }\n\n const { location } = WINDOW;\n\n const context: TransactionContext = {\n name: latestRoute.name,\n op,\n trimEnd: true,\n data: {\n [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: latestRoute.context ? getSource(latestRoute.context) : undefined || 'url',\n },\n };\n\n inflightInteractionTransaction = startIdleTransaction(\n // eslint-disable-next-line deprecation/deprecation\n getCurrentHub(),\n context,\n idleTimeout,\n finalTimeout,\n true,\n { location }, // for use in the tracesSampler\n heartbeatInterval,\n );\n };\n\n ['click'].forEach(type => {\n if (WINDOW.document) {\n addEventListener(type, registerInteractionTransaction, { once: false, capture: true });\n }\n });\n}\n\nfunction isPerformanceEventTiming(entry: PerformanceEntry): entry is PerformanceEventTiming {\n return 'duration' in entry;\n}\n\n/** We store up to 10 interaction candidates max to cap memory usage. This is the same cap as getINP from web-vitals */\nconst MAX_INTERACTIONS = 10;\n\n/** Creates a listener on interaction entries, and maps interactionIds to the origin path of the interaction */\nfunction registerInpInteractionListener(\n interactionIdToRouteNameMapping: InteractionRouteNameMapping,\n latestRoute: {\n name: string | undefined;\n context: TransactionContext | undefined;\n },\n): void {\n const handleEntries = ({ entries }: { entries: PerformanceEntry[] }): void => {\n const client = getClient();\n // We need to get the replay, user, and activeTransaction from the current scope\n // so that we can associate replay id, profile id, and a user display to the span\n const replay =\n client !== undefined && client.getIntegrationByName !== undefined\n ? (client.getIntegrationByName('Replay') as Integration & { getReplayId: () => string })\n : undefined;\n const replayId = replay !== undefined ? replay.getReplayId() : undefined;\n // eslint-disable-next-line deprecation/deprecation\n const activeTransaction = getActiveTransaction();\n const currentScope = getCurrentScope();\n const user = currentScope !== undefined ? currentScope.getUser() : undefined;\n entries.forEach(entry => {\n if (isPerformanceEventTiming(entry)) {\n const interactionId = entry.interactionId;\n if (interactionId === undefined) {\n return;\n }\n const existingInteraction = interactionIdToRouteNameMapping[interactionId];\n const duration = entry.duration;\n const startTime = entry.startTime;\n const keys = Object.keys(interactionIdToRouteNameMapping);\n const minInteractionId =\n keys.length > 0\n ? keys.reduce((a, b) => {\n return interactionIdToRouteNameMapping[a].duration < interactionIdToRouteNameMapping[b].duration\n ? a\n : b;\n })\n : undefined;\n // For a first input event to be considered, we must check that an interaction event does not already exist with the same duration and start time.\n // This is also checked in the web-vitals library.\n if (entry.entryType === 'first-input') {\n const matchingEntry = keys\n .map(key => interactionIdToRouteNameMapping[key])\n .some(interaction => {\n return interaction.duration === duration && interaction.startTime === startTime;\n });\n if (matchingEntry) {\n return;\n }\n }\n // Interactions with an id of 0 and are not first-input are not valid.\n if (!interactionId) {\n return;\n }\n // If the interaction already exists, we want to use the duration of the longest entry, since that is what the INP metric uses.\n if (existingInteraction) {\n existingInteraction.duration = Math.max(existingInteraction.duration, duration);\n } else if (\n keys.length < MAX_INTERACTIONS ||\n minInteractionId === undefined ||\n duration > interactionIdToRouteNameMapping[minInteractionId].duration\n ) {\n // If the interaction does not exist, we want to add it to the mapping if there is space, or if the duration is longer than the shortest entry.\n const routeName = latestRoute.name;\n const parentContext = latestRoute.context;\n if (routeName && parentContext) {\n if (minInteractionId && Object.keys(interactionIdToRouteNameMapping).length >= MAX_INTERACTIONS) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete interactionIdToRouteNameMapping[minInteractionId];\n }\n interactionIdToRouteNameMapping[interactionId] = {\n routeName,\n duration,\n parentContext,\n user,\n activeTransaction,\n replayId,\n startTime,\n };\n }\n }\n }\n });\n };\n addPerformanceInstrumentationHandler('event', handleEntries);\n addPerformanceInstrumentationHandler('first-input', handleEntries);\n}\n\nfunction getSource(context: TransactionContext): TransactionSource | undefined {\n const sourceFromAttributes = context.attributes && context.attributes[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];\n // eslint-disable-next-line deprecation/deprecation\n const sourceFromData = context.data && context.data[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];\n // eslint-disable-next-line deprecation/deprecation\n const sourceFromMetadata = context.metadata && context.metadata.source;\n\n return sourceFromAttributes || sourceFromData || sourceFromMetadata;\n}\n", "import { addTracingExtensions, getMainCarrier } from '@sentry/core';\nimport type { Integration, IntegrationClass } from '@sentry/types';\nimport { dynamicRequire, isNodeEnv, loadModule } from '@sentry/utils';\n\n/**\n * @private\n */\nfunction _autoloadDatabaseIntegrations(): void {\n const carrier = getMainCarrier();\n if (!carrier.__SENTRY__) {\n return;\n }\n\n const packageToIntegrationMapping: Record Integration> = {\n mongodb() {\n const integration = dynamicRequire(module, './node/integrations/mongo') as {\n Mongo: IntegrationClass;\n };\n return new integration.Mongo();\n },\n mongoose() {\n const integration = dynamicRequire(module, './node/integrations/mongo') as {\n Mongo: IntegrationClass;\n };\n return new integration.Mongo();\n },\n mysql() {\n const integration = dynamicRequire(module, './node/integrations/mysql') as {\n Mysql: IntegrationClass;\n };\n return new integration.Mysql();\n },\n pg() {\n const integration = dynamicRequire(module, './node/integrations/postgres') as {\n Postgres: IntegrationClass;\n };\n return new integration.Postgres();\n },\n };\n\n const mappedPackages = Object.keys(packageToIntegrationMapping)\n .filter(moduleName => !!loadModule(moduleName))\n .map(pkg => {\n try {\n return packageToIntegrationMapping[pkg]();\n } catch (e) {\n return undefined;\n }\n })\n .filter(p => p) as Integration[];\n\n if (mappedPackages.length > 0) {\n carrier.__SENTRY__.integrations = [...(carrier.__SENTRY__.integrations || []), ...mappedPackages];\n }\n}\n\n/**\n * This patches the global object and injects the Tracing extensions methods\n */\nexport function addExtensionMethods(): void {\n addTracingExtensions();\n\n // Detect and automatically load specified integrations.\n if (isNodeEnv()) {\n _autoloadDatabaseIntegrations();\n }\n}\n", "Object.defineProperty(exports, '__esModule', { value: true });\n\nconst core = require('@sentry/core');\nconst utils = require('@sentry/utils');\nconst express = require('./node/integrations/express.js');\nconst postgres = require('./node/integrations/postgres.js');\nconst mysql = require('./node/integrations/mysql.js');\nconst mongo = require('./node/integrations/mongo.js');\nconst prisma = require('./node/integrations/prisma.js');\nconst graphql = require('./node/integrations/graphql.js');\nconst apollo = require('./node/integrations/apollo.js');\nconst lazy = require('./node/integrations/lazy.js');\nconst browsertracing = require('./browser/browsertracing.js');\nconst browserTracingIntegration = require('./browser/browserTracingIntegration.js');\nconst request = require('./browser/request.js');\nconst instrument = require('./browser/instrument.js');\nconst fetch = require('./common/fetch.js');\nconst extensions = require('./extensions.js');\n\n\n\nexports.IdleTransaction = core.IdleTransaction;\nexports.Span = core.Span;\nexports.SpanStatus = core.SpanStatus;\nexports.Transaction = core.Transaction;\nexports.extractTraceparentData = core.extractTraceparentData;\nexports.getActiveTransaction = core.getActiveTransaction;\nexports.hasTracingEnabled = core.hasTracingEnabled;\nexports.spanStatusfromHttpCode = core.spanStatusfromHttpCode;\nexports.startIdleTransaction = core.startIdleTransaction;\nexports.TRACEPARENT_REGEXP = utils.TRACEPARENT_REGEXP;\nexports.stripUrlQueryAndFragment = utils.stripUrlQueryAndFragment;\nexports.Express = express.Express;\nexports.Postgres = postgres.Postgres;\nexports.Mysql = mysql.Mysql;\nexports.Mongo = mongo.Mongo;\nexports.Prisma = prisma.Prisma;\nexports.GraphQL = graphql.GraphQL;\nexports.Apollo = apollo.Apollo;\nexports.lazyLoadedNodePerformanceMonitoringIntegrations = lazy.lazyLoadedNodePerformanceMonitoringIntegrations;\nexports.BROWSER_TRACING_INTEGRATION_ID = browsertracing.BROWSER_TRACING_INTEGRATION_ID;\nexports.BrowserTracing = browsertracing.BrowserTracing;\nexports.browserTracingIntegration = browserTracingIntegration.browserTracingIntegration;\nexports.startBrowserTracingNavigationSpan = browserTracingIntegration.startBrowserTracingNavigationSpan;\nexports.startBrowserTracingPageLoadSpan = browserTracingIntegration.startBrowserTracingPageLoadSpan;\nexports.defaultRequestInstrumentationOptions = request.defaultRequestInstrumentationOptions;\nexports.instrumentOutgoingRequests = request.instrumentOutgoingRequests;\nexports.addClsInstrumentationHandler = instrument.addClsInstrumentationHandler;\nexports.addFidInstrumentationHandler = instrument.addFidInstrumentationHandler;\nexports.addLcpInstrumentationHandler = instrument.addLcpInstrumentationHandler;\nexports.addPerformanceInstrumentationHandler = instrument.addPerformanceInstrumentationHandler;\nexports.addTracingHeadersToFetchRequest = fetch.addTracingHeadersToFetchRequest;\nexports.instrumentFetchRequest = fetch.instrumentFetchRequest;\nexports.addExtensionMethods = extensions.addExtensionMethods;\n//# sourceMappingURL=index.js.map\n", "import type { browserTracingIntegration } from '@sentry-internal/tracing';\nimport { BrowserTracing } from '@sentry-internal/tracing';\nimport { captureException, withScope } from '@sentry/core';\nimport type { DsnLike, Integration, Mechanism, WrappedFunction } from '@sentry/types';\nimport {\n GLOBAL_OBJ,\n addExceptionMechanism,\n addExceptionTypeValue,\n addNonEnumerableProperty,\n getOriginalFunction,\n markFunctionWrapped,\n} from '@sentry/utils';\n\nexport const WINDOW = GLOBAL_OBJ as typeof GLOBAL_OBJ & Window;\n\nlet ignoreOnError: number = 0;\n\n/**\n * @hidden\n */\nexport function shouldIgnoreOnError(): boolean {\n return ignoreOnError > 0;\n}\n\n/**\n * @hidden\n */\nexport function ignoreNextOnError(): void {\n // onerror should trigger before setTimeout\n ignoreOnError++;\n setTimeout(() => {\n ignoreOnError--;\n });\n}\n\n/**\n * Instruments the given function and sends an event to Sentry every time the\n * function throws an exception.\n *\n * @param fn A function to wrap. It is generally safe to pass an unbound function, because the returned wrapper always\n * has a correct `this` context.\n * @returns The wrapped function.\n * @hidden\n */\nexport function wrap(\n fn: WrappedFunction,\n options: {\n mechanism?: Mechanism;\n } = {},\n before?: WrappedFunction,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n): any {\n // for future readers what this does is wrap a function and then create\n // a bi-directional wrapping between them.\n //\n // example: wrapped = wrap(original);\n // original.__sentry_wrapped__ -> wrapped\n // wrapped.__sentry_original__ -> original\n\n if (typeof fn !== 'function') {\n return fn;\n }\n\n try {\n // if we're dealing with a function that was previously wrapped, return\n // the original wrapper.\n const wrapper = fn.__sentry_wrapped__;\n if (wrapper) {\n if (typeof wrapper === 'function') {\n return wrapper;\n } else {\n // If we find that the `__sentry_wrapped__` function is not a function at the time of accessing it, it means\n // that something messed with it. In that case we want to return the originally passed function.\n return fn;\n }\n }\n\n // We don't wanna wrap it twice\n if (getOriginalFunction(fn)) {\n return fn;\n }\n } catch (e) {\n // Just accessing custom props in some Selenium environments\n // can cause a \"Permission denied\" exception (see raven-js#495).\n // Bail on wrapping and return the function as-is (defers to window.onerror).\n return fn;\n }\n\n /* eslint-disable prefer-rest-params */\n // It is important that `sentryWrapped` is not an arrow function to preserve the context of `this`\n const sentryWrapped: WrappedFunction = function (this: unknown): void {\n const args = Array.prototype.slice.call(arguments);\n\n try {\n if (before && typeof before === 'function') {\n before.apply(this, arguments);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access\n const wrappedArguments = args.map((arg: any) => wrap(arg, options));\n\n // Attempt to invoke user-land function\n // NOTE: If you are a Sentry user, and you are seeing this stack frame, it\n // means the sentry.javascript SDK caught an error invoking your application code. This\n // is expected behavior and NOT indicative of a bug with sentry.javascript.\n return fn.apply(this, wrappedArguments);\n } catch (ex) {\n ignoreNextOnError();\n\n withScope(scope => {\n scope.addEventProcessor(event => {\n if (options.mechanism) {\n addExceptionTypeValue(event, undefined, undefined);\n addExceptionMechanism(event, options.mechanism);\n }\n\n event.extra = {\n ...event.extra,\n arguments: args,\n };\n\n return event;\n });\n\n captureException(ex);\n });\n\n throw ex;\n }\n };\n /* eslint-enable prefer-rest-params */\n\n // Accessing some objects may throw\n // ref: https://github.com/getsentry/sentry-javascript/issues/1168\n try {\n for (const property in fn) {\n if (Object.prototype.hasOwnProperty.call(fn, property)) {\n sentryWrapped[property] = fn[property];\n }\n }\n } catch (_oO) {} // eslint-disable-line no-empty\n\n // Signal that this function has been wrapped/filled already\n // for both debugging and to prevent it to being wrapped/filled twice\n markFunctionWrapped(sentryWrapped, fn);\n\n addNonEnumerableProperty(fn, '__sentry_wrapped__', sentryWrapped);\n\n // Restore original function name (not all browsers allow that)\n try {\n const descriptor = Object.getOwnPropertyDescriptor(sentryWrapped, 'name') as PropertyDescriptor;\n if (descriptor.configurable) {\n Object.defineProperty(sentryWrapped, 'name', {\n get(): string {\n return fn.name;\n },\n });\n }\n // eslint-disable-next-line no-empty\n } catch (_oO) {}\n\n return sentryWrapped;\n}\n\n/**\n * All properties the report dialog supports\n *\n * @deprecated This type will be removed in the next major version of the Sentry SDK. `showReportDialog` will still be around, however the `eventId` option will now be required.\n */\nexport interface ReportDialogOptions {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [key: string]: any;\n eventId?: string;\n dsn?: DsnLike;\n user?: {\n email?: string;\n name?: string;\n };\n lang?: string;\n title?: string;\n subtitle?: string;\n subtitle2?: string;\n labelName?: string;\n labelEmail?: string;\n labelComments?: string;\n labelClose?: string;\n labelSubmit?: string;\n errorGeneric?: string;\n errorFormEntry?: string;\n successMessage?: string;\n /** Callback after reportDialog showed up */\n onLoad?(this: void): void;\n /** Callback after reportDialog closed */\n onClose?(this: void): void;\n}\n\n/**\n * This is a slim shim of `browserTracingIntegration` for the CDN bundles.\n * Since the actual functional integration uses a different code from `BrowserTracing`,\n * we want to avoid shipping both of them in the CDN bundles, as that would blow up the size.\n * Instead, we provide a functional integration with the same API, but the old implementation.\n * This means that it's not possible to register custom routing instrumentation, but that's OK for now.\n * We also don't expose the utilities for this anyhow in the CDN bundles.\n * For users that need custom routing in CDN bundles, they have to continue using `new BrowserTracing()` until v8.\n */\nexport function bundleBrowserTracingIntegration(\n options: Parameters[0] = {},\n): Integration {\n // Migrate some options from the old integration to the new one\n // eslint-disable-next-line deprecation/deprecation\n const opts: ConstructorParameters[0] = options;\n\n if (typeof options.markBackgroundSpan === 'boolean') {\n opts.markBackgroundTransactions = options.markBackgroundSpan;\n }\n\n if (typeof options.instrumentPageLoad === 'boolean') {\n opts.startTransactionOnPageLoad = options.instrumentPageLoad;\n }\n\n if (typeof options.instrumentNavigation === 'boolean') {\n opts.startTransactionOnLocationChange = options.instrumentNavigation;\n }\n\n // eslint-disable-next-line deprecation/deprecation\n return new BrowserTracing(opts);\n}\n", "declare const __DEBUG_BUILD__: boolean;\n\n/**\n * This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.\n *\n * ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.\n */\nexport const DEBUG_BUILD = __DEBUG_BUILD__;\n", "import { getClient } from '@sentry/core';\nimport type {\n Event,\n EventHint,\n Exception,\n ParameterizedString,\n Severity,\n SeverityLevel,\n StackFrame,\n StackParser,\n} from '@sentry/types';\nimport {\n addExceptionMechanism,\n addExceptionTypeValue,\n extractExceptionKeysForMessage,\n isDOMError,\n isDOMException,\n isError,\n isErrorEvent,\n isEvent,\n isParameterizedString,\n isPlainObject,\n normalizeToSize,\n resolvedSyncPromise,\n} from '@sentry/utils';\n\ntype Prototype = { constructor: (...args: unknown[]) => unknown };\n\n/**\n * This function creates an exception from a JavaScript Error\n */\nexport function exceptionFromError(stackParser: StackParser, ex: Error): Exception {\n // Get the frames first since Opera can lose the stack if we touch anything else first\n const frames = parseStackFrames(stackParser, ex);\n\n const exception: Exception = {\n type: ex && ex.name,\n value: extractMessage(ex),\n };\n\n if (frames.length) {\n exception.stacktrace = { frames };\n }\n\n if (exception.type === undefined && exception.value === '') {\n exception.value = 'Unrecoverable error caught';\n }\n\n return exception;\n}\n\n/**\n * @hidden\n */\nexport function eventFromPlainObject(\n stackParser: StackParser,\n exception: Record,\n syntheticException?: Error,\n isUnhandledRejection?: boolean,\n): Event {\n const client = getClient();\n const normalizeDepth = client && client.getOptions().normalizeDepth;\n\n const event: Event = {\n exception: {\n values: [\n {\n type: isEvent(exception) ? exception.constructor.name : isUnhandledRejection ? 'UnhandledRejection' : 'Error',\n value: getNonErrorObjectExceptionValue(exception, { isUnhandledRejection }),\n },\n ],\n },\n extra: {\n __serialized__: normalizeToSize(exception, normalizeDepth),\n },\n };\n\n if (syntheticException) {\n const frames = parseStackFrames(stackParser, syntheticException);\n if (frames.length) {\n // event.exception.values[0] has been set above\n (event.exception as { values: Exception[] }).values[0].stacktrace = { frames };\n }\n }\n\n return event;\n}\n\n/**\n * @hidden\n */\nexport function eventFromError(stackParser: StackParser, ex: Error): Event {\n return {\n exception: {\n values: [exceptionFromError(stackParser, ex)],\n },\n };\n}\n\n/** Parses stack frames from an error */\nexport function parseStackFrames(\n stackParser: StackParser,\n ex: Error & { framesToPop?: number; stacktrace?: string },\n): StackFrame[] {\n // Access and store the stacktrace property before doing ANYTHING\n // else to it because Opera is not very good at providing it\n // reliably in other circumstances.\n const stacktrace = ex.stacktrace || ex.stack || '';\n\n const popSize = getPopSize(ex);\n\n try {\n return stackParser(stacktrace, popSize);\n } catch (e) {\n // no-empty\n }\n\n return [];\n}\n\n// Based on our own mapping pattern - https://github.com/getsentry/sentry/blob/9f08305e09866c8bd6d0c24f5b0aabdd7dd6c59c/src/sentry/lang/javascript/errormapping.py#L83-L108\nconst reactMinifiedRegexp = /Minified React error #\\d+;/i;\n\nfunction getPopSize(ex: Error & { framesToPop?: number }): number {\n if (ex) {\n if (typeof ex.framesToPop === 'number') {\n return ex.framesToPop;\n }\n\n if (reactMinifiedRegexp.test(ex.message)) {\n return 1;\n }\n }\n\n return 0;\n}\n\n/**\n * There are cases where stacktrace.message is an Event object\n * https://github.com/getsentry/sentry-javascript/issues/1949\n * In this specific case we try to extract stacktrace.message.error.message\n */\nfunction extractMessage(ex: Error & { message: { error?: Error } }): string {\n const message = ex && ex.message;\n if (!message) {\n return 'No error message';\n }\n if (message.error && typeof message.error.message === 'string') {\n return message.error.message;\n }\n return message;\n}\n\n/**\n * Creates an {@link Event} from all inputs to `captureException` and non-primitive inputs to `captureMessage`.\n * @hidden\n */\nexport function eventFromException(\n stackParser: StackParser,\n exception: unknown,\n hint?: EventHint,\n attachStacktrace?: boolean,\n): PromiseLike {\n const syntheticException = (hint && hint.syntheticException) || undefined;\n const event = eventFromUnknownInput(stackParser, exception, syntheticException, attachStacktrace);\n addExceptionMechanism(event); // defaults to { type: 'generic', handled: true }\n event.level = 'error';\n if (hint && hint.event_id) {\n event.event_id = hint.event_id;\n }\n return resolvedSyncPromise(event);\n}\n\n/**\n * Builds and Event from a Message\n * @hidden\n */\nexport function eventFromMessage(\n stackParser: StackParser,\n message: ParameterizedString,\n // eslint-disable-next-line deprecation/deprecation\n level: Severity | SeverityLevel = 'info',\n hint?: EventHint,\n attachStacktrace?: boolean,\n): PromiseLike {\n const syntheticException = (hint && hint.syntheticException) || undefined;\n const event = eventFromString(stackParser, message, syntheticException, attachStacktrace);\n event.level = level;\n if (hint && hint.event_id) {\n event.event_id = hint.event_id;\n }\n return resolvedSyncPromise(event);\n}\n\n/**\n * @hidden\n */\nexport function eventFromUnknownInput(\n stackParser: StackParser,\n exception: unknown,\n syntheticException?: Error,\n attachStacktrace?: boolean,\n isUnhandledRejection?: boolean,\n): Event {\n let event: Event;\n\n if (isErrorEvent(exception as ErrorEvent) && (exception as ErrorEvent).error) {\n // If it is an ErrorEvent with `error` property, extract it to get actual Error\n const errorEvent = exception as ErrorEvent;\n return eventFromError(stackParser, errorEvent.error as Error);\n }\n\n // If it is a `DOMError` (which is a legacy API, but still supported in some browsers) then we just extract the name\n // and message, as it doesn't provide anything else. According to the spec, all `DOMExceptions` should also be\n // `Error`s, but that's not the case in IE11, so in that case we treat it the same as we do a `DOMError`.\n //\n // https://developer.mozilla.org/en-US/docs/Web/API/DOMError\n // https://developer.mozilla.org/en-US/docs/Web/API/DOMException\n // https://webidl.spec.whatwg.org/#es-DOMException-specialness\n if (isDOMError(exception) || isDOMException(exception as DOMException)) {\n const domException = exception as DOMException;\n\n if ('stack' in (exception as Error)) {\n event = eventFromError(stackParser, exception as Error);\n } else {\n const name = domException.name || (isDOMError(domException) ? 'DOMError' : 'DOMException');\n const message = domException.message ? `${name}: ${domException.message}` : name;\n event = eventFromString(stackParser, message, syntheticException, attachStacktrace);\n addExceptionTypeValue(event, message);\n }\n if ('code' in domException) {\n // eslint-disable-next-line deprecation/deprecation\n event.tags = { ...event.tags, 'DOMException.code': `${domException.code}` };\n }\n\n return event;\n }\n if (isError(exception)) {\n // we have a real Error object, do nothing\n return eventFromError(stackParser, exception);\n }\n if (isPlainObject(exception) || isEvent(exception)) {\n // If it's a plain object or an instance of `Event` (the built-in JS kind, not this SDK's `Event` type), serialize\n // it manually. This will allow us to group events based on top-level keys which is much better than creating a new\n // group on any key/value change.\n const objectException = exception as Record;\n event = eventFromPlainObject(stackParser, objectException, syntheticException, isUnhandledRejection);\n addExceptionMechanism(event, {\n synthetic: true,\n });\n return event;\n }\n\n // If none of previous checks were valid, then it means that it's not:\n // - an instance of DOMError\n // - an instance of DOMException\n // - an instance of Event\n // - an instance of Error\n // - a valid ErrorEvent (one with an error property)\n // - a plain Object\n //\n // So bail out and capture it as a simple message:\n event = eventFromString(stackParser, exception as string, syntheticException, attachStacktrace);\n addExceptionTypeValue(event, `${exception}`, undefined);\n addExceptionMechanism(event, {\n synthetic: true,\n });\n\n return event;\n}\n\n/**\n * @hidden\n */\nexport function eventFromString(\n stackParser: StackParser,\n message: ParameterizedString,\n syntheticException?: Error,\n attachStacktrace?: boolean,\n): Event {\n const event: Event = {};\n\n if (attachStacktrace && syntheticException) {\n const frames = parseStackFrames(stackParser, syntheticException);\n if (frames.length) {\n event.exception = {\n values: [{ value: message, stacktrace: { frames } }],\n };\n }\n }\n\n if (isParameterizedString(message)) {\n const { __sentry_template_string__, __sentry_template_values__ } = message;\n\n event.logentry = {\n message: __sentry_template_string__,\n params: __sentry_template_values__,\n };\n return event;\n }\n\n event.message = message;\n return event;\n}\n\nfunction getNonErrorObjectExceptionValue(\n exception: Record,\n { isUnhandledRejection }: { isUnhandledRejection?: boolean },\n): string {\n const keys = extractExceptionKeysForMessage(exception);\n const captureType = isUnhandledRejection ? 'promise rejection' : 'exception';\n\n // Some ErrorEvent instances do not have an `error` property, which is why they are not handled before\n // We still want to try to get a decent message for these cases\n if (isErrorEvent(exception)) {\n return `Event \\`ErrorEvent\\` captured as ${captureType} with message \\`${exception.message}\\``;\n }\n\n if (isEvent(exception)) {\n const className = getObjectClassName(exception);\n return `Event \\`${className}\\` (type=${exception.type}) captured as ${captureType}`;\n }\n\n return `Object captured as ${captureType} with keys: ${keys}`;\n}\n\nfunction getObjectClassName(obj: unknown): string | undefined | void {\n try {\n const prototype: Prototype | null = Object.getPrototypeOf(obj);\n return prototype ? prototype.constructor.name : undefined;\n } catch (e) {\n // ignore errors here\n }\n}\n", "import type { DsnComponents, EventEnvelope, SdkMetadata, UserFeedback, UserFeedbackItem } from '@sentry/types';\nimport { createEnvelope, dsnToString } from '@sentry/utils';\n\n/**\n * Creates an envelope from a user feedback.\n */\nexport function createUserFeedbackEnvelope(\n feedback: UserFeedback,\n {\n metadata,\n tunnel,\n dsn,\n }: {\n metadata: SdkMetadata | undefined;\n tunnel: string | undefined;\n dsn: DsnComponents | undefined;\n },\n): EventEnvelope {\n const headers: EventEnvelope[0] = {\n event_id: feedback.event_id,\n sent_at: new Date().toISOString(),\n ...(metadata &&\n metadata.sdk && {\n sdk: {\n name: metadata.sdk.name,\n version: metadata.sdk.version,\n },\n }),\n ...(!!tunnel && !!dsn && { dsn: dsnToString(dsn) }),\n };\n const item = createUserFeedbackEnvelopeItem(feedback);\n\n return createEnvelope(headers, [item]);\n}\n\nfunction createUserFeedbackEnvelopeItem(feedback: UserFeedback): UserFeedbackItem {\n const feedbackHeaders: UserFeedbackItem[0] = {\n type: 'user_report',\n };\n return [feedbackHeaders, feedback];\n}\n", "import type { Scope } from '@sentry/core';\nimport { applySdkMetadata } from '@sentry/core';\nimport { BaseClient } from '@sentry/core';\nimport type {\n BrowserClientProfilingOptions,\n BrowserClientReplayOptions,\n ClientOptions,\n Event,\n EventHint,\n Options,\n ParameterizedString,\n Severity,\n SeverityLevel,\n UserFeedback,\n} from '@sentry/types';\nimport { createClientReportEnvelope, dsnToString, getSDKSource, logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from './debug-build';\nimport { eventFromException, eventFromMessage } from './eventbuilder';\nimport { WINDOW } from './helpers';\nimport type { BrowserTransportOptions } from './transports/types';\nimport { createUserFeedbackEnvelope } from './userfeedback';\n\n/**\n * Configuration options for the Sentry Browser SDK.\n * @see @sentry/types Options for more information.\n */\nexport type BrowserOptions = Options &\n BrowserClientReplayOptions &\n BrowserClientProfilingOptions;\n\n/**\n * Configuration options for the Sentry Browser SDK Client class\n * @see BrowserClient for more information.\n */\nexport type BrowserClientOptions = ClientOptions &\n BrowserClientReplayOptions &\n BrowserClientProfilingOptions;\n\n/**\n * The Sentry Browser SDK Client.\n *\n * @see BrowserOptions for documentation on configuration options.\n * @see SentryClient for usage documentation.\n */\nexport class BrowserClient extends BaseClient {\n /**\n * Creates a new Browser SDK instance.\n *\n * @param options Configuration options for this SDK.\n */\n public constructor(options: BrowserClientOptions) {\n const sdkSource = WINDOW.SENTRY_SDK_SOURCE || getSDKSource();\n applySdkMetadata(options, 'browser', ['browser'], sdkSource);\n\n super(options);\n\n if (options.sendClientReports && WINDOW.document) {\n WINDOW.document.addEventListener('visibilitychange', () => {\n if (WINDOW.document.visibilityState === 'hidden') {\n this._flushOutcomes();\n }\n });\n }\n }\n\n /**\n * @inheritDoc\n */\n public eventFromException(exception: unknown, hint?: EventHint): PromiseLike {\n return eventFromException(this._options.stackParser, exception, hint, this._options.attachStacktrace);\n }\n\n /**\n * @inheritDoc\n */\n public eventFromMessage(\n message: ParameterizedString,\n // eslint-disable-next-line deprecation/deprecation\n level: Severity | SeverityLevel = 'info',\n hint?: EventHint,\n ): PromiseLike {\n return eventFromMessage(this._options.stackParser, message, level, hint, this._options.attachStacktrace);\n }\n\n /**\n * Sends user feedback to Sentry.\n */\n public captureUserFeedback(feedback: UserFeedback): void {\n if (!this._isEnabled()) {\n DEBUG_BUILD && logger.warn('SDK not enabled, will not capture user feedback.');\n return;\n }\n\n const envelope = createUserFeedbackEnvelope(feedback, {\n metadata: this.getSdkMetadata(),\n dsn: this.getDsn(),\n tunnel: this.getOptions().tunnel,\n });\n\n // _sendEnvelope should not throw\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this._sendEnvelope(envelope);\n }\n\n /**\n * @inheritDoc\n */\n protected _prepareEvent(event: Event, hint: EventHint, scope?: Scope): PromiseLike {\n event.platform = event.platform || 'javascript';\n return super._prepareEvent(event, hint, scope);\n }\n\n /**\n * Sends client reports as an envelope.\n */\n private _flushOutcomes(): void {\n const outcomes = this._clearOutcomes();\n\n if (outcomes.length === 0) {\n DEBUG_BUILD && logger.log('No outcomes to send');\n return;\n }\n\n // This is really the only place where we want to check for a DSN and only send outcomes then\n if (!this._dsn) {\n DEBUG_BUILD && logger.log('No dsn provided, will not send outcomes');\n return;\n }\n\n DEBUG_BUILD && logger.log('Sending outcomes:', outcomes);\n\n const envelope = createClientReportEnvelope(outcomes, this._options.tunnel && dsnToString(this._dsn));\n\n // _sendEnvelope should not throw\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this._sendEnvelope(envelope);\n }\n}\n", "import { isNativeFetch, logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../debug-build';\nimport { WINDOW } from '../helpers';\n\nlet cachedFetchImpl: FetchImpl | undefined = undefined;\n\nexport type FetchImpl = typeof fetch;\n\n/**\n * A special usecase for incorrectly wrapped Fetch APIs in conjunction with ad-blockers.\n * Whenever someone wraps the Fetch API and returns the wrong promise chain,\n * this chain becomes orphaned and there is no possible way to capture it's rejections\n * other than allowing it bubble up to this very handler. eg.\n *\n * const f = window.fetch;\n * window.fetch = function () {\n * const p = f.apply(this, arguments);\n *\n * p.then(function() {\n * console.log('hi.');\n * });\n *\n * return p;\n * }\n *\n * `p.then(function () { ... })` is producing a completely separate promise chain,\n * however, what's returned is `p` - the result of original `fetch` call.\n *\n * This mean, that whenever we use the Fetch API to send our own requests, _and_\n * some ad-blocker blocks it, this orphaned chain will _always_ reject,\n * effectively causing another event to be captured.\n * This makes a whole process become an infinite loop, which we need to somehow\n * deal with, and break it in one way or another.\n *\n * To deal with this issue, we are making sure that we _always_ use the real\n * browser Fetch API, instead of relying on what `window.fetch` exposes.\n * The only downside to this would be missing our own requests as breadcrumbs,\n * but because we are already not doing this, it should be just fine.\n *\n * Possible failed fetch error messages per-browser:\n *\n * Chrome: Failed to fetch\n * Edge: Failed to Fetch\n * Firefox: NetworkError when attempting to fetch resource\n * Safari: resource blocked by content blocker\n */\nexport function getNativeFetchImplementation(): FetchImpl {\n if (cachedFetchImpl) {\n return cachedFetchImpl;\n }\n\n /* eslint-disable @typescript-eslint/unbound-method */\n\n // Fast path to avoid DOM I/O\n if (isNativeFetch(WINDOW.fetch)) {\n return (cachedFetchImpl = WINDOW.fetch.bind(WINDOW));\n }\n\n const document = WINDOW.document;\n let fetchImpl = WINDOW.fetch;\n // eslint-disable-next-line deprecation/deprecation\n if (document && typeof document.createElement === 'function') {\n try {\n const sandbox = document.createElement('iframe');\n sandbox.hidden = true;\n document.head.appendChild(sandbox);\n const contentWindow = sandbox.contentWindow;\n if (contentWindow && contentWindow.fetch) {\n fetchImpl = contentWindow.fetch;\n }\n document.head.removeChild(sandbox);\n } catch (e) {\n DEBUG_BUILD && logger.warn('Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ', e);\n }\n }\n\n return (cachedFetchImpl = fetchImpl.bind(WINDOW));\n /* eslint-enable @typescript-eslint/unbound-method */\n}\n\n/** Clears cached fetch impl */\nexport function clearCachedFetchImplementation(): void {\n cachedFetchImpl = undefined;\n}\n", "import { createTransport } from '@sentry/core';\nimport type { Transport, TransportMakeRequestResponse, TransportRequest } from '@sentry/types';\nimport { rejectedSyncPromise } from '@sentry/utils';\n\nimport type { BrowserTransportOptions } from './types';\nimport type { FetchImpl } from './utils';\nimport { clearCachedFetchImplementation, getNativeFetchImplementation } from './utils';\n\n/**\n * Creates a Transport that uses the Fetch API to send events to Sentry.\n */\nexport function makeFetchTransport(\n options: BrowserTransportOptions,\n nativeFetch: FetchImpl = getNativeFetchImplementation(),\n): Transport {\n let pendingBodySize = 0;\n let pendingCount = 0;\n\n function makeRequest(request: TransportRequest): PromiseLike {\n const requestSize = request.body.length;\n pendingBodySize += requestSize;\n pendingCount++;\n\n const requestOptions: RequestInit = {\n body: request.body,\n method: 'POST',\n referrerPolicy: 'origin',\n headers: options.headers,\n // Outgoing requests are usually cancelled when navigating to a different page, causing a \"TypeError: Failed to\n // fetch\" error and sending a \"network_error\" client-outcome - in Chrome, the request status shows \"(cancelled)\".\n // The `keepalive` flag keeps outgoing requests alive, even when switching pages. We want this since we're\n // frequently sending events right before the user is switching pages (eg. whenfinishing navigation transactions).\n // Gotchas:\n // - `keepalive` isn't supported by Firefox\n // - As per spec (https://fetch.spec.whatwg.org/#http-network-or-cache-fetch):\n // If the sum of contentLength and inflightKeepaliveBytes is greater than 64 kibibytes, then return a network error.\n // We will therefore only activate the flag when we're below that limit.\n // There is also a limit of requests that can be open at the same time, so we also limit this to 15\n // See https://github.com/getsentry/sentry-javascript/pull/7553 for details\n keepalive: pendingBodySize <= 60_000 && pendingCount < 15,\n ...options.fetchOptions,\n };\n\n try {\n return nativeFetch(options.url, requestOptions).then(response => {\n pendingBodySize -= requestSize;\n pendingCount--;\n return {\n statusCode: response.status,\n headers: {\n 'x-sentry-rate-limits': response.headers.get('X-Sentry-Rate-Limits'),\n 'retry-after': response.headers.get('Retry-After'),\n },\n };\n });\n } catch (e) {\n clearCachedFetchImplementation();\n pendingBodySize -= requestSize;\n pendingCount--;\n return rejectedSyncPromise(e);\n }\n }\n\n return createTransport(options, makeRequest);\n}\n", "import { createTransport } from '@sentry/core';\nimport type { Transport, TransportMakeRequestResponse, TransportRequest } from '@sentry/types';\nimport { SyncPromise } from '@sentry/utils';\n\nimport type { BrowserTransportOptions } from './types';\n\n/**\n * The DONE ready state for XmlHttpRequest\n *\n * Defining it here as a constant b/c XMLHttpRequest.DONE is not always defined\n * (e.g. during testing, it is `undefined`)\n *\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/readyState}\n */\nconst XHR_READYSTATE_DONE = 4;\n\n/**\n * Creates a Transport that uses the XMLHttpRequest API to send events to Sentry.\n */\nexport function makeXHRTransport(options: BrowserTransportOptions): Transport {\n function makeRequest(request: TransportRequest): PromiseLike {\n return new SyncPromise((resolve, reject) => {\n const xhr = new XMLHttpRequest();\n\n xhr.onerror = reject;\n\n xhr.onreadystatechange = (): void => {\n if (xhr.readyState === XHR_READYSTATE_DONE) {\n resolve({\n statusCode: xhr.status,\n headers: {\n 'x-sentry-rate-limits': xhr.getResponseHeader('X-Sentry-Rate-Limits'),\n 'retry-after': xhr.getResponseHeader('Retry-After'),\n },\n });\n }\n };\n\n xhr.open('POST', options.url);\n\n for (const header in options.headers) {\n if (Object.prototype.hasOwnProperty.call(options.headers, header)) {\n xhr.setRequestHeader(header, options.headers[header]);\n }\n }\n\n xhr.send(request.body);\n });\n }\n\n return createTransport(options, makeRequest);\n}\n", "// This was originally forked from https://github.com/csnover/TraceKit, and was largely\n// re - written as part of raven - js.\n//\n// This code was later copied to the JavaScript mono - repo and further modified and\n// refactored over the years.\n\n// Copyright (c) 2013 Onur Can Cakmak onur.cakmak@gmail.com and all TraceKit contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this\n// software and associated documentation files(the 'Software'), to deal in the Software\n// without restriction, including without limitation the rights to use, copy, modify,\n// merge, publish, distribute, sublicense, and / or sell copies of the Software, and to\n// permit persons to whom the Software is furnished to do so, subject to the following\n// conditions:\n//\n// The above copyright notice and this permission notice shall be included in all copies\n// or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\n// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\n// PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF\n// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE\n// OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nimport type { StackFrame, StackLineParser, StackLineParserFn } from '@sentry/types';\nimport { createStackParser } from '@sentry/utils';\n\n// global reference to slice\nconst UNKNOWN_FUNCTION = '?';\n\nconst OPERA10_PRIORITY = 10;\nconst OPERA11_PRIORITY = 20;\nconst CHROME_PRIORITY = 30;\nconst WINJS_PRIORITY = 40;\nconst GECKO_PRIORITY = 50;\n\nfunction createFrame(filename: string, func: string, lineno?: number, colno?: number): StackFrame {\n const frame: StackFrame = {\n filename,\n function: func,\n in_app: true, // All browser frames are considered in_app\n };\n\n if (lineno !== undefined) {\n frame.lineno = lineno;\n }\n\n if (colno !== undefined) {\n frame.colno = colno;\n }\n\n return frame;\n}\n\n// Chromium based browsers: Chrome, Brave, new Opera, new Edge\nconst chromeRegex =\n /^\\s*at (?:(.+?\\)(?: \\[.+\\])?|.*?) ?\\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\\/)?.*?)(?::(\\d+))?(?::(\\d+))?\\)?\\s*$/i;\nconst chromeEvalRegex = /\\((\\S*)(?::(\\d+))(?::(\\d+))\\)/;\n\n// We cannot call this variable `chrome` because it can conflict with global `chrome` variable in certain environments\n// See: https://github.com/getsentry/sentry-javascript/issues/6880\nconst chromeStackParserFn: StackLineParserFn = line => {\n const parts = chromeRegex.exec(line);\n\n if (parts) {\n const isEval = parts[2] && parts[2].indexOf('eval') === 0; // start of line\n\n if (isEval) {\n const subMatch = chromeEvalRegex.exec(parts[2]);\n\n if (subMatch) {\n // throw out eval line/column and use top-most line/column number\n parts[2] = subMatch[1]; // url\n parts[3] = subMatch[2]; // line\n parts[4] = subMatch[3]; // column\n }\n }\n\n // Kamil: One more hack won't hurt us right? Understanding and adding more rules on top of these regexps right now\n // would be way too time consuming. (TODO: Rewrite whole RegExp to be more readable)\n const [func, filename] = extractSafariExtensionDetails(parts[1] || UNKNOWN_FUNCTION, parts[2]);\n\n return createFrame(filename, func, parts[3] ? +parts[3] : undefined, parts[4] ? +parts[4] : undefined);\n }\n\n return;\n};\n\nexport const chromeStackLineParser: StackLineParser = [CHROME_PRIORITY, chromeStackParserFn];\n\n// gecko regex: `(?:bundle|\\d+\\.js)`: `bundle` is for react native, `\\d+\\.js` also but specifically for ram bundles because it\n// generates filenames without a prefix like `file://` the filenames in the stacktrace are just 42.js\n// We need this specific case for now because we want no other regex to match.\nconst geckoREgex =\n /^\\s*(.*?)(?:\\((.*?)\\))?(?:^|@)?((?:[-a-z]+)?:\\/.*?|\\[native code\\]|[^@]*(?:bundle|\\d+\\.js)|\\/[\\w\\-. /=]+)(?::(\\d+))?(?::(\\d+))?\\s*$/i;\nconst geckoEvalRegex = /(\\S+) line (\\d+)(?: > eval line \\d+)* > eval/i;\n\nconst gecko: StackLineParserFn = line => {\n const parts = geckoREgex.exec(line);\n\n if (parts) {\n const isEval = parts[3] && parts[3].indexOf(' > eval') > -1;\n if (isEval) {\n const subMatch = geckoEvalRegex.exec(parts[3]);\n\n if (subMatch) {\n // throw out eval line/column and use top-most line number\n parts[1] = parts[1] || 'eval';\n parts[3] = subMatch[1];\n parts[4] = subMatch[2];\n parts[5] = ''; // no column when eval\n }\n }\n\n let filename = parts[3];\n let func = parts[1] || UNKNOWN_FUNCTION;\n [func, filename] = extractSafariExtensionDetails(func, filename);\n\n return createFrame(filename, func, parts[4] ? +parts[4] : undefined, parts[5] ? +parts[5] : undefined);\n }\n\n return;\n};\n\nexport const geckoStackLineParser: StackLineParser = [GECKO_PRIORITY, gecko];\n\nconst winjsRegex = /^\\s*at (?:((?:\\[object object\\])?.+) )?\\(?((?:[-a-z]+):.*?):(\\d+)(?::(\\d+))?\\)?\\s*$/i;\n\nconst winjs: StackLineParserFn = line => {\n const parts = winjsRegex.exec(line);\n\n return parts\n ? createFrame(parts[2], parts[1] || UNKNOWN_FUNCTION, +parts[3], parts[4] ? +parts[4] : undefined)\n : undefined;\n};\n\nexport const winjsStackLineParser: StackLineParser = [WINJS_PRIORITY, winjs];\n\nconst opera10Regex = / line (\\d+).*script (?:in )?(\\S+)(?:: in function (\\S+))?$/i;\n\nconst opera10: StackLineParserFn = line => {\n const parts = opera10Regex.exec(line);\n return parts ? createFrame(parts[2], parts[3] || UNKNOWN_FUNCTION, +parts[1]) : undefined;\n};\n\nexport const opera10StackLineParser: StackLineParser = [OPERA10_PRIORITY, opera10];\n\nconst opera11Regex =\n / line (\\d+), column (\\d+)\\s*(?:in (?:]+)>|([^)]+))\\(.*\\))? in (.*):\\s*$/i;\n\nconst opera11: StackLineParserFn = line => {\n const parts = opera11Regex.exec(line);\n return parts ? createFrame(parts[5], parts[3] || parts[4] || UNKNOWN_FUNCTION, +parts[1], +parts[2]) : undefined;\n};\n\nexport const opera11StackLineParser: StackLineParser = [OPERA11_PRIORITY, opera11];\n\nexport const defaultStackLineParsers = [chromeStackLineParser, geckoStackLineParser, winjsStackLineParser];\n\nexport const defaultStackParser = createStackParser(...defaultStackLineParsers);\n\n/**\n * Safari web extensions, starting version unknown, can produce \"frames-only\" stacktraces.\n * What it means, is that instead of format like:\n *\n * Error: wat\n * at function@url:row:col\n * at function@url:row:col\n * at function@url:row:col\n *\n * it produces something like:\n *\n * function@url:row:col\n * function@url:row:col\n * function@url:row:col\n *\n * Because of that, it won't be captured by `chrome` RegExp and will fall into `Gecko` branch.\n * This function is extracted so that we can use it in both places without duplicating the logic.\n * Unfortunately \"just\" changing RegExp is too complicated now and making it pass all tests\n * and fix this case seems like an impossible, or at least way too time-consuming task.\n */\nconst extractSafariExtensionDetails = (func: string, filename: string): [string, string] => {\n const isSafariExtension = func.indexOf('safari-extension') !== -1;\n const isSafariWebExtension = func.indexOf('safari-web-extension') !== -1;\n\n return isSafariExtension || isSafariWebExtension\n ? [\n func.indexOf('@') !== -1 ? func.split('@')[0] : UNKNOWN_FUNCTION,\n isSafariExtension ? `safari-extension:${filename}` : `safari-web-extension:${filename}`,\n ]\n : [func, filename];\n};\n", "/* eslint-disable max-lines */\nimport { addBreadcrumb, convertIntegrationFnToClass, defineIntegration, getClient } from '@sentry/core';\nimport type {\n Client,\n Event as SentryEvent,\n HandlerDataConsole,\n HandlerDataDom,\n HandlerDataFetch,\n HandlerDataHistory,\n HandlerDataXhr,\n Integration,\n IntegrationClass,\n IntegrationFn,\n} from '@sentry/types';\nimport type {\n Breadcrumb,\n FetchBreadcrumbData,\n FetchBreadcrumbHint,\n XhrBreadcrumbData,\n XhrBreadcrumbHint,\n} from '@sentry/types/build/types/breadcrumb';\nimport {\n SENTRY_XHR_DATA_KEY,\n addClickKeypressInstrumentationHandler,\n addConsoleInstrumentationHandler,\n addFetchInstrumentationHandler,\n addHistoryInstrumentationHandler,\n addXhrInstrumentationHandler,\n getComponentName,\n getEventDescription,\n htmlTreeAsString,\n logger,\n parseUrl,\n safeJoin,\n severityLevelFromString,\n} from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../debug-build';\nimport { WINDOW } from '../helpers';\n\ninterface BreadcrumbsOptions {\n console: boolean;\n dom:\n | boolean\n | {\n serializeAttribute?: string | string[];\n maxStringLength?: number;\n };\n fetch: boolean;\n history: boolean;\n sentry: boolean;\n xhr: boolean;\n}\n\n/** maxStringLength gets capped to prevent 100 breadcrumbs exceeding 1MB event payload size */\nconst MAX_ALLOWED_STRING_LENGTH = 1024;\n\nconst INTEGRATION_NAME = 'Breadcrumbs';\n\nconst _breadcrumbsIntegration = ((options: Partial = {}) => {\n const _options = {\n console: true,\n dom: true,\n fetch: true,\n history: true,\n sentry: true,\n xhr: true,\n ...options,\n };\n\n return {\n name: INTEGRATION_NAME,\n // TODO v8: Remove this\n setupOnce() {}, // eslint-disable-line @typescript-eslint/no-empty-function\n setup(client) {\n if (_options.console) {\n addConsoleInstrumentationHandler(_getConsoleBreadcrumbHandler(client));\n }\n if (_options.dom) {\n addClickKeypressInstrumentationHandler(_getDomBreadcrumbHandler(client, _options.dom));\n }\n if (_options.xhr) {\n addXhrInstrumentationHandler(_getXhrBreadcrumbHandler(client));\n }\n if (_options.fetch) {\n addFetchInstrumentationHandler(_getFetchBreadcrumbHandler(client));\n }\n if (_options.history) {\n addHistoryInstrumentationHandler(_getHistoryBreadcrumbHandler(client));\n }\n if (_options.sentry && client.on) {\n client.on('beforeSendEvent', _getSentryBreadcrumbHandler(client));\n }\n },\n };\n}) satisfies IntegrationFn;\n\nexport const breadcrumbsIntegration = defineIntegration(_breadcrumbsIntegration);\n\n/**\n * Default Breadcrumbs instrumentations\n *\n * @deprecated Use `breadcrumbsIntegration()` instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport const Breadcrumbs = convertIntegrationFnToClass(INTEGRATION_NAME, breadcrumbsIntegration) as IntegrationClass<\n Integration & { setup: (client: Client) => void }\n> & {\n new (\n options?: Partial<{\n console: boolean;\n dom:\n | boolean\n | {\n serializeAttribute?: string | string[];\n maxStringLength?: number;\n };\n fetch: boolean;\n history: boolean;\n sentry: boolean;\n xhr: boolean;\n }>,\n ): Integration;\n};\n\n/**\n * Adds a breadcrumb for Sentry events or transactions if this option is enabled.\n */\nfunction _getSentryBreadcrumbHandler(client: Client): (event: SentryEvent) => void {\n return function addSentryBreadcrumb(event: SentryEvent): void {\n if (getClient() !== client) {\n return;\n }\n\n addBreadcrumb(\n {\n category: `sentry.${event.type === 'transaction' ? 'transaction' : 'event'}`,\n event_id: event.event_id,\n level: event.level,\n message: getEventDescription(event),\n },\n {\n event,\n },\n );\n };\n}\n\n/**\n * A HOC that creaes a function that creates breadcrumbs from DOM API calls.\n * This is a HOC so that we get access to dom options in the closure.\n */\nfunction _getDomBreadcrumbHandler(\n client: Client,\n dom: BreadcrumbsOptions['dom'],\n): (handlerData: HandlerDataDom) => void {\n return function _innerDomBreadcrumb(handlerData: HandlerDataDom): void {\n if (getClient() !== client) {\n return;\n }\n\n let target;\n let componentName;\n let keyAttrs = typeof dom === 'object' ? dom.serializeAttribute : undefined;\n\n let maxStringLength =\n typeof dom === 'object' && typeof dom.maxStringLength === 'number' ? dom.maxStringLength : undefined;\n if (maxStringLength && maxStringLength > MAX_ALLOWED_STRING_LENGTH) {\n DEBUG_BUILD &&\n logger.warn(\n `\\`dom.maxStringLength\\` cannot exceed ${MAX_ALLOWED_STRING_LENGTH}, but a value of ${maxStringLength} was configured. Sentry will use ${MAX_ALLOWED_STRING_LENGTH} instead.`,\n );\n maxStringLength = MAX_ALLOWED_STRING_LENGTH;\n }\n\n if (typeof keyAttrs === 'string') {\n keyAttrs = [keyAttrs];\n }\n\n // Accessing event.target can throw (see getsentry/raven-js#838, #768)\n try {\n const event = handlerData.event as Event | Node;\n const element = _isEvent(event) ? event.target : event;\n\n target = htmlTreeAsString(element, { keyAttrs, maxStringLength });\n componentName = getComponentName(element);\n } catch (e) {\n target = '';\n }\n\n if (target.length === 0) {\n return;\n }\n\n const breadcrumb: Breadcrumb = {\n category: `ui.${handlerData.name}`,\n message: target,\n };\n\n if (componentName) {\n breadcrumb.data = { 'ui.component_name': componentName };\n }\n\n addBreadcrumb(breadcrumb, {\n event: handlerData.event,\n name: handlerData.name,\n global: handlerData.global,\n });\n };\n}\n\n/**\n * Creates breadcrumbs from console API calls\n */\nfunction _getConsoleBreadcrumbHandler(client: Client): (handlerData: HandlerDataConsole) => void {\n return function _consoleBreadcrumb(handlerData: HandlerDataConsole): void {\n if (getClient() !== client) {\n return;\n }\n\n const breadcrumb = {\n category: 'console',\n data: {\n arguments: handlerData.args,\n logger: 'console',\n },\n level: severityLevelFromString(handlerData.level),\n message: safeJoin(handlerData.args, ' '),\n };\n\n if (handlerData.level === 'assert') {\n if (handlerData.args[0] === false) {\n breadcrumb.message = `Assertion failed: ${safeJoin(handlerData.args.slice(1), ' ') || 'console.assert'}`;\n breadcrumb.data.arguments = handlerData.args.slice(1);\n } else {\n // Don't capture a breadcrumb for passed assertions\n return;\n }\n }\n\n addBreadcrumb(breadcrumb, {\n input: handlerData.args,\n level: handlerData.level,\n });\n };\n}\n\n/**\n * Creates breadcrumbs from XHR API calls\n */\nfunction _getXhrBreadcrumbHandler(client: Client): (handlerData: HandlerDataXhr) => void {\n return function _xhrBreadcrumb(handlerData: HandlerDataXhr): void {\n if (getClient() !== client) {\n return;\n }\n\n const { startTimestamp, endTimestamp } = handlerData;\n\n const sentryXhrData = handlerData.xhr[SENTRY_XHR_DATA_KEY];\n\n // We only capture complete, non-sentry requests\n if (!startTimestamp || !endTimestamp || !sentryXhrData) {\n return;\n }\n\n const { method, url, status_code, body } = sentryXhrData;\n\n const data: XhrBreadcrumbData = {\n method,\n url,\n status_code,\n };\n\n const hint: XhrBreadcrumbHint = {\n xhr: handlerData.xhr,\n input: body,\n startTimestamp,\n endTimestamp,\n };\n\n addBreadcrumb(\n {\n category: 'xhr',\n data,\n type: 'http',\n },\n hint,\n );\n };\n}\n\n/**\n * Creates breadcrumbs from fetch API calls\n */\nfunction _getFetchBreadcrumbHandler(client: Client): (handlerData: HandlerDataFetch) => void {\n return function _fetchBreadcrumb(handlerData: HandlerDataFetch): void {\n if (getClient() !== client) {\n return;\n }\n\n const { startTimestamp, endTimestamp } = handlerData;\n\n // We only capture complete fetch requests\n if (!endTimestamp) {\n return;\n }\n\n if (handlerData.fetchData.url.match(/sentry_key/) && handlerData.fetchData.method === 'POST') {\n // We will not create breadcrumbs for fetch requests that contain `sentry_key` (internal sentry requests)\n return;\n }\n\n if (handlerData.error) {\n const data: FetchBreadcrumbData = handlerData.fetchData;\n const hint: FetchBreadcrumbHint = {\n data: handlerData.error,\n input: handlerData.args,\n startTimestamp,\n endTimestamp,\n };\n\n addBreadcrumb(\n {\n category: 'fetch',\n data,\n level: 'error',\n type: 'http',\n },\n hint,\n );\n } else {\n const response = handlerData.response as Response | undefined;\n const data: FetchBreadcrumbData = {\n ...handlerData.fetchData,\n status_code: response && response.status,\n };\n const hint: FetchBreadcrumbHint = {\n input: handlerData.args,\n response,\n startTimestamp,\n endTimestamp,\n };\n addBreadcrumb(\n {\n category: 'fetch',\n data,\n type: 'http',\n },\n hint,\n );\n }\n };\n}\n\n/**\n * Creates breadcrumbs from history API calls\n */\nfunction _getHistoryBreadcrumbHandler(client: Client): (handlerData: HandlerDataHistory) => void {\n return function _historyBreadcrumb(handlerData: HandlerDataHistory): void {\n if (getClient() !== client) {\n return;\n }\n\n let from: string | undefined = handlerData.from;\n let to: string | undefined = handlerData.to;\n const parsedLoc = parseUrl(WINDOW.location.href);\n let parsedFrom = from ? parseUrl(from) : undefined;\n const parsedTo = parseUrl(to);\n\n // Initial pushState doesn't provide `from` information\n if (!parsedFrom || !parsedFrom.path) {\n parsedFrom = parsedLoc;\n }\n\n // Use only the path component of the URL if the URL matches the current\n // document (almost all the time when using pushState)\n if (parsedLoc.protocol === parsedTo.protocol && parsedLoc.host === parsedTo.host) {\n to = parsedTo.relative;\n }\n if (parsedLoc.protocol === parsedFrom.protocol && parsedLoc.host === parsedFrom.host) {\n from = parsedFrom.relative;\n }\n\n addBreadcrumb({\n category: 'navigation',\n data: {\n from,\n to,\n },\n });\n };\n}\n\nfunction _isEvent(event: unknown): event is Event {\n return !!event && !!(event as Record).target;\n}\n", "import { convertIntegrationFnToClass, defineIntegration } from '@sentry/core';\nimport type { Event, Exception, Integration, IntegrationClass, IntegrationFn, StackFrame } from '@sentry/types';\nimport { logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../debug-build';\n\nconst INTEGRATION_NAME = 'Dedupe';\n\nconst _dedupeIntegration = (() => {\n let previousEvent: Event | undefined;\n\n return {\n name: INTEGRATION_NAME,\n // TODO v8: Remove this\n setupOnce() {}, // eslint-disable-line @typescript-eslint/no-empty-function\n processEvent(currentEvent) {\n // We want to ignore any non-error type events, e.g. transactions or replays\n // These should never be deduped, and also not be compared against as _previousEvent.\n if (currentEvent.type) {\n return currentEvent;\n }\n\n // Juuust in case something goes wrong\n try {\n if (_shouldDropEvent(currentEvent, previousEvent)) {\n DEBUG_BUILD && logger.warn('Event dropped due to being a duplicate of previously captured event.');\n return null;\n }\n } catch (_oO) {} // eslint-disable-line no-empty\n\n return (previousEvent = currentEvent);\n },\n };\n}) satisfies IntegrationFn;\n\nexport const dedupeIntegration = defineIntegration(_dedupeIntegration);\n\n/**\n * Deduplication filter.\n * @deprecated Use `dedupeIntegration()` instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport const Dedupe = convertIntegrationFnToClass(INTEGRATION_NAME, dedupeIntegration) as IntegrationClass<\n Integration & { processEvent: (event: Event) => Event }\n>;\n\nfunction _shouldDropEvent(currentEvent: Event, previousEvent?: Event): boolean {\n if (!previousEvent) {\n return false;\n }\n\n if (_isSameMessageEvent(currentEvent, previousEvent)) {\n return true;\n }\n\n if (_isSameExceptionEvent(currentEvent, previousEvent)) {\n return true;\n }\n\n return false;\n}\n\nfunction _isSameMessageEvent(currentEvent: Event, previousEvent: Event): boolean {\n const currentMessage = currentEvent.message;\n const previousMessage = previousEvent.message;\n\n // If neither event has a message property, they were both exceptions, so bail out\n if (!currentMessage && !previousMessage) {\n return false;\n }\n\n // If only one event has a stacktrace, but not the other one, they are not the same\n if ((currentMessage && !previousMessage) || (!currentMessage && previousMessage)) {\n return false;\n }\n\n if (currentMessage !== previousMessage) {\n return false;\n }\n\n if (!_isSameFingerprint(currentEvent, previousEvent)) {\n return false;\n }\n\n if (!_isSameStacktrace(currentEvent, previousEvent)) {\n return false;\n }\n\n return true;\n}\n\nfunction _isSameExceptionEvent(currentEvent: Event, previousEvent: Event): boolean {\n const previousException = _getExceptionFromEvent(previousEvent);\n const currentException = _getExceptionFromEvent(currentEvent);\n\n if (!previousException || !currentException) {\n return false;\n }\n\n if (previousException.type !== currentException.type || previousException.value !== currentException.value) {\n return false;\n }\n\n if (!_isSameFingerprint(currentEvent, previousEvent)) {\n return false;\n }\n\n if (!_isSameStacktrace(currentEvent, previousEvent)) {\n return false;\n }\n\n return true;\n}\n\nfunction _isSameStacktrace(currentEvent: Event, previousEvent: Event): boolean {\n let currentFrames = _getFramesFromEvent(currentEvent);\n let previousFrames = _getFramesFromEvent(previousEvent);\n\n // If neither event has a stacktrace, they are assumed to be the same\n if (!currentFrames && !previousFrames) {\n return true;\n }\n\n // If only one event has a stacktrace, but not the other one, they are not the same\n if ((currentFrames && !previousFrames) || (!currentFrames && previousFrames)) {\n return false;\n }\n\n currentFrames = currentFrames as StackFrame[];\n previousFrames = previousFrames as StackFrame[];\n\n // If number of frames differ, they are not the same\n if (previousFrames.length !== currentFrames.length) {\n return false;\n }\n\n // Otherwise, compare the two\n for (let i = 0; i < previousFrames.length; i++) {\n const frameA = previousFrames[i];\n const frameB = currentFrames[i];\n\n if (\n frameA.filename !== frameB.filename ||\n frameA.lineno !== frameB.lineno ||\n frameA.colno !== frameB.colno ||\n frameA.function !== frameB.function\n ) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction _isSameFingerprint(currentEvent: Event, previousEvent: Event): boolean {\n let currentFingerprint = currentEvent.fingerprint;\n let previousFingerprint = previousEvent.fingerprint;\n\n // If neither event has a fingerprint, they are assumed to be the same\n if (!currentFingerprint && !previousFingerprint) {\n return true;\n }\n\n // If only one event has a fingerprint, but not the other one, they are not the same\n if ((currentFingerprint && !previousFingerprint) || (!currentFingerprint && previousFingerprint)) {\n return false;\n }\n\n currentFingerprint = currentFingerprint as string[];\n previousFingerprint = previousFingerprint as string[];\n\n // Otherwise, compare the two\n try {\n return !!(currentFingerprint.join('') === previousFingerprint.join(''));\n } catch (_oO) {\n return false;\n }\n}\n\nfunction _getExceptionFromEvent(event: Event): Exception | undefined {\n return event.exception && event.exception.values && event.exception.values[0];\n}\n\nfunction _getFramesFromEvent(event: Event): StackFrame[] | undefined {\n const exception = event.exception;\n\n if (exception) {\n try {\n // @ts-expect-error Object could be undefined\n return exception.values[0].stacktrace.frames;\n } catch (_oO) {\n return undefined;\n }\n }\n return undefined;\n}\n", "/* eslint-disable @typescript-eslint/no-unsafe-member-access */\nimport { captureEvent, convertIntegrationFnToClass, defineIntegration, getClient } from '@sentry/core';\nimport type {\n Client,\n Event,\n Integration,\n IntegrationClass,\n IntegrationFn,\n Primitive,\n StackParser,\n} from '@sentry/types';\nimport {\n addGlobalErrorInstrumentationHandler,\n addGlobalUnhandledRejectionInstrumentationHandler,\n getLocationHref,\n isErrorEvent,\n isPrimitive,\n isString,\n logger,\n} from '@sentry/utils';\n\nimport type { BrowserClient } from '../client';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { eventFromUnknownInput } from '../eventbuilder';\nimport { shouldIgnoreOnError } from '../helpers';\n\ntype GlobalHandlersIntegrationsOptionKeys = 'onerror' | 'onunhandledrejection';\n\ntype GlobalHandlersIntegrations = Record;\n\nconst INTEGRATION_NAME = 'GlobalHandlers';\n\nconst _globalHandlersIntegration = ((options: Partial = {}) => {\n const _options = {\n onerror: true,\n onunhandledrejection: true,\n ...options,\n };\n\n return {\n name: INTEGRATION_NAME,\n setupOnce() {\n Error.stackTraceLimit = 50;\n },\n setup(client) {\n if (_options.onerror) {\n _installGlobalOnErrorHandler(client);\n globalHandlerLog('onerror');\n }\n if (_options.onunhandledrejection) {\n _installGlobalOnUnhandledRejectionHandler(client);\n globalHandlerLog('onunhandledrejection');\n }\n },\n };\n}) satisfies IntegrationFn;\n\nexport const globalHandlersIntegration = defineIntegration(_globalHandlersIntegration);\n\n/**\n * Global handlers.\n * @deprecated Use `globalHandlersIntegration()` instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport const GlobalHandlers = convertIntegrationFnToClass(\n INTEGRATION_NAME,\n globalHandlersIntegration,\n) as IntegrationClass void }> & {\n new (options?: Partial): Integration;\n};\n\nfunction _installGlobalOnErrorHandler(client: Client): void {\n addGlobalErrorInstrumentationHandler(data => {\n const { stackParser, attachStacktrace } = getOptions();\n\n if (getClient() !== client || shouldIgnoreOnError()) {\n return;\n }\n\n const { msg, url, line, column, error } = data;\n\n const event =\n error === undefined && isString(msg)\n ? _eventFromIncompleteOnError(msg, url, line, column)\n : _enhanceEventWithInitialFrame(\n eventFromUnknownInput(stackParser, error || msg, undefined, attachStacktrace, false),\n url,\n line,\n column,\n );\n\n event.level = 'error';\n\n captureEvent(event, {\n originalException: error,\n mechanism: {\n handled: false,\n type: 'onerror',\n },\n });\n });\n}\n\nfunction _installGlobalOnUnhandledRejectionHandler(client: Client): void {\n addGlobalUnhandledRejectionInstrumentationHandler(e => {\n const { stackParser, attachStacktrace } = getOptions();\n\n if (getClient() !== client || shouldIgnoreOnError()) {\n return;\n }\n\n const error = _getUnhandledRejectionError(e as unknown);\n\n const event = isPrimitive(error)\n ? _eventFromRejectionWithPrimitive(error)\n : eventFromUnknownInput(stackParser, error, undefined, attachStacktrace, true);\n\n event.level = 'error';\n\n captureEvent(event, {\n originalException: error,\n mechanism: {\n handled: false,\n type: 'onunhandledrejection',\n },\n });\n });\n}\n\nfunction _getUnhandledRejectionError(error: unknown): unknown {\n if (isPrimitive(error)) {\n return error;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const e = error as any;\n\n // dig the object of the rejection out of known event types\n try {\n // PromiseRejectionEvents store the object of the rejection under 'reason'\n // see https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent\n if ('reason' in e) {\n return e.reason;\n }\n\n // something, somewhere, (likely a browser extension) effectively casts PromiseRejectionEvents\n // to CustomEvents, moving the `promise` and `reason` attributes of the PRE into\n // the CustomEvent's `detail` attribute, since they're not part of CustomEvent's spec\n // see https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent and\n // https://github.com/getsentry/sentry-javascript/issues/2380\n else if ('detail' in e && 'reason' in e.detail) {\n return e.detail.reason;\n }\n } catch {} // eslint-disable-line no-empty\n\n return error;\n}\n\n/**\n * Create an event from a promise rejection where the `reason` is a primitive.\n *\n * @param reason: The `reason` property of the promise rejection\n * @returns An Event object with an appropriate `exception` value\n */\nfunction _eventFromRejectionWithPrimitive(reason: Primitive): Event {\n return {\n exception: {\n values: [\n {\n type: 'UnhandledRejection',\n // String() is needed because the Primitive type includes symbols (which can't be automatically stringified)\n value: `Non-Error promise rejection captured with value: ${String(reason)}`,\n },\n ],\n },\n };\n}\n\n/**\n * This function creates a stack from an old, error-less onerror handler.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction _eventFromIncompleteOnError(msg: any, url: any, line: any, column: any): Event {\n const ERROR_TYPES_RE =\n /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;\n\n // If 'message' is ErrorEvent, get real message from inside\n let message = isErrorEvent(msg) ? msg.message : msg;\n let name = 'Error';\n\n const groups = message.match(ERROR_TYPES_RE);\n if (groups) {\n name = groups[1];\n message = groups[2];\n }\n\n const event = {\n exception: {\n values: [\n {\n type: name,\n value: message,\n },\n ],\n },\n };\n\n return _enhanceEventWithInitialFrame(event, url, line, column);\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction _enhanceEventWithInitialFrame(event: Event, url: any, line: any, column: any): Event {\n // event.exception\n const e = (event.exception = event.exception || {});\n // event.exception.values\n const ev = (e.values = e.values || []);\n // event.exception.values[0]\n const ev0 = (ev[0] = ev[0] || {});\n // event.exception.values[0].stacktrace\n const ev0s = (ev0.stacktrace = ev0.stacktrace || {});\n // event.exception.values[0].stacktrace.frames\n const ev0sf = (ev0s.frames = ev0s.frames || []);\n\n const colno = isNaN(parseInt(column, 10)) ? undefined : column;\n const lineno = isNaN(parseInt(line, 10)) ? undefined : line;\n const filename = isString(url) && url.length > 0 ? url : getLocationHref();\n\n // event.exception.values[0].stacktrace.frames\n if (ev0sf.length === 0) {\n ev0sf.push({\n colno,\n filename,\n function: '?',\n in_app: true,\n lineno,\n });\n }\n\n return event;\n}\n\nfunction globalHandlerLog(type: string): void {\n DEBUG_BUILD && logger.log(`Global Handler attached: ${type}`);\n}\n\nfunction getOptions(): { stackParser: StackParser; attachStacktrace?: boolean } {\n const client = getClient();\n const options = (client && client.getOptions()) || {\n stackParser: () => [],\n attachStacktrace: false,\n };\n return options;\n}\n", "import { convertIntegrationFnToClass, defineIntegration } from '@sentry/core';\nimport type { Event, Integration, IntegrationClass, IntegrationFn } from '@sentry/types';\n\nimport { WINDOW } from '../helpers';\n\nconst INTEGRATION_NAME = 'HttpContext';\n\nconst _httpContextIntegration = (() => {\n return {\n name: INTEGRATION_NAME,\n // TODO v8: Remove this\n setupOnce() {}, // eslint-disable-line @typescript-eslint/no-empty-function\n preprocessEvent(event) {\n // if none of the information we want exists, don't bother\n if (!WINDOW.navigator && !WINDOW.location && !WINDOW.document) {\n return;\n }\n\n // grab as much info as exists and add it to the event\n const url = (event.request && event.request.url) || (WINDOW.location && WINDOW.location.href);\n const { referrer } = WINDOW.document || {};\n const { userAgent } = WINDOW.navigator || {};\n\n const headers = {\n ...(event.request && event.request.headers),\n ...(referrer && { Referer: referrer }),\n ...(userAgent && { 'User-Agent': userAgent }),\n };\n const request = { ...event.request, ...(url && { url }), headers };\n\n event.request = request;\n },\n };\n}) satisfies IntegrationFn;\n\nexport const httpContextIntegration = defineIntegration(_httpContextIntegration);\n\n/**\n * HttpContext integration collects information about HTTP request headers.\n * @deprecated Use `httpContextIntegration()` instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport const HttpContext = convertIntegrationFnToClass(INTEGRATION_NAME, httpContextIntegration) as IntegrationClass<\n Integration & { preprocessEvent: (event: Event) => void }\n>;\n", "import { convertIntegrationFnToClass, defineIntegration } from '@sentry/core';\nimport type { Client, Event, EventHint, Integration, IntegrationClass, IntegrationFn } from '@sentry/types';\nimport { applyAggregateErrorsToEvent } from '@sentry/utils';\nimport { exceptionFromError } from '../eventbuilder';\n\ninterface LinkedErrorsOptions {\n key?: string;\n limit?: number;\n}\n\nconst DEFAULT_KEY = 'cause';\nconst DEFAULT_LIMIT = 5;\n\nconst INTEGRATION_NAME = 'LinkedErrors';\n\nconst _linkedErrorsIntegration = ((options: LinkedErrorsOptions = {}) => {\n const limit = options.limit || DEFAULT_LIMIT;\n const key = options.key || DEFAULT_KEY;\n\n return {\n name: INTEGRATION_NAME,\n // TODO v8: Remove this\n setupOnce() {}, // eslint-disable-line @typescript-eslint/no-empty-function\n preprocessEvent(event, hint, client) {\n const options = client.getOptions();\n\n applyAggregateErrorsToEvent(\n // This differs from the LinkedErrors integration in core by using a different exceptionFromError function\n exceptionFromError,\n options.stackParser,\n options.maxValueLength,\n key,\n limit,\n event,\n hint,\n );\n },\n };\n}) satisfies IntegrationFn;\n\nexport const linkedErrorsIntegration = defineIntegration(_linkedErrorsIntegration);\n\n/**\n * Aggregrate linked errors in an event.\n * @deprecated Use `linkedErrorsIntegration()` instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport const LinkedErrors = convertIntegrationFnToClass(INTEGRATION_NAME, linkedErrorsIntegration) as IntegrationClass<\n Integration & { preprocessEvent: (event: Event, hint: EventHint, client: Client) => void }\n> & { new (options?: { key?: string; limit?: number }): Integration };\n", "import { convertIntegrationFnToClass, defineIntegration } from '@sentry/core';\nimport type { Integration, IntegrationClass, IntegrationFn, WrappedFunction } from '@sentry/types';\nimport { fill, getFunctionName, getOriginalFunction } from '@sentry/utils';\n\nimport { WINDOW, wrap } from '../helpers';\n\nconst DEFAULT_EVENT_TARGET = [\n 'EventTarget',\n 'Window',\n 'Node',\n 'ApplicationCache',\n 'AudioTrackList',\n 'BroadcastChannel',\n 'ChannelMergerNode',\n 'CryptoOperation',\n 'EventSource',\n 'FileReader',\n 'HTMLUnknownElement',\n 'IDBDatabase',\n 'IDBRequest',\n 'IDBTransaction',\n 'KeyOperation',\n 'MediaController',\n 'MessagePort',\n 'ModalWindow',\n 'Notification',\n 'SVGElementInstance',\n 'Screen',\n 'SharedWorker',\n 'TextTrack',\n 'TextTrackCue',\n 'TextTrackList',\n 'WebSocket',\n 'WebSocketWorker',\n 'Worker',\n 'XMLHttpRequest',\n 'XMLHttpRequestEventTarget',\n 'XMLHttpRequestUpload',\n];\n\nconst INTEGRATION_NAME = 'TryCatch';\n\ntype XMLHttpRequestProp = 'onload' | 'onerror' | 'onprogress' | 'onreadystatechange';\n\ninterface TryCatchOptions {\n setTimeout: boolean;\n setInterval: boolean;\n requestAnimationFrame: boolean;\n XMLHttpRequest: boolean;\n eventTarget: boolean | string[];\n}\n\nconst _browserApiErrorsIntegration = ((options: Partial = {}) => {\n const _options = {\n XMLHttpRequest: true,\n eventTarget: true,\n requestAnimationFrame: true,\n setInterval: true,\n setTimeout: true,\n ...options,\n };\n\n return {\n name: INTEGRATION_NAME,\n // TODO: This currently only works for the first client this is setup\n // We may want to adjust this to check for client etc.\n setupOnce() {\n if (_options.setTimeout) {\n fill(WINDOW, 'setTimeout', _wrapTimeFunction);\n }\n\n if (_options.setInterval) {\n fill(WINDOW, 'setInterval', _wrapTimeFunction);\n }\n\n if (_options.requestAnimationFrame) {\n fill(WINDOW, 'requestAnimationFrame', _wrapRAF);\n }\n\n if (_options.XMLHttpRequest && 'XMLHttpRequest' in WINDOW) {\n fill(XMLHttpRequest.prototype, 'send', _wrapXHR);\n }\n\n const eventTargetOption = _options.eventTarget;\n if (eventTargetOption) {\n const eventTarget = Array.isArray(eventTargetOption) ? eventTargetOption : DEFAULT_EVENT_TARGET;\n eventTarget.forEach(_wrapEventTarget);\n }\n },\n };\n}) satisfies IntegrationFn;\n\nexport const browserApiErrorsIntegration = defineIntegration(_browserApiErrorsIntegration);\n\n/**\n * Wrap timer functions and event targets to catch errors and provide better meta data.\n * @deprecated Use `browserApiErrorsIntegration()` instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport const TryCatch = convertIntegrationFnToClass(\n INTEGRATION_NAME,\n browserApiErrorsIntegration,\n) as IntegrationClass & {\n new (options?: {\n setTimeout: boolean;\n setInterval: boolean;\n requestAnimationFrame: boolean;\n XMLHttpRequest: boolean;\n eventTarget: boolean | string[];\n }): Integration;\n};\n\nfunction _wrapTimeFunction(original: () => void): () => number {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return function (this: any, ...args: any[]): number {\n const originalCallback = args[0];\n args[0] = wrap(originalCallback, {\n mechanism: {\n data: { function: getFunctionName(original) },\n handled: false,\n type: 'instrument',\n },\n });\n return original.apply(this, args);\n };\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction _wrapRAF(original: any): (callback: () => void) => any {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return function (this: any, callback: () => void): () => void {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return original.apply(this, [\n wrap(callback, {\n mechanism: {\n data: {\n function: 'requestAnimationFrame',\n handler: getFunctionName(original),\n },\n handled: false,\n type: 'instrument',\n },\n }),\n ]);\n };\n}\n\nfunction _wrapXHR(originalSend: () => void): () => void {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return function (this: XMLHttpRequest, ...args: any[]): void {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const xhr = this;\n const xmlHttpRequestProps: XMLHttpRequestProp[] = ['onload', 'onerror', 'onprogress', 'onreadystatechange'];\n\n xmlHttpRequestProps.forEach(prop => {\n if (prop in xhr && typeof xhr[prop] === 'function') {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n fill(xhr, prop, function (original: WrappedFunction): () => any {\n const wrapOptions = {\n mechanism: {\n data: {\n function: prop,\n handler: getFunctionName(original),\n },\n handled: false,\n type: 'instrument',\n },\n };\n\n // If Instrument integration has been called before TryCatch, get the name of original function\n const originalFunction = getOriginalFunction(original);\n if (originalFunction) {\n wrapOptions.mechanism.data.handler = getFunctionName(originalFunction);\n }\n\n // Otherwise wrap directly\n return wrap(original, wrapOptions);\n });\n }\n });\n\n return originalSend.apply(this, args);\n };\n}\n\nfunction _wrapEventTarget(target: string): void {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const globalObject = WINDOW as { [key: string]: any };\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n const proto = globalObject[target] && globalObject[target].prototype;\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, no-prototype-builtins\n if (!proto || !proto.hasOwnProperty || !proto.hasOwnProperty('addEventListener')) {\n return;\n }\n\n fill(proto, 'addEventListener', function (original: VoidFunction,): (\n eventName: string,\n fn: EventListenerObject,\n options?: boolean | AddEventListenerOptions,\n ) => void {\n return function (\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this: any,\n eventName: string,\n fn: EventListenerObject,\n options?: boolean | AddEventListenerOptions,\n ): (eventName: string, fn: EventListenerObject, capture?: boolean, secure?: boolean) => void {\n try {\n if (typeof fn.handleEvent === 'function') {\n // ESlint disable explanation:\n // First, it is generally safe to call `wrap` with an unbound function. Furthermore, using `.bind()` would\n // introduce a bug here, because bind returns a new function that doesn't have our\n // flags(like __sentry_original__) attached. `wrap` checks for those flags to avoid unnecessary wrapping.\n // Without those flags, every call to addEventListener wraps the function again, causing a memory leak.\n // eslint-disable-next-line @typescript-eslint/unbound-method\n fn.handleEvent = wrap(fn.handleEvent, {\n mechanism: {\n data: {\n function: 'handleEvent',\n handler: getFunctionName(fn),\n target,\n },\n handled: false,\n type: 'instrument',\n },\n });\n }\n } catch (err) {\n // can sometimes get 'Permission denied to access property \"handle Event'\n }\n\n return original.apply(this, [\n eventName,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n wrap(fn as any as WrappedFunction, {\n mechanism: {\n data: {\n function: 'addEventListener',\n handler: getFunctionName(fn),\n target,\n },\n handled: false,\n type: 'instrument',\n },\n }),\n options,\n ]);\n };\n });\n\n fill(\n proto,\n 'removeEventListener',\n function (\n originalRemoveEventListener: () => void,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ): (this: any, eventName: string, fn: EventListenerObject, options?: boolean | EventListenerOptions) => () => void {\n return function (\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this: any,\n eventName: string,\n fn: EventListenerObject,\n options?: boolean | EventListenerOptions,\n ): () => void {\n /**\n * There are 2 possible scenarios here:\n *\n * 1. Someone passes a callback, which was attached prior to Sentry initialization, or by using unmodified\n * method, eg. `document.addEventListener.call(el, name, handler). In this case, we treat this function\n * as a pass-through, and call original `removeEventListener` with it.\n *\n * 2. Someone passes a callback, which was attached after Sentry was initialized, which means that it was using\n * our wrapped version of `addEventListener`, which internally calls `wrap` helper.\n * This helper \"wraps\" whole callback inside a try/catch statement, and attached appropriate metadata to it,\n * in order for us to make a distinction between wrapped/non-wrapped functions possible.\n * If a function was wrapped, it has additional property of `__sentry_wrapped__`, holding the handler.\n *\n * When someone adds a handler prior to initialization, and then do it again, but after,\n * then we have to detach both of them. Otherwise, if we'd detach only wrapped one, it'd be impossible\n * to get rid of the initial handler and it'd stick there forever.\n */\n const wrappedEventHandler = fn as unknown as WrappedFunction;\n try {\n const originalEventHandler = wrappedEventHandler && wrappedEventHandler.__sentry_wrapped__;\n if (originalEventHandler) {\n originalRemoveEventListener.call(this, eventName, originalEventHandler, options);\n }\n } catch (e) {\n // ignore, accessing __sentry_wrapped__ will throw in some Selenium environments\n }\n return originalRemoveEventListener.call(this, eventName, wrappedEventHandler, options);\n };\n },\n );\n}\n", "import type { Hub } from '@sentry/core';\nimport { functionToStringIntegration, inboundFiltersIntegration } from '@sentry/core';\nimport {\n captureSession,\n getClient,\n getCurrentHub,\n getIntegrationsToSetup,\n getReportDialogEndpoint,\n initAndBind,\n startSession,\n} from '@sentry/core';\nimport type { Integration, Options, UserFeedback } from '@sentry/types';\nimport {\n addHistoryInstrumentationHandler,\n logger,\n stackParserFromStackParserOptions,\n supportsFetch,\n} from '@sentry/utils';\n\nimport type { BrowserClientOptions, BrowserOptions } from './client';\nimport { BrowserClient } from './client';\nimport { DEBUG_BUILD } from './debug-build';\nimport type { ReportDialogOptions } from './helpers';\nimport { WINDOW, wrap as internalWrap } from './helpers';\nimport { breadcrumbsIntegration } from './integrations/breadcrumbs';\nimport { dedupeIntegration } from './integrations/dedupe';\nimport { globalHandlersIntegration } from './integrations/globalhandlers';\nimport { httpContextIntegration } from './integrations/httpcontext';\nimport { linkedErrorsIntegration } from './integrations/linkederrors';\nimport { browserApiErrorsIntegration } from './integrations/trycatch';\nimport { defaultStackParser } from './stack-parsers';\nimport { makeFetchTransport, makeXHRTransport } from './transports';\n\n/** @deprecated Use `getDefaultIntegrations(options)` instead. */\nexport const defaultIntegrations = [\n inboundFiltersIntegration(),\n functionToStringIntegration(),\n browserApiErrorsIntegration(),\n breadcrumbsIntegration(),\n globalHandlersIntegration(),\n linkedErrorsIntegration(),\n dedupeIntegration(),\n httpContextIntegration(),\n];\n\n/** Get the default integrations for the browser SDK. */\nexport function getDefaultIntegrations(_options: Options): Integration[] {\n // We return a copy of the defaultIntegrations here to avoid mutating this\n return [\n // eslint-disable-next-line deprecation/deprecation\n ...defaultIntegrations,\n ];\n}\n\n/**\n * A magic string that build tooling can leverage in order to inject a release value into the SDK.\n */\ndeclare const __SENTRY_RELEASE__: string | undefined;\n\n/**\n * The Sentry Browser SDK Client.\n *\n * To use this SDK, call the {@link init} function as early as possible when\n * loading the web page. To set context information or send manual events, use\n * the provided methods.\n *\n * @example\n *\n * ```\n *\n * import { init } from '@sentry/browser';\n *\n * init({\n * dsn: '__DSN__',\n * // ...\n * });\n * ```\n *\n * @example\n * ```\n *\n * import { configureScope } from '@sentry/browser';\n * configureScope((scope: Scope) => {\n * scope.setExtra({ battery: 0.7 });\n * scope.setTag({ user_mode: 'admin' });\n * scope.setUser({ id: '4711' });\n * });\n * ```\n *\n * @example\n * ```\n *\n * import { addBreadcrumb } from '@sentry/browser';\n * addBreadcrumb({\n * message: 'My Breadcrumb',\n * // ...\n * });\n * ```\n *\n * @example\n *\n * ```\n *\n * import * as Sentry from '@sentry/browser';\n * Sentry.captureMessage('Hello, world!');\n * Sentry.captureException(new Error('Good bye'));\n * Sentry.captureEvent({\n * message: 'Manual',\n * stacktrace: [\n * // ...\n * ],\n * });\n * ```\n *\n * @see {@link BrowserOptions} for documentation on configuration options.\n */\nexport function init(options: BrowserOptions = {}): void {\n if (options.defaultIntegrations === undefined) {\n options.defaultIntegrations = getDefaultIntegrations(options);\n }\n if (options.release === undefined) {\n // This allows build tooling to find-and-replace __SENTRY_RELEASE__ to inject a release value\n if (typeof __SENTRY_RELEASE__ === 'string') {\n options.release = __SENTRY_RELEASE__;\n }\n\n // This supports the variable that sentry-webpack-plugin injects\n if (WINDOW.SENTRY_RELEASE && WINDOW.SENTRY_RELEASE.id) {\n options.release = WINDOW.SENTRY_RELEASE.id;\n }\n }\n if (options.autoSessionTracking === undefined) {\n options.autoSessionTracking = true;\n }\n if (options.sendClientReports === undefined) {\n options.sendClientReports = true;\n }\n\n const clientOptions: BrowserClientOptions = {\n ...options,\n stackParser: stackParserFromStackParserOptions(options.stackParser || defaultStackParser),\n integrations: getIntegrationsToSetup(options),\n transport: options.transport || (supportsFetch() ? makeFetchTransport : makeXHRTransport),\n };\n\n initAndBind(BrowserClient, clientOptions);\n\n if (options.autoSessionTracking) {\n startSessionTracking();\n }\n}\n\ntype NewReportDialogOptions = ReportDialogOptions & { eventId: string }; // eslint-disable-line\n\ninterface ShowReportDialogFunction {\n /**\n * Present the user with a report dialog.\n *\n * @param options Everything is optional, we try to fetch all info need from the global scope.\n */\n (options: NewReportDialogOptions): void;\n\n /**\n * Present the user with a report dialog.\n *\n * @param options Everything is optional, we try to fetch all info need from the global scope.\n *\n * @deprecated Please always pass an `options` argument with `eventId`. The `hub` argument will not be used in the next version of the SDK.\n */\n // eslint-disable-next-line deprecation/deprecation\n (options?: ReportDialogOptions, hub?: Hub): void;\n}\n\nexport const showReportDialog: ShowReportDialogFunction = (\n // eslint-disable-next-line deprecation/deprecation\n options: ReportDialogOptions = {},\n // eslint-disable-next-line deprecation/deprecation\n hub: Hub = getCurrentHub(),\n) => {\n // doesn't work without a document (React Native)\n if (!WINDOW.document) {\n DEBUG_BUILD && logger.error('Global document not defined in showReportDialog call');\n return;\n }\n\n // eslint-disable-next-line deprecation/deprecation\n const { client, scope } = hub.getStackTop();\n const dsn = options.dsn || (client && client.getDsn());\n if (!dsn) {\n DEBUG_BUILD && logger.error('DSN not configured for showReportDialog call');\n return;\n }\n\n if (scope) {\n options.user = {\n ...scope.getUser(),\n ...options.user,\n };\n }\n\n if (!options.eventId) {\n // eslint-disable-next-line deprecation/deprecation\n options.eventId = hub.lastEventId();\n }\n\n const script = WINDOW.document.createElement('script');\n script.async = true;\n script.crossOrigin = 'anonymous';\n script.src = getReportDialogEndpoint(dsn, options);\n\n if (options.onLoad) {\n script.onload = options.onLoad;\n }\n\n const { onClose } = options;\n if (onClose) {\n const reportDialogClosedMessageHandler = (event: MessageEvent): void => {\n if (event.data === '__sentry_reportdialog_closed__') {\n try {\n onClose();\n } finally {\n WINDOW.removeEventListener('message', reportDialogClosedMessageHandler);\n }\n }\n };\n WINDOW.addEventListener('message', reportDialogClosedMessageHandler);\n }\n\n const injectionPoint = WINDOW.document.head || WINDOW.document.body;\n if (injectionPoint) {\n injectionPoint.appendChild(script);\n } else {\n DEBUG_BUILD && logger.error('Not injecting report dialog. No injection point found in HTML');\n }\n};\n\n/**\n * This function is here to be API compatible with the loader.\n * @hidden\n */\nexport function forceLoad(): void {\n // Noop\n}\n\n/**\n * This function is here to be API compatible with the loader.\n * @hidden\n */\nexport function onLoad(callback: () => void): void {\n callback();\n}\n\n/**\n * Wrap code within a try/catch block so the SDK is able to capture errors.\n *\n * @deprecated This function will be removed in v8.\n * It is not part of Sentry's official API and it's easily replaceable by using a try/catch block\n * and calling Sentry.captureException.\n *\n * @param fn A function to wrap.\n *\n * @returns The result of wrapped function call.\n */\n// TODO(v8): Remove this function\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function wrap(fn: (...args: any) => any): any {\n return internalWrap(fn)();\n}\n\n/**\n * Enable automatic Session Tracking for the initial page load.\n */\nfunction startSessionTracking(): void {\n if (typeof WINDOW.document === 'undefined') {\n DEBUG_BUILD && logger.warn('Session tracking in non-browser environment with @sentry/browser is not supported.');\n return;\n }\n\n // The session duration for browser sessions does not track a meaningful\n // concept that can be used as a metric.\n // Automatically captured sessions are akin to page views, and thus we\n // discard their duration.\n startSession({ ignoreDuration: true });\n captureSession();\n\n // We want to create a session for every navigation as well\n addHistoryInstrumentationHandler(({ from, to }) => {\n // Don't create an additional session for the initial route or if the location did not change\n if (from !== undefined && from !== to) {\n startSession({ ignoreDuration: true });\n captureSession();\n }\n });\n}\n\n/**\n * Captures user feedback and sends it to Sentry.\n */\nexport function captureUserFeedback(feedback: UserFeedback): void {\n const client = getClient();\n if (client) {\n client.captureUserFeedback(feedback);\n }\n}\n", "import { GLOBAL_OBJ } from '@sentry/utils';\n\n// exporting a separate copy of `WINDOW` rather than exporting the one from `@sentry/browser`\n// prevents the browser package from being bundled in the CDN bundle, and avoids a\n// circular dependency between the browser and replay packages should `@sentry/browser` import\n// from `@sentry/replay` in the future\nexport const WINDOW = GLOBAL_OBJ as typeof GLOBAL_OBJ & Window;\n\nexport const REPLAY_SESSION_KEY = 'sentryReplaySession';\nexport const REPLAY_EVENT_NAME = 'replay_event';\nexport const RECORDING_EVENT_NAME = 'replay_recording';\nexport const UNABLE_TO_SEND_REPLAY = 'Unable to send Replay';\n\n// The idle limit for a session after which recording is paused.\nexport const SESSION_IDLE_PAUSE_DURATION = 300_000; // 5 minutes in ms\n\n// The idle limit for a session after which the session expires.\nexport const SESSION_IDLE_EXPIRE_DURATION = 900_000; // 15 minutes in ms\n\n/** Default flush delays */\nexport const DEFAULT_FLUSH_MIN_DELAY = 5_000;\n// XXX: Temp fix for our debounce logic where `maxWait` would never occur if it\n// was the same as `wait`\nexport const DEFAULT_FLUSH_MAX_DELAY = 5_500;\n\n/* How long to wait for error checkouts */\nexport const BUFFER_CHECKOUT_TIME = 60_000;\n\nexport const RETRY_BASE_INTERVAL = 5000;\nexport const RETRY_MAX_COUNT = 3;\n\n/* The max (uncompressed) size in bytes of a network body. Any body larger than this will be truncated. */\nexport const NETWORK_BODY_MAX_SIZE = 150_000;\n\n/* The max size of a single console arg that is captured. Any arg larger than this will be truncated. */\nexport const CONSOLE_ARG_MAX_SIZE = 5_000;\n\n/* Min. time to wait before we consider something a slow click. */\nexport const SLOW_CLICK_THRESHOLD = 3_000;\n/* For scroll actions after a click, we only look for a very short time period to detect programmatic scrolling. */\nexport const SLOW_CLICK_SCROLL_TIMEOUT = 300;\n\n/** When encountering a total segment size exceeding this size, stop the replay (as we cannot properly ingest it). */\nexport const REPLAY_MAX_EVENT_BUFFER_SIZE = 20_000_000; // ~20MB\n\n/** Replays must be min. 5s long before we send them. */\nexport const MIN_REPLAY_DURATION = 4_999;\n/* The max. allowed value that the minReplayDuration can be set to. */\nexport const MIN_REPLAY_DURATION_LIMIT = 15_000;\n\n/** The max. length of a replay. */\nexport const MAX_REPLAY_DURATION = 3_600_000; // 60 minutes in ms;\n\n/** Default attributes to be ignored when `maskAllText` is enabled */\nexport const DEFAULT_IGNORED_ATTRIBUTES = ['title', 'placeholder'];\n", "var NodeType;\r\n(function (NodeType) {\r\n NodeType[NodeType[\"Document\"] = 0] = \"Document\";\r\n NodeType[NodeType[\"DocumentType\"] = 1] = \"DocumentType\";\r\n NodeType[NodeType[\"Element\"] = 2] = \"Element\";\r\n NodeType[NodeType[\"Text\"] = 3] = \"Text\";\r\n NodeType[NodeType[\"CDATA\"] = 4] = \"CDATA\";\r\n NodeType[NodeType[\"Comment\"] = 5] = \"Comment\";\r\n})(NodeType || (NodeType = {}));\n\nfunction isElement(n) {\r\n return n.nodeType === n.ELEMENT_NODE;\r\n}\r\nfunction isShadowRoot(n) {\r\n const host = n?.host;\r\n return Boolean(host?.shadowRoot === n);\r\n}\r\nfunction isNativeShadowDom(shadowRoot) {\r\n return Object.prototype.toString.call(shadowRoot) === '[object ShadowRoot]';\r\n}\r\nfunction fixBrowserCompatibilityIssuesInCSS(cssText) {\r\n if (cssText.includes(' background-clip: text;') &&\r\n !cssText.includes(' -webkit-background-clip: text;')) {\r\n cssText = cssText.replace(' background-clip: text;', ' -webkit-background-clip: text; background-clip: text;');\r\n }\r\n return cssText;\r\n}\r\nfunction escapeImportStatement(rule) {\r\n const { cssText } = rule;\r\n if (cssText.split('\"').length < 3)\r\n return cssText;\r\n const statement = ['@import', `url(${JSON.stringify(rule.href)})`];\r\n if (rule.layerName === '') {\r\n statement.push(`layer`);\r\n }\r\n else if (rule.layerName) {\r\n statement.push(`layer(${rule.layerName})`);\r\n }\r\n if (rule.supportsText) {\r\n statement.push(`supports(${rule.supportsText})`);\r\n }\r\n if (rule.media.length) {\r\n statement.push(rule.media.mediaText);\r\n }\r\n return statement.join(' ') + ';';\r\n}\r\nfunction stringifyStylesheet(s) {\r\n try {\r\n const rules = s.rules || s.cssRules;\r\n return rules\r\n ? fixBrowserCompatibilityIssuesInCSS(Array.from(rules, stringifyRule).join(''))\r\n : null;\r\n }\r\n catch (error) {\r\n return null;\r\n }\r\n}\r\nfunction stringifyRule(rule) {\r\n let importStringified;\r\n if (isCSSImportRule(rule)) {\r\n try {\r\n importStringified =\r\n stringifyStylesheet(rule.styleSheet) ||\r\n escapeImportStatement(rule);\r\n }\r\n catch (error) {\r\n }\r\n }\r\n else if (isCSSStyleRule(rule) && rule.selectorText.includes(':')) {\r\n return fixSafariColons(rule.cssText);\r\n }\r\n return importStringified || rule.cssText;\r\n}\r\nfunction fixSafariColons(cssStringified) {\r\n const regex = /(\\[(?:[\\w-]+)[^\\\\])(:(?:[\\w-]+)\\])/gm;\r\n return cssStringified.replace(regex, '$1\\\\$2');\r\n}\r\nfunction isCSSImportRule(rule) {\r\n return 'styleSheet' in rule;\r\n}\r\nfunction isCSSStyleRule(rule) {\r\n return 'selectorText' in rule;\r\n}\r\nclass Mirror {\r\n constructor() {\r\n this.idNodeMap = new Map();\r\n this.nodeMetaMap = new WeakMap();\r\n }\r\n getId(n) {\r\n if (!n)\r\n return -1;\r\n const id = this.getMeta(n)?.id;\r\n return id ?? -1;\r\n }\r\n getNode(id) {\r\n return this.idNodeMap.get(id) || null;\r\n }\r\n getIds() {\r\n return Array.from(this.idNodeMap.keys());\r\n }\r\n getMeta(n) {\r\n return this.nodeMetaMap.get(n) || null;\r\n }\r\n removeNodeFromMap(n) {\r\n const id = this.getId(n);\r\n this.idNodeMap.delete(id);\r\n if (n.childNodes) {\r\n n.childNodes.forEach((childNode) => this.removeNodeFromMap(childNode));\r\n }\r\n }\r\n has(id) {\r\n return this.idNodeMap.has(id);\r\n }\r\n hasNode(node) {\r\n return this.nodeMetaMap.has(node);\r\n }\r\n add(n, meta) {\r\n const id = meta.id;\r\n this.idNodeMap.set(id, n);\r\n this.nodeMetaMap.set(n, meta);\r\n }\r\n replace(id, n) {\r\n const oldNode = this.getNode(id);\r\n if (oldNode) {\r\n const meta = this.nodeMetaMap.get(oldNode);\r\n if (meta)\r\n this.nodeMetaMap.set(n, meta);\r\n }\r\n this.idNodeMap.set(id, n);\r\n }\r\n reset() {\r\n this.idNodeMap = new Map();\r\n this.nodeMetaMap = new WeakMap();\r\n }\r\n}\r\nfunction createMirror() {\r\n return new Mirror();\r\n}\r\nfunction shouldMaskInput({ maskInputOptions, tagName, type, }) {\r\n if (tagName === 'OPTION') {\r\n tagName = 'SELECT';\r\n }\r\n return Boolean(maskInputOptions[tagName.toLowerCase()] ||\r\n (type && maskInputOptions[type]) ||\r\n type === 'password' ||\r\n (tagName === 'INPUT' && !type && maskInputOptions['text']));\r\n}\r\nfunction maskInputValue({ isMasked, element, value, maskInputFn, }) {\r\n let text = value || '';\r\n if (!isMasked) {\r\n return text;\r\n }\r\n if (maskInputFn) {\r\n text = maskInputFn(text, element);\r\n }\r\n return '*'.repeat(text.length);\r\n}\r\nfunction toLowerCase(str) {\r\n return str.toLowerCase();\r\n}\r\nfunction toUpperCase(str) {\r\n return str.toUpperCase();\r\n}\r\nconst ORIGINAL_ATTRIBUTE_NAME = '__rrweb_original__';\r\nfunction is2DCanvasBlank(canvas) {\r\n const ctx = canvas.getContext('2d');\r\n if (!ctx)\r\n return true;\r\n const chunkSize = 50;\r\n for (let x = 0; x < canvas.width; x += chunkSize) {\r\n for (let y = 0; y < canvas.height; y += chunkSize) {\r\n const getImageData = ctx.getImageData;\r\n const originalGetImageData = ORIGINAL_ATTRIBUTE_NAME in getImageData\r\n ? getImageData[ORIGINAL_ATTRIBUTE_NAME]\r\n : getImageData;\r\n const pixelBuffer = new Uint32Array(originalGetImageData.call(ctx, x, y, Math.min(chunkSize, canvas.width - x), Math.min(chunkSize, canvas.height - y)).data.buffer);\r\n if (pixelBuffer.some((pixel) => pixel !== 0))\r\n return false;\r\n }\r\n }\r\n return true;\r\n}\r\nfunction isNodeMetaEqual(a, b) {\r\n if (!a || !b || a.type !== b.type)\r\n return false;\r\n if (a.type === NodeType.Document)\r\n return a.compatMode === b.compatMode;\r\n else if (a.type === NodeType.DocumentType)\r\n return (a.name === b.name &&\r\n a.publicId === b.publicId &&\r\n a.systemId === b.systemId);\r\n else if (a.type === NodeType.Comment ||\r\n a.type === NodeType.Text ||\r\n a.type === NodeType.CDATA)\r\n return a.textContent === b.textContent;\r\n else if (a.type === NodeType.Element)\r\n return (a.tagName === b.tagName &&\r\n JSON.stringify(a.attributes) ===\r\n JSON.stringify(b.attributes) &&\r\n a.isSVG === b.isSVG &&\r\n a.needBlock === b.needBlock);\r\n return false;\r\n}\r\nfunction getInputType(element) {\r\n const type = element.type;\r\n return element.hasAttribute('data-rr-is-password')\r\n ? 'password'\r\n : type\r\n ?\r\n toLowerCase(type)\r\n : null;\r\n}\r\nfunction getInputValue(el, tagName, type) {\r\n if (tagName === 'INPUT' && (type === 'radio' || type === 'checkbox')) {\r\n return el.getAttribute('value') || '';\r\n }\r\n return el.value;\r\n}\n\nlet _id = 1;\r\nconst tagNameRegex = new RegExp('[^a-z0-9-_:]');\r\nconst IGNORED_NODE = -2;\r\nfunction genId() {\r\n return _id++;\r\n}\r\nfunction getValidTagName(element) {\r\n if (element instanceof HTMLFormElement) {\r\n return 'form';\r\n }\r\n const processedTagName = toLowerCase(element.tagName);\r\n if (tagNameRegex.test(processedTagName)) {\r\n return 'div';\r\n }\r\n return processedTagName;\r\n}\r\nfunction extractOrigin(url) {\r\n let origin = '';\r\n if (url.indexOf('//') > -1) {\r\n origin = url.split('/').slice(0, 3).join('/');\r\n }\r\n else {\r\n origin = url.split('/')[0];\r\n }\r\n origin = origin.split('?')[0];\r\n return origin;\r\n}\r\nlet canvasService;\r\nlet canvasCtx;\r\nconst URL_IN_CSS_REF = /url\\((?:(')([^']*)'|(\")(.*?)\"|([^)]*))\\)/gm;\r\nconst URL_PROTOCOL_MATCH = /^(?:[a-z+]+:)?\\/\\//i;\r\nconst URL_WWW_MATCH = /^www\\..*/i;\r\nconst DATA_URI = /^(data:)([^,]*),(.*)/i;\r\nfunction absoluteToStylesheet(cssText, href) {\r\n return (cssText || '').replace(URL_IN_CSS_REF, (origin, quote1, path1, quote2, path2, path3) => {\r\n const filePath = path1 || path2 || path3;\r\n const maybeQuote = quote1 || quote2 || '';\r\n if (!filePath) {\r\n return origin;\r\n }\r\n if (URL_PROTOCOL_MATCH.test(filePath) || URL_WWW_MATCH.test(filePath)) {\r\n return `url(${maybeQuote}${filePath}${maybeQuote})`;\r\n }\r\n if (DATA_URI.test(filePath)) {\r\n return `url(${maybeQuote}${filePath}${maybeQuote})`;\r\n }\r\n if (filePath[0] === '/') {\r\n return `url(${maybeQuote}${extractOrigin(href) + filePath}${maybeQuote})`;\r\n }\r\n const stack = href.split('/');\r\n const parts = filePath.split('/');\r\n stack.pop();\r\n for (const part of parts) {\r\n if (part === '.') {\r\n continue;\r\n }\r\n else if (part === '..') {\r\n stack.pop();\r\n }\r\n else {\r\n stack.push(part);\r\n }\r\n }\r\n return `url(${maybeQuote}${stack.join('/')}${maybeQuote})`;\r\n });\r\n}\r\nconst SRCSET_NOT_SPACES = /^[^ \\t\\n\\r\\u000c]+/;\r\nconst SRCSET_COMMAS_OR_SPACES = /^[, \\t\\n\\r\\u000c]+/;\r\nfunction getAbsoluteSrcsetString(doc, attributeValue) {\r\n if (attributeValue.trim() === '') {\r\n return attributeValue;\r\n }\r\n let pos = 0;\r\n function collectCharacters(regEx) {\r\n let chars;\r\n const match = regEx.exec(attributeValue.substring(pos));\r\n if (match) {\r\n chars = match[0];\r\n pos += chars.length;\r\n return chars;\r\n }\r\n return '';\r\n }\r\n const output = [];\r\n while (true) {\r\n collectCharacters(SRCSET_COMMAS_OR_SPACES);\r\n if (pos >= attributeValue.length) {\r\n break;\r\n }\r\n let url = collectCharacters(SRCSET_NOT_SPACES);\r\n if (url.slice(-1) === ',') {\r\n url = absoluteToDoc(doc, url.substring(0, url.length - 1));\r\n output.push(url);\r\n }\r\n else {\r\n let descriptorsStr = '';\r\n url = absoluteToDoc(doc, url);\r\n let inParens = false;\r\n while (true) {\r\n const c = attributeValue.charAt(pos);\r\n if (c === '') {\r\n output.push((url + descriptorsStr).trim());\r\n break;\r\n }\r\n else if (!inParens) {\r\n if (c === ',') {\r\n pos += 1;\r\n output.push((url + descriptorsStr).trim());\r\n break;\r\n }\r\n else if (c === '(') {\r\n inParens = true;\r\n }\r\n }\r\n else {\r\n if (c === ')') {\r\n inParens = false;\r\n }\r\n }\r\n descriptorsStr += c;\r\n pos += 1;\r\n }\r\n }\r\n }\r\n return output.join(', ');\r\n}\r\nfunction absoluteToDoc(doc, attributeValue) {\r\n if (!attributeValue || attributeValue.trim() === '') {\r\n return attributeValue;\r\n }\r\n const a = doc.createElement('a');\r\n a.href = attributeValue;\r\n return a.href;\r\n}\r\nfunction isSVGElement(el) {\r\n return Boolean(el.tagName === 'svg' || el.ownerSVGElement);\r\n}\r\nfunction getHref() {\r\n const a = document.createElement('a');\r\n a.href = '';\r\n return a.href;\r\n}\r\nfunction transformAttribute(doc, tagName, name, value, element, maskAttributeFn) {\r\n if (!value) {\r\n return value;\r\n }\r\n if (name === 'src' ||\r\n (name === 'href' && !(tagName === 'use' && value[0] === '#'))) {\r\n return absoluteToDoc(doc, value);\r\n }\r\n else if (name === 'xlink:href' && value[0] !== '#') {\r\n return absoluteToDoc(doc, value);\r\n }\r\n else if (name === 'background' &&\r\n (tagName === 'table' || tagName === 'td' || tagName === 'th')) {\r\n return absoluteToDoc(doc, value);\r\n }\r\n else if (name === 'srcset') {\r\n return getAbsoluteSrcsetString(doc, value);\r\n }\r\n else if (name === 'style') {\r\n return absoluteToStylesheet(value, getHref());\r\n }\r\n else if (tagName === 'object' && name === 'data') {\r\n return absoluteToDoc(doc, value);\r\n }\r\n if (typeof maskAttributeFn === 'function') {\r\n return maskAttributeFn(name, value, element);\r\n }\r\n return value;\r\n}\r\nfunction ignoreAttribute(tagName, name, _value) {\r\n return (tagName === 'video' || tagName === 'audio') && name === 'autoplay';\r\n}\r\nfunction _isBlockedElement(element, blockClass, blockSelector, unblockSelector) {\r\n try {\r\n if (unblockSelector && element.matches(unblockSelector)) {\r\n return false;\r\n }\r\n if (typeof blockClass === 'string') {\r\n if (element.classList.contains(blockClass)) {\r\n return true;\r\n }\r\n }\r\n else {\r\n for (let eIndex = element.classList.length; eIndex--;) {\r\n const className = element.classList[eIndex];\r\n if (blockClass.test(className)) {\r\n return true;\r\n }\r\n }\r\n }\r\n if (blockSelector) {\r\n return element.matches(blockSelector);\r\n }\r\n }\r\n catch (e) {\r\n }\r\n return false;\r\n}\r\nfunction elementClassMatchesRegex(el, regex) {\r\n for (let eIndex = el.classList.length; eIndex--;) {\r\n const className = el.classList[eIndex];\r\n if (regex.test(className)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n}\r\nfunction distanceToMatch(node, matchPredicate, limit = Infinity, distance = 0) {\r\n if (!node)\r\n return -1;\r\n if (node.nodeType !== node.ELEMENT_NODE)\r\n return -1;\r\n if (distance > limit)\r\n return -1;\r\n if (matchPredicate(node))\r\n return distance;\r\n return distanceToMatch(node.parentNode, matchPredicate, limit, distance + 1);\r\n}\r\nfunction createMatchPredicate(className, selector) {\r\n return (node) => {\r\n const el = node;\r\n if (el === null)\r\n return false;\r\n try {\r\n if (className) {\r\n if (typeof className === 'string') {\r\n if (el.matches(`.${className}`))\r\n return true;\r\n }\r\n else if (elementClassMatchesRegex(el, className)) {\r\n return true;\r\n }\r\n }\r\n if (selector && el.matches(selector))\r\n return true;\r\n return false;\r\n }\r\n catch {\r\n return false;\r\n }\r\n };\r\n}\r\nfunction needMaskingText(node, maskTextClass, maskTextSelector, unmaskTextClass, unmaskTextSelector, maskAllText) {\r\n try {\r\n const el = node.nodeType === node.ELEMENT_NODE\r\n ? node\r\n : node.parentElement;\r\n if (el === null)\r\n return false;\r\n if (el.tagName === 'INPUT') {\r\n const autocomplete = el.getAttribute('autocomplete');\r\n const disallowedAutocompleteValues = [\r\n 'current-password',\r\n 'new-password',\r\n 'cc-number',\r\n 'cc-exp',\r\n 'cc-exp-month',\r\n 'cc-exp-year',\r\n 'cc-csc',\r\n ];\r\n if (disallowedAutocompleteValues.includes(autocomplete)) {\r\n return true;\r\n }\r\n }\r\n let maskDistance = -1;\r\n let unmaskDistance = -1;\r\n if (maskAllText) {\r\n unmaskDistance = distanceToMatch(el, createMatchPredicate(unmaskTextClass, unmaskTextSelector));\r\n if (unmaskDistance < 0) {\r\n return true;\r\n }\r\n maskDistance = distanceToMatch(el, createMatchPredicate(maskTextClass, maskTextSelector), unmaskDistance >= 0 ? unmaskDistance : Infinity);\r\n }\r\n else {\r\n maskDistance = distanceToMatch(el, createMatchPredicate(maskTextClass, maskTextSelector));\r\n if (maskDistance < 0) {\r\n return false;\r\n }\r\n unmaskDistance = distanceToMatch(el, createMatchPredicate(unmaskTextClass, unmaskTextSelector), maskDistance >= 0 ? maskDistance : Infinity);\r\n }\r\n return maskDistance >= 0\r\n ? unmaskDistance >= 0\r\n ? maskDistance <= unmaskDistance\r\n : true\r\n : unmaskDistance >= 0\r\n ? false\r\n : !!maskAllText;\r\n }\r\n catch (e) {\r\n }\r\n return !!maskAllText;\r\n}\r\nfunction onceIframeLoaded(iframeEl, listener, iframeLoadTimeout) {\r\n const win = iframeEl.contentWindow;\r\n if (!win) {\r\n return;\r\n }\r\n let fired = false;\r\n let readyState;\r\n try {\r\n readyState = win.document.readyState;\r\n }\r\n catch (error) {\r\n return;\r\n }\r\n if (readyState !== 'complete') {\r\n const timer = setTimeout(() => {\r\n if (!fired) {\r\n listener();\r\n fired = true;\r\n }\r\n }, iframeLoadTimeout);\r\n iframeEl.addEventListener('load', () => {\r\n clearTimeout(timer);\r\n fired = true;\r\n listener();\r\n });\r\n return;\r\n }\r\n const blankUrl = 'about:blank';\r\n if (win.location.href !== blankUrl ||\r\n iframeEl.src === blankUrl ||\r\n iframeEl.src === '') {\r\n setTimeout(listener, 0);\r\n return iframeEl.addEventListener('load', listener);\r\n }\r\n iframeEl.addEventListener('load', listener);\r\n}\r\nfunction onceStylesheetLoaded(link, listener, styleSheetLoadTimeout) {\r\n let fired = false;\r\n let styleSheetLoaded;\r\n try {\r\n styleSheetLoaded = link.sheet;\r\n }\r\n catch (error) {\r\n return;\r\n }\r\n if (styleSheetLoaded)\r\n return;\r\n const timer = setTimeout(() => {\r\n if (!fired) {\r\n listener();\r\n fired = true;\r\n }\r\n }, styleSheetLoadTimeout);\r\n link.addEventListener('load', () => {\r\n clearTimeout(timer);\r\n fired = true;\r\n listener();\r\n });\r\n}\r\nfunction serializeNode(n, options) {\r\n const { doc, mirror, blockClass, blockSelector, unblockSelector, maskAllText, maskAttributeFn, maskTextClass, unmaskTextClass, maskTextSelector, unmaskTextSelector, inlineStylesheet, maskInputOptions = {}, maskTextFn, maskInputFn, dataURLOptions = {}, inlineImages, recordCanvas, keepIframeSrcFn, newlyAddedElement = false, } = options;\r\n const rootId = getRootId(doc, mirror);\r\n switch (n.nodeType) {\r\n case n.DOCUMENT_NODE:\r\n if (n.compatMode !== 'CSS1Compat') {\r\n return {\r\n type: NodeType.Document,\r\n childNodes: [],\r\n compatMode: n.compatMode,\r\n };\r\n }\r\n else {\r\n return {\r\n type: NodeType.Document,\r\n childNodes: [],\r\n };\r\n }\r\n case n.DOCUMENT_TYPE_NODE:\r\n return {\r\n type: NodeType.DocumentType,\r\n name: n.name,\r\n publicId: n.publicId,\r\n systemId: n.systemId,\r\n rootId,\r\n };\r\n case n.ELEMENT_NODE:\r\n return serializeElementNode(n, {\r\n doc,\r\n blockClass,\r\n blockSelector,\r\n unblockSelector,\r\n inlineStylesheet,\r\n maskAttributeFn,\r\n maskInputOptions,\r\n maskInputFn,\r\n dataURLOptions,\r\n inlineImages,\r\n recordCanvas,\r\n keepIframeSrcFn,\r\n newlyAddedElement,\r\n rootId,\r\n maskAllText,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n });\r\n case n.TEXT_NODE:\r\n return serializeTextNode(n, {\r\n maskAllText,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n maskTextFn,\r\n maskInputOptions,\r\n maskInputFn,\r\n rootId,\r\n });\r\n case n.CDATA_SECTION_NODE:\r\n return {\r\n type: NodeType.CDATA,\r\n textContent: '',\r\n rootId,\r\n };\r\n case n.COMMENT_NODE:\r\n return {\r\n type: NodeType.Comment,\r\n textContent: n.textContent || '',\r\n rootId,\r\n };\r\n default:\r\n return false;\r\n }\r\n}\r\nfunction getRootId(doc, mirror) {\r\n if (!mirror.hasNode(doc))\r\n return undefined;\r\n const docId = mirror.getId(doc);\r\n return docId === 1 ? undefined : docId;\r\n}\r\nfunction serializeTextNode(n, options) {\r\n const { maskAllText, maskTextClass, unmaskTextClass, maskTextSelector, unmaskTextSelector, maskTextFn, maskInputOptions, maskInputFn, rootId, } = options;\r\n const parentTagName = n.parentNode && n.parentNode.tagName;\r\n let textContent = n.textContent;\r\n const isStyle = parentTagName === 'STYLE' ? true : undefined;\r\n const isScript = parentTagName === 'SCRIPT' ? true : undefined;\r\n const isTextarea = parentTagName === 'TEXTAREA' ? true : undefined;\r\n if (isStyle && textContent) {\r\n try {\r\n if (n.nextSibling || n.previousSibling) {\r\n }\r\n else if (n.parentNode.sheet?.cssRules) {\r\n textContent = stringifyStylesheet(n.parentNode.sheet);\r\n }\r\n }\r\n catch (err) {\r\n console.warn(`Cannot get CSS styles from text's parentNode. Error: ${err}`, n);\r\n }\r\n textContent = absoluteToStylesheet(textContent, getHref());\r\n }\r\n if (isScript) {\r\n textContent = 'SCRIPT_PLACEHOLDER';\r\n }\r\n const forceMask = needMaskingText(n, maskTextClass, maskTextSelector, unmaskTextClass, unmaskTextSelector, maskAllText);\r\n if (!isStyle && !isScript && !isTextarea && textContent && forceMask) {\r\n textContent = maskTextFn\r\n ? maskTextFn(textContent, n.parentElement)\r\n : textContent.replace(/[\\S]/g, '*');\r\n }\r\n if (isTextarea && textContent && (maskInputOptions.textarea || forceMask)) {\r\n textContent = maskInputFn\r\n ? maskInputFn(textContent, n.parentNode)\r\n : textContent.replace(/[\\S]/g, '*');\r\n }\r\n if (parentTagName === 'OPTION' && textContent) {\r\n const isInputMasked = shouldMaskInput({\r\n type: null,\r\n tagName: parentTagName,\r\n maskInputOptions,\r\n });\r\n textContent = maskInputValue({\r\n isMasked: needMaskingText(n, maskTextClass, maskTextSelector, unmaskTextClass, unmaskTextSelector, isInputMasked),\r\n element: n,\r\n value: textContent,\r\n maskInputFn,\r\n });\r\n }\r\n return {\r\n type: NodeType.Text,\r\n textContent: textContent || '',\r\n isStyle,\r\n rootId,\r\n };\r\n}\r\nfunction serializeElementNode(n, options) {\r\n const { doc, blockClass, blockSelector, unblockSelector, inlineStylesheet, maskInputOptions = {}, maskAttributeFn, maskInputFn, dataURLOptions = {}, inlineImages, recordCanvas, keepIframeSrcFn, newlyAddedElement = false, rootId, maskAllText, maskTextClass, unmaskTextClass, maskTextSelector, unmaskTextSelector, } = options;\r\n const needBlock = _isBlockedElement(n, blockClass, blockSelector, unblockSelector);\r\n const tagName = getValidTagName(n);\r\n let attributes = {};\r\n const len = n.attributes.length;\r\n for (let i = 0; i < len; i++) {\r\n const attr = n.attributes[i];\r\n if (attr.name && !ignoreAttribute(tagName, attr.name, attr.value)) {\r\n attributes[attr.name] = transformAttribute(doc, tagName, toLowerCase(attr.name), attr.value, n, maskAttributeFn);\r\n }\r\n }\r\n if (tagName === 'link' && inlineStylesheet) {\r\n const stylesheet = Array.from(doc.styleSheets).find((s) => {\r\n return s.href === n.href;\r\n });\r\n let cssText = null;\r\n if (stylesheet) {\r\n cssText = stringifyStylesheet(stylesheet);\r\n }\r\n if (cssText) {\r\n delete attributes.rel;\r\n delete attributes.href;\r\n attributes._cssText = absoluteToStylesheet(cssText, stylesheet.href);\r\n }\r\n }\r\n if (tagName === 'style' &&\r\n n.sheet &&\r\n !(n.innerText || n.textContent || '').trim().length) {\r\n const cssText = stringifyStylesheet(n.sheet);\r\n if (cssText) {\r\n attributes._cssText = absoluteToStylesheet(cssText, getHref());\r\n }\r\n }\r\n if (tagName === 'input' ||\r\n tagName === 'textarea' ||\r\n tagName === 'select' ||\r\n tagName === 'option') {\r\n const el = n;\r\n const type = getInputType(el);\r\n const value = getInputValue(el, toUpperCase(tagName), type);\r\n const checked = el.checked;\r\n if (type !== 'submit' && type !== 'button' && value) {\r\n const forceMask = needMaskingText(el, maskTextClass, maskTextSelector, unmaskTextClass, unmaskTextSelector, shouldMaskInput({\r\n type,\r\n tagName: toUpperCase(tagName),\r\n maskInputOptions,\r\n }));\r\n attributes.value = maskInputValue({\r\n isMasked: forceMask,\r\n element: el,\r\n value,\r\n maskInputFn,\r\n });\r\n }\r\n if (checked) {\r\n attributes.checked = checked;\r\n }\r\n }\r\n if (tagName === 'option') {\r\n if (n.selected && !maskInputOptions['select']) {\r\n attributes.selected = true;\r\n }\r\n else {\r\n delete attributes.selected;\r\n }\r\n }\r\n if (tagName === 'canvas' && recordCanvas) {\r\n if (n.__context === '2d') {\r\n if (!is2DCanvasBlank(n)) {\r\n attributes.rr_dataURL = n.toDataURL(dataURLOptions.type, dataURLOptions.quality);\r\n }\r\n }\r\n else if (!('__context' in n)) {\r\n const canvasDataURL = n.toDataURL(dataURLOptions.type, dataURLOptions.quality);\r\n const blankCanvas = document.createElement('canvas');\r\n blankCanvas.width = n.width;\r\n blankCanvas.height = n.height;\r\n const blankCanvasDataURL = blankCanvas.toDataURL(dataURLOptions.type, dataURLOptions.quality);\r\n if (canvasDataURL !== blankCanvasDataURL) {\r\n attributes.rr_dataURL = canvasDataURL;\r\n }\r\n }\r\n }\r\n if (tagName === 'img' && inlineImages) {\r\n if (!canvasService) {\r\n canvasService = doc.createElement('canvas');\r\n canvasCtx = canvasService.getContext('2d');\r\n }\r\n const image = n;\r\n const oldValue = image.crossOrigin;\r\n image.crossOrigin = 'anonymous';\r\n const recordInlineImage = () => {\r\n image.removeEventListener('load', recordInlineImage);\r\n try {\r\n canvasService.width = image.naturalWidth;\r\n canvasService.height = image.naturalHeight;\r\n canvasCtx.drawImage(image, 0, 0);\r\n attributes.rr_dataURL = canvasService.toDataURL(dataURLOptions.type, dataURLOptions.quality);\r\n }\r\n catch (err) {\r\n console.warn(`Cannot inline img src=${image.currentSrc}! Error: ${err}`);\r\n }\r\n oldValue\r\n ? (attributes.crossOrigin = oldValue)\r\n : image.removeAttribute('crossorigin');\r\n };\r\n if (image.complete && image.naturalWidth !== 0)\r\n recordInlineImage();\r\n else\r\n image.addEventListener('load', recordInlineImage);\r\n }\r\n if (tagName === 'audio' || tagName === 'video') {\r\n attributes.rr_mediaState = n.paused\r\n ? 'paused'\r\n : 'played';\r\n attributes.rr_mediaCurrentTime = n.currentTime;\r\n }\r\n if (!newlyAddedElement) {\r\n if (n.scrollLeft) {\r\n attributes.rr_scrollLeft = n.scrollLeft;\r\n }\r\n if (n.scrollTop) {\r\n attributes.rr_scrollTop = n.scrollTop;\r\n }\r\n }\r\n if (needBlock) {\r\n const { width, height } = n.getBoundingClientRect();\r\n attributes = {\r\n class: attributes.class,\r\n rr_width: `${width}px`,\r\n rr_height: `${height}px`,\r\n };\r\n }\r\n if (tagName === 'iframe' && !keepIframeSrcFn(attributes.src)) {\r\n if (!n.contentDocument) {\r\n attributes.rr_src = attributes.src;\r\n }\r\n delete attributes.src;\r\n }\r\n let isCustomElement;\r\n try {\r\n if (customElements.get(tagName))\r\n isCustomElement = true;\r\n }\r\n catch (e) {\r\n }\r\n return {\r\n type: NodeType.Element,\r\n tagName,\r\n attributes,\r\n childNodes: [],\r\n isSVG: isSVGElement(n) || undefined,\r\n needBlock,\r\n rootId,\r\n isCustom: isCustomElement,\r\n };\r\n}\r\nfunction lowerIfExists(maybeAttr) {\r\n if (maybeAttr === undefined || maybeAttr === null) {\r\n return '';\r\n }\r\n else {\r\n return maybeAttr.toLowerCase();\r\n }\r\n}\r\nfunction slimDOMExcluded(sn, slimDOMOptions) {\r\n if (slimDOMOptions.comment && sn.type === NodeType.Comment) {\r\n return true;\r\n }\r\n else if (sn.type === NodeType.Element) {\r\n if (slimDOMOptions.script &&\r\n (sn.tagName === 'script' ||\r\n (sn.tagName === 'link' &&\r\n (sn.attributes.rel === 'preload' ||\r\n sn.attributes.rel === 'modulepreload') &&\r\n sn.attributes.as === 'script') ||\r\n (sn.tagName === 'link' &&\r\n sn.attributes.rel === 'prefetch' &&\r\n typeof sn.attributes.href === 'string' &&\r\n sn.attributes.href.endsWith('.js')))) {\r\n return true;\r\n }\r\n else if (slimDOMOptions.headFavicon &&\r\n ((sn.tagName === 'link' && sn.attributes.rel === 'shortcut icon') ||\r\n (sn.tagName === 'meta' &&\r\n (lowerIfExists(sn.attributes.name).match(/^msapplication-tile(image|color)$/) ||\r\n lowerIfExists(sn.attributes.name) === 'application-name' ||\r\n lowerIfExists(sn.attributes.rel) === 'icon' ||\r\n lowerIfExists(sn.attributes.rel) === 'apple-touch-icon' ||\r\n lowerIfExists(sn.attributes.rel) === 'shortcut icon')))) {\r\n return true;\r\n }\r\n else if (sn.tagName === 'meta') {\r\n if (slimDOMOptions.headMetaDescKeywords &&\r\n lowerIfExists(sn.attributes.name).match(/^description|keywords$/)) {\r\n return true;\r\n }\r\n else if (slimDOMOptions.headMetaSocial &&\r\n (lowerIfExists(sn.attributes.property).match(/^(og|twitter|fb):/) ||\r\n lowerIfExists(sn.attributes.name).match(/^(og|twitter):/) ||\r\n lowerIfExists(sn.attributes.name) === 'pinterest')) {\r\n return true;\r\n }\r\n else if (slimDOMOptions.headMetaRobots &&\r\n (lowerIfExists(sn.attributes.name) === 'robots' ||\r\n lowerIfExists(sn.attributes.name) === 'googlebot' ||\r\n lowerIfExists(sn.attributes.name) === 'bingbot')) {\r\n return true;\r\n }\r\n else if (slimDOMOptions.headMetaHttpEquiv &&\r\n sn.attributes['http-equiv'] !== undefined) {\r\n return true;\r\n }\r\n else if (slimDOMOptions.headMetaAuthorship &&\r\n (lowerIfExists(sn.attributes.name) === 'author' ||\r\n lowerIfExists(sn.attributes.name) === 'generator' ||\r\n lowerIfExists(sn.attributes.name) === 'framework' ||\r\n lowerIfExists(sn.attributes.name) === 'publisher' ||\r\n lowerIfExists(sn.attributes.name) === 'progid' ||\r\n lowerIfExists(sn.attributes.property).match(/^article:/) ||\r\n lowerIfExists(sn.attributes.property).match(/^product:/))) {\r\n return true;\r\n }\r\n else if (slimDOMOptions.headMetaVerification &&\r\n (lowerIfExists(sn.attributes.name) === 'google-site-verification' ||\r\n lowerIfExists(sn.attributes.name) === 'yandex-verification' ||\r\n lowerIfExists(sn.attributes.name) === 'csrf-token' ||\r\n lowerIfExists(sn.attributes.name) === 'p:domain_verify' ||\r\n lowerIfExists(sn.attributes.name) === 'verify-v1' ||\r\n lowerIfExists(sn.attributes.name) === 'verification' ||\r\n lowerIfExists(sn.attributes.name) === 'shopify-checkout-api-token')) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n}\r\nfunction serializeNodeWithId(n, options) {\r\n const { doc, mirror, blockClass, blockSelector, unblockSelector, maskAllText, maskTextClass, unmaskTextClass, maskTextSelector, unmaskTextSelector, skipChild = false, inlineStylesheet = true, maskInputOptions = {}, maskAttributeFn, maskTextFn, maskInputFn, slimDOMOptions, dataURLOptions = {}, inlineImages = false, recordCanvas = false, onSerialize, onIframeLoad, iframeLoadTimeout = 5000, onStylesheetLoad, stylesheetLoadTimeout = 5000, keepIframeSrcFn = () => false, newlyAddedElement = false, } = options;\r\n let { preserveWhiteSpace = true } = options;\r\n const _serializedNode = serializeNode(n, {\r\n doc,\r\n mirror,\r\n blockClass,\r\n blockSelector,\r\n maskAllText,\r\n unblockSelector,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n inlineStylesheet,\r\n maskInputOptions,\r\n maskAttributeFn,\r\n maskTextFn,\r\n maskInputFn,\r\n dataURLOptions,\r\n inlineImages,\r\n recordCanvas,\r\n keepIframeSrcFn,\r\n newlyAddedElement,\r\n });\r\n if (!_serializedNode) {\r\n console.warn(n, 'not serialized');\r\n return null;\r\n }\r\n let id;\r\n if (mirror.hasNode(n)) {\r\n id = mirror.getId(n);\r\n }\r\n else if (slimDOMExcluded(_serializedNode, slimDOMOptions) ||\r\n (!preserveWhiteSpace &&\r\n _serializedNode.type === NodeType.Text &&\r\n !_serializedNode.isStyle &&\r\n !_serializedNode.textContent.replace(/^\\s+|\\s+$/gm, '').length)) {\r\n id = IGNORED_NODE;\r\n }\r\n else {\r\n id = genId();\r\n }\r\n const serializedNode = Object.assign(_serializedNode, { id });\r\n mirror.add(n, serializedNode);\r\n if (id === IGNORED_NODE) {\r\n return null;\r\n }\r\n if (onSerialize) {\r\n onSerialize(n);\r\n }\r\n let recordChild = !skipChild;\r\n if (serializedNode.type === NodeType.Element) {\r\n recordChild = recordChild && !serializedNode.needBlock;\r\n delete serializedNode.needBlock;\r\n const shadowRoot = n.shadowRoot;\r\n if (shadowRoot && isNativeShadowDom(shadowRoot))\r\n serializedNode.isShadowHost = true;\r\n }\r\n if ((serializedNode.type === NodeType.Document ||\r\n serializedNode.type === NodeType.Element) &&\r\n recordChild) {\r\n if (slimDOMOptions.headWhitespace &&\r\n serializedNode.type === NodeType.Element &&\r\n serializedNode.tagName === 'head') {\r\n preserveWhiteSpace = false;\r\n }\r\n const bypassOptions = {\r\n doc,\r\n mirror,\r\n blockClass,\r\n blockSelector,\r\n maskAllText,\r\n unblockSelector,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n skipChild,\r\n inlineStylesheet,\r\n maskInputOptions,\r\n maskAttributeFn,\r\n maskTextFn,\r\n maskInputFn,\r\n slimDOMOptions,\r\n dataURLOptions,\r\n inlineImages,\r\n recordCanvas,\r\n preserveWhiteSpace,\r\n onSerialize,\r\n onIframeLoad,\r\n iframeLoadTimeout,\r\n onStylesheetLoad,\r\n stylesheetLoadTimeout,\r\n keepIframeSrcFn,\r\n };\r\n for (const childN of Array.from(n.childNodes)) {\r\n const serializedChildNode = serializeNodeWithId(childN, bypassOptions);\r\n if (serializedChildNode) {\r\n serializedNode.childNodes.push(serializedChildNode);\r\n }\r\n }\r\n if (isElement(n) && n.shadowRoot) {\r\n for (const childN of Array.from(n.shadowRoot.childNodes)) {\r\n const serializedChildNode = serializeNodeWithId(childN, bypassOptions);\r\n if (serializedChildNode) {\r\n isNativeShadowDom(n.shadowRoot) &&\r\n (serializedChildNode.isShadow = true);\r\n serializedNode.childNodes.push(serializedChildNode);\r\n }\r\n }\r\n }\r\n }\r\n if (n.parentNode &&\r\n isShadowRoot(n.parentNode) &&\r\n isNativeShadowDom(n.parentNode)) {\r\n serializedNode.isShadow = true;\r\n }\r\n if (serializedNode.type === NodeType.Element &&\r\n serializedNode.tagName === 'iframe') {\r\n onceIframeLoaded(n, () => {\r\n const iframeDoc = n.contentDocument;\r\n if (iframeDoc && onIframeLoad) {\r\n const serializedIframeNode = serializeNodeWithId(iframeDoc, {\r\n doc: iframeDoc,\r\n mirror,\r\n blockClass,\r\n blockSelector,\r\n unblockSelector,\r\n maskAllText,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n skipChild: false,\r\n inlineStylesheet,\r\n maskInputOptions,\r\n maskAttributeFn,\r\n maskTextFn,\r\n maskInputFn,\r\n slimDOMOptions,\r\n dataURLOptions,\r\n inlineImages,\r\n recordCanvas,\r\n preserveWhiteSpace,\r\n onSerialize,\r\n onIframeLoad,\r\n iframeLoadTimeout,\r\n onStylesheetLoad,\r\n stylesheetLoadTimeout,\r\n keepIframeSrcFn,\r\n });\r\n if (serializedIframeNode) {\r\n onIframeLoad(n, serializedIframeNode);\r\n }\r\n }\r\n }, iframeLoadTimeout);\r\n }\r\n if (serializedNode.type === NodeType.Element &&\r\n serializedNode.tagName === 'link' &&\r\n serializedNode.attributes.rel === 'stylesheet') {\r\n onceStylesheetLoaded(n, () => {\r\n if (onStylesheetLoad) {\r\n const serializedLinkNode = serializeNodeWithId(n, {\r\n doc,\r\n mirror,\r\n blockClass,\r\n blockSelector,\r\n unblockSelector,\r\n maskAllText,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n skipChild: false,\r\n inlineStylesheet,\r\n maskInputOptions,\r\n maskAttributeFn,\r\n maskTextFn,\r\n maskInputFn,\r\n slimDOMOptions,\r\n dataURLOptions,\r\n inlineImages,\r\n recordCanvas,\r\n preserveWhiteSpace,\r\n onSerialize,\r\n onIframeLoad,\r\n iframeLoadTimeout,\r\n onStylesheetLoad,\r\n stylesheetLoadTimeout,\r\n keepIframeSrcFn,\r\n });\r\n if (serializedLinkNode) {\r\n onStylesheetLoad(n, serializedLinkNode);\r\n }\r\n }\r\n }, stylesheetLoadTimeout);\r\n }\r\n return serializedNode;\r\n}\r\nfunction snapshot(n, options) {\r\n const { mirror = new Mirror(), blockClass = 'rr-block', blockSelector = null, unblockSelector = null, maskAllText = false, maskTextClass = 'rr-mask', unmaskTextClass = null, maskTextSelector = null, unmaskTextSelector = null, inlineStylesheet = true, inlineImages = false, recordCanvas = false, maskAllInputs = false, maskAttributeFn, maskTextFn, maskInputFn, slimDOM = false, dataURLOptions, preserveWhiteSpace, onSerialize, onIframeLoad, iframeLoadTimeout, onStylesheetLoad, stylesheetLoadTimeout, keepIframeSrcFn = () => false, } = options || {};\r\n const maskInputOptions = maskAllInputs === true\r\n ? {\r\n color: true,\r\n date: true,\r\n 'datetime-local': true,\r\n email: true,\r\n month: true,\r\n number: true,\r\n range: true,\r\n search: true,\r\n tel: true,\r\n text: true,\r\n time: true,\r\n url: true,\r\n week: true,\r\n textarea: true,\r\n select: true,\r\n }\r\n : maskAllInputs === false\r\n ? {}\r\n : maskAllInputs;\r\n const slimDOMOptions = slimDOM === true || slimDOM === 'all'\r\n ?\r\n {\r\n script: true,\r\n comment: true,\r\n headFavicon: true,\r\n headWhitespace: true,\r\n headMetaDescKeywords: slimDOM === 'all',\r\n headMetaSocial: true,\r\n headMetaRobots: true,\r\n headMetaHttpEquiv: true,\r\n headMetaAuthorship: true,\r\n headMetaVerification: true,\r\n }\r\n : slimDOM === false\r\n ? {}\r\n : slimDOM;\r\n return serializeNodeWithId(n, {\r\n doc: n,\r\n mirror,\r\n blockClass,\r\n blockSelector,\r\n unblockSelector,\r\n maskAllText,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n skipChild: false,\r\n inlineStylesheet,\r\n maskInputOptions,\r\n maskAttributeFn,\r\n maskTextFn,\r\n maskInputFn,\r\n slimDOMOptions,\r\n dataURLOptions,\r\n inlineImages,\r\n recordCanvas,\r\n preserveWhiteSpace,\r\n onSerialize,\r\n onIframeLoad,\r\n iframeLoadTimeout,\r\n onStylesheetLoad,\r\n stylesheetLoadTimeout,\r\n keepIframeSrcFn,\r\n newlyAddedElement: false,\r\n });\r\n}\r\n\nconst commentre = /\\/\\*[^*]*\\*+([^/*][^*]*\\*+)*\\//g;\r\nfunction parse(css, options = {}) {\r\n let lineno = 1;\r\n let column = 1;\r\n function updatePosition(str) {\r\n const lines = str.match(/\\n/g);\r\n if (lines) {\r\n lineno += lines.length;\r\n }\r\n const i = str.lastIndexOf('\\n');\r\n column = i === -1 ? column + str.length : str.length - i;\r\n }\r\n function position() {\r\n const start = { line: lineno, column };\r\n return (node) => {\r\n node.position = new Position(start);\r\n whitespace();\r\n return node;\r\n };\r\n }\r\n class Position {\r\n constructor(start) {\r\n this.start = start;\r\n this.end = { line: lineno, column };\r\n this.source = options.source;\r\n }\r\n }\r\n Position.prototype.content = css;\r\n const errorsList = [];\r\n function error(msg) {\r\n const err = new Error(`${options.source || ''}:${lineno}:${column}: ${msg}`);\r\n err.reason = msg;\r\n err.filename = options.source;\r\n err.line = lineno;\r\n err.column = column;\r\n err.source = css;\r\n if (options.silent) {\r\n errorsList.push(err);\r\n }\r\n else {\r\n throw err;\r\n }\r\n }\r\n function stylesheet() {\r\n const rulesList = rules();\r\n return {\r\n type: 'stylesheet',\r\n stylesheet: {\r\n source: options.source,\r\n rules: rulesList,\r\n parsingErrors: errorsList,\r\n },\r\n };\r\n }\r\n function open() {\r\n return match(/^{\\s*/);\r\n }\r\n function close() {\r\n return match(/^}/);\r\n }\r\n function rules() {\r\n let node;\r\n const rules = [];\r\n whitespace();\r\n comments(rules);\r\n while (css.length && css.charAt(0) !== '}' && (node = atrule() || rule())) {\r\n if (node) {\r\n rules.push(node);\r\n comments(rules);\r\n }\r\n }\r\n return rules;\r\n }\r\n function match(re) {\r\n const m = re.exec(css);\r\n if (!m) {\r\n return;\r\n }\r\n const str = m[0];\r\n updatePosition(str);\r\n css = css.slice(str.length);\r\n return m;\r\n }\r\n function whitespace() {\r\n match(/^\\s*/);\r\n }\r\n function comments(rules = []) {\r\n let c;\r\n while ((c = comment())) {\r\n if (c) {\r\n rules.push(c);\r\n }\r\n c = comment();\r\n }\r\n return rules;\r\n }\r\n function comment() {\r\n const pos = position();\r\n if ('/' !== css.charAt(0) || '*' !== css.charAt(1)) {\r\n return;\r\n }\r\n let i = 2;\r\n while ('' !== css.charAt(i) &&\r\n ('*' !== css.charAt(i) || '/' !== css.charAt(i + 1))) {\r\n ++i;\r\n }\r\n i += 2;\r\n if ('' === css.charAt(i - 1)) {\r\n return error('End of comment missing');\r\n }\r\n const str = css.slice(2, i - 2);\r\n column += 2;\r\n updatePosition(str);\r\n css = css.slice(i);\r\n column += 2;\r\n return pos({\r\n type: 'comment',\r\n comment: str,\r\n });\r\n }\r\n function selector() {\r\n whitespace();\r\n while (css[0] == '}') {\r\n error('extra closing bracket');\r\n css = css.slice(1);\r\n whitespace();\r\n }\r\n const m = match(/^((\"(?:\\\\\"|[^\"])*\"|'(?:\\\\'|[^'])*'|[^{])+)/);\r\n if (!m) {\r\n return;\r\n }\r\n const cleanedInput = m[0]\r\n .trim()\r\n .replace(/\\/\\*([^*]|[\\r\\n]|(\\*+([^*/]|[\\r\\n])))*\\*\\/+/g, '')\r\n .replace(/\"(?:\\\\\"|[^\"])*\"|'(?:\\\\'|[^'])*'/g, (m) => {\r\n return m.replace(/,/g, '\\u200C');\r\n });\r\n return customSplit(cleanedInput).map((s) => s.replace(/\\u200C/g, ',').trim());\r\n }\r\n function customSplit(input) {\r\n const result = [];\r\n let currentSegment = '';\r\n let depthParentheses = 0;\r\n let depthBrackets = 0;\r\n let currentStringChar = null;\r\n for (const char of input) {\r\n const hasStringEscape = currentSegment.endsWith('\\\\');\r\n if (currentStringChar) {\r\n if (currentStringChar === char && !hasStringEscape) {\r\n currentStringChar = null;\r\n }\r\n }\r\n else if (char === '(') {\r\n depthParentheses++;\r\n }\r\n else if (char === ')') {\r\n depthParentheses--;\r\n }\r\n else if (char === '[') {\r\n depthBrackets++;\r\n }\r\n else if (char === ']') {\r\n depthBrackets--;\r\n }\r\n else if ('\\'\"'.includes(char)) {\r\n currentStringChar = char;\r\n }\r\n if (char === ',' && depthParentheses === 0 && depthBrackets === 0) {\r\n result.push(currentSegment);\r\n currentSegment = '';\r\n }\r\n else {\r\n currentSegment += char;\r\n }\r\n }\r\n if (currentSegment) {\r\n result.push(currentSegment);\r\n }\r\n return result;\r\n }\r\n function declaration() {\r\n const pos = position();\r\n const propMatch = match(/^(\\*?[-#\\/\\*\\\\\\w]+(\\[[0-9a-z_-]+\\])?)\\s*/);\r\n if (!propMatch) {\r\n return;\r\n }\r\n const prop = trim(propMatch[0]);\r\n if (!match(/^:\\s*/)) {\r\n return error(`property missing ':'`);\r\n }\r\n const val = match(/^((?:'(?:\\\\'|.)*?'|\"(?:\\\\\"|.)*?\"|\\([^\\)]*?\\)|[^};])+)/);\r\n const ret = pos({\r\n type: 'declaration',\r\n property: prop.replace(commentre, ''),\r\n value: val ? trim(val[0]).replace(commentre, '') : '',\r\n });\r\n match(/^[;\\s]*/);\r\n return ret;\r\n }\r\n function declarations() {\r\n const decls = [];\r\n if (!open()) {\r\n return error(`missing '{'`);\r\n }\r\n comments(decls);\r\n let decl;\r\n while ((decl = declaration())) {\r\n if (decl !== false) {\r\n decls.push(decl);\r\n comments(decls);\r\n }\r\n decl = declaration();\r\n }\r\n if (!close()) {\r\n return error(`missing '}'`);\r\n }\r\n return decls;\r\n }\r\n function keyframe() {\r\n let m;\r\n const vals = [];\r\n const pos = position();\r\n while ((m = match(/^((\\d+\\.\\d+|\\.\\d+|\\d+)%?|[a-z]+)\\s*/))) {\r\n vals.push(m[1]);\r\n match(/^,\\s*/);\r\n }\r\n if (!vals.length) {\r\n return;\r\n }\r\n return pos({\r\n type: 'keyframe',\r\n values: vals,\r\n declarations: declarations(),\r\n });\r\n }\r\n function atkeyframes() {\r\n const pos = position();\r\n let m = match(/^@([-\\w]+)?keyframes\\s*/);\r\n if (!m) {\r\n return;\r\n }\r\n const vendor = m[1];\r\n m = match(/^([-\\w]+)\\s*/);\r\n if (!m) {\r\n return error('@keyframes missing name');\r\n }\r\n const name = m[1];\r\n if (!open()) {\r\n return error(`@keyframes missing '{'`);\r\n }\r\n let frame;\r\n let frames = comments();\r\n while ((frame = keyframe())) {\r\n frames.push(frame);\r\n frames = frames.concat(comments());\r\n }\r\n if (!close()) {\r\n return error(`@keyframes missing '}'`);\r\n }\r\n return pos({\r\n type: 'keyframes',\r\n name,\r\n vendor,\r\n keyframes: frames,\r\n });\r\n }\r\n function atsupports() {\r\n const pos = position();\r\n const m = match(/^@supports *([^{]+)/);\r\n if (!m) {\r\n return;\r\n }\r\n const supports = trim(m[1]);\r\n if (!open()) {\r\n return error(`@supports missing '{'`);\r\n }\r\n const style = comments().concat(rules());\r\n if (!close()) {\r\n return error(`@supports missing '}'`);\r\n }\r\n return pos({\r\n type: 'supports',\r\n supports,\r\n rules: style,\r\n });\r\n }\r\n function athost() {\r\n const pos = position();\r\n const m = match(/^@host\\s*/);\r\n if (!m) {\r\n return;\r\n }\r\n if (!open()) {\r\n return error(`@host missing '{'`);\r\n }\r\n const style = comments().concat(rules());\r\n if (!close()) {\r\n return error(`@host missing '}'`);\r\n }\r\n return pos({\r\n type: 'host',\r\n rules: style,\r\n });\r\n }\r\n function atmedia() {\r\n const pos = position();\r\n const m = match(/^@media *([^{]+)/);\r\n if (!m) {\r\n return;\r\n }\r\n const media = trim(m[1]);\r\n if (!open()) {\r\n return error(`@media missing '{'`);\r\n }\r\n const style = comments().concat(rules());\r\n if (!close()) {\r\n return error(`@media missing '}'`);\r\n }\r\n return pos({\r\n type: 'media',\r\n media,\r\n rules: style,\r\n });\r\n }\r\n function atcustommedia() {\r\n const pos = position();\r\n const m = match(/^@custom-media\\s+(--[^\\s]+)\\s*([^{;]+);/);\r\n if (!m) {\r\n return;\r\n }\r\n return pos({\r\n type: 'custom-media',\r\n name: trim(m[1]),\r\n media: trim(m[2]),\r\n });\r\n }\r\n function atpage() {\r\n const pos = position();\r\n const m = match(/^@page */);\r\n if (!m) {\r\n return;\r\n }\r\n const sel = selector() || [];\r\n if (!open()) {\r\n return error(`@page missing '{'`);\r\n }\r\n let decls = comments();\r\n let decl;\r\n while ((decl = declaration())) {\r\n decls.push(decl);\r\n decls = decls.concat(comments());\r\n }\r\n if (!close()) {\r\n return error(`@page missing '}'`);\r\n }\r\n return pos({\r\n type: 'page',\r\n selectors: sel,\r\n declarations: decls,\r\n });\r\n }\r\n function atdocument() {\r\n const pos = position();\r\n const m = match(/^@([-\\w]+)?document *([^{]+)/);\r\n if (!m) {\r\n return;\r\n }\r\n const vendor = trim(m[1]);\r\n const doc = trim(m[2]);\r\n if (!open()) {\r\n return error(`@document missing '{'`);\r\n }\r\n const style = comments().concat(rules());\r\n if (!close()) {\r\n return error(`@document missing '}'`);\r\n }\r\n return pos({\r\n type: 'document',\r\n document: doc,\r\n vendor,\r\n rules: style,\r\n });\r\n }\r\n function atfontface() {\r\n const pos = position();\r\n const m = match(/^@font-face\\s*/);\r\n if (!m) {\r\n return;\r\n }\r\n if (!open()) {\r\n return error(`@font-face missing '{'`);\r\n }\r\n let decls = comments();\r\n let decl;\r\n while ((decl = declaration())) {\r\n decls.push(decl);\r\n decls = decls.concat(comments());\r\n }\r\n if (!close()) {\r\n return error(`@font-face missing '}'`);\r\n }\r\n return pos({\r\n type: 'font-face',\r\n declarations: decls,\r\n });\r\n }\r\n const atimport = _compileAtrule('import');\r\n const atcharset = _compileAtrule('charset');\r\n const atnamespace = _compileAtrule('namespace');\r\n function _compileAtrule(name) {\r\n const re = new RegExp('^@' + name + '\\\\s*([^;]+);');\r\n return () => {\r\n const pos = position();\r\n const m = match(re);\r\n if (!m) {\r\n return;\r\n }\r\n const ret = { type: name };\r\n ret[name] = m[1].trim();\r\n return pos(ret);\r\n };\r\n }\r\n function atrule() {\r\n if (css[0] !== '@') {\r\n return;\r\n }\r\n return (atkeyframes() ||\r\n atmedia() ||\r\n atcustommedia() ||\r\n atsupports() ||\r\n atimport() ||\r\n atcharset() ||\r\n atnamespace() ||\r\n atdocument() ||\r\n atpage() ||\r\n athost() ||\r\n atfontface());\r\n }\r\n function rule() {\r\n const pos = position();\r\n const sel = selector();\r\n if (!sel) {\r\n return error('selector missing');\r\n }\r\n comments();\r\n return pos({\r\n type: 'rule',\r\n selectors: sel,\r\n declarations: declarations(),\r\n });\r\n }\r\n return addParent(stylesheet());\r\n}\r\nfunction trim(str) {\r\n return str ? str.replace(/^\\s+|\\s+$/g, '') : '';\r\n}\r\nfunction addParent(obj, parent) {\r\n const isNode = obj && typeof obj.type === 'string';\r\n const childParent = isNode ? obj : parent;\r\n for (const k of Object.keys(obj)) {\r\n const value = obj[k];\r\n if (Array.isArray(value)) {\r\n value.forEach((v) => {\r\n addParent(v, childParent);\r\n });\r\n }\r\n else if (value && typeof value === 'object') {\r\n addParent(value, childParent);\r\n }\r\n }\r\n if (isNode) {\r\n Object.defineProperty(obj, 'parent', {\r\n configurable: true,\r\n writable: true,\r\n enumerable: false,\r\n value: parent || null,\r\n });\r\n }\r\n return obj;\r\n}\n\nconst tagMap = {\r\n script: 'noscript',\r\n altglyph: 'altGlyph',\r\n altglyphdef: 'altGlyphDef',\r\n altglyphitem: 'altGlyphItem',\r\n animatecolor: 'animateColor',\r\n animatemotion: 'animateMotion',\r\n animatetransform: 'animateTransform',\r\n clippath: 'clipPath',\r\n feblend: 'feBlend',\r\n fecolormatrix: 'feColorMatrix',\r\n fecomponenttransfer: 'feComponentTransfer',\r\n fecomposite: 'feComposite',\r\n feconvolvematrix: 'feConvolveMatrix',\r\n fediffuselighting: 'feDiffuseLighting',\r\n fedisplacementmap: 'feDisplacementMap',\r\n fedistantlight: 'feDistantLight',\r\n fedropshadow: 'feDropShadow',\r\n feflood: 'feFlood',\r\n fefunca: 'feFuncA',\r\n fefuncb: 'feFuncB',\r\n fefuncg: 'feFuncG',\r\n fefuncr: 'feFuncR',\r\n fegaussianblur: 'feGaussianBlur',\r\n feimage: 'feImage',\r\n femerge: 'feMerge',\r\n femergenode: 'feMergeNode',\r\n femorphology: 'feMorphology',\r\n feoffset: 'feOffset',\r\n fepointlight: 'fePointLight',\r\n fespecularlighting: 'feSpecularLighting',\r\n fespotlight: 'feSpotLight',\r\n fetile: 'feTile',\r\n feturbulence: 'feTurbulence',\r\n foreignobject: 'foreignObject',\r\n glyphref: 'glyphRef',\r\n lineargradient: 'linearGradient',\r\n radialgradient: 'radialGradient',\r\n};\r\nfunction getTagName(n) {\r\n let tagName = tagMap[n.tagName] ? tagMap[n.tagName] : n.tagName;\r\n if (tagName === 'link' && n.attributes._cssText) {\r\n tagName = 'style';\r\n }\r\n return tagName;\r\n}\r\nfunction escapeRegExp(str) {\r\n return str.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\r\n}\r\nconst HOVER_SELECTOR = /([^\\\\]):hover/;\r\nconst HOVER_SELECTOR_GLOBAL = new RegExp(HOVER_SELECTOR.source, 'g');\r\nfunction addHoverClass(cssText, cache) {\r\n const cachedStyle = cache?.stylesWithHoverClass.get(cssText);\r\n if (cachedStyle)\r\n return cachedStyle;\r\n if (cssText.length >= 1000000) {\r\n return cssText;\r\n }\r\n const ast = parse(cssText, {\r\n silent: true,\r\n });\r\n if (!ast.stylesheet) {\r\n return cssText;\r\n }\r\n const selectors = [];\r\n ast.stylesheet.rules.forEach((rule) => {\r\n if ('selectors' in rule) {\r\n (rule.selectors || []).forEach((selector) => {\r\n if (HOVER_SELECTOR.test(selector)) {\r\n selectors.push(selector);\r\n }\r\n });\r\n }\r\n });\r\n if (selectors.length === 0) {\r\n return cssText;\r\n }\r\n const selectorMatcher = new RegExp(selectors\r\n .filter((selector, index) => selectors.indexOf(selector) === index)\r\n .sort((a, b) => b.length - a.length)\r\n .map((selector) => {\r\n return escapeRegExp(selector);\r\n })\r\n .join('|'), 'g');\r\n const result = cssText.replace(selectorMatcher, (selector) => {\r\n const newSelector = selector.replace(HOVER_SELECTOR_GLOBAL, '$1.\\\\:hover');\r\n return `${selector}, ${newSelector}`;\r\n });\r\n cache?.stylesWithHoverClass.set(cssText, result);\r\n return result;\r\n}\r\nfunction createCache() {\r\n const stylesWithHoverClass = new Map();\r\n return {\r\n stylesWithHoverClass,\r\n };\r\n}\r\nfunction buildNode(n, options) {\r\n const { doc, hackCss, cache } = options;\r\n switch (n.type) {\r\n case NodeType.Document:\r\n return doc.implementation.createDocument(null, '', null);\r\n case NodeType.DocumentType:\r\n return doc.implementation.createDocumentType(n.name || 'html', n.publicId, n.systemId);\r\n case NodeType.Element: {\r\n const tagName = getTagName(n);\r\n let node;\r\n if (n.isSVG) {\r\n node = doc.createElementNS('http://www.w3.org/2000/svg', tagName);\r\n }\r\n else {\r\n if (n.isCustom &&\r\n doc.defaultView?.customElements &&\r\n !doc.defaultView.customElements.get(n.tagName))\r\n doc.defaultView.customElements.define(n.tagName, class extends doc.defaultView.HTMLElement {\r\n });\r\n node = doc.createElement(tagName);\r\n }\r\n const specialAttributes = {};\r\n for (const name in n.attributes) {\r\n if (!Object.prototype.hasOwnProperty.call(n.attributes, name)) {\r\n continue;\r\n }\r\n let value = n.attributes[name];\r\n if (tagName === 'option' &&\r\n name === 'selected' &&\r\n value === false) {\r\n continue;\r\n }\r\n if (value === null) {\r\n continue;\r\n }\r\n if (value === true)\r\n value = '';\r\n if (name.startsWith('rr_')) {\r\n specialAttributes[name] = value;\r\n continue;\r\n }\r\n const isTextarea = tagName === 'textarea' && name === 'value';\r\n const isRemoteOrDynamicCss = tagName === 'style' && name === '_cssText';\r\n if (isRemoteOrDynamicCss && hackCss && typeof value === 'string') {\r\n value = addHoverClass(value, cache);\r\n }\r\n if ((isTextarea || isRemoteOrDynamicCss) && typeof value === 'string') {\r\n const child = doc.createTextNode(value);\r\n for (const c of Array.from(node.childNodes)) {\r\n if (c.nodeType === node.TEXT_NODE) {\r\n node.removeChild(c);\r\n }\r\n }\r\n node.appendChild(child);\r\n continue;\r\n }\r\n try {\r\n if (n.isSVG && name === 'xlink:href') {\r\n node.setAttributeNS('http://www.w3.org/1999/xlink', name, value.toString());\r\n }\r\n else if (name === 'onload' ||\r\n name === 'onclick' ||\r\n name.substring(0, 7) === 'onmouse') {\r\n node.setAttribute('_' + name, value.toString());\r\n }\r\n else if (tagName === 'meta' &&\r\n n.attributes['http-equiv'] === 'Content-Security-Policy' &&\r\n name === 'content') {\r\n node.setAttribute('csp-content', value.toString());\r\n continue;\r\n }\r\n else if (tagName === 'link' &&\r\n (n.attributes.rel === 'preload' ||\r\n n.attributes.rel === 'modulepreload') &&\r\n n.attributes.as === 'script') {\r\n }\r\n else if (tagName === 'link' &&\r\n n.attributes.rel === 'prefetch' &&\r\n typeof n.attributes.href === 'string' &&\r\n n.attributes.href.endsWith('.js')) {\r\n }\r\n else if (tagName === 'img' &&\r\n n.attributes.srcset &&\r\n n.attributes.rr_dataURL) {\r\n node.setAttribute('rrweb-original-srcset', n.attributes.srcset);\r\n }\r\n else {\r\n node.setAttribute(name, value.toString());\r\n }\r\n }\r\n catch (error) {\r\n }\r\n }\r\n for (const name in specialAttributes) {\r\n const value = specialAttributes[name];\r\n if (tagName === 'canvas' && name === 'rr_dataURL') {\r\n const image = document.createElement('img');\r\n image.onload = () => {\r\n const ctx = node.getContext('2d');\r\n if (ctx) {\r\n ctx.drawImage(image, 0, 0, image.width, image.height);\r\n }\r\n };\r\n image.src = value.toString();\r\n if (node.RRNodeType)\r\n node.rr_dataURL = value.toString();\r\n }\r\n else if (tagName === 'img' && name === 'rr_dataURL') {\r\n const image = node;\r\n if (!image.currentSrc.startsWith('data:')) {\r\n image.setAttribute('rrweb-original-src', n.attributes.src);\r\n image.src = value.toString();\r\n }\r\n }\r\n if (name === 'rr_width') {\r\n node.style.setProperty('width', value.toString());\r\n }\r\n else if (name === 'rr_height') {\r\n node.style.setProperty('height', value.toString());\r\n }\r\n else if (name === 'rr_mediaCurrentTime' &&\r\n typeof value === 'number') {\r\n node.currentTime = value;\r\n }\r\n else if (name === 'rr_mediaState') {\r\n switch (value) {\r\n case 'played':\r\n node\r\n .play()\r\n .catch((e) => console.warn('media playback error', e));\r\n break;\r\n case 'paused':\r\n node.pause();\r\n break;\r\n }\r\n }\r\n }\r\n if (n.isShadowHost) {\r\n if (!node.shadowRoot) {\r\n node.attachShadow({ mode: 'open' });\r\n }\r\n else {\r\n while (node.shadowRoot.firstChild) {\r\n node.shadowRoot.removeChild(node.shadowRoot.firstChild);\r\n }\r\n }\r\n }\r\n return node;\r\n }\r\n case NodeType.Text:\r\n return doc.createTextNode(n.isStyle && hackCss\r\n ? addHoverClass(n.textContent, cache)\r\n : n.textContent);\r\n case NodeType.CDATA:\r\n return doc.createCDATASection(n.textContent);\r\n case NodeType.Comment:\r\n return doc.createComment(n.textContent);\r\n default:\r\n return null;\r\n }\r\n}\r\nfunction buildNodeWithSN(n, options) {\r\n const { doc, mirror, skipChild = false, hackCss = true, afterAppend, cache, } = options;\r\n if (mirror.has(n.id)) {\r\n const nodeInMirror = mirror.getNode(n.id);\r\n const meta = mirror.getMeta(nodeInMirror);\r\n if (isNodeMetaEqual(meta, n))\r\n return mirror.getNode(n.id);\r\n }\r\n let node = buildNode(n, { doc, hackCss, cache });\r\n if (!node) {\r\n return null;\r\n }\r\n if (n.rootId && mirror.getNode(n.rootId) !== doc) {\r\n mirror.replace(n.rootId, doc);\r\n }\r\n if (n.type === NodeType.Document) {\r\n doc.close();\r\n doc.open();\r\n if (n.compatMode === 'BackCompat' &&\r\n n.childNodes &&\r\n n.childNodes[0].type !== NodeType.DocumentType) {\r\n if (n.childNodes[0].type === NodeType.Element &&\r\n 'xmlns' in n.childNodes[0].attributes &&\r\n n.childNodes[0].attributes.xmlns === 'http://www.w3.org/1999/xhtml') {\r\n doc.write('');\r\n }\r\n else {\r\n doc.write('');\r\n }\r\n }\r\n node = doc;\r\n }\r\n mirror.add(node, n);\r\n if ((n.type === NodeType.Document || n.type === NodeType.Element) &&\r\n !skipChild) {\r\n for (const childN of n.childNodes) {\r\n const childNode = buildNodeWithSN(childN, {\r\n doc,\r\n mirror,\r\n skipChild: false,\r\n hackCss,\r\n afterAppend,\r\n cache,\r\n });\r\n if (!childNode) {\r\n console.warn('Failed to rebuild', childN);\r\n continue;\r\n }\r\n if (childN.isShadow && isElement(node) && node.shadowRoot) {\r\n node.shadowRoot.appendChild(childNode);\r\n }\r\n else if (n.type === NodeType.Document &&\r\n childN.type == NodeType.Element) {\r\n const htmlElement = childNode;\r\n let body = null;\r\n htmlElement.childNodes.forEach((child) => {\r\n if (child.nodeName === 'BODY')\r\n body = child;\r\n });\r\n if (body) {\r\n htmlElement.removeChild(body);\r\n node.appendChild(childNode);\r\n htmlElement.appendChild(body);\r\n }\r\n else {\r\n node.appendChild(childNode);\r\n }\r\n }\r\n else {\r\n node.appendChild(childNode);\r\n }\r\n if (afterAppend) {\r\n afterAppend(childNode, childN.id);\r\n }\r\n }\r\n }\r\n return node;\r\n}\r\nfunction visit(mirror, onVisit) {\r\n function walk(node) {\r\n onVisit(node);\r\n }\r\n for (const id of mirror.getIds()) {\r\n if (mirror.has(id)) {\r\n walk(mirror.getNode(id));\r\n }\r\n }\r\n}\r\nfunction handleScroll(node, mirror) {\r\n const n = mirror.getMeta(node);\r\n if (n?.type !== NodeType.Element) {\r\n return;\r\n }\r\n const el = node;\r\n for (const name in n.attributes) {\r\n if (!(Object.prototype.hasOwnProperty.call(n.attributes, name) &&\r\n name.startsWith('rr_'))) {\r\n continue;\r\n }\r\n const value = n.attributes[name];\r\n if (name === 'rr_scrollLeft') {\r\n el.scrollLeft = value;\r\n }\r\n if (name === 'rr_scrollTop') {\r\n el.scrollTop = value;\r\n }\r\n }\r\n}\r\nfunction rebuild(n, options) {\r\n const { doc, onVisit, hackCss = true, afterAppend, cache, mirror = new Mirror(), } = options;\r\n const node = buildNodeWithSN(n, {\r\n doc,\r\n mirror,\r\n skipChild: false,\r\n hackCss,\r\n afterAppend,\r\n cache,\r\n });\r\n visit(mirror, (visitedNode) => {\r\n if (onVisit) {\r\n onVisit(visitedNode);\r\n }\r\n handleScroll(visitedNode, mirror);\r\n });\r\n return node;\r\n}\n\nexport { IGNORED_NODE, Mirror, NodeType, addHoverClass, buildNodeWithSN, createCache, createMatchPredicate, createMirror, distanceToMatch, escapeImportStatement, fixSafariColons, genId, getInputType, getInputValue, ignoreAttribute, is2DCanvasBlank, isCSSImportRule, isCSSStyleRule, isElement, isNativeShadowDom, isNodeMetaEqual, isShadowRoot, maskInputValue, needMaskingText, rebuild, serializeNodeWithId, shouldMaskInput, snapshot, stringifyRule, stringifyStylesheet, toLowerCase, toUpperCase, transformAttribute };\n", "import { distanceToMatch, IGNORED_NODE, isShadowRoot, createMatchPredicate } from '../../rrweb-snapshot/es/rrweb-snapshot.js';\n\nfunction on(type, fn, target = document) {\r\n const options = { capture: true, passive: true };\r\n target.addEventListener(type, fn, options);\r\n return () => target.removeEventListener(type, fn, options);\r\n}\r\nconst DEPARTED_MIRROR_ACCESS_WARNING = 'Please stop import mirror directly. Instead of that,' +\r\n '\\r\\n' +\r\n 'now you can use replayer.getMirror() to access the mirror instance of a replayer,' +\r\n '\\r\\n' +\r\n 'or you can use record.mirror to access the mirror instance during recording.';\r\nlet _mirror = {\r\n map: {},\r\n getId() {\r\n console.error(DEPARTED_MIRROR_ACCESS_WARNING);\r\n return -1;\r\n },\r\n getNode() {\r\n console.error(DEPARTED_MIRROR_ACCESS_WARNING);\r\n return null;\r\n },\r\n removeNodeFromMap() {\r\n console.error(DEPARTED_MIRROR_ACCESS_WARNING);\r\n },\r\n has() {\r\n console.error(DEPARTED_MIRROR_ACCESS_WARNING);\r\n return false;\r\n },\r\n reset() {\r\n console.error(DEPARTED_MIRROR_ACCESS_WARNING);\r\n },\r\n};\r\nif (typeof window !== 'undefined' && window.Proxy && window.Reflect) {\r\n _mirror = new Proxy(_mirror, {\r\n get(target, prop, receiver) {\r\n if (prop === 'map') {\r\n console.error(DEPARTED_MIRROR_ACCESS_WARNING);\r\n }\r\n return Reflect.get(target, prop, receiver);\r\n },\r\n });\r\n}\r\nfunction throttle(func, wait, options = {}) {\r\n let timeout = null;\r\n let previous = 0;\r\n return function (...args) {\r\n const now = Date.now();\r\n if (!previous && options.leading === false) {\r\n previous = now;\r\n }\r\n const remaining = wait - (now - previous);\r\n const context = this;\r\n if (remaining <= 0 || remaining > wait) {\r\n if (timeout) {\r\n clearTimeout(timeout);\r\n timeout = null;\r\n }\r\n previous = now;\r\n func.apply(context, args);\r\n }\r\n else if (!timeout && options.trailing !== false) {\r\n timeout = setTimeout(() => {\r\n previous = options.leading === false ? 0 : Date.now();\r\n timeout = null;\r\n func.apply(context, args);\r\n }, remaining);\r\n }\r\n };\r\n}\r\nfunction hookSetter(target, key, d, isRevoked, win = window) {\r\n const original = win.Object.getOwnPropertyDescriptor(target, key);\r\n win.Object.defineProperty(target, key, isRevoked\r\n ? d\r\n : {\r\n set(value) {\r\n setTimeout(() => {\r\n d.set.call(this, value);\r\n }, 0);\r\n if (original && original.set) {\r\n original.set.call(this, value);\r\n }\r\n },\r\n });\r\n return () => hookSetter(target, key, original || {}, true);\r\n}\r\nfunction patch(source, name, replacement) {\r\n try {\r\n if (!(name in source)) {\r\n return () => {\r\n };\r\n }\r\n const original = source[name];\r\n const wrapped = replacement(original);\r\n if (typeof wrapped === 'function') {\r\n wrapped.prototype = wrapped.prototype || {};\r\n Object.defineProperties(wrapped, {\r\n __rrweb_original__: {\r\n enumerable: false,\r\n value: original,\r\n },\r\n });\r\n }\r\n source[name] = wrapped;\r\n return () => {\r\n source[name] = original;\r\n };\r\n }\r\n catch {\r\n return () => {\r\n };\r\n }\r\n}\r\nlet nowTimestamp = Date.now;\r\nif (!(/[1-9][0-9]{12}/.test(Date.now().toString()))) {\r\n nowTimestamp = () => new Date().getTime();\r\n}\r\nfunction getWindowScroll(win) {\r\n const doc = win.document;\r\n return {\r\n left: doc.scrollingElement\r\n ? doc.scrollingElement.scrollLeft\r\n : win.pageXOffset !== undefined\r\n ? win.pageXOffset\r\n : doc?.documentElement.scrollLeft ||\r\n doc?.body?.parentElement?.scrollLeft ||\r\n doc?.body?.scrollLeft ||\r\n 0,\r\n top: doc.scrollingElement\r\n ? doc.scrollingElement.scrollTop\r\n : win.pageYOffset !== undefined\r\n ? win.pageYOffset\r\n : doc?.documentElement.scrollTop ||\r\n doc?.body?.parentElement?.scrollTop ||\r\n doc?.body?.scrollTop ||\r\n 0,\r\n };\r\n}\r\nfunction getWindowHeight() {\r\n return (window.innerHeight ||\r\n (document.documentElement && document.documentElement.clientHeight) ||\r\n (document.body && document.body.clientHeight));\r\n}\r\nfunction getWindowWidth() {\r\n return (window.innerWidth ||\r\n (document.documentElement && document.documentElement.clientWidth) ||\r\n (document.body && document.body.clientWidth));\r\n}\r\nfunction closestElementOfNode(node) {\r\n if (!node) {\r\n return null;\r\n }\r\n const el = node.nodeType === node.ELEMENT_NODE\r\n ? node\r\n : node.parentElement;\r\n return el;\r\n}\r\nfunction isBlocked(node, blockClass, blockSelector, unblockSelector, checkAncestors) {\r\n if (!node) {\r\n return false;\r\n }\r\n const el = closestElementOfNode(node);\r\n if (!el) {\r\n return false;\r\n }\r\n const blockedPredicate = createMatchPredicate(blockClass, blockSelector);\r\n if (!checkAncestors) {\r\n const isUnblocked = unblockSelector && el.matches(unblockSelector);\r\n return blockedPredicate(el) && !isUnblocked;\r\n }\r\n const blockDistance = distanceToMatch(el, blockedPredicate);\r\n let unblockDistance = -1;\r\n if (blockDistance < 0) {\r\n return false;\r\n }\r\n if (unblockSelector) {\r\n unblockDistance = distanceToMatch(el, createMatchPredicate(null, unblockSelector));\r\n }\r\n if (blockDistance > -1 && unblockDistance < 0) {\r\n return true;\r\n }\r\n return blockDistance < unblockDistance;\r\n}\r\nfunction isSerialized(n, mirror) {\r\n return mirror.getId(n) !== -1;\r\n}\r\nfunction isIgnored(n, mirror) {\r\n return mirror.getId(n) === IGNORED_NODE;\r\n}\r\nfunction isAncestorRemoved(target, mirror) {\r\n if (isShadowRoot(target)) {\r\n return false;\r\n }\r\n const id = mirror.getId(target);\r\n if (!mirror.has(id)) {\r\n return true;\r\n }\r\n if (target.parentNode &&\r\n target.parentNode.nodeType === target.DOCUMENT_NODE) {\r\n return false;\r\n }\r\n if (!target.parentNode) {\r\n return true;\r\n }\r\n return isAncestorRemoved(target.parentNode, mirror);\r\n}\r\nfunction legacy_isTouchEvent(event) {\r\n return Boolean(event.changedTouches);\r\n}\r\nfunction polyfill(win = window) {\r\n if ('NodeList' in win && !win.NodeList.prototype.forEach) {\r\n win.NodeList.prototype.forEach = Array.prototype\r\n .forEach;\r\n }\r\n if ('DOMTokenList' in win && !win.DOMTokenList.prototype.forEach) {\r\n win.DOMTokenList.prototype.forEach = Array.prototype\r\n .forEach;\r\n }\r\n if (!Node.prototype.contains) {\r\n Node.prototype.contains = (...args) => {\r\n let node = args[0];\r\n if (!(0 in args)) {\r\n throw new TypeError('1 argument is required');\r\n }\r\n do {\r\n if (this === node) {\r\n return true;\r\n }\r\n } while ((node = node && node.parentNode));\r\n return false;\r\n };\r\n }\r\n}\r\nfunction queueToResolveTrees(queue) {\r\n const queueNodeMap = {};\r\n const putIntoMap = (m, parent) => {\r\n const nodeInTree = {\r\n value: m,\r\n parent,\r\n children: [],\r\n };\r\n queueNodeMap[m.node.id] = nodeInTree;\r\n return nodeInTree;\r\n };\r\n const queueNodeTrees = [];\r\n for (const mutation of queue) {\r\n const { nextId, parentId } = mutation;\r\n if (nextId && nextId in queueNodeMap) {\r\n const nextInTree = queueNodeMap[nextId];\r\n if (nextInTree.parent) {\r\n const idx = nextInTree.parent.children.indexOf(nextInTree);\r\n nextInTree.parent.children.splice(idx, 0, putIntoMap(mutation, nextInTree.parent));\r\n }\r\n else {\r\n const idx = queueNodeTrees.indexOf(nextInTree);\r\n queueNodeTrees.splice(idx, 0, putIntoMap(mutation, null));\r\n }\r\n continue;\r\n }\r\n if (parentId in queueNodeMap) {\r\n const parentInTree = queueNodeMap[parentId];\r\n parentInTree.children.push(putIntoMap(mutation, parentInTree));\r\n continue;\r\n }\r\n queueNodeTrees.push(putIntoMap(mutation, null));\r\n }\r\n return queueNodeTrees;\r\n}\r\nfunction iterateResolveTree(tree, cb) {\r\n cb(tree.value);\r\n for (let i = tree.children.length - 1; i >= 0; i--) {\r\n iterateResolveTree(tree.children[i], cb);\r\n }\r\n}\r\nfunction isSerializedIframe(n, mirror) {\r\n return Boolean(n.nodeName === 'IFRAME' && mirror.getMeta(n));\r\n}\r\nfunction isSerializedStylesheet(n, mirror) {\r\n return Boolean(n.nodeName === 'LINK' &&\r\n n.nodeType === n.ELEMENT_NODE &&\r\n n.getAttribute &&\r\n n.getAttribute('rel') === 'stylesheet' &&\r\n mirror.getMeta(n));\r\n}\r\nfunction getBaseDimension(node, rootIframe) {\r\n const frameElement = node.ownerDocument?.defaultView?.frameElement;\r\n if (!frameElement || frameElement === rootIframe) {\r\n return {\r\n x: 0,\r\n y: 0,\r\n relativeScale: 1,\r\n absoluteScale: 1,\r\n };\r\n }\r\n const frameDimension = frameElement.getBoundingClientRect();\r\n const frameBaseDimension = getBaseDimension(frameElement, rootIframe);\r\n const relativeScale = frameDimension.height / frameElement.clientHeight;\r\n return {\r\n x: frameDimension.x * frameBaseDimension.relativeScale +\r\n frameBaseDimension.x,\r\n y: frameDimension.y * frameBaseDimension.relativeScale +\r\n frameBaseDimension.y,\r\n relativeScale,\r\n absoluteScale: frameBaseDimension.absoluteScale * relativeScale,\r\n };\r\n}\r\nfunction hasShadowRoot(n) {\r\n return Boolean(n?.shadowRoot);\r\n}\r\nfunction getNestedRule(rules, position) {\r\n const rule = rules[position[0]];\r\n if (position.length === 1) {\r\n return rule;\r\n }\r\n else {\r\n return getNestedRule(rule.cssRules[position[1]].cssRules, position.slice(2));\r\n }\r\n}\r\nfunction getPositionsAndIndex(nestedIndex) {\r\n const positions = [...nestedIndex];\r\n const index = positions.pop();\r\n return { positions, index };\r\n}\r\nfunction uniqueTextMutations(mutations) {\r\n const idSet = new Set();\r\n const uniqueMutations = [];\r\n for (let i = mutations.length; i--;) {\r\n const mutation = mutations[i];\r\n if (!idSet.has(mutation.id)) {\r\n uniqueMutations.push(mutation);\r\n idSet.add(mutation.id);\r\n }\r\n }\r\n return uniqueMutations;\r\n}\r\nclass StyleSheetMirror {\r\n constructor() {\r\n this.id = 1;\r\n this.styleIDMap = new WeakMap();\r\n this.idStyleMap = new Map();\r\n }\r\n getId(stylesheet) {\r\n return this.styleIDMap.get(stylesheet) ?? -1;\r\n }\r\n has(stylesheet) {\r\n return this.styleIDMap.has(stylesheet);\r\n }\r\n add(stylesheet, id) {\r\n if (this.has(stylesheet))\r\n return this.getId(stylesheet);\r\n let newId;\r\n if (id === undefined) {\r\n newId = this.id++;\r\n }\r\n else\r\n newId = id;\r\n this.styleIDMap.set(stylesheet, newId);\r\n this.idStyleMap.set(newId, stylesheet);\r\n return newId;\r\n }\r\n getStyle(id) {\r\n return this.idStyleMap.get(id) || null;\r\n }\r\n reset() {\r\n this.styleIDMap = new WeakMap();\r\n this.idStyleMap = new Map();\r\n this.id = 1;\r\n }\r\n generateId() {\r\n return this.id++;\r\n }\r\n}\r\nfunction getShadowHost(n) {\r\n let shadowHost = null;\r\n if (n.getRootNode?.()?.nodeType === Node.DOCUMENT_FRAGMENT_NODE &&\r\n n.getRootNode().host)\r\n shadowHost = n.getRootNode().host;\r\n return shadowHost;\r\n}\r\nfunction getRootShadowHost(n) {\r\n let rootShadowHost = n;\r\n let shadowHost;\r\n while ((shadowHost = getShadowHost(rootShadowHost)))\r\n rootShadowHost = shadowHost;\r\n return rootShadowHost;\r\n}\r\nfunction shadowHostInDom(n) {\r\n const doc = n.ownerDocument;\r\n if (!doc)\r\n return false;\r\n const shadowHost = getRootShadowHost(n);\r\n return doc.contains(shadowHost);\r\n}\r\nfunction inDom(n) {\r\n const doc = n.ownerDocument;\r\n if (!doc)\r\n return false;\r\n return doc.contains(n) || shadowHostInDom(n);\r\n}\r\nconst cachedImplementations = {};\r\nfunction getImplementation(name) {\r\n const cached = cachedImplementations[name];\r\n if (cached) {\r\n return cached;\r\n }\r\n const document = window.document;\r\n let impl = window[name];\r\n if (document && typeof document.createElement === 'function') {\r\n try {\r\n const sandbox = document.createElement('iframe');\r\n sandbox.hidden = true;\r\n document.head.appendChild(sandbox);\r\n const contentWindow = sandbox.contentWindow;\r\n if (contentWindow && contentWindow[name]) {\r\n impl =\r\n contentWindow[name];\r\n }\r\n document.head.removeChild(sandbox);\r\n }\r\n catch (e) {\r\n }\r\n }\r\n return (cachedImplementations[name] = impl.bind(window));\r\n}\r\nfunction onRequestAnimationFrame(...rest) {\r\n return getImplementation('requestAnimationFrame')(...rest);\r\n}\r\nfunction setTimeout(...rest) {\r\n return getImplementation('setTimeout')(...rest);\r\n}\r\nfunction clearTimeout(...rest) {\r\n return getImplementation('clearTimeout')(...rest);\r\n}\n\nexport { StyleSheetMirror, _mirror, clearTimeout, closestElementOfNode, getBaseDimension, getNestedRule, getPositionsAndIndex, getRootShadowHost, getShadowHost, getWindowHeight, getWindowScroll, getWindowWidth, hasShadowRoot, hookSetter, inDom, isAncestorRemoved, isBlocked, isIgnored, isSerialized, isSerializedIframe, isSerializedStylesheet, iterateResolveTree, legacy_isTouchEvent, nowTimestamp, on, onRequestAnimationFrame, patch, polyfill, queueToResolveTrees, setTimeout, shadowHostInDom, throttle, uniqueTextMutations };\n", "var EventType = /* @__PURE__ */ ((EventType2) => {\n EventType2[EventType2[\"DomContentLoaded\"] = 0] = \"DomContentLoaded\";\n EventType2[EventType2[\"Load\"] = 1] = \"Load\";\n EventType2[EventType2[\"FullSnapshot\"] = 2] = \"FullSnapshot\";\n EventType2[EventType2[\"IncrementalSnapshot\"] = 3] = \"IncrementalSnapshot\";\n EventType2[EventType2[\"Meta\"] = 4] = \"Meta\";\n EventType2[EventType2[\"Custom\"] = 5] = \"Custom\";\n EventType2[EventType2[\"Plugin\"] = 6] = \"Plugin\";\n return EventType2;\n})(EventType || {});\nvar IncrementalSource = /* @__PURE__ */ ((IncrementalSource2) => {\n IncrementalSource2[IncrementalSource2[\"Mutation\"] = 0] = \"Mutation\";\n IncrementalSource2[IncrementalSource2[\"MouseMove\"] = 1] = \"MouseMove\";\n IncrementalSource2[IncrementalSource2[\"MouseInteraction\"] = 2] = \"MouseInteraction\";\n IncrementalSource2[IncrementalSource2[\"Scroll\"] = 3] = \"Scroll\";\n IncrementalSource2[IncrementalSource2[\"ViewportResize\"] = 4] = \"ViewportResize\";\n IncrementalSource2[IncrementalSource2[\"Input\"] = 5] = \"Input\";\n IncrementalSource2[IncrementalSource2[\"TouchMove\"] = 6] = \"TouchMove\";\n IncrementalSource2[IncrementalSource2[\"MediaInteraction\"] = 7] = \"MediaInteraction\";\n IncrementalSource2[IncrementalSource2[\"StyleSheetRule\"] = 8] = \"StyleSheetRule\";\n IncrementalSource2[IncrementalSource2[\"CanvasMutation\"] = 9] = \"CanvasMutation\";\n IncrementalSource2[IncrementalSource2[\"Font\"] = 10] = \"Font\";\n IncrementalSource2[IncrementalSource2[\"Log\"] = 11] = \"Log\";\n IncrementalSource2[IncrementalSource2[\"Drag\"] = 12] = \"Drag\";\n IncrementalSource2[IncrementalSource2[\"StyleDeclaration\"] = 13] = \"StyleDeclaration\";\n IncrementalSource2[IncrementalSource2[\"Selection\"] = 14] = \"Selection\";\n IncrementalSource2[IncrementalSource2[\"AdoptedStyleSheet\"] = 15] = \"AdoptedStyleSheet\";\n IncrementalSource2[IncrementalSource2[\"CustomElement\"] = 16] = \"CustomElement\";\n return IncrementalSource2;\n})(IncrementalSource || {});\nvar MouseInteractions = /* @__PURE__ */ ((MouseInteractions2) => {\n MouseInteractions2[MouseInteractions2[\"MouseUp\"] = 0] = \"MouseUp\";\n MouseInteractions2[MouseInteractions2[\"MouseDown\"] = 1] = \"MouseDown\";\n MouseInteractions2[MouseInteractions2[\"Click\"] = 2] = \"Click\";\n MouseInteractions2[MouseInteractions2[\"ContextMenu\"] = 3] = \"ContextMenu\";\n MouseInteractions2[MouseInteractions2[\"DblClick\"] = 4] = \"DblClick\";\n MouseInteractions2[MouseInteractions2[\"Focus\"] = 5] = \"Focus\";\n MouseInteractions2[MouseInteractions2[\"Blur\"] = 6] = \"Blur\";\n MouseInteractions2[MouseInteractions2[\"TouchStart\"] = 7] = \"TouchStart\";\n MouseInteractions2[MouseInteractions2[\"TouchMove_Departed\"] = 8] = \"TouchMove_Departed\";\n MouseInteractions2[MouseInteractions2[\"TouchEnd\"] = 9] = \"TouchEnd\";\n MouseInteractions2[MouseInteractions2[\"TouchCancel\"] = 10] = \"TouchCancel\";\n return MouseInteractions2;\n})(MouseInteractions || {});\nvar PointerTypes = /* @__PURE__ */ ((PointerTypes2) => {\n PointerTypes2[PointerTypes2[\"Mouse\"] = 0] = \"Mouse\";\n PointerTypes2[PointerTypes2[\"Pen\"] = 1] = \"Pen\";\n PointerTypes2[PointerTypes2[\"Touch\"] = 2] = \"Touch\";\n return PointerTypes2;\n})(PointerTypes || {});\nvar CanvasContext = /* @__PURE__ */ ((CanvasContext2) => {\n CanvasContext2[CanvasContext2[\"2D\"] = 0] = \"2D\";\n CanvasContext2[CanvasContext2[\"WebGL\"] = 1] = \"WebGL\";\n CanvasContext2[CanvasContext2[\"WebGL2\"] = 2] = \"WebGL2\";\n return CanvasContext2;\n})(CanvasContext || {});\nvar ReplayerEvents = /* @__PURE__ */ ((ReplayerEvents2) => {\n ReplayerEvents2[\"Start\"] = \"start\";\n ReplayerEvents2[\"Pause\"] = \"pause\";\n ReplayerEvents2[\"Resume\"] = \"resume\";\n ReplayerEvents2[\"Resize\"] = \"resize\";\n ReplayerEvents2[\"Finish\"] = \"finish\";\n ReplayerEvents2[\"FullsnapshotRebuilded\"] = \"fullsnapshot-rebuilded\";\n ReplayerEvents2[\"LoadStylesheetStart\"] = \"load-stylesheet-start\";\n ReplayerEvents2[\"LoadStylesheetEnd\"] = \"load-stylesheet-end\";\n ReplayerEvents2[\"SkipStart\"] = \"skip-start\";\n ReplayerEvents2[\"SkipEnd\"] = \"skip-end\";\n ReplayerEvents2[\"MouseInteraction\"] = \"mouse-interaction\";\n ReplayerEvents2[\"EventCast\"] = \"event-cast\";\n ReplayerEvents2[\"CustomEvent\"] = \"custom-event\";\n ReplayerEvents2[\"Flush\"] = \"flush\";\n ReplayerEvents2[\"StateChange\"] = \"state-change\";\n ReplayerEvents2[\"PlayBack\"] = \"play-back\";\n ReplayerEvents2[\"Destroy\"] = \"destroy\";\n return ReplayerEvents2;\n})(ReplayerEvents || {});\n\nexport { CanvasContext, EventType, IncrementalSource, MouseInteractions, PointerTypes, ReplayerEvents };\n", "import { isShadowRoot, isNativeShadowDom, getInputType, getInputValue, shouldMaskInput, needMaskingText, maskInputValue, ignoreAttribute, transformAttribute, toLowerCase, IGNORED_NODE, serializeNodeWithId } from '../../../rrweb-snapshot/es/rrweb-snapshot.js';\nimport { isIgnored, isBlocked, isSerialized, isAncestorRemoved, closestElementOfNode, hasShadowRoot, inDom, getShadowHost, isSerializedIframe, isSerializedStylesheet } from '../utils.js';\n\nfunction isNodeInLinkedList(n) {\r\n return '__ln' in n;\r\n}\r\nclass DoubleLinkedList {\r\n constructor() {\r\n this.length = 0;\r\n this.head = null;\r\n this.tail = null;\r\n }\r\n get(position) {\r\n if (position >= this.length) {\r\n throw new Error('Position outside of list range');\r\n }\r\n let current = this.head;\r\n for (let index = 0; index < position; index++) {\r\n current = current?.next || null;\r\n }\r\n return current;\r\n }\r\n addNode(n) {\r\n const node = {\r\n value: n,\r\n previous: null,\r\n next: null,\r\n };\r\n n.__ln = node;\r\n if (n.previousSibling && isNodeInLinkedList(n.previousSibling)) {\r\n const current = n.previousSibling.__ln.next;\r\n node.next = current;\r\n node.previous = n.previousSibling.__ln;\r\n n.previousSibling.__ln.next = node;\r\n if (current) {\r\n current.previous = node;\r\n }\r\n }\r\n else if (n.nextSibling &&\r\n isNodeInLinkedList(n.nextSibling) &&\r\n n.nextSibling.__ln.previous) {\r\n const current = n.nextSibling.__ln.previous;\r\n node.previous = current;\r\n node.next = n.nextSibling.__ln;\r\n n.nextSibling.__ln.previous = node;\r\n if (current) {\r\n current.next = node;\r\n }\r\n }\r\n else {\r\n if (this.head) {\r\n this.head.previous = node;\r\n }\r\n node.next = this.head;\r\n this.head = node;\r\n }\r\n if (node.next === null) {\r\n this.tail = node;\r\n }\r\n this.length++;\r\n }\r\n removeNode(n) {\r\n const current = n.__ln;\r\n if (!this.head) {\r\n return;\r\n }\r\n if (!current.previous) {\r\n this.head = current.next;\r\n if (this.head) {\r\n this.head.previous = null;\r\n }\r\n else {\r\n this.tail = null;\r\n }\r\n }\r\n else {\r\n current.previous.next = current.next;\r\n if (current.next) {\r\n current.next.previous = current.previous;\r\n }\r\n else {\r\n this.tail = current.previous;\r\n }\r\n }\r\n if (n.__ln) {\r\n delete n.__ln;\r\n }\r\n this.length--;\r\n }\r\n}\r\nconst moveKey = (id, parentId) => `${id}@${parentId}`;\r\nclass MutationBuffer {\r\n constructor() {\r\n this.frozen = false;\r\n this.locked = false;\r\n this.texts = [];\r\n this.attributes = [];\r\n this.attributeMap = new WeakMap();\r\n this.removes = [];\r\n this.mapRemoves = [];\r\n this.movedMap = {};\r\n this.addedSet = new Set();\r\n this.movedSet = new Set();\r\n this.droppedSet = new Set();\r\n this.processMutations = (mutations) => {\r\n mutations.forEach(this.processMutation);\r\n this.emit();\r\n };\r\n this.emit = () => {\r\n if (this.frozen || this.locked) {\r\n return;\r\n }\r\n const adds = [];\r\n const addedIds = new Set();\r\n const addList = new DoubleLinkedList();\r\n const getNextId = (n) => {\r\n let ns = n;\r\n let nextId = IGNORED_NODE;\r\n while (nextId === IGNORED_NODE) {\r\n ns = ns && ns.nextSibling;\r\n nextId = ns && this.mirror.getId(ns);\r\n }\r\n return nextId;\r\n };\r\n const pushAdd = (n) => {\r\n if (!n.parentNode || !inDom(n)) {\r\n return;\r\n }\r\n const parentId = isShadowRoot(n.parentNode)\r\n ? this.mirror.getId(getShadowHost(n))\r\n : this.mirror.getId(n.parentNode);\r\n const nextId = getNextId(n);\r\n if (parentId === -1 || nextId === -1) {\r\n return addList.addNode(n);\r\n }\r\n const sn = serializeNodeWithId(n, {\r\n doc: this.doc,\r\n mirror: this.mirror,\r\n blockClass: this.blockClass,\r\n blockSelector: this.blockSelector,\r\n maskAllText: this.maskAllText,\r\n unblockSelector: this.unblockSelector,\r\n maskTextClass: this.maskTextClass,\r\n unmaskTextClass: this.unmaskTextClass,\r\n maskTextSelector: this.maskTextSelector,\r\n unmaskTextSelector: this.unmaskTextSelector,\r\n skipChild: true,\r\n newlyAddedElement: true,\r\n inlineStylesheet: this.inlineStylesheet,\r\n maskInputOptions: this.maskInputOptions,\r\n maskAttributeFn: this.maskAttributeFn,\r\n maskTextFn: this.maskTextFn,\r\n maskInputFn: this.maskInputFn,\r\n slimDOMOptions: this.slimDOMOptions,\r\n dataURLOptions: this.dataURLOptions,\r\n recordCanvas: this.recordCanvas,\r\n inlineImages: this.inlineImages,\r\n onSerialize: (currentN) => {\r\n if (isSerializedIframe(currentN, this.mirror)) {\r\n this.iframeManager.addIframe(currentN);\r\n }\r\n if (isSerializedStylesheet(currentN, this.mirror)) {\r\n this.stylesheetManager.trackLinkElement(currentN);\r\n }\r\n if (hasShadowRoot(n)) {\r\n this.shadowDomManager.addShadowRoot(n.shadowRoot, this.doc);\r\n }\r\n },\r\n onIframeLoad: (iframe, childSn) => {\r\n this.iframeManager.attachIframe(iframe, childSn);\r\n this.shadowDomManager.observeAttachShadow(iframe);\r\n },\r\n onStylesheetLoad: (link, childSn) => {\r\n this.stylesheetManager.attachLinkElement(link, childSn);\r\n },\r\n });\r\n if (sn) {\r\n adds.push({\r\n parentId,\r\n nextId,\r\n node: sn,\r\n });\r\n addedIds.add(sn.id);\r\n }\r\n };\r\n while (this.mapRemoves.length) {\r\n this.mirror.removeNodeFromMap(this.mapRemoves.shift());\r\n }\r\n for (const n of this.movedSet) {\r\n if (isParentRemoved(this.removes, n, this.mirror) &&\r\n !this.movedSet.has(n.parentNode)) {\r\n continue;\r\n }\r\n pushAdd(n);\r\n }\r\n for (const n of this.addedSet) {\r\n if (!isAncestorInSet(this.droppedSet, n) &&\r\n !isParentRemoved(this.removes, n, this.mirror)) {\r\n pushAdd(n);\r\n }\r\n else if (isAncestorInSet(this.movedSet, n)) {\r\n pushAdd(n);\r\n }\r\n else {\r\n this.droppedSet.add(n);\r\n }\r\n }\r\n let candidate = null;\r\n while (addList.length) {\r\n let node = null;\r\n if (candidate) {\r\n const parentId = this.mirror.getId(candidate.value.parentNode);\r\n const nextId = getNextId(candidate.value);\r\n if (parentId !== -1 && nextId !== -1) {\r\n node = candidate;\r\n }\r\n }\r\n if (!node) {\r\n let tailNode = addList.tail;\r\n while (tailNode) {\r\n const _node = tailNode;\r\n tailNode = tailNode.previous;\r\n if (_node) {\r\n const parentId = this.mirror.getId(_node.value.parentNode);\r\n const nextId = getNextId(_node.value);\r\n if (nextId === -1)\r\n continue;\r\n else if (parentId !== -1) {\r\n node = _node;\r\n break;\r\n }\r\n else {\r\n const unhandledNode = _node.value;\r\n if (unhandledNode.parentNode &&\r\n unhandledNode.parentNode.nodeType ===\r\n Node.DOCUMENT_FRAGMENT_NODE) {\r\n const shadowHost = unhandledNode.parentNode\r\n .host;\r\n const parentId = this.mirror.getId(shadowHost);\r\n if (parentId !== -1) {\r\n node = _node;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if (!node) {\r\n while (addList.head) {\r\n addList.removeNode(addList.head.value);\r\n }\r\n break;\r\n }\r\n candidate = node.previous;\r\n addList.removeNode(node.value);\r\n pushAdd(node.value);\r\n }\r\n const payload = {\r\n texts: this.texts\r\n .map((text) => ({\r\n id: this.mirror.getId(text.node),\r\n value: text.value,\r\n }))\r\n .filter((text) => !addedIds.has(text.id))\r\n .filter((text) => this.mirror.has(text.id)),\r\n attributes: this.attributes\r\n .map((attribute) => {\r\n const { attributes } = attribute;\r\n if (typeof attributes.style === 'string') {\r\n const diffAsStr = JSON.stringify(attribute.styleDiff);\r\n const unchangedAsStr = JSON.stringify(attribute._unchangedStyles);\r\n if (diffAsStr.length < attributes.style.length) {\r\n if ((diffAsStr + unchangedAsStr).split('var(').length ===\r\n attributes.style.split('var(').length) {\r\n attributes.style = attribute.styleDiff;\r\n }\r\n }\r\n }\r\n return {\r\n id: this.mirror.getId(attribute.node),\r\n attributes: attributes,\r\n };\r\n })\r\n .filter((attribute) => !addedIds.has(attribute.id))\r\n .filter((attribute) => this.mirror.has(attribute.id)),\r\n removes: this.removes,\r\n adds,\r\n };\r\n if (!payload.texts.length &&\r\n !payload.attributes.length &&\r\n !payload.removes.length &&\r\n !payload.adds.length) {\r\n return;\r\n }\r\n this.texts = [];\r\n this.attributes = [];\r\n this.attributeMap = new WeakMap();\r\n this.removes = [];\r\n this.addedSet = new Set();\r\n this.movedSet = new Set();\r\n this.droppedSet = new Set();\r\n this.movedMap = {};\r\n this.mutationCb(payload);\r\n };\r\n this.processMutation = (m) => {\r\n if (isIgnored(m.target, this.mirror)) {\r\n return;\r\n }\r\n switch (m.type) {\r\n case 'characterData': {\r\n const value = m.target.textContent;\r\n if (!isBlocked(m.target, this.blockClass, this.blockSelector, this.unblockSelector, false) &&\r\n value !== m.oldValue) {\r\n this.texts.push({\r\n value: needMaskingText(m.target, this.maskTextClass, this.maskTextSelector, this.unmaskTextClass, this.unmaskTextSelector, this.maskAllText) && value\r\n ? this.maskTextFn\r\n ? this.maskTextFn(value, closestElementOfNode(m.target))\r\n : value.replace(/[\\S]/g, '*')\r\n : value,\r\n node: m.target,\r\n });\r\n }\r\n break;\r\n }\r\n case 'attributes': {\r\n const target = m.target;\r\n let attributeName = m.attributeName;\r\n let value = m.target.getAttribute(attributeName);\r\n if (attributeName === 'value') {\r\n const type = getInputType(target);\r\n const tagName = target.tagName;\r\n value = getInputValue(target, tagName, type);\r\n const isInputMasked = shouldMaskInput({\r\n maskInputOptions: this.maskInputOptions,\r\n tagName,\r\n type,\r\n });\r\n const forceMask = needMaskingText(m.target, this.maskTextClass, this.maskTextSelector, this.unmaskTextClass, this.unmaskTextSelector, isInputMasked);\r\n value = maskInputValue({\r\n isMasked: forceMask,\r\n element: target,\r\n value,\r\n maskInputFn: this.maskInputFn,\r\n });\r\n }\r\n if (isBlocked(m.target, this.blockClass, this.blockSelector, this.unblockSelector, false) ||\r\n value === m.oldValue) {\r\n return;\r\n }\r\n let item = this.attributeMap.get(m.target);\r\n if (target.tagName === 'IFRAME' &&\r\n attributeName === 'src' &&\r\n !this.keepIframeSrcFn(value)) {\r\n if (!target.contentDocument) {\r\n attributeName = 'rr_src';\r\n }\r\n else {\r\n return;\r\n }\r\n }\r\n if (!item) {\r\n item = {\r\n node: m.target,\r\n attributes: {},\r\n styleDiff: {},\r\n _unchangedStyles: {},\r\n };\r\n this.attributes.push(item);\r\n this.attributeMap.set(m.target, item);\r\n }\r\n if (attributeName === 'type' &&\r\n target.tagName === 'INPUT' &&\r\n (m.oldValue || '').toLowerCase() === 'password') {\r\n target.setAttribute('data-rr-is-password', 'true');\r\n }\r\n if (!ignoreAttribute(target.tagName, attributeName)) {\r\n item.attributes[attributeName] = transformAttribute(this.doc, toLowerCase(target.tagName), toLowerCase(attributeName), value, target, this.maskAttributeFn);\r\n if (attributeName === 'style') {\r\n if (!this.unattachedDoc) {\r\n try {\r\n this.unattachedDoc =\r\n document.implementation.createHTMLDocument();\r\n }\r\n catch (e) {\r\n this.unattachedDoc = this.doc;\r\n }\r\n }\r\n const old = this.unattachedDoc.createElement('span');\r\n if (m.oldValue) {\r\n old.setAttribute('style', m.oldValue);\r\n }\r\n for (const pname of Array.from(target.style)) {\r\n const newValue = target.style.getPropertyValue(pname);\r\n const newPriority = target.style.getPropertyPriority(pname);\r\n if (newValue !== old.style.getPropertyValue(pname) ||\r\n newPriority !== old.style.getPropertyPriority(pname)) {\r\n if (newPriority === '') {\r\n item.styleDiff[pname] = newValue;\r\n }\r\n else {\r\n item.styleDiff[pname] = [newValue, newPriority];\r\n }\r\n }\r\n else {\r\n item._unchangedStyles[pname] = [newValue, newPriority];\r\n }\r\n }\r\n for (const pname of Array.from(old.style)) {\r\n if (target.style.getPropertyValue(pname) === '') {\r\n item.styleDiff[pname] = false;\r\n }\r\n }\r\n }\r\n }\r\n break;\r\n }\r\n case 'childList': {\r\n if (isBlocked(m.target, this.blockClass, this.blockSelector, this.unblockSelector, true)) {\r\n return;\r\n }\r\n m.addedNodes.forEach((n) => this.genAdds(n, m.target));\r\n m.removedNodes.forEach((n) => {\r\n const nodeId = this.mirror.getId(n);\r\n const parentId = isShadowRoot(m.target)\r\n ? this.mirror.getId(m.target.host)\r\n : this.mirror.getId(m.target);\r\n if (isBlocked(m.target, this.blockClass, this.blockSelector, this.unblockSelector, false) ||\r\n isIgnored(n, this.mirror) ||\r\n !isSerialized(n, this.mirror)) {\r\n return;\r\n }\r\n if (this.addedSet.has(n)) {\r\n deepDelete(this.addedSet, n);\r\n this.droppedSet.add(n);\r\n }\r\n else if (this.addedSet.has(m.target) && nodeId === -1) ;\r\n else if (isAncestorRemoved(m.target, this.mirror)) ;\r\n else if (this.movedSet.has(n) &&\r\n this.movedMap[moveKey(nodeId, parentId)]) {\r\n deepDelete(this.movedSet, n);\r\n }\r\n else {\r\n this.removes.push({\r\n parentId,\r\n id: nodeId,\r\n isShadow: isShadowRoot(m.target) && isNativeShadowDom(m.target)\r\n ? true\r\n : undefined,\r\n });\r\n }\r\n this.mapRemoves.push(n);\r\n });\r\n break;\r\n }\r\n }\r\n };\r\n this.genAdds = (n, target) => {\r\n if (this.processedNodeManager.inOtherBuffer(n, this))\r\n return;\r\n if (this.addedSet.has(n) || this.movedSet.has(n))\r\n return;\r\n if (this.mirror.hasNode(n)) {\r\n if (isIgnored(n, this.mirror)) {\r\n return;\r\n }\r\n this.movedSet.add(n);\r\n let targetId = null;\r\n if (target && this.mirror.hasNode(target)) {\r\n targetId = this.mirror.getId(target);\r\n }\r\n if (targetId && targetId !== -1) {\r\n this.movedMap[moveKey(this.mirror.getId(n), targetId)] = true;\r\n }\r\n }\r\n else {\r\n this.addedSet.add(n);\r\n this.droppedSet.delete(n);\r\n }\r\n if (!isBlocked(n, this.blockClass, this.blockSelector, this.unblockSelector, false)) {\r\n n.childNodes.forEach((childN) => this.genAdds(childN));\r\n if (hasShadowRoot(n)) {\r\n n.shadowRoot.childNodes.forEach((childN) => {\r\n this.processedNodeManager.add(childN, this);\r\n this.genAdds(childN, n);\r\n });\r\n }\r\n }\r\n };\r\n }\r\n init(options) {\r\n [\r\n 'mutationCb',\r\n 'blockClass',\r\n 'blockSelector',\r\n 'unblockSelector',\r\n 'maskAllText',\r\n 'maskTextClass',\r\n 'unmaskTextClass',\r\n 'maskTextSelector',\r\n 'unmaskTextSelector',\r\n 'inlineStylesheet',\r\n 'maskInputOptions',\r\n 'maskAttributeFn',\r\n 'maskTextFn',\r\n 'maskInputFn',\r\n 'keepIframeSrcFn',\r\n 'recordCanvas',\r\n 'inlineImages',\r\n 'slimDOMOptions',\r\n 'dataURLOptions',\r\n 'doc',\r\n 'mirror',\r\n 'iframeManager',\r\n 'stylesheetManager',\r\n 'shadowDomManager',\r\n 'canvasManager',\r\n 'processedNodeManager',\r\n ].forEach((key) => {\r\n this[key] = options[key];\r\n });\r\n }\r\n freeze() {\r\n this.frozen = true;\r\n this.canvasManager.freeze();\r\n }\r\n unfreeze() {\r\n this.frozen = false;\r\n this.canvasManager.unfreeze();\r\n this.emit();\r\n }\r\n isFrozen() {\r\n return this.frozen;\r\n }\r\n lock() {\r\n this.locked = true;\r\n this.canvasManager.lock();\r\n }\r\n unlock() {\r\n this.locked = false;\r\n this.canvasManager.unlock();\r\n this.emit();\r\n }\r\n reset() {\r\n this.shadowDomManager.reset();\r\n this.canvasManager.reset();\r\n }\r\n}\r\nfunction deepDelete(addsSet, n) {\r\n addsSet.delete(n);\r\n n.childNodes.forEach((childN) => deepDelete(addsSet, childN));\r\n}\r\nfunction isParentRemoved(removes, n, mirror) {\r\n if (removes.length === 0)\r\n return false;\r\n return _isParentRemoved(removes, n, mirror);\r\n}\r\nfunction _isParentRemoved(removes, n, mirror) {\r\n const { parentNode } = n;\r\n if (!parentNode) {\r\n return false;\r\n }\r\n const parentId = mirror.getId(parentNode);\r\n if (removes.some((r) => r.id === parentId)) {\r\n return true;\r\n }\r\n return _isParentRemoved(removes, parentNode, mirror);\r\n}\r\nfunction isAncestorInSet(set, n) {\r\n if (set.size === 0)\r\n return false;\r\n return _isAncestorInSet(set, n);\r\n}\r\nfunction _isAncestorInSet(set, n) {\r\n const { parentNode } = n;\r\n if (!parentNode) {\r\n return false;\r\n }\r\n if (set.has(parentNode)) {\r\n return true;\r\n }\r\n return _isAncestorInSet(set, parentNode);\r\n}\n\nexport { MutationBuffer as default };\n", "let errorHandler;\r\nfunction registerErrorHandler(handler) {\r\n errorHandler = handler;\r\n}\r\nfunction unregisterErrorHandler() {\r\n errorHandler = undefined;\r\n}\r\nconst callbackWrapper = (cb) => {\r\n if (!errorHandler) {\r\n return cb;\r\n }\r\n const rrwebWrapped = ((...rest) => {\r\n try {\r\n return cb(...rest);\r\n }\r\n catch (error) {\r\n if (errorHandler && errorHandler(error) === true) {\r\n return () => {\r\n };\r\n }\r\n throw error;\r\n }\r\n });\r\n return rrwebWrapped;\r\n};\n\nexport { callbackWrapper, registerErrorHandler, unregisterErrorHandler };\n", "import { toLowerCase, toUpperCase, getInputType, getInputValue, shouldMaskInput, needMaskingText, maskInputValue } from '../../../rrweb-snapshot/es/rrweb-snapshot.js';\nimport { on, throttle, isBlocked, getWindowScroll, hookSetter, patch, setTimeout, legacy_isTouchEvent, nowTimestamp, getWindowHeight, getWindowWidth } from '../utils.js';\nimport { MouseInteractions, IncrementalSource, PointerTypes } from '../../../types/dist/rrweb-types.js';\nimport MutationBuffer from './mutation.js';\nimport { callbackWrapper } from './error-handler.js';\n\nconst mutationBuffers = [];\r\nfunction getEventTarget(event) {\r\n try {\r\n if ('composedPath' in event) {\r\n const path = event.composedPath();\r\n if (path.length) {\r\n return path[0];\r\n }\r\n }\r\n else if ('path' in event && event.path.length) {\r\n return event.path[0];\r\n }\r\n }\r\n catch {\r\n }\r\n return event && event.target;\r\n}\r\nfunction initMutationObserver(options, rootEl) {\r\n const mutationBuffer = new MutationBuffer();\r\n mutationBuffers.push(mutationBuffer);\r\n mutationBuffer.init(options);\r\n let mutationObserverCtor = window.MutationObserver ||\r\n window.__rrMutationObserver;\r\n const angularZoneSymbol = window?.Zone?.__symbol__?.('MutationObserver');\r\n if (angularZoneSymbol &&\r\n window[angularZoneSymbol]) {\r\n mutationObserverCtor = window[angularZoneSymbol];\r\n }\r\n const observer = new mutationObserverCtor(callbackWrapper((mutations) => {\r\n if (options.onMutation && options.onMutation(mutations) === false) {\r\n return;\r\n }\r\n mutationBuffer.processMutations.bind(mutationBuffer)(mutations);\r\n }));\r\n observer.observe(rootEl, {\r\n attributes: true,\r\n attributeOldValue: true,\r\n characterData: true,\r\n characterDataOldValue: true,\r\n childList: true,\r\n subtree: true,\r\n });\r\n return observer;\r\n}\r\nfunction initMoveObserver({ mousemoveCb, sampling, doc, mirror, }) {\r\n if (sampling.mousemove === false) {\r\n return () => {\r\n };\r\n }\r\n const threshold = typeof sampling.mousemove === 'number' ? sampling.mousemove : 50;\r\n const callbackThreshold = typeof sampling.mousemoveCallback === 'number'\r\n ? sampling.mousemoveCallback\r\n : 500;\r\n let positions = [];\r\n let timeBaseline;\r\n const wrappedCb = throttle(callbackWrapper((source) => {\r\n const totalOffset = Date.now() - timeBaseline;\r\n mousemoveCb(positions.map((p) => {\r\n p.timeOffset -= totalOffset;\r\n return p;\r\n }), source);\r\n positions = [];\r\n timeBaseline = null;\r\n }), callbackThreshold);\r\n const updatePosition = callbackWrapper(throttle(callbackWrapper((evt) => {\r\n const target = getEventTarget(evt);\r\n const { clientX, clientY } = legacy_isTouchEvent(evt)\r\n ? evt.changedTouches[0]\r\n : evt;\r\n if (!timeBaseline) {\r\n timeBaseline = nowTimestamp();\r\n }\r\n positions.push({\r\n x: clientX,\r\n y: clientY,\r\n id: mirror.getId(target),\r\n timeOffset: nowTimestamp() - timeBaseline,\r\n });\r\n wrappedCb(typeof DragEvent !== 'undefined' && evt instanceof DragEvent\r\n ? IncrementalSource.Drag\r\n : evt instanceof MouseEvent\r\n ? IncrementalSource.MouseMove\r\n : IncrementalSource.TouchMove);\r\n }), threshold, {\r\n trailing: false,\r\n }));\r\n const handlers = [\r\n on('mousemove', updatePosition, doc),\r\n on('touchmove', updatePosition, doc),\r\n on('drag', updatePosition, doc),\r\n ];\r\n return callbackWrapper(() => {\r\n handlers.forEach((h) => h());\r\n });\r\n}\r\nfunction initMouseInteractionObserver({ mouseInteractionCb, doc, mirror, blockClass, blockSelector, unblockSelector, sampling, }) {\r\n if (sampling.mouseInteraction === false) {\r\n return () => {\r\n };\r\n }\r\n const disableMap = sampling.mouseInteraction === true ||\r\n sampling.mouseInteraction === undefined\r\n ? {}\r\n : sampling.mouseInteraction;\r\n const handlers = [];\r\n let currentPointerType = null;\r\n const getHandler = (eventKey) => {\r\n return (event) => {\r\n const target = getEventTarget(event);\r\n if (isBlocked(target, blockClass, blockSelector, unblockSelector, true)) {\r\n return;\r\n }\r\n let pointerType = null;\r\n let thisEventKey = eventKey;\r\n if ('pointerType' in event) {\r\n switch (event.pointerType) {\r\n case 'mouse':\r\n pointerType = PointerTypes.Mouse;\r\n break;\r\n case 'touch':\r\n pointerType = PointerTypes.Touch;\r\n break;\r\n case 'pen':\r\n pointerType = PointerTypes.Pen;\r\n break;\r\n }\r\n if (pointerType === PointerTypes.Touch) {\r\n if (MouseInteractions[eventKey] === MouseInteractions.MouseDown) {\r\n thisEventKey = 'TouchStart';\r\n }\r\n else if (MouseInteractions[eventKey] === MouseInteractions.MouseUp) {\r\n thisEventKey = 'TouchEnd';\r\n }\r\n }\r\n else if (pointerType === PointerTypes.Pen) ;\r\n }\r\n else if (legacy_isTouchEvent(event)) {\r\n pointerType = PointerTypes.Touch;\r\n }\r\n if (pointerType !== null) {\r\n currentPointerType = pointerType;\r\n if ((thisEventKey.startsWith('Touch') &&\r\n pointerType === PointerTypes.Touch) ||\r\n (thisEventKey.startsWith('Mouse') &&\r\n pointerType === PointerTypes.Mouse)) {\r\n pointerType = null;\r\n }\r\n }\r\n else if (MouseInteractions[eventKey] === MouseInteractions.Click) {\r\n pointerType = currentPointerType;\r\n currentPointerType = null;\r\n }\r\n const e = legacy_isTouchEvent(event) ? event.changedTouches[0] : event;\r\n if (!e) {\r\n return;\r\n }\r\n const id = mirror.getId(target);\r\n const { clientX, clientY } = e;\r\n callbackWrapper(mouseInteractionCb)({\r\n type: MouseInteractions[thisEventKey],\r\n id,\r\n x: clientX,\r\n y: clientY,\r\n ...(pointerType !== null && { pointerType }),\r\n });\r\n };\r\n };\r\n Object.keys(MouseInteractions)\r\n .filter((key) => Number.isNaN(Number(key)) &&\r\n !key.endsWith('_Departed') &&\r\n disableMap[key] !== false)\r\n .forEach((eventKey) => {\r\n let eventName = toLowerCase(eventKey);\r\n const handler = getHandler(eventKey);\r\n if (window.PointerEvent) {\r\n switch (MouseInteractions[eventKey]) {\r\n case MouseInteractions.MouseDown:\r\n case MouseInteractions.MouseUp:\r\n eventName = eventName.replace('mouse', 'pointer');\r\n break;\r\n case MouseInteractions.TouchStart:\r\n case MouseInteractions.TouchEnd:\r\n return;\r\n }\r\n }\r\n handlers.push(on(eventName, handler, doc));\r\n });\r\n return callbackWrapper(() => {\r\n handlers.forEach((h) => h());\r\n });\r\n}\r\nfunction initScrollObserver({ scrollCb, doc, mirror, blockClass, blockSelector, unblockSelector, sampling, }) {\r\n const updatePosition = callbackWrapper(throttle(callbackWrapper((evt) => {\r\n const target = getEventTarget(evt);\r\n if (!target ||\r\n isBlocked(target, blockClass, blockSelector, unblockSelector, true)) {\r\n return;\r\n }\r\n const id = mirror.getId(target);\r\n if (target === doc && doc.defaultView) {\r\n const scrollLeftTop = getWindowScroll(doc.defaultView);\r\n scrollCb({\r\n id,\r\n x: scrollLeftTop.left,\r\n y: scrollLeftTop.top,\r\n });\r\n }\r\n else {\r\n scrollCb({\r\n id,\r\n x: target.scrollLeft,\r\n y: target.scrollTop,\r\n });\r\n }\r\n }), sampling.scroll || 100));\r\n return on('scroll', updatePosition, doc);\r\n}\r\nfunction initViewportResizeObserver({ viewportResizeCb }, { win }) {\r\n let lastH = -1;\r\n let lastW = -1;\r\n const updateDimension = callbackWrapper(throttle(callbackWrapper(() => {\r\n const height = getWindowHeight();\r\n const width = getWindowWidth();\r\n if (lastH !== height || lastW !== width) {\r\n viewportResizeCb({\r\n width: Number(width),\r\n height: Number(height),\r\n });\r\n lastH = height;\r\n lastW = width;\r\n }\r\n }), 200));\r\n return on('resize', updateDimension, win);\r\n}\r\nconst INPUT_TAGS = ['INPUT', 'TEXTAREA', 'SELECT'];\r\nconst lastInputValueMap = new WeakMap();\r\nfunction initInputObserver({ inputCb, doc, mirror, blockClass, blockSelector, unblockSelector, ignoreClass, ignoreSelector, maskInputOptions, maskInputFn, sampling, userTriggeredOnInput, maskTextClass, unmaskTextClass, maskTextSelector, unmaskTextSelector, }) {\r\n function eventHandler(event) {\r\n let target = getEventTarget(event);\r\n const userTriggered = event.isTrusted;\r\n const tagName = target && toUpperCase(target.tagName);\r\n if (tagName === 'OPTION')\r\n target = target.parentElement;\r\n if (!target ||\r\n !tagName ||\r\n INPUT_TAGS.indexOf(tagName) < 0 ||\r\n isBlocked(target, blockClass, blockSelector, unblockSelector, true)) {\r\n return;\r\n }\r\n const el = target;\r\n if (el.classList.contains(ignoreClass) ||\r\n (ignoreSelector && el.matches(ignoreSelector))) {\r\n return;\r\n }\r\n const type = getInputType(target);\r\n let text = getInputValue(el, tagName, type);\r\n let isChecked = false;\r\n const isInputMasked = shouldMaskInput({\r\n maskInputOptions,\r\n tagName,\r\n type,\r\n });\r\n const forceMask = needMaskingText(target, maskTextClass, maskTextSelector, unmaskTextClass, unmaskTextSelector, isInputMasked);\r\n if (type === 'radio' || type === 'checkbox') {\r\n isChecked = target.checked;\r\n }\r\n text = maskInputValue({\r\n isMasked: forceMask,\r\n element: target,\r\n value: text,\r\n maskInputFn,\r\n });\r\n cbWithDedup(target, userTriggeredOnInput\r\n ? { text, isChecked, userTriggered }\r\n : { text, isChecked });\r\n const name = target.name;\r\n if (type === 'radio' && name && isChecked) {\r\n doc\r\n .querySelectorAll(`input[type=\"radio\"][name=\"${name}\"]`)\r\n .forEach((el) => {\r\n if (el !== target) {\r\n const text = maskInputValue({\r\n isMasked: forceMask,\r\n element: el,\r\n value: getInputValue(el, tagName, type),\r\n maskInputFn,\r\n });\r\n cbWithDedup(el, userTriggeredOnInput\r\n ? { text, isChecked: !isChecked, userTriggered: false }\r\n : { text, isChecked: !isChecked });\r\n }\r\n });\r\n }\r\n }\r\n function cbWithDedup(target, v) {\r\n const lastInputValue = lastInputValueMap.get(target);\r\n if (!lastInputValue ||\r\n lastInputValue.text !== v.text ||\r\n lastInputValue.isChecked !== v.isChecked) {\r\n lastInputValueMap.set(target, v);\r\n const id = mirror.getId(target);\r\n callbackWrapper(inputCb)({\r\n ...v,\r\n id,\r\n });\r\n }\r\n }\r\n const events = sampling.input === 'last' ? ['change'] : ['input', 'change'];\r\n const handlers = events.map((eventName) => on(eventName, callbackWrapper(eventHandler), doc));\r\n const currentWindow = doc.defaultView;\r\n if (!currentWindow) {\r\n return () => {\r\n handlers.forEach((h) => h());\r\n };\r\n }\r\n const propertyDescriptor = currentWindow.Object.getOwnPropertyDescriptor(currentWindow.HTMLInputElement.prototype, 'value');\r\n const hookProperties = [\r\n [currentWindow.HTMLInputElement.prototype, 'value'],\r\n [currentWindow.HTMLInputElement.prototype, 'checked'],\r\n [currentWindow.HTMLSelectElement.prototype, 'value'],\r\n [currentWindow.HTMLTextAreaElement.prototype, 'value'],\r\n [currentWindow.HTMLSelectElement.prototype, 'selectedIndex'],\r\n [currentWindow.HTMLOptionElement.prototype, 'selected'],\r\n ];\r\n if (propertyDescriptor && propertyDescriptor.set) {\r\n handlers.push(...hookProperties.map((p) => hookSetter(p[0], p[1], {\r\n set() {\r\n callbackWrapper(eventHandler)({\r\n target: this,\r\n isTrusted: false,\r\n });\r\n },\r\n }, false, currentWindow)));\r\n }\r\n return callbackWrapper(() => {\r\n handlers.forEach((h) => h());\r\n });\r\n}\r\nfunction getNestedCSSRulePositions(rule) {\r\n const positions = [];\r\n function recurse(childRule, pos) {\r\n if ((hasNestedCSSRule('CSSGroupingRule') &&\r\n childRule.parentRule instanceof CSSGroupingRule) ||\r\n (hasNestedCSSRule('CSSMediaRule') &&\r\n childRule.parentRule instanceof CSSMediaRule) ||\r\n (hasNestedCSSRule('CSSSupportsRule') &&\r\n childRule.parentRule instanceof CSSSupportsRule) ||\r\n (hasNestedCSSRule('CSSConditionRule') &&\r\n childRule.parentRule instanceof CSSConditionRule)) {\r\n const rules = Array.from(childRule.parentRule.cssRules);\r\n const index = rules.indexOf(childRule);\r\n pos.unshift(index);\r\n }\r\n else if (childRule.parentStyleSheet) {\r\n const rules = Array.from(childRule.parentStyleSheet.cssRules);\r\n const index = rules.indexOf(childRule);\r\n pos.unshift(index);\r\n }\r\n return pos;\r\n }\r\n return recurse(rule, positions);\r\n}\r\nfunction getIdAndStyleId(sheet, mirror, styleMirror) {\r\n let id, styleId;\r\n if (!sheet)\r\n return {};\r\n if (sheet.ownerNode)\r\n id = mirror.getId(sheet.ownerNode);\r\n else\r\n styleId = styleMirror.getId(sheet);\r\n return {\r\n styleId,\r\n id,\r\n };\r\n}\r\nfunction initStyleSheetObserver({ styleSheetRuleCb, mirror, stylesheetManager }, { win }) {\r\n if (!win.CSSStyleSheet || !win.CSSStyleSheet.prototype) {\r\n return () => {\r\n };\r\n }\r\n const insertRule = win.CSSStyleSheet.prototype.insertRule;\r\n win.CSSStyleSheet.prototype.insertRule = new Proxy(insertRule, {\r\n apply: callbackWrapper((target, thisArg, argumentsList) => {\r\n const [rule, index] = argumentsList;\r\n const { id, styleId } = getIdAndStyleId(thisArg, mirror, stylesheetManager.styleMirror);\r\n if ((id && id !== -1) || (styleId && styleId !== -1)) {\r\n styleSheetRuleCb({\r\n id,\r\n styleId,\r\n adds: [{ rule, index }],\r\n });\r\n }\r\n return target.apply(thisArg, argumentsList);\r\n }),\r\n });\r\n const deleteRule = win.CSSStyleSheet.prototype.deleteRule;\r\n win.CSSStyleSheet.prototype.deleteRule = new Proxy(deleteRule, {\r\n apply: callbackWrapper((target, thisArg, argumentsList) => {\r\n const [index] = argumentsList;\r\n const { id, styleId } = getIdAndStyleId(thisArg, mirror, stylesheetManager.styleMirror);\r\n if ((id && id !== -1) || (styleId && styleId !== -1)) {\r\n styleSheetRuleCb({\r\n id,\r\n styleId,\r\n removes: [{ index }],\r\n });\r\n }\r\n return target.apply(thisArg, argumentsList);\r\n }),\r\n });\r\n let replace;\r\n if (win.CSSStyleSheet.prototype.replace) {\r\n replace = win.CSSStyleSheet.prototype.replace;\r\n win.CSSStyleSheet.prototype.replace = new Proxy(replace, {\r\n apply: callbackWrapper((target, thisArg, argumentsList) => {\r\n const [text] = argumentsList;\r\n const { id, styleId } = getIdAndStyleId(thisArg, mirror, stylesheetManager.styleMirror);\r\n if ((id && id !== -1) || (styleId && styleId !== -1)) {\r\n styleSheetRuleCb({\r\n id,\r\n styleId,\r\n replace: text,\r\n });\r\n }\r\n return target.apply(thisArg, argumentsList);\r\n }),\r\n });\r\n }\r\n let replaceSync;\r\n if (win.CSSStyleSheet.prototype.replaceSync) {\r\n replaceSync = win.CSSStyleSheet.prototype.replaceSync;\r\n win.CSSStyleSheet.prototype.replaceSync = new Proxy(replaceSync, {\r\n apply: callbackWrapper((target, thisArg, argumentsList) => {\r\n const [text] = argumentsList;\r\n const { id, styleId } = getIdAndStyleId(thisArg, mirror, stylesheetManager.styleMirror);\r\n if ((id && id !== -1) || (styleId && styleId !== -1)) {\r\n styleSheetRuleCb({\r\n id,\r\n styleId,\r\n replaceSync: text,\r\n });\r\n }\r\n return target.apply(thisArg, argumentsList);\r\n }),\r\n });\r\n }\r\n const supportedNestedCSSRuleTypes = {};\r\n if (canMonkeyPatchNestedCSSRule('CSSGroupingRule')) {\r\n supportedNestedCSSRuleTypes.CSSGroupingRule = win.CSSGroupingRule;\r\n }\r\n else {\r\n if (canMonkeyPatchNestedCSSRule('CSSMediaRule')) {\r\n supportedNestedCSSRuleTypes.CSSMediaRule = win.CSSMediaRule;\r\n }\r\n if (canMonkeyPatchNestedCSSRule('CSSConditionRule')) {\r\n supportedNestedCSSRuleTypes.CSSConditionRule = win.CSSConditionRule;\r\n }\r\n if (canMonkeyPatchNestedCSSRule('CSSSupportsRule')) {\r\n supportedNestedCSSRuleTypes.CSSSupportsRule = win.CSSSupportsRule;\r\n }\r\n }\r\n const unmodifiedFunctions = {};\r\n Object.entries(supportedNestedCSSRuleTypes).forEach(([typeKey, type]) => {\r\n unmodifiedFunctions[typeKey] = {\r\n insertRule: type.prototype.insertRule,\r\n deleteRule: type.prototype.deleteRule,\r\n };\r\n type.prototype.insertRule = new Proxy(unmodifiedFunctions[typeKey].insertRule, {\r\n apply: callbackWrapper((target, thisArg, argumentsList) => {\r\n const [rule, index] = argumentsList;\r\n const { id, styleId } = getIdAndStyleId(thisArg.parentStyleSheet, mirror, stylesheetManager.styleMirror);\r\n if ((id && id !== -1) || (styleId && styleId !== -1)) {\r\n styleSheetRuleCb({\r\n id,\r\n styleId,\r\n adds: [\r\n {\r\n rule,\r\n index: [\r\n ...getNestedCSSRulePositions(thisArg),\r\n index || 0,\r\n ],\r\n },\r\n ],\r\n });\r\n }\r\n return target.apply(thisArg, argumentsList);\r\n }),\r\n });\r\n type.prototype.deleteRule = new Proxy(unmodifiedFunctions[typeKey].deleteRule, {\r\n apply: callbackWrapper((target, thisArg, argumentsList) => {\r\n const [index] = argumentsList;\r\n const { id, styleId } = getIdAndStyleId(thisArg.parentStyleSheet, mirror, stylesheetManager.styleMirror);\r\n if ((id && id !== -1) || (styleId && styleId !== -1)) {\r\n styleSheetRuleCb({\r\n id,\r\n styleId,\r\n removes: [\r\n { index: [...getNestedCSSRulePositions(thisArg), index] },\r\n ],\r\n });\r\n }\r\n return target.apply(thisArg, argumentsList);\r\n }),\r\n });\r\n });\r\n return callbackWrapper(() => {\r\n win.CSSStyleSheet.prototype.insertRule = insertRule;\r\n win.CSSStyleSheet.prototype.deleteRule = deleteRule;\r\n replace && (win.CSSStyleSheet.prototype.replace = replace);\r\n replaceSync && (win.CSSStyleSheet.prototype.replaceSync = replaceSync);\r\n Object.entries(supportedNestedCSSRuleTypes).forEach(([typeKey, type]) => {\r\n type.prototype.insertRule = unmodifiedFunctions[typeKey].insertRule;\r\n type.prototype.deleteRule = unmodifiedFunctions[typeKey].deleteRule;\r\n });\r\n });\r\n}\r\nfunction initAdoptedStyleSheetObserver({ mirror, stylesheetManager, }, host) {\r\n let hostId = null;\r\n if (host.nodeName === '#document')\r\n hostId = mirror.getId(host);\r\n else\r\n hostId = mirror.getId(host.host);\r\n const patchTarget = host.nodeName === '#document'\r\n ? host.defaultView?.Document\r\n : host.ownerDocument?.defaultView?.ShadowRoot;\r\n const originalPropertyDescriptor = patchTarget?.prototype\r\n ? Object.getOwnPropertyDescriptor(patchTarget?.prototype, 'adoptedStyleSheets')\r\n : undefined;\r\n if (hostId === null ||\r\n hostId === -1 ||\r\n !patchTarget ||\r\n !originalPropertyDescriptor)\r\n return () => {\r\n };\r\n Object.defineProperty(host, 'adoptedStyleSheets', {\r\n configurable: originalPropertyDescriptor.configurable,\r\n enumerable: originalPropertyDescriptor.enumerable,\r\n get() {\r\n return originalPropertyDescriptor.get?.call(this);\r\n },\r\n set(sheets) {\r\n const result = originalPropertyDescriptor.set?.call(this, sheets);\r\n if (hostId !== null && hostId !== -1) {\r\n try {\r\n stylesheetManager.adoptStyleSheets(sheets, hostId);\r\n }\r\n catch (e) {\r\n }\r\n }\r\n return result;\r\n },\r\n });\r\n return callbackWrapper(() => {\r\n Object.defineProperty(host, 'adoptedStyleSheets', {\r\n configurable: originalPropertyDescriptor.configurable,\r\n enumerable: originalPropertyDescriptor.enumerable,\r\n get: originalPropertyDescriptor.get,\r\n set: originalPropertyDescriptor.set,\r\n });\r\n });\r\n}\r\nfunction initStyleDeclarationObserver({ styleDeclarationCb, mirror, ignoreCSSAttributes, stylesheetManager, }, { win }) {\r\n const setProperty = win.CSSStyleDeclaration.prototype.setProperty;\r\n win.CSSStyleDeclaration.prototype.setProperty = new Proxy(setProperty, {\r\n apply: callbackWrapper((target, thisArg, argumentsList) => {\r\n const [property, value, priority] = argumentsList;\r\n if (ignoreCSSAttributes.has(property)) {\r\n return setProperty.apply(thisArg, [property, value, priority]);\r\n }\r\n const { id, styleId } = getIdAndStyleId(thisArg.parentRule?.parentStyleSheet, mirror, stylesheetManager.styleMirror);\r\n if ((id && id !== -1) || (styleId && styleId !== -1)) {\r\n styleDeclarationCb({\r\n id,\r\n styleId,\r\n set: {\r\n property,\r\n value,\r\n priority,\r\n },\r\n index: getNestedCSSRulePositions(thisArg.parentRule),\r\n });\r\n }\r\n return target.apply(thisArg, argumentsList);\r\n }),\r\n });\r\n const removeProperty = win.CSSStyleDeclaration.prototype.removeProperty;\r\n win.CSSStyleDeclaration.prototype.removeProperty = new Proxy(removeProperty, {\r\n apply: callbackWrapper((target, thisArg, argumentsList) => {\r\n const [property] = argumentsList;\r\n if (ignoreCSSAttributes.has(property)) {\r\n return removeProperty.apply(thisArg, [property]);\r\n }\r\n const { id, styleId } = getIdAndStyleId(thisArg.parentRule?.parentStyleSheet, mirror, stylesheetManager.styleMirror);\r\n if ((id && id !== -1) || (styleId && styleId !== -1)) {\r\n styleDeclarationCb({\r\n id,\r\n styleId,\r\n remove: {\r\n property,\r\n },\r\n index: getNestedCSSRulePositions(thisArg.parentRule),\r\n });\r\n }\r\n return target.apply(thisArg, argumentsList);\r\n }),\r\n });\r\n return callbackWrapper(() => {\r\n win.CSSStyleDeclaration.prototype.setProperty = setProperty;\r\n win.CSSStyleDeclaration.prototype.removeProperty = removeProperty;\r\n });\r\n}\r\nfunction initMediaInteractionObserver({ mediaInteractionCb, blockClass, blockSelector, unblockSelector, mirror, sampling, doc, }) {\r\n const handler = callbackWrapper((type) => throttle(callbackWrapper((event) => {\r\n const target = getEventTarget(event);\r\n if (!target ||\r\n isBlocked(target, blockClass, blockSelector, unblockSelector, true)) {\r\n return;\r\n }\r\n const { currentTime, volume, muted, playbackRate } = target;\r\n mediaInteractionCb({\r\n type,\r\n id: mirror.getId(target),\r\n currentTime,\r\n volume,\r\n muted,\r\n playbackRate,\r\n });\r\n }), sampling.media || 500));\r\n const handlers = [\r\n on('play', handler(0), doc),\r\n on('pause', handler(1), doc),\r\n on('seeked', handler(2), doc),\r\n on('volumechange', handler(3), doc),\r\n on('ratechange', handler(4), doc),\r\n ];\r\n return callbackWrapper(() => {\r\n handlers.forEach((h) => h());\r\n });\r\n}\r\nfunction initFontObserver({ fontCb, doc }) {\r\n const win = doc.defaultView;\r\n if (!win) {\r\n return () => {\r\n };\r\n }\r\n const handlers = [];\r\n const fontMap = new WeakMap();\r\n const originalFontFace = win.FontFace;\r\n win.FontFace = function FontFace(family, source, descriptors) {\r\n const fontFace = new originalFontFace(family, source, descriptors);\r\n fontMap.set(fontFace, {\r\n family,\r\n buffer: typeof source !== 'string',\r\n descriptors,\r\n fontSource: typeof source === 'string'\r\n ? source\r\n : JSON.stringify(Array.from(new Uint8Array(source))),\r\n });\r\n return fontFace;\r\n };\r\n const restoreHandler = patch(doc.fonts, 'add', function (original) {\r\n return function (fontFace) {\r\n setTimeout(callbackWrapper(() => {\r\n const p = fontMap.get(fontFace);\r\n if (p) {\r\n fontCb(p);\r\n fontMap.delete(fontFace);\r\n }\r\n }), 0);\r\n return original.apply(this, [fontFace]);\r\n };\r\n });\r\n handlers.push(() => {\r\n win.FontFace = originalFontFace;\r\n });\r\n handlers.push(restoreHandler);\r\n return callbackWrapper(() => {\r\n handlers.forEach((h) => h());\r\n });\r\n}\r\nfunction initSelectionObserver(param) {\r\n const { doc, mirror, blockClass, blockSelector, unblockSelector, selectionCb, } = param;\r\n let collapsed = true;\r\n const updateSelection = callbackWrapper(() => {\r\n const selection = doc.getSelection();\r\n if (!selection || (collapsed && selection?.isCollapsed))\r\n return;\r\n collapsed = selection.isCollapsed || false;\r\n const ranges = [];\r\n const count = selection.rangeCount || 0;\r\n for (let i = 0; i < count; i++) {\r\n const range = selection.getRangeAt(i);\r\n const { startContainer, startOffset, endContainer, endOffset } = range;\r\n const blocked = isBlocked(startContainer, blockClass, blockSelector, unblockSelector, true) ||\r\n isBlocked(endContainer, blockClass, blockSelector, unblockSelector, true);\r\n if (blocked)\r\n continue;\r\n ranges.push({\r\n start: mirror.getId(startContainer),\r\n startOffset,\r\n end: mirror.getId(endContainer),\r\n endOffset,\r\n });\r\n }\r\n selectionCb({ ranges });\r\n });\r\n updateSelection();\r\n return on('selectionchange', updateSelection);\r\n}\r\nfunction initCustomElementObserver({ doc, customElementCb, }) {\r\n const win = doc.defaultView;\r\n if (!win || !win.customElements)\r\n return () => { };\r\n const restoreHandler = patch(win.customElements, 'define', function (original) {\r\n return function (name, constructor, options) {\r\n try {\r\n customElementCb({\r\n define: {\r\n name,\r\n },\r\n });\r\n }\r\n catch (e) {\r\n }\r\n return original.apply(this, [name, constructor, options]);\r\n };\r\n });\r\n return restoreHandler;\r\n}\r\nfunction initObservers(o, _hooks = {}) {\r\n const currentWindow = o.doc.defaultView;\r\n if (!currentWindow) {\r\n return () => {\r\n };\r\n }\r\n const mutationObserver = initMutationObserver(o, o.doc);\r\n const mousemoveHandler = initMoveObserver(o);\r\n const mouseInteractionHandler = initMouseInteractionObserver(o);\r\n const scrollHandler = initScrollObserver(o);\r\n const viewportResizeHandler = initViewportResizeObserver(o, {\r\n win: currentWindow,\r\n });\r\n const inputHandler = initInputObserver(o);\r\n const mediaInteractionHandler = initMediaInteractionObserver(o);\r\n const styleSheetObserver = initStyleSheetObserver(o, { win: currentWindow });\r\n const adoptedStyleSheetObserver = initAdoptedStyleSheetObserver(o, o.doc);\r\n const styleDeclarationObserver = initStyleDeclarationObserver(o, {\r\n win: currentWindow,\r\n });\r\n const fontObserver = o.collectFonts\r\n ? initFontObserver(o)\r\n : () => {\r\n };\r\n const selectionObserver = initSelectionObserver(o);\r\n const customElementObserver = initCustomElementObserver(o);\r\n const pluginHandlers = [];\r\n for (const plugin of o.plugins) {\r\n pluginHandlers.push(plugin.observer(plugin.callback, currentWindow, plugin.options));\r\n }\r\n return callbackWrapper(() => {\r\n mutationBuffers.forEach((b) => b.reset());\r\n mutationObserver.disconnect();\r\n mousemoveHandler();\r\n mouseInteractionHandler();\r\n scrollHandler();\r\n viewportResizeHandler();\r\n inputHandler();\r\n mediaInteractionHandler();\r\n styleSheetObserver();\r\n adoptedStyleSheetObserver();\r\n styleDeclarationObserver();\r\n fontObserver();\r\n selectionObserver();\r\n customElementObserver();\r\n pluginHandlers.forEach((h) => h());\r\n });\r\n}\r\nfunction hasNestedCSSRule(prop) {\r\n return typeof window[prop] !== 'undefined';\r\n}\r\nfunction canMonkeyPatchNestedCSSRule(prop) {\r\n return Boolean(typeof window[prop] !== 'undefined' &&\r\n window[prop].prototype &&\r\n 'insertRule' in window[prop].prototype &&\r\n 'deleteRule' in window[prop].prototype);\r\n}\n\nexport { INPUT_TAGS, initAdoptedStyleSheetObserver, initMutationObserver, initObservers, initScrollObserver, mutationBuffers };\n", "class CrossOriginIframeMirror {\r\n constructor(generateIdFn) {\r\n this.generateIdFn = generateIdFn;\r\n this.iframeIdToRemoteIdMap = new WeakMap();\r\n this.iframeRemoteIdToIdMap = new WeakMap();\r\n }\r\n getId(iframe, remoteId, idToRemoteMap, remoteToIdMap) {\r\n const idToRemoteIdMap = idToRemoteMap || this.getIdToRemoteIdMap(iframe);\r\n const remoteIdToIdMap = remoteToIdMap || this.getRemoteIdToIdMap(iframe);\r\n let id = idToRemoteIdMap.get(remoteId);\r\n if (!id) {\r\n id = this.generateIdFn();\r\n idToRemoteIdMap.set(remoteId, id);\r\n remoteIdToIdMap.set(id, remoteId);\r\n }\r\n return id;\r\n }\r\n getIds(iframe, remoteId) {\r\n const idToRemoteIdMap = this.getIdToRemoteIdMap(iframe);\r\n const remoteIdToIdMap = this.getRemoteIdToIdMap(iframe);\r\n return remoteId.map((id) => this.getId(iframe, id, idToRemoteIdMap, remoteIdToIdMap));\r\n }\r\n getRemoteId(iframe, id, map) {\r\n const remoteIdToIdMap = map || this.getRemoteIdToIdMap(iframe);\r\n if (typeof id !== 'number')\r\n return id;\r\n const remoteId = remoteIdToIdMap.get(id);\r\n if (!remoteId)\r\n return -1;\r\n return remoteId;\r\n }\r\n getRemoteIds(iframe, ids) {\r\n const remoteIdToIdMap = this.getRemoteIdToIdMap(iframe);\r\n return ids.map((id) => this.getRemoteId(iframe, id, remoteIdToIdMap));\r\n }\r\n reset(iframe) {\r\n if (!iframe) {\r\n this.iframeIdToRemoteIdMap = new WeakMap();\r\n this.iframeRemoteIdToIdMap = new WeakMap();\r\n return;\r\n }\r\n this.iframeIdToRemoteIdMap.delete(iframe);\r\n this.iframeRemoteIdToIdMap.delete(iframe);\r\n }\r\n getIdToRemoteIdMap(iframe) {\r\n let idToRemoteIdMap = this.iframeIdToRemoteIdMap.get(iframe);\r\n if (!idToRemoteIdMap) {\r\n idToRemoteIdMap = new Map();\r\n this.iframeIdToRemoteIdMap.set(iframe, idToRemoteIdMap);\r\n }\r\n return idToRemoteIdMap;\r\n }\r\n getRemoteIdToIdMap(iframe) {\r\n let remoteIdToIdMap = this.iframeRemoteIdToIdMap.get(iframe);\r\n if (!remoteIdToIdMap) {\r\n remoteIdToIdMap = new Map();\r\n this.iframeRemoteIdToIdMap.set(iframe, remoteIdToIdMap);\r\n }\r\n return remoteIdToIdMap;\r\n }\r\n}\n\nexport { CrossOriginIframeMirror as default };\n", "import { genId, NodeType } from '../../../rrweb-snapshot/es/rrweb-snapshot.js';\nimport CrossOriginIframeMirror from './cross-origin-iframe-mirror.js';\nimport { EventType, IncrementalSource } from '../../../types/dist/rrweb-types.js';\n\nclass IframeManagerNoop {\r\n constructor() {\r\n this.crossOriginIframeMirror = new CrossOriginIframeMirror(genId);\r\n this.crossOriginIframeRootIdMap = new WeakMap();\r\n }\r\n addIframe() {\r\n }\r\n addLoadListener() {\r\n }\r\n attachIframe() {\r\n }\r\n}\r\nclass IframeManager {\r\n constructor(options) {\r\n this.iframes = new WeakMap();\r\n this.crossOriginIframeMap = new WeakMap();\r\n this.crossOriginIframeMirror = new CrossOriginIframeMirror(genId);\r\n this.crossOriginIframeRootIdMap = new WeakMap();\r\n this.mutationCb = options.mutationCb;\r\n this.wrappedEmit = options.wrappedEmit;\r\n this.stylesheetManager = options.stylesheetManager;\r\n this.recordCrossOriginIframes = options.recordCrossOriginIframes;\r\n this.crossOriginIframeStyleMirror = new CrossOriginIframeMirror(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror));\r\n this.mirror = options.mirror;\r\n if (this.recordCrossOriginIframes) {\r\n window.addEventListener('message', this.handleMessage.bind(this));\r\n }\r\n }\r\n addIframe(iframeEl) {\r\n this.iframes.set(iframeEl, true);\r\n if (iframeEl.contentWindow)\r\n this.crossOriginIframeMap.set(iframeEl.contentWindow, iframeEl);\r\n }\r\n addLoadListener(cb) {\r\n this.loadListener = cb;\r\n }\r\n attachIframe(iframeEl, childSn) {\r\n this.mutationCb({\r\n adds: [\r\n {\r\n parentId: this.mirror.getId(iframeEl),\r\n nextId: null,\r\n node: childSn,\r\n },\r\n ],\r\n removes: [],\r\n texts: [],\r\n attributes: [],\r\n isAttachIframe: true,\r\n });\r\n this.loadListener?.(iframeEl);\r\n if (iframeEl.contentDocument &&\r\n iframeEl.contentDocument.adoptedStyleSheets &&\r\n iframeEl.contentDocument.adoptedStyleSheets.length > 0)\r\n this.stylesheetManager.adoptStyleSheets(iframeEl.contentDocument.adoptedStyleSheets, this.mirror.getId(iframeEl.contentDocument));\r\n }\r\n handleMessage(message) {\r\n const crossOriginMessageEvent = message;\r\n if (crossOriginMessageEvent.data.type !== 'rrweb' ||\r\n crossOriginMessageEvent.origin !== crossOriginMessageEvent.data.origin)\r\n return;\r\n const iframeSourceWindow = message.source;\r\n if (!iframeSourceWindow)\r\n return;\r\n const iframeEl = this.crossOriginIframeMap.get(message.source);\r\n if (!iframeEl)\r\n return;\r\n const transformedEvent = this.transformCrossOriginEvent(iframeEl, crossOriginMessageEvent.data.event);\r\n if (transformedEvent)\r\n this.wrappedEmit(transformedEvent, crossOriginMessageEvent.data.isCheckout);\r\n }\r\n transformCrossOriginEvent(iframeEl, e) {\r\n switch (e.type) {\r\n case EventType.FullSnapshot: {\r\n this.crossOriginIframeMirror.reset(iframeEl);\r\n this.crossOriginIframeStyleMirror.reset(iframeEl);\r\n this.replaceIdOnNode(e.data.node, iframeEl);\r\n const rootId = e.data.node.id;\r\n this.crossOriginIframeRootIdMap.set(iframeEl, rootId);\r\n this.patchRootIdOnNode(e.data.node, rootId);\r\n return {\r\n timestamp: e.timestamp,\r\n type: EventType.IncrementalSnapshot,\r\n data: {\r\n source: IncrementalSource.Mutation,\r\n adds: [\r\n {\r\n parentId: this.mirror.getId(iframeEl),\r\n nextId: null,\r\n node: e.data.node,\r\n },\r\n ],\r\n removes: [],\r\n texts: [],\r\n attributes: [],\r\n isAttachIframe: true,\r\n },\r\n };\r\n }\r\n case EventType.Meta:\r\n case EventType.Load:\r\n case EventType.DomContentLoaded: {\r\n return false;\r\n }\r\n case EventType.Plugin: {\r\n return e;\r\n }\r\n case EventType.Custom: {\r\n this.replaceIds(e.data.payload, iframeEl, ['id', 'parentId', 'previousId', 'nextId']);\r\n return e;\r\n }\r\n case EventType.IncrementalSnapshot: {\r\n switch (e.data.source) {\r\n case IncrementalSource.Mutation: {\r\n e.data.adds.forEach((n) => {\r\n this.replaceIds(n, iframeEl, [\r\n 'parentId',\r\n 'nextId',\r\n 'previousId',\r\n ]);\r\n this.replaceIdOnNode(n.node, iframeEl);\r\n const rootId = this.crossOriginIframeRootIdMap.get(iframeEl);\r\n rootId && this.patchRootIdOnNode(n.node, rootId);\r\n });\r\n e.data.removes.forEach((n) => {\r\n this.replaceIds(n, iframeEl, ['parentId', 'id']);\r\n });\r\n e.data.attributes.forEach((n) => {\r\n this.replaceIds(n, iframeEl, ['id']);\r\n });\r\n e.data.texts.forEach((n) => {\r\n this.replaceIds(n, iframeEl, ['id']);\r\n });\r\n return e;\r\n }\r\n case IncrementalSource.Drag:\r\n case IncrementalSource.TouchMove:\r\n case IncrementalSource.MouseMove: {\r\n e.data.positions.forEach((p) => {\r\n this.replaceIds(p, iframeEl, ['id']);\r\n });\r\n return e;\r\n }\r\n case IncrementalSource.ViewportResize: {\r\n return false;\r\n }\r\n case IncrementalSource.MediaInteraction:\r\n case IncrementalSource.MouseInteraction:\r\n case IncrementalSource.Scroll:\r\n case IncrementalSource.CanvasMutation:\r\n case IncrementalSource.Input: {\r\n this.replaceIds(e.data, iframeEl, ['id']);\r\n return e;\r\n }\r\n case IncrementalSource.StyleSheetRule:\r\n case IncrementalSource.StyleDeclaration: {\r\n this.replaceIds(e.data, iframeEl, ['id']);\r\n this.replaceStyleIds(e.data, iframeEl, ['styleId']);\r\n return e;\r\n }\r\n case IncrementalSource.Font: {\r\n return e;\r\n }\r\n case IncrementalSource.Selection: {\r\n e.data.ranges.forEach((range) => {\r\n this.replaceIds(range, iframeEl, ['start', 'end']);\r\n });\r\n return e;\r\n }\r\n case IncrementalSource.AdoptedStyleSheet: {\r\n this.replaceIds(e.data, iframeEl, ['id']);\r\n this.replaceStyleIds(e.data, iframeEl, ['styleIds']);\r\n e.data.styles?.forEach((style) => {\r\n this.replaceStyleIds(style, iframeEl, ['styleId']);\r\n });\r\n return e;\r\n }\r\n }\r\n }\r\n }\r\n return false;\r\n }\r\n replace(iframeMirror, obj, iframeEl, keys) {\r\n for (const key of keys) {\r\n if (!Array.isArray(obj[key]) && typeof obj[key] !== 'number')\r\n continue;\r\n if (Array.isArray(obj[key])) {\r\n obj[key] = iframeMirror.getIds(iframeEl, obj[key]);\r\n }\r\n else {\r\n obj[key] = iframeMirror.getId(iframeEl, obj[key]);\r\n }\r\n }\r\n return obj;\r\n }\r\n replaceIds(obj, iframeEl, keys) {\r\n return this.replace(this.crossOriginIframeMirror, obj, iframeEl, keys);\r\n }\r\n replaceStyleIds(obj, iframeEl, keys) {\r\n return this.replace(this.crossOriginIframeStyleMirror, obj, iframeEl, keys);\r\n }\r\n replaceIdOnNode(node, iframeEl) {\r\n this.replaceIds(node, iframeEl, ['id', 'rootId']);\r\n if ('childNodes' in node) {\r\n node.childNodes.forEach((child) => {\r\n this.replaceIdOnNode(child, iframeEl);\r\n });\r\n }\r\n }\r\n patchRootIdOnNode(node, rootId) {\r\n if (node.type !== NodeType.Document && !node.rootId)\r\n node.rootId = rootId;\r\n if ('childNodes' in node) {\r\n node.childNodes.forEach((child) => {\r\n this.patchRootIdOnNode(child, rootId);\r\n });\r\n }\r\n }\r\n}\n\nexport { IframeManager, IframeManagerNoop };\n", "import { initMutationObserver, initScrollObserver, initAdoptedStyleSheetObserver } from './observer.js';\nimport { setTimeout, patch, inDom } from '../utils.js';\nimport { isNativeShadowDom } from '../../../rrweb-snapshot/es/rrweb-snapshot.js';\n\nclass ShadowDomManagerNoop {\r\n init() {\r\n }\r\n addShadowRoot() {\r\n }\r\n observeAttachShadow() {\r\n }\r\n reset() {\r\n }\r\n}\r\nclass ShadowDomManager {\r\n constructor(options) {\r\n this.shadowDoms = new WeakSet();\r\n this.restoreHandlers = [];\r\n this.mutationCb = options.mutationCb;\r\n this.scrollCb = options.scrollCb;\r\n this.bypassOptions = options.bypassOptions;\r\n this.mirror = options.mirror;\r\n this.init();\r\n }\r\n init() {\r\n this.reset();\r\n this.patchAttachShadow(Element, document);\r\n }\r\n addShadowRoot(shadowRoot, doc) {\r\n if (!isNativeShadowDom(shadowRoot))\r\n return;\r\n if (this.shadowDoms.has(shadowRoot))\r\n return;\r\n this.shadowDoms.add(shadowRoot);\r\n const observer = initMutationObserver({\r\n ...this.bypassOptions,\r\n doc,\r\n mutationCb: this.mutationCb,\r\n mirror: this.mirror,\r\n shadowDomManager: this,\r\n }, shadowRoot);\r\n this.restoreHandlers.push(() => observer.disconnect());\r\n this.restoreHandlers.push(initScrollObserver({\r\n ...this.bypassOptions,\r\n scrollCb: this.scrollCb,\r\n doc: shadowRoot,\r\n mirror: this.mirror,\r\n }));\r\n setTimeout(() => {\r\n if (shadowRoot.adoptedStyleSheets &&\r\n shadowRoot.adoptedStyleSheets.length > 0)\r\n this.bypassOptions.stylesheetManager.adoptStyleSheets(shadowRoot.adoptedStyleSheets, this.mirror.getId(shadowRoot.host));\r\n this.restoreHandlers.push(initAdoptedStyleSheetObserver({\r\n mirror: this.mirror,\r\n stylesheetManager: this.bypassOptions.stylesheetManager,\r\n }, shadowRoot));\r\n }, 0);\r\n }\r\n observeAttachShadow(iframeElement) {\r\n if (!iframeElement.contentWindow || !iframeElement.contentDocument)\r\n return;\r\n this.patchAttachShadow(iframeElement.contentWindow.Element, iframeElement.contentDocument);\r\n }\r\n patchAttachShadow(element, doc) {\r\n const manager = this;\r\n this.restoreHandlers.push(patch(element.prototype, 'attachShadow', function (original) {\r\n return function (option) {\r\n const shadowRoot = original.call(this, option);\r\n if (this.shadowRoot && inDom(this))\r\n manager.addShadowRoot(this.shadowRoot, doc);\r\n return shadowRoot;\r\n };\r\n }));\r\n }\r\n reset() {\r\n this.restoreHandlers.forEach((handler) => {\r\n try {\r\n handler();\r\n }\r\n catch (e) {\r\n }\r\n });\r\n this.restoreHandlers = [];\r\n this.shadowDoms = new WeakSet();\r\n }\r\n}\n\nexport { ShadowDomManager, ShadowDomManagerNoop };\n", "import { onRequestAnimationFrame, isBlocked } from '../../../utils.js';\nimport { CanvasContext } from '../../../../../types/dist/rrweb-types.js';\nimport initCanvas2DMutationObserver from './2d.js';\nimport initCanvasContextObserver from './canvas.js';\nimport initCanvasWebGLMutationObserver from './webgl.js';\nimport { getImageBitmapDataUrlWorkerURL as t } from '../../../../../rrweb-worker/es/rrweb-worker/index.js';\nimport { callbackWrapper, registerErrorHandler } from '../../error-handler.js';\n\nclass CanvasManagerNoop {\r\n reset() {\r\n }\r\n freeze() {\r\n }\r\n unfreeze() {\r\n }\r\n lock() {\r\n }\r\n unlock() {\r\n }\r\n snapshot() {\r\n }\r\n}\r\nclass CanvasManager {\r\n reset() {\r\n this.pendingCanvasMutations.clear();\r\n this.resetObservers && this.resetObservers();\r\n }\r\n freeze() {\r\n this.frozen = true;\r\n }\r\n unfreeze() {\r\n this.frozen = false;\r\n }\r\n lock() {\r\n this.locked = true;\r\n }\r\n unlock() {\r\n this.locked = false;\r\n }\r\n constructor(options) {\r\n this.pendingCanvasMutations = new Map();\r\n this.rafStamps = { latestId: 0, invokeId: null };\r\n this.frozen = false;\r\n this.locked = false;\r\n this.processMutation = (target, mutation) => {\r\n const newFrame = this.rafStamps.invokeId &&\r\n this.rafStamps.latestId !== this.rafStamps.invokeId;\r\n if (newFrame || !this.rafStamps.invokeId)\r\n this.rafStamps.invokeId = this.rafStamps.latestId;\r\n if (!this.pendingCanvasMutations.has(target)) {\r\n this.pendingCanvasMutations.set(target, []);\r\n }\r\n this.pendingCanvasMutations.get(target).push(mutation);\r\n };\r\n const { sampling = 'all', win, blockClass, blockSelector, unblockSelector, maxCanvasSize, recordCanvas, dataURLOptions, errorHandler, } = options;\r\n this.mutationCb = options.mutationCb;\r\n this.mirror = options.mirror;\r\n this.options = options;\r\n if (errorHandler) {\r\n registerErrorHandler(errorHandler);\r\n }\r\n if (options.enableManualSnapshot) {\r\n return;\r\n }\r\n callbackWrapper(() => {\r\n if (recordCanvas && sampling === 'all')\r\n this.initCanvasMutationObserver(win, blockClass, blockSelector, unblockSelector);\r\n if (recordCanvas && typeof sampling === 'number')\r\n this.initCanvasFPSObserver(sampling, win, blockClass, blockSelector, unblockSelector, maxCanvasSize, {\r\n dataURLOptions,\r\n });\r\n })();\r\n }\r\n initCanvasFPSObserver(fps, win, blockClass, blockSelector, unblockSelector, maxCanvasSize, options) {\r\n const canvasContextReset = initCanvasContextObserver(win, blockClass, blockSelector, unblockSelector, true);\r\n const rafId = this.takeSnapshot(false, fps, win, blockClass, blockSelector, unblockSelector, maxCanvasSize, options.dataURLOptions);\r\n this.resetObservers = () => {\r\n canvasContextReset();\r\n cancelAnimationFrame(rafId);\r\n };\r\n }\r\n initCanvasMutationObserver(win, blockClass, blockSelector, unblockSelector) {\r\n this.startRAFTimestamping();\r\n this.startPendingCanvasMutationFlusher();\r\n const canvasContextReset = initCanvasContextObserver(win, blockClass, blockSelector, unblockSelector, false);\r\n const canvas2DReset = initCanvas2DMutationObserver(this.processMutation.bind(this), win, blockClass, blockSelector, unblockSelector);\r\n const canvasWebGL1and2Reset = initCanvasWebGLMutationObserver(this.processMutation.bind(this), win, blockClass, blockSelector, unblockSelector, this.mirror);\r\n this.resetObservers = () => {\r\n canvasContextReset();\r\n canvas2DReset();\r\n canvasWebGL1and2Reset();\r\n };\r\n }\r\n snapshot(canvasElement) {\r\n const { options } = this;\r\n const rafId = this.takeSnapshot(true, options.sampling === 'all' ? 2 : options.sampling || 2, options.win, options.blockClass, options.blockSelector, options.unblockSelector, options.maxCanvasSize, options.dataURLOptions, canvasElement);\r\n this.resetObservers = () => {\r\n cancelAnimationFrame(rafId);\r\n };\r\n }\r\n takeSnapshot(isManualSnapshot, fps, win, blockClass, blockSelector, unblockSelector, maxCanvasSize, dataURLOptions, canvasElement) {\r\n const snapshotInProgressMap = new Map();\r\n const worker = new Worker(t());\r\n worker.onmessage = (e) => {\r\n const data = e.data;\r\n const { id } = data;\r\n snapshotInProgressMap.set(id, false);\r\n if (!('base64' in data))\r\n return;\r\n const { base64, type, width, height } = data;\r\n this.mutationCb({\r\n id,\r\n type: CanvasContext['2D'],\r\n commands: [\r\n {\r\n property: 'clearRect',\r\n args: [0, 0, width, height],\r\n },\r\n {\r\n property: 'drawImage',\r\n args: [\r\n {\r\n rr_type: 'ImageBitmap',\r\n args: [\r\n {\r\n rr_type: 'Blob',\r\n data: [{ rr_type: 'ArrayBuffer', base64 }],\r\n type,\r\n },\r\n ],\r\n },\r\n 0,\r\n 0,\r\n width,\r\n height,\r\n ],\r\n },\r\n ],\r\n });\r\n };\r\n const timeBetweenSnapshots = 1000 / fps;\r\n let lastSnapshotTime = 0;\r\n let rafId;\r\n const getCanvas = (canvasElement) => {\r\n if (canvasElement) {\r\n return [canvasElement];\r\n }\r\n const matchedCanvas = [];\r\n win.document.querySelectorAll('canvas').forEach((canvas) => {\r\n if (!isBlocked(canvas, blockClass, blockSelector, unblockSelector, true)) {\r\n matchedCanvas.push(canvas);\r\n }\r\n });\r\n return matchedCanvas;\r\n };\r\n const takeCanvasSnapshots = (timestamp) => {\r\n if (lastSnapshotTime &&\r\n timestamp - lastSnapshotTime < timeBetweenSnapshots) {\r\n rafId = onRequestAnimationFrame(takeCanvasSnapshots);\r\n return;\r\n }\r\n lastSnapshotTime = timestamp;\r\n getCanvas(canvasElement).forEach((canvas) => {\r\n const id = this.mirror.getId(canvas);\r\n if (snapshotInProgressMap.get(id))\r\n return;\r\n if (!canvas.width || !canvas.height)\r\n return;\r\n snapshotInProgressMap.set(id, true);\r\n if (!isManualSnapshot &&\r\n ['webgl', 'webgl2'].includes(canvas.__context)) {\r\n const context = canvas.getContext(canvas.__context);\r\n if (context?.getContextAttributes()?.preserveDrawingBuffer === false) {\r\n context.clear(context.COLOR_BUFFER_BIT);\r\n }\r\n }\r\n createImageBitmap(canvas)\r\n .then((bitmap) => {\r\n worker.postMessage({\r\n id,\r\n bitmap,\r\n width: canvas.width,\r\n height: canvas.height,\r\n dataURLOptions,\r\n maxCanvasSize,\r\n }, [bitmap]);\r\n })\r\n .catch((error) => {\r\n callbackWrapper(() => {\r\n throw error;\r\n })();\r\n });\r\n });\r\n rafId = onRequestAnimationFrame(takeCanvasSnapshots);\r\n };\r\n rafId = onRequestAnimationFrame(takeCanvasSnapshots);\r\n return rafId;\r\n }\r\n startPendingCanvasMutationFlusher() {\r\n onRequestAnimationFrame(() => this.flushPendingCanvasMutations());\r\n }\r\n startRAFTimestamping() {\r\n const setLatestRAFTimestamp = (timestamp) => {\r\n this.rafStamps.latestId = timestamp;\r\n onRequestAnimationFrame(setLatestRAFTimestamp);\r\n };\r\n onRequestAnimationFrame(setLatestRAFTimestamp);\r\n }\r\n flushPendingCanvasMutations() {\r\n this.pendingCanvasMutations.forEach((values, canvas) => {\r\n const id = this.mirror.getId(canvas);\r\n this.flushPendingCanvasMutationFor(canvas, id);\r\n });\r\n onRequestAnimationFrame(() => this.flushPendingCanvasMutations());\r\n }\r\n flushPendingCanvasMutationFor(canvas, id) {\r\n if (this.frozen || this.locked) {\r\n return;\r\n }\r\n const valuesWithType = this.pendingCanvasMutations.get(canvas);\r\n if (!valuesWithType || id === -1)\r\n return;\r\n const values = valuesWithType.map((value) => {\r\n const { type, ...rest } = value;\r\n return rest;\r\n });\r\n const { type } = valuesWithType[0];\r\n this.mutationCb({ id, type, commands: values });\r\n this.pendingCanvasMutations.delete(canvas);\r\n }\r\n}\n\nexport { CanvasManager, CanvasManagerNoop };\n", "import { stringifyRule } from '../../../rrweb-snapshot/es/rrweb-snapshot.js';\nimport { StyleSheetMirror } from '../utils.js';\n\nclass StylesheetManager {\r\n constructor(options) {\r\n this.trackedLinkElements = new WeakSet();\r\n this.styleMirror = new StyleSheetMirror();\r\n this.mutationCb = options.mutationCb;\r\n this.adoptedStyleSheetCb = options.adoptedStyleSheetCb;\r\n }\r\n attachLinkElement(linkEl, childSn) {\r\n if ('_cssText' in childSn.attributes)\r\n this.mutationCb({\r\n adds: [],\r\n removes: [],\r\n texts: [],\r\n attributes: [\r\n {\r\n id: childSn.id,\r\n attributes: childSn\r\n .attributes,\r\n },\r\n ],\r\n });\r\n this.trackLinkElement(linkEl);\r\n }\r\n trackLinkElement(linkEl) {\r\n if (this.trackedLinkElements.has(linkEl))\r\n return;\r\n this.trackedLinkElements.add(linkEl);\r\n this.trackStylesheetInLinkElement(linkEl);\r\n }\r\n adoptStyleSheets(sheets, hostId) {\r\n if (sheets.length === 0)\r\n return;\r\n const adoptedStyleSheetData = {\r\n id: hostId,\r\n styleIds: [],\r\n };\r\n const styles = [];\r\n for (const sheet of sheets) {\r\n let styleId;\r\n if (!this.styleMirror.has(sheet)) {\r\n styleId = this.styleMirror.add(sheet);\r\n styles.push({\r\n styleId,\r\n rules: Array.from(sheet.rules || CSSRule, (r, index) => ({\r\n rule: stringifyRule(r),\r\n index,\r\n })),\r\n });\r\n }\r\n else\r\n styleId = this.styleMirror.getId(sheet);\r\n adoptedStyleSheetData.styleIds.push(styleId);\r\n }\r\n if (styles.length > 0)\r\n adoptedStyleSheetData.styles = styles;\r\n this.adoptedStyleSheetCb(adoptedStyleSheetData);\r\n }\r\n reset() {\r\n this.styleMirror.reset();\r\n this.trackedLinkElements = new WeakSet();\r\n }\r\n trackStylesheetInLinkElement(linkEl) {\r\n }\r\n}\n\nexport { StylesheetManager };\n", "import { onRequestAnimationFrame } from '../utils.js';\n\nclass ProcessedNodeManager {\r\n constructor() {\r\n this.nodeMap = new WeakMap();\r\n this.loop = true;\r\n this.periodicallyClear();\r\n }\r\n periodicallyClear() {\r\n onRequestAnimationFrame(() => {\r\n this.clear();\r\n if (this.loop)\r\n this.periodicallyClear();\r\n });\r\n }\r\n inOtherBuffer(node, thisBuffer) {\r\n const buffers = this.nodeMap.get(node);\r\n return (buffers && Array.from(buffers).some((buffer) => buffer !== thisBuffer));\r\n }\r\n add(node, buffer) {\r\n this.nodeMap.set(node, (this.nodeMap.get(node) || new Set()).add(buffer));\r\n }\r\n clear() {\r\n this.nodeMap = new WeakMap();\r\n }\r\n destroy() {\r\n this.loop = false;\r\n }\r\n}\n\nexport { ProcessedNodeManager as default };\n", "import { createMirror, snapshot } from '../../../rrweb-snapshot/es/rrweb-snapshot.js';\nimport { initObservers, mutationBuffers } from './observer.js';\nimport { polyfill, on, nowTimestamp, getWindowWidth, getWindowHeight, getWindowScroll, isSerializedIframe, isSerializedStylesheet, hasShadowRoot } from '../utils.js';\nimport { EventType, IncrementalSource } from '../../../types/dist/rrweb-types.js';\nimport { IframeManagerNoop, IframeManager } from './iframe-manager.js';\nimport { ShadowDomManagerNoop, ShadowDomManager } from './shadow-dom-manager.js';\nimport { CanvasManagerNoop } from './observers/canvas/canvas-manager.js';\nexport { CanvasManager } from './observers/canvas/canvas-manager.js';\nimport { StylesheetManager } from './stylesheet-manager.js';\nimport ProcessedNodeManager from './processed-node-manager.js';\nimport { callbackWrapper, unregisterErrorHandler, registerErrorHandler } from './error-handler.js';\n\nlet wrappedEmit;\r\nlet _wrappedEmit;\r\nlet _takeFullSnapshot;\r\nconst mirror = createMirror();\r\nfunction record(options = {}) {\r\n const { emit, checkoutEveryNms, checkoutEveryNth, blockClass = 'rr-block', blockSelector = null, unblockSelector = null, ignoreClass = 'rr-ignore', ignoreSelector = null, maskAllText = false, maskTextClass = 'rr-mask', unmaskTextClass = null, maskTextSelector = null, unmaskTextSelector = null, inlineStylesheet = true, maskAllInputs, maskInputOptions: _maskInputOptions, slimDOMOptions: _slimDOMOptions, maskAttributeFn, maskInputFn, maskTextFn, maxCanvasSize = null, packFn, sampling = {}, dataURLOptions = {}, mousemoveWait, recordCanvas = false, recordCrossOriginIframes = false, recordAfter = options.recordAfter === 'DOMContentLoaded'\r\n ? options.recordAfter\r\n : 'load', userTriggeredOnInput = false, collectFonts = false, inlineImages = false, plugins, keepIframeSrcFn = () => false, ignoreCSSAttributes = new Set([]), errorHandler, onMutation, getCanvasManager, } = options;\r\n registerErrorHandler(errorHandler);\r\n const inEmittingFrame = recordCrossOriginIframes\r\n ? window.parent === window\r\n : true;\r\n let passEmitsToParent = false;\r\n if (!inEmittingFrame) {\r\n try {\r\n if (window.parent.document) {\r\n passEmitsToParent = false;\r\n }\r\n }\r\n catch (e) {\r\n passEmitsToParent = true;\r\n }\r\n }\r\n if (inEmittingFrame && !emit) {\r\n throw new Error('emit function is required');\r\n }\r\n if (mousemoveWait !== undefined && sampling.mousemove === undefined) {\r\n sampling.mousemove = mousemoveWait;\r\n }\r\n mirror.reset();\r\n const maskInputOptions = maskAllInputs === true\r\n ? {\r\n color: true,\r\n date: true,\r\n 'datetime-local': true,\r\n email: true,\r\n month: true,\r\n number: true,\r\n range: true,\r\n search: true,\r\n tel: true,\r\n text: true,\r\n time: true,\r\n url: true,\r\n week: true,\r\n textarea: true,\r\n select: true,\r\n radio: true,\r\n checkbox: true,\r\n }\r\n : _maskInputOptions !== undefined\r\n ? _maskInputOptions\r\n : {};\r\n const slimDOMOptions = _slimDOMOptions === true || _slimDOMOptions === 'all'\r\n ? {\r\n script: true,\r\n comment: true,\r\n headFavicon: true,\r\n headWhitespace: true,\r\n headMetaSocial: true,\r\n headMetaRobots: true,\r\n headMetaHttpEquiv: true,\r\n headMetaVerification: true,\r\n headMetaAuthorship: _slimDOMOptions === 'all',\r\n headMetaDescKeywords: _slimDOMOptions === 'all',\r\n }\r\n : _slimDOMOptions\r\n ? _slimDOMOptions\r\n : {};\r\n polyfill();\r\n let lastFullSnapshotEvent;\r\n let incrementalSnapshotCount = 0;\r\n const eventProcessor = (e) => {\r\n for (const plugin of plugins || []) {\r\n if (plugin.eventProcessor) {\r\n e = plugin.eventProcessor(e);\r\n }\r\n }\r\n if (packFn &&\r\n !passEmitsToParent) {\r\n e = packFn(e);\r\n }\r\n return e;\r\n };\r\n wrappedEmit = (r, isCheckout) => {\r\n const e = r;\r\n e.timestamp = nowTimestamp();\r\n if (mutationBuffers[0]?.isFrozen() &&\r\n e.type !== EventType.FullSnapshot &&\r\n !(e.type === EventType.IncrementalSnapshot &&\r\n e.data.source === IncrementalSource.Mutation)) {\r\n mutationBuffers.forEach((buf) => buf.unfreeze());\r\n }\r\n if (inEmittingFrame) {\r\n emit?.(eventProcessor(e), isCheckout);\r\n }\r\n else if (passEmitsToParent) {\r\n const message = {\r\n type: 'rrweb',\r\n event: eventProcessor(e),\r\n origin: window.location.origin,\r\n isCheckout,\r\n };\r\n window.parent.postMessage(message, '*');\r\n }\r\n if (e.type === EventType.FullSnapshot) {\r\n lastFullSnapshotEvent = e;\r\n incrementalSnapshotCount = 0;\r\n }\r\n else if (e.type === EventType.IncrementalSnapshot) {\r\n if (e.data.source === IncrementalSource.Mutation &&\r\n e.data.isAttachIframe) {\r\n return;\r\n }\r\n incrementalSnapshotCount++;\r\n const exceedCount = checkoutEveryNth && incrementalSnapshotCount >= checkoutEveryNth;\r\n const exceedTime = checkoutEveryNms &&\r\n lastFullSnapshotEvent &&\r\n e.timestamp - lastFullSnapshotEvent.timestamp > checkoutEveryNms;\r\n if (exceedCount || exceedTime) {\r\n takeFullSnapshot(true);\r\n }\r\n }\r\n };\r\n _wrappedEmit = wrappedEmit;\r\n const wrappedMutationEmit = (m) => {\r\n wrappedEmit({\r\n type: EventType.IncrementalSnapshot,\r\n data: {\r\n source: IncrementalSource.Mutation,\r\n ...m,\r\n },\r\n });\r\n };\r\n const wrappedScrollEmit = (p) => wrappedEmit({\r\n type: EventType.IncrementalSnapshot,\r\n data: {\r\n source: IncrementalSource.Scroll,\r\n ...p,\r\n },\r\n });\r\n const wrappedCanvasMutationEmit = (p) => wrappedEmit({\r\n type: EventType.IncrementalSnapshot,\r\n data: {\r\n source: IncrementalSource.CanvasMutation,\r\n ...p,\r\n },\r\n });\r\n const wrappedAdoptedStyleSheetEmit = (a) => wrappedEmit({\r\n type: EventType.IncrementalSnapshot,\r\n data: {\r\n source: IncrementalSource.AdoptedStyleSheet,\r\n ...a,\r\n },\r\n });\r\n const stylesheetManager = new StylesheetManager({\r\n mutationCb: wrappedMutationEmit,\r\n adoptedStyleSheetCb: wrappedAdoptedStyleSheetEmit,\r\n });\r\n const iframeManager = typeof __RRWEB_EXCLUDE_IFRAME__ === 'boolean' && __RRWEB_EXCLUDE_IFRAME__\r\n ? new IframeManagerNoop()\r\n : new IframeManager({\r\n mirror,\r\n mutationCb: wrappedMutationEmit,\r\n stylesheetManager: stylesheetManager,\r\n recordCrossOriginIframes,\r\n wrappedEmit,\r\n });\r\n for (const plugin of plugins || []) {\r\n if (plugin.getMirror)\r\n plugin.getMirror({\r\n nodeMirror: mirror,\r\n crossOriginIframeMirror: iframeManager.crossOriginIframeMirror,\r\n crossOriginIframeStyleMirror: iframeManager.crossOriginIframeStyleMirror,\r\n });\r\n }\r\n const processedNodeManager = new ProcessedNodeManager();\r\n const canvasManager = _getCanvasManager(getCanvasManager, {\r\n mirror,\r\n win: window,\r\n mutationCb: (p) => wrappedEmit({\r\n type: EventType.IncrementalSnapshot,\r\n data: {\r\n source: IncrementalSource.CanvasMutation,\r\n ...p,\r\n },\r\n }),\r\n recordCanvas,\r\n blockClass,\r\n blockSelector,\r\n unblockSelector,\r\n maxCanvasSize,\r\n sampling: sampling['canvas'],\r\n dataURLOptions,\r\n errorHandler,\r\n });\r\n const shadowDomManager = typeof __RRWEB_EXCLUDE_SHADOW_DOM__ === 'boolean' &&\r\n __RRWEB_EXCLUDE_SHADOW_DOM__\r\n ? new ShadowDomManagerNoop()\r\n : new ShadowDomManager({\r\n mutationCb: wrappedMutationEmit,\r\n scrollCb: wrappedScrollEmit,\r\n bypassOptions: {\r\n onMutation,\r\n blockClass,\r\n blockSelector,\r\n unblockSelector,\r\n maskAllText,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n inlineStylesheet,\r\n maskInputOptions,\r\n dataURLOptions,\r\n maskAttributeFn,\r\n maskTextFn,\r\n maskInputFn,\r\n recordCanvas,\r\n inlineImages,\r\n sampling,\r\n slimDOMOptions,\r\n iframeManager,\r\n stylesheetManager,\r\n canvasManager,\r\n keepIframeSrcFn,\r\n processedNodeManager,\r\n },\r\n mirror,\r\n });\r\n const takeFullSnapshot = (isCheckout = false) => {\r\n wrappedEmit({\r\n type: EventType.Meta,\r\n data: {\r\n href: window.location.href,\r\n width: getWindowWidth(),\r\n height: getWindowHeight(),\r\n },\r\n }, isCheckout);\r\n stylesheetManager.reset();\r\n shadowDomManager.init();\r\n mutationBuffers.forEach((buf) => buf.lock());\r\n const node = snapshot(document, {\r\n mirror,\r\n blockClass,\r\n blockSelector,\r\n unblockSelector,\r\n maskAllText,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n inlineStylesheet,\r\n maskAllInputs: maskInputOptions,\r\n maskAttributeFn,\r\n maskInputFn,\r\n maskTextFn,\r\n slimDOM: slimDOMOptions,\r\n dataURLOptions,\r\n recordCanvas,\r\n inlineImages,\r\n onSerialize: (n) => {\r\n if (isSerializedIframe(n, mirror)) {\r\n iframeManager.addIframe(n);\r\n }\r\n if (isSerializedStylesheet(n, mirror)) {\r\n stylesheetManager.trackLinkElement(n);\r\n }\r\n if (hasShadowRoot(n)) {\r\n shadowDomManager.addShadowRoot(n.shadowRoot, document);\r\n }\r\n },\r\n onIframeLoad: (iframe, childSn) => {\r\n iframeManager.attachIframe(iframe, childSn);\r\n shadowDomManager.observeAttachShadow(iframe);\r\n },\r\n onStylesheetLoad: (linkEl, childSn) => {\r\n stylesheetManager.attachLinkElement(linkEl, childSn);\r\n },\r\n keepIframeSrcFn,\r\n });\r\n if (!node) {\r\n return console.warn('Failed to snapshot the document');\r\n }\r\n wrappedEmit({\r\n type: EventType.FullSnapshot,\r\n data: {\r\n node,\r\n initialOffset: getWindowScroll(window),\r\n },\r\n });\r\n mutationBuffers.forEach((buf) => buf.unlock());\r\n if (document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0)\r\n stylesheetManager.adoptStyleSheets(document.adoptedStyleSheets, mirror.getId(document));\r\n };\r\n _takeFullSnapshot = takeFullSnapshot;\r\n try {\r\n const handlers = [];\r\n const observe = (doc) => {\r\n return callbackWrapper(initObservers)({\r\n onMutation,\r\n mutationCb: wrappedMutationEmit,\r\n mousemoveCb: (positions, source) => wrappedEmit({\r\n type: EventType.IncrementalSnapshot,\r\n data: {\r\n source,\r\n positions,\r\n },\r\n }),\r\n mouseInteractionCb: (d) => wrappedEmit({\r\n type: EventType.IncrementalSnapshot,\r\n data: {\r\n source: IncrementalSource.MouseInteraction,\r\n ...d,\r\n },\r\n }),\r\n scrollCb: wrappedScrollEmit,\r\n viewportResizeCb: (d) => wrappedEmit({\r\n type: EventType.IncrementalSnapshot,\r\n data: {\r\n source: IncrementalSource.ViewportResize,\r\n ...d,\r\n },\r\n }),\r\n inputCb: (v) => wrappedEmit({\r\n type: EventType.IncrementalSnapshot,\r\n data: {\r\n source: IncrementalSource.Input,\r\n ...v,\r\n },\r\n }),\r\n mediaInteractionCb: (p) => wrappedEmit({\r\n type: EventType.IncrementalSnapshot,\r\n data: {\r\n source: IncrementalSource.MediaInteraction,\r\n ...p,\r\n },\r\n }),\r\n styleSheetRuleCb: (r) => wrappedEmit({\r\n type: EventType.IncrementalSnapshot,\r\n data: {\r\n source: IncrementalSource.StyleSheetRule,\r\n ...r,\r\n },\r\n }),\r\n styleDeclarationCb: (r) => wrappedEmit({\r\n type: EventType.IncrementalSnapshot,\r\n data: {\r\n source: IncrementalSource.StyleDeclaration,\r\n ...r,\r\n },\r\n }),\r\n canvasMutationCb: wrappedCanvasMutationEmit,\r\n fontCb: (p) => wrappedEmit({\r\n type: EventType.IncrementalSnapshot,\r\n data: {\r\n source: IncrementalSource.Font,\r\n ...p,\r\n },\r\n }),\r\n selectionCb: (p) => {\r\n wrappedEmit({\r\n type: EventType.IncrementalSnapshot,\r\n data: {\r\n source: IncrementalSource.Selection,\r\n ...p,\r\n },\r\n });\r\n },\r\n customElementCb: (c) => {\r\n wrappedEmit({\r\n type: EventType.IncrementalSnapshot,\r\n data: {\r\n source: IncrementalSource.CustomElement,\r\n ...c,\r\n },\r\n });\r\n },\r\n blockClass,\r\n ignoreClass,\r\n ignoreSelector,\r\n maskAllText,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n maskInputOptions,\r\n inlineStylesheet,\r\n sampling,\r\n recordCanvas,\r\n inlineImages,\r\n userTriggeredOnInput,\r\n collectFonts,\r\n doc,\r\n maskAttributeFn,\r\n maskInputFn,\r\n maskTextFn,\r\n keepIframeSrcFn,\r\n blockSelector,\r\n unblockSelector,\r\n slimDOMOptions,\r\n dataURLOptions,\r\n mirror,\r\n iframeManager,\r\n stylesheetManager,\r\n shadowDomManager,\r\n processedNodeManager,\r\n canvasManager,\r\n ignoreCSSAttributes,\r\n plugins: plugins\r\n ?.filter((p) => p.observer)\r\n ?.map((p) => ({\r\n observer: p.observer,\r\n options: p.options,\r\n callback: (payload) => wrappedEmit({\r\n type: EventType.Plugin,\r\n data: {\r\n plugin: p.name,\r\n payload,\r\n },\r\n }),\r\n })) || [],\r\n }, {});\r\n };\r\n iframeManager.addLoadListener((iframeEl) => {\r\n try {\r\n handlers.push(observe(iframeEl.contentDocument));\r\n }\r\n catch (error) {\r\n console.warn(error);\r\n }\r\n });\r\n const init = () => {\r\n takeFullSnapshot();\r\n handlers.push(observe(document));\r\n };\r\n if (document.readyState === 'interactive' ||\r\n document.readyState === 'complete') {\r\n init();\r\n }\r\n else {\r\n handlers.push(on('DOMContentLoaded', () => {\r\n wrappedEmit({\r\n type: EventType.DomContentLoaded,\r\n data: {},\r\n });\r\n if (recordAfter === 'DOMContentLoaded')\r\n init();\r\n }));\r\n handlers.push(on('load', () => {\r\n wrappedEmit({\r\n type: EventType.Load,\r\n data: {},\r\n });\r\n if (recordAfter === 'load')\r\n init();\r\n }, window));\r\n }\r\n return () => {\r\n handlers.forEach((h) => h());\r\n processedNodeManager.destroy();\r\n _takeFullSnapshot = undefined;\r\n unregisterErrorHandler();\r\n };\r\n }\r\n catch (error) {\r\n console.warn(error);\r\n }\r\n}\r\nfunction addCustomEvent(tag, payload) {\r\n if (!_wrappedEmit) {\r\n throw new Error('please add custom event after start recording');\r\n }\r\n wrappedEmit({\r\n type: EventType.Custom,\r\n data: {\r\n tag,\r\n payload,\r\n },\r\n });\r\n}\r\nfunction freezePage() {\r\n mutationBuffers.forEach((buf) => buf.freeze());\r\n}\r\nfunction takeFullSnapshot(isCheckout) {\r\n if (!_takeFullSnapshot) {\r\n throw new Error('please take full snapshot after start recording');\r\n }\r\n _takeFullSnapshot(isCheckout);\r\n}\r\nrecord.mirror = mirror;\r\nrecord.takeFullSnapshot = takeFullSnapshot;\r\nfunction _getCanvasManager(getCanvasManagerFn, options) {\r\n try {\r\n return getCanvasManagerFn\r\n ? getCanvasManagerFn(options)\r\n : new CanvasManagerNoop();\r\n }\r\n catch {\r\n console.warn('Unable to initialize CanvasManager');\r\n return new CanvasManagerNoop();\r\n }\r\n}\n\nexport { addCustomEvent, record as default, freezePage, mirror, takeFullSnapshot };\n", "type ClassOption = string | RegExp;\n\n/** Duplicate this from @sentry-internal/rrweb so we can export this as well. */\nexport const ReplayEventTypeDomContentLoaded = 0;\nexport const ReplayEventTypeLoad = 1;\nexport const ReplayEventTypeFullSnapshot = 2;\nexport const ReplayEventTypeIncrementalSnapshot = 3;\nexport const ReplayEventTypeMeta = 4;\nexport const ReplayEventTypeCustom = 5;\nexport const ReplayEventTypePlugin = 6;\n\nexport type ReplayEventType =\n | typeof ReplayEventTypeDomContentLoaded\n | typeof ReplayEventTypeLoad\n | typeof ReplayEventTypeFullSnapshot\n | typeof ReplayEventTypeIncrementalSnapshot\n | typeof ReplayEventTypeMeta\n | typeof ReplayEventTypeCustom\n | typeof ReplayEventTypePlugin;\n\n/**\n * This is a partial copy of rrweb's eventWithTime type which only contains the properties\n * we specifcally need in the SDK.\n */\nexport type ReplayEventWithTime = {\n type: ReplayEventType;\n data: unknown;\n timestamp: number;\n delay?: number;\n};\n\n/**\n * This is a partial copy of rrweb's recording options which only contains the properties\n * we specifically us in the SDK. Users can specify additional properties, hence we add the\n * Record union type.\n */\nexport type RrwebRecordOptions = {\n maskAllText?: boolean;\n maskAllInputs?: boolean;\n blockClass?: ClassOption;\n ignoreClass?: string;\n maskTextClass?: ClassOption;\n maskTextSelector?: string;\n blockSelector?: string;\n maskInputOptions?: Record;\n} & Record;\n\nexport interface CanvasManagerInterface {\n reset(): void;\n freeze(): void;\n unfreeze(): void;\n lock(): void;\n unlock(): void;\n snapshot(): void;\n}\n\nexport interface CanvasManagerOptions {\n recordCanvas: boolean;\n enableManualSnapshot?: boolean;\n blockClass: string | RegExp;\n blockSelector: string | null;\n unblockSelector: string | null;\n sampling?: 'all' | number;\n dataURLOptions: Partial<{\n type: string;\n quality: number;\n }>;\n mutationCb: (p: any) => void;\n win: typeof globalThis & Window;\n mirror: any;\n}\n", "/**\n * Converts a timestamp to ms, if it was in s, or keeps it as ms.\n */\nexport function timestampToMs(timestamp: number): number {\n const isMs = timestamp > 9999999999;\n return isMs ? timestamp : timestamp * 1000;\n}\n\n/**\n * Converts a timestamp to s, if it was in ms, or keeps it as s.\n */\nexport function timestampToS(timestamp: number): number {\n const isMs = timestamp > 9999999999;\n return isMs ? timestamp / 1000 : timestamp;\n}\n", "import { EventType } from '@sentry-internal/rrweb';\nimport type { Breadcrumb } from '@sentry/types';\nimport { normalize } from '@sentry/utils';\n\nimport type { ReplayContainer } from '../../types';\n\n/**\n * Add a breadcrumb event to replay.\n */\nexport function addBreadcrumbEvent(replay: ReplayContainer, breadcrumb: Breadcrumb): void {\n if (breadcrumb.category === 'sentry.transaction') {\n return;\n }\n\n if (['ui.click', 'ui.input'].includes(breadcrumb.category as string)) {\n replay.triggerUserActivity();\n } else {\n replay.checkAndHandleExpiredSession();\n }\n\n replay.addUpdate(() => {\n // This should never reject\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n replay.throttledAddEvent({\n type: EventType.Custom,\n // TODO: We were converting from ms to seconds for breadcrumbs, spans,\n // but maybe we should just keep them as milliseconds\n timestamp: (breadcrumb.timestamp || 0) * 1000,\n data: {\n tag: 'breadcrumb',\n // normalize to max. 10 depth and 1_000 properties per object\n payload: normalize(breadcrumb, 10, 1_000),\n },\n });\n\n // Do not flush after console log messages\n return breadcrumb.category === 'console';\n });\n}\n", "import type { INode } from '@sentry-internal/rrweb-snapshot';\n\nconst INTERACTIVE_SELECTOR = 'button,a';\n\n/** Get the closest interactive parent element, or else return the given element. */\nexport function getClosestInteractive(element: Element): Element {\n const closestInteractive = element.closest(INTERACTIVE_SELECTOR);\n return closestInteractive || element;\n}\n\n/**\n * For clicks, we check if the target is inside of a button or link\n * If so, we use this as the target instead\n * This is useful because if you click on the image in ,\n * The target will be the image, not the button, which we don't want here\n */\nexport function getClickTargetNode(event: Event | MouseEvent | Node): Node | INode | null {\n const target = getTargetNode(event);\n\n if (!target || !(target instanceof Element)) {\n return target;\n }\n\n return getClosestInteractive(target);\n}\n\n/** Get the event target node. */\nexport function getTargetNode(event: Node | { target: EventTarget | null }): Node | INode | null {\n if (isEventWithTarget(event)) {\n return event.target as Node | null;\n }\n\n return event;\n}\n\nfunction isEventWithTarget(event: unknown): event is { target: EventTarget | null } {\n return typeof event === 'object' && !!event && 'target' in event;\n}\n", "import { fill } from '@sentry/utils';\n\nimport { WINDOW } from '../../constants';\n\ntype WindowOpenHandler = () => void;\n\nlet handlers: undefined | WindowOpenHandler[];\n\n/**\n * Register a handler to be called when `window.open()` is called.\n * Returns a cleanup function.\n */\nexport function onWindowOpen(cb: WindowOpenHandler): () => void {\n // Ensure to only register this once\n if (!handlers) {\n handlers = [];\n monkeyPatchWindowOpen();\n }\n\n handlers.push(cb);\n\n return () => {\n const pos = handlers ? handlers.indexOf(cb) : -1;\n if (pos > -1) {\n (handlers as WindowOpenHandler[]).splice(pos, 1);\n }\n };\n}\n\nfunction monkeyPatchWindowOpen(): void {\n fill(WINDOW, 'open', function (originalWindowOpen: () => void): () => void {\n return function (...args: unknown[]): void {\n if (handlers) {\n try {\n handlers.forEach(handler => handler());\n } catch (e) {\n // ignore errors in here\n }\n }\n\n return originalWindowOpen.apply(WINDOW, args);\n };\n });\n}\n", "import { IncrementalSource, MouseInteractions, record } from '@sentry-internal/rrweb';\nimport type { Breadcrumb } from '@sentry/types';\n\nimport { WINDOW } from '../constants';\nimport type {\n RecordingEvent,\n ReplayClickDetector,\n ReplayContainer,\n ReplayMultiClickFrame,\n ReplaySlowClickFrame,\n SlowClickConfig,\n} from '../types';\nimport { ReplayEventTypeIncrementalSnapshot } from '../types';\nimport { timestampToS } from '../util/timestamp';\nimport { addBreadcrumbEvent } from './util/addBreadcrumbEvent';\nimport { getClosestInteractive } from './util/domUtils';\nimport { onWindowOpen } from './util/onWindowOpen';\n\ntype ClickBreadcrumb = Breadcrumb & {\n timestamp: number;\n};\n\ninterface Click {\n timestamp: number;\n mutationAfter?: number;\n scrollAfter?: number;\n clickBreadcrumb: ClickBreadcrumb;\n clickCount: number;\n node: HTMLElement;\n}\n\ntype IncrementalRecordingEvent = RecordingEvent & {\n type: typeof ReplayEventTypeIncrementalSnapshot;\n data: { source: IncrementalSource };\n};\n\ntype IncrementalMouseInteractionRecordingEvent = IncrementalRecordingEvent & {\n type: typeof ReplayEventTypeIncrementalSnapshot;\n data: { type: MouseInteractions; id: number };\n};\n\n/** Handle a click. */\nexport function handleClick(clickDetector: ReplayClickDetector, clickBreadcrumb: Breadcrumb, node: HTMLElement): void {\n clickDetector.handleClick(clickBreadcrumb, node);\n}\n\n/** A click detector class that can be used to detect slow or rage clicks on elements. */\nexport class ClickDetector implements ReplayClickDetector {\n // protected for testing\n protected _lastMutation: number;\n protected _lastScroll: number;\n\n private _clicks: Click[];\n private _teardown: undefined | (() => void);\n\n private _threshold: number;\n private _scollTimeout: number;\n private _timeout: number;\n private _ignoreSelector: string;\n\n private _replay: ReplayContainer;\n private _checkClickTimeout?: ReturnType;\n private _addBreadcrumbEvent: typeof addBreadcrumbEvent;\n\n public constructor(\n replay: ReplayContainer,\n slowClickConfig: SlowClickConfig,\n // Just for easier testing\n _addBreadcrumbEvent = addBreadcrumbEvent,\n ) {\n this._lastMutation = 0;\n this._lastScroll = 0;\n this._clicks = [];\n\n // We want everything in s, but options are in ms\n this._timeout = slowClickConfig.timeout / 1000;\n this._threshold = slowClickConfig.threshold / 1000;\n this._scollTimeout = slowClickConfig.scrollTimeout / 1000;\n this._replay = replay;\n this._ignoreSelector = slowClickConfig.ignoreSelector;\n this._addBreadcrumbEvent = _addBreadcrumbEvent;\n }\n\n /** Register click detection handlers on mutation or scroll. */\n public addListeners(): void {\n const cleanupWindowOpen = onWindowOpen(() => {\n // Treat window.open as mutation\n this._lastMutation = nowInSeconds();\n });\n\n this._teardown = () => {\n cleanupWindowOpen();\n\n this._clicks = [];\n this._lastMutation = 0;\n this._lastScroll = 0;\n };\n }\n\n /** Clean up listeners. */\n public removeListeners(): void {\n if (this._teardown) {\n this._teardown();\n }\n\n if (this._checkClickTimeout) {\n clearTimeout(this._checkClickTimeout);\n }\n }\n\n /** @inheritDoc */\n public handleClick(breadcrumb: Breadcrumb, node: HTMLElement): void {\n if (ignoreElement(node, this._ignoreSelector) || !isClickBreadcrumb(breadcrumb)) {\n return;\n }\n\n const newClick: Click = {\n timestamp: timestampToS(breadcrumb.timestamp),\n clickBreadcrumb: breadcrumb,\n // Set this to 0 so we know it originates from the click breadcrumb\n clickCount: 0,\n node,\n };\n\n // If there was a click in the last 1s on the same element, ignore it - only keep a single reference per second\n if (\n this._clicks.some(click => click.node === newClick.node && Math.abs(click.timestamp - newClick.timestamp) < 1)\n ) {\n return;\n }\n\n this._clicks.push(newClick);\n\n // If this is the first new click, set a timeout to check for multi clicks\n if (this._clicks.length === 1) {\n this._scheduleCheckClicks();\n }\n }\n\n /** @inheritDoc */\n public registerMutation(timestamp = Date.now()): void {\n this._lastMutation = timestampToS(timestamp);\n }\n\n /** @inheritDoc */\n public registerScroll(timestamp = Date.now()): void {\n this._lastScroll = timestampToS(timestamp);\n }\n\n /** @inheritDoc */\n public registerClick(element: HTMLElement): void {\n const node = getClosestInteractive(element);\n this._handleMultiClick(node as HTMLElement);\n }\n\n /** Count multiple clicks on elements. */\n private _handleMultiClick(node: HTMLElement): void {\n this._getClicks(node).forEach(click => {\n click.clickCount++;\n });\n }\n\n /** Get all pending clicks for a given node. */\n private _getClicks(node: HTMLElement): Click[] {\n return this._clicks.filter(click => click.node === node);\n }\n\n /** Check the clicks that happened. */\n private _checkClicks(): void {\n const timedOutClicks: Click[] = [];\n\n const now = nowInSeconds();\n\n this._clicks.forEach(click => {\n if (!click.mutationAfter && this._lastMutation) {\n click.mutationAfter = click.timestamp <= this._lastMutation ? this._lastMutation - click.timestamp : undefined;\n }\n if (!click.scrollAfter && this._lastScroll) {\n click.scrollAfter = click.timestamp <= this._lastScroll ? this._lastScroll - click.timestamp : undefined;\n }\n\n // All of these are in seconds!\n if (click.timestamp + this._timeout <= now) {\n timedOutClicks.push(click);\n }\n });\n\n // Remove \"old\" clicks\n for (const click of timedOutClicks) {\n const pos = this._clicks.indexOf(click);\n\n if (pos > -1) {\n this._generateBreadcrumbs(click);\n this._clicks.splice(pos, 1);\n }\n }\n\n // Trigger new check, unless no clicks left\n if (this._clicks.length) {\n this._scheduleCheckClicks();\n }\n }\n\n /** Generate matching breadcrumb(s) for the click. */\n private _generateBreadcrumbs(click: Click): void {\n const replay = this._replay;\n const hadScroll = click.scrollAfter && click.scrollAfter <= this._scollTimeout;\n const hadMutation = click.mutationAfter && click.mutationAfter <= this._threshold;\n\n const isSlowClick = !hadScroll && !hadMutation;\n const { clickCount, clickBreadcrumb } = click;\n\n // Slow click\n if (isSlowClick) {\n // If `mutationAfter` is set, it means a mutation happened after the threshold, but before the timeout\n // If not, it means we just timed out without scroll & mutation\n const timeAfterClickMs = Math.min(click.mutationAfter || this._timeout, this._timeout) * 1000;\n const endReason = timeAfterClickMs < this._timeout * 1000 ? 'mutation' : 'timeout';\n\n const breadcrumb: ReplaySlowClickFrame = {\n type: 'default',\n message: clickBreadcrumb.message,\n timestamp: clickBreadcrumb.timestamp,\n category: 'ui.slowClickDetected',\n data: {\n ...clickBreadcrumb.data,\n url: WINDOW.location.href,\n route: replay.getCurrentRoute(),\n timeAfterClickMs,\n endReason,\n // If clickCount === 0, it means multiClick was not correctly captured here\n // - we still want to send 1 in this case\n clickCount: clickCount || 1,\n },\n };\n\n this._addBreadcrumbEvent(replay, breadcrumb);\n return;\n }\n\n // Multi click\n if (clickCount > 1) {\n const breadcrumb: ReplayMultiClickFrame = {\n type: 'default',\n message: clickBreadcrumb.message,\n timestamp: clickBreadcrumb.timestamp,\n category: 'ui.multiClick',\n data: {\n ...clickBreadcrumb.data,\n url: WINDOW.location.href,\n route: replay.getCurrentRoute(),\n clickCount,\n metric: true,\n },\n };\n\n this._addBreadcrumbEvent(replay, breadcrumb);\n }\n }\n\n /** Schedule to check current clicks. */\n private _scheduleCheckClicks(): void {\n if (this._checkClickTimeout) {\n clearTimeout(this._checkClickTimeout);\n }\n\n this._checkClickTimeout = setTimeout(() => this._checkClicks(), 1000);\n }\n}\n\nconst SLOW_CLICK_TAGS = ['A', 'BUTTON', 'INPUT'];\n\n/** exported for tests only */\nexport function ignoreElement(node: HTMLElement, ignoreSelector: string): boolean {\n if (!SLOW_CLICK_TAGS.includes(node.tagName)) {\n return true;\n }\n\n // If tag, we only want to consider input[type='submit'] & input[type='button']\n if (node.tagName === 'INPUT' && !['submit', 'button'].includes(node.getAttribute('type') || '')) {\n return true;\n }\n\n // If tag, detect special variants that may not lead to an action\n // If target !== _self, we may open the link somewhere else, which would lead to no action\n // Also, when downloading a file, we may not leave the page, but still not trigger an action\n if (\n node.tagName === 'A' &&\n (node.hasAttribute('download') || (node.hasAttribute('target') && node.getAttribute('target') !== '_self'))\n ) {\n return true;\n }\n\n if (ignoreSelector && node.matches(ignoreSelector)) {\n return true;\n }\n\n return false;\n}\n\nfunction isClickBreadcrumb(breadcrumb: Breadcrumb): breadcrumb is ClickBreadcrumb {\n return !!(breadcrumb.data && typeof breadcrumb.data.nodeId === 'number' && breadcrumb.timestamp);\n}\n\n// This is good enough for us, and is easier to test/mock than `timestampInSeconds`\nfunction nowInSeconds(): number {\n return Date.now() / 1000;\n}\n\n/** Update the click detector based on a recording event of rrweb. */\nexport function updateClickDetectorForRecordingEvent(clickDetector: ReplayClickDetector, event: RecordingEvent): void {\n try {\n // note: We only consider incremental snapshots here\n // This means that any full snapshot is ignored for mutation detection - the reason is that we simply cannot know if a mutation happened here.\n // E.g. think that we are buffering, an error happens and we take a full snapshot because we switched to session mode -\n // in this scenario, we would not know if a dead click happened because of the error, which is a key dead click scenario.\n // Instead, by ignoring full snapshots, we have the risk that we generate a false positive\n // (if a mutation _did_ happen but was \"swallowed\" by the full snapshot)\n // But this should be more unlikely as we'd generally capture the incremental snapshot right away\n\n if (!isIncrementalEvent(event)) {\n return;\n }\n\n const { source } = event.data;\n if (source === IncrementalSource.Mutation) {\n clickDetector.registerMutation(event.timestamp);\n }\n\n if (source === IncrementalSource.Scroll) {\n clickDetector.registerScroll(event.timestamp);\n }\n\n if (isIncrementalMouseInteraction(event)) {\n const { type, id } = event.data;\n const node = record.mirror.getNode(id);\n\n if (node instanceof HTMLElement && type === MouseInteractions.Click) {\n clickDetector.registerClick(node);\n }\n }\n } catch {\n // ignore errors here, e.g. if accessing something that does not exist\n }\n}\n\nfunction isIncrementalEvent(event: RecordingEvent): event is IncrementalRecordingEvent {\n return event.type === ReplayEventTypeIncrementalSnapshot;\n}\n\nfunction isIncrementalMouseInteraction(\n event: IncrementalRecordingEvent,\n): event is IncrementalMouseInteractionRecordingEvent {\n return event.data.source === IncrementalSource.MouseInteraction;\n}\n", "import type { ReplayBreadcrumbFrame } from '../types/replayFrame';\n\n/**\n * Create a breadcrumb for a replay.\n */\nexport function createBreadcrumb(\n breadcrumb: Omit & Partial>,\n): ReplayBreadcrumbFrame {\n return {\n timestamp: Date.now() / 1000,\n type: 'default',\n ...breadcrumb,\n };\n}\n", "var NodeType;\r\n(function (NodeType) {\r\n NodeType[NodeType[\"Document\"] = 0] = \"Document\";\r\n NodeType[NodeType[\"DocumentType\"] = 1] = \"DocumentType\";\r\n NodeType[NodeType[\"Element\"] = 2] = \"Element\";\r\n NodeType[NodeType[\"Text\"] = 3] = \"Text\";\r\n NodeType[NodeType[\"CDATA\"] = 4] = \"CDATA\";\r\n NodeType[NodeType[\"Comment\"] = 5] = \"Comment\";\r\n})(NodeType || (NodeType = {}));\n\nfunction isElement(n) {\r\n return n.nodeType === n.ELEMENT_NODE;\r\n}\r\nfunction isShadowRoot(n) {\r\n const host = n?.host;\r\n return Boolean(host?.shadowRoot === n);\r\n}\r\nfunction isNativeShadowDom(shadowRoot) {\r\n return Object.prototype.toString.call(shadowRoot) === '[object ShadowRoot]';\r\n}\r\nfunction fixBrowserCompatibilityIssuesInCSS(cssText) {\r\n if (cssText.includes(' background-clip: text;') &&\r\n !cssText.includes(' -webkit-background-clip: text;')) {\r\n cssText = cssText.replace(' background-clip: text;', ' -webkit-background-clip: text; background-clip: text;');\r\n }\r\n return cssText;\r\n}\r\nfunction escapeImportStatement(rule) {\r\n const { cssText } = rule;\r\n if (cssText.split('\"').length < 3)\r\n return cssText;\r\n const statement = ['@import', `url(${JSON.stringify(rule.href)})`];\r\n if (rule.layerName === '') {\r\n statement.push(`layer`);\r\n }\r\n else if (rule.layerName) {\r\n statement.push(`layer(${rule.layerName})`);\r\n }\r\n if (rule.supportsText) {\r\n statement.push(`supports(${rule.supportsText})`);\r\n }\r\n if (rule.media.length) {\r\n statement.push(rule.media.mediaText);\r\n }\r\n return statement.join(' ') + ';';\r\n}\r\nfunction stringifyStylesheet(s) {\r\n try {\r\n const rules = s.rules || s.cssRules;\r\n return rules\r\n ? fixBrowserCompatibilityIssuesInCSS(Array.from(rules, stringifyRule).join(''))\r\n : null;\r\n }\r\n catch (error) {\r\n return null;\r\n }\r\n}\r\nfunction stringifyRule(rule) {\r\n let importStringified;\r\n if (isCSSImportRule(rule)) {\r\n try {\r\n importStringified =\r\n stringifyStylesheet(rule.styleSheet) ||\r\n escapeImportStatement(rule);\r\n }\r\n catch (error) {\r\n }\r\n }\r\n else if (isCSSStyleRule(rule) && rule.selectorText.includes(':')) {\r\n return fixSafariColons(rule.cssText);\r\n }\r\n return importStringified || rule.cssText;\r\n}\r\nfunction fixSafariColons(cssStringified) {\r\n const regex = /(\\[(?:[\\w-]+)[^\\\\])(:(?:[\\w-]+)\\])/gm;\r\n return cssStringified.replace(regex, '$1\\\\$2');\r\n}\r\nfunction isCSSImportRule(rule) {\r\n return 'styleSheet' in rule;\r\n}\r\nfunction isCSSStyleRule(rule) {\r\n return 'selectorText' in rule;\r\n}\r\nclass Mirror {\r\n constructor() {\r\n this.idNodeMap = new Map();\r\n this.nodeMetaMap = new WeakMap();\r\n }\r\n getId(n) {\r\n if (!n)\r\n return -1;\r\n const id = this.getMeta(n)?.id;\r\n return id ?? -1;\r\n }\r\n getNode(id) {\r\n return this.idNodeMap.get(id) || null;\r\n }\r\n getIds() {\r\n return Array.from(this.idNodeMap.keys());\r\n }\r\n getMeta(n) {\r\n return this.nodeMetaMap.get(n) || null;\r\n }\r\n removeNodeFromMap(n) {\r\n const id = this.getId(n);\r\n this.idNodeMap.delete(id);\r\n if (n.childNodes) {\r\n n.childNodes.forEach((childNode) => this.removeNodeFromMap(childNode));\r\n }\r\n }\r\n has(id) {\r\n return this.idNodeMap.has(id);\r\n }\r\n hasNode(node) {\r\n return this.nodeMetaMap.has(node);\r\n }\r\n add(n, meta) {\r\n const id = meta.id;\r\n this.idNodeMap.set(id, n);\r\n this.nodeMetaMap.set(n, meta);\r\n }\r\n replace(id, n) {\r\n const oldNode = this.getNode(id);\r\n if (oldNode) {\r\n const meta = this.nodeMetaMap.get(oldNode);\r\n if (meta)\r\n this.nodeMetaMap.set(n, meta);\r\n }\r\n this.idNodeMap.set(id, n);\r\n }\r\n reset() {\r\n this.idNodeMap = new Map();\r\n this.nodeMetaMap = new WeakMap();\r\n }\r\n}\r\nfunction createMirror() {\r\n return new Mirror();\r\n}\r\nfunction shouldMaskInput({ maskInputOptions, tagName, type, }) {\r\n if (tagName === 'OPTION') {\r\n tagName = 'SELECT';\r\n }\r\n return Boolean(maskInputOptions[tagName.toLowerCase()] ||\r\n (type && maskInputOptions[type]) ||\r\n type === 'password' ||\r\n (tagName === 'INPUT' && !type && maskInputOptions['text']));\r\n}\r\nfunction maskInputValue({ isMasked, element, value, maskInputFn, }) {\r\n let text = value || '';\r\n if (!isMasked) {\r\n return text;\r\n }\r\n if (maskInputFn) {\r\n text = maskInputFn(text, element);\r\n }\r\n return '*'.repeat(text.length);\r\n}\r\nfunction toLowerCase(str) {\r\n return str.toLowerCase();\r\n}\r\nfunction toUpperCase(str) {\r\n return str.toUpperCase();\r\n}\r\nconst ORIGINAL_ATTRIBUTE_NAME = '__rrweb_original__';\r\nfunction is2DCanvasBlank(canvas) {\r\n const ctx = canvas.getContext('2d');\r\n if (!ctx)\r\n return true;\r\n const chunkSize = 50;\r\n for (let x = 0; x < canvas.width; x += chunkSize) {\r\n for (let y = 0; y < canvas.height; y += chunkSize) {\r\n const getImageData = ctx.getImageData;\r\n const originalGetImageData = ORIGINAL_ATTRIBUTE_NAME in getImageData\r\n ? getImageData[ORIGINAL_ATTRIBUTE_NAME]\r\n : getImageData;\r\n const pixelBuffer = new Uint32Array(originalGetImageData.call(ctx, x, y, Math.min(chunkSize, canvas.width - x), Math.min(chunkSize, canvas.height - y)).data.buffer);\r\n if (pixelBuffer.some((pixel) => pixel !== 0))\r\n return false;\r\n }\r\n }\r\n return true;\r\n}\r\nfunction isNodeMetaEqual(a, b) {\r\n if (!a || !b || a.type !== b.type)\r\n return false;\r\n if (a.type === NodeType.Document)\r\n return a.compatMode === b.compatMode;\r\n else if (a.type === NodeType.DocumentType)\r\n return (a.name === b.name &&\r\n a.publicId === b.publicId &&\r\n a.systemId === b.systemId);\r\n else if (a.type === NodeType.Comment ||\r\n a.type === NodeType.Text ||\r\n a.type === NodeType.CDATA)\r\n return a.textContent === b.textContent;\r\n else if (a.type === NodeType.Element)\r\n return (a.tagName === b.tagName &&\r\n JSON.stringify(a.attributes) ===\r\n JSON.stringify(b.attributes) &&\r\n a.isSVG === b.isSVG &&\r\n a.needBlock === b.needBlock);\r\n return false;\r\n}\r\nfunction getInputType(element) {\r\n const type = element.type;\r\n return element.hasAttribute('data-rr-is-password')\r\n ? 'password'\r\n : type\r\n ?\r\n toLowerCase(type)\r\n : null;\r\n}\r\nfunction getInputValue(el, tagName, type) {\r\n if (tagName === 'INPUT' && (type === 'radio' || type === 'checkbox')) {\r\n return el.getAttribute('value') || '';\r\n }\r\n return el.value;\r\n}\n\nlet _id = 1;\r\nconst tagNameRegex = new RegExp('[^a-z0-9-_:]');\r\nconst IGNORED_NODE = -2;\r\nfunction genId() {\r\n return _id++;\r\n}\r\nfunction getValidTagName(element) {\r\n if (element instanceof HTMLFormElement) {\r\n return 'form';\r\n }\r\n const processedTagName = toLowerCase(element.tagName);\r\n if (tagNameRegex.test(processedTagName)) {\r\n return 'div';\r\n }\r\n return processedTagName;\r\n}\r\nfunction extractOrigin(url) {\r\n let origin = '';\r\n if (url.indexOf('//') > -1) {\r\n origin = url.split('/').slice(0, 3).join('/');\r\n }\r\n else {\r\n origin = url.split('/')[0];\r\n }\r\n origin = origin.split('?')[0];\r\n return origin;\r\n}\r\nlet canvasService;\r\nlet canvasCtx;\r\nconst URL_IN_CSS_REF = /url\\((?:(')([^']*)'|(\")(.*?)\"|([^)]*))\\)/gm;\r\nconst URL_PROTOCOL_MATCH = /^(?:[a-z+]+:)?\\/\\//i;\r\nconst URL_WWW_MATCH = /^www\\..*/i;\r\nconst DATA_URI = /^(data:)([^,]*),(.*)/i;\r\nfunction absoluteToStylesheet(cssText, href) {\r\n return (cssText || '').replace(URL_IN_CSS_REF, (origin, quote1, path1, quote2, path2, path3) => {\r\n const filePath = path1 || path2 || path3;\r\n const maybeQuote = quote1 || quote2 || '';\r\n if (!filePath) {\r\n return origin;\r\n }\r\n if (URL_PROTOCOL_MATCH.test(filePath) || URL_WWW_MATCH.test(filePath)) {\r\n return `url(${maybeQuote}${filePath}${maybeQuote})`;\r\n }\r\n if (DATA_URI.test(filePath)) {\r\n return `url(${maybeQuote}${filePath}${maybeQuote})`;\r\n }\r\n if (filePath[0] === '/') {\r\n return `url(${maybeQuote}${extractOrigin(href) + filePath}${maybeQuote})`;\r\n }\r\n const stack = href.split('/');\r\n const parts = filePath.split('/');\r\n stack.pop();\r\n for (const part of parts) {\r\n if (part === '.') {\r\n continue;\r\n }\r\n else if (part === '..') {\r\n stack.pop();\r\n }\r\n else {\r\n stack.push(part);\r\n }\r\n }\r\n return `url(${maybeQuote}${stack.join('/')}${maybeQuote})`;\r\n });\r\n}\r\nconst SRCSET_NOT_SPACES = /^[^ \\t\\n\\r\\u000c]+/;\r\nconst SRCSET_COMMAS_OR_SPACES = /^[, \\t\\n\\r\\u000c]+/;\r\nfunction getAbsoluteSrcsetString(doc, attributeValue) {\r\n if (attributeValue.trim() === '') {\r\n return attributeValue;\r\n }\r\n let pos = 0;\r\n function collectCharacters(regEx) {\r\n let chars;\r\n const match = regEx.exec(attributeValue.substring(pos));\r\n if (match) {\r\n chars = match[0];\r\n pos += chars.length;\r\n return chars;\r\n }\r\n return '';\r\n }\r\n const output = [];\r\n while (true) {\r\n collectCharacters(SRCSET_COMMAS_OR_SPACES);\r\n if (pos >= attributeValue.length) {\r\n break;\r\n }\r\n let url = collectCharacters(SRCSET_NOT_SPACES);\r\n if (url.slice(-1) === ',') {\r\n url = absoluteToDoc(doc, url.substring(0, url.length - 1));\r\n output.push(url);\r\n }\r\n else {\r\n let descriptorsStr = '';\r\n url = absoluteToDoc(doc, url);\r\n let inParens = false;\r\n while (true) {\r\n const c = attributeValue.charAt(pos);\r\n if (c === '') {\r\n output.push((url + descriptorsStr).trim());\r\n break;\r\n }\r\n else if (!inParens) {\r\n if (c === ',') {\r\n pos += 1;\r\n output.push((url + descriptorsStr).trim());\r\n break;\r\n }\r\n else if (c === '(') {\r\n inParens = true;\r\n }\r\n }\r\n else {\r\n if (c === ')') {\r\n inParens = false;\r\n }\r\n }\r\n descriptorsStr += c;\r\n pos += 1;\r\n }\r\n }\r\n }\r\n return output.join(', ');\r\n}\r\nfunction absoluteToDoc(doc, attributeValue) {\r\n if (!attributeValue || attributeValue.trim() === '') {\r\n return attributeValue;\r\n }\r\n const a = doc.createElement('a');\r\n a.href = attributeValue;\r\n return a.href;\r\n}\r\nfunction isSVGElement(el) {\r\n return Boolean(el.tagName === 'svg' || el.ownerSVGElement);\r\n}\r\nfunction getHref() {\r\n const a = document.createElement('a');\r\n a.href = '';\r\n return a.href;\r\n}\r\nfunction transformAttribute(doc, tagName, name, value, element, maskAttributeFn) {\r\n if (!value) {\r\n return value;\r\n }\r\n if (name === 'src' ||\r\n (name === 'href' && !(tagName === 'use' && value[0] === '#'))) {\r\n return absoluteToDoc(doc, value);\r\n }\r\n else if (name === 'xlink:href' && value[0] !== '#') {\r\n return absoluteToDoc(doc, value);\r\n }\r\n else if (name === 'background' &&\r\n (tagName === 'table' || tagName === 'td' || tagName === 'th')) {\r\n return absoluteToDoc(doc, value);\r\n }\r\n else if (name === 'srcset') {\r\n return getAbsoluteSrcsetString(doc, value);\r\n }\r\n else if (name === 'style') {\r\n return absoluteToStylesheet(value, getHref());\r\n }\r\n else if (tagName === 'object' && name === 'data') {\r\n return absoluteToDoc(doc, value);\r\n }\r\n if (typeof maskAttributeFn === 'function') {\r\n return maskAttributeFn(name, value, element);\r\n }\r\n return value;\r\n}\r\nfunction ignoreAttribute(tagName, name, _value) {\r\n return (tagName === 'video' || tagName === 'audio') && name === 'autoplay';\r\n}\r\nfunction _isBlockedElement(element, blockClass, blockSelector, unblockSelector) {\r\n try {\r\n if (unblockSelector && element.matches(unblockSelector)) {\r\n return false;\r\n }\r\n if (typeof blockClass === 'string') {\r\n if (element.classList.contains(blockClass)) {\r\n return true;\r\n }\r\n }\r\n else {\r\n for (let eIndex = element.classList.length; eIndex--;) {\r\n const className = element.classList[eIndex];\r\n if (blockClass.test(className)) {\r\n return true;\r\n }\r\n }\r\n }\r\n if (blockSelector) {\r\n return element.matches(blockSelector);\r\n }\r\n }\r\n catch (e) {\r\n }\r\n return false;\r\n}\r\nfunction elementClassMatchesRegex(el, regex) {\r\n for (let eIndex = el.classList.length; eIndex--;) {\r\n const className = el.classList[eIndex];\r\n if (regex.test(className)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n}\r\nfunction classMatchesRegex(node, regex, checkAncestors) {\r\n if (!node)\r\n return false;\r\n if (checkAncestors) {\r\n return (distanceToMatch(node, (node) => elementClassMatchesRegex(node, regex)) >= 0);\r\n }\r\n else if (node.nodeType === node.ELEMENT_NODE) {\r\n return elementClassMatchesRegex(node, regex);\r\n }\r\n return false;\r\n}\r\nfunction distanceToMatch(node, matchPredicate, limit = Infinity, distance = 0) {\r\n if (!node)\r\n return -1;\r\n if (node.nodeType !== node.ELEMENT_NODE)\r\n return -1;\r\n if (distance > limit)\r\n return -1;\r\n if (matchPredicate(node))\r\n return distance;\r\n return distanceToMatch(node.parentNode, matchPredicate, limit, distance + 1);\r\n}\r\nfunction createMatchPredicate(className, selector) {\r\n return (node) => {\r\n const el = node;\r\n if (el === null)\r\n return false;\r\n try {\r\n if (className) {\r\n if (typeof className === 'string') {\r\n if (el.matches(`.${className}`))\r\n return true;\r\n }\r\n else if (elementClassMatchesRegex(el, className)) {\r\n return true;\r\n }\r\n }\r\n if (selector && el.matches(selector))\r\n return true;\r\n return false;\r\n }\r\n catch {\r\n return false;\r\n }\r\n };\r\n}\r\nfunction needMaskingText(node, maskTextClass, maskTextSelector, unmaskTextClass, unmaskTextSelector, maskAllText) {\r\n try {\r\n const el = node.nodeType === node.ELEMENT_NODE\r\n ? node\r\n : node.parentElement;\r\n if (el === null)\r\n return false;\r\n if (el.tagName === 'INPUT') {\r\n const autocomplete = el.getAttribute('autocomplete');\r\n const disallowedAutocompleteValues = [\r\n 'current-password',\r\n 'new-password',\r\n 'cc-number',\r\n 'cc-exp',\r\n 'cc-exp-month',\r\n 'cc-exp-year',\r\n 'cc-csc',\r\n ];\r\n if (disallowedAutocompleteValues.includes(autocomplete)) {\r\n return true;\r\n }\r\n }\r\n let maskDistance = -1;\r\n let unmaskDistance = -1;\r\n if (maskAllText) {\r\n unmaskDistance = distanceToMatch(el, createMatchPredicate(unmaskTextClass, unmaskTextSelector));\r\n if (unmaskDistance < 0) {\r\n return true;\r\n }\r\n maskDistance = distanceToMatch(el, createMatchPredicate(maskTextClass, maskTextSelector), unmaskDistance >= 0 ? unmaskDistance : Infinity);\r\n }\r\n else {\r\n maskDistance = distanceToMatch(el, createMatchPredicate(maskTextClass, maskTextSelector));\r\n if (maskDistance < 0) {\r\n return false;\r\n }\r\n unmaskDistance = distanceToMatch(el, createMatchPredicate(unmaskTextClass, unmaskTextSelector), maskDistance >= 0 ? maskDistance : Infinity);\r\n }\r\n return maskDistance >= 0\r\n ? unmaskDistance >= 0\r\n ? maskDistance <= unmaskDistance\r\n : true\r\n : unmaskDistance >= 0\r\n ? false\r\n : !!maskAllText;\r\n }\r\n catch (e) {\r\n }\r\n return !!maskAllText;\r\n}\r\nfunction onceIframeLoaded(iframeEl, listener, iframeLoadTimeout) {\r\n const win = iframeEl.contentWindow;\r\n if (!win) {\r\n return;\r\n }\r\n let fired = false;\r\n let readyState;\r\n try {\r\n readyState = win.document.readyState;\r\n }\r\n catch (error) {\r\n return;\r\n }\r\n if (readyState !== 'complete') {\r\n const timer = setTimeout(() => {\r\n if (!fired) {\r\n listener();\r\n fired = true;\r\n }\r\n }, iframeLoadTimeout);\r\n iframeEl.addEventListener('load', () => {\r\n clearTimeout(timer);\r\n fired = true;\r\n listener();\r\n });\r\n return;\r\n }\r\n const blankUrl = 'about:blank';\r\n if (win.location.href !== blankUrl ||\r\n iframeEl.src === blankUrl ||\r\n iframeEl.src === '') {\r\n setTimeout(listener, 0);\r\n return iframeEl.addEventListener('load', listener);\r\n }\r\n iframeEl.addEventListener('load', listener);\r\n}\r\nfunction onceStylesheetLoaded(link, listener, styleSheetLoadTimeout) {\r\n let fired = false;\r\n let styleSheetLoaded;\r\n try {\r\n styleSheetLoaded = link.sheet;\r\n }\r\n catch (error) {\r\n return;\r\n }\r\n if (styleSheetLoaded)\r\n return;\r\n const timer = setTimeout(() => {\r\n if (!fired) {\r\n listener();\r\n fired = true;\r\n }\r\n }, styleSheetLoadTimeout);\r\n link.addEventListener('load', () => {\r\n clearTimeout(timer);\r\n fired = true;\r\n listener();\r\n });\r\n}\r\nfunction serializeNode(n, options) {\r\n const { doc, mirror, blockClass, blockSelector, unblockSelector, maskAllText, maskAttributeFn, maskTextClass, unmaskTextClass, maskTextSelector, unmaskTextSelector, inlineStylesheet, maskInputOptions = {}, maskTextFn, maskInputFn, dataURLOptions = {}, inlineImages, recordCanvas, keepIframeSrcFn, newlyAddedElement = false, } = options;\r\n const rootId = getRootId(doc, mirror);\r\n switch (n.nodeType) {\r\n case n.DOCUMENT_NODE:\r\n if (n.compatMode !== 'CSS1Compat') {\r\n return {\r\n type: NodeType.Document,\r\n childNodes: [],\r\n compatMode: n.compatMode,\r\n };\r\n }\r\n else {\r\n return {\r\n type: NodeType.Document,\r\n childNodes: [],\r\n };\r\n }\r\n case n.DOCUMENT_TYPE_NODE:\r\n return {\r\n type: NodeType.DocumentType,\r\n name: n.name,\r\n publicId: n.publicId,\r\n systemId: n.systemId,\r\n rootId,\r\n };\r\n case n.ELEMENT_NODE:\r\n return serializeElementNode(n, {\r\n doc,\r\n blockClass,\r\n blockSelector,\r\n unblockSelector,\r\n inlineStylesheet,\r\n maskAttributeFn,\r\n maskInputOptions,\r\n maskInputFn,\r\n dataURLOptions,\r\n inlineImages,\r\n recordCanvas,\r\n keepIframeSrcFn,\r\n newlyAddedElement,\r\n rootId,\r\n maskAllText,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n });\r\n case n.TEXT_NODE:\r\n return serializeTextNode(n, {\r\n maskAllText,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n maskTextFn,\r\n maskInputOptions,\r\n maskInputFn,\r\n rootId,\r\n });\r\n case n.CDATA_SECTION_NODE:\r\n return {\r\n type: NodeType.CDATA,\r\n textContent: '',\r\n rootId,\r\n };\r\n case n.COMMENT_NODE:\r\n return {\r\n type: NodeType.Comment,\r\n textContent: n.textContent || '',\r\n rootId,\r\n };\r\n default:\r\n return false;\r\n }\r\n}\r\nfunction getRootId(doc, mirror) {\r\n if (!mirror.hasNode(doc))\r\n return undefined;\r\n const docId = mirror.getId(doc);\r\n return docId === 1 ? undefined : docId;\r\n}\r\nfunction serializeTextNode(n, options) {\r\n const { maskAllText, maskTextClass, unmaskTextClass, maskTextSelector, unmaskTextSelector, maskTextFn, maskInputOptions, maskInputFn, rootId, } = options;\r\n const parentTagName = n.parentNode && n.parentNode.tagName;\r\n let textContent = n.textContent;\r\n const isStyle = parentTagName === 'STYLE' ? true : undefined;\r\n const isScript = parentTagName === 'SCRIPT' ? true : undefined;\r\n const isTextarea = parentTagName === 'TEXTAREA' ? true : undefined;\r\n if (isStyle && textContent) {\r\n try {\r\n if (n.nextSibling || n.previousSibling) {\r\n }\r\n else if (n.parentNode.sheet?.cssRules) {\r\n textContent = stringifyStylesheet(n.parentNode.sheet);\r\n }\r\n }\r\n catch (err) {\r\n console.warn(`Cannot get CSS styles from text's parentNode. Error: ${err}`, n);\r\n }\r\n textContent = absoluteToStylesheet(textContent, getHref());\r\n }\r\n if (isScript) {\r\n textContent = 'SCRIPT_PLACEHOLDER';\r\n }\r\n const forceMask = needMaskingText(n, maskTextClass, maskTextSelector, unmaskTextClass, unmaskTextSelector, maskAllText);\r\n if (!isStyle && !isScript && !isTextarea && textContent && forceMask) {\r\n textContent = maskTextFn\r\n ? maskTextFn(textContent, n.parentElement)\r\n : textContent.replace(/[\\S]/g, '*');\r\n }\r\n if (isTextarea && textContent && (maskInputOptions.textarea || forceMask)) {\r\n textContent = maskInputFn\r\n ? maskInputFn(textContent, n.parentNode)\r\n : textContent.replace(/[\\S]/g, '*');\r\n }\r\n if (parentTagName === 'OPTION' && textContent) {\r\n const isInputMasked = shouldMaskInput({\r\n type: null,\r\n tagName: parentTagName,\r\n maskInputOptions,\r\n });\r\n textContent = maskInputValue({\r\n isMasked: needMaskingText(n, maskTextClass, maskTextSelector, unmaskTextClass, unmaskTextSelector, isInputMasked),\r\n element: n,\r\n value: textContent,\r\n maskInputFn,\r\n });\r\n }\r\n return {\r\n type: NodeType.Text,\r\n textContent: textContent || '',\r\n isStyle,\r\n rootId,\r\n };\r\n}\r\nfunction serializeElementNode(n, options) {\r\n const { doc, blockClass, blockSelector, unblockSelector, inlineStylesheet, maskInputOptions = {}, maskAttributeFn, maskInputFn, dataURLOptions = {}, inlineImages, recordCanvas, keepIframeSrcFn, newlyAddedElement = false, rootId, maskAllText, maskTextClass, unmaskTextClass, maskTextSelector, unmaskTextSelector, } = options;\r\n const needBlock = _isBlockedElement(n, blockClass, blockSelector, unblockSelector);\r\n const tagName = getValidTagName(n);\r\n let attributes = {};\r\n const len = n.attributes.length;\r\n for (let i = 0; i < len; i++) {\r\n const attr = n.attributes[i];\r\n if (attr.name && !ignoreAttribute(tagName, attr.name, attr.value)) {\r\n attributes[attr.name] = transformAttribute(doc, tagName, toLowerCase(attr.name), attr.value, n, maskAttributeFn);\r\n }\r\n }\r\n if (tagName === 'link' && inlineStylesheet) {\r\n const stylesheet = Array.from(doc.styleSheets).find((s) => {\r\n return s.href === n.href;\r\n });\r\n let cssText = null;\r\n if (stylesheet) {\r\n cssText = stringifyStylesheet(stylesheet);\r\n }\r\n if (cssText) {\r\n delete attributes.rel;\r\n delete attributes.href;\r\n attributes._cssText = absoluteToStylesheet(cssText, stylesheet.href);\r\n }\r\n }\r\n if (tagName === 'style' &&\r\n n.sheet &&\r\n !(n.innerText || n.textContent || '').trim().length) {\r\n const cssText = stringifyStylesheet(n.sheet);\r\n if (cssText) {\r\n attributes._cssText = absoluteToStylesheet(cssText, getHref());\r\n }\r\n }\r\n if (tagName === 'input' ||\r\n tagName === 'textarea' ||\r\n tagName === 'select' ||\r\n tagName === 'option') {\r\n const el = n;\r\n const type = getInputType(el);\r\n const value = getInputValue(el, toUpperCase(tagName), type);\r\n const checked = el.checked;\r\n if (type !== 'submit' && type !== 'button' && value) {\r\n const forceMask = needMaskingText(el, maskTextClass, maskTextSelector, unmaskTextClass, unmaskTextSelector, shouldMaskInput({\r\n type,\r\n tagName: toUpperCase(tagName),\r\n maskInputOptions,\r\n }));\r\n attributes.value = maskInputValue({\r\n isMasked: forceMask,\r\n element: el,\r\n value,\r\n maskInputFn,\r\n });\r\n }\r\n if (checked) {\r\n attributes.checked = checked;\r\n }\r\n }\r\n if (tagName === 'option') {\r\n if (n.selected && !maskInputOptions['select']) {\r\n attributes.selected = true;\r\n }\r\n else {\r\n delete attributes.selected;\r\n }\r\n }\r\n if (tagName === 'canvas' && recordCanvas) {\r\n if (n.__context === '2d') {\r\n if (!is2DCanvasBlank(n)) {\r\n attributes.rr_dataURL = n.toDataURL(dataURLOptions.type, dataURLOptions.quality);\r\n }\r\n }\r\n else if (!('__context' in n)) {\r\n const canvasDataURL = n.toDataURL(dataURLOptions.type, dataURLOptions.quality);\r\n const blankCanvas = document.createElement('canvas');\r\n blankCanvas.width = n.width;\r\n blankCanvas.height = n.height;\r\n const blankCanvasDataURL = blankCanvas.toDataURL(dataURLOptions.type, dataURLOptions.quality);\r\n if (canvasDataURL !== blankCanvasDataURL) {\r\n attributes.rr_dataURL = canvasDataURL;\r\n }\r\n }\r\n }\r\n if (tagName === 'img' && inlineImages) {\r\n if (!canvasService) {\r\n canvasService = doc.createElement('canvas');\r\n canvasCtx = canvasService.getContext('2d');\r\n }\r\n const image = n;\r\n const oldValue = image.crossOrigin;\r\n image.crossOrigin = 'anonymous';\r\n const recordInlineImage = () => {\r\n image.removeEventListener('load', recordInlineImage);\r\n try {\r\n canvasService.width = image.naturalWidth;\r\n canvasService.height = image.naturalHeight;\r\n canvasCtx.drawImage(image, 0, 0);\r\n attributes.rr_dataURL = canvasService.toDataURL(dataURLOptions.type, dataURLOptions.quality);\r\n }\r\n catch (err) {\r\n console.warn(`Cannot inline img src=${image.currentSrc}! Error: ${err}`);\r\n }\r\n oldValue\r\n ? (attributes.crossOrigin = oldValue)\r\n : image.removeAttribute('crossorigin');\r\n };\r\n if (image.complete && image.naturalWidth !== 0)\r\n recordInlineImage();\r\n else\r\n image.addEventListener('load', recordInlineImage);\r\n }\r\n if (tagName === 'audio' || tagName === 'video') {\r\n attributes.rr_mediaState = n.paused\r\n ? 'paused'\r\n : 'played';\r\n attributes.rr_mediaCurrentTime = n.currentTime;\r\n }\r\n if (!newlyAddedElement) {\r\n if (n.scrollLeft) {\r\n attributes.rr_scrollLeft = n.scrollLeft;\r\n }\r\n if (n.scrollTop) {\r\n attributes.rr_scrollTop = n.scrollTop;\r\n }\r\n }\r\n if (needBlock) {\r\n const { width, height } = n.getBoundingClientRect();\r\n attributes = {\r\n class: attributes.class,\r\n rr_width: `${width}px`,\r\n rr_height: `${height}px`,\r\n };\r\n }\r\n if (tagName === 'iframe' && !keepIframeSrcFn(attributes.src)) {\r\n if (!n.contentDocument) {\r\n attributes.rr_src = attributes.src;\r\n }\r\n delete attributes.src;\r\n }\r\n let isCustomElement;\r\n try {\r\n if (customElements.get(tagName))\r\n isCustomElement = true;\r\n }\r\n catch (e) {\r\n }\r\n return {\r\n type: NodeType.Element,\r\n tagName,\r\n attributes,\r\n childNodes: [],\r\n isSVG: isSVGElement(n) || undefined,\r\n needBlock,\r\n rootId,\r\n isCustom: isCustomElement,\r\n };\r\n}\r\nfunction lowerIfExists(maybeAttr) {\r\n if (maybeAttr === undefined || maybeAttr === null) {\r\n return '';\r\n }\r\n else {\r\n return maybeAttr.toLowerCase();\r\n }\r\n}\r\nfunction slimDOMExcluded(sn, slimDOMOptions) {\r\n if (slimDOMOptions.comment && sn.type === NodeType.Comment) {\r\n return true;\r\n }\r\n else if (sn.type === NodeType.Element) {\r\n if (slimDOMOptions.script &&\r\n (sn.tagName === 'script' ||\r\n (sn.tagName === 'link' &&\r\n (sn.attributes.rel === 'preload' ||\r\n sn.attributes.rel === 'modulepreload') &&\r\n sn.attributes.as === 'script') ||\r\n (sn.tagName === 'link' &&\r\n sn.attributes.rel === 'prefetch' &&\r\n typeof sn.attributes.href === 'string' &&\r\n sn.attributes.href.endsWith('.js')))) {\r\n return true;\r\n }\r\n else if (slimDOMOptions.headFavicon &&\r\n ((sn.tagName === 'link' && sn.attributes.rel === 'shortcut icon') ||\r\n (sn.tagName === 'meta' &&\r\n (lowerIfExists(sn.attributes.name).match(/^msapplication-tile(image|color)$/) ||\r\n lowerIfExists(sn.attributes.name) === 'application-name' ||\r\n lowerIfExists(sn.attributes.rel) === 'icon' ||\r\n lowerIfExists(sn.attributes.rel) === 'apple-touch-icon' ||\r\n lowerIfExists(sn.attributes.rel) === 'shortcut icon')))) {\r\n return true;\r\n }\r\n else if (sn.tagName === 'meta') {\r\n if (slimDOMOptions.headMetaDescKeywords &&\r\n lowerIfExists(sn.attributes.name).match(/^description|keywords$/)) {\r\n return true;\r\n }\r\n else if (slimDOMOptions.headMetaSocial &&\r\n (lowerIfExists(sn.attributes.property).match(/^(og|twitter|fb):/) ||\r\n lowerIfExists(sn.attributes.name).match(/^(og|twitter):/) ||\r\n lowerIfExists(sn.attributes.name) === 'pinterest')) {\r\n return true;\r\n }\r\n else if (slimDOMOptions.headMetaRobots &&\r\n (lowerIfExists(sn.attributes.name) === 'robots' ||\r\n lowerIfExists(sn.attributes.name) === 'googlebot' ||\r\n lowerIfExists(sn.attributes.name) === 'bingbot')) {\r\n return true;\r\n }\r\n else if (slimDOMOptions.headMetaHttpEquiv &&\r\n sn.attributes['http-equiv'] !== undefined) {\r\n return true;\r\n }\r\n else if (slimDOMOptions.headMetaAuthorship &&\r\n (lowerIfExists(sn.attributes.name) === 'author' ||\r\n lowerIfExists(sn.attributes.name) === 'generator' ||\r\n lowerIfExists(sn.attributes.name) === 'framework' ||\r\n lowerIfExists(sn.attributes.name) === 'publisher' ||\r\n lowerIfExists(sn.attributes.name) === 'progid' ||\r\n lowerIfExists(sn.attributes.property).match(/^article:/) ||\r\n lowerIfExists(sn.attributes.property).match(/^product:/))) {\r\n return true;\r\n }\r\n else if (slimDOMOptions.headMetaVerification &&\r\n (lowerIfExists(sn.attributes.name) === 'google-site-verification' ||\r\n lowerIfExists(sn.attributes.name) === 'yandex-verification' ||\r\n lowerIfExists(sn.attributes.name) === 'csrf-token' ||\r\n lowerIfExists(sn.attributes.name) === 'p:domain_verify' ||\r\n lowerIfExists(sn.attributes.name) === 'verify-v1' ||\r\n lowerIfExists(sn.attributes.name) === 'verification' ||\r\n lowerIfExists(sn.attributes.name) === 'shopify-checkout-api-token')) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n}\r\nfunction serializeNodeWithId(n, options) {\r\n const { doc, mirror, blockClass, blockSelector, unblockSelector, maskAllText, maskTextClass, unmaskTextClass, maskTextSelector, unmaskTextSelector, skipChild = false, inlineStylesheet = true, maskInputOptions = {}, maskAttributeFn, maskTextFn, maskInputFn, slimDOMOptions, dataURLOptions = {}, inlineImages = false, recordCanvas = false, onSerialize, onIframeLoad, iframeLoadTimeout = 5000, onStylesheetLoad, stylesheetLoadTimeout = 5000, keepIframeSrcFn = () => false, newlyAddedElement = false, } = options;\r\n let { preserveWhiteSpace = true } = options;\r\n const _serializedNode = serializeNode(n, {\r\n doc,\r\n mirror,\r\n blockClass,\r\n blockSelector,\r\n maskAllText,\r\n unblockSelector,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n inlineStylesheet,\r\n maskInputOptions,\r\n maskAttributeFn,\r\n maskTextFn,\r\n maskInputFn,\r\n dataURLOptions,\r\n inlineImages,\r\n recordCanvas,\r\n keepIframeSrcFn,\r\n newlyAddedElement,\r\n });\r\n if (!_serializedNode) {\r\n console.warn(n, 'not serialized');\r\n return null;\r\n }\r\n let id;\r\n if (mirror.hasNode(n)) {\r\n id = mirror.getId(n);\r\n }\r\n else if (slimDOMExcluded(_serializedNode, slimDOMOptions) ||\r\n (!preserveWhiteSpace &&\r\n _serializedNode.type === NodeType.Text &&\r\n !_serializedNode.isStyle &&\r\n !_serializedNode.textContent.replace(/^\\s+|\\s+$/gm, '').length)) {\r\n id = IGNORED_NODE;\r\n }\r\n else {\r\n id = genId();\r\n }\r\n const serializedNode = Object.assign(_serializedNode, { id });\r\n mirror.add(n, serializedNode);\r\n if (id === IGNORED_NODE) {\r\n return null;\r\n }\r\n if (onSerialize) {\r\n onSerialize(n);\r\n }\r\n let recordChild = !skipChild;\r\n if (serializedNode.type === NodeType.Element) {\r\n recordChild = recordChild && !serializedNode.needBlock;\r\n delete serializedNode.needBlock;\r\n const shadowRoot = n.shadowRoot;\r\n if (shadowRoot && isNativeShadowDom(shadowRoot))\r\n serializedNode.isShadowHost = true;\r\n }\r\n if ((serializedNode.type === NodeType.Document ||\r\n serializedNode.type === NodeType.Element) &&\r\n recordChild) {\r\n if (slimDOMOptions.headWhitespace &&\r\n serializedNode.type === NodeType.Element &&\r\n serializedNode.tagName === 'head') {\r\n preserveWhiteSpace = false;\r\n }\r\n const bypassOptions = {\r\n doc,\r\n mirror,\r\n blockClass,\r\n blockSelector,\r\n maskAllText,\r\n unblockSelector,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n skipChild,\r\n inlineStylesheet,\r\n maskInputOptions,\r\n maskAttributeFn,\r\n maskTextFn,\r\n maskInputFn,\r\n slimDOMOptions,\r\n dataURLOptions,\r\n inlineImages,\r\n recordCanvas,\r\n preserveWhiteSpace,\r\n onSerialize,\r\n onIframeLoad,\r\n iframeLoadTimeout,\r\n onStylesheetLoad,\r\n stylesheetLoadTimeout,\r\n keepIframeSrcFn,\r\n };\r\n for (const childN of Array.from(n.childNodes)) {\r\n const serializedChildNode = serializeNodeWithId(childN, bypassOptions);\r\n if (serializedChildNode) {\r\n serializedNode.childNodes.push(serializedChildNode);\r\n }\r\n }\r\n if (isElement(n) && n.shadowRoot) {\r\n for (const childN of Array.from(n.shadowRoot.childNodes)) {\r\n const serializedChildNode = serializeNodeWithId(childN, bypassOptions);\r\n if (serializedChildNode) {\r\n isNativeShadowDom(n.shadowRoot) &&\r\n (serializedChildNode.isShadow = true);\r\n serializedNode.childNodes.push(serializedChildNode);\r\n }\r\n }\r\n }\r\n }\r\n if (n.parentNode &&\r\n isShadowRoot(n.parentNode) &&\r\n isNativeShadowDom(n.parentNode)) {\r\n serializedNode.isShadow = true;\r\n }\r\n if (serializedNode.type === NodeType.Element &&\r\n serializedNode.tagName === 'iframe') {\r\n onceIframeLoaded(n, () => {\r\n const iframeDoc = n.contentDocument;\r\n if (iframeDoc && onIframeLoad) {\r\n const serializedIframeNode = serializeNodeWithId(iframeDoc, {\r\n doc: iframeDoc,\r\n mirror,\r\n blockClass,\r\n blockSelector,\r\n unblockSelector,\r\n maskAllText,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n skipChild: false,\r\n inlineStylesheet,\r\n maskInputOptions,\r\n maskAttributeFn,\r\n maskTextFn,\r\n maskInputFn,\r\n slimDOMOptions,\r\n dataURLOptions,\r\n inlineImages,\r\n recordCanvas,\r\n preserveWhiteSpace,\r\n onSerialize,\r\n onIframeLoad,\r\n iframeLoadTimeout,\r\n onStylesheetLoad,\r\n stylesheetLoadTimeout,\r\n keepIframeSrcFn,\r\n });\r\n if (serializedIframeNode) {\r\n onIframeLoad(n, serializedIframeNode);\r\n }\r\n }\r\n }, iframeLoadTimeout);\r\n }\r\n if (serializedNode.type === NodeType.Element &&\r\n serializedNode.tagName === 'link' &&\r\n serializedNode.attributes.rel === 'stylesheet') {\r\n onceStylesheetLoaded(n, () => {\r\n if (onStylesheetLoad) {\r\n const serializedLinkNode = serializeNodeWithId(n, {\r\n doc,\r\n mirror,\r\n blockClass,\r\n blockSelector,\r\n unblockSelector,\r\n maskAllText,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n skipChild: false,\r\n inlineStylesheet,\r\n maskInputOptions,\r\n maskAttributeFn,\r\n maskTextFn,\r\n maskInputFn,\r\n slimDOMOptions,\r\n dataURLOptions,\r\n inlineImages,\r\n recordCanvas,\r\n preserveWhiteSpace,\r\n onSerialize,\r\n onIframeLoad,\r\n iframeLoadTimeout,\r\n onStylesheetLoad,\r\n stylesheetLoadTimeout,\r\n keepIframeSrcFn,\r\n });\r\n if (serializedLinkNode) {\r\n onStylesheetLoad(n, serializedLinkNode);\r\n }\r\n }\r\n }, stylesheetLoadTimeout);\r\n }\r\n return serializedNode;\r\n}\r\nfunction snapshot(n, options) {\r\n const { mirror = new Mirror(), blockClass = 'rr-block', blockSelector = null, unblockSelector = null, maskAllText = false, maskTextClass = 'rr-mask', unmaskTextClass = null, maskTextSelector = null, unmaskTextSelector = null, inlineStylesheet = true, inlineImages = false, recordCanvas = false, maskAllInputs = false, maskAttributeFn, maskTextFn, maskInputFn, slimDOM = false, dataURLOptions, preserveWhiteSpace, onSerialize, onIframeLoad, iframeLoadTimeout, onStylesheetLoad, stylesheetLoadTimeout, keepIframeSrcFn = () => false, } = options || {};\r\n const maskInputOptions = maskAllInputs === true\r\n ? {\r\n color: true,\r\n date: true,\r\n 'datetime-local': true,\r\n email: true,\r\n month: true,\r\n number: true,\r\n range: true,\r\n search: true,\r\n tel: true,\r\n text: true,\r\n time: true,\r\n url: true,\r\n week: true,\r\n textarea: true,\r\n select: true,\r\n }\r\n : maskAllInputs === false\r\n ? {}\r\n : maskAllInputs;\r\n const slimDOMOptions = slimDOM === true || slimDOM === 'all'\r\n ?\r\n {\r\n script: true,\r\n comment: true,\r\n headFavicon: true,\r\n headWhitespace: true,\r\n headMetaDescKeywords: slimDOM === 'all',\r\n headMetaSocial: true,\r\n headMetaRobots: true,\r\n headMetaHttpEquiv: true,\r\n headMetaAuthorship: true,\r\n headMetaVerification: true,\r\n }\r\n : slimDOM === false\r\n ? {}\r\n : slimDOM;\r\n return serializeNodeWithId(n, {\r\n doc: n,\r\n mirror,\r\n blockClass,\r\n blockSelector,\r\n unblockSelector,\r\n maskAllText,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n skipChild: false,\r\n inlineStylesheet,\r\n maskInputOptions,\r\n maskAttributeFn,\r\n maskTextFn,\r\n maskInputFn,\r\n slimDOMOptions,\r\n dataURLOptions,\r\n inlineImages,\r\n recordCanvas,\r\n preserveWhiteSpace,\r\n onSerialize,\r\n onIframeLoad,\r\n iframeLoadTimeout,\r\n onStylesheetLoad,\r\n stylesheetLoadTimeout,\r\n keepIframeSrcFn,\r\n newlyAddedElement: false,\r\n });\r\n}\r\nfunction visitSnapshot(node, onVisit) {\r\n function walk(current) {\r\n onVisit(current);\r\n if (current.type === NodeType.Document ||\r\n current.type === NodeType.Element) {\r\n current.childNodes.forEach(walk);\r\n }\r\n }\r\n walk(node);\r\n}\r\nfunction cleanupSnapshot() {\r\n _id = 1;\r\n}\n\nconst commentre = /\\/\\*[^*]*\\*+([^/*][^*]*\\*+)*\\//g;\r\nfunction parse(css, options = {}) {\r\n let lineno = 1;\r\n let column = 1;\r\n function updatePosition(str) {\r\n const lines = str.match(/\\n/g);\r\n if (lines) {\r\n lineno += lines.length;\r\n }\r\n const i = str.lastIndexOf('\\n');\r\n column = i === -1 ? column + str.length : str.length - i;\r\n }\r\n function position() {\r\n const start = { line: lineno, column };\r\n return (node) => {\r\n node.position = new Position(start);\r\n whitespace();\r\n return node;\r\n };\r\n }\r\n class Position {\r\n constructor(start) {\r\n this.start = start;\r\n this.end = { line: lineno, column };\r\n this.source = options.source;\r\n }\r\n }\r\n Position.prototype.content = css;\r\n const errorsList = [];\r\n function error(msg) {\r\n const err = new Error(`${options.source || ''}:${lineno}:${column}: ${msg}`);\r\n err.reason = msg;\r\n err.filename = options.source;\r\n err.line = lineno;\r\n err.column = column;\r\n err.source = css;\r\n if (options.silent) {\r\n errorsList.push(err);\r\n }\r\n else {\r\n throw err;\r\n }\r\n }\r\n function stylesheet() {\r\n const rulesList = rules();\r\n return {\r\n type: 'stylesheet',\r\n stylesheet: {\r\n source: options.source,\r\n rules: rulesList,\r\n parsingErrors: errorsList,\r\n },\r\n };\r\n }\r\n function open() {\r\n return match(/^{\\s*/);\r\n }\r\n function close() {\r\n return match(/^}/);\r\n }\r\n function rules() {\r\n let node;\r\n const rules = [];\r\n whitespace();\r\n comments(rules);\r\n while (css.length && css.charAt(0) !== '}' && (node = atrule() || rule())) {\r\n if (node) {\r\n rules.push(node);\r\n comments(rules);\r\n }\r\n }\r\n return rules;\r\n }\r\n function match(re) {\r\n const m = re.exec(css);\r\n if (!m) {\r\n return;\r\n }\r\n const str = m[0];\r\n updatePosition(str);\r\n css = css.slice(str.length);\r\n return m;\r\n }\r\n function whitespace() {\r\n match(/^\\s*/);\r\n }\r\n function comments(rules = []) {\r\n let c;\r\n while ((c = comment())) {\r\n if (c) {\r\n rules.push(c);\r\n }\r\n c = comment();\r\n }\r\n return rules;\r\n }\r\n function comment() {\r\n const pos = position();\r\n if ('/' !== css.charAt(0) || '*' !== css.charAt(1)) {\r\n return;\r\n }\r\n let i = 2;\r\n while ('' !== css.charAt(i) &&\r\n ('*' !== css.charAt(i) || '/' !== css.charAt(i + 1))) {\r\n ++i;\r\n }\r\n i += 2;\r\n if ('' === css.charAt(i - 1)) {\r\n return error('End of comment missing');\r\n }\r\n const str = css.slice(2, i - 2);\r\n column += 2;\r\n updatePosition(str);\r\n css = css.slice(i);\r\n column += 2;\r\n return pos({\r\n type: 'comment',\r\n comment: str,\r\n });\r\n }\r\n function selector() {\r\n whitespace();\r\n while (css[0] == '}') {\r\n error('extra closing bracket');\r\n css = css.slice(1);\r\n whitespace();\r\n }\r\n const m = match(/^((\"(?:\\\\\"|[^\"])*\"|'(?:\\\\'|[^'])*'|[^{])+)/);\r\n if (!m) {\r\n return;\r\n }\r\n const cleanedInput = m[0]\r\n .trim()\r\n .replace(/\\/\\*([^*]|[\\r\\n]|(\\*+([^*/]|[\\r\\n])))*\\*\\/+/g, '')\r\n .replace(/\"(?:\\\\\"|[^\"])*\"|'(?:\\\\'|[^'])*'/g, (m) => {\r\n return m.replace(/,/g, '\\u200C');\r\n });\r\n return customSplit(cleanedInput).map((s) => s.replace(/\\u200C/g, ',').trim());\r\n }\r\n function customSplit(input) {\r\n const result = [];\r\n let currentSegment = '';\r\n let depthParentheses = 0;\r\n let depthBrackets = 0;\r\n let currentStringChar = null;\r\n for (const char of input) {\r\n const hasStringEscape = currentSegment.endsWith('\\\\');\r\n if (currentStringChar) {\r\n if (currentStringChar === char && !hasStringEscape) {\r\n currentStringChar = null;\r\n }\r\n }\r\n else if (char === '(') {\r\n depthParentheses++;\r\n }\r\n else if (char === ')') {\r\n depthParentheses--;\r\n }\r\n else if (char === '[') {\r\n depthBrackets++;\r\n }\r\n else if (char === ']') {\r\n depthBrackets--;\r\n }\r\n else if ('\\'\"'.includes(char)) {\r\n currentStringChar = char;\r\n }\r\n if (char === ',' && depthParentheses === 0 && depthBrackets === 0) {\r\n result.push(currentSegment);\r\n currentSegment = '';\r\n }\r\n else {\r\n currentSegment += char;\r\n }\r\n }\r\n if (currentSegment) {\r\n result.push(currentSegment);\r\n }\r\n return result;\r\n }\r\n function declaration() {\r\n const pos = position();\r\n const propMatch = match(/^(\\*?[-#\\/\\*\\\\\\w]+(\\[[0-9a-z_-]+\\])?)\\s*/);\r\n if (!propMatch) {\r\n return;\r\n }\r\n const prop = trim(propMatch[0]);\r\n if (!match(/^:\\s*/)) {\r\n return error(`property missing ':'`);\r\n }\r\n const val = match(/^((?:'(?:\\\\'|.)*?'|\"(?:\\\\\"|.)*?\"|\\([^\\)]*?\\)|[^};])+)/);\r\n const ret = pos({\r\n type: 'declaration',\r\n property: prop.replace(commentre, ''),\r\n value: val ? trim(val[0]).replace(commentre, '') : '',\r\n });\r\n match(/^[;\\s]*/);\r\n return ret;\r\n }\r\n function declarations() {\r\n const decls = [];\r\n if (!open()) {\r\n return error(`missing '{'`);\r\n }\r\n comments(decls);\r\n let decl;\r\n while ((decl = declaration())) {\r\n if (decl !== false) {\r\n decls.push(decl);\r\n comments(decls);\r\n }\r\n decl = declaration();\r\n }\r\n if (!close()) {\r\n return error(`missing '}'`);\r\n }\r\n return decls;\r\n }\r\n function keyframe() {\r\n let m;\r\n const vals = [];\r\n const pos = position();\r\n while ((m = match(/^((\\d+\\.\\d+|\\.\\d+|\\d+)%?|[a-z]+)\\s*/))) {\r\n vals.push(m[1]);\r\n match(/^,\\s*/);\r\n }\r\n if (!vals.length) {\r\n return;\r\n }\r\n return pos({\r\n type: 'keyframe',\r\n values: vals,\r\n declarations: declarations(),\r\n });\r\n }\r\n function atkeyframes() {\r\n const pos = position();\r\n let m = match(/^@([-\\w]+)?keyframes\\s*/);\r\n if (!m) {\r\n return;\r\n }\r\n const vendor = m[1];\r\n m = match(/^([-\\w]+)\\s*/);\r\n if (!m) {\r\n return error('@keyframes missing name');\r\n }\r\n const name = m[1];\r\n if (!open()) {\r\n return error(`@keyframes missing '{'`);\r\n }\r\n let frame;\r\n let frames = comments();\r\n while ((frame = keyframe())) {\r\n frames.push(frame);\r\n frames = frames.concat(comments());\r\n }\r\n if (!close()) {\r\n return error(`@keyframes missing '}'`);\r\n }\r\n return pos({\r\n type: 'keyframes',\r\n name,\r\n vendor,\r\n keyframes: frames,\r\n });\r\n }\r\n function atsupports() {\r\n const pos = position();\r\n const m = match(/^@supports *([^{]+)/);\r\n if (!m) {\r\n return;\r\n }\r\n const supports = trim(m[1]);\r\n if (!open()) {\r\n return error(`@supports missing '{'`);\r\n }\r\n const style = comments().concat(rules());\r\n if (!close()) {\r\n return error(`@supports missing '}'`);\r\n }\r\n return pos({\r\n type: 'supports',\r\n supports,\r\n rules: style,\r\n });\r\n }\r\n function athost() {\r\n const pos = position();\r\n const m = match(/^@host\\s*/);\r\n if (!m) {\r\n return;\r\n }\r\n if (!open()) {\r\n return error(`@host missing '{'`);\r\n }\r\n const style = comments().concat(rules());\r\n if (!close()) {\r\n return error(`@host missing '}'`);\r\n }\r\n return pos({\r\n type: 'host',\r\n rules: style,\r\n });\r\n }\r\n function atmedia() {\r\n const pos = position();\r\n const m = match(/^@media *([^{]+)/);\r\n if (!m) {\r\n return;\r\n }\r\n const media = trim(m[1]);\r\n if (!open()) {\r\n return error(`@media missing '{'`);\r\n }\r\n const style = comments().concat(rules());\r\n if (!close()) {\r\n return error(`@media missing '}'`);\r\n }\r\n return pos({\r\n type: 'media',\r\n media,\r\n rules: style,\r\n });\r\n }\r\n function atcustommedia() {\r\n const pos = position();\r\n const m = match(/^@custom-media\\s+(--[^\\s]+)\\s*([^{;]+);/);\r\n if (!m) {\r\n return;\r\n }\r\n return pos({\r\n type: 'custom-media',\r\n name: trim(m[1]),\r\n media: trim(m[2]),\r\n });\r\n }\r\n function atpage() {\r\n const pos = position();\r\n const m = match(/^@page */);\r\n if (!m) {\r\n return;\r\n }\r\n const sel = selector() || [];\r\n if (!open()) {\r\n return error(`@page missing '{'`);\r\n }\r\n let decls = comments();\r\n let decl;\r\n while ((decl = declaration())) {\r\n decls.push(decl);\r\n decls = decls.concat(comments());\r\n }\r\n if (!close()) {\r\n return error(`@page missing '}'`);\r\n }\r\n return pos({\r\n type: 'page',\r\n selectors: sel,\r\n declarations: decls,\r\n });\r\n }\r\n function atdocument() {\r\n const pos = position();\r\n const m = match(/^@([-\\w]+)?document *([^{]+)/);\r\n if (!m) {\r\n return;\r\n }\r\n const vendor = trim(m[1]);\r\n const doc = trim(m[2]);\r\n if (!open()) {\r\n return error(`@document missing '{'`);\r\n }\r\n const style = comments().concat(rules());\r\n if (!close()) {\r\n return error(`@document missing '}'`);\r\n }\r\n return pos({\r\n type: 'document',\r\n document: doc,\r\n vendor,\r\n rules: style,\r\n });\r\n }\r\n function atfontface() {\r\n const pos = position();\r\n const m = match(/^@font-face\\s*/);\r\n if (!m) {\r\n return;\r\n }\r\n if (!open()) {\r\n return error(`@font-face missing '{'`);\r\n }\r\n let decls = comments();\r\n let decl;\r\n while ((decl = declaration())) {\r\n decls.push(decl);\r\n decls = decls.concat(comments());\r\n }\r\n if (!close()) {\r\n return error(`@font-face missing '}'`);\r\n }\r\n return pos({\r\n type: 'font-face',\r\n declarations: decls,\r\n });\r\n }\r\n const atimport = _compileAtrule('import');\r\n const atcharset = _compileAtrule('charset');\r\n const atnamespace = _compileAtrule('namespace');\r\n function _compileAtrule(name) {\r\n const re = new RegExp('^@' + name + '\\\\s*([^;]+);');\r\n return () => {\r\n const pos = position();\r\n const m = match(re);\r\n if (!m) {\r\n return;\r\n }\r\n const ret = { type: name };\r\n ret[name] = m[1].trim();\r\n return pos(ret);\r\n };\r\n }\r\n function atrule() {\r\n if (css[0] !== '@') {\r\n return;\r\n }\r\n return (atkeyframes() ||\r\n atmedia() ||\r\n atcustommedia() ||\r\n atsupports() ||\r\n atimport() ||\r\n atcharset() ||\r\n atnamespace() ||\r\n atdocument() ||\r\n atpage() ||\r\n athost() ||\r\n atfontface());\r\n }\r\n function rule() {\r\n const pos = position();\r\n const sel = selector();\r\n if (!sel) {\r\n return error('selector missing');\r\n }\r\n comments();\r\n return pos({\r\n type: 'rule',\r\n selectors: sel,\r\n declarations: declarations(),\r\n });\r\n }\r\n return addParent(stylesheet());\r\n}\r\nfunction trim(str) {\r\n return str ? str.replace(/^\\s+|\\s+$/g, '') : '';\r\n}\r\nfunction addParent(obj, parent) {\r\n const isNode = obj && typeof obj.type === 'string';\r\n const childParent = isNode ? obj : parent;\r\n for (const k of Object.keys(obj)) {\r\n const value = obj[k];\r\n if (Array.isArray(value)) {\r\n value.forEach((v) => {\r\n addParent(v, childParent);\r\n });\r\n }\r\n else if (value && typeof value === 'object') {\r\n addParent(value, childParent);\r\n }\r\n }\r\n if (isNode) {\r\n Object.defineProperty(obj, 'parent', {\r\n configurable: true,\r\n writable: true,\r\n enumerable: false,\r\n value: parent || null,\r\n });\r\n }\r\n return obj;\r\n}\n\nconst tagMap = {\r\n script: 'noscript',\r\n altglyph: 'altGlyph',\r\n altglyphdef: 'altGlyphDef',\r\n altglyphitem: 'altGlyphItem',\r\n animatecolor: 'animateColor',\r\n animatemotion: 'animateMotion',\r\n animatetransform: 'animateTransform',\r\n clippath: 'clipPath',\r\n feblend: 'feBlend',\r\n fecolormatrix: 'feColorMatrix',\r\n fecomponenttransfer: 'feComponentTransfer',\r\n fecomposite: 'feComposite',\r\n feconvolvematrix: 'feConvolveMatrix',\r\n fediffuselighting: 'feDiffuseLighting',\r\n fedisplacementmap: 'feDisplacementMap',\r\n fedistantlight: 'feDistantLight',\r\n fedropshadow: 'feDropShadow',\r\n feflood: 'feFlood',\r\n fefunca: 'feFuncA',\r\n fefuncb: 'feFuncB',\r\n fefuncg: 'feFuncG',\r\n fefuncr: 'feFuncR',\r\n fegaussianblur: 'feGaussianBlur',\r\n feimage: 'feImage',\r\n femerge: 'feMerge',\r\n femergenode: 'feMergeNode',\r\n femorphology: 'feMorphology',\r\n feoffset: 'feOffset',\r\n fepointlight: 'fePointLight',\r\n fespecularlighting: 'feSpecularLighting',\r\n fespotlight: 'feSpotLight',\r\n fetile: 'feTile',\r\n feturbulence: 'feTurbulence',\r\n foreignobject: 'foreignObject',\r\n glyphref: 'glyphRef',\r\n lineargradient: 'linearGradient',\r\n radialgradient: 'radialGradient',\r\n};\r\nfunction getTagName(n) {\r\n let tagName = tagMap[n.tagName] ? tagMap[n.tagName] : n.tagName;\r\n if (tagName === 'link' && n.attributes._cssText) {\r\n tagName = 'style';\r\n }\r\n return tagName;\r\n}\r\nfunction escapeRegExp(str) {\r\n return str.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\r\n}\r\nconst HOVER_SELECTOR = /([^\\\\]):hover/;\r\nconst HOVER_SELECTOR_GLOBAL = new RegExp(HOVER_SELECTOR.source, 'g');\r\nfunction addHoverClass(cssText, cache) {\r\n const cachedStyle = cache?.stylesWithHoverClass.get(cssText);\r\n if (cachedStyle)\r\n return cachedStyle;\r\n if (cssText.length >= 1000000) {\r\n return cssText;\r\n }\r\n const ast = parse(cssText, {\r\n silent: true,\r\n });\r\n if (!ast.stylesheet) {\r\n return cssText;\r\n }\r\n const selectors = [];\r\n ast.stylesheet.rules.forEach((rule) => {\r\n if ('selectors' in rule) {\r\n (rule.selectors || []).forEach((selector) => {\r\n if (HOVER_SELECTOR.test(selector)) {\r\n selectors.push(selector);\r\n }\r\n });\r\n }\r\n });\r\n if (selectors.length === 0) {\r\n return cssText;\r\n }\r\n const selectorMatcher = new RegExp(selectors\r\n .filter((selector, index) => selectors.indexOf(selector) === index)\r\n .sort((a, b) => b.length - a.length)\r\n .map((selector) => {\r\n return escapeRegExp(selector);\r\n })\r\n .join('|'), 'g');\r\n const result = cssText.replace(selectorMatcher, (selector) => {\r\n const newSelector = selector.replace(HOVER_SELECTOR_GLOBAL, '$1.\\\\:hover');\r\n return `${selector}, ${newSelector}`;\r\n });\r\n cache?.stylesWithHoverClass.set(cssText, result);\r\n return result;\r\n}\r\nfunction createCache() {\r\n const stylesWithHoverClass = new Map();\r\n return {\r\n stylesWithHoverClass,\r\n };\r\n}\r\nfunction buildNode(n, options) {\r\n const { doc, hackCss, cache } = options;\r\n switch (n.type) {\r\n case NodeType.Document:\r\n return doc.implementation.createDocument(null, '', null);\r\n case NodeType.DocumentType:\r\n return doc.implementation.createDocumentType(n.name || 'html', n.publicId, n.systemId);\r\n case NodeType.Element: {\r\n const tagName = getTagName(n);\r\n let node;\r\n if (n.isSVG) {\r\n node = doc.createElementNS('http://www.w3.org/2000/svg', tagName);\r\n }\r\n else {\r\n if (n.isCustom &&\r\n doc.defaultView?.customElements &&\r\n !doc.defaultView.customElements.get(n.tagName))\r\n doc.defaultView.customElements.define(n.tagName, class extends doc.defaultView.HTMLElement {\r\n });\r\n node = doc.createElement(tagName);\r\n }\r\n const specialAttributes = {};\r\n for (const name in n.attributes) {\r\n if (!Object.prototype.hasOwnProperty.call(n.attributes, name)) {\r\n continue;\r\n }\r\n let value = n.attributes[name];\r\n if (tagName === 'option' &&\r\n name === 'selected' &&\r\n value === false) {\r\n continue;\r\n }\r\n if (value === null) {\r\n continue;\r\n }\r\n if (value === true)\r\n value = '';\r\n if (name.startsWith('rr_')) {\r\n specialAttributes[name] = value;\r\n continue;\r\n }\r\n const isTextarea = tagName === 'textarea' && name === 'value';\r\n const isRemoteOrDynamicCss = tagName === 'style' && name === '_cssText';\r\n if (isRemoteOrDynamicCss && hackCss && typeof value === 'string') {\r\n value = addHoverClass(value, cache);\r\n }\r\n if ((isTextarea || isRemoteOrDynamicCss) && typeof value === 'string') {\r\n const child = doc.createTextNode(value);\r\n for (const c of Array.from(node.childNodes)) {\r\n if (c.nodeType === node.TEXT_NODE) {\r\n node.removeChild(c);\r\n }\r\n }\r\n node.appendChild(child);\r\n continue;\r\n }\r\n try {\r\n if (n.isSVG && name === 'xlink:href') {\r\n node.setAttributeNS('http://www.w3.org/1999/xlink', name, value.toString());\r\n }\r\n else if (name === 'onload' ||\r\n name === 'onclick' ||\r\n name.substring(0, 7) === 'onmouse') {\r\n node.setAttribute('_' + name, value.toString());\r\n }\r\n else if (tagName === 'meta' &&\r\n n.attributes['http-equiv'] === 'Content-Security-Policy' &&\r\n name === 'content') {\r\n node.setAttribute('csp-content', value.toString());\r\n continue;\r\n }\r\n else if (tagName === 'link' &&\r\n (n.attributes.rel === 'preload' ||\r\n n.attributes.rel === 'modulepreload') &&\r\n n.attributes.as === 'script') {\r\n }\r\n else if (tagName === 'link' &&\r\n n.attributes.rel === 'prefetch' &&\r\n typeof n.attributes.href === 'string' &&\r\n n.attributes.href.endsWith('.js')) {\r\n }\r\n else if (tagName === 'img' &&\r\n n.attributes.srcset &&\r\n n.attributes.rr_dataURL) {\r\n node.setAttribute('rrweb-original-srcset', n.attributes.srcset);\r\n }\r\n else {\r\n node.setAttribute(name, value.toString());\r\n }\r\n }\r\n catch (error) {\r\n }\r\n }\r\n for (const name in specialAttributes) {\r\n const value = specialAttributes[name];\r\n if (tagName === 'canvas' && name === 'rr_dataURL') {\r\n const image = document.createElement('img');\r\n image.onload = () => {\r\n const ctx = node.getContext('2d');\r\n if (ctx) {\r\n ctx.drawImage(image, 0, 0, image.width, image.height);\r\n }\r\n };\r\n image.src = value.toString();\r\n if (node.RRNodeType)\r\n node.rr_dataURL = value.toString();\r\n }\r\n else if (tagName === 'img' && name === 'rr_dataURL') {\r\n const image = node;\r\n if (!image.currentSrc.startsWith('data:')) {\r\n image.setAttribute('rrweb-original-src', n.attributes.src);\r\n image.src = value.toString();\r\n }\r\n }\r\n if (name === 'rr_width') {\r\n node.style.setProperty('width', value.toString());\r\n }\r\n else if (name === 'rr_height') {\r\n node.style.setProperty('height', value.toString());\r\n }\r\n else if (name === 'rr_mediaCurrentTime' &&\r\n typeof value === 'number') {\r\n node.currentTime = value;\r\n }\r\n else if (name === 'rr_mediaState') {\r\n switch (value) {\r\n case 'played':\r\n node\r\n .play()\r\n .catch((e) => console.warn('media playback error', e));\r\n break;\r\n case 'paused':\r\n node.pause();\r\n break;\r\n }\r\n }\r\n }\r\n if (n.isShadowHost) {\r\n if (!node.shadowRoot) {\r\n node.attachShadow({ mode: 'open' });\r\n }\r\n else {\r\n while (node.shadowRoot.firstChild) {\r\n node.shadowRoot.removeChild(node.shadowRoot.firstChild);\r\n }\r\n }\r\n }\r\n return node;\r\n }\r\n case NodeType.Text:\r\n return doc.createTextNode(n.isStyle && hackCss\r\n ? addHoverClass(n.textContent, cache)\r\n : n.textContent);\r\n case NodeType.CDATA:\r\n return doc.createCDATASection(n.textContent);\r\n case NodeType.Comment:\r\n return doc.createComment(n.textContent);\r\n default:\r\n return null;\r\n }\r\n}\r\nfunction buildNodeWithSN(n, options) {\r\n const { doc, mirror, skipChild = false, hackCss = true, afterAppend, cache, } = options;\r\n if (mirror.has(n.id)) {\r\n const nodeInMirror = mirror.getNode(n.id);\r\n const meta = mirror.getMeta(nodeInMirror);\r\n if (isNodeMetaEqual(meta, n))\r\n return mirror.getNode(n.id);\r\n }\r\n let node = buildNode(n, { doc, hackCss, cache });\r\n if (!node) {\r\n return null;\r\n }\r\n if (n.rootId && mirror.getNode(n.rootId) !== doc) {\r\n mirror.replace(n.rootId, doc);\r\n }\r\n if (n.type === NodeType.Document) {\r\n doc.close();\r\n doc.open();\r\n if (n.compatMode === 'BackCompat' &&\r\n n.childNodes &&\r\n n.childNodes[0].type !== NodeType.DocumentType) {\r\n if (n.childNodes[0].type === NodeType.Element &&\r\n 'xmlns' in n.childNodes[0].attributes &&\r\n n.childNodes[0].attributes.xmlns === 'http://www.w3.org/1999/xhtml') {\r\n doc.write('');\r\n }\r\n else {\r\n doc.write('');\r\n }\r\n }\r\n node = doc;\r\n }\r\n mirror.add(node, n);\r\n if ((n.type === NodeType.Document || n.type === NodeType.Element) &&\r\n !skipChild) {\r\n for (const childN of n.childNodes) {\r\n const childNode = buildNodeWithSN(childN, {\r\n doc,\r\n mirror,\r\n skipChild: false,\r\n hackCss,\r\n afterAppend,\r\n cache,\r\n });\r\n if (!childNode) {\r\n console.warn('Failed to rebuild', childN);\r\n continue;\r\n }\r\n if (childN.isShadow && isElement(node) && node.shadowRoot) {\r\n node.shadowRoot.appendChild(childNode);\r\n }\r\n else if (n.type === NodeType.Document &&\r\n childN.type == NodeType.Element) {\r\n const htmlElement = childNode;\r\n let body = null;\r\n htmlElement.childNodes.forEach((child) => {\r\n if (child.nodeName === 'BODY')\r\n body = child;\r\n });\r\n if (body) {\r\n htmlElement.removeChild(body);\r\n node.appendChild(childNode);\r\n htmlElement.appendChild(body);\r\n }\r\n else {\r\n node.appendChild(childNode);\r\n }\r\n }\r\n else {\r\n node.appendChild(childNode);\r\n }\r\n if (afterAppend) {\r\n afterAppend(childNode, childN.id);\r\n }\r\n }\r\n }\r\n return node;\r\n}\r\nfunction visit(mirror, onVisit) {\r\n function walk(node) {\r\n onVisit(node);\r\n }\r\n for (const id of mirror.getIds()) {\r\n if (mirror.has(id)) {\r\n walk(mirror.getNode(id));\r\n }\r\n }\r\n}\r\nfunction handleScroll(node, mirror) {\r\n const n = mirror.getMeta(node);\r\n if (n?.type !== NodeType.Element) {\r\n return;\r\n }\r\n const el = node;\r\n for (const name in n.attributes) {\r\n if (!(Object.prototype.hasOwnProperty.call(n.attributes, name) &&\r\n name.startsWith('rr_'))) {\r\n continue;\r\n }\r\n const value = n.attributes[name];\r\n if (name === 'rr_scrollLeft') {\r\n el.scrollLeft = value;\r\n }\r\n if (name === 'rr_scrollTop') {\r\n el.scrollTop = value;\r\n }\r\n }\r\n}\r\nfunction rebuild(n, options) {\r\n const { doc, onVisit, hackCss = true, afterAppend, cache, mirror = new Mirror(), } = options;\r\n const node = buildNodeWithSN(n, {\r\n doc,\r\n mirror,\r\n skipChild: false,\r\n hackCss,\r\n afterAppend,\r\n cache,\r\n });\r\n visit(mirror, (visitedNode) => {\r\n if (onVisit) {\r\n onVisit(visitedNode);\r\n }\r\n handleScroll(visitedNode, mirror);\r\n });\r\n return node;\r\n}\n\nexport { IGNORED_NODE, Mirror, NodeType, addHoverClass, buildNodeWithSN, classMatchesRegex, cleanupSnapshot, createCache, createMatchPredicate, createMirror, distanceToMatch, escapeImportStatement, fixSafariColons, genId, getInputType, getInputValue, ignoreAttribute, is2DCanvasBlank, isCSSImportRule, isCSSStyleRule, isElement, isNativeShadowDom, isNodeMetaEqual, isShadowRoot, maskInputValue, needMaskingText, rebuild, serializeNodeWithId, shouldMaskInput, snapshot, stringifyRule, stringifyStylesheet, toLowerCase, toUpperCase, transformAttribute, visitSnapshot };\n", "// Note that these are the serialized attributes and not attributes directly on\n// the DOM Node. Attributes we are interested in:\nconst ATTRIBUTES_TO_RECORD = new Set([\n 'id',\n 'class',\n 'aria-label',\n 'role',\n 'name',\n 'alt',\n 'title',\n 'data-test-id',\n 'data-testid',\n 'disabled',\n 'aria-disabled',\n 'data-sentry-component',\n]);\n\n/**\n * Inclusion list of attributes that we want to record from the DOM element\n */\nexport function getAttributesToRecord(attributes: Record): Record {\n const obj: Record = {};\n for (const key in attributes) {\n if (ATTRIBUTES_TO_RECORD.has(key)) {\n let normalizedKey = key;\n\n if (key === 'data-testid' || key === 'data-test-id') {\n normalizedKey = 'testId';\n }\n\n obj[normalizedKey] = attributes[key];\n }\n }\n\n return obj;\n}\n", "import { record } from '@sentry-internal/rrweb';\nimport type { serializedElementNodeWithId, serializedNodeWithId } from '@sentry-internal/rrweb-snapshot';\nimport { NodeType } from '@sentry-internal/rrweb-snapshot';\nimport type { Breadcrumb, HandlerDataDom } from '@sentry/types';\nimport { htmlTreeAsString } from '@sentry/utils';\n\nimport type { ReplayContainer } from '../types';\nimport { createBreadcrumb } from '../util/createBreadcrumb';\nimport { handleClick } from './handleClick';\nimport { addBreadcrumbEvent } from './util/addBreadcrumbEvent';\nimport { getClickTargetNode, getTargetNode } from './util/domUtils';\nimport { getAttributesToRecord } from './util/getAttributesToRecord';\n\nexport const handleDomListener: (replay: ReplayContainer) => (handlerData: HandlerDataDom) => void = (\n replay: ReplayContainer,\n) => {\n return (handlerData: HandlerDataDom): void => {\n if (!replay.isEnabled()) {\n return;\n }\n\n const result = handleDom(handlerData);\n\n if (!result) {\n return;\n }\n\n const isClick = handlerData.name === 'click';\n const event = isClick ? (handlerData.event as PointerEvent) : undefined;\n // Ignore clicks if ctrl/alt/meta/shift keys are held down as they alter behavior of clicks (e.g. open in new tab)\n if (\n isClick &&\n replay.clickDetector &&\n event &&\n event.target &&\n !event.altKey &&\n !event.metaKey &&\n !event.ctrlKey &&\n !event.shiftKey\n ) {\n handleClick(\n replay.clickDetector,\n result as Breadcrumb & { timestamp: number; data: { nodeId: number } },\n getClickTargetNode(handlerData.event as Event) as HTMLElement,\n );\n }\n\n addBreadcrumbEvent(replay, result);\n };\n};\n\n/** Get the base DOM breadcrumb. */\nexport function getBaseDomBreadcrumb(target: Node | null, message: string): Breadcrumb {\n const nodeId = record.mirror.getId(target);\n const node = nodeId && record.mirror.getNode(nodeId);\n const meta = node && record.mirror.getMeta(node);\n const element = meta && isElement(meta) ? meta : null;\n\n return {\n message,\n data: element\n ? {\n nodeId,\n node: {\n id: nodeId,\n tagName: element.tagName,\n textContent: Array.from(element.childNodes)\n .map((node: serializedNodeWithId) => node.type === NodeType.Text && node.textContent)\n .filter(Boolean) // filter out empty values\n .map(text => (text as string).trim())\n .join(''),\n attributes: getAttributesToRecord(element.attributes),\n },\n }\n : {},\n };\n}\n\n/**\n * An event handler to react to DOM events.\n * Exported for tests.\n */\nexport function handleDom(handlerData: HandlerDataDom): Breadcrumb | null {\n const { target, message } = getDomTarget(handlerData);\n\n return createBreadcrumb({\n category: `ui.${handlerData.name}`,\n ...getBaseDomBreadcrumb(target, message),\n });\n}\n\nfunction getDomTarget(handlerData: HandlerDataDom): { target: Node | null; message: string } {\n const isClick = handlerData.name === 'click';\n\n let message: string | undefined;\n let target: Node | null = null;\n\n // Accessing event.target can throw (see getsentry/raven-js#838, #768)\n try {\n target = isClick ? getClickTargetNode(handlerData.event as Event) : getTargetNode(handlerData.event as Event);\n message = htmlTreeAsString(target, { maxStringLength: 200 }) || '';\n } catch (e) {\n message = '';\n }\n\n return { target, message };\n}\n\nfunction isElement(node: serializedNodeWithId): node is serializedElementNodeWithId {\n return node.type === NodeType.Element;\n}\n", "import type { Breadcrumb } from '@sentry/types';\nimport { htmlTreeAsString } from '@sentry/utils';\n\nimport type { ReplayContainer } from '../types';\nimport { createBreadcrumb } from '../util/createBreadcrumb';\nimport { getBaseDomBreadcrumb } from './handleDom';\nimport { addBreadcrumbEvent } from './util/addBreadcrumbEvent';\n\n/** Handle keyboard events & create breadcrumbs. */\nexport function handleKeyboardEvent(replay: ReplayContainer, event: KeyboardEvent): void {\n if (!replay.isEnabled()) {\n return;\n }\n\n // Update user activity, but do not restart recording as it can create\n // noisy/low-value replays (e.g. user comes back from idle, hits alt-tab, new\n // session with a single \"keydown\" breadcrumb is created)\n replay.updateUserActivity();\n\n const breadcrumb = getKeyboardBreadcrumb(event);\n\n if (!breadcrumb) {\n return;\n }\n\n addBreadcrumbEvent(replay, breadcrumb);\n}\n\n/** exported only for tests */\nexport function getKeyboardBreadcrumb(event: KeyboardEvent): Breadcrumb | null {\n const { metaKey, shiftKey, ctrlKey, altKey, key, target } = event;\n\n // never capture for input fields\n if (!target || isInputElement(target as HTMLElement) || !key) {\n return null;\n }\n\n // Note: We do not consider shift here, as that means \"uppercase\"\n const hasModifierKey = metaKey || ctrlKey || altKey;\n const isCharacterKey = key.length === 1; // other keys like Escape, Tab, etc have a longer length\n\n // Do not capture breadcrumb if only a word key is pressed\n // This could leak e.g. user input\n if (!hasModifierKey && isCharacterKey) {\n return null;\n }\n\n const message = htmlTreeAsString(target, { maxStringLength: 200 }) || '';\n const baseBreadcrumb = getBaseDomBreadcrumb(target as Node, message);\n\n return createBreadcrumb({\n category: 'ui.keyDown',\n message,\n data: {\n ...baseBreadcrumb.data,\n metaKey,\n shiftKey,\n ctrlKey,\n altKey,\n key,\n },\n });\n}\n\nfunction isInputElement(target: HTMLElement): boolean {\n return target.tagName === 'INPUT' || target.tagName === 'TEXTAREA' || target.isContentEditable;\n}\n", "import { record } from '@sentry-internal/rrweb';\nimport { browserPerformanceTimeOrigin } from '@sentry/utils';\n\nimport { WINDOW } from '../constants';\nimport type {\n AllPerformanceEntry,\n AllPerformanceEntryData,\n ExperimentalPerformanceResourceTiming,\n LargestContentfulPaintData,\n NavigationData,\n PaintData,\n ReplayPerformanceEntry,\n ResourceData,\n} from '../types';\n\n// Map entryType -> function to normalize data for event\nconst ENTRY_TYPES: Record<\n string,\n (entry: AllPerformanceEntry) => null | ReplayPerformanceEntry\n> = {\n // @ts-expect-error TODO: entry type does not fit the create* functions entry type\n resource: createResourceEntry,\n paint: createPaintEntry,\n // @ts-expect-error TODO: entry type does not fit the create* functions entry type\n navigation: createNavigationEntry,\n};\n\n/**\n * Create replay performance entries from the browser performance entries.\n */\nexport function createPerformanceEntries(\n entries: AllPerformanceEntry[],\n): ReplayPerformanceEntry[] {\n return entries.map(createPerformanceEntry).filter(Boolean) as ReplayPerformanceEntry[];\n}\n\nfunction createPerformanceEntry(entry: AllPerformanceEntry): ReplayPerformanceEntry | null {\n if (!ENTRY_TYPES[entry.entryType]) {\n return null;\n }\n\n return ENTRY_TYPES[entry.entryType](entry);\n}\n\nfunction getAbsoluteTime(time: number): number {\n // browserPerformanceTimeOrigin can be undefined if `performance` or\n // `performance.now` doesn't exist, but this is already checked by this integration\n return ((browserPerformanceTimeOrigin || WINDOW.performance.timeOrigin) + time) / 1000;\n}\n\nfunction createPaintEntry(entry: PerformancePaintTiming): ReplayPerformanceEntry {\n const { duration, entryType, name, startTime } = entry;\n\n const start = getAbsoluteTime(startTime);\n return {\n type: entryType,\n name,\n start,\n end: start + duration,\n data: undefined,\n };\n}\n\nfunction createNavigationEntry(entry: PerformanceNavigationTiming): ReplayPerformanceEntry | null {\n const {\n entryType,\n name,\n decodedBodySize,\n duration,\n domComplete,\n encodedBodySize,\n domContentLoadedEventStart,\n domContentLoadedEventEnd,\n domInteractive,\n loadEventStart,\n loadEventEnd,\n redirectCount,\n startTime,\n transferSize,\n type,\n } = entry;\n\n // Ignore entries with no duration, they do not seem to be useful and cause dupes\n if (duration === 0) {\n return null;\n }\n\n return {\n type: `${entryType}.${type}`,\n start: getAbsoluteTime(startTime),\n end: getAbsoluteTime(domComplete),\n name,\n data: {\n size: transferSize,\n decodedBodySize,\n encodedBodySize,\n duration,\n domInteractive,\n domContentLoadedEventStart,\n domContentLoadedEventEnd,\n loadEventStart,\n loadEventEnd,\n domComplete,\n redirectCount,\n },\n };\n}\n\nfunction createResourceEntry(\n entry: ExperimentalPerformanceResourceTiming,\n): ReplayPerformanceEntry | null {\n const {\n entryType,\n initiatorType,\n name,\n responseEnd,\n startTime,\n decodedBodySize,\n encodedBodySize,\n responseStatus,\n transferSize,\n } = entry;\n\n // Core SDK handles these\n if (['fetch', 'xmlhttprequest'].includes(initiatorType)) {\n return null;\n }\n\n return {\n type: `${entryType}.${initiatorType}`,\n start: getAbsoluteTime(startTime),\n end: getAbsoluteTime(responseEnd),\n name,\n data: {\n size: transferSize,\n statusCode: responseStatus,\n decodedBodySize,\n encodedBodySize,\n },\n };\n}\n\n/**\n * Add a LCP event to the replay based on an LCP metric.\n */\nexport function getLargestContentfulPaint(metric: {\n value: number;\n entries: PerformanceEntry[];\n}): ReplayPerformanceEntry {\n const entries = metric.entries;\n const lastEntry = entries[entries.length - 1] as (PerformanceEntry & { element?: Element }) | undefined;\n const element = lastEntry ? lastEntry.element : undefined;\n\n const value = metric.value;\n\n const end = getAbsoluteTime(value);\n\n const data: ReplayPerformanceEntry = {\n type: 'largest-contentful-paint',\n name: 'largest-contentful-paint',\n start: end,\n end,\n data: {\n value,\n size: value,\n nodeId: element ? record.mirror.getId(element) : undefined,\n },\n };\n\n return data;\n}\n", "import { addLcpInstrumentationHandler, addPerformanceInstrumentationHandler } from '@sentry-internal/tracing';\n\nimport type { ReplayContainer } from '../types';\nimport { getLargestContentfulPaint } from '../util/createPerformanceEntries';\n\n/**\n * Sets up a PerformanceObserver to listen to all performance entry types.\n * Returns a callback to stop observing.\n */\nexport function setupPerformanceObserver(replay: ReplayContainer): () => void {\n function addPerformanceEntry(entry: PerformanceEntry): void {\n // It is possible for entries to come up multiple times\n if (!replay.performanceEntries.includes(entry)) {\n replay.performanceEntries.push(entry);\n }\n }\n\n function onEntries({ entries }: { entries: PerformanceEntry[] }): void {\n entries.forEach(addPerformanceEntry);\n }\n\n const clearCallbacks: (() => void)[] = [];\n\n (['navigation', 'paint', 'resource'] as const).forEach(type => {\n clearCallbacks.push(addPerformanceInstrumentationHandler(type, onEntries));\n });\n\n clearCallbacks.push(\n addLcpInstrumentationHandler(({ metric }) => {\n replay.replayPerformanceEntries.push(getLargestContentfulPaint(metric));\n }),\n );\n\n // A callback to cleanup all handlers\n return () => {\n clearCallbacks.forEach(clearCallback => clearCallback());\n };\n}\n", "declare const __DEBUG_BUILD__: boolean;\n\n/**\n * This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.\n *\n * ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.\n */\nexport const DEBUG_BUILD = __DEBUG_BUILD__;\n", "export default `var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([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,0,0,0]),i=new t([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,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a>h]=l}else for(o=new n(i),a=0;a>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=[\"unexpected EOF\",\"invalid block type\",\"invalid length/literal\",\"invalid distance\",\"stream finished\",\"no stream handler\",,\"no callback\",\"invalid UTF-8 data\",\"extra field too long\",\"date not in range 1980-2099\",\"filename too long\",\"stream finishing\",\"invalid zip data\"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;ad&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<e))break;p+=m-(1<>=y;p>0;){var M=o[a].s;g[M]=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;Pnt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if(\"function\"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G=\"undefined\"!=typeof TextEncoder&&new TextEncoder,H=\"undefined\"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i>1)),o=0,f=function(t){s[o++]=t};for(i=0;is.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error(\"Adding invalid event\");const n=this._hasEvents?\",\":\"\";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push(\"]\",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push(\"[\")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener(\"message\",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&\"function\"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:\"init\",success:!0,response:void 0});`;\n", "import r from\"./worker\";function e(){const e=new Blob([r]);return URL.createObjectURL(e)}export{e as getWorkerURL};\n", "import { addBreadcrumb } from '@sentry/core';\nimport { logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../debug-build';\n\n/**\n * Log a message in debug mode, and add a breadcrumb when _experiment.traceInternals is enabled.\n */\nexport function logInfo(message: string, shouldAddBreadcrumb?: boolean): void {\n if (!DEBUG_BUILD) {\n return;\n }\n\n logger.info(message);\n\n if (shouldAddBreadcrumb) {\n addLogBreadcrumb(message);\n }\n}\n\n/**\n * Log a message, and add a breadcrumb in the next tick.\n * This is necessary when the breadcrumb may be added before the replay is initialized.\n */\nexport function logInfoNextTick(message: string, shouldAddBreadcrumb?: boolean): void {\n if (!DEBUG_BUILD) {\n return;\n }\n\n logger.info(message);\n\n if (shouldAddBreadcrumb) {\n // Wait a tick here to avoid race conditions for some initial logs\n // which may be added before replay is initialized\n setTimeout(() => {\n addLogBreadcrumb(message);\n }, 0);\n }\n}\n\nfunction addLogBreadcrumb(message: string): void {\n addBreadcrumb(\n {\n category: 'console',\n data: {\n logger: 'replay',\n },\n level: 'info',\n message,\n },\n { level: 'info' },\n );\n}\n", "import { REPLAY_MAX_EVENT_BUFFER_SIZE } from '../constants';\n\n/** This error indicates that the event buffer size exceeded the limit.. */\nexport class EventBufferSizeExceededError extends Error {\n public constructor() {\n super(`Event buffer exceeded maximum size of ${REPLAY_MAX_EVENT_BUFFER_SIZE}.`);\n }\n}\n", "import { REPLAY_MAX_EVENT_BUFFER_SIZE } from '../constants';\nimport type { AddEventResult, EventBuffer, EventBufferType, RecordingEvent } from '../types';\nimport { timestampToMs } from '../util/timestamp';\nimport { EventBufferSizeExceededError } from './error';\n\n/**\n * A basic event buffer that does not do any compression.\n * Used as fallback if the compression worker cannot be loaded or is disabled.\n */\nexport class EventBufferArray implements EventBuffer {\n /** All the events that are buffered to be sent. */\n public events: RecordingEvent[];\n\n /** @inheritdoc */\n public hasCheckout: boolean;\n\n private _totalSize: number;\n\n public constructor() {\n this.events = [];\n this._totalSize = 0;\n this.hasCheckout = false;\n }\n\n /** @inheritdoc */\n public get hasEvents(): boolean {\n return this.events.length > 0;\n }\n\n /** @inheritdoc */\n public get type(): EventBufferType {\n return 'sync';\n }\n\n /** @inheritdoc */\n public destroy(): void {\n this.events = [];\n }\n\n /** @inheritdoc */\n public async addEvent(event: RecordingEvent): Promise {\n const eventSize = JSON.stringify(event).length;\n this._totalSize += eventSize;\n if (this._totalSize > REPLAY_MAX_EVENT_BUFFER_SIZE) {\n throw new EventBufferSizeExceededError();\n }\n\n this.events.push(event);\n }\n\n /** @inheritdoc */\n public finish(): Promise {\n return new Promise(resolve => {\n // Make a copy of the events array reference and immediately clear the\n // events member so that we do not lose new events while uploading\n // attachment.\n const eventsRet = this.events;\n this.clear();\n resolve(JSON.stringify(eventsRet));\n });\n }\n\n /** @inheritdoc */\n public clear(): void {\n this.events = [];\n this._totalSize = 0;\n this.hasCheckout = false;\n }\n\n /** @inheritdoc */\n public getEarliestTimestamp(): number | null {\n const timestamp = this.events.map(event => event.timestamp).sort()[0];\n\n if (!timestamp) {\n return null;\n }\n\n return timestampToMs(timestamp);\n }\n}\n", "import { logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { WorkerRequest, WorkerResponse } from '../types';\nimport { logInfo } from '../util/log';\n\n/**\n * Event buffer that uses a web worker to compress events.\n * Exported only for testing.\n */\nexport class WorkerHandler {\n private _worker: Worker;\n private _id: number;\n private _ensureReadyPromise?: Promise;\n\n public constructor(worker: Worker) {\n this._worker = worker;\n this._id = 0;\n }\n\n /**\n * Ensure the worker is ready (or not).\n * This will either resolve when the worker is ready, or reject if an error occured.\n */\n public ensureReady(): Promise {\n // Ensure we only check once\n if (this._ensureReadyPromise) {\n return this._ensureReadyPromise;\n }\n\n this._ensureReadyPromise = new Promise((resolve, reject) => {\n this._worker.addEventListener(\n 'message',\n ({ data }: MessageEvent) => {\n if ((data as WorkerResponse).success) {\n resolve();\n } else {\n reject();\n }\n },\n { once: true },\n );\n\n this._worker.addEventListener(\n 'error',\n error => {\n reject(error);\n },\n { once: true },\n );\n });\n\n return this._ensureReadyPromise;\n }\n\n /**\n * Destroy the worker.\n */\n public destroy(): void {\n logInfo('[Replay] Destroying compression worker');\n this._worker.terminate();\n }\n\n /**\n * Post message to worker and wait for response before resolving promise.\n */\n public postMessage(method: WorkerRequest['method'], arg?: WorkerRequest['arg']): Promise {\n const id = this._getAndIncrementId();\n\n return new Promise((resolve, reject) => {\n const listener = ({ data }: MessageEvent): void => {\n const response = data as WorkerResponse;\n if (response.method !== method) {\n return;\n }\n\n // There can be multiple listeners for a single method, the id ensures\n // that the response matches the caller.\n if (response.id !== id) {\n return;\n }\n\n // At this point, we'll always want to remove listener regardless of result status\n this._worker.removeEventListener('message', listener);\n\n if (!response.success) {\n // TODO: Do some error handling, not sure what\n DEBUG_BUILD && logger.error('[Replay]', response.response);\n\n reject(new Error('Error in compression worker'));\n return;\n }\n\n resolve(response.response as T);\n };\n\n // Note: we can't use `once` option because it's possible it needs to\n // listen to multiple messages\n this._worker.addEventListener('message', listener);\n this._worker.postMessage({ id, method, arg });\n });\n }\n\n /** Get the current ID and increment it for the next call. */\n private _getAndIncrementId(): number {\n return this._id++;\n }\n}\n", "import type { ReplayRecordingData } from '@sentry/types';\n\nimport { logger } from '@sentry/utils';\nimport { REPLAY_MAX_EVENT_BUFFER_SIZE } from '../constants';\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { AddEventResult, EventBuffer, EventBufferType, RecordingEvent } from '../types';\nimport { timestampToMs } from '../util/timestamp';\nimport { WorkerHandler } from './WorkerHandler';\nimport { EventBufferSizeExceededError } from './error';\n\n/**\n * Event buffer that uses a web worker to compress events.\n * Exported only for testing.\n */\nexport class EventBufferCompressionWorker implements EventBuffer {\n /** @inheritdoc */\n public hasCheckout: boolean;\n\n private _worker: WorkerHandler;\n private _earliestTimestamp: number | null;\n private _totalSize;\n\n public constructor(worker: Worker) {\n this._worker = new WorkerHandler(worker);\n this._earliestTimestamp = null;\n this._totalSize = 0;\n this.hasCheckout = false;\n }\n\n /** @inheritdoc */\n public get hasEvents(): boolean {\n return !!this._earliestTimestamp;\n }\n\n /** @inheritdoc */\n public get type(): EventBufferType {\n return 'worker';\n }\n\n /**\n * Ensure the worker is ready (or not).\n * This will either resolve when the worker is ready, or reject if an error occured.\n */\n public ensureReady(): Promise {\n return this._worker.ensureReady();\n }\n\n /**\n * Destroy the event buffer.\n */\n public destroy(): void {\n this._worker.destroy();\n }\n\n /**\n * Add an event to the event buffer.\n *\n * Returns true if event was successfuly received and processed by worker.\n */\n public addEvent(event: RecordingEvent): Promise {\n const timestamp = timestampToMs(event.timestamp);\n if (!this._earliestTimestamp || timestamp < this._earliestTimestamp) {\n this._earliestTimestamp = timestamp;\n }\n\n const data = JSON.stringify(event);\n this._totalSize += data.length;\n\n if (this._totalSize > REPLAY_MAX_EVENT_BUFFER_SIZE) {\n return Promise.reject(new EventBufferSizeExceededError());\n }\n\n return this._sendEventToWorker(data);\n }\n\n /**\n * Finish the event buffer and return the compressed data.\n */\n public finish(): Promise {\n return this._finishRequest();\n }\n\n /** @inheritdoc */\n public clear(): void {\n this._earliestTimestamp = null;\n this._totalSize = 0;\n this.hasCheckout = false;\n\n // We do not wait on this, as we assume the order of messages is consistent for the worker\n this._worker.postMessage('clear').then(null, e => {\n DEBUG_BUILD && logger.warn('[Replay] Sending \"clear\" message to worker failed', e);\n });\n }\n\n /** @inheritdoc */\n public getEarliestTimestamp(): number | null {\n return this._earliestTimestamp;\n }\n\n /**\n * Send the event to the worker.\n */\n private _sendEventToWorker(data: string): Promise {\n return this._worker.postMessage('addEvent', data);\n }\n\n /**\n * Finish the request and return the compressed data from the worker.\n */\n private async _finishRequest(): Promise {\n const response = await this._worker.postMessage('finish');\n\n this._earliestTimestamp = null;\n this._totalSize = 0;\n\n return response;\n }\n}\n", "import type { ReplayRecordingData } from '@sentry/types';\nimport { logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { AddEventResult, EventBuffer, EventBufferType, RecordingEvent } from '../types';\nimport { logInfo } from '../util/log';\nimport { EventBufferArray } from './EventBufferArray';\nimport { EventBufferCompressionWorker } from './EventBufferCompressionWorker';\n\n/**\n * This proxy will try to use the compression worker, and fall back to use the simple buffer if an error occurs there.\n * This can happen e.g. if the worker cannot be loaded.\n * Exported only for testing.\n */\nexport class EventBufferProxy implements EventBuffer {\n private _fallback: EventBufferArray;\n private _compression: EventBufferCompressionWorker;\n private _used: EventBuffer;\n private _ensureWorkerIsLoadedPromise: Promise;\n\n public constructor(worker: Worker) {\n this._fallback = new EventBufferArray();\n this._compression = new EventBufferCompressionWorker(worker);\n this._used = this._fallback;\n\n this._ensureWorkerIsLoadedPromise = this._ensureWorkerIsLoaded();\n }\n\n /** @inheritdoc */\n public get type(): EventBufferType {\n return this._used.type;\n }\n\n /** @inheritDoc */\n public get hasEvents(): boolean {\n return this._used.hasEvents;\n }\n\n /** @inheritdoc */\n public get hasCheckout(): boolean {\n return this._used.hasCheckout;\n }\n /** @inheritdoc */\n public set hasCheckout(value: boolean) {\n this._used.hasCheckout = value;\n }\n\n /** @inheritDoc */\n public destroy(): void {\n this._fallback.destroy();\n this._compression.destroy();\n }\n\n /** @inheritdoc */\n public clear(): void {\n return this._used.clear();\n }\n\n /** @inheritdoc */\n public getEarliestTimestamp(): number | null {\n return this._used.getEarliestTimestamp();\n }\n\n /**\n * Add an event to the event buffer.\n *\n * Returns true if event was successfully added.\n */\n public addEvent(event: RecordingEvent): Promise {\n return this._used.addEvent(event);\n }\n\n /** @inheritDoc */\n public async finish(): Promise {\n // Ensure the worker is loaded, so the sent event is compressed\n await this.ensureWorkerIsLoaded();\n\n return this._used.finish();\n }\n\n /** Ensure the worker has loaded. */\n public ensureWorkerIsLoaded(): Promise {\n return this._ensureWorkerIsLoadedPromise;\n }\n\n /** Actually check if the worker has been loaded. */\n private async _ensureWorkerIsLoaded(): Promise {\n try {\n await this._compression.ensureReady();\n } catch (error) {\n // If the worker fails to load, we fall back to the simple buffer.\n // Nothing more to do from our side here\n logInfo('[Replay] Failed to load the compression worker, falling back to simple buffer');\n return;\n }\n\n // Now we need to switch over the array buffer to the compression worker\n await this._switchToCompressionWorker();\n }\n\n /** Switch the used buffer to the compression worker. */\n private async _switchToCompressionWorker(): Promise {\n const { events, hasCheckout } = this._fallback;\n\n const addEventPromises: Promise[] = [];\n for (const event of events) {\n addEventPromises.push(this._compression.addEvent(event));\n }\n\n this._compression.hasCheckout = hasCheckout;\n\n // We switch over to the new buffer immediately - any further events will be added\n // after the previously buffered ones\n this._used = this._compression;\n\n // Wait for original events to be re-added before resolving\n try {\n await Promise.all(addEventPromises);\n } catch (error) {\n DEBUG_BUILD && logger.warn('[Replay] Failed to add events when switching buffers.', error);\n }\n }\n}\n", "import { getWorkerURL } from '@sentry-internal/replay-worker';\n\nimport type { EventBuffer } from '../types';\nimport { logInfo } from '../util/log';\nimport { EventBufferArray } from './EventBufferArray';\nimport { EventBufferProxy } from './EventBufferProxy';\n\ninterface CreateEventBufferParams {\n useCompression: boolean;\n workerUrl?: string;\n}\n\n// Treeshakable guard to remove the code of the included compression worker\ndeclare const __SENTRY_EXCLUDE_REPLAY_WORKER__: boolean;\n\n/**\n * Create an event buffer for replays.\n */\nexport function createEventBuffer({\n useCompression,\n workerUrl: customWorkerUrl,\n}: CreateEventBufferParams): EventBuffer {\n if (\n useCompression &&\n // eslint-disable-next-line no-restricted-globals\n window.Worker\n ) {\n const worker = _loadWorker(customWorkerUrl);\n\n if (worker) {\n return worker;\n }\n }\n\n logInfo('[Replay] Using simple buffer');\n return new EventBufferArray();\n}\n\nfunction _loadWorker(customWorkerUrl?: string): EventBufferProxy | void {\n try {\n const workerUrl = customWorkerUrl || _getWorkerUrl();\n\n if (!workerUrl) {\n return;\n }\n\n logInfo(`[Replay] Using compression worker${customWorkerUrl ? ` from ${customWorkerUrl}` : ''}`);\n const worker = new Worker(workerUrl);\n return new EventBufferProxy(worker);\n } catch (error) {\n logInfo('[Replay] Failed to create compression worker');\n // Fall back to use simple event buffer array\n }\n}\n\nfunction _getWorkerUrl(): string {\n if (typeof __SENTRY_EXCLUDE_REPLAY_WORKER__ === 'undefined' || !__SENTRY_EXCLUDE_REPLAY_WORKER__) {\n return getWorkerURL();\n }\n\n return '';\n}\n", "import { WINDOW } from '../constants';\n\n/** If sessionStorage is available. */\nexport function hasSessionStorage(): boolean {\n try {\n // This can throw, e.g. when being accessed in a sandboxed iframe\n return 'sessionStorage' in WINDOW && !!WINDOW.sessionStorage;\n } catch {\n return false;\n }\n}\n", "import { REPLAY_SESSION_KEY, WINDOW } from '../../src/constants';\nimport type { ReplayContainer } from '../../src/types';\nimport { hasSessionStorage } from '../util/hasSessionStorage';\n\n/**\n * Removes the session from Session Storage and unsets session in replay instance\n */\nexport function clearSession(replay: ReplayContainer): void {\n deleteSession();\n replay.session = undefined;\n}\n\n/**\n * Deletes a session from storage\n */\nfunction deleteSession(): void {\n if (!hasSessionStorage()) {\n return;\n }\n\n try {\n WINDOW.sessionStorage.removeItem(REPLAY_SESSION_KEY);\n } catch {\n // Ignore potential SecurityError exceptions\n }\n}\n", "/**\n * Given a sample rate, returns true if replay should be sampled.\n *\n * 1.0 = 100% sampling\n * 0.0 = 0% sampling\n */\nexport function isSampled(sampleRate?: number): boolean {\n if (sampleRate === undefined) {\n return false;\n }\n\n // Math.random() returns a number in range of 0 to 1 (inclusive of 0, but not 1)\n return Math.random() < sampleRate;\n}\n", "import { uuid4 } from '@sentry/utils';\n\nimport type { Sampled, Session } from '../types';\n\n/**\n * Get a session with defaults & applied sampling.\n */\nexport function makeSession(session: Partial & { sampled: Sampled }): Session {\n const now = Date.now();\n const id = session.id || uuid4();\n // Note that this means we cannot set a started/lastActivity of `0`, but this should not be relevant outside of tests.\n const started = session.started || now;\n const lastActivity = session.lastActivity || now;\n const segmentId = session.segmentId || 0;\n const sampled = session.sampled;\n const previousSessionId = session.previousSessionId;\n\n return {\n id,\n started,\n lastActivity,\n segmentId,\n sampled,\n previousSessionId,\n };\n}\n", "import { REPLAY_SESSION_KEY, WINDOW } from '../constants';\nimport type { Session } from '../types';\nimport { hasSessionStorage } from '../util/hasSessionStorage';\n\n/**\n * Save a session to session storage.\n */\nexport function saveSession(session: Session): void {\n if (!hasSessionStorage()) {\n return;\n }\n\n try {\n WINDOW.sessionStorage.setItem(REPLAY_SESSION_KEY, JSON.stringify(session));\n } catch {\n // Ignore potential SecurityError exceptions\n }\n}\n", "import type { Sampled, Session, SessionOptions } from '../types';\nimport { isSampled } from '../util/isSampled';\nimport { makeSession } from './Session';\nimport { saveSession } from './saveSession';\n\n/**\n * Get the sampled status for a session based on sample rates & current sampled status.\n */\nexport function getSessionSampleType(sessionSampleRate: number, allowBuffering: boolean): Sampled {\n return isSampled(sessionSampleRate) ? 'session' : allowBuffering ? 'buffer' : false;\n}\n\n/**\n * Create a new session, which in its current implementation is a Sentry event\n * that all replays will be saved to as attachments. Currently, we only expect\n * one of these Sentry events per \"replay session\".\n */\nexport function createSession(\n { sessionSampleRate, allowBuffering, stickySession = false }: SessionOptions,\n { previousSessionId }: { previousSessionId?: string } = {},\n): Session {\n const sampled = getSessionSampleType(sessionSampleRate, allowBuffering);\n const session = makeSession({\n sampled,\n previousSessionId,\n });\n\n if (stickySession) {\n saveSession(session);\n }\n\n return session;\n}\n", "import { REPLAY_SESSION_KEY, WINDOW } from '../constants';\nimport type { Session } from '../types';\nimport { hasSessionStorage } from '../util/hasSessionStorage';\nimport { logInfoNextTick } from '../util/log';\nimport { makeSession } from './Session';\n\n/**\n * Fetches a session from storage\n */\nexport function fetchSession(traceInternals?: boolean): Session | null {\n if (!hasSessionStorage()) {\n return null;\n }\n\n try {\n // This can throw if cookies are disabled\n const sessionStringFromStorage = WINDOW.sessionStorage.getItem(REPLAY_SESSION_KEY);\n\n if (!sessionStringFromStorage) {\n return null;\n }\n\n const sessionObj = JSON.parse(sessionStringFromStorage) as Session;\n\n logInfoNextTick('[Replay] Loading existing session', traceInternals);\n\n return makeSession(sessionObj);\n } catch {\n return null;\n }\n}\n", "/**\n * Given an initial timestamp and an expiry duration, checks to see if current\n * time should be considered as expired.\n */\nexport function isExpired(\n initialTime: null | number,\n expiry: undefined | number,\n targetTime: number = +new Date(),\n): boolean {\n // Always expired if < 0\n if (initialTime === null || expiry === undefined || expiry < 0) {\n return true;\n }\n\n // Never expires if == 0\n if (expiry === 0) {\n return false;\n }\n\n return initialTime + expiry <= targetTime;\n}\n", "import type { Session } from '../types';\nimport { isExpired } from './isExpired';\n\n/**\n * Checks to see if session is expired\n */\nexport function isSessionExpired(\n session: Session,\n {\n maxReplayDuration,\n sessionIdleExpire,\n targetTime = Date.now(),\n }: { maxReplayDuration: number; sessionIdleExpire: number; targetTime?: number },\n): boolean {\n return (\n // First, check that maximum session length has not been exceeded\n isExpired(session.started, maxReplayDuration, targetTime) ||\n // check that the idle timeout has not been exceeded (i.e. user has\n // performed an action within the last `sessionIdleExpire` ms)\n isExpired(session.lastActivity, sessionIdleExpire, targetTime)\n );\n}\n", "import type { Session } from '../types';\nimport { isSessionExpired } from '../util/isSessionExpired';\n\n/** If the session should be refreshed or not. */\nexport function shouldRefreshSession(\n session: Session,\n { sessionIdleExpire, maxReplayDuration }: { sessionIdleExpire: number; maxReplayDuration: number },\n): boolean {\n // If not expired, all good, just keep the session\n if (!isSessionExpired(session, { sessionIdleExpire, maxReplayDuration })) {\n return false;\n }\n\n // If we are buffering & haven't ever flushed yet, always continue\n if (session.sampled === 'buffer' && session.segmentId === 0) {\n return false;\n }\n\n return true;\n}\n", "import type { Session, SessionOptions } from '../types';\nimport { logInfoNextTick } from '../util/log';\nimport { createSession } from './createSession';\nimport { fetchSession } from './fetchSession';\nimport { shouldRefreshSession } from './shouldRefreshSession';\n\n/**\n * Get or create a session, when initializing the replay.\n * Returns a session that may be unsampled.\n */\nexport function loadOrCreateSession(\n {\n traceInternals,\n sessionIdleExpire,\n maxReplayDuration,\n previousSessionId,\n }: {\n sessionIdleExpire: number;\n maxReplayDuration: number;\n traceInternals?: boolean;\n previousSessionId?: string;\n },\n sessionOptions: SessionOptions,\n): Session {\n const existingSession = sessionOptions.stickySession && fetchSession(traceInternals);\n\n // No session exists yet, just create a new one\n if (!existingSession) {\n logInfoNextTick('[Replay] Creating new session', traceInternals);\n return createSession(sessionOptions, { previousSessionId });\n }\n\n if (!shouldRefreshSession(existingSession, { sessionIdleExpire, maxReplayDuration })) {\n return existingSession;\n }\n\n logInfoNextTick('[Replay] Session in sessionStorage is expired, creating new one...');\n return createSession(sessionOptions, { previousSessionId: existingSession.id });\n}\n", "import { EventType } from '@sentry-internal/rrweb';\nimport { getClient } from '@sentry/core';\nimport { logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../debug-build';\nimport { EventBufferSizeExceededError } from '../eventBuffer/error';\nimport type { AddEventResult, RecordingEvent, ReplayContainer, ReplayFrameEvent, ReplayPluginOptions } from '../types';\nimport { logInfo } from './log';\nimport { timestampToMs } from './timestamp';\n\nfunction isCustomEvent(event: RecordingEvent): event is ReplayFrameEvent {\n return event.type === EventType.Custom;\n}\n\n/**\n * Add an event to the event buffer.\n * In contrast to `addEvent`, this does not return a promise & does not wait for the adding of the event to succeed/fail.\n * Instead this returns `true` if we tried to add the event, else false.\n * It returns `false` e.g. if we are paused, disabled, or out of the max replay duration.\n *\n * `isCheckout` is true if this is either the very first event, or an event triggered by `checkoutEveryNms`.\n */\nexport function addEventSync(replay: ReplayContainer, event: RecordingEvent, isCheckout?: boolean): boolean {\n if (!shouldAddEvent(replay, event)) {\n return false;\n }\n\n // This should never reject\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n _addEvent(replay, event, isCheckout);\n\n return true;\n}\n\n/**\n * Add an event to the event buffer.\n * Resolves to `null` if no event was added, else to `void`.\n *\n * `isCheckout` is true if this is either the very first event, or an event triggered by `checkoutEveryNms`.\n */\nexport function addEvent(\n replay: ReplayContainer,\n event: RecordingEvent,\n isCheckout?: boolean,\n): Promise {\n if (!shouldAddEvent(replay, event)) {\n return Promise.resolve(null);\n }\n\n return _addEvent(replay, event, isCheckout);\n}\n\nasync function _addEvent(\n replay: ReplayContainer,\n event: RecordingEvent,\n isCheckout?: boolean,\n): Promise {\n if (!replay.eventBuffer) {\n return null;\n }\n\n try {\n if (isCheckout && replay.recordingMode === 'buffer') {\n replay.eventBuffer.clear();\n }\n\n if (isCheckout) {\n replay.eventBuffer.hasCheckout = true;\n }\n\n const replayOptions = replay.getOptions();\n\n const eventAfterPossibleCallback = maybeApplyCallback(event, replayOptions.beforeAddRecordingEvent);\n\n if (!eventAfterPossibleCallback) {\n return;\n }\n\n return await replay.eventBuffer.addEvent(eventAfterPossibleCallback);\n } catch (error) {\n const reason = error && error instanceof EventBufferSizeExceededError ? 'addEventSizeExceeded' : 'addEvent';\n\n DEBUG_BUILD && logger.error(error);\n await replay.stop({ reason });\n\n const client = getClient();\n\n if (client) {\n client.recordDroppedEvent('internal_sdk_error', 'replay');\n }\n }\n}\n\n/** Exported only for tests. */\nexport function shouldAddEvent(replay: ReplayContainer, event: RecordingEvent): boolean {\n if (!replay.eventBuffer || replay.isPaused() || !replay.isEnabled()) {\n return false;\n }\n\n const timestampInMs = timestampToMs(event.timestamp);\n\n // Throw out events that happen more than 5 minutes ago. This can happen if\n // page has been left open and idle for a long period of time and user\n // comes back to trigger a new session. The performance entries rely on\n // `performance.timeOrigin`, which is when the page first opened.\n if (timestampInMs + replay.timeouts.sessionIdlePause < Date.now()) {\n return false;\n }\n\n // Throw out events that are +60min from the initial timestamp\n if (timestampInMs > replay.getContext().initialTimestamp + replay.getOptions().maxReplayDuration) {\n logInfo(\n `[Replay] Skipping event with timestamp ${timestampInMs} because it is after maxReplayDuration`,\n replay.getOptions()._experiments.traceInternals,\n );\n return false;\n }\n\n return true;\n}\n\nfunction maybeApplyCallback(\n event: RecordingEvent,\n callback: ReplayPluginOptions['beforeAddRecordingEvent'],\n): RecordingEvent | null | undefined {\n try {\n if (typeof callback === 'function' && isCustomEvent(event)) {\n return callback(event);\n }\n } catch (error) {\n DEBUG_BUILD &&\n logger.error('[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...', error);\n return null;\n }\n\n return event;\n}\n", "import type { ErrorEvent, Event, FeedbackEvent, ReplayEvent, TransactionEvent } from '@sentry/types';\n\n/** If the event is an error event */\nexport function isErrorEvent(event: Event): event is ErrorEvent {\n return !event.type;\n}\n\n/** If the event is a transaction event */\nexport function isTransactionEvent(event: Event): event is TransactionEvent {\n return event.type === 'transaction';\n}\n\n/** If the event is an replay event */\nexport function isReplayEvent(event: Event): event is ReplayEvent {\n return event.type === 'replay_event';\n}\n\n/** If the event is a feedback event */\nexport function isFeedbackEvent(event: Event): event is FeedbackEvent {\n return event.type === 'feedback';\n}\n", "import { getClient } from '@sentry/core';\nimport type { ErrorEvent, Event, TransactionEvent, Transport, TransportMakeRequestResponse } from '@sentry/types';\n\nimport type { ReplayContainer } from '../types';\nimport { isErrorEvent, isTransactionEvent } from '../util/eventUtils';\n\ntype AfterSendEventCallback = (event: Event, sendResponse: TransportMakeRequestResponse | void) => void;\n\n/**\n * Returns a listener to be added to `client.on('afterSendErrorEvent, listener)`.\n */\nexport function handleAfterSendEvent(replay: ReplayContainer): AfterSendEventCallback {\n // Custom transports may still be returning `Promise`, which means we cannot expect the status code to be available there\n // TODO (v8): remove this check as it will no longer be necessary\n const enforceStatusCode = isBaseTransportSend();\n\n return (event: Event, sendResponse: TransportMakeRequestResponse | void) => {\n if (!replay.isEnabled() || (!isErrorEvent(event) && !isTransactionEvent(event))) {\n return;\n }\n\n const statusCode = sendResponse && sendResponse.statusCode;\n\n // We only want to do stuff on successful error sending, otherwise you get error replays without errors attached\n // If not using the base transport, we allow `undefined` response (as a custom transport may not implement this correctly yet)\n // If we do use the base transport, we skip if we encountered an non-OK status code\n if (enforceStatusCode && (!statusCode || statusCode < 200 || statusCode >= 300)) {\n return;\n }\n\n if (isTransactionEvent(event)) {\n handleTransactionEvent(replay, event);\n return;\n }\n\n handleErrorEvent(replay, event);\n };\n}\n\nfunction handleTransactionEvent(replay: ReplayContainer, event: TransactionEvent): void {\n const replayContext = replay.getContext();\n\n // Collect traceIds in _context regardless of `recordingMode`\n // In error mode, _context gets cleared on every checkout\n // We limit to max. 100 transactions linked\n if (event.contexts && event.contexts.trace && event.contexts.trace.trace_id && replayContext.traceIds.size < 100) {\n replayContext.traceIds.add(event.contexts.trace.trace_id as string);\n }\n}\n\nfunction handleErrorEvent(replay: ReplayContainer, event: ErrorEvent): void {\n const replayContext = replay.getContext();\n\n // Add error to list of errorIds of replay. This is ok to do even if not\n // sampled because context will get reset at next checkout.\n // XXX: There is also a race condition where it's possible to capture an\n // error to Sentry before Replay SDK has loaded, but response returns after\n // it was loaded, and this gets called.\n // We limit to max. 100 errors linked\n if (event.event_id && replayContext.errorIds.size < 100) {\n replayContext.errorIds.add(event.event_id);\n }\n\n // If error event is tagged with replay id it means it was sampled (when in buffer mode)\n // Need to be very careful that this does not cause an infinite loop\n if (replay.recordingMode !== 'buffer' || !event.tags || !event.tags.replayId) {\n return;\n }\n\n const { beforeErrorSampling } = replay.getOptions();\n if (typeof beforeErrorSampling === 'function' && !beforeErrorSampling(event)) {\n return;\n }\n\n setTimeout(() => {\n // Capture current event buffer as new replay\n // This should never reject\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n replay.sendBufferedReplayOrFlush();\n });\n}\n\nfunction isBaseTransportSend(): boolean {\n const client = getClient();\n if (!client) {\n return false;\n }\n\n const transport = client.getTransport();\n if (!transport) {\n return false;\n }\n\n return (\n (transport.send as Transport['send'] & { __sentry__baseTransport__?: true }).__sentry__baseTransport__ || false\n );\n}\n", "import type { ErrorEvent, Event } from '@sentry/types';\n\nimport type { ReplayContainer } from '../types';\nimport { createBreadcrumb } from '../util/createBreadcrumb';\nimport { isErrorEvent } from '../util/eventUtils';\nimport { addBreadcrumbEvent } from './util/addBreadcrumbEvent';\n\ntype BeforeSendEventCallback = (event: Event) => void;\n\n/**\n * Returns a listener to be added to `client.on('afterSendErrorEvent, listener)`.\n */\nexport function handleBeforeSendEvent(replay: ReplayContainer): BeforeSendEventCallback {\n return (event: Event) => {\n if (!replay.isEnabled() || !isErrorEvent(event)) {\n return;\n }\n\n handleHydrationError(replay, event);\n };\n}\n\nfunction handleHydrationError(replay: ReplayContainer, event: ErrorEvent): void {\n const exceptionValue = event.exception && event.exception.values && event.exception.values[0].value;\n if (typeof exceptionValue !== 'string') {\n return;\n }\n\n if (\n // Only matches errors in production builds of react-dom\n // Example https://reactjs.org/docs/error-decoder.html?invariant=423\n exceptionValue.match(/reactjs\\.org\\/docs\\/error-decoder\\.html\\?invariant=(418|419|422|423|425)/) ||\n // Development builds of react-dom\n // Error 1: Hydration failed because the initial UI does not match what was rendered on the server.\n // Error 2: Text content does not match server-rendered HTML. Warning: Text content did not match.\n exceptionValue.match(/(does not match server-rendered HTML|Hydration failed because)/i)\n ) {\n const breadcrumb = createBreadcrumb({\n category: 'replay.hydrate-error',\n });\n addBreadcrumbEvent(replay, breadcrumb);\n }\n}\n", "import type { Event, EventHint } from '@sentry/types';\n\n/**\n * Returns true if we think the given event is an error originating inside of rrweb.\n */\nexport function isRrwebError(event: Event, hint: EventHint): boolean {\n if (event.type || !event.exception || !event.exception.values || !event.exception.values.length) {\n return false;\n }\n\n // @ts-expect-error this may be set by rrweb when it finds errors\n if (hint.originalException && hint.originalException.__rrweb__) {\n return true;\n }\n\n return false;\n}\n", "import { EventType } from '@sentry-internal/rrweb';\nimport type { FeedbackEvent } from '@sentry/types';\n\nimport type { ReplayBreadcrumbFrameEvent, ReplayContainer } from '../../types';\n\n/**\n * Add a feedback breadcrumb event to replay.\n */\nexport function addFeedbackBreadcrumb(replay: ReplayContainer, event: FeedbackEvent): void {\n replay.triggerUserActivity();\n replay.addUpdate(() => {\n if (!event.timestamp) {\n // Ignore events that don't have timestamps (this shouldn't happen, more of a typing issue)\n // Return true here so that we don't flush\n return true;\n }\n\n // This should never reject\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n replay.throttledAddEvent({\n type: EventType.Custom,\n timestamp: event.timestamp * 1000,\n data: {\n tag: 'breadcrumb',\n payload: {\n timestamp: event.timestamp,\n type: 'default',\n category: 'sentry.feedback',\n data: {\n feedbackId: event.event_id,\n },\n },\n },\n } as ReplayBreadcrumbFrameEvent);\n\n return false;\n });\n}\n", "import type { Event } from '@sentry/types';\n\nimport { UNABLE_TO_SEND_REPLAY } from '../../constants';\nimport type { ReplayContainer } from '../../types';\nimport { isSampled } from '../../util/isSampled';\n\n/**\n * Determine if event should be sampled (only applies in buffer mode).\n * When an event is captured by `hanldleGlobalEvent`, when in buffer mode\n * we determine if we want to sample the error or not.\n */\nexport function shouldSampleForBufferEvent(replay: ReplayContainer, event: Event): boolean {\n if (replay.recordingMode !== 'buffer') {\n return false;\n }\n\n // ignore this error because otherwise we could loop indefinitely with\n // trying to capture replay and failing\n if (event.message === UNABLE_TO_SEND_REPLAY) {\n return false;\n }\n\n // Require the event to be an error event & to have an exception\n if (!event.exception || event.type) {\n return false;\n }\n\n return isSampled(replay.getOptions().errorSampleRate);\n}\n", "import type { Event, EventHint } from '@sentry/types';\nimport { logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { ReplayContainer } from '../types';\nimport { isErrorEvent, isFeedbackEvent, isReplayEvent, isTransactionEvent } from '../util/eventUtils';\nimport { isRrwebError } from '../util/isRrwebError';\nimport { handleAfterSendEvent } from './handleAfterSendEvent';\nimport { addFeedbackBreadcrumb } from './util/addFeedbackBreadcrumb';\nimport { shouldSampleForBufferEvent } from './util/shouldSampleForBufferEvent';\n\n/**\n * Returns a listener to be added to `addEventProcessor(listener)`.\n */\nexport function handleGlobalEventListener(\n replay: ReplayContainer,\n includeAfterSendEventHandling = false,\n): (event: Event, hint: EventHint) => Event | null {\n const afterSendHandler = includeAfterSendEventHandling ? handleAfterSendEvent(replay) : undefined;\n\n return Object.assign(\n (event: Event, hint: EventHint) => {\n // Do nothing if replay has been disabled\n if (!replay.isEnabled()) {\n return event;\n }\n\n if (isReplayEvent(event)) {\n // Replays have separate set of breadcrumbs, do not include breadcrumbs\n // from core SDK\n delete event.breadcrumbs;\n return event;\n }\n\n // We only want to handle errors, transactions, and feedbacks, nothing else\n if (!isErrorEvent(event) && !isTransactionEvent(event) && !isFeedbackEvent(event)) {\n return event;\n }\n\n // Ensure we do not add replay_id if the session is expired\n const isSessionActive = replay.checkAndHandleExpiredSession();\n if (!isSessionActive) {\n return event;\n }\n\n if (isFeedbackEvent(event)) {\n // This should never reject\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n replay.flush();\n event.contexts.feedback.replay_id = replay.getSessionId();\n // Add a replay breadcrumb for this piece of feedback\n addFeedbackBreadcrumb(replay, event);\n return event;\n }\n\n // Unless `captureExceptions` is enabled, we want to ignore errors coming from rrweb\n // As there can be a bunch of stuff going wrong in internals there, that we don't want to bubble up to users\n if (isRrwebError(event, hint) && !replay.getOptions()._experiments.captureExceptions) {\n DEBUG_BUILD && logger.log('[Replay] Ignoring error from rrweb internals', event);\n return null;\n }\n\n // When in buffer mode, we decide to sample here.\n // Later, in `handleAfterSendEvent`, if the replayId is set, we know that we sampled\n // And convert the buffer session to a full session\n const isErrorEventSampled = shouldSampleForBufferEvent(replay, event);\n\n // Tag errors if it has been sampled in buffer mode, or if it is session mode\n // Only tag transactions if in session mode\n const shouldTagReplayId = isErrorEventSampled || replay.recordingMode === 'session';\n\n if (shouldTagReplayId) {\n event.tags = { ...event.tags, replayId: replay.getSessionId() };\n }\n\n // In cases where a custom client is used that does not support the new hooks (yet),\n // we manually call this hook method here\n if (afterSendHandler) {\n // Pretend the error had a 200 response so we always capture it\n afterSendHandler(event, { statusCode: 200 });\n }\n\n return event;\n },\n { id: 'Replay' },\n );\n}\n", "import { EventType } from '@sentry-internal/rrweb';\n\nimport type { AddEventResult, AllEntryData, ReplayContainer, ReplayPerformanceEntry } from '../types';\n\n/**\n * Create a \"span\" for each performance entry.\n */\nexport function createPerformanceSpans(\n replay: ReplayContainer,\n entries: ReplayPerformanceEntry[],\n): Promise[] {\n return entries.map(({ type, start, end, name, data }) => {\n const response = replay.throttledAddEvent({\n type: EventType.Custom,\n timestamp: start,\n data: {\n tag: 'performanceSpan',\n payload: {\n op: type,\n description: name,\n startTimestamp: start,\n endTimestamp: end,\n data,\n },\n },\n });\n\n // If response is a string, it means its either THROTTLED or SKIPPED\n return typeof response === 'string' ? Promise.resolve(null) : response;\n });\n}\n", "import type { HandlerDataHistory } from '@sentry/types';\n\nimport type { HistoryData, ReplayContainer, ReplayPerformanceEntry } from '../types';\nimport { createPerformanceSpans } from '../util/createPerformanceSpans';\n\nfunction handleHistory(handlerData: HandlerDataHistory): ReplayPerformanceEntry {\n const { from, to } = handlerData;\n\n const now = Date.now() / 1000;\n\n return {\n type: 'navigation.push',\n start: now,\n end: now,\n name: to,\n data: {\n previous: from,\n },\n };\n}\n\n/**\n * Returns a listener to be added to `addHistoryInstrumentationHandler(listener)`.\n */\nexport function handleHistorySpanListener(replay: ReplayContainer): (handlerData: HandlerDataHistory) => void {\n return (handlerData: HandlerDataHistory) => {\n if (!replay.isEnabled()) {\n return;\n }\n\n const result = handleHistory(handlerData);\n\n if (result === null) {\n return;\n }\n\n // Need to collect visited URLs\n replay.getContext().urls.push(result.name);\n replay.triggerUserActivity();\n\n replay.addUpdate(() => {\n createPerformanceSpans(replay, [result]);\n // Returning false to flush\n return false;\n });\n };\n}\n", "import { getClient, isSentryRequestUrl } from '@sentry/core';\n\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { ReplayContainer } from '../types';\n\n/**\n * Check whether a given request URL should be filtered out. This is so we\n * don't log Sentry ingest requests.\n */\nexport function shouldFilterRequest(replay: ReplayContainer, url: string): boolean {\n // If we enabled the `traceInternals` experiment, we want to trace everything\n if (DEBUG_BUILD && replay.getOptions()._experiments.traceInternals) {\n return false;\n }\n\n return isSentryRequestUrl(url, getClient());\n}\n", "import type { NetworkRequestData, ReplayContainer, ReplayPerformanceEntry } from '../../types';\nimport { createPerformanceSpans } from '../../util/createPerformanceSpans';\nimport { shouldFilterRequest } from '../../util/shouldFilterRequest';\n\n/** Add a performance entry breadcrumb */\nexport function addNetworkBreadcrumb(\n replay: ReplayContainer,\n result: ReplayPerformanceEntry | null,\n): void {\n if (!replay.isEnabled()) {\n return;\n }\n\n if (result === null) {\n return;\n }\n\n if (shouldFilterRequest(replay, result.name)) {\n return;\n }\n\n replay.addUpdate(() => {\n createPerformanceSpans(replay, [result]);\n // Returning true will cause `addUpdate` to not flush\n // We do not want network requests to cause a flush. This will prevent\n // recurring/polling requests from keeping the replay session alive.\n return true;\n });\n}\n", "import type { HandlerDataFetch } from '@sentry/types';\n\nimport type { NetworkRequestData, ReplayContainer, ReplayPerformanceEntry } from '../types';\nimport { addNetworkBreadcrumb } from './util/addNetworkBreadcrumb';\n\n/** only exported for tests */\nexport function handleFetch(handlerData: HandlerDataFetch): null | ReplayPerformanceEntry {\n const { startTimestamp, endTimestamp, fetchData, response } = handlerData;\n\n if (!endTimestamp) {\n return null;\n }\n\n // This is only used as a fallback, so we know the body sizes are never set here\n const { method, url } = fetchData;\n\n return {\n type: 'resource.fetch',\n start: startTimestamp / 1000,\n end: endTimestamp / 1000,\n name: url,\n data: {\n method,\n statusCode: response ? (response as Response).status : undefined,\n },\n };\n}\n\n/**\n * Returns a listener to be added to `addFetchInstrumentationHandler(listener)`.\n */\nexport function handleFetchSpanListener(replay: ReplayContainer): (handlerData: HandlerDataFetch) => void {\n return (handlerData: HandlerDataFetch) => {\n if (!replay.isEnabled()) {\n return;\n }\n\n const result = handleFetch(handlerData);\n\n addNetworkBreadcrumb(replay, result);\n };\n}\n", "import type { HandlerDataXhr } from '@sentry/types';\nimport { SENTRY_XHR_DATA_KEY } from '@sentry/utils';\n\nimport type { NetworkRequestData, ReplayContainer, ReplayPerformanceEntry } from '../types';\nimport { addNetworkBreadcrumb } from './util/addNetworkBreadcrumb';\n\n/** only exported for tests */\nexport function handleXhr(handlerData: HandlerDataXhr): ReplayPerformanceEntry | null {\n const { startTimestamp, endTimestamp, xhr } = handlerData;\n\n const sentryXhrData = xhr[SENTRY_XHR_DATA_KEY];\n\n if (!startTimestamp || !endTimestamp || !sentryXhrData) {\n return null;\n }\n\n // This is only used as a fallback, so we know the body sizes are never set here\n const { method, url, status_code: statusCode } = sentryXhrData;\n\n if (url === undefined) {\n return null;\n }\n\n return {\n type: 'resource.xhr',\n name: url,\n start: startTimestamp / 1000,\n end: endTimestamp / 1000,\n data: {\n method,\n statusCode,\n },\n };\n}\n\n/**\n * Returns a listener to be added to `addXhrInstrumentationHandler(listener)`.\n */\nexport function handleXhrSpanListener(replay: ReplayContainer): (handlerData: HandlerDataXhr) => void {\n return (handlerData: HandlerDataXhr) => {\n if (!replay.isEnabled()) {\n return;\n }\n\n const result = handleXhr(handlerData);\n\n addNetworkBreadcrumb(replay, result);\n };\n}\n", "import type { TextEncoderInternal } from '@sentry/types';\nimport { dropUndefinedKeys, logger, stringMatchesSomePattern } from '@sentry/utils';\n\nimport { NETWORK_BODY_MAX_SIZE, WINDOW } from '../../constants';\nimport { DEBUG_BUILD } from '../../debug-build';\nimport type {\n NetworkBody,\n NetworkMetaWarning,\n NetworkRequestData,\n ReplayNetworkRequestData,\n ReplayNetworkRequestOrResponse,\n ReplayPerformanceEntry,\n} from '../../types';\n\n/** Get the size of a body. */\nexport function getBodySize(\n body: RequestInit['body'],\n textEncoder: TextEncoder | TextEncoderInternal,\n): number | undefined {\n if (!body) {\n return undefined;\n }\n\n try {\n if (typeof body === 'string') {\n return textEncoder.encode(body).length;\n }\n\n if (body instanceof URLSearchParams) {\n return textEncoder.encode(body.toString()).length;\n }\n\n if (body instanceof FormData) {\n const formDataStr = _serializeFormData(body);\n return textEncoder.encode(formDataStr).length;\n }\n\n if (body instanceof Blob) {\n return body.size;\n }\n\n if (body instanceof ArrayBuffer) {\n return body.byteLength;\n }\n\n // Currently unhandled types: ArrayBufferView, ReadableStream\n } catch {\n // just return undefined\n }\n\n return undefined;\n}\n\n/** Convert a Content-Length header to number/undefined. */\nexport function parseContentLengthHeader(header: string | null | undefined): number | undefined {\n if (!header) {\n return undefined;\n }\n\n const size = parseInt(header, 10);\n return isNaN(size) ? undefined : size;\n}\n\n/** Get the string representation of a body. */\nexport function getBodyString(body: unknown): [string | undefined, NetworkMetaWarning?] {\n try {\n if (typeof body === 'string') {\n return [body];\n }\n\n if (body instanceof URLSearchParams) {\n return [body.toString()];\n }\n\n if (body instanceof FormData) {\n return [_serializeFormData(body)];\n }\n\n if (!body) {\n return [undefined];\n }\n } catch {\n DEBUG_BUILD && logger.warn('[Replay] Failed to serialize body', body);\n return [undefined, 'BODY_PARSE_ERROR'];\n }\n\n DEBUG_BUILD && logger.info('[Replay] Skipping network body because of body type', body);\n\n return [undefined, 'UNPARSEABLE_BODY_TYPE'];\n}\n\n/** Merge a warning into an existing network request/response. */\nexport function mergeWarning(\n info: ReplayNetworkRequestOrResponse | undefined,\n warning: NetworkMetaWarning,\n): ReplayNetworkRequestOrResponse {\n if (!info) {\n return {\n headers: {},\n size: undefined,\n _meta: {\n warnings: [warning],\n },\n };\n }\n\n const newMeta = { ...info._meta };\n const existingWarnings = newMeta.warnings || [];\n newMeta.warnings = [...existingWarnings, warning];\n\n info._meta = newMeta;\n return info;\n}\n\n/** Convert ReplayNetworkRequestData to a PerformanceEntry. */\nexport function makeNetworkReplayBreadcrumb(\n type: string,\n data: ReplayNetworkRequestData | null,\n): ReplayPerformanceEntry | null {\n if (!data) {\n return null;\n }\n\n const { startTimestamp, endTimestamp, url, method, statusCode, request, response } = data;\n\n const result: ReplayPerformanceEntry = {\n type,\n start: startTimestamp / 1000,\n end: endTimestamp / 1000,\n name: url,\n data: dropUndefinedKeys({\n method,\n statusCode,\n request,\n response,\n }),\n };\n\n return result;\n}\n\n/** Build the request or response part of a replay network breadcrumb that was skipped. */\nexport function buildSkippedNetworkRequestOrResponse(bodySize: number | undefined): ReplayNetworkRequestOrResponse {\n return {\n headers: {},\n size: bodySize,\n _meta: {\n warnings: ['URL_SKIPPED'],\n },\n };\n}\n\n/** Build the request or response part of a replay network breadcrumb. */\nexport function buildNetworkRequestOrResponse(\n headers: Record,\n bodySize: number | undefined,\n body: string | undefined,\n): ReplayNetworkRequestOrResponse | undefined {\n if (!bodySize && Object.keys(headers).length === 0) {\n return undefined;\n }\n\n if (!bodySize) {\n return {\n headers,\n };\n }\n\n if (!body) {\n return {\n headers,\n size: bodySize,\n };\n }\n\n const info: ReplayNetworkRequestOrResponse = {\n headers,\n size: bodySize,\n };\n\n const { body: normalizedBody, warnings } = normalizeNetworkBody(body);\n info.body = normalizedBody;\n if (warnings && warnings.length > 0) {\n info._meta = {\n warnings,\n };\n }\n\n return info;\n}\n\n/** Filter a set of headers */\nexport function getAllowedHeaders(headers: Record, allowedHeaders: string[]): Record {\n return Object.keys(headers).reduce((filteredHeaders: Record, key: string) => {\n const normalizedKey = key.toLowerCase();\n // Avoid putting empty strings into the headers\n if (allowedHeaders.includes(normalizedKey) && headers[key]) {\n filteredHeaders[normalizedKey] = headers[key];\n }\n return filteredHeaders;\n }, {});\n}\n\nfunction _serializeFormData(formData: FormData): string {\n // This is a bit simplified, but gives us a decent estimate\n // This converts e.g. { name: 'Anne Smith', age: 13 } to 'name=Anne+Smith&age=13'\n // @ts-expect-error passing FormData to URLSearchParams actually works\n return new URLSearchParams(formData).toString();\n}\n\nfunction normalizeNetworkBody(body: string | undefined): {\n body: NetworkBody | undefined;\n warnings?: NetworkMetaWarning[];\n} {\n if (!body || typeof body !== 'string') {\n return {\n body,\n };\n }\n\n const exceedsSizeLimit = body.length > NETWORK_BODY_MAX_SIZE;\n const isProbablyJson = _strIsProbablyJson(body);\n\n if (exceedsSizeLimit) {\n const truncatedBody = body.slice(0, NETWORK_BODY_MAX_SIZE);\n\n if (isProbablyJson) {\n return {\n body: truncatedBody,\n warnings: ['MAYBE_JSON_TRUNCATED'],\n };\n }\n\n return {\n body: `${truncatedBody}…`,\n warnings: ['TEXT_TRUNCATED'],\n };\n }\n\n if (isProbablyJson) {\n try {\n const jsonBody = JSON.parse(body);\n return {\n body: jsonBody,\n };\n } catch {\n // fall back to just send the body as string\n }\n }\n\n return {\n body,\n };\n}\n\nfunction _strIsProbablyJson(str: string): boolean {\n const first = str[0];\n const last = str[str.length - 1];\n\n // Simple check: If this does not start & end with {} or [], it's not JSON\n return (first === '[' && last === ']') || (first === '{' && last === '}');\n}\n\n/** Match an URL against a list of strings/Regex. */\nexport function urlMatches(url: string, urls: (string | RegExp)[]): boolean {\n const fullUrl = getFullUrl(url);\n\n return stringMatchesSomePattern(fullUrl, urls);\n}\n\n/** exported for tests */\nexport function getFullUrl(url: string, baseURI = WINDOW.document.baseURI): string {\n // Short circuit for common cases:\n if (url.startsWith('http://') || url.startsWith('https://') || url.startsWith(WINDOW.location.origin)) {\n return url;\n }\n const fixedUrl = new URL(url, baseURI);\n\n // If these do not match, we are not dealing with a relative URL, so just return it\n if (fixedUrl.origin !== new URL(baseURI).origin) {\n return url;\n }\n\n const fullUrl = fixedUrl.href;\n\n // Remove trailing slashes, if they don't match the original URL\n if (!url.endsWith('/') && fullUrl.endsWith('/')) {\n return fullUrl.slice(0, -1);\n }\n\n return fullUrl;\n}\n", "import type { Breadcrumb, FetchBreadcrumbData, TextEncoderInternal } from '@sentry/types';\nimport { logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../../debug-build';\nimport type {\n FetchHint,\n NetworkMetaWarning,\n ReplayContainer,\n ReplayNetworkOptions,\n ReplayNetworkRequestData,\n ReplayNetworkRequestOrResponse,\n} from '../../types';\nimport { addNetworkBreadcrumb } from './addNetworkBreadcrumb';\nimport {\n buildNetworkRequestOrResponse,\n buildSkippedNetworkRequestOrResponse,\n getAllowedHeaders,\n getBodySize,\n getBodyString,\n makeNetworkReplayBreadcrumb,\n mergeWarning,\n parseContentLengthHeader,\n urlMatches,\n} from './networkUtils';\n\n/**\n * Capture a fetch breadcrumb to a replay.\n * This adds additional data (where approriate).\n */\nexport async function captureFetchBreadcrumbToReplay(\n breadcrumb: Breadcrumb & { data: FetchBreadcrumbData },\n hint: Partial,\n options: ReplayNetworkOptions & {\n textEncoder: TextEncoderInternal;\n replay: ReplayContainer;\n },\n): Promise {\n try {\n const data = await _prepareFetchData(breadcrumb, hint, options);\n\n // Create a replay performance entry from this breadcrumb\n const result = makeNetworkReplayBreadcrumb('resource.fetch', data);\n addNetworkBreadcrumb(options.replay, result);\n } catch (error) {\n DEBUG_BUILD && logger.error('[Replay] Failed to capture fetch breadcrumb', error);\n }\n}\n\n/**\n * Enrich a breadcrumb with additional data.\n * This has to be sync & mutate the given breadcrumb,\n * as the breadcrumb is afterwards consumed by other handlers.\n */\nexport function enrichFetchBreadcrumb(\n breadcrumb: Breadcrumb & { data: FetchBreadcrumbData },\n hint: Partial,\n options: { textEncoder: TextEncoderInternal },\n): void {\n const { input, response } = hint;\n\n const body = input ? _getFetchRequestArgBody(input) : undefined;\n const reqSize = getBodySize(body, options.textEncoder);\n\n const resSize = response ? parseContentLengthHeader(response.headers.get('content-length')) : undefined;\n\n if (reqSize !== undefined) {\n breadcrumb.data.request_body_size = reqSize;\n }\n if (resSize !== undefined) {\n breadcrumb.data.response_body_size = resSize;\n }\n}\n\nasync function _prepareFetchData(\n breadcrumb: Breadcrumb & { data: FetchBreadcrumbData },\n hint: Partial,\n options: ReplayNetworkOptions & {\n textEncoder: TextEncoderInternal;\n },\n): Promise {\n const now = Date.now();\n const { startTimestamp = now, endTimestamp = now } = hint;\n\n const {\n url,\n method,\n status_code: statusCode = 0,\n request_body_size: requestBodySize,\n response_body_size: responseBodySize,\n } = breadcrumb.data;\n\n const captureDetails =\n urlMatches(url, options.networkDetailAllowUrls) && !urlMatches(url, options.networkDetailDenyUrls);\n\n const request = captureDetails\n ? _getRequestInfo(options, hint.input, requestBodySize)\n : buildSkippedNetworkRequestOrResponse(requestBodySize);\n const response = await _getResponseInfo(captureDetails, options, hint.response, responseBodySize);\n\n return {\n startTimestamp,\n endTimestamp,\n url,\n method,\n statusCode,\n request,\n response,\n };\n}\n\nfunction _getRequestInfo(\n { networkCaptureBodies, networkRequestHeaders }: ReplayNetworkOptions,\n input: FetchHint['input'] | undefined,\n requestBodySize?: number,\n): ReplayNetworkRequestOrResponse | undefined {\n const headers = input ? getRequestHeaders(input, networkRequestHeaders) : {};\n\n if (!networkCaptureBodies) {\n return buildNetworkRequestOrResponse(headers, requestBodySize, undefined);\n }\n\n // We only want to transmit string or string-like bodies\n const requestBody = _getFetchRequestArgBody(input);\n const [bodyStr, warning] = getBodyString(requestBody);\n const data = buildNetworkRequestOrResponse(headers, requestBodySize, bodyStr);\n\n if (warning) {\n return mergeWarning(data, warning);\n }\n\n return data;\n}\n\n/** Exported only for tests. */\nexport async function _getResponseInfo(\n captureDetails: boolean,\n {\n networkCaptureBodies,\n textEncoder,\n networkResponseHeaders,\n }: Pick & {\n textEncoder: TextEncoderInternal;\n },\n response: Response | undefined,\n responseBodySize?: number,\n): Promise {\n if (!captureDetails && responseBodySize !== undefined) {\n return buildSkippedNetworkRequestOrResponse(responseBodySize);\n }\n\n const headers = response ? getAllHeaders(response.headers, networkResponseHeaders) : {};\n\n if (!response || (!networkCaptureBodies && responseBodySize !== undefined)) {\n return buildNetworkRequestOrResponse(headers, responseBodySize, undefined);\n }\n\n const [bodyText, warning] = await _parseFetchResponseBody(response);\n const result = getResponseData(bodyText, {\n networkCaptureBodies,\n textEncoder,\n responseBodySize,\n captureDetails,\n headers,\n });\n\n if (warning) {\n return mergeWarning(result, warning);\n }\n\n return result;\n}\n\nfunction getResponseData(\n bodyText: string | undefined,\n {\n networkCaptureBodies,\n textEncoder,\n responseBodySize,\n captureDetails,\n headers,\n }: {\n captureDetails: boolean;\n networkCaptureBodies: boolean;\n responseBodySize: number | undefined;\n headers: Record;\n textEncoder: TextEncoderInternal;\n },\n): ReplayNetworkRequestOrResponse | undefined {\n try {\n const size =\n bodyText && bodyText.length && responseBodySize === undefined\n ? getBodySize(bodyText, textEncoder)\n : responseBodySize;\n\n if (!captureDetails) {\n return buildSkippedNetworkRequestOrResponse(size);\n }\n\n if (networkCaptureBodies) {\n return buildNetworkRequestOrResponse(headers, size, bodyText);\n }\n\n return buildNetworkRequestOrResponse(headers, size, undefined);\n } catch (error) {\n DEBUG_BUILD && logger.warn('[Replay] Failed to serialize response body', error);\n // fallback\n return buildNetworkRequestOrResponse(headers, responseBodySize, undefined);\n }\n}\n\nasync function _parseFetchResponseBody(response: Response): Promise<[string | undefined, NetworkMetaWarning?]> {\n const res = _tryCloneResponse(response);\n\n if (!res) {\n return [undefined, 'BODY_PARSE_ERROR'];\n }\n\n try {\n const text = await _tryGetResponseText(res);\n return [text];\n } catch (error) {\n DEBUG_BUILD && logger.warn('[Replay] Failed to get text body from response', error);\n return [undefined, 'BODY_PARSE_ERROR'];\n }\n}\n\nfunction _getFetchRequestArgBody(fetchArgs: unknown[] = []): RequestInit['body'] | undefined {\n // We only support getting the body from the fetch options\n if (fetchArgs.length !== 2 || typeof fetchArgs[1] !== 'object') {\n return undefined;\n }\n\n return (fetchArgs[1] as RequestInit).body;\n}\n\nfunction getAllHeaders(headers: Headers, allowedHeaders: string[]): Record {\n const allHeaders: Record = {};\n\n allowedHeaders.forEach(header => {\n if (headers.get(header)) {\n allHeaders[header] = headers.get(header) as string;\n }\n });\n\n return allHeaders;\n}\n\nfunction getRequestHeaders(fetchArgs: unknown[], allowedHeaders: string[]): Record {\n if (fetchArgs.length === 1 && typeof fetchArgs[0] !== 'string') {\n return getHeadersFromOptions(fetchArgs[0] as Request | RequestInit, allowedHeaders);\n }\n\n if (fetchArgs.length === 2) {\n return getHeadersFromOptions(fetchArgs[1] as Request | RequestInit, allowedHeaders);\n }\n\n return {};\n}\n\nfunction getHeadersFromOptions(\n input: Request | RequestInit | undefined,\n allowedHeaders: string[],\n): Record {\n if (!input) {\n return {};\n }\n\n const headers = input.headers;\n\n if (!headers) {\n return {};\n }\n\n if (headers instanceof Headers) {\n return getAllHeaders(headers, allowedHeaders);\n }\n\n // We do not support this, as it is not really documented (anymore?)\n if (Array.isArray(headers)) {\n return {};\n }\n\n return getAllowedHeaders(headers, allowedHeaders);\n}\n\nfunction _tryCloneResponse(response: Response): Response | void {\n try {\n // We have to clone this, as the body can only be read once\n return response.clone();\n } catch (error) {\n // this can throw if the response was already consumed before\n DEBUG_BUILD && logger.warn('[Replay] Failed to clone response body', error);\n }\n}\n\n/**\n * Get the response body of a fetch request, or timeout after 500ms.\n * Fetch can return a streaming body, that may not resolve (or not for a long time).\n * If that happens, we rather abort after a short time than keep waiting for this.\n */\nfunction _tryGetResponseText(response: Response): Promise {\n return new Promise((resolve, reject) => {\n const timeout = setTimeout(() => reject(new Error('Timeout while trying to read response body')), 500);\n\n _getResponseText(response)\n .then(\n txt => resolve(txt),\n reason => reject(reason),\n )\n .finally(() => clearTimeout(timeout));\n });\n\n return _getResponseText(response);\n}\n\nasync function _getResponseText(response: Response): Promise {\n // Force this to be a promise, just to be safe\n // eslint-disable-next-line no-return-await\n return await response.text();\n}\n", "import type { Breadcrumb, TextEncoderInternal, XhrBreadcrumbData } from '@sentry/types';\nimport { SENTRY_XHR_DATA_KEY, logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../../debug-build';\nimport type {\n NetworkMetaWarning,\n ReplayContainer,\n ReplayNetworkOptions,\n ReplayNetworkRequestData,\n XhrHint,\n} from '../../types';\nimport { addNetworkBreadcrumb } from './addNetworkBreadcrumb';\nimport {\n buildNetworkRequestOrResponse,\n buildSkippedNetworkRequestOrResponse,\n getAllowedHeaders,\n getBodySize,\n getBodyString,\n makeNetworkReplayBreadcrumb,\n mergeWarning,\n parseContentLengthHeader,\n urlMatches,\n} from './networkUtils';\n\n/**\n * Capture an XHR breadcrumb to a replay.\n * This adds additional data (where approriate).\n */\nexport async function captureXhrBreadcrumbToReplay(\n breadcrumb: Breadcrumb & { data: XhrBreadcrumbData },\n hint: Partial,\n options: ReplayNetworkOptions & { replay: ReplayContainer },\n): Promise {\n try {\n const data = _prepareXhrData(breadcrumb, hint, options);\n\n // Create a replay performance entry from this breadcrumb\n const result = makeNetworkReplayBreadcrumb('resource.xhr', data);\n addNetworkBreadcrumb(options.replay, result);\n } catch (error) {\n DEBUG_BUILD && logger.error('[Replay] Failed to capture xhr breadcrumb', error);\n }\n}\n\n/**\n * Enrich a breadcrumb with additional data.\n * This has to be sync & mutate the given breadcrumb,\n * as the breadcrumb is afterwards consumed by other handlers.\n */\nexport function enrichXhrBreadcrumb(\n breadcrumb: Breadcrumb & { data: XhrBreadcrumbData },\n hint: Partial,\n options: { textEncoder: TextEncoderInternal },\n): void {\n const { xhr, input } = hint;\n\n if (!xhr) {\n return;\n }\n\n const reqSize = getBodySize(input, options.textEncoder);\n const resSize = xhr.getResponseHeader('content-length')\n ? parseContentLengthHeader(xhr.getResponseHeader('content-length'))\n : _getBodySize(xhr.response, xhr.responseType, options.textEncoder);\n\n if (reqSize !== undefined) {\n breadcrumb.data.request_body_size = reqSize;\n }\n if (resSize !== undefined) {\n breadcrumb.data.response_body_size = resSize;\n }\n}\n\nfunction _prepareXhrData(\n breadcrumb: Breadcrumb & { data: XhrBreadcrumbData },\n hint: Partial,\n options: ReplayNetworkOptions,\n): ReplayNetworkRequestData | null {\n const now = Date.now();\n const { startTimestamp = now, endTimestamp = now, input, xhr } = hint;\n\n const {\n url,\n method,\n status_code: statusCode = 0,\n request_body_size: requestBodySize,\n response_body_size: responseBodySize,\n } = breadcrumb.data;\n\n if (!url) {\n return null;\n }\n\n if (!xhr || !urlMatches(url, options.networkDetailAllowUrls) || urlMatches(url, options.networkDetailDenyUrls)) {\n const request = buildSkippedNetworkRequestOrResponse(requestBodySize);\n const response = buildSkippedNetworkRequestOrResponse(responseBodySize);\n return {\n startTimestamp,\n endTimestamp,\n url,\n method,\n statusCode,\n request,\n response,\n };\n }\n\n const xhrInfo = xhr[SENTRY_XHR_DATA_KEY];\n const networkRequestHeaders = xhrInfo\n ? getAllowedHeaders(xhrInfo.request_headers, options.networkRequestHeaders)\n : {};\n const networkResponseHeaders = getAllowedHeaders(getResponseHeaders(xhr), options.networkResponseHeaders);\n\n const [requestBody, requestWarning] = options.networkCaptureBodies ? getBodyString(input) : [undefined];\n const [responseBody, responseWarning] = options.networkCaptureBodies ? _getXhrResponseBody(xhr) : [undefined];\n\n const request = buildNetworkRequestOrResponse(networkRequestHeaders, requestBodySize, requestBody);\n const response = buildNetworkRequestOrResponse(networkResponseHeaders, responseBodySize, responseBody);\n\n return {\n startTimestamp,\n endTimestamp,\n url,\n method,\n statusCode,\n request: requestWarning ? mergeWarning(request, requestWarning) : request,\n response: responseWarning ? mergeWarning(response, responseWarning) : response,\n };\n}\n\nfunction getResponseHeaders(xhr: XMLHttpRequest): Record {\n const headers = xhr.getAllResponseHeaders();\n\n if (!headers) {\n return {};\n }\n\n return headers.split('\\r\\n').reduce((acc: Record, line: string) => {\n const [key, value] = line.split(': ');\n acc[key.toLowerCase()] = value;\n return acc;\n }, {});\n}\n\nfunction _getXhrResponseBody(xhr: XMLHttpRequest): [string | undefined, NetworkMetaWarning?] {\n // We collect errors that happen, but only log them if we can't get any response body\n const errors: unknown[] = [];\n\n try {\n return [xhr.responseText];\n } catch (e) {\n errors.push(e);\n }\n\n // Try to manually parse the response body, if responseText fails\n try {\n return _parseXhrResponse(xhr.response, xhr.responseType);\n } catch (e) {\n errors.push(e);\n }\n\n DEBUG_BUILD && logger.warn('[Replay] Failed to get xhr response body', ...errors);\n\n return [undefined];\n}\n\n/**\n * Get the string representation of the XHR response.\n * Based on MDN, these are the possible types of the response:\n * string\n * ArrayBuffer\n * Blob\n * Document\n * POJO\n *\n * Exported only for tests.\n */\nexport function _parseXhrResponse(\n body: XMLHttpRequest['response'],\n responseType: XMLHttpRequest['responseType'],\n): [string | undefined, NetworkMetaWarning?] {\n try {\n if (typeof body === 'string') {\n return [body];\n }\n\n if (body instanceof Document) {\n return [body.body.outerHTML];\n }\n\n if (responseType === 'json' && body && typeof body === 'object') {\n return [JSON.stringify(body)];\n }\n\n if (!body) {\n return [undefined];\n }\n } catch {\n DEBUG_BUILD && logger.warn('[Replay] Failed to serialize body', body);\n return [undefined, 'BODY_PARSE_ERROR'];\n }\n\n DEBUG_BUILD && logger.info('[Replay] Skipping network body because of body type', body);\n\n return [undefined, 'UNPARSEABLE_BODY_TYPE'];\n}\n\nfunction _getBodySize(\n body: XMLHttpRequest['response'],\n responseType: XMLHttpRequest['responseType'],\n textEncoder: TextEncoder | TextEncoderInternal,\n): number | undefined {\n try {\n const bodyStr = responseType === 'json' && body && typeof body === 'object' ? JSON.stringify(body) : body;\n return getBodySize(bodyStr, textEncoder);\n } catch {\n return undefined;\n }\n}\n", "import { getClient } from '@sentry/core';\nimport type {\n Breadcrumb,\n BreadcrumbHint,\n FetchBreadcrumbData,\n TextEncoderInternal,\n XhrBreadcrumbData,\n} from '@sentry/types';\nimport { addFetchInstrumentationHandler, addXhrInstrumentationHandler, logger } from '@sentry/utils';\n\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { FetchHint, ReplayContainer, ReplayNetworkOptions, XhrHint } from '../types';\nimport { handleFetchSpanListener } from './handleFetch';\nimport { handleXhrSpanListener } from './handleXhr';\nimport { captureFetchBreadcrumbToReplay, enrichFetchBreadcrumb } from './util/fetchUtils';\nimport { captureXhrBreadcrumbToReplay, enrichXhrBreadcrumb } from './util/xhrUtils';\n\ninterface ExtendedNetworkBreadcrumbsOptions extends ReplayNetworkOptions {\n replay: ReplayContainer;\n textEncoder: TextEncoderInternal;\n}\n\n/**\n * This method does two things:\n * - It enriches the regular XHR/fetch breadcrumbs with request/response size data\n * - It captures the XHR/fetch breadcrumbs to the replay\n * (enriching it with further data that is _not_ added to the regular breadcrumbs)\n */\nexport function handleNetworkBreadcrumbs(replay: ReplayContainer): void {\n const client = getClient();\n\n try {\n const textEncoder = new TextEncoder();\n\n const {\n networkDetailAllowUrls,\n networkDetailDenyUrls,\n networkCaptureBodies,\n networkRequestHeaders,\n networkResponseHeaders,\n } = replay.getOptions();\n\n const options: ExtendedNetworkBreadcrumbsOptions = {\n replay,\n textEncoder,\n networkDetailAllowUrls,\n networkDetailDenyUrls,\n networkCaptureBodies,\n networkRequestHeaders,\n networkResponseHeaders,\n };\n\n if (client && client.on) {\n client.on('beforeAddBreadcrumb', (breadcrumb, hint) => beforeAddNetworkBreadcrumb(options, breadcrumb, hint));\n } else {\n // Fallback behavior\n addFetchInstrumentationHandler(handleFetchSpanListener(replay));\n addXhrInstrumentationHandler(handleXhrSpanListener(replay));\n }\n } catch {\n // Do nothing\n }\n}\n\n/** just exported for tests */\nexport function beforeAddNetworkBreadcrumb(\n options: ExtendedNetworkBreadcrumbsOptions,\n breadcrumb: Breadcrumb,\n hint?: BreadcrumbHint,\n): void {\n if (!breadcrumb.data) {\n return;\n }\n\n try {\n if (_isXhrBreadcrumb(breadcrumb) && _isXhrHint(hint)) {\n // This has to be sync, as we need to ensure the breadcrumb is enriched in the same tick\n // Because the hook runs synchronously, and the breadcrumb is afterwards passed on\n // So any async mutations to it will not be reflected in the final breadcrumb\n enrichXhrBreadcrumb(breadcrumb, hint, options);\n\n // This call should not reject\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n captureXhrBreadcrumbToReplay(breadcrumb, hint, options);\n }\n\n if (_isFetchBreadcrumb(breadcrumb) && _isFetchHint(hint)) {\n // This has to be sync, as we need to ensure the breadcrumb is enriched in the same tick\n // Because the hook runs synchronously, and the breadcrumb is afterwards passed on\n // So any async mutations to it will not be reflected in the final breadcrumb\n enrichFetchBreadcrumb(breadcrumb, hint, options);\n\n // This call should not reject\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n captureFetchBreadcrumbToReplay(breadcrumb, hint, options);\n }\n } catch (e) {\n DEBUG_BUILD && logger.warn('Error when enriching network breadcrumb');\n }\n}\n\nfunction _isXhrBreadcrumb(breadcrumb: Breadcrumb): breadcrumb is Breadcrumb & { data: XhrBreadcrumbData } {\n return breadcrumb.category === 'xhr';\n}\n\nfunction _isFetchBreadcrumb(breadcrumb: Breadcrumb): breadcrumb is Breadcrumb & { data: FetchBreadcrumbData } {\n return breadcrumb.category === 'fetch';\n}\n\nfunction _isXhrHint(hint?: BreadcrumbHint): hint is XhrHint {\n return hint && hint.xhr;\n}\n\nfunction _isFetchHint(hint?: BreadcrumbHint): hint is FetchHint {\n return hint && hint.response;\n}\n", "import type { Breadcrumb, Scope } from '@sentry/types';\nimport { normalize } from '@sentry/utils';\n\nimport { CONSOLE_ARG_MAX_SIZE } from '../constants';\nimport type { ReplayContainer } from '../types';\nimport type { ReplayFrame } from '../types/replayFrame';\nimport { createBreadcrumb } from '../util/createBreadcrumb';\nimport { addBreadcrumbEvent } from './util/addBreadcrumbEvent';\n\nlet _LAST_BREADCRUMB: null | Breadcrumb = null;\n\ntype BreadcrumbWithCategory = Required>;\n\nfunction isBreadcrumbWithCategory(breadcrumb: Breadcrumb): breadcrumb is BreadcrumbWithCategory {\n return !!breadcrumb.category;\n}\n\nexport const handleScopeListener: (replay: ReplayContainer) => (scope: Scope) => void =\n (replay: ReplayContainer) =>\n (scope: Scope): void => {\n if (!replay.isEnabled()) {\n return;\n }\n\n const result = handleScope(scope);\n\n if (!result) {\n return;\n }\n\n addBreadcrumbEvent(replay, result);\n };\n\n/**\n * An event handler to handle scope changes.\n */\nexport function handleScope(scope: Scope): Breadcrumb | null {\n // TODO (v8): Remove this guard. This was put in place because we introduced\n // Scope.getLastBreadcrumb mid-v7 which caused incompatibilities with older SDKs.\n // For now, we'll just return null if the method doesn't exist but we should eventually\n // get rid of this guard.\n const newBreadcrumb = scope.getLastBreadcrumb && scope.getLastBreadcrumb();\n\n // Listener can be called when breadcrumbs have not changed, so we store the\n // reference to the last crumb and only return a crumb if it has changed\n if (_LAST_BREADCRUMB === newBreadcrumb || !newBreadcrumb) {\n return null;\n }\n\n _LAST_BREADCRUMB = newBreadcrumb;\n\n if (\n !isBreadcrumbWithCategory(newBreadcrumb) ||\n ['fetch', 'xhr', 'sentry.event', 'sentry.transaction'].includes(newBreadcrumb.category) ||\n newBreadcrumb.category.startsWith('ui.')\n ) {\n return null;\n }\n\n if (newBreadcrumb.category === 'console') {\n return normalizeConsoleBreadcrumb(newBreadcrumb);\n }\n\n return createBreadcrumb(newBreadcrumb);\n}\n\n/** exported for tests only */\nexport function normalizeConsoleBreadcrumb(\n breadcrumb: Omit & BreadcrumbWithCategory,\n): ReplayFrame {\n const args = breadcrumb.data && breadcrumb.data.arguments;\n\n if (!Array.isArray(args) || args.length === 0) {\n return createBreadcrumb(breadcrumb);\n }\n\n let isTruncated = false;\n\n // Avoid giant args captures\n const normalizedArgs = args.map(arg => {\n if (!arg) {\n return arg;\n }\n if (typeof arg === 'string') {\n if (arg.length > CONSOLE_ARG_MAX_SIZE) {\n isTruncated = true;\n return `${arg.slice(0, CONSOLE_ARG_MAX_SIZE)}…`;\n }\n\n return arg;\n }\n if (typeof arg === 'object') {\n try {\n const normalizedArg = normalize(arg, 7);\n const stringified = JSON.stringify(normalizedArg);\n if (stringified.length > CONSOLE_ARG_MAX_SIZE) {\n isTruncated = true;\n // We use the pretty printed JSON string here as a base\n return `${JSON.stringify(normalizedArg, null, 2).slice(0, CONSOLE_ARG_MAX_SIZE)}…`;\n }\n return normalizedArg;\n } catch {\n // fall back to default\n }\n }\n\n return arg;\n });\n\n return createBreadcrumb({\n ...breadcrumb,\n data: {\n ...breadcrumb.data,\n arguments: normalizedArgs,\n ...(isTruncated ? { _meta: { warnings: ['CONSOLE_ARG_TRUNCATED'] } } : {}),\n },\n });\n}\n", "import type { BaseClient } from '@sentry/core';\nimport { getCurrentScope } from '@sentry/core';\nimport { addEventProcessor, getClient } from '@sentry/core';\nimport type { Client, DynamicSamplingContext } from '@sentry/types';\nimport { addClickKeypressInstrumentationHandler, addHistoryInstrumentationHandler } from '@sentry/utils';\n\nimport { handleAfterSendEvent } from '../coreHandlers/handleAfterSendEvent';\nimport { handleBeforeSendEvent } from '../coreHandlers/handleBeforeSendEvent';\nimport { handleDomListener } from '../coreHandlers/handleDom';\nimport { handleGlobalEventListener } from '../coreHandlers/handleGlobalEvent';\nimport { handleHistorySpanListener } from '../coreHandlers/handleHistory';\nimport { handleNetworkBreadcrumbs } from '../coreHandlers/handleNetworkBreadcrumbs';\nimport { handleScopeListener } from '../coreHandlers/handleScope';\nimport type { ReplayContainer } from '../types';\n\n/**\n * Add global listeners that cannot be removed.\n */\nexport function addGlobalListeners(replay: ReplayContainer): void {\n // Listeners from core SDK //\n const scope = getCurrentScope();\n const client = getClient();\n\n scope.addScopeListener(handleScopeListener(replay));\n addClickKeypressInstrumentationHandler(handleDomListener(replay));\n addHistoryInstrumentationHandler(handleHistorySpanListener(replay));\n handleNetworkBreadcrumbs(replay);\n\n // Tag all (non replay) events that get sent to Sentry with the current\n // replay ID so that we can reference them later in the UI\n const eventProcessor = handleGlobalEventListener(replay, !hasHooks(client));\n if (client && client.addEventProcessor) {\n client.addEventProcessor(eventProcessor);\n } else {\n addEventProcessor(eventProcessor);\n }\n\n // If a custom client has no hooks yet, we continue to use the \"old\" implementation\n if (hasHooks(client)) {\n client.on('beforeSendEvent', handleBeforeSendEvent(replay));\n client.on('afterSendEvent', handleAfterSendEvent(replay));\n client.on('createDsc', (dsc: DynamicSamplingContext) => {\n const replayId = replay.getSessionId();\n // We do not want to set the DSC when in buffer mode, as that means the replay has not been sent (yet)\n if (replayId && replay.isEnabled() && replay.recordingMode === 'session') {\n // Ensure to check that the session is still active - it could have expired in the meanwhile\n const isSessionActive = replay.checkAndHandleExpiredSession();\n if (isSessionActive) {\n dsc.replay_id = replayId;\n }\n }\n });\n\n client.on('startTransaction', transaction => {\n replay.lastTransaction = transaction;\n });\n\n // We may be missing the initial startTransaction due to timing issues,\n // so we capture it on finish again.\n client.on('finishTransaction', transaction => {\n replay.lastTransaction = transaction;\n });\n\n // We want to flush replay\n client.on('beforeSendFeedback', (feedbackEvent, options) => {\n const replayId = replay.getSessionId();\n if (options && options.includeReplay && replay.isEnabled() && replayId) {\n // This should never reject\n if (feedbackEvent.contexts && feedbackEvent.contexts.feedback) {\n feedbackEvent.contexts.feedback.replay_id = replayId;\n }\n }\n });\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction hasHooks(client: Client | undefined): client is BaseClient {\n return !!(client && client.on);\n}\n", "import { WINDOW } from '../constants';\nimport type { AddEventResult, MemoryData, ReplayContainer, ReplayPerformanceEntry } from '../types';\nimport { createPerformanceSpans } from './createPerformanceSpans';\n\ntype ReplayMemoryEntry = ReplayPerformanceEntry & { data: { memory: MemoryInfo } };\n\ninterface MemoryInfo {\n jsHeapSizeLimit: number;\n totalJSHeapSize: number;\n usedJSHeapSize: number;\n}\n\n/**\n * Create a \"span\" for the total amount of memory being used by JS objects\n * (including v8 internal objects).\n */\nexport async function addMemoryEntry(replay: ReplayContainer): Promise> {\n // window.performance.memory is a non-standard API and doesn't work on all browsers, so we try-catch this\n try {\n return Promise.all(\n createPerformanceSpans(replay, [\n // @ts-expect-error memory doesn't exist on type Performance as the API is non-standard (we check that it exists above)\n createMemoryEntry(WINDOW.performance.memory),\n ]),\n );\n } catch (error) {\n // Do nothing\n return [];\n }\n}\n\nfunction createMemoryEntry(memoryEntry: MemoryInfo): ReplayMemoryEntry {\n const { jsHeapSizeLimit, totalJSHeapSize, usedJSHeapSize } = memoryEntry;\n // we don't want to use `getAbsoluteTime` because it adds the event time to the\n // time origin, so we get the current timestamp instead\n const time = Date.now() / 1000;\n return {\n type: 'memory',\n name: 'memory',\n start: time,\n end: time,\n data: {\n memory: {\n jsHeapSizeLimit,\n totalJSHeapSize,\n usedJSHeapSize,\n },\n },\n };\n}\n", "type DebouncedCallback = {\n (): void | unknown;\n flush: () => void | unknown;\n cancel: () => void;\n};\ntype CallbackFunction = () => unknown;\ntype DebounceOptions = { maxWait?: number };\n\n/**\n * Heavily simplified debounce function based on lodash.debounce.\n *\n * This function takes a callback function (@param fun) and delays its invocation\n * by @param wait milliseconds. Optionally, a maxWait can be specified in @param options,\n * which ensures that the callback is invoked at least once after the specified max. wait time.\n *\n * @param func the function whose invocation is to be debounced\n * @param wait the minimum time until the function is invoked after it was called once\n * @param options the options object, which can contain the `maxWait` property\n *\n * @returns the debounced version of the function, which needs to be called at least once to start the\n * debouncing process. Subsequent calls will reset the debouncing timer and, in case @paramfunc\n * was already invoked in the meantime, return @param func's return value.\n * The debounced function has two additional properties:\n * - `flush`: Invokes the debounced function immediately and returns its return value\n * - `cancel`: Cancels the debouncing process and resets the debouncing timer\n */\nexport function debounce(func: CallbackFunction, wait: number, options?: DebounceOptions): DebouncedCallback {\n let callbackReturnValue: unknown;\n\n let timerId: ReturnType | undefined;\n let maxTimerId: ReturnType | undefined;\n\n const maxWait = options && options.maxWait ? Math.max(options.maxWait, wait) : 0;\n\n function invokeFunc(): unknown {\n cancelTimers();\n callbackReturnValue = func();\n return callbackReturnValue;\n }\n\n function cancelTimers(): void {\n timerId !== undefined && clearTimeout(timerId);\n maxTimerId !== undefined && clearTimeout(maxTimerId);\n timerId = maxTimerId = undefined;\n }\n\n function flush(): unknown {\n if (timerId !== undefined || maxTimerId !== undefined) {\n return invokeFunc();\n }\n return callbackReturnValue;\n }\n\n function debounced(): unknown {\n if (timerId) {\n clearTimeout(timerId);\n }\n timerId = setTimeout(invokeFunc, wait);\n\n if (maxWait && maxTimerId === undefined) {\n maxTimerId = setTimeout(invokeFunc, maxWait);\n }\n\n return callbackReturnValue;\n }\n\n debounced.cancel = cancelTimers;\n debounced.flush = flush;\n return debounced;\n}\n", "import { EventType } from '@sentry-internal/rrweb';\nimport { logger } from '@sentry/utils';\n\nimport { updateClickDetectorForRecordingEvent } from '../coreHandlers/handleClick';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { saveSession } from '../session/saveSession';\nimport type { RecordingEvent, ReplayContainer, ReplayOptionFrameEvent } from '../types';\nimport { addEventSync } from './addEvent';\nimport { logInfo } from './log';\n\ntype RecordingEmitCallback = (event: RecordingEvent, isCheckout?: boolean) => void;\n\n/**\n * Handler for recording events.\n *\n * Adds to event buffer, and has varying flushing behaviors if the event was a checkout.\n */\nexport function getHandleRecordingEmit(replay: ReplayContainer): RecordingEmitCallback {\n let hadFirstEvent = false;\n\n return (event: RecordingEvent, _isCheckout?: boolean) => {\n // If this is false, it means session is expired, create and a new session and wait for checkout\n if (!replay.checkAndHandleExpiredSession()) {\n DEBUG_BUILD && logger.warn('[Replay] Received replay event after session expired.');\n\n return;\n }\n\n // `_isCheckout` is only set when the checkout is due to `checkoutEveryNms`\n // We also want to treat the first event as a checkout, so we handle this specifically here\n const isCheckout = _isCheckout || !hadFirstEvent;\n hadFirstEvent = true;\n\n if (replay.clickDetector) {\n updateClickDetectorForRecordingEvent(replay.clickDetector, event);\n }\n\n // The handler returns `true` if we do not want to trigger debounced flush, `false` if we want to debounce flush.\n replay.addUpdate(() => {\n // The session is always started immediately on pageload/init, but for\n // error-only replays, it should reflect the most recent checkout\n // when an error occurs. Clear any state that happens before this current\n // checkout. This needs to happen before `addEvent()` which updates state\n // dependent on this reset.\n if (replay.recordingMode === 'buffer' && isCheckout) {\n replay.setInitialState();\n }\n\n // If the event is not added (e.g. due to being paused, disabled, or out of the max replay duration),\n // Skip all further steps\n if (!addEventSync(replay, event, isCheckout)) {\n // Return true to skip scheduling a debounced flush\n return true;\n }\n\n // Different behavior for full snapshots (type=2), ignore other event types\n // See https://github.com/rrweb-io/rrweb/blob/d8f9290ca496712aa1e7d472549480c4e7876594/packages/rrweb/src/types.ts#L16\n if (!isCheckout) {\n return false;\n }\n\n // Additionally, create a meta event that will capture certain SDK settings.\n // In order to handle buffer mode, this needs to either be done when we\n // receive checkout events or at flush time.\n //\n // `isCheckout` is always true, but want to be explicit that it should\n // only be added for checkouts\n addSettingsEvent(replay, isCheckout);\n\n // If there is a previousSessionId after a full snapshot occurs, then\n // the replay session was started due to session expiration. The new session\n // is started before triggering a new checkout and contains the id\n // of the previous session. Do not immediately flush in this case\n // to avoid capturing only the checkout and instead the replay will\n // be captured if they perform any follow-up actions.\n if (replay.session && replay.session.previousSessionId) {\n return true;\n }\n\n // When in buffer mode, make sure we adjust the session started date to the current earliest event of the buffer\n // this should usually be the timestamp of the checkout event, but to be safe...\n if (replay.recordingMode === 'buffer' && replay.session && replay.eventBuffer) {\n const earliestEvent = replay.eventBuffer.getEarliestTimestamp();\n if (earliestEvent) {\n logInfo(\n `[Replay] Updating session start time to earliest event in buffer to ${new Date(earliestEvent)}`,\n replay.getOptions()._experiments.traceInternals,\n );\n\n replay.session.started = earliestEvent;\n\n if (replay.getOptions().stickySession) {\n saveSession(replay.session);\n }\n }\n }\n\n if (replay.recordingMode === 'session') {\n // If the full snapshot is due to an initial load, we will not have\n // a previous session ID. In this case, we want to buffer events\n // for a set amount of time before flushing. This can help avoid\n // capturing replays of users that immediately close the window.\n\n // This should never reject\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n void replay.flush();\n }\n\n return true;\n });\n };\n}\n\n/**\n * Exported for tests\n */\nexport function createOptionsEvent(replay: ReplayContainer): ReplayOptionFrameEvent {\n const options = replay.getOptions();\n return {\n type: EventType.Custom,\n timestamp: Date.now(),\n data: {\n tag: 'options',\n payload: {\n shouldRecordCanvas: replay.isRecordingCanvas(),\n sessionSampleRate: options.sessionSampleRate,\n errorSampleRate: options.errorSampleRate,\n useCompressionOption: options.useCompression,\n blockAllMedia: options.blockAllMedia,\n maskAllText: options.maskAllText,\n maskAllInputs: options.maskAllInputs,\n useCompression: replay.eventBuffer ? replay.eventBuffer.type === 'worker' : false,\n networkDetailHasUrls: options.networkDetailAllowUrls.length > 0,\n networkCaptureBodies: options.networkCaptureBodies,\n networkRequestHasHeaders: options.networkRequestHeaders.length > 0,\n networkResponseHasHeaders: options.networkResponseHeaders.length > 0,\n },\n },\n };\n}\n\n/**\n * Add a \"meta\" event that contains a simplified view on current configuration\n * options. This should only be included on the first segment of a recording.\n */\nfunction addSettingsEvent(replay: ReplayContainer, isCheckout?: boolean): void {\n // Only need to add this event when sending the first segment\n if (!isCheckout || !replay.session || replay.session.segmentId !== 0) {\n return;\n }\n\n addEventSync(replay, createOptionsEvent(replay), false);\n}\n", "import type { DsnComponents, ReplayEnvelope, ReplayEvent, ReplayRecordingData } from '@sentry/types';\nimport { createEnvelope, createEventEnvelopeHeaders, getSdkMetadataForEnvelopeHeader } from '@sentry/utils';\n\n/**\n * Create a replay envelope ready to be sent.\n * This includes both the replay event, as well as the recording data.\n */\nexport function createReplayEnvelope(\n replayEvent: ReplayEvent,\n recordingData: ReplayRecordingData,\n dsn: DsnComponents,\n tunnel?: string,\n): ReplayEnvelope {\n return createEnvelope(\n createEventEnvelopeHeaders(replayEvent, getSdkMetadataForEnvelopeHeader(replayEvent), tunnel, dsn),\n [\n [{ type: 'replay_event' }, replayEvent],\n [\n {\n type: 'replay_recording',\n // If string then we need to encode to UTF8, otherwise will have\n // wrong size. TextEncoder has similar browser support to\n // MutationObserver, although it does not accept IE11.\n length:\n typeof recordingData === 'string' ? new TextEncoder().encode(recordingData).length : recordingData.length,\n },\n recordingData,\n ],\n ],\n );\n}\n", "import type { ReplayRecordingData } from '@sentry/types';\n\n/**\n * Prepare the recording data ready to be sent.\n */\nexport function prepareRecordingData({\n recordingData,\n headers,\n}: {\n recordingData: ReplayRecordingData;\n headers: Record;\n}): ReplayRecordingData {\n let payloadWithSequence;\n\n // XXX: newline is needed to separate sequence id from events\n const replayHeaders = `${JSON.stringify(headers)}\n`;\n\n if (typeof recordingData === 'string') {\n payloadWithSequence = `${replayHeaders}${recordingData}`;\n } else {\n const enc = new TextEncoder();\n // XXX: newline is needed to separate sequence id from events\n const sequence = enc.encode(replayHeaders);\n // Merge the two Uint8Arrays\n payloadWithSequence = new Uint8Array(sequence.length + recordingData.length);\n payloadWithSequence.set(sequence);\n payloadWithSequence.set(recordingData, sequence.length);\n }\n\n return payloadWithSequence;\n}\n", "import type { IntegrationIndex, Scope } from '@sentry/core';\nimport { getIsolationScope } from '@sentry/core';\nimport { prepareEvent } from '@sentry/core';\nimport type { Client, EventHint, ReplayEvent } from '@sentry/types';\n\n/**\n * Prepare a replay event & enrich it with the SDK metadata.\n */\nexport async function prepareReplayEvent({\n client,\n scope,\n replayId: event_id,\n event,\n}: {\n client: Client & { _integrations?: IntegrationIndex };\n scope: Scope;\n replayId: string;\n event: ReplayEvent;\n}): Promise {\n const integrations =\n typeof client._integrations === 'object' && client._integrations !== null && !Array.isArray(client._integrations)\n ? Object.keys(client._integrations)\n : undefined;\n\n const eventHint: EventHint = { event_id, integrations };\n\n if (client.emit) {\n client.emit('preprocessEvent', event, eventHint);\n }\n\n const preparedEvent = (await prepareEvent(\n client.getOptions(),\n event,\n eventHint,\n scope,\n client,\n getIsolationScope(),\n )) as ReplayEvent | null;\n\n // If e.g. a global event processor returned null\n if (!preparedEvent) {\n return null;\n }\n\n // This normally happens in browser client \"_prepareEvent\"\n // but since we do not use this private method from the client, but rather the plain import\n // we need to do this manually.\n preparedEvent.platform = preparedEvent.platform || 'javascript';\n\n // extract the SDK name because `client._prepareEvent` doesn't add it to the event\n const metadata = client.getSdkMetadata && client.getSdkMetadata();\n const { name, version } = (metadata && metadata.sdk) || {};\n\n preparedEvent.sdk = {\n ...preparedEvent.sdk,\n name: name || 'sentry.javascript.unknown',\n version: version || '0.0.0',\n };\n\n return preparedEvent;\n}\n", "import { getClient, getCurrentScope } from '@sentry/core';\nimport type { ReplayEvent, TransportMakeRequestResponse } from '@sentry/types';\nimport type { RateLimits } from '@sentry/utils';\nimport { isRateLimited, updateRateLimits } from '@sentry/utils';\n\nimport { REPLAY_EVENT_NAME, UNABLE_TO_SEND_REPLAY } from '../constants';\nimport type { SendReplayData } from '../types';\nimport { createReplayEnvelope } from './createReplayEnvelope';\nimport { logInfo } from './log';\nimport { prepareRecordingData } from './prepareRecordingData';\nimport { prepareReplayEvent } from './prepareReplayEvent';\n\n/**\n * Send replay attachment using `fetch()`\n */\nexport async function sendReplayRequest({\n recordingData,\n replayId,\n segmentId: segment_id,\n eventContext,\n timestamp,\n session,\n}: SendReplayData): Promise {\n const preparedRecordingData = prepareRecordingData({\n recordingData,\n headers: {\n segment_id,\n },\n });\n\n const { urls, errorIds, traceIds, initialTimestamp } = eventContext;\n\n const client = getClient();\n const scope = getCurrentScope();\n const transport = client && client.getTransport();\n const dsn = client && client.getDsn();\n\n if (!client || !transport || !dsn || !session.sampled) {\n return;\n }\n\n const baseEvent: ReplayEvent = {\n type: REPLAY_EVENT_NAME,\n replay_start_timestamp: initialTimestamp / 1000,\n timestamp: timestamp / 1000,\n error_ids: errorIds,\n trace_ids: traceIds,\n urls,\n replay_id: replayId,\n segment_id,\n replay_type: session.sampled,\n };\n\n const replayEvent = await prepareReplayEvent({ scope, client, replayId, event: baseEvent });\n\n if (!replayEvent) {\n // Taken from baseclient's `_processEvent` method, where this is handled for errors/transactions\n client.recordDroppedEvent('event_processor', 'replay', baseEvent);\n logInfo('An event processor returned `null`, will not send event.');\n return;\n }\n\n /*\n For reference, the fully built event looks something like this:\n {\n \"type\": \"replay_event\",\n \"timestamp\": 1670837008.634,\n \"error_ids\": [\n \"errorId\"\n ],\n \"trace_ids\": [\n \"traceId\"\n ],\n \"urls\": [\n \"https://example.com\"\n ],\n \"replay_id\": \"eventId\",\n \"segment_id\": 3,\n \"replay_type\": \"error\",\n \"platform\": \"javascript\",\n \"event_id\": \"eventId\",\n \"environment\": \"production\",\n \"sdk\": {\n \"integrations\": [\n \"BrowserTracing\",\n \"Replay\"\n ],\n \"name\": \"sentry.javascript.browser\",\n \"version\": \"7.25.0\"\n },\n \"sdkProcessingMetadata\": {},\n \"contexts\": {\n },\n }\n */\n\n // Prevent this data (which, if it exists, was used in earlier steps in the processing pipeline) from being sent to\n // sentry. (Note: Our use of this property comes and goes with whatever we might be debugging, whatever hacks we may\n // have temporarily added, etc. Even if we don't happen to be using it at some point in the future, let's not get rid\n // of this `delete`, lest we miss putting it back in the next time the property is in use.)\n delete replayEvent.sdkProcessingMetadata;\n\n const envelope = createReplayEnvelope(replayEvent, preparedRecordingData, dsn, client.getOptions().tunnel);\n\n let response: void | TransportMakeRequestResponse;\n\n try {\n response = await transport.send(envelope);\n } catch (err) {\n const error = new Error(UNABLE_TO_SEND_REPLAY);\n\n try {\n // In case browsers don't allow this property to be writable\n // @ts-expect-error This needs lib es2022 and newer\n error.cause = err;\n } catch {\n // nothing to do\n }\n throw error;\n }\n\n // TODO (v8): we can remove this guard once transport.send's type signature doesn't include void anymore\n if (!response) {\n return response;\n }\n\n // If the status code is invalid, we want to immediately stop & not retry\n if (typeof response.statusCode === 'number' && (response.statusCode < 200 || response.statusCode >= 300)) {\n throw new TransportStatusCodeError(response.statusCode);\n }\n\n const rateLimits = updateRateLimits({}, response);\n if (isRateLimited(rateLimits, 'replay')) {\n throw new RateLimitError(rateLimits);\n }\n\n return response;\n}\n\n/**\n * This error indicates that the transport returned an invalid status code.\n */\nexport class TransportStatusCodeError extends Error {\n public constructor(statusCode: number) {\n super(`Transport returned status code ${statusCode}`);\n }\n}\n\n/**\n * This error indicates that we hit a rate limit API error.\n */\nexport class RateLimitError extends Error {\n public rateLimits: RateLimits;\n\n public constructor(rateLimits: RateLimits) {\n super('Rate limit hit');\n this.rateLimits = rateLimits;\n }\n}\n", "import { captureException, setContext } from '@sentry/core';\n\nimport { RETRY_BASE_INTERVAL, RETRY_MAX_COUNT, UNABLE_TO_SEND_REPLAY } from '../constants';\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { SendReplayData } from '../types';\nimport { RateLimitError, TransportStatusCodeError, sendReplayRequest } from './sendReplayRequest';\n\n/**\n * Finalize and send the current replay event to Sentry\n */\nexport async function sendReplay(\n replayData: SendReplayData,\n retryConfig = {\n count: 0,\n interval: RETRY_BASE_INTERVAL,\n },\n): Promise {\n const { recordingData, options } = replayData;\n\n // short circuit if there's no events to upload (this shouldn't happen as _runFlush makes this check)\n if (!recordingData.length) {\n return;\n }\n\n try {\n await sendReplayRequest(replayData);\n return true;\n } catch (err) {\n if (err instanceof TransportStatusCodeError || err instanceof RateLimitError) {\n throw err;\n }\n\n // Capture error for every failed replay\n setContext('Replays', {\n _retryCount: retryConfig.count,\n });\n\n if (DEBUG_BUILD && options._experiments && options._experiments.captureExceptions) {\n captureException(err);\n }\n\n // If an error happened here, it's likely that uploading the attachment\n // failed, we'll can retry with the same events payload\n if (retryConfig.count >= RETRY_MAX_COUNT) {\n const error = new Error(`${UNABLE_TO_SEND_REPLAY} - max retries exceeded`);\n\n try {\n // In case browsers don't allow this property to be writable\n // @ts-expect-error This needs lib es2022 and newer\n error.cause = err;\n } catch {\n // nothing to do\n }\n\n throw error;\n }\n\n // will retry in intervals of 5, 10, 30\n retryConfig.interval *= ++retryConfig.count;\n\n return new Promise((resolve, reject) => {\n setTimeout(async () => {\n try {\n await sendReplay(replayData, retryConfig);\n resolve(true);\n } catch (err) {\n reject(err);\n }\n }, retryConfig.interval);\n });\n }\n}\n", "export const THROTTLED = '__THROTTLED';\nexport const SKIPPED = '__SKIPPED';\n\n/**\n * Create a throttled function off a given function.\n * When calling the throttled function, it will call the original function only\n * if it hasn't been called more than `maxCount` times in the last `durationSeconds`.\n *\n * Returns `THROTTLED` if throttled for the first time, after that `SKIPPED`,\n * or else the return value of the original function.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function throttle any>(\n fn: T,\n maxCount: number,\n durationSeconds: number,\n): (...rest: Parameters) => ReturnType | typeof THROTTLED | typeof SKIPPED {\n const counter = new Map();\n\n const _cleanup = (now: number): void => {\n const threshold = now - durationSeconds;\n counter.forEach((_value, key) => {\n if (key < threshold) {\n counter.delete(key);\n }\n });\n };\n\n const _getTotalCount = (): number => {\n return [...counter.values()].reduce((a, b) => a + b, 0);\n };\n\n let isThrottled = false;\n\n return (...rest: Parameters): ReturnType | typeof THROTTLED | typeof SKIPPED => {\n // Date in second-precision, which we use as basis for the throttling\n const now = Math.floor(Date.now() / 1000);\n\n // First, make sure to delete any old entries\n _cleanup(now);\n\n // If already over limit, do nothing\n if (_getTotalCount() >= maxCount) {\n const wasThrottled = isThrottled;\n isThrottled = true;\n return wasThrottled ? SKIPPED : THROTTLED;\n }\n\n isThrottled = false;\n const count = counter.get(now) || 0;\n counter.set(now, count + 1);\n\n return fn(...rest);\n };\n}\n", "/* eslint-disable max-lines */ // TODO: We might want to split this file up\nimport { EventType, record } from '@sentry-internal/rrweb';\nimport {\n SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,\n captureException,\n getClient,\n getCurrentScope,\n spanToJSON,\n} from '@sentry/core';\nimport type { ReplayRecordingMode, Transaction } from '@sentry/types';\nimport { logger } from '@sentry/utils';\n\nimport {\n BUFFER_CHECKOUT_TIME,\n SESSION_IDLE_EXPIRE_DURATION,\n SESSION_IDLE_PAUSE_DURATION,\n SLOW_CLICK_SCROLL_TIMEOUT,\n SLOW_CLICK_THRESHOLD,\n WINDOW,\n} from './constants';\nimport { ClickDetector } from './coreHandlers/handleClick';\nimport { handleKeyboardEvent } from './coreHandlers/handleKeyboardEvent';\nimport { setupPerformanceObserver } from './coreHandlers/performanceObserver';\nimport { DEBUG_BUILD } from './debug-build';\nimport { createEventBuffer } from './eventBuffer';\nimport { clearSession } from './session/clearSession';\nimport { loadOrCreateSession } from './session/loadOrCreateSession';\nimport { saveSession } from './session/saveSession';\nimport { shouldRefreshSession } from './session/shouldRefreshSession';\n\nimport type {\n AddEventResult,\n AddUpdateCallback,\n AllPerformanceEntry,\n AllPerformanceEntryData,\n EventBuffer,\n InternalEventContext,\n PopEventContext,\n RecordingEvent,\n RecordingOptions,\n ReplayBreadcrumbFrame,\n ReplayCanvasIntegrationOptions,\n ReplayContainer as ReplayContainerInterface,\n ReplayPerformanceEntry,\n ReplayPluginOptions,\n SendBufferedReplayOptions,\n Session,\n SlowClickConfig,\n Timeouts,\n} from './types';\nimport { ReplayEventTypeCustom } from './types';\nimport { addEvent, addEventSync } from './util/addEvent';\nimport { addGlobalListeners } from './util/addGlobalListeners';\nimport { addMemoryEntry } from './util/addMemoryEntry';\nimport { createBreadcrumb } from './util/createBreadcrumb';\nimport { createPerformanceEntries } from './util/createPerformanceEntries';\nimport { createPerformanceSpans } from './util/createPerformanceSpans';\nimport { debounce } from './util/debounce';\nimport { getHandleRecordingEmit } from './util/handleRecordingEmit';\nimport { isExpired } from './util/isExpired';\nimport { isSessionExpired } from './util/isSessionExpired';\nimport { logInfo, logInfoNextTick } from './util/log';\nimport { sendReplay } from './util/sendReplay';\nimport type { SKIPPED } from './util/throttle';\nimport { THROTTLED, throttle } from './util/throttle';\n\n/**\n * The main replay container class, which holds all the state and methods for recording and sending replays.\n */\nexport class ReplayContainer implements ReplayContainerInterface {\n public eventBuffer: EventBuffer | null;\n\n public performanceEntries: AllPerformanceEntry[];\n\n public replayPerformanceEntries: ReplayPerformanceEntry[];\n\n public session: Session | undefined;\n\n public clickDetector: ClickDetector | undefined;\n\n /**\n * Recording can happen in one of three modes:\n * - session: Record the whole session, sending it continuously\n * - buffer: Always keep the last 60s of recording, requires:\n * - having replaysOnErrorSampleRate > 0 to capture replay when an error occurs\n * - or calling `flush()` to send the replay\n */\n public recordingMode: ReplayRecordingMode;\n\n /**\n * The current or last active transcation.\n * This is only available when performance is enabled.\n */\n public lastTransaction?: Transaction;\n\n /**\n * These are here so we can overwrite them in tests etc.\n * @hidden\n */\n public readonly timeouts: Timeouts;\n\n private _throttledAddEvent: (\n event: RecordingEvent,\n isCheckout?: boolean,\n ) => typeof THROTTLED | typeof SKIPPED | Promise;\n\n /**\n * Options to pass to `rrweb.record()`\n */\n private readonly _recordingOptions: RecordingOptions;\n\n private readonly _options: ReplayPluginOptions;\n\n private _performanceCleanupCallback?: () => void;\n\n private _debouncedFlush: ReturnType;\n private _flushLock: Promise | undefined;\n\n /**\n * Timestamp of the last user activity. This lives across sessions.\n */\n private _lastActivity: number;\n\n /**\n * Is the integration currently active?\n */\n private _isEnabled: boolean;\n\n /**\n * Paused is a state where:\n * - DOM Recording is not listening at all\n * - Nothing will be added to event buffer (e.g. core SDK events)\n */\n private _isPaused: boolean;\n\n /**\n * Have we attached listeners to the core SDK?\n * Note we have to track this as there is no way to remove instrumentation handlers.\n */\n private _hasInitializedCoreListeners: boolean;\n\n /**\n * Function to stop recording\n */\n private _stopRecording: ReturnType | undefined;\n\n private _context: InternalEventContext;\n\n /**\n * Internal use for canvas recording options\n */\n private _canvas: ReplayCanvasIntegrationOptions | undefined;\n\n public constructor({\n options,\n recordingOptions,\n }: {\n options: ReplayPluginOptions;\n recordingOptions: RecordingOptions;\n }) {\n this.eventBuffer = null;\n this.performanceEntries = [];\n this.replayPerformanceEntries = [];\n this.recordingMode = 'session';\n this.timeouts = {\n sessionIdlePause: SESSION_IDLE_PAUSE_DURATION,\n sessionIdleExpire: SESSION_IDLE_EXPIRE_DURATION,\n } as const;\n this._lastActivity = Date.now();\n this._isEnabled = false;\n this._isPaused = false;\n this._hasInitializedCoreListeners = false;\n this._context = {\n errorIds: new Set(),\n traceIds: new Set(),\n urls: [],\n initialTimestamp: Date.now(),\n initialUrl: '',\n };\n\n this._recordingOptions = recordingOptions;\n this._options = options;\n\n this._debouncedFlush = debounce(() => this._flush(), this._options.flushMinDelay, {\n maxWait: this._options.flushMaxDelay,\n });\n\n this._throttledAddEvent = throttle(\n (event: RecordingEvent, isCheckout?: boolean) => addEvent(this, event, isCheckout),\n // Max 300 events...\n 300,\n // ... per 5s\n 5,\n );\n\n const { slowClickTimeout, slowClickIgnoreSelectors } = this.getOptions();\n\n const slowClickConfig: SlowClickConfig | undefined = slowClickTimeout\n ? {\n threshold: Math.min(SLOW_CLICK_THRESHOLD, slowClickTimeout),\n timeout: slowClickTimeout,\n scrollTimeout: SLOW_CLICK_SCROLL_TIMEOUT,\n ignoreSelector: slowClickIgnoreSelectors ? slowClickIgnoreSelectors.join(',') : '',\n }\n : undefined;\n\n if (slowClickConfig) {\n this.clickDetector = new ClickDetector(this, slowClickConfig);\n }\n }\n\n /** Get the event context. */\n public getContext(): InternalEventContext {\n return this._context;\n }\n\n /** If recording is currently enabled. */\n public isEnabled(): boolean {\n return this._isEnabled;\n }\n\n /** If recording is currently paused. */\n public isPaused(): boolean {\n return this._isPaused;\n }\n\n /**\n * Determine if canvas recording is enabled\n */\n public isRecordingCanvas(): boolean {\n return Boolean(this._canvas);\n }\n\n /** Get the replay integration options. */\n public getOptions(): ReplayPluginOptions {\n return this._options;\n }\n\n /**\n * Initializes the plugin based on sampling configuration. Should not be\n * called outside of constructor.\n */\n public initializeSampling(previousSessionId?: string): void {\n const { errorSampleRate, sessionSampleRate } = this._options;\n\n // If neither sample rate is > 0, then do nothing - user will need to call one of\n // `start()` or `startBuffering` themselves.\n if (errorSampleRate <= 0 && sessionSampleRate <= 0) {\n return;\n }\n\n // Otherwise if there is _any_ sample rate set, try to load an existing\n // session, or create a new one.\n this._initializeSessionForSampling(previousSessionId);\n\n if (!this.session) {\n // This should not happen, something wrong has occurred\n this._handleException(new Error('Unable to initialize and create session'));\n return;\n }\n\n if (this.session.sampled === false) {\n // This should only occur if `errorSampleRate` is 0 and was unsampled for\n // session-based replay. In this case there is nothing to do.\n return;\n }\n\n // If segmentId > 0, it means we've previously already captured this session\n // In this case, we still want to continue in `session` recording mode\n this.recordingMode = this.session.sampled === 'buffer' && this.session.segmentId === 0 ? 'buffer' : 'session';\n\n logInfoNextTick(\n `[Replay] Starting replay in ${this.recordingMode} mode`,\n this._options._experiments.traceInternals,\n );\n\n this._initializeRecording();\n }\n\n /**\n * Start a replay regardless of sampling rate. Calling this will always\n * create a new session. Will throw an error if replay is already in progress.\n *\n * Creates or loads a session, attaches listeners to varying events (DOM,\n * _performanceObserver, Recording, Sentry SDK, etc)\n */\n public start(): void {\n if (this._isEnabled && this.recordingMode === 'session') {\n throw new Error('Replay recording is already in progress');\n }\n\n if (this._isEnabled && this.recordingMode === 'buffer') {\n throw new Error('Replay buffering is in progress, call `flush()` to save the replay');\n }\n\n logInfoNextTick('[Replay] Starting replay in session mode', this._options._experiments.traceInternals);\n\n // Required as user activity is initially set in\n // constructor, so if `start()` is called after\n // session idle expiration, a replay will not be\n // created due to an idle timeout.\n this._updateUserActivity();\n\n const session = loadOrCreateSession(\n {\n maxReplayDuration: this._options.maxReplayDuration,\n sessionIdleExpire: this.timeouts.sessionIdleExpire,\n traceInternals: this._options._experiments.traceInternals,\n },\n {\n stickySession: this._options.stickySession,\n // This is intentional: create a new session-based replay when calling `start()`\n sessionSampleRate: 1,\n allowBuffering: false,\n },\n );\n\n this.session = session;\n\n this._initializeRecording();\n }\n\n /**\n * Start replay buffering. Buffers until `flush()` is called or, if\n * `replaysOnErrorSampleRate` > 0, an error occurs.\n */\n public startBuffering(): void {\n if (this._isEnabled) {\n throw new Error('Replay recording is already in progress');\n }\n\n logInfoNextTick('[Replay] Starting replay in buffer mode', this._options._experiments.traceInternals);\n\n const session = loadOrCreateSession(\n {\n sessionIdleExpire: this.timeouts.sessionIdleExpire,\n maxReplayDuration: this._options.maxReplayDuration,\n traceInternals: this._options._experiments.traceInternals,\n },\n {\n stickySession: this._options.stickySession,\n sessionSampleRate: 0,\n allowBuffering: true,\n },\n );\n\n this.session = session;\n\n this.recordingMode = 'buffer';\n this._initializeRecording();\n }\n\n /**\n * Start recording.\n *\n * Note that this will cause a new DOM checkout\n */\n public startRecording(): void {\n try {\n const canvasOptions = this._canvas;\n\n this._stopRecording = record({\n ...this._recordingOptions,\n // When running in error sampling mode, we need to overwrite `checkoutEveryNms`\n // Without this, it would record forever, until an error happens, which we don't want\n // instead, we'll always keep the last 60 seconds of replay before an error happened\n ...(this.recordingMode === 'buffer' && { checkoutEveryNms: BUFFER_CHECKOUT_TIME }),\n emit: getHandleRecordingEmit(this),\n onMutation: this._onMutationHandler,\n ...(canvasOptions\n ? {\n recordCanvas: canvasOptions.recordCanvas,\n getCanvasManager: canvasOptions.getCanvasManager,\n sampling: canvasOptions.sampling,\n dataURLOptions: canvasOptions.dataURLOptions,\n }\n : {}),\n });\n } catch (err) {\n this._handleException(err);\n }\n }\n\n /**\n * Stops the recording, if it was running.\n *\n * Returns true if it was previously stopped, or is now stopped,\n * otherwise false.\n */\n public stopRecording(): boolean {\n try {\n if (this._stopRecording) {\n this._stopRecording();\n this._stopRecording = undefined;\n }\n\n return true;\n } catch (err) {\n this._handleException(err);\n return false;\n }\n }\n\n /**\n * Currently, this needs to be manually called (e.g. for tests). Sentry SDK\n * does not support a teardown\n */\n public async stop({ forceFlush = false, reason }: { forceFlush?: boolean; reason?: string } = {}): Promise {\n if (!this._isEnabled) {\n return;\n }\n\n // We can't move `_isEnabled` after awaiting a flush, otherwise we can\n // enter into an infinite loop when `stop()` is called while flushing.\n this._isEnabled = false;\n\n try {\n logInfo(\n `[Replay] Stopping Replay${reason ? ` triggered by ${reason}` : ''}`,\n this._options._experiments.traceInternals,\n );\n\n this._removeListeners();\n this.stopRecording();\n\n this._debouncedFlush.cancel();\n // See comment above re: `_isEnabled`, we \"force\" a flush, ignoring the\n // `_isEnabled` state of the plugin since it was disabled above.\n if (forceFlush) {\n await this._flush({ force: true });\n }\n\n // After flush, destroy event buffer\n this.eventBuffer && this.eventBuffer.destroy();\n this.eventBuffer = null;\n\n // Clear session from session storage, note this means if a new session\n // is started after, it will not have `previousSessionId`\n clearSession(this);\n } catch (err) {\n this._handleException(err);\n }\n }\n\n /**\n * Pause some replay functionality. See comments for `_isPaused`.\n * This differs from stop as this only stops DOM recording, it is\n * not as thorough of a shutdown as `stop()`.\n */\n public pause(): void {\n if (this._isPaused) {\n return;\n }\n\n this._isPaused = true;\n this.stopRecording();\n\n logInfo('[Replay] Pausing replay', this._options._experiments.traceInternals);\n }\n\n /**\n * Resumes recording, see notes for `pause().\n *\n * Note that calling `startRecording()` here will cause a\n * new DOM checkout.`\n */\n public resume(): void {\n if (!this._isPaused || !this._checkSession()) {\n return;\n }\n\n this._isPaused = false;\n this.startRecording();\n\n logInfo('[Replay] Resuming replay', this._options._experiments.traceInternals);\n }\n\n /**\n * If not in \"session\" recording mode, flush event buffer which will create a new replay.\n * Unless `continueRecording` is false, the replay will continue to record and\n * behave as a \"session\"-based replay.\n *\n * Otherwise, queue up a flush.\n */\n public async sendBufferedReplayOrFlush({ continueRecording = true }: SendBufferedReplayOptions = {}): Promise {\n if (this.recordingMode === 'session') {\n return this.flushImmediate();\n }\n\n const activityTime = Date.now();\n\n logInfo('[Replay] Converting buffer to session', this._options._experiments.traceInternals);\n\n // Allow flush to complete before resuming as a session recording, otherwise\n // the checkout from `startRecording` may be included in the payload.\n // Prefer to keep the error replay as a separate (and smaller) segment\n // than the session replay.\n await this.flushImmediate();\n\n const hasStoppedRecording = this.stopRecording();\n\n if (!continueRecording || !hasStoppedRecording) {\n return;\n }\n\n // To avoid race conditions where this is called multiple times, we check here again that we are still buffering\n if ((this.recordingMode as ReplayRecordingMode) === 'session') {\n return;\n }\n\n // Re-start recording in session-mode\n this.recordingMode = 'session';\n\n // Once this session ends, we do not want to refresh it\n if (this.session) {\n this._updateUserActivity(activityTime);\n this._updateSessionActivity(activityTime);\n this._maybeSaveSession();\n }\n\n this.startRecording();\n }\n\n /**\n * We want to batch uploads of replay events. Save events only if\n * `` milliseconds have elapsed since the last event\n * *OR* if `` milliseconds have elapsed.\n *\n * Accepts a callback to perform side-effects and returns true to stop batch\n * processing and hand back control to caller.\n */\n public addUpdate(cb: AddUpdateCallback): void {\n // We need to always run `cb` (e.g. in the case of `this.recordingMode == 'buffer'`)\n const cbResult = cb();\n\n // If this option is turned on then we will only want to call `flush`\n // explicitly\n if (this.recordingMode === 'buffer') {\n return;\n }\n\n // If callback is true, we do not want to continue with flushing -- the\n // caller will need to handle it.\n if (cbResult === true) {\n return;\n }\n\n // addUpdate is called quite frequently - use _debouncedFlush so that it\n // respects the flush delays and does not flush immediately\n this._debouncedFlush();\n }\n\n /**\n * Updates the user activity timestamp and resumes recording. This should be\n * called in an event handler for a user action that we consider as the user\n * being \"active\" (e.g. a mouse click).\n */\n public triggerUserActivity(): void {\n this._updateUserActivity();\n\n // This case means that recording was once stopped due to inactivity.\n // Ensure that recording is resumed.\n if (!this._stopRecording) {\n // Create a new session, otherwise when the user action is flushed, it\n // will get rejected due to an expired session.\n if (!this._checkSession()) {\n return;\n }\n\n // Note: This will cause a new DOM checkout\n this.resume();\n return;\n }\n\n // Otherwise... recording was never suspended, continue as normalish\n this.checkAndHandleExpiredSession();\n\n this._updateSessionActivity();\n }\n\n /**\n * Updates the user activity timestamp *without* resuming\n * recording. Some user events (e.g. keydown) can be create\n * low-value replays that only contain the keypress as a\n * breadcrumb. Instead this would require other events to\n * create a new replay after a session has expired.\n */\n public updateUserActivity(): void {\n this._updateUserActivity();\n this._updateSessionActivity();\n }\n\n /**\n * Only flush if `this.recordingMode === 'session'`\n */\n public conditionalFlush(): Promise {\n if (this.recordingMode === 'buffer') {\n return Promise.resolve();\n }\n\n return this.flushImmediate();\n }\n\n /**\n * Flush using debounce flush\n */\n public flush(): Promise {\n return this._debouncedFlush() as Promise;\n }\n\n /**\n * Always flush via `_debouncedFlush` so that we do not have flushes triggered\n * from calling both `flush` and `_debouncedFlush`. Otherwise, there could be\n * cases of mulitple flushes happening closely together.\n */\n public flushImmediate(): Promise {\n this._debouncedFlush();\n // `.flush` is provided by the debounced function, analogously to lodash.debounce\n return this._debouncedFlush.flush() as Promise;\n }\n\n /**\n * Cancels queued up flushes.\n */\n public cancelFlush(): void {\n this._debouncedFlush.cancel();\n }\n\n /** Get the current sesion (=replay) ID */\n public getSessionId(): string | undefined {\n return this.session && this.session.id;\n }\n\n /**\n * Checks if recording should be stopped due to user inactivity. Otherwise\n * check if session is expired and create a new session if so. Triggers a new\n * full snapshot on new session.\n *\n * Returns true if session is not expired, false otherwise.\n * @hidden\n */\n public checkAndHandleExpiredSession(): boolean | void {\n // Prevent starting a new session if the last user activity is older than\n // SESSION_IDLE_PAUSE_DURATION. Otherwise non-user activity can trigger a new\n // session+recording. This creates noisy replays that do not have much\n // content in them.\n if (\n this._lastActivity &&\n isExpired(this._lastActivity, this.timeouts.sessionIdlePause) &&\n this.session &&\n this.session.sampled === 'session'\n ) {\n // Pause recording only for session-based replays. Otherwise, resuming\n // will create a new replay and will conflict with users who only choose\n // to record error-based replays only. (e.g. the resumed replay will not\n // contain a reference to an error)\n this.pause();\n return;\n }\n\n // --- There is recent user activity --- //\n // This will create a new session if expired, based on expiry length\n if (!this._checkSession()) {\n // Check session handles the refreshing itself\n return false;\n }\n\n return true;\n }\n\n /**\n * Capture some initial state that can change throughout the lifespan of the\n * replay. This is required because otherwise they would be captured at the\n * first flush.\n */\n public setInitialState(): void {\n const urlPath = `${WINDOW.location.pathname}${WINDOW.location.hash}${WINDOW.location.search}`;\n const url = `${WINDOW.location.origin}${urlPath}`;\n\n this.performanceEntries = [];\n this.replayPerformanceEntries = [];\n\n // Reset _context as well\n this._clearContext();\n\n this._context.initialUrl = url;\n this._context.initialTimestamp = Date.now();\n this._context.urls.push(url);\n }\n\n /**\n * Add a breadcrumb event, that may be throttled.\n * If it was throttled, we add a custom breadcrumb to indicate that.\n */\n public throttledAddEvent(\n event: RecordingEvent,\n isCheckout?: boolean,\n ): typeof THROTTLED | typeof SKIPPED | Promise {\n const res = this._throttledAddEvent(event, isCheckout);\n\n // If this is THROTTLED, it means we have throttled the event for the first time\n // In this case, we want to add a breadcrumb indicating that something was skipped\n if (res === THROTTLED) {\n const breadcrumb = createBreadcrumb({\n category: 'replay.throttled',\n });\n\n this.addUpdate(() => {\n // Return `false` if the event _was_ added, as that means we schedule a flush\n return !addEventSync(this, {\n type: ReplayEventTypeCustom,\n timestamp: breadcrumb.timestamp || 0,\n data: {\n tag: 'breadcrumb',\n payload: breadcrumb,\n metric: true,\n },\n });\n });\n }\n\n return res;\n }\n\n /**\n * This will get the parametrized route name of the current page.\n * This is only available if performance is enabled, and if an instrumented router is used.\n */\n public getCurrentRoute(): string | undefined {\n // eslint-disable-next-line deprecation/deprecation\n const lastTransaction = this.lastTransaction || getCurrentScope().getTransaction();\n\n const attributes = (lastTransaction && spanToJSON(lastTransaction).data) || {};\n const source = attributes[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];\n if (!lastTransaction || !source || !['route', 'custom'].includes(source)) {\n return undefined;\n }\n\n return spanToJSON(lastTransaction).description;\n }\n\n /**\n * Initialize and start all listeners to varying events (DOM,\n * Performance Observer, Recording, Sentry SDK, etc)\n */\n private _initializeRecording(): void {\n this.setInitialState();\n\n // this method is generally called on page load or manually - in both cases\n // we should treat it as an activity\n this._updateSessionActivity();\n\n this.eventBuffer = createEventBuffer({\n useCompression: this._options.useCompression,\n workerUrl: this._options.workerUrl,\n });\n\n this._removeListeners();\n this._addListeners();\n\n // Need to set as enabled before we start recording, as `record()` can trigger a flush with a new checkout\n this._isEnabled = true;\n this._isPaused = false;\n\n this.startRecording();\n }\n\n /** A wrapper to conditionally capture exceptions. */\n private _handleException(error: unknown): void {\n DEBUG_BUILD && logger.error('[Replay]', error);\n\n if (DEBUG_BUILD && this._options._experiments && this._options._experiments.captureExceptions) {\n captureException(error);\n }\n }\n\n /**\n * Loads (or refreshes) the current session.\n */\n private _initializeSessionForSampling(previousSessionId?: string): void {\n // Whenever there is _any_ error sample rate, we always allow buffering\n // Because we decide on sampling when an error occurs, we need to buffer at all times if sampling for errors\n const allowBuffering = this._options.errorSampleRate > 0;\n\n const session = loadOrCreateSession(\n {\n sessionIdleExpire: this.timeouts.sessionIdleExpire,\n maxReplayDuration: this._options.maxReplayDuration,\n traceInternals: this._options._experiments.traceInternals,\n previousSessionId,\n },\n {\n stickySession: this._options.stickySession,\n sessionSampleRate: this._options.sessionSampleRate,\n allowBuffering,\n },\n );\n\n this.session = session;\n }\n\n /**\n * Checks and potentially refreshes the current session.\n * Returns false if session is not recorded.\n */\n private _checkSession(): boolean {\n // If there is no session yet, we do not want to refresh anything\n // This should generally not happen, but to be safe....\n if (!this.session) {\n return false;\n }\n\n const currentSession = this.session;\n\n if (\n shouldRefreshSession(currentSession, {\n sessionIdleExpire: this.timeouts.sessionIdleExpire,\n maxReplayDuration: this._options.maxReplayDuration,\n })\n ) {\n // This should never reject\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this._refreshSession(currentSession);\n return false;\n }\n\n return true;\n }\n\n /**\n * Refresh a session with a new one.\n * This stops the current session (without forcing a flush, as that would never work since we are expired),\n * and then does a new sampling based on the refreshed session.\n */\n private async _refreshSession(session: Session): Promise {\n if (!this._isEnabled) {\n return;\n }\n await this.stop({ reason: 'refresh session' });\n this.initializeSampling(session.id);\n }\n\n /**\n * Adds listeners to record events for the replay\n */\n private _addListeners(): void {\n try {\n WINDOW.document.addEventListener('visibilitychange', this._handleVisibilityChange);\n WINDOW.addEventListener('blur', this._handleWindowBlur);\n WINDOW.addEventListener('focus', this._handleWindowFocus);\n WINDOW.addEventListener('keydown', this._handleKeyboardEvent);\n\n if (this.clickDetector) {\n this.clickDetector.addListeners();\n }\n\n // There is no way to remove these listeners, so ensure they are only added once\n if (!this._hasInitializedCoreListeners) {\n addGlobalListeners(this);\n\n this._hasInitializedCoreListeners = true;\n }\n } catch (err) {\n this._handleException(err);\n }\n\n this._performanceCleanupCallback = setupPerformanceObserver(this);\n }\n\n /**\n * Cleans up listeners that were created in `_addListeners`\n */\n private _removeListeners(): void {\n try {\n WINDOW.document.removeEventListener('visibilitychange', this._handleVisibilityChange);\n\n WINDOW.removeEventListener('blur', this._handleWindowBlur);\n WINDOW.removeEventListener('focus', this._handleWindowFocus);\n WINDOW.removeEventListener('keydown', this._handleKeyboardEvent);\n\n if (this.clickDetector) {\n this.clickDetector.removeListeners();\n }\n\n if (this._performanceCleanupCallback) {\n this._performanceCleanupCallback();\n }\n } catch (err) {\n this._handleException(err);\n }\n }\n\n /**\n * Handle when visibility of the page content changes. Opening a new tab will\n * cause the state to change to hidden because of content of current page will\n * be hidden. Likewise, moving a different window to cover the contents of the\n * page will also trigger a change to a hidden state.\n */\n private _handleVisibilityChange: () => void = () => {\n if (WINDOW.document.visibilityState === 'visible') {\n this._doChangeToForegroundTasks();\n } else {\n this._doChangeToBackgroundTasks();\n }\n };\n\n /**\n * Handle when page is blurred\n */\n private _handleWindowBlur: () => void = () => {\n const breadcrumb = createBreadcrumb({\n category: 'ui.blur',\n });\n\n // Do not count blur as a user action -- it's part of the process of them\n // leaving the page\n this._doChangeToBackgroundTasks(breadcrumb);\n };\n\n /**\n * Handle when page is focused\n */\n private _handleWindowFocus: () => void = () => {\n const breadcrumb = createBreadcrumb({\n category: 'ui.focus',\n });\n\n // Do not count focus as a user action -- instead wait until they focus and\n // interactive with page\n this._doChangeToForegroundTasks(breadcrumb);\n };\n\n /** Ensure page remains active when a key is pressed. */\n private _handleKeyboardEvent: (event: KeyboardEvent) => void = (event: KeyboardEvent) => {\n handleKeyboardEvent(this, event);\n };\n\n /**\n * Tasks to run when we consider a page to be hidden (via blurring and/or visibility)\n */\n private _doChangeToBackgroundTasks(breadcrumb?: ReplayBreadcrumbFrame): void {\n if (!this.session) {\n return;\n }\n\n const expired = isSessionExpired(this.session, {\n maxReplayDuration: this._options.maxReplayDuration,\n sessionIdleExpire: this.timeouts.sessionIdleExpire,\n });\n\n if (expired) {\n return;\n }\n\n if (breadcrumb) {\n this._createCustomBreadcrumb(breadcrumb);\n }\n\n // Send replay when the page/tab becomes hidden. There is no reason to send\n // replay if it becomes visible, since no actions we care about were done\n // while it was hidden\n // This should never reject\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n void this.conditionalFlush();\n }\n\n /**\n * Tasks to run when we consider a page to be visible (via focus and/or visibility)\n */\n private _doChangeToForegroundTasks(breadcrumb?: ReplayBreadcrumbFrame): void {\n if (!this.session) {\n return;\n }\n\n const isSessionActive = this.checkAndHandleExpiredSession();\n\n if (!isSessionActive) {\n // If the user has come back to the page within SESSION_IDLE_PAUSE_DURATION\n // ms, we will re-use the existing session, otherwise create a new\n // session\n logInfo('[Replay] Document has become active, but session has expired');\n return;\n }\n\n if (breadcrumb) {\n this._createCustomBreadcrumb(breadcrumb);\n }\n }\n\n /**\n * Update user activity (across session lifespans)\n */\n private _updateUserActivity(_lastActivity: number = Date.now()): void {\n this._lastActivity = _lastActivity;\n }\n\n /**\n * Updates the session's last activity timestamp\n */\n private _updateSessionActivity(_lastActivity: number = Date.now()): void {\n if (this.session) {\n this.session.lastActivity = _lastActivity;\n this._maybeSaveSession();\n }\n }\n\n /**\n * Helper to create (and buffer) a replay breadcrumb from a core SDK breadcrumb\n */\n private _createCustomBreadcrumb(breadcrumb: ReplayBreadcrumbFrame): void {\n this.addUpdate(() => {\n // This should never reject\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.throttledAddEvent({\n type: EventType.Custom,\n timestamp: breadcrumb.timestamp || 0,\n data: {\n tag: 'breadcrumb',\n payload: breadcrumb,\n },\n });\n });\n }\n\n /**\n * Observed performance events are added to `this.performanceEntries`. These\n * are included in the replay event before it is finished and sent to Sentry.\n */\n private _addPerformanceEntries(): Promise> {\n const performanceEntries = createPerformanceEntries(this.performanceEntries).concat(this.replayPerformanceEntries);\n\n this.performanceEntries = [];\n this.replayPerformanceEntries = [];\n\n return Promise.all(createPerformanceSpans(this, performanceEntries));\n }\n\n /**\n * Clear _context\n */\n private _clearContext(): void {\n // XXX: `initialTimestamp` and `initialUrl` do not get cleared\n this._context.errorIds.clear();\n this._context.traceIds.clear();\n this._context.urls = [];\n }\n\n /** Update the initial timestamp based on the buffer content. */\n private _updateInitialTimestampFromEventBuffer(): void {\n const { session, eventBuffer } = this;\n if (!session || !eventBuffer) {\n return;\n }\n\n // we only ever update this on the initial segment\n if (session.segmentId) {\n return;\n }\n\n const earliestEvent = eventBuffer.getEarliestTimestamp();\n if (earliestEvent && earliestEvent < this._context.initialTimestamp) {\n this._context.initialTimestamp = earliestEvent;\n }\n }\n\n /**\n * Return and clear _context\n */\n private _popEventContext(): PopEventContext {\n const _context = {\n initialTimestamp: this._context.initialTimestamp,\n initialUrl: this._context.initialUrl,\n errorIds: Array.from(this._context.errorIds),\n traceIds: Array.from(this._context.traceIds),\n urls: this._context.urls,\n };\n\n this._clearContext();\n\n return _context;\n }\n\n /**\n * Flushes replay event buffer to Sentry.\n *\n * Performance events are only added right before flushing - this is\n * due to the buffered performance observer events.\n *\n * Should never be called directly, only by `flush`\n */\n private async _runFlush(): Promise {\n const replayId = this.getSessionId();\n\n if (!this.session || !this.eventBuffer || !replayId) {\n DEBUG_BUILD && logger.error('[Replay] No session or eventBuffer found to flush.');\n return;\n }\n\n await this._addPerformanceEntries();\n\n // Check eventBuffer again, as it could have been stopped in the meanwhile\n if (!this.eventBuffer || !this.eventBuffer.hasEvents) {\n return;\n }\n\n // Only attach memory event if eventBuffer is not empty\n await addMemoryEntry(this);\n\n // Check eventBuffer again, as it could have been stopped in the meanwhile\n if (!this.eventBuffer) {\n return;\n }\n\n // if this changed in the meanwhile, e.g. because the session was refreshed or similar, we abort here\n if (replayId !== this.getSessionId()) {\n return;\n }\n\n try {\n // This uses the data from the eventBuffer, so we need to call this before `finish()\n this._updateInitialTimestampFromEventBuffer();\n\n const timestamp = Date.now();\n\n // Check total duration again, to avoid sending outdated stuff\n // We leave 30s wiggle room to accomodate late flushing etc.\n // This _could_ happen when the browser is suspended during flushing, in which case we just want to stop\n if (timestamp - this._context.initialTimestamp > this._options.maxReplayDuration + 30_000) {\n throw new Error('Session is too long, not sending replay');\n }\n\n const eventContext = this._popEventContext();\n // Always increment segmentId regardless of outcome of sending replay\n const segmentId = this.session.segmentId++;\n this._maybeSaveSession();\n\n // Note this empties the event buffer regardless of outcome of sending replay\n const recordingData = await this.eventBuffer.finish();\n\n await sendReplay({\n replayId,\n recordingData,\n segmentId,\n eventContext,\n session: this.session,\n options: this.getOptions(),\n timestamp,\n });\n } catch (err) {\n this._handleException(err);\n\n // This means we retried 3 times and all of them failed,\n // or we ran into a problem we don't want to retry, like rate limiting.\n // In this case, we want to completely stop the replay - otherwise, we may get inconsistent segments\n // This should never reject\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.stop({ reason: 'sendReplay' });\n\n const client = getClient();\n\n if (client) {\n client.recordDroppedEvent('send_error', 'replay');\n }\n }\n }\n\n /**\n * Flush recording data to Sentry. Creates a lock so that only a single flush\n * can be active at a time. Do not call this directly.\n */\n private _flush = async ({\n force = false,\n }: {\n /**\n * If true, flush while ignoring the `_isEnabled` state of\n * Replay integration. (By default, flush is noop if integration\n * is stopped).\n */\n force?: boolean;\n } = {}): Promise => {\n if (!this._isEnabled && !force) {\n // This can happen if e.g. the replay was stopped because of exceeding the retry limit\n return;\n }\n\n if (!this.checkAndHandleExpiredSession()) {\n DEBUG_BUILD && logger.error('[Replay] Attempting to finish replay event after session expired.');\n return;\n }\n\n if (!this.session) {\n // should never happen, as we would have bailed out before\n return;\n }\n\n const start = this.session.started;\n const now = Date.now();\n const duration = now - start;\n\n // A flush is about to happen, cancel any queued flushes\n this._debouncedFlush.cancel();\n\n // If session is too short, or too long (allow some wiggle room over maxReplayDuration), do not send it\n // This _should_ not happen, but it may happen if flush is triggered due to a page activity change or similar\n const tooShort = duration < this._options.minReplayDuration;\n const tooLong = duration > this._options.maxReplayDuration + 5_000;\n if (tooShort || tooLong) {\n logInfo(\n `[Replay] Session duration (${Math.floor(duration / 1000)}s) is too ${\n tooShort ? 'short' : 'long'\n }, not sending replay.`,\n this._options._experiments.traceInternals,\n );\n\n if (tooShort) {\n this._debouncedFlush();\n }\n return;\n }\n\n const eventBuffer = this.eventBuffer;\n if (eventBuffer && this.session.segmentId === 0 && !eventBuffer.hasCheckout) {\n logInfo('[Replay] Flushing initial segment without checkout.', this._options._experiments.traceInternals);\n // TODO FN: Evaluate if we want to stop here, or remove this again?\n }\n\n // this._flushLock acts as a lock so that future calls to `_flush()`\n // will be blocked until this promise resolves\n if (!this._flushLock) {\n this._flushLock = this._runFlush();\n await this._flushLock;\n this._flushLock = undefined;\n return;\n }\n\n // Wait for previous flush to finish, then call the debounced `_flush()`.\n // It's possible there are other flush requests queued and waiting for it\n // to resolve. We want to reduce all outstanding requests (as well as any\n // new flush requests that occur within a second of the locked flush\n // completing) into a single flush.\n\n try {\n await this._flushLock;\n } catch (err) {\n DEBUG_BUILD && logger.error(err);\n } finally {\n this._debouncedFlush();\n }\n };\n\n /** Save the session, if it is sticky */\n private _maybeSaveSession(): void {\n if (this.session && this._options.stickySession) {\n saveSession(this.session);\n }\n }\n\n /** Handler for rrweb.record.onMutation */\n private _onMutationHandler = (mutations: unknown[]): boolean => {\n const count = mutations.length;\n\n const mutationLimit = this._options.mutationLimit;\n const mutationBreadcrumbLimit = this._options.mutationBreadcrumbLimit;\n const overMutationLimit = mutationLimit && count > mutationLimit;\n\n // Create a breadcrumb if a lot of mutations happen at the same time\n // We can show this in the UI as an information with potential performance improvements\n if (count > mutationBreadcrumbLimit || overMutationLimit) {\n const breadcrumb = createBreadcrumb({\n category: 'replay.mutations',\n data: {\n count,\n limit: overMutationLimit,\n },\n });\n this._createCustomBreadcrumb(breadcrumb);\n }\n\n // Stop replay if over the mutation limit\n if (overMutationLimit) {\n // This should never reject\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.stop({ reason: 'mutationLimit', forceFlush: this.recordingMode === 'session' });\n return false;\n }\n\n // `true` means we use the regular mutation handling by rrweb\n return true;\n };\n}\n", "import { consoleSandbox } from '@sentry/utils';\n\nimport type { DeprecatedPrivacyOptions, ReplayIntegrationPrivacyOptions } from '../types';\n\ntype GetPrivacyOptions = Required> &\n Omit;\ninterface GetPrivacyReturn {\n maskTextSelector: string;\n unmaskTextSelector: string;\n blockSelector: string;\n unblockSelector: string;\n ignoreSelector: string;\n\n blockClass?: RegExp;\n maskTextClass?: RegExp;\n}\n\nfunction getOption(\n selectors: string[],\n defaultSelectors: string[],\n deprecatedClassOption?: string | RegExp,\n deprecatedSelectorOption?: string,\n): string {\n const deprecatedSelectors = typeof deprecatedSelectorOption === 'string' ? deprecatedSelectorOption.split(',') : [];\n\n const allSelectors = [\n ...selectors,\n // @deprecated\n ...deprecatedSelectors,\n\n // sentry defaults\n ...defaultSelectors,\n ];\n\n // @deprecated\n if (typeof deprecatedClassOption !== 'undefined') {\n // NOTE: No support for RegExp\n if (typeof deprecatedClassOption === 'string') {\n allSelectors.push(`.${deprecatedClassOption}`);\n }\n\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.warn(\n '[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.',\n );\n });\n }\n\n return allSelectors.join(',');\n}\n\n/**\n * Returns privacy related configuration for use in rrweb\n */\nexport function getPrivacyOptions({\n mask,\n unmask,\n block,\n unblock,\n ignore,\n\n // eslint-disable-next-line deprecation/deprecation\n blockClass,\n // eslint-disable-next-line deprecation/deprecation\n blockSelector,\n // eslint-disable-next-line deprecation/deprecation\n maskTextClass,\n // eslint-disable-next-line deprecation/deprecation\n maskTextSelector,\n // eslint-disable-next-line deprecation/deprecation\n ignoreClass,\n}: GetPrivacyOptions): GetPrivacyReturn {\n const defaultBlockedElements = ['base[href=\"/\"]'];\n\n const maskSelector = getOption(mask, ['.sentry-mask', '[data-sentry-mask]'], maskTextClass, maskTextSelector);\n const unmaskSelector = getOption(unmask, ['.sentry-unmask', '[data-sentry-unmask]']);\n\n const options: GetPrivacyReturn = {\n // We are making the decision to make text and input selectors the same\n maskTextSelector: maskSelector,\n unmaskTextSelector: unmaskSelector,\n\n blockSelector: getOption(\n block,\n ['.sentry-block', '[data-sentry-block]', ...defaultBlockedElements],\n blockClass,\n blockSelector,\n ),\n unblockSelector: getOption(unblock, ['.sentry-unblock', '[data-sentry-unblock]']),\n ignoreSelector: getOption(ignore, ['.sentry-ignore', '[data-sentry-ignore]', 'input[type=\"file\"]'], ignoreClass),\n };\n\n if (blockClass instanceof RegExp) {\n options.blockClass = blockClass;\n }\n\n if (maskTextClass instanceof RegExp) {\n options.maskTextClass = maskTextClass;\n }\n\n return options;\n}\n", "import type { getPrivacyOptions } from './getPrivacyOptions';\n\ninterface MaskAttributeParams {\n maskAttributes: string[];\n maskAllText: boolean;\n privacyOptions: ReturnType;\n key: string;\n value: string;\n el: HTMLElement;\n}\n\n/**\n * Masks an attribute if necessary, otherwise return attribute value as-is.\n */\nexport function maskAttribute({\n el,\n key,\n maskAttributes,\n maskAllText,\n privacyOptions,\n value,\n}: MaskAttributeParams): string {\n // We only mask attributes if `maskAllText` is true\n if (!maskAllText) {\n return value;\n }\n\n // unmaskTextSelector takes precendence\n if (privacyOptions.unmaskTextSelector && el.matches(privacyOptions.unmaskTextSelector)) {\n return value;\n }\n\n if (\n maskAttributes.includes(key) ||\n // Need to mask `value` attribute for `` if it's a button-like\n // type\n (key === 'value' && el.tagName === 'INPUT' && ['submit', 'button'].includes(el.getAttribute('type') || ''))\n ) {\n return value.replace(/[\\S]/g, '*');\n }\n\n return value;\n}\n", "import { getClient } from '@sentry/core';\nimport type { BrowserClientReplayOptions, Integration, IntegrationFn } from '@sentry/types';\nimport { consoleSandbox, dropUndefinedKeys, isBrowser } from '@sentry/utils';\n\nimport {\n DEFAULT_FLUSH_MAX_DELAY,\n DEFAULT_FLUSH_MIN_DELAY,\n MAX_REPLAY_DURATION,\n MIN_REPLAY_DURATION,\n MIN_REPLAY_DURATION_LIMIT,\n} from './constants';\nimport { ReplayContainer } from './replay';\nimport type {\n RecordingOptions,\n ReplayCanvasIntegrationOptions,\n ReplayConfiguration,\n ReplayPluginOptions,\n SendBufferedReplayOptions,\n} from './types';\nimport { getPrivacyOptions } from './util/getPrivacyOptions';\nimport { maskAttribute } from './util/maskAttribute';\n\nconst MEDIA_SELECTORS =\n 'img,image,svg,video,object,picture,embed,map,audio,link[rel=\"icon\"],link[rel=\"apple-touch-icon\"]';\n\nconst DEFAULT_NETWORK_HEADERS = ['content-length', 'content-type', 'accept'];\n\nlet _initialized = false;\n\ntype InitialReplayPluginOptions = Omit &\n Partial>;\n\nexport const replayIntegration = ((options?: ReplayConfiguration) => {\n // eslint-disable-next-line deprecation/deprecation\n return new Replay(options);\n}) satisfies IntegrationFn;\n\n/**\n * The main replay integration class, to be passed to `init({ integrations: [] })`.\n * @deprecated Use `replayIntegration()` instead.\n */\nexport class Replay implements Integration {\n /**\n * @inheritDoc\n */\n public static id: string = 'Replay';\n\n /**\n * @inheritDoc\n */\n public name: string;\n\n /**\n * Options to pass to `rrweb.record()`\n */\n private readonly _recordingOptions: RecordingOptions;\n\n /**\n * Initial options passed to the replay integration, merged with default values.\n * Note: `sessionSampleRate` and `errorSampleRate` are not required here, as they\n * can only be finally set when setupOnce() is called.\n *\n * @private\n */\n private readonly _initialOptions: InitialReplayPluginOptions;\n\n private _replay?: ReplayContainer;\n\n public constructor({\n flushMinDelay = DEFAULT_FLUSH_MIN_DELAY,\n flushMaxDelay = DEFAULT_FLUSH_MAX_DELAY,\n minReplayDuration = MIN_REPLAY_DURATION,\n maxReplayDuration = MAX_REPLAY_DURATION,\n stickySession = true,\n useCompression = true,\n workerUrl,\n _experiments = {},\n sessionSampleRate,\n errorSampleRate,\n maskAllText = true,\n maskAllInputs = true,\n blockAllMedia = true,\n\n mutationBreadcrumbLimit = 750,\n mutationLimit = 10_000,\n\n slowClickTimeout = 7_000,\n slowClickIgnoreSelectors = [],\n\n networkDetailAllowUrls = [],\n networkDetailDenyUrls = [],\n networkCaptureBodies = true,\n networkRequestHeaders = [],\n networkResponseHeaders = [],\n\n mask = [],\n maskAttributes = ['title', 'placeholder'],\n unmask = [],\n block = [],\n unblock = [],\n ignore = [],\n maskFn,\n\n beforeAddRecordingEvent,\n beforeErrorSampling,\n\n // eslint-disable-next-line deprecation/deprecation\n blockClass,\n // eslint-disable-next-line deprecation/deprecation\n blockSelector,\n // eslint-disable-next-line deprecation/deprecation\n maskInputOptions,\n // eslint-disable-next-line deprecation/deprecation\n maskTextClass,\n // eslint-disable-next-line deprecation/deprecation\n maskTextSelector,\n // eslint-disable-next-line deprecation/deprecation\n ignoreClass,\n }: ReplayConfiguration = {}) {\n // eslint-disable-next-line deprecation/deprecation\n this.name = Replay.id;\n\n const privacyOptions = getPrivacyOptions({\n mask,\n unmask,\n block,\n unblock,\n ignore,\n blockClass,\n blockSelector,\n maskTextClass,\n maskTextSelector,\n ignoreClass,\n });\n\n this._recordingOptions = {\n maskAllInputs,\n maskAllText,\n maskInputOptions: { ...(maskInputOptions || {}), password: true },\n maskTextFn: maskFn,\n maskInputFn: maskFn,\n maskAttributeFn: (key: string, value: string, el: HTMLElement): string =>\n maskAttribute({\n maskAttributes,\n maskAllText,\n privacyOptions,\n key,\n value,\n el,\n }),\n\n ...privacyOptions,\n\n // Our defaults\n slimDOMOptions: 'all',\n inlineStylesheet: true,\n // Disable inline images as it will increase segment/replay size\n inlineImages: false,\n // collect fonts, but be aware that `sentry.io` needs to be an allowed\n // origin for playback\n collectFonts: true,\n errorHandler: (err: Error & { __rrweb__?: boolean }) => {\n try {\n err.__rrweb__ = true;\n } catch (error) {\n // ignore errors here\n // this can happen if the error is frozen or does not allow mutation for other reasons\n }\n },\n };\n\n this._initialOptions = {\n flushMinDelay,\n flushMaxDelay,\n minReplayDuration: Math.min(minReplayDuration, MIN_REPLAY_DURATION_LIMIT),\n maxReplayDuration: Math.min(maxReplayDuration, MAX_REPLAY_DURATION),\n stickySession,\n sessionSampleRate,\n errorSampleRate,\n useCompression,\n workerUrl,\n blockAllMedia,\n maskAllInputs,\n maskAllText,\n mutationBreadcrumbLimit,\n mutationLimit,\n slowClickTimeout,\n slowClickIgnoreSelectors,\n networkDetailAllowUrls,\n networkDetailDenyUrls,\n networkCaptureBodies,\n networkRequestHeaders: _getMergedNetworkHeaders(networkRequestHeaders),\n networkResponseHeaders: _getMergedNetworkHeaders(networkResponseHeaders),\n beforeAddRecordingEvent,\n beforeErrorSampling,\n\n _experiments,\n };\n\n if (typeof sessionSampleRate === 'number') {\n // eslint-disable-next-line\n console.warn(\n `[Replay] You are passing \\`sessionSampleRate\\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \\`replaysSessionSampleRate\\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${sessionSampleRate} })`,\n );\n\n this._initialOptions.sessionSampleRate = sessionSampleRate;\n }\n\n if (typeof errorSampleRate === 'number') {\n // eslint-disable-next-line\n console.warn(\n `[Replay] You are passing \\`errorSampleRate\\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \\`replaysOnErrorSampleRate\\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${errorSampleRate} })`,\n );\n\n this._initialOptions.errorSampleRate = errorSampleRate;\n }\n\n if (this._initialOptions.blockAllMedia) {\n // `blockAllMedia` is a more user friendly option to configure blocking\n // embedded media elements\n this._recordingOptions.blockSelector = !this._recordingOptions.blockSelector\n ? MEDIA_SELECTORS\n : `${this._recordingOptions.blockSelector},${MEDIA_SELECTORS}`;\n }\n\n if (this._isInitialized && isBrowser()) {\n throw new Error('Multiple Sentry Session Replay instances are not supported');\n }\n\n this._isInitialized = true;\n }\n\n /** If replay has already been initialized */\n protected get _isInitialized(): boolean {\n return _initialized;\n }\n\n /** Update _isInitialized */\n protected set _isInitialized(value: boolean) {\n _initialized = value;\n }\n\n /**\n * Setup and initialize replay container\n */\n public setupOnce(): void {\n if (!isBrowser()) {\n return;\n }\n\n this._setup();\n\n // Once upon a time, we tried to create a transaction in `setupOnce` and it would\n // potentially create a transaction before some native SDK integrations have run\n // and applied their own global event processor. An example is:\n // https://github.com/getsentry/sentry-javascript/blob/b47ceafbdac7f8b99093ce6023726ad4687edc48/packages/browser/src/integrations/useragent.ts\n //\n // So we call `this._initialize()` in next event loop as a workaround to wait for other\n // global event processors to finish. This is no longer needed, but keeping it\n // here to avoid any future issues.\n setTimeout(() => this._initialize());\n }\n\n /**\n * Start a replay regardless of sampling rate. Calling this will always\n * create a new session. Will throw an error if replay is already in progress.\n *\n * Creates or loads a session, attaches listeners to varying events (DOM,\n * PerformanceObserver, Recording, Sentry SDK, etc)\n */\n public start(): void {\n if (!this._replay) {\n return;\n }\n\n this._replay.start();\n }\n\n /**\n * Start replay buffering. Buffers until `flush()` is called or, if\n * `replaysOnErrorSampleRate` > 0, until an error occurs.\n */\n public startBuffering(): void {\n if (!this._replay) {\n return;\n }\n\n this._replay.startBuffering();\n }\n\n /**\n * Currently, this needs to be manually called (e.g. for tests). Sentry SDK\n * does not support a teardown\n */\n public stop(): Promise {\n if (!this._replay) {\n return Promise.resolve();\n }\n\n return this._replay.stop({ forceFlush: this._replay.recordingMode === 'session' });\n }\n\n /**\n * If not in \"session\" recording mode, flush event buffer which will create a new replay.\n * Unless `continueRecording` is false, the replay will continue to record and\n * behave as a \"session\"-based replay.\n *\n * Otherwise, queue up a flush.\n */\n public flush(options?: SendBufferedReplayOptions): Promise {\n if (!this._replay || !this._replay.isEnabled()) {\n return Promise.resolve();\n }\n\n return this._replay.sendBufferedReplayOrFlush(options);\n }\n\n /**\n * Get the current session ID.\n */\n public getReplayId(): string | undefined {\n if (!this._replay || !this._replay.isEnabled()) {\n return;\n }\n\n return this._replay.getSessionId();\n }\n\n /**\n * Initializes replay.\n */\n protected _initialize(): void {\n if (!this._replay) {\n return;\n }\n\n // We have to run this in _initialize, because this runs in setTimeout\n // So when this runs all integrations have been added\n // Before this, we cannot access integrations on the client,\n // so we need to mutate the options here\n this._maybeLoadFromReplayCanvasIntegration();\n\n this._replay.initializeSampling();\n }\n\n /** Setup the integration. */\n private _setup(): void {\n // Client is not available in constructor, so we need to wait until setupOnce\n const finalOptions = loadReplayOptionsFromClient(this._initialOptions);\n\n this._replay = new ReplayContainer({\n options: finalOptions,\n recordingOptions: this._recordingOptions,\n });\n }\n\n /** Get canvas options from ReplayCanvas integration, if it is also added. */\n private _maybeLoadFromReplayCanvasIntegration(): void {\n // To save bundle size, we skip checking for stuff here\n // and instead just try-catch everything - as generally this should all be defined\n /* eslint-disable @typescript-eslint/no-non-null-assertion */\n try {\n const client = getClient()!;\n const canvasIntegration = client.getIntegrationByName!('ReplayCanvas') as Integration & {\n getOptions(): ReplayCanvasIntegrationOptions;\n };\n if (!canvasIntegration) {\n return;\n }\n\n this._replay!['_canvas'] = canvasIntegration.getOptions();\n } catch {\n // ignore errors here\n }\n /* eslint-enable @typescript-eslint/no-non-null-assertion */\n }\n}\n\n/** Parse Replay-related options from SDK options */\nfunction loadReplayOptionsFromClient(initialOptions: InitialReplayPluginOptions): ReplayPluginOptions {\n const client = getClient();\n const opt = client && (client.getOptions() as BrowserClientReplayOptions);\n\n const finalOptions = { sessionSampleRate: 0, errorSampleRate: 0, ...dropUndefinedKeys(initialOptions) };\n\n if (!opt) {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.warn('SDK client is not available.');\n });\n return finalOptions;\n }\n\n if (\n initialOptions.sessionSampleRate == null && // TODO remove once deprecated rates are removed\n initialOptions.errorSampleRate == null && // TODO remove once deprecated rates are removed\n opt.replaysSessionSampleRate == null &&\n opt.replaysOnErrorSampleRate == null\n ) {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.warn(\n 'Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.',\n );\n });\n }\n\n if (typeof opt.replaysSessionSampleRate === 'number') {\n finalOptions.sessionSampleRate = opt.replaysSessionSampleRate;\n }\n\n if (typeof opt.replaysOnErrorSampleRate === 'number') {\n finalOptions.errorSampleRate = opt.replaysOnErrorSampleRate;\n }\n\n return finalOptions;\n}\n\nfunction _getMergedNetworkHeaders(headers: string[]): string[] {\n return [...DEFAULT_NETWORK_HEADERS, ...headers.map(header => header.toLowerCase())];\n}\n", "import { getClient } from '@sentry/core';\nimport type { replayIntegration } from '../integration';\n\n/**\n * This is a small utility to get a type-safe instance of the Replay integration.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function getReplay(): ReturnType | undefined {\n const client = getClient();\n return (\n client && client.getIntegrationByName && client.getIntegrationByName>('Replay')\n );\n}\n", "// eslint-disable-next-line deprecation/deprecation\nimport { Replay as InternalReplay, replayIntegration as internalReplayIntegration } from './integration';\nimport type {\n CanvasManagerInterface as InternalCanvasManagerInterface,\n CanvasManagerOptions as InternalCanvasManagerOptions,\n ReplayBreadcrumbFrame as InternalReplayBreadcrumbFrame,\n ReplayBreadcrumbFrameEvent as InternalReplayBreadcrumbFrameEvent,\n ReplayConfiguration as InternalReplayConfiguration,\n ReplayEventType as InternalReplayEventType,\n ReplayEventWithTime as InternalReplayEventWithTime,\n ReplayFrame as InternalReplayFrame,\n ReplayFrameEvent as InternalReplayFrameEvent,\n ReplayOptionFrameEvent as InternalReplayOptionFrameEvent,\n ReplaySpanFrame as InternalReplaySpanFrame,\n ReplaySpanFrameEvent as InternalReplaySpanFrameEvent,\n} from './types';\nimport { getReplay as internalGetReplay } from './util/getReplay';\n\n/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */\nconst getReplay = internalGetReplay;\n\n/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */\nconst replayIntegration = internalReplayIntegration;\n\n/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */\n// eslint-disable-next-line deprecation/deprecation\nclass Replay extends InternalReplay {}\n\n// eslint-disable-next-line deprecation/deprecation\nexport { replayIntegration, getReplay, Replay, internalReplayIntegration, internalGetReplay, InternalReplay };\n\n/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */\ntype ReplayConfiguration = InternalReplayConfiguration;\n\n/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */\ntype ReplayEventType = InternalReplayEventType;\n\n/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */\ntype ReplayEventWithTime = InternalReplayEventWithTime;\n\n/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */\ntype ReplayBreadcrumbFrame = InternalReplayBreadcrumbFrame;\n\n/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */\ntype ReplayBreadcrumbFrameEvent = InternalReplayBreadcrumbFrameEvent;\n\n/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */\ntype ReplayOptionFrameEvent = InternalReplayOptionFrameEvent;\n\n/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */\ntype ReplayFrame = InternalReplayFrame;\n\n/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */\ntype ReplayFrameEvent = InternalReplayFrameEvent;\n\n/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */\ntype ReplaySpanFrame = InternalReplaySpanFrame;\n\n/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */\ntype ReplaySpanFrameEvent = InternalReplaySpanFrameEvent;\n\n/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */\ntype CanvasManagerInterface = InternalCanvasManagerInterface;\n\n/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */\ntype CanvasManagerOptions = InternalCanvasManagerOptions;\n\nexport type {\n // eslint-disable-next-line deprecation/deprecation\n CanvasManagerInterface,\n // eslint-disable-next-line deprecation/deprecation\n CanvasManagerOptions,\n // eslint-disable-next-line deprecation/deprecation\n ReplayBreadcrumbFrame,\n // eslint-disable-next-line deprecation/deprecation\n ReplayBreadcrumbFrameEvent,\n // eslint-disable-next-line deprecation/deprecation\n ReplayConfiguration,\n // eslint-disable-next-line deprecation/deprecation\n ReplayEventType,\n // eslint-disable-next-line deprecation/deprecation\n ReplayEventWithTime,\n // eslint-disable-next-line deprecation/deprecation\n ReplayFrame,\n // eslint-disable-next-line deprecation/deprecation\n ReplayFrameEvent,\n // eslint-disable-next-line deprecation/deprecation\n ReplayOptionFrameEvent,\n // eslint-disable-next-line deprecation/deprecation\n ReplaySpanFrame,\n // eslint-disable-next-line deprecation/deprecation\n ReplaySpanFrameEvent,\n InternalCanvasManagerInterface,\n InternalCanvasManagerOptions,\n InternalReplayBreadcrumbFrame,\n InternalReplayBreadcrumbFrameEvent,\n InternalReplayConfiguration,\n InternalReplayEventType,\n InternalReplayEventWithTime,\n InternalReplayFrame,\n InternalReplayFrameEvent,\n InternalReplayOptionFrameEvent,\n InternalReplaySpanFrame,\n InternalReplaySpanFrameEvent,\n};\n\n// TODO (v8): Remove deprecated types\nexport * from './types/deprecated';\n", "var NodeType;\r\n(function (NodeType) {\r\n NodeType[NodeType[\"Document\"] = 0] = \"Document\";\r\n NodeType[NodeType[\"DocumentType\"] = 1] = \"DocumentType\";\r\n NodeType[NodeType[\"Element\"] = 2] = \"Element\";\r\n NodeType[NodeType[\"Text\"] = 3] = \"Text\";\r\n NodeType[NodeType[\"CDATA\"] = 4] = \"CDATA\";\r\n NodeType[NodeType[\"Comment\"] = 5] = \"Comment\";\r\n})(NodeType || (NodeType = {}));\n\nfunction isElement(n) {\r\n return n.nodeType === n.ELEMENT_NODE;\r\n}\r\nfunction isShadowRoot(n) {\r\n const host = n?.host;\r\n return Boolean(host?.shadowRoot === n);\r\n}\r\nfunction isNativeShadowDom(shadowRoot) {\r\n return Object.prototype.toString.call(shadowRoot) === '[object ShadowRoot]';\r\n}\r\nfunction fixBrowserCompatibilityIssuesInCSS(cssText) {\r\n if (cssText.includes(' background-clip: text;') &&\r\n !cssText.includes(' -webkit-background-clip: text;')) {\r\n cssText = cssText.replace(' background-clip: text;', ' -webkit-background-clip: text; background-clip: text;');\r\n }\r\n return cssText;\r\n}\r\nfunction escapeImportStatement(rule) {\r\n const { cssText } = rule;\r\n if (cssText.split('\"').length < 3)\r\n return cssText;\r\n const statement = ['@import', `url(${JSON.stringify(rule.href)})`];\r\n if (rule.layerName === '') {\r\n statement.push(`layer`);\r\n }\r\n else if (rule.layerName) {\r\n statement.push(`layer(${rule.layerName})`);\r\n }\r\n if (rule.supportsText) {\r\n statement.push(`supports(${rule.supportsText})`);\r\n }\r\n if (rule.media.length) {\r\n statement.push(rule.media.mediaText);\r\n }\r\n return statement.join(' ') + ';';\r\n}\r\nfunction stringifyStylesheet(s) {\r\n try {\r\n const rules = s.rules || s.cssRules;\r\n return rules\r\n ? fixBrowserCompatibilityIssuesInCSS(Array.from(rules, stringifyRule).join(''))\r\n : null;\r\n }\r\n catch (error) {\r\n return null;\r\n }\r\n}\r\nfunction stringifyRule(rule) {\r\n let importStringified;\r\n if (isCSSImportRule(rule)) {\r\n try {\r\n importStringified =\r\n stringifyStylesheet(rule.styleSheet) ||\r\n escapeImportStatement(rule);\r\n }\r\n catch (error) {\r\n }\r\n }\r\n else if (isCSSStyleRule(rule) && rule.selectorText.includes(':')) {\r\n return fixSafariColons(rule.cssText);\r\n }\r\n return importStringified || rule.cssText;\r\n}\r\nfunction fixSafariColons(cssStringified) {\r\n const regex = /(\\[(?:[\\w-]+)[^\\\\])(:(?:[\\w-]+)\\])/gm;\r\n return cssStringified.replace(regex, '$1\\\\$2');\r\n}\r\nfunction isCSSImportRule(rule) {\r\n return 'styleSheet' in rule;\r\n}\r\nfunction isCSSStyleRule(rule) {\r\n return 'selectorText' in rule;\r\n}\r\nclass Mirror {\r\n constructor() {\r\n this.idNodeMap = new Map();\r\n this.nodeMetaMap = new WeakMap();\r\n }\r\n getId(n) {\r\n if (!n)\r\n return -1;\r\n const id = this.getMeta(n)?.id;\r\n return id ?? -1;\r\n }\r\n getNode(id) {\r\n return this.idNodeMap.get(id) || null;\r\n }\r\n getIds() {\r\n return Array.from(this.idNodeMap.keys());\r\n }\r\n getMeta(n) {\r\n return this.nodeMetaMap.get(n) || null;\r\n }\r\n removeNodeFromMap(n) {\r\n const id = this.getId(n);\r\n this.idNodeMap.delete(id);\r\n if (n.childNodes) {\r\n n.childNodes.forEach((childNode) => this.removeNodeFromMap(childNode));\r\n }\r\n }\r\n has(id) {\r\n return this.idNodeMap.has(id);\r\n }\r\n hasNode(node) {\r\n return this.nodeMetaMap.has(node);\r\n }\r\n add(n, meta) {\r\n const id = meta.id;\r\n this.idNodeMap.set(id, n);\r\n this.nodeMetaMap.set(n, meta);\r\n }\r\n replace(id, n) {\r\n const oldNode = this.getNode(id);\r\n if (oldNode) {\r\n const meta = this.nodeMetaMap.get(oldNode);\r\n if (meta)\r\n this.nodeMetaMap.set(n, meta);\r\n }\r\n this.idNodeMap.set(id, n);\r\n }\r\n reset() {\r\n this.idNodeMap = new Map();\r\n this.nodeMetaMap = new WeakMap();\r\n }\r\n}\r\nfunction createMirror() {\r\n return new Mirror();\r\n}\r\nfunction shouldMaskInput({ maskInputOptions, tagName, type, }) {\r\n if (tagName === 'OPTION') {\r\n tagName = 'SELECT';\r\n }\r\n return Boolean(maskInputOptions[tagName.toLowerCase()] ||\r\n (type && maskInputOptions[type]) ||\r\n type === 'password' ||\r\n (tagName === 'INPUT' && !type && maskInputOptions['text']));\r\n}\r\nfunction maskInputValue({ isMasked, element, value, maskInputFn, }) {\r\n let text = value || '';\r\n if (!isMasked) {\r\n return text;\r\n }\r\n if (maskInputFn) {\r\n text = maskInputFn(text, element);\r\n }\r\n return '*'.repeat(text.length);\r\n}\r\nfunction toLowerCase(str) {\r\n return str.toLowerCase();\r\n}\r\nfunction toUpperCase(str) {\r\n return str.toUpperCase();\r\n}\r\nconst ORIGINAL_ATTRIBUTE_NAME = '__rrweb_original__';\r\nfunction is2DCanvasBlank(canvas) {\r\n const ctx = canvas.getContext('2d');\r\n if (!ctx)\r\n return true;\r\n const chunkSize = 50;\r\n for (let x = 0; x < canvas.width; x += chunkSize) {\r\n for (let y = 0; y < canvas.height; y += chunkSize) {\r\n const getImageData = ctx.getImageData;\r\n const originalGetImageData = ORIGINAL_ATTRIBUTE_NAME in getImageData\r\n ? getImageData[ORIGINAL_ATTRIBUTE_NAME]\r\n : getImageData;\r\n const pixelBuffer = new Uint32Array(originalGetImageData.call(ctx, x, y, Math.min(chunkSize, canvas.width - x), Math.min(chunkSize, canvas.height - y)).data.buffer);\r\n if (pixelBuffer.some((pixel) => pixel !== 0))\r\n return false;\r\n }\r\n }\r\n return true;\r\n}\r\nfunction isNodeMetaEqual(a, b) {\r\n if (!a || !b || a.type !== b.type)\r\n return false;\r\n if (a.type === NodeType.Document)\r\n return a.compatMode === b.compatMode;\r\n else if (a.type === NodeType.DocumentType)\r\n return (a.name === b.name &&\r\n a.publicId === b.publicId &&\r\n a.systemId === b.systemId);\r\n else if (a.type === NodeType.Comment ||\r\n a.type === NodeType.Text ||\r\n a.type === NodeType.CDATA)\r\n return a.textContent === b.textContent;\r\n else if (a.type === NodeType.Element)\r\n return (a.tagName === b.tagName &&\r\n JSON.stringify(a.attributes) ===\r\n JSON.stringify(b.attributes) &&\r\n a.isSVG === b.isSVG &&\r\n a.needBlock === b.needBlock);\r\n return false;\r\n}\r\nfunction getInputType(element) {\r\n const type = element.type;\r\n return element.hasAttribute('data-rr-is-password')\r\n ? 'password'\r\n : type\r\n ?\r\n toLowerCase(type)\r\n : null;\r\n}\r\nfunction getInputValue(el, tagName, type) {\r\n if (tagName === 'INPUT' && (type === 'radio' || type === 'checkbox')) {\r\n return el.getAttribute('value') || '';\r\n }\r\n return el.value;\r\n}\n\nlet _id = 1;\r\nconst tagNameRegex = new RegExp('[^a-z0-9-_:]');\r\nconst IGNORED_NODE = -2;\r\nfunction genId() {\r\n return _id++;\r\n}\r\nfunction getValidTagName(element) {\r\n if (element instanceof HTMLFormElement) {\r\n return 'form';\r\n }\r\n const processedTagName = toLowerCase(element.tagName);\r\n if (tagNameRegex.test(processedTagName)) {\r\n return 'div';\r\n }\r\n return processedTagName;\r\n}\r\nfunction extractOrigin(url) {\r\n let origin = '';\r\n if (url.indexOf('//') > -1) {\r\n origin = url.split('/').slice(0, 3).join('/');\r\n }\r\n else {\r\n origin = url.split('/')[0];\r\n }\r\n origin = origin.split('?')[0];\r\n return origin;\r\n}\r\nlet canvasService;\r\nlet canvasCtx;\r\nconst URL_IN_CSS_REF = /url\\((?:(')([^']*)'|(\")(.*?)\"|([^)]*))\\)/gm;\r\nconst URL_PROTOCOL_MATCH = /^(?:[a-z+]+:)?\\/\\//i;\r\nconst URL_WWW_MATCH = /^www\\..*/i;\r\nconst DATA_URI = /^(data:)([^,]*),(.*)/i;\r\nfunction absoluteToStylesheet(cssText, href) {\r\n return (cssText || '').replace(URL_IN_CSS_REF, (origin, quote1, path1, quote2, path2, path3) => {\r\n const filePath = path1 || path2 || path3;\r\n const maybeQuote = quote1 || quote2 || '';\r\n if (!filePath) {\r\n return origin;\r\n }\r\n if (URL_PROTOCOL_MATCH.test(filePath) || URL_WWW_MATCH.test(filePath)) {\r\n return `url(${maybeQuote}${filePath}${maybeQuote})`;\r\n }\r\n if (DATA_URI.test(filePath)) {\r\n return `url(${maybeQuote}${filePath}${maybeQuote})`;\r\n }\r\n if (filePath[0] === '/') {\r\n return `url(${maybeQuote}${extractOrigin(href) + filePath}${maybeQuote})`;\r\n }\r\n const stack = href.split('/');\r\n const parts = filePath.split('/');\r\n stack.pop();\r\n for (const part of parts) {\r\n if (part === '.') {\r\n continue;\r\n }\r\n else if (part === '..') {\r\n stack.pop();\r\n }\r\n else {\r\n stack.push(part);\r\n }\r\n }\r\n return `url(${maybeQuote}${stack.join('/')}${maybeQuote})`;\r\n });\r\n}\r\nconst SRCSET_NOT_SPACES = /^[^ \\t\\n\\r\\u000c]+/;\r\nconst SRCSET_COMMAS_OR_SPACES = /^[, \\t\\n\\r\\u000c]+/;\r\nfunction getAbsoluteSrcsetString(doc, attributeValue) {\r\n if (attributeValue.trim() === '') {\r\n return attributeValue;\r\n }\r\n let pos = 0;\r\n function collectCharacters(regEx) {\r\n let chars;\r\n const match = regEx.exec(attributeValue.substring(pos));\r\n if (match) {\r\n chars = match[0];\r\n pos += chars.length;\r\n return chars;\r\n }\r\n return '';\r\n }\r\n const output = [];\r\n while (true) {\r\n collectCharacters(SRCSET_COMMAS_OR_SPACES);\r\n if (pos >= attributeValue.length) {\r\n break;\r\n }\r\n let url = collectCharacters(SRCSET_NOT_SPACES);\r\n if (url.slice(-1) === ',') {\r\n url = absoluteToDoc(doc, url.substring(0, url.length - 1));\r\n output.push(url);\r\n }\r\n else {\r\n let descriptorsStr = '';\r\n url = absoluteToDoc(doc, url);\r\n let inParens = false;\r\n while (true) {\r\n const c = attributeValue.charAt(pos);\r\n if (c === '') {\r\n output.push((url + descriptorsStr).trim());\r\n break;\r\n }\r\n else if (!inParens) {\r\n if (c === ',') {\r\n pos += 1;\r\n output.push((url + descriptorsStr).trim());\r\n break;\r\n }\r\n else if (c === '(') {\r\n inParens = true;\r\n }\r\n }\r\n else {\r\n if (c === ')') {\r\n inParens = false;\r\n }\r\n }\r\n descriptorsStr += c;\r\n pos += 1;\r\n }\r\n }\r\n }\r\n return output.join(', ');\r\n}\r\nfunction absoluteToDoc(doc, attributeValue) {\r\n if (!attributeValue || attributeValue.trim() === '') {\r\n return attributeValue;\r\n }\r\n const a = doc.createElement('a');\r\n a.href = attributeValue;\r\n return a.href;\r\n}\r\nfunction isSVGElement(el) {\r\n return Boolean(el.tagName === 'svg' || el.ownerSVGElement);\r\n}\r\nfunction getHref() {\r\n const a = document.createElement('a');\r\n a.href = '';\r\n return a.href;\r\n}\r\nfunction transformAttribute(doc, tagName, name, value, element, maskAttributeFn) {\r\n if (!value) {\r\n return value;\r\n }\r\n if (name === 'src' ||\r\n (name === 'href' && !(tagName === 'use' && value[0] === '#'))) {\r\n return absoluteToDoc(doc, value);\r\n }\r\n else if (name === 'xlink:href' && value[0] !== '#') {\r\n return absoluteToDoc(doc, value);\r\n }\r\n else if (name === 'background' &&\r\n (tagName === 'table' || tagName === 'td' || tagName === 'th')) {\r\n return absoluteToDoc(doc, value);\r\n }\r\n else if (name === 'srcset') {\r\n return getAbsoluteSrcsetString(doc, value);\r\n }\r\n else if (name === 'style') {\r\n return absoluteToStylesheet(value, getHref());\r\n }\r\n else if (tagName === 'object' && name === 'data') {\r\n return absoluteToDoc(doc, value);\r\n }\r\n if (typeof maskAttributeFn === 'function') {\r\n return maskAttributeFn(name, value, element);\r\n }\r\n return value;\r\n}\r\nfunction ignoreAttribute(tagName, name, _value) {\r\n return (tagName === 'video' || tagName === 'audio') && name === 'autoplay';\r\n}\r\nfunction _isBlockedElement(element, blockClass, blockSelector, unblockSelector) {\r\n try {\r\n if (unblockSelector && element.matches(unblockSelector)) {\r\n return false;\r\n }\r\n if (typeof blockClass === 'string') {\r\n if (element.classList.contains(blockClass)) {\r\n return true;\r\n }\r\n }\r\n else {\r\n for (let eIndex = element.classList.length; eIndex--;) {\r\n const className = element.classList[eIndex];\r\n if (blockClass.test(className)) {\r\n return true;\r\n }\r\n }\r\n }\r\n if (blockSelector) {\r\n return element.matches(blockSelector);\r\n }\r\n }\r\n catch (e) {\r\n }\r\n return false;\r\n}\r\nfunction elementClassMatchesRegex(el, regex) {\r\n for (let eIndex = el.classList.length; eIndex--;) {\r\n const className = el.classList[eIndex];\r\n if (regex.test(className)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n}\r\nfunction distanceToMatch(node, matchPredicate, limit = Infinity, distance = 0) {\r\n if (!node)\r\n return -1;\r\n if (node.nodeType !== node.ELEMENT_NODE)\r\n return -1;\r\n if (distance > limit)\r\n return -1;\r\n if (matchPredicate(node))\r\n return distance;\r\n return distanceToMatch(node.parentNode, matchPredicate, limit, distance + 1);\r\n}\r\nfunction createMatchPredicate(className, selector) {\r\n return (node) => {\r\n const el = node;\r\n if (el === null)\r\n return false;\r\n try {\r\n if (className) {\r\n if (typeof className === 'string') {\r\n if (el.matches(`.${className}`))\r\n return true;\r\n }\r\n else if (elementClassMatchesRegex(el, className)) {\r\n return true;\r\n }\r\n }\r\n if (selector && el.matches(selector))\r\n return true;\r\n return false;\r\n }\r\n catch {\r\n return false;\r\n }\r\n };\r\n}\r\nfunction needMaskingText(node, maskTextClass, maskTextSelector, unmaskTextClass, unmaskTextSelector, maskAllText) {\r\n try {\r\n const el = node.nodeType === node.ELEMENT_NODE\r\n ? node\r\n : node.parentElement;\r\n if (el === null)\r\n return false;\r\n if (el.tagName === 'INPUT') {\r\n const autocomplete = el.getAttribute('autocomplete');\r\n const disallowedAutocompleteValues = [\r\n 'current-password',\r\n 'new-password',\r\n 'cc-number',\r\n 'cc-exp',\r\n 'cc-exp-month',\r\n 'cc-exp-year',\r\n 'cc-csc',\r\n ];\r\n if (disallowedAutocompleteValues.includes(autocomplete)) {\r\n return true;\r\n }\r\n }\r\n let maskDistance = -1;\r\n let unmaskDistance = -1;\r\n if (maskAllText) {\r\n unmaskDistance = distanceToMatch(el, createMatchPredicate(unmaskTextClass, unmaskTextSelector));\r\n if (unmaskDistance < 0) {\r\n return true;\r\n }\r\n maskDistance = distanceToMatch(el, createMatchPredicate(maskTextClass, maskTextSelector), unmaskDistance >= 0 ? unmaskDistance : Infinity);\r\n }\r\n else {\r\n maskDistance = distanceToMatch(el, createMatchPredicate(maskTextClass, maskTextSelector));\r\n if (maskDistance < 0) {\r\n return false;\r\n }\r\n unmaskDistance = distanceToMatch(el, createMatchPredicate(unmaskTextClass, unmaskTextSelector), maskDistance >= 0 ? maskDistance : Infinity);\r\n }\r\n return maskDistance >= 0\r\n ? unmaskDistance >= 0\r\n ? maskDistance <= unmaskDistance\r\n : true\r\n : unmaskDistance >= 0\r\n ? false\r\n : !!maskAllText;\r\n }\r\n catch (e) {\r\n }\r\n return !!maskAllText;\r\n}\r\nfunction onceIframeLoaded(iframeEl, listener, iframeLoadTimeout) {\r\n const win = iframeEl.contentWindow;\r\n if (!win) {\r\n return;\r\n }\r\n let fired = false;\r\n let readyState;\r\n try {\r\n readyState = win.document.readyState;\r\n }\r\n catch (error) {\r\n return;\r\n }\r\n if (readyState !== 'complete') {\r\n const timer = setTimeout(() => {\r\n if (!fired) {\r\n listener();\r\n fired = true;\r\n }\r\n }, iframeLoadTimeout);\r\n iframeEl.addEventListener('load', () => {\r\n clearTimeout(timer);\r\n fired = true;\r\n listener();\r\n });\r\n return;\r\n }\r\n const blankUrl = 'about:blank';\r\n if (win.location.href !== blankUrl ||\r\n iframeEl.src === blankUrl ||\r\n iframeEl.src === '') {\r\n setTimeout(listener, 0);\r\n return iframeEl.addEventListener('load', listener);\r\n }\r\n iframeEl.addEventListener('load', listener);\r\n}\r\nfunction onceStylesheetLoaded(link, listener, styleSheetLoadTimeout) {\r\n let fired = false;\r\n let styleSheetLoaded;\r\n try {\r\n styleSheetLoaded = link.sheet;\r\n }\r\n catch (error) {\r\n return;\r\n }\r\n if (styleSheetLoaded)\r\n return;\r\n const timer = setTimeout(() => {\r\n if (!fired) {\r\n listener();\r\n fired = true;\r\n }\r\n }, styleSheetLoadTimeout);\r\n link.addEventListener('load', () => {\r\n clearTimeout(timer);\r\n fired = true;\r\n listener();\r\n });\r\n}\r\nfunction serializeNode(n, options) {\r\n const { doc, mirror, blockClass, blockSelector, unblockSelector, maskAllText, maskAttributeFn, maskTextClass, unmaskTextClass, maskTextSelector, unmaskTextSelector, inlineStylesheet, maskInputOptions = {}, maskTextFn, maskInputFn, dataURLOptions = {}, inlineImages, recordCanvas, keepIframeSrcFn, newlyAddedElement = false, } = options;\r\n const rootId = getRootId(doc, mirror);\r\n switch (n.nodeType) {\r\n case n.DOCUMENT_NODE:\r\n if (n.compatMode !== 'CSS1Compat') {\r\n return {\r\n type: NodeType.Document,\r\n childNodes: [],\r\n compatMode: n.compatMode,\r\n };\r\n }\r\n else {\r\n return {\r\n type: NodeType.Document,\r\n childNodes: [],\r\n };\r\n }\r\n case n.DOCUMENT_TYPE_NODE:\r\n return {\r\n type: NodeType.DocumentType,\r\n name: n.name,\r\n publicId: n.publicId,\r\n systemId: n.systemId,\r\n rootId,\r\n };\r\n case n.ELEMENT_NODE:\r\n return serializeElementNode(n, {\r\n doc,\r\n blockClass,\r\n blockSelector,\r\n unblockSelector,\r\n inlineStylesheet,\r\n maskAttributeFn,\r\n maskInputOptions,\r\n maskInputFn,\r\n dataURLOptions,\r\n inlineImages,\r\n recordCanvas,\r\n keepIframeSrcFn,\r\n newlyAddedElement,\r\n rootId,\r\n maskAllText,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n });\r\n case n.TEXT_NODE:\r\n return serializeTextNode(n, {\r\n maskAllText,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n maskTextFn,\r\n maskInputOptions,\r\n maskInputFn,\r\n rootId,\r\n });\r\n case n.CDATA_SECTION_NODE:\r\n return {\r\n type: NodeType.CDATA,\r\n textContent: '',\r\n rootId,\r\n };\r\n case n.COMMENT_NODE:\r\n return {\r\n type: NodeType.Comment,\r\n textContent: n.textContent || '',\r\n rootId,\r\n };\r\n default:\r\n return false;\r\n }\r\n}\r\nfunction getRootId(doc, mirror) {\r\n if (!mirror.hasNode(doc))\r\n return undefined;\r\n const docId = mirror.getId(doc);\r\n return docId === 1 ? undefined : docId;\r\n}\r\nfunction serializeTextNode(n, options) {\r\n const { maskAllText, maskTextClass, unmaskTextClass, maskTextSelector, unmaskTextSelector, maskTextFn, maskInputOptions, maskInputFn, rootId, } = options;\r\n const parentTagName = n.parentNode && n.parentNode.tagName;\r\n let textContent = n.textContent;\r\n const isStyle = parentTagName === 'STYLE' ? true : undefined;\r\n const isScript = parentTagName === 'SCRIPT' ? true : undefined;\r\n const isTextarea = parentTagName === 'TEXTAREA' ? true : undefined;\r\n if (isStyle && textContent) {\r\n try {\r\n if (n.nextSibling || n.previousSibling) {\r\n }\r\n else if (n.parentNode.sheet?.cssRules) {\r\n textContent = stringifyStylesheet(n.parentNode.sheet);\r\n }\r\n }\r\n catch (err) {\r\n console.warn(`Cannot get CSS styles from text's parentNode. Error: ${err}`, n);\r\n }\r\n textContent = absoluteToStylesheet(textContent, getHref());\r\n }\r\n if (isScript) {\r\n textContent = 'SCRIPT_PLACEHOLDER';\r\n }\r\n const forceMask = needMaskingText(n, maskTextClass, maskTextSelector, unmaskTextClass, unmaskTextSelector, maskAllText);\r\n if (!isStyle && !isScript && !isTextarea && textContent && forceMask) {\r\n textContent = maskTextFn\r\n ? maskTextFn(textContent, n.parentElement)\r\n : textContent.replace(/[\\S]/g, '*');\r\n }\r\n if (isTextarea && textContent && (maskInputOptions.textarea || forceMask)) {\r\n textContent = maskInputFn\r\n ? maskInputFn(textContent, n.parentNode)\r\n : textContent.replace(/[\\S]/g, '*');\r\n }\r\n if (parentTagName === 'OPTION' && textContent) {\r\n const isInputMasked = shouldMaskInput({\r\n type: null,\r\n tagName: parentTagName,\r\n maskInputOptions,\r\n });\r\n textContent = maskInputValue({\r\n isMasked: needMaskingText(n, maskTextClass, maskTextSelector, unmaskTextClass, unmaskTextSelector, isInputMasked),\r\n element: n,\r\n value: textContent,\r\n maskInputFn,\r\n });\r\n }\r\n return {\r\n type: NodeType.Text,\r\n textContent: textContent || '',\r\n isStyle,\r\n rootId,\r\n };\r\n}\r\nfunction serializeElementNode(n, options) {\r\n const { doc, blockClass, blockSelector, unblockSelector, inlineStylesheet, maskInputOptions = {}, maskAttributeFn, maskInputFn, dataURLOptions = {}, inlineImages, recordCanvas, keepIframeSrcFn, newlyAddedElement = false, rootId, maskAllText, maskTextClass, unmaskTextClass, maskTextSelector, unmaskTextSelector, } = options;\r\n const needBlock = _isBlockedElement(n, blockClass, blockSelector, unblockSelector);\r\n const tagName = getValidTagName(n);\r\n let attributes = {};\r\n const len = n.attributes.length;\r\n for (let i = 0; i < len; i++) {\r\n const attr = n.attributes[i];\r\n if (attr.name && !ignoreAttribute(tagName, attr.name, attr.value)) {\r\n attributes[attr.name] = transformAttribute(doc, tagName, toLowerCase(attr.name), attr.value, n, maskAttributeFn);\r\n }\r\n }\r\n if (tagName === 'link' && inlineStylesheet) {\r\n const stylesheet = Array.from(doc.styleSheets).find((s) => {\r\n return s.href === n.href;\r\n });\r\n let cssText = null;\r\n if (stylesheet) {\r\n cssText = stringifyStylesheet(stylesheet);\r\n }\r\n if (cssText) {\r\n delete attributes.rel;\r\n delete attributes.href;\r\n attributes._cssText = absoluteToStylesheet(cssText, stylesheet.href);\r\n }\r\n }\r\n if (tagName === 'style' &&\r\n n.sheet &&\r\n !(n.innerText || n.textContent || '').trim().length) {\r\n const cssText = stringifyStylesheet(n.sheet);\r\n if (cssText) {\r\n attributes._cssText = absoluteToStylesheet(cssText, getHref());\r\n }\r\n }\r\n if (tagName === 'input' ||\r\n tagName === 'textarea' ||\r\n tagName === 'select' ||\r\n tagName === 'option') {\r\n const el = n;\r\n const type = getInputType(el);\r\n const value = getInputValue(el, toUpperCase(tagName), type);\r\n const checked = el.checked;\r\n if (type !== 'submit' && type !== 'button' && value) {\r\n const forceMask = needMaskingText(el, maskTextClass, maskTextSelector, unmaskTextClass, unmaskTextSelector, shouldMaskInput({\r\n type,\r\n tagName: toUpperCase(tagName),\r\n maskInputOptions,\r\n }));\r\n attributes.value = maskInputValue({\r\n isMasked: forceMask,\r\n element: el,\r\n value,\r\n maskInputFn,\r\n });\r\n }\r\n if (checked) {\r\n attributes.checked = checked;\r\n }\r\n }\r\n if (tagName === 'option') {\r\n if (n.selected && !maskInputOptions['select']) {\r\n attributes.selected = true;\r\n }\r\n else {\r\n delete attributes.selected;\r\n }\r\n }\r\n if (tagName === 'canvas' && recordCanvas) {\r\n if (n.__context === '2d') {\r\n if (!is2DCanvasBlank(n)) {\r\n attributes.rr_dataURL = n.toDataURL(dataURLOptions.type, dataURLOptions.quality);\r\n }\r\n }\r\n else if (!('__context' in n)) {\r\n const canvasDataURL = n.toDataURL(dataURLOptions.type, dataURLOptions.quality);\r\n const blankCanvas = document.createElement('canvas');\r\n blankCanvas.width = n.width;\r\n blankCanvas.height = n.height;\r\n const blankCanvasDataURL = blankCanvas.toDataURL(dataURLOptions.type, dataURLOptions.quality);\r\n if (canvasDataURL !== blankCanvasDataURL) {\r\n attributes.rr_dataURL = canvasDataURL;\r\n }\r\n }\r\n }\r\n if (tagName === 'img' && inlineImages) {\r\n if (!canvasService) {\r\n canvasService = doc.createElement('canvas');\r\n canvasCtx = canvasService.getContext('2d');\r\n }\r\n const image = n;\r\n const oldValue = image.crossOrigin;\r\n image.crossOrigin = 'anonymous';\r\n const recordInlineImage = () => {\r\n image.removeEventListener('load', recordInlineImage);\r\n try {\r\n canvasService.width = image.naturalWidth;\r\n canvasService.height = image.naturalHeight;\r\n canvasCtx.drawImage(image, 0, 0);\r\n attributes.rr_dataURL = canvasService.toDataURL(dataURLOptions.type, dataURLOptions.quality);\r\n }\r\n catch (err) {\r\n console.warn(`Cannot inline img src=${image.currentSrc}! Error: ${err}`);\r\n }\r\n oldValue\r\n ? (attributes.crossOrigin = oldValue)\r\n : image.removeAttribute('crossorigin');\r\n };\r\n if (image.complete && image.naturalWidth !== 0)\r\n recordInlineImage();\r\n else\r\n image.addEventListener('load', recordInlineImage);\r\n }\r\n if (tagName === 'audio' || tagName === 'video') {\r\n attributes.rr_mediaState = n.paused\r\n ? 'paused'\r\n : 'played';\r\n attributes.rr_mediaCurrentTime = n.currentTime;\r\n }\r\n if (!newlyAddedElement) {\r\n if (n.scrollLeft) {\r\n attributes.rr_scrollLeft = n.scrollLeft;\r\n }\r\n if (n.scrollTop) {\r\n attributes.rr_scrollTop = n.scrollTop;\r\n }\r\n }\r\n if (needBlock) {\r\n const { width, height } = n.getBoundingClientRect();\r\n attributes = {\r\n class: attributes.class,\r\n rr_width: `${width}px`,\r\n rr_height: `${height}px`,\r\n };\r\n }\r\n if (tagName === 'iframe' && !keepIframeSrcFn(attributes.src)) {\r\n if (!n.contentDocument) {\r\n attributes.rr_src = attributes.src;\r\n }\r\n delete attributes.src;\r\n }\r\n let isCustomElement;\r\n try {\r\n if (customElements.get(tagName))\r\n isCustomElement = true;\r\n }\r\n catch (e) {\r\n }\r\n return {\r\n type: NodeType.Element,\r\n tagName,\r\n attributes,\r\n childNodes: [],\r\n isSVG: isSVGElement(n) || undefined,\r\n needBlock,\r\n rootId,\r\n isCustom: isCustomElement,\r\n };\r\n}\r\nfunction lowerIfExists(maybeAttr) {\r\n if (maybeAttr === undefined || maybeAttr === null) {\r\n return '';\r\n }\r\n else {\r\n return maybeAttr.toLowerCase();\r\n }\r\n}\r\nfunction slimDOMExcluded(sn, slimDOMOptions) {\r\n if (slimDOMOptions.comment && sn.type === NodeType.Comment) {\r\n return true;\r\n }\r\n else if (sn.type === NodeType.Element) {\r\n if (slimDOMOptions.script &&\r\n (sn.tagName === 'script' ||\r\n (sn.tagName === 'link' &&\r\n (sn.attributes.rel === 'preload' ||\r\n sn.attributes.rel === 'modulepreload') &&\r\n sn.attributes.as === 'script') ||\r\n (sn.tagName === 'link' &&\r\n sn.attributes.rel === 'prefetch' &&\r\n typeof sn.attributes.href === 'string' &&\r\n sn.attributes.href.endsWith('.js')))) {\r\n return true;\r\n }\r\n else if (slimDOMOptions.headFavicon &&\r\n ((sn.tagName === 'link' && sn.attributes.rel === 'shortcut icon') ||\r\n (sn.tagName === 'meta' &&\r\n (lowerIfExists(sn.attributes.name).match(/^msapplication-tile(image|color)$/) ||\r\n lowerIfExists(sn.attributes.name) === 'application-name' ||\r\n lowerIfExists(sn.attributes.rel) === 'icon' ||\r\n lowerIfExists(sn.attributes.rel) === 'apple-touch-icon' ||\r\n lowerIfExists(sn.attributes.rel) === 'shortcut icon')))) {\r\n return true;\r\n }\r\n else if (sn.tagName === 'meta') {\r\n if (slimDOMOptions.headMetaDescKeywords &&\r\n lowerIfExists(sn.attributes.name).match(/^description|keywords$/)) {\r\n return true;\r\n }\r\n else if (slimDOMOptions.headMetaSocial &&\r\n (lowerIfExists(sn.attributes.property).match(/^(og|twitter|fb):/) ||\r\n lowerIfExists(sn.attributes.name).match(/^(og|twitter):/) ||\r\n lowerIfExists(sn.attributes.name) === 'pinterest')) {\r\n return true;\r\n }\r\n else if (slimDOMOptions.headMetaRobots &&\r\n (lowerIfExists(sn.attributes.name) === 'robots' ||\r\n lowerIfExists(sn.attributes.name) === 'googlebot' ||\r\n lowerIfExists(sn.attributes.name) === 'bingbot')) {\r\n return true;\r\n }\r\n else if (slimDOMOptions.headMetaHttpEquiv &&\r\n sn.attributes['http-equiv'] !== undefined) {\r\n return true;\r\n }\r\n else if (slimDOMOptions.headMetaAuthorship &&\r\n (lowerIfExists(sn.attributes.name) === 'author' ||\r\n lowerIfExists(sn.attributes.name) === 'generator' ||\r\n lowerIfExists(sn.attributes.name) === 'framework' ||\r\n lowerIfExists(sn.attributes.name) === 'publisher' ||\r\n lowerIfExists(sn.attributes.name) === 'progid' ||\r\n lowerIfExists(sn.attributes.property).match(/^article:/) ||\r\n lowerIfExists(sn.attributes.property).match(/^product:/))) {\r\n return true;\r\n }\r\n else if (slimDOMOptions.headMetaVerification &&\r\n (lowerIfExists(sn.attributes.name) === 'google-site-verification' ||\r\n lowerIfExists(sn.attributes.name) === 'yandex-verification' ||\r\n lowerIfExists(sn.attributes.name) === 'csrf-token' ||\r\n lowerIfExists(sn.attributes.name) === 'p:domain_verify' ||\r\n lowerIfExists(sn.attributes.name) === 'verify-v1' ||\r\n lowerIfExists(sn.attributes.name) === 'verification' ||\r\n lowerIfExists(sn.attributes.name) === 'shopify-checkout-api-token')) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n}\r\nfunction serializeNodeWithId(n, options) {\r\n const { doc, mirror, blockClass, blockSelector, unblockSelector, maskAllText, maskTextClass, unmaskTextClass, maskTextSelector, unmaskTextSelector, skipChild = false, inlineStylesheet = true, maskInputOptions = {}, maskAttributeFn, maskTextFn, maskInputFn, slimDOMOptions, dataURLOptions = {}, inlineImages = false, recordCanvas = false, onSerialize, onIframeLoad, iframeLoadTimeout = 5000, onStylesheetLoad, stylesheetLoadTimeout = 5000, keepIframeSrcFn = () => false, newlyAddedElement = false, } = options;\r\n let { preserveWhiteSpace = true } = options;\r\n const _serializedNode = serializeNode(n, {\r\n doc,\r\n mirror,\r\n blockClass,\r\n blockSelector,\r\n maskAllText,\r\n unblockSelector,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n inlineStylesheet,\r\n maskInputOptions,\r\n maskAttributeFn,\r\n maskTextFn,\r\n maskInputFn,\r\n dataURLOptions,\r\n inlineImages,\r\n recordCanvas,\r\n keepIframeSrcFn,\r\n newlyAddedElement,\r\n });\r\n if (!_serializedNode) {\r\n console.warn(n, 'not serialized');\r\n return null;\r\n }\r\n let id;\r\n if (mirror.hasNode(n)) {\r\n id = mirror.getId(n);\r\n }\r\n else if (slimDOMExcluded(_serializedNode, slimDOMOptions) ||\r\n (!preserveWhiteSpace &&\r\n _serializedNode.type === NodeType.Text &&\r\n !_serializedNode.isStyle &&\r\n !_serializedNode.textContent.replace(/^\\s+|\\s+$/gm, '').length)) {\r\n id = IGNORED_NODE;\r\n }\r\n else {\r\n id = genId();\r\n }\r\n const serializedNode = Object.assign(_serializedNode, { id });\r\n mirror.add(n, serializedNode);\r\n if (id === IGNORED_NODE) {\r\n return null;\r\n }\r\n if (onSerialize) {\r\n onSerialize(n);\r\n }\r\n let recordChild = !skipChild;\r\n if (serializedNode.type === NodeType.Element) {\r\n recordChild = recordChild && !serializedNode.needBlock;\r\n delete serializedNode.needBlock;\r\n const shadowRoot = n.shadowRoot;\r\n if (shadowRoot && isNativeShadowDom(shadowRoot))\r\n serializedNode.isShadowHost = true;\r\n }\r\n if ((serializedNode.type === NodeType.Document ||\r\n serializedNode.type === NodeType.Element) &&\r\n recordChild) {\r\n if (slimDOMOptions.headWhitespace &&\r\n serializedNode.type === NodeType.Element &&\r\n serializedNode.tagName === 'head') {\r\n preserveWhiteSpace = false;\r\n }\r\n const bypassOptions = {\r\n doc,\r\n mirror,\r\n blockClass,\r\n blockSelector,\r\n maskAllText,\r\n unblockSelector,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n skipChild,\r\n inlineStylesheet,\r\n maskInputOptions,\r\n maskAttributeFn,\r\n maskTextFn,\r\n maskInputFn,\r\n slimDOMOptions,\r\n dataURLOptions,\r\n inlineImages,\r\n recordCanvas,\r\n preserveWhiteSpace,\r\n onSerialize,\r\n onIframeLoad,\r\n iframeLoadTimeout,\r\n onStylesheetLoad,\r\n stylesheetLoadTimeout,\r\n keepIframeSrcFn,\r\n };\r\n for (const childN of Array.from(n.childNodes)) {\r\n const serializedChildNode = serializeNodeWithId(childN, bypassOptions);\r\n if (serializedChildNode) {\r\n serializedNode.childNodes.push(serializedChildNode);\r\n }\r\n }\r\n if (isElement(n) && n.shadowRoot) {\r\n for (const childN of Array.from(n.shadowRoot.childNodes)) {\r\n const serializedChildNode = serializeNodeWithId(childN, bypassOptions);\r\n if (serializedChildNode) {\r\n isNativeShadowDom(n.shadowRoot) &&\r\n (serializedChildNode.isShadow = true);\r\n serializedNode.childNodes.push(serializedChildNode);\r\n }\r\n }\r\n }\r\n }\r\n if (n.parentNode &&\r\n isShadowRoot(n.parentNode) &&\r\n isNativeShadowDom(n.parentNode)) {\r\n serializedNode.isShadow = true;\r\n }\r\n if (serializedNode.type === NodeType.Element &&\r\n serializedNode.tagName === 'iframe') {\r\n onceIframeLoaded(n, () => {\r\n const iframeDoc = n.contentDocument;\r\n if (iframeDoc && onIframeLoad) {\r\n const serializedIframeNode = serializeNodeWithId(iframeDoc, {\r\n doc: iframeDoc,\r\n mirror,\r\n blockClass,\r\n blockSelector,\r\n unblockSelector,\r\n maskAllText,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n skipChild: false,\r\n inlineStylesheet,\r\n maskInputOptions,\r\n maskAttributeFn,\r\n maskTextFn,\r\n maskInputFn,\r\n slimDOMOptions,\r\n dataURLOptions,\r\n inlineImages,\r\n recordCanvas,\r\n preserveWhiteSpace,\r\n onSerialize,\r\n onIframeLoad,\r\n iframeLoadTimeout,\r\n onStylesheetLoad,\r\n stylesheetLoadTimeout,\r\n keepIframeSrcFn,\r\n });\r\n if (serializedIframeNode) {\r\n onIframeLoad(n, serializedIframeNode);\r\n }\r\n }\r\n }, iframeLoadTimeout);\r\n }\r\n if (serializedNode.type === NodeType.Element &&\r\n serializedNode.tagName === 'link' &&\r\n serializedNode.attributes.rel === 'stylesheet') {\r\n onceStylesheetLoaded(n, () => {\r\n if (onStylesheetLoad) {\r\n const serializedLinkNode = serializeNodeWithId(n, {\r\n doc,\r\n mirror,\r\n blockClass,\r\n blockSelector,\r\n unblockSelector,\r\n maskAllText,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n skipChild: false,\r\n inlineStylesheet,\r\n maskInputOptions,\r\n maskAttributeFn,\r\n maskTextFn,\r\n maskInputFn,\r\n slimDOMOptions,\r\n dataURLOptions,\r\n inlineImages,\r\n recordCanvas,\r\n preserveWhiteSpace,\r\n onSerialize,\r\n onIframeLoad,\r\n iframeLoadTimeout,\r\n onStylesheetLoad,\r\n stylesheetLoadTimeout,\r\n keepIframeSrcFn,\r\n });\r\n if (serializedLinkNode) {\r\n onStylesheetLoad(n, serializedLinkNode);\r\n }\r\n }\r\n }, stylesheetLoadTimeout);\r\n }\r\n return serializedNode;\r\n}\r\nfunction snapshot(n, options) {\r\n const { mirror = new Mirror(), blockClass = 'rr-block', blockSelector = null, unblockSelector = null, maskAllText = false, maskTextClass = 'rr-mask', unmaskTextClass = null, maskTextSelector = null, unmaskTextSelector = null, inlineStylesheet = true, inlineImages = false, recordCanvas = false, maskAllInputs = false, maskAttributeFn, maskTextFn, maskInputFn, slimDOM = false, dataURLOptions, preserveWhiteSpace, onSerialize, onIframeLoad, iframeLoadTimeout, onStylesheetLoad, stylesheetLoadTimeout, keepIframeSrcFn = () => false, } = options || {};\r\n const maskInputOptions = maskAllInputs === true\r\n ? {\r\n color: true,\r\n date: true,\r\n 'datetime-local': true,\r\n email: true,\r\n month: true,\r\n number: true,\r\n range: true,\r\n search: true,\r\n tel: true,\r\n text: true,\r\n time: true,\r\n url: true,\r\n week: true,\r\n textarea: true,\r\n select: true,\r\n }\r\n : maskAllInputs === false\r\n ? {}\r\n : maskAllInputs;\r\n const slimDOMOptions = slimDOM === true || slimDOM === 'all'\r\n ?\r\n {\r\n script: true,\r\n comment: true,\r\n headFavicon: true,\r\n headWhitespace: true,\r\n headMetaDescKeywords: slimDOM === 'all',\r\n headMetaSocial: true,\r\n headMetaRobots: true,\r\n headMetaHttpEquiv: true,\r\n headMetaAuthorship: true,\r\n headMetaVerification: true,\r\n }\r\n : slimDOM === false\r\n ? {}\r\n : slimDOM;\r\n return serializeNodeWithId(n, {\r\n doc: n,\r\n mirror,\r\n blockClass,\r\n blockSelector,\r\n unblockSelector,\r\n maskAllText,\r\n maskTextClass,\r\n unmaskTextClass,\r\n maskTextSelector,\r\n unmaskTextSelector,\r\n skipChild: false,\r\n inlineStylesheet,\r\n maskInputOptions,\r\n maskAttributeFn,\r\n maskTextFn,\r\n maskInputFn,\r\n slimDOMOptions,\r\n dataURLOptions,\r\n inlineImages,\r\n recordCanvas,\r\n preserveWhiteSpace,\r\n onSerialize,\r\n onIframeLoad,\r\n iframeLoadTimeout,\r\n onStylesheetLoad,\r\n stylesheetLoadTimeout,\r\n keepIframeSrcFn,\r\n newlyAddedElement: false,\r\n });\r\n}\r\n\nconst commentre = /\\/\\*[^*]*\\*+([^/*][^*]*\\*+)*\\//g;\r\nfunction parse(css, options = {}) {\r\n let lineno = 1;\r\n let column = 1;\r\n function updatePosition(str) {\r\n const lines = str.match(/\\n/g);\r\n if (lines) {\r\n lineno += lines.length;\r\n }\r\n const i = str.lastIndexOf('\\n');\r\n column = i === -1 ? column + str.length : str.length - i;\r\n }\r\n function position() {\r\n const start = { line: lineno, column };\r\n return (node) => {\r\n node.position = new Position(start);\r\n whitespace();\r\n return node;\r\n };\r\n }\r\n class Position {\r\n constructor(start) {\r\n this.start = start;\r\n this.end = { line: lineno, column };\r\n this.source = options.source;\r\n }\r\n }\r\n Position.prototype.content = css;\r\n const errorsList = [];\r\n function error(msg) {\r\n const err = new Error(`${options.source || ''}:${lineno}:${column}: ${msg}`);\r\n err.reason = msg;\r\n err.filename = options.source;\r\n err.line = lineno;\r\n err.column = column;\r\n err.source = css;\r\n if (options.silent) {\r\n errorsList.push(err);\r\n }\r\n else {\r\n throw err;\r\n }\r\n }\r\n function stylesheet() {\r\n const rulesList = rules();\r\n return {\r\n type: 'stylesheet',\r\n stylesheet: {\r\n source: options.source,\r\n rules: rulesList,\r\n parsingErrors: errorsList,\r\n },\r\n };\r\n }\r\n function open() {\r\n return match(/^{\\s*/);\r\n }\r\n function close() {\r\n return match(/^}/);\r\n }\r\n function rules() {\r\n let node;\r\n const rules = [];\r\n whitespace();\r\n comments(rules);\r\n while (css.length && css.charAt(0) !== '}' && (node = atrule() || rule())) {\r\n if (node) {\r\n rules.push(node);\r\n comments(rules);\r\n }\r\n }\r\n return rules;\r\n }\r\n function match(re) {\r\n const m = re.exec(css);\r\n if (!m) {\r\n return;\r\n }\r\n const str = m[0];\r\n updatePosition(str);\r\n css = css.slice(str.length);\r\n return m;\r\n }\r\n function whitespace() {\r\n match(/^\\s*/);\r\n }\r\n function comments(rules = []) {\r\n let c;\r\n while ((c = comment())) {\r\n if (c) {\r\n rules.push(c);\r\n }\r\n c = comment();\r\n }\r\n return rules;\r\n }\r\n function comment() {\r\n const pos = position();\r\n if ('/' !== css.charAt(0) || '*' !== css.charAt(1)) {\r\n return;\r\n }\r\n let i = 2;\r\n while ('' !== css.charAt(i) &&\r\n ('*' !== css.charAt(i) || '/' !== css.charAt(i + 1))) {\r\n ++i;\r\n }\r\n i += 2;\r\n if ('' === css.charAt(i - 1)) {\r\n return error('End of comment missing');\r\n }\r\n const str = css.slice(2, i - 2);\r\n column += 2;\r\n updatePosition(str);\r\n css = css.slice(i);\r\n column += 2;\r\n return pos({\r\n type: 'comment',\r\n comment: str,\r\n });\r\n }\r\n function selector() {\r\n whitespace();\r\n while (css[0] == '}') {\r\n error('extra closing bracket');\r\n css = css.slice(1);\r\n whitespace();\r\n }\r\n const m = match(/^((\"(?:\\\\\"|[^\"])*\"|'(?:\\\\'|[^'])*'|[^{])+)/);\r\n if (!m) {\r\n return;\r\n }\r\n const cleanedInput = m[0]\r\n .trim()\r\n .replace(/\\/\\*([^*]|[\\r\\n]|(\\*+([^*/]|[\\r\\n])))*\\*\\/+/g, '')\r\n .replace(/\"(?:\\\\\"|[^\"])*\"|'(?:\\\\'|[^'])*'/g, (m) => {\r\n return m.replace(/,/g, '\\u200C');\r\n });\r\n return customSplit(cleanedInput).map((s) => s.replace(/\\u200C/g, ',').trim());\r\n }\r\n function customSplit(input) {\r\n const result = [];\r\n let currentSegment = '';\r\n let depthParentheses = 0;\r\n let depthBrackets = 0;\r\n let currentStringChar = null;\r\n for (const char of input) {\r\n const hasStringEscape = currentSegment.endsWith('\\\\');\r\n if (currentStringChar) {\r\n if (currentStringChar === char && !hasStringEscape) {\r\n currentStringChar = null;\r\n }\r\n }\r\n else if (char === '(') {\r\n depthParentheses++;\r\n }\r\n else if (char === ')') {\r\n depthParentheses--;\r\n }\r\n else if (char === '[') {\r\n depthBrackets++;\r\n }\r\n else if (char === ']') {\r\n depthBrackets--;\r\n }\r\n else if ('\\'\"'.includes(char)) {\r\n currentStringChar = char;\r\n }\r\n if (char === ',' && depthParentheses === 0 && depthBrackets === 0) {\r\n result.push(currentSegment);\r\n currentSegment = '';\r\n }\r\n else {\r\n currentSegment += char;\r\n }\r\n }\r\n if (currentSegment) {\r\n result.push(currentSegment);\r\n }\r\n return result;\r\n }\r\n function declaration() {\r\n const pos = position();\r\n const propMatch = match(/^(\\*?[-#\\/\\*\\\\\\w]+(\\[[0-9a-z_-]+\\])?)\\s*/);\r\n if (!propMatch) {\r\n return;\r\n }\r\n const prop = trim(propMatch[0]);\r\n if (!match(/^:\\s*/)) {\r\n return error(`property missing ':'`);\r\n }\r\n const val = match(/^((?:'(?:\\\\'|.)*?'|\"(?:\\\\\"|.)*?\"|\\([^\\)]*?\\)|[^};])+)/);\r\n const ret = pos({\r\n type: 'declaration',\r\n property: prop.replace(commentre, ''),\r\n value: val ? trim(val[0]).replace(commentre, '') : '',\r\n });\r\n match(/^[;\\s]*/);\r\n return ret;\r\n }\r\n function declarations() {\r\n const decls = [];\r\n if (!open()) {\r\n return error(`missing '{'`);\r\n }\r\n comments(decls);\r\n let decl;\r\n while ((decl = declaration())) {\r\n if (decl !== false) {\r\n decls.push(decl);\r\n comments(decls);\r\n }\r\n decl = declaration();\r\n }\r\n if (!close()) {\r\n return error(`missing '}'`);\r\n }\r\n return decls;\r\n }\r\n function keyframe() {\r\n let m;\r\n const vals = [];\r\n const pos = position();\r\n while ((m = match(/^((\\d+\\.\\d+|\\.\\d+|\\d+)%?|[a-z]+)\\s*/))) {\r\n vals.push(m[1]);\r\n match(/^,\\s*/);\r\n }\r\n if (!vals.length) {\r\n return;\r\n }\r\n return pos({\r\n type: 'keyframe',\r\n values: vals,\r\n declarations: declarations(),\r\n });\r\n }\r\n function atkeyframes() {\r\n const pos = position();\r\n let m = match(/^@([-\\w]+)?keyframes\\s*/);\r\n if (!m) {\r\n return;\r\n }\r\n const vendor = m[1];\r\n m = match(/^([-\\w]+)\\s*/);\r\n if (!m) {\r\n return error('@keyframes missing name');\r\n }\r\n const name = m[1];\r\n if (!open()) {\r\n return error(`@keyframes missing '{'`);\r\n }\r\n let frame;\r\n let frames = comments();\r\n while ((frame = keyframe())) {\r\n frames.push(frame);\r\n frames = frames.concat(comments());\r\n }\r\n if (!close()) {\r\n return error(`@keyframes missing '}'`);\r\n }\r\n return pos({\r\n type: 'keyframes',\r\n name,\r\n vendor,\r\n keyframes: frames,\r\n });\r\n }\r\n function atsupports() {\r\n const pos = position();\r\n const m = match(/^@supports *([^{]+)/);\r\n if (!m) {\r\n return;\r\n }\r\n const supports = trim(m[1]);\r\n if (!open()) {\r\n return error(`@supports missing '{'`);\r\n }\r\n const style = comments().concat(rules());\r\n if (!close()) {\r\n return error(`@supports missing '}'`);\r\n }\r\n return pos({\r\n type: 'supports',\r\n supports,\r\n rules: style,\r\n });\r\n }\r\n function athost() {\r\n const pos = position();\r\n const m = match(/^@host\\s*/);\r\n if (!m) {\r\n return;\r\n }\r\n if (!open()) {\r\n return error(`@host missing '{'`);\r\n }\r\n const style = comments().concat(rules());\r\n if (!close()) {\r\n return error(`@host missing '}'`);\r\n }\r\n return pos({\r\n type: 'host',\r\n rules: style,\r\n });\r\n }\r\n function atmedia() {\r\n const pos = position();\r\n const m = match(/^@media *([^{]+)/);\r\n if (!m) {\r\n return;\r\n }\r\n const media = trim(m[1]);\r\n if (!open()) {\r\n return error(`@media missing '{'`);\r\n }\r\n const style = comments().concat(rules());\r\n if (!close()) {\r\n return error(`@media missing '}'`);\r\n }\r\n return pos({\r\n type: 'media',\r\n media,\r\n rules: style,\r\n });\r\n }\r\n function atcustommedia() {\r\n const pos = position();\r\n const m = match(/^@custom-media\\s+(--[^\\s]+)\\s*([^{;]+);/);\r\n if (!m) {\r\n return;\r\n }\r\n return pos({\r\n type: 'custom-media',\r\n name: trim(m[1]),\r\n media: trim(m[2]),\r\n });\r\n }\r\n function atpage() {\r\n const pos = position();\r\n const m = match(/^@page */);\r\n if (!m) {\r\n return;\r\n }\r\n const sel = selector() || [];\r\n if (!open()) {\r\n return error(`@page missing '{'`);\r\n }\r\n let decls = comments();\r\n let decl;\r\n while ((decl = declaration())) {\r\n decls.push(decl);\r\n decls = decls.concat(comments());\r\n }\r\n if (!close()) {\r\n return error(`@page missing '}'`);\r\n }\r\n return pos({\r\n type: 'page',\r\n selectors: sel,\r\n declarations: decls,\r\n });\r\n }\r\n function atdocument() {\r\n const pos = position();\r\n const m = match(/^@([-\\w]+)?document *([^{]+)/);\r\n if (!m) {\r\n return;\r\n }\r\n const vendor = trim(m[1]);\r\n const doc = trim(m[2]);\r\n if (!open()) {\r\n return error(`@document missing '{'`);\r\n }\r\n const style = comments().concat(rules());\r\n if (!close()) {\r\n return error(`@document missing '}'`);\r\n }\r\n return pos({\r\n type: 'document',\r\n document: doc,\r\n vendor,\r\n rules: style,\r\n });\r\n }\r\n function atfontface() {\r\n const pos = position();\r\n const m = match(/^@font-face\\s*/);\r\n if (!m) {\r\n return;\r\n }\r\n if (!open()) {\r\n return error(`@font-face missing '{'`);\r\n }\r\n let decls = comments();\r\n let decl;\r\n while ((decl = declaration())) {\r\n decls.push(decl);\r\n decls = decls.concat(comments());\r\n }\r\n if (!close()) {\r\n return error(`@font-face missing '}'`);\r\n }\r\n return pos({\r\n type: 'font-face',\r\n declarations: decls,\r\n });\r\n }\r\n const atimport = _compileAtrule('import');\r\n const atcharset = _compileAtrule('charset');\r\n const atnamespace = _compileAtrule('namespace');\r\n function _compileAtrule(name) {\r\n const re = new RegExp('^@' + name + '\\\\s*([^;]+);');\r\n return () => {\r\n const pos = position();\r\n const m = match(re);\r\n if (!m) {\r\n return;\r\n }\r\n const ret = { type: name };\r\n ret[name] = m[1].trim();\r\n return pos(ret);\r\n };\r\n }\r\n function atrule() {\r\n if (css[0] !== '@') {\r\n return;\r\n }\r\n return (atkeyframes() ||\r\n atmedia() ||\r\n atcustommedia() ||\r\n atsupports() ||\r\n atimport() ||\r\n atcharset() ||\r\n atnamespace() ||\r\n atdocument() ||\r\n atpage() ||\r\n athost() ||\r\n atfontface());\r\n }\r\n function rule() {\r\n const pos = position();\r\n const sel = selector();\r\n if (!sel) {\r\n return error('selector missing');\r\n }\r\n comments();\r\n return pos({\r\n type: 'rule',\r\n selectors: sel,\r\n declarations: declarations(),\r\n });\r\n }\r\n return addParent(stylesheet());\r\n}\r\nfunction trim(str) {\r\n return str ? str.replace(/^\\s+|\\s+$/g, '') : '';\r\n}\r\nfunction addParent(obj, parent) {\r\n const isNode = obj && typeof obj.type === 'string';\r\n const childParent = isNode ? obj : parent;\r\n for (const k of Object.keys(obj)) {\r\n const value = obj[k];\r\n if (Array.isArray(value)) {\r\n value.forEach((v) => {\r\n addParent(v, childParent);\r\n });\r\n }\r\n else if (value && typeof value === 'object') {\r\n addParent(value, childParent);\r\n }\r\n }\r\n if (isNode) {\r\n Object.defineProperty(obj, 'parent', {\r\n configurable: true,\r\n writable: true,\r\n enumerable: false,\r\n value: parent || null,\r\n });\r\n }\r\n return obj;\r\n}\n\nconst tagMap = {\r\n script: 'noscript',\r\n altglyph: 'altGlyph',\r\n altglyphdef: 'altGlyphDef',\r\n altglyphitem: 'altGlyphItem',\r\n animatecolor: 'animateColor',\r\n animatemotion: 'animateMotion',\r\n animatetransform: 'animateTransform',\r\n clippath: 'clipPath',\r\n feblend: 'feBlend',\r\n fecolormatrix: 'feColorMatrix',\r\n fecomponenttransfer: 'feComponentTransfer',\r\n fecomposite: 'feComposite',\r\n feconvolvematrix: 'feConvolveMatrix',\r\n fediffuselighting: 'feDiffuseLighting',\r\n fedisplacementmap: 'feDisplacementMap',\r\n fedistantlight: 'feDistantLight',\r\n fedropshadow: 'feDropShadow',\r\n feflood: 'feFlood',\r\n fefunca: 'feFuncA',\r\n fefuncb: 'feFuncB',\r\n fefuncg: 'feFuncG',\r\n fefuncr: 'feFuncR',\r\n fegaussianblur: 'feGaussianBlur',\r\n feimage: 'feImage',\r\n femerge: 'feMerge',\r\n femergenode: 'feMergeNode',\r\n femorphology: 'feMorphology',\r\n feoffset: 'feOffset',\r\n fepointlight: 'fePointLight',\r\n fespecularlighting: 'feSpecularLighting',\r\n fespotlight: 'feSpotLight',\r\n fetile: 'feTile',\r\n feturbulence: 'feTurbulence',\r\n foreignobject: 'foreignObject',\r\n glyphref: 'glyphRef',\r\n lineargradient: 'linearGradient',\r\n radialgradient: 'radialGradient',\r\n};\r\nfunction getTagName(n) {\r\n let tagName = tagMap[n.tagName] ? tagMap[n.tagName] : n.tagName;\r\n if (tagName === 'link' && n.attributes._cssText) {\r\n tagName = 'style';\r\n }\r\n return tagName;\r\n}\r\nfunction escapeRegExp(str) {\r\n return str.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\r\n}\r\nconst HOVER_SELECTOR = /([^\\\\]):hover/;\r\nconst HOVER_SELECTOR_GLOBAL = new RegExp(HOVER_SELECTOR.source, 'g');\r\nfunction addHoverClass(cssText, cache) {\r\n const cachedStyle = cache?.stylesWithHoverClass.get(cssText);\r\n if (cachedStyle)\r\n return cachedStyle;\r\n if (cssText.length >= 1000000) {\r\n return cssText;\r\n }\r\n const ast = parse(cssText, {\r\n silent: true,\r\n });\r\n if (!ast.stylesheet) {\r\n return cssText;\r\n }\r\n const selectors = [];\r\n ast.stylesheet.rules.forEach((rule) => {\r\n if ('selectors' in rule) {\r\n (rule.selectors || []).forEach((selector) => {\r\n if (HOVER_SELECTOR.test(selector)) {\r\n selectors.push(selector);\r\n }\r\n });\r\n }\r\n });\r\n if (selectors.length === 0) {\r\n return cssText;\r\n }\r\n const selectorMatcher = new RegExp(selectors\r\n .filter((selector, index) => selectors.indexOf(selector) === index)\r\n .sort((a, b) => b.length - a.length)\r\n .map((selector) => {\r\n return escapeRegExp(selector);\r\n })\r\n .join('|'), 'g');\r\n const result = cssText.replace(selectorMatcher, (selector) => {\r\n const newSelector = selector.replace(HOVER_SELECTOR_GLOBAL, '$1.\\\\:hover');\r\n return `${selector}, ${newSelector}`;\r\n });\r\n cache?.stylesWithHoverClass.set(cssText, result);\r\n return result;\r\n}\r\nfunction createCache() {\r\n const stylesWithHoverClass = new Map();\r\n return {\r\n stylesWithHoverClass,\r\n };\r\n}\r\nfunction buildNode(n, options) {\r\n const { doc, hackCss, cache } = options;\r\n switch (n.type) {\r\n case NodeType.Document:\r\n return doc.implementation.createDocument(null, '', null);\r\n case NodeType.DocumentType:\r\n return doc.implementation.createDocumentType(n.name || 'html', n.publicId, n.systemId);\r\n case NodeType.Element: {\r\n const tagName = getTagName(n);\r\n let node;\r\n if (n.isSVG) {\r\n node = doc.createElementNS('http://www.w3.org/2000/svg', tagName);\r\n }\r\n else {\r\n if (n.isCustom &&\r\n doc.defaultView?.customElements &&\r\n !doc.defaultView.customElements.get(n.tagName))\r\n doc.defaultView.customElements.define(n.tagName, class extends doc.defaultView.HTMLElement {\r\n });\r\n node = doc.createElement(tagName);\r\n }\r\n const specialAttributes = {};\r\n for (const name in n.attributes) {\r\n if (!Object.prototype.hasOwnProperty.call(n.attributes, name)) {\r\n continue;\r\n }\r\n let value = n.attributes[name];\r\n if (tagName === 'option' &&\r\n name === 'selected' &&\r\n value === false) {\r\n continue;\r\n }\r\n if (value === null) {\r\n continue;\r\n }\r\n if (value === true)\r\n value = '';\r\n if (name.startsWith('rr_')) {\r\n specialAttributes[name] = value;\r\n continue;\r\n }\r\n const isTextarea = tagName === 'textarea' && name === 'value';\r\n const isRemoteOrDynamicCss = tagName === 'style' && name === '_cssText';\r\n if (isRemoteOrDynamicCss && hackCss && typeof value === 'string') {\r\n value = addHoverClass(value, cache);\r\n }\r\n if ((isTextarea || isRemoteOrDynamicCss) && typeof value === 'string') {\r\n const child = doc.createTextNode(value);\r\n for (const c of Array.from(node.childNodes)) {\r\n if (c.nodeType === node.TEXT_NODE) {\r\n node.removeChild(c);\r\n }\r\n }\r\n node.appendChild(child);\r\n continue;\r\n }\r\n try {\r\n if (n.isSVG && name === 'xlink:href') {\r\n node.setAttributeNS('http://www.w3.org/1999/xlink', name, value.toString());\r\n }\r\n else if (name === 'onload' ||\r\n name === 'onclick' ||\r\n name.substring(0, 7) === 'onmouse') {\r\n node.setAttribute('_' + name, value.toString());\r\n }\r\n else if (tagName === 'meta' &&\r\n n.attributes['http-equiv'] === 'Content-Security-Policy' &&\r\n name === 'content') {\r\n node.setAttribute('csp-content', value.toString());\r\n continue;\r\n }\r\n else if (tagName === 'link' &&\r\n (n.attributes.rel === 'preload' ||\r\n n.attributes.rel === 'modulepreload') &&\r\n n.attributes.as === 'script') {\r\n }\r\n else if (tagName === 'link' &&\r\n n.attributes.rel === 'prefetch' &&\r\n typeof n.attributes.href === 'string' &&\r\n n.attributes.href.endsWith('.js')) {\r\n }\r\n else if (tagName === 'img' &&\r\n n.attributes.srcset &&\r\n n.attributes.rr_dataURL) {\r\n node.setAttribute('rrweb-original-srcset', n.attributes.srcset);\r\n }\r\n else {\r\n node.setAttribute(name, value.toString());\r\n }\r\n }\r\n catch (error) {\r\n }\r\n }\r\n for (const name in specialAttributes) {\r\n const value = specialAttributes[name];\r\n if (tagName === 'canvas' && name === 'rr_dataURL') {\r\n const image = document.createElement('img');\r\n image.onload = () => {\r\n const ctx = node.getContext('2d');\r\n if (ctx) {\r\n ctx.drawImage(image, 0, 0, image.width, image.height);\r\n }\r\n };\r\n image.src = value.toString();\r\n if (node.RRNodeType)\r\n node.rr_dataURL = value.toString();\r\n }\r\n else if (tagName === 'img' && name === 'rr_dataURL') {\r\n const image = node;\r\n if (!image.currentSrc.startsWith('data:')) {\r\n image.setAttribute('rrweb-original-src', n.attributes.src);\r\n image.src = value.toString();\r\n }\r\n }\r\n if (name === 'rr_width') {\r\n node.style.setProperty('width', value.toString());\r\n }\r\n else if (name === 'rr_height') {\r\n node.style.setProperty('height', value.toString());\r\n }\r\n else if (name === 'rr_mediaCurrentTime' &&\r\n typeof value === 'number') {\r\n node.currentTime = value;\r\n }\r\n else if (name === 'rr_mediaState') {\r\n switch (value) {\r\n case 'played':\r\n node\r\n .play()\r\n .catch((e) => console.warn('media playback error', e));\r\n break;\r\n case 'paused':\r\n node.pause();\r\n break;\r\n }\r\n }\r\n }\r\n if (n.isShadowHost) {\r\n if (!node.shadowRoot) {\r\n node.attachShadow({ mode: 'open' });\r\n }\r\n else {\r\n while (node.shadowRoot.firstChild) {\r\n node.shadowRoot.removeChild(node.shadowRoot.firstChild);\r\n }\r\n }\r\n }\r\n return node;\r\n }\r\n case NodeType.Text:\r\n return doc.createTextNode(n.isStyle && hackCss\r\n ? addHoverClass(n.textContent, cache)\r\n : n.textContent);\r\n case NodeType.CDATA:\r\n return doc.createCDATASection(n.textContent);\r\n case NodeType.Comment:\r\n return doc.createComment(n.textContent);\r\n default:\r\n return null;\r\n }\r\n}\r\nfunction buildNodeWithSN(n, options) {\r\n const { doc, mirror, skipChild = false, hackCss = true, afterAppend, cache, } = options;\r\n if (mirror.has(n.id)) {\r\n const nodeInMirror = mirror.getNode(n.id);\r\n const meta = mirror.getMeta(nodeInMirror);\r\n if (isNodeMetaEqual(meta, n))\r\n return mirror.getNode(n.id);\r\n }\r\n let node = buildNode(n, { doc, hackCss, cache });\r\n if (!node) {\r\n return null;\r\n }\r\n if (n.rootId && mirror.getNode(n.rootId) !== doc) {\r\n mirror.replace(n.rootId, doc);\r\n }\r\n if (n.type === NodeType.Document) {\r\n doc.close();\r\n doc.open();\r\n if (n.compatMode === 'BackCompat' &&\r\n n.childNodes &&\r\n n.childNodes[0].type !== NodeType.DocumentType) {\r\n if (n.childNodes[0].type === NodeType.Element &&\r\n 'xmlns' in n.childNodes[0].attributes &&\r\n n.childNodes[0].attributes.xmlns === 'http://www.w3.org/1999/xhtml') {\r\n doc.write('');\r\n }\r\n else {\r\n doc.write('');\r\n }\r\n }\r\n node = doc;\r\n }\r\n mirror.add(node, n);\r\n if ((n.type === NodeType.Document || n.type === NodeType.Element) &&\r\n !skipChild) {\r\n for (const childN of n.childNodes) {\r\n const childNode = buildNodeWithSN(childN, {\r\n doc,\r\n mirror,\r\n skipChild: false,\r\n hackCss,\r\n afterAppend,\r\n cache,\r\n });\r\n if (!childNode) {\r\n console.warn('Failed to rebuild', childN);\r\n continue;\r\n }\r\n if (childN.isShadow && isElement(node) && node.shadowRoot) {\r\n node.shadowRoot.appendChild(childNode);\r\n }\r\n else if (n.type === NodeType.Document &&\r\n childN.type == NodeType.Element) {\r\n const htmlElement = childNode;\r\n let body = null;\r\n htmlElement.childNodes.forEach((child) => {\r\n if (child.nodeName === 'BODY')\r\n body = child;\r\n });\r\n if (body) {\r\n htmlElement.removeChild(body);\r\n node.appendChild(childNode);\r\n htmlElement.appendChild(body);\r\n }\r\n else {\r\n node.appendChild(childNode);\r\n }\r\n }\r\n else {\r\n node.appendChild(childNode);\r\n }\r\n if (afterAppend) {\r\n afterAppend(childNode, childN.id);\r\n }\r\n }\r\n }\r\n return node;\r\n}\r\nfunction visit(mirror, onVisit) {\r\n function walk(node) {\r\n onVisit(node);\r\n }\r\n for (const id of mirror.getIds()) {\r\n if (mirror.has(id)) {\r\n walk(mirror.getNode(id));\r\n }\r\n }\r\n}\r\nfunction handleScroll(node, mirror) {\r\n const n = mirror.getMeta(node);\r\n if (n?.type !== NodeType.Element) {\r\n return;\r\n }\r\n const el = node;\r\n for (const name in n.attributes) {\r\n if (!(Object.prototype.hasOwnProperty.call(n.attributes, name) &&\r\n name.startsWith('rr_'))) {\r\n continue;\r\n }\r\n const value = n.attributes[name];\r\n if (name === 'rr_scrollLeft') {\r\n el.scrollLeft = value;\r\n }\r\n if (name === 'rr_scrollTop') {\r\n el.scrollTop = value;\r\n }\r\n }\r\n}\r\nfunction rebuild(n, options) {\r\n const { doc, onVisit, hackCss = true, afterAppend, cache, mirror = new Mirror(), } = options;\r\n const node = buildNodeWithSN(n, {\r\n doc,\r\n mirror,\r\n skipChild: false,\r\n hackCss,\r\n afterAppend,\r\n cache,\r\n });\r\n visit(mirror, (visitedNode) => {\r\n if (onVisit) {\r\n onVisit(visitedNode);\r\n }\r\n handleScroll(visitedNode, mirror);\r\n });\r\n return node;\r\n}\n\nexport { IGNORED_NODE, Mirror, NodeType, addHoverClass, buildNodeWithSN, createCache, createMatchPredicate, createMirror, distanceToMatch, escapeImportStatement, fixSafariColons, genId, getInputType, getInputValue, ignoreAttribute, is2DCanvasBlank, isCSSImportRule, isCSSStyleRule, isElement, isNativeShadowDom, isNodeMetaEqual, isShadowRoot, maskInputValue, needMaskingText, rebuild, serializeNodeWithId, shouldMaskInput, snapshot, stringifyRule, stringifyStylesheet, toLowerCase, toUpperCase, transformAttribute };\n", "import { distanceToMatch, IGNORED_NODE, isShadowRoot, createMatchPredicate } from '../../rrweb-snapshot/es/rrweb-snapshot.js';\n\nfunction on(type, fn, target = document) {\r\n const options = { capture: true, passive: true };\r\n target.addEventListener(type, fn, options);\r\n return () => target.removeEventListener(type, fn, options);\r\n}\r\nconst DEPARTED_MIRROR_ACCESS_WARNING = 'Please stop import mirror directly. Instead of that,' +\r\n '\\r\\n' +\r\n 'now you can use replayer.getMirror() to access the mirror instance of a replayer,' +\r\n '\\r\\n' +\r\n 'or you can use record.mirror to access the mirror instance during recording.';\r\nlet _mirror = {\r\n map: {},\r\n getId() {\r\n console.error(DEPARTED_MIRROR_ACCESS_WARNING);\r\n return -1;\r\n },\r\n getNode() {\r\n console.error(DEPARTED_MIRROR_ACCESS_WARNING);\r\n return null;\r\n },\r\n removeNodeFromMap() {\r\n console.error(DEPARTED_MIRROR_ACCESS_WARNING);\r\n },\r\n has() {\r\n console.error(DEPARTED_MIRROR_ACCESS_WARNING);\r\n return false;\r\n },\r\n reset() {\r\n console.error(DEPARTED_MIRROR_ACCESS_WARNING);\r\n },\r\n};\r\nif (typeof window !== 'undefined' && window.Proxy && window.Reflect) {\r\n _mirror = new Proxy(_mirror, {\r\n get(target, prop, receiver) {\r\n if (prop === 'map') {\r\n console.error(DEPARTED_MIRROR_ACCESS_WARNING);\r\n }\r\n return Reflect.get(target, prop, receiver);\r\n },\r\n });\r\n}\r\nfunction throttle(func, wait, options = {}) {\r\n let timeout = null;\r\n let previous = 0;\r\n return function (...args) {\r\n const now = Date.now();\r\n if (!previous && options.leading === false) {\r\n previous = now;\r\n }\r\n const remaining = wait - (now - previous);\r\n const context = this;\r\n if (remaining <= 0 || remaining > wait) {\r\n if (timeout) {\r\n clearTimeout(timeout);\r\n timeout = null;\r\n }\r\n previous = now;\r\n func.apply(context, args);\r\n }\r\n else if (!timeout && options.trailing !== false) {\r\n timeout = setTimeout(() => {\r\n previous = options.leading === false ? 0 : Date.now();\r\n timeout = null;\r\n func.apply(context, args);\r\n }, remaining);\r\n }\r\n };\r\n}\r\nfunction hookSetter(target, key, d, isRevoked, win = window) {\r\n const original = win.Object.getOwnPropertyDescriptor(target, key);\r\n win.Object.defineProperty(target, key, isRevoked\r\n ? d\r\n : {\r\n set(value) {\r\n setTimeout(() => {\r\n d.set.call(this, value);\r\n }, 0);\r\n if (original && original.set) {\r\n original.set.call(this, value);\r\n }\r\n },\r\n });\r\n return () => hookSetter(target, key, original || {}, true);\r\n}\r\nfunction patch(source, name, replacement) {\r\n try {\r\n if (!(name in source)) {\r\n return () => {\r\n };\r\n }\r\n const original = source[name];\r\n const wrapped = replacement(original);\r\n if (typeof wrapped === 'function') {\r\n wrapped.prototype = wrapped.prototype || {};\r\n Object.defineProperties(wrapped, {\r\n __rrweb_original__: {\r\n enumerable: false,\r\n value: original,\r\n },\r\n });\r\n }\r\n source[name] = wrapped;\r\n return () => {\r\n source[name] = original;\r\n };\r\n }\r\n catch {\r\n return () => {\r\n };\r\n }\r\n}\r\nlet nowTimestamp = Date.now;\r\nif (!(/[1-9][0-9]{12}/.test(Date.now().toString()))) {\r\n nowTimestamp = () => new Date().getTime();\r\n}\r\nfunction getWindowScroll(win) {\r\n const doc = win.document;\r\n return {\r\n left: doc.scrollingElement\r\n ? doc.scrollingElement.scrollLeft\r\n : win.pageXOffset !== undefined\r\n ? win.pageXOffset\r\n : doc?.documentElement.scrollLeft ||\r\n doc?.body?.parentElement?.scrollLeft ||\r\n doc?.body?.scrollLeft ||\r\n 0,\r\n top: doc.scrollingElement\r\n ? doc.scrollingElement.scrollTop\r\n : win.pageYOffset !== undefined\r\n ? win.pageYOffset\r\n : doc?.documentElement.scrollTop ||\r\n doc?.body?.parentElement?.scrollTop ||\r\n doc?.body?.scrollTop ||\r\n 0,\r\n };\r\n}\r\nfunction getWindowHeight() {\r\n return (window.innerHeight ||\r\n (document.documentElement && document.documentElement.clientHeight) ||\r\n (document.body && document.body.clientHeight));\r\n}\r\nfunction getWindowWidth() {\r\n return (window.innerWidth ||\r\n (document.documentElement && document.documentElement.clientWidth) ||\r\n (document.body && document.body.clientWidth));\r\n}\r\nfunction closestElementOfNode(node) {\r\n if (!node) {\r\n return null;\r\n }\r\n const el = node.nodeType === node.ELEMENT_NODE\r\n ? node\r\n : node.parentElement;\r\n return el;\r\n}\r\nfunction isBlocked(node, blockClass, blockSelector, unblockSelector, checkAncestors) {\r\n if (!node) {\r\n return false;\r\n }\r\n const el = closestElementOfNode(node);\r\n if (!el) {\r\n return false;\r\n }\r\n const blockedPredicate = createMatchPredicate(blockClass, blockSelector);\r\n if (!checkAncestors) {\r\n const isUnblocked = unblockSelector && el.matches(unblockSelector);\r\n return blockedPredicate(el) && !isUnblocked;\r\n }\r\n const blockDistance = distanceToMatch(el, blockedPredicate);\r\n let unblockDistance = -1;\r\n if (blockDistance < 0) {\r\n return false;\r\n }\r\n if (unblockSelector) {\r\n unblockDistance = distanceToMatch(el, createMatchPredicate(null, unblockSelector));\r\n }\r\n if (blockDistance > -1 && unblockDistance < 0) {\r\n return true;\r\n }\r\n return blockDistance < unblockDistance;\r\n}\r\nfunction isSerialized(n, mirror) {\r\n return mirror.getId(n) !== -1;\r\n}\r\nfunction isIgnored(n, mirror) {\r\n return mirror.getId(n) === IGNORED_NODE;\r\n}\r\nfunction isAncestorRemoved(target, mirror) {\r\n if (isShadowRoot(target)) {\r\n return false;\r\n }\r\n const id = mirror.getId(target);\r\n if (!mirror.has(id)) {\r\n return true;\r\n }\r\n if (target.parentNode &&\r\n target.parentNode.nodeType === target.DOCUMENT_NODE) {\r\n return false;\r\n }\r\n if (!target.parentNode) {\r\n return true;\r\n }\r\n return isAncestorRemoved(target.parentNode, mirror);\r\n}\r\nfunction legacy_isTouchEvent(event) {\r\n return Boolean(event.changedTouches);\r\n}\r\nfunction polyfill(win = window) {\r\n if ('NodeList' in win && !win.NodeList.prototype.forEach) {\r\n win.NodeList.prototype.forEach = Array.prototype\r\n .forEach;\r\n }\r\n if ('DOMTokenList' in win && !win.DOMTokenList.prototype.forEach) {\r\n win.DOMTokenList.prototype.forEach = Array.prototype\r\n .forEach;\r\n }\r\n if (!Node.prototype.contains) {\r\n Node.prototype.contains = (...args) => {\r\n let node = args[0];\r\n if (!(0 in args)) {\r\n throw new TypeError('1 argument is required');\r\n }\r\n do {\r\n if (this === node) {\r\n return true;\r\n }\r\n } while ((node = node && node.parentNode));\r\n return false;\r\n };\r\n }\r\n}\r\nfunction queueToResolveTrees(queue) {\r\n const queueNodeMap = {};\r\n const putIntoMap = (m, parent) => {\r\n const nodeInTree = {\r\n value: m,\r\n parent,\r\n children: [],\r\n };\r\n queueNodeMap[m.node.id] = nodeInTree;\r\n return nodeInTree;\r\n };\r\n const queueNodeTrees = [];\r\n for (const mutation of queue) {\r\n const { nextId, parentId } = mutation;\r\n if (nextId && nextId in queueNodeMap) {\r\n const nextInTree = queueNodeMap[nextId];\r\n if (nextInTree.parent) {\r\n const idx = nextInTree.parent.children.indexOf(nextInTree);\r\n nextInTree.parent.children.splice(idx, 0, putIntoMap(mutation, nextInTree.parent));\r\n }\r\n else {\r\n const idx = queueNodeTrees.indexOf(nextInTree);\r\n queueNodeTrees.splice(idx, 0, putIntoMap(mutation, null));\r\n }\r\n continue;\r\n }\r\n if (parentId in queueNodeMap) {\r\n const parentInTree = queueNodeMap[parentId];\r\n parentInTree.children.push(putIntoMap(mutation, parentInTree));\r\n continue;\r\n }\r\n queueNodeTrees.push(putIntoMap(mutation, null));\r\n }\r\n return queueNodeTrees;\r\n}\r\nfunction iterateResolveTree(tree, cb) {\r\n cb(tree.value);\r\n for (let i = tree.children.length - 1; i >= 0; i--) {\r\n iterateResolveTree(tree.children[i], cb);\r\n }\r\n}\r\nfunction isSerializedIframe(n, mirror) {\r\n return Boolean(n.nodeName === 'IFRAME' && mirror.getMeta(n));\r\n}\r\nfunction isSerializedStylesheet(n, mirror) {\r\n return Boolean(n.nodeName === 'LINK' &&\r\n n.nodeType === n.ELEMENT_NODE &&\r\n n.getAttribute &&\r\n n.getAttribute('rel') === 'stylesheet' &&\r\n mirror.getMeta(n));\r\n}\r\nfunction getBaseDimension(node, rootIframe) {\r\n const frameElement = node.ownerDocument?.defaultView?.frameElement;\r\n if (!frameElement || frameElement === rootIframe) {\r\n return {\r\n x: 0,\r\n y: 0,\r\n relativeScale: 1,\r\n absoluteScale: 1,\r\n };\r\n }\r\n const frameDimension = frameElement.getBoundingClientRect();\r\n const frameBaseDimension = getBaseDimension(frameElement, rootIframe);\r\n const relativeScale = frameDimension.height / frameElement.clientHeight;\r\n return {\r\n x: frameDimension.x * frameBaseDimension.relativeScale +\r\n frameBaseDimension.x,\r\n y: frameDimension.y * frameBaseDimension.relativeScale +\r\n frameBaseDimension.y,\r\n relativeScale,\r\n absoluteScale: frameBaseDimension.absoluteScale * relativeScale,\r\n };\r\n}\r\nfunction hasShadowRoot(n) {\r\n return Boolean(n?.shadowRoot);\r\n}\r\nfunction getNestedRule(rules, position) {\r\n const rule = rules[position[0]];\r\n if (position.length === 1) {\r\n return rule;\r\n }\r\n else {\r\n return getNestedRule(rule.cssRules[position[1]].cssRules, position.slice(2));\r\n }\r\n}\r\nfunction getPositionsAndIndex(nestedIndex) {\r\n const positions = [...nestedIndex];\r\n const index = positions.pop();\r\n return { positions, index };\r\n}\r\nfunction uniqueTextMutations(mutations) {\r\n const idSet = new Set();\r\n const uniqueMutations = [];\r\n for (let i = mutations.length; i--;) {\r\n const mutation = mutations[i];\r\n if (!idSet.has(mutation.id)) {\r\n uniqueMutations.push(mutation);\r\n idSet.add(mutation.id);\r\n }\r\n }\r\n return uniqueMutations;\r\n}\r\nclass StyleSheetMirror {\r\n constructor() {\r\n this.id = 1;\r\n this.styleIDMap = new WeakMap();\r\n this.idStyleMap = new Map();\r\n }\r\n getId(stylesheet) {\r\n return this.styleIDMap.get(stylesheet) ?? -1;\r\n }\r\n has(stylesheet) {\r\n return this.styleIDMap.has(stylesheet);\r\n }\r\n add(stylesheet, id) {\r\n if (this.has(stylesheet))\r\n return this.getId(stylesheet);\r\n let newId;\r\n if (id === undefined) {\r\n newId = this.id++;\r\n }\r\n else\r\n newId = id;\r\n this.styleIDMap.set(stylesheet, newId);\r\n this.idStyleMap.set(newId, stylesheet);\r\n return newId;\r\n }\r\n getStyle(id) {\r\n return this.idStyleMap.get(id) || null;\r\n }\r\n reset() {\r\n this.styleIDMap = new WeakMap();\r\n this.idStyleMap = new Map();\r\n this.id = 1;\r\n }\r\n generateId() {\r\n return this.id++;\r\n }\r\n}\r\nfunction getShadowHost(n) {\r\n let shadowHost = null;\r\n if (n.getRootNode?.()?.nodeType === Node.DOCUMENT_FRAGMENT_NODE &&\r\n n.getRootNode().host)\r\n shadowHost = n.getRootNode().host;\r\n return shadowHost;\r\n}\r\nfunction getRootShadowHost(n) {\r\n let rootShadowHost = n;\r\n let shadowHost;\r\n while ((shadowHost = getShadowHost(rootShadowHost)))\r\n rootShadowHost = shadowHost;\r\n return rootShadowHost;\r\n}\r\nfunction shadowHostInDom(n) {\r\n const doc = n.ownerDocument;\r\n if (!doc)\r\n return false;\r\n const shadowHost = getRootShadowHost(n);\r\n return doc.contains(shadowHost);\r\n}\r\nfunction inDom(n) {\r\n const doc = n.ownerDocument;\r\n if (!doc)\r\n return false;\r\n return doc.contains(n) || shadowHostInDom(n);\r\n}\r\nconst cachedImplementations = {};\r\nfunction getImplementation(name) {\r\n const cached = cachedImplementations[name];\r\n if (cached) {\r\n return cached;\r\n }\r\n const document = window.document;\r\n let impl = window[name];\r\n if (document && typeof document.createElement === 'function') {\r\n try {\r\n const sandbox = document.createElement('iframe');\r\n sandbox.hidden = true;\r\n document.head.appendChild(sandbox);\r\n const contentWindow = sandbox.contentWindow;\r\n if (contentWindow && contentWindow[name]) {\r\n impl =\r\n contentWindow[name];\r\n }\r\n document.head.removeChild(sandbox);\r\n }\r\n catch (e) {\r\n }\r\n }\r\n return (cachedImplementations[name] = impl.bind(window));\r\n}\r\nfunction onRequestAnimationFrame(...rest) {\r\n return getImplementation('requestAnimationFrame')(...rest);\r\n}\r\nfunction setTimeout(...rest) {\r\n return getImplementation('setTimeout')(...rest);\r\n}\r\nfunction clearTimeout(...rest) {\r\n return getImplementation('clearTimeout')(...rest);\r\n}\n\nexport { StyleSheetMirror, _mirror, clearTimeout, closestElementOfNode, getBaseDimension, getNestedRule, getPositionsAndIndex, getRootShadowHost, getShadowHost, getWindowHeight, getWindowScroll, getWindowWidth, hasShadowRoot, hookSetter, inDom, isAncestorRemoved, isBlocked, isIgnored, isSerialized, isSerializedIframe, isSerializedStylesheet, iterateResolveTree, legacy_isTouchEvent, nowTimestamp, on, onRequestAnimationFrame, patch, polyfill, queueToResolveTrees, setTimeout, shadowHostInDom, throttle, uniqueTextMutations };\n", "var EventType = /* @__PURE__ */ ((EventType2) => {\n EventType2[EventType2[\"DomContentLoaded\"] = 0] = \"DomContentLoaded\";\n EventType2[EventType2[\"Load\"] = 1] = \"Load\";\n EventType2[EventType2[\"FullSnapshot\"] = 2] = \"FullSnapshot\";\n EventType2[EventType2[\"IncrementalSnapshot\"] = 3] = \"IncrementalSnapshot\";\n EventType2[EventType2[\"Meta\"] = 4] = \"Meta\";\n EventType2[EventType2[\"Custom\"] = 5] = \"Custom\";\n EventType2[EventType2[\"Plugin\"] = 6] = \"Plugin\";\n return EventType2;\n})(EventType || {});\nvar IncrementalSource = /* @__PURE__ */ ((IncrementalSource2) => {\n IncrementalSource2[IncrementalSource2[\"Mutation\"] = 0] = \"Mutation\";\n IncrementalSource2[IncrementalSource2[\"MouseMove\"] = 1] = \"MouseMove\";\n IncrementalSource2[IncrementalSource2[\"MouseInteraction\"] = 2] = \"MouseInteraction\";\n IncrementalSource2[IncrementalSource2[\"Scroll\"] = 3] = \"Scroll\";\n IncrementalSource2[IncrementalSource2[\"ViewportResize\"] = 4] = \"ViewportResize\";\n IncrementalSource2[IncrementalSource2[\"Input\"] = 5] = \"Input\";\n IncrementalSource2[IncrementalSource2[\"TouchMove\"] = 6] = \"TouchMove\";\n IncrementalSource2[IncrementalSource2[\"MediaInteraction\"] = 7] = \"MediaInteraction\";\n IncrementalSource2[IncrementalSource2[\"StyleSheetRule\"] = 8] = \"StyleSheetRule\";\n IncrementalSource2[IncrementalSource2[\"CanvasMutation\"] = 9] = \"CanvasMutation\";\n IncrementalSource2[IncrementalSource2[\"Font\"] = 10] = \"Font\";\n IncrementalSource2[IncrementalSource2[\"Log\"] = 11] = \"Log\";\n IncrementalSource2[IncrementalSource2[\"Drag\"] = 12] = \"Drag\";\n IncrementalSource2[IncrementalSource2[\"StyleDeclaration\"] = 13] = \"StyleDeclaration\";\n IncrementalSource2[IncrementalSource2[\"Selection\"] = 14] = \"Selection\";\n IncrementalSource2[IncrementalSource2[\"AdoptedStyleSheet\"] = 15] = \"AdoptedStyleSheet\";\n IncrementalSource2[IncrementalSource2[\"CustomElement\"] = 16] = \"CustomElement\";\n return IncrementalSource2;\n})(IncrementalSource || {});\nvar MouseInteractions = /* @__PURE__ */ ((MouseInteractions2) => {\n MouseInteractions2[MouseInteractions2[\"MouseUp\"] = 0] = \"MouseUp\";\n MouseInteractions2[MouseInteractions2[\"MouseDown\"] = 1] = \"MouseDown\";\n MouseInteractions2[MouseInteractions2[\"Click\"] = 2] = \"Click\";\n MouseInteractions2[MouseInteractions2[\"ContextMenu\"] = 3] = \"ContextMenu\";\n MouseInteractions2[MouseInteractions2[\"DblClick\"] = 4] = \"DblClick\";\n MouseInteractions2[MouseInteractions2[\"Focus\"] = 5] = \"Focus\";\n MouseInteractions2[MouseInteractions2[\"Blur\"] = 6] = \"Blur\";\n MouseInteractions2[MouseInteractions2[\"TouchStart\"] = 7] = \"TouchStart\";\n MouseInteractions2[MouseInteractions2[\"TouchMove_Departed\"] = 8] = \"TouchMove_Departed\";\n MouseInteractions2[MouseInteractions2[\"TouchEnd\"] = 9] = \"TouchEnd\";\n MouseInteractions2[MouseInteractions2[\"TouchCancel\"] = 10] = \"TouchCancel\";\n return MouseInteractions2;\n})(MouseInteractions || {});\nvar PointerTypes = /* @__PURE__ */ ((PointerTypes2) => {\n PointerTypes2[PointerTypes2[\"Mouse\"] = 0] = \"Mouse\";\n PointerTypes2[PointerTypes2[\"Pen\"] = 1] = \"Pen\";\n PointerTypes2[PointerTypes2[\"Touch\"] = 2] = \"Touch\";\n return PointerTypes2;\n})(PointerTypes || {});\nvar CanvasContext = /* @__PURE__ */ ((CanvasContext2) => {\n CanvasContext2[CanvasContext2[\"2D\"] = 0] = \"2D\";\n CanvasContext2[CanvasContext2[\"WebGL\"] = 1] = \"WebGL\";\n CanvasContext2[CanvasContext2[\"WebGL2\"] = 2] = \"WebGL2\";\n return CanvasContext2;\n})(CanvasContext || {});\nvar ReplayerEvents = /* @__PURE__ */ ((ReplayerEvents2) => {\n ReplayerEvents2[\"Start\"] = \"start\";\n ReplayerEvents2[\"Pause\"] = \"pause\";\n ReplayerEvents2[\"Resume\"] = \"resume\";\n ReplayerEvents2[\"Resize\"] = \"resize\";\n ReplayerEvents2[\"Finish\"] = \"finish\";\n ReplayerEvents2[\"FullsnapshotRebuilded\"] = \"fullsnapshot-rebuilded\";\n ReplayerEvents2[\"LoadStylesheetStart\"] = \"load-stylesheet-start\";\n ReplayerEvents2[\"LoadStylesheetEnd\"] = \"load-stylesheet-end\";\n ReplayerEvents2[\"SkipStart\"] = \"skip-start\";\n ReplayerEvents2[\"SkipEnd\"] = \"skip-end\";\n ReplayerEvents2[\"MouseInteraction\"] = \"mouse-interaction\";\n ReplayerEvents2[\"EventCast\"] = \"event-cast\";\n ReplayerEvents2[\"CustomEvent\"] = \"custom-event\";\n ReplayerEvents2[\"Flush\"] = \"flush\";\n ReplayerEvents2[\"StateChange\"] = \"state-change\";\n ReplayerEvents2[\"PlayBack\"] = \"play-back\";\n ReplayerEvents2[\"Destroy\"] = \"destroy\";\n return ReplayerEvents2;\n})(ReplayerEvents || {});\n\nexport { CanvasContext, EventType, IncrementalSource, MouseInteractions, PointerTypes, ReplayerEvents };\n", "let errorHandler;\r\nfunction registerErrorHandler(handler) {\r\n errorHandler = handler;\r\n}\r\nfunction unregisterErrorHandler() {\r\n errorHandler = undefined;\r\n}\r\nconst callbackWrapper = (cb) => {\r\n if (!errorHandler) {\r\n return cb;\r\n }\r\n const rrwebWrapped = ((...rest) => {\r\n try {\r\n return cb(...rest);\r\n }\r\n catch (error) {\r\n if (errorHandler && errorHandler(error) === true) {\r\n return () => {\r\n };\r\n }\r\n throw error;\r\n }\r\n });\r\n return rrwebWrapped;\r\n};\n\nexport { callbackWrapper, registerErrorHandler, unregisterErrorHandler };\n", "/*\n * base64-arraybuffer 1.0.1 \n * Copyright (c) 2021 Niklas von Hertzen \n * Released under MIT License\n */\nvar chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n// Use a lookup table to find the index.\nvar lookup = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);\nfor (var i = 0; i < chars.length; i++) {\n lookup[chars.charCodeAt(i)] = i;\n}\nvar encode = function (arraybuffer) {\n var bytes = new Uint8Array(arraybuffer), i, len = bytes.length, base64 = '';\n for (i = 0; i < len; i += 3) {\n base64 += chars[bytes[i] >> 2];\n base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)];\n base64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)];\n base64 += chars[bytes[i + 2] & 63];\n }\n if (len % 3 === 2) {\n base64 = base64.substring(0, base64.length - 1) + '=';\n }\n else if (len % 3 === 1) {\n base64 = base64.substring(0, base64.length - 2) + '==';\n }\n return base64;\n};\nvar decode = function (base64) {\n var bufferLength = base64.length * 0.75, len = base64.length, i, p = 0, encoded1, encoded2, encoded3, encoded4;\n if (base64[base64.length - 1] === '=') {\n bufferLength--;\n if (base64[base64.length - 2] === '=') {\n bufferLength--;\n }\n }\n var arraybuffer = new ArrayBuffer(bufferLength), bytes = new Uint8Array(arraybuffer);\n for (i = 0; i < len; i += 4) {\n encoded1 = lookup[base64.charCodeAt(i)];\n encoded2 = lookup[base64.charCodeAt(i + 1)];\n encoded3 = lookup[base64.charCodeAt(i + 2)];\n encoded4 = lookup[base64.charCodeAt(i + 3)];\n bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);\n bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);\n bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);\n }\n return arraybuffer;\n};\n\nexport { decode, encode };\n", "import { encode } from './../../../../../../ext/base64-arraybuffer/dist/base64-arraybuffer.es5.js';\n\nconst canvasVarMap = new Map();\r\nfunction variableListFor(ctx, ctor) {\r\n let contextMap = canvasVarMap.get(ctx);\r\n if (!contextMap) {\r\n contextMap = new Map();\r\n canvasVarMap.set(ctx, contextMap);\r\n }\r\n if (!contextMap.has(ctor)) {\r\n contextMap.set(ctor, []);\r\n }\r\n return contextMap.get(ctor);\r\n}\r\nconst saveWebGLVar = (value, win, ctx) => {\r\n if (!value ||\r\n !(isInstanceOfWebGLObject(value, win) || typeof value === 'object'))\r\n return;\r\n const name = value.constructor.name;\r\n const list = variableListFor(ctx, name);\r\n let index = list.indexOf(value);\r\n if (index === -1) {\r\n index = list.length;\r\n list.push(value);\r\n }\r\n return index;\r\n};\r\nfunction serializeArg(value, win, ctx) {\r\n if (value instanceof Array) {\r\n return value.map((arg) => serializeArg(arg, win, ctx));\r\n }\r\n else if (value === null) {\r\n return value;\r\n }\r\n else if (value instanceof Float32Array ||\r\n value instanceof Float64Array ||\r\n value instanceof Int32Array ||\r\n value instanceof Uint32Array ||\r\n value instanceof Uint8Array ||\r\n value instanceof Uint16Array ||\r\n value instanceof Int16Array ||\r\n value instanceof Int8Array ||\r\n value instanceof Uint8ClampedArray) {\r\n const name = value.constructor.name;\r\n return {\r\n rr_type: name,\r\n args: [Object.values(value)],\r\n };\r\n }\r\n else if (value instanceof ArrayBuffer) {\r\n const name = value.constructor.name;\r\n const base64 = encode(value);\r\n return {\r\n rr_type: name,\r\n base64,\r\n };\r\n }\r\n else if (value instanceof DataView) {\r\n const name = value.constructor.name;\r\n return {\r\n rr_type: name,\r\n args: [\r\n serializeArg(value.buffer, win, ctx),\r\n value.byteOffset,\r\n value.byteLength,\r\n ],\r\n };\r\n }\r\n else if (value instanceof HTMLImageElement) {\r\n const name = value.constructor.name;\r\n const { src } = value;\r\n return {\r\n rr_type: name,\r\n src,\r\n };\r\n }\r\n else if (value instanceof HTMLCanvasElement) {\r\n const name = 'HTMLImageElement';\r\n const src = value.toDataURL();\r\n return {\r\n rr_type: name,\r\n src,\r\n };\r\n }\r\n else if (value instanceof ImageData) {\r\n const name = value.constructor.name;\r\n return {\r\n rr_type: name,\r\n args: [serializeArg(value.data, win, ctx), value.width, value.height],\r\n };\r\n }\r\n else if (isInstanceOfWebGLObject(value, win) || typeof value === 'object') {\r\n const name = value.constructor.name;\r\n const index = saveWebGLVar(value, win, ctx);\r\n return {\r\n rr_type: name,\r\n index: index,\r\n };\r\n }\r\n return value;\r\n}\r\nconst serializeArgs = (args, win, ctx) => {\r\n return args.map((arg) => serializeArg(arg, win, ctx));\r\n};\r\nconst isInstanceOfWebGLObject = (value, win) => {\r\n const webGLConstructorNames = [\r\n 'WebGLActiveInfo',\r\n 'WebGLBuffer',\r\n 'WebGLFramebuffer',\r\n 'WebGLProgram',\r\n 'WebGLRenderbuffer',\r\n 'WebGLShader',\r\n 'WebGLShaderPrecisionFormat',\r\n 'WebGLTexture',\r\n 'WebGLUniformLocation',\r\n 'WebGLVertexArrayObject',\r\n 'WebGLVertexArrayObjectOES',\r\n ];\r\n const supportedWebGLConstructorNames = webGLConstructorNames.filter((name) => typeof win[name] === 'function');\r\n return Boolean(supportedWebGLConstructorNames.find((name) => value instanceof win[name]));\r\n};\n\nexport { isInstanceOfWebGLObject, saveWebGLVar, serializeArg, serializeArgs, variableListFor };\n", "import { CanvasContext } from '../../../../../types/dist/rrweb-types.js';\nimport { patch, isBlocked, setTimeout, hookSetter } from '../../../utils.js';\nimport { serializeArgs } from './serialize-args.js';\n\nfunction initCanvas2DMutationObserver(cb, win, blockClass, blockSelector, unblockSelector) {\r\n const handlers = [];\r\n const props2D = Object.getOwnPropertyNames(win.CanvasRenderingContext2D.prototype);\r\n for (const prop of props2D) {\r\n try {\r\n if (typeof win.CanvasRenderingContext2D.prototype[prop] !== 'function') {\r\n continue;\r\n }\r\n const restoreHandler = patch(win.CanvasRenderingContext2D.prototype, prop, function (original) {\r\n return function (...args) {\r\n if (!isBlocked(this.canvas, blockClass, blockSelector, unblockSelector, true)) {\r\n setTimeout(() => {\r\n const recordArgs = serializeArgs(args, win, this);\r\n cb(this.canvas, {\r\n type: CanvasContext['2D'],\r\n property: prop,\r\n args: recordArgs,\r\n });\r\n }, 0);\r\n }\r\n return original.apply(this, args);\r\n };\r\n });\r\n handlers.push(restoreHandler);\r\n }\r\n catch {\r\n const hookHandler = hookSetter(win.CanvasRenderingContext2D.prototype, prop, {\r\n set(v) {\r\n cb(this.canvas, {\r\n type: CanvasContext['2D'],\r\n property: prop,\r\n args: [v],\r\n setter: true,\r\n });\r\n },\r\n });\r\n handlers.push(hookHandler);\r\n }\r\n }\r\n return () => {\r\n handlers.forEach((h) => h());\r\n };\r\n}\n\nexport { initCanvas2DMutationObserver as default };\n", "import { patch, isBlocked } from '../../../utils.js';\n\nfunction getNormalizedContextName(contextType) {\r\n return contextType === 'experimental-webgl' ? 'webgl' : contextType;\r\n}\r\nfunction initCanvasContextObserver(win, blockClass, blockSelector, unblockSelector, setPreserveDrawingBufferToTrue) {\r\n const handlers = [];\r\n try {\r\n const restoreHandler = patch(win.HTMLCanvasElement.prototype, 'getContext', function (original) {\r\n return function (contextType, ...args) {\r\n if (!isBlocked(this, blockClass, blockSelector, unblockSelector, true)) {\r\n const ctxName = getNormalizedContextName(contextType);\r\n if (!('__context' in this))\r\n this.__context = ctxName;\r\n if (setPreserveDrawingBufferToTrue &&\r\n ['webgl', 'webgl2'].includes(ctxName)) {\r\n if (args[0] && typeof args[0] === 'object') {\r\n const contextAttributes = args[0];\r\n if (!contextAttributes.preserveDrawingBuffer) {\r\n contextAttributes.preserveDrawingBuffer = true;\r\n }\r\n }\r\n else {\r\n args.splice(0, 1, {\r\n preserveDrawingBuffer: true,\r\n });\r\n }\r\n }\r\n }\r\n return original.apply(this, [contextType, ...args]);\r\n };\r\n });\r\n handlers.push(restoreHandler);\r\n }\r\n catch {\r\n console.error('failed to patch HTMLCanvasElement.prototype.getContext');\r\n }\r\n return () => {\r\n handlers.forEach((h) => h());\r\n };\r\n}\n\nexport { initCanvasContextObserver as default };\n", "import { CanvasContext } from '../../../../../types/dist/rrweb-types.js';\nimport { patch, isBlocked, hookSetter } from '../../../utils.js';\nimport { saveWebGLVar, serializeArgs } from './serialize-args.js';\n\nfunction patchGLPrototype(prototype, type, cb, blockClass, blockSelector, unblockSelector, mirror, win) {\r\n const handlers = [];\r\n const props = Object.getOwnPropertyNames(prototype);\r\n for (const prop of props) {\r\n if ([\r\n 'isContextLost',\r\n 'canvas',\r\n 'drawingBufferWidth',\r\n 'drawingBufferHeight',\r\n ].includes(prop)) {\r\n continue;\r\n }\r\n try {\r\n if (typeof prototype[prop] !== 'function') {\r\n continue;\r\n }\r\n const restoreHandler = patch(prototype, prop, function (original) {\r\n return function (...args) {\r\n const result = original.apply(this, args);\r\n saveWebGLVar(result, win, this);\r\n if ('tagName' in this.canvas &&\r\n !isBlocked(this.canvas, blockClass, blockSelector, unblockSelector, true)) {\r\n const recordArgs = serializeArgs(args, win, this);\r\n const mutation = {\r\n type,\r\n property: prop,\r\n args: recordArgs,\r\n };\r\n cb(this.canvas, mutation);\r\n }\r\n return result;\r\n };\r\n });\r\n handlers.push(restoreHandler);\r\n }\r\n catch {\r\n const hookHandler = hookSetter(prototype, prop, {\r\n set(v) {\r\n cb(this.canvas, {\r\n type,\r\n property: prop,\r\n args: [v],\r\n setter: true,\r\n });\r\n },\r\n });\r\n handlers.push(hookHandler);\r\n }\r\n }\r\n return handlers;\r\n}\r\nfunction initCanvasWebGLMutationObserver(cb, win, blockClass, blockSelector, unblockSelector, mirror) {\r\n const handlers = [];\r\n handlers.push(...patchGLPrototype(win.WebGLRenderingContext.prototype, CanvasContext.WebGL, cb, blockClass, blockSelector, unblockSelector, mirror, win));\r\n if (typeof win.WebGL2RenderingContext !== 'undefined') {\r\n handlers.push(...patchGLPrototype(win.WebGL2RenderingContext.prototype, CanvasContext.WebGL2, cb, blockClass, blockSelector, unblockSelector, mirror, win));\r\n }\r\n return () => {\r\n handlers.forEach((h) => h());\r\n };\r\n}\n\nexport { initCanvasWebGLMutationObserver as default };\n", "var r = `for(var e=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",t=\"undefined\"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s=\"\";for(a=0;a>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+\"=\":r%3==1&&(s=s.substring(0,s.length-2)+\"==\"),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!(\"OffscreenCanvas\"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+\"-\"+t;if(\"OffscreenCanvas\"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext(\"2d\");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return\"\"}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext(\"bitmaprenderer\"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:\"low\"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};`;\n\nexport { r as default };\n", "import r from './image-bitmap-data-url-worker.js';\n\nfunction t(){const t=new Blob([r]);return URL.createObjectURL(t)}\n\nexport { t as getImageBitmapDataUrlWorkerURL };\n", "import { onRequestAnimationFrame, isBlocked } from '../../../utils.js';\nimport { CanvasContext } from '../../../../../types/dist/rrweb-types.js';\nimport initCanvas2DMutationObserver from './2d.js';\nimport initCanvasContextObserver from './canvas.js';\nimport initCanvasWebGLMutationObserver from './webgl.js';\nimport { getImageBitmapDataUrlWorkerURL as t } from '../../../../../rrweb-worker/es/rrweb-worker/index.js';\nimport { callbackWrapper, registerErrorHandler } from '../../error-handler.js';\n\nclass CanvasManagerNoop {\r\n reset() {\r\n }\r\n freeze() {\r\n }\r\n unfreeze() {\r\n }\r\n lock() {\r\n }\r\n unlock() {\r\n }\r\n snapshot() {\r\n }\r\n}\r\nclass CanvasManager {\r\n reset() {\r\n this.pendingCanvasMutations.clear();\r\n this.resetObservers && this.resetObservers();\r\n }\r\n freeze() {\r\n this.frozen = true;\r\n }\r\n unfreeze() {\r\n this.frozen = false;\r\n }\r\n lock() {\r\n this.locked = true;\r\n }\r\n unlock() {\r\n this.locked = false;\r\n }\r\n constructor(options) {\r\n this.pendingCanvasMutations = new Map();\r\n this.rafStamps = { latestId: 0, invokeId: null };\r\n this.frozen = false;\r\n this.locked = false;\r\n this.processMutation = (target, mutation) => {\r\n const newFrame = this.rafStamps.invokeId &&\r\n this.rafStamps.latestId !== this.rafStamps.invokeId;\r\n if (newFrame || !this.rafStamps.invokeId)\r\n this.rafStamps.invokeId = this.rafStamps.latestId;\r\n if (!this.pendingCanvasMutations.has(target)) {\r\n this.pendingCanvasMutations.set(target, []);\r\n }\r\n this.pendingCanvasMutations.get(target).push(mutation);\r\n };\r\n const { sampling = 'all', win, blockClass, blockSelector, unblockSelector, maxCanvasSize, recordCanvas, dataURLOptions, errorHandler, } = options;\r\n this.mutationCb = options.mutationCb;\r\n this.mirror = options.mirror;\r\n this.options = options;\r\n if (errorHandler) {\r\n registerErrorHandler(errorHandler);\r\n }\r\n if (options.enableManualSnapshot) {\r\n return;\r\n }\r\n callbackWrapper(() => {\r\n if (recordCanvas && sampling === 'all')\r\n this.initCanvasMutationObserver(win, blockClass, blockSelector, unblockSelector);\r\n if (recordCanvas && typeof sampling === 'number')\r\n this.initCanvasFPSObserver(sampling, win, blockClass, blockSelector, unblockSelector, maxCanvasSize, {\r\n dataURLOptions,\r\n });\r\n })();\r\n }\r\n initCanvasFPSObserver(fps, win, blockClass, blockSelector, unblockSelector, maxCanvasSize, options) {\r\n const canvasContextReset = initCanvasContextObserver(win, blockClass, blockSelector, unblockSelector, true);\r\n const rafId = this.takeSnapshot(false, fps, win, blockClass, blockSelector, unblockSelector, maxCanvasSize, options.dataURLOptions);\r\n this.resetObservers = () => {\r\n canvasContextReset();\r\n cancelAnimationFrame(rafId);\r\n };\r\n }\r\n initCanvasMutationObserver(win, blockClass, blockSelector, unblockSelector) {\r\n this.startRAFTimestamping();\r\n this.startPendingCanvasMutationFlusher();\r\n const canvasContextReset = initCanvasContextObserver(win, blockClass, blockSelector, unblockSelector, false);\r\n const canvas2DReset = initCanvas2DMutationObserver(this.processMutation.bind(this), win, blockClass, blockSelector, unblockSelector);\r\n const canvasWebGL1and2Reset = initCanvasWebGLMutationObserver(this.processMutation.bind(this), win, blockClass, blockSelector, unblockSelector, this.mirror);\r\n this.resetObservers = () => {\r\n canvasContextReset();\r\n canvas2DReset();\r\n canvasWebGL1and2Reset();\r\n };\r\n }\r\n snapshot(canvasElement) {\r\n const { options } = this;\r\n const rafId = this.takeSnapshot(true, options.sampling === 'all' ? 2 : options.sampling || 2, options.win, options.blockClass, options.blockSelector, options.unblockSelector, options.maxCanvasSize, options.dataURLOptions, canvasElement);\r\n this.resetObservers = () => {\r\n cancelAnimationFrame(rafId);\r\n };\r\n }\r\n takeSnapshot(isManualSnapshot, fps, win, blockClass, blockSelector, unblockSelector, maxCanvasSize, dataURLOptions, canvasElement) {\r\n const snapshotInProgressMap = new Map();\r\n const worker = new Worker(t());\r\n worker.onmessage = (e) => {\r\n const data = e.data;\r\n const { id } = data;\r\n snapshotInProgressMap.set(id, false);\r\n if (!('base64' in data))\r\n return;\r\n const { base64, type, width, height } = data;\r\n this.mutationCb({\r\n id,\r\n type: CanvasContext['2D'],\r\n commands: [\r\n {\r\n property: 'clearRect',\r\n args: [0, 0, width, height],\r\n },\r\n {\r\n property: 'drawImage',\r\n args: [\r\n {\r\n rr_type: 'ImageBitmap',\r\n args: [\r\n {\r\n rr_type: 'Blob',\r\n data: [{ rr_type: 'ArrayBuffer', base64 }],\r\n type,\r\n },\r\n ],\r\n },\r\n 0,\r\n 0,\r\n width,\r\n height,\r\n ],\r\n },\r\n ],\r\n });\r\n };\r\n const timeBetweenSnapshots = 1000 / fps;\r\n let lastSnapshotTime = 0;\r\n let rafId;\r\n const getCanvas = (canvasElement) => {\r\n if (canvasElement) {\r\n return [canvasElement];\r\n }\r\n const matchedCanvas = [];\r\n win.document.querySelectorAll('canvas').forEach((canvas) => {\r\n if (!isBlocked(canvas, blockClass, blockSelector, unblockSelector, true)) {\r\n matchedCanvas.push(canvas);\r\n }\r\n });\r\n return matchedCanvas;\r\n };\r\n const takeCanvasSnapshots = (timestamp) => {\r\n if (lastSnapshotTime &&\r\n timestamp - lastSnapshotTime < timeBetweenSnapshots) {\r\n rafId = onRequestAnimationFrame(takeCanvasSnapshots);\r\n return;\r\n }\r\n lastSnapshotTime = timestamp;\r\n getCanvas(canvasElement).forEach((canvas) => {\r\n const id = this.mirror.getId(canvas);\r\n if (snapshotInProgressMap.get(id))\r\n return;\r\n if (!canvas.width || !canvas.height)\r\n return;\r\n snapshotInProgressMap.set(id, true);\r\n if (!isManualSnapshot &&\r\n ['webgl', 'webgl2'].includes(canvas.__context)) {\r\n const context = canvas.getContext(canvas.__context);\r\n if (context?.getContextAttributes()?.preserveDrawingBuffer === false) {\r\n context.clear(context.COLOR_BUFFER_BIT);\r\n }\r\n }\r\n createImageBitmap(canvas)\r\n .then((bitmap) => {\r\n worker.postMessage({\r\n id,\r\n bitmap,\r\n width: canvas.width,\r\n height: canvas.height,\r\n dataURLOptions,\r\n maxCanvasSize,\r\n }, [bitmap]);\r\n })\r\n .catch((error) => {\r\n callbackWrapper(() => {\r\n throw error;\r\n })();\r\n });\r\n });\r\n rafId = onRequestAnimationFrame(takeCanvasSnapshots);\r\n };\r\n rafId = onRequestAnimationFrame(takeCanvasSnapshots);\r\n return rafId;\r\n }\r\n startPendingCanvasMutationFlusher() {\r\n onRequestAnimationFrame(() => this.flushPendingCanvasMutations());\r\n }\r\n startRAFTimestamping() {\r\n const setLatestRAFTimestamp = (timestamp) => {\r\n this.rafStamps.latestId = timestamp;\r\n onRequestAnimationFrame(setLatestRAFTimestamp);\r\n };\r\n onRequestAnimationFrame(setLatestRAFTimestamp);\r\n }\r\n flushPendingCanvasMutations() {\r\n this.pendingCanvasMutations.forEach((values, canvas) => {\r\n const id = this.mirror.getId(canvas);\r\n this.flushPendingCanvasMutationFor(canvas, id);\r\n });\r\n onRequestAnimationFrame(() => this.flushPendingCanvasMutations());\r\n }\r\n flushPendingCanvasMutationFor(canvas, id) {\r\n if (this.frozen || this.locked) {\r\n return;\r\n }\r\n const valuesWithType = this.pendingCanvasMutations.get(canvas);\r\n if (!valuesWithType || id === -1)\r\n return;\r\n const values = valuesWithType.map((value) => {\r\n const { type, ...rest } = value;\r\n return rest;\r\n });\r\n const { type } = valuesWithType[0];\r\n this.mutationCb({ id, type, commands: values });\r\n this.pendingCanvasMutations.delete(canvas);\r\n }\r\n}\n\nexport { CanvasManager, CanvasManagerNoop };\n", "import { CanvasManager } from '@sentry-internal/rrweb';\nimport { convertIntegrationFnToClass, defineIntegration } from '@sentry/core';\nimport type { InternalCanvasManagerInterface, InternalCanvasManagerOptions } from '@sentry/replay';\nimport type { Integration, IntegrationClass, IntegrationFn } from '@sentry/types';\n\ninterface ReplayCanvasOptions {\n enableManualSnapshot?: boolean;\n maxCanvasSize?: [width: number, height: number];\n quality: 'low' | 'medium' | 'high';\n}\n\ntype GetCanvasManager = (options: InternalCanvasManagerOptions) => InternalCanvasManagerInterface;\nexport interface ReplayCanvasIntegrationOptions {\n enableManualSnapshot?: boolean;\n maxCanvasSize?: number;\n recordCanvas: true;\n getCanvasManager: GetCanvasManager;\n sampling: {\n canvas: number;\n };\n dataURLOptions: {\n type: string;\n quality: number;\n };\n}\n\nconst CANVAS_QUALITY = {\n low: {\n sampling: {\n canvas: 1,\n },\n dataURLOptions: {\n type: 'image/webp',\n quality: 0.25,\n },\n },\n medium: {\n sampling: {\n canvas: 2,\n },\n dataURLOptions: {\n type: 'image/webp',\n quality: 0.4,\n },\n },\n high: {\n sampling: {\n canvas: 4,\n },\n dataURLOptions: {\n type: 'image/webp',\n quality: 0.5,\n },\n },\n};\n\nconst INTEGRATION_NAME = 'ReplayCanvas';\nconst DEFAULT_MAX_CANVAS_SIZE = 1280;\n\n/** Exported only for type safe tests. */\nexport const _replayCanvasIntegration = ((options: Partial = {}) => {\n const [maxCanvasWidth, maxCanvasHeight] = options.maxCanvasSize || [];\n const _canvasOptions = {\n quality: options.quality || 'medium',\n enableManualSnapshot: options.enableManualSnapshot,\n maxCanvasSize: [\n maxCanvasWidth ? Math.min(maxCanvasWidth, DEFAULT_MAX_CANVAS_SIZE) : DEFAULT_MAX_CANVAS_SIZE,\n maxCanvasHeight ? Math.min(maxCanvasHeight, DEFAULT_MAX_CANVAS_SIZE) : DEFAULT_MAX_CANVAS_SIZE,\n ] as [number, number],\n };\n\n let canvasManagerResolve: (value: CanvasManager) => void;\n const _canvasManager: Promise = new Promise(resolve => (canvasManagerResolve = resolve));\n\n return {\n name: INTEGRATION_NAME,\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n setupOnce() {},\n getOptions(): ReplayCanvasIntegrationOptions {\n const { quality, enableManualSnapshot, maxCanvasSize } = _canvasOptions;\n\n return {\n enableManualSnapshot,\n recordCanvas: true,\n getCanvasManager: (getCanvasManagerOptions: InternalCanvasManagerOptions) => {\n const manager = new CanvasManager({\n ...getCanvasManagerOptions,\n enableManualSnapshot,\n maxCanvasSize,\n errorHandler: (err: unknown) => {\n try {\n if (typeof err === 'object') {\n (err as Error & { __rrweb__?: boolean }).__rrweb__ = true;\n }\n } catch (error) {\n // ignore errors here\n // this can happen if the error is frozen or does not allow mutation for other reasons\n }\n },\n });\n canvasManagerResolve(manager);\n return manager;\n },\n ...(CANVAS_QUALITY[quality || 'medium'] || CANVAS_QUALITY.medium),\n };\n },\n async snapshot(canvasElement?: HTMLCanvasElement) {\n const canvasManager = await _canvasManager;\n canvasManager.snapshot(canvasElement);\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Add this in addition to `replayIntegration()` to enable canvas recording.\n */\nexport const replayCanvasIntegration = defineIntegration(_replayCanvasIntegration);\n\n/**\n * @deprecated Use `replayCanvasIntegration()` instead\n */\n// eslint-disable-next-line deprecation/deprecation\nexport const ReplayCanvas = convertIntegrationFnToClass(INTEGRATION_NAME, replayCanvasIntegration) as IntegrationClass<\n Integration & {\n getOptions: () => ReplayCanvasIntegrationOptions;\n }\n>;\n", "import { GLOBAL_OBJ } from '@sentry/utils';\n\n// exporting a separate copy of `WINDOW` rather than exporting the one from `@sentry/browser`\n// prevents the browser package from being bundled in the CDN bundle, and avoids a\n// circular dependency between the browser and feedback packages\nexport const WINDOW = GLOBAL_OBJ as typeof GLOBAL_OBJ & Window;\n\nconst LIGHT_BACKGROUND = '#ffffff';\nconst INHERIT = 'inherit';\nconst SUBMIT_COLOR = 'rgba(108, 95, 199, 1)';\nconst LIGHT_THEME = {\n fontFamily: \"system-ui, 'Helvetica Neue', Arial, sans-serif\",\n fontSize: '14px',\n\n background: LIGHT_BACKGROUND,\n backgroundHover: '#f6f6f7',\n foreground: '#2b2233',\n border: '1.5px solid rgba(41, 35, 47, 0.13)',\n borderRadius: '25px',\n boxShadow: '0px 4px 24px 0px rgba(43, 34, 51, 0.12)',\n\n success: '#268d75',\n error: '#df3338',\n\n submitBackground: 'rgba(88, 74, 192, 1)',\n submitBackgroundHover: SUBMIT_COLOR,\n submitBorder: SUBMIT_COLOR,\n submitOutlineFocus: '#29232f',\n submitForeground: LIGHT_BACKGROUND,\n submitForegroundHover: LIGHT_BACKGROUND,\n\n cancelBackground: 'transparent',\n cancelBackgroundHover: 'var(--background-hover)',\n cancelBorder: 'var(--border)',\n cancelOutlineFocus: 'var(--input-outline-focus)',\n cancelForeground: 'var(--foreground)',\n cancelForegroundHover: 'var(--foreground)',\n\n inputBackground: INHERIT,\n inputForeground: INHERIT,\n inputBorder: 'var(--border)',\n inputOutlineFocus: SUBMIT_COLOR,\n\n formBorderRadius: '20px',\n formContentBorderRadius: '6px',\n};\n\nexport const DEFAULT_THEME = {\n light: LIGHT_THEME,\n dark: {\n ...LIGHT_THEME,\n\n background: '#29232f',\n backgroundHover: '#352f3b',\n foreground: '#ebe6ef',\n border: '1.5px solid rgba(235, 230, 239, 0.15)',\n\n success: '#2da98c',\n error: '#f55459',\n },\n};\n\nexport const ACTOR_LABEL = 'Report a Bug';\nexport const CANCEL_BUTTON_LABEL = 'Cancel';\nexport const SUBMIT_BUTTON_LABEL = 'Send Bug Report';\nexport const FORM_TITLE = 'Report a Bug';\nexport const EMAIL_PLACEHOLDER = 'your.email@example.org';\nexport const EMAIL_LABEL = 'Email';\nexport const MESSAGE_PLACEHOLDER = \"What's the bug? What did you expect?\";\nexport const MESSAGE_LABEL = 'Description';\nexport const NAME_PLACEHOLDER = 'Your Name';\nexport const NAME_LABEL = 'Name';\nexport const IS_REQUIRED_LABEL = '(required)';\nexport const SUCCESS_MESSAGE_TEXT = 'Thank you for your report!';\n\nexport const FEEDBACK_WIDGET_SOURCE = 'widget';\nexport const FEEDBACK_API_SOURCE = 'api';\n", "import type { Scope } from '@sentry/core';\nimport { getIsolationScope } from '@sentry/core';\nimport { prepareEvent } from '@sentry/core';\nimport type { Client, FeedbackEvent } from '@sentry/types';\n\ninterface PrepareFeedbackEventParams {\n client: Client;\n event: FeedbackEvent;\n scope: Scope;\n}\n/**\n * Prepare a feedback event & enrich it with the SDK metadata.\n */\nexport async function prepareFeedbackEvent({\n client,\n scope,\n event,\n}: PrepareFeedbackEventParams): Promise {\n const eventHint = {};\n if (client.emit) {\n client.emit('preprocessEvent', event, eventHint);\n }\n\n const preparedEvent = (await prepareEvent(\n client.getOptions(),\n event,\n eventHint,\n scope,\n client,\n getIsolationScope(),\n )) as FeedbackEvent | null;\n\n if (preparedEvent === null) {\n // Taken from baseclient's `_processEvent` method, where this is handled for errors/transactions\n client.recordDroppedEvent('event_processor', 'feedback', event);\n return null;\n }\n\n // This normally happens in browser client \"_prepareEvent\"\n // but since we do not use this private method from the client, but rather the plain import\n // we need to do this manually.\n preparedEvent.platform = preparedEvent.platform || 'javascript';\n\n return preparedEvent;\n}\n", "import { createEventEnvelope, getClient, withScope } from '@sentry/core';\nimport type { FeedbackEvent, TransportMakeRequestResponse } from '@sentry/types';\n\nimport { FEEDBACK_API_SOURCE, FEEDBACK_WIDGET_SOURCE } from '../constants';\nimport type { SendFeedbackData, SendFeedbackOptions } from '../types';\nimport { prepareFeedbackEvent } from './prepareFeedbackEvent';\n\n/**\n * Send feedback using transport\n */\nexport async function sendFeedbackRequest(\n { feedback: { message, email, name, source, url } }: SendFeedbackData,\n { includeReplay = true }: SendFeedbackOptions = {},\n): Promise {\n const client = getClient();\n const transport = client && client.getTransport();\n const dsn = client && client.getDsn();\n\n if (!client || !transport || !dsn) {\n return;\n }\n\n const baseEvent: FeedbackEvent = {\n contexts: {\n feedback: {\n contact_email: email,\n name,\n message,\n url,\n source,\n },\n },\n type: 'feedback',\n };\n\n return withScope(async scope => {\n // No use for breadcrumbs in feedback\n scope.clearBreadcrumbs();\n\n if ([FEEDBACK_API_SOURCE, FEEDBACK_WIDGET_SOURCE].includes(String(source))) {\n scope.setLevel('info');\n }\n\n const feedbackEvent = await prepareFeedbackEvent({\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n scope: scope as any,\n client,\n event: baseEvent,\n });\n\n if (!feedbackEvent) {\n return;\n }\n\n if (client.emit) {\n client.emit('beforeSendFeedback', feedbackEvent, { includeReplay: Boolean(includeReplay) });\n }\n\n const envelope = createEventEnvelope(feedbackEvent, dsn, client.getOptions()._metadata, client.getOptions().tunnel);\n\n let response: void | TransportMakeRequestResponse;\n\n try {\n response = await transport.send(envelope);\n } catch (err) {\n const error = new Error('Unable to send Feedback');\n\n try {\n // In case browsers don't allow this property to be writable\n // @ts-expect-error This needs lib es2022 and newer\n error.cause = err;\n } catch {\n // nothing to do\n }\n throw error;\n }\n\n // TODO (v8): we can remove this guard once transport.send's type signature doesn't include void anymore\n if (!response) {\n return;\n }\n\n // Require valid status codes, otherwise can assume feedback was not sent successfully\n if (typeof response.statusCode === 'number' && (response.statusCode < 200 || response.statusCode >= 300)) {\n throw new Error('Unable to send Feedback');\n }\n\n return response;\n });\n}\n\n/*\n * For reference, the fully built event looks something like this:\n * {\n * \"type\": \"feedback\",\n * \"event_id\": \"d2132d31b39445f1938d7e21b6bf0ec4\",\n * \"timestamp\": 1597977777.6189718,\n * \"dist\": \"1.12\",\n * \"platform\": \"javascript\",\n * \"environment\": \"production\",\n * \"release\": 42,\n * \"tags\": {\"transaction\": \"/organizations/:orgId/performance/:eventSlug/\"},\n * \"sdk\": {\"name\": \"name\", \"version\": \"version\"},\n * \"user\": {\n * \"id\": \"123\",\n * \"username\": \"user\",\n * \"email\": \"user@site.com\",\n * \"ip_address\": \"192.168.11.12\",\n * },\n * \"request\": {\n * \"url\": None,\n * \"headers\": {\n * \"user-Agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Safari/605.1.15\"\n * },\n * },\n * \"contexts\": {\n * \"feedback\": {\n * \"message\": \"test message\",\n * \"contact_email\": \"test@example.com\",\n * \"type\": \"feedback\",\n * },\n * \"trace\": {\n * \"trace_id\": \"4C79F60C11214EB38604F4AE0781BFB2\",\n * \"span_id\": \"FA90FDEAD5F74052\",\n * \"type\": \"trace\",\n * },\n * \"replay\": {\n * \"replay_id\": \"e2d42047b1c5431c8cba85ee2a8ab25d\",\n * },\n * },\n * }\n */\n", "import { getLocationHref } from '@sentry/utils';\n\nimport { FEEDBACK_API_SOURCE } from './constants';\nimport type { SendFeedbackOptions } from './types';\nimport { sendFeedbackRequest } from './util/sendFeedbackRequest';\n\ninterface SendFeedbackParams {\n message: string;\n name?: string;\n email?: string;\n url?: string;\n source?: string;\n}\n\n/**\n * Public API to send a Feedback item to Sentry\n */\nexport function sendFeedback(\n { name, email, message, source = FEEDBACK_API_SOURCE, url = getLocationHref() }: SendFeedbackParams,\n options: SendFeedbackOptions = {},\n): ReturnType {\n if (!message) {\n throw new Error('Unable to submit feedback with empty message');\n }\n\n return sendFeedbackRequest(\n {\n feedback: {\n name,\n email,\n message,\n url,\n source,\n },\n },\n options,\n );\n}\n", "declare const __DEBUG_BUILD__: boolean;\n\n/**\n * This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.\n *\n * ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.\n */\nexport const DEBUG_BUILD = __DEBUG_BUILD__;\n", "import type { FeedbackInternalOptions, OptionalFeedbackConfiguration } from '../types';\n\n/**\n * Quick and dirty deep merge for the Feedback integration options\n */\nexport function mergeOptions(\n defaultOptions: FeedbackInternalOptions,\n optionOverrides: OptionalFeedbackConfiguration,\n): FeedbackInternalOptions {\n return {\n ...defaultOptions,\n ...optionOverrides,\n themeDark: {\n ...defaultOptions.themeDark,\n ...optionOverrides.themeDark,\n },\n themeLight: {\n ...defaultOptions.themeLight,\n ...optionOverrides.themeLight,\n },\n };\n}\n", "/**\n * Creates