@redocly/openapi-docs 3.14.0 → 3.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Redocly OpenAPI Docs
|
|
3
3
|
* (c) Copyright 2025 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version:
|
|
5
|
+
* Version: 0.0.0-20251009123334
|
|
6
6
|
**/function gU(e,t){for(var a=0;a<t.length;a++){const r=t[a];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(r,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vU(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var a=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};a.prototype=t.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(a,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),a}var bU={exports:{}},O0={};/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.js
|
|
@@ -1574,6 +1574,7 @@ Error generating stack: `+C.message+`
|
|
|
1574
1574
|
.panel-language-list,
|
|
1575
1575
|
.panel-overview,
|
|
1576
1576
|
.panel-download,
|
|
1577
|
+
.panel-mcp-overview,
|
|
1577
1578
|
.panel-servers-list,
|
|
1578
1579
|
.panel-request-samples,
|
|
1579
1580
|
.panel-response-samples,
|
|
@@ -8990,7 +8991,7 @@ ${n.indent}`,variablesPrefix:n.variablesPrefix,capitalize:!0,lang:qa.PHP});p.len
|
|
|
8990
8991
|
> * {
|
|
8991
8992
|
justify-self: start;
|
|
8992
8993
|
}
|
|
8993
|
-
`,yrt=({item:{infoDefinition:e}})=>{const t=Wa(),{options:{hideDownloadButtons:a,downloadUrls:r,mockServer:n},parser:{definition:i,definitionUrl:o}}=Wt(ds),{languages:s,activeLanguage:l}=Wt(FO),c=drt({downloadUrls:r}),u=X0(o,U6(i.servers||[],n)),d=i?.["x-mcp"],p=X0(o,d?.servers||[]),h=!(Object.keys(i.paths||{}).length>0)&&d;return v.jsxs(v.Fragment,{children:[!a&&c&&v.jsx(Dh,{className:"panel-download",header:t("openapi.download.description.title","Download OpenAPI description"),isExpandable:!1,children:v.jsx(oat,{downloadObjects:c})}),!!d&&v.jsx(Dh,{className:"panel-
|
|
8994
|
+
`,yrt=({item:{infoDefinition:e}})=>{const t=Wa(),{options:{hideDownloadButtons:a,downloadUrls:r,mockServer:n},parser:{definition:i,definitionUrl:o}}=Wt(ds),{languages:s,activeLanguage:l}=Wt(FO),c=drt({downloadUrls:r}),u=X0(o,U6(i.servers||[],n)),d=i?.["x-mcp"],p=X0(o,d?.servers||i.servers||[]),h=!(Object.keys(i.paths||{}).length>0)&&d;return v.jsxs(v.Fragment,{children:[!a&&c&&v.jsx(Dh,{className:"panel-download",header:t("openapi.download.description.title","Download OpenAPI description"),isExpandable:!1,children:v.jsx(oat,{downloadObjects:c})}),!!d&&v.jsx(Dh,{className:"panel-download",header:t("openapi.mcp.title","MCP server"),isExpandable:!1,children:v.jsx(vrt,{mcpInfo:d,mcpServers:p})}),(e?.license||e?.contact||e?.termsOfService)&&v.jsx(Dh,{className:"panel-mcp-overview",header:t("openapi.info.title","Overview"),isExpandable:!1,children:v.jsx(Hc,{children:v.jsx(kat,{info:e,translate:t})})}),!!s?.length&&!h&&v.jsx(Dh,{className:"panel-language-list",header:t("openapi.languages.title","Languages"),isExpandable:!1,children:v.jsx(crt,{languages:s,activeLanguage:l})}),!!u.length&&!h&&v.jsx(Dh,{className:"panel-servers-list",header:t("openapi.servers.title","Servers"),isExpandable:!1,children:v.jsx(wat,{servers:u,path:"/",translate:t})})]})},one=Be(rt)`
|
|
8994
8995
|
& + & {
|
|
8995
8996
|
margin-left: 0;
|
|
8996
8997
|
}
|
|
@@ -9846,7 +9847,7 @@ ${i.message}`,location:r.child("description")})}}}}),Lpe=e=>({Info:{leave(t){if(
|
|
|
9846
9847
|
font-size: var(--page-404-description-font-size);
|
|
9847
9848
|
line-height: var(--page-404-description-line-height);
|
|
9848
9849
|
font-weight: var(--page-404-description-font-weight);
|
|
9849
|
-
`;async function nxt(e,t,a){let r;if(a?.skipBundle){if(!e)throw new Error('spec must be specified when using "skipBundleAndConvert"');r=e}else r=await Q1t(e||t);try{Jet(r)}catch{}return r}const ixt=({options:e,definitionUrl:t,definition:a,activeSampleLanguage:r,children:n})=>{const[i,o]=K.useState(),[s,l]=K.useState(!0),[c,u]=K.useState(null),[d,p]=K.useState(e||{});K.useEffect(()=>{async function f(){l(!0);try{const b=await Z1t();p({...e,...b}),u(await nxt(a,t,e))}catch(b){o(b.message)}}f()},[a,t,e]);const h=K.useMemo(()=>{if(c)return{definition:c,options:d,definitionUrl:t,activeSampleLanguage:r}},Uet([c,t,d]));return K.useEffect(()=>{h&&l(!1)},[h]),i?v.jsx(X1t,{description:i||"Please check path to your OpenAPI description"}):h?s?bl(e?.hideLoading,!1)?null:v.jsx(Yot,{color:"--loading-spinner-color"}):K.isValidElement(n)?K.cloneElement(n,{store:h}):null:null};function oxt({definition:e,definitionUrl:t,options:a={},activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,router:o}){return v.jsx(ixt,{definition:e,definitionUrl:t,options:a,activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,children:v.jsx(qne,{withCommonStyles:!0,router:o||"hash"})})}function sxt(e){const t={},a=e.attributes;for(let r=0;r<a.length;r++){const n=a[r];t[n.name]=n.value}return t}function lxt(e){const t=sxt(e),a={};for(const r in t){const n=r.replace(/-(.)/g,(i,o)=>o.toUpperCase());a[n]=t[r]}return a}function cxt(e,t=document.querySelector("redoc")){EU.hydrateRoot(t,v.jsx(qne,{store:e}))}function qme(e,t={},a=lB("redoc")){if(a===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');const{router:r,...n}=t;let i,o;typeof e=="string"?i=e:typeof e=="object"&&(o=e),EU.createRoot(a).render(K.createElement(oxt,{definition:o,definitionUrl:i,options:{...n,...lxt(a)},router:r??"hash"},["Loading..."]))}const uxt="
|
|
9850
|
+
`;async function nxt(e,t,a){let r;if(a?.skipBundle){if(!e)throw new Error('spec must be specified when using "skipBundleAndConvert"');r=e}else r=await Q1t(e||t);try{Jet(r)}catch{}return r}const ixt=({options:e,definitionUrl:t,definition:a,activeSampleLanguage:r,children:n})=>{const[i,o]=K.useState(),[s,l]=K.useState(!0),[c,u]=K.useState(null),[d,p]=K.useState(e||{});K.useEffect(()=>{async function f(){l(!0);try{const b=await Z1t();p({...e,...b}),u(await nxt(a,t,e))}catch(b){o(b.message)}}f()},[a,t,e]);const h=K.useMemo(()=>{if(c)return{definition:c,options:d,definitionUrl:t,activeSampleLanguage:r}},Uet([c,t,d]));return K.useEffect(()=>{h&&l(!1)},[h]),i?v.jsx(X1t,{description:i||"Please check path to your OpenAPI description"}):h?s?bl(e?.hideLoading,!1)?null:v.jsx(Yot,{color:"--loading-spinner-color"}):K.isValidElement(n)?K.cloneElement(n,{store:h}):null:null};function oxt({definition:e,definitionUrl:t,options:a={},activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,router:o}){return v.jsx(ixt,{definition:e,definitionUrl:t,options:a,activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,children:v.jsx(qne,{withCommonStyles:!0,router:o||"hash"})})}function sxt(e){const t={},a=e.attributes;for(let r=0;r<a.length;r++){const n=a[r];t[n.name]=n.value}return t}function lxt(e){const t=sxt(e),a={};for(const r in t){const n=r.replace(/-(.)/g,(i,o)=>o.toUpperCase());a[n]=t[r]}return a}function cxt(e,t=document.querySelector("redoc")){EU.hydrateRoot(t,v.jsx(qne,{store:e}))}function qme(e,t={},a=lB("redoc")){if(a===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');const{router:r,...n}=t;let i,o;typeof e=="string"?i=e:typeof e=="object"&&(o=e),EU.createRoot(a).render(K.createElement(oxt,{definition:o,definitionUrl:i,options:{...n,...lxt(a)},router:r??"hash"},["Loading..."]))}const uxt="0.0.0-20251009123334",dxt="1c6c2f0149";function pxt(){const e=lB("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&qme(t,{},e)}pxt();var Wme={exports:{}};/*!
|
|
9850
9851
|
|
|
9851
9852
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
9852
9853
|
<http://stuartk.com/jszip>
|
|
@@ -11202,7 +11203,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11202
11203
|
align-self: flex-end;
|
|
11203
11204
|
padding-top: var(--spacing-xxs);
|
|
11204
11205
|
gap: var(--spacing-xs);
|
|
11205
|
-
`;function yw({input:e,onSave:t,onCancel:a,...r}){const[n,i]=K.useState(!!e.isSecret),o=({name:s,value:l})=>{t({...e,name:s,value:l,isSecret:n})};return v.jsx(Aze,{variable:e,onSave:o,onCancel:a,...r,children:v.jsx(kw,{children:v.jsx(VBt,{value:n,onChange:s=>i(s),title:"Make it secret"})})})}function zT(e){var t=new Error(e);return t.source="ulid",t}var UK="0123456789ABCDEFGHJKMNPQRSTVWXYZ",xw=UK.length,Pze=Math.pow(2,48)-1,ZBt=10,QBt=16;function YBt(e){var t=Math.floor(e()*xw);return t===xw&&(t=xw-1),UK.charAt(t)}function XBt(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>Pze)throw zT("cannot encode time greater than "+Pze);if(e<0)throw zT("time must be positive");if(Number.isInteger(e)===!1)throw zT("time must be an integer");for(var a=void 0,r="";t>0;t--)a=e%xw,r=UK.charAt(a)+r,e=(e-a)/xw;return r}function eLt(e,t){for(var a="";e>0;e--)a=YBt(t)+a;return a}function tLt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments[1];t||(t=typeof window<"u"?window:null);var a=t&&(t.crypto||t.msCrypto);if(a)return function(){var n=new Uint8Array(1);return a.getRandomValues(n),n[0]/255};try{var r=require("crypto");return function(){return r.randomBytes(1).readUInt8()/255}}catch{}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return function(){return Math.random()}}throw zT("secure crypto unusable, insecure Math.random not allowed")}function aLt(e){return e||(e=tLt()),function(t){return isNaN(t)&&(t=Date.now()),XBt(t,ZBt)+eLt(QBt,e)}}var jT=aLt(),rLt=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},Yf="1.9.0",Mze=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function nLt(e){var t=new Set([e]),a=new Set,r=e.match(Mze);if(!r)return function(){return!1};var n={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(n.prerelease!=null)return function(s){return s===e};function i(s){return a.add(s),!1}function o(s){return t.add(s),!0}return function(s){if(t.has(s))return!0;if(a.has(s))return!1;var l=s.match(Mze);if(!l)return i(s);var c={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return c.prerelease!=null||n.major!==c.major?i(s):n.major===0?n.minor===c.minor&&n.patch<=c.patch?o(s):i(s):n.minor<=c.minor?o(s):i(s)}}var iLt=nLt(Yf),oLt=Yf.split(".")[0],ww=Symbol.for("opentelemetry.js.api."+oLt),Sw=rLt;function zw(e,t,a,r){var n;r===void 0&&(r=!1);var i=Sw[ww]=(n=Sw[ww])!==null&&n!==void 0?n:{version:Yf};if(!r&&i[e]){var o=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return a.error(o.stack||o.message),!1}if(i.version!==Yf){var o=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+Yf);return a.error(o.stack||o.message),!1}return i[e]=t,a.debug("@opentelemetry/api: Registered a global for "+e+" v"+Yf+"."),!0}function Xf(e){var t,a,r=(t=Sw[ww])===null||t===void 0?void 0:t.version;if(!(!r||!iLt(r)))return(a=Sw[ww])===null||a===void 0?void 0:a[e]}function jw(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+Yf+".");var a=Sw[ww];a&&delete a[e]}var sLt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},lLt=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},cLt=(function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Ow("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Ow("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Ow("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Ow("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Ow("verbose",this._namespace,t)},e})();function Ow(e,t,a){var r=Xf("diag");if(r)return a.unshift(t),r[e].apply(r,lLt([],sLt(a),!1))}var Dl;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(Dl||(Dl={}));function uLt(e,t){e<Dl.NONE?e=Dl.NONE:e>Dl.ALL&&(e=Dl.ALL),t=t||{};function a(r,n){var i=t[r];return typeof i=="function"&&e>=n?i.bind(t):function(){}}return{error:a("error",Dl.ERROR),warn:a("warn",Dl.WARN),info:a("info",Dl.INFO),debug:a("debug",Dl.DEBUG),verbose:a("verbose",Dl.VERBOSE)}}var dLt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},pLt=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},hLt="diag",hd=(function(){function e(){function t(n){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var s=Xf("diag");if(s)return s[n].apply(s,pLt([],dLt(i),!1))}}var a=this,r=function(n,i){var o,s,l;if(i===void 0&&(i={logLevel:Dl.INFO}),n===a){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return a.error((o=c.stack)!==null&&o!==void 0?o:c.message),!1}typeof i=="number"&&(i={logLevel:i});var u=Xf("diag"),d=uLt((s=i.logLevel)!==null&&s!==void 0?s:Dl.INFO,n);if(u&&!i.suppressOverrideMessage){var p=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+p),d.warn("Current logger will overwrite one already registered from "+p)}return zw("diag",d,a,!0)};a.setLogger=r,a.disable=function(){jw(hLt,a)},a.createComponentLogger=function(n){return new cLt(n)},a.verbose=t("verbose"),a.debug=t("debug"),a.info=t("info"),a.warn=t("warn"),a.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e})(),mLt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},fLt=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},gLt=(function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var a=this._entries.get(t);if(a)return Object.assign({},a)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var a=mLt(t,2),r=a[0],n=a[1];return[r,n]})},e.prototype.setEntry=function(t,a){var r=new e(this._entries);return r._entries.set(t,a),r},e.prototype.removeEntry=function(t){var a=new e(this._entries);return a._entries.delete(t),a},e.prototype.removeEntries=function(){for(var t,a,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=new e(this._entries);try{for(var o=fLt(r),s=o.next();!s.done;s=o.next()){var l=s.value;i._entries.delete(l)}}catch(c){t={error:c}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(t)throw t.error}}return i},e.prototype.clear=function(){return new e},e})(),vLt=Symbol("BaggageEntryMetadata"),bLt=hd.instance();function kLt(e){return e===void 0&&(e={}),new gLt(new Map(Object.entries(e)))}function yLt(e){return typeof e!="string"&&(bLt.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:vLt,toString:function(){return e}}}function ZK(e){return Symbol.for(e)}var xLt=(function(){function e(t){var a=this;a._currentContext=t?new Map(t):new Map,a.getValue=function(r){return a._currentContext.get(r)},a.setValue=function(r,n){var i=new e(a._currentContext);return i._currentContext.set(r,n),i},a.deleteValue=function(r){var n=new e(a._currentContext);return n._currentContext.delete(r),n}}return e})(),vk=new xLt,eg=(function(){var e=function(t,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},e(t,a)};return function(t,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(t,a);function r(){this.constructor=t}t.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)}})(),wLt=(function(){function e(){}return e.prototype.createGauge=function(t,a){return _Lt},e.prototype.createHistogram=function(t,a){return ELt},e.prototype.createCounter=function(t,a){return TLt},e.prototype.createUpDownCounter=function(t,a){return RLt},e.prototype.createObservableGauge=function(t,a){return LLt},e.prototype.createObservableCounter=function(t,a){return BLt},e.prototype.createObservableUpDownCounter=function(t,a){return DLt},e.prototype.addBatchObservableCallback=function(t,a){},e.prototype.removeBatchObservableCallback=function(t){},e})(),OT=(function(){function e(){}return e})(),SLt=(function(e){eg(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(a,r){},t})(OT),zLt=(function(e){eg(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(a,r){},t})(OT),jLt=(function(e){eg(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(a,r){},t})(OT),OLt=(function(e){eg(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(a,r){},t})(OT),QK=(function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e})(),CLt=(function(e){eg(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(QK),ALt=(function(e){eg(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(QK),PLt=(function(e){eg(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(QK),MLt=new wLt,TLt=new SLt,_Lt=new jLt,ELt=new OLt,RLt=new zLt,BLt=new CLt,LLt=new ALt,DLt=new PLt,NLt={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},$Lt={set:function(e,t,a){e!=null&&(e[t]=a)}},ILt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},KLt=function(e,t,a){if(a||arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},HLt=(function(){function e(){}return e.prototype.active=function(){return vk},e.prototype.with=function(t,a,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];return a.call.apply(a,KLt([r],ILt(n),!1))},e.prototype.bind=function(t,a){return a},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e})(),VLt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},FLt=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},YK="context",GLt=new HLt,CT=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return zw(YK,t,hd.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,a,r){for(var n,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return(n=this._getContextManager()).with.apply(n,FLt([t,a,r],VLt(i),!1))},e.prototype.bind=function(t,a){return this._getContextManager().bind(t,a)},e.prototype._getContextManager=function(){return Xf(YK)||GLt},e.prototype.disable=function(){this._getContextManager().disable(),jw(YK,hd.instance())},e})(),jp;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(jp||(jp={}));var Tze="0000000000000000",_ze="00000000000000000000000000000000",Eze={traceId:_ze,spanId:Tze,traceFlags:jp.NONE},Cw=(function(){function e(t){t===void 0&&(t=Eze),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,a){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,a){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,a){},e})(),XK=ZK("OpenTelemetry Context Key SPAN");function eH(e){return e.getValue(XK)||void 0}function qLt(){return eH(CT.getInstance().active())}function tH(e,t){return e.setValue(XK,t)}function WLt(e){return e.deleteValue(XK)}function JLt(e,t){return tH(e,new Cw(t))}function Rze(e){var t;return(t=eH(e))===null||t===void 0?void 0:t.spanContext()}var ULt=/^([0-9a-f]{32})$/i,ZLt=/^[0-9a-f]{16}$/i;function Bze(e){return ULt.test(e)&&e!==_ze}function QLt(e){return ZLt.test(e)&&e!==Tze}function AT(e){return Bze(e.traceId)&&QLt(e.spanId)}function YLt(e){return new Cw(e)}var aH=CT.getInstance(),Lze=(function(){function e(){}return e.prototype.startSpan=function(t,a,r){r===void 0&&(r=aH.active());var n=!!a?.root;if(n)return new Cw;var i=r&&Rze(r);return XLt(i)&&AT(i)?new Cw(i):new Cw},e.prototype.startActiveSpan=function(t,a,r,n){var i,o,s;if(!(arguments.length<2)){arguments.length===2?s=a:arguments.length===3?(i=a,s=r):(i=a,o=r,s=n);var l=o??aH.active(),c=this.startSpan(t,i,l),u=tH(l,c);return aH.with(u,s,void 0,c)}},e})();function XLt(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var e6t=new Lze,t6t=(function(){function e(t,a,r,n){this._provider=t,this.name=a,this.version=r,this.options=n}return e.prototype.startSpan=function(t,a,r){return this._getTracer().startSpan(t,a,r)},e.prototype.startActiveSpan=function(t,a,r,n){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):e6t},e})(),a6t=(function(){function e(){}return e.prototype.getTracer=function(t,a,r){return new Lze},e})(),r6t=new a6t,Dze=(function(){function e(){}return e.prototype.getTracer=function(t,a,r){var n;return(n=this.getDelegateTracer(t,a,r))!==null&&n!==void 0?n:new t6t(this,t,a,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:r6t},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,a,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getTracer(t,a,r)},e})(),PT;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(PT||(PT={}));var rH;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(rH||(rH={}));var Aw;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(Aw||(Aw={}));var cu=CT.getInstance(),Or=hd.instance(),n6t=(function(){function e(){}return e.prototype.getMeter=function(t,a,r){return MLt},e})(),i6t=new n6t,nH="metrics",o6t=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return zw(nH,t,hd.instance())},e.prototype.getMeterProvider=function(){return Xf(nH)||i6t},e.prototype.getMeter=function(t,a,r){return this.getMeterProvider().getMeter(t,a,r)},e.prototype.disable=function(){jw(nH,hd.instance())},e})(),s6t=o6t.getInstance(),l6t=(function(){function e(){}return e.prototype.inject=function(t,a){},e.prototype.extract=function(t,a){return t},e.prototype.fields=function(){return[]},e})(),iH=ZK("OpenTelemetry Baggage Key");function Nze(e){return e.getValue(iH)||void 0}function c6t(){return Nze(CT.getInstance().active())}function u6t(e,t){return e.setValue(iH,t)}function d6t(e){return e.deleteValue(iH)}var oH="propagation",p6t=new l6t,h6t=(function(){function e(){this.createBaggage=kLt,this.getBaggage=Nze,this.getActiveBaggage=c6t,this.setBaggage=u6t,this.deleteBaggage=d6t}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return zw(oH,t,hd.instance())},e.prototype.inject=function(t,a,r){return r===void 0&&(r=$Lt),this._getGlobalPropagator().inject(t,a,r)},e.prototype.extract=function(t,a,r){return r===void 0&&(r=NLt),this._getGlobalPropagator().extract(t,a,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){jw(oH,hd.instance())},e.prototype._getGlobalPropagator=function(){return Xf(oH)||p6t},e})(),Pw=h6t.getInstance(),sH="trace",m6t=(function(){function e(){this._proxyTracerProvider=new Dze,this.wrapSpanContext=YLt,this.isSpanContextValid=AT,this.deleteSpan=WLt,this.getSpan=eH,this.getActiveSpan=qLt,this.getSpanContext=Rze,this.setSpan=tH,this.setSpanContext=JLt}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var a=zw(sH,this._proxyTracerProvider,hd.instance());return a&&this._proxyTracerProvider.setDelegate(t),a},e.prototype.getTracerProvider=function(){return Xf(sH)||this._proxyTracerProvider},e.prototype.getTracer=function(t,a){return this.getTracerProvider().getTracer(t,a)},e.prototype.disable=function(){jw(sH,hd.instance()),this._proxyTracerProvider=new Dze},e})(),Nl=m6t.getInstance();const $ze=ZK("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function f6t(e){return e.setValue($ze,!0)}function lH(e){return e.getValue($ze)===!0}const g6t="=",cH=";",uH=",",dH="baggage",v6t=180,b6t=4096,k6t=8192;function y6t(e){return e.reduce((t,a)=>{const r=`${t}${t!==""?uH:""}${a}`;return r.length>k6t?t:r},"")}function x6t(e){return e.getAllEntries().map(([t,a])=>{let r=`${encodeURIComponent(t)}=${encodeURIComponent(a.value)}`;return a.metadata!==void 0&&(r+=cH+a.metadata.toString()),r})}function w6t(e){const t=e.split(cH);if(t.length<=0)return;const a=t.shift();if(!a)return;const r=a.indexOf(g6t);if(r<=0)return;const n=decodeURIComponent(a.substring(0,r).trim()),i=decodeURIComponent(a.substring(r+1).trim());let o;return t.length>0&&(o=yLt(t.join(cH))),{key:n,value:i,metadata:o}}class S6t{inject(t,a,r){const n=Pw.getBaggage(t);if(!n||lH(t))return;const i=x6t(n).filter(s=>s.length<=b6t).slice(0,v6t),o=y6t(i);o.length>0&&r.set(a,dH,o)}extract(t,a,r){const n=r.get(a,dH),i=Array.isArray(n)?n.join(uH):n;if(!i)return t;const o={};return i.length===0||(i.split(uH).forEach(s=>{const l=w6t(s);if(l){const c={value:l.value};l.metadata&&(c.metadata=l.metadata),o[l.key]=c}}),Object.entries(o).length===0)?t:Pw.setBaggage(t,Pw.createBaggage(o))}fields(){return[dH]}}function MT(e){const t={};if(typeof e!="object"||e==null)return t;for(const[a,r]of Object.entries(e)){if(!z6t(a)){Or.warn(`Invalid attribute key: ${a}`);continue}if(!Ize(r)){Or.warn(`Invalid attribute value set for key: ${a}`);continue}Array.isArray(r)?t[a]=r.slice():t[a]=r}return t}function z6t(e){return typeof e=="string"&&e.length>0}function Ize(e){return e==null?!0:Array.isArray(e)?j6t(e):Kze(e)}function j6t(e){let t;for(const a of e)if(a!=null){if(!t){if(Kze(a)){t=typeof a;continue}return!1}if(typeof a!==t)return!1}return!0}function Kze(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function O6t(){return e=>{Or.error(C6t(e))}}function C6t(e){return typeof e=="string"?e:JSON.stringify(A6t(e))}function A6t(e){const t={};let a=e;for(;a!==null;)Object.getOwnPropertyNames(a).forEach(r=>{if(t[r])return;const n=a[r];n&&(t[r]=String(n))}),a=Object.getPrototypeOf(a);return t}let P6t=O6t();function bk(e){try{P6t(e)}catch{}}const kk=performance,M6t="2.0.1",pH="exception.message",T6t="exception.stacktrace",hH="exception.type",Hze="service.name",_6t="service.version",mH="telemetry.sdk.language",E6t="webjs",fH="telemetry.sdk.name",gH="telemetry.sdk.version",R6t="process.runtime.name",vH={[fH]:"opentelemetry",[R6t]:"browser",[mH]:E6t,[gH]:M6t},B6t=9,L6t=6,D6t=Math.pow(10,L6t),TT=Math.pow(10,B6t);function yk(e){const t=e/1e3,a=Math.trunc(t),r=Math.round(e%1e3*D6t);return[a,r]}function Vze(){let e=kk.timeOrigin;if(typeof e!="number"){const t=kk;e=t.timing&&t.timing.fetchStart}return e}function N6t(e){const t=yk(Vze()),a=yk(typeof e=="number"?e:kk.now());return qze(t,a)}function $6t(e,t){let a=t[0]-e[0],r=t[1]-e[1];return r<0&&(a-=1,r+=TT),[a,r]}function I6t(e){return e[0]*TT+e[1]}function Fze(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function Gze(e){return Fze(e)||typeof e=="number"||e instanceof Date}function qze(e,t){const a=[e[0]+t[0],e[1]+t[1]];return a[1]>=TT&&(a[1]-=TT,a[0]+=1),a}var md;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(md||(md={}));class K6t{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(a=>typeof a.fields=="function"?a.fields():[]).reduce((a,r)=>a.concat(r),[])))}inject(t,a,r){for(const n of this._propagators)try{n.inject(t,a,r)}catch(i){Or.warn(`Failed to inject with ${n.constructor.name}. Err: ${i.message}`)}}extract(t,a,r){return this._propagators.reduce((n,i)=>{try{return i.extract(n,a,r)}catch(o){Or.warn(`Failed to extract with ${i.constructor.name}. Err: ${o.message}`)}return n},t)}fields(){return this._fields.slice()}}const bH="[_0-9a-z-*/]",H6t=`[a-z]${bH}{0,255}`,V6t=`[a-z0-9]${bH}{0,240}@[a-z]${bH}{0,13}`,F6t=new RegExp(`^(?:${H6t}|${V6t})$`),G6t=/^[ -~]{0,255}[!-~]$/,q6t=/,|=/;function W6t(e){return F6t.test(e)}function J6t(e){return G6t.test(e)&&!q6t.test(e)}const Wze=32,U6t=512,Jze=",",Uze="=";class pq{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,a){const r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,a),r}unset(t){const a=this._clone();return a._internalState.delete(t),a}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,a)=>(t.push(a+Uze+this.get(a)),t),[]).join(Jze)}_parse(t){t.length>U6t||(this._internalState=t.split(Jze).reverse().reduce((a,r)=>{const n=r.trim(),i=n.indexOf(Uze);if(i!==-1){const o=n.slice(0,i),s=n.slice(i+1,r.length);W6t(o)&&J6t(s)&&a.set(o,s)}return a},new Map),this._internalState.size>Wze&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Wze))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new pq;return t._internalState=new Map(this._internalState),t}}const kH="traceparent",yH="tracestate",Z6t="00",Q6t="(?!ff)[\\da-f]{2}",Y6t="(?![0]{32})[\\da-f]{32}",X6t="(?![0]{16})[\\da-f]{16}",e9t="[\\da-f]{2}",t9t=new RegExp(`^\\s?(${Q6t})-(${Y6t})-(${X6t})-(${e9t})(-.*)?\\s?$`);function a9t(e){const t=t9t.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class r9t{inject(t,a,r){const n=Nl.getSpanContext(t);if(!n||lH(t)||!AT(n))return;const i=`${Z6t}-${n.traceId}-${n.spanId}-0${Number(n.traceFlags||jp.NONE).toString(16)}`;r.set(a,kH,i),n.traceState&&r.set(a,yH,n.traceState.serialize())}extract(t,a,r){const n=r.get(a,kH);if(!n)return t;const i=Array.isArray(n)?n[0]:n;if(typeof i!="string")return t;const o=a9t(i);if(!o)return t;o.isRemote=!0;const s=r.get(a,yH);if(s){const l=Array.isArray(s)?s.join(","):s;o.traceState=new pq(typeof l=="string"?l:void 0)}return Nl.setSpanContext(t,o)}fields(){return[kH,yH]}}const n9t="[object Object]",i9t="[object Null]",o9t="[object Undefined]",s9t=Function.prototype,Zze=s9t.toString,l9t=Zze.call(Object),c9t=Object.getPrototypeOf,Qze=Object.prototype,Yze=Qze.hasOwnProperty,tg=Symbol?Symbol.toStringTag:void 0,Xze=Qze.toString;function eje(e){if(!u9t(e)||d9t(e)!==n9t)return!1;const t=c9t(e);if(t===null)return!0;const a=Yze.call(t,"constructor")&&t.constructor;return typeof a=="function"&&a instanceof a&&Zze.call(a)===l9t}function u9t(e){return e!=null&&typeof e=="object"}function d9t(e){return e==null?e===void 0?o9t:i9t:tg&&tg in Object(e)?p9t(e):h9t(e)}function p9t(e){const t=Yze.call(e,tg),a=e[tg];let r=!1;try{e[tg]=void 0,r=!0}catch{}const n=Xze.call(e);return r&&(t?e[tg]=a:delete e[tg]),n}function h9t(e){return Xze.call(e)}const m9t=20;function f9t(...e){let t=e.shift();const a=new WeakMap;for(;e.length>0;)t=tje(t,e.shift(),0,a);return t}function xH(e){return _T(e)?e.slice():e}function tje(e,t,a=0,r){let n;if(!(a>m9t)){if(a++,ET(e)||ET(t)||rje(t))n=xH(t);else if(_T(e)){if(n=e.slice(),_T(t))for(let i=0,o=t.length;i<o;i++)n.push(xH(t[i]));else if(Mw(t)){const i=Object.keys(t);for(let o=0,s=i.length;o<s;o++){const l=i[o];n[l]=xH(t[l])}}}else if(Mw(e))if(Mw(t)){if(!g9t(e,t))return t;n=Object.assign({},e);const i=Object.keys(t);for(let o=0,s=i.length;o<s;o++){const l=i[o],c=t[l];if(ET(c))typeof c>"u"?delete n[l]:n[l]=c;else{const u=n[l],d=c;if(aje(e,l,r)||aje(t,l,r))delete n[l];else{if(Mw(u)&&Mw(d)){const p=r.get(u)||[],h=r.get(d)||[];p.push({obj:e,key:l}),h.push({obj:t,key:l}),r.set(u,p),r.set(d,h)}n[l]=tje(n[l],c,a,r)}}}}else n=t;return n}}function aje(e,t,a){const r=a.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){const o=r[n];if(o.key===t&&o.obj===e)return!0}return!1}function _T(e){return Array.isArray(e)}function rje(e){return typeof e=="function"}function Mw(e){return!ET(e)&&!_T(e)&&!rje(e)&&typeof e=="object"}function ET(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function g9t(e,t){return!(!eje(e)||!eje(t))}class v9t{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,a)=>{this._resolve=t,this._reject=a})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class b9t{_callback;_that;_isCalled=!1;_deferred=new v9t;constructor(t,a){this._callback=t,this._that=a}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(a=>this._deferred.resolve(a),a=>this._deferred.reject(a))}catch(a){this._deferred.reject(a)}}return this._deferred.promise}}function k9t(){return"unknown_service"}const Tw=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class cR{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(t){const a=new cR({});return a._rawAttributes=ije(t),a._asyncAttributesPending=t.filter(([r,n])=>Tw(n)).length>0,a}constructor(t){const a=t.attributes??{};this._rawAttributes=Object.entries(a).map(([r,n])=>(Tw(n)&&(this._asyncAttributesPending=!0),[r,n])),this._rawAttributes=ije(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[a,r]=this._rawAttributes[t];this._rawAttributes[t]=[a,Tw(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&Or.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[a,r]of this._rawAttributes){if(Tw(r)){Or.debug(`Unsettled resource attribute ${a} skipped`);continue}r!=null&&(t[a]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}merge(t){return t==null?this:cR.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()])}}function nje(e){return cR.FromAttributeList(Object.entries(e))}function y9t(){return nje({[Hze]:k9t(),[mH]:vH[mH],[fH]:vH[fH],[gH]:vH[gH]})}function ije(e){return e.map(([t,a])=>Tw(a)?[t,a.catch(r=>{Or.debug("promise rejection for resource attribute: %s - %s",t,r)})]:[t,a])}const x9t="exception";class w9t{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:Aw.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const a=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=kk.now(),this._performanceOffset=a-(this._performanceStartTime+Vze()),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,this.links=t.links||[],this.startTime=this._getTime(t.startTime??a),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,a){if(a==null||this._isSpanEnded())return this;if(t.length===0)return Or.warn(`Invalid attribute key: ${t}`),this;if(!Ize(a))return Or.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:r}=this._spanLimits;return r!==void 0&&Object.keys(this.attributes).length>=r&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(a),this)}setAttributes(t){for(const[a,r]of Object.entries(t))this.setAttribute(a,r);return this}addEvent(t,a,r){if(this._isSpanEnded())return this;const{eventCountLimit:n}=this._spanLimits;if(n===0)return Or.warn("No events allowed."),this._droppedEventsCount++,this;n!==void 0&&this.events.length>=n&&(this._droppedEventsCount===0&&Or.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),Gze(a)&&(Gze(r)||(r=a),a=void 0);const i=MT(a);return this.events.push({name:t,attributes:i,time:this._getTime(r),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(Or.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){Or.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(t),this._duration=$6t(this.startTime,this.endTime),this._duration[0]<0&&(Or.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&Or.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=kk.now())return N6t(t+this._performanceOffset);if(typeof t=="number")return yk(t);if(t instanceof Date)return yk(t.getTime());if(Fze(t))return t;if(this._startTimeProvided)return yk(Date.now());const a=kk.now()-this._performanceStartTime;return qze(this.startTime,yk(a))}isRecording(){return this._ended===!1}recordException(t,a){const r={};typeof t=="string"?r[pH]=t:t&&(t.code?r[hH]=t.code.toString():t.name&&(r[hH]=t.name),t.message&&(r[pH]=t.message),t.stack&&(r[T6t]=t.stack)),r[hH]||r[pH]?this.addEvent(x9t,r,a):Or.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);Or.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,a){return t.length<=a?t:t.substring(0,a)}_truncateToSize(t){const a=this._attributeValueLengthLimit;return a<=0?(Or.warn(`Attribute value limit must be positive, got ${a}`),t):typeof t=="string"?this._truncateToLimitUtil(t,a):Array.isArray(t)?t.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,a):r):t}}var xk;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(xk||(xk={}));class RT{shouldSample(){return{decision:xk.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class wk{shouldSample(){return{decision:xk.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class BT{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(bk(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new wk),this._remoteParentSampled=t.remoteParentSampled??new wk,this._remoteParentNotSampled=t.remoteParentNotSampled??new RT,this._localParentSampled=t.localParentSampled??new wk,this._localParentNotSampled=t.localParentNotSampled??new RT}shouldSample(t,a,r,n,i,o){const s=Nl.getSpanContext(t);return!s||!AT(s)?this._root.shouldSample(t,a,r,n,i,o):s.isRemote?s.traceFlags&jp.SAMPLED?this._remoteParentSampled.shouldSample(t,a,r,n,i,o):this._remoteParentNotSampled.shouldSample(t,a,r,n,i,o):s.traceFlags&jp.SAMPLED?this._localParentSampled.shouldSample(t,a,r,n,i,o):this._localParentNotSampled.shouldSample(t,a,r,n,i,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class oje{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,a){return{decision:Bze(a)&&this._accumulate(a)<this._upperBound?xk.RECORD_AND_SAMPLED:xk.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let a=0;for(let r=0;r<t.length/8;r++){const n=r*8,i=parseInt(t.slice(n,n+8),16);a=(a^i)>>>0}return a}}const sje=1;function lje(){return{sampler:cje(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function cje(){const e="parentbased_always_on";switch(e){case"always_on":return new wk;case"always_off":return new RT;case"parentbased_always_on":return new BT({root:new wk});case"parentbased_always_off":return new BT({root:new RT});case"traceidratio":return new oje(uje());case"parentbased_traceidratio":return new BT({root:new oje(uje())});default:return Or.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "parentbased_always_on".`),new BT({root:new wk})}}function uje(){return Or.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${sje}.`),sje}const S9t=128,z9t=1/0;function j9t(e){const t={sampler:cje()},a=lje(),r=Object.assign({},a,t,e);return r.generalLimits=Object.assign({},a.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},a.spanLimits,e.spanLimits||{}),r}function O9t(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??S9t,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??z9t,Object.assign({},e,{spanLimits:t})}class C9t{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t,a){this._exporter=t,this._maxExportBatchSize=typeof a?.maxExportBatchSize=="number"?a.maxExportBatchSize:512,this._maxQueueSize=typeof a?.maxQueueSize=="number"?a.maxQueueSize:2048,this._scheduledDelayMillis=typeof a?.scheduledDelayMillis=="number"?a.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof a?.exportTimeoutMillis=="number"?a.exportTimeoutMillis:3e4,this._shutdownOnce=new b9t(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Or.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(t,a){}onEnd(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&jp.SAMPLED)!==0&&this._addToBuffer(t)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&Or.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(Or.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,a)=>{const r=[],n=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,o=n;i<o;i++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{t()}).catch(a)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,a)=>{const r=setTimeout(()=>{a(new Error("Timeout"))},this._exportTimeoutMillis);cu.with(f6t(cu.active()),()=>{let n;this._finishedSpans.length<=this._maxExportBatchSize?(n=this._finishedSpans,this._finishedSpans=[]):n=this._finishedSpans.splice(0,this._maxExportBatchSize);const i=()=>this._exporter.export(n,s=>{clearTimeout(r),s.code===md.SUCCESS?t():a(s.error??new Error("BatchSpanProcessor: span export failed"))});let o=null;for(let s=0,l=n.length;s<l;s++){const c=n[s];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(o??=[],o.push(c.resource.waitForAsyncAttributes()))}o===null?i():Promise.all(o).then(i,s=>{bk(s),a(s)})})})}_maybeStartTimer(){if(this._isExporting)return;const t=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(a=>{this._isExporting=!1,bk(a)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class A9t extends C9t{_visibilityChangeListener;_pageHideListener;constructor(t,a){super(t,a),this.onInit(a)}onInit(t){t?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(a=>{bk(a)})},this._pageHideListener=()=>{this.forceFlush().catch(a=>{bk(a)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}const P9t=8,M9t=16;class T9t{generateTraceId=dje(M9t);generateSpanId=dje(P9t)}const LT=Array(32);function dje(e){return function(){for(let t=0;t<e*2;t++)LT[t]=Math.floor(Math.random()*16)+48,LT[t]>=58&&(LT[t]+=39);return String.fromCharCode.apply(null,LT.slice(0,e*2))}}class _9t{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,a,r,n){const i=j9t(a);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=a.idGenerator||new T9t,this._resource=r,this._spanProcessor=n,this.instrumentationScope=t}startSpan(t,a={},r=cu.active()){a.root&&(r=Nl.deleteSpan(r));const n=Nl.getSpan(r);if(lH(r))return Or.debug("Instrumentation suppressed, returning Noop Span"),Nl.wrapSpanContext(Eze);const i=n?.spanContext(),o=this._idGenerator.generateSpanId();let s,l,c;!i||!Nl.isSpanContextValid(i)?l=this._idGenerator.generateTraceId():(l=i.traceId,c=i.traceState,s=i);const u=a.kind??rH.INTERNAL,d=(a.links??[]).map(m=>({context:m.context,attributes:MT(m.attributes)})),p=MT(a.attributes),h=this._sampler.shouldSample(r,l,t,u,p,d);c=h.traceState??c;const f=h.decision===PT.RECORD_AND_SAMPLED?jp.SAMPLED:jp.NONE,b={traceId:l,spanId:o,traceFlags:f,traceState:c};if(h.decision===PT.NOT_RECORD)return Or.debug("Recording is off, propagating context in a non-recording span"),Nl.wrapSpanContext(b);const g=MT(Object.assign(p,h.attributes));return new w9t({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:b,name:t,kind:u,links:d,parentSpanContext:s,attributes:g,startTime:a.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,a,r,n){let i,o,s;if(arguments.length<2)return;arguments.length===2?s=a:arguments.length===3?(i=a,s=r):(i=a,o=r,s=n);const l=o??cu.active(),c=this.startSpan(t,i,l),u=Nl.setSpan(l,c);return cu.with(u,s,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class E9t{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const a of this._spanProcessors)t.push(a.forceFlush());return new Promise(a=>{Promise.all(t).then(()=>{a()}).catch(r=>{bk(r||new Error("MultiSpanProcessor: forceFlush failed")),a()})})}onStart(t,a){for(const r of this._spanProcessors)r.onStart(t,a)}onEnd(t){for(const a of this._spanProcessors)a.onEnd(t)}shutdown(){const t=[];for(const a of this._spanProcessors)t.push(a.shutdown());return new Promise((a,r)=>{Promise.all(t).then(()=>{a()},r)})}}var ag;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(ag||(ag={}));class R9t{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const a=f9t({},lje(),O9t(t));this._resource=a.resource??y9t(),this._config=Object.assign({},a,{resource:this._resource});const r=[];t.spanProcessors?.length&&r.push(...t.spanProcessors),this._activeSpanProcessor=new E9t(r)}getTracer(t,a,r){const n=`${t}@${a||""}:${r?.schemaUrl||""}`;return this._tracers.has(n)||this._tracers.set(n,new _9t({name:t,version:a,schemaUrl:r?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(n)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,a=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(n=>{let i;const o=setTimeout(()=>{n(new Error(`Span processor did not completed within timeout period of ${t} ms`)),i=ag.timeout},t);r.forceFlush().then(()=>{clearTimeout(o),i!==ag.timeout&&(i=ag.resolved,n(i))}).catch(s=>{clearTimeout(o),i=ag.error,n(s)})}));return new Promise((r,n)=>{Promise.all(a).then(i=>{const o=i.filter(s=>s!==ag.resolved);o.length>0?n(o):r()}).catch(i=>n([i]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class B9t{_enabled=!1;_currentContext=vk;_bindFunction(t=vk,a){const r=this,n=function(...i){return r.with(t,()=>a.apply(this,i))};return Object.defineProperty(n,"length",{enumerable:!1,configurable:!0,writable:!1,value:a.length}),n}active(){return this._currentContext}bind(t,a){return t===void 0&&(t=this.active()),typeof a=="function"?this._bindFunction(t,a):a}disable(){return this._currentContext=vk,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=vk,this)}with(t,a,r,...n){const i=this._currentContext;this._currentContext=t||vk;try{return a.call(r,...n)}finally{this._currentContext=i}}}function L9t(e){if(e!==null){if(e===void 0){const t=new B9t;t.enable(),cu.setGlobalContextManager(t);return}e.enable(),cu.setGlobalContextManager(e)}}function D9t(e){if(e!==null){if(e===void 0){Pw.setGlobalPropagator(new K6t({propagators:[new r9t,new S6t]}));return}Pw.setGlobalPropagator(e)}}class N9t extends R9t{constructor(t={}){super(t)}register(t={}){Nl.setGlobalTracerProvider(this),D9t(t.propagator),L9t(t.contextManager)}}class $9t{_delegate;constructor(t){this._delegate=t}export(t,a){this._delegate.export(t,a)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class pje extends Error{code;name="OTLPExporterError";data;constructor(t,a,r){super(t),this.data=r,this.code=a}}function I9t(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function K9t(e){if(e!=null)return()=>e}function H9t(e,t,a){return{timeoutMillis:I9t(e.timeoutMillis??t.timeoutMillis??a.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??a.concurrencyLimit,compression:e.compression??t.compression??a.compression}}function V9t(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class F9t{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const a=()=>{const r=this._sendingPromises.indexOf(t);this._sendingPromises.splice(r,1)};t.then(a,a)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function G9t(e){return new F9t(e.concurrencyLimit)}function q9t(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function W9t(){return{handleResponse(e){e==null||!q9t(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||Or.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class J9t{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(t,a,r,n,i){this._transport=t,this._serializer=a,this._responseHandler=r,this._promiseQueue=n,this._timeout=i,this._diagLogger=Or.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,a){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){a({code:md.FAILED,error:new Error("Concurrent export limit reached")});return}const r=this._serializer.serializeRequest(t);if(r==null){a({code:md.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(n=>{if(n.status==="success"){if(n.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(n.data))}catch(i){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",i,n.data)}a({code:md.SUCCESS});return}else if(n.status==="failure"&&n.error){a({code:md.FAILED,error:n.error});return}else n.status==="retryable"?a({code:md.FAILED,error:new pje("Export failed with retryable status")}):a({code:md.FAILED,error:new pje("Export failed with unknown error")})},n=>a({code:md.FAILED,error:n})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function U9t(e,t){return new J9t(e.transport,e.serializer,W9t(),e.promiseHandler,t.timeout)}function hje(e,t,a){return U9t({transport:a,serializer:t,promiseHandler:G9t(e)},{timeout:e.timeoutMillis})}function mje(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function fje(e){const t=new Uint8Array(e.length/2);let a=0;for(let r=0;r<e.length;r+=2){const n=mje(e.charCodeAt(r)),i=mje(e.charCodeAt(r+1));t[a++]=n<<4|i}return t}function gje(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function Z9t(e){const t=Number(BigInt.asUintN(32,e)),a=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:a}}function Q9t(e){const t=gje(e);return Z9t(t)}function Y9t(e){return gje(e).toString()}const X9t=typeof BigInt<"u"?Y9t:I6t;function vje(e){return e}function e8t(e){if(e!==void 0)return fje(e)}const t8t={encodeHrTime:Q9t,encodeSpanContext:fje,encodeOptionalSpanContext:e8t};function a8t(e){return e===void 0?t8t:{encodeHrTime:X9t,encodeSpanContext:vje,encodeOptionalSpanContext:vje}}function r8t(e){return{attributes:DT(e.attributes),droppedAttributesCount:0}}function n8t(e){return{name:e.name,version:e.version}}function DT(e){return Object.keys(e).map(t=>bje(t,e[t]))}function bje(e,t){return{key:e,value:kje(t)}}function kje(e){const t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(kje)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(([a,r])=>bje(a,r))}}:{}}function i8t(e,t){const a=e.spanContext(),r=e.status,n=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(a.traceId),spanId:t.encodeSpanContext(a.spanId),parentSpanId:n,traceState:a.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:DT(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(i=>s8t(i,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(i=>o8t(i,t)),droppedLinksCount:e.droppedLinksCount}}function o8t(e,t){return{attributes:e.attributes?DT(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function s8t(e,t){return{attributes:e.attributes?DT(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function l8t(e,t){const a=a8t(t);return{resourceSpans:u8t(e,a)}}function c8t(e){const t=new Map;for(const a of e){let r=t.get(a.resource);r||(r=new Map,t.set(a.resource,r));const n=`${a.instrumentationScope.name}@${a.instrumentationScope.version||""}:${a.instrumentationScope.schemaUrl||""}`;let i=r.get(n);i||(i=[],r.set(n,i)),i.push(a)}return t}function u8t(e,t){const a=c8t(e),r=[],n=a.entries();let i=n.next();for(;!i.done;){const[o,s]=i.value,l=[],c=s.values();let u=c.next();for(;!u.done;){const p=u.value;if(p.length>0){const h=p.map(f=>i8t(f,t));l.push({scope:n8t(p[0].instrumentationScope),spans:h,schemaUrl:p[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:r8t(o),scopeSpans:l,schemaUrl:void 0};r.push(d),i=n.next()}return r}const d8t={serializeRequest:e=>{const t=l8t(e,{});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;return JSON.parse(t.decode(e))}},p8t=5,h8t=1e3,m8t=5e3,f8t=1.5,yje=.2;function g8t(){return Math.random()*(2*yje)-yje}class v8t{_transport;constructor(t){this._transport=t}retry(t,a,r){return new Promise((n,i)=>{setTimeout(()=>{this._transport.send(t,a).then(n,i)},r)})}async send(t,a){const r=Date.now()+a;let n=await this._transport.send(t,a),i=p8t,o=h8t;for(;n.status==="retryable"&&i>0;){i--;const s=Math.max(Math.min(o,m8t)+g8t(),0);o=o*f8t;const l=n.retryInMillis??s,c=r-Date.now();if(l>c)return n;n=await this.retry(t,c,l)}return n}shutdown(){return this._transport.shutdown()}}function xje(e){return new v8t(e.transport)}function b8t(e){return[429,502,503,504].includes(e)}function k8t(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const a=new Date(e).getTime()-Date.now();return a>=0?a:0}class y8t{_parameters;constructor(t){this._parameters=t}send(t,a){return new Promise(r=>{const n=new XMLHttpRequest;n.timeout=a,n.open("POST",this._parameters.url);const i=this._parameters.headers();Object.entries(i).forEach(([o,s])=>{n.setRequestHeader(o,s)}),n.ontimeout=o=>{r({status:"failure",error:new Error("XHR request timed out")})},n.onreadystatechange=()=>{n.status>=200&&n.status<=299?(Or.debug("XHR success"),r({status:"success"})):n.status&&b8t(n.status)?r({status:"retryable",retryInMillis:k8t(n.getResponseHeader("Retry-After"))}):n.status!==0&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},n.onabort=()=>{r({status:"failure",error:new Error("XHR request aborted")})},n.onerror=()=>{r({status:"failure",error:new Error("XHR request errored")})},n.send(t)})}shutdown(){}}function x8t(e){return new y8t(e)}class w8t{_params;constructor(t){this._params=t}send(t){return new Promise(a=>{navigator.sendBeacon(this._params.url,new Blob([t],{type:this._params.blobType}))?(Or.debug("SendBeacon success"),a({status:"success"})):a({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function S8t(e){return new w8t(e)}function z8t(e,t){return hje(e,t,xje({transport:x8t(e)}))}function j8t(e,t){return hje(e,t,xje({transport:S8t({url:e.url,blobType:e.headers()["Content-Type"]})}))}function O8t(e){return()=>{const t={};return Object.entries(e?.()??{}).forEach(([a,r])=>{typeof r<"u"?t[a]=String(r):Or.warn(`Header "${a}" has invalid value (${r}) and will be ignored`)}),t}}function C8t(e,t,a){const r={...a()},n={};return()=>(t!=null&&Object.assign(n,t()),e!=null&&Object.assign(n,e()),Object.assign(n,r))}function A8t(e){if(e!=null)try{return new URL(e),e}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function P8t(e,t,a){return{...H9t(e,t,a),headers:C8t(O8t(e.headers),t.headers,a.headers),url:A8t(e.url)??t.url??a.url,agentOptions:e.agentOptions??t.agentOptions??a.agentOptions}}function M8t(e,t){return{...V9t(),headers:()=>e,url:"http://localhost:4318/"+t,agentOptions:{keepAlive:!0}}}function T8t(e,t,a){return P8t({url:e.url,timeoutMillis:e.timeoutMillis,headers:K9t(e.headers),concurrencyLimit:e.concurrencyLimit},{},M8t(a,t))}function _8t(e,t,a,r){const n=!!e.headers||typeof navigator.sendBeacon!="function",i=T8t(e,a,r);return n?z8t(i,t):j8t(i,t)}class E8t extends $9t{constructor(t={}){super(_8t(t,d8t,"v1/traces",{"Content-Type":"application/json"}))}}class wje{emit(t){}}const R8t=new wje;class B8t{getLogger(t,a,r){return new wje}}const Sje=new B8t;class L8t{constructor(t,a,r,n){this._provider=t,this.name=a,this.version=r,this.options=n}emit(t){this._getLogger().emit(t)}_getLogger(){if(this._delegate)return this._delegate;const t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):R8t}}class zje{getLogger(t,a,r){var n;return(n=this.getDelegateLogger(t,a,r))!==null&&n!==void 0?n:new L8t(this,t,a,r)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:Sje}setDelegate(t){this._delegate=t}getDelegateLogger(t,a,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getLogger(t,a,r)}}const D8t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},NT=Symbol.for("io.opentelemetry.js.api.logs"),_w=D8t;function N8t(e,t,a){return r=>r===e?t:a}const jje=1;class hq{constructor(){this._proxyLoggerProvider=new zje}static getInstance(){return this._instance||(this._instance=new hq),this._instance}setGlobalLoggerProvider(t){return _w[NT]?this.getLoggerProvider():(_w[NT]=N8t(jje,t,Sje),this._proxyLoggerProvider.setDelegate(t),t)}getLoggerProvider(){var t,a;return(a=(t=_w[NT])===null||t===void 0?void 0:t.call(_w,jje))!==null&&a!==void 0?a:this._proxyLoggerProvider}getLogger(t,a,r){return this.getLoggerProvider().getLogger(t,a,r)}disable(){delete _w[NT],this._proxyLoggerProvider=new zje}}const $8t=hq.getInstance();function I8t(e,t,a,r){for(let n=0,i=e.length;n<i;n++){const o=e[n];t&&o.setTracerProvider(t),a&&o.setMeterProvider(a),r&&o.setLoggerProvider&&o.setLoggerProvider(r),o.getConfig().enabled||o.enable()}}function K8t(e){e.forEach(t=>t.disable())}function H8t(e){const t=e.tracerProvider||Nl.getTracerProvider(),a=e.meterProvider||s6t.getMeterProvider(),r=e.loggerProvider||$8t.getLoggerProvider(),n=e.instrumentations?.flat()??[];return I8t(n,t,a,r),()=>{K8t(n)}}class Oje{span=void 0;constructor(t){this.span=t}error(t){this.span&&(this.span.setStatus(Aw.ERROR,t.message),this.span.recordException(t),this.span.end())}setAttribute(t,a){this.span&&this.span.setAttribute(t,a)}end(){this.span&&(this.span.setStatus(Aw.OK),this.span.end())}}class V8t{config=null;tracer=null;tracerProvider=null;initialized=!1;initTracer(t){throw new Error("initTracer must be implemented by the environment-specific client")}init(t){this.config=t,this.initTracer(t)}send(t){try{if(!this.tracer||!this.config)return;const a=t.time?new Date(t.time):new Date;this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,a),startTime:a}).end(a)}catch(a){this.config?.isProd||console.error("Event reporting failed:",a)}}processAttributes(t,a){const r={"cloudevents.event_id":jT(),"cloudevents.event_type":t.type,"cloudevents.event_source":t.source,"cloudevents.event_spec_version":t.specversion,"cloudevents.event_data_content_type":t.datacontenttype||"application/json; charset=utf-8","cloudevents.event_time":a.toISOString(),"cloudevents.event_subject":t.subject??"","cloudevents.page.uri":location.href,"cloudevents.event_version":this.config?.version,"cloudevents.event_origin":this.config?.serviceName,"cloudevents.event_source_details.id":t.sourceDetails?.id??"anonymous","cloudevents.event_source_details.object":t.sourceDetails?.object??"anonymous","cloudevents.event_source_details.uri":t.sourceDetails?.uri};if(t.data&&typeof t.data=="object"&&Object.entries(t.data).forEach(([n,i])=>{const o=n.replace(/([A-Z])/g,"_$1").toLowerCase();i!==void 0&&(r[`cloudevents.event_data.${o}`]=i)}),"subjects"in t&&Array.isArray(t.subjects)){const n=t.subjects.reduce((i,o)=>{if(!o||typeof o!="object")return i;const s=o.object;if(!s||typeof s!="string")return i;const l=i.notUpdated.find(({object:c})=>c===s);return l?(i.updated=[l,o],i.notUpdated=i.notUpdated.filter(({object:c})=>c!==s)):i.updated.some(({object:c})=>c===s)||i.notUpdated.push(o),i},{updated:[],notUpdated:[]});n.updated.forEach((i,o)=>{const s=o===0?"after.":"before.",l=`${i.object}.`;Object.entries(i).forEach(([c,u])=>{u!==void 0&&(r[`cloudevents.subjects.${s}${l}${c}`]=u)})}),n.notUpdated.forEach(i=>{const o=`${i.object}.`;Object.entries(i).forEach(([s,l])=>{l!==void 0&&(r[`cloudevents.subjects.${o}${s}`]=l)})})}return Object.entries(t).forEach(([n,i])=>{["id","source","type","specversion","time","datacontenttype","data","subject","sourceDetails","analyticsMetadata","context"].includes(n)||i!==void 0&&(i instanceof Object?Object.entries(i).forEach(([o,s])=>{s!==void 0&&(r[`cloudevents.${n}.${o}`]=s)}):r[`cloudevents.${n}`]=i)}),r}startSpan(t,a){try{if(!this.tracer)return;let r;const n=t.time?new Date(t.time):new Date,i=this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,n),root:!a},a);return a||(r=Nl.setSpan(cu.active(),i)),{end:()=>i.end(),setAttribute:(o,s)=>{i.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(o)}`,s)},setStatus:(o,s)=>i.setStatus({code:o,message:s}),parentCtx:r}}catch(r){this.config?.isProd||console.error("Event reporting failed:",r)}}startStepSpan(t){try{if(!this.tracer)return;const a=t.time?new Date(t.time):new Date,r=this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,a),root:!1},cu.active());return{end:()=>r.end(),setAttribute:(n,i)=>{r.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(n)}`,i)},setStatus:(n,i)=>r.setStatus({code:n,message:i}),recordException:n=>r.recordException(n)}}catch(a){this.config?.isProd||console.error("Event reporting failed:",a)}}startRootSpan(t){try{if(!this.tracer)return;const a=t.time?new Date(t.time):new Date,r=this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,a)},cu.active()),n=Nl.setSpan(cu.active(),r);return{end:()=>r.end(),setAttribute:(i,o)=>{r.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(i)}`,o)},setStatus:(i,o)=>r.setStatus({code:i,message:o}),recordException:i=>r.recordException(i),context:n}}catch(a){this.config?.isProd||console.error("Event reporting failed:",a)}}startTrace(t){const a=this.startStepSpan(t);if(a)return new Oje(a)}startRootTrace(t){const a=this.startRootSpan(t);if(a)return{traceApi:new Oje(a),context:a.context}}async forceFlush(){return this.tracerProvider?.forceFlush()}getKeySnakeValue=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase()}class F8t extends V8t{tracerProvider=null;tracer=null;initialized=!1;constructor(){super()}initTracer(t){if(!t.collectorUrl&&!t.collectorTraceUrl)return;const a=`ses_${jT()}`,r=nje({[Hze]:t.serviceName,[_6t]:t.serviceVersion,session_id:a}),n=t.collectorTraceUrl||`${t.collectorUrl}/v1/traces`;this.tracerProvider=new N9t({resource:r,spanProcessors:[new A9t(new E8t({url:n,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(t.tracerName),this.tracerProvider.register(),H8t({instrumentations:t.instrumentations??[]}),this.initialized=!0}}class G8t{config=null;initialized=!1;useCloudEventData;otelClient;traceApi;constructor(){this.useCloudEventData=()=>({organization:{id:"",slug:""},project:{id:"",slug:""},productType:"",sourceDetails:{user:"Anonymous",object:"user",uri:""},request:{source:""}}),this.otelClient=new F8t,this.traceApi={startStep:(t,a)=>{const r=this.constructCloudEvent(t,a);return this.otelClient.startTrace(r)},startRoot:(t,a)=>{const r=this.constructCloudEvent(t,a);return this.otelClient.startRootTrace(r)}}}updateCloudEventData=t=>{this.config?.disabled||(this.useCloudEventData=t)};send(t,a){try{if(!this.config?.otel.isProd)return;const r=this.constructCloudEvent(t,a);this.sendToOtelService(r)}catch(r){this.config?.otel.isProd||console.error("Event reporting failed:",r)}}init(t){t.disabled||this.initialized||(this.config=t,this.initialized=!0,this.otelClient.init({serviceVersion:t.otel.serviceVersion,version:t.otel.version,isProd:t.otel.isProd,collectorUrl:t.otel.collectorUrl,collectorTraceUrl:t.otel.collectorTraceUrl,serviceName:t.otel.serviceName,tracerName:t.otel.tracerName,instrumentations:[...t.otel.instrumentations||[]]}))}startSpan(t,a,r){if(this.config?.disabled)return;const n=this.constructCloudEvent(t,a);return this.otelClient.startSpan(n,r)}startStepSpan(t,a){const r=this.constructCloudEvent(t,a);return this.otelClient.startStepSpan(r)}constructCloudEvent(t,a){const r=this.useCloudEventData();return{id:`evt_${jT()}`,type:t,source:r.request.source||"",specversion:"1.0",datacontenttype:"application/json",time:new Date().toISOString(),data:a,origin:"ui",sourceDetails:{id:r.sourceDetails.user||`usr_${jT()}`,object:r.sourceDetails.object||"user",uri:r.sourceDetails.uri||""},organization:r.organization,project:r.project,productType:r.productType}}sendToOtelService(t){this.config?.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",t),this.otelClient.send(t)}forceFlush(){return this.config?.disabled?Promise.resolve():this.otelClient.forceFlush()}sendTabChangeMessage(t){this.send("tab.change",t)}sendButtonClickMessage(t){this.send("button.click",t)}sendChangeMessage(t){this.send("change",t)}sendContentCopyMessage(t){this.send("content.copy",t)}sendUrlClickMessage(t){this.send("url.click",t)}sendRequestSendMessage(t){this.send("request.send",t)}sendTokenGenerateMessage(t){this.send("token.generate",t)}sendAppLifecycleMessage(t){this.send("app.lifecycle",t)}sendEnvironmentManagementMessage(t){this.send("environment.management",t)}sendServerManagementMessage(t){this.send("server.management",t)}sendInputManagementMessage(t){this.send("input.management",t)}sendNodeManagementMessage(t){this.send("node.management",t)}sendHistoryManagementMessage(t){this.send("history.management",t)}sendCredentialManagementMessage(t){this.send("credential.management",t)}sendPanelToggleMessage(t){this.send("panel.toggle",t)}sendWorkflowRunClickMessage(t){this.send("workflow.run.click",t)}sendWorkflowRunResultMessage(t){this.send("workflow.run.result",t)}}function q8t(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const W8t=q8t(),J8t=K.createContext(W8t);function fd(){const e=K.useContext(J8t);return Afe(e)}function U8t(e,t){const{apps:{apiId:a}}=hr(),{corsProxyUrl:r,disableCollectionsTab:n,mockServer:i,oAuth2RedirectURI:o,certificates:s,storageKey:l,isApiBased:c}=fd();r.set(e?.corsProxyUrl??Vzt),i.set(e?.mockServer),a.set(e?.apiId),o.set(e?.oAuth2RedirectURI),n.set(!!e?.disableCollectionsTab),l.set(e?.storageKey),c.set(!!t),K.useEffect(()=>{s.set(e?.certificates||[])},[e?.certificates])}const Cje=K.createContext({});function wH(){return K.useContext(Cje)||{}}const Z8t="0.17.0",Q8t={version:Z8t};class Y8t{client;_isInitialized=!1;constructor(){this.client=new G8t}get isInitialized(){return this._isInitialized}init(t){if(this.isInitialized)return;const a={serviceName:"replay",serviceVersion:Q8t.version,version:"1.0.0",tracerName:t?.tracerName||"desktop",collectorUrl:t?.collectorUrl||"",isProd:!0};this.client.init({otel:{...a,...t}}),this._isInitialized=!0}sendEvent(t,a){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{this.client.send(t,a)}catch(r){console.error("Failed to send telemetry event:",r)}}}const SH=new Y8t;function $a(){const{telemetry:e}=wH();return SH.isInitialized||SH.init({tracerName:e?.tracerName,collectorUrl:e?.collectorUrl}),{sendEvent:(t,a)=>{SH.sendEvent(t,a)}}}const Ps=800;var X8t=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function eDt(e){var t=e.defaultInputValue,a=t===void 0?"":t,r=e.defaultMenuIsOpen,n=r===void 0?!1:r,i=e.defaultValue,o=i===void 0?null:i,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,h=e.value,f=su(e,X8t),b=K.useState(s!==void 0?s:a),g=tr(b,2),m=g[0],k=g[1],x=K.useState(l!==void 0?l:n),z=tr(x,2),w=z[0],j=z[1],O=K.useState(h!==void 0?h:o),M=tr(O,2),T=M[0],B=M[1],V=K.useCallback(function(ie,me){typeof c=="function"&&c(ie,me),B(ie)},[c]),D=K.useCallback(function(ie,me){var G;typeof u=="function"&&(G=u(ie,me)),k(G!==void 0?G:ie)},[u]),J=K.useCallback(function(){typeof p=="function"&&p(),j(!0)},[p]),$=K.useCallback(function(){typeof d=="function"&&d(),j(!1)},[d]),X=s!==void 0?s:m,re=l!==void 0?l:w,le=h!==void 0?h:T;return bt(bt({},f),{},{inputValue:X,menuIsOpen:re,onChange:V,onInputChange:D,onMenuClose:$,onMenuOpen:J,value:le})}function tDt(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function aDt(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var rDt=(function(){function e(a){var r=this;this._insertTag=function(n){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(n,i),r.tags.push(n)},this.isSpeedy=a.speedy===void 0?!0:a.speedy,this.tags=[],this.ctr=0,this.nonce=a.nonce,this.key=a.key,this.container=a.container,this.prepend=a.prepend,this.insertionPoint=a.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(a){a.forEach(this._insertTag)},t.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(aDt(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=tDt(r);try{n.insertRule(a,n.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){return a.parentNode&&a.parentNode.removeChild(a)}),this.tags=[],this.ctr=0},e})(),Wo="-ms-",$T="-moz-",Cr="-webkit-",Aje="comm",zH="rule",jH="decl",nDt="@import",Pje="@keyframes",iDt=Math.abs,IT=String.fromCharCode,oDt=Object.assign;function sDt(e,t){return fo(e,0)^45?(((t<<2^fo(e,0))<<2^fo(e,1))<<2^fo(e,2))<<2^fo(e,3):0}function Mje(e){return e.trim()}function lDt(e,t){return(e=t.exec(e))?e[0]:e}function Br(e,t,a){return e.replace(t,a)}function OH(e,t){return e.indexOf(t)}function fo(e,t){return e.charCodeAt(t)|0}function Ew(e,t,a){return e.slice(t,a)}function gd(e){return e.length}function CH(e){return e.length}function KT(e,t){return t.push(e),e}function cDt(e,t){return e.map(t).join("")}var HT=1,Sk=1,Tje=0,al=0,Ci=0,zk="";function VT(e,t,a,r,n,i,o){return{value:e,root:t,parent:a,type:r,props:n,children:i,line:HT,column:Sk,length:o,return:""}}function Rw(e,t){return oDt(VT("",null,null,"",null,null,0),e,{length:-e.length},t)}function uDt(){return Ci}function dDt(){return Ci=al>0?fo(zk,--al):0,Sk--,Ci===10&&(Sk=1,HT--),Ci}function $l(){return Ci=al<Tje?fo(zk,al++):0,Sk++,Ci===10&&(Sk=1,HT++),Ci}function vd(){return fo(zk,al)}function FT(){return al}function Bw(e,t){return Ew(zk,e,t)}function Lw(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _je(e){return HT=Sk=1,Tje=gd(zk=e),al=0,[]}function Eje(e){return zk="",e}function GT(e){return Mje(Bw(al-1,AH(e===91?e+2:e===40?e+1:e)))}function pDt(e){for(;(Ci=vd())&&Ci<33;)$l();return Lw(e)>2||Lw(Ci)>3?"":" "}function hDt(e,t){for(;--t&&$l()&&!(Ci<48||Ci>102||Ci>57&&Ci<65||Ci>70&&Ci<97););return Bw(e,FT()+(t<6&&vd()==32&&$l()==32))}function AH(e){for(;$l();)switch(Ci){case e:return al;case 34:case 39:e!==34&&e!==39&&AH(Ci);break;case 40:e===41&&AH(e);break;case 92:$l();break}return al}function mDt(e,t){for(;$l()&&e+Ci!==57&&!(e+Ci===84&&vd()===47););return"/*"+Bw(t,al-1)+"*"+IT(e===47?e:$l())}function fDt(e){for(;!Lw(vd());)$l();return Bw(e,al)}function gDt(e){return Eje(qT("",null,null,null,[""],e=_je(e),0,[0],e))}function qT(e,t,a,r,n,i,o,s,l){for(var c=0,u=0,d=o,p=0,h=0,f=0,b=1,g=1,m=1,k=0,x="",z=n,w=i,j=r,O=x;g;)switch(f=k,k=$l()){case 40:if(f!=108&&fo(O,d-1)==58){OH(O+=Br(GT(k),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:O+=GT(k);break;case 9:case 10:case 13:case 32:O+=pDt(f);break;case 92:O+=hDt(FT()-1,7);continue;case 47:switch(vd()){case 42:case 47:KT(vDt(mDt($l(),FT()),t,a),l);break;default:O+="/"}break;case 123*b:s[c++]=gd(O)*m;case 125*b:case 59:case 0:switch(k){case 0:case 125:g=0;case 59+u:h>0&&gd(O)-d&&KT(h>32?Bje(O+";",r,a,d-1):Bje(Br(O," ","")+";",r,a,d-2),l);break;case 59:O+=";";default:if(KT(j=Rje(O,t,a,c,u,n,s,x,z=[],w=[],d),i),k===123)if(u===0)qT(O,t,j,j,z,i,d,s,w);else switch(p===99&&fo(O,3)===110?100:p){case 100:case 109:case 115:qT(e,j,j,r&&KT(Rje(e,j,j,0,0,n,s,x,n,z=[],d),w),n,w,d,s,r?z:w);break;default:qT(O,j,j,j,[""],w,0,s,w)}}c=u=h=0,b=m=1,x=O="",d=o;break;case 58:d=1+gd(O),h=f;default:if(b<1){if(k==123)--b;else if(k==125&&b++==0&&dDt()==125)continue}switch(O+=IT(k),k*b){case 38:m=u>0?1:(O+="\f",-1);break;case 44:s[c++]=(gd(O)-1)*m,m=1;break;case 64:vd()===45&&(O+=GT($l())),p=vd(),u=d=gd(x=O+=fDt(FT())),k++;break;case 45:f===45&&gd(O)==2&&(b=0)}}return i}function Rje(e,t,a,r,n,i,o,s,l,c,u){for(var d=n-1,p=n===0?i:[""],h=CH(p),f=0,b=0,g=0;f<r;++f)for(var m=0,k=Ew(e,d+1,d=iDt(b=o[f])),x=e;m<h;++m)(x=Mje(b>0?p[m]+" "+k:Br(k,/&\f/g,p[m])))&&(l[g++]=x);return VT(e,t,a,n===0?zH:s,l,c,u)}function vDt(e,t,a){return VT(e,t,a,Aje,IT(uDt()),Ew(e,2,-2),0)}function Bje(e,t,a,r){return VT(e,t,a,jH,Ew(e,0,r),Ew(e,r+1,-1),r)}function jk(e,t){for(var a="",r=CH(e),n=0;n<r;n++)a+=t(e[n],n,e,t)||"";return a}function bDt(e,t,a,r){switch(e.type){case nDt:case jH:return e.return=e.return||e.value;case Aje:return"";case Pje:return e.return=e.value+"{"+jk(e.children,r)+"}";case zH:e.value=e.props.join(",")}return gd(a=jk(e.children,r))?e.return=e.value+"{"+a+"}":""}function kDt(e){var t=CH(e);return function(a,r,n,i){for(var o="",s=0;s<t;s++)o+=e[s](a,r,n,i)||"";return o}}function yDt(e){return function(t){t.root||(t=t.return)&&e(t)}}function xDt(e){var t=Object.create(null);return function(a){return t[a]===void 0&&(t[a]=e(a)),t[a]}}var wDt=function(e,t,a){for(var r=0,n=0;r=n,n=vd(),r===38&&n===12&&(t[a]=1),!Lw(n);)$l();return Bw(e,al)},SDt=function(e,t){var a=-1,r=44;do switch(Lw(r)){case 0:r===38&&vd()===12&&(t[a]=1),e[a]+=wDt(al-1,t,a);break;case 2:e[a]+=GT(r);break;case 4:if(r===44){e[++a]=vd()===58?"&\f":"",t[a]=e[a].length;break}default:e[a]+=IT(r)}while(r=$l());return e},zDt=function(e,t){return Eje(SDt(_je(e),t))},Lje=new WeakMap,jDt=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,a=e.parent,r=e.column===a.column&&e.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Lje.get(a))&&!r){Lje.set(e,!0);for(var n=[],i=zDt(t,n),o=a.props,s=0,l=0;s<i.length;s++)for(var c=0;c<o.length;c++,l++)e.props[l]=n[s]?i[s].replace(/&\f/g,o[c]):o[c]+" "+i[s]}}},ODt=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function Dje(e,t){switch(sDt(e,t)){case 5103:return Cr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Cr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Cr+e+$T+e+Wo+e+e;case 6828:case 4268:return Cr+e+Wo+e+e;case 6165:return Cr+e+Wo+"flex-"+e+e;case 5187:return Cr+e+Br(e,/(\w+).+(:[^]+)/,Cr+"box-$1$2"+Wo+"flex-$1$2")+e;case 5443:return Cr+e+Wo+"flex-item-"+Br(e,/flex-|-self/,"")+e;case 4675:return Cr+e+Wo+"flex-line-pack"+Br(e,/align-content|flex-|-self/,"")+e;case 5548:return Cr+e+Wo+Br(e,"shrink","negative")+e;case 5292:return Cr+e+Wo+Br(e,"basis","preferred-size")+e;case 6060:return Cr+"box-"+Br(e,"-grow","")+Cr+e+Wo+Br(e,"grow","positive")+e;case 4554:return Cr+Br(e,/([^-])(transform)/g,"$1"+Cr+"$2")+e;case 6187:return Br(Br(Br(e,/(zoom-|grab)/,Cr+"$1"),/(image-set)/,Cr+"$1"),e,"")+e;case 5495:case 3959:return Br(e,/(image-set\([^]*)/,Cr+"$1$`$1");case 4968:return Br(Br(e,/(.+:)(flex-)?(.*)/,Cr+"box-pack:$3"+Wo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Cr+e+e;case 4095:case 3583:case 4068:case 2532:return Br(e,/(.+)-inline(.+)/,Cr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(gd(e)-1-t>6)switch(fo(e,t+1)){case 109:if(fo(e,t+4)!==45)break;case 102:return Br(e,/(.+:)(.+)-([^]+)/,"$1"+Cr+"$2-$3$1"+$T+(fo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~OH(e,"stretch")?Dje(Br(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(fo(e,t+1)!==115)break;case 6444:switch(fo(e,gd(e)-3-(~OH(e,"!important")&&10))){case 107:return Br(e,":",":"+Cr)+e;case 101:return Br(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Cr+(fo(e,14)===45?"inline-":"")+"box$3$1"+Cr+"$2$3$1"+Wo+"$2box$3")+e}break;case 5936:switch(fo(e,t+11)){case 114:return Cr+e+Wo+Br(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Cr+e+Wo+Br(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Cr+e+Wo+Br(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Cr+e+Wo+e+e}return e}var CDt=function(e,t,a,r){if(e.length>-1&&!e.return)switch(e.type){case jH:e.return=Dje(e.value,e.length);break;case Pje:return jk([Rw(e,{value:Br(e.value,"@","@"+Cr)})],r);case zH:if(e.length)return cDt(e.props,function(n){switch(lDt(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return jk([Rw(e,{props:[Br(n,/:(read-\w+)/,":"+$T+"$1")]})],r);case"::placeholder":return jk([Rw(e,{props:[Br(n,/:(plac\w+)/,":"+Cr+"input-$1")]}),Rw(e,{props:[Br(n,/:(plac\w+)/,":"+$T+"$1")]}),Rw(e,{props:[Br(n,/:(plac\w+)/,Wo+"input-$1")]})],r)}return""})}},ADt=[CDt],PDt=function(e){var t=e.key;if(t==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(f){var b=f.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var r=e.stylisPlugins||ADt,n={},i,o=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(f){for(var b=f.getAttribute("data-emotion").split(" "),g=1;g<b.length;g++)n[b[g]]=!0;o.push(f)});var s,l=[jDt,ODt];{var c,u=[bDt,yDt(function(f){c.insert(f)})],d=kDt(l.concat(r,u)),p=function(f){return jk(gDt(f),d)};s=function(f,b,g,m){c=g,p(f?f+"{"+b.styles+"}":b.styles),m&&(h.inserted[b.name]=!0)}}var h={key:t,sheet:new rDt({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:n,registered:{},insert:s};return h.sheet.hydrate(o),h},MDt=!0;function TDt(e,t,a){var r="";return a.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):r+=n+" "}),r}var Nje=function(e,t,a){var r=e.key+"-"+t.name;(a===!1||MDt===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},_Dt=function(e,t,a){Nje(e,t,a);var r=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var n=t;do e.insert(t===n?"."+r:"",n,e.sheet,!0),n=n.next;while(n!==void 0)}};function EDt(e){for(var t=0,a,r=0,n=e.length;n>=4;++r,n-=4)a=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,t=(a&65535)*1540483477+((a>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var RDt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},BDt=/[A-Z]|^ms/g,LDt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$je=function(e){return e.charCodeAt(1)===45},Ije=function(e){return e!=null&&typeof e!="boolean"},PH=xDt(function(e){return $je(e)?e:e.replace(BDt,"-$&").toLowerCase()}),Kje=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(LDt,function(a,r,n){return bd={name:r,styles:n,next:bd},r})}return RDt[e]!==1&&!$je(e)&&typeof t=="number"&&t!==0?t+"px":t};function Dw(e,t,a){if(a==null)return"";if(a.__emotion_styles!==void 0)return a;switch(typeof a){case"boolean":return"";case"object":{if(a.anim===1)return bd={name:a.name,styles:a.styles,next:bd},a.name;if(a.styles!==void 0){var r=a.next;if(r!==void 0)for(;r!==void 0;)bd={name:r.name,styles:r.styles,next:bd},r=r.next;var n=a.styles+";";return n}return DDt(e,t,a)}case"function":{if(e!==void 0){var i=bd,o=a(e);return bd=i,Dw(e,t,o)}break}}return a}function DDt(e,t,a){var r="";if(Array.isArray(a))for(var n=0;n<a.length;n++)r+=Dw(e,t,a[n])+";";else for(var i in a){var o=a[i];if(typeof o!="object")Ije(o)&&(r+=PH(i)+":"+Kje(i,o)+";");else if(Array.isArray(o)&&typeof o[0]=="string"&&t==null)for(var s=0;s<o.length;s++)Ije(o[s])&&(r+=PH(i)+":"+Kje(i,o[s])+";");else{var l=Dw(e,t,o);switch(i){case"animation":case"animationName":{r+=PH(i)+":"+l+";";break}default:r+=i+"{"+l+"}"}}}return r}var Hje=/label:\s*([^\s;\n{]+)\s*(;|$)/g,bd,Vje=function(e,t,a){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,n="";bd=void 0;var i=e[0];i==null||i.raw===void 0?(r=!1,n+=Dw(a,t,i)):n+=i[0];for(var o=1;o<e.length;o++)n+=Dw(a,t,e[o]),r&&(n+=i[o]);Hje.lastIndex=0;for(var s="",l;(l=Hje.exec(n))!==null;)s+="-"+l[1];var c=EDt(n)+s;return{name:c,styles:n,next:bd}},NDt=function(e){return e()},$Dt=of.useInsertionEffect?of.useInsertionEffect:!1,IDt=$Dt||NDt,MH={}.hasOwnProperty,KDt=K.createContext(typeof HTMLElement<"u"?PDt({key:"css"}):null),HDt=function(e){return K.forwardRef(function(t,a){var r=K.useContext(KDt);return e(t,r,a)})},VDt=K.createContext({}),TH="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",FDt=function(e,t){var a={};for(var r in t)MH.call(t,r)&&(a[r]=t[r]);return a[TH]=e,a},GDt=function(e){var t=e.cache,a=e.serialized,r=e.isStringTag;return Nje(t,a,r),IDt(function(){return _Dt(t,a,r)}),null},qDt=HDt(function(e,t,a){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var n=e[TH],i=[r],o="";typeof e.className=="string"?o=TDt(t.registered,i,e.className):e.className!=null&&(o=e.className+" ");var s=Vje(i,void 0,K.useContext(VDt));o+=t.key+"-"+s.name;var l={};for(var c in e)MH.call(e,c)&&c!=="css"&&c!==TH&&(l[c]=e[c]);return l.ref=a,l.className=o,K.createElement(K.Fragment,null,K.createElement(GDt,{cache:t,serialized:s,isStringTag:typeof n=="string"}),K.createElement(n,l))}),ea=function(e,t){var a=arguments;if(t==null||!MH.call(t,"css"))return K.createElement.apply(void 0,a);var r=a.length,n=new Array(r);n[0]=qDt,n[1]=FDt(e,t);for(var i=2;i<r;i++)n[i]=a[i];return K.createElement.apply(null,n)};function _H(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Vje(t)}var WDt=function(){var e=_H.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function JDt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const UDt=Math.min,ZDt=Math.max,WT=Math.round,JT=Math.floor,UT=e=>({x:e,y:e});function QDt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Fje(e){return qje(e)?(e.nodeName||"").toLowerCase():"#document"}function Op(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Gje(e){var t;return(t=(qje(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qje(e){return e instanceof Node||e instanceof Op(e).Node}function YDt(e){return e instanceof Element||e instanceof Op(e).Element}function EH(e){return e instanceof HTMLElement||e instanceof Op(e).HTMLElement}function Wje(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Op(e).ShadowRoot}function Jje(e){const{overflow:t,overflowX:a,overflowY:r,display:n}=RH(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+a)&&!["inline","contents"].includes(n)}function XDt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function eNt(e){return["html","body","#document"].includes(Fje(e))}function RH(e){return Op(e).getComputedStyle(e)}function tNt(e){if(Fje(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Wje(e)&&e.host||Gje(e);return Wje(t)?t.host:t}function Uje(e){const t=tNt(e);return eNt(t)?e.ownerDocument?e.ownerDocument.body:e.body:EH(t)&&Jje(t)?t:Uje(t)}function ZT(e,t,a){var r;t===void 0&&(t=[]),a===void 0&&(a=!0);const n=Uje(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=Op(n);return i?t.concat(o,o.visualViewport||[],Jje(n)?n:[],o.frameElement&&a?ZT(o.frameElement):[]):t.concat(n,ZT(n,[],a))}function aNt(e){const t=RH(e);let a=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const n=EH(e),i=n?e.offsetWidth:a,o=n?e.offsetHeight:r,s=WT(a)!==i||WT(r)!==o;return s&&(a=i,r=o),{width:a,height:r,$:s}}function BH(e){return YDt(e)?e:e.contextElement}function Zje(e){const t=BH(e);if(!EH(t))return UT(1);const a=t.getBoundingClientRect(),{width:r,height:n,$:i}=aNt(t);let o=(i?WT(a.width):a.width)/r,s=(i?WT(a.height):a.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const rNt=UT(0);function nNt(e){const t=Op(e);return!XDt()||!t.visualViewport?rNt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function iNt(e,t,a){return!1}function Qje(e,t,a,r){t===void 0&&(t=!1);const n=e.getBoundingClientRect(),i=BH(e);let o=UT(1);t&&(o=Zje(e));const s=iNt()?nNt(i):UT(0);let l=(n.left+s.x)/o.x,c=(n.top+s.y)/o.y,u=n.width/o.x,d=n.height/o.y;if(i){const p=Op(i),h=r;let f=p.frameElement;for(;f&&r&&h!==p;){const b=Zje(f),g=f.getBoundingClientRect(),m=RH(f),k=g.left+(f.clientLeft+parseFloat(m.paddingLeft))*b.x,x=g.top+(f.clientTop+parseFloat(m.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=k,c+=x,f=Op(f).frameElement}}return QDt({width:u,height:d,x:l,y:c})}function oNt(e,t){let a=null,r;const n=Gje(e);function i(){clearTimeout(r),a&&a.disconnect(),a=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const h=JT(u),f=JT(n.clientWidth-(c+d)),b=JT(n.clientHeight-(u+p)),g=JT(c),m={rootMargin:-h+"px "+-f+"px "+-b+"px "+-g+"px",threshold:ZDt(0,UDt(1,l))||1};let k=!0;function x(z){const w=z[0].intersectionRatio;if(w!==l){if(!k)return o();w?o(!1,w):r=setTimeout(()=>{o(!1,1e-7)},100)}k=!1}try{a=new IntersectionObserver(x,{...m,root:n.ownerDocument})}catch{a=new IntersectionObserver(x,m)}a.observe(e)}return o(!0),i}function sNt(e,t,a,r){r===void 0&&(r={});const{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=BH(e),u=n||i?[...c?ZT(c):[],...ZT(t)]:[];u.forEach(m=>{n&&m.addEventListener("scroll",a,{passive:!0}),i&&m.addEventListener("resize",a)});const d=c&&s?oNt(c,a):null;let p=-1,h=null;o&&(h=new ResizeObserver(m=>{let[k]=m;k&&k.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{h&&h.observe(t)})),a()}),c&&!l&&h.observe(c),h.observe(t));let f,b=l?Qje(e):null;l&&g();function g(){const m=Qje(e);b&&(m.x!==b.x||m.y!==b.y||m.width!==b.width||m.height!==b.height)&&a(),b=m,f=requestAnimationFrame(g)}return a(),()=>{u.forEach(m=>{n&&m.removeEventListener("scroll",a),i&&m.removeEventListener("resize",a)}),d&&d(),h&&h.disconnect(),h=null,l&&cancelAnimationFrame(f)}}var LH=K.useLayoutEffect,lNt=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],QT=function(){};function cNt(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function uNt(e,t){for(var a=arguments.length,r=new Array(a>2?a-2:0),n=2;n<a;n++)r[n-2]=arguments[n];var i=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&i.push("".concat(cNt(e,o)));return i.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var Yje=function(e){return kNt(e)?e.filter(Boolean):Bl(e)==="object"&&e!==null?[e]:[]},Xje=function(e){var t=su(e,lNt);return bt({},t)},Xn=function(e,t,a){var r=e.cx,n=e.getStyles,i=e.getClassNames,o=e.className;return{css:n(t,e),className:r(a??{},i(t,e),o)}};function YT(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function dNt(e){return YT(e)?window.innerHeight:e.clientHeight}function eOe(e){return YT(e)?window.pageYOffset:e.scrollTop}function XT(e,t){if(YT(e)){window.scrollTo(0,t);return}e.scrollTop=t}function pNt(e){var t=getComputedStyle(e),a=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var n=e;n=n.parentElement;)if(t=getComputedStyle(n),!(a&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return n;return document.documentElement}function hNt(e,t,a,r){return a*((e=e/r-1)*e*e+1)+t}function e5(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:QT,n=eOe(e),i=t-n,o=10,s=0;function l(){s+=o;var c=hNt(s,n,i,a);XT(e,c),s<a?window.requestAnimationFrame(l):r(e)}l()}function tOe(e,t){var a=e.getBoundingClientRect(),r=t.getBoundingClientRect(),n=t.offsetHeight/3;r.bottom+n>a.bottom?XT(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+n,e.scrollHeight)):r.top-n<a.top&&XT(e,Math.max(t.offsetTop-n,0))}function mNt(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function aOe(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function fNt(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var rOe=!1,gNt={get passive(){return rOe=!0}},t5=typeof window<"u"?window:{};t5.addEventListener&&t5.removeEventListener&&(t5.addEventListener("p",QT,gNt),t5.removeEventListener("p",QT,!1));var vNt=rOe;function bNt(e){return e!=null}function kNt(e){return Array.isArray(e)}function a5(e,t,a){return e?t:a}var yNt=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];var n=Object.entries(e).filter(function(i){var o=tr(i,1),s=o[0];return!a.includes(s)});return n.reduce(function(i,o){var s=tr(o,2),l=s[0],c=s[1];return i[l]=c,i},{})},xNt=["children","innerProps"],wNt=["children","innerProps"];function SNt(e){var t=e.maxHeight,a=e.menuEl,r=e.minHeight,n=e.placement,i=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,l=pNt(a),c={placement:"bottom",maxHeight:t};if(!a||!a.offsetParent)return c;var u=l.getBoundingClientRect(),d=u.height,p=a.getBoundingClientRect(),h=p.bottom,f=p.height,b=p.top,g=a.offsetParent.getBoundingClientRect(),m=g.top,k=o?window.innerHeight:dNt(l),x=eOe(l),z=parseInt(getComputedStyle(a).marginBottom,10),w=parseInt(getComputedStyle(a).marginTop,10),j=m-w,O=k-b,M=j+x,T=d-x-b,B=h-k+x+z,V=x+b-w,D=160;switch(n){case"auto":case"bottom":if(O>=f)return{placement:"bottom",maxHeight:t};if(T>=f&&!o)return i&&e5(l,B,D),{placement:"bottom",maxHeight:t};if(!o&&T>=r||o&&O>=r){i&&e5(l,B,D);var J=o?O-z:T-z;return{placement:"bottom",maxHeight:J}}if(n==="auto"||o){var $=t,X=o?j:M;return X>=r&&($=Math.min(X-z-s,t)),{placement:"top",maxHeight:$}}if(n==="bottom")return i&&XT(l,B),{placement:"bottom",maxHeight:t};break;case"top":if(j>=f)return{placement:"top",maxHeight:t};if(M>=f&&!o)return i&&e5(l,V,D),{placement:"top",maxHeight:t};if(!o&&M>=r||o&&j>=r){var re=t;return(!o&&M>=r||o&&j>=r)&&(re=o?j-w:M-w),i&&e5(l,V,D),{placement:"top",maxHeight:re}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return c}function zNt(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var nOe=function(e){return e==="auto"?"bottom":e},jNt=function(e,t){var a,r=e.placement,n=e.theme,i=n.borderRadius,o=n.spacing,s=n.colors;return bt((a={label:"menu"},qo(a,zNt(r),"100%"),qo(a,"position","absolute"),qo(a,"width","100%"),qo(a,"zIndex",1),a),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:o.menuGutter,marginTop:o.menuGutter})},iOe=K.createContext(null),ONt=function(e){var t=e.children,a=e.minMenuHeight,r=e.maxMenuHeight,n=e.menuPlacement,i=e.menuPosition,o=e.menuShouldScrollIntoView,s=e.theme,l=K.useContext(iOe)||{},c=l.setPortalPlacement,u=K.useRef(null),d=K.useState(r),p=tr(d,2),h=p[0],f=p[1],b=K.useState(null),g=tr(b,2),m=g[0],k=g[1],x=s.spacing.controlHeight;return LH(function(){var z=u.current;if(z){var w=i==="fixed",j=o&&!w,O=SNt({maxHeight:r,menuEl:z,minHeight:a,placement:n,shouldScroll:j,isFixedPosition:w,controlHeight:x});f(O.maxHeight),k(O.placement),c?.(O.placement)}},[r,n,i,o,a,c,x]),t({ref:u,placerProps:bt(bt({},e),{},{placement:m||nOe(n),maxHeight:h})})},CNt=function(e){var t=e.children,a=e.innerRef,r=e.innerProps;return ea("div",Ut({},Xn(e,"menu",{menu:!0}),{ref:a},r),t)},ANt=CNt,PNt=function(e,t){var a=e.maxHeight,r=e.theme.spacing.baseUnit;return bt({maxHeight:a,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},MNt=function(e){var t=e.children,a=e.innerProps,r=e.innerRef,n=e.isMulti;return ea("div",Ut({},Xn(e,"menuList",{"menu-list":!0,"menu-list--is-multi":n}),{ref:r},a),t)},oOe=function(e,t){var a=e.theme,r=a.spacing.baseUnit,n=a.colors;return bt({textAlign:"center"},t?{}:{color:n.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},TNt=oOe,_Nt=oOe,ENt=function(e){var t=e.children,a=t===void 0?"No options":t,r=e.innerProps,n=su(e,xNt);return ea("div",Ut({},Xn(bt(bt({},n),{},{children:a,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),a)},RNt=function(e){var t=e.children,a=t===void 0?"Loading...":t,r=e.innerProps,n=su(e,wNt);return ea("div",Ut({},Xn(bt(bt({},n),{},{children:a,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),a)},BNt=function(e){var t=e.rect,a=e.offset,r=e.position;return{left:t.left,position:r,top:a,width:t.width,zIndex:1}},LNt=function(e){var t=e.appendTo,a=e.children,r=e.controlElement,n=e.innerProps,i=e.menuPlacement,o=e.menuPosition,s=K.useRef(null),l=K.useRef(null),c=K.useState(nOe(i)),u=tr(c,2),d=u[0],p=u[1],h=K.useMemo(function(){return{setPortalPlacement:p}},[]),f=K.useState(null),b=tr(f,2),g=b[0],m=b[1],k=K.useCallback(function(){if(r){var j=mNt(r),O=o==="fixed"?0:window.pageYOffset,M=j[d]+O;(M!==g?.offset||j.left!==g?.rect.left||j.width!==g?.rect.width)&&m({offset:M,rect:j})}},[r,o,d,g?.offset,g?.rect.left,g?.rect.width]);LH(function(){k()},[k]);var x=K.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),r&&s.current&&(l.current=sNt(r,s.current,k,{elementResize:"ResizeObserver"in window}))},[r,k]);LH(function(){x()},[x]);var z=K.useCallback(function(j){s.current=j,x()},[x]);if(!t&&o!=="fixed"||!g)return null;var w=ea("div",Ut({ref:z},Xn(bt(bt({},e),{},{offset:g.offset,position:o,rect:g.rect}),"menuPortal",{"menu-portal":!0}),n),a);return ea(iOe.Provider,{value:h},t?Wj.createPortal(w,t):w)},DNt=function(e){var t=e.isDisabled,a=e.isRtl;return{label:"container",direction:a?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},NNt=function(e){var t=e.children,a=e.innerProps,r=e.isDisabled,n=e.isRtl;return ea("div",Ut({},Xn(e,"container",{"--is-disabled":r,"--is-rtl":n}),a),t)},$Nt=function(e,t){var a=e.theme.spacing,r=e.isMulti,n=e.hasValue,i=e.selectProps.controlShouldRenderValue;return bt({alignItems:"center",display:r&&n&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(a.baseUnit/2,"px ").concat(a.baseUnit*2,"px")})},INt=function(e){var t=e.children,a=e.innerProps,r=e.isMulti,n=e.hasValue;return ea("div",Ut({},Xn(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":n}),a),t)},KNt=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},HNt=function(e){var t=e.children,a=e.innerProps;return ea("div",Ut({},Xn(e,"indicatorsContainer",{indicators:!0}),a),t)},sOe,VNt=["size"],FNt=["innerProps","isRtl","size"],GNt={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},lOe=function(e){var t=e.size,a=su(e,VNt);return ea("svg",Ut({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:GNt},a))},DH=function(e){return ea(lOe,Ut({size:20},e),ea("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},cOe=function(e){return ea(lOe,Ut({size:20},e),ea("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},uOe=function(e,t){var a=e.isFocused,r=e.theme,n=r.spacing.baseUnit,i=r.colors;return bt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:a?i.neutral60:i.neutral20,padding:n*2,":hover":{color:a?i.neutral80:i.neutral40}})},qNt=uOe,WNt=function(e){var t=e.children,a=e.innerProps;return ea("div",Ut({},Xn(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),a),t||ea(cOe,null))},JNt=uOe,UNt=function(e){var t=e.children,a=e.innerProps;return ea("div",Ut({},Xn(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),a),t||ea(DH,null))},ZNt=function(e,t){var a=e.isDisabled,r=e.theme,n=r.spacing.baseUnit,i=r.colors;return bt({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:a?i.neutral10:i.neutral20,marginBottom:n*2,marginTop:n*2})},QNt=function(e){var t=e.innerProps;return ea("span",Ut({},t,Xn(e,"indicatorSeparator",{"indicator-separator":!0})))},YNt=WDt(sOe||(sOe=JDt([`
|
|
11206
|
+
`;function yw({input:e,onSave:t,onCancel:a,...r}){const[n,i]=K.useState(!!e.isSecret),o=({name:s,value:l})=>{t({...e,name:s,value:l,isSecret:n})};return v.jsx(Aze,{variable:e,onSave:o,onCancel:a,...r,children:v.jsx(kw,{children:v.jsx(VBt,{value:n,onChange:s=>i(s),title:"Make it secret"})})})}function zT(e){var t=new Error(e);return t.source="ulid",t}var UK="0123456789ABCDEFGHJKMNPQRSTVWXYZ",xw=UK.length,Pze=Math.pow(2,48)-1,ZBt=10,QBt=16;function YBt(e){var t=Math.floor(e()*xw);return t===xw&&(t=xw-1),UK.charAt(t)}function XBt(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>Pze)throw zT("cannot encode time greater than "+Pze);if(e<0)throw zT("time must be positive");if(Number.isInteger(e)===!1)throw zT("time must be an integer");for(var a=void 0,r="";t>0;t--)a=e%xw,r=UK.charAt(a)+r,e=(e-a)/xw;return r}function eLt(e,t){for(var a="";e>0;e--)a=YBt(t)+a;return a}function tLt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments[1];t||(t=typeof window<"u"?window:null);var a=t&&(t.crypto||t.msCrypto);if(a)return function(){var n=new Uint8Array(1);return a.getRandomValues(n),n[0]/255};try{var r=require("crypto");return function(){return r.randomBytes(1).readUInt8()/255}}catch{}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return function(){return Math.random()}}throw zT("secure crypto unusable, insecure Math.random not allowed")}function aLt(e){return e||(e=tLt()),function(t){return isNaN(t)&&(t=Date.now()),XBt(t,ZBt)+eLt(QBt,e)}}var jT=aLt(),rLt=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},Yf="1.9.0",Mze=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function nLt(e){var t=new Set([e]),a=new Set,r=e.match(Mze);if(!r)return function(){return!1};var n={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(n.prerelease!=null)return function(s){return s===e};function i(s){return a.add(s),!1}function o(s){return t.add(s),!0}return function(s){if(t.has(s))return!0;if(a.has(s))return!1;var l=s.match(Mze);if(!l)return i(s);var c={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return c.prerelease!=null||n.major!==c.major?i(s):n.major===0?n.minor===c.minor&&n.patch<=c.patch?o(s):i(s):n.minor<=c.minor?o(s):i(s)}}var iLt=nLt(Yf),oLt=Yf.split(".")[0],ww=Symbol.for("opentelemetry.js.api."+oLt),Sw=rLt;function zw(e,t,a,r){var n;r===void 0&&(r=!1);var i=Sw[ww]=(n=Sw[ww])!==null&&n!==void 0?n:{version:Yf};if(!r&&i[e]){var o=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return a.error(o.stack||o.message),!1}if(i.version!==Yf){var o=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+Yf);return a.error(o.stack||o.message),!1}return i[e]=t,a.debug("@opentelemetry/api: Registered a global for "+e+" v"+Yf+"."),!0}function Xf(e){var t,a,r=(t=Sw[ww])===null||t===void 0?void 0:t.version;if(!(!r||!iLt(r)))return(a=Sw[ww])===null||a===void 0?void 0:a[e]}function jw(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+Yf+".");var a=Sw[ww];a&&delete a[e]}var sLt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},lLt=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},cLt=(function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Ow("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Ow("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Ow("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Ow("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Ow("verbose",this._namespace,t)},e})();function Ow(e,t,a){var r=Xf("diag");if(r)return a.unshift(t),r[e].apply(r,lLt([],sLt(a),!1))}var Dl;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(Dl||(Dl={}));function uLt(e,t){e<Dl.NONE?e=Dl.NONE:e>Dl.ALL&&(e=Dl.ALL),t=t||{};function a(r,n){var i=t[r];return typeof i=="function"&&e>=n?i.bind(t):function(){}}return{error:a("error",Dl.ERROR),warn:a("warn",Dl.WARN),info:a("info",Dl.INFO),debug:a("debug",Dl.DEBUG),verbose:a("verbose",Dl.VERBOSE)}}var dLt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},pLt=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},hLt="diag",hd=(function(){function e(){function t(n){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var s=Xf("diag");if(s)return s[n].apply(s,pLt([],dLt(i),!1))}}var a=this,r=function(n,i){var o,s,l;if(i===void 0&&(i={logLevel:Dl.INFO}),n===a){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return a.error((o=c.stack)!==null&&o!==void 0?o:c.message),!1}typeof i=="number"&&(i={logLevel:i});var u=Xf("diag"),d=uLt((s=i.logLevel)!==null&&s!==void 0?s:Dl.INFO,n);if(u&&!i.suppressOverrideMessage){var p=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+p),d.warn("Current logger will overwrite one already registered from "+p)}return zw("diag",d,a,!0)};a.setLogger=r,a.disable=function(){jw(hLt,a)},a.createComponentLogger=function(n){return new cLt(n)},a.verbose=t("verbose"),a.debug=t("debug"),a.info=t("info"),a.warn=t("warn"),a.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e})(),mLt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},fLt=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},gLt=(function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var a=this._entries.get(t);if(a)return Object.assign({},a)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var a=mLt(t,2),r=a[0],n=a[1];return[r,n]})},e.prototype.setEntry=function(t,a){var r=new e(this._entries);return r._entries.set(t,a),r},e.prototype.removeEntry=function(t){var a=new e(this._entries);return a._entries.delete(t),a},e.prototype.removeEntries=function(){for(var t,a,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=new e(this._entries);try{for(var o=fLt(r),s=o.next();!s.done;s=o.next()){var l=s.value;i._entries.delete(l)}}catch(c){t={error:c}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(t)throw t.error}}return i},e.prototype.clear=function(){return new e},e})(),vLt=Symbol("BaggageEntryMetadata"),bLt=hd.instance();function kLt(e){return e===void 0&&(e={}),new gLt(new Map(Object.entries(e)))}function yLt(e){return typeof e!="string"&&(bLt.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:vLt,toString:function(){return e}}}function ZK(e){return Symbol.for(e)}var xLt=(function(){function e(t){var a=this;a._currentContext=t?new Map(t):new Map,a.getValue=function(r){return a._currentContext.get(r)},a.setValue=function(r,n){var i=new e(a._currentContext);return i._currentContext.set(r,n),i},a.deleteValue=function(r){var n=new e(a._currentContext);return n._currentContext.delete(r),n}}return e})(),vk=new xLt,eg=(function(){var e=function(t,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},e(t,a)};return function(t,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(t,a);function r(){this.constructor=t}t.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)}})(),wLt=(function(){function e(){}return e.prototype.createGauge=function(t,a){return _Lt},e.prototype.createHistogram=function(t,a){return ELt},e.prototype.createCounter=function(t,a){return TLt},e.prototype.createUpDownCounter=function(t,a){return RLt},e.prototype.createObservableGauge=function(t,a){return LLt},e.prototype.createObservableCounter=function(t,a){return BLt},e.prototype.createObservableUpDownCounter=function(t,a){return DLt},e.prototype.addBatchObservableCallback=function(t,a){},e.prototype.removeBatchObservableCallback=function(t){},e})(),OT=(function(){function e(){}return e})(),SLt=(function(e){eg(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(a,r){},t})(OT),zLt=(function(e){eg(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(a,r){},t})(OT),jLt=(function(e){eg(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(a,r){},t})(OT),OLt=(function(e){eg(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(a,r){},t})(OT),QK=(function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e})(),CLt=(function(e){eg(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(QK),ALt=(function(e){eg(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(QK),PLt=(function(e){eg(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(QK),MLt=new wLt,TLt=new SLt,_Lt=new jLt,ELt=new OLt,RLt=new zLt,BLt=new CLt,LLt=new ALt,DLt=new PLt,NLt={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},$Lt={set:function(e,t,a){e!=null&&(e[t]=a)}},ILt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},KLt=function(e,t,a){if(a||arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},HLt=(function(){function e(){}return e.prototype.active=function(){return vk},e.prototype.with=function(t,a,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];return a.call.apply(a,KLt([r],ILt(n),!1))},e.prototype.bind=function(t,a){return a},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e})(),VLt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},FLt=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},YK="context",GLt=new HLt,CT=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return zw(YK,t,hd.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,a,r){for(var n,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return(n=this._getContextManager()).with.apply(n,FLt([t,a,r],VLt(i),!1))},e.prototype.bind=function(t,a){return this._getContextManager().bind(t,a)},e.prototype._getContextManager=function(){return Xf(YK)||GLt},e.prototype.disable=function(){this._getContextManager().disable(),jw(YK,hd.instance())},e})(),jp;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(jp||(jp={}));var Tze="0000000000000000",_ze="00000000000000000000000000000000",Eze={traceId:_ze,spanId:Tze,traceFlags:jp.NONE},Cw=(function(){function e(t){t===void 0&&(t=Eze),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,a){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,a){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,a){},e})(),XK=ZK("OpenTelemetry Context Key SPAN");function eH(e){return e.getValue(XK)||void 0}function qLt(){return eH(CT.getInstance().active())}function tH(e,t){return e.setValue(XK,t)}function WLt(e){return e.deleteValue(XK)}function JLt(e,t){return tH(e,new Cw(t))}function Rze(e){var t;return(t=eH(e))===null||t===void 0?void 0:t.spanContext()}var ULt=/^([0-9a-f]{32})$/i,ZLt=/^[0-9a-f]{16}$/i;function Bze(e){return ULt.test(e)&&e!==_ze}function QLt(e){return ZLt.test(e)&&e!==Tze}function AT(e){return Bze(e.traceId)&&QLt(e.spanId)}function YLt(e){return new Cw(e)}var aH=CT.getInstance(),Lze=(function(){function e(){}return e.prototype.startSpan=function(t,a,r){r===void 0&&(r=aH.active());var n=!!a?.root;if(n)return new Cw;var i=r&&Rze(r);return XLt(i)&&AT(i)?new Cw(i):new Cw},e.prototype.startActiveSpan=function(t,a,r,n){var i,o,s;if(!(arguments.length<2)){arguments.length===2?s=a:arguments.length===3?(i=a,s=r):(i=a,o=r,s=n);var l=o??aH.active(),c=this.startSpan(t,i,l),u=tH(l,c);return aH.with(u,s,void 0,c)}},e})();function XLt(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var e6t=new Lze,t6t=(function(){function e(t,a,r,n){this._provider=t,this.name=a,this.version=r,this.options=n}return e.prototype.startSpan=function(t,a,r){return this._getTracer().startSpan(t,a,r)},e.prototype.startActiveSpan=function(t,a,r,n){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):e6t},e})(),a6t=(function(){function e(){}return e.prototype.getTracer=function(t,a,r){return new Lze},e})(),r6t=new a6t,Dze=(function(){function e(){}return e.prototype.getTracer=function(t,a,r){var n;return(n=this.getDelegateTracer(t,a,r))!==null&&n!==void 0?n:new t6t(this,t,a,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:r6t},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,a,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getTracer(t,a,r)},e})(),PT;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(PT||(PT={}));var rH;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(rH||(rH={}));var Aw;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(Aw||(Aw={}));var cu=CT.getInstance(),Or=hd.instance(),n6t=(function(){function e(){}return e.prototype.getMeter=function(t,a,r){return MLt},e})(),i6t=new n6t,nH="metrics",o6t=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return zw(nH,t,hd.instance())},e.prototype.getMeterProvider=function(){return Xf(nH)||i6t},e.prototype.getMeter=function(t,a,r){return this.getMeterProvider().getMeter(t,a,r)},e.prototype.disable=function(){jw(nH,hd.instance())},e})(),s6t=o6t.getInstance(),l6t=(function(){function e(){}return e.prototype.inject=function(t,a){},e.prototype.extract=function(t,a){return t},e.prototype.fields=function(){return[]},e})(),iH=ZK("OpenTelemetry Baggage Key");function Nze(e){return e.getValue(iH)||void 0}function c6t(){return Nze(CT.getInstance().active())}function u6t(e,t){return e.setValue(iH,t)}function d6t(e){return e.deleteValue(iH)}var oH="propagation",p6t=new l6t,h6t=(function(){function e(){this.createBaggage=kLt,this.getBaggage=Nze,this.getActiveBaggage=c6t,this.setBaggage=u6t,this.deleteBaggage=d6t}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return zw(oH,t,hd.instance())},e.prototype.inject=function(t,a,r){return r===void 0&&(r=$Lt),this._getGlobalPropagator().inject(t,a,r)},e.prototype.extract=function(t,a,r){return r===void 0&&(r=NLt),this._getGlobalPropagator().extract(t,a,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){jw(oH,hd.instance())},e.prototype._getGlobalPropagator=function(){return Xf(oH)||p6t},e})(),Pw=h6t.getInstance(),sH="trace",m6t=(function(){function e(){this._proxyTracerProvider=new Dze,this.wrapSpanContext=YLt,this.isSpanContextValid=AT,this.deleteSpan=WLt,this.getSpan=eH,this.getActiveSpan=qLt,this.getSpanContext=Rze,this.setSpan=tH,this.setSpanContext=JLt}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var a=zw(sH,this._proxyTracerProvider,hd.instance());return a&&this._proxyTracerProvider.setDelegate(t),a},e.prototype.getTracerProvider=function(){return Xf(sH)||this._proxyTracerProvider},e.prototype.getTracer=function(t,a){return this.getTracerProvider().getTracer(t,a)},e.prototype.disable=function(){jw(sH,hd.instance()),this._proxyTracerProvider=new Dze},e})(),Nl=m6t.getInstance();const $ze=ZK("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function f6t(e){return e.setValue($ze,!0)}function lH(e){return e.getValue($ze)===!0}const g6t="=",cH=";",uH=",",dH="baggage",v6t=180,b6t=4096,k6t=8192;function y6t(e){return e.reduce((t,a)=>{const r=`${t}${t!==""?uH:""}${a}`;return r.length>k6t?t:r},"")}function x6t(e){return e.getAllEntries().map(([t,a])=>{let r=`${encodeURIComponent(t)}=${encodeURIComponent(a.value)}`;return a.metadata!==void 0&&(r+=cH+a.metadata.toString()),r})}function w6t(e){const t=e.split(cH);if(t.length<=0)return;const a=t.shift();if(!a)return;const r=a.indexOf(g6t);if(r<=0)return;const n=decodeURIComponent(a.substring(0,r).trim()),i=decodeURIComponent(a.substring(r+1).trim());let o;return t.length>0&&(o=yLt(t.join(cH))),{key:n,value:i,metadata:o}}class S6t{inject(t,a,r){const n=Pw.getBaggage(t);if(!n||lH(t))return;const i=x6t(n).filter(s=>s.length<=b6t).slice(0,v6t),o=y6t(i);o.length>0&&r.set(a,dH,o)}extract(t,a,r){const n=r.get(a,dH),i=Array.isArray(n)?n.join(uH):n;if(!i)return t;const o={};return i.length===0||(i.split(uH).forEach(s=>{const l=w6t(s);if(l){const c={value:l.value};l.metadata&&(c.metadata=l.metadata),o[l.key]=c}}),Object.entries(o).length===0)?t:Pw.setBaggage(t,Pw.createBaggage(o))}fields(){return[dH]}}function MT(e){const t={};if(typeof e!="object"||e==null)return t;for(const[a,r]of Object.entries(e)){if(!z6t(a)){Or.warn(`Invalid attribute key: ${a}`);continue}if(!Ize(r)){Or.warn(`Invalid attribute value set for key: ${a}`);continue}Array.isArray(r)?t[a]=r.slice():t[a]=r}return t}function z6t(e){return typeof e=="string"&&e.length>0}function Ize(e){return e==null?!0:Array.isArray(e)?j6t(e):Kze(e)}function j6t(e){let t;for(const a of e)if(a!=null){if(!t){if(Kze(a)){t=typeof a;continue}return!1}if(typeof a!==t)return!1}return!0}function Kze(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function O6t(){return e=>{Or.error(C6t(e))}}function C6t(e){return typeof e=="string"?e:JSON.stringify(A6t(e))}function A6t(e){const t={};let a=e;for(;a!==null;)Object.getOwnPropertyNames(a).forEach(r=>{if(t[r])return;const n=a[r];n&&(t[r]=String(n))}),a=Object.getPrototypeOf(a);return t}let P6t=O6t();function bk(e){try{P6t(e)}catch{}}const kk=performance,M6t="2.0.1",pH="exception.message",T6t="exception.stacktrace",hH="exception.type",Hze="service.name",_6t="service.version",mH="telemetry.sdk.language",E6t="webjs",fH="telemetry.sdk.name",gH="telemetry.sdk.version",R6t="process.runtime.name",vH={[fH]:"opentelemetry",[R6t]:"browser",[mH]:E6t,[gH]:M6t},B6t=9,L6t=6,D6t=Math.pow(10,L6t),TT=Math.pow(10,B6t);function yk(e){const t=e/1e3,a=Math.trunc(t),r=Math.round(e%1e3*D6t);return[a,r]}function Vze(){let e=kk.timeOrigin;if(typeof e!="number"){const t=kk;e=t.timing&&t.timing.fetchStart}return e}function N6t(e){const t=yk(Vze()),a=yk(typeof e=="number"?e:kk.now());return qze(t,a)}function $6t(e,t){let a=t[0]-e[0],r=t[1]-e[1];return r<0&&(a-=1,r+=TT),[a,r]}function I6t(e){return e[0]*TT+e[1]}function Fze(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function Gze(e){return Fze(e)||typeof e=="number"||e instanceof Date}function qze(e,t){const a=[e[0]+t[0],e[1]+t[1]];return a[1]>=TT&&(a[1]-=TT,a[0]+=1),a}var md;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(md||(md={}));class K6t{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(a=>typeof a.fields=="function"?a.fields():[]).reduce((a,r)=>a.concat(r),[])))}inject(t,a,r){for(const n of this._propagators)try{n.inject(t,a,r)}catch(i){Or.warn(`Failed to inject with ${n.constructor.name}. Err: ${i.message}`)}}extract(t,a,r){return this._propagators.reduce((n,i)=>{try{return i.extract(n,a,r)}catch(o){Or.warn(`Failed to extract with ${i.constructor.name}. Err: ${o.message}`)}return n},t)}fields(){return this._fields.slice()}}const bH="[_0-9a-z-*/]",H6t=`[a-z]${bH}{0,255}`,V6t=`[a-z0-9]${bH}{0,240}@[a-z]${bH}{0,13}`,F6t=new RegExp(`^(?:${H6t}|${V6t})$`),G6t=/^[ -~]{0,255}[!-~]$/,q6t=/,|=/;function W6t(e){return F6t.test(e)}function J6t(e){return G6t.test(e)&&!q6t.test(e)}const Wze=32,U6t=512,Jze=",",Uze="=";class pq{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,a){const r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,a),r}unset(t){const a=this._clone();return a._internalState.delete(t),a}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,a)=>(t.push(a+Uze+this.get(a)),t),[]).join(Jze)}_parse(t){t.length>U6t||(this._internalState=t.split(Jze).reverse().reduce((a,r)=>{const n=r.trim(),i=n.indexOf(Uze);if(i!==-1){const o=n.slice(0,i),s=n.slice(i+1,r.length);W6t(o)&&J6t(s)&&a.set(o,s)}return a},new Map),this._internalState.size>Wze&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Wze))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new pq;return t._internalState=new Map(this._internalState),t}}const kH="traceparent",yH="tracestate",Z6t="00",Q6t="(?!ff)[\\da-f]{2}",Y6t="(?![0]{32})[\\da-f]{32}",X6t="(?![0]{16})[\\da-f]{16}",e9t="[\\da-f]{2}",t9t=new RegExp(`^\\s?(${Q6t})-(${Y6t})-(${X6t})-(${e9t})(-.*)?\\s?$`);function a9t(e){const t=t9t.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class r9t{inject(t,a,r){const n=Nl.getSpanContext(t);if(!n||lH(t)||!AT(n))return;const i=`${Z6t}-${n.traceId}-${n.spanId}-0${Number(n.traceFlags||jp.NONE).toString(16)}`;r.set(a,kH,i),n.traceState&&r.set(a,yH,n.traceState.serialize())}extract(t,a,r){const n=r.get(a,kH);if(!n)return t;const i=Array.isArray(n)?n[0]:n;if(typeof i!="string")return t;const o=a9t(i);if(!o)return t;o.isRemote=!0;const s=r.get(a,yH);if(s){const l=Array.isArray(s)?s.join(","):s;o.traceState=new pq(typeof l=="string"?l:void 0)}return Nl.setSpanContext(t,o)}fields(){return[kH,yH]}}const n9t="[object Object]",i9t="[object Null]",o9t="[object Undefined]",s9t=Function.prototype,Zze=s9t.toString,l9t=Zze.call(Object),c9t=Object.getPrototypeOf,Qze=Object.prototype,Yze=Qze.hasOwnProperty,tg=Symbol?Symbol.toStringTag:void 0,Xze=Qze.toString;function eje(e){if(!u9t(e)||d9t(e)!==n9t)return!1;const t=c9t(e);if(t===null)return!0;const a=Yze.call(t,"constructor")&&t.constructor;return typeof a=="function"&&a instanceof a&&Zze.call(a)===l9t}function u9t(e){return e!=null&&typeof e=="object"}function d9t(e){return e==null?e===void 0?o9t:i9t:tg&&tg in Object(e)?p9t(e):h9t(e)}function p9t(e){const t=Yze.call(e,tg),a=e[tg];let r=!1;try{e[tg]=void 0,r=!0}catch{}const n=Xze.call(e);return r&&(t?e[tg]=a:delete e[tg]),n}function h9t(e){return Xze.call(e)}const m9t=20;function f9t(...e){let t=e.shift();const a=new WeakMap;for(;e.length>0;)t=tje(t,e.shift(),0,a);return t}function xH(e){return _T(e)?e.slice():e}function tje(e,t,a=0,r){let n;if(!(a>m9t)){if(a++,ET(e)||ET(t)||rje(t))n=xH(t);else if(_T(e)){if(n=e.slice(),_T(t))for(let i=0,o=t.length;i<o;i++)n.push(xH(t[i]));else if(Mw(t)){const i=Object.keys(t);for(let o=0,s=i.length;o<s;o++){const l=i[o];n[l]=xH(t[l])}}}else if(Mw(e))if(Mw(t)){if(!g9t(e,t))return t;n=Object.assign({},e);const i=Object.keys(t);for(let o=0,s=i.length;o<s;o++){const l=i[o],c=t[l];if(ET(c))typeof c>"u"?delete n[l]:n[l]=c;else{const u=n[l],d=c;if(aje(e,l,r)||aje(t,l,r))delete n[l];else{if(Mw(u)&&Mw(d)){const p=r.get(u)||[],h=r.get(d)||[];p.push({obj:e,key:l}),h.push({obj:t,key:l}),r.set(u,p),r.set(d,h)}n[l]=tje(n[l],c,a,r)}}}}else n=t;return n}}function aje(e,t,a){const r=a.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){const o=r[n];if(o.key===t&&o.obj===e)return!0}return!1}function _T(e){return Array.isArray(e)}function rje(e){return typeof e=="function"}function Mw(e){return!ET(e)&&!_T(e)&&!rje(e)&&typeof e=="object"}function ET(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function g9t(e,t){return!(!eje(e)||!eje(t))}class v9t{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,a)=>{this._resolve=t,this._reject=a})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class b9t{_callback;_that;_isCalled=!1;_deferred=new v9t;constructor(t,a){this._callback=t,this._that=a}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(a=>this._deferred.resolve(a),a=>this._deferred.reject(a))}catch(a){this._deferred.reject(a)}}return this._deferred.promise}}function k9t(){return"unknown_service"}const Tw=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class cR{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(t){const a=new cR({});return a._rawAttributes=ije(t),a._asyncAttributesPending=t.filter(([r,n])=>Tw(n)).length>0,a}constructor(t){const a=t.attributes??{};this._rawAttributes=Object.entries(a).map(([r,n])=>(Tw(n)&&(this._asyncAttributesPending=!0),[r,n])),this._rawAttributes=ije(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[a,r]=this._rawAttributes[t];this._rawAttributes[t]=[a,Tw(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&Or.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[a,r]of this._rawAttributes){if(Tw(r)){Or.debug(`Unsettled resource attribute ${a} skipped`);continue}r!=null&&(t[a]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}merge(t){return t==null?this:cR.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()])}}function nje(e){return cR.FromAttributeList(Object.entries(e))}function y9t(){return nje({[Hze]:k9t(),[mH]:vH[mH],[fH]:vH[fH],[gH]:vH[gH]})}function ije(e){return e.map(([t,a])=>Tw(a)?[t,a.catch(r=>{Or.debug("promise rejection for resource attribute: %s - %s",t,r)})]:[t,a])}const x9t="exception";class w9t{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:Aw.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const a=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=kk.now(),this._performanceOffset=a-(this._performanceStartTime+Vze()),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,this.links=t.links||[],this.startTime=this._getTime(t.startTime??a),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,a){if(a==null||this._isSpanEnded())return this;if(t.length===0)return Or.warn(`Invalid attribute key: ${t}`),this;if(!Ize(a))return Or.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:r}=this._spanLimits;return r!==void 0&&Object.keys(this.attributes).length>=r&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(a),this)}setAttributes(t){for(const[a,r]of Object.entries(t))this.setAttribute(a,r);return this}addEvent(t,a,r){if(this._isSpanEnded())return this;const{eventCountLimit:n}=this._spanLimits;if(n===0)return Or.warn("No events allowed."),this._droppedEventsCount++,this;n!==void 0&&this.events.length>=n&&(this._droppedEventsCount===0&&Or.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),Gze(a)&&(Gze(r)||(r=a),a=void 0);const i=MT(a);return this.events.push({name:t,attributes:i,time:this._getTime(r),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(Or.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){Or.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(t),this._duration=$6t(this.startTime,this.endTime),this._duration[0]<0&&(Or.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&Or.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=kk.now())return N6t(t+this._performanceOffset);if(typeof t=="number")return yk(t);if(t instanceof Date)return yk(t.getTime());if(Fze(t))return t;if(this._startTimeProvided)return yk(Date.now());const a=kk.now()-this._performanceStartTime;return qze(this.startTime,yk(a))}isRecording(){return this._ended===!1}recordException(t,a){const r={};typeof t=="string"?r[pH]=t:t&&(t.code?r[hH]=t.code.toString():t.name&&(r[hH]=t.name),t.message&&(r[pH]=t.message),t.stack&&(r[T6t]=t.stack)),r[hH]||r[pH]?this.addEvent(x9t,r,a):Or.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);Or.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,a){return t.length<=a?t:t.substring(0,a)}_truncateToSize(t){const a=this._attributeValueLengthLimit;return a<=0?(Or.warn(`Attribute value limit must be positive, got ${a}`),t):typeof t=="string"?this._truncateToLimitUtil(t,a):Array.isArray(t)?t.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,a):r):t}}var xk;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(xk||(xk={}));class RT{shouldSample(){return{decision:xk.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class wk{shouldSample(){return{decision:xk.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class BT{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(bk(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new wk),this._remoteParentSampled=t.remoteParentSampled??new wk,this._remoteParentNotSampled=t.remoteParentNotSampled??new RT,this._localParentSampled=t.localParentSampled??new wk,this._localParentNotSampled=t.localParentNotSampled??new RT}shouldSample(t,a,r,n,i,o){const s=Nl.getSpanContext(t);return!s||!AT(s)?this._root.shouldSample(t,a,r,n,i,o):s.isRemote?s.traceFlags&jp.SAMPLED?this._remoteParentSampled.shouldSample(t,a,r,n,i,o):this._remoteParentNotSampled.shouldSample(t,a,r,n,i,o):s.traceFlags&jp.SAMPLED?this._localParentSampled.shouldSample(t,a,r,n,i,o):this._localParentNotSampled.shouldSample(t,a,r,n,i,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class oje{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,a){return{decision:Bze(a)&&this._accumulate(a)<this._upperBound?xk.RECORD_AND_SAMPLED:xk.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let a=0;for(let r=0;r<t.length/8;r++){const n=r*8,i=parseInt(t.slice(n,n+8),16);a=(a^i)>>>0}return a}}const sje=1;function lje(){return{sampler:cje(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function cje(){const e="parentbased_always_on";switch(e){case"always_on":return new wk;case"always_off":return new RT;case"parentbased_always_on":return new BT({root:new wk});case"parentbased_always_off":return new BT({root:new RT});case"traceidratio":return new oje(uje());case"parentbased_traceidratio":return new BT({root:new oje(uje())});default:return Or.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "parentbased_always_on".`),new BT({root:new wk})}}function uje(){return Or.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${sje}.`),sje}const S9t=128,z9t=1/0;function j9t(e){const t={sampler:cje()},a=lje(),r=Object.assign({},a,t,e);return r.generalLimits=Object.assign({},a.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},a.spanLimits,e.spanLimits||{}),r}function O9t(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??S9t,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??z9t,Object.assign({},e,{spanLimits:t})}class C9t{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t,a){this._exporter=t,this._maxExportBatchSize=typeof a?.maxExportBatchSize=="number"?a.maxExportBatchSize:512,this._maxQueueSize=typeof a?.maxQueueSize=="number"?a.maxQueueSize:2048,this._scheduledDelayMillis=typeof a?.scheduledDelayMillis=="number"?a.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof a?.exportTimeoutMillis=="number"?a.exportTimeoutMillis:3e4,this._shutdownOnce=new b9t(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Or.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(t,a){}onEnd(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&jp.SAMPLED)!==0&&this._addToBuffer(t)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&Or.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(Or.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,a)=>{const r=[],n=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,o=n;i<o;i++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{t()}).catch(a)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,a)=>{const r=setTimeout(()=>{a(new Error("Timeout"))},this._exportTimeoutMillis);cu.with(f6t(cu.active()),()=>{let n;this._finishedSpans.length<=this._maxExportBatchSize?(n=this._finishedSpans,this._finishedSpans=[]):n=this._finishedSpans.splice(0,this._maxExportBatchSize);const i=()=>this._exporter.export(n,s=>{clearTimeout(r),s.code===md.SUCCESS?t():a(s.error??new Error("BatchSpanProcessor: span export failed"))});let o=null;for(let s=0,l=n.length;s<l;s++){const c=n[s];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(o??=[],o.push(c.resource.waitForAsyncAttributes()))}o===null?i():Promise.all(o).then(i,s=>{bk(s),a(s)})})})}_maybeStartTimer(){if(this._isExporting)return;const t=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(a=>{this._isExporting=!1,bk(a)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class A9t extends C9t{_visibilityChangeListener;_pageHideListener;constructor(t,a){super(t,a),this.onInit(a)}onInit(t){t?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(a=>{bk(a)})},this._pageHideListener=()=>{this.forceFlush().catch(a=>{bk(a)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}const P9t=8,M9t=16;class T9t{generateTraceId=dje(M9t);generateSpanId=dje(P9t)}const LT=Array(32);function dje(e){return function(){for(let t=0;t<e*2;t++)LT[t]=Math.floor(Math.random()*16)+48,LT[t]>=58&&(LT[t]+=39);return String.fromCharCode.apply(null,LT.slice(0,e*2))}}class _9t{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,a,r,n){const i=j9t(a);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=a.idGenerator||new T9t,this._resource=r,this._spanProcessor=n,this.instrumentationScope=t}startSpan(t,a={},r=cu.active()){a.root&&(r=Nl.deleteSpan(r));const n=Nl.getSpan(r);if(lH(r))return Or.debug("Instrumentation suppressed, returning Noop Span"),Nl.wrapSpanContext(Eze);const i=n?.spanContext(),o=this._idGenerator.generateSpanId();let s,l,c;!i||!Nl.isSpanContextValid(i)?l=this._idGenerator.generateTraceId():(l=i.traceId,c=i.traceState,s=i);const u=a.kind??rH.INTERNAL,d=(a.links??[]).map(m=>({context:m.context,attributes:MT(m.attributes)})),p=MT(a.attributes),h=this._sampler.shouldSample(r,l,t,u,p,d);c=h.traceState??c;const f=h.decision===PT.RECORD_AND_SAMPLED?jp.SAMPLED:jp.NONE,b={traceId:l,spanId:o,traceFlags:f,traceState:c};if(h.decision===PT.NOT_RECORD)return Or.debug("Recording is off, propagating context in a non-recording span"),Nl.wrapSpanContext(b);const g=MT(Object.assign(p,h.attributes));return new w9t({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:b,name:t,kind:u,links:d,parentSpanContext:s,attributes:g,startTime:a.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,a,r,n){let i,o,s;if(arguments.length<2)return;arguments.length===2?s=a:arguments.length===3?(i=a,s=r):(i=a,o=r,s=n);const l=o??cu.active(),c=this.startSpan(t,i,l),u=Nl.setSpan(l,c);return cu.with(u,s,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class E9t{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const a of this._spanProcessors)t.push(a.forceFlush());return new Promise(a=>{Promise.all(t).then(()=>{a()}).catch(r=>{bk(r||new Error("MultiSpanProcessor: forceFlush failed")),a()})})}onStart(t,a){for(const r of this._spanProcessors)r.onStart(t,a)}onEnd(t){for(const a of this._spanProcessors)a.onEnd(t)}shutdown(){const t=[];for(const a of this._spanProcessors)t.push(a.shutdown());return new Promise((a,r)=>{Promise.all(t).then(()=>{a()},r)})}}var ag;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(ag||(ag={}));class R9t{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const a=f9t({},lje(),O9t(t));this._resource=a.resource??y9t(),this._config=Object.assign({},a,{resource:this._resource});const r=[];t.spanProcessors?.length&&r.push(...t.spanProcessors),this._activeSpanProcessor=new E9t(r)}getTracer(t,a,r){const n=`${t}@${a||""}:${r?.schemaUrl||""}`;return this._tracers.has(n)||this._tracers.set(n,new _9t({name:t,version:a,schemaUrl:r?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(n)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,a=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(n=>{let i;const o=setTimeout(()=>{n(new Error(`Span processor did not completed within timeout period of ${t} ms`)),i=ag.timeout},t);r.forceFlush().then(()=>{clearTimeout(o),i!==ag.timeout&&(i=ag.resolved,n(i))}).catch(s=>{clearTimeout(o),i=ag.error,n(s)})}));return new Promise((r,n)=>{Promise.all(a).then(i=>{const o=i.filter(s=>s!==ag.resolved);o.length>0?n(o):r()}).catch(i=>n([i]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class B9t{_enabled=!1;_currentContext=vk;_bindFunction(t=vk,a){const r=this,n=function(...i){return r.with(t,()=>a.apply(this,i))};return Object.defineProperty(n,"length",{enumerable:!1,configurable:!0,writable:!1,value:a.length}),n}active(){return this._currentContext}bind(t,a){return t===void 0&&(t=this.active()),typeof a=="function"?this._bindFunction(t,a):a}disable(){return this._currentContext=vk,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=vk,this)}with(t,a,r,...n){const i=this._currentContext;this._currentContext=t||vk;try{return a.call(r,...n)}finally{this._currentContext=i}}}function L9t(e){if(e!==null){if(e===void 0){const t=new B9t;t.enable(),cu.setGlobalContextManager(t);return}e.enable(),cu.setGlobalContextManager(e)}}function D9t(e){if(e!==null){if(e===void 0){Pw.setGlobalPropagator(new K6t({propagators:[new r9t,new S6t]}));return}Pw.setGlobalPropagator(e)}}class N9t extends R9t{constructor(t={}){super(t)}register(t={}){Nl.setGlobalTracerProvider(this),D9t(t.propagator),L9t(t.contextManager)}}class $9t{_delegate;constructor(t){this._delegate=t}export(t,a){this._delegate.export(t,a)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class pje extends Error{code;name="OTLPExporterError";data;constructor(t,a,r){super(t),this.data=r,this.code=a}}function I9t(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function K9t(e){if(e!=null)return()=>e}function H9t(e,t,a){return{timeoutMillis:I9t(e.timeoutMillis??t.timeoutMillis??a.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??a.concurrencyLimit,compression:e.compression??t.compression??a.compression}}function V9t(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class F9t{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const a=()=>{const r=this._sendingPromises.indexOf(t);this._sendingPromises.splice(r,1)};t.then(a,a)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function G9t(e){return new F9t(e.concurrencyLimit)}function q9t(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function W9t(){return{handleResponse(e){e==null||!q9t(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||Or.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class J9t{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(t,a,r,n,i){this._transport=t,this._serializer=a,this._responseHandler=r,this._promiseQueue=n,this._timeout=i,this._diagLogger=Or.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,a){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){a({code:md.FAILED,error:new Error("Concurrent export limit reached")});return}const r=this._serializer.serializeRequest(t);if(r==null){a({code:md.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(n=>{if(n.status==="success"){if(n.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(n.data))}catch(i){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",i,n.data)}a({code:md.SUCCESS});return}else if(n.status==="failure"&&n.error){a({code:md.FAILED,error:n.error});return}else n.status==="retryable"?a({code:md.FAILED,error:new pje("Export failed with retryable status")}):a({code:md.FAILED,error:new pje("Export failed with unknown error")})},n=>a({code:md.FAILED,error:n})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function U9t(e,t){return new J9t(e.transport,e.serializer,W9t(),e.promiseHandler,t.timeout)}function hje(e,t,a){return U9t({transport:a,serializer:t,promiseHandler:G9t(e)},{timeout:e.timeoutMillis})}function mje(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function fje(e){const t=new Uint8Array(e.length/2);let a=0;for(let r=0;r<e.length;r+=2){const n=mje(e.charCodeAt(r)),i=mje(e.charCodeAt(r+1));t[a++]=n<<4|i}return t}function gje(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function Z9t(e){const t=Number(BigInt.asUintN(32,e)),a=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:a}}function Q9t(e){const t=gje(e);return Z9t(t)}function Y9t(e){return gje(e).toString()}const X9t=typeof BigInt<"u"?Y9t:I6t;function vje(e){return e}function e8t(e){if(e!==void 0)return fje(e)}const t8t={encodeHrTime:Q9t,encodeSpanContext:fje,encodeOptionalSpanContext:e8t};function a8t(e){return e===void 0?t8t:{encodeHrTime:X9t,encodeSpanContext:vje,encodeOptionalSpanContext:vje}}function r8t(e){return{attributes:DT(e.attributes),droppedAttributesCount:0}}function n8t(e){return{name:e.name,version:e.version}}function DT(e){return Object.keys(e).map(t=>bje(t,e[t]))}function bje(e,t){return{key:e,value:kje(t)}}function kje(e){const t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(kje)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(([a,r])=>bje(a,r))}}:{}}function i8t(e,t){const a=e.spanContext(),r=e.status,n=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(a.traceId),spanId:t.encodeSpanContext(a.spanId),parentSpanId:n,traceState:a.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:DT(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(i=>s8t(i,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(i=>o8t(i,t)),droppedLinksCount:e.droppedLinksCount}}function o8t(e,t){return{attributes:e.attributes?DT(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function s8t(e,t){return{attributes:e.attributes?DT(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function l8t(e,t){const a=a8t(t);return{resourceSpans:u8t(e,a)}}function c8t(e){const t=new Map;for(const a of e){let r=t.get(a.resource);r||(r=new Map,t.set(a.resource,r));const n=`${a.instrumentationScope.name}@${a.instrumentationScope.version||""}:${a.instrumentationScope.schemaUrl||""}`;let i=r.get(n);i||(i=[],r.set(n,i)),i.push(a)}return t}function u8t(e,t){const a=c8t(e),r=[],n=a.entries();let i=n.next();for(;!i.done;){const[o,s]=i.value,l=[],c=s.values();let u=c.next();for(;!u.done;){const p=u.value;if(p.length>0){const h=p.map(f=>i8t(f,t));l.push({scope:n8t(p[0].instrumentationScope),spans:h,schemaUrl:p[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:r8t(o),scopeSpans:l,schemaUrl:void 0};r.push(d),i=n.next()}return r}const d8t={serializeRequest:e=>{const t=l8t(e,{});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;return JSON.parse(t.decode(e))}},p8t=5,h8t=1e3,m8t=5e3,f8t=1.5,yje=.2;function g8t(){return Math.random()*(2*yje)-yje}class v8t{_transport;constructor(t){this._transport=t}retry(t,a,r){return new Promise((n,i)=>{setTimeout(()=>{this._transport.send(t,a).then(n,i)},r)})}async send(t,a){const r=Date.now()+a;let n=await this._transport.send(t,a),i=p8t,o=h8t;for(;n.status==="retryable"&&i>0;){i--;const s=Math.max(Math.min(o,m8t)+g8t(),0);o=o*f8t;const l=n.retryInMillis??s,c=r-Date.now();if(l>c)return n;n=await this.retry(t,c,l)}return n}shutdown(){return this._transport.shutdown()}}function xje(e){return new v8t(e.transport)}function b8t(e){return[429,502,503,504].includes(e)}function k8t(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const a=new Date(e).getTime()-Date.now();return a>=0?a:0}class y8t{_parameters;constructor(t){this._parameters=t}send(t,a){return new Promise(r=>{const n=new XMLHttpRequest;n.timeout=a,n.open("POST",this._parameters.url);const i=this._parameters.headers();Object.entries(i).forEach(([o,s])=>{n.setRequestHeader(o,s)}),n.ontimeout=o=>{r({status:"failure",error:new Error("XHR request timed out")})},n.onreadystatechange=()=>{n.status>=200&&n.status<=299?(Or.debug("XHR success"),r({status:"success"})):n.status&&b8t(n.status)?r({status:"retryable",retryInMillis:k8t(n.getResponseHeader("Retry-After"))}):n.status!==0&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},n.onabort=()=>{r({status:"failure",error:new Error("XHR request aborted")})},n.onerror=()=>{r({status:"failure",error:new Error("XHR request errored")})},n.send(t)})}shutdown(){}}function x8t(e){return new y8t(e)}class w8t{_params;constructor(t){this._params=t}send(t){return new Promise(a=>{navigator.sendBeacon(this._params.url,new Blob([t],{type:this._params.blobType}))?(Or.debug("SendBeacon success"),a({status:"success"})):a({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function S8t(e){return new w8t(e)}function z8t(e,t){return hje(e,t,xje({transport:x8t(e)}))}function j8t(e,t){return hje(e,t,xje({transport:S8t({url:e.url,blobType:e.headers()["Content-Type"]})}))}function O8t(e){return()=>{const t={};return Object.entries(e?.()??{}).forEach(([a,r])=>{typeof r<"u"?t[a]=String(r):Or.warn(`Header "${a}" has invalid value (${r}) and will be ignored`)}),t}}function C8t(e,t,a){const r={...a()},n={};return()=>(t!=null&&Object.assign(n,t()),e!=null&&Object.assign(n,e()),Object.assign(n,r))}function A8t(e){if(e!=null)try{return new URL(e),e}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function P8t(e,t,a){return{...H9t(e,t,a),headers:C8t(O8t(e.headers),t.headers,a.headers),url:A8t(e.url)??t.url??a.url,agentOptions:e.agentOptions??t.agentOptions??a.agentOptions}}function M8t(e,t){return{...V9t(),headers:()=>e,url:"http://localhost:4318/"+t,agentOptions:{keepAlive:!0}}}function T8t(e,t,a){return P8t({url:e.url,timeoutMillis:e.timeoutMillis,headers:K9t(e.headers),concurrencyLimit:e.concurrencyLimit},{},M8t(a,t))}function _8t(e,t,a,r){const n=!!e.headers||typeof navigator.sendBeacon!="function",i=T8t(e,a,r);return n?z8t(i,t):j8t(i,t)}class E8t extends $9t{constructor(t={}){super(_8t(t,d8t,"v1/traces",{"Content-Type":"application/json"}))}}class wje{emit(t){}}const R8t=new wje;class B8t{getLogger(t,a,r){return new wje}}const Sje=new B8t;class L8t{constructor(t,a,r,n){this._provider=t,this.name=a,this.version=r,this.options=n}emit(t){this._getLogger().emit(t)}_getLogger(){if(this._delegate)return this._delegate;const t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):R8t}}class zje{getLogger(t,a,r){var n;return(n=this.getDelegateLogger(t,a,r))!==null&&n!==void 0?n:new L8t(this,t,a,r)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:Sje}setDelegate(t){this._delegate=t}getDelegateLogger(t,a,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getLogger(t,a,r)}}const D8t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},NT=Symbol.for("io.opentelemetry.js.api.logs"),_w=D8t;function N8t(e,t,a){return r=>r===e?t:a}const jje=1;class hq{constructor(){this._proxyLoggerProvider=new zje}static getInstance(){return this._instance||(this._instance=new hq),this._instance}setGlobalLoggerProvider(t){return _w[NT]?this.getLoggerProvider():(_w[NT]=N8t(jje,t,Sje),this._proxyLoggerProvider.setDelegate(t),t)}getLoggerProvider(){var t,a;return(a=(t=_w[NT])===null||t===void 0?void 0:t.call(_w,jje))!==null&&a!==void 0?a:this._proxyLoggerProvider}getLogger(t,a,r){return this.getLoggerProvider().getLogger(t,a,r)}disable(){delete _w[NT],this._proxyLoggerProvider=new zje}}const $8t=hq.getInstance();function I8t(e,t,a,r){for(let n=0,i=e.length;n<i;n++){const o=e[n];t&&o.setTracerProvider(t),a&&o.setMeterProvider(a),r&&o.setLoggerProvider&&o.setLoggerProvider(r),o.getConfig().enabled||o.enable()}}function K8t(e){e.forEach(t=>t.disable())}function H8t(e){const t=e.tracerProvider||Nl.getTracerProvider(),a=e.meterProvider||s6t.getMeterProvider(),r=e.loggerProvider||$8t.getLoggerProvider(),n=e.instrumentations?.flat()??[];return I8t(n,t,a,r),()=>{K8t(n)}}class Oje{span=void 0;constructor(t){this.span=t}error(t){this.span&&(this.span.setStatus(Aw.ERROR,t.message),this.span.recordException(t),this.span.end())}setAttribute(t,a){this.span&&this.span.setAttribute(t,a)}end(){this.span&&(this.span.setStatus(Aw.OK),this.span.end())}}class V8t{config=null;tracer=null;tracerProvider=null;initialized=!1;initTracer(t){throw new Error("initTracer must be implemented by the environment-specific client")}init(t){this.config=t,this.initTracer(t)}send(t){try{if(!this.tracer||!this.config)return;const a=t.time?new Date(t.time):new Date;this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,a),startTime:a}).end(a)}catch(a){this.config?.isProd||console.error("Event reporting failed:",a)}}processAttributes(t,a){const r={"cloudevents.event_id":jT(),"cloudevents.event_type":t.type,"cloudevents.event_source":t.source,"cloudevents.event_spec_version":t.specversion,"cloudevents.event_data_content_type":t.datacontenttype||"application/json; charset=utf-8","cloudevents.event_time":a.toISOString(),"cloudevents.event_subject":t.subject??"","cloudevents.page.uri":location.href,"cloudevents.event_version":this.config?.version,"cloudevents.event_origin":this.config?.serviceName,"cloudevents.event_source_details.id":t.sourceDetails?.id??"anonymous","cloudevents.event_source_details.object":t.sourceDetails?.object??"anonymous","cloudevents.event_source_details.uri":t.sourceDetails?.uri};if(t.data&&typeof t.data=="object"&&Object.entries(t.data).forEach(([n,i])=>{const o=n.replace(/([A-Z])/g,"_$1").toLowerCase();i!==void 0&&(r[`cloudevents.event_data.${o}`]=i)}),"subjects"in t&&Array.isArray(t.subjects)){const n=t.subjects.reduce((i,o)=>{if(!o||typeof o!="object")return i;const s=o.object;if(!s||typeof s!="string")return i;const l=i.notUpdated.find(({object:c})=>c===s);return l?(i.updated=[l,o],i.notUpdated=i.notUpdated.filter(({object:c})=>c!==s)):i.updated.some(({object:c})=>c===s)||i.notUpdated.push(o),i},{updated:[],notUpdated:[]});n.updated.forEach((i,o)=>{const s=o===0?"after.":"before.",l=`${i.object}.`;Object.entries(i).forEach(([c,u])=>{u!==void 0&&(r[`cloudevents.subjects.${s}${l}${c}`]=u)})}),n.notUpdated.forEach(i=>{const o=`${i.object}.`;Object.entries(i).forEach(([s,l])=>{l!==void 0&&(r[`cloudevents.subjects.${o}${s}`]=l)})})}return Object.entries(t).forEach(([n,i])=>{["id","source","type","specversion","time","datacontenttype","data","subject","sourceDetails","analyticsMetadata","context"].includes(n)||i!==void 0&&(i instanceof Object?Object.entries(i).forEach(([o,s])=>{s!==void 0&&(r[`cloudevents.${n}.${o}`]=s)}):r[`cloudevents.${n}`]=i)}),r}startSpan(t,a){try{if(!this.tracer)return;let r;const n=t.time?new Date(t.time):new Date,i=this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,n),root:!a},a);return a||(r=Nl.setSpan(cu.active(),i)),{end:()=>i.end(),setAttribute:(o,s)=>{i.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(o)}`,s)},setStatus:(o,s)=>i.setStatus({code:o,message:s}),parentCtx:r}}catch(r){this.config?.isProd||console.error("Event reporting failed:",r)}}startStepSpan(t){try{if(!this.tracer)return;const a=t.time?new Date(t.time):new Date,r=this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,a),root:!1},cu.active());return{end:()=>r.end(),setAttribute:(n,i)=>{r.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(n)}`,i)},setStatus:(n,i)=>r.setStatus({code:n,message:i}),recordException:n=>r.recordException(n)}}catch(a){this.config?.isProd||console.error("Event reporting failed:",a)}}startRootSpan(t){try{if(!this.tracer)return;const a=t.time?new Date(t.time):new Date,r=this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,a)},cu.active()),n=Nl.setSpan(cu.active(),r);return{end:()=>r.end(),setAttribute:(i,o)=>{r.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(i)}`,o)},setStatus:(i,o)=>r.setStatus({code:i,message:o}),recordException:i=>r.recordException(i),context:n}}catch(a){this.config?.isProd||console.error("Event reporting failed:",a)}}startTrace(t){const a=this.startStepSpan(t);if(a)return new Oje(a)}startRootTrace(t){const a=this.startRootSpan(t);if(a)return{traceApi:new Oje(a),context:a.context}}async forceFlush(){return this.tracerProvider?.forceFlush()}getKeySnakeValue=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase()}class F8t extends V8t{tracerProvider=null;tracer=null;initialized=!1;constructor(){super()}initTracer(t){if(!t.collectorUrl&&!t.collectorTraceUrl)return;const a=`ses_${jT()}`,r=nje({[Hze]:t.serviceName,[_6t]:t.serviceVersion,session_id:a}),n=t.collectorTraceUrl||`${t.collectorUrl}/v1/traces`;this.tracerProvider=new N9t({resource:r,spanProcessors:[new A9t(new E8t({url:n,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(t.tracerName),this.tracerProvider.register(),H8t({instrumentations:t.instrumentations??[]}),this.initialized=!0}}class G8t{config=null;initialized=!1;useCloudEventData;otelClient;traceApi;constructor(){this.useCloudEventData=()=>({organization:{id:"",slug:""},project:{id:"",slug:""},productType:"",sourceDetails:{user:"Anonymous",object:"user",uri:""},request:{source:""}}),this.otelClient=new F8t,this.traceApi={startStep:(t,a)=>{const r=this.constructCloudEvent(t,a);return this.otelClient.startTrace(r)},startRoot:(t,a)=>{const r=this.constructCloudEvent(t,a);return this.otelClient.startRootTrace(r)}}}updateCloudEventData=t=>{this.config?.disabled||(this.useCloudEventData=t)};send(t,a){try{if(!this.config?.otel.isProd)return;const r=this.constructCloudEvent(t,a);this.sendToOtelService(r)}catch(r){this.config?.otel.isProd||console.error("Event reporting failed:",r)}}init(t){t.disabled||this.initialized||(this.config=t,this.initialized=!0,this.otelClient.init({serviceVersion:t.otel.serviceVersion,version:t.otel.version,isProd:t.otel.isProd,collectorUrl:t.otel.collectorUrl,collectorTraceUrl:t.otel.collectorTraceUrl,serviceName:t.otel.serviceName,tracerName:t.otel.tracerName,instrumentations:[...t.otel.instrumentations||[]]}))}startSpan(t,a,r){if(this.config?.disabled)return;const n=this.constructCloudEvent(t,a);return this.otelClient.startSpan(n,r)}startStepSpan(t,a){const r=this.constructCloudEvent(t,a);return this.otelClient.startStepSpan(r)}constructCloudEvent(t,a){const r=this.useCloudEventData();return{id:`evt_${jT()}`,type:t,source:r.request.source||"",specversion:"1.0",datacontenttype:"application/json",time:new Date().toISOString(),data:a,origin:"ui",sourceDetails:{id:r.sourceDetails.user||`usr_${jT()}`,object:r.sourceDetails.object||"user",uri:r.sourceDetails.uri||""},organization:r.organization,project:r.project,productType:r.productType}}sendToOtelService(t){this.config?.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",t),this.otelClient.send(t)}forceFlush(){return this.config?.disabled?Promise.resolve():this.otelClient.forceFlush()}sendTabChangeMessage(t){this.send("tab.change",t)}sendButtonClickMessage(t){this.send("button.click",t)}sendChangeMessage(t){this.send("change",t)}sendContentCopyMessage(t){this.send("content.copy",t)}sendUrlClickMessage(t){this.send("url.click",t)}sendRequestSendMessage(t){this.send("request.send",t)}sendTokenGenerateMessage(t){this.send("token.generate",t)}sendAppLifecycleMessage(t){this.send("app.lifecycle",t)}sendEnvironmentManagementMessage(t){this.send("environment.management",t)}sendServerManagementMessage(t){this.send("server.management",t)}sendInputManagementMessage(t){this.send("input.management",t)}sendNodeManagementMessage(t){this.send("node.management",t)}sendHistoryManagementMessage(t){this.send("history.management",t)}sendCredentialManagementMessage(t){this.send("credential.management",t)}sendPanelToggleMessage(t){this.send("panel.toggle",t)}sendWorkflowRunClickMessage(t){this.send("workflow.run.click",t)}sendWorkflowRunResultMessage(t){this.send("workflow.run.result",t)}}function q8t(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const W8t=q8t(),J8t=K.createContext(W8t);function fd(){const e=K.useContext(J8t);return Afe(e)}function U8t(e,t){const{apps:{apiId:a}}=hr(),{corsProxyUrl:r,disableCollectionsTab:n,mockServer:i,oAuth2RedirectURI:o,certificates:s,storageKey:l,isApiBased:c}=fd();r.set(e?.corsProxyUrl??Vzt),i.set(e?.mockServer),a.set(e?.apiId),o.set(e?.oAuth2RedirectURI),n.set(!!e?.disableCollectionsTab),l.set(e?.storageKey),c.set(!!t),K.useEffect(()=>{s.set(e?.certificates||[])},[e?.certificates])}const Cje=K.createContext({});function wH(){return K.useContext(Cje)||{}}const Z8t="0.0.0-20251009123334",Q8t={version:Z8t};class Y8t{client;_isInitialized=!1;constructor(){this.client=new G8t}get isInitialized(){return this._isInitialized}init(t){if(this.isInitialized)return;const a={serviceName:"replay",serviceVersion:Q8t.version,version:"1.0.0",tracerName:t?.tracerName||"desktop",collectorUrl:t?.collectorUrl||"",isProd:!0};this.client.init({otel:{...a,...t}}),this._isInitialized=!0}sendEvent(t,a){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{this.client.send(t,a)}catch(r){console.error("Failed to send telemetry event:",r)}}}const SH=new Y8t;function $a(){const{telemetry:e}=wH();return SH.isInitialized||SH.init({tracerName:e?.tracerName,collectorUrl:e?.collectorUrl}),{sendEvent:(t,a)=>{SH.sendEvent(t,a)}}}const Ps=800;var X8t=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function eDt(e){var t=e.defaultInputValue,a=t===void 0?"":t,r=e.defaultMenuIsOpen,n=r===void 0?!1:r,i=e.defaultValue,o=i===void 0?null:i,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,h=e.value,f=su(e,X8t),b=K.useState(s!==void 0?s:a),g=tr(b,2),m=g[0],k=g[1],x=K.useState(l!==void 0?l:n),z=tr(x,2),w=z[0],j=z[1],O=K.useState(h!==void 0?h:o),M=tr(O,2),T=M[0],B=M[1],V=K.useCallback(function(ie,me){typeof c=="function"&&c(ie,me),B(ie)},[c]),D=K.useCallback(function(ie,me){var G;typeof u=="function"&&(G=u(ie,me)),k(G!==void 0?G:ie)},[u]),J=K.useCallback(function(){typeof p=="function"&&p(),j(!0)},[p]),$=K.useCallback(function(){typeof d=="function"&&d(),j(!1)},[d]),X=s!==void 0?s:m,re=l!==void 0?l:w,le=h!==void 0?h:T;return bt(bt({},f),{},{inputValue:X,menuIsOpen:re,onChange:V,onInputChange:D,onMenuClose:$,onMenuOpen:J,value:le})}function tDt(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function aDt(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var rDt=(function(){function e(a){var r=this;this._insertTag=function(n){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(n,i),r.tags.push(n)},this.isSpeedy=a.speedy===void 0?!0:a.speedy,this.tags=[],this.ctr=0,this.nonce=a.nonce,this.key=a.key,this.container=a.container,this.prepend=a.prepend,this.insertionPoint=a.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(a){a.forEach(this._insertTag)},t.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(aDt(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=tDt(r);try{n.insertRule(a,n.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){return a.parentNode&&a.parentNode.removeChild(a)}),this.tags=[],this.ctr=0},e})(),Wo="-ms-",$T="-moz-",Cr="-webkit-",Aje="comm",zH="rule",jH="decl",nDt="@import",Pje="@keyframes",iDt=Math.abs,IT=String.fromCharCode,oDt=Object.assign;function sDt(e,t){return fo(e,0)^45?(((t<<2^fo(e,0))<<2^fo(e,1))<<2^fo(e,2))<<2^fo(e,3):0}function Mje(e){return e.trim()}function lDt(e,t){return(e=t.exec(e))?e[0]:e}function Br(e,t,a){return e.replace(t,a)}function OH(e,t){return e.indexOf(t)}function fo(e,t){return e.charCodeAt(t)|0}function Ew(e,t,a){return e.slice(t,a)}function gd(e){return e.length}function CH(e){return e.length}function KT(e,t){return t.push(e),e}function cDt(e,t){return e.map(t).join("")}var HT=1,Sk=1,Tje=0,al=0,Ci=0,zk="";function VT(e,t,a,r,n,i,o){return{value:e,root:t,parent:a,type:r,props:n,children:i,line:HT,column:Sk,length:o,return:""}}function Rw(e,t){return oDt(VT("",null,null,"",null,null,0),e,{length:-e.length},t)}function uDt(){return Ci}function dDt(){return Ci=al>0?fo(zk,--al):0,Sk--,Ci===10&&(Sk=1,HT--),Ci}function $l(){return Ci=al<Tje?fo(zk,al++):0,Sk++,Ci===10&&(Sk=1,HT++),Ci}function vd(){return fo(zk,al)}function FT(){return al}function Bw(e,t){return Ew(zk,e,t)}function Lw(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _je(e){return HT=Sk=1,Tje=gd(zk=e),al=0,[]}function Eje(e){return zk="",e}function GT(e){return Mje(Bw(al-1,AH(e===91?e+2:e===40?e+1:e)))}function pDt(e){for(;(Ci=vd())&&Ci<33;)$l();return Lw(e)>2||Lw(Ci)>3?"":" "}function hDt(e,t){for(;--t&&$l()&&!(Ci<48||Ci>102||Ci>57&&Ci<65||Ci>70&&Ci<97););return Bw(e,FT()+(t<6&&vd()==32&&$l()==32))}function AH(e){for(;$l();)switch(Ci){case e:return al;case 34:case 39:e!==34&&e!==39&&AH(Ci);break;case 40:e===41&&AH(e);break;case 92:$l();break}return al}function mDt(e,t){for(;$l()&&e+Ci!==57&&!(e+Ci===84&&vd()===47););return"/*"+Bw(t,al-1)+"*"+IT(e===47?e:$l())}function fDt(e){for(;!Lw(vd());)$l();return Bw(e,al)}function gDt(e){return Eje(qT("",null,null,null,[""],e=_je(e),0,[0],e))}function qT(e,t,a,r,n,i,o,s,l){for(var c=0,u=0,d=o,p=0,h=0,f=0,b=1,g=1,m=1,k=0,x="",z=n,w=i,j=r,O=x;g;)switch(f=k,k=$l()){case 40:if(f!=108&&fo(O,d-1)==58){OH(O+=Br(GT(k),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:O+=GT(k);break;case 9:case 10:case 13:case 32:O+=pDt(f);break;case 92:O+=hDt(FT()-1,7);continue;case 47:switch(vd()){case 42:case 47:KT(vDt(mDt($l(),FT()),t,a),l);break;default:O+="/"}break;case 123*b:s[c++]=gd(O)*m;case 125*b:case 59:case 0:switch(k){case 0:case 125:g=0;case 59+u:h>0&&gd(O)-d&&KT(h>32?Bje(O+";",r,a,d-1):Bje(Br(O," ","")+";",r,a,d-2),l);break;case 59:O+=";";default:if(KT(j=Rje(O,t,a,c,u,n,s,x,z=[],w=[],d),i),k===123)if(u===0)qT(O,t,j,j,z,i,d,s,w);else switch(p===99&&fo(O,3)===110?100:p){case 100:case 109:case 115:qT(e,j,j,r&&KT(Rje(e,j,j,0,0,n,s,x,n,z=[],d),w),n,w,d,s,r?z:w);break;default:qT(O,j,j,j,[""],w,0,s,w)}}c=u=h=0,b=m=1,x=O="",d=o;break;case 58:d=1+gd(O),h=f;default:if(b<1){if(k==123)--b;else if(k==125&&b++==0&&dDt()==125)continue}switch(O+=IT(k),k*b){case 38:m=u>0?1:(O+="\f",-1);break;case 44:s[c++]=(gd(O)-1)*m,m=1;break;case 64:vd()===45&&(O+=GT($l())),p=vd(),u=d=gd(x=O+=fDt(FT())),k++;break;case 45:f===45&&gd(O)==2&&(b=0)}}return i}function Rje(e,t,a,r,n,i,o,s,l,c,u){for(var d=n-1,p=n===0?i:[""],h=CH(p),f=0,b=0,g=0;f<r;++f)for(var m=0,k=Ew(e,d+1,d=iDt(b=o[f])),x=e;m<h;++m)(x=Mje(b>0?p[m]+" "+k:Br(k,/&\f/g,p[m])))&&(l[g++]=x);return VT(e,t,a,n===0?zH:s,l,c,u)}function vDt(e,t,a){return VT(e,t,a,Aje,IT(uDt()),Ew(e,2,-2),0)}function Bje(e,t,a,r){return VT(e,t,a,jH,Ew(e,0,r),Ew(e,r+1,-1),r)}function jk(e,t){for(var a="",r=CH(e),n=0;n<r;n++)a+=t(e[n],n,e,t)||"";return a}function bDt(e,t,a,r){switch(e.type){case nDt:case jH:return e.return=e.return||e.value;case Aje:return"";case Pje:return e.return=e.value+"{"+jk(e.children,r)+"}";case zH:e.value=e.props.join(",")}return gd(a=jk(e.children,r))?e.return=e.value+"{"+a+"}":""}function kDt(e){var t=CH(e);return function(a,r,n,i){for(var o="",s=0;s<t;s++)o+=e[s](a,r,n,i)||"";return o}}function yDt(e){return function(t){t.root||(t=t.return)&&e(t)}}function xDt(e){var t=Object.create(null);return function(a){return t[a]===void 0&&(t[a]=e(a)),t[a]}}var wDt=function(e,t,a){for(var r=0,n=0;r=n,n=vd(),r===38&&n===12&&(t[a]=1),!Lw(n);)$l();return Bw(e,al)},SDt=function(e,t){var a=-1,r=44;do switch(Lw(r)){case 0:r===38&&vd()===12&&(t[a]=1),e[a]+=wDt(al-1,t,a);break;case 2:e[a]+=GT(r);break;case 4:if(r===44){e[++a]=vd()===58?"&\f":"",t[a]=e[a].length;break}default:e[a]+=IT(r)}while(r=$l());return e},zDt=function(e,t){return Eje(SDt(_je(e),t))},Lje=new WeakMap,jDt=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,a=e.parent,r=e.column===a.column&&e.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Lje.get(a))&&!r){Lje.set(e,!0);for(var n=[],i=zDt(t,n),o=a.props,s=0,l=0;s<i.length;s++)for(var c=0;c<o.length;c++,l++)e.props[l]=n[s]?i[s].replace(/&\f/g,o[c]):o[c]+" "+i[s]}}},ODt=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function Dje(e,t){switch(sDt(e,t)){case 5103:return Cr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Cr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Cr+e+$T+e+Wo+e+e;case 6828:case 4268:return Cr+e+Wo+e+e;case 6165:return Cr+e+Wo+"flex-"+e+e;case 5187:return Cr+e+Br(e,/(\w+).+(:[^]+)/,Cr+"box-$1$2"+Wo+"flex-$1$2")+e;case 5443:return Cr+e+Wo+"flex-item-"+Br(e,/flex-|-self/,"")+e;case 4675:return Cr+e+Wo+"flex-line-pack"+Br(e,/align-content|flex-|-self/,"")+e;case 5548:return Cr+e+Wo+Br(e,"shrink","negative")+e;case 5292:return Cr+e+Wo+Br(e,"basis","preferred-size")+e;case 6060:return Cr+"box-"+Br(e,"-grow","")+Cr+e+Wo+Br(e,"grow","positive")+e;case 4554:return Cr+Br(e,/([^-])(transform)/g,"$1"+Cr+"$2")+e;case 6187:return Br(Br(Br(e,/(zoom-|grab)/,Cr+"$1"),/(image-set)/,Cr+"$1"),e,"")+e;case 5495:case 3959:return Br(e,/(image-set\([^]*)/,Cr+"$1$`$1");case 4968:return Br(Br(e,/(.+:)(flex-)?(.*)/,Cr+"box-pack:$3"+Wo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Cr+e+e;case 4095:case 3583:case 4068:case 2532:return Br(e,/(.+)-inline(.+)/,Cr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(gd(e)-1-t>6)switch(fo(e,t+1)){case 109:if(fo(e,t+4)!==45)break;case 102:return Br(e,/(.+:)(.+)-([^]+)/,"$1"+Cr+"$2-$3$1"+$T+(fo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~OH(e,"stretch")?Dje(Br(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(fo(e,t+1)!==115)break;case 6444:switch(fo(e,gd(e)-3-(~OH(e,"!important")&&10))){case 107:return Br(e,":",":"+Cr)+e;case 101:return Br(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Cr+(fo(e,14)===45?"inline-":"")+"box$3$1"+Cr+"$2$3$1"+Wo+"$2box$3")+e}break;case 5936:switch(fo(e,t+11)){case 114:return Cr+e+Wo+Br(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Cr+e+Wo+Br(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Cr+e+Wo+Br(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Cr+e+Wo+e+e}return e}var CDt=function(e,t,a,r){if(e.length>-1&&!e.return)switch(e.type){case jH:e.return=Dje(e.value,e.length);break;case Pje:return jk([Rw(e,{value:Br(e.value,"@","@"+Cr)})],r);case zH:if(e.length)return cDt(e.props,function(n){switch(lDt(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return jk([Rw(e,{props:[Br(n,/:(read-\w+)/,":"+$T+"$1")]})],r);case"::placeholder":return jk([Rw(e,{props:[Br(n,/:(plac\w+)/,":"+Cr+"input-$1")]}),Rw(e,{props:[Br(n,/:(plac\w+)/,":"+$T+"$1")]}),Rw(e,{props:[Br(n,/:(plac\w+)/,Wo+"input-$1")]})],r)}return""})}},ADt=[CDt],PDt=function(e){var t=e.key;if(t==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(f){var b=f.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var r=e.stylisPlugins||ADt,n={},i,o=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(f){for(var b=f.getAttribute("data-emotion").split(" "),g=1;g<b.length;g++)n[b[g]]=!0;o.push(f)});var s,l=[jDt,ODt];{var c,u=[bDt,yDt(function(f){c.insert(f)})],d=kDt(l.concat(r,u)),p=function(f){return jk(gDt(f),d)};s=function(f,b,g,m){c=g,p(f?f+"{"+b.styles+"}":b.styles),m&&(h.inserted[b.name]=!0)}}var h={key:t,sheet:new rDt({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:n,registered:{},insert:s};return h.sheet.hydrate(o),h},MDt=!0;function TDt(e,t,a){var r="";return a.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):r+=n+" "}),r}var Nje=function(e,t,a){var r=e.key+"-"+t.name;(a===!1||MDt===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},_Dt=function(e,t,a){Nje(e,t,a);var r=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var n=t;do e.insert(t===n?"."+r:"",n,e.sheet,!0),n=n.next;while(n!==void 0)}};function EDt(e){for(var t=0,a,r=0,n=e.length;n>=4;++r,n-=4)a=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,t=(a&65535)*1540483477+((a>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var RDt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},BDt=/[A-Z]|^ms/g,LDt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$je=function(e){return e.charCodeAt(1)===45},Ije=function(e){return e!=null&&typeof e!="boolean"},PH=xDt(function(e){return $je(e)?e:e.replace(BDt,"-$&").toLowerCase()}),Kje=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(LDt,function(a,r,n){return bd={name:r,styles:n,next:bd},r})}return RDt[e]!==1&&!$je(e)&&typeof t=="number"&&t!==0?t+"px":t};function Dw(e,t,a){if(a==null)return"";if(a.__emotion_styles!==void 0)return a;switch(typeof a){case"boolean":return"";case"object":{if(a.anim===1)return bd={name:a.name,styles:a.styles,next:bd},a.name;if(a.styles!==void 0){var r=a.next;if(r!==void 0)for(;r!==void 0;)bd={name:r.name,styles:r.styles,next:bd},r=r.next;var n=a.styles+";";return n}return DDt(e,t,a)}case"function":{if(e!==void 0){var i=bd,o=a(e);return bd=i,Dw(e,t,o)}break}}return a}function DDt(e,t,a){var r="";if(Array.isArray(a))for(var n=0;n<a.length;n++)r+=Dw(e,t,a[n])+";";else for(var i in a){var o=a[i];if(typeof o!="object")Ije(o)&&(r+=PH(i)+":"+Kje(i,o)+";");else if(Array.isArray(o)&&typeof o[0]=="string"&&t==null)for(var s=0;s<o.length;s++)Ije(o[s])&&(r+=PH(i)+":"+Kje(i,o[s])+";");else{var l=Dw(e,t,o);switch(i){case"animation":case"animationName":{r+=PH(i)+":"+l+";";break}default:r+=i+"{"+l+"}"}}}return r}var Hje=/label:\s*([^\s;\n{]+)\s*(;|$)/g,bd,Vje=function(e,t,a){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,n="";bd=void 0;var i=e[0];i==null||i.raw===void 0?(r=!1,n+=Dw(a,t,i)):n+=i[0];for(var o=1;o<e.length;o++)n+=Dw(a,t,e[o]),r&&(n+=i[o]);Hje.lastIndex=0;for(var s="",l;(l=Hje.exec(n))!==null;)s+="-"+l[1];var c=EDt(n)+s;return{name:c,styles:n,next:bd}},NDt=function(e){return e()},$Dt=of.useInsertionEffect?of.useInsertionEffect:!1,IDt=$Dt||NDt,MH={}.hasOwnProperty,KDt=K.createContext(typeof HTMLElement<"u"?PDt({key:"css"}):null),HDt=function(e){return K.forwardRef(function(t,a){var r=K.useContext(KDt);return e(t,r,a)})},VDt=K.createContext({}),TH="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",FDt=function(e,t){var a={};for(var r in t)MH.call(t,r)&&(a[r]=t[r]);return a[TH]=e,a},GDt=function(e){var t=e.cache,a=e.serialized,r=e.isStringTag;return Nje(t,a,r),IDt(function(){return _Dt(t,a,r)}),null},qDt=HDt(function(e,t,a){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var n=e[TH],i=[r],o="";typeof e.className=="string"?o=TDt(t.registered,i,e.className):e.className!=null&&(o=e.className+" ");var s=Vje(i,void 0,K.useContext(VDt));o+=t.key+"-"+s.name;var l={};for(var c in e)MH.call(e,c)&&c!=="css"&&c!==TH&&(l[c]=e[c]);return l.ref=a,l.className=o,K.createElement(K.Fragment,null,K.createElement(GDt,{cache:t,serialized:s,isStringTag:typeof n=="string"}),K.createElement(n,l))}),ea=function(e,t){var a=arguments;if(t==null||!MH.call(t,"css"))return K.createElement.apply(void 0,a);var r=a.length,n=new Array(r);n[0]=qDt,n[1]=FDt(e,t);for(var i=2;i<r;i++)n[i]=a[i];return K.createElement.apply(null,n)};function _H(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Vje(t)}var WDt=function(){var e=_H.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function JDt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const UDt=Math.min,ZDt=Math.max,WT=Math.round,JT=Math.floor,UT=e=>({x:e,y:e});function QDt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Fje(e){return qje(e)?(e.nodeName||"").toLowerCase():"#document"}function Op(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Gje(e){var t;return(t=(qje(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qje(e){return e instanceof Node||e instanceof Op(e).Node}function YDt(e){return e instanceof Element||e instanceof Op(e).Element}function EH(e){return e instanceof HTMLElement||e instanceof Op(e).HTMLElement}function Wje(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Op(e).ShadowRoot}function Jje(e){const{overflow:t,overflowX:a,overflowY:r,display:n}=RH(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+a)&&!["inline","contents"].includes(n)}function XDt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function eNt(e){return["html","body","#document"].includes(Fje(e))}function RH(e){return Op(e).getComputedStyle(e)}function tNt(e){if(Fje(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Wje(e)&&e.host||Gje(e);return Wje(t)?t.host:t}function Uje(e){const t=tNt(e);return eNt(t)?e.ownerDocument?e.ownerDocument.body:e.body:EH(t)&&Jje(t)?t:Uje(t)}function ZT(e,t,a){var r;t===void 0&&(t=[]),a===void 0&&(a=!0);const n=Uje(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=Op(n);return i?t.concat(o,o.visualViewport||[],Jje(n)?n:[],o.frameElement&&a?ZT(o.frameElement):[]):t.concat(n,ZT(n,[],a))}function aNt(e){const t=RH(e);let a=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const n=EH(e),i=n?e.offsetWidth:a,o=n?e.offsetHeight:r,s=WT(a)!==i||WT(r)!==o;return s&&(a=i,r=o),{width:a,height:r,$:s}}function BH(e){return YDt(e)?e:e.contextElement}function Zje(e){const t=BH(e);if(!EH(t))return UT(1);const a=t.getBoundingClientRect(),{width:r,height:n,$:i}=aNt(t);let o=(i?WT(a.width):a.width)/r,s=(i?WT(a.height):a.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const rNt=UT(0);function nNt(e){const t=Op(e);return!XDt()||!t.visualViewport?rNt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function iNt(e,t,a){return!1}function Qje(e,t,a,r){t===void 0&&(t=!1);const n=e.getBoundingClientRect(),i=BH(e);let o=UT(1);t&&(o=Zje(e));const s=iNt()?nNt(i):UT(0);let l=(n.left+s.x)/o.x,c=(n.top+s.y)/o.y,u=n.width/o.x,d=n.height/o.y;if(i){const p=Op(i),h=r;let f=p.frameElement;for(;f&&r&&h!==p;){const b=Zje(f),g=f.getBoundingClientRect(),m=RH(f),k=g.left+(f.clientLeft+parseFloat(m.paddingLeft))*b.x,x=g.top+(f.clientTop+parseFloat(m.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=k,c+=x,f=Op(f).frameElement}}return QDt({width:u,height:d,x:l,y:c})}function oNt(e,t){let a=null,r;const n=Gje(e);function i(){clearTimeout(r),a&&a.disconnect(),a=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const h=JT(u),f=JT(n.clientWidth-(c+d)),b=JT(n.clientHeight-(u+p)),g=JT(c),m={rootMargin:-h+"px "+-f+"px "+-b+"px "+-g+"px",threshold:ZDt(0,UDt(1,l))||1};let k=!0;function x(z){const w=z[0].intersectionRatio;if(w!==l){if(!k)return o();w?o(!1,w):r=setTimeout(()=>{o(!1,1e-7)},100)}k=!1}try{a=new IntersectionObserver(x,{...m,root:n.ownerDocument})}catch{a=new IntersectionObserver(x,m)}a.observe(e)}return o(!0),i}function sNt(e,t,a,r){r===void 0&&(r={});const{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=BH(e),u=n||i?[...c?ZT(c):[],...ZT(t)]:[];u.forEach(m=>{n&&m.addEventListener("scroll",a,{passive:!0}),i&&m.addEventListener("resize",a)});const d=c&&s?oNt(c,a):null;let p=-1,h=null;o&&(h=new ResizeObserver(m=>{let[k]=m;k&&k.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{h&&h.observe(t)})),a()}),c&&!l&&h.observe(c),h.observe(t));let f,b=l?Qje(e):null;l&&g();function g(){const m=Qje(e);b&&(m.x!==b.x||m.y!==b.y||m.width!==b.width||m.height!==b.height)&&a(),b=m,f=requestAnimationFrame(g)}return a(),()=>{u.forEach(m=>{n&&m.removeEventListener("scroll",a),i&&m.removeEventListener("resize",a)}),d&&d(),h&&h.disconnect(),h=null,l&&cancelAnimationFrame(f)}}var LH=K.useLayoutEffect,lNt=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],QT=function(){};function cNt(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function uNt(e,t){for(var a=arguments.length,r=new Array(a>2?a-2:0),n=2;n<a;n++)r[n-2]=arguments[n];var i=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&i.push("".concat(cNt(e,o)));return i.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var Yje=function(e){return kNt(e)?e.filter(Boolean):Bl(e)==="object"&&e!==null?[e]:[]},Xje=function(e){var t=su(e,lNt);return bt({},t)},Xn=function(e,t,a){var r=e.cx,n=e.getStyles,i=e.getClassNames,o=e.className;return{css:n(t,e),className:r(a??{},i(t,e),o)}};function YT(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function dNt(e){return YT(e)?window.innerHeight:e.clientHeight}function eOe(e){return YT(e)?window.pageYOffset:e.scrollTop}function XT(e,t){if(YT(e)){window.scrollTo(0,t);return}e.scrollTop=t}function pNt(e){var t=getComputedStyle(e),a=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var n=e;n=n.parentElement;)if(t=getComputedStyle(n),!(a&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return n;return document.documentElement}function hNt(e,t,a,r){return a*((e=e/r-1)*e*e+1)+t}function e5(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:QT,n=eOe(e),i=t-n,o=10,s=0;function l(){s+=o;var c=hNt(s,n,i,a);XT(e,c),s<a?window.requestAnimationFrame(l):r(e)}l()}function tOe(e,t){var a=e.getBoundingClientRect(),r=t.getBoundingClientRect(),n=t.offsetHeight/3;r.bottom+n>a.bottom?XT(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+n,e.scrollHeight)):r.top-n<a.top&&XT(e,Math.max(t.offsetTop-n,0))}function mNt(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function aOe(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function fNt(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var rOe=!1,gNt={get passive(){return rOe=!0}},t5=typeof window<"u"?window:{};t5.addEventListener&&t5.removeEventListener&&(t5.addEventListener("p",QT,gNt),t5.removeEventListener("p",QT,!1));var vNt=rOe;function bNt(e){return e!=null}function kNt(e){return Array.isArray(e)}function a5(e,t,a){return e?t:a}var yNt=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];var n=Object.entries(e).filter(function(i){var o=tr(i,1),s=o[0];return!a.includes(s)});return n.reduce(function(i,o){var s=tr(o,2),l=s[0],c=s[1];return i[l]=c,i},{})},xNt=["children","innerProps"],wNt=["children","innerProps"];function SNt(e){var t=e.maxHeight,a=e.menuEl,r=e.minHeight,n=e.placement,i=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,l=pNt(a),c={placement:"bottom",maxHeight:t};if(!a||!a.offsetParent)return c;var u=l.getBoundingClientRect(),d=u.height,p=a.getBoundingClientRect(),h=p.bottom,f=p.height,b=p.top,g=a.offsetParent.getBoundingClientRect(),m=g.top,k=o?window.innerHeight:dNt(l),x=eOe(l),z=parseInt(getComputedStyle(a).marginBottom,10),w=parseInt(getComputedStyle(a).marginTop,10),j=m-w,O=k-b,M=j+x,T=d-x-b,B=h-k+x+z,V=x+b-w,D=160;switch(n){case"auto":case"bottom":if(O>=f)return{placement:"bottom",maxHeight:t};if(T>=f&&!o)return i&&e5(l,B,D),{placement:"bottom",maxHeight:t};if(!o&&T>=r||o&&O>=r){i&&e5(l,B,D);var J=o?O-z:T-z;return{placement:"bottom",maxHeight:J}}if(n==="auto"||o){var $=t,X=o?j:M;return X>=r&&($=Math.min(X-z-s,t)),{placement:"top",maxHeight:$}}if(n==="bottom")return i&&XT(l,B),{placement:"bottom",maxHeight:t};break;case"top":if(j>=f)return{placement:"top",maxHeight:t};if(M>=f&&!o)return i&&e5(l,V,D),{placement:"top",maxHeight:t};if(!o&&M>=r||o&&j>=r){var re=t;return(!o&&M>=r||o&&j>=r)&&(re=o?j-w:M-w),i&&e5(l,V,D),{placement:"top",maxHeight:re}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return c}function zNt(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var nOe=function(e){return e==="auto"?"bottom":e},jNt=function(e,t){var a,r=e.placement,n=e.theme,i=n.borderRadius,o=n.spacing,s=n.colors;return bt((a={label:"menu"},qo(a,zNt(r),"100%"),qo(a,"position","absolute"),qo(a,"width","100%"),qo(a,"zIndex",1),a),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:o.menuGutter,marginTop:o.menuGutter})},iOe=K.createContext(null),ONt=function(e){var t=e.children,a=e.minMenuHeight,r=e.maxMenuHeight,n=e.menuPlacement,i=e.menuPosition,o=e.menuShouldScrollIntoView,s=e.theme,l=K.useContext(iOe)||{},c=l.setPortalPlacement,u=K.useRef(null),d=K.useState(r),p=tr(d,2),h=p[0],f=p[1],b=K.useState(null),g=tr(b,2),m=g[0],k=g[1],x=s.spacing.controlHeight;return LH(function(){var z=u.current;if(z){var w=i==="fixed",j=o&&!w,O=SNt({maxHeight:r,menuEl:z,minHeight:a,placement:n,shouldScroll:j,isFixedPosition:w,controlHeight:x});f(O.maxHeight),k(O.placement),c?.(O.placement)}},[r,n,i,o,a,c,x]),t({ref:u,placerProps:bt(bt({},e),{},{placement:m||nOe(n),maxHeight:h})})},CNt=function(e){var t=e.children,a=e.innerRef,r=e.innerProps;return ea("div",Ut({},Xn(e,"menu",{menu:!0}),{ref:a},r),t)},ANt=CNt,PNt=function(e,t){var a=e.maxHeight,r=e.theme.spacing.baseUnit;return bt({maxHeight:a,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},MNt=function(e){var t=e.children,a=e.innerProps,r=e.innerRef,n=e.isMulti;return ea("div",Ut({},Xn(e,"menuList",{"menu-list":!0,"menu-list--is-multi":n}),{ref:r},a),t)},oOe=function(e,t){var a=e.theme,r=a.spacing.baseUnit,n=a.colors;return bt({textAlign:"center"},t?{}:{color:n.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},TNt=oOe,_Nt=oOe,ENt=function(e){var t=e.children,a=t===void 0?"No options":t,r=e.innerProps,n=su(e,xNt);return ea("div",Ut({},Xn(bt(bt({},n),{},{children:a,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),a)},RNt=function(e){var t=e.children,a=t===void 0?"Loading...":t,r=e.innerProps,n=su(e,wNt);return ea("div",Ut({},Xn(bt(bt({},n),{},{children:a,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),a)},BNt=function(e){var t=e.rect,a=e.offset,r=e.position;return{left:t.left,position:r,top:a,width:t.width,zIndex:1}},LNt=function(e){var t=e.appendTo,a=e.children,r=e.controlElement,n=e.innerProps,i=e.menuPlacement,o=e.menuPosition,s=K.useRef(null),l=K.useRef(null),c=K.useState(nOe(i)),u=tr(c,2),d=u[0],p=u[1],h=K.useMemo(function(){return{setPortalPlacement:p}},[]),f=K.useState(null),b=tr(f,2),g=b[0],m=b[1],k=K.useCallback(function(){if(r){var j=mNt(r),O=o==="fixed"?0:window.pageYOffset,M=j[d]+O;(M!==g?.offset||j.left!==g?.rect.left||j.width!==g?.rect.width)&&m({offset:M,rect:j})}},[r,o,d,g?.offset,g?.rect.left,g?.rect.width]);LH(function(){k()},[k]);var x=K.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),r&&s.current&&(l.current=sNt(r,s.current,k,{elementResize:"ResizeObserver"in window}))},[r,k]);LH(function(){x()},[x]);var z=K.useCallback(function(j){s.current=j,x()},[x]);if(!t&&o!=="fixed"||!g)return null;var w=ea("div",Ut({ref:z},Xn(bt(bt({},e),{},{offset:g.offset,position:o,rect:g.rect}),"menuPortal",{"menu-portal":!0}),n),a);return ea(iOe.Provider,{value:h},t?Wj.createPortal(w,t):w)},DNt=function(e){var t=e.isDisabled,a=e.isRtl;return{label:"container",direction:a?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},NNt=function(e){var t=e.children,a=e.innerProps,r=e.isDisabled,n=e.isRtl;return ea("div",Ut({},Xn(e,"container",{"--is-disabled":r,"--is-rtl":n}),a),t)},$Nt=function(e,t){var a=e.theme.spacing,r=e.isMulti,n=e.hasValue,i=e.selectProps.controlShouldRenderValue;return bt({alignItems:"center",display:r&&n&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(a.baseUnit/2,"px ").concat(a.baseUnit*2,"px")})},INt=function(e){var t=e.children,a=e.innerProps,r=e.isMulti,n=e.hasValue;return ea("div",Ut({},Xn(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":n}),a),t)},KNt=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},HNt=function(e){var t=e.children,a=e.innerProps;return ea("div",Ut({},Xn(e,"indicatorsContainer",{indicators:!0}),a),t)},sOe,VNt=["size"],FNt=["innerProps","isRtl","size"],GNt={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},lOe=function(e){var t=e.size,a=su(e,VNt);return ea("svg",Ut({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:GNt},a))},DH=function(e){return ea(lOe,Ut({size:20},e),ea("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},cOe=function(e){return ea(lOe,Ut({size:20},e),ea("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},uOe=function(e,t){var a=e.isFocused,r=e.theme,n=r.spacing.baseUnit,i=r.colors;return bt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:a?i.neutral60:i.neutral20,padding:n*2,":hover":{color:a?i.neutral80:i.neutral40}})},qNt=uOe,WNt=function(e){var t=e.children,a=e.innerProps;return ea("div",Ut({},Xn(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),a),t||ea(cOe,null))},JNt=uOe,UNt=function(e){var t=e.children,a=e.innerProps;return ea("div",Ut({},Xn(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),a),t||ea(DH,null))},ZNt=function(e,t){var a=e.isDisabled,r=e.theme,n=r.spacing.baseUnit,i=r.colors;return bt({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:a?i.neutral10:i.neutral20,marginBottom:n*2,marginTop:n*2})},QNt=function(e){var t=e.innerProps;return ea("span",Ut({},t,Xn(e,"indicatorSeparator",{"indicator-separator":!0})))},YNt=WDt(sOe||(sOe=JDt([`
|
|
11206
11207
|
0%, 80%, 100% { opacity: 0; }
|
|
11207
11208
|
40% { opacity: 1; }
|
|
11208
11209
|
`]))),XNt=function(e,t){var a=e.isFocused,r=e.size,n=e.theme,i=n.colors,o=n.spacing.baseUnit;return bt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:a?i.neutral60:i.neutral20,padding:o*2})},NH=function(e){var t=e.delay,a=e.offset;return ea("span",{css:_H({animation:"".concat(YNt," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:a?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},e$t=function(e){var t=e.innerProps,a=e.isRtl,r=e.size,n=r===void 0?4:r,i=su(e,FNt);return ea("div",Ut({},Xn(bt(bt({},i),{},{innerProps:t,isRtl:a,size:n}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),ea(NH,{delay:0,offset:a}),ea(NH,{delay:160,offset:!0}),ea(NH,{delay:320,offset:!a}))},t$t=function(e,t){var a=e.isDisabled,r=e.isFocused,n=e.theme,i=n.colors,o=n.borderRadius,s=n.spacing;return bt({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:a?i.neutral5:i.neutral0,borderColor:a?i.neutral10:r?i.primary:i.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},a$t=function(e){var t=e.children,a=e.isDisabled,r=e.isFocused,n=e.innerRef,i=e.innerProps,o=e.menuIsOpen;return ea("div",Ut({ref:n},Xn(e,"control",{control:!0,"control--is-disabled":a,"control--is-focused":r,"control--menu-is-open":o}),i,{"aria-disabled":a||void 0}),t)},r$t=a$t,n$t=["data"],i$t=function(e,t){var a=e.theme.spacing;return t?{}:{paddingBottom:a.baseUnit*2,paddingTop:a.baseUnit*2}},o$t=function(e){var t=e.children,a=e.cx,r=e.getStyles,n=e.getClassNames,i=e.Heading,o=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return ea("div",Ut({},Xn(e,"group",{group:!0}),s),ea(i,Ut({},o,{selectProps:u,theme:c,getStyles:r,getClassNames:n,cx:a}),l),ea("div",null,t))},s$t=function(e,t){var a=e.theme,r=a.colors,n=a.spacing;return bt({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:n.baseUnit*3,paddingRight:n.baseUnit*3,textTransform:"uppercase"})},l$t=function(e){var t=Xje(e),a=su(t,n$t);return ea("div",Ut({},Xn(e,"groupHeading",{"group-heading":!0}),a))},c$t=o$t,u$t=["innerRef","isDisabled","isHidden","inputClassName"],d$t=function(e,t){var a=e.isDisabled,r=e.value,n=e.theme,i=n.spacing,o=n.colors;return bt(bt({visibility:a?"hidden":"visible",transform:r?"translateZ(0)":""},p$t),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:o.neutral80})},dOe={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},p$t={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":bt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},dOe)},h$t=function(e){return bt({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},dOe)},m$t=function(e){var t=e.cx,a=e.value,r=Xje(e),n=r.innerRef,i=r.isDisabled,o=r.isHidden,s=r.inputClassName,l=su(r,u$t);return ea("div",Ut({},Xn(e,"input",{"input-container":!0}),{"data-value":a||""}),ea("input",Ut({className:t({input:!0},s),ref:n,style:h$t(o),disabled:i},l)))},f$t=m$t,g$t=function(e,t){var a=e.theme,r=a.spacing,n=a.borderRadius,i=a.colors;return bt({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:n/2,margin:r.baseUnit/2})},v$t=function(e,t){var a=e.theme,r=a.borderRadius,n=a.colors,i=e.cropWithEllipsis;return bt({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:n.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},b$t=function(e,t){var a=e.theme,r=a.spacing,n=a.borderRadius,i=a.colors,o=e.isFocused;return bt({alignItems:"center",display:"flex"},t?{}:{borderRadius:n/2,backgroundColor:o?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},pOe=function(e){var t=e.children,a=e.innerProps;return ea("div",a,t)},k$t=pOe,y$t=pOe;function x$t(e){var t=e.children,a=e.innerProps;return ea("div",Ut({role:"button"},a),t||ea(DH,{size:14}))}var w$t=function(e){var t=e.children,a=e.components,r=e.data,n=e.innerProps,i=e.isDisabled,o=e.removeProps,s=e.selectProps,l=a.Container,c=a.Label,u=a.Remove;return ea(l,{data:r,innerProps:bt(bt({},Xn(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),n),selectProps:s},ea(c,{data:r,innerProps:bt({},Xn(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),ea(u,{data:r,innerProps:bt(bt({},Xn(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},o),selectProps:s}))},S$t=w$t,z$t=function(e,t){var a=e.isDisabled,r=e.isFocused,n=e.isSelected,i=e.theme,o=i.spacing,s=i.colors;return bt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:n?s.primary:r?s.primary25:"transparent",color:a?s.neutral20:n?s.neutral0:"inherit",padding:"".concat(o.baseUnit*2,"px ").concat(o.baseUnit*3,"px"),":active":{backgroundColor:a?void 0:n?s.primary:s.primary50}})},j$t=function(e){var t=e.children,a=e.isDisabled,r=e.isFocused,n=e.isSelected,i=e.innerRef,o=e.innerProps;return ea("div",Ut({},Xn(e,"option",{option:!0,"option--is-disabled":a,"option--is-focused":r,"option--is-selected":n}),{ref:i,"aria-disabled":a},o),t)},O$t=j$t,C$t=function(e,t){var a=e.theme,r=a.spacing,n=a.colors;return bt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:n.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},A$t=function(e){var t=e.children,a=e.innerProps;return ea("div",Ut({},Xn(e,"placeholder",{placeholder:!0}),a),t)},P$t=A$t,M$t=function(e,t){var a=e.isDisabled,r=e.theme,n=r.spacing,i=r.colors;return bt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:a?i.neutral40:i.neutral80,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},T$t=function(e){var t=e.children,a=e.isDisabled,r=e.innerProps;return ea("div",Ut({},Xn(e,"singleValue",{"single-value":!0,"single-value--is-disabled":a}),r),t)},_$t=T$t,r5={ClearIndicator:UNt,Control:r$t,DropdownIndicator:WNt,DownChevron:cOe,CrossIcon:DH,Group:c$t,GroupHeading:l$t,IndicatorsContainer:HNt,IndicatorSeparator:QNt,Input:f$t,LoadingIndicator:e$t,Menu:ANt,MenuList:MNt,MenuPortal:LNt,LoadingMessage:RNt,NoOptionsMessage:ENt,MultiValue:S$t,MultiValueContainer:k$t,MultiValueLabel:y$t,MultiValueRemove:x$t,Option:O$t,Placeholder:P$t,SelectContainer:NNt,SingleValue:_$t,ValueContainer:INt},E$t=function(e){return bt(bt({},r5),e.components)},hOe=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function R$t(e,t){return!!(e===t||hOe(e)&&hOe(t))}function B$t(e,t){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++)if(!R$t(e[a],t[a]))return!1;return!0}function L$t(e,t){t===void 0&&(t=B$t);var a=null;function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(a&&a.lastThis===this&&t(n,a.lastArgs))return a.lastResult;var o=e.apply(this,n);return a={lastResult:o,lastArgs:n,lastThis:this},o}return r.clear=function(){a=null},r}for(var D$t={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},N$t=function(e){return ea("span",Ut({css:D$t},e))},mOe=N$t,$$t={guidance:function(e){var t=e.isSearchable,a=e.isMulti,r=e.tabSelectsValue,n=e.context,i=e.isInitialFocus;switch(n){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(a?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,a=e.label,r=a===void 0?"":a,n=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(n.length>1?"s":""," ").concat(n.join(","),", selected.");case"select-option":return i?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(e){var t=e.context,a=e.focused,r=e.options,n=e.label,i=n===void 0?"":n,o=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(h,f){return h&&h.length?"".concat(h.indexOf(f)+1," of ").concat(h.length):""};if(t==="value"&&o)return"value ".concat(i," focused, ").concat(u(o,a),".");if(t==="menu"&&c){var d=s?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(u(r,a),".")}return""},onFilter:function(e){var t=e.inputValue,a=e.resultsMessage;return"".concat(a).concat(t?" for search term "+t:"",".")}},I$t=function(e){var t=e.ariaSelection,a=e.focusedOption,r=e.focusedValue,n=e.focusableOptions,i=e.isFocused,o=e.selectValue,s=e.selectProps,l=e.id,c=e.isAppleDevice,u=s.ariaLiveMessages,d=s.getOptionLabel,p=s.inputValue,h=s.isMulti,f=s.isOptionDisabled,b=s.isSearchable,g=s.menuIsOpen,m=s.options,k=s.screenReaderStatus,x=s.tabSelectsValue,z=s.isLoading,w=s["aria-label"],j=s["aria-live"],O=K.useMemo(function(){return bt(bt({},$$t),u||{})},[u]),M=K.useMemo(function(){var $="";if(t&&O.onChange){var X=t.option,re=t.options,le=t.removedValue,ie=t.removedValues,me=t.value,G=function(H){return Array.isArray(H)?null:H},N=le||X||G(me),W=N?d(N):"",I=re||ie||void 0,P=I?I.map(d):[],R=bt({isDisabled:N&&f(N,o),label:W,labels:P},t);$=O.onChange(R)}return $},[t,O,f,o,d]),T=K.useMemo(function(){var $="",X=a||r,re=!!(a&&o&&o.includes(a));if(X&&O.onFocus){var le={focused:X,label:d(X),isDisabled:f(X,o),isSelected:re,options:n,context:X===a?"menu":"value",selectValue:o,isAppleDevice:c};$=O.onFocus(le)}return $},[a,r,d,f,O,n,o,c]),B=K.useMemo(function(){var $="";if(g&&m.length&&!z&&O.onFilter){var X=k({count:n.length});$=O.onFilter({inputValue:p,resultsMessage:X})}return $},[n,p,g,O,m,k,z]),V=t?.action==="initial-input-focus",D=K.useMemo(function(){var $="";if(O.guidance){var X=r?"value":g?"menu":"input";$=O.guidance({"aria-label":w,context:X,isDisabled:a&&f(a,o),isMulti:h,isSearchable:b,tabSelectsValue:x,isInitialFocus:V})}return $},[w,a,r,h,f,b,g,O,o,x,V]),J=ea(K.Fragment,null,ea("span",{id:"aria-selection"},M),ea("span",{id:"aria-focused"},T),ea("span",{id:"aria-results"},B),ea("span",{id:"aria-guidance"},D));return ea(K.Fragment,null,ea(mOe,{id:l},V&&J),ea(mOe,{"aria-live":j,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!V&&J))},K$t=I$t,$H=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}],H$t=new RegExp("["+$H.map(function(e){return e.letters}).join("")+"]","g"),fOe={},IH=0;IH<$H.length;IH++)for(var KH=$H[IH],HH=0;HH<KH.letters.length;HH++)fOe[KH.letters[HH]]=KH.base;var gOe=function(e){return e.replace(H$t,function(t){return fOe[t]})},V$t=L$t(gOe),vOe=function(e){return e.replace(/^\s+|\s+$/g,"")},F$t=function(e){return"".concat(e.label," ").concat(e.value)},G$t=function(e){return function(t,a){if(t.data.__isNew__)return!0;var r=bt({ignoreCase:!0,ignoreAccents:!0,stringify:F$t,trim:!0,matchFrom:"any"},e),n=r.ignoreCase,i=r.ignoreAccents,o=r.stringify,s=r.trim,l=r.matchFrom,c=s?vOe(a):a,u=s?vOe(o(t)):o(t);return n&&(c=c.toLowerCase(),u=u.toLowerCase()),i&&(c=V$t(c),u=gOe(u)),l==="start"?u.substr(0,c.length)===c:u.indexOf(c)>-1}},q$t=["innerRef"];function W$t(e){var t=e.innerRef,a=su(e,q$t),r=yNt(a,"onExited","in","enter","exit","appear");return ea("input",Ut({ref:t},r,{css:_H({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var J$t=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function U$t(e){var t=e.isEnabled,a=e.onBottomArrive,r=e.onBottomLeave,n=e.onTopArrive,i=e.onTopLeave,o=K.useRef(!1),s=K.useRef(!1),l=K.useRef(0),c=K.useRef(null),u=K.useCallback(function(g,m){if(c.current!==null){var k=c.current,x=k.scrollTop,z=k.scrollHeight,w=k.clientHeight,j=c.current,O=m>0,M=z-w-x,T=!1;M>m&&o.current&&(r&&r(g),o.current=!1),O&&s.current&&(i&&i(g),s.current=!1),O&&m>M?(a&&!o.current&&a(g),j.scrollTop=z,T=!0,o.current=!0):!O&&-m>x&&(n&&!s.current&&n(g),j.scrollTop=0,T=!0,s.current=!0),T&&J$t(g)}},[a,r,n,i]),d=K.useCallback(function(g){u(g,g.deltaY)},[u]),p=K.useCallback(function(g){l.current=g.changedTouches[0].clientY},[]),h=K.useCallback(function(g){var m=l.current-g.changedTouches[0].clientY;u(g,m)},[u]),f=K.useCallback(function(g){if(g){var m=vNt?{passive:!1}:!1;g.addEventListener("wheel",d,m),g.addEventListener("touchstart",p,m),g.addEventListener("touchmove",h,m)}},[h,p,d]),b=K.useCallback(function(g){g&&(g.removeEventListener("wheel",d,!1),g.removeEventListener("touchstart",p,!1),g.removeEventListener("touchmove",h,!1))},[h,p,d]);return K.useEffect(function(){if(t){var g=c.current;return f(g),function(){b(g)}}},[t,f,b]),function(g){c.current=g}}var bOe=["boxSizing","height","overflow","paddingRight","position"],kOe={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function yOe(e){e.cancelable&&e.preventDefault()}function xOe(e){e.stopPropagation()}function wOe(){var e=this.scrollTop,t=this.scrollHeight,a=e+this.offsetHeight;e===0?this.scrollTop=1:a===t&&(this.scrollTop=e-1)}function SOe(){return"ontouchstart"in window||navigator.maxTouchPoints}var zOe=!!(typeof window<"u"&&window.document&&window.document.createElement),Nw=0,Ok={capture:!1,passive:!1};function Z$t(e){var t=e.isEnabled,a=e.accountForScrollbars,r=a===void 0?!0:a,n=K.useRef({}),i=K.useRef(null),o=K.useCallback(function(l){if(zOe){var c=document.body,u=c&&c.style;if(r&&bOe.forEach(function(f){var b=u&&u[f];n.current[f]=b}),r&&Nw<1){var d=parseInt(n.current.paddingRight,10)||0,p=document.body?document.body.clientWidth:0,h=window.innerWidth-p+d||0;Object.keys(kOe).forEach(function(f){var b=kOe[f];u&&(u[f]=b)}),u&&(u.paddingRight="".concat(h,"px"))}c&&SOe()&&(c.addEventListener("touchmove",yOe,Ok),l&&(l.addEventListener("touchstart",wOe,Ok),l.addEventListener("touchmove",xOe,Ok))),Nw+=1}},[r]),s=K.useCallback(function(l){if(zOe){var c=document.body,u=c&&c.style;Nw=Math.max(Nw-1,0),r&&Nw<1&&bOe.forEach(function(d){var p=n.current[d];u&&(u[d]=p)}),c&&SOe()&&(c.removeEventListener("touchmove",yOe,Ok),l&&(l.removeEventListener("touchstart",wOe,Ok),l.removeEventListener("touchmove",xOe,Ok)))}},[r]);return K.useEffect(function(){if(t){var l=i.current;return o(l),function(){s(l)}}},[t,o,s]),function(l){i.current=l}}var Q$t=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Y$t={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function X$t(e){var t=e.children,a=e.lockEnabled,r=e.captureEnabled,n=r===void 0?!0:r,i=e.onBottomArrive,o=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,c=U$t({isEnabled:n,onBottomArrive:i,onBottomLeave:o,onTopArrive:s,onTopLeave:l}),u=Z$t({isEnabled:a}),d=function(p){c(p),u(p)};return ea(K.Fragment,null,a&&ea("div",{onClick:Q$t,css:Y$t}),t(d))}var e7t={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},t7t=function(e){var t=e.name,a=e.onFocus;return ea("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:a,css:e7t,value:"",onChange:function(){}})},a7t=t7t;function VH(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function r7t(){return VH(/^iPhone/i)}function jOe(){return VH(/^Mac/i)}function n7t(){return VH(/^iPad/i)||jOe()&&navigator.maxTouchPoints>1}function i7t(){return r7t()||n7t()}function o7t(){return jOe()||i7t()}var s7t=function(e){return e.label},l7t=function(e){return e.label},c7t=function(e){return e.value},u7t=function(e){return!!e.isDisabled},d7t={clearIndicator:JNt,container:DNt,control:t$t,dropdownIndicator:qNt,group:i$t,groupHeading:s$t,indicatorsContainer:KNt,indicatorSeparator:ZNt,input:d$t,loadingIndicator:XNt,loadingMessage:_Nt,menu:jNt,menuList:PNt,menuPortal:BNt,multiValue:g$t,multiValueLabel:v$t,multiValueRemove:b$t,noOptionsMessage:TNt,option:z$t,placeholder:C$t,singleValue:M$t,valueContainer:$Nt},p7t={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},h7t=4,OOe=4,m7t=38,f7t=OOe*2,g7t={baseUnit:OOe,controlHeight:m7t,menuGutter:f7t},FH={borderRadius:h7t,colors:p7t,spacing:g7t},v7t={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:aOe(),captureMenuScroll:!aOe(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:G$t(),formatGroupLabel:s7t,getOptionLabel:l7t,getOptionValue:c7t,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:u7t,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!fNt(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(t!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function COe(e,t,a,r){var n=_Oe(e,t,a),i=EOe(e,t,a),o=TOe(e,t),s=i5(e,t);return{type:"option",data:t,isDisabled:n,isSelected:i,label:o,value:s,index:r}}function n5(e,t){return e.options.map(function(a,r){if("options"in a){var n=a.options.map(function(o,s){return COe(e,o,t,s)}).filter(function(o){return MOe(e,o)});return n.length>0?{type:"group",data:a,options:n,index:r}:void 0}var i=COe(e,a,t,r);return MOe(e,i)?i:void 0}).filter(bNt)}function AOe(e){return e.reduce(function(t,a){return a.type==="group"?t.push.apply(t,fw(a.options.map(function(r){return r.data}))):t.push(a.data),t},[])}function POe(e,t){return e.reduce(function(a,r){return r.type==="group"?a.push.apply(a,fw(r.options.map(function(n){return{data:n.data,id:"".concat(t,"-").concat(r.index,"-").concat(n.index)}}))):a.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),a},[])}function b7t(e,t){return AOe(n5(e,t))}function MOe(e,t){var a=e.inputValue,r=a===void 0?"":a,n=t.data,i=t.isSelected,o=t.label,s=t.value;return(!BOe(e)||!i)&&ROe(e,{label:o,value:s,data:n},r)}function k7t(e,t){var a=e.focusedValue,r=e.selectValue,n=r.indexOf(a);if(n>-1){var i=t.indexOf(a);if(i>-1)return a;if(n<t.length)return t[n]}return null}function y7t(e,t){var a=e.focusedOption;return a&&t.indexOf(a)>-1?a:t[0]}var GH=function(e,t){var a,r=(a=e.find(function(n){return n.data===t}))===null||a===void 0?void 0:a.id;return r||null},TOe=function(e,t){return e.getOptionLabel(t)},i5=function(e,t){return e.getOptionValue(t)};function _Oe(e,t,a){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,a):!1}function EOe(e,t,a){if(a.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,a);var r=i5(e,t);return a.some(function(n){return i5(e,n)===r})}function ROe(e,t,a){return e.filterOption?e.filterOption(t,a):!0}var BOe=function(e){var t=e.hideSelectedOptions,a=e.isMulti;return t===void 0?a:t},x7t=1,LOe=(function(e){$K(a,e);var t=KK(a);function a(r){var n;if(DK(this,a),n=t.call(this,r),n.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=0,n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.isAppleDevice=o7t(),n.controlRef=null,n.getControlRef=function(l){n.controlRef=l},n.focusedOptionRef=null,n.getFocusedOptionRef=function(l){n.focusedOptionRef=l},n.menuListRef=null,n.getMenuListRef=function(l){n.menuListRef=l},n.inputRef=null,n.getInputRef=function(l){n.inputRef=l},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(l,c){var u=n.props,d=u.onChange,p=u.name;c.name=p,n.ariaOnChange(l,c),d(l,c)},n.setValue=function(l,c,u){var d=n.props,p=d.closeMenuOnSelect,h=d.isMulti,f=d.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:f}),p&&(n.setState({inputIsHiddenAfterUpdate:!h}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(l,{action:c,option:u})},n.selectOption=function(l){var c=n.props,u=c.blurInputOnSelect,d=c.isMulti,p=c.name,h=n.state.selectValue,f=d&&n.isOptionSelected(l,h),b=n.isOptionDisabled(l,h);if(f){var g=n.getOptionValue(l);n.setValue(h.filter(function(m){return n.getOptionValue(m)!==g}),"deselect-option",l)}else if(!b)d?n.setValue([].concat(fw(h),[l]),"select-option",l):n.setValue(l,"select-option");else{n.ariaOnChange(l,{action:"select-option",option:l,name:p});return}u&&n.blurInput()},n.removeValue=function(l){var c=n.props.isMulti,u=n.state.selectValue,d=n.getOptionValue(l),p=u.filter(function(f){return n.getOptionValue(f)!==d}),h=a5(c,p,p[0]||null);n.onChange(h,{action:"remove-value",removedValue:l}),n.focusInput()},n.clearValue=function(){var l=n.state.selectValue;n.onChange(a5(n.props.isMulti,[],null),{action:"clear",removedValues:l})},n.popValue=function(){var l=n.props.isMulti,c=n.state.selectValue,u=c[c.length-1],d=c.slice(0,c.length-1),p=a5(l,d,d[0]||null);u&&n.onChange(p,{action:"pop-value",removedValue:u})},n.getFocusedOptionId=function(l){return GH(n.state.focusableOptionsWithIds,l)},n.getFocusableOptionsWithIds=function(){return POe(n5(n.props,n.state.selectValue),n.getElementId("option"))},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return uNt.apply(void 0,[n.props.classNamePrefix].concat(c))},n.getOptionLabel=function(l){return TOe(n.props,l)},n.getOptionValue=function(l){return i5(n.props,l)},n.getStyles=function(l,c){var u=n.props.unstyled,d=d7t[l](c,u);d.boxSizing="border-box";var p=n.props.styles[l];return p?p(d,c):d},n.getClassNames=function(l,c){var u,d;return(u=(d=n.props.classNames)[l])===null||u===void 0?void 0:u.call(d,c)},n.getElementId=function(l){return"".concat(n.state.instancePrefix,"-").concat(l)},n.getComponents=function(){return E$t(n.props)},n.buildCategorizedOptions=function(){return n5(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return AOe(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(l,c){n.setState({ariaSelection:bt({value:l},c)})},n.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(l){n.blockOptionHover=!1},n.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&n.onMenuClose():c&&n.openMenu("first"):(c&&(n.openAfterFocus=!0),n.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},n.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!n.props.isDisabled){var c=n.props,u=c.isMulti,d=c.menuIsOpen;n.focusInput(),d?(n.setState({inputIsHiddenAfterUpdate:!u}),n.onMenuClose()):n.openMenu("first"),l.preventDefault()}},n.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(n.clearValue(),l.preventDefault(),n.openAfterFocus=!1,l.type==="touchend"?n.focusInput():setTimeout(function(){return n.focusInput()}))},n.onScroll=function(l){typeof n.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&YT(l.target)&&n.props.onMenuClose():typeof n.props.closeMenuOnScroll=="function"&&n.props.closeMenuOnScroll(l)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(l){var c=l.touches,u=c&&c.item(0);u&&(n.initialTouchX=u.clientX,n.initialTouchY=u.clientY,n.userIsDragging=!1)},n.onTouchMove=function(l){var c=l.touches,u=c&&c.item(0);if(u){var d=Math.abs(u.clientX-n.initialTouchX),p=Math.abs(u.clientY-n.initialTouchY),h=5;n.userIsDragging=d>h||p>h}},n.onTouchEnd=function(l){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(l.target)&&n.menuListRef&&!n.menuListRef.contains(l.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(l){n.userIsDragging||n.onControlMouseDown(l)},n.onClearIndicatorTouchEnd=function(l){n.userIsDragging||n.onClearIndicatorMouseDown(l)},n.onDropdownIndicatorTouchEnd=function(l){n.userIsDragging||n.onDropdownIndicatorMouseDown(l)},n.handleInputChange=function(l){var c=n.props.inputValue,u=l.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(u,{action:"input-change",prevInputValue:c}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(l){n.props.onFocus&&n.props.onFocus(l),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(l){var c=n.props.inputValue;if(n.menuListRef&&n.menuListRef.contains(document.activeElement)){n.inputRef.focus();return}n.props.onBlur&&n.props.onBlur(l),n.onInputChange("",{action:"input-blur",prevInputValue:c}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1})},n.onOptionHover=function(l){if(!(n.blockOptionHover||n.state.focusedOption===l)){var c=n.getFocusableOptions(),u=c.indexOf(l);n.setState({focusedOption:l,focusedOptionId:u>-1?n.getFocusedOptionId(l):null})}},n.shouldHideSelectedOptions=function(){return BOe(n.props)},n.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),n.focus()},n.onKeyDown=function(l){var c=n.props,u=c.isMulti,d=c.backspaceRemovesValue,p=c.escapeClearsValue,h=c.inputValue,f=c.isClearable,b=c.isDisabled,g=c.menuIsOpen,m=c.onKeyDown,k=c.tabSelectsValue,x=c.openMenuOnFocus,z=n.state,w=z.focusedOption,j=z.focusedValue,O=z.selectValue;if(!b&&!(typeof m=="function"&&(m(l),l.defaultPrevented))){switch(n.blockOptionHover=!0,l.key){case"ArrowLeft":if(!u||h)return;n.focusValue("previous");break;case"ArrowRight":if(!u||h)return;n.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(j)n.removeValue(j);else{if(!d)return;u?n.popValue():f&&n.clearValue()}break;case"Tab":if(n.isComposing||l.shiftKey||!g||!k||!w||x&&n.isOptionSelected(w,O))return;n.selectOption(w);break;case"Enter":if(l.keyCode===229)break;if(g){if(!w||n.isComposing)return;n.selectOption(w);break}return;case"Escape":g?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:h}),n.onMenuClose()):f&&p&&n.clearValue();break;case" ":if(h)return;if(!g){n.openMenu("first");break}if(!w)return;n.selectOption(w);break;case"ArrowUp":g?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":g?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!g)return;n.focusOption("pageup");break;case"PageDown":if(!g)return;n.focusOption("pagedown");break;case"Home":if(!g)return;n.focusOption("first");break;case"End":if(!g)return;n.focusOption("last");break;default:return}l.preventDefault()}},n.state.instancePrefix="react-select-"+(n.props.instanceId||++x7t),n.state.selectValue=Yje(r.value),r.menuIsOpen&&n.state.selectValue.length){var i=n.getFocusableOptionsWithIds(),o=n.buildFocusableOptions(),s=o.indexOf(n.state.selectValue[0]);n.state.focusableOptionsWithIds=i,n.state.focusedOption=o[s],n.state.focusedOptionId=GH(i,o[s])}return n}return NK(a,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&tOe(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(r){var n=this.props,i=n.isDisabled,o=n.menuIsOpen,s=this.state.isFocused;(s&&!i&&r.isDisabled||s&&o&&!r.menuIsOpen)&&this.focusInput(),s&&i&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!i&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(tOe(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(r,n){this.props.onInputChange(r,n)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var n=this,i=this.state,o=i.selectValue,s=i.isFocused,l=this.buildFocusableOptions(),c=r==="first"?0:l.length-1;if(!this.props.isMulti){var u=l.indexOf(o[0]);u>-1&&(c=u)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:l[c],focusedOptionId:this.getFocusedOptionId(l[c])},function(){return n.onMenuOpen()})}},{key:"focusValue",value:function(r){var n=this.state,i=n.selectValue,o=n.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=i.indexOf(o);o||(s=-1);var l=i.length-1,c=-1;if(i.length){switch(r){case"previous":s===0?c=0:s===-1?c=l:c=s-1;break;case"next":s>-1&&s<l&&(c=s+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:i[c]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",n=this.props.pageSize,i=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var s=0,l=o.indexOf(i);i||(l=-1),r==="up"?s=l>0?l-1:o.length-1:r==="down"?s=(l+1)%o.length:r==="pageup"?(s=l-n,s<0&&(s=0)):r==="pagedown"?(s=l+n,s>o.length-1&&(s=o.length-1)):r==="last"&&(s=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[s])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(FH):bt(bt({},FH),this.props.theme):FH})},{key:"getCommonProps",value:function(){var r=this.clearValue,n=this.cx,i=this.getStyles,o=this.getClassNames,s=this.getValue,l=this.selectOption,c=this.setValue,u=this.props,d=u.isMulti,p=u.isRtl,h=u.options,f=this.hasValue();return{clearValue:r,cx:n,getStyles:i,getClassNames:o,getValue:s,hasValue:f,isMulti:d,isRtl:p,options:h,selectOption:l,selectProps:u,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var r=this.props,n=r.isClearable,i=r.isMulti;return n===void 0?i:n}},{key:"isOptionDisabled",value:function(r,n){return _Oe(this.props,r,n)}},{key:"isOptionSelected",value:function(r,n){return EOe(this.props,r,n)}},{key:"filterOption",value:function(r,n){return ROe(this.props,r,n)}},{key:"formatOptionLabel",value:function(r,n){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(r,{context:n,inputValue:i,selectValue:o})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var r=this.props,n=r.isDisabled,i=r.isSearchable,o=r.inputId,s=r.inputValue,l=r.tabIndex,c=r.form,u=r.menuIsOpen,d=r.required,p=this.getComponents(),h=p.Input,f=this.state,b=f.inputIsHidden,g=f.ariaSelection,m=this.commonProps,k=o||this.getElementId("input"),x=bt(bt(bt({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},u&&{"aria-controls":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?g?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?K.createElement(h,Ut({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:k,innerRef:this.getInputRef,isDisabled:n,isHidden:b,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:c,type:"text",value:s},x)):K.createElement(W$t,Ut({id:k,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:QT,onFocus:this.onInputFocus,disabled:n,tabIndex:l,inputMode:"none",form:c,value:""},x))})},{key:"renderPlaceholderOrValue",value:function(){var r=this,n=this.getComponents(),i=n.MultiValue,o=n.MultiValueContainer,s=n.MultiValueLabel,l=n.MultiValueRemove,c=n.SingleValue,u=n.Placeholder,d=this.commonProps,p=this.props,h=p.controlShouldRenderValue,f=p.isDisabled,b=p.isMulti,g=p.inputValue,m=p.placeholder,k=this.state,x=k.selectValue,z=k.focusedValue,w=k.isFocused;if(!this.hasValue()||!h)return g?null:K.createElement(u,Ut({},d,{key:"placeholder",isDisabled:f,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),m);if(b)return x.map(function(O,M){var T=O===z,B="".concat(r.getOptionLabel(O),"-").concat(r.getOptionValue(O));return K.createElement(i,Ut({},d,{components:{Container:o,Label:s,Remove:l},isFocused:T,isDisabled:f,key:B,index:M,removeProps:{onClick:function(){return r.removeValue(O)},onTouchEnd:function(){return r.removeValue(O)},onMouseDown:function(V){V.preventDefault()}},data:O}),r.formatOptionLabel(O,"value"))});if(g)return null;var j=x[0];return K.createElement(c,Ut({},d,{data:j,isDisabled:f}),this.formatOptionLabel(j,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),n=r.ClearIndicator,i=this.commonProps,o=this.props,s=o.isDisabled,l=o.isLoading,c=this.state.isFocused;if(!this.isClearable()||!n||s||!this.hasValue()||l)return null;var u={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return K.createElement(n,Ut({},i,{innerProps:u,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),n=r.LoadingIndicator,i=this.commonProps,o=this.props,s=o.isDisabled,l=o.isLoading,c=this.state.isFocused;if(!n||!l)return null;var u={"aria-hidden":"true"};return K.createElement(n,Ut({},i,{innerProps:u,isDisabled:s,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),n=r.DropdownIndicator,i=r.IndicatorSeparator;if(!n||!i)return null;var o=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused;return K.createElement(i,Ut({},o,{isDisabled:s,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),n=r.DropdownIndicator;if(!n)return null;var i=this.commonProps,o=this.props.isDisabled,s=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return K.createElement(n,Ut({},i,{innerProps:l,isDisabled:o,isFocused:s}))}},{key:"renderMenu",value:function(){var r=this,n=this.getComponents(),i=n.Group,o=n.GroupHeading,s=n.Menu,l=n.MenuList,c=n.MenuPortal,u=n.LoadingMessage,d=n.NoOptionsMessage,p=n.Option,h=this.commonProps,f=this.state.focusedOption,b=this.props,g=b.captureMenuScroll,m=b.inputValue,k=b.isLoading,x=b.loadingMessage,z=b.minMenuHeight,w=b.maxMenuHeight,j=b.menuIsOpen,O=b.menuPlacement,M=b.menuPosition,T=b.menuPortalTarget,B=b.menuShouldBlockScroll,V=b.menuShouldScrollIntoView,D=b.noOptionsMessage,J=b.onMenuScrollToTop,$=b.onMenuScrollToBottom;if(!j)return null;var X=function(N,W){var I=N.type,P=N.data,R=N.isDisabled,H=N.isSelected,ae=N.label,U=N.value,he=f===P,Z=R?void 0:function(){return r.onOptionHover(P)},A=R?void 0:function(){return r.selectOption(P)},L="".concat(r.getElementId("option"),"-").concat(W),te={id:L,onClick:A,onMouseMove:Z,onMouseOver:Z,tabIndex:-1,role:"option","aria-selected":r.isAppleDevice?void 0:H};return K.createElement(p,Ut({},h,{innerProps:te,data:P,isDisabled:R,isSelected:H,key:L,label:ae,type:I,value:U,isFocused:he,innerRef:he?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(N.data,"menu"))},re;if(this.hasOptions())re=this.getCategorizedOptions().map(function(N){if(N.type==="group"){var W=N.data,I=N.options,P=N.index,R="".concat(r.getElementId("group"),"-").concat(P),H="".concat(R,"-heading");return K.createElement(i,Ut({},h,{key:R,data:W,options:I,Heading:o,headingProps:{id:H,data:N.data},label:r.formatGroupLabel(N.data)}),N.options.map(function(ae){return X(ae,"".concat(P,"-").concat(ae.index))}))}else if(N.type==="option")return X(N,"".concat(N.index))});else if(k){var le=x({inputValue:m});if(le===null)return null;re=K.createElement(u,h,le)}else{var ie=D({inputValue:m});if(ie===null)return null;re=K.createElement(d,h,ie)}var me={minMenuHeight:z,maxMenuHeight:w,menuPlacement:O,menuPosition:M,menuShouldScrollIntoView:V},G=K.createElement(ONt,Ut({},h,me),function(N){var W=N.ref,I=N.placerProps,P=I.placement,R=I.maxHeight;return K.createElement(s,Ut({},h,me,{innerRef:W,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:k,placement:P}),K.createElement(X$t,{captureEnabled:g,onTopArrive:J,onBottomArrive:$,lockEnabled:B},function(H){return K.createElement(l,Ut({},h,{innerRef:function(ae){r.getMenuListRef(ae),H(ae)},innerProps:{role:"listbox","aria-multiselectable":h.isMulti,id:r.getElementId("listbox")},isLoading:k,maxHeight:R,focusedOption:f}),re)}))});return T||M==="fixed"?K.createElement(c,Ut({},h,{appendTo:T,controlElement:this.controlRef,menuPlacement:O,menuPosition:M}),G):G}},{key:"renderFormField",value:function(){var r=this,n=this.props,i=n.delimiter,o=n.isDisabled,s=n.isMulti,l=n.name,c=n.required,u=this.state.selectValue;if(c&&!this.hasValue()&&!o)return K.createElement(a7t,{name:l,onFocus:this.onValueInputFocus});if(!(!l||o))if(s)if(i){var d=u.map(function(f){return r.getOptionValue(f)}).join(i);return K.createElement("input",{name:l,type:"hidden",value:d})}else{var p=u.length>0?u.map(function(f,b){return K.createElement("input",{key:"i-".concat(b),name:l,type:"hidden",value:r.getOptionValue(f)})}):K.createElement("input",{name:l,type:"hidden",value:""});return K.createElement("div",null,p)}else{var h=u[0]?this.getOptionValue(u[0]):"";return K.createElement("input",{name:l,type:"hidden",value:h})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,n=this.state,i=n.ariaSelection,o=n.focusedOption,s=n.focusedValue,l=n.isFocused,c=n.selectValue,u=this.getFocusableOptions();return K.createElement(K$t,Ut({},r,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:o,focusedValue:s,isFocused:l,selectValue:c,focusableOptions:u,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var r=this.getComponents(),n=r.Control,i=r.IndicatorsContainer,o=r.SelectContainer,s=r.ValueContainer,l=this.props,c=l.className,u=l.id,d=l.isDisabled,p=l.menuIsOpen,h=this.state.isFocused,f=this.commonProps=this.getCommonProps();return K.createElement(o,Ut({},f,{className:c,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:h}),this.renderLiveRegion(),K.createElement(n,Ut({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:h,menuIsOpen:p}),K.createElement(s,Ut({},f,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),K.createElement(i,Ut({},f,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,n){var i=n.prevProps,o=n.clearFocusValueOnUpdate,s=n.inputIsHiddenAfterUpdate,l=n.ariaSelection,c=n.isFocused,u=n.prevWasFocused,d=n.instancePrefix,p=r.options,h=r.value,f=r.menuIsOpen,b=r.inputValue,g=r.isMulti,m=Yje(h),k={};if(i&&(h!==i.value||p!==i.options||f!==i.menuIsOpen||b!==i.inputValue)){var x=f?b7t(r,m):[],z=f?POe(n5(r,m),"".concat(d,"-option")):[],w=o?k7t(n,m):null,j=y7t(n,x),O=GH(z,j);k={selectValue:m,focusedOption:j,focusedOptionId:O,focusableOptionsWithIds:z,focusedValue:w,clearFocusValueOnUpdate:!1}}var M=s!=null&&r!==i?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},T=l,B=c&&u;return c&&!B&&(T={value:a5(g,m,m[0]||null),options:m,action:"initial-input-focus"},B=!u),l?.action==="initial-input-focus"&&(T=null),bt(bt(bt({},k),M),{},{prevProps:r,ariaSelection:T,prevWasFocused:B})}}]),a})(K.Component);LOe.defaultProps=v7t;var w7t=K.forwardRef(function(e,t){var a=eDt(e);return K.createElement(LOe,Ut({ref:t},a))}),S7t=w7t;const z7t=()=>v.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M7 0.875C3.63125 0.875 0.875 3.63125 0.875 7C0.875 10.3687 3.63125 13.125 7 13.125C10.3687 13.125 13.125 10.3687 13.125 7C13.125 3.63125 10.3687 0.875 7 0.875ZM6.51875 3.5H7.48125V8.3125H6.51875V3.5ZM7 10.9375C6.65 10.9375 6.34375 10.6313 6.34375 10.2812C6.34375 9.93125 6.65 9.625 7 9.625C7.35 9.625 7.65625 9.93125 7.65625 10.2812C7.65625 10.6313 7.35 10.9375 7 10.9375Z",fill:"#FFA02E"})}),j7t=()=>v.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M7 0.875C3.5875 0.875 0.875 3.5875 0.875 7C0.875 10.4125 3.5875 13.125 7 13.125C10.4125 13.125 13.125 10.4125 13.125 7C13.125 3.5875 10.4125 0.875 7 0.875ZM9.3625 10.0625L7 7.7L4.6375 10.0625L3.9375 9.3625L6.3 7L3.9375 4.6375L4.6375 3.9375L7 6.3L9.3625 3.9375L10.0625 4.6375L7.7 7L10.0625 9.3625L9.3625 10.0625Z",fill:"#F9316D"})}),Cp=({options:e,isClearable:t=!1,isSearchable:a=!1,isDisabled:r=!1,isMulti:n=!1,isWarning:i=!1,isError:o=!1,withArrow:s=!0,placeholder:l,defaultValue:c,className:u,value:d,ariaLabel:p="select",ariaLabeledBy:h,size:f="medium",menuAlignment:b="left",icon:g,formatGroupLabel:m,onChange:k,dataTestId:x})=>{const z=T=>{const{selectProps:B}=T,{menuIsOpen:V}=B,D=V?v.jsx(mL,{size:"14px"}):v.jsx(Zi,{size:"14px"});return s&&!n?v.jsxs(r5.DropdownIndicator,{...T,children:[i&&v.jsx(z7t,{}),o&&v.jsx(j7t,{}),g||D]}):null},w=T=>v.jsxs(r5.Option,{...T,innerProps:{...T.innerProps,"data-testid":"select-option"},children:[T.children," ",T.isSelected&&v.jsx(lc,{})]}),j=T=>v.jsx(r5.SingleValue,{...T,innerProps:{...T.innerProps,"data-testid":x||"select-singleValue"},children:T.children}),O=K.useMemo(()=>({menu:T=>({...T,maxWidth:"424px",width:"auto",boxShadow:"0px 0px 4px 0px rgba(51, 51, 51, 0.15)",border:"1px solid var(--border-color-secondary)",borderRadius:"var(--border-radius-md)",overflow:"hidden",textOverflow:"ellipsis",zIndex:3,opacity:1,backgroundColor:"var(--bg-color)",minWidth:"max-content",right:b==="right"?0:"unset"})}),[b]),M=K.useMemo(()=>({dropdownIndicator:()=>({display:"none"})}),[]);return v.jsx(S7t,{className:`${u} react-select-${f}`,options:e,onChange:k,isSearchable:a,isClearable:t,isDisabled:r,isMulti:n,placeholder:l,defaultValue:c,value:d,formatGroupLabel:m,components:{Option:w,SingleValue:j,DropdownIndicator:z,IndicatorSeparator:null},styles:{...O7t,...O,...r?M:{}},"aria-label":p,"aria-labelledby":h})},O7t={container:e=>({...e}),control:(e,t)=>({...e,display:"flex",gap:"var(--spacing-xxs)",boxShadow:"none",maxWidth:"424px",overflow:"hidden",textOverflow:"ellipsis",minHeight:"24px",padding:t.isMulti?"0px var(--spacing-unit)":"0px var(--spacing-xs)",alignItems:"center",backgroundColor:t.isDisabled?"var(--layer-color)":"var(--bg-color)",border:"none","&:hover":{cursor:"pointer"}}),singleValue:(e,t)=>({...e,color:t.isDisabled?"var(--color-content-disabled)":"var(--color-content)",fontSize:"var(--font-size-base)",lineHeight:"var(--line-height-base)",overflow:"hidden",margin:0,"&:hover":{color:"var(--text-primary)"}}),dropdownIndicator:(e,t)=>({...e,color:t.isDisabled?"var(--color-content-disabled)":"var(--color-content)",fill:t.isDisabled?"var(--color-content-disabled)":"var(--color-content)",display:"flex",alignItems:"center",alignSelf:"auto",justifyContent:"center",padding:0,gap:"var(--spacing-xs)","&:hover":{color:"var(--icon-color-additional)",fill:"var(--icon-color-additional)"}}),clearIndicator:e=>({...e,padding:0,width:"14px",height:"14px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",fill:"var(--color-content-placeholder)"}),valueContainer:e=>({...e,padding:0,overflow:"visible"}),indicatorsContainer:e=>({...e,gap:"var(--spacing-unit)"}),placeholder:(e,t)=>({...e,color:"var(--color-content-placeholder)",fontSize:"var(--font-size-base)",margin:0,padding:t.isMulti?"0px var(--spacing-xs)":0}),input:e=>({...e,fontSize:"var(--font-size-base)",color:"var(--color-content)",margin:0,padding:0}),group:e=>({...e,paddingLeft:"var(--spacing-xs)"}),menuList:e=>({...e,backgroundColor:"var(--bg-color)",padding:"var(--spacing-unit)",overflowX:"hidden","& > div:not(:last-child)":{margin:"0px 0px calc(var(--spacing-unit)/2) 0px"}}),option:(e,t)=>({...e,minWidth:"max-content",cursor:"pointer",borderRadius:"var(--border-radius-md)",fontSize:"var(--font-size-base)",lineHeight:"var(--line-height-base)",padding:"0px var(--spacing-xs)",minHeight:"32px",color:"var(--color-content)",fill:"var(--color-content)",fontWeight:t.isSelected?"var(--font-weight-medium)":"var(--font-weight-regular)",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"var(--spacing-xs)",backgroundColor:"unset",div:{maxWidth:"400px",textOverflow:"ellipsis",overflow:"hidden"},"&:hover":{backgroundColor:"var(--menu-item-bg-color-hover)"}})},go=Y(rt).attrs({variant:"text",size:"small",tone:"danger"})`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as u,jsxs as x}from"react/jsx-runtime";import{useAtomValue as c}from"jotai";import{Panel as r}from"@redocly/theme/components/Panel/Panel";import{Markdown as S}from"@redocly/theme/components/Markdown/Markdown";import{DownloadSpecification as b}from"../Download/index.js";import{Overview as O}from"../Overview/index.js";import{ServerList as j}from"../ServerList/index.js";import{globalStoreAtom as I}from"../../jotai/store.js";import{normalizeServers as d}from"../../utils/index.js";import{LanguageList as L}from"../Language/index.js";import{mergeInMockServer as M}from"../../models/operation.js";import{languageAtom as P}from"../../jotai/app.js";import{useTranslate as k}from"../../hooks/index.js";import{useDownloadInfo as D}from"../Download/useDownloadInfo.js";import{McpOverview as E}from"../McpOverview/McpOverview.js";const J=({item:{infoDefinition:o}})=>{const a=k(),{options:{hideDownloadButtons:f,downloadUrls:
|
|
1
|
+
import{jsx as e,Fragment as u,jsxs as x}from"react/jsx-runtime";import{useAtomValue as c}from"jotai";import{Panel as r}from"@redocly/theme/components/Panel/Panel";import{Markdown as S}from"@redocly/theme/components/Markdown/Markdown";import{DownloadSpecification as b}from"../Download/index.js";import{Overview as O}from"../Overview/index.js";import{ServerList as j}from"../ServerList/index.js";import{globalStoreAtom as I}from"../../jotai/store.js";import{normalizeServers as d}from"../../utils/index.js";import{LanguageList as L}from"../Language/index.js";import{mergeInMockServer as M}from"../../models/operation.js";import{languageAtom as P}from"../../jotai/app.js";import{useTranslate as k}from"../../hooks/index.js";import{useDownloadInfo as D}from"../Download/useDownloadInfo.js";import{McpOverview as E}from"../McpOverview/McpOverview.js";const J=({item:{infoDefinition:o}})=>{const a=k(),{options:{hideDownloadButtons:f,downloadUrls:g,mockServer:v},parser:{definition:s,definitionUrl:t}}=c(I),{languages:i,activeLanguage:h}=c(P),l=D({downloadUrls:g}),p=d(t,M(s.servers||[],v)),n=s?.["x-mcp"],w=d(t,n?.servers||s.servers||[]),m=!(Object.keys(s.paths||{}).length>0)&&n;return x(u,{children:[!f&&l&&e(r,{className:"panel-download",header:a("openapi.download.description.title","Download OpenAPI description"),isExpandable:!1,children:e(b,{downloadObjects:l})}),!!n&&e(r,{className:"panel-download",header:a("openapi.mcp.title","MCP server"),isExpandable:!1,children:e(E,{mcpInfo:n,mcpServers:w})}),(o?.license||o?.contact||o?.termsOfService)&&e(r,{className:"panel-mcp-overview",header:a("openapi.info.title","Overview"),isExpandable:!1,children:e(S,{children:e(O,{info:o,translate:a})})}),!!i?.length&&!m&&e(r,{className:"panel-language-list",header:a("openapi.languages.title","Languages"),isExpandable:!1,children:e(L,{languages:i,activeLanguage:h})}),!!p.length&&!m&&e(r,{className:"panel-servers-list",header:a("openapi.servers.title","Servers"),isExpandable:!1,children:e(j,{servers:p,path:"/",translate:a})})]})};export{J as RightPanel};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/openapi-docs",
|
|
3
|
-
"version": "3.14.
|
|
3
|
+
"version": "3.14.1",
|
|
4
4
|
"description": "Redocly OpenAPI Docs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"util": "~0.12.5",
|
|
38
38
|
"web-vitals": "3.3.1",
|
|
39
39
|
"@redocly/config": "0.35.1",
|
|
40
|
-
"@redocly/replay": "0.17.
|
|
40
|
+
"@redocly/replay": "0.17.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@jest/globals": "29.5.0",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"typescript": "5.6.2",
|
|
76
76
|
"url": "~0.11.0",
|
|
77
77
|
"vite": "6.3.6",
|
|
78
|
-
"@redocly/theme": "0.58.
|
|
78
|
+
"@redocly/theme": "0.58.1"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"start": "npm run copy-highlight-hook && vite",
|