@uipath/api-workflow-runtime 13.8.2-release-s204.0 → 13.8.2-release-s204.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.
- package/THIRD-PARTY-NOTICES.txt +1 -1
- package/api-workflow-runtime.js +9 -9
- package/package.json +1 -1
- package/sbom.cdx.json +18 -18
package/api-workflow-runtime.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @uipath/api-workflow-runtime v13.8.2-release-s204.
|
|
1
|
+
// @uipath/api-workflow-runtime v13.8.2-release-s204.1 (a1909132)
|
|
2
2
|
var qC=Object.create;var Um=Object.defineProperty;var FC=Object.getOwnPropertyDescriptor;var WC=Object.getOwnPropertyNames;var UC=Object.getPrototypeOf,$C=Object.prototype.hasOwnProperty;import{createRequire as __deno_internal_createRequire} from "node:module";var Ue=__deno_internal_createRequire(import.meta.url);var Pe=(o,t)=>()=>(o&&(t=o(o=0)),t);var O=(o,t)=>()=>(t||o((t={exports:{}}).exports,t),t.exports),$m=(o,t)=>{for(var r in t)Um(o,r,{get:t[r],enumerable:!0})},BC=(o,t,r,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of WC(t))!$C.call(o,n)&&n!==r&&Um(o,n,{get:()=>t[n],enumerable:!(e=FC(t,n))||e.enumerable});return o};var Ge=(o,t,r)=>(r=o!=null?qC(UC(o)):{},BC(1 ?Um(r,"default",{value:o,enumerable:!0}):r,o));var Fw=O(qw=>{"use strict";Object.defineProperty(qw,"__esModule",{value:!0})});var Uw=O(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.ActivityType=void 0;var Ww;(function(o){o.HttpRequest="HttpRequest",o.IntSvcApiRequest="IntSvcApiRequest",o.IntSvcEventRequest="IntSvcEventRequest",o.ScriptExecution="ScriptExecution",o.LogMessage="LogMessage"})(Ww||(Eu.ActivityType=Ww={}))});var Bm=O(Zn=>{"use strict";var HC=Zn&&Zn.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),$w=Zn&&Zn.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&HC(t,o,r)};Object.defineProperty(Zn,"__esModule",{value:!0});$w(Fw(),Zn);$w(Uw(),Zn)});var Bw=O(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.isBlobFileReference=VC;Tu.getAttachmentEncoding=zC;function VC(o){if(!o||typeof o!="object")return!1;let t=o;return typeof t.ID=="string"&&t.ID.length>0&&typeof t.FullName=="string"&&t.FullName.length>0&&typeof t.MimeType=="string"&&t.MimeType.length>0}function zC(o){return o.Metadata?.Encoding==="base64"?"base64":"byte-array"}});var Hw=O(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});Hm.isWorkflowFile=YC;function YC(o){if(!o||typeof o!="object")return!1;let t=o;return typeof t.name=="string"&&typeof t.mimeType=="string"&&typeof t.size=="number"&&t.content instanceof Uint8Array}});var zw=O(Qn=>{"use strict";var KC=Qn&&Qn.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),Vw=Qn&&Qn.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&KC(t,o,r)};Object.defineProperty(Qn,"__esModule",{value:!0});Vw(Bw(),Qn);Vw(Hw(),Qn)});var si=O(eo=>{"use strict";var JC=eo&&eo.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),Yw=eo&&eo.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&JC(t,o,r)};Object.defineProperty(eo,"__esModule",{value:!0});Yw(Bm(),eo);Yw(zw(),eo)});var ai=O(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.ActivityBase=void 0;var Vm=class{constructor(t){this.logger=t}};Su.ActivityBase=Vm});var ja=O(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.getNewGuid=GC;os.getErrorMessage=XC;os.isError=Kw;os.hasProperty=ZC;function GC(){return crypto.randomUUID()}function XC(o){try{return Kw(o)?o.message:o?typeof o=="object"?JSON.stringify(o):String(o):"Unknown Error"}catch{return console.error("Error getting error message - circular reference or stringify failed"),"Unknown Error"}}function Kw(o){return o?typeof o=="object"&&"message"in o&&"name"in o:!1}function ZC(o,t){return o!=null&&typeof o=="object"&&t in o}});var Gw=O((jZ,Jw)=>{"use strict";Jw.exports=QC;function QC(o={}){let{ERR_PATHS_MUST_BE_STRINGS:t=()=>"fast-redact - Paths must be (non-empty) strings",ERR_INVALID_PATH:r=e=>`fast-redact \u2013 Invalid path (${e})`}=o;return function({paths:n}){n.forEach(i=>{if(typeof i!="string")throw Error(t());try{if(/〇/.test(i))throw Error();let s=(i[0]==="["?"":".")+i.replace(/^\*/,"\u3007").replace(/\.\*/g,".\u3007").replace(/\[\*\]/g,"[\u3007]");if(/\n|\r|;/.test(s)||/\/\*/.test(s))throw Error();Function(`
|
|
3
3
|
'use strict'
|
|
4
4
|
const o = new Proxy({}, { get: () => o, set: () => { throw Error() } });
|
|
@@ -78,13 +78,13 @@ var qC=Object.create;var Um=Object.defineProperty;var FC=Object.getOwnPropertyDe
|
|
|
78
78
|
`:""}
|
|
79
79
|
${o}
|
|
80
80
|
return o
|
|
81
|
-
`}});var c0=O((WZ,a0)=>{"use strict";a0.exports=bj;function bj(o){let{secret:t,censor:r,compileRestore:e,serialize:n,groupRedact:i,nestedRedact:s,wildcards:c,wcLen:u}=o,a=[{secret:t,censor:r,compileRestore:e}];return n!==!1&&a.push({serialize:n}),u>0&&a.push({groupRedact:i,nestedRedact:s,wildcards:c,wcLen:u}),Object.assign(...a)}});var d0=O((UZ,l0)=>{"use strict";var u0=Gw(),gj=Qw(),wj=t0(),Ej=s0(),{groupRedact:Tj,nestedRedact:Sj}=Ym(),Oj=c0(),kj=Ou(),Pj=u0(),Km=o=>o;Km.restore=Km;var Aj="[REDACTED]";Jm.rx=kj;Jm.validator=u0;l0.exports=Jm;function Jm(o={}){let t=Array.from(new Set(o.paths||[])),r="serialize"in o&&(o.serialize===!1||typeof o.serialize=="function")?o.serialize:JSON.stringify,e=o.remove;if(e===!0&&r!==JSON.stringify)throw Error("fast-redact \u2013 remove option may only be set when serializer is JSON.stringify");let n=e===!0?void 0:"censor"in o?o.censor:Aj,i=typeof n=="function",s=i&&n.length>1;if(t.length===0)return r||Km;Pj({paths:t,serialize:r,censor:n});let{wildcards:c,wcLen:u,secret:a}=gj({paths:t,censor:n}),l=Ej(),d="strict"in o?o.strict:!0;return wj({secret:a,wcLen:u,serialize:r,strict:d,isCensorFct:i,censorFctTakesPath:s},Oj({secret:a,censor:n,compileRestore:l,serialize:r,groupRedact:Tj,nestedRedact:Sj,wildcards:c,wcLen:u}))}});var ku=O(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.getUrlOrigin=Ij;ci.stripUrlQuery=h0;ci.stripUrlQueries=Rj;ci.addQueryParamsToUrl=Mj;ci.addPathComponentsToUrl=Cj;function Ij(o){return new URL(o).origin}var f0=/^([a-z][a-z0-9+.-]*:\/\/)[^/\\]*@/i;function h0(o){let t=o.trim(),r=f0.exec(t);if(r&&/[?#]/.test(r[0]))return r[1];let e=r?t.replace(f0,"$1"):t,n=e.search(/[?#]/);return n===-1?e:e.slice(0,n)}var xj=/\bhttps?:\/\/[^\s"'<>]+/gi;function Rj(o){return o.replace(xj,h0)}function Mj(o,t){let r=new URL(o);return Object.entries(t).forEach(([e,n])=>{r.searchParams.set(e,n)}),r.toString()}function Cj(o,t){let r=new URL(o),e=_0(r.pathname);if(Array.isArray(t))t.forEach(n=>{let i=p0(n);i&&(e=e+"/"+i)});else{let n=p0(t);n&&(e=e+"/"+n)}return e=jj(e),r.pathname=e,r.toString()}function jj(o){return o?o.startsWith("/")?o:"/"+o:"/"}function p0(o){return Nj(_0(o))}function Nj(o){if(!o)return o;let t=o;for(;t.startsWith("/");)t=t.substring(1);return t}function _0(o){if(!o)return o;let t=o;for(;t.endsWith("/");)t=t.slice(0,-1);return t}});var Da=O(ge=>{"use strict";var Dj=ge&&ge.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(ge,"__esModule",{value:!0});ge.redactHttpRequest=ge.redactSensitiveValues=ge.sanitizeSecrets=ge.isSensitiveKey=ge.SENSITIVE_KEY_PATTERNS=ge.removeObjectPaths=ge.redactObjectPaths=ge.REDACTED_STRING=void 0;var m0=Dj(d0()),Lj=ku();ge.REDACTED_STRING="==REDACTED==";var qj=(o,t,r=ge.REDACTED_STRING)=>{if(!o||typeof o!="object"||!t||!Array.isArray(t))return o;if(t.every(n=>!n.includes(".")&&!n.includes("["))){let n={...o};for(let i of t)n.hasOwnProperty(i)&&(n[i]=r);return n}let e=(0,m0.default)({paths:t,censor:r,serialize:!1});try{return e(structuredClone(o))}catch(n){return console.error("Error redacting object paths",n),o}};ge.redactObjectPaths=qj;var Fj=(o,t)=>{if(!o||typeof o!="object"||!t||!Array.isArray(t))return o;if(t.every(e=>!e.includes(".")&&!e.includes("["))){let e={...o};for(let n of t)delete e[n];return e}let r=(0,m0.default)({paths:t,remove:!0});try{let e=r(o);return JSON.parse(e)}catch(e){return console.error("Error removing object paths",e),o}};ge.removeObjectPaths=Fj;ge.SENSITIVE_KEY_PATTERNS=["auth","authentication","token","apikey","api-key","secret","password","session","client","user-agent","connection","host","www-authenticate","basic","bearer","cookie","csrf","xsrf","private","credential","oauth","jwt","pwd","passwd","passphrase","certificate","signature","salt","accesskey","accountkey","signingkey","encryptionkey"];Object.freeze(ge.SENSITIVE_KEY_PATTERNS);var Wj=o=>o.replace(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),v0=new RegExp(ge.SENSITIVE_KEY_PATTERNS.map(Wj).join("|"),"i"),Uj=o=>!!o&&v0.test(o);ge.isSensitiveKey=Uj;var $j=o=>{if(!o||Object.keys(o).length===0)return o;let t={...o};for(let r in t)(0,ge.isSensitiveKey)(r)&&(t[r]=ge.REDACTED_STRING);return t};ge.sanitizeSecrets=$j;var Bj=(o,t=8)=>{let r=(e,n)=>{if(n>=t||!e||typeof e!="object")return e;if(Array.isArray(e)){let c=!1,u=e.map(a=>{let l=r(a,n+1);return c=c||!Object.is(l,a),l});return c?u:e}if(Object.prototype.toString.call(e)!=="[object Object]")return e;let i=!1,s={};for(let[c,u]of Object.entries(e))if((0,ge.isSensitiveKey)(c))s[c]=ge.REDACTED_STRING,i=!0;else{let a=r(u,n+1);i=i||!Object.is(a,u),s[c]=a}return i?s:e};return r(o,0)};ge.redactSensitiveValues=Bj;var Hj=1024*1024,y0=64,Vj=o=>{if(!v0.test(o))return o;if(o.length>Hj)return ge.REDACTED_STRING;try{let e=JSON.parse(o);if(e&&typeof e=="object"){let n=(0,ge.redactSensitiveValues)(e,y0);return n===e?o:JSON.stringify(n)}}catch{}let t=new URLSearchParams(o),r=[...new Set(t.keys())].filter(ge.isSensitiveKey);return r.forEach(e=>t.set(e,ge.REDACTED_STRING)),r.length?t.toString().split(encodeURIComponent(ge.REDACTED_STRING)).join(ge.REDACTED_STRING):o},zj=o=>{if(!o||typeof o!="object")return o;let t={...o};return typeof o.url=="string"&&(t.url=(0,Lj.stripUrlQuery)(o.url)),o.body!==void 0&&(t.body=typeof o.body=="string"?Vj(o.body):(0,ge.redactSensitiveValues)(o.body,y0)),o.query&&typeof o.query=="object"&&(t.query=Object.fromEntries(Object.keys(o.query).map(r=>[r,ge.REDACTED_STRING]))),Array.isArray(o.multipartFormData)&&(t.multipartFormData=o.multipartFormData.map(r=>(0,ge.isSensitiveKey)(r.name)?{...r,value:ge.REDACTED_STRING}:r)),t};ge.redactHttpRequest=zj});var Kr=O(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.HttpMethod=void 0;var b0;(function(o){o.GET="GET",o.GETBYID="GET",o.HEAD="HEAD",o.POST="POST",o.PUT="PUT",o.PATCH="PATCH",o.DELETE="DELETE",o.CONNECT="CONNECT",o.OPTIONS="OPTIONS",o.TRACE="TRACE",o.MERGE="MERGE"})(b0||(Pu.HttpMethod=b0={}))});var Gm=O(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.ProxyVersion=void 0;var g0;(function(o){o.V1="v1",o.V2="v2"})(g0||(Au.ProxyVersion=g0={}))});var Xm=O(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.MULTIPART_PROXY_BODY_KEY=void 0;An.extractProxyResponseStatus=Kj;An.extractProxyResponseHeaders=Jj;An.buildProxyRequest=E0;An.buildProxyRequestForHttpRequest=Gj;var w0=Kr(),La=Gm(),ar=In(),Iu="Bearer";An.MULTIPART_PROXY_BODY_KEY="__uipathMultipart";var Yj="content-length";function Kj(o,t){if(o&&o.version===La.ProxyVersion.V2){let r,e,n=t.headers?.get("sw-proxy-response-status");if(n){let i=Number(n);if(console.debug(`Proxy V2: Status code from response headers: ${n}`),r=isNaN(i)?void 0:i,r)return e=t.headers?.get("sw-proxy-response-reason-phrase")||"",{code:r,text:e??""}}}}function Jj(o,t){let r={};if(o&&t.headers){let e=[],n=o.responseHeaderPrefix||"";o.version===La.ProxyVersion.V2&&(e=["sw-proxy-response-status","sw-proxy-response-reason-phrase"],n=n||"sw-proxy-");for(let[i,s]of t.headers)e.includes(i)||i.startsWith(n)&&(r[i.substring(n.length)]=s)}else r=Object.fromEntries(t.headers.entries());return r}function E0(o,t,r,e,n,i,s){let c=r.authToken.startsWith(Iu)?r.authToken:`${Iu} ${r.authToken}`;if(r.responseHeaderPrefix,r.version===La.ProxyVersion.V1){if(s!==void 0)throw new Error("V1 multipart proxy requests must be built with buildProxyRequestForHttpRequest.");return Xj(o,t,c,e,n,i)}else if(r.version===La.ProxyVersion.V2)return eN(o,t,c,r.responseHeaderPrefix||"",e,n,i,s);throw new Error(`Unsupported proxy version: ${r.version}`)}async function Gj(o,t,r,e,n,i,s){return r.version===La.ProxyVersion.V1&&s!==void 0?Zj(o,t,r.authToken,e,n,s):E0(o,t,r,e,n,i,s)}function Xj(o,t,r,e,n,i){let s={[ar.CONTENT_TYPE_HEADER]:ar.MediaType.JSON,Authorization:r},c=JSON.stringify({method:t,headers:e,url:o,query:n,body:i});return{headers:s,body:c,method:w0.HttpMethod.POST}}async function Zj(o,t,r,e,n,i){let s=new Response((0,ar.createFormData)(i)),c=s.headers.get(ar.CONTENT_TYPE_HEADER);if(!c)throw new Error("Could not generate a multipart content type for the V1 proxy request.");let u=Qj(await s.arrayBuffer()),a={...e??{}};(0,ar.deleteHeaderCaseInsensitive)(a,ar.CONTENT_TYPE_HEADER),(0,ar.deleteHeaderCaseInsensitive)(a,Yj),a[ar.CONTENT_TYPE_HEADER]=c;let l=r.startsWith(Iu)?r:`${Iu} ${r}`;return{headers:{[ar.CONTENT_TYPE_HEADER]:ar.MediaType.JSON,Authorization:l},body:JSON.stringify({method:t,headers:a,url:o,query:n,body:{[An.MULTIPART_PROXY_BODY_KEY]:{encoding:"base64",data:u}}}),method:w0.HttpMethod.POST}}function Qj(o){let t=new Uint8Array(o),r=32768,e="";for(let n=0;n<t.length;n+=r)e+=String.fromCharCode(...t.subarray(n,n+r));return btoa(e)}function eN(o,t,r,e,n,i,s,c){let a={...Object.entries(n??{}).reduce((d,[f,h])=>(d[`${e}${f}`]=h,d),{}),"sw-proxy-method":t,"sw-proxy-target":(0,ar.buildUrl)(o,i),"sw-authorization":r},l=(0,ar.formatRequestBody)(s,n,c);return{headers:a,body:l,method:t}}});var In=O(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.formatRequestBody=de.buildUrl=de.createFormData=de.setDefaultContentTypeHeader=de.deleteHeaderCaseInsensitive=de.getHeaderCaseInsensitive=de.extractResponseHeaders=de.getMediaType=de.getHttpMethod=de.makeHttpRequest=de.MediaType=de.isReadableStreamBody=de.HTTP_STREAM_REQUEST_BODY_SUPPORTED=de.CONTENT_TYPE_HEADER=void 0;de.supportsRequestStreamBody=rN;var xu=ja(),Zm=Da(),qa=Kr(),Qm=Xm();de.CONTENT_TYPE_HEADER="content-type";de.HTTP_STREAM_REQUEST_BODY_SUPPORTED=!0;var tN=o=>typeof ReadableStream<"u"&&o instanceof ReadableStream;de.isReadableStreamBody=tN;var is;function rN(){if(is!==void 0)return is;if(globalThis.Deno!==void 0)return is=!0;try{let o=!1,t=new Request("https://localhost/",{method:"POST",body:new ReadableStream,get duplex(){return o=!0,"half"}}).headers.has("content-type");is=o&&!t}catch{is=!1}return is}var jt;(function(o){o.JSON="application/json",o.URL_ENCODED="application/x-www-form-urlencoded",o.UNSUPPORTED=""})(jt||(de.MediaType=jt={}));var nN="elements-vendor-processing-time",oN=async(o,t,r,e,n,i,s,c,u,a,l,d)=>{try{o=o.trim();let f,h;if(s!==void 0?r&&(0,de.deleteHeaderCaseInsensitive)(r,de.CONTENT_TYPE_HEADER):(t===qa.HttpMethod.POST||t===qa.HttpMethod.PUT||t===qa.HttpMethod.PATCH)&&(r?(0,de.getHeaderCaseInsensitive)(r,de.CONTENT_TYPE_HEADER)||(r[de.CONTENT_TYPE_HEADER]=jt.JSON):r={[de.CONTENT_TYPE_HEADER]:jt.JSON}),i)if(i.url&&i.authToken&&i.version){let v=Date.now(),b=await(0,Qm.buildProxyRequestForHttpRequest)(o,t,i,r,e,n,s);f=await fetch(i.url,{method:b.method,headers:b.headers,body:b.body,signal:c?AbortSignal.timeout(c):void 0,...(0,de.isReadableStreamBody)(b.body)?{duplex:"half"}:{}}),h=Date.now()-v}else throw new Error(`Invalid proxy settings: ${JSON.stringify(i)}`);else{let v=Date.now(),b=(0,de.formatRequestBody)(n,r,s);f=await fetch(d?o:(0,de.buildUrl)(o,e),{method:t,headers:r,body:b,signal:c?AbortSignal.timeout(c):void 0,...(0,de.isReadableStreamBody)(b)?{duplex:"half"}:{}}),h=Date.now()-v}let _={method:t,url:o,headers:u?(0,Zm.sanitizeSecrets)(r??{}):Zm.REDACTED_STRING,queryParameters:(0,Zm.sanitizeSecrets)(e??{}),body:n,multipartFormData:s?.map(v=>({...v,value:typeof v.value=="string"?v.value:"[Binary Data]"}))},m=await _N(f,_,h,i,a,l);return{success:m.ok,data:m,error:m.ok?void 0:new Error(`HTTP Status: ${m.statusCode}${m.statusText?` - ${m.statusText}`:""}`)}}catch(f){let h;return(0,xu.isError)(f)&&f.name==="TimeoutError"?h=new Error(`Request timed out after ${c}ms!`):h=(0,xu.isError)(f)?f:new Error((0,xu.getErrorMessage)(f)),{success:!1,data:void 0,error:h}}};de.makeHttpRequest=oN;var iN=o=>{if(typeof o!="string"||!o.trim())throw new Error(`Invalid http method received: ${o}`);let t=qa.HttpMethod[o.toUpperCase()];if(!t){let r=Array.from(new Set(Object.values(qa.HttpMethod))).join(", ");throw new Error(`Invalid HTTP method received: ${o}. Supported methods are: ${r}`)}return t};de.getHttpMethod=iN;var sN=o=>{if(!o)return jt.UNSUPPORTED;let t;if(typeof o.get=="function"&&typeof o.has=="function")t=o.get(de.CONTENT_TYPE_HEADER)?.toLowerCase();else{let r=(0,de.getHeaderCaseInsensitive)(o,de.CONTENT_TYPE_HEADER);r&&(t=r.toLowerCase())}return t?.startsWith("application/")&&t?.includes("json")?jt.JSON:t?.includes(jt.URL_ENCODED)?jt.URL_ENCODED:jt.UNSUPPORTED};de.getMediaType=sN;var aN=o=>{let t={};for(let[e,n]of o.headers.entries())e.toLowerCase()!=="set-cookie"&&(t[e]=n);return(typeof o.headers.getSetCookie=="function"?o.headers.getSetCookie():[]).forEach((e,n)=>{let i=n===0?"set-cookie":`set-cookie-${n}`;t[i]=e}),t};de.extractResponseHeaders=aN;var cN=(o,t)=>{if(!o)return;let r=Object.keys(o).find(e=>e.toLowerCase()===t.toLowerCase());return r?o[r]:void 0};de.getHeaderCaseInsensitive=cN;var uN=(o,t)=>{if(!o)return;let r=Object.keys(o).find(e=>e.toLowerCase()===t.toLowerCase());r&&delete o[r]};de.deleteHeaderCaseInsensitive=uN;var lN=(o,t=jt.JSON)=>{o.headers||(o.headers={}),(0,de.getHeaderCaseInsensitive)(o.headers,de.CONTENT_TYPE_HEADER)||(o.headers[de.CONTENT_TYPE_HEADER]=t)};de.setDefaultContentTypeHeader=lN;var dN=(o,t)=>{if(typeof t.value=="string"&&!t.contentType){o.append(t.name,t.value);return}let r=t.value instanceof Blob?t.value:new Blob([t.value],{type:t.contentType}),e=t.filename?.trim()?t.filename:void 0;e?o.append(t.name,r,e):o.append(t.name,r)},fN=o=>{let t=new FormData;for(let r of o)dN(t,r);return t};de.createFormData=fN;var pN=(o,t)=>{let[r,e]=o.split("?"),n=new URLSearchParams(e||"");return t&&Object.keys(t).length>0&&Object.entries(t).forEach(([s,c])=>{n.append(s,c)}),n.toString()?`${encodeURI(r)}?${n.toString()}`:encodeURI(r)};de.buildUrl=pN;var hN=(o,t,r)=>{if(r!==void 0)return(0,de.createFormData)(r);if(!o)return;if(o instanceof Uint8Array||(0,de.isReadableStreamBody)(o))return o;switch((0,de.getMediaType)(t)){case jt.URL_ENCODED:return new URLSearchParams(o);case jt.JSON:return JSON.stringify(o);default:return o.toString()}};de.formatRequestBody=hN;var _N=async(o,t,r,e,n,i)=>{let s={},c;e?(s=(0,Qm.extractProxyResponseHeaders)(e,o),c=(0,Qm.extractProxyResponseStatus)(e,o)):s=(0,de.extractResponseHeaders)(o);let u=(0,de.getHeaderCaseInsensitive)(s,nN),a=u?Number(u):r,l=c?.code??o.status,d=c?l>=200&&l<300:o.ok,f=await mN(o,o.headers,n,i===!0&&d),h={method:t.method,url:t.url,headers:t.headers,query:t.queryParameters,body:t.body,multipartFormData:t.multipartFormData};return{statusCode:l,statusText:c?.text??o.statusText,headers:s,ok:d,request:h,content:f,vendorProcessingTimeMs:a}},mN=async(o,t,r,e)=>{let n=(0,de.getMediaType)(t);try{if(r){if(e&&o.body)return o.body;let u=await o.arrayBuffer();return new Uint8Array(u)}let i=t.get("content-disposition")??"",s=t.get("content-type")??"";if(!bN(s)&&(i.toLowerCase().includes("attachment")||vN(s))){if(e&&o.body)return o.body;let u=await o.arrayBuffer();return new Uint8Array(u)}let c=await o.text();switch(n){case jt.JSON:try{return JSON.parse(c)}catch(u){return console.warn("Failed to parse JSON response, returning as text:",u),c}case jt.URL_ENCODED:if(c){let u=new URLSearchParams(c);return Object.fromEntries(u.entries())}return c;default:return c}}catch(i){console.error("Error reading response content:",i);let s=(0,xu.getErrorMessage)(i);throw new Error(`Error reading response content: [${n}] - ${s}`)}},vN=o=>{let t=o.toLowerCase();return["application/octet-stream","application/pdf","application/zip","image/","audio/","video/","application/vnd.","application/x-tar","application/gzip"].some(e=>t.startsWith(e))},yN=["application/json","application/xml","text/xml","text/csv","text/plain","application/atom+xml","application/rss+xml"],bN=o=>{if(!o)return!1;let t=o.toLowerCase(),r=t.split(";")[0].trim();return(r.startsWith("application/")||r.startsWith("text/"))&&(r.endsWith("+json")||r.endsWith("+xml"))?!0:yN.some(e=>t.startsWith(e))}});var Fa=O(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.BackoffStrategy=void 0;var T0;(function(o){o.CONSTANT="constant",o.LINEAR="linear",o.EXPONENTIAL="exponential"})(T0||(Ru.BackoffStrategy=T0={}))});var rv=O(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.HttpRetryPolicy=void 0;var ev=Fa(),gN=Kr(),wN=In(),tv=class o{static normalizeRetryConfig(t){return{...t,methods:t.methods&&t.methods.length>0?t.methods:[gN.HttpMethod.GET]}}static getRetryDelays(t){let r=[];for(let e=1;e<=t.maxRetries;e++){let n=o.calculateDelay(t,e);r.push(n)}return r}static shouldRetry(t,r){if(r.attemptNumber>t.maxRetries)return{shouldRetry:!1,delayMs:0,reason:`Maximum retry attempts (${t.maxRetries}) exceeded`};if(r.response){let e=r.response.statusCode;return t.statusCodes.includes(e)?r.retryAfterMsFromHeader!==void 0?{shouldRetry:!0,delayMs:r.retryAfterMsFromHeader,reason:`Retrying due to status code ${e} with Retry-After header`}:{shouldRetry:!0,delayMs:o.calculateDelay(t,r.attemptNumber),reason:`Retrying due to status code ${e}`}:{shouldRetry:!1,delayMs:0,reason:`Status code ${e} is not retryable`}}return t.networkErrors&&r.error&&o.isNetworkError(r.error)?{shouldRetry:!0,delayMs:o.calculateDelay(t,r.attemptNumber),reason:`Retrying due to network error: ${r.error.message}`}:{shouldRetry:!1,delayMs:0,reason:`Error is not retryable: ${r.error?.message||"Unknown error"}`}}static calculateDelay(t,r){let{backoff:e}=t,n;switch(e.strategy){case ev.BackoffStrategy.CONSTANT:n=t.delayMs;break;case ev.BackoffStrategy.LINEAR:n=t.delayMs*r;break;case ev.BackoffStrategy.EXPONENTIAL:let i=e.multiplier||2;n=t.delayMs*Math.pow(i,r-1);break;default:n=t.delayMs}return e.maxDelayMs&&n>e.maxDelayMs&&(n=e.maxDelayMs),n}static extractRetryAfterDelay(t){let r=(0,wN.getHeaderCaseInsensitive)(t,"retry-after");if(!r)return;let e=r.trim(),n=parseInt(e,10);if(!isNaN(n)&&n>=0)return n*1e3;let i=new Date(e);if(!isNaN(i.getTime())){let s=Date.now(),c=i.getTime()-s;return c>0?c:void 0}}static isNetworkError(t){let r=["ECONNRESET","ECONNREFUSED","ENOTFOUND","ETIMEDOUT","fetch failed","network error","timeout","aborted"],e=t.message.toLowerCase();return r.some(n=>e.includes(n.toLowerCase()))}};Mu.HttpRetryPolicy=tv});var ui=O(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.makeHttpRequestWithRetry=void 0;var Cu=In(),ju=rv(),EN=async(o,t,r,e,n,i,s,c,u,a,l,d,f,h)=>{if(!u)return(0,Cu.makeHttpRequest)(o,t,r,e,n,i,s,c,l,d,f,h);if((0,Cu.isReadableStreamBody)(n))return a?.debug("[Retry] Request body is a stream and cannot be replayed; sending without retry."),(0,Cu.makeHttpRequest)(o,t,r,e,n,i,s,c,l,d,f,h);a?.debug(`[Retry] Method: ${t}, RetryConfig provided: ${JSON.stringify(u)}`);let _=ju.HttpRetryPolicy.normalizeRetryConfig(u),m=0,v=0,b=[],g=[];for(;;)try{m++;let w=await(0,Cu.makeHttpRequest)(o,t,r,e,n,i,s,c,l,d,f,h);if(w.success){if(m>1&&w.data){let k={retryCount:m-1,retryReasons:b,failedStatusCodes:g.length>0?g:void 0};w.data.retryInfo=k}return w}let T={attemptNumber:m,error:w.error,response:w.data?{statusCode:w.data.statusCode,headers:w.data.headers||{}}:void 0,retryAfterMsFromHeader:w.data?ju.HttpRetryPolicy.extractRetryAfterDelay(w.data.headers||{}):void 0,totalDelayMs:v},P=ju.HttpRetryPolicy.shouldRetry(_,T);if(!P.shouldRetry){if(a?.debug(`[Retry] Not retrying: ${P.reason}`),m>1&&w.data){let k={retryCount:m-1,retryReasons:b,failedStatusCodes:g.length>0?g:void 0};w.data.retryInfo=k}return w}b.push(P.reason),w.data?.statusCode&&g.push(w.data.statusCode),P.delayMs>0&&(await new Promise(k=>setTimeout(k,P.delayMs)),v+=P.delayMs),a?.debug(`[Retry] Retrying in ${P.delayMs}ms: ${P.reason}: attempt ${m}`)}catch(w){a?.error(`Error while making HTTP request attempt ${m}: ${w}`);let T={attemptNumber:m,error:w,totalDelayMs:v},P=ju.HttpRetryPolicy.shouldRetry(_,T);if(!P.shouldRetry)return a?.debug(`[Retry] Not retrying after exception: ${P.reason}`),{success:!1,error:w};b.push(P.reason),P.delayMs>0&&(await new Promise(k=>setTimeout(k,P.delayMs)),v+=P.delayMs),a?.debug(`[Retry] Retrying in ${P.delayMs}ms: ${P.reason}: attempt ${m}`)}};Nu.makeHttpRequestWithRetry=EN});var ov=O(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.HttpRequestActivity=void 0;var S0=si(),TN=ai(),SN=ui(),ON=Kr(),O0=In(),nv=class extends TN.ActivityBase{constructor(t,r,e){super(r),this.type=S0.ActivityType.HttpRequest,this.name=S0.ActivityType.HttpRequest,this.properties=t.properties,this.name=e||this.name}async execute(){this.logger.debug(`[${this.name}] Making HTTP request to ${this.properties.url} with method ${this.properties.method}`),(0,O0.setDefaultContentTypeHeader)(this.properties);let t=this.shouldEnableRetry(),r;return t&&this.properties.retryConfig?r=await(0,SN.makeHttpRequestWithRetry)(this.properties.url,this.properties.method,this.properties.headers,this.properties.queryParameters,this.properties.body,this.properties.proxySettings,this.properties.multipartFormData,this.properties.timeoutMs,this.properties.retryConfig,this.logger,this.properties.verboseLoggingEnabled,void 0,this.properties.streamFileResponse):r=await(0,O0.makeHttpRequest)(this.properties.url,this.properties.method,this.properties.headers,this.properties.queryParameters,this.properties.body,this.properties.proxySettings,this.properties.multipartFormData,this.properties.timeoutMs,this.properties.verboseLoggingEnabled,void 0,this.properties.streamFileResponse),{success:r.success,data:r.data,error:r.error}}shouldEnableRetry(){return this.properties.method===ON.HttpMethod.GET}};Du.HttpRequestActivity=nv});var P0=O(k0=>{"use strict";Object.defineProperty(k0,"__esModule",{value:!0})});var I0=O(A0=>{"use strict";Object.defineProperty(A0,"__esModule",{value:!0})});var x0=O(xr=>{"use strict";var kN=xr&&xr.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),Wa=xr&&xr.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&kN(t,o,r)};Object.defineProperty(xr,"__esModule",{value:!0});Wa(Kr(),xr);Wa(P0(),xr);Wa(I0(),xr);Wa(Gm(),xr);Wa(Fa(),xr)});var iv=O(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.resolveUrlWithParams=ss.sanitizeEndpoint=void 0;var PN=o=>o?.replace(/^\/+/,"")?.replace(/\/+/g,"/");ss.sanitizeEndpoint=PN;var AN=/\{([a-zA-Z0-9_-]+)\}/g,IN=(o,t)=>!o||!t?o:o.replace(AN,(r,e)=>{let n=t[e];if(n===void 0)throw new Error(`Missing required parameter: ${e}`);return encodeURIComponent(n)});ss.resolveUrlWithParams=IN});var j0=O(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.isFileResponse=xN;as.extractFileNameFromHeaders=C0;as.getExtensionFromMimeType=cv;as.generateDownloadFileName=CN;var av=In();function xN(o){if(!o)return!1;if(((0,av.getHeaderCaseInsensitive)(o,"content-disposition")??"").toLowerCase().includes("attachment"))return!0;let r=(0,av.getHeaderCaseInsensitive)(o,"content-type")??"",e=["application/octet-stream","application/pdf","application/zip","image/","audio/","video/","application/vnd.","application/x-tar","application/gzip"],n=r.toLowerCase();return e.some(i=>n.startsWith(i))}function C0(o){if(!o)return;let t=(0,av.getHeaderCaseInsensitive)(o,"content-disposition")??"";if(!t)return;let r=t.match(/filename\*\s*=\s*([^;]+)/i);if(r){let i=RN(r[1].trim());if(i)return sv(i)}let e=t.match(/filename\s*=\s*"([^"]+)"/i);if(e)return sv(R0(e[1]));let n=t.match(/filename\s*=\s*([^;\s]+)/i);if(n)return sv(R0(n[1].trim()))}function RN(o){let t=o.replace(/^["']|["']$/g,""),r=t.match(/^([^']*)'[^']*'(.*)$/);try{if(r){let e=r[1]||"utf-8";return M0(r[2],e)}return M0(t,"utf-8")}catch{return}}function R0(o){return/=\?([^?]+)\?([bBqQ])\?([^?]*)\?=/g.test(o)?o.replace(/\?=\s+=\?/g,"?==?").replace(/=\?([^?]+)\?([bBqQ])\?([^?]*)\?=/g,(e,n,i,s)=>{try{let c;if(i.toUpperCase()==="B")c=MN(s);else{let u=s.replace(/_/g," ").replace(/=([0-9A-Fa-f]{2})/g,(a,l)=>String.fromCharCode(parseInt(l,16)));c=Uint8Array.from(u,a=>a.charCodeAt(0))}return new TextDecoder(n).decode(c)}catch{return e}}):o}function M0(o,t){let r=[];for(let e=0;e<o.length;e++){let n=o[e];n==="%"&&/^[0-9A-Fa-f]{2}$/.test(o.slice(e+1,e+3))?(r.push(parseInt(o.slice(e+1,e+3),16)),e+=2):r.push(n.charCodeAt(0))}return new TextDecoder(t).decode(Uint8Array.from(r))}function MN(o){let t=atob(o.replace(/\s+/g,"")),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r}function sv(o){return o.replace(/[\\/\x00-\x1f\x7f]/g,"_").trim()}function cv(o){if(!o)return;let t=o.toLowerCase().split(";")[0].trim();return{"application/pdf":"pdf","application/zip":"zip","application/gzip":"gz","application/x-tar":"tar","application/rtf":"rtf","application/json":"json","application/xml":"xml","application/octet-stream":"bin","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/vnd.ms-excel":"xls","application/msword":"doc","image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/tiff":"tiff","image/svg+xml":"svg","image/webp":"webp","text/plain":"txt","text/csv":"csv","text/html":"html","text/xml":"xml","audio/mpeg":"mp3","audio/wav":"wav","video/mp4":"mp4","message/rfc822":"eml"}[t]}function CN(o,t,r,e){if(e&&e.trim().length>0){let c=e.trim();if(/\.[a-zA-Z0-9]{1,10}$/.test(c))return c;let u=cv(t);return u?`${c}.${u}`:c}let n=C0(r);if(n)return n;let i=cv(t),s=Date.now();return i?`${o}-${s}.${i}`:`${o}-${s}`}});var N0=O(cr=>{"use strict";var jN=cr&&cr.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),cs=cr&&cr.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&jN(t,o,r)};Object.defineProperty(cr,"__esModule",{value:!0});cs(In(),cr);cs(Xm(),cr);cs(iv(),cr);cs(ui(),cr);cs(rv(),cr);cs(j0(),cr)});var D0=O(xn=>{"use strict";var NN=xn&&xn.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),uv=xn&&xn.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&NN(t,o,r)};Object.defineProperty(xn,"__esModule",{value:!0});uv(ov(),xn);uv(x0(),xn);uv(N0(),xn)});var L0=O(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.ObjectTransformer=void 0;var lv=class o{static flatten(t){let r={};for(let[e,n]of Object.entries(t))o.populateNestedStructure(r,e,n);return r}static populateNestedStructure(t,r,e){let n=r.split("."),i=t;for(let s=0;s<n.length;s++){let c=n[s],u=s===n.length-1,{baseKey:a,isIndexedArray:l,arrayIndex:d,isWildcardArray:f}=o.extractKeyDetails(c);if(l)i=o.getOrCreateIndexedArray(i,a,d);else if(f){let h=n.slice(s+1).join(".");o.handleWildcardArray(i,a,h,e);return}else{if(u){i[a]=e;return}i=o.getOrCreateObject(i,a)}}}static extractKeyDetails(t){let r=t.match(/(.*?)\[(\d+)]$/),e=!!r,n=t.endsWith("[*]");return{baseKey:e?r[1]:n?t.slice(0,-3):t,isIndexedArray:e,arrayIndex:e?parseInt(r[2],10):void 0,isWildcardArray:n}}static getOrCreateIndexedArray(t,r,e){Array.isArray(t[r])||(t[r]=[]);let n=t[r];for(;n.length<=e;)n.push({});return n[e]}static handleWildcardArray(t,r,e,n){if(Array.isArray(n)){t[r]=n;return}Array.isArray(t[r])||(t[r]=[{}]),t[r].forEach(s=>{e?o.populateNestedStructure(s,e,n):o.deepMerge(s,n)})}static deepMerge(t,r){for(let e of Object.keys(r))typeof r[e]=="object"&&r[e]!==null?((typeof t[e]!="object"||t[e]===null)&&(t[e]=Array.isArray(r[e])?[]:{}),o.deepMerge(t[e],r[e])):t[e]=r[e]}static getOrCreateObject(t,r){return(!t[r]||typeof t[r]!="object")&&(t[r]={}),t[r]}};Lu.ObjectTransformer=lv});var qu=O(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.ORCHESTRATOR_CONNECTOR_KEY=ur.MULTIPART_FORM_DATA=ur.APPLICATION_JSON=ur.CONTENT_TYPE_LOWER_CASE=ur.CONTENT_TYPE=void 0;ur.CONTENT_TYPE="Content-Type";ur.CONTENT_TYPE_LOWER_CASE="content-type";ur.APPLICATION_JSON="application/json";ur.MULTIPART_FORM_DATA="multipart/form-data";ur.ORCHESTRATOR_CONNECTOR_KEY="uipath-uipath-orchestrator"});var Fu=O(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.maskString=DN;li.trimString=LN;li.base64UrlEncode=qN;li.base64Encode=FN;li.base64UrlDecode=WN;function DN(o,t=10,r=80){if(!o)return o;if(typeof o!="string")throw new Error("Input must be a string");if(o.length<=t)return o;r=Math.max(0,Math.min(100,r));let e=o.slice(0,t),n=o.slice(t),i=Math.floor(n.length*r/100),s=n.length-i,c=Math.ceil(n.length/s),u="";for(let a=0;a<n.length;a++)u+=a%c===0&&a<s*c?n[a]:"*";return`${e}${u}`}function LN(o,t,r=!0){if(!o)return o;if(typeof o!="string")throw new Error("Input must be a string");return o.length<=t?o:(t<=3&&(r=!1),o.slice(0,t-(r?3:0))+(r?"...":""))}function qN(o){let t=new TextEncoder().encode(o),r=Array.from(t,n=>String.fromCharCode(n)).join("");return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function FN(o){let t=new TextEncoder().encode(o),r=Array.from(t,e=>String.fromCharCode(e)).join("");return btoa(r)}function WN(o){let t=o.replace(/-/g,"+").replace(/_/g,"/");for(;t.length%4;)t+="=";let r=atob(t),e=new Uint8Array(r.length);for(let n=0;n<r.length;n++)e[n]=r.charCodeAt(n);return new TextDecoder("utf-8").decode(e)}});var F0=O(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.cleanPaginationHeaders=we.fetchAllPaginatedData=we.isPaginationCallRequired=we.standardizedRequestObject=we.constructMultipartFormData=we.isMultipartRequest=we.toStandardHttpResponse=we.extractPageDetailsIfPresent=we.toIntsvcApiResponse=we.getClampedWaitTime=we.isProcessExecutionActivity=we.ASYNC_STATUS_MAX_WAIT_TIME=we.ASYNC_STATUS_MIN_WAIT_TIME=void 0;var dv=Kr(),UN=ui(),q0=qu(),$N=Fu();we.ASYNC_STATUS_MIN_WAIT_TIME=6e4;we.ASYNC_STATUS_MAX_WAIT_TIME=18e4;var BN=(o,t)=>{if(o&&o.headers&&o.statusCode==202&&t=="async"){let r=o.headers,e=r["x-uipath-process-execution-mode"],n=r["x-uipath-process-execution-result-callback-url"];return!!(e==="WAIT_FOR_COMPLETION"&&n)}return!1};we.isProcessExecutionActivity=BN;var HN=o=>{let t=Number(o),r=Number.isFinite(t)&&t>0?t:we.ASYNC_STATUS_MIN_WAIT_TIME;return Math.min(r,we.ASYNC_STATUS_MAX_WAIT_TIME)};we.getClampedWaitTime=HN;var VN=async(o,t)=>{if(t.error)return t;if(!t.data)return{success:!1,data:t.data,error:new Error("No response received from IS API")};if(o&&t.success)return(0,we.toStandardHttpResponse)(t.data);let r=(0,we.extractPageDetailsIfPresent)(t.data);return r?{...t,data:{...t.data,page:r}}:t};we.toIntsvcApiResponse=VN;var zN=o=>{if(!o?.headers)return;let t=o.headers,r=Object.keys(t).find(c=>c.toLowerCase()==="elements-has-more"),e=Object.keys(t).find(c=>c.toLowerCase()==="elements-next-page-token"),n=r?t[r]:void 0,i=e?t[e]:void 0;if(!n||!i||!Array.isArray(o.content))return;let s=n.toLowerCase()==="true";if(!XN(i))return{hasMorePages:s,nextPageToken:i}};we.extractPageDetailsIfPresent=zN;var YN=async o=>{if(!o)return{success:!1,data:o,error:new Error("No response received from IS Proxy API")};let t=o.content,r=t.code,e=t.body,n=r>=200&&r<300,i={statusCode:r,isVendorError:!n,statusText:t.statusText||"",headers:t.headers,ok:n,request:(0,we.standardizedRequestObject)(t.request)??{},content:e??t.rawStringBody,vendorProcessingTimeMs:o.vendorProcessingTimeMs},s=i.content,c="";return typeof s=="string"?c=s:s&&typeof s=="object"&&"message"in s&&(c=s.message),{success:n,data:i,error:n?void 0:new Error(c?`HTTP Status: ${r} - ${c}`:`HTTP Status: ${r}`)}};we.toStandardHttpResponse=YN;var KN=(o,t)=>{if(o&&o.length>0)return!0;if(t){let r=Object.keys(t).find(e=>e.toLowerCase()===q0.CONTENT_TYPE_LOWER_CASE);if(r&&t[r].toLowerCase().includes(q0.MULTIPART_FORM_DATA))return!0}return!1};we.isMultipartRequest=KN;var JN="body",GN=(o,t)=>{let r=[];if(o&&o.length>0){let e=o.some(n=>n.dataType==="string");for(let n of o)if(n.dataType==="string")r.push({name:n.name,value:JSON.stringify(t)});else if(n.dataType==="file"&&n.fileContent){let i=new Blob([n.fileContent],{type:n.contentType||"application/octet-stream"});r.push({name:n.name,value:i,filename:n.fileName||"file",contentType:n.contentType||"application/octet-stream"})}return!e&&t&&Object.keys(t).length>0&&r.unshift({name:JN,value:JSON.stringify(t)}),r}return r};we.constructMultipartFormData=GN;var XN=o=>{try{let t=(0,$N.base64UrlDecode)(o);return JSON.parse(t)?.providerNextPage?.toUpperCase()==="DONE"}catch(t){return console.warn(`Error decoding pagination token: ${o}`,{token:o,error:t}),!1}},ZN=o=>{if(!o)return;let t={method:o.methodType,url:o.url};return o.headers!==void 0&&(t.headers=o.headers),o.query!==void 0&&(t.query=o.query),o.body!==void 0&&(t.body=o.body),o.multipartFormData!==void 0&&(t.multipartFormData=o.multipartFormData),t};we.standardizedRequestObject=ZN;var QN=(o,t,r)=>!(!t||r!==dv.HttpMethod.GET||!((0,we.extractPageDetailsIfPresent)(o)?.hasMorePages||!1)||!Array.isArray(o.content)||o.content.length>=t);we.isPaginationCallRequired=QN;var eD=async(o,t,r,e={},n=dv.HttpMethod.GET,i={},s=!1,c=void 0,u=3e4,a=void 0,l)=>{let d=(0,we.extractPageDetailsIfPresent)(t),f=d?.hasMorePages||!1,h=d?.nextPageToken,_=Array.isArray(t.content)?t.content:[],m=1,v={success:!0,data:{responseData:t,hasMorePages:f,nextPageToken:h}};for(l.debug(`Starting paginated request with maxRecords: ${r}`);f&&_.length<r;){if(m++,l.debug(`Fetching page ${m}, current records: ${_.length}, nextPageToken: ${h?"present":"none"}`),v=await rD(o,h,e,n,i,s,c,u,a,l),!v.success||!v.data)return l.error(`Pagination request failed on page ${m}: ${v.error?.message||"Unknown error"}`),l.warn(`Returning ${_.length} already fetched records despite pagination error`),{success:!1,data:t,error:v.error||new Error("Pagination request failed")};let{responseData:g,hasMorePages:w,nextPageToken:T}=v.data,P=Array.isArray(g.content)?g.content:[];if(_.push(...P),l.info(`Page ${m} returned ${P.length} records, total so far: ${_.length}, hasMorePages: ${w}, nextPageToken: ${T?"present":"none"}`),f=w&&!!T,h=T,_.length>=r){l.debug(`Reached maxRecords limit (${r}), stopping pagination after ${m} pages`);break}if(!f){l.debug(`No more pages available, stopping pagination after ${m} pages`);break}}l.debug(`Pagination completed. Total pages: ${m}, Total records: ${_.length}`);let b=v.data?.responseData;return b?(b.content=_,Array.isArray(b.content)&&b.content.length>r&&(b.content=b.content.slice(0,r)),b.headers=(0,we.cleanPaginationHeaders)(b.headers),{success:!0,data:b,error:void 0}):{success:!1,data:t,error:v.error||new Error("Pagination request failed")}};we.fetchAllPaginatedData=eD;var tD=o=>{let t={...o??{}};return Object.keys(t).filter(e=>{let n=e.toLowerCase();return n==="elements-has-more"||n==="elements-next-page-token"}).forEach(e=>{delete t[e]}),t};we.cleanPaginationHeaders=tD;var rD=async(o,t,r={},e=dv.HttpMethod.GET,n={},i=!1,s=void 0,c=3e4,u=void 0,a)=>{let l={...r,...t&&{nextPage:t}},d=await(0,UN.makeHttpRequestWithRetry)(o,e,n,l,void 0,i?s:void 0,void 0,c,u,a);if(!d.success||!d.data)return{success:!1,data:void 0,error:d.error||new Error("Page request failed")};let f=(0,we.extractPageDetailsIfPresent)(d.data),h=f?.hasMorePages||!1,_=f?.nextPageToken;return{success:!0,data:{responseData:d.data,hasMorePages:h,nextPageToken:_}}}});var B0=O(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.SecretRegistry=Rr.MAX_TRACKED_CREDENTIALS=Rr.MIN_SECRET_LENGTH=void 0;var Wu=Da();Rr.MIN_SECRET_LENGTH=6;var nD=["undefined","false","true","null",Wu.REDACTED_STRING.toLowerCase()];Rr.MAX_TRACKED_CREDENTIALS=256;var oD=20,iD=10,sD=o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),pv=o=>o.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),aD=o=>pv(o).replace(/"/g,"""),U0=o=>pv(o).replace(/'/g,"'"),cD=o=>U0(o).replace(/"/g,"""),W0=o=>{let t=JSON.stringify(o);return t.slice(1,t.length-1)},uD=o=>new URLSearchParams({v:o}).toString().slice(2),lD=o=>o.replace(/%[0-9A-Fa-f]{2}/g,t=>t.toLowerCase()),dD=o=>o.replace(/[^!-~]|["#<>?`{}]/gu,t=>encodeURIComponent(t)),$0=o=>{if(typeof Buffer<"u")return Buffer.from(o).toString("base64");let t="";for(let r of o)t+=String.fromCharCode(r);return btoa(t)},fD=o=>$0(new TextEncoder().encode(o)),pD=o=>{let t=new TextEncoder().encode(o),r=[];for(let e=0;e<3;e++){let n=new Uint8Array(e+t.length);n.set(t,e);let i=$0(n).replace(/=+$/,""),s=n.length,c=Math.floor(s/3)*4+[0,1,2][s%3];r.push(i.slice([0,2,3][e],c))}return r},fv=class{constructor(){this.rawValues=new Set,this.searchValues=new Set,this.matcherStale=!0,this.credentialCount=0,this.censor=Wu.REDACTED_STRING,this.shortestSearchValue=Number.POSITIVE_INFINITY}register(t){return this.rawValues.has(t)?!1:(this.rawValues.add(t),this.addSearchValue(t),this.addEncodings(t),this.addParseErrorFragment(t),this.addBase64Cores(t),!0)}addBase64Cores(t){let r;try{r=pD(t)}catch{return}for(let e of r)this.addEncodings(e)}addParseErrorFragment(t){if(t.length<=oD)return;let r=`"${t.slice(0,iD)}"...`;this.addSearchValue(r);try{this.addSearchValue(W0(r))}catch{}}addEncodings(t){let r=new Set([t]),e=[encodeURIComponent,uD,dD];for(let s of e)try{let c=s(t);r.add(c),r.add(lD(c))}catch{}let n=[pv,aD,U0,cD];for(let s of n)try{r.add(s(t))}catch{}let i=!1;for(let s of r){i=this.addSearchValue(s)||i;try{i=this.addSearchValue(W0(s))||i}catch{}}return i}registerCredential(t,r){if(r.length<Rr.MIN_SECRET_LENGTH)return"too-short";if(nD.includes(r.toLowerCase()))return"too-common";let e;if(t!==void 0&&t!=="")try{e=fD(`${t}:${r}`)}catch{}let n=this.rawValues.has(r),i=e===void 0||this.searchValues.has(e);if(n&&i)return"known";if(this.credentialCount>=Rr.MAX_TRACKED_CREDENTIALS)return"budget-full";let s=this.register(r),c=e!==void 0&&this.addEncodings(e);return!s&&!c?"known":(this.credentialCount++,"registered")}get isEmpty(){return this.searchValues.size===0}redactString(t){let r=this.ensureMatcher();if(r===void 0||t.length<this.shortestSearchValue)return t;let e=[];r.lastIndex=0;let n=r.exec(t);for(;n!==null;){let c=n.index,u=c+n[0].length,a=e[e.length-1];a&&c<=a[1]?a[1]=Math.max(a[1],u):e.push([c,u]),r.lastIndex=c+1,n=r.exec(t)}if(e.length===0)return t;let i="",s=0;for(let[c,u]of e)i+=t.slice(s,c)+this.censor,s=u;return i+t.slice(s)}redact(t){return this.isEmpty?t:this.walk(t,!1)}redactError(t){return this.isEmpty||!t||typeof t!="object"?t:this.walk(t,!0)}walk(t,r){let e=new Map,n=[],i,s=(c,u,a=!1)=>{if(typeof c=="string"){u(this.redactString(c));return}if(!c||typeof c!="object"){u(c);return}let l=e.get(c);if(l!==void 0){u(l);return}if(a||c instanceof Error){n.push(this.openError(c,u,e));return}if(c instanceof URL){let d=this.redactString(c.href);u(d===c.href?c:d);return}if(c instanceof String){let d=c.valueOf(),f=this.redactString(d);u(f===d?c:f);return}if(!Array.isArray(c)&&Object.prototype.toString.call(c)!=="[object Object]"){u(c);return}n.push(this.openContainer(c,u,e))};for(s(t,c=>{i=c},r);n.length>0;){let c=n[n.length-1];if(c.next>=c.keys.length){n.pop(),c.close();continue}let u=c.keys[c.next++];c.step(u,s)}return i}openContainer(t,r,e){let n=Array.isArray(t),i=t,s=n?new Array(t.length):{};e.set(t,s);let c=n?Object.keys(t).filter(a=>/^\d+$/.test(a)):Object.keys(t),u=!1;return{keys:c,next:0,step:(a,l)=>{let d;try{d=i[a]}catch{u=!0;return}let f=!n&&typeof a=="string"?this.redactString(a):a;u=u||f!==a,l(d,h=>{u=u||!Object.is(h,d),s[f]=h})},close:()=>{let a=u?s:t;e.set(t,a),r(a)}}}openError(t,r,e){let n=Object.getOwnPropertyDescriptors(t),i=Object.create(Object.getPrototypeOf(t));e.set(t,i);let s=!1;return{keys:Reflect.ownKeys(n),next:0,step:(c,u)=>{let a=n[c];if(!("value"in a)){s=!0;let d;try{d=t[c]}catch{delete n[c];return}u(d,f=>{n[c]={value:f,writable:!0,enumerable:a.enumerable,configurable:!0}});return}let l=a.value;u(l,d=>{Object.is(d,l)||(s=!0,n[c]={...a,value:d})})},close:()=>{Object.defineProperties(i,n);let c=s?i:t;e.set(t,c),r(c)}}}addSearchValue(t){return t.length<Rr.MIN_SECRET_LENGTH||this.searchValues.has(t)?!1:(this.searchValues.add(t),this.matcherStale=!0,!0)}ensureMatcher(){if(!this.matcherStale)return this.matcher;if(this.matcherStale=!1,this.searchValues.size===0){this.matcher=void 0,this.shortestSearchValue=Number.POSITIVE_INFINITY;return}let t=[...this.searchValues].sort((r,e)=>e.length-r.length);return this.matcher=new RegExp(t.map(sD).join("|"),"g"),this.shortestSearchValue=t[t.length-1].length,this.censor=t.some(r=>Wu.REDACTED_STRING.includes(r))?"":Wu.REDACTED_STRING,this.matcher}};Rr.SecretRegistry=fv});var H0=O(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.isRunningInBrowser=void 0;var hD=()=>{try{let o=globalThis;return typeof o.Deno<"u"?!1:typeof o.window<"u"&&o.window!==null&&typeof o.document<"u"&&o.document!==null||typeof o.WorkerGlobalScope=="function"&&o.self instanceof o.WorkerGlobalScope||typeof o.importScripts=="function"}catch{return!1}};Uu.isRunningInBrowser=hD});var V0=O($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.TimeDurationUtils=void 0;var hv=class{static parseIso8601Duration(t){let r=/^P(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+(?:\.\d+)?)S)?)?$/,e=t.match(r);if(!e)throw new Error(`Invalid ISO 8601 duration format: ${t}`);let n=parseInt(e[1]||"0"),i=parseInt(e[2]||"0"),s=parseInt(e[3]||"0"),c=parseFloat(e[4]||"0");return(n*86400+i*3600+s*60+c)*1e3}static parseDurationObject(t){let{days:r=0,hours:e=0,minutes:n=0,seconds:i=0,milliseconds:s=0}=t,c=isNaN(r)?0:r,u=isNaN(e)?0:e,a=isNaN(n)?0:n,l=isNaN(i)?0:i,d=isNaN(s)?0:s;return(c*86400+u*3600+a*60+l)*1e3+d}};$u.TimeDurationUtils=hv});var Bu=O(Yt=>{"use strict";var _D=Yt&&Yt.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),di=Yt&&Yt.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&_D(t,o,r)};Object.defineProperty(Yt,"__esModule",{value:!0});di(ja(),Yt);di(Da(),Yt);di(B0(),Yt);di(Fu(),Yt);di(H0(),Yt);di(ku(),Yt);di(V0(),Yt)});var mv=O(Jr=>{"use strict";var mD=Jr&&Jr.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),vD=Jr&&Jr.__setModuleDefault||(Object.create?function(o,t){Object.defineProperty(o,"default",{enumerable:!0,value:t})}:function(o,t){o.default=t}),yD=Jr&&Jr.__importStar||function(){var o=function(t){return o=Object.getOwnPropertyNames||function(r){var e=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[e.length]=n);return e},o(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var e=o(t),n=0;n<e.length;n++)e[n]!=="default"&&mD(r,t,e[n]);return vD(r,t),r}}();Object.defineProperty(Jr,"__esModule",{value:!0});Jr.OrchestratorUtils=void 0;var ft=Kr(),_v=In(),to=ui(),xt=ja(),Mr=qu(),bD=Fa(),us=Bu(),lr=class o{static isRunJobEndPoint(t,r){return t.includes(o.JOBS_ENDPOINT)&&r===ft.HttpMethod.POST}static isGetJobResultEndPoint(t,r){return t?.includes(o.JOBS_ENDPOINT)&&r==="GET"?new RegExp(`${o.JOBS_ENDPOINT}/[^/\\?#]+(?:\\?.*)?$`).test(t):!1}static async postProcessJobsEndpoint(t,r,e,n){if(!(0,xt.hasProperty)(r?.data?.content,"OutputFile"))return r;if(!(0,xt.hasProperty)(r?.data?.content,"OrganizationUnitId")){let u="No OrganizationUnitId found in the Orchestrator response";return n.error(u),{success:!1,error:new Error(u)}}let i=r?.data?.content.OrganizationUnitId,s=r?.data?.content.OutputFile,c=await o.extractOutputFileAndFetchContents(e,s,i,t,n);return c.success?(r.data.content.OutputArguments=c.data,delete r.data.content.OutputFile,r):{success:!1,error:c.error}}static validateAndExtractOutputFileUri(t){if(!t?.data?.content)return{success:!1,error:"Orchestrator response does not contain data"};let r=t.data.content;if(!(0,xt.hasProperty)(r,"BlobFileAccess"))return{success:!1,error:"Orchestrator response does not contain BlobFileAccess property: ${content}"};let e=r.BlobFileAccess;if(!(0,xt.hasProperty)(e,"Uri"))return{success:!1,error:`Orchestrator response does not contain Uri property in BlobFileAccess: ${e}`};let n=e.Uri;return!n||typeof n!="string"?{success:!1,error:`Orchestrator response does not contain valid URI: ${n}`}:{success:!0,uri:n}}static validateAndExtractContentFromOutputFileUriResponse(t){if(!t.success||!(0,xt.hasProperty)(t,"data"))return{success:!1,error:"Response is not successful or missing data: ${response}"};if(!(0,xt.hasProperty)(t.data,"content"))return{success:!1,error:"Response content is missing or not a string: ${response.data.content}"};let r=t.data.content;return r instanceof Uint8Array?r=new TextDecoder("utf-8").decode(r):r!==null&&typeof r=="object"&&(r=JSON.stringify(r)),typeof r!="string"?{success:!1,error:"Response content is missing or not a string: ${response.data.content}"}:{success:!0,content:r}}static parseJsonOrReturnOriginalObject(t){try{return JSON.parse(t)}catch{return t}}static getAttachmentRequestConfig(t,r,e,n){let i=t+o.ATTACHMENTS_ENDPOINT+"("+r+")",s={Authorization:`Bearer ${e}`,accept:Mr.APPLICATION_JSON,"X-UIPATH-OrganizationUnitId":n};return{requestUrl:i,headers:s}}static async extractOutputFileAndFetchContents(t,r,e,n,i){try{let{requestUrl:s,headers:c}=o.getAttachmentRequestConfig(t,r,n.accessToken,e),u=await(0,to.makeHttpRequestWithRetry)(s,ft.HttpMethod.GET,c,void 0,void 0,void 0,void 0,n.timeoutMs||3e4,o.DEFAULT_HTTP_RETRY_CONFIG,i);try{let a=o.validateAndExtractOutputFileUri(u);if(!a.success){let _=`Error while validating and extracting URI from Orchestrator response: ${a.error}`;return i.error(_),{success:!1,error:new Error(_)}}let l=a.uri,d=await(0,to.makeHttpRequestWithRetry)(l,ft.HttpMethod.GET,{[Mr.CONTENT_TYPE]:Mr.APPLICATION_JSON},void 0,void 0,void 0,void 0,n.timeoutMs||3e4,o.DEFAULT_HTTP_RETRY_CONFIG,i),f=o.validateAndExtractContentFromOutputFileUriResponse(d);if(f.success)return{success:!0,data:o.parseJsonOrReturnOriginalObject(f.content)};let h=`Error while extracting content from Orchestrator output file: ${f.error}`;return i.error(h),{success:!1,error:new Error(h)}}catch(a){let l=`Error requesting Orchestrator output file URI : ${(0,us.getErrorMessage)(a)}`;return i.error(l),{success:!1,error:new Error(l)}}}catch(s){let c=`Error while extracting content from Orchestrator output file: ${(0,us.getErrorMessage)(s)}`;return i.error(c),{success:!1,error:new Error(c)}}return{success:!1,error:new Error("Error while extracting content from Orchestrator output file")}}static async handleOversizedInputArguments(t,r,e,n){if(!t?.body)return;let i=t.body;if(!(0,xt.hasProperty)(i,"InputArguments"))return;let s=i.InputArguments,c=typeof s=="string"?s:JSON.stringify(s);if(c.length<o.MAX_ALLOWED_INPUT_ARGUMENTS_SIZE)return;let u=(0,xt.getNewGuid)();try{let{attachmentId:a,blobStorageUrl:l,uploadHeaders:d}=await o.createOrchestratorAttachmentAndGetUploadMetadata(t,r,u,e,n);e.debug(`[${n}] Uploading content to Azure Blob Storage: ${l}`);let h=new TextEncoder().encode(c);e.debug(`[${n}] Prepared content bytes for upload (${h.length} bytes)`);let _=await(0,to.makeHttpRequestWithRetry)(l,ft.HttpMethod.PUT,d,void 0,h,void 0,void 0,t.timeoutMs||3e4,o.DEFAULT_HTTP_RETRY_CONFIG,e,void 0,void 0,void 0,!0);if(!_.success){let m=`Failed to upload content to Azure Blob Storage: ${_.error?.message||"Unknown error"}`;throw e.error(`[${n}] ${m}`),new Error(m)}e.debug(`[${n}] Successfully uploaded content to Azure Blob Storage`),t.body={...i,InputFile:a},delete t.body.InputArguments}catch(a){e.error(`[${n}] Error processing large InputArguments: ${a}`);return}}static constructAttachmentUrl(t,r){if(!t)throw new Error("Base URL is required");if(!r)throw new Error("Connection ID is required");let e=[r,o.ATTACHMENTS_ENDPOINT].join("/");return`${t}/${e}`}static async createOrchestratorAttachmentAndGetUploadMetadata(t,r,e,n,i){try{let s=r+o.ATTACHMENTS_ENDPOINT,c={Name:e};n.debug(`[${i}] Creating attachment: ${e}`);let u={...t.headers},a=await(0,to.makeHttpRequestWithRetry)(s,ft.HttpMethod.POST,u,void 0,c,t.useProxyServer?t.proxySettings:void 0,void 0,t.timeoutMs||3e4,o.DEFAULT_HTTP_RETRY_CONFIG,n),l=o.validateAndExtractAttachmentMetadata(a,n,i);if(!l.success)throw l.error;return{attachmentId:l.data.attachmentId,blobStorageUrl:l.data.blobStorageUrl,uploadHeaders:l.data.uploadHeaders}}catch(s){throw n.error(`[${i}] Error in createOrchestratorAttachmentAndGetUploadMetadata: ${s}`),s}}static validateAndExtractAttachmentMetadata(t,r,e){if(!t.success||!t.data){let u=`Failed to create attachment: ${t.error?.message||"Unknown error"}`;return r.error(`[${e}] ${u}`),{success:!1,data:void 0,error:new Error(u)}}if(!(0,xt.hasProperty)(t.data,"content")){let u="Invalid attachment response: missing content";return r.error(`[${e}] ${u}`),{success:!1,data:void 0,error:new Error(u)}}let n=t.data.content;if(!(0,xt.hasProperty)(n,"Id")||!(0,xt.hasProperty)(n,"BlobFileAccess")||!(0,xt.hasProperty)(n.BlobFileAccess,"Uri")){let u="Invalid attachment response: missing Id or BlobFileAccess or Uri";return r.error(`[${e}] ${u}`),{success:!1,data:void 0,error:new Error(u)}}let i=n.Id,s=n.BlobFileAccess.Uri,c={};if((0,xt.hasProperty)(n.BlobFileAccess,"Headers")&&typeof n.BlobFileAccess.Headers=="object"){let u=n.BlobFileAccess.Headers;if((0,xt.hasProperty)(u,"Keys")&&(0,xt.hasProperty)(u,"Values")&&Array.isArray(u.Keys)&&Array.isArray(u.Values)){for(let a=0;a<u.Keys.length;a++)a<u.Values.length&&(c[u.Keys[a]]=u.Values[a]);r.debug(`[${e}] Extracted upload headers from BlobFileAccess Keys/Values: ${JSON.stringify(Object.keys(c))}`)}}return{success:!0,data:{attachmentId:i,blobStorageUrl:s,uploadHeaders:c},error:void 0}}static async uploadFileToBlob(t,r,e,n,i,s,c,u,a,l={}){let{encoding:d="byte-array"}=l,f=`${t}/${e}/${n}${o.ATTACHMENTS_ENDPOINT}`,h={Authorization:`Bearer ${r}`,[Mr.CONTENT_TYPE]:Mr.APPLICATION_JSON};a&&(h[o.ORCHESTRATOR_FOLDER_KEY]=a);let _=await(0,to.makeHttpRequestWithRetry)(f,ft.HttpMethod.POST,h,void 0,{Name:s},void 0,void 0,3e4,o.DEFAULT_HTTP_RETRY_CONFIG,u),m=o.validateAndExtractAttachmentMetadata(_,u,"uploadFileToBlob");if(!m.success||!m.data)throw m.error||new Error("Failed to create attachment record");let{attachmentId:v,blobStorageUrl:b,uploadHeaders:g}=m.data,w=await(0,_v.makeHttpRequest)(b,ft.HttpMethod.PUT,g,void 0,i,void 0,void 0,void 0,void 0,void 0,void 0,!0);if(!w.success)throw new Error(`Failed to upload file to blob storage: ${w.error?.message||"Unknown error"}`);return u.debug(`File uploaded to blob storage: ${v} (${s})`),{ID:v,FullName:s,MimeType:c,Metadata:{Size:i.byteLength,Encoding:d}}}static async downloadFileFromBlob(t,r,e,n,i,s,c){let u=`${t}/${e}/${n}${o.ATTACHMENTS_ENDPOINT}(${i})`,a={Authorization:`Bearer ${r}`,accept:Mr.APPLICATION_JSON};c&&(a[o.ORCHESTRATOR_FOLDER_KEY]=c);let l=await(0,to.makeHttpRequestWithRetry)(u,ft.HttpMethod.GET,a,void 0,void 0,void 0,void 0,3e4,o.DEFAULT_HTTP_RETRY_CONFIG,s),d=o.validateAndExtractOutputFileUri(l);if(!d.success||!d.uri)throw new Error(`Failed to get blob URI for attachment ${i}: ${d.error}`);let f=await(0,_v.makeHttpRequest)(d.uri,ft.HttpMethod.GET,void 0,void 0,void 0,void 0,void 0,void 0,void 0,!0,void 0,!0);if(!f.success||!f.data)throw new Error(`Failed to download file from blob storage: ${f.error?.message||"Unknown error"}`);let h=f.data.content instanceof Uint8Array?f.data.content:new TextEncoder().encode(String(f.data.content)),_=f.data.headers||{},m=Object.keys(_).find(T=>T.toLowerCase()==="content-disposition"),v=Object.keys(_).find(T=>T.toLowerCase()==="content-type"),b=i,g=m?_[m]:void 0;if(g){let T=g.match(/filename\*\s*=\s*(?:UTF-8''|utf-8'')?([^;]+)/i),P=g.match(/filename\s*=\s*"([^"]+)"/i),k=g.match(/filename\s*=\s*([^;\s]+)/i);T?b=decodeURIComponent(T[1].trim()):P?b=P[1]:k&&(b=k[1].trim())}let w=v?_[v]:"application/octet-stream";return s.debug(`File downloaded from blob storage: ${i} (${h.length} bytes)`),{name:b,mimeType:w,size:h.length,content:h,attachmentId:i}}static detectBlobUploadTarget(t,r){if(Object.keys(r).some(n=>n.toLowerCase()==="x-ms-blob-type"))return"azure-block";let e;try{e=new URL(t).searchParams}catch{return"orchestrator-put"}return e.has("X-Amz-Signature")||e.has("X-Amz-Algorithm")?"s3-presigned":e.has("sv")&&e.has("sig")?"azure-block":"orchestrator-put"}static async openBlobDownloadStream(t,r,e,n,i,s,c,u){let a=`${t}/${e}/${n}${o.ATTACHMENTS_ENDPOINT}(${i})`,l={Authorization:`Bearer ${r}`,accept:Mr.APPLICATION_JSON};c&&(l[o.ORCHESTRATOR_FOLDER_KEY]=c);let d=await(0,to.makeHttpRequestWithRetry)(a,ft.HttpMethod.GET,l,void 0,void 0,void 0,void 0,3e4,o.DEFAULT_HTTP_RETRY_CONFIG,s),f=o.validateAndExtractOutputFileUri(d);if(!f.success||!f.uri)throw new Error(`Failed to get blob URI for attachment ${i}: ${f.error}`);let h=u?.tailBytes!==void 0&&u.tailBytes>0?await o.peekBlobTail(f.uri,u.tailBytes,s):void 0,_=await fetch(f.uri,{method:ft.HttpMethod.GET});if(!_.ok||!_.body)throw await o.discardResponseBody(_),new Error(`Failed to open download stream for attachment ${i}: HTTP ${_.status}`);s.debug(`Opened streaming download for attachment ${i}`);let m=Number(_.headers.get("content-length")??NaN);return{stream:_.body,mimeType:_.headers.get("content-type")??"application/octet-stream",size:Number.isFinite(m)&&m>=0?m:void 0,tail:h}}static async peekBlobTail(t,r,e){try{let n=await fetch(t,{method:ft.HttpMethod.GET,headers:{Range:`bytes=-${r}`},signal:AbortSignal.timeout(o.TAIL_PEEK_TIMEOUT_MS)});if(n.status!==206){await o.discardResponseBody(n);return}let i=Number(n.headers.get("content-length")??NaN);if(Number.isFinite(i)&&i>r){await o.discardResponseBody(n);return}return new Uint8Array(await n.arrayBuffer())}catch(n){e.debug(`Blob tail peek failed (best-effort, download proceeds): ${(0,us.getErrorMessage)(n)}`);return}}static async uploadBlobStream(t,r,e,n,i,s,c,u,a="byte-array",l,d={}){let{attachmentId:f,blobStorageUrl:h,uploadHeaders:_}=await o.createAttachmentForUpload(t,r,e,n,s,u,l),m=o.detectBlobUploadTarget(h,_),v=m==="azure-block"?await o.uploadViaAzureBlocks(h,i,c,_,u):await o.uploadViaSinglePut(m,h,i,c,_,{orchestratorBaseUrl:t,accessToken:r,logger:u,...d});return u.debug(`Streamed ${v} bytes to blob storage (${m}): ${f} (${s})`),{ID:f,FullName:s,MimeType:c,Metadata:{Size:v,Encoding:a}}}static async uploadViaAzureBlocks(t,r,e,n,i){let s=Object.fromEntries(Object.entries(n).filter(([a])=>a.toLowerCase()!=="x-ms-blob-type")),c=[],u=await o.accumulateBlocks(r,async a=>{let l=btoa(`block-${String(c.length).padStart(8,"0")}`);await o.putBlock(t,l,a,s),c.push(l)});return await o.putBlockList(t,c,e,s),i.debug(`Staged ${c.length} block(s) via the Azure block-blob protocol`),u}static async accumulateBlocks(t,r,e){let n=new Uint8Array(o.UPLOAD_BLOCK_SIZE_BYTES),i=0,s=0,c=async()=>{i!==0&&(await r(n.subarray(0,i)),i=0)};for await(let u of t){s+=u.byteLength,e?.(s);let a=0;for(;a<u.byteLength;){let l=Math.min(u.byteLength-a,n.byteLength-i);n.set(u.subarray(a,a+l),i),i+=l,a+=l,i===n.byteLength&&await c()}}return await c(),s}static async uploadViaSinglePut(t,r,e,n,i,s){let c={...i};if(n&&(c[Mr.CONTENT_TYPE]=n),t==="orchestrator-put"&&o.isSameOrigin(r,s.orchestratorBaseUrl)&&(c.Authorization=`Bearer ${s.accessToken}`),t==="s3-presigned"&&s.knownSize!==void 0&&Number.isSafeInteger(s.knownSize)&&s.knownSize>=0&&(s.nodeHttpStreamSupported??await o.nodeHttpModule(r)!==void 0))return s.logger.debug(`Uploading via sized streamed PUT (${t}, ${s.knownSize} bytes)`),await o.putSizedNodeStream(r,e,c,s.knownSize,t),s.knownSize;if(t==="orchestrator-put"&&(s.requestStreamBodySupported??(0,_v.supportsRequestStreamBody)())){s.logger.debug(`Uploading via single streamed PUT (${t})`);let h=0,_=!1,m=o.toRequestStream(e,v=>{h+=v},()=>{_=!0});try{let v=await fetch(r,{method:ft.HttpMethod.PUT,headers:c,body:m,duplex:"half"});if(!v.ok)throw await o.discardResponseBody(v),new Error(`Failed to upload blob via single streamed PUT (${t}): HTTP ${v.status}`);return h}catch(v){if(_)throw v;s.logger.debug(`Streamed PUT was rejected before the body was read (${(0,us.getErrorMessage)(v)}); falling back to the buffered PUT (${t})`)}}s.logger.debug(`Uploading via single buffered PUT (${t})`);let a=s.maxBufferedUploadBytes??o.MAX_BUFFERED_UPLOAD_BYTES;if(s.knownSize!==void 0&&s.knownSize>a)throw new Error(`Upload to ${t} storage cannot be streamed here and its known size (${s.knownSize} bytes) exceeds the ${a}-byte buffered-upload limit; aborted before reading the source.`);let l=[],d=await o.accumulateBlocks(e,h=>{l.push(new Blob([h]))},h=>{if(h>a)throw new Error(`Upload to ${t} storage cannot be streamed and the file exceeds the ${a}-byte buffered-upload limit; aborted before sending any bytes.`)}),f=await fetch(r,{method:ft.HttpMethod.PUT,headers:c,body:new Blob(l)});if(!f.ok)throw await o.discardResponseBody(f),new Error(`Failed to upload blob via single PUT (${t}): HTTP ${f.status}`);return d}static async discardResponseBody(t){try{await t.body?.cancel()}catch{}}static async nodeHttpModule(t){let r;try{r=new URL(t).protocol==="https:"?"https":"http"}catch{return}if(o.nodeHttpModules.has(r))return o.nodeHttpModules.get(r);let e;if(globalThis.document===void 0)try{let n=`node:${r}`,i=await Promise.resolve(`${n}`).then(s=>yD(Ue(s)));e=typeof i.request=="function"?i:void 0}catch{e=void 0}return o.nodeHttpModules.set(r,e),e}static async putSizedNodeStream(t,r,e,n,i){let s=await o.nodeHttpModule(t);await new Promise((c,u)=>{let a=s.request(new URL(t),{method:"PUT",headers:{...e,"Content-Length":String(n)}},d=>{d.on("error",f=>{u(f),a.destroy(f)}),d.resume(),d.on("end",()=>{if((d.statusCode??0)>=200&&(d.statusCode??0)<300)c();else{let f=new Error(`Failed to upload blob via sized streamed PUT (${i}): HTTP ${d.statusCode}`);u(f),a.destroy(f)}})});a.on("error",u);let l=()=>new Promise((d,f)=>{let h=()=>{m(),d()},_=v=>{m(),f(v??new Error("Upload request closed before the socket drained."))},m=()=>{a.off("drain",h),a.off("error",_),a.off("close",_)};a.once("drain",h),a.once("error",_),a.once("close",_)});(async()=>{let d=0;for await(let f of r){if(d+=f.byteLength,d>n)throw new Error(`Sized upload source exceeded knownSize: expected ${n} bytes, got at least ${d}.`);if(a.destroyed)throw new Error("Upload request was closed before the source was fully sent.");a.write(f.slice())||await l()}if(d!==n)throw new Error(`Sized upload source ended early: expected ${n} bytes from the source but got ${d}.`);a.end()})().catch(d=>{a.destroy(d),u(d)})})}static toRequestStream(t,r,e){let n=t[Symbol.asyncIterator]();return new ReadableStream({async pull(i){e?.();let{done:s,value:c}=await n.next();if(s){i.close();return}r(c.byteLength),i.enqueue(c.slice())},async cancel(i){await n.return?.(i)}},{highWaterMark:0})}static isSameOrigin(t,r){try{return(0,us.getUrlOrigin)(t)===(0,us.getUrlOrigin)(r)}catch{return!1}}static async createAttachmentForUpload(t,r,e,n,i,s,c){let u=`${t}/${e}/${n}${o.ATTACHMENTS_ENDPOINT}`,a={Authorization:`Bearer ${r}`,[Mr.CONTENT_TYPE]:Mr.APPLICATION_JSON};c&&(a[o.ORCHESTRATOR_FOLDER_KEY]=c);let l=await(0,to.makeHttpRequestWithRetry)(u,ft.HttpMethod.POST,a,void 0,{Name:i},void 0,void 0,3e4,o.DEFAULT_HTTP_RETRY_CONFIG,s),d=o.validateAndExtractAttachmentMetadata(l,s,"uploadBlobStream");if(!d.success||!d.data)throw d.error||new Error("Failed to create attachment record");return d.data}static withQueryParams(t,r){return`${t}${t.includes("?")?"&":"?"}${r}`}static async putBlock(t,r,e,n){let i=o.withQueryParams(t,`comp=block&blockid=${encodeURIComponent(r)}`),s=await fetch(i,{method:ft.HttpMethod.PUT,headers:n,body:e});if(!s.ok)throw await o.discardResponseBody(s),new Error(`Failed to stage block ${r} to blob storage: HTTP ${s.status}`)}static async putBlockList(t,r,e,n){let s=`<?xml version="1.0" encoding="utf-8"?><BlockList>${r.map(l=>`<Latest>${l}</Latest>`).join("")}</BlockList>`,c=o.withQueryParams(t,"comp=blocklist"),u={...n,[Mr.CONTENT_TYPE]:"application/xml"};e&&(u["x-ms-blob-content-type"]=e);let a=await fetch(c,{method:ft.HttpMethod.PUT,headers:u,body:s});if(!a.ok)throw await o.discardResponseBody(a),new Error(`Failed to commit block list to blob storage: HTTP ${a.status}`)}};Jr.OrchestratorUtils=lr;lr.JOBS_ENDPOINT="/jobs";lr.ATTACHMENTS_ENDPOINT="/orchestrator_/odata/Attachments";lr.ORCHESTRATOR_FOLDER_KEY="folderkey";lr.MAX_ALLOWED_INPUT_ARGUMENTS_SIZE=1e4;lr.DEFAULT_HTTP_RETRY_CONFIG={statusCodes:[500,502,503,504,408,429],maxRetries:3,delayMs:1e3,backoff:{strategy:bD.BackoffStrategy.CONSTANT},networkErrors:!0,methods:[ft.HttpMethod.GET]};lr.UPLOAD_BLOCK_SIZE_BYTES=4*1024*1024;lr.MAX_BUFFERED_UPLOAD_BYTES=Number.MAX_SAFE_INTEGER;lr.TAIL_PEEK_TIMEOUT_MS=1e4;lr.nodeHttpModules=new Map});var Y0=O(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.looksLikeUrl=z0;Hu.applyURLInputEncoding=ED;var gD=Fu(),wD=new Set(["pagesize","nextpage","page","providernextpage"]);function z0(o){if(!o)return!1;let t=o;try{t=decodeURIComponent(o)}catch{t=o}try{let{protocol:r}=new URL(t);return r==="http:"||r==="https:"}catch{return!1}}function ED(o,t){if(!o||!t?.length||Object.keys(o).length===0)return o;let r=new Set(t.map(n=>n.replace(/\[\*\]$/,"").toLowerCase())),e;for(let[n,i]of Object.entries(o)){let s=n.toLowerCase();!wD.has(s)&&r.has(s)&&typeof i=="string"&&z0(i)&&(e??(e={...o}),e[n]=(0,gD.base64Encode)(i))}return e??o}});var X0=O(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.IntSvcApiRequestActivity=void 0;var K0=si(),TD=ai(),Vu=Kr(),SD=iv(),J0=Da(),OD=ku(),vv=In(),G0=ui(),kD=L0(),Kt=F0(),zu=mv(),PD=qu(),AD=Y0(),yv=class extends TD.ActivityBase{constructor(t,r,e){super(r),this.type=K0.ActivityType.IntSvcApiRequest,this.name=K0.ActivityType.IntSvcApiRequest,this.INTEGRATION_SERVICE_PATH_PREFIX="elements_/v3/element/instances",this.ELEMENTS_TRACE_ID_HEADER="elements-trace-id",this.ELEMENTS_TRACE_URL_PREFIX="trace/",this.ASYNC_STATUS_INTERVAL=500,this.properties=t.properties,this.name=e||this.name}async execute(){var t;let r=this.constructBaseUrl(),e=this.properties.proxyToVendorAPI,n=this.properties.executionType,i=this.constructIntSvcUrl(r,this.properties.connectionId,this.properties.endpoint);this.properties.body&&(this.properties.body=kD.ObjectTransformer.flatten(this.properties.body)),this.properties.verboseLoggingEnabled&&(this.properties.queryParameters={...this.properties.queryParameters,debug:"true"}),this.properties.queryParameters=(0,AD.applyURLInputEncoding)(this.properties.queryParameters,this.properties.enableURLInputFields),e&&this.properties.body?.body!==void 0&&typeof this.properties.body.body!="string"&&(this.properties.body.body=JSON.stringify(this.properties.body.body)),(t=this.properties).headers??(t.headers={}),(0,vv.setDefaultContentTypeHeader)(this.properties),this.properties.headers={...this.properties.headers,authorization:`Bearer ${this.properties.accessToken}`};let s=this.properties.connectorKey?.toLowerCase()===PD.ORCHESTRATOR_CONNECTOR_KEY.toLowerCase(),c=s&&zu.OrchestratorUtils.isRunJobEndPoint(this.properties.endpoint,this.properties.method),u=s&&zu.OrchestratorUtils.isGetJobResultEndPoint(this.properties.endpoint,this.properties.method);c&&await zu.OrchestratorUtils.handleOversizedInputArguments(this.properties,r,this.logger,this.name),this.logger.debug(`[${this.name}] Making IS API request to ${i} with method ${this.properties.method}`);let a=this.shouldEnableRetry();["PUT","POST","PATCH"].includes(this.properties.method?.toUpperCase())&&!(0,Kt.isMultipartRequest)(this.properties.multipartParameters)&&this.properties.body===void 0&&(this.properties.body={});let l=Date.now(),d;a&&this.properties.retryConfig?d=await(0,G0.makeHttpRequestWithRetry)(i,this.properties.method,this.properties.headers,this.properties.queryParameters,(0,Kt.isMultipartRequest)(this.properties.multipartParameters)?void 0:this.properties.body,this.properties.useProxyServer?this.properties.proxySettings:void 0,(0,Kt.isMultipartRequest)(this.properties.multipartParameters)?(0,Kt.constructMultipartFormData)(this.properties.multipartParameters,this.properties.body):void 0,this.properties.timeoutMs,this.properties.retryConfig,this.logger,this.properties.verboseLoggingEnabled,this.properties.isFileOperation):d=await(0,vv.makeHttpRequest)(i,this.properties.method,this.properties.headers,this.properties.queryParameters,(0,Kt.isMultipartRequest)(this.properties.multipartParameters)?void 0:this.properties.body,this.properties.useProxyServer?this.properties.proxySettings:void 0,(0,Kt.isMultipartRequest)(this.properties.multipartParameters)?(0,Kt.constructMultipartFormData)(this.properties.multipartParameters,this.properties.body):void 0,this.properties.timeoutMs,this.properties.verboseLoggingEnabled,this.properties.isFileOperation);let f=d.data;return this.normalizeMaxRecords(),f&&(0,Kt.isPaginationCallRequired)(f,this.properties.maxRecords,this.properties.method)?(d=await(0,Kt.fetchAllPaginatedData)(i,f,this.properties.maxRecords,this.properties.queryParameters,this.properties.method,this.properties.headers,this.properties.useProxyServer,this.properties.proxySettings,this.properties.timeoutMs,this.properties.retryConfig,this.logger),f=d.data):this.properties.maxRecords&&f&&Array.isArray(f.content)&&f.content.length>this.properties.maxRecords&&(f.content=f.content?.slice(0,this.properties.maxRecords),f.headers=(0,Kt.cleanPaginationHeaders)(f.headers)),!e&&this.properties.verboseLoggingEnabled&&f&&f.headers&&await this.fetchAndPopulateVendorRequestDetails(r,f),f&&(0,Kt.isProcessExecutionActivity)(f,n)&&(d=await this.waitForProcessExecutionCompletion(r,this.properties,f,this.ASYNC_STATUS_INTERVAL,l)),(c||u)&&(d=await zu.OrchestratorUtils.postProcessJobsEndpoint(this.properties,d,r,this.logger)),(0,Kt.toIntsvcApiResponse)(e,d)}constructBaseUrl(){let t=["baseUrl","orgId","tenantId"];for(let e of t)if(!this.properties[e]?.trim())throw new Error(`${e} is required and cannot be empty`);let r=[this.properties.orgId,this.properties.tenantId].join("/");return`${this.properties.baseUrl}/${r}`}constructIntSvcUrl(t,r,e){if(!t)throw new Error("Base URL is required");if(!r)throw new Error("Connection ID is required");let n=[this.INTEGRATION_SERVICE_PATH_PREFIX,r,(0,SD.sanitizeEndpoint)(e)].join("/");return`${t}/${n}`}async waitForProcessExecutionCompletion(t,r,e,n,i){let s=e.headers,c=s["x-uipath-process-execution-result-callback-url"],u=(0,Kt.getClampedWaitTime)(s["x-uipath-process-execution-max-wait-time"]),a=this.constructIntSvcUrl(t,this.properties.connectionId,c),l=Date.now(),d,f=0,h=[],_=[];this.logger.debug(`[${this.name}] Starting process execution polling for URL: ${a} with max wait time: ${u}ms`);do{f++,this.logger.debug(`[${this.name}] Polling attempt ${f} for process execution completion`);let v=Date.now();if(_.push(v),d=await(0,G0.makeHttpRequestWithRetry)(a,Vu.HttpMethod.GET,r.headers,void 0,void 0,void 0,void 0,this.properties.timeoutMs,void 0,this.logger),h.push(Date.now()-v),!d.success||!d.data)return this.logger.error(`[${this.name}] Process execution polling failed: ${d.error?.message||"Unknown error"}`),m(this.logger,!1),d;if(Date.now()-l>u){let g=`Process execution timed out after ${u}ms (${f} polling attempts). Result callback URL: ${(0,OD.stripUrlQuery)(c)}`;return this.logger.error(`[${this.name}] ${g}`),m(this.logger,!1),{success:!1,data:d.data,error:new Error(g)}}await new Promise(g=>setTimeout(g,n))}while(d.data.statusCode===202);function m(v,b){let g=i-l,w=Date.now()-l,T=h.map((x,R)=>({polledAt:new Date(_[R]).toISOString(),duration:x})),P={success:b,pollCount:f,intSvcConnectorInvokedAt:new Date(i).toISOString(),connectorRequestToPollStartTimeMs:g,totalPollingTimeMs:w,pollingRequestDurations:T},k=`[IntSvcApiRequestActivity] Async process polling time details: ${JSON.stringify(P)}`;v.warn(k),console.warn(k)}return m(this.logger,!0),d}async fetchAndPopulateVendorRequestDetails(t,r){try{let e=r.headers[this.ELEMENTS_TRACE_ID_HEADER];if(!e)return;let n=this.constructIntSvcUrl(t,this.properties.connectionId,`${this.ELEMENTS_TRACE_URL_PREFIX}${e}`),i=await(0,vv.makeHttpRequest)(n,Vu.HttpMethod.GET,this.properties.headers,{latestResource:"true"},void 0,void 0,void 0,this.properties.timeoutMs);if(!i.success||!i.data?.content){this.logger.error(`[${this.name}] Failed to fetch traces for traceId: ${e}`);return}let s=i.data.content,c=Object.entries(s);if(c.length!==1)return;let[u,a]=c[0];if(!Array.isArray(a)){this.logger.error(`[${this.name}] Traces is not an array for traceId: ${e}`);return}let l=a.find(d=>d&&d.type==="vendorRequest");if(!l)return;r.request=r.request||{},r.request.method=l.methodType,r.request.url=l.url,r.request.headers=(0,J0.sanitizeSecrets)(l.headers??{}),r.request.query=(0,J0.sanitizeSecrets)(l.query??{}),r.request.body=l.body}catch(e){this.logger.error(`[${this.name}] Error while fetching and populating vendor request details: ${e}`)}}normalizeMaxRecords(){if(this.properties.maxRecords===-1){this.properties.maxRecords=1/0;return}if(!this.properties.maxRecords||typeof this.properties.maxRecords!="number"||this.properties.maxRecords===Number.NaN||this.properties.maxRecords<=0){this.properties.maxRecords=void 0;return}}shouldEnableRetry(){return this.properties.method===Vu.HttpMethod.GET?!0:this.properties.proxyToVendorAPI&&this.properties.body?.method?String(this.properties.body.method).toUpperCase()===Vu.HttpMethod.GET:!1}};Yu.IntSvcApiRequestActivity=yv});var Q0=O(Z0=>{"use strict";Object.defineProperty(Z0,"__esModule",{value:!0})});var tE=O(eE=>{"use strict";Object.defineProperty(eE,"__esModule",{value:!0})});var rE=O(Gr=>{"use strict";var ID=Gr&&Gr.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),Ku=Gr&&Gr.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ID(t,o,r)};Object.defineProperty(Gr,"__esModule",{value:!0});Ku(X0(),Gr);Ku(Q0(),Gr);Ku(tE(),Gr);Ku(mv(),Gr)});var sE=O(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.IntSvcEventApiRequestActivity=fi.DEFAULT_FETCH_EVENT_RETRY_CONFIG=void 0;var nE=si(),xD=ai(),oE=ui(),iE=Kr(),RD=Fa();fi.DEFAULT_FETCH_EVENT_RETRY_CONFIG={maxRetries:3,delayMs:1e3,statusCodes:[429,500,502,503,504],backoff:{strategy:RD.BackoffStrategy.CONSTANT}};var bv=class extends xD.ActivityBase{constructor(t,r,e){super(r),this.type=nE.ActivityType.IntSvcEventRequest,this.name=nE.ActivityType.IntSvcEventRequest,this.INTEGRATION_SERVICE_PATH_PREFIX="elements_/v3/element/instances",this.EVENTS_DEBUG_ENDPOINT="events/debug",this.ELEMENTS="elements",this.FETCH_EVENTS_ENDPOINT="elements_/v1/events",this.properties=t.properties,this.name=e||this.name}async execute(){let t=this.constructBaseUrl(),r=this.getHeaders();return this.properties.eventId?this.executeFetchEvent(t,r):this.executeDebugEvent(t,r)}async executeFetchEvent(t,r){if(!this.properties.eventId?.trim())throw new Error("Event ID is required for fetch event operations");let e=`${t}/${this.FETCH_EVENTS_ENDPOINT}/${this.properties.eventId}`;return this.logger.debug(`[${this.name}] Fetching event with ID ${this.properties.eventId} from ${e}`),await(0,oE.makeHttpRequestWithRetry)(e,iE.HttpMethod.GET,r,this.properties.queryParameters,void 0,this.properties.useProxyServer?this.properties.proxySettings:void 0,void 0,this.properties.timeoutMs,fi.DEFAULT_FETCH_EVENT_RETRY_CONFIG,this.logger)}async executeDebugEvent(t,r){if(!this.properties.connectorKey?.trim())throw new Error("Connector key is required for debug URL construction");if(!this.properties.connectionId?.trim())throw new Error("Connection ID is required for debug URL construction");let e=[this.INTEGRATION_SERVICE_PATH_PREFIX,this.properties.connectionId,this.ELEMENTS,this.properties.connectorKey,this.EVENTS_DEBUG_ENDPOINT].join("/"),n=`${t}/${e}`,i=this.constructDebugEventBody();this.logger.debug(`[${this.name}] Making debug event call to ${n}`);let s=await(0,oE.makeHttpRequestWithRetry)(n,iE.HttpMethod.POST,r,void 0,i,this.properties.useProxyServer?this.properties.proxySettings:void 0,void 0,this.properties.timeoutMs,this.properties.retryConfig,this.logger),c=s.data;if(s.success&&c&&c.content){let u=c.content;if(u.filterMatches&&Array.isArray(u.filterMatches)&&u.filterMatches.length>0){let a=u.filterMatches[0];if(a.Payload)c.content=a.Payload,console.log("Extracted payload from first filter match:",a.Payload);else throw new Error("Unexpected API response structure: filterMatches found but no Payload in first match")}else return{success:!1,data:void 0,error:new Error(`${this.properties.eventType}: Trigger activity could not find any matches`)}}return s}getHeaders(){return{Authorization:`Bearer ${this.properties.accessToken}`,"Content-Type":"application/json"}}constructDebugEventBody(){let t={objectName:this.properties.objectName,eventType:this.properties.eventType};return this.properties.filterExpression&&(t.filterExpression=this.properties.filterExpression),(this.properties.queryParameters||this.properties.pathParameters)&&(t.parameters={...this.properties.queryParameters||{},...this.properties.pathParameters||{}}),t}constructBaseUrl(){let t=["baseUrl","orgId","tenantId"];for(let e of t)if(!this.properties[e]?.trim())throw new Error(`${e} is required and cannot be empty`);let r=[this.properties.orgId,this.properties.tenantId].join("/");return`${this.properties.baseUrl}/${r}`}};fi.IntSvcEventApiRequestActivity=bv});var cE=O(aE=>{"use strict";Object.defineProperty(aE,"__esModule",{value:!0})});var lE=O(ro=>{"use strict";var MD=ro&&ro.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),uE=ro&&ro.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&MD(t,o,r)};Object.defineProperty(ro,"__esModule",{value:!0});uE(sE(),ro);uE(cE(),ro)});var Gu=O(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.ScriptExecutionError=void 0;Ua.executeScriptLocal=jD;var dE=ja(),gv={DEFAULT_SCRIPT_GLOBALS:["JSON","Math","Date","String","Number","Array","Object","Error","setTimeout","clearTimeout"],DEFAULT_SANDBOX_CONFIG:{strict:!0,timeoutMs:3e4}},Ju=class extends Error{constructor(t,r){super(t),this.stack=r||this.stack;let e=new.target.prototype;Object.setPrototypeOf(this,e),this.name="ScriptExecutionError"}};Ua.ScriptExecutionError=Ju;async function CD(o){return{console:{log:(r,e)=>console.log("[Script %s]: %s",o,String(r),e),info:(r,e)=>console.info("[Script %s]: %s",o,String(r),e),error:(r,e)=>console.error("[Script %s]: %s",o,String(r),e),warn:(r,e)=>console.warn("[Script %s]: %s",o,String(r),e),debug:(r,e)=>console.debug("[Script %s]: %s",o,String(r),e)},...Object.fromEntries(gv.DEFAULT_SCRIPT_GLOBALS?.map(r=>[r,globalThis[r]])??[]),fetch:()=>{throw new Error("fetch is not allowed in scripts")}}}async function jD(o,t){let{script:r,args:e,timeoutMs:n}=o,i=await CD(t);try{let s=gv.DEFAULT_SANDBOX_CONFIG.strict?`'use strict';
|
|
81
|
+
`}});var c0=O((WZ,a0)=>{"use strict";a0.exports=bj;function bj(o){let{secret:t,censor:r,compileRestore:e,serialize:n,groupRedact:i,nestedRedact:s,wildcards:c,wcLen:u}=o,a=[{secret:t,censor:r,compileRestore:e}];return n!==!1&&a.push({serialize:n}),u>0&&a.push({groupRedact:i,nestedRedact:s,wildcards:c,wcLen:u}),Object.assign(...a)}});var d0=O((UZ,l0)=>{"use strict";var u0=Gw(),gj=Qw(),wj=t0(),Ej=s0(),{groupRedact:Tj,nestedRedact:Sj}=Ym(),Oj=c0(),kj=Ou(),Pj=u0(),Km=o=>o;Km.restore=Km;var Aj="[REDACTED]";Jm.rx=kj;Jm.validator=u0;l0.exports=Jm;function Jm(o={}){let t=Array.from(new Set(o.paths||[])),r="serialize"in o&&(o.serialize===!1||typeof o.serialize=="function")?o.serialize:JSON.stringify,e=o.remove;if(e===!0&&r!==JSON.stringify)throw Error("fast-redact \u2013 remove option may only be set when serializer is JSON.stringify");let n=e===!0?void 0:"censor"in o?o.censor:Aj,i=typeof n=="function",s=i&&n.length>1;if(t.length===0)return r||Km;Pj({paths:t,serialize:r,censor:n});let{wildcards:c,wcLen:u,secret:a}=gj({paths:t,censor:n}),l=Ej(),d="strict"in o?o.strict:!0;return wj({secret:a,wcLen:u,serialize:r,strict:d,isCensorFct:i,censorFctTakesPath:s},Oj({secret:a,censor:n,compileRestore:l,serialize:r,groupRedact:Tj,nestedRedact:Sj,wildcards:c,wcLen:u}))}});var ku=O(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.getUrlOrigin=Ij;ci.stripUrlQuery=h0;ci.stripUrlQueries=Rj;ci.addQueryParamsToUrl=Mj;ci.addPathComponentsToUrl=Cj;function Ij(o){return new URL(o).origin}var f0=/^([a-z][a-z0-9+.-]*:\/\/)[^/\\]*@/i;function h0(o){let t=o.trim(),r=f0.exec(t);if(r&&/[?#]/.test(r[0]))return r[1];let e=r?t.replace(f0,"$1"):t,n=e.search(/[?#]/);return n===-1?e:e.slice(0,n)}var xj=/\bhttps?:\/\/[^\s"'<>]+/gi;function Rj(o){return o.replace(xj,h0)}function Mj(o,t){let r=new URL(o);return Object.entries(t).forEach(([e,n])=>{r.searchParams.set(e,n)}),r.toString()}function Cj(o,t){let r=new URL(o),e=_0(r.pathname);if(Array.isArray(t))t.forEach(n=>{let i=p0(n);i&&(e=e+"/"+i)});else{let n=p0(t);n&&(e=e+"/"+n)}return e=jj(e),r.pathname=e,r.toString()}function jj(o){return o?o.startsWith("/")?o:"/"+o:"/"}function p0(o){return Nj(_0(o))}function Nj(o){if(!o)return o;let t=o;for(;t.startsWith("/");)t=t.substring(1);return t}function _0(o){if(!o)return o;let t=o;for(;t.endsWith("/");)t=t.slice(0,-1);return t}});var Da=O(ge=>{"use strict";var Dj=ge&&ge.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(ge,"__esModule",{value:!0});ge.redactHttpRequest=ge.redactSensitiveValues=ge.sanitizeSecrets=ge.isSensitiveKey=ge.SENSITIVE_KEY_PATTERNS=ge.removeObjectPaths=ge.redactObjectPaths=ge.REDACTED_STRING=void 0;var m0=Dj(d0()),Lj=ku();ge.REDACTED_STRING="==REDACTED==";var qj=(o,t,r=ge.REDACTED_STRING)=>{if(!o||typeof o!="object"||!t||!Array.isArray(t))return o;if(t.every(n=>!n.includes(".")&&!n.includes("["))){let n={...o};for(let i of t)n.hasOwnProperty(i)&&(n[i]=r);return n}let e=(0,m0.default)({paths:t,censor:r,serialize:!1});try{return e(structuredClone(o))}catch(n){return console.error("Error redacting object paths",n),o}};ge.redactObjectPaths=qj;var Fj=(o,t)=>{if(!o||typeof o!="object"||!t||!Array.isArray(t))return o;if(t.every(e=>!e.includes(".")&&!e.includes("["))){let e={...o};for(let n of t)delete e[n];return e}let r=(0,m0.default)({paths:t,remove:!0});try{let e=r(o);return JSON.parse(e)}catch(e){return console.error("Error removing object paths",e),o}};ge.removeObjectPaths=Fj;ge.SENSITIVE_KEY_PATTERNS=["auth","authentication","token","apikey","api-key","secret","password","session","client","user-agent","connection","host","www-authenticate","basic","bearer","cookie","csrf","xsrf","private","credential","oauth","jwt","pwd","passwd","passphrase","certificate","signature","salt","accesskey","accountkey","signingkey","encryptionkey"];Object.freeze(ge.SENSITIVE_KEY_PATTERNS);var Wj=o=>o.replace(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),v0=new RegExp(ge.SENSITIVE_KEY_PATTERNS.map(Wj).join("|"),"i"),Uj=o=>!!o&&v0.test(o);ge.isSensitiveKey=Uj;var $j=o=>{if(!o||Object.keys(o).length===0)return o;let t={...o};for(let r in t)(0,ge.isSensitiveKey)(r)&&(t[r]=ge.REDACTED_STRING);return t};ge.sanitizeSecrets=$j;var Bj=(o,t=8)=>{let r=(e,n)=>{if(n>=t||!e||typeof e!="object")return e;if(Array.isArray(e)){let c=!1,u=e.map(a=>{let l=r(a,n+1);return c=c||!Object.is(l,a),l});return c?u:e}if(Object.prototype.toString.call(e)!=="[object Object]")return e;let i=!1,s={};for(let[c,u]of Object.entries(e))if((0,ge.isSensitiveKey)(c))s[c]=ge.REDACTED_STRING,i=!0;else{let a=r(u,n+1);i=i||!Object.is(a,u),s[c]=a}return i?s:e};return r(o,0)};ge.redactSensitiveValues=Bj;var Hj=1024*1024,y0=64,Vj=o=>{if(!v0.test(o))return o;if(o.length>Hj)return ge.REDACTED_STRING;try{let e=JSON.parse(o);if(e&&typeof e=="object"){let n=(0,ge.redactSensitiveValues)(e,y0);return n===e?o:JSON.stringify(n)}}catch{}let t=new URLSearchParams(o),r=[...new Set(t.keys())].filter(ge.isSensitiveKey);return r.forEach(e=>t.set(e,ge.REDACTED_STRING)),r.length?t.toString().split(encodeURIComponent(ge.REDACTED_STRING)).join(ge.REDACTED_STRING):o},zj=o=>{if(!o||typeof o!="object")return o;let t={...o};return typeof o.url=="string"&&(t.url=(0,Lj.stripUrlQuery)(o.url)),o.body!==void 0&&(t.body=typeof o.body=="string"?Vj(o.body):(0,ge.redactSensitiveValues)(o.body,y0)),o.query&&typeof o.query=="object"&&(t.query=Object.fromEntries(Object.keys(o.query).map(r=>[r,ge.REDACTED_STRING]))),Array.isArray(o.multipartFormData)&&(t.multipartFormData=o.multipartFormData.map(r=>(0,ge.isSensitiveKey)(r.name)?{...r,value:ge.REDACTED_STRING}:r)),t};ge.redactHttpRequest=zj});var Jr=O(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.HttpMethod=void 0;var b0;(function(o){o.GET="GET",o.GETBYID="GET",o.HEAD="HEAD",o.POST="POST",o.PUT="PUT",o.PATCH="PATCH",o.DELETE="DELETE",o.CONNECT="CONNECT",o.OPTIONS="OPTIONS",o.TRACE="TRACE",o.MERGE="MERGE"})(b0||(Pu.HttpMethod=b0={}))});var Gm=O(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.ProxyVersion=void 0;var g0;(function(o){o.V1="v1",o.V2="v2"})(g0||(Au.ProxyVersion=g0={}))});var Xm=O(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.MULTIPART_PROXY_BODY_KEY=void 0;An.extractProxyResponseStatus=Kj;An.extractProxyResponseHeaders=Jj;An.buildProxyRequest=E0;An.buildProxyRequestForHttpRequest=Gj;var w0=Jr(),La=Gm(),ar=In(),Iu="Bearer";An.MULTIPART_PROXY_BODY_KEY="__uipathMultipart";var Yj="content-length";function Kj(o,t){if(o&&o.version===La.ProxyVersion.V2){let r,e,n=t.headers?.get("sw-proxy-response-status");if(n){let i=Number(n);if(console.debug(`Proxy V2: Status code from response headers: ${n}`),r=isNaN(i)?void 0:i,r)return e=t.headers?.get("sw-proxy-response-reason-phrase")||"",{code:r,text:e??""}}}}function Jj(o,t){let r={};if(o&&t.headers){let e=[],n=o.responseHeaderPrefix||"";o.version===La.ProxyVersion.V2&&(e=["sw-proxy-response-status","sw-proxy-response-reason-phrase"],n=n||"sw-proxy-");for(let[i,s]of t.headers)e.includes(i)||i.startsWith(n)&&(r[i.substring(n.length)]=s)}else r=Object.fromEntries(t.headers.entries());return r}function E0(o,t,r,e,n,i,s){let c=r.authToken.startsWith(Iu)?r.authToken:`${Iu} ${r.authToken}`;if(r.responseHeaderPrefix,r.version===La.ProxyVersion.V1){if(s!==void 0)throw new Error("V1 multipart proxy requests must be built with buildProxyRequestForHttpRequest.");return Xj(o,t,c,e,n,i)}else if(r.version===La.ProxyVersion.V2)return eN(o,t,c,r.responseHeaderPrefix||"",e,n,i,s);throw new Error(`Unsupported proxy version: ${r.version}`)}async function Gj(o,t,r,e,n,i,s){return r.version===La.ProxyVersion.V1&&s!==void 0?Zj(o,t,r.authToken,e,n,s):E0(o,t,r,e,n,i,s)}function Xj(o,t,r,e,n,i){let s={[ar.CONTENT_TYPE_HEADER]:ar.MediaType.JSON,Authorization:r},c=JSON.stringify({method:t,headers:e,url:o,query:n,body:i});return{headers:s,body:c,method:w0.HttpMethod.POST}}async function Zj(o,t,r,e,n,i){let s=new Response((0,ar.createFormData)(i)),c=s.headers.get(ar.CONTENT_TYPE_HEADER);if(!c)throw new Error("Could not generate a multipart content type for the V1 proxy request.");let u=Qj(await s.arrayBuffer()),a={...e??{}};(0,ar.deleteHeaderCaseInsensitive)(a,ar.CONTENT_TYPE_HEADER),(0,ar.deleteHeaderCaseInsensitive)(a,Yj),a[ar.CONTENT_TYPE_HEADER]=c;let l=r.startsWith(Iu)?r:`${Iu} ${r}`;return{headers:{[ar.CONTENT_TYPE_HEADER]:ar.MediaType.JSON,Authorization:l},body:JSON.stringify({method:t,headers:a,url:o,query:n,body:{[An.MULTIPART_PROXY_BODY_KEY]:{encoding:"base64",data:u}}}),method:w0.HttpMethod.POST}}function Qj(o){let t=new Uint8Array(o),r=32768,e="";for(let n=0;n<t.length;n+=r)e+=String.fromCharCode(...t.subarray(n,n+r));return btoa(e)}function eN(o,t,r,e,n,i,s,c){let a={...Object.entries(n??{}).reduce((d,[f,h])=>(d[`${e}${f}`]=h,d),{}),"sw-proxy-method":t,"sw-proxy-target":(0,ar.buildUrl)(o,i),"sw-authorization":r},l=(0,ar.formatRequestBody)(s,n,c);return{headers:a,body:l,method:t}}});var In=O(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.formatRequestBody=de.buildUrl=de.createFormData=de.setDefaultContentTypeHeader=de.deleteHeaderCaseInsensitive=de.getHeaderCaseInsensitive=de.extractResponseHeaders=de.getMediaType=de.getHttpMethod=de.makeHttpRequest=de.MediaType=de.isReadableStreamBody=de.HTTP_STREAM_REQUEST_BODY_SUPPORTED=de.CONTENT_TYPE_HEADER=void 0;de.supportsRequestStreamBody=rN;var xu=ja(),Zm=Da(),qa=Jr(),Qm=Xm();de.CONTENT_TYPE_HEADER="content-type";de.HTTP_STREAM_REQUEST_BODY_SUPPORTED=!0;var tN=o=>typeof ReadableStream<"u"&&o instanceof ReadableStream;de.isReadableStreamBody=tN;var is;function rN(){if(is!==void 0)return is;if(globalThis.Deno!==void 0)return is=!0;try{let o=!1,t=new Request("https://localhost/",{method:"POST",body:new ReadableStream,get duplex(){return o=!0,"half"}}).headers.has("content-type");is=o&&!t}catch{is=!1}return is}var jt;(function(o){o.JSON="application/json",o.URL_ENCODED="application/x-www-form-urlencoded",o.UNSUPPORTED=""})(jt||(de.MediaType=jt={}));var nN="elements-vendor-processing-time",oN=async(o,t,r,e,n,i,s,c,u,a,l,d)=>{try{o=o.trim();let f,h;if(s!==void 0?r&&(0,de.deleteHeaderCaseInsensitive)(r,de.CONTENT_TYPE_HEADER):(t===qa.HttpMethod.POST||t===qa.HttpMethod.PUT||t===qa.HttpMethod.PATCH)&&(r?(0,de.getHeaderCaseInsensitive)(r,de.CONTENT_TYPE_HEADER)||(r[de.CONTENT_TYPE_HEADER]=jt.JSON):r={[de.CONTENT_TYPE_HEADER]:jt.JSON}),i)if(i.url&&i.authToken&&i.version){let v=Date.now(),b=await(0,Qm.buildProxyRequestForHttpRequest)(o,t,i,r,e,n,s);f=await fetch(i.url,{method:b.method,headers:b.headers,body:b.body,signal:c?AbortSignal.timeout(c):void 0,...(0,de.isReadableStreamBody)(b.body)?{duplex:"half"}:{}}),h=Date.now()-v}else throw new Error(`Invalid proxy settings: ${JSON.stringify(i)}`);else{let v=Date.now(),b=(0,de.formatRequestBody)(n,r,s);f=await fetch(d?o:(0,de.buildUrl)(o,e),{method:t,headers:r,body:b,signal:c?AbortSignal.timeout(c):void 0,...(0,de.isReadableStreamBody)(b)?{duplex:"half"}:{}}),h=Date.now()-v}let _={method:t,url:o,headers:u?(0,Zm.sanitizeSecrets)(r??{}):Zm.REDACTED_STRING,queryParameters:(0,Zm.sanitizeSecrets)(e??{}),body:n,multipartFormData:s?.map(v=>({...v,value:typeof v.value=="string"?v.value:"[Binary Data]"}))},m=await _N(f,_,h,i,a,l);return{success:m.ok,data:m,error:m.ok?void 0:new Error(`HTTP Status: ${m.statusCode}${m.statusText?` - ${m.statusText}`:""}`)}}catch(f){let h;return(0,xu.isError)(f)&&f.name==="TimeoutError"?h=new Error(`Request timed out after ${c}ms!`):h=(0,xu.isError)(f)?f:new Error((0,xu.getErrorMessage)(f)),{success:!1,data:void 0,error:h}}};de.makeHttpRequest=oN;var iN=o=>{if(typeof o!="string"||!o.trim())throw new Error(`Invalid http method received: ${o}`);let t=qa.HttpMethod[o.toUpperCase()];if(!t){let r=Array.from(new Set(Object.values(qa.HttpMethod))).join(", ");throw new Error(`Invalid HTTP method received: ${o}. Supported methods are: ${r}`)}return t};de.getHttpMethod=iN;var sN=o=>{if(!o)return jt.UNSUPPORTED;let t;if(typeof o.get=="function"&&typeof o.has=="function")t=o.get(de.CONTENT_TYPE_HEADER)?.toLowerCase();else{let r=(0,de.getHeaderCaseInsensitive)(o,de.CONTENT_TYPE_HEADER);r&&(t=r.toLowerCase())}return t?.startsWith("application/")&&t?.includes("json")?jt.JSON:t?.includes(jt.URL_ENCODED)?jt.URL_ENCODED:jt.UNSUPPORTED};de.getMediaType=sN;var aN=o=>{let t={};for(let[e,n]of o.headers.entries())e.toLowerCase()!=="set-cookie"&&(t[e]=n);return(typeof o.headers.getSetCookie=="function"?o.headers.getSetCookie():[]).forEach((e,n)=>{let i=n===0?"set-cookie":`set-cookie-${n}`;t[i]=e}),t};de.extractResponseHeaders=aN;var cN=(o,t)=>{if(!o)return;let r=Object.keys(o).find(e=>e.toLowerCase()===t.toLowerCase());return r?o[r]:void 0};de.getHeaderCaseInsensitive=cN;var uN=(o,t)=>{if(!o)return;let r=Object.keys(o).find(e=>e.toLowerCase()===t.toLowerCase());r&&delete o[r]};de.deleteHeaderCaseInsensitive=uN;var lN=(o,t=jt.JSON)=>{o.headers||(o.headers={}),(0,de.getHeaderCaseInsensitive)(o.headers,de.CONTENT_TYPE_HEADER)||(o.headers[de.CONTENT_TYPE_HEADER]=t)};de.setDefaultContentTypeHeader=lN;var dN=(o,t)=>{if(typeof t.value=="string"&&!t.contentType){o.append(t.name,t.value);return}let r=t.value instanceof Blob?t.value:new Blob([t.value],{type:t.contentType}),e=t.filename?.trim()?t.filename:void 0;e?o.append(t.name,r,e):o.append(t.name,r)},fN=o=>{let t=new FormData;for(let r of o)dN(t,r);return t};de.createFormData=fN;var pN=(o,t)=>{let[r,e]=o.split("?"),n=new URLSearchParams(e||"");return t&&Object.keys(t).length>0&&Object.entries(t).forEach(([s,c])=>{n.append(s,c)}),n.toString()?`${encodeURI(r)}?${n.toString()}`:encodeURI(r)};de.buildUrl=pN;var hN=(o,t,r)=>{if(r!==void 0)return(0,de.createFormData)(r);if(!o)return;if(o instanceof Uint8Array||(0,de.isReadableStreamBody)(o))return o;switch((0,de.getMediaType)(t)){case jt.URL_ENCODED:return new URLSearchParams(o);case jt.JSON:return JSON.stringify(o);default:return o.toString()}};de.formatRequestBody=hN;var _N=async(o,t,r,e,n,i)=>{let s={},c;e?(s=(0,Qm.extractProxyResponseHeaders)(e,o),c=(0,Qm.extractProxyResponseStatus)(e,o)):s=(0,de.extractResponseHeaders)(o);let u=(0,de.getHeaderCaseInsensitive)(s,nN),a=u?Number(u):r,l=c?.code??o.status,d=c?l>=200&&l<300:o.ok,f=await mN(o,o.headers,n,i===!0&&d),h={method:t.method,url:t.url,headers:t.headers,query:t.queryParameters,body:t.body,multipartFormData:t.multipartFormData};return{statusCode:l,statusText:c?.text??o.statusText,headers:s,ok:d,request:h,content:f,vendorProcessingTimeMs:a}},mN=async(o,t,r,e)=>{let n=(0,de.getMediaType)(t);try{if(r){if(e&&o.body)return o.body;let u=await o.arrayBuffer();return new Uint8Array(u)}let i=t.get("content-disposition")??"",s=t.get("content-type")??"";if(!bN(s)&&(i.toLowerCase().includes("attachment")||vN(s))){if(e&&o.body)return o.body;let u=await o.arrayBuffer();return new Uint8Array(u)}let c=await o.text();switch(n){case jt.JSON:try{return JSON.parse(c)}catch(u){return console.warn("Failed to parse JSON response, returning as text:",u),c}case jt.URL_ENCODED:if(c){let u=new URLSearchParams(c);return Object.fromEntries(u.entries())}return c;default:return c}}catch(i){console.error("Error reading response content:",i);let s=(0,xu.getErrorMessage)(i);throw new Error(`Error reading response content: [${n}] - ${s}`)}},vN=o=>{let t=o.toLowerCase();return["application/octet-stream","application/pdf","application/zip","image/","audio/","video/","application/vnd.","application/x-tar","application/gzip"].some(e=>t.startsWith(e))},yN=["application/json","application/xml","text/xml","text/csv","text/plain","application/atom+xml","application/rss+xml"],bN=o=>{if(!o)return!1;let t=o.toLowerCase(),r=t.split(";")[0].trim();return(r.startsWith("application/")||r.startsWith("text/"))&&(r.endsWith("+json")||r.endsWith("+xml"))?!0:yN.some(e=>t.startsWith(e))}});var Fa=O(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.BackoffStrategy=void 0;var T0;(function(o){o.CONSTANT="constant",o.LINEAR="linear",o.EXPONENTIAL="exponential"})(T0||(Ru.BackoffStrategy=T0={}))});var rv=O(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.HttpRetryPolicy=void 0;var ev=Fa(),gN=Jr(),wN=In(),tv=class o{static normalizeRetryConfig(t){return{...t,methods:t.methods&&t.methods.length>0?t.methods:[gN.HttpMethod.GET]}}static getRetryDelays(t){let r=[];for(let e=1;e<=t.maxRetries;e++){let n=o.calculateDelay(t,e);r.push(n)}return r}static shouldRetry(t,r){if(r.attemptNumber>t.maxRetries)return{shouldRetry:!1,delayMs:0,reason:`Maximum retry attempts (${t.maxRetries}) exceeded`};if(r.response){let e=r.response.statusCode;return t.statusCodes.includes(e)?r.retryAfterMsFromHeader!==void 0?{shouldRetry:!0,delayMs:r.retryAfterMsFromHeader,reason:`Retrying due to status code ${e} with Retry-After header`}:{shouldRetry:!0,delayMs:o.calculateDelay(t,r.attemptNumber),reason:`Retrying due to status code ${e}`}:{shouldRetry:!1,delayMs:0,reason:`Status code ${e} is not retryable`}}return t.networkErrors&&r.error&&o.isNetworkError(r.error)?{shouldRetry:!0,delayMs:o.calculateDelay(t,r.attemptNumber),reason:`Retrying due to network error: ${r.error.message}`}:{shouldRetry:!1,delayMs:0,reason:`Error is not retryable: ${r.error?.message||"Unknown error"}`}}static calculateDelay(t,r){let{backoff:e}=t,n;switch(e.strategy){case ev.BackoffStrategy.CONSTANT:n=t.delayMs;break;case ev.BackoffStrategy.LINEAR:n=t.delayMs*r;break;case ev.BackoffStrategy.EXPONENTIAL:let i=e.multiplier||2;n=t.delayMs*Math.pow(i,r-1);break;default:n=t.delayMs}return e.maxDelayMs&&n>e.maxDelayMs&&(n=e.maxDelayMs),n}static extractRetryAfterDelay(t){let r=(0,wN.getHeaderCaseInsensitive)(t,"retry-after");if(!r)return;let e=r.trim(),n=parseInt(e,10);if(!isNaN(n)&&n>=0)return n*1e3;let i=new Date(e);if(!isNaN(i.getTime())){let s=Date.now(),c=i.getTime()-s;return c>0?c:void 0}}static isNetworkError(t){let r=["ECONNRESET","ECONNREFUSED","ENOTFOUND","ETIMEDOUT","fetch failed","network error","timeout","aborted"],e=t.message.toLowerCase();return r.some(n=>e.includes(n.toLowerCase()))}};Mu.HttpRetryPolicy=tv});var ui=O(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.makeHttpRequestWithRetry=void 0;var Cu=In(),ju=rv(),EN=async(o,t,r,e,n,i,s,c,u,a,l,d,f,h)=>{if(!u)return(0,Cu.makeHttpRequest)(o,t,r,e,n,i,s,c,l,d,f,h);if((0,Cu.isReadableStreamBody)(n))return a?.debug("[Retry] Request body is a stream and cannot be replayed; sending without retry."),(0,Cu.makeHttpRequest)(o,t,r,e,n,i,s,c,l,d,f,h);a?.debug(`[Retry] Method: ${t}, RetryConfig provided: ${JSON.stringify(u)}`);let _=ju.HttpRetryPolicy.normalizeRetryConfig(u),m=0,v=0,b=[],g=[];for(;;)try{m++;let w=await(0,Cu.makeHttpRequest)(o,t,r,e,n,i,s,c,l,d,f,h);if(w.success){if(m>1&&w.data){let k={retryCount:m-1,retryReasons:b,failedStatusCodes:g.length>0?g:void 0};w.data.retryInfo=k}return w}let T={attemptNumber:m,error:w.error,response:w.data?{statusCode:w.data.statusCode,headers:w.data.headers||{}}:void 0,retryAfterMsFromHeader:w.data?ju.HttpRetryPolicy.extractRetryAfterDelay(w.data.headers||{}):void 0,totalDelayMs:v},P=ju.HttpRetryPolicy.shouldRetry(_,T);if(!P.shouldRetry){if(a?.debug(`[Retry] Not retrying: ${P.reason}`),m>1&&w.data){let k={retryCount:m-1,retryReasons:b,failedStatusCodes:g.length>0?g:void 0};w.data.retryInfo=k}return w}b.push(P.reason),w.data?.statusCode&&g.push(w.data.statusCode),P.delayMs>0&&(await new Promise(k=>setTimeout(k,P.delayMs)),v+=P.delayMs),a?.debug(`[Retry] Retrying in ${P.delayMs}ms: ${P.reason}: attempt ${m}`)}catch(w){a?.error(`Error while making HTTP request attempt ${m}: ${w}`);let T={attemptNumber:m,error:w,totalDelayMs:v},P=ju.HttpRetryPolicy.shouldRetry(_,T);if(!P.shouldRetry)return a?.debug(`[Retry] Not retrying after exception: ${P.reason}`),{success:!1,error:w};b.push(P.reason),P.delayMs>0&&(await new Promise(k=>setTimeout(k,P.delayMs)),v+=P.delayMs),a?.debug(`[Retry] Retrying in ${P.delayMs}ms: ${P.reason}: attempt ${m}`)}};Nu.makeHttpRequestWithRetry=EN});var ov=O(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.HttpRequestActivity=void 0;var S0=si(),TN=ai(),SN=ui(),ON=Jr(),O0=In(),nv=class extends TN.ActivityBase{constructor(t,r,e){super(r),this.type=S0.ActivityType.HttpRequest,this.name=S0.ActivityType.HttpRequest,this.properties=t.properties,this.name=e||this.name}async execute(){this.logger.debug(`[${this.name}] Making HTTP request to ${this.properties.url} with method ${this.properties.method}`),(0,O0.setDefaultContentTypeHeader)(this.properties);let t=this.shouldEnableRetry(),r;return t&&this.properties.retryConfig?r=await(0,SN.makeHttpRequestWithRetry)(this.properties.url,this.properties.method,this.properties.headers,this.properties.queryParameters,this.properties.body,this.properties.proxySettings,this.properties.multipartFormData,this.properties.timeoutMs,this.properties.retryConfig,this.logger,this.properties.verboseLoggingEnabled,void 0,this.properties.streamFileResponse):r=await(0,O0.makeHttpRequest)(this.properties.url,this.properties.method,this.properties.headers,this.properties.queryParameters,this.properties.body,this.properties.proxySettings,this.properties.multipartFormData,this.properties.timeoutMs,this.properties.verboseLoggingEnabled,void 0,this.properties.streamFileResponse),{success:r.success,data:r.data,error:r.error}}shouldEnableRetry(){return this.properties.method===ON.HttpMethod.GET}};Du.HttpRequestActivity=nv});var P0=O(k0=>{"use strict";Object.defineProperty(k0,"__esModule",{value:!0})});var I0=O(A0=>{"use strict";Object.defineProperty(A0,"__esModule",{value:!0})});var x0=O(xr=>{"use strict";var kN=xr&&xr.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),Wa=xr&&xr.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&kN(t,o,r)};Object.defineProperty(xr,"__esModule",{value:!0});Wa(Jr(),xr);Wa(P0(),xr);Wa(I0(),xr);Wa(Gm(),xr);Wa(Fa(),xr)});var iv=O(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.resolveUrlWithParams=ss.sanitizeEndpoint=void 0;var PN=o=>o?.replace(/^\/+/,"")?.replace(/\/+/g,"/");ss.sanitizeEndpoint=PN;var AN=/\{([a-zA-Z0-9_-]+)\}/g,IN=(o,t)=>!o||!t?o:o.replace(AN,(r,e)=>{let n=t[e];if(n===void 0)throw new Error(`Missing required parameter: ${e}`);return encodeURIComponent(n)});ss.resolveUrlWithParams=IN});var j0=O(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.isFileResponse=xN;as.extractFileNameFromHeaders=C0;as.getExtensionFromMimeType=cv;as.generateDownloadFileName=CN;var av=In();function xN(o){if(!o)return!1;if(((0,av.getHeaderCaseInsensitive)(o,"content-disposition")??"").toLowerCase().includes("attachment"))return!0;let r=(0,av.getHeaderCaseInsensitive)(o,"content-type")??"",e=["application/octet-stream","application/pdf","application/zip","image/","audio/","video/","application/vnd.","application/x-tar","application/gzip"],n=r.toLowerCase();return e.some(i=>n.startsWith(i))}function C0(o){if(!o)return;let t=(0,av.getHeaderCaseInsensitive)(o,"content-disposition")??"";if(!t)return;let r=t.match(/filename\*\s*=\s*([^;]+)/i);if(r){let i=RN(r[1].trim());if(i)return sv(i)}let e=t.match(/filename\s*=\s*"([^"]+)"/i);if(e)return sv(R0(e[1]));let n=t.match(/filename\s*=\s*([^;\s]+)/i);if(n)return sv(R0(n[1].trim()))}function RN(o){let t=o.replace(/^["']|["']$/g,""),r=t.match(/^([^']*)'[^']*'(.*)$/);try{if(r){let e=r[1]||"utf-8";return M0(r[2],e)}return M0(t,"utf-8")}catch{return}}function R0(o){return/=\?([^?]+)\?([bBqQ])\?([^?]*)\?=/g.test(o)?o.replace(/\?=\s+=\?/g,"?==?").replace(/=\?([^?]+)\?([bBqQ])\?([^?]*)\?=/g,(e,n,i,s)=>{try{let c;if(i.toUpperCase()==="B")c=MN(s);else{let u=s.replace(/_/g," ").replace(/=([0-9A-Fa-f]{2})/g,(a,l)=>String.fromCharCode(parseInt(l,16)));c=Uint8Array.from(u,a=>a.charCodeAt(0))}return new TextDecoder(n).decode(c)}catch{return e}}):o}function M0(o,t){let r=[];for(let e=0;e<o.length;e++){let n=o[e];n==="%"&&/^[0-9A-Fa-f]{2}$/.test(o.slice(e+1,e+3))?(r.push(parseInt(o.slice(e+1,e+3),16)),e+=2):r.push(n.charCodeAt(0))}return new TextDecoder(t).decode(Uint8Array.from(r))}function MN(o){let t=atob(o.replace(/\s+/g,"")),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r}function sv(o){return o.replace(/[\\/\x00-\x1f\x7f]/g,"_").trim()}function cv(o){if(!o)return;let t=o.toLowerCase().split(";")[0].trim();return{"application/pdf":"pdf","application/zip":"zip","application/gzip":"gz","application/x-tar":"tar","application/rtf":"rtf","application/json":"json","application/xml":"xml","application/octet-stream":"bin","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/vnd.ms-excel":"xls","application/msword":"doc","image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/tiff":"tiff","image/svg+xml":"svg","image/webp":"webp","text/plain":"txt","text/csv":"csv","text/html":"html","text/xml":"xml","audio/mpeg":"mp3","audio/wav":"wav","video/mp4":"mp4","message/rfc822":"eml"}[t]}function CN(o,t,r,e){if(e&&e.trim().length>0){let c=e.trim();if(/\.[a-zA-Z0-9]{1,10}$/.test(c))return c;let u=cv(t);return u?`${c}.${u}`:c}let n=C0(r);if(n)return n;let i=cv(t),s=Date.now();return i?`${o}-${s}.${i}`:`${o}-${s}`}});var N0=O(cr=>{"use strict";var jN=cr&&cr.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),cs=cr&&cr.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&jN(t,o,r)};Object.defineProperty(cr,"__esModule",{value:!0});cs(In(),cr);cs(Xm(),cr);cs(iv(),cr);cs(ui(),cr);cs(rv(),cr);cs(j0(),cr)});var D0=O(xn=>{"use strict";var NN=xn&&xn.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),uv=xn&&xn.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&NN(t,o,r)};Object.defineProperty(xn,"__esModule",{value:!0});uv(ov(),xn);uv(x0(),xn);uv(N0(),xn)});var L0=O(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.ObjectTransformer=void 0;var lv=class o{static flatten(t){let r={};for(let[e,n]of Object.entries(t))o.populateNestedStructure(r,e,n);return r}static populateNestedStructure(t,r,e){let n=r.split("."),i=t;for(let s=0;s<n.length;s++){let c=n[s],u=s===n.length-1,{baseKey:a,isIndexedArray:l,arrayIndex:d,isWildcardArray:f}=o.extractKeyDetails(c);if(l)i=o.getOrCreateIndexedArray(i,a,d);else if(f){let h=n.slice(s+1).join(".");o.handleWildcardArray(i,a,h,e);return}else{if(u){i[a]=e;return}i=o.getOrCreateObject(i,a)}}}static extractKeyDetails(t){let r=t.match(/(.*?)\[(\d+)]$/),e=!!r,n=t.endsWith("[*]");return{baseKey:e?r[1]:n?t.slice(0,-3):t,isIndexedArray:e,arrayIndex:e?parseInt(r[2],10):void 0,isWildcardArray:n}}static getOrCreateIndexedArray(t,r,e){Array.isArray(t[r])||(t[r]=[]);let n=t[r];for(;n.length<=e;)n.push({});return n[e]}static handleWildcardArray(t,r,e,n){if(Array.isArray(n)){t[r]=n;return}Array.isArray(t[r])||(t[r]=[{}]),t[r].forEach(s=>{e?o.populateNestedStructure(s,e,n):o.deepMerge(s,n)})}static deepMerge(t,r){for(let e of Object.keys(r))typeof r[e]=="object"&&r[e]!==null?((typeof t[e]!="object"||t[e]===null)&&(t[e]=Array.isArray(r[e])?[]:{}),o.deepMerge(t[e],r[e])):t[e]=r[e]}static getOrCreateObject(t,r){return(!t[r]||typeof t[r]!="object")&&(t[r]={}),t[r]}};Lu.ObjectTransformer=lv});var qu=O(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.ORCHESTRATOR_CONNECTOR_KEY=ur.MULTIPART_FORM_DATA=ur.APPLICATION_JSON=ur.CONTENT_TYPE_LOWER_CASE=ur.CONTENT_TYPE=void 0;ur.CONTENT_TYPE="Content-Type";ur.CONTENT_TYPE_LOWER_CASE="content-type";ur.APPLICATION_JSON="application/json";ur.MULTIPART_FORM_DATA="multipart/form-data";ur.ORCHESTRATOR_CONNECTOR_KEY="uipath-uipath-orchestrator"});var Fu=O(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.maskString=DN;li.trimString=LN;li.base64UrlEncode=qN;li.base64Encode=FN;li.base64UrlDecode=WN;function DN(o,t=10,r=80){if(!o)return o;if(typeof o!="string")throw new Error("Input must be a string");if(o.length<=t)return o;r=Math.max(0,Math.min(100,r));let e=o.slice(0,t),n=o.slice(t),i=Math.floor(n.length*r/100),s=n.length-i,c=Math.ceil(n.length/s),u="";for(let a=0;a<n.length;a++)u+=a%c===0&&a<s*c?n[a]:"*";return`${e}${u}`}function LN(o,t,r=!0){if(!o)return o;if(typeof o!="string")throw new Error("Input must be a string");return o.length<=t?o:(t<=3&&(r=!1),o.slice(0,t-(r?3:0))+(r?"...":""))}function qN(o){let t=new TextEncoder().encode(o),r=Array.from(t,n=>String.fromCharCode(n)).join("");return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function FN(o){let t=new TextEncoder().encode(o),r=Array.from(t,e=>String.fromCharCode(e)).join("");return btoa(r)}function WN(o){let t=o.replace(/-/g,"+").replace(/_/g,"/");for(;t.length%4;)t+="=";let r=atob(t),e=new Uint8Array(r.length);for(let n=0;n<r.length;n++)e[n]=r.charCodeAt(n);return new TextDecoder("utf-8").decode(e)}});var F0=O(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.cleanPaginationHeaders=we.fetchAllPaginatedData=we.isPaginationCallRequired=we.standardizedRequestObject=we.constructMultipartFormData=we.isMultipartRequest=we.toStandardHttpResponse=we.extractPageDetailsIfPresent=we.toIntsvcApiResponse=we.getClampedWaitTime=we.isProcessExecutionActivity=we.ASYNC_STATUS_MAX_WAIT_TIME=we.ASYNC_STATUS_MIN_WAIT_TIME=void 0;var dv=Jr(),UN=ui(),q0=qu(),$N=Fu();we.ASYNC_STATUS_MIN_WAIT_TIME=6e4;we.ASYNC_STATUS_MAX_WAIT_TIME=18e4;var BN=(o,t)=>{if(o&&o.headers&&o.statusCode==202&&t=="async"){let r=o.headers,e=r["x-uipath-process-execution-mode"],n=r["x-uipath-process-execution-result-callback-url"];return!!(e==="WAIT_FOR_COMPLETION"&&n)}return!1};we.isProcessExecutionActivity=BN;var HN=o=>{let t=Number(o),r=Number.isFinite(t)&&t>0?t:we.ASYNC_STATUS_MIN_WAIT_TIME;return Math.min(r,we.ASYNC_STATUS_MAX_WAIT_TIME)};we.getClampedWaitTime=HN;var VN=async(o,t)=>{if(t.error)return t;if(!t.data)return{success:!1,data:t.data,error:new Error("No response received from IS API")};if(o&&t.success)return(0,we.toStandardHttpResponse)(t.data);let r=(0,we.extractPageDetailsIfPresent)(t.data);return r?{...t,data:{...t.data,page:r}}:t};we.toIntsvcApiResponse=VN;var zN=o=>{if(!o?.headers)return;let t=o.headers,r=Object.keys(t).find(c=>c.toLowerCase()==="elements-has-more"),e=Object.keys(t).find(c=>c.toLowerCase()==="elements-next-page-token"),n=r?t[r]:void 0,i=e?t[e]:void 0;if(!n||!i||!Array.isArray(o.content))return;let s=n.toLowerCase()==="true";if(!XN(i))return{hasMorePages:s,nextPageToken:i}};we.extractPageDetailsIfPresent=zN;var YN=async o=>{if(!o)return{success:!1,data:o,error:new Error("No response received from IS Proxy API")};let t=o.content,r=t.code,e=t.body,n=r>=200&&r<300,i={statusCode:r,isVendorError:!n,statusText:t.statusText||"",headers:t.headers,ok:n,request:(0,we.standardizedRequestObject)(t.request)??{},content:e??t.rawStringBody,vendorProcessingTimeMs:o.vendorProcessingTimeMs},s=i.content,c="";return typeof s=="string"?c=s:s&&typeof s=="object"&&"message"in s&&(c=s.message),{success:n,data:i,error:n?void 0:new Error(c?`HTTP Status: ${r} - ${c}`:`HTTP Status: ${r}`)}};we.toStandardHttpResponse=YN;var KN=(o,t)=>{if(o&&o.length>0)return!0;if(t){let r=Object.keys(t).find(e=>e.toLowerCase()===q0.CONTENT_TYPE_LOWER_CASE);if(r&&t[r].toLowerCase().includes(q0.MULTIPART_FORM_DATA))return!0}return!1};we.isMultipartRequest=KN;var JN="body",GN=(o,t)=>{let r=[];if(o&&o.length>0){let e=o.some(n=>n.dataType==="string");for(let n of o)if(n.dataType==="string")r.push({name:n.name,value:JSON.stringify(t)});else if(n.dataType==="file"&&n.fileContent){let i=new Blob([n.fileContent],{type:n.contentType||"application/octet-stream"});r.push({name:n.name,value:i,filename:n.fileName||"file",contentType:n.contentType||"application/octet-stream"})}return!e&&t&&Object.keys(t).length>0&&r.unshift({name:JN,value:JSON.stringify(t)}),r}return r};we.constructMultipartFormData=GN;var XN=o=>{try{let t=(0,$N.base64UrlDecode)(o);return JSON.parse(t)?.providerNextPage?.toUpperCase()==="DONE"}catch(t){return console.warn(`Error decoding pagination token: ${o}`,{token:o,error:t}),!1}},ZN=o=>{if(!o)return;let t={method:o.methodType,url:o.url};return o.headers!==void 0&&(t.headers=o.headers),o.query!==void 0&&(t.query=o.query),o.body!==void 0&&(t.body=o.body),o.multipartFormData!==void 0&&(t.multipartFormData=o.multipartFormData),t};we.standardizedRequestObject=ZN;var QN=(o,t,r)=>!(!t||r!==dv.HttpMethod.GET||!((0,we.extractPageDetailsIfPresent)(o)?.hasMorePages||!1)||!Array.isArray(o.content)||o.content.length>=t);we.isPaginationCallRequired=QN;var eD=async(o,t,r,e={},n=dv.HttpMethod.GET,i={},s=!1,c=void 0,u=3e4,a=void 0,l)=>{let d=(0,we.extractPageDetailsIfPresent)(t),f=d?.hasMorePages||!1,h=d?.nextPageToken,_=Array.isArray(t.content)?t.content:[],m=1,v={success:!0,data:{responseData:t,hasMorePages:f,nextPageToken:h}};for(l.debug(`Starting paginated request with maxRecords: ${r}`);f&&_.length<r;){if(m++,l.debug(`Fetching page ${m}, current records: ${_.length}, nextPageToken: ${h?"present":"none"}`),v=await rD(o,h,e,n,i,s,c,u,a,l),!v.success||!v.data)return l.error(`Pagination request failed on page ${m}: ${v.error?.message||"Unknown error"}`),l.warn(`Returning ${_.length} already fetched records despite pagination error`),{success:!1,data:t,error:v.error||new Error("Pagination request failed")};let{responseData:g,hasMorePages:w,nextPageToken:T}=v.data,P=Array.isArray(g.content)?g.content:[];if(_.push(...P),l.info(`Page ${m} returned ${P.length} records, total so far: ${_.length}, hasMorePages: ${w}, nextPageToken: ${T?"present":"none"}`),f=w&&!!T,h=T,_.length>=r){l.debug(`Reached maxRecords limit (${r}), stopping pagination after ${m} pages`);break}if(!f){l.debug(`No more pages available, stopping pagination after ${m} pages`);break}}l.debug(`Pagination completed. Total pages: ${m}, Total records: ${_.length}`);let b=v.data?.responseData;return b?(b.content=_,Array.isArray(b.content)&&b.content.length>r&&(b.content=b.content.slice(0,r)),b.headers=(0,we.cleanPaginationHeaders)(b.headers),{success:!0,data:b,error:void 0}):{success:!1,data:t,error:v.error||new Error("Pagination request failed")}};we.fetchAllPaginatedData=eD;var tD=o=>{let t={...o??{}};return Object.keys(t).filter(e=>{let n=e.toLowerCase();return n==="elements-has-more"||n==="elements-next-page-token"}).forEach(e=>{delete t[e]}),t};we.cleanPaginationHeaders=tD;var rD=async(o,t,r={},e=dv.HttpMethod.GET,n={},i=!1,s=void 0,c=3e4,u=void 0,a)=>{let l={...r,...t&&{nextPage:t}},d=await(0,UN.makeHttpRequestWithRetry)(o,e,n,l,void 0,i?s:void 0,void 0,c,u,a);if(!d.success||!d.data)return{success:!1,data:void 0,error:d.error||new Error("Page request failed")};let f=(0,we.extractPageDetailsIfPresent)(d.data),h=f?.hasMorePages||!1,_=f?.nextPageToken;return{success:!0,data:{responseData:d.data,hasMorePages:h,nextPageToken:_}}}});var B0=O(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.SecretRegistry=Rr.MAX_TRACKED_CREDENTIALS=Rr.MIN_SECRET_LENGTH=void 0;var Wu=Da();Rr.MIN_SECRET_LENGTH=6;var nD=["undefined","false","true","null",Wu.REDACTED_STRING.toLowerCase()];Rr.MAX_TRACKED_CREDENTIALS=256;var oD=20,iD=10,sD=o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),pv=o=>o.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),aD=o=>pv(o).replace(/"/g,"""),U0=o=>pv(o).replace(/'/g,"'"),cD=o=>U0(o).replace(/"/g,"""),W0=o=>{let t=JSON.stringify(o);return t.slice(1,t.length-1)},uD=o=>new URLSearchParams({v:o}).toString().slice(2),lD=o=>o.replace(/%[0-9A-Fa-f]{2}/g,t=>t.toLowerCase()),dD=o=>o.replace(/[^!-~]|["#<>?`{}]/gu,t=>encodeURIComponent(t)),$0=o=>{if(typeof Buffer<"u")return Buffer.from(o).toString("base64");let t="";for(let r of o)t+=String.fromCharCode(r);return btoa(t)},fD=o=>$0(new TextEncoder().encode(o)),pD=o=>{let t=new TextEncoder().encode(o),r=[];for(let e=0;e<3;e++){let n=new Uint8Array(e+t.length);n.set(t,e);let i=$0(n).replace(/=+$/,""),s=n.length,c=Math.floor(s/3)*4+[0,1,2][s%3];r.push(i.slice([0,2,3][e],c))}return r},fv=class{constructor(){this.rawValues=new Set,this.searchValues=new Set,this.matcherStale=!0,this.credentialCount=0,this.censor=Wu.REDACTED_STRING,this.shortestSearchValue=Number.POSITIVE_INFINITY}register(t){return this.rawValues.has(t)?!1:(this.rawValues.add(t),this.addSearchValue(t),this.addEncodings(t),this.addParseErrorFragment(t),this.addBase64Cores(t),!0)}addBase64Cores(t){let r;try{r=pD(t)}catch{return}for(let e of r)this.addEncodings(e)}addParseErrorFragment(t){if(t.length<=oD)return;let r=`"${t.slice(0,iD)}"...`;this.addSearchValue(r);try{this.addSearchValue(W0(r))}catch{}}addEncodings(t){let r=new Set([t]),e=[encodeURIComponent,uD,dD];for(let s of e)try{let c=s(t);r.add(c),r.add(lD(c))}catch{}let n=[pv,aD,U0,cD];for(let s of n)try{r.add(s(t))}catch{}let i=!1;for(let s of r){i=this.addSearchValue(s)||i;try{i=this.addSearchValue(W0(s))||i}catch{}}return i}registerCredential(t,r){if(r.length<Rr.MIN_SECRET_LENGTH)return"too-short";if(nD.includes(r.toLowerCase()))return"too-common";let e;if(t!==void 0&&t!=="")try{e=fD(`${t}:${r}`)}catch{}let n=this.rawValues.has(r),i=e===void 0||this.searchValues.has(e);if(n&&i)return"known";if(this.credentialCount>=Rr.MAX_TRACKED_CREDENTIALS)return"budget-full";let s=this.register(r),c=e!==void 0&&this.addEncodings(e);return!s&&!c?"known":(this.credentialCount++,"registered")}get isEmpty(){return this.searchValues.size===0}redactString(t){let r=this.ensureMatcher();if(r===void 0||t.length<this.shortestSearchValue)return t;let e=[];r.lastIndex=0;let n=r.exec(t);for(;n!==null;){let c=n.index,u=c+n[0].length,a=e[e.length-1];a&&c<=a[1]?a[1]=Math.max(a[1],u):e.push([c,u]),r.lastIndex=c+1,n=r.exec(t)}if(e.length===0)return t;let i="",s=0;for(let[c,u]of e)i+=t.slice(s,c)+this.censor,s=u;return i+t.slice(s)}redact(t){return this.isEmpty?t:this.walk(t,!1)}redactError(t){return this.isEmpty||!t||typeof t!="object"?t:this.walk(t,!0)}walk(t,r){let e=new Map,n=[],i,s=(c,u,a=!1)=>{if(typeof c=="string"){u(this.redactString(c));return}if(!c||typeof c!="object"){u(c);return}let l=e.get(c);if(l!==void 0){u(l);return}if(a||c instanceof Error){n.push(this.openError(c,u,e));return}if(c instanceof URL){let d=this.redactString(c.href);u(d===c.href?c:d);return}if(c instanceof String){let d=c.valueOf(),f=this.redactString(d);u(f===d?c:f);return}if(!Array.isArray(c)&&Object.prototype.toString.call(c)!=="[object Object]"){u(c);return}n.push(this.openContainer(c,u,e))};for(s(t,c=>{i=c},r);n.length>0;){let c=n[n.length-1];if(c.next>=c.keys.length){n.pop(),c.close();continue}let u=c.keys[c.next++];c.step(u,s)}return i}openContainer(t,r,e){let n=Array.isArray(t),i=t,s=n?new Array(t.length):{};e.set(t,s);let c=n?Object.keys(t).filter(a=>/^\d+$/.test(a)):Object.keys(t),u=!1;return{keys:c,next:0,step:(a,l)=>{let d;try{d=i[a]}catch{u=!0;return}let f=!n&&typeof a=="string"?this.redactString(a):a;u=u||f!==a,l(d,h=>{u=u||!Object.is(h,d),s[f]=h})},close:()=>{let a=u?s:t;e.set(t,a),r(a)}}}openError(t,r,e){let n=Object.getOwnPropertyDescriptors(t),i=Object.create(Object.getPrototypeOf(t));e.set(t,i);let s=!1;return{keys:Reflect.ownKeys(n),next:0,step:(c,u)=>{let a=n[c];if(!("value"in a)){s=!0;let d;try{d=t[c]}catch{delete n[c];return}u(d,f=>{n[c]={value:f,writable:!0,enumerable:a.enumerable,configurable:!0}});return}let l=a.value;u(l,d=>{Object.is(d,l)||(s=!0,n[c]={...a,value:d})})},close:()=>{Object.defineProperties(i,n);let c=s?i:t;e.set(t,c),r(c)}}}addSearchValue(t){return t.length<Rr.MIN_SECRET_LENGTH||this.searchValues.has(t)?!1:(this.searchValues.add(t),this.matcherStale=!0,!0)}ensureMatcher(){if(!this.matcherStale)return this.matcher;if(this.matcherStale=!1,this.searchValues.size===0){this.matcher=void 0,this.shortestSearchValue=Number.POSITIVE_INFINITY;return}let t=[...this.searchValues].sort((r,e)=>e.length-r.length);return this.matcher=new RegExp(t.map(sD).join("|"),"g"),this.shortestSearchValue=t[t.length-1].length,this.censor=t.some(r=>Wu.REDACTED_STRING.includes(r))?"":Wu.REDACTED_STRING,this.matcher}};Rr.SecretRegistry=fv});var H0=O(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.isRunningInBrowser=void 0;var hD=()=>{try{let o=globalThis;return typeof o.Deno<"u"?!1:typeof o.window<"u"&&o.window!==null&&typeof o.document<"u"&&o.document!==null||typeof o.WorkerGlobalScope=="function"&&o.self instanceof o.WorkerGlobalScope||typeof o.importScripts=="function"}catch{return!1}};Uu.isRunningInBrowser=hD});var V0=O($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.TimeDurationUtils=void 0;var hv=class{static parseIso8601Duration(t){let r=/^P(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+(?:\.\d+)?)S)?)?$/,e=t.match(r);if(!e)throw new Error(`Invalid ISO 8601 duration format: ${t}`);let n=parseInt(e[1]||"0"),i=parseInt(e[2]||"0"),s=parseInt(e[3]||"0"),c=parseFloat(e[4]||"0");return(n*86400+i*3600+s*60+c)*1e3}static parseDurationObject(t){let{days:r=0,hours:e=0,minutes:n=0,seconds:i=0,milliseconds:s=0}=t,c=isNaN(r)?0:r,u=isNaN(e)?0:e,a=isNaN(n)?0:n,l=isNaN(i)?0:i,d=isNaN(s)?0:s;return(c*86400+u*3600+a*60+l)*1e3+d}};$u.TimeDurationUtils=hv});var Bu=O(Yt=>{"use strict";var _D=Yt&&Yt.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),di=Yt&&Yt.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&_D(t,o,r)};Object.defineProperty(Yt,"__esModule",{value:!0});di(ja(),Yt);di(Da(),Yt);di(B0(),Yt);di(Fu(),Yt);di(H0(),Yt);di(ku(),Yt);di(V0(),Yt)});var mv=O(Gr=>{"use strict";var mD=Gr&&Gr.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),vD=Gr&&Gr.__setModuleDefault||(Object.create?function(o,t){Object.defineProperty(o,"default",{enumerable:!0,value:t})}:function(o,t){o.default=t}),yD=Gr&&Gr.__importStar||function(){var o=function(t){return o=Object.getOwnPropertyNames||function(r){var e=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[e.length]=n);return e},o(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var e=o(t),n=0;n<e.length;n++)e[n]!=="default"&&mD(r,t,e[n]);return vD(r,t),r}}();Object.defineProperty(Gr,"__esModule",{value:!0});Gr.OrchestratorUtils=void 0;var ft=Jr(),_v=In(),to=ui(),xt=ja(),Mr=qu(),bD=Fa(),us=Bu(),lr=class o{static isRunJobEndPoint(t,r){return t.includes(o.JOBS_ENDPOINT)&&r===ft.HttpMethod.POST}static isGetJobResultEndPoint(t,r){return t?.includes(o.JOBS_ENDPOINT)&&r==="GET"?new RegExp(`${o.JOBS_ENDPOINT}/[^/\\?#]+(?:\\?.*)?$`).test(t):!1}static async postProcessJobsEndpoint(t,r,e,n){if(!(0,xt.hasProperty)(r?.data?.content,"OutputFile"))return r;if(!(0,xt.hasProperty)(r?.data?.content,"OrganizationUnitId")){let u="No OrganizationUnitId found in the Orchestrator response";return n.error(u),{success:!1,error:new Error(u)}}let i=r?.data?.content.OrganizationUnitId,s=r?.data?.content.OutputFile,c=await o.extractOutputFileAndFetchContents(e,s,i,t,n);return c.success?(r.data.content.OutputArguments=c.data,delete r.data.content.OutputFile,r):{success:!1,error:c.error}}static validateAndExtractOutputFileUri(t){if(!t?.data?.content)return{success:!1,error:"Orchestrator response does not contain data"};let r=t.data.content;if(!(0,xt.hasProperty)(r,"BlobFileAccess"))return{success:!1,error:"Orchestrator response does not contain BlobFileAccess property: ${content}"};let e=r.BlobFileAccess;if(!(0,xt.hasProperty)(e,"Uri"))return{success:!1,error:`Orchestrator response does not contain Uri property in BlobFileAccess: ${e}`};let n=e.Uri;return!n||typeof n!="string"?{success:!1,error:`Orchestrator response does not contain valid URI: ${n}`}:{success:!0,uri:n}}static validateAndExtractContentFromOutputFileUriResponse(t){if(!t.success||!(0,xt.hasProperty)(t,"data"))return{success:!1,error:"Response is not successful or missing data: ${response}"};if(!(0,xt.hasProperty)(t.data,"content"))return{success:!1,error:"Response content is missing or not a string: ${response.data.content}"};let r=t.data.content;return r instanceof Uint8Array?r=new TextDecoder("utf-8").decode(r):r!==null&&typeof r=="object"&&(r=JSON.stringify(r)),typeof r!="string"?{success:!1,error:"Response content is missing or not a string: ${response.data.content}"}:{success:!0,content:r}}static parseJsonOrReturnOriginalObject(t){try{return JSON.parse(t)}catch{return t}}static getAttachmentRequestConfig(t,r,e,n){let i=t+o.ATTACHMENTS_ENDPOINT+"("+r+")",s={Authorization:`Bearer ${e}`,accept:Mr.APPLICATION_JSON,"X-UIPATH-OrganizationUnitId":n};return{requestUrl:i,headers:s}}static async extractOutputFileAndFetchContents(t,r,e,n,i){try{let{requestUrl:s,headers:c}=o.getAttachmentRequestConfig(t,r,n.accessToken,e),u=await(0,to.makeHttpRequestWithRetry)(s,ft.HttpMethod.GET,c,void 0,void 0,void 0,void 0,n.timeoutMs||3e4,o.DEFAULT_HTTP_RETRY_CONFIG,i);try{let a=o.validateAndExtractOutputFileUri(u);if(!a.success){let _=`Error while validating and extracting URI from Orchestrator response: ${a.error}`;return i.error(_),{success:!1,error:new Error(_)}}let l=a.uri,d=await(0,to.makeHttpRequestWithRetry)(l,ft.HttpMethod.GET,{[Mr.CONTENT_TYPE]:Mr.APPLICATION_JSON},void 0,void 0,void 0,void 0,n.timeoutMs||3e4,o.DEFAULT_HTTP_RETRY_CONFIG,i),f=o.validateAndExtractContentFromOutputFileUriResponse(d);if(f.success)return{success:!0,data:o.parseJsonOrReturnOriginalObject(f.content)};let h=`Error while extracting content from Orchestrator output file: ${f.error}`;return i.error(h),{success:!1,error:new Error(h)}}catch(a){let l=`Error requesting Orchestrator output file URI : ${(0,us.getErrorMessage)(a)}`;return i.error(l),{success:!1,error:new Error(l)}}}catch(s){let c=`Error while extracting content from Orchestrator output file: ${(0,us.getErrorMessage)(s)}`;return i.error(c),{success:!1,error:new Error(c)}}return{success:!1,error:new Error("Error while extracting content from Orchestrator output file")}}static async handleOversizedInputArguments(t,r,e,n){if(!t?.body)return;let i=t.body;if(!(0,xt.hasProperty)(i,"InputArguments"))return;let s=i.InputArguments,c=typeof s=="string"?s:JSON.stringify(s);if(c.length<o.MAX_ALLOWED_INPUT_ARGUMENTS_SIZE)return;let u=(0,xt.getNewGuid)();try{let{attachmentId:a,blobStorageUrl:l,uploadHeaders:d}=await o.createOrchestratorAttachmentAndGetUploadMetadata(t,r,u,e,n);e.debug(`[${n}] Uploading content to Azure Blob Storage: ${l}`);let h=new TextEncoder().encode(c);e.debug(`[${n}] Prepared content bytes for upload (${h.length} bytes)`);let _=await(0,to.makeHttpRequestWithRetry)(l,ft.HttpMethod.PUT,d,void 0,h,void 0,void 0,t.timeoutMs||3e4,o.DEFAULT_HTTP_RETRY_CONFIG,e,void 0,void 0,void 0,!0);if(!_.success){let m=`Failed to upload content to Azure Blob Storage: ${_.error?.message||"Unknown error"}`;throw e.error(`[${n}] ${m}`),new Error(m)}e.debug(`[${n}] Successfully uploaded content to Azure Blob Storage`),t.body={...i,InputFile:a},delete t.body.InputArguments}catch(a){e.error(`[${n}] Error processing large InputArguments: ${a}`);return}}static constructAttachmentUrl(t,r){if(!t)throw new Error("Base URL is required");if(!r)throw new Error("Connection ID is required");let e=[r,o.ATTACHMENTS_ENDPOINT].join("/");return`${t}/${e}`}static async createOrchestratorAttachmentAndGetUploadMetadata(t,r,e,n,i){try{let s=r+o.ATTACHMENTS_ENDPOINT,c={Name:e};n.debug(`[${i}] Creating attachment: ${e}`);let u={...t.headers},a=await(0,to.makeHttpRequestWithRetry)(s,ft.HttpMethod.POST,u,void 0,c,t.useProxyServer?t.proxySettings:void 0,void 0,t.timeoutMs||3e4,o.DEFAULT_HTTP_RETRY_CONFIG,n),l=o.validateAndExtractAttachmentMetadata(a,n,i);if(!l.success)throw l.error;return{attachmentId:l.data.attachmentId,blobStorageUrl:l.data.blobStorageUrl,uploadHeaders:l.data.uploadHeaders}}catch(s){throw n.error(`[${i}] Error in createOrchestratorAttachmentAndGetUploadMetadata: ${s}`),s}}static validateAndExtractAttachmentMetadata(t,r,e){if(!t.success||!t.data){let u=`Failed to create attachment: ${t.error?.message||"Unknown error"}`;return r.error(`[${e}] ${u}`),{success:!1,data:void 0,error:new Error(u)}}if(!(0,xt.hasProperty)(t.data,"content")){let u="Invalid attachment response: missing content";return r.error(`[${e}] ${u}`),{success:!1,data:void 0,error:new Error(u)}}let n=t.data.content;if(!(0,xt.hasProperty)(n,"Id")||!(0,xt.hasProperty)(n,"BlobFileAccess")||!(0,xt.hasProperty)(n.BlobFileAccess,"Uri")){let u="Invalid attachment response: missing Id or BlobFileAccess or Uri";return r.error(`[${e}] ${u}`),{success:!1,data:void 0,error:new Error(u)}}let i=n.Id,s=n.BlobFileAccess.Uri,c={};if((0,xt.hasProperty)(n.BlobFileAccess,"Headers")&&typeof n.BlobFileAccess.Headers=="object"){let u=n.BlobFileAccess.Headers;if((0,xt.hasProperty)(u,"Keys")&&(0,xt.hasProperty)(u,"Values")&&Array.isArray(u.Keys)&&Array.isArray(u.Values)){for(let a=0;a<u.Keys.length;a++)a<u.Values.length&&(c[u.Keys[a]]=u.Values[a]);r.debug(`[${e}] Extracted upload headers from BlobFileAccess Keys/Values: ${JSON.stringify(Object.keys(c))}`)}}return{success:!0,data:{attachmentId:i,blobStorageUrl:s,uploadHeaders:c},error:void 0}}static async uploadFileToBlob(t,r,e,n,i,s,c,u,a,l={}){let{encoding:d="byte-array"}=l,f=`${t}/${e}/${n}${o.ATTACHMENTS_ENDPOINT}`,h={Authorization:`Bearer ${r}`,[Mr.CONTENT_TYPE]:Mr.APPLICATION_JSON};a&&(h[o.ORCHESTRATOR_FOLDER_KEY]=a);let _=await(0,to.makeHttpRequestWithRetry)(f,ft.HttpMethod.POST,h,void 0,{Name:s},void 0,void 0,3e4,o.DEFAULT_HTTP_RETRY_CONFIG,u),m=o.validateAndExtractAttachmentMetadata(_,u,"uploadFileToBlob");if(!m.success||!m.data)throw m.error||new Error("Failed to create attachment record");let{attachmentId:v,blobStorageUrl:b,uploadHeaders:g}=m.data,w=await(0,_v.makeHttpRequest)(b,ft.HttpMethod.PUT,g,void 0,i,void 0,void 0,void 0,void 0,void 0,void 0,!0);if(!w.success)throw new Error(`Failed to upload file to blob storage: ${w.error?.message||"Unknown error"}`);return u.debug(`File uploaded to blob storage: ${v} (${s})`),{ID:v,FullName:s,MimeType:c,Metadata:{Size:i.byteLength,Encoding:d}}}static async downloadFileFromBlob(t,r,e,n,i,s,c){let u=`${t}/${e}/${n}${o.ATTACHMENTS_ENDPOINT}(${i})`,a={Authorization:`Bearer ${r}`,accept:Mr.APPLICATION_JSON};c&&(a[o.ORCHESTRATOR_FOLDER_KEY]=c);let l=await(0,to.makeHttpRequestWithRetry)(u,ft.HttpMethod.GET,a,void 0,void 0,void 0,void 0,3e4,o.DEFAULT_HTTP_RETRY_CONFIG,s),d=o.validateAndExtractOutputFileUri(l);if(!d.success||!d.uri)throw new Error(`Failed to get blob URI for attachment ${i}: ${d.error}`);let f=await(0,_v.makeHttpRequest)(d.uri,ft.HttpMethod.GET,void 0,void 0,void 0,void 0,void 0,void 0,void 0,!0,void 0,!0);if(!f.success||!f.data)throw new Error(`Failed to download file from blob storage: ${f.error?.message||"Unknown error"}`);let h=f.data.content instanceof Uint8Array?f.data.content:new TextEncoder().encode(String(f.data.content)),_=f.data.headers||{},m=Object.keys(_).find(T=>T.toLowerCase()==="content-disposition"),v=Object.keys(_).find(T=>T.toLowerCase()==="content-type"),b=i,g=m?_[m]:void 0;if(g){let T=g.match(/filename\*\s*=\s*(?:UTF-8''|utf-8'')?([^;]+)/i),P=g.match(/filename\s*=\s*"([^"]+)"/i),k=g.match(/filename\s*=\s*([^;\s]+)/i);T?b=decodeURIComponent(T[1].trim()):P?b=P[1]:k&&(b=k[1].trim())}let w=v?_[v]:"application/octet-stream";return s.debug(`File downloaded from blob storage: ${i} (${h.length} bytes)`),{name:b,mimeType:w,size:h.length,content:h,attachmentId:i}}static detectBlobUploadTarget(t,r){if(Object.keys(r).some(n=>n.toLowerCase()==="x-ms-blob-type"))return"azure-block";let e;try{e=new URL(t).searchParams}catch{return"orchestrator-put"}return e.has("X-Amz-Signature")||e.has("X-Amz-Algorithm")?"s3-presigned":e.has("sv")&&e.has("sig")?"azure-block":"orchestrator-put"}static async openBlobDownloadStream(t,r,e,n,i,s,c,u){let a=`${t}/${e}/${n}${o.ATTACHMENTS_ENDPOINT}(${i})`,l={Authorization:`Bearer ${r}`,accept:Mr.APPLICATION_JSON};c&&(l[o.ORCHESTRATOR_FOLDER_KEY]=c);let d=await(0,to.makeHttpRequestWithRetry)(a,ft.HttpMethod.GET,l,void 0,void 0,void 0,void 0,3e4,o.DEFAULT_HTTP_RETRY_CONFIG,s),f=o.validateAndExtractOutputFileUri(d);if(!f.success||!f.uri)throw new Error(`Failed to get blob URI for attachment ${i}: ${f.error}`);let h=u?.tailBytes!==void 0&&u.tailBytes>0?await o.peekBlobTail(f.uri,u.tailBytes,s):void 0,_=await fetch(f.uri,{method:ft.HttpMethod.GET});if(!_.ok||!_.body)throw await o.discardResponseBody(_),new Error(`Failed to open download stream for attachment ${i}: HTTP ${_.status}`);s.debug(`Opened streaming download for attachment ${i}`);let m=Number(_.headers.get("content-length")??NaN);return{stream:_.body,mimeType:_.headers.get("content-type")??"application/octet-stream",size:Number.isFinite(m)&&m>=0?m:void 0,tail:h}}static async peekBlobTail(t,r,e){try{let n=await fetch(t,{method:ft.HttpMethod.GET,headers:{Range:`bytes=-${r}`},signal:AbortSignal.timeout(o.TAIL_PEEK_TIMEOUT_MS)});if(n.status!==206){await o.discardResponseBody(n);return}let i=Number(n.headers.get("content-length")??NaN);if(Number.isFinite(i)&&i>r){await o.discardResponseBody(n);return}return new Uint8Array(await n.arrayBuffer())}catch(n){e.debug(`Blob tail peek failed (best-effort, download proceeds): ${(0,us.getErrorMessage)(n)}`);return}}static async uploadBlobStream(t,r,e,n,i,s,c,u,a="byte-array",l,d={}){let{attachmentId:f,blobStorageUrl:h,uploadHeaders:_}=await o.createAttachmentForUpload(t,r,e,n,s,u,l),m=o.detectBlobUploadTarget(h,_),v=m==="azure-block"?await o.uploadViaAzureBlocks(h,i,c,_,u):await o.uploadViaSinglePut(m,h,i,c,_,{orchestratorBaseUrl:t,accessToken:r,logger:u,...d});return u.debug(`Streamed ${v} bytes to blob storage (${m}): ${f} (${s})`),{ID:f,FullName:s,MimeType:c,Metadata:{Size:v,Encoding:a}}}static async uploadViaAzureBlocks(t,r,e,n,i){let s=Object.fromEntries(Object.entries(n).filter(([a])=>a.toLowerCase()!=="x-ms-blob-type")),c=[],u=await o.accumulateBlocks(r,async a=>{let l=btoa(`block-${String(c.length).padStart(8,"0")}`);await o.putBlock(t,l,a,s),c.push(l)});return await o.putBlockList(t,c,e,s),i.debug(`Staged ${c.length} block(s) via the Azure block-blob protocol`),u}static async accumulateBlocks(t,r,e){let n=new Uint8Array(o.UPLOAD_BLOCK_SIZE_BYTES),i=0,s=0,c=async()=>{i!==0&&(await r(n.subarray(0,i)),i=0)};for await(let u of t){s+=u.byteLength,e?.(s);let a=0;for(;a<u.byteLength;){let l=Math.min(u.byteLength-a,n.byteLength-i);n.set(u.subarray(a,a+l),i),i+=l,a+=l,i===n.byteLength&&await c()}}return await c(),s}static async uploadViaSinglePut(t,r,e,n,i,s){let c={...i};if(n&&(c[Mr.CONTENT_TYPE]=n),t==="orchestrator-put"&&o.isSameOrigin(r,s.orchestratorBaseUrl)&&(c.Authorization=`Bearer ${s.accessToken}`),t==="s3-presigned"&&s.knownSize!==void 0&&Number.isSafeInteger(s.knownSize)&&s.knownSize>=0&&(s.nodeHttpStreamSupported??await o.nodeHttpModule(r)!==void 0))return s.logger.debug(`Uploading via sized streamed PUT (${t}, ${s.knownSize} bytes)`),await o.putSizedNodeStream(r,e,c,s.knownSize,t),s.knownSize;if(t==="orchestrator-put"&&(s.requestStreamBodySupported??(0,_v.supportsRequestStreamBody)())){s.logger.debug(`Uploading via single streamed PUT (${t})`);let h=0,_=!1,m=o.toRequestStream(e,v=>{h+=v},()=>{_=!0});try{let v=await fetch(r,{method:ft.HttpMethod.PUT,headers:c,body:m,duplex:"half"});if(!v.ok)throw await o.discardResponseBody(v),new Error(`Failed to upload blob via single streamed PUT (${t}): HTTP ${v.status}`);return h}catch(v){if(_)throw v;s.logger.debug(`Streamed PUT was rejected before the body was read (${(0,us.getErrorMessage)(v)}); falling back to the buffered PUT (${t})`)}}s.logger.debug(`Uploading via single buffered PUT (${t})`);let a=s.maxBufferedUploadBytes??o.MAX_BUFFERED_UPLOAD_BYTES;if(s.knownSize!==void 0&&s.knownSize>a)throw new Error(`Upload to ${t} storage cannot be streamed here and its known size (${s.knownSize} bytes) exceeds the ${a}-byte buffered-upload limit; aborted before reading the source.`);let l=[],d=await o.accumulateBlocks(e,h=>{l.push(new Blob([h]))},h=>{if(h>a)throw new Error(`Upload to ${t} storage cannot be streamed and the file exceeds the ${a}-byte buffered-upload limit; aborted before sending any bytes.`)}),f=await fetch(r,{method:ft.HttpMethod.PUT,headers:c,body:new Blob(l)});if(!f.ok)throw await o.discardResponseBody(f),new Error(`Failed to upload blob via single PUT (${t}): HTTP ${f.status}`);return d}static async discardResponseBody(t){try{await t.body?.cancel()}catch{}}static async nodeHttpModule(t){let r;try{r=new URL(t).protocol==="https:"?"https":"http"}catch{return}if(o.nodeHttpModules.has(r))return o.nodeHttpModules.get(r);let e;if(globalThis.document===void 0)try{let n=`node:${r}`,i=await Promise.resolve(`${n}`).then(s=>yD(Ue(s)));e=typeof i.request=="function"?i:void 0}catch{e=void 0}return o.nodeHttpModules.set(r,e),e}static async putSizedNodeStream(t,r,e,n,i){let s=await o.nodeHttpModule(t);await new Promise((c,u)=>{let a=s.request(new URL(t),{method:"PUT",headers:{...e,"Content-Length":String(n)}},d=>{d.on("error",f=>{u(f),a.destroy(f)}),d.resume(),d.on("end",()=>{if((d.statusCode??0)>=200&&(d.statusCode??0)<300)c();else{let f=new Error(`Failed to upload blob via sized streamed PUT (${i}): HTTP ${d.statusCode}`);u(f),a.destroy(f)}})});a.on("error",u);let l=()=>new Promise((d,f)=>{let h=()=>{m(),d()},_=v=>{m(),f(v??new Error("Upload request closed before the socket drained."))},m=()=>{a.off("drain",h),a.off("error",_),a.off("close",_)};a.once("drain",h),a.once("error",_),a.once("close",_)});(async()=>{let d=0;for await(let f of r){if(d+=f.byteLength,d>n)throw new Error(`Sized upload source exceeded knownSize: expected ${n} bytes, got at least ${d}.`);if(a.destroyed)throw new Error("Upload request was closed before the source was fully sent.");a.write(f.slice())||await l()}if(d!==n)throw new Error(`Sized upload source ended early: expected ${n} bytes from the source but got ${d}.`);a.end()})().catch(d=>{a.destroy(d),u(d)})})}static toRequestStream(t,r,e){let n=t[Symbol.asyncIterator]();return new ReadableStream({async pull(i){e?.();let{done:s,value:c}=await n.next();if(s){i.close();return}r(c.byteLength),i.enqueue(c.slice())},async cancel(i){await n.return?.(i)}},{highWaterMark:0})}static isSameOrigin(t,r){try{return(0,us.getUrlOrigin)(t)===(0,us.getUrlOrigin)(r)}catch{return!1}}static async createAttachmentForUpload(t,r,e,n,i,s,c){let u=`${t}/${e}/${n}${o.ATTACHMENTS_ENDPOINT}`,a={Authorization:`Bearer ${r}`,[Mr.CONTENT_TYPE]:Mr.APPLICATION_JSON};c&&(a[o.ORCHESTRATOR_FOLDER_KEY]=c);let l=await(0,to.makeHttpRequestWithRetry)(u,ft.HttpMethod.POST,a,void 0,{Name:i},void 0,void 0,3e4,o.DEFAULT_HTTP_RETRY_CONFIG,s),d=o.validateAndExtractAttachmentMetadata(l,s,"uploadBlobStream");if(!d.success||!d.data)throw d.error||new Error("Failed to create attachment record");return d.data}static withQueryParams(t,r){return`${t}${t.includes("?")?"&":"?"}${r}`}static async putBlock(t,r,e,n){let i=o.withQueryParams(t,`comp=block&blockid=${encodeURIComponent(r)}`),s=await fetch(i,{method:ft.HttpMethod.PUT,headers:n,body:e});if(!s.ok)throw await o.discardResponseBody(s),new Error(`Failed to stage block ${r} to blob storage: HTTP ${s.status}`)}static async putBlockList(t,r,e,n){let s=`<?xml version="1.0" encoding="utf-8"?><BlockList>${r.map(l=>`<Latest>${l}</Latest>`).join("")}</BlockList>`,c=o.withQueryParams(t,"comp=blocklist"),u={...n,[Mr.CONTENT_TYPE]:"application/xml"};e&&(u["x-ms-blob-content-type"]=e);let a=await fetch(c,{method:ft.HttpMethod.PUT,headers:u,body:s});if(!a.ok)throw await o.discardResponseBody(a),new Error(`Failed to commit block list to blob storage: HTTP ${a.status}`)}};Gr.OrchestratorUtils=lr;lr.JOBS_ENDPOINT="/jobs";lr.ATTACHMENTS_ENDPOINT="/orchestrator_/odata/Attachments";lr.ORCHESTRATOR_FOLDER_KEY="folderkey";lr.MAX_ALLOWED_INPUT_ARGUMENTS_SIZE=1e4;lr.DEFAULT_HTTP_RETRY_CONFIG={statusCodes:[500,502,503,504,408,429],maxRetries:3,delayMs:1e3,backoff:{strategy:bD.BackoffStrategy.CONSTANT},networkErrors:!0,methods:[ft.HttpMethod.GET]};lr.UPLOAD_BLOCK_SIZE_BYTES=4*1024*1024;lr.MAX_BUFFERED_UPLOAD_BYTES=Number.MAX_SAFE_INTEGER;lr.TAIL_PEEK_TIMEOUT_MS=1e4;lr.nodeHttpModules=new Map});var Y0=O(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.looksLikeUrl=z0;Hu.applyURLInputEncoding=ED;var gD=Fu(),wD=new Set(["pagesize","nextpage","page","providernextpage"]);function z0(o){if(!o)return!1;let t=o;try{t=decodeURIComponent(o)}catch{t=o}try{let{protocol:r}=new URL(t);return r==="http:"||r==="https:"}catch{return!1}}function ED(o,t){if(!o||!t?.length||Object.keys(o).length===0)return o;let r=new Set(t.map(n=>n.replace(/\[\*\]$/,"").toLowerCase())),e;for(let[n,i]of Object.entries(o)){let s=n.toLowerCase();!wD.has(s)&&r.has(s)&&typeof i=="string"&&z0(i)&&(e??(e={...o}),e[n]=(0,gD.base64Encode)(i))}return e??o}});var X0=O(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.IntSvcApiRequestActivity=void 0;var K0=si(),TD=ai(),Vu=Jr(),SD=iv(),J0=Da(),OD=ku(),vv=In(),G0=ui(),kD=L0(),Kt=F0(),zu=mv(),PD=qu(),AD=Y0(),yv=class extends TD.ActivityBase{constructor(t,r,e){super(r),this.type=K0.ActivityType.IntSvcApiRequest,this.name=K0.ActivityType.IntSvcApiRequest,this.INTEGRATION_SERVICE_PATH_PREFIX="elements_/v3/element/instances",this.ELEMENTS_TRACE_ID_HEADER="elements-trace-id",this.ELEMENTS_TRACE_URL_PREFIX="trace/",this.ASYNC_STATUS_INTERVAL=500,this.properties=t.properties,this.name=e||this.name}async execute(){var t;let r=this.constructBaseUrl(),e=this.properties.proxyToVendorAPI,n=this.properties.executionType,i=this.constructIntSvcUrl(r,this.properties.connectionId,this.properties.endpoint);this.properties.body&&(this.properties.body=kD.ObjectTransformer.flatten(this.properties.body)),this.properties.verboseLoggingEnabled&&(this.properties.queryParameters={...this.properties.queryParameters,debug:"true"}),this.properties.queryParameters=(0,AD.applyURLInputEncoding)(this.properties.queryParameters,this.properties.enableURLInputFields),e&&this.properties.body?.body!==void 0&&typeof this.properties.body.body!="string"&&(this.properties.body.body=JSON.stringify(this.properties.body.body)),(t=this.properties).headers??(t.headers={}),(0,vv.setDefaultContentTypeHeader)(this.properties),this.properties.headers={...this.properties.headers,authorization:`Bearer ${this.properties.accessToken}`};let s=this.properties.connectorKey?.toLowerCase()===PD.ORCHESTRATOR_CONNECTOR_KEY.toLowerCase(),c=s&&zu.OrchestratorUtils.isRunJobEndPoint(this.properties.endpoint,this.properties.method),u=s&&zu.OrchestratorUtils.isGetJobResultEndPoint(this.properties.endpoint,this.properties.method);c&&await zu.OrchestratorUtils.handleOversizedInputArguments(this.properties,r,this.logger,this.name),this.logger.debug(`[${this.name}] Making IS API request to ${i} with method ${this.properties.method}`);let a=this.shouldEnableRetry();["PUT","POST","PATCH"].includes(this.properties.method?.toUpperCase())&&!(0,Kt.isMultipartRequest)(this.properties.multipartParameters)&&this.properties.body===void 0&&(this.properties.body={});let l=Date.now(),d;a&&this.properties.retryConfig?d=await(0,G0.makeHttpRequestWithRetry)(i,this.properties.method,this.properties.headers,this.properties.queryParameters,(0,Kt.isMultipartRequest)(this.properties.multipartParameters)?void 0:this.properties.body,this.properties.useProxyServer?this.properties.proxySettings:void 0,(0,Kt.isMultipartRequest)(this.properties.multipartParameters)?(0,Kt.constructMultipartFormData)(this.properties.multipartParameters,this.properties.body):void 0,this.properties.timeoutMs,this.properties.retryConfig,this.logger,this.properties.verboseLoggingEnabled,this.properties.isFileOperation):d=await(0,vv.makeHttpRequest)(i,this.properties.method,this.properties.headers,this.properties.queryParameters,(0,Kt.isMultipartRequest)(this.properties.multipartParameters)?void 0:this.properties.body,this.properties.useProxyServer?this.properties.proxySettings:void 0,(0,Kt.isMultipartRequest)(this.properties.multipartParameters)?(0,Kt.constructMultipartFormData)(this.properties.multipartParameters,this.properties.body):void 0,this.properties.timeoutMs,this.properties.verboseLoggingEnabled,this.properties.isFileOperation);let f=d.data;return this.normalizeMaxRecords(),f&&(0,Kt.isPaginationCallRequired)(f,this.properties.maxRecords,this.properties.method)?(d=await(0,Kt.fetchAllPaginatedData)(i,f,this.properties.maxRecords,this.properties.queryParameters,this.properties.method,this.properties.headers,this.properties.useProxyServer,this.properties.proxySettings,this.properties.timeoutMs,this.properties.retryConfig,this.logger),f=d.data):this.properties.maxRecords&&f&&Array.isArray(f.content)&&f.content.length>this.properties.maxRecords&&(f.content=f.content?.slice(0,this.properties.maxRecords),f.headers=(0,Kt.cleanPaginationHeaders)(f.headers)),!e&&this.properties.verboseLoggingEnabled&&f&&f.headers&&await this.fetchAndPopulateVendorRequestDetails(r,f),f&&(0,Kt.isProcessExecutionActivity)(f,n)&&(d=await this.waitForProcessExecutionCompletion(r,this.properties,f,this.ASYNC_STATUS_INTERVAL,l)),(c||u)&&(d=await zu.OrchestratorUtils.postProcessJobsEndpoint(this.properties,d,r,this.logger)),(0,Kt.toIntsvcApiResponse)(e,d)}constructBaseUrl(){let t=["baseUrl","orgId","tenantId"];for(let e of t)if(!this.properties[e]?.trim())throw new Error(`${e} is required and cannot be empty`);let r=[this.properties.orgId,this.properties.tenantId].join("/");return`${this.properties.baseUrl}/${r}`}constructIntSvcUrl(t,r,e){if(!t)throw new Error("Base URL is required");if(!r)throw new Error("Connection ID is required");let n=[this.INTEGRATION_SERVICE_PATH_PREFIX,r,(0,SD.sanitizeEndpoint)(e)].join("/");return`${t}/${n}`}async waitForProcessExecutionCompletion(t,r,e,n,i){let s=e.headers,c=s["x-uipath-process-execution-result-callback-url"],u=(0,Kt.getClampedWaitTime)(s["x-uipath-process-execution-max-wait-time"]),a=this.constructIntSvcUrl(t,this.properties.connectionId,c),l=Date.now(),d,f=0,h=[],_=[];this.logger.debug(`[${this.name}] Starting process execution polling for URL: ${a} with max wait time: ${u}ms`);do{f++,this.logger.debug(`[${this.name}] Polling attempt ${f} for process execution completion`);let v=Date.now();if(_.push(v),d=await(0,G0.makeHttpRequestWithRetry)(a,Vu.HttpMethod.GET,r.headers,void 0,void 0,void 0,void 0,this.properties.timeoutMs,void 0,this.logger),h.push(Date.now()-v),!d.success||!d.data)return this.logger.error(`[${this.name}] Process execution polling failed: ${d.error?.message||"Unknown error"}`),m(this.logger,!1),d;if(Date.now()-l>u){let g=`Process execution timed out after ${u}ms (${f} polling attempts). Result callback URL: ${(0,OD.stripUrlQuery)(c)}`;return this.logger.error(`[${this.name}] ${g}`),m(this.logger,!1),{success:!1,data:d.data,error:new Error(g)}}await new Promise(g=>setTimeout(g,n))}while(d.data.statusCode===202);function m(v,b){let g=i-l,w=Date.now()-l,T=h.map((x,R)=>({polledAt:new Date(_[R]).toISOString(),duration:x})),P={success:b,pollCount:f,intSvcConnectorInvokedAt:new Date(i).toISOString(),connectorRequestToPollStartTimeMs:g,totalPollingTimeMs:w,pollingRequestDurations:T},k=`[IntSvcApiRequestActivity] Async process polling time details: ${JSON.stringify(P)}`;v.warn(k),console.warn(k)}return m(this.logger,!0),d}async fetchAndPopulateVendorRequestDetails(t,r){try{let e=r.headers[this.ELEMENTS_TRACE_ID_HEADER];if(!e)return;let n=this.constructIntSvcUrl(t,this.properties.connectionId,`${this.ELEMENTS_TRACE_URL_PREFIX}${e}`),i=await(0,vv.makeHttpRequest)(n,Vu.HttpMethod.GET,this.properties.headers,{latestResource:"true"},void 0,void 0,void 0,this.properties.timeoutMs);if(!i.success||!i.data?.content){this.logger.error(`[${this.name}] Failed to fetch traces for traceId: ${e}`);return}let s=i.data.content,c=Object.entries(s);if(c.length!==1)return;let[u,a]=c[0];if(!Array.isArray(a)){this.logger.error(`[${this.name}] Traces is not an array for traceId: ${e}`);return}let l=a.find(d=>d&&d.type==="vendorRequest");if(!l)return;r.request=r.request||{},r.request.method=l.methodType,r.request.url=l.url,r.request.headers=(0,J0.sanitizeSecrets)(l.headers??{}),r.request.query=(0,J0.sanitizeSecrets)(l.query??{}),r.request.body=l.body}catch(e){this.logger.error(`[${this.name}] Error while fetching and populating vendor request details: ${e}`)}}normalizeMaxRecords(){if(this.properties.maxRecords===-1){this.properties.maxRecords=1/0;return}if(!this.properties.maxRecords||typeof this.properties.maxRecords!="number"||this.properties.maxRecords===Number.NaN||this.properties.maxRecords<=0){this.properties.maxRecords=void 0;return}}shouldEnableRetry(){return this.properties.method===Vu.HttpMethod.GET?!0:this.properties.proxyToVendorAPI&&this.properties.body?.method?String(this.properties.body.method).toUpperCase()===Vu.HttpMethod.GET:!1}};Yu.IntSvcApiRequestActivity=yv});var Q0=O(Z0=>{"use strict";Object.defineProperty(Z0,"__esModule",{value:!0})});var tE=O(eE=>{"use strict";Object.defineProperty(eE,"__esModule",{value:!0})});var rE=O(Xr=>{"use strict";var ID=Xr&&Xr.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),Ku=Xr&&Xr.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ID(t,o,r)};Object.defineProperty(Xr,"__esModule",{value:!0});Ku(X0(),Xr);Ku(Q0(),Xr);Ku(tE(),Xr);Ku(mv(),Xr)});var sE=O(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.IntSvcEventApiRequestActivity=fi.DEFAULT_FETCH_EVENT_RETRY_CONFIG=void 0;var nE=si(),xD=ai(),oE=ui(),iE=Jr(),RD=Fa();fi.DEFAULT_FETCH_EVENT_RETRY_CONFIG={maxRetries:3,delayMs:1e3,statusCodes:[429,500,502,503,504],backoff:{strategy:RD.BackoffStrategy.CONSTANT}};var bv=class extends xD.ActivityBase{constructor(t,r,e){super(r),this.type=nE.ActivityType.IntSvcEventRequest,this.name=nE.ActivityType.IntSvcEventRequest,this.INTEGRATION_SERVICE_PATH_PREFIX="elements_/v3/element/instances",this.EVENTS_DEBUG_ENDPOINT="events/debug",this.ELEMENTS="elements",this.FETCH_EVENTS_ENDPOINT="elements_/v1/events",this.properties=t.properties,this.name=e||this.name}async execute(){let t=this.constructBaseUrl(),r=this.getHeaders();return this.properties.eventId?this.executeFetchEvent(t,r):this.executeDebugEvent(t,r)}async executeFetchEvent(t,r){if(!this.properties.eventId?.trim())throw new Error("Event ID is required for fetch event operations");let e=`${t}/${this.FETCH_EVENTS_ENDPOINT}/${this.properties.eventId}`;return this.logger.debug(`[${this.name}] Fetching event with ID ${this.properties.eventId} from ${e}`),await(0,oE.makeHttpRequestWithRetry)(e,iE.HttpMethod.GET,r,this.properties.queryParameters,void 0,this.properties.useProxyServer?this.properties.proxySettings:void 0,void 0,this.properties.timeoutMs,fi.DEFAULT_FETCH_EVENT_RETRY_CONFIG,this.logger)}async executeDebugEvent(t,r){if(!this.properties.connectorKey?.trim())throw new Error("Connector key is required for debug URL construction");if(!this.properties.connectionId?.trim())throw new Error("Connection ID is required for debug URL construction");let e=[this.INTEGRATION_SERVICE_PATH_PREFIX,this.properties.connectionId,this.ELEMENTS,this.properties.connectorKey,this.EVENTS_DEBUG_ENDPOINT].join("/"),n=`${t}/${e}`,i=this.constructDebugEventBody();this.logger.debug(`[${this.name}] Making debug event call to ${n}`);let s=await(0,oE.makeHttpRequestWithRetry)(n,iE.HttpMethod.POST,r,void 0,i,this.properties.useProxyServer?this.properties.proxySettings:void 0,void 0,this.properties.timeoutMs,this.properties.retryConfig,this.logger),c=s.data;if(s.success&&c&&c.content){let u=c.content;if(u.filterMatches&&Array.isArray(u.filterMatches)&&u.filterMatches.length>0){let a=u.filterMatches[0];if(a.Payload)c.content=a.Payload,console.log("Extracted payload from first filter match:",a.Payload);else throw new Error("Unexpected API response structure: filterMatches found but no Payload in first match")}else return{success:!1,data:void 0,error:new Error(`${this.properties.eventType}: Trigger activity could not find any matches`)}}return s}getHeaders(){return{Authorization:`Bearer ${this.properties.accessToken}`,"Content-Type":"application/json"}}constructDebugEventBody(){let t={objectName:this.properties.objectName,eventType:this.properties.eventType};return this.properties.filterExpression&&(t.filterExpression=this.properties.filterExpression),(this.properties.queryParameters||this.properties.pathParameters)&&(t.parameters={...this.properties.queryParameters||{},...this.properties.pathParameters||{}}),t}constructBaseUrl(){let t=["baseUrl","orgId","tenantId"];for(let e of t)if(!this.properties[e]?.trim())throw new Error(`${e} is required and cannot be empty`);let r=[this.properties.orgId,this.properties.tenantId].join("/");return`${this.properties.baseUrl}/${r}`}};fi.IntSvcEventApiRequestActivity=bv});var cE=O(aE=>{"use strict";Object.defineProperty(aE,"__esModule",{value:!0})});var lE=O(ro=>{"use strict";var MD=ro&&ro.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),uE=ro&&ro.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&MD(t,o,r)};Object.defineProperty(ro,"__esModule",{value:!0});uE(sE(),ro);uE(cE(),ro)});var Gu=O(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.ScriptExecutionError=void 0;Ua.executeScriptLocal=jD;var dE=ja(),gv={DEFAULT_SCRIPT_GLOBALS:["JSON","Math","Date","String","Number","Array","Object","Error","setTimeout","clearTimeout"],DEFAULT_SANDBOX_CONFIG:{strict:!0,timeoutMs:3e4}},Ju=class extends Error{constructor(t,r){super(t),this.stack=r||this.stack;let e=new.target.prototype;Object.setPrototypeOf(this,e),this.name="ScriptExecutionError"}};Ua.ScriptExecutionError=Ju;async function CD(o){return{console:{log:(r,e)=>console.log("[Script %s]: %s",o,String(r),e),info:(r,e)=>console.info("[Script %s]: %s",o,String(r),e),error:(r,e)=>console.error("[Script %s]: %s",o,String(r),e),warn:(r,e)=>console.warn("[Script %s]: %s",o,String(r),e),debug:(r,e)=>console.debug("[Script %s]: %s",o,String(r),e)},...Object.fromEntries(gv.DEFAULT_SCRIPT_GLOBALS?.map(r=>[r,globalThis[r]])??[]),fetch:()=>{throw new Error("fetch is not allowed in scripts")}}}async function jD(o,t){let{script:r,args:e,timeoutMs:n}=o,i=await CD(t);try{let s=gv.DEFAULT_SANDBOX_CONFIG.strict?`'use strict';
|
|
82
82
|
${r}`:r,c=e?Object.keys(e):[],u=c.map(f=>e?.[f]),a=new Function(...c,...Object.keys(i),`return (async function() {
|
|
83
83
|
${s}
|
|
84
|
-
})();`);return await(async()=>{let f=n||gv.DEFAULT_SANDBOX_CONFIG.timeoutMs;return await Promise.race([a(...u,...Object.values(i)),new Promise((_,m)=>{let v=setTimeout(()=>m(new Error(`Script execution timed out after ${f}ms`)),f);typeof v.unref=="function"&&v.unref()})])})()}catch(s){throw new Ju((0,dE.getErrorMessage)(s),(0,dE.isError)(s)?s.stack:"executeScriptLocal")}}});var Ev=O(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.executeScriptLocal=ls.ExecuteScriptActivity=void 0;var fE=si(),pE=Bu(),ND=ai(),DD=Gu(),wv=class extends ND.ActivityBase{constructor(t,r,e){super(r),this.type=fE.ActivityType.ScriptExecution,this.name=fE.ActivityType.ScriptExecution,this.properties=t.properties,this.name=e||this.name}async execute(){try{return{success:!0,data:await(0,DD.executeScriptLocal)(this.properties,this.name)}}catch(t){let r=(0,pE.isError)(t)?t:new Error((0,pE.getErrorMessage)(t));return this.logger.error(`[${this.name}] Error executing script: ${r.message}`),{success:!1,error:r}}}};ls.ExecuteScriptActivity=wv;var LD=Gu();Object.defineProperty(ls,"executeScriptLocal",{enumerable:!0,get:function(){return LD.executeScriptLocal}})});var _E=O(hE=>{"use strict";Object.defineProperty(hE,"__esModule",{value:!0})});var mE=O(pi=>{"use strict";var qD=pi&&pi.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),FD=pi&&pi.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&qD(t,o,r)};Object.defineProperty(pi,"__esModule",{value:!0});FD(_E(),pi)});var vE=O(Rn=>{"use strict";var WD=Rn&&Rn.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),Tv=Rn&&Rn.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&WD(t,o,r)};Object.defineProperty(Rn,"__esModule",{value:!0});Tv(Ev(),Rn);Tv(mE(),Rn);Tv(Gu(),Rn)});var yE=O(Cr=>{"use strict";var UD=Cr&&Cr.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),$a=Cr&&Cr.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&UD(t,o,r)};Object.defineProperty(Cr,"__esModule",{value:!0});$a(D0(),Cr);$a(rE(),Cr);$a(lE(),Cr);$a(vE(),Cr);$a(ai(),Cr)});var gE=O(bE=>{"use strict";Object.defineProperty(bE,"__esModule",{value:!0})});var wE=O(hi=>{"use strict";var $D=hi&&hi.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),BD=hi&&hi.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&$D(t,o,r)};Object.defineProperty(hi,"__esModule",{value:!0});BD(gE(),hi)});var TE=O(EE=>{"use strict";Object.defineProperty(EE,"__esModule",{value:!0})});var SE=O(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.InMemoryEventBus=void 0;var Sv=class{constructor(){this.listeners=new Map,this.onceListeners=new Map}subscribe(t,r){return this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(r),()=>this.unsubscribe(t,r)}unsubscribe(t,r){let e=this.listeners.get(t);e&&(e.delete(r),e.size===0&&this.listeners.delete(t));let n=this.onceListeners.get(t);n&&(n.delete(r),n.size===0&&this.onceListeners.delete(t))}subscribeOnce(t,r){return this.onceListeners.has(t)||this.onceListeners.set(t,new Set),this.onceListeners.get(t).add(r),()=>this.unsubscribe(t,r)}async emit(t,r){let e=this.listeners.get(t),n=this.onceListeners.get(t);if(!e&&!n)return;let i=[];if(e)for(let s of e){let c=s(r);c instanceof Promise&&i.push(c)}if(n){let s=Array.from(n);this.onceListeners.delete(t);for(let c of s){let u=c(r);u instanceof Promise&&i.push(u)}}i.length>0&&await Promise.all(i)}removeAllSubscribers(t){t?(this.listeners.delete(t),this.onceListeners.delete(t)):(this.listeners.clear(),this.onceListeners.clear())}};Xu.InMemoryEventBus=Sv});var kE=O(no=>{"use strict";var HD=no&&no.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),OE=no&&no.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&HD(t,o,r)};Object.defineProperty(no,"__esModule",{value:!0});OE(TE(),no);OE(SE(),no)});var PE=O(_i=>{"use strict";var VD=_i&&_i.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),zD=_i&&_i.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&VD(t,o,r)};Object.defineProperty(_i,"__esModule",{value:!0});zD(kE(),_i)});var IE=O(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.LogMessageActivity=void 0;var AE=Bm(),YD=ai(),Ov=class extends YD.ActivityBase{constructor(t,r,e){super(r),this.type=AE.ActivityType.LogMessage,this.name=AE.ActivityType.LogMessage,this.properties=t.properties,this.name=e||this.name}async execute(){let t=this.properties.level||"info";return console[t](`[${this.name} :: ${t}] ${this.properties.message}`,this.properties.data,this.properties.error),{success:!0,data:this.properties}}};Zu.LogMessageActivity=Ov});var xE=O(Pv=>{"use strict";Object.defineProperty(Pv,"__esModule",{value:!0});Pv.ActivityFactory=XD;var KD=ov(),JD=IE(),GD=Ev(),kv=si();function XD(o,t,r){switch(o.type){case kv.ActivityType.HttpRequest:return new KD.HttpRequestActivity(o,t,r);case kv.ActivityType.ScriptExecution:return new GD.ExecuteScriptActivity(o,t,r);case kv.ActivityType.LogMessage:return new JD.LogMessageActivity(o,t,r);default:throw new Error(`Unsupported step type: ${o.type}`)}}});var Oe=O(dr=>{"use strict";var ZD=dr&&dr.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),ds=dr&&dr.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ZD(t,o,r)};Object.defineProperty(dr,"__esModule",{value:!0});ds(yE(),dr);ds(wE(),dr);ds(si(),dr);ds(PE(),dr);ds(Bu(),dr);ds(xE(),dr)});var ME=O(RE=>{"use strict";Object.defineProperty(RE,"__esModule",{value:!0})});var Av=O(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.noopTraceContextProvider=void 0;Qu.noopTraceContextProvider={current:()=>{},runInSpan:(o,t)=>t()}});var jE=O(CE=>{"use strict";Object.defineProperty(CE,"__esModule",{value:!0})});var DE=O(NE=>{"use strict";Object.defineProperty(NE,"__esModule",{value:!0})});var LE=O(Xr=>{"use strict";var QD=Xr&&Xr.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),el=Xr&&Xr.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&QD(t,o,r)};Object.defineProperty(Xr,"__esModule",{value:!0});el(ME(),Xr);el(Av(),Xr);el(jE(),Xr);el(DE(),Xr)});var Ba=O(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.UTC_TIMEZONE_INDICATOR=V.DEFAULT_TIMEZONE_OFFSET=V.OPTIONAL_INT_SVC_PARAMETERS=V.SEMICOLON=V.EXPR_SUFFIX=V.EXPR_PREFIX=V.SOLUTION_RESOURCE_FOLDER_KEY_SUFFIX=V.API_WORKFLOW_SOURCE=V.ORCHESTRATOR_JOBS_ENDPOINT=V.ORCHESTRATOR_QUEUE_ITEMS_ENDPOINT=V.ORCHESTRATOR_CREDENTIALS_ENDPOINT=V.ORCHESTRATOR_ASSETS_ENDPOINT=V.ORCHESTRATOR_JOB_RESOURCE_PREFIX=V.ORCHESTRATOR_QUEUE_ITEMS_RESOURCE_PREFIX=V.ORCHESTRATOR_ASSET_RESOURCE_PREFIX=V.ORCHESTRATOR_CONNECTOR_KEY=V.X_UIPATH_LICENSING_CONTEXT=V.X_UIPATH_IS_DESIGN_API=V.X_UIPATH_FOLDERKEY=V.X_UIPATH_JOB_ID=V.X_UIPATH_JOBKEY=V.X_UIPATH_CONNECTOR_KEY=V.X_UIPATH_ORIGINATOR=V.X_UIPATH_SOURCE=V.X_UIPATH_TRACE_BAGGAGE=V.X_UIPATH_TRACE_VIEW_PARENT_SPAN_ID=V.X_UIPATH_TRACE_VIEW_TRACE_ID=V.X_UIPATH_CORRELATION_ID=V.X_UIPATH_INTERNAL_ORG_ID=V.X_UIPATH_INTERNAL_TENANT_ID=V.X_UIPATH_TRACEPARENT_ID=V.TraceparentHeader=V.BEARER=V.UIPATH_WORKFLOW_RUNTIME_VERSION=V.UIPATH_WORKFLOW_RUNTIME_NAME=V.WORKFLOW_LEVEL_VARIABLES=V.$INPUT=V.$WORKFLOW=V.$CONTEXT=V.ERROR=V.END=V.EXIT=V.INPUT=V.WORKFLOW=V.CONTEXT=V.TASK_INVOKER=V.EXTENSION_TYPE=V.SCRIPT=V.ApiWorkflowJobSource=void 0;V.ApiWorkflowJobSource="UiPath.ApiWorkflow.Executor";V.SCRIPT="script";V.EXTENSION_TYPE="extensionType";V.TASK_INVOKER="taskInvoker";V.CONTEXT="context";V.WORKFLOW="workflow";V.INPUT="input";V.EXIT="exit";V.END="end";V.ERROR="error";V.$CONTEXT="$context";V.$WORKFLOW="$workflow";V.$INPUT="$input";V.WORKFLOW_LEVEL_VARIABLES=[V.$CONTEXT,V.$WORKFLOW,V.$INPUT];V.UIPATH_WORKFLOW_RUNTIME_NAME="UiPath.API.Workflow.Runtime";V.UIPATH_WORKFLOW_RUNTIME_VERSION="1.0.0";V.BEARER="Bearer";V.TraceparentHeader="traceparent";V.X_UIPATH_TRACEPARENT_ID="x-uipath-traceparent-id";V.X_UIPATH_INTERNAL_TENANT_ID="x-uipath-internal-tenantid";V.X_UIPATH_INTERNAL_ORG_ID="x-uipath-internal-orgid";V.X_UIPATH_CORRELATION_ID="x-uipath-correlation-id";V.X_UIPATH_TRACE_VIEW_TRACE_ID="x-uipath-traceview-trace-id";V.X_UIPATH_TRACE_VIEW_PARENT_SPAN_ID="x-uipath-traceview-parent-span-id";V.X_UIPATH_TRACE_BAGGAGE="x-uipath-tracebaggage";V.X_UIPATH_SOURCE="x-uipath-source";V.X_UIPATH_ORIGINATOR="x-uipath-originator";V.X_UIPATH_CONNECTOR_KEY="x-uipath-connector-key";V.X_UIPATH_JOBKEY="x-uipath-jobkey";V.X_UIPATH_JOB_ID="x-uipath-job-id";V.X_UIPATH_FOLDERKEY="x-uipath-folderkey";V.X_UIPATH_IS_DESIGN_API="x-uipath-is-design-api";V.X_UIPATH_LICENSING_CONTEXT="x-uipath-licensing-context";V.ORCHESTRATOR_CONNECTOR_KEY="uipath-uipath-orchestrator";V.ORCHESTRATOR_ASSET_RESOURCE_PREFIX="asset";V.ORCHESTRATOR_QUEUE_ITEMS_RESOURCE_PREFIX="queue";V.ORCHESTRATOR_JOB_RESOURCE_PREFIX="process";V.ORCHESTRATOR_ASSETS_ENDPOINT="/assets";V.ORCHESTRATOR_CREDENTIALS_ENDPOINT="/credentials";V.ORCHESTRATOR_QUEUE_ITEMS_ENDPOINT="/fetch-queueItems";V.ORCHESTRATOR_JOBS_ENDPOINT="/jobs";V.API_WORKFLOW_SOURCE="ApiWorkflow";V.SOLUTION_RESOURCE_FOLDER_KEY_SUFFIX="_folderKey";V.EXPR_PREFIX="${";V.EXPR_SUFFIX="}";V.SEMICOLON=";";V.OPTIONAL_INT_SVC_PARAMETERS=["nextPage"];V.DEFAULT_TIMEZONE_OFFSET="+00:00";V.UTC_TIMEZONE_INDICATOR="Z"});var fr=O(mi=>{"use strict";var eL=mi&&mi.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),tL=mi&&mi.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&eL(t,o,r)};Object.defineProperty(mi,"__esModule",{value:!0});tL(Ba(),mi)});var qE=O(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.ErrorKeys=void 0;tl.ErrorKeys={URL_REQUIRED:"error.http.url_required",INVALID_URL:"error.http.invalid_url",FAILED_HTTP_CALL:"error.http.failed_call",FAILED_HTTP_CALL_TO:"error.http.failed_call_to",HTTP_TASK_CONFIG_INVALID:"error.http.config_invalid",CONNECTION_REQUIRED:"error.intsvc.connection_required",ENDPOINT_REQUIRED:"error.intsvc.endpoint_required",URL_AND_METHOD_REQUIRED:"error.intsvc.url_and_method_required",FAILED_IS_CALL:"error.intsvc.failed_call",FAILED_IS_CALL_TO:"error.intsvc.failed_call_to",VENDOR_FAILURE:"error.intsvc.vendor_failure",DATE_FIELDS_UNRESOLVED:"error.intsvc.date_fields_unresolved",CREDENTIAL_PASSWORD_TOO_SHORT:"error.intsvc.credential_password_too_short",CREDENTIAL_PASSWORD_TOO_COMMON:"error.intsvc.credential_password_too_common",CREDENTIAL_LIMIT_EXCEEDED:"error.intsvc.credential_limit_exceeded",EVENT_ID_PARSE_FAILED:"error.intsvc_event.event_id_parse_failed",DEBUG_NOT_SUPPORTED_TRIGGER:"error.intsvc_event.debug_not_supported_trigger",DEBUG_NOT_SUPPORTED_WORKFLOW:"error.intsvc_event.debug_not_supported_workflow",FAILED_IS_EVENT_CALL:"error.intsvc_event.failed_call",WORKFLOW_EXECUTION_FAILED:"error.workflow.execution_failed",TASK_EXECUTION_FAILED:"error.workflow.task_execution_failed",UNKNOWN_TASK_ERROR:"error.workflow.unknown_task_error",ERROR_HANDLING_TASK:"error.workflow.error_handling_task",NO_DO_TASKS:"error.workflow.no_do_tasks",WORKER_OPERATION_FAILED:"error.expression.worker_operation_failed",WORKER_ERROR:"error.expression.worker_error",EXPRESSION_TIMEOUT:"error.expression.timeout",EXPRESSION_ERROR:"error.expression.evaluation_error",API_NOT_ALLOWED:"error.expression.api_not_allowed",EVAL_NOT_ALLOWED:"error.expression.eval_not_allowed",SCRIPT_TIMEOUT:"error.expression.script_timeout",INVALID_EVAL_MODE:"error.expression.invalid_eval_mode",WORKER_TERMINATED:"error.expression.worker_terminated",JSON_PATCH_UNAVAILABLE:"error.expression.json_patch_unavailable",JSON_PATCH_LOAD_FAILED:"error.expression.json_patch_load_failed",JSON_PATCH_PATH_UNAVAILABLE:"error.expression.json_patch_path_unavailable",TEMPLATE_NON_STRING:"error.expression.template_non_string",GET_CONTEXT_DIFF_NOT_IMPL:"error.expression.get_context_diff_not_impl",GET_WORKFLOW_INPUT_DIFF_NOT_IMPL:"error.expression.get_workflow_input_diff_not_impl",NO_MATCHING_CASE:"error.switch.no_matching_case",INVALID_SWITCH_TRANSITION:"error.switch.invalid_transition",TASK_NOT_FOUND:"error.switch.task_not_found",FAILED_SWITCH_TASK:"error.switch.failed",MISSING_WHEN_CONDITION:"error.switch.missing_when_condition",INVALID_CASE_TRANSITION:"error.switch.invalid_case_transition",NO_SCRIPT_CODE:"error.script.no_code",FAILED_SCRIPT:"error.script.failed",FAILED_CONVERT_BASE64_TO_FILE:"error.convert.from_base64_failed",INVALID_CONVERT_FILE_INPUT:"error.convert.invalid_file_input",MISSING_BASE64_STRING:"error.convert.missing_base64",INVALID_BASE64_STRING:"error.convert.invalid_base64",CONVERT_FILE_TOO_LARGE:"error.convert.file_too_large",FAILED_DOWNLOAD_DATA:"error.convert.download_data_failed",FAILED_SET_TASK:"error.set.failed",UNSUPPORTED_TASK_TYPE:"error.task_invoker.unsupported_type",TASK_NOT_IMPLEMENTED:"error.task_invoker.not_implemented",UNSUPPORTED_TASK_TYPE_DETAIL:"error.task_invoker.unsupported_type_detail",DENO_WORKER_INIT_FAILED:"error.runtime.deno_worker_init_failed",HANDLER_DISPOSED:"error.runtime.handler_disposed",TRACEVIEW_API_FAILED:"error.runtime.traceview_api_failed",TRACEVIEW_SEND_FAILED:"error.runtime.traceview_send_failed",TRACEVIEW_SKIP:"log.traceview.skip",TRACEVIEW_FLUSHING:"log.traceview.flushing",TRACEVIEW_SUCCESS:"log.traceview.success",SOCKET_SERVER_ERROR:"error.runtime.socket_server_error",SOCKET_COMM_FAILED:"error.runtime.socket_comm_failed",WORKFLOW_CONTEXT_REQUIRED:"error.runtime.workflow_context_required",FILE_READ_ERROR:"error.runtime.file_read_error",WORKFLOW_STOPPED_BY_USER:"error.runtime.workflow_stopped_by_user",DEBUG_START_TIMEOUT:"error.runtime.debug_start_timeout",DEBUG_PEER_DISCONNECTED:"error.runtime.debug_peer_disconnected",RETRY_POLICY_NOT_FOUND:"error.try.retry_policy_not_found",INVALID_RETRY_POLICY:"error.try.invalid_retry_policy",INTERNAL_ERROR:"error.generic.internal_error"}});var FE=O((zQ,rL)=>{rL.exports={"error.http.url_required":"URL is required and cannot be empty","error.http.invalid_url":"Invalid or incomplete Web URL: {{url}}","error.http.failed_call":"Failed to execute HTTP call","error.http.failed_call_to":"Failed to execute HTTP call to {{endpoint}}","error.http.config_invalid":"Incorrect configuration for HTTP task received. System endpoint and/or bodyParameters missing for: {{taskName}}","error.intsvc.connection_required":"Connection is required for this task: {{taskName}}","error.intsvc.endpoint_required":"Endpoint is required for this task: {{taskName}}. Please check the task configuration.","error.intsvc.url_and_method_required":"Request URL and method are required for this task: {{taskName}}","error.intsvc.failed_call":"Failed to execute IS call","error.intsvc.failed_call_to":"Failed to execute IS call to {{endpoint}}","error.intsvc.vendor_failure":"Received failure from vendor system on API - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"Could not parse processedEventId from UiPathAdditionalEventData","error.intsvc_event.debug_not_supported_trigger":"Debug is not supported for this trigger. Please, publish the project to retrieve the events and trigger the workflow automatically.","error.intsvc_event.debug_not_supported_workflow":"Debug is not supported for this trigger workflow.","error.intsvc_event.failed_call":"Failed to execute IS Event call","error.workflow.execution_failed":"Workflow execution failed","error.workflow.task_execution_failed":"Task execution failed","error.workflow.unknown_task_error":"Unknown error while executing task '{{taskName}}'","error.workflow.error_handling_task":"Error handling task, task: {{taskName}}","error.workflow.no_do_tasks":"No do tasks found in workflow","error.expression.worker_operation_failed":"Worker operation failed","error.expression.worker_error":"Worker error occurred","error.expression.timeout":"{{operation}} timed out","error.expression.evaluation_error":"An error has occurred while evaluating an expression","error.expression.api_not_allowed":"{{api}} is not allowed in expressions and scripts","error.expression.eval_not_allowed":"eval is not allowed in expressions and scripts","error.expression.script_timeout":"Script execution timed out after {{timeoutMs}}ms","error.expression.invalid_eval_mode":"No valid evaluation mode was provided to worker: {{mode}}","error.expression.worker_terminated":"Worker terminated during cleanup","error.expression.json_patch_unavailable":"fast-json-patch.compare function not available","error.expression.json_patch_load_failed":"Failed to load fast-json-patch in browser worker","error.expression.json_patch_path_unavailable":"globalThis.fastJsonPatchPath not available in browser","error.expression.template_non_string":"Template string {{template}} resolved to a non-string value: {{value}}","error.expression.get_context_diff_not_impl":"getContextDiff is not implemented in {{handler}}","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff is not implemented in {{handler}}","error.switch.no_matching_case":"No matching case found for Switch task '{{taskName}}'","error.switch.invalid_transition":"Invalid transition for Switch task '{{taskName}}': Next step '{{nextStep}}' not found","error.switch.task_not_found":"Task '{{taskName}}' not found in the current level task list","error.switch.failed":"Failed to execute Switch task: {{taskName}}","error.switch.missing_when_condition":"Missing 'when' condition in switch case: '{{caseName}}'","error.switch.invalid_case_transition":"Invalid switch case transition for step '{{stepName}}': Case '{{caseName}}' has no valid 'then' transition.","error.script.no_code":"No code found for script task: {{taskName}}","error.script.failed":"Failed to execute script","error.convert.from_base64_failed":"Failed to convert file from base64: {{taskName}}","error.convert.invalid_file_input":"Expected a file reference as input for the file conversion: {{taskName}} (received: {{received}})","error.convert.missing_base64":"Convert File from Base64 requires a non-empty base64 string: {{taskName}}","error.convert.invalid_base64":"The provided value is not a valid base64 string: {{taskName}}","error.convert.file_too_large":"File exceeds the maximum supported size of {{maxMb}} MB for base64 conversion","error.convert.download_data_failed":"Failed to read the contents of the file reference: {{taskName}}","error.set.failed":"Failed to execute Set task: {{taskName}}","error.task_invoker.unsupported_type":"Unsupported task type","error.task_invoker.not_implemented":"Task Not Implemented: {{taskName}}","error.task_invoker.unsupported_type_detail":"Unsupported task type: {{taskType}}","error.runtime.deno_worker_init_failed":"Failed to initialize Deno Worker","error.runtime.handler_disposed":"Handler disposed","error.runtime.traceview_api_failed":"TraceView API failed, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{status}} {{statusText}}","error.runtime.traceview_send_failed":"Failed to send spans to trace view, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{errorMessage}}","log.traceview.skip":"TraceViewLogger: {{reason}}","log.traceview.flushing":"TraceViewLogger: Flushing {{count}} spans to trace view...","log.traceview.success":"TraceViewLogger: Updated {{count}} spans to trace view. TraceId: {{traceId}}, JobKey: {{jobKey}}","error.runtime.socket_server_error":"Socket Server returned error: HTTP {{status}}: {{statusText}}","error.runtime.socket_comm_failed":"Socket communication failed: {{errorMessage}}","error.runtime.workflow_context_required":"Workflow context is required","error.runtime.file_read_error":"Error reading file {{filePath}}","error.runtime.workflow_stopped_by_user":"Workflow stopped by user request","error.runtime.debug_start_timeout":"Debug session aborted: did not receive Start command from the designer within {{timeoutMs}}ms","error.runtime.debug_peer_disconnected":"Debug session disconnected.","error.try.retry_policy_not_found":"Retry policy '{{policyName}}' referenced by task '{{taskName}}' is not defined in the workflow's 'use.retries' section","error.try.invalid_retry_policy":"Invalid retry policy on task '{{taskName}}': {{reason}}","error.generic.internal_error":"An internal error occurred"}});var WE=O((YQ,nL)=>{nL.exports={"error.http.url_required":"URL ist erforderlich und darf nicht leer sein","error.http.invalid_url":"Ung\xFCltige oder unvollst\xE4ndige Web-URL: {{url}}","error.http.failed_call":"HTTP-Aufruf konnte nicht ausgef\xFChrt werden","error.http.failed_call_to":"HTTP-Aufruf an {{endpoint}} konnte nicht ausgef\xFChrt werden","error.http.config_invalid":"Ung\xFCltige Konfiguration f\xFCr HTTP-Aufgabe erhalten. Systemendpunkt und/oder bodyParameters fehlen f\xFCr: {{taskName}}","error.intsvc.connection_required":"Verbindung ist f\xFCr diese Aufgabe erforderlich: {{taskName}}","error.intsvc.endpoint_required":"Endpunkt ist f\xFCr diese Aufgabe erforderlich: {{taskName}}. Bitte \xFCberpr\xFCfen Sie die Aufgabenkonfiguration.","error.intsvc.url_and_method_required":"Anfrage-URL und Methode sind f\xFCr diese Aufgabe erforderlich: {{taskName}}","error.intsvc.failed_call":"IS-Aufruf konnte nicht ausgef\xFChrt werden","error.intsvc.failed_call_to":"IS-Aufruf an {{endpoint}} konnte nicht ausgef\xFChrt werden","error.intsvc.vendor_failure":"Fehler vom Anbietersystem bei API empfangen - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"processedEventId konnte nicht aus UiPathAdditionalEventData analysiert werden","error.intsvc_event.debug_not_supported_trigger":"Debug wird f\xFCr diesen Trigger nicht unterst\xFCtzt. Bitte ver\xF6ffentlichen Sie das Projekt, um die Ereignisse abzurufen und den Workflow automatisch auszul\xF6sen.","error.intsvc_event.debug_not_supported_workflow":"Debug wird f\xFCr diesen Trigger-Workflow nicht unterst\xFCtzt.","error.intsvc_event.failed_call":"IS-Ereignisaufruf konnte nicht ausgef\xFChrt werden","error.workflow.execution_failed":"Workflow-Ausf\xFChrung fehlgeschlagen","error.workflow.task_execution_failed":"Aufgabenausf\xFChrung fehlgeschlagen","error.workflow.unknown_task_error":"Unbekannter Fehler beim Ausf\xFChren der Aufgabe '{{taskName}}'","error.workflow.error_handling_task":"Fehler bei der Verarbeitung der Aufgabe: {{taskName}}","error.workflow.no_do_tasks":"Keine do-Aufgaben im Workflow gefunden","error.expression.worker_operation_failed":"Worker-Operation fehlgeschlagen","error.expression.worker_error":"Worker-Fehler aufgetreten","error.expression.timeout":"{{operation}} Zeit\xFCberschreitung","error.expression.evaluation_error":"Bei der Auswertung eines Ausdrucks ist ein Fehler aufgetreten","error.expression.api_not_allowed":"{{api}} ist in Ausdr\xFCcken und Skripten nicht erlaubt","error.expression.eval_not_allowed":"eval ist in Ausdr\xFCcken und Skripten nicht erlaubt","error.expression.script_timeout":"Skriptausf\xFChrung nach {{timeoutMs}}ms abgelaufen","error.expression.invalid_eval_mode":"Kein g\xFCltiger Auswertungsmodus wurde an Worker \xFCbergeben: {{mode}}","error.expression.worker_terminated":"Worker w\xE4hrend der Bereinigung beendet","error.expression.json_patch_unavailable":"fast-json-patch.compare Funktion nicht verf\xFCgbar","error.expression.json_patch_load_failed":"fast-json-patch konnte im Browser-Worker nicht geladen werden","error.expression.json_patch_path_unavailable":"globalThis.fastJsonPatchPath im Browser nicht verf\xFCgbar","error.expression.template_non_string":"Template-String {{template}} wurde zu einem Nicht-String-Wert aufgel\xF6st: {{value}}","error.expression.get_context_diff_not_impl":"getContextDiff ist in {{handler}} nicht implementiert","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff ist in {{handler}} nicht implementiert","error.switch.no_matching_case":"Kein passender Fall f\xFCr Switch-Aufgabe '{{taskName}}' gefunden","error.switch.invalid_transition":"Ung\xFCltiger \xDCbergang f\xFCr Switch-Aufgabe '{{taskName}}': N\xE4chster Schritt '{{nextStep}}' nicht gefunden","error.switch.task_not_found":"Aufgabe '{{taskName}}' nicht in der aktuellen Ebene der Aufgabenliste gefunden","error.switch.failed":"Switch-Aufgabe konnte nicht ausgef\xFChrt werden: {{taskName}}","error.switch.missing_when_condition":"Fehlende 'when'-Bedingung im Switch-Fall: '{{caseName}}'","error.switch.invalid_case_transition":"Ung\xFCltiger Switch-Fall-\xDCbergang f\xFCr Schritt '{{stepName}}': Fall '{{caseName}}' hat keinen g\xFCltigen 'then'-\xDCbergang.","error.script.no_code":"Kein Code f\xFCr Skriptaufgabe gefunden: {{taskName}}","error.script.failed":"Skriptausf\xFChrung fehlgeschlagen","error.set.failed":"Set-Aufgabe konnte nicht ausgef\xFChrt werden: {{taskName}}","error.task_invoker.unsupported_type":"Nicht unterst\xFCtzter Aufgabentyp","error.task_invoker.not_implemented":"Aufgabe nicht implementiert: {{taskName}}","error.task_invoker.unsupported_type_detail":"Nicht unterst\xFCtzter Aufgabentyp: {{taskType}}","error.runtime.deno_worker_init_failed":"Deno Worker konnte nicht initialisiert werden","error.runtime.handler_disposed":"Handler wurde verworfen","error.runtime.traceview_api_failed":"TraceView API fehlgeschlagen, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{status}} {{statusText}}","error.runtime.traceview_send_failed":"Spans konnten nicht an TraceView gesendet werden, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{errorMessage}}","log.traceview.skip":"TraceViewLogger: {{reason}}","log.traceview.flushing":"TraceViewLogger: {{count}} Spans werden an TraceView gesendet...","log.traceview.success":"TraceViewLogger: {{count}} Spans an TraceView aktualisiert. TraceId: {{traceId}}, JobKey: {{jobKey}}","error.runtime.socket_server_error":"Socket-Server hat Fehler zur\xFCckgegeben: HTTP {{status}}: {{statusText}}","error.runtime.socket_comm_failed":"Socket-Kommunikation fehlgeschlagen: {{errorMessage}}","error.runtime.workflow_context_required":"Workflow-Kontext ist erforderlich","error.runtime.file_read_error":"Fehler beim Lesen der Datei {{filePath}}","error.generic.internal_error":"Ein interner Fehler ist aufgetreten"}});var UE=O((KQ,oL)=>{oL.exports={"error.http.url_required":"L'URL est requise et ne peut pas \xEAtre vide","error.http.invalid_url":"URL Web invalide ou incompl\xE8te : {{url}}","error.http.failed_call":"\xC9chec de l'ex\xE9cution de l'appel HTTP","error.http.failed_call_to":"\xC9chec de l'ex\xE9cution de l'appel HTTP vers {{endpoint}}","error.http.config_invalid":"Configuration incorrecte re\xE7ue pour la t\xE2che HTTP. Point de terminaison syst\xE8me et/ou bodyParameters manquants pour : {{taskName}}","error.intsvc.connection_required":"La connexion est requise pour cette t\xE2che : {{taskName}}","error.intsvc.endpoint_required":"Le point de terminaison est requis pour cette t\xE2che : {{taskName}}. Veuillez v\xE9rifier la configuration de la t\xE2che.","error.intsvc.url_and_method_required":"L'URL et la m\xE9thode de requ\xEAte sont requises pour cette t\xE2che : {{taskName}}","error.intsvc.failed_call":"\xC9chec de l'ex\xE9cution de l'appel IS","error.intsvc.failed_call_to":"\xC9chec de l'ex\xE9cution de l'appel IS vers {{endpoint}}","error.intsvc.vendor_failure":"\xC9chec re\xE7u du syst\xE8me fournisseur sur l'API - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"Impossible d'analyser processedEventId depuis UiPathAdditionalEventData","error.intsvc_event.debug_not_supported_trigger":"Le d\xE9bogage n'est pas pris en charge pour ce d\xE9clencheur. Veuillez publier le projet pour r\xE9cup\xE9rer les \xE9v\xE9nements et d\xE9clencher le workflow automatiquement.","error.intsvc_event.debug_not_supported_workflow":"Le d\xE9bogage n'est pas pris en charge pour ce workflow de d\xE9clencheur.","error.intsvc_event.failed_call":"\xC9chec de l'ex\xE9cution de l'appel d'\xE9v\xE9nement IS","error.workflow.execution_failed":"\xC9chec de l'ex\xE9cution du workflow","error.workflow.task_execution_failed":"\xC9chec de l'ex\xE9cution de la t\xE2che","error.workflow.unknown_task_error":"Erreur inconnue lors de l'ex\xE9cution de la t\xE2che '{{taskName}}'","error.workflow.error_handling_task":"Erreur lors du traitement de la t\xE2che : {{taskName}}","error.workflow.no_do_tasks":"Aucune t\xE2che do trouv\xE9e dans le workflow","error.expression.worker_operation_failed":"\xC9chec de l'op\xE9ration du Worker","error.expression.worker_error":"Erreur du Worker survenue","error.expression.timeout":"{{operation}} a expir\xE9","error.expression.evaluation_error":"Une erreur s'est produite lors de l'\xE9valuation d'une expression","error.expression.api_not_allowed":"{{api}} n'est pas autoris\xE9 dans les expressions et les scripts","error.expression.eval_not_allowed":"eval n'est pas autoris\xE9 dans les expressions et les scripts","error.expression.script_timeout":"L'ex\xE9cution du script a expir\xE9 apr\xE8s {{timeoutMs}}ms","error.expression.invalid_eval_mode":"Aucun mode d'\xE9valuation valide n'a \xE9t\xE9 fourni au worker : {{mode}}","error.expression.worker_terminated":"Worker termin\xE9 pendant le nettoyage","error.expression.json_patch_unavailable":"La fonction fast-json-patch.compare n'est pas disponible","error.expression.json_patch_load_failed":"\xC9chec du chargement de fast-json-patch dans le worker du navigateur","error.expression.json_patch_path_unavailable":"globalThis.fastJsonPatchPath n'est pas disponible dans le navigateur","error.expression.template_non_string":"La cha\xEEne de mod\xE8le {{template}} a \xE9t\xE9 r\xE9solue en une valeur non-cha\xEEne : {{value}}","error.expression.get_context_diff_not_impl":"getContextDiff n'est pas impl\xE9ment\xE9 dans {{handler}}","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff n'est pas impl\xE9ment\xE9 dans {{handler}}","error.switch.no_matching_case":"Aucun cas correspondant trouv\xE9 pour la t\xE2che Switch '{{taskName}}'","error.switch.invalid_transition":"Transition invalide pour la t\xE2che Switch '{{taskName}}' : \xC9tape suivante '{{nextStep}}' non trouv\xE9e","error.switch.task_not_found":"T\xE2che '{{taskName}}' non trouv\xE9e dans la liste des t\xE2ches du niveau actuel","error.switch.failed":"\xC9chec de l'ex\xE9cution de la t\xE2che Switch : {{taskName}}","error.switch.missing_when_condition":"Condition 'when' manquante dans le cas switch : '{{caseName}}'","error.switch.invalid_case_transition":"Transition de cas switch invalide pour l'\xE9tape '{{stepName}}' : Le cas '{{caseName}}' n'a pas de transition 'then' valide.","error.script.no_code":"Aucun code trouv\xE9 pour la t\xE2che de script : {{taskName}}","error.script.failed":"\xC9chec de l'ex\xE9cution du script","error.set.failed":"\xC9chec de l'ex\xE9cution de la t\xE2che Set : {{taskName}}","error.task_invoker.unsupported_type":"Type de t\xE2che non pris en charge","error.task_invoker.not_implemented":"T\xE2che non impl\xE9ment\xE9e : {{taskName}}","error.task_invoker.unsupported_type_detail":"Type de t\xE2che non pris en charge : {{taskType}}","error.runtime.deno_worker_init_failed":"\xC9chec de l'initialisation du Deno Worker","error.runtime.handler_disposed":"Handler supprim\xE9","error.runtime.traceview_api_failed":"\xC9chec de l'API TraceView, TraceId : {{traceId}}, JobKey : {{jobKey}} : {{status}} {{statusText}}","error.runtime.traceview_send_failed":"\xC9chec de l'envoi des spans \xE0 TraceView, TraceId : {{traceId}}, JobKey : {{jobKey}} : {{errorMessage}}","log.traceview.skip":"TraceViewLogger : {{reason}}","log.traceview.flushing":"TraceViewLogger : Envoi de {{count}} spans \xE0 TraceView...","log.traceview.success":"TraceViewLogger : {{count}} spans mis \xE0 jour dans TraceView. TraceId : {{traceId}}, JobKey : {{jobKey}}","error.runtime.socket_server_error":"Le serveur Socket a renvoy\xE9 une erreur : HTTP {{status}} : {{statusText}}","error.runtime.socket_comm_failed":"\xC9chec de la communication Socket : {{errorMessage}}","error.runtime.workflow_context_required":"Le contexte du workflow est requis","error.runtime.file_read_error":"Erreur lors de la lecture du fichier {{filePath}}","error.generic.internal_error":"Une erreur interne s'est produite"}});var $E=O((JQ,iL)=>{iL.exports={"error.http.url_required":"URL\u306F\u5FC5\u9808\u3067\u3042\u308A\u3001\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093","error.http.invalid_url":"\u7121\u52B9\u307E\u305F\u306F\u4E0D\u5B8C\u5168\u306AWeb URL: {{url}}","error.http.failed_call":"HTTP\u547C\u3073\u51FA\u3057\u306E\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F","error.http.failed_call_to":"{{endpoint}}\u3078\u306EHTTP\u547C\u3073\u51FA\u3057\u306E\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F","error.http.config_invalid":"HTTP\u30BF\u30B9\u30AF\u306E\u8A2D\u5B9A\u304C\u6B63\u3057\u304F\u3042\u308A\u307E\u305B\u3093\u3002\u30B7\u30B9\u30C6\u30E0\u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8\u304A\u3088\u3073/\u307E\u305F\u306FbodyParameters\u304C\u4E0D\u8DB3\u3057\u3066\u3044\u307E\u3059: {{taskName}}","error.intsvc.connection_required":"\u3053\u306E\u30BF\u30B9\u30AF\u306B\u306F\u63A5\u7D9A\u304C\u5FC5\u8981\u3067\u3059: {{taskName}}","error.intsvc.endpoint_required":"\u3053\u306E\u30BF\u30B9\u30AF\u306B\u306F\u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8\u304C\u5FC5\u8981\u3067\u3059: {{taskName}}\u3002\u30BF\u30B9\u30AF\u8A2D\u5B9A\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002","error.intsvc.url_and_method_required":"\u3053\u306E\u30BF\u30B9\u30AF\u306B\u306F\u30EA\u30AF\u30A8\u30B9\u30C8URL\u3068\u30E1\u30BD\u30C3\u30C9\u304C\u5FC5\u8981\u3067\u3059: {{taskName}}","error.intsvc.failed_call":"IS\u547C\u3073\u51FA\u3057\u306E\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F","error.intsvc.failed_call_to":"{{endpoint}}\u3078\u306EIS\u547C\u3073\u51FA\u3057\u306E\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F","error.intsvc.vendor_failure":"\u30D9\u30F3\u30C0\u30FC\u30B7\u30B9\u30C6\u30E0\u304B\u3089API\u3067\u30A8\u30E9\u30FC\u3092\u53D7\u4FE1\u3057\u307E\u3057\u305F - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"UiPathAdditionalEventData\u304B\u3089processedEventId\u3092\u89E3\u6790\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F","error.intsvc_event.debug_not_supported_trigger":"\u3053\u306E\u30C8\u30EA\u30AC\u30FC\u3067\u306F\u30C7\u30D0\u30C3\u30B0\u306F\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u516C\u958B\u3057\u3066\u30A4\u30D9\u30F3\u30C8\u3092\u53D6\u5F97\u3057\u3001\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u81EA\u52D5\u7684\u306B\u30C8\u30EA\u30AC\u30FC\u3057\u3066\u304F\u3060\u3055\u3044\u3002","error.intsvc_event.debug_not_supported_workflow":"\u3053\u306E\u30C8\u30EA\u30AC\u30FC\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3067\u306F\u30C7\u30D0\u30C3\u30B0\u306F\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002","error.intsvc_event.failed_call":"IS\u30A4\u30D9\u30F3\u30C8\u547C\u3073\u51FA\u3057\u306E\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F","error.workflow.execution_failed":"\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F","error.workflow.task_execution_failed":"\u30BF\u30B9\u30AF\u306E\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F","error.workflow.unknown_task_error":"\u30BF\u30B9\u30AF '{{taskName}}' \u306E\u5B9F\u884C\u4E2D\u306B\u4E0D\u660E\u306A\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F","error.workflow.error_handling_task":"\u30BF\u30B9\u30AF\u51E6\u7406\u4E2D\u306E\u30A8\u30E9\u30FC: {{taskName}}","error.workflow.no_do_tasks":"\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306Bdo\u30BF\u30B9\u30AF\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093","error.expression.worker_operation_failed":"Worker\u64CD\u4F5C\u306B\u5931\u6557\u3057\u307E\u3057\u305F","error.expression.worker_error":"Worker\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F","error.expression.timeout":"{{operation}}\u304C\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F","error.expression.evaluation_error":"\u5F0F\u306E\u8A55\u4FA1\u4E2D\u306B\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F","error.expression.api_not_allowed":"{{api}}\u306F\u5F0F\u3068\u30B9\u30AF\u30EA\u30D7\u30C8\u3067\u8A31\u53EF\u3055\u308C\u3066\u3044\u307E\u305B\u3093","error.expression.eval_not_allowed":"eval\u306F\u5F0F\u3068\u30B9\u30AF\u30EA\u30D7\u30C8\u3067\u8A31\u53EF\u3055\u308C\u3066\u3044\u307E\u305B\u3093","error.expression.script_timeout":"\u30B9\u30AF\u30EA\u30D7\u30C8\u306E\u5B9F\u884C\u304C{{timeoutMs}}\u30DF\u30EA\u79D2\u5F8C\u306B\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F","error.expression.invalid_eval_mode":"\u30EF\u30FC\u30AB\u30FC\u306B\u6709\u52B9\u306A\u8A55\u4FA1\u30E2\u30FC\u30C9\u304C\u63D0\u4F9B\u3055\u308C\u3066\u3044\u307E\u305B\u3093: {{mode}}","error.expression.worker_terminated":"\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u4E2D\u306BWorker\u304C\u7D42\u4E86\u3057\u307E\u3057\u305F","error.expression.json_patch_unavailable":"fast-json-patch.compare\u95A2\u6570\u304C\u5229\u7528\u3067\u304D\u307E\u305B\u3093","error.expression.json_patch_load_failed":"\u30D6\u30E9\u30A6\u30B6\u30EF\u30FC\u30AB\u30FC\u3067fast-json-patch\u306E\u8AAD\u307F\u8FBC\u307F\u306B\u5931\u6557\u3057\u307E\u3057\u305F","error.expression.json_patch_path_unavailable":"\u30D6\u30E9\u30A6\u30B6\u3067globalThis.fastJsonPatchPath\u304C\u5229\u7528\u3067\u304D\u307E\u305B\u3093","error.expression.template_non_string":"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u6587\u5B57\u5217 {{template}} \u304C\u975E\u6587\u5B57\u5217\u5024\u306B\u89E3\u6C7A\u3055\u308C\u307E\u3057\u305F: {{value}}","error.expression.get_context_diff_not_impl":"getContextDiff\u306F{{handler}}\u3067\u5B9F\u88C5\u3055\u308C\u3066\u3044\u307E\u305B\u3093","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff\u306F{{handler}}\u3067\u5B9F\u88C5\u3055\u308C\u3066\u3044\u307E\u305B\u3093","error.switch.no_matching_case":"Switch\u30BF\u30B9\u30AF '{{taskName}}' \u306B\u4E00\u81F4\u3059\u308B\u30B1\u30FC\u30B9\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093","error.switch.invalid_transition":"Switch\u30BF\u30B9\u30AF '{{taskName}}' \u306E\u7121\u52B9\u306A\u9077\u79FB: \u6B21\u306E\u30B9\u30C6\u30C3\u30D7 '{{nextStep}}' \u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093","error.switch.task_not_found":"\u30BF\u30B9\u30AF '{{taskName}}' \u304C\u73FE\u5728\u306E\u30EC\u30D9\u30EB\u306E\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\u306B\u898B\u3064\u304B\u308A\u307E\u305B\u3093","error.switch.failed":"Switch\u30BF\u30B9\u30AF\u306E\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {{taskName}}","error.switch.missing_when_condition":"\u30B9\u30A4\u30C3\u30C1\u30B1\u30FC\u30B9\u306B'when'\u6761\u4EF6\u304C\u3042\u308A\u307E\u305B\u3093: '{{caseName}}'","error.switch.invalid_case_transition":"\u30B9\u30C6\u30C3\u30D7 '{{stepName}}' \u306E\u30B9\u30A4\u30C3\u30C1\u30B1\u30FC\u30B9\u9077\u79FB\u304C\u7121\u52B9\u3067\u3059: \u30B1\u30FC\u30B9 '{{caseName}}' \u306B\u6709\u52B9\u306A 'then' \u9077\u79FB\u304C\u3042\u308A\u307E\u305B\u3093\u3002","error.script.no_code":"\u30B9\u30AF\u30EA\u30D7\u30C8\u30BF\u30B9\u30AF\u306B\u30B3\u30FC\u30C9\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093: {{taskName}}","error.script.failed":"\u30B9\u30AF\u30EA\u30D7\u30C8\u306E\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F","error.set.failed":"Set\u30BF\u30B9\u30AF\u306E\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {{taskName}}","error.task_invoker.unsupported_type":"\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u306A\u3044\u30BF\u30B9\u30AF\u30BF\u30A4\u30D7","error.task_invoker.not_implemented":"\u30BF\u30B9\u30AF\u304C\u5B9F\u88C5\u3055\u308C\u3066\u3044\u307E\u305B\u3093: {{taskName}}","error.task_invoker.unsupported_type_detail":"\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u306A\u3044\u30BF\u30B9\u30AF\u30BF\u30A4\u30D7: {{taskType}}","error.runtime.deno_worker_init_failed":"Deno Worker\u306E\u521D\u671F\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F","error.runtime.handler_disposed":"\u30CF\u30F3\u30C9\u30E9\u30FC\u304C\u7834\u68C4\u3055\u308C\u307E\u3057\u305F","error.runtime.traceview_api_failed":"TraceView API\u304C\u5931\u6557\u3057\u307E\u3057\u305F\u3001TraceId: {{traceId}}\u3001JobKey: {{jobKey}}: {{status}} {{statusText}}","error.runtime.traceview_send_failed":"TraceView\u3078\u306E\u30B9\u30D1\u30F3\u306E\u9001\u4FE1\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3001TraceId: {{traceId}}\u3001JobKey: {{jobKey}}: {{errorMessage}}","log.traceview.skip":"TraceViewLogger: {{reason}}","log.traceview.flushing":"TraceViewLogger: {{count}}\u500B\u306E\u30B9\u30D1\u30F3\u3092TraceView\u306B\u9001\u4FE1\u4E2D...","log.traceview.success":"TraceViewLogger: {{count}}\u500B\u306E\u30B9\u30D1\u30F3\u3092TraceView\u306B\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002TraceId: {{traceId}}\u3001JobKey: {{jobKey}}","error.runtime.socket_server_error":"\u30BD\u30B1\u30C3\u30C8\u30B5\u30FC\u30D0\u30FC\u304C\u30A8\u30E9\u30FC\u3092\u8FD4\u3057\u307E\u3057\u305F: HTTP {{status}}: {{statusText}}","error.runtime.socket_comm_failed":"\u30BD\u30B1\u30C3\u30C8\u901A\u4FE1\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {{errorMessage}}","error.runtime.workflow_context_required":"\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u304C\u5FC5\u8981\u3067\u3059","error.runtime.file_read_error":"\u30D5\u30A1\u30A4\u30EB {{filePath}} \u306E\u8AAD\u307F\u53D6\u308A\u30A8\u30E9\u30FC","error.generic.internal_error":"\u5185\u90E8\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F"}});var BE=O((GQ,sL)=>{sL.exports={"error.http.url_required":"URL\uC740 \uD544\uC218\uC774\uBA70 \uBE44\uC6CC\uB458 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4","error.http.invalid_url":"\uC720\uD6A8\uD558\uC9C0 \uC54A\uAC70\uB098 \uBD88\uC644\uC804\uD55C \uC6F9 URL: {{url}}","error.http.failed_call":"HTTP \uD638\uCD9C \uC2E4\uD589\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4","error.http.failed_call_to":"{{endpoint}}\uC5D0 \uB300\uD55C HTTP \uD638\uCD9C \uC2E4\uD589\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4","error.http.config_invalid":"HTTP \uC791\uC5C5\uC5D0 \uB300\uD574 \uC798\uBABB\uB41C \uAD6C\uC131\uC744 \uBC1B\uC558\uC2B5\uB2C8\uB2E4. \uC2DC\uC2A4\uD15C \uC5D4\uB4DC\uD3EC\uC778\uD2B8 \uBC0F/\uB610\uB294 bodyParameters\uAC00 \uB204\uB77D\uB418\uC5C8\uC2B5\uB2C8\uB2E4: {{taskName}}","error.intsvc.connection_required":"\uC774 \uC791\uC5C5\uC5D0\uB294 \uC5F0\uACB0\uC774 \uD544\uC694\uD569\uB2C8\uB2E4: {{taskName}}","error.intsvc.endpoint_required":"\uC774 \uC791\uC5C5\uC5D0\uB294 \uC5D4\uB4DC\uD3EC\uC778\uD2B8\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4: {{taskName}}. \uC791\uC5C5 \uAD6C\uC131\uC744 \uD655\uC778\uD558\uC138\uC694.","error.intsvc.url_and_method_required":"\uC774 \uC791\uC5C5\uC5D0\uB294 \uC694\uCCAD URL\uACFC \uBA54\uC11C\uB4DC\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4: {{taskName}}","error.intsvc.failed_call":"IS \uD638\uCD9C \uC2E4\uD589\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4","error.intsvc.failed_call_to":"{{endpoint}}\uC5D0 \uB300\uD55C IS \uD638\uCD9C \uC2E4\uD589\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4","error.intsvc.vendor_failure":"\uBCA4\uB354 \uC2DC\uC2A4\uD15C\uC5D0\uC11C API \uC624\uB958\uB97C \uC218\uC2E0\uD588\uC2B5\uB2C8\uB2E4 - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"UiPathAdditionalEventData\uC5D0\uC11C processedEventId\uB97C \uAD6C\uBB38 \uBD84\uC11D\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4","error.intsvc_event.debug_not_supported_trigger":"\uC774 \uD2B8\uB9AC\uAC70\uC5D0\uC11C\uB294 \uB514\uBC84\uADF8\uAC00 \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uD504\uB85C\uC81D\uD2B8\uB97C \uAC8C\uC2DC\uD558\uC5EC \uC774\uBCA4\uD2B8\uB97C \uAC00\uC838\uC624\uACE0 \uC6CC\uD06C\uD50C\uB85C\uB97C \uC790\uB3D9\uC73C\uB85C \uD2B8\uB9AC\uAC70\uD558\uC138\uC694.","error.intsvc_event.debug_not_supported_workflow":"\uC774 \uD2B8\uB9AC\uAC70 \uC6CC\uD06C\uD50C\uB85C\uC5D0\uC11C\uB294 \uB514\uBC84\uADF8\uAC00 \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","error.intsvc_event.failed_call":"IS \uC774\uBCA4\uD2B8 \uD638\uCD9C \uC2E4\uD589\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4","error.workflow.execution_failed":"\uC6CC\uD06C\uD50C\uB85C \uC2E4\uD589\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4","error.workflow.task_execution_failed":"\uC791\uC5C5 \uC2E4\uD589\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4","error.workflow.unknown_task_error":"\uC791\uC5C5 '{{taskName}}' \uC2E4\uD589 \uC911 \uC54C \uC218 \uC5C6\uB294 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4","error.workflow.error_handling_task":"\uC791\uC5C5 \uCC98\uB9AC \uC911 \uC624\uB958: {{taskName}}","error.workflow.no_do_tasks":"\uC6CC\uD06C\uD50C\uB85C\uC5D0\uC11C do \uC791\uC5C5\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4","error.expression.worker_operation_failed":"Worker \uC791\uC5C5\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4","error.expression.worker_error":"Worker \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4","error.expression.timeout":"{{operation}} \uC2DC\uAC04 \uCD08\uACFC","error.expression.evaluation_error":"\uD45C\uD604\uC2DD \uD3C9\uAC00 \uC911 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4","error.expression.api_not_allowed":"{{api}}\uC740(\uB294) \uD45C\uD604\uC2DD \uBC0F \uC2A4\uD06C\uB9BD\uD2B8\uC5D0\uC11C \uD5C8\uC6A9\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4","error.expression.eval_not_allowed":"eval\uC740 \uD45C\uD604\uC2DD \uBC0F \uC2A4\uD06C\uB9BD\uD2B8\uC5D0\uC11C \uD5C8\uC6A9\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4","error.expression.script_timeout":"\uC2A4\uD06C\uB9BD\uD2B8 \uC2E4\uD589\uC774 {{timeoutMs}}ms \uD6C4 \uC2DC\uAC04 \uCD08\uACFC\uB418\uC5C8\uC2B5\uB2C8\uB2E4","error.expression.invalid_eval_mode":"\uC6CC\uCEE4\uC5D0 \uC720\uD6A8\uD55C \uD3C9\uAC00 \uBAA8\uB4DC\uAC00 \uC81C\uACF5\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4: {{mode}}","error.expression.worker_terminated":"\uC815\uB9AC \uC911 Worker\uAC00 \uC885\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4","error.expression.json_patch_unavailable":"fast-json-patch.compare \uD568\uC218\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4","error.expression.json_patch_load_failed":"\uBE0C\uB77C\uC6B0\uC800 \uC6CC\uCEE4\uC5D0\uC11C fast-json-patch\uB97C \uB85C\uB4DC\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4","error.expression.json_patch_path_unavailable":"\uBE0C\uB77C\uC6B0\uC800\uC5D0\uC11C globalThis.fastJsonPatchPath\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4","error.expression.template_non_string":"\uD15C\uD50C\uB9BF \uBB38\uC790\uC5F4 {{template}}\uC774(\uAC00) \uBE44\uBB38\uC790\uC5F4 \uAC12\uC73C\uB85C \uD574\uACB0\uB418\uC5C8\uC2B5\uB2C8\uB2E4: {{value}}","error.expression.get_context_diff_not_impl":"getContextDiff\uAC00 {{handler}}\uC5D0\uC11C \uAD6C\uD604\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff\uAC00 {{handler}}\uC5D0\uC11C \uAD6C\uD604\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4","error.switch.no_matching_case":"Switch \uC791\uC5C5 '{{taskName}}'\uC5D0 \uB300\uD574 \uC77C\uCE58\uD558\uB294 \uCF00\uC774\uC2A4\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4","error.switch.invalid_transition":"Switch \uC791\uC5C5 '{{taskName}}'\uC5D0 \uB300\uD55C \uC798\uBABB\uB41C \uC804\uD658: \uB2E4\uC74C \uB2E8\uACC4 '{{nextStep}}'\uC744(\uB97C) \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4","error.switch.task_not_found":"\uD604\uC7AC \uB808\uBCA8 \uC791\uC5C5 \uBAA9\uB85D\uC5D0\uC11C \uC791\uC5C5 '{{taskName}}'\uC744(\uB97C) \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4","error.switch.failed":"Switch \uC791\uC5C5 \uC2E4\uD589\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4: {{taskName}}","error.switch.missing_when_condition":"\uC2A4\uC704\uCE58 \uCF00\uC774\uC2A4\uC5D0 'when' \uC870\uAC74\uC774 \uB204\uB77D\uB418\uC5C8\uC2B5\uB2C8\uB2E4: '{{caseName}}'","error.switch.invalid_case_transition":"\uB2E8\uACC4 '{{stepName}}'\uC5D0 \uB300\uD55C \uC2A4\uC704\uCE58 \uCF00\uC774\uC2A4 \uC804\uD658\uC774 \uC798\uBABB\uB418\uC5C8\uC2B5\uB2C8\uB2E4: \uCF00\uC774\uC2A4 '{{caseName}}'\uC5D0 \uC720\uD6A8\uD55C 'then' \uC804\uD658\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.","error.script.no_code":"\uC2A4\uD06C\uB9BD\uD2B8 \uC791\uC5C5\uC5D0 \uB300\uD55C \uCF54\uB4DC\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: {{taskName}}","error.script.failed":"\uC2A4\uD06C\uB9BD\uD2B8 \uC2E4\uD589\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4","error.set.failed":"Set \uC791\uC5C5 \uC2E4\uD589\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4: {{taskName}}","error.task_invoker.unsupported_type":"\uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC791\uC5C5 \uC720\uD615","error.task_invoker.not_implemented":"\uAD6C\uD604\uB418\uC9C0 \uC54A\uC740 \uC791\uC5C5: {{taskName}}","error.task_invoker.unsupported_type_detail":"\uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC791\uC5C5 \uC720\uD615: {{taskType}}","error.runtime.deno_worker_init_failed":"Deno Worker \uCD08\uAE30\uD654\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4","error.runtime.handler_disposed":"\uD578\uB4E4\uB7EC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4","error.runtime.traceview_api_failed":"TraceView API \uC2E4\uD328, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{status}} {{statusText}}","error.runtime.traceview_send_failed":"TraceView\uB85C \uC2A4\uD32C \uC804\uC1A1\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{errorMessage}}","log.traceview.skip":"TraceViewLogger: {{reason}}","log.traceview.flushing":"TraceViewLogger: {{count}}\uAC1C\uC758 \uC2A4\uD32C\uC744 TraceView\uB85C \uC804\uC1A1 \uC911...","log.traceview.success":"TraceViewLogger: {{count}}\uAC1C\uC758 \uC2A4\uD32C\uC774 TraceView\uC5D0 \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. TraceId: {{traceId}}, JobKey: {{jobKey}}","error.runtime.socket_server_error":"\uC18C\uCF13 \uC11C\uBC84\uC5D0\uC11C \uC624\uB958\uB97C \uBC18\uD658\uD588\uC2B5\uB2C8\uB2E4: HTTP {{status}}: {{statusText}}","error.runtime.socket_comm_failed":"\uC18C\uCF13 \uD1B5\uC2E0\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4: {{errorMessage}}","error.runtime.workflow_context_required":"\uC6CC\uD06C\uD50C\uB85C \uCEE8\uD14D\uC2A4\uD2B8\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4","error.runtime.file_read_error":"\uD30C\uC77C {{filePath}} \uC77D\uAE30 \uC624\uB958","error.generic.internal_error":"\uB0B4\uBD80 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4"}});var HE=O((XQ,aL)=>{aL.exports={"error.http.url_required":"La URL es obligatoria y no puede estar vac\xEDa","error.http.invalid_url":"URL web inv\xE1lida o incompleta: {{url}}","error.http.failed_call":"Error al ejecutar la llamada HTTP","error.http.failed_call_to":"Error al ejecutar la llamada HTTP a {{endpoint}}","error.http.config_invalid":"Configuraci\xF3n incorrecta recibida para la tarea HTTP. Falta el endpoint del sistema y/o bodyParameters para: {{taskName}}","error.intsvc.connection_required":"Se requiere conexi\xF3n para esta tarea: {{taskName}}","error.intsvc.endpoint_required":"Se requiere endpoint para esta tarea: {{taskName}}. Por favor, verifique la configuraci\xF3n de la tarea.","error.intsvc.url_and_method_required":"Se requieren URL y m\xE9todo de solicitud para esta tarea: {{taskName}}","error.intsvc.failed_call":"Error al ejecutar la llamada IS","error.intsvc.failed_call_to":"Error al ejecutar la llamada IS a {{endpoint}}","error.intsvc.vendor_failure":"Se recibi\xF3 error del sistema del proveedor en la API - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"No se pudo analizar processedEventId de UiPathAdditionalEventData","error.intsvc_event.debug_not_supported_trigger":"La depuraci\xF3n no es compatible con este disparador. Por favor, publique el proyecto para recuperar los eventos y activar el flujo de trabajo autom\xE1ticamente.","error.intsvc_event.debug_not_supported_workflow":"La depuraci\xF3n no es compatible con este flujo de trabajo de disparador.","error.intsvc_event.failed_call":"Error al ejecutar la llamada de evento IS","error.workflow.execution_failed":"Error en la ejecuci\xF3n del flujo de trabajo","error.workflow.task_execution_failed":"Error en la ejecuci\xF3n de la tarea","error.workflow.unknown_task_error":"Error desconocido al ejecutar la tarea '{{taskName}}'","error.workflow.error_handling_task":"Error al procesar la tarea: {{taskName}}","error.workflow.no_do_tasks":"No se encontraron tareas do en el flujo de trabajo","error.expression.worker_operation_failed":"Error en la operaci\xF3n del Worker","error.expression.worker_error":"Se produjo un error del Worker","error.expression.timeout":"{{operation}} agot\xF3 el tiempo de espera","error.expression.evaluation_error":"Se ha producido un error al evaluar una expresi\xF3n","error.expression.api_not_allowed":"{{api}} no est\xE1 permitido en expresiones y scripts","error.expression.eval_not_allowed":"eval no est\xE1 permitido en expresiones y scripts","error.expression.script_timeout":"La ejecuci\xF3n del script agot\xF3 el tiempo de espera despu\xE9s de {{timeoutMs}}ms","error.expression.invalid_eval_mode":"No se proporcion\xF3 un modo de evaluaci\xF3n v\xE1lido al worker: {{mode}}","error.expression.worker_terminated":"Worker terminado durante la limpieza","error.expression.json_patch_unavailable":"La funci\xF3n fast-json-patch.compare no est\xE1 disponible","error.expression.json_patch_load_failed":"Error al cargar fast-json-patch en el worker del navegador","error.expression.json_patch_path_unavailable":"globalThis.fastJsonPatchPath no est\xE1 disponible en el navegador","error.expression.template_non_string":"La cadena de plantilla {{template}} se resolvi\xF3 a un valor que no es cadena: {{value}}","error.expression.get_context_diff_not_impl":"getContextDiff no est\xE1 implementado en {{handler}}","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff no est\xE1 implementado en {{handler}}","error.switch.no_matching_case":"No se encontr\xF3 caso coincidente para la tarea Switch '{{taskName}}'","error.switch.invalid_transition":"Transici\xF3n inv\xE1lida para la tarea Switch '{{taskName}}': No se encontr\xF3 el siguiente paso '{{nextStep}}'","error.switch.task_not_found":"No se encontr\xF3 la tarea '{{taskName}}' en la lista de tareas del nivel actual","error.switch.failed":"Error al ejecutar la tarea Switch: {{taskName}}","error.switch.missing_when_condition":"Falta la condici\xF3n 'when' en el caso switch: '{{caseName}}'","error.switch.invalid_case_transition":"Transici\xF3n de caso switch inv\xE1lida para el paso '{{stepName}}': El caso '{{caseName}}' no tiene una transici\xF3n 'then' v\xE1lida.","error.script.no_code":"No se encontr\xF3 c\xF3digo para la tarea de script: {{taskName}}","error.script.failed":"Error en la ejecuci\xF3n del script","error.set.failed":"Error al ejecutar la tarea Set: {{taskName}}","error.task_invoker.unsupported_type":"Tipo de tarea no compatible","error.task_invoker.not_implemented":"Tarea no implementada: {{taskName}}","error.task_invoker.unsupported_type_detail":"Tipo de tarea no compatible: {{taskType}}","error.runtime.deno_worker_init_failed":"Error al inicializar el Deno Worker","error.runtime.handler_disposed":"Handler eliminado","error.runtime.traceview_api_failed":"Error en la API de TraceView, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{status}} {{statusText}}","error.runtime.traceview_send_failed":"Error al enviar spans a TraceView, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{errorMessage}}","log.traceview.skip":"TraceViewLogger: {{reason}}","log.traceview.flushing":"TraceViewLogger: Enviando {{count}} spans a TraceView...","log.traceview.success":"TraceViewLogger: {{count}} spans actualizados en TraceView. TraceId: {{traceId}}, JobKey: {{jobKey}}","error.runtime.socket_server_error":"El servidor Socket devolvi\xF3 un error: HTTP {{status}}: {{statusText}}","error.runtime.socket_comm_failed":"Error en la comunicaci\xF3n del Socket: {{errorMessage}}","error.runtime.workflow_context_required":"Se requiere el contexto del flujo de trabajo","error.runtime.file_read_error":"Error al leer el archivo {{filePath}}","error.generic.internal_error":"Se produjo un error interno"}});var VE=O((ZQ,cL)=>{cL.exports={"error.http.url_required":"La URL es obligatoria y no puede estar vac\xEDa","error.http.invalid_url":"URL web inv\xE1lida o incompleta: {{url}}","error.http.failed_call":"Error al ejecutar la llamada HTTP","error.http.failed_call_to":"Error al ejecutar la llamada HTTP a {{endpoint}}","error.http.config_invalid":"Configuraci\xF3n incorrecta recibida para la tarea HTTP. Falta el endpoint del sistema y/o bodyParameters para: {{taskName}}","error.intsvc.connection_required":"Se requiere conexi\xF3n para esta tarea: {{taskName}}","error.intsvc.endpoint_required":"Se requiere endpoint para esta tarea: {{taskName}}. Por favor, verifique la configuraci\xF3n de la tarea.","error.intsvc.url_and_method_required":"Se requieren URL y m\xE9todo de solicitud para esta tarea: {{taskName}}","error.intsvc.failed_call":"Error al ejecutar la llamada IS","error.intsvc.failed_call_to":"Error al ejecutar la llamada IS a {{endpoint}}","error.intsvc.vendor_failure":"Se recibi\xF3 error del sistema del proveedor en la API - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"No se pudo analizar processedEventId de UiPathAdditionalEventData","error.intsvc_event.debug_not_supported_trigger":"La depuraci\xF3n no es compatible con este disparador. Por favor, publique el proyecto para recuperar los eventos y activar el flujo de trabajo autom\xE1ticamente.","error.intsvc_event.debug_not_supported_workflow":"La depuraci\xF3n no es compatible con este flujo de trabajo de disparador.","error.intsvc_event.failed_call":"Error al ejecutar la llamada de evento IS","error.workflow.execution_failed":"Error en la ejecuci\xF3n del flujo de trabajo","error.workflow.task_execution_failed":"Error en la ejecuci\xF3n de la tarea","error.workflow.unknown_task_error":"Error desconocido al ejecutar la tarea '{{taskName}}'","error.workflow.error_handling_task":"Error al procesar la tarea: {{taskName}}","error.workflow.no_do_tasks":"No se encontraron tareas do en el flujo de trabajo","error.expression.worker_operation_failed":"Error en la operaci\xF3n del Worker","error.expression.worker_error":"Se produjo un error del Worker","error.expression.timeout":"{{operation}} agot\xF3 el tiempo de espera","error.expression.evaluation_error":"Se ha producido un error al evaluar una expresi\xF3n","error.expression.api_not_allowed":"{{api}} no est\xE1 permitido en expresiones y scripts","error.expression.eval_not_allowed":"eval no est\xE1 permitido en expresiones y scripts","error.expression.script_timeout":"La ejecuci\xF3n del script agot\xF3 el tiempo de espera despu\xE9s de {{timeoutMs}}ms","error.expression.invalid_eval_mode":"No se proporcion\xF3 un modo de evaluaci\xF3n v\xE1lido al worker: {{mode}}","error.expression.worker_terminated":"Worker terminado durante la limpieza","error.expression.json_patch_unavailable":"La funci\xF3n fast-json-patch.compare no est\xE1 disponible","error.expression.json_patch_load_failed":"Error al cargar fast-json-patch en el worker del navegador","error.expression.json_patch_path_unavailable":"globalThis.fastJsonPatchPath no est\xE1 disponible en el navegador","error.expression.template_non_string":"La cadena de plantilla {{template}} se resolvi\xF3 a un valor que no es cadena: {{value}}","error.expression.get_context_diff_not_impl":"getContextDiff no est\xE1 implementado en {{handler}}","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff no est\xE1 implementado en {{handler}}","error.switch.no_matching_case":"No se encontr\xF3 caso coincidente para la tarea Switch '{{taskName}}'","error.switch.invalid_transition":"Transici\xF3n inv\xE1lida para la tarea Switch '{{taskName}}': No se encontr\xF3 el siguiente paso '{{nextStep}}'","error.switch.task_not_found":"No se encontr\xF3 la tarea '{{taskName}}' en la lista de tareas del nivel actual","error.switch.failed":"Error al ejecutar la tarea Switch: {{taskName}}","error.switch.missing_when_condition":"Falta la condici\xF3n 'when' en el caso switch: '{{caseName}}'","error.switch.invalid_case_transition":"Transici\xF3n de caso switch inv\xE1lida para el paso '{{stepName}}': El caso '{{caseName}}' no tiene una transici\xF3n 'then' v\xE1lida.","error.script.no_code":"No se encontr\xF3 c\xF3digo para la tarea de script: {{taskName}}","error.script.failed":"Error en la ejecuci\xF3n del script","error.set.failed":"Error al ejecutar la tarea Set: {{taskName}}","error.task_invoker.unsupported_type":"Tipo de tarea no compatible","error.task_invoker.not_implemented":"Tarea no implementada: {{taskName}}","error.task_invoker.unsupported_type_detail":"Tipo de tarea no compatible: {{taskType}}","error.runtime.deno_worker_init_failed":"Error al inicializar el Deno Worker","error.runtime.handler_disposed":"Handler eliminado","error.runtime.traceview_api_failed":"Error en la API de TraceView, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{status}} {{statusText}}","error.runtime.traceview_send_failed":"Error al enviar spans a TraceView, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{errorMessage}}","log.traceview.skip":"TraceViewLogger: {{reason}}","log.traceview.flushing":"TraceViewLogger: Enviando {{count}} spans a TraceView...","log.traceview.success":"TraceViewLogger: {{count}} spans actualizados en TraceView. TraceId: {{traceId}}, JobKey: {{jobKey}}","error.runtime.socket_server_error":"El servidor Socket devolvi\xF3 un error: HTTP {{status}}: {{statusText}}","error.runtime.socket_comm_failed":"Error en la comunicaci\xF3n del Socket: {{errorMessage}}","error.runtime.workflow_context_required":"Se requiere el contexto del flujo de trabajo","error.runtime.file_read_error":"Error al leer el archivo {{filePath}}","error.generic.internal_error":"Se produjo un error interno"}});var zE=O((QQ,uL)=>{uL.exports={"error.http.url_required":"O URL \xE9 obrigat\xF3rio e n\xE3o pode estar vazio","error.http.invalid_url":"URL web inv\xE1lido ou incompleto: {{url}}","error.http.failed_call":"Falha ao executar a chamada HTTP","error.http.failed_call_to":"Falha ao executar a chamada HTTP para {{endpoint}}","error.http.config_invalid":"Configura\xE7\xE3o incorreta recebida para a tarefa HTTP. Endpoint do sistema e/ou bodyParameters em falta para: {{taskName}}","error.intsvc.connection_required":"\xC9 necess\xE1ria uma conex\xE3o para esta tarefa: {{taskName}}","error.intsvc.endpoint_required":"\xC9 necess\xE1rio um endpoint para esta tarefa: {{taskName}}. Por favor, verifique a configura\xE7\xE3o da tarefa.","error.intsvc.url_and_method_required":"S\xE3o necess\xE1rios URL e m\xE9todo de pedido para esta tarefa: {{taskName}}","error.intsvc.failed_call":"Falha ao executar a chamada IS","error.intsvc.failed_call_to":"Falha ao executar a chamada IS para {{endpoint}}","error.intsvc.vendor_failure":"Recebido erro do sistema do fornecedor na API - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"N\xE3o foi poss\xEDvel analisar processedEventId de UiPathAdditionalEventData","error.intsvc_event.debug_not_supported_trigger":"A depura\xE7\xE3o n\xE3o \xE9 suportada para este acionador. Por favor, publique o projeto para obter os eventos e acionar o fluxo de trabalho automaticamente.","error.intsvc_event.debug_not_supported_workflow":"A depura\xE7\xE3o n\xE3o \xE9 suportada para este fluxo de trabalho de acionador.","error.intsvc_event.failed_call":"Falha ao executar a chamada de evento IS","error.workflow.execution_failed":"Falha na execu\xE7\xE3o do fluxo de trabalho","error.workflow.task_execution_failed":"Falha na execu\xE7\xE3o da tarefa","error.workflow.unknown_task_error":"Erro desconhecido ao executar a tarefa '{{taskName}}'","error.workflow.error_handling_task":"Erro ao processar a tarefa: {{taskName}}","error.workflow.no_do_tasks":"N\xE3o foram encontradas tarefas do no fluxo de trabalho","error.expression.worker_operation_failed":"Falha na opera\xE7\xE3o do Worker","error.expression.worker_error":"Ocorreu um erro do Worker","error.expression.timeout":"{{operation}} expirou","error.expression.evaluation_error":"Ocorreu um erro ao avaliar uma express\xE3o","error.expression.api_not_allowed":"{{api}} n\xE3o \xE9 permitido em express\xF5es e scripts","error.expression.eval_not_allowed":"eval n\xE3o \xE9 permitido em express\xF5es e scripts","error.expression.script_timeout":"A execu\xE7\xE3o do script expirou ap\xF3s {{timeoutMs}}ms","error.expression.invalid_eval_mode":"Nenhum modo de avalia\xE7\xE3o v\xE1lido foi fornecido ao worker: {{mode}}","error.expression.worker_terminated":"Worker terminado durante a limpeza","error.expression.json_patch_unavailable":"A fun\xE7\xE3o fast-json-patch.compare n\xE3o est\xE1 dispon\xEDvel","error.expression.json_patch_load_failed":"Falha ao carregar fast-json-patch no worker do navegador","error.expression.json_patch_path_unavailable":"globalThis.fastJsonPatchPath n\xE3o est\xE1 dispon\xEDvel no navegador","error.expression.template_non_string":"A string de modelo {{template}} foi resolvida para um valor n\xE3o-string: {{value}}","error.expression.get_context_diff_not_impl":"getContextDiff n\xE3o est\xE1 implementado em {{handler}}","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff n\xE3o est\xE1 implementado em {{handler}}","error.switch.no_matching_case":"Nenhum caso correspondente encontrado para a tarefa Switch '{{taskName}}'","error.switch.invalid_transition":"Transi\xE7\xE3o inv\xE1lida para a tarefa Switch '{{taskName}}': Pr\xF3ximo passo '{{nextStep}}' n\xE3o encontrado","error.switch.task_not_found":"Tarefa '{{taskName}}' n\xE3o encontrada na lista de tarefas do n\xEDvel atual","error.switch.failed":"Falha ao executar a tarefa Switch: {{taskName}}","error.switch.missing_when_condition":"Condi\xE7\xE3o 'when' em falta no caso switch: '{{caseName}}'","error.switch.invalid_case_transition":"Transi\xE7\xE3o de caso switch inv\xE1lida para o passo '{{stepName}}': O caso '{{caseName}}' n\xE3o tem uma transi\xE7\xE3o 'then' v\xE1lida.","error.script.no_code":"Nenhum c\xF3digo encontrado para a tarefa de script: {{taskName}}","error.script.failed":"Falha na execu\xE7\xE3o do script","error.set.failed":"Falha ao executar a tarefa Set: {{taskName}}","error.task_invoker.unsupported_type":"Tipo de tarefa n\xE3o suportado","error.task_invoker.not_implemented":"Tarefa n\xE3o implementada: {{taskName}}","error.task_invoker.unsupported_type_detail":"Tipo de tarefa n\xE3o suportado: {{taskType}}","error.runtime.deno_worker_init_failed":"Falha ao inicializar o Deno Worker","error.runtime.handler_disposed":"Handler descartado","error.runtime.traceview_api_failed":"Falha na API TraceView, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{status}} {{statusText}}","error.runtime.traceview_send_failed":"Falha ao enviar spans para TraceView, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{errorMessage}}","log.traceview.skip":"TraceViewLogger: {{reason}}","log.traceview.flushing":"TraceViewLogger: A enviar {{count}} spans para TraceView...","log.traceview.success":"TraceViewLogger: {{count}} spans atualizados em TraceView. TraceId: {{traceId}}, JobKey: {{jobKey}}","error.runtime.socket_server_error":"O servidor Socket devolveu um erro: HTTP {{status}}: {{statusText}}","error.runtime.socket_comm_failed":"Falha na comunica\xE7\xE3o do Socket: {{errorMessage}}","error.runtime.workflow_context_required":"O contexto do fluxo de trabalho \xE9 obrigat\xF3rio","error.runtime.file_read_error":"Erro ao ler o ficheiro {{filePath}}","error.generic.internal_error":"Ocorreu um erro interno"}});var YE=O((eee,lL)=>{lL.exports={"error.http.url_required":"A URL \xE9 obrigat\xF3ria e n\xE3o pode estar vazia","error.http.invalid_url":"URL web inv\xE1lida ou incompleta: {{url}}","error.http.failed_call":"Falha ao executar a chamada HTTP","error.http.failed_call_to":"Falha ao executar a chamada HTTP para {{endpoint}}","error.http.config_invalid":"Configura\xE7\xE3o incorreta recebida para a tarefa HTTP. Endpoint do sistema e/ou bodyParameters ausentes para: {{taskName}}","error.intsvc.connection_required":"\xC9 necess\xE1ria uma conex\xE3o para esta tarefa: {{taskName}}","error.intsvc.endpoint_required":"\xC9 necess\xE1rio um endpoint para esta tarefa: {{taskName}}. Por favor, verifique a configura\xE7\xE3o da tarefa.","error.intsvc.url_and_method_required":"S\xE3o necess\xE1rios URL e m\xE9todo de solicita\xE7\xE3o para esta tarefa: {{taskName}}","error.intsvc.failed_call":"Falha ao executar a chamada IS","error.intsvc.failed_call_to":"Falha ao executar a chamada IS para {{endpoint}}","error.intsvc.vendor_failure":"Recebido erro do sistema do fornecedor na API - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"N\xE3o foi poss\xEDvel analisar processedEventId de UiPathAdditionalEventData","error.intsvc_event.debug_not_supported_trigger":"A depura\xE7\xE3o n\xE3o \xE9 suportada para este gatilho. Por favor, publique o projeto para obter os eventos e acionar o fluxo de trabalho automaticamente.","error.intsvc_event.debug_not_supported_workflow":"A depura\xE7\xE3o n\xE3o \xE9 suportada para este fluxo de trabalho de gatilho.","error.intsvc_event.failed_call":"Falha ao executar a chamada de evento IS","error.workflow.execution_failed":"Falha na execu\xE7\xE3o do fluxo de trabalho","error.workflow.task_execution_failed":"Falha na execu\xE7\xE3o da tarefa","error.workflow.unknown_task_error":"Erro desconhecido ao executar a tarefa '{{taskName}}'","error.workflow.error_handling_task":"Erro ao processar a tarefa: {{taskName}}","error.workflow.no_do_tasks":"N\xE3o foram encontradas tarefas do no fluxo de trabalho","error.expression.worker_operation_failed":"Falha na opera\xE7\xE3o do Worker","error.expression.worker_error":"Ocorreu um erro do Worker","error.expression.timeout":"{{operation}} expirou","error.expression.evaluation_error":"Ocorreu um erro ao avaliar uma express\xE3o","error.expression.api_not_allowed":"{{api}} n\xE3o \xE9 permitido em express\xF5es e scripts","error.expression.eval_not_allowed":"eval n\xE3o \xE9 permitido em express\xF5es e scripts","error.expression.script_timeout":"A execu\xE7\xE3o do script expirou ap\xF3s {{timeoutMs}}ms","error.expression.invalid_eval_mode":"Nenhum modo de avalia\xE7\xE3o v\xE1lido foi fornecido ao worker: {{mode}}","error.expression.worker_terminated":"Worker terminado durante a limpeza","error.expression.json_patch_unavailable":"A fun\xE7\xE3o fast-json-patch.compare n\xE3o est\xE1 dispon\xEDvel","error.expression.json_patch_load_failed":"Falha ao carregar fast-json-patch no worker do navegador","error.expression.json_patch_path_unavailable":"globalThis.fastJsonPatchPath n\xE3o est\xE1 dispon\xEDvel no navegador","error.expression.template_non_string":"A string de template {{template}} foi resolvida para um valor n\xE3o-string: {{value}}","error.expression.get_context_diff_not_impl":"getContextDiff n\xE3o est\xE1 implementado em {{handler}}","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff n\xE3o est\xE1 implementado em {{handler}}","error.switch.no_matching_case":"Nenhum caso correspondente encontrado para a tarefa Switch '{{taskName}}'","error.switch.invalid_transition":"Transi\xE7\xE3o inv\xE1lida para a tarefa Switch '{{taskName}}': Pr\xF3ximo passo '{{nextStep}}' n\xE3o encontrado","error.switch.task_not_found":"Tarefa '{{taskName}}' n\xE3o encontrada na lista de tarefas do n\xEDvel atual","error.switch.failed":"Falha ao executar a tarefa Switch: {{taskName}}","error.switch.missing_when_condition":"Condi\xE7\xE3o 'when' ausente no caso switch: '{{caseName}}'","error.switch.invalid_case_transition":"Transi\xE7\xE3o de caso switch inv\xE1lida para o passo '{{stepName}}': O caso '{{caseName}}' n\xE3o tem uma transi\xE7\xE3o 'then' v\xE1lida.","error.script.no_code":"Nenhum c\xF3digo encontrado para a tarefa de script: {{taskName}}","error.script.failed":"Falha na execu\xE7\xE3o do script","error.set.failed":"Falha ao executar a tarefa Set: {{taskName}}","error.task_invoker.unsupported_type":"Tipo de tarefa n\xE3o suportado","error.task_invoker.not_implemented":"Tarefa n\xE3o implementada: {{taskName}}","error.task_invoker.unsupported_type_detail":"Tipo de tarefa n\xE3o suportado: {{taskType}}","error.runtime.deno_worker_init_failed":"Falha ao inicializar o Deno Worker","error.runtime.handler_disposed":"Handler descartado","error.runtime.traceview_api_failed":"Falha na API TraceView, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{status}} {{statusText}}","error.runtime.traceview_send_failed":"Falha ao enviar spans para TraceView, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{errorMessage}}","log.traceview.skip":"TraceViewLogger: {{reason}}","log.traceview.flushing":"TraceViewLogger: Enviando {{count}} spans para TraceView...","log.traceview.success":"TraceViewLogger: {{count}} spans atualizados em TraceView. TraceId: {{traceId}}, JobKey: {{jobKey}}","error.runtime.socket_server_error":"O servidor Socket retornou um erro: HTTP {{status}}: {{statusText}}","error.runtime.socket_comm_failed":"Falha na comunica\xE7\xE3o do Socket: {{errorMessage}}","error.runtime.workflow_context_required":"O contexto do fluxo de trabalho \xE9 obrigat\xF3rio","error.runtime.file_read_error":"Erro ao ler o arquivo {{filePath}}","error.generic.internal_error":"Ocorreu um erro interno"}});var KE=O((tee,dL)=>{dL.exports={"error.http.url_required":"URL\u662F\u5FC5\u9700\u7684\uFF0C\u4E0D\u80FD\u4E3A\u7A7A","error.http.invalid_url":"\u65E0\u6548\u6216\u4E0D\u5B8C\u6574\u7684Web URL\uFF1A{{url}}","error.http.failed_call":"\u6267\u884CHTTP\u8C03\u7528\u5931\u8D25","error.http.failed_call_to":"\u6267\u884CHTTP\u8C03\u7528\u5230{{endpoint}}\u5931\u8D25","error.http.config_invalid":"\u6536\u5230HTTP\u4EFB\u52A1\u7684\u914D\u7F6E\u4E0D\u6B63\u786E\u3002\u7F3A\u5C11\u7CFB\u7EDF\u7AEF\u70B9\u548C/\u6216bodyParameters\uFF1A{{taskName}}","error.intsvc.connection_required":"\u6B64\u4EFB\u52A1\u9700\u8981\u8FDE\u63A5\uFF1A{{taskName}}","error.intsvc.endpoint_required":"\u6B64\u4EFB\u52A1\u9700\u8981\u7AEF\u70B9\uFF1A{{taskName}}\u3002\u8BF7\u68C0\u67E5\u4EFB\u52A1\u914D\u7F6E\u3002","error.intsvc.url_and_method_required":"\u6B64\u4EFB\u52A1\u9700\u8981\u8BF7\u6C42URL\u548C\u65B9\u6CD5\uFF1A{{taskName}}","error.intsvc.failed_call":"\u6267\u884CIS\u8C03\u7528\u5931\u8D25","error.intsvc.failed_call_to":"\u6267\u884CIS\u8C03\u7528\u5230{{endpoint}}\u5931\u8D25","error.intsvc.vendor_failure":"\u4ECE\u4F9B\u5E94\u5546\u7CFB\u7EDF\u6536\u5230API\u9519\u8BEF - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"\u65E0\u6CD5\u4ECEUiPathAdditionalEventData\u89E3\u6790processedEventId","error.intsvc_event.debug_not_supported_trigger":"\u6B64\u89E6\u53D1\u5668\u4E0D\u652F\u6301\u8C03\u8BD5\u3002\u8BF7\u53D1\u5E03\u9879\u76EE\u4EE5\u83B7\u53D6\u4E8B\u4EF6\u5E76\u81EA\u52A8\u89E6\u53D1\u5DE5\u4F5C\u6D41\u3002","error.intsvc_event.debug_not_supported_workflow":"\u6B64\u89E6\u53D1\u5668\u5DE5\u4F5C\u6D41\u4E0D\u652F\u6301\u8C03\u8BD5\u3002","error.intsvc_event.failed_call":"\u6267\u884CIS\u4E8B\u4EF6\u8C03\u7528\u5931\u8D25","error.workflow.execution_failed":"\u5DE5\u4F5C\u6D41\u6267\u884C\u5931\u8D25","error.workflow.task_execution_failed":"\u4EFB\u52A1\u6267\u884C\u5931\u8D25","error.workflow.unknown_task_error":"\u6267\u884C\u4EFB\u52A1'{{taskName}}'\u65F6\u53D1\u751F\u672A\u77E5\u9519\u8BEF","error.workflow.error_handling_task":"\u5904\u7406\u4EFB\u52A1\u65F6\u51FA\u9519\uFF1A{{taskName}}","error.workflow.no_do_tasks":"\u5DE5\u4F5C\u6D41\u4E2D\u672A\u627E\u5230do\u4EFB\u52A1","error.expression.worker_operation_failed":"Worker\u64CD\u4F5C\u5931\u8D25","error.expression.worker_error":"\u53D1\u751FWorker\u9519\u8BEF","error.expression.timeout":"{{operation}}\u8D85\u65F6","error.expression.evaluation_error":"\u6C42\u503C\u8868\u8FBE\u5F0F\u65F6\u53D1\u751F\u9519\u8BEF","error.expression.api_not_allowed":"{{api}}\u4E0D\u5141\u8BB8\u5728\u8868\u8FBE\u5F0F\u548C\u811A\u672C\u4E2D\u4F7F\u7528","error.expression.eval_not_allowed":"eval\u4E0D\u5141\u8BB8\u5728\u8868\u8FBE\u5F0F\u548C\u811A\u672C\u4E2D\u4F7F\u7528","error.expression.script_timeout":"\u811A\u672C\u6267\u884C\u5728{{timeoutMs}}\u6BEB\u79D2\u540E\u8D85\u65F6","error.expression.invalid_eval_mode":"\u672A\u5411worker\u63D0\u4F9B\u6709\u6548\u7684\u6C42\u503C\u6A21\u5F0F\uFF1A{{mode}}","error.expression.worker_terminated":"Worker\u5728\u6E05\u7406\u671F\u95F4\u7EC8\u6B62","error.expression.json_patch_unavailable":"fast-json-patch.compare\u51FD\u6570\u4E0D\u53EF\u7528","error.expression.json_patch_load_failed":"\u5728\u6D4F\u89C8\u5668worker\u4E2D\u52A0\u8F7Dfast-json-patch\u5931\u8D25","error.expression.json_patch_path_unavailable":"\u6D4F\u89C8\u5668\u4E2D\u4E0D\u53EF\u7528globalThis.fastJsonPatchPath","error.expression.template_non_string":"\u6A21\u677F\u5B57\u7B26\u4E32{{template}}\u89E3\u6790\u4E3A\u975E\u5B57\u7B26\u4E32\u503C\uFF1A{{value}}","error.expression.get_context_diff_not_impl":"getContextDiff\u672A\u5728{{handler}}\u4E2D\u5B9E\u73B0","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff\u672A\u5728{{handler}}\u4E2D\u5B9E\u73B0","error.switch.no_matching_case":"\u672A\u627E\u5230Switch\u4EFB\u52A1'{{taskName}}'\u7684\u5339\u914D\u6848\u4F8B","error.switch.invalid_transition":"Switch\u4EFB\u52A1'{{taskName}}'\u7684\u65E0\u6548\u8F6C\u6362\uFF1A\u672A\u627E\u5230\u4E0B\u4E00\u6B65'{{nextStep}}'","error.switch.task_not_found":"\u5728\u5F53\u524D\u7EA7\u522B\u4EFB\u52A1\u5217\u8868\u4E2D\u672A\u627E\u5230\u4EFB\u52A1'{{taskName}}'","error.switch.failed":"\u6267\u884CSwitch\u4EFB\u52A1\u5931\u8D25\uFF1A{{taskName}}","error.switch.missing_when_condition":"switch\u6848\u4F8B\u4E2D\u7F3A\u5C11'when'\u6761\u4EF6\uFF1A'{{caseName}}'","error.switch.invalid_case_transition":"\u6B65\u9AA4'{{stepName}}'\u7684switch\u6848\u4F8B\u8F6C\u6362\u65E0\u6548\uFF1A\u6848\u4F8B'{{caseName}}'\u6CA1\u6709\u6709\u6548\u7684'then'\u8F6C\u6362\u3002","error.script.no_code":"\u672A\u627E\u5230\u811A\u672C\u4EFB\u52A1\u7684\u4EE3\u7801\uFF1A{{taskName}}","error.script.failed":"\u811A\u672C\u6267\u884C\u5931\u8D25","error.set.failed":"\u6267\u884CSet\u4EFB\u52A1\u5931\u8D25\uFF1A{{taskName}}","error.task_invoker.unsupported_type":"\u4E0D\u652F\u6301\u7684\u4EFB\u52A1\u7C7B\u578B","error.task_invoker.not_implemented":"\u672A\u5B9E\u73B0\u7684\u4EFB\u52A1\uFF1A{{taskName}}","error.task_invoker.unsupported_type_detail":"\u4E0D\u652F\u6301\u7684\u4EFB\u52A1\u7C7B\u578B\uFF1A{{taskType}}","error.runtime.deno_worker_init_failed":"\u521D\u59CB\u5316Deno Worker\u5931\u8D25","error.runtime.handler_disposed":"\u5904\u7406\u7A0B\u5E8F\u5DF2\u91CA\u653E","error.runtime.traceview_api_failed":"TraceView API\u5931\u8D25\uFF0CTraceId\uFF1A{{traceId}}\uFF0CJobKey\uFF1A{{jobKey}}\uFF1A{{status}} {{statusText}}","error.runtime.traceview_send_failed":"\u53D1\u9001spans\u5230TraceView\u5931\u8D25\uFF0CTraceId\uFF1A{{traceId}}\uFF0CJobKey\uFF1A{{jobKey}}\uFF1A{{errorMessage}}","log.traceview.skip":"TraceViewLogger\uFF1A{{reason}}","log.traceview.flushing":"TraceViewLogger\uFF1A\u6B63\u5728\u53D1\u9001{{count}}\u4E2Aspans\u5230TraceView...","log.traceview.success":"TraceViewLogger\uFF1A{{count}}\u4E2Aspans\u5DF2\u66F4\u65B0\u5230TraceView\u3002TraceId\uFF1A{{traceId}}\uFF0CJobKey\uFF1A{{jobKey}}","error.runtime.socket_server_error":"Socket\u670D\u52A1\u5668\u8FD4\u56DE\u9519\u8BEF\uFF1AHTTP {{status}}\uFF1A{{statusText}}","error.runtime.socket_comm_failed":"Socket\u901A\u4FE1\u5931\u8D25\uFF1A{{errorMessage}}","error.runtime.workflow_context_required":"\u9700\u8981\u5DE5\u4F5C\u6D41\u4E0A\u4E0B\u6587","error.runtime.file_read_error":"\u8BFB\u53D6\u6587\u4EF6{{filePath}}\u65F6\u51FA\u9519","error.generic.internal_error":"\u53D1\u751F\u5185\u90E8\u9519\u8BEF"}});var JE=O((ree,fL)=>{fL.exports={"error.http.url_required":"URL\u662F\u5FC5\u9700\u7684\uFF0C\u4E0D\u80FD\u70BA\u7A7A","error.http.invalid_url":"\u7121\u6548\u6216\u4E0D\u5B8C\u6574\u7684Web URL\uFF1A{{url}}","error.http.failed_call":"\u57F7\u884CHTTP\u547C\u53EB\u5931\u6557","error.http.failed_call_to":"\u57F7\u884CHTTP\u547C\u53EB\u5230{{endpoint}}\u5931\u6557","error.http.config_invalid":"\u6536\u5230HTTP\u4EFB\u52D9\u7684\u914D\u7F6E\u4E0D\u6B63\u78BA\u3002\u7F3A\u5C11\u7CFB\u7D71\u7AEF\u9EDE\u548C/\u6216bodyParameters\uFF1A{{taskName}}","error.intsvc.connection_required":"\u6B64\u4EFB\u52D9\u9700\u8981\u9023\u63A5\uFF1A{{taskName}}","error.intsvc.endpoint_required":"\u6B64\u4EFB\u52D9\u9700\u8981\u7AEF\u9EDE\uFF1A{{taskName}}\u3002\u8ACB\u6AA2\u67E5\u4EFB\u52D9\u914D\u7F6E\u3002","error.intsvc.url_and_method_required":"\u6B64\u4EFB\u52D9\u9700\u8981\u8ACB\u6C42URL\u548C\u65B9\u6CD5\uFF1A{{taskName}}","error.intsvc.failed_call":"\u57F7\u884CIS\u547C\u53EB\u5931\u6557","error.intsvc.failed_call_to":"\u57F7\u884CIS\u547C\u53EB\u5230{{endpoint}}\u5931\u6557","error.intsvc.vendor_failure":"\u5F9E\u4F9B\u61C9\u5546\u7CFB\u7D71\u6536\u5230API\u932F\u8AA4 - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"\u7121\u6CD5\u5F9EUiPathAdditionalEventData\u89E3\u6790processedEventId","error.intsvc_event.debug_not_supported_trigger":"\u6B64\u89F8\u767C\u5668\u4E0D\u652F\u63F4\u5075\u932F\u3002\u8ACB\u767C\u4F48\u5C08\u6848\u4EE5\u7372\u53D6\u4E8B\u4EF6\u4E26\u81EA\u52D5\u89F8\u767C\u5DE5\u4F5C\u6D41\u7A0B\u3002","error.intsvc_event.debug_not_supported_workflow":"\u6B64\u89F8\u767C\u5668\u5DE5\u4F5C\u6D41\u7A0B\u4E0D\u652F\u63F4\u5075\u932F\u3002","error.intsvc_event.failed_call":"\u57F7\u884CIS\u4E8B\u4EF6\u547C\u53EB\u5931\u6557","error.workflow.execution_failed":"\u5DE5\u4F5C\u6D41\u7A0B\u57F7\u884C\u5931\u6557","error.workflow.task_execution_failed":"\u4EFB\u52D9\u57F7\u884C\u5931\u6557","error.workflow.unknown_task_error":"\u57F7\u884C\u4EFB\u52D9'{{taskName}}'\u6642\u767C\u751F\u672A\u77E5\u932F\u8AA4","error.workflow.error_handling_task":"\u8655\u7406\u4EFB\u52D9\u6642\u51FA\u932F\uFF1A{{taskName}}","error.workflow.no_do_tasks":"\u5DE5\u4F5C\u6D41\u7A0B\u4E2D\u672A\u627E\u5230do\u4EFB\u52D9","error.expression.worker_operation_failed":"Worker\u64CD\u4F5C\u5931\u6557","error.expression.worker_error":"\u767C\u751FWorker\u932F\u8AA4","error.expression.timeout":"{{operation}}\u903E\u6642","error.expression.evaluation_error":"\u6C42\u503C\u904B\u7B97\u5F0F\u6642\u767C\u751F\u932F\u8AA4","error.expression.api_not_allowed":"{{api}}\u4E0D\u5141\u8A31\u5728\u904B\u7B97\u5F0F\u548C\u6307\u4EE4\u78BC\u4E2D\u4F7F\u7528","error.expression.eval_not_allowed":"eval\u4E0D\u5141\u8A31\u5728\u904B\u7B97\u5F0F\u548C\u6307\u4EE4\u78BC\u4E2D\u4F7F\u7528","error.expression.script_timeout":"\u6307\u4EE4\u78BC\u57F7\u884C\u5728{{timeoutMs}}\u6BEB\u79D2\u5F8C\u903E\u6642","error.expression.invalid_eval_mode":"\u672A\u5411worker\u63D0\u4F9B\u6709\u6548\u7684\u6C42\u503C\u6A21\u5F0F\uFF1A{{mode}}","error.expression.worker_terminated":"Worker\u5728\u6E05\u7406\u671F\u9593\u7D42\u6B62","error.expression.json_patch_unavailable":"fast-json-patch.compare\u51FD\u6578\u4E0D\u53EF\u7528","error.expression.json_patch_load_failed":"\u5728\u700F\u89BD\u5668worker\u4E2D\u8F09\u5165fast-json-patch\u5931\u6557","error.expression.json_patch_path_unavailable":"\u700F\u89BD\u5668\u4E2D\u4E0D\u53EF\u7528globalThis.fastJsonPatchPath","error.expression.template_non_string":"\u7BC4\u672C\u5B57\u4E32{{template}}\u89E3\u6790\u70BA\u975E\u5B57\u4E32\u503C\uFF1A{{value}}","error.expression.get_context_diff_not_impl":"getContextDiff\u672A\u5728{{handler}}\u4E2D\u5BE6\u4F5C","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff\u672A\u5728{{handler}}\u4E2D\u5BE6\u4F5C","error.switch.no_matching_case":"\u672A\u627E\u5230Switch\u4EFB\u52D9'{{taskName}}'\u7684\u5339\u914D\u6848\u4F8B","error.switch.invalid_transition":"Switch\u4EFB\u52D9'{{taskName}}'\u7684\u7121\u6548\u8F49\u63DB\uFF1A\u672A\u627E\u5230\u4E0B\u4E00\u6B65'{{nextStep}}'","error.switch.task_not_found":"\u5728\u7576\u524D\u7D1A\u5225\u4EFB\u52D9\u5217\u8868\u4E2D\u672A\u627E\u5230\u4EFB\u52D9'{{taskName}}'","error.switch.failed":"\u57F7\u884CSwitch\u4EFB\u52D9\u5931\u6557\uFF1A{{taskName}}","error.switch.missing_when_condition":"switch\u6848\u4F8B\u4E2D\u7F3A\u5C11'when'\u689D\u4EF6\uFF1A'{{caseName}}'","error.switch.invalid_case_transition":"\u6B65\u9A5F'{{stepName}}'\u7684switch\u6848\u4F8B\u8F49\u63DB\u7121\u6548\uFF1A\u6848\u4F8B'{{caseName}}'\u6C92\u6709\u6709\u6548\u7684'then'\u8F49\u63DB\u3002","error.script.no_code":"\u672A\u627E\u5230\u6307\u4EE4\u78BC\u4EFB\u52D9\u7684\u7A0B\u5F0F\u78BC\uFF1A{{taskName}}","error.script.failed":"\u6307\u4EE4\u78BC\u57F7\u884C\u5931\u6557","error.set.failed":"\u57F7\u884CSet\u4EFB\u52D9\u5931\u6557\uFF1A{{taskName}}","error.task_invoker.unsupported_type":"\u4E0D\u652F\u63F4\u7684\u4EFB\u52D9\u985E\u578B","error.task_invoker.not_implemented":"\u672A\u5BE6\u4F5C\u7684\u4EFB\u52D9\uFF1A{{taskName}}","error.task_invoker.unsupported_type_detail":"\u4E0D\u652F\u63F4\u7684\u4EFB\u52D9\u985E\u578B\uFF1A{{taskType}}","error.runtime.deno_worker_init_failed":"\u521D\u59CB\u5316Deno Worker\u5931\u6557","error.runtime.handler_disposed":"\u8655\u7406\u5E38\u5F0F\u5DF2\u91CB\u653E","error.runtime.traceview_api_failed":"TraceView API\u5931\u6557\uFF0CTraceId\uFF1A{{traceId}}\uFF0CJobKey\uFF1A{{jobKey}}\uFF1A{{status}} {{statusText}}","error.runtime.traceview_send_failed":"\u50B3\u9001spans\u5230TraceView\u5931\u6557\uFF0CTraceId\uFF1A{{traceId}}\uFF0CJobKey\uFF1A{{jobKey}}\uFF1A{{errorMessage}}","log.traceview.skip":"TraceViewLogger\uFF1A{{reason}}","log.traceview.flushing":"TraceViewLogger\uFF1A\u6B63\u5728\u50B3\u9001{{count}}\u500Bspans\u5230TraceView...","log.traceview.success":"TraceViewLogger\uFF1A{{count}}\u500Bspans\u5DF2\u66F4\u65B0\u5230TraceView\u3002TraceId\uFF1A{{traceId}}\uFF0CJobKey\uFF1A{{jobKey}}","error.runtime.socket_server_error":"Socket\u4F3A\u670D\u5668\u50B3\u56DE\u932F\u8AA4\uFF1AHTTP {{status}}\uFF1A{{statusText}}","error.runtime.socket_comm_failed":"Socket\u901A\u8A0A\u5931\u6557\uFF1A{{errorMessage}}","error.runtime.workflow_context_required":"\u9700\u8981\u5DE5\u4F5C\u6D41\u7A0B\u5167\u5BB9","error.runtime.file_read_error":"\u8B80\u53D6\u6A94\u6848{{filePath}}\u6642\u51FA\u932F","error.generic.internal_error":"\u767C\u751F\u5167\u90E8\u932F\u8AA4"}});var GE=O((nee,pL)=>{pL.exports={"error.http.url_required":"URL \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u0435\u043D \u0438 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043F\u0443\u0441\u0442\u044B\u043C","error.http.invalid_url":"\u041D\u0435\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u0438\u043B\u0438 \u043D\u0435\u043F\u043E\u043B\u043D\u044B\u0439 \u0432\u0435\u0431-URL: {{url}}","error.http.failed_call":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C HTTP-\u0432\u044B\u0437\u043E\u0432","error.http.failed_call_to":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C HTTP-\u0432\u044B\u0437\u043E\u0432 \u043A {{endpoint}}","error.http.config_invalid":"\u041F\u043E\u043B\u0443\u0447\u0435\u043D\u0430 \u043D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F \u0434\u043B\u044F HTTP-\u0437\u0430\u0434\u0430\u0447\u0438. \u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043C\u043D\u0430\u044F \u043A\u043E\u043D\u0435\u0447\u043D\u0430\u044F \u0442\u043E\u0447\u043A\u0430 \u0438/\u0438\u043B\u0438 bodyParameters \u0434\u043B\u044F: {{taskName}}","error.intsvc.connection_required":"\u0414\u043B\u044F \u044D\u0442\u043E\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435: {{taskName}}","error.intsvc.endpoint_required":"\u0414\u043B\u044F \u044D\u0442\u043E\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u043A\u043E\u043D\u0435\u0447\u043D\u0430\u044F \u0442\u043E\u0447\u043A\u0430: {{taskName}}. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044E \u0437\u0430\u0434\u0430\u0447\u0438.","error.intsvc.url_and_method_required":"\u0414\u043B\u044F \u044D\u0442\u043E\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u0442\u0440\u0435\u0431\u0443\u044E\u0442\u0441\u044F URL \u0438 \u043C\u0435\u0442\u043E\u0434 \u0437\u0430\u043F\u0440\u043E\u0441\u0430: {{taskName}}","error.intsvc.failed_call":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C IS-\u0432\u044B\u0437\u043E\u0432","error.intsvc.failed_call_to":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C IS-\u0432\u044B\u0437\u043E\u0432 \u043A {{endpoint}}","error.intsvc.vendor_failure":"\u041F\u043E\u043B\u0443\u0447\u0435\u043D\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 \u043E\u0442 \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u043F\u043E\u0441\u0442\u0430\u0432\u0449\u0438\u043A\u0430 \u043D\u0430 API - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0440\u043E\u0430\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C processedEventId \u0438\u0437 UiPathAdditionalEventData","error.intsvc_event.debug_not_supported_trigger":"\u041E\u0442\u043B\u0430\u0434\u043A\u0430 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u0434\u043B\u044F \u044D\u0442\u043E\u0433\u043E \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u043F\u0443\u0431\u043B\u0438\u043A\u0443\u0439\u0442\u0435 \u043F\u0440\u043E\u0435\u043A\u0442, \u0447\u0442\u043E\u0431\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F \u0438 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0430\u0431\u043E\u0447\u0438\u0439 \u043F\u0440\u043E\u0446\u0435\u0441\u0441.","error.intsvc_event.debug_not_supported_workflow":"\u041E\u0442\u043B\u0430\u0434\u043A\u0430 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u0434\u043B\u044F \u044D\u0442\u043E\u0433\u043E \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u043D\u043E\u0433\u043E \u0440\u0430\u0431\u043E\u0447\u0435\u0433\u043E \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430.","error.intsvc_event.failed_call":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0432\u044B\u0437\u043E\u0432 \u0441\u043E\u0431\u044B\u0442\u0438\u044F IS","error.workflow.execution_failed":"\u0412\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0440\u0430\u0431\u043E\u0447\u0435\u0433\u043E \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430 \u043D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C","error.workflow.task_execution_failed":"\u0412\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C","error.workflow.unknown_task_error":"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u0430\u044F \u043E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 '{{taskName}}'","error.workflow.error_handling_task":"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0435 \u0437\u0430\u0434\u0430\u0447\u0438: {{taskName}}","error.workflow.no_do_tasks":"\u0412 \u0440\u0430\u0431\u043E\u0447\u0435\u043C \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0435 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u044B \u0437\u0430\u0434\u0430\u0447\u0438 do","error.expression.worker_operation_failed":"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F Worker \u043D\u0435 \u0443\u0434\u0430\u043B\u0430\u0441\u044C","error.expression.worker_error":"\u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 Worker","error.expression.timeout":"{{operation}} \u0438\u0441\u0442\u0435\u043A\u043B\u043E \u0432\u0440\u0435\u043C\u044F \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F","error.expression.evaluation_error":"\u041F\u0440\u0438 \u0432\u044B\u0447\u0438\u0441\u043B\u0435\u043D\u0438\u0438 \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F \u043F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430","error.expression.api_not_allowed":"{{api}} \u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D \u0432 \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F\u0445 \u0438 \u0441\u043A\u0440\u0438\u043F\u0442\u0430\u0445","error.expression.eval_not_allowed":"eval \u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D \u0432 \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F\u0445 \u0438 \u0441\u043A\u0440\u0438\u043F\u0442\u0430\u0445","error.expression.script_timeout":"\u0412\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0441\u043A\u0440\u0438\u043F\u0442\u0430 \u0438\u0441\u0442\u0435\u043A\u043B\u043E \u043F\u043E\u0441\u043B\u0435 {{timeoutMs}}\u043C\u0441","error.expression.invalid_eval_mode":"Worker \u043D\u0435 \u0431\u044B\u043B \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D \u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u0440\u0435\u0436\u0438\u043C \u0432\u044B\u0447\u0438\u0441\u043B\u0435\u043D\u0438\u044F: {{mode}}","error.expression.worker_terminated":"Worker \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043E\u0447\u0438\u0441\u0442\u043A\u0438","error.expression.json_patch_unavailable":"\u0424\u0443\u043D\u043A\u0446\u0438\u044F fast-json-patch.compare \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430","error.expression.json_patch_load_failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C fast-json-patch \u0432 worker \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430","error.expression.json_patch_path_unavailable":"globalThis.fastJsonPatchPath \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435","error.expression.template_non_string":"\u0421\u0442\u0440\u043E\u043A\u0430 \u0448\u0430\u0431\u043B\u043E\u043D\u0430 {{template}} \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0430 \u0432 \u043D\u0435\u0441\u0442\u0440\u043E\u043A\u043E\u0432\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: {{value}}","error.expression.get_context_diff_not_impl":"getContextDiff \u043D\u0435 \u0440\u0435\u0430\u043B\u0438\u0437\u043E\u0432\u0430\u043D \u0432 {{handler}}","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff \u043D\u0435 \u0440\u0435\u0430\u043B\u0438\u0437\u043E\u0432\u0430\u043D \u0432 {{handler}}","error.switch.no_matching_case":"\u041D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0439 \u0441\u043B\u0443\u0447\u0430\u0439 \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u0447\u0438 Switch '{{taskName}}'","error.switch.invalid_transition":"\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u043F\u0435\u0440\u0435\u0445\u043E\u0434 \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u0447\u0438 Switch '{{taskName}}': \u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0448\u0430\u0433 '{{nextStep}}' \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D","error.switch.task_not_found":"\u0417\u0430\u0434\u0430\u0447\u0430 '{{taskName}}' \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u0430 \u0432 \u0441\u043F\u0438\u0441\u043A\u0435 \u0437\u0430\u0434\u0430\u0447 \u0442\u0435\u043A\u0443\u0449\u0435\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F","error.switch.failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0437\u0430\u0434\u0430\u0447\u0443 Switch: {{taskName}}","error.switch.missing_when_condition":"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0443\u0441\u043B\u043E\u0432\u0438\u0435 'when' \u0432 \u0441\u043B\u0443\u0447\u0430\u0435 switch: '{{caseName}}'","error.switch.invalid_case_transition":"\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u043F\u0435\u0440\u0435\u0445\u043E\u0434 \u0441\u043B\u0443\u0447\u0430\u044F switch \u0434\u043B\u044F \u0448\u0430\u0433\u0430 '{{stepName}}': \u0421\u043B\u0443\u0447\u0430\u0439 '{{caseName}}' \u043D\u0435 \u0438\u043C\u0435\u0435\u0442 \u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u043E\u0433\u043E \u043F\u0435\u0440\u0435\u0445\u043E\u0434\u0430 'then'.","error.script.no_code":"\u041A\u043E\u0434 \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u0447\u0438 \u0441\u043A\u0440\u0438\u043F\u0442\u0430 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D: {{taskName}}","error.script.failed":"\u0412\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0441\u043A\u0440\u0438\u043F\u0442\u0430 \u043D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C","error.set.failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0437\u0430\u0434\u0430\u0447\u0443 Set: {{taskName}}","error.task_invoker.unsupported_type":"\u041D\u0435\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0442\u0438\u043F \u0437\u0430\u0434\u0430\u0447\u0438","error.task_invoker.not_implemented":"\u0417\u0430\u0434\u0430\u0447\u0430 \u043D\u0435 \u0440\u0435\u0430\u043B\u0438\u0437\u043E\u0432\u0430\u043D\u0430: {{taskName}}","error.task_invoker.unsupported_type_detail":"\u041D\u0435\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0442\u0438\u043F \u0437\u0430\u0434\u0430\u0447\u0438: {{taskType}}","error.runtime.deno_worker_init_failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C Deno Worker","error.runtime.handler_disposed":"\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u0447\u0438\u043A \u0443\u0434\u0430\u043B\u0435\u043D","error.runtime.traceview_api_failed":"\u041E\u0448\u0438\u0431\u043A\u0430 API TraceView, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{status}} {{statusText}}","error.runtime.traceview_send_failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C spans \u0432 TraceView, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{errorMessage}}","log.traceview.skip":"TraceViewLogger: {{reason}}","log.traceview.flushing":"TraceViewLogger: \u041E\u0442\u043F\u0440\u0430\u0432\u043A\u0430 {{count}} spans \u0432 TraceView...","log.traceview.success":"TraceViewLogger: {{count}} spans \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u043E \u0432 TraceView. TraceId: {{traceId}}, JobKey: {{jobKey}}","error.runtime.socket_server_error":"\u0421\u0435\u0440\u0432\u0435\u0440 Socket \u0432\u0435\u0440\u043D\u0443\u043B \u043E\u0448\u0438\u0431\u043A\u0443: HTTP {{status}}: {{statusText}}","error.runtime.socket_comm_failed":"\u0421\u0431\u043E\u0439 \u0441\u0432\u044F\u0437\u0438 Socket: {{errorMessage}}","error.runtime.workflow_context_required":"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442 \u0440\u0430\u0431\u043E\u0447\u0435\u0433\u043E \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430","error.runtime.file_read_error":"\u041E\u0448\u0438\u0431\u043A\u0430 \u0447\u0442\u0435\u043D\u0438\u044F \u0444\u0430\u0439\u043B\u0430 {{filePath}}","error.generic.internal_error":"\u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u044F\u044F \u043E\u0448\u0438\u0431\u043A\u0430"}});var XE=O((oee,hL)=>{hL.exports={"error.http.url_required":"URL gereklidir ve bo\u015F olamaz","error.http.invalid_url":"Ge\xE7ersiz veya eksik Web URL'si: {{url}}","error.http.failed_call":"HTTP \xE7a\u011Fr\u0131s\u0131 y\xFCr\xFCt\xFClemedi","error.http.failed_call_to":"{{endpoint}} adresine HTTP \xE7a\u011Fr\u0131s\u0131 y\xFCr\xFCt\xFClemedi","error.http.config_invalid":"HTTP g\xF6revi i\xE7in hatal\u0131 yap\u0131land\u0131rma al\u0131nd\u0131. Sistem u\xE7 noktas\u0131 ve/veya bodyParameters eksik: {{taskName}}","error.intsvc.connection_required":"Bu g\xF6rev i\xE7in ba\u011Flant\u0131 gereklidir: {{taskName}}","error.intsvc.endpoint_required":"Bu g\xF6rev i\xE7in u\xE7 nokta gereklidir: {{taskName}}. L\xFCtfen g\xF6rev yap\u0131land\u0131rmas\u0131n\u0131 kontrol edin.","error.intsvc.url_and_method_required":"Bu g\xF6rev i\xE7in istek URL'si ve y\xF6ntemi gereklidir: {{taskName}}","error.intsvc.failed_call":"IS \xE7a\u011Fr\u0131s\u0131 y\xFCr\xFCt\xFClemedi","error.intsvc.failed_call_to":"{{endpoint}} adresine IS \xE7a\u011Fr\u0131s\u0131 y\xFCr\xFCt\xFClemedi","error.intsvc.vendor_failure":"API'de sat\u0131c\u0131 sisteminden hata al\u0131nd\u0131 - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"UiPathAdditionalEventData'dan processedEventId ayr\u0131\u015Ft\u0131r\u0131lamad\u0131","error.intsvc_event.debug_not_supported_trigger":"Bu tetikleyici i\xE7in hata ay\u0131klama desteklenmiyor. L\xFCtfen olaylar\u0131 almak ve i\u015F ak\u0131\u015F\u0131n\u0131 otomatik olarak tetiklemek i\xE7in projeyi yay\u0131nlay\u0131n.","error.intsvc_event.debug_not_supported_workflow":"Bu tetikleyici i\u015F ak\u0131\u015F\u0131 i\xE7in hata ay\u0131klama desteklenmiyor.","error.intsvc_event.failed_call":"IS olay \xE7a\u011Fr\u0131s\u0131 y\xFCr\xFCt\xFClemedi","error.workflow.execution_failed":"\u0130\u015F ak\u0131\u015F\u0131 y\xFCr\xFCtme ba\u015Far\u0131s\u0131z oldu","error.workflow.task_execution_failed":"G\xF6rev y\xFCr\xFCtme ba\u015Far\u0131s\u0131z oldu","error.workflow.unknown_task_error":"'{{taskName}}' g\xF6revi y\xFCr\xFCt\xFCl\xFCrken bilinmeyen hata olu\u015Ftu","error.workflow.error_handling_task":"G\xF6rev i\u015Flenirken hata: {{taskName}}","error.workflow.no_do_tasks":"\u0130\u015F ak\u0131\u015F\u0131nda do g\xF6revi bulunamad\u0131","error.expression.worker_operation_failed":"Worker i\u015Flemi ba\u015Far\u0131s\u0131z oldu","error.expression.worker_error":"Worker hatas\u0131 olu\u015Ftu","error.expression.timeout":"{{operation}} zaman a\u015F\u0131m\u0131na u\u011Frad\u0131","error.expression.evaluation_error":"Bir ifade de\u011Ferlendirilirken hata olu\u015Ftu","error.expression.api_not_allowed":"{{api}} ifadelerde ve betiklerde izin verilmiyor","error.expression.eval_not_allowed":"eval ifadelerde ve betiklerde izin verilmiyor","error.expression.script_timeout":"Betik y\xFCr\xFCtme {{timeoutMs}}ms sonra zaman a\u015F\u0131m\u0131na u\u011Frad\u0131","error.expression.invalid_eval_mode":"Worker'a ge\xE7erli bir de\u011Ferlendirme modu sa\u011Flanmad\u0131: {{mode}}","error.expression.worker_terminated":"Worker temizleme s\u0131ras\u0131nda sonland\u0131r\u0131ld\u0131","error.expression.json_patch_unavailable":"fast-json-patch.compare i\u015Flevi mevcut de\u011Fil","error.expression.json_patch_load_failed":"Taray\u0131c\u0131 worker'\u0131nda fast-json-patch y\xFCklenemedi","error.expression.json_patch_path_unavailable":"Taray\u0131c\u0131da globalThis.fastJsonPatchPath mevcut de\u011Fil","error.expression.template_non_string":"\u015Eablon dizesi {{template}} dize olmayan bir de\u011Fere \xE7\xF6z\xFCmlendi: {{value}}","error.expression.get_context_diff_not_impl":"getContextDiff {{handler}}'da uygulanmad\u0131","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff {{handler}}'da uygulanmad\u0131","error.switch.no_matching_case":"Switch g\xF6revi '{{taskName}}' i\xE7in e\u015Fle\u015Fen durum bulunamad\u0131","error.switch.invalid_transition":"Switch g\xF6revi '{{taskName}}' i\xE7in ge\xE7ersiz ge\xE7i\u015F: Sonraki ad\u0131m '{{nextStep}}' bulunamad\u0131","error.switch.task_not_found":"'{{taskName}}' g\xF6revi mevcut seviye g\xF6rev listesinde bulunamad\u0131","error.switch.failed":"Switch g\xF6revi y\xFCr\xFCt\xFClemedi: {{taskName}}","error.switch.missing_when_condition":"Switch durumunda 'when' ko\u015Fulu eksik: '{{caseName}}'","error.switch.invalid_case_transition":"'{{stepName}}' ad\u0131m\u0131 i\xE7in ge\xE7ersiz switch durumu ge\xE7i\u015Fi: '{{caseName}}' durumunun ge\xE7erli bir 'then' ge\xE7i\u015Fi yok.","error.script.no_code":"Betik g\xF6revi i\xE7in kod bulunamad\u0131: {{taskName}}","error.script.failed":"Betik y\xFCr\xFCtme ba\u015Far\u0131s\u0131z oldu","error.set.failed":"Set g\xF6revi y\xFCr\xFCt\xFClemedi: {{taskName}}","error.task_invoker.unsupported_type":"Desteklenmeyen g\xF6rev t\xFCr\xFC","error.task_invoker.not_implemented":"G\xF6rev uygulanmad\u0131: {{taskName}}","error.task_invoker.unsupported_type_detail":"Desteklenmeyen g\xF6rev t\xFCr\xFC: {{taskType}}","error.runtime.deno_worker_init_failed":"Deno Worker ba\u015Flat\u0131lamad\u0131","error.runtime.handler_disposed":"\u0130\u015Fleyici kald\u0131r\u0131ld\u0131","error.runtime.traceview_api_failed":"TraceView API ba\u015Far\u0131s\u0131z oldu, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{status}} {{statusText}}","error.runtime.traceview_send_failed":"TraceView'a span'lar g\xF6nderilemedi, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{errorMessage}}","log.traceview.skip":"TraceViewLogger: {{reason}}","log.traceview.flushing":"TraceViewLogger: {{count}} span TraceView'a g\xF6nderiliyor...","log.traceview.success":"TraceViewLogger: {{count}} span TraceView'da g\xFCncellendi. TraceId: {{traceId}}, JobKey: {{jobKey}}","error.runtime.socket_server_error":"Socket sunucusu hata d\xF6nd\xFCrd\xFC: HTTP {{status}}: {{statusText}}","error.runtime.socket_comm_failed":"Socket ileti\u015Fimi ba\u015Far\u0131s\u0131z oldu: {{errorMessage}}","error.runtime.workflow_context_required":"\u0130\u015F ak\u0131\u015F\u0131 ba\u011Flam\u0131 gereklidir","error.runtime.file_read_error":"{{filePath}} dosyas\u0131 okunurken hata olu\u015Ftu","error.generic.internal_error":"Dahili bir hata olu\u015Ftu"}});var tT=O(Cn=>{"use strict";var Jt=Cn&&Cn.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.LocalizationService=void 0;Cn.initLocalization=AL;Cn.t=IL;Cn.isLanguageSupported=xL;var _L=Jt(FE()),mL=Jt(WE()),vL=Jt(UE()),yL=Jt($E()),bL=Jt(BE()),gL=Jt(HE()),wL=Jt(VE()),EL=Jt(zE()),TL=Jt(YE()),SL=Jt(KE()),OL=Jt(JE()),kL=Jt(GE()),PL=Jt(XE()),QE=["en","de","fr","ja","ko","es","es-MX","pt","pt-BR","zh-CN","zh-TW","ru","tr"],eT={en:_L.default,de:mL.default,fr:vL.default,ja:yL.default,ko:bL.default,es:gL.default,"es-MX":wL.default,pt:EL.default,"pt-BR":TL.default,"zh-CN":SL.default,"zh-TW":OL.default,ru:kL.default,tr:PL.default},Mn={};async function ZE(o){if(Mn[o])return Mn[o];let t=eT[o];return t?(Mn[o]=t,t):(o==="en"?console.error("CRITICAL: Failed to load English translations. Error messages will not be available."):console.warn(`Failed to load locale for ${o}`),{})}var Iv="en",Ha=class o{constructor(t,r){this.currentLanguage=t,this.translations=r}static async create(t=Iv){let r=QE.includes(t)?t:Iv,e=await ZE(r);return r!=="en"&&!Mn.en&&await ZE("en"),new o(r,e)}static createDefault(){return Mn.en||(Mn.en=eT.en),new o("en",Mn.en)}t(t,r){let e=this.translations[t];if(!e&&this.currentLanguage!=="en"&&Mn.en&&(e=Mn.en[t]),!e)throw new Error(`Missing translation for key: ${t}. Please add the translation to en.json.`);return r?this.interpolate(e,r):e}interpolate(t,r){return t.replace(/\{\{(\w+)\}\}/g,(e,n)=>n in r?String(r[n]):e)}};Cn.LocalizationService=Ha;var rl=null;async function AL(o=Iv){rl=await Ha.create(o)}function IL(o,t){return rl||(rl=Ha.createDefault()),rl.t(o,t)}function xL(o){return QE.includes(o)}});var tt=O(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.t=pr.LocalizationService=pr.isLanguageSupported=pr.initLocalization=pr.ErrorKeys=void 0;var RL=qE();Object.defineProperty(pr,"ErrorKeys",{enumerable:!0,get:function(){return RL.ErrorKeys}});var nl=tT();Object.defineProperty(pr,"initLocalization",{enumerable:!0,get:function(){return nl.initLocalization}});Object.defineProperty(pr,"isLanguageSupported",{enumerable:!0,get:function(){return nl.isLanguageSupported}});Object.defineProperty(pr,"LocalizationService",{enumerable:!0,get:function(){return nl.LocalizationService}});Object.defineProperty(pr,"t",{enumerable:!0,get:function(){return nl.t}})});var nT=O(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.WorkflowCommandEvent=void 0;var rT;(function(o){o.Resume="Resume",o.SetBreakpoints="SetBreakpoints"})(rT||(ol.WorkflowCommandEvent=rT={}))});var oT=O(vi=>{"use strict";var ML=vi&&vi.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),CL=vi&&vi.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ML(t,o,r)};Object.defineProperty(vi,"__esModule",{value:!0});CL(nT(),vi)});var sT=O(iT=>{"use strict";Object.defineProperty(iT,"__esModule",{value:!0})});var lT=O(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.LogEvent=oo.TaskEvent=oo.WorkflowEvent=void 0;var aT;(function(o){o.WORKFLOW_STARTED="workflow_started",o.WORKFLOW_COMPLETED="workflow_completed",o.WORKFLOW_FAILED="workflow_failed",o.WORKFLOW_STOPPED="workflow_stopped"})(aT||(oo.WorkflowEvent=aT={}));var cT;(function(o){o.TASK_STARTED="task_started",o.TASK_COMPLETED="task_completed",o.TASK_FAILED="task_failed",o.TASK_STOPPED="task_stopped",o.TASK_RETRIED="task_retried"})(cT||(oo.TaskEvent=cT={}));var uT;(function(o){o.USER_LOG="user_log"})(uT||(oo.LogEvent=uT={}))});var fT=O(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.LogLevel=void 0;var dT;(function(o){o.VERBOSE="Verbose",o.INFO="Information",o.WARN="Warning",o.ERROR="Error"})(dT||(il.LogLevel=dT={}))});var xv=O(io=>{"use strict";var jL=io&&io.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),pT=io&&io.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&jL(t,o,r)};Object.defineProperty(io,"__esModule",{value:!0});pT(lT(),io);pT(fT(),io)});var al=O(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.TaskType=void 0;var hT;(function(o){o.DO="do",o.FOR="for",o.SWITCH="switch",o.TRY="try",o.WHILE="while",o.DO_WHILE="doWhile",o.BREAK="break",o.HTTP="http",o.SCRIPT="script",o.WAIT="wait",o.WORKFLOW_START="workflowStart",o.RESPONSE="response",o.SET="set",o.INTSVC="intSvc",o.INTSVC_EVENT="intSvcEvent",o.RAISE="raise",o.UNKNOWN="unknown"})(hT||(sl.TaskType=hT={}))});var _T=O(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.FormattedTaskTypeMap=fs.FormattedTaskType=void 0;var mt=al(),st;(function(o){o.Connector="Connector",o.ConnectorEvent="ConnectorEvent",o.HTTP="HTTP",o.Script="Script",o.If="If",o.ForEach="ForEach",o.TryCatch="TryCatch",o.Response="Response",o.DoWhile="DoWhile",o.While="While",o.Wait="Wait",o.Break="Break",o.WorkflowStart="WorkflowStart",o.Assign="Assign",o.Sequence="Sequence",o.Unknown="Unknown"})(st||(fs.FormattedTaskType=st={}));fs.FormattedTaskTypeMap={[mt.TaskType.DO]:st.Sequence,[mt.TaskType.FOR]:st.ForEach,[mt.TaskType.SWITCH]:st.If,[mt.TaskType.TRY]:st.TryCatch,[mt.TaskType.WHILE]:st.While,[mt.TaskType.DO_WHILE]:st.DoWhile,[mt.TaskType.HTTP]:st.HTTP,[mt.TaskType.SCRIPT]:st.Script,[mt.TaskType.INTSVC]:st.Connector,[mt.TaskType.INTSVC_EVENT]:st.ConnectorEvent,[mt.TaskType.SET]:st.Assign,[mt.TaskType.WAIT]:st.Wait,[mt.TaskType.BREAK]:st.Break,[mt.TaskType.WORKFLOW_START]:st.WorkflowStart,[mt.TaskType.RESPONSE]:st.Response,[mt.TaskType.RAISE]:st.Unknown,[mt.TaskType.UNKNOWN]:st.Unknown}});var vT=O(mT=>{"use strict";Object.defineProperty(mT,"__esModule",{value:!0})});var bT=O(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.SpanType=void 0;var yT;(function(o){o.ApiWorkflowRun="apiWorkflowRun",o.ApiWorkflowTaskRun="apiWorkflowTaskRun",o.ApiWorkflowUserLog="apiWorkflowUserLog",o.ApiWorkflowUnknown="apiWorkflowUnknown"})(yT||(cl.SpanType=yT={}))});var wT=O(gT=>{"use strict";Object.defineProperty(gT,"__esModule",{value:!0})});var OT=O(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.VerbosityLevelEnum=so.SourceEnum=so.StatusEnum=void 0;var ET;(function(o){o[o.Unset=0]="Unset",o[o.Ok=1]="Ok",o[o.Error=2]="Error",o[o.Running=3]="Running",o[o.Restricted=4]="Restricted",o[o.Cancelled=5]="Cancelled"})(ET||(so.StatusEnum=ET={}));var TT;(function(o){o[o.Agents=1]="Agents",o[o.ProcessOrchestration=2]="ProcessOrchestration",o[o.ApiWorkflows=3]="ApiWorkflows",o[o.Robots=4]="Robots"})(TT||(so.SourceEnum=TT={}));var ST;(function(o){o[o.Verbose=0]="Verbose",o[o.Trace=1]="Trace",o[o.Information=2]="Information",o[o.Warning=3]="Warning",o[o.Error=4]="Error",o[o.Critical=5]="Critical",o[o.Off=6]="Off"})(ST||(so.VerbosityLevelEnum=ST={}))});var kT=O(Zr=>{"use strict";var NL=Zr&&Zr.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),ul=Zr&&Zr.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&NL(t,o,r)};Object.defineProperty(Zr,"__esModule",{value:!0});ul(vT(),Zr);ul(bT(),Zr);ul(wT(),Zr);ul(OT(),Zr)});var AT=O(ao=>{"use strict";var DL=ao&&ao.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),PT=ao&&ao.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&DL(t,o,r)};Object.defineProperty(ao,"__esModule",{value:!0});PT(_T(),ao);PT(kT(),ao)});var IT=O(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.TaskHandlerArgs=void 0;var Rv=class{constructor(t){this.workflowConfig=t}};ll.TaskHandlerArgs=Rv});var RT=O(xT=>{"use strict";Object.defineProperty(xT,"__esModule",{value:!0})});var CT=O(MT=>{"use strict";Object.defineProperty(MT,"__esModule",{value:!0})});var DT=O(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.IntSvcEventMode=Nt.HttpAuthMode=Nt.RequestBodyType=Nt.INTEGRATION_SERVICE_EVENT_TASK_TYPE=Nt.UNIFIED_HTTP_TASK_TYPE=Nt.INTEGRATION_SERVICE_TASK_TYPE=void 0;Nt.INTEGRATION_SERVICE_TASK_TYPE="UiPath.IntSvc";Nt.UNIFIED_HTTP_TASK_TYPE="UiPath.Http";Nt.INTEGRATION_SERVICE_EVENT_TASK_TYPE="UiPath.IntSvcEvent";var jT;(function(o){o.RAW="raw",o.MULTIPART_FORM_DATA="multipartFormData"})(jT||(Nt.RequestBodyType=jT={}));var NT;(function(o){o.CONNECTOR="connector",o.MANUAL="manual"})(NT||(Nt.HttpAuthMode=NT={}));Nt.IntSvcEventMode={POLLING:"polling",WEBHOOKS:"webhooks"}});var Mv=O(co=>{"use strict";var LL=co&&co.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),LT=co&&co.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&LL(t,o,r)};Object.defineProperty(co,"__esModule",{value:!0});LT(CT(),co);LT(DT(),co)});var qT=O(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.ProxyVersion=void 0;var qL=Oe();Object.defineProperty(dl,"ProxyVersion",{enumerable:!0,get:function(){return qL.ProxyVersion}})});var FT=O(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.WorkflowError=uo.WorkflowErrorStatus=uo.WorkflowErrorType=void 0;var Cv;(function(o){o.CONFIGURATION_ERROR="https://serverlessworkflow.io/spec/1.0.0/errors/configuration",o.VALIDATION_ERROR="https://serverlessworkflow.io/spec/1.0.0/errors/validation",o.EXPRESSION_ERROR="https://serverlessworkflow.io/spec/1.0.0/errors/expression",o.AUTHENTICATION_ERROR="https://serverlessworkflow.io/spec/1.0.0/errors/authentication",o.AUTHORIZATION_ERROR="https://serverlessworkflow.io/spec/1.0.0/errors/authorization",o.TIMEOUT_ERROR="https://serverlessworkflow.io/spec/1.0.0/errors/timeout",o.COMMUNICATION_ERROR="https://serverlessworkflow.io/spec/1.0.0/errors/communication",o.RUNTIME_ERROR="https://serverlessworkflow.io/spec/1.0.0/errors/runtime"})(Cv||(uo.WorkflowErrorType=Cv={}));var jv;(function(o){o[o.BAD_REQUEST=400]="BAD_REQUEST",o[o.UNAUTHORIZED=401]="UNAUTHORIZED",o[o.FORBIDDEN=403]="FORBIDDEN",o[o.NOT_FOUND=404]="NOT_FOUND",o[o.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",o[o.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED"})(jv||(uo.WorkflowErrorStatus=jv={}));var ps=class o extends Error{constructor(t,r,e,n,i,s,c){let u=t??o.DEFAULT_TITLE;super(u);let a=new.target.prototype;Object.setPrototypeOf(this,a),this.name="WorkflowError",this.title=u,this.status=r||jv.INTERNAL_SERVER_ERROR,this.type=e||Cv.RUNTIME_ERROR,this.instance=n??o.DEFAULT_INSTANCE,this.detail=i??o.DEFAULT_DETAIL,this.data=s??{},this.originatingTaskName=c}toObject(){return{type:this.type,title:this.title,status:this.status,detail:this.detail,data:this.data,instance:this.instance,originatingTaskName:this.originatingTaskName}}getData(){return this.data}};uo.WorkflowError=ps;ps.DEFAULT_TITLE="Unknown Error";ps.DEFAULT_DETAIL="";ps.DEFAULT_INSTANCE=""});var WT=O(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.WorkflowExecutionResults=void 0;var Nv=class{constructor(t,r){this.workflowRunId="",this.result={},this.status="started",this.taskExecutions=[],this.taskTrackingEnabled=!1,this.executionSequence=0,this.workflowRunId=t,this.taskTrackingEnabled=r}addToWorkflowResult(t,r){this.taskTrackingEnabled&&(this.result[r]=t)}addToWorkflowExecutions(t){this.taskTrackingEnabled&&this.taskExecutions.push(`(${++this.executionSequence}) => ${t}`)}};fl.WorkflowExecutionResults=Nv});var Va=O(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.getWorkflowRetryConfig=UT;pl.resolveTransportRetryConfig=FL;function UT(o){return o.httpRetryConfig}function FL(o,t,r){let e=UT(o.$workflow.definition);if(e!==void 0){if((o.$runtime.control?.taskRetryDepth??0)>0){t?.debug(`Task '${r??""}': skipping the workflow-level httpRetryConfig because the call is inside a try block with a task-level retry policy.`);return}return e}}});var Lv=O((Dv,hs)=>{(function(o,t){typeof Dv=="object"&&typeof hs<"u"?hs.exports=t():typeof define=="function"&&define.amd?define(t):o.moment=t()})(Dv,function(){"use strict";var o;function t(){return o.apply(null,arguments)}function r(p){o=p}function e(p){return p instanceof Array||Object.prototype.toString.call(p)==="[object Array]"}function n(p){return p!=null&&Object.prototype.toString.call(p)==="[object Object]"}function i(p,y){return Object.prototype.hasOwnProperty.call(p,y)}function s(p){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(p).length===0;var y;for(y in p)if(i(p,y))return!1;return!0}function c(p){return p===void 0}function u(p){return typeof p=="number"||Object.prototype.toString.call(p)==="[object Number]"}function a(p){return p instanceof Date||Object.prototype.toString.call(p)==="[object Date]"}function l(p,y){var E=[],S,A=p.length;for(S=0;S<A;++S)E.push(y(p[S],S));return E}function d(p,y){for(var E in y)i(y,E)&&(p[E]=y[E]);return i(y,"toString")&&(p.toString=y.toString),i(y,"valueOf")&&(p.valueOf=y.valueOf),p}function f(p,y,E,S){return mw(p,y,E,S,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function _(p){return p._pf==null&&(p._pf=h()),p._pf}var m;Array.prototype.some?m=Array.prototype.some:m=function(p){var y=Object(this),E=y.length>>>0,S;for(S=0;S<E;S++)if(S in y&&p.call(this,y[S],S,y))return!0;return!1};function v(p){if(p._isValid==null){var y=_(p),E=m.call(y.parsedDateParts,function(A){return A!=null}),S=!isNaN(p._d.getTime())&&y.overflow<0&&!y.empty&&!y.invalidEra&&!y.invalidMonth&&!y.invalidWeekday&&!y.weekdayMismatch&&!y.nullInput&&!y.invalidFormat&&!y.userInvalidated&&(!y.meridiem||y.meridiem&&E);if(p._strict&&(S=S&&y.charsLeftOver===0&&y.unusedTokens.length===0&&y.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(p))p._isValid=S;else return S}return p._isValid}function b(p){var y=f(NaN);return p!=null?d(_(y),p):_(y).userInvalidated=!0,y}var g=t.momentProperties=[],w=!1;function T(p,y){var E,S,A,M=g.length;if(c(y._isAMomentObject)||(p._isAMomentObject=y._isAMomentObject),c(y._i)||(p._i=y._i),c(y._f)||(p._f=y._f),c(y._l)||(p._l=y._l),c(y._strict)||(p._strict=y._strict),c(y._tzm)||(p._tzm=y._tzm),c(y._isUTC)||(p._isUTC=y._isUTC),c(y._offset)||(p._offset=y._offset),c(y._pf)||(p._pf=_(y)),c(y._locale)||(p._locale=y._locale),M>0)for(E=0;E<M;E++)S=g[E],A=y[S],c(A)||(p[S]=A);return p}function P(p){T(this,p),this._d=new Date(p._d!=null?p._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),w===!1&&(w=!0,t.updateOffset(this),w=!1)}function k(p){return p instanceof P||p!=null&&p._isAMomentObject!=null}function x(p){t.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+p)}function R(p,y){var E=!0;return d(function(){if(t.deprecationHandler!=null&&t.deprecationHandler(null,p),E){var S=[],A,M,W,ue=arguments.length;for(M=0;M<ue;M++){if(A="",typeof arguments[M]=="object"){A+=`
|
|
84
|
+
})();`);return await(async()=>{let f=n||gv.DEFAULT_SANDBOX_CONFIG.timeoutMs;return await Promise.race([a(...u,...Object.values(i)),new Promise((_,m)=>{let v=setTimeout(()=>m(new Error(`Script execution timed out after ${f}ms`)),f);typeof v.unref=="function"&&v.unref()})])})()}catch(s){throw new Ju((0,dE.getErrorMessage)(s),(0,dE.isError)(s)?s.stack:"executeScriptLocal")}}});var Ev=O(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.executeScriptLocal=ls.ExecuteScriptActivity=void 0;var fE=si(),pE=Bu(),ND=ai(),DD=Gu(),wv=class extends ND.ActivityBase{constructor(t,r,e){super(r),this.type=fE.ActivityType.ScriptExecution,this.name=fE.ActivityType.ScriptExecution,this.properties=t.properties,this.name=e||this.name}async execute(){try{return{success:!0,data:await(0,DD.executeScriptLocal)(this.properties,this.name)}}catch(t){let r=(0,pE.isError)(t)?t:new Error((0,pE.getErrorMessage)(t));return this.logger.error(`[${this.name}] Error executing script: ${r.message}`),{success:!1,error:r}}}};ls.ExecuteScriptActivity=wv;var LD=Gu();Object.defineProperty(ls,"executeScriptLocal",{enumerable:!0,get:function(){return LD.executeScriptLocal}})});var _E=O(hE=>{"use strict";Object.defineProperty(hE,"__esModule",{value:!0})});var mE=O(pi=>{"use strict";var qD=pi&&pi.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),FD=pi&&pi.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&qD(t,o,r)};Object.defineProperty(pi,"__esModule",{value:!0});FD(_E(),pi)});var vE=O(Rn=>{"use strict";var WD=Rn&&Rn.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),Tv=Rn&&Rn.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&WD(t,o,r)};Object.defineProperty(Rn,"__esModule",{value:!0});Tv(Ev(),Rn);Tv(mE(),Rn);Tv(Gu(),Rn)});var yE=O(Cr=>{"use strict";var UD=Cr&&Cr.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),$a=Cr&&Cr.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&UD(t,o,r)};Object.defineProperty(Cr,"__esModule",{value:!0});$a(D0(),Cr);$a(rE(),Cr);$a(lE(),Cr);$a(vE(),Cr);$a(ai(),Cr)});var gE=O(bE=>{"use strict";Object.defineProperty(bE,"__esModule",{value:!0})});var wE=O(hi=>{"use strict";var $D=hi&&hi.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),BD=hi&&hi.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&$D(t,o,r)};Object.defineProperty(hi,"__esModule",{value:!0});BD(gE(),hi)});var TE=O(EE=>{"use strict";Object.defineProperty(EE,"__esModule",{value:!0})});var SE=O(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.InMemoryEventBus=void 0;var Sv=class{constructor(){this.listeners=new Map,this.onceListeners=new Map}subscribe(t,r){return this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(r),()=>this.unsubscribe(t,r)}unsubscribe(t,r){let e=this.listeners.get(t);e&&(e.delete(r),e.size===0&&this.listeners.delete(t));let n=this.onceListeners.get(t);n&&(n.delete(r),n.size===0&&this.onceListeners.delete(t))}subscribeOnce(t,r){return this.onceListeners.has(t)||this.onceListeners.set(t,new Set),this.onceListeners.get(t).add(r),()=>this.unsubscribe(t,r)}async emit(t,r){let e=this.listeners.get(t),n=this.onceListeners.get(t);if(!e&&!n)return;let i=[];if(e)for(let s of e){let c=s(r);c instanceof Promise&&i.push(c)}if(n){let s=Array.from(n);this.onceListeners.delete(t);for(let c of s){let u=c(r);u instanceof Promise&&i.push(u)}}i.length>0&&await Promise.all(i)}removeAllSubscribers(t){t?(this.listeners.delete(t),this.onceListeners.delete(t)):(this.listeners.clear(),this.onceListeners.clear())}};Xu.InMemoryEventBus=Sv});var kE=O(no=>{"use strict";var HD=no&&no.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),OE=no&&no.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&HD(t,o,r)};Object.defineProperty(no,"__esModule",{value:!0});OE(TE(),no);OE(SE(),no)});var PE=O(_i=>{"use strict";var VD=_i&&_i.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),zD=_i&&_i.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&VD(t,o,r)};Object.defineProperty(_i,"__esModule",{value:!0});zD(kE(),_i)});var IE=O(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.LogMessageActivity=void 0;var AE=Bm(),YD=ai(),Ov=class extends YD.ActivityBase{constructor(t,r,e){super(r),this.type=AE.ActivityType.LogMessage,this.name=AE.ActivityType.LogMessage,this.properties=t.properties,this.name=e||this.name}async execute(){let t=this.properties.level||"info";return console[t](`[${this.name} :: ${t}] ${this.properties.message}`,this.properties.data,this.properties.error),{success:!0,data:this.properties}}};Zu.LogMessageActivity=Ov});var xE=O(Pv=>{"use strict";Object.defineProperty(Pv,"__esModule",{value:!0});Pv.ActivityFactory=XD;var KD=ov(),JD=IE(),GD=Ev(),kv=si();function XD(o,t,r){switch(o.type){case kv.ActivityType.HttpRequest:return new KD.HttpRequestActivity(o,t,r);case kv.ActivityType.ScriptExecution:return new GD.ExecuteScriptActivity(o,t,r);case kv.ActivityType.LogMessage:return new JD.LogMessageActivity(o,t,r);default:throw new Error(`Unsupported step type: ${o.type}`)}}});var Oe=O(dr=>{"use strict";var ZD=dr&&dr.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),ds=dr&&dr.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ZD(t,o,r)};Object.defineProperty(dr,"__esModule",{value:!0});ds(yE(),dr);ds(wE(),dr);ds(si(),dr);ds(PE(),dr);ds(Bu(),dr);ds(xE(),dr)});var ME=O(RE=>{"use strict";Object.defineProperty(RE,"__esModule",{value:!0})});var Av=O(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.noopTraceContextProvider=void 0;Qu.noopTraceContextProvider={current:()=>{},runInSpan:(o,t)=>t()}});var jE=O(CE=>{"use strict";Object.defineProperty(CE,"__esModule",{value:!0})});var DE=O(NE=>{"use strict";Object.defineProperty(NE,"__esModule",{value:!0})});var LE=O(Zr=>{"use strict";var QD=Zr&&Zr.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),el=Zr&&Zr.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&QD(t,o,r)};Object.defineProperty(Zr,"__esModule",{value:!0});el(ME(),Zr);el(Av(),Zr);el(jE(),Zr);el(DE(),Zr)});var Ba=O(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.UTC_TIMEZONE_INDICATOR=V.DEFAULT_TIMEZONE_OFFSET=V.OPTIONAL_INT_SVC_PARAMETERS=V.SEMICOLON=V.EXPR_SUFFIX=V.EXPR_PREFIX=V.SOLUTION_RESOURCE_FOLDER_KEY_SUFFIX=V.API_WORKFLOW_SOURCE=V.ORCHESTRATOR_JOBS_ENDPOINT=V.ORCHESTRATOR_QUEUE_ITEMS_ENDPOINT=V.ORCHESTRATOR_CREDENTIALS_ENDPOINT=V.ORCHESTRATOR_ASSETS_ENDPOINT=V.ORCHESTRATOR_JOB_RESOURCE_PREFIX=V.ORCHESTRATOR_QUEUE_ITEMS_RESOURCE_PREFIX=V.ORCHESTRATOR_ASSET_RESOURCE_PREFIX=V.ORCHESTRATOR_CONNECTOR_KEY=V.X_UIPATH_LICENSING_CONTEXT=V.X_UIPATH_IS_DESIGN_API=V.X_UIPATH_FOLDERKEY=V.X_UIPATH_JOB_ID=V.X_UIPATH_JOBKEY=V.X_UIPATH_CONNECTOR_KEY=V.X_UIPATH_ORIGINATOR=V.X_UIPATH_SOURCE=V.X_UIPATH_TRACE_BAGGAGE=V.X_UIPATH_TRACE_VIEW_PARENT_SPAN_ID=V.X_UIPATH_TRACE_VIEW_TRACE_ID=V.X_UIPATH_CORRELATION_ID=V.X_UIPATH_INTERNAL_ORG_ID=V.X_UIPATH_INTERNAL_TENANT_ID=V.X_UIPATH_TRACEPARENT_ID=V.TraceparentHeader=V.BEARER=V.UIPATH_WORKFLOW_RUNTIME_VERSION=V.UIPATH_WORKFLOW_RUNTIME_NAME=V.WORKFLOW_LEVEL_VARIABLES=V.$INPUT=V.$WORKFLOW=V.$CONTEXT=V.ERROR=V.END=V.EXIT=V.INPUT=V.WORKFLOW=V.CONTEXT=V.TASK_INVOKER=V.EXTENSION_TYPE=V.SCRIPT=V.ApiWorkflowJobSource=void 0;V.ApiWorkflowJobSource="UiPath.ApiWorkflow.Executor";V.SCRIPT="script";V.EXTENSION_TYPE="extensionType";V.TASK_INVOKER="taskInvoker";V.CONTEXT="context";V.WORKFLOW="workflow";V.INPUT="input";V.EXIT="exit";V.END="end";V.ERROR="error";V.$CONTEXT="$context";V.$WORKFLOW="$workflow";V.$INPUT="$input";V.WORKFLOW_LEVEL_VARIABLES=[V.$CONTEXT,V.$WORKFLOW,V.$INPUT];V.UIPATH_WORKFLOW_RUNTIME_NAME="UiPath.API.Workflow.Runtime";V.UIPATH_WORKFLOW_RUNTIME_VERSION="1.0.0";V.BEARER="Bearer";V.TraceparentHeader="traceparent";V.X_UIPATH_TRACEPARENT_ID="x-uipath-traceparent-id";V.X_UIPATH_INTERNAL_TENANT_ID="x-uipath-internal-tenantid";V.X_UIPATH_INTERNAL_ORG_ID="x-uipath-internal-orgid";V.X_UIPATH_CORRELATION_ID="x-uipath-correlation-id";V.X_UIPATH_TRACE_VIEW_TRACE_ID="x-uipath-traceview-trace-id";V.X_UIPATH_TRACE_VIEW_PARENT_SPAN_ID="x-uipath-traceview-parent-span-id";V.X_UIPATH_TRACE_BAGGAGE="x-uipath-tracebaggage";V.X_UIPATH_SOURCE="x-uipath-source";V.X_UIPATH_ORIGINATOR="x-uipath-originator";V.X_UIPATH_CONNECTOR_KEY="x-uipath-connector-key";V.X_UIPATH_JOBKEY="x-uipath-jobkey";V.X_UIPATH_JOB_ID="x-uipath-job-id";V.X_UIPATH_FOLDERKEY="x-uipath-folderkey";V.X_UIPATH_IS_DESIGN_API="x-uipath-is-design-api";V.X_UIPATH_LICENSING_CONTEXT="x-uipath-licensing-context";V.ORCHESTRATOR_CONNECTOR_KEY="uipath-uipath-orchestrator";V.ORCHESTRATOR_ASSET_RESOURCE_PREFIX="asset";V.ORCHESTRATOR_QUEUE_ITEMS_RESOURCE_PREFIX="queue";V.ORCHESTRATOR_JOB_RESOURCE_PREFIX="process";V.ORCHESTRATOR_ASSETS_ENDPOINT="/assets";V.ORCHESTRATOR_CREDENTIALS_ENDPOINT="/credentials";V.ORCHESTRATOR_QUEUE_ITEMS_ENDPOINT="/fetch-queueItems";V.ORCHESTRATOR_JOBS_ENDPOINT="/jobs";V.API_WORKFLOW_SOURCE="ApiWorkflow";V.SOLUTION_RESOURCE_FOLDER_KEY_SUFFIX="_folderKey";V.EXPR_PREFIX="${";V.EXPR_SUFFIX="}";V.SEMICOLON=";";V.OPTIONAL_INT_SVC_PARAMETERS=["nextPage"];V.DEFAULT_TIMEZONE_OFFSET="+00:00";V.UTC_TIMEZONE_INDICATOR="Z"});var fr=O(mi=>{"use strict";var eL=mi&&mi.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),tL=mi&&mi.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&eL(t,o,r)};Object.defineProperty(mi,"__esModule",{value:!0});tL(Ba(),mi)});var qE=O(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.ErrorKeys=void 0;tl.ErrorKeys={URL_REQUIRED:"error.http.url_required",INVALID_URL:"error.http.invalid_url",FAILED_HTTP_CALL:"error.http.failed_call",FAILED_HTTP_CALL_TO:"error.http.failed_call_to",HTTP_TASK_CONFIG_INVALID:"error.http.config_invalid",CONNECTION_REQUIRED:"error.intsvc.connection_required",ENDPOINT_REQUIRED:"error.intsvc.endpoint_required",URL_AND_METHOD_REQUIRED:"error.intsvc.url_and_method_required",FAILED_IS_CALL:"error.intsvc.failed_call",FAILED_IS_CALL_TO:"error.intsvc.failed_call_to",VENDOR_FAILURE:"error.intsvc.vendor_failure",DATE_FIELDS_UNRESOLVED:"error.intsvc.date_fields_unresolved",CREDENTIAL_PASSWORD_TOO_SHORT:"error.intsvc.credential_password_too_short",CREDENTIAL_PASSWORD_TOO_COMMON:"error.intsvc.credential_password_too_common",CREDENTIAL_LIMIT_EXCEEDED:"error.intsvc.credential_limit_exceeded",EVENT_ID_PARSE_FAILED:"error.intsvc_event.event_id_parse_failed",DEBUG_NOT_SUPPORTED_TRIGGER:"error.intsvc_event.debug_not_supported_trigger",DEBUG_NOT_SUPPORTED_WORKFLOW:"error.intsvc_event.debug_not_supported_workflow",FAILED_IS_EVENT_CALL:"error.intsvc_event.failed_call",WORKFLOW_EXECUTION_FAILED:"error.workflow.execution_failed",TASK_EXECUTION_FAILED:"error.workflow.task_execution_failed",UNKNOWN_TASK_ERROR:"error.workflow.unknown_task_error",ERROR_HANDLING_TASK:"error.workflow.error_handling_task",NO_DO_TASKS:"error.workflow.no_do_tasks",WORKER_OPERATION_FAILED:"error.expression.worker_operation_failed",WORKER_ERROR:"error.expression.worker_error",EXPRESSION_TIMEOUT:"error.expression.timeout",EXPRESSION_ERROR:"error.expression.evaluation_error",API_NOT_ALLOWED:"error.expression.api_not_allowed",EVAL_NOT_ALLOWED:"error.expression.eval_not_allowed",SCRIPT_TIMEOUT:"error.expression.script_timeout",INVALID_EVAL_MODE:"error.expression.invalid_eval_mode",WORKER_TERMINATED:"error.expression.worker_terminated",JSON_PATCH_UNAVAILABLE:"error.expression.json_patch_unavailable",JSON_PATCH_LOAD_FAILED:"error.expression.json_patch_load_failed",JSON_PATCH_PATH_UNAVAILABLE:"error.expression.json_patch_path_unavailable",TEMPLATE_NON_STRING:"error.expression.template_non_string",GET_CONTEXT_DIFF_NOT_IMPL:"error.expression.get_context_diff_not_impl",GET_WORKFLOW_INPUT_DIFF_NOT_IMPL:"error.expression.get_workflow_input_diff_not_impl",NO_MATCHING_CASE:"error.switch.no_matching_case",INVALID_SWITCH_TRANSITION:"error.switch.invalid_transition",TASK_NOT_FOUND:"error.switch.task_not_found",FAILED_SWITCH_TASK:"error.switch.failed",MISSING_WHEN_CONDITION:"error.switch.missing_when_condition",INVALID_CASE_TRANSITION:"error.switch.invalid_case_transition",NO_SCRIPT_CODE:"error.script.no_code",FAILED_SCRIPT:"error.script.failed",FAILED_CONVERT_BASE64_TO_FILE:"error.convert.from_base64_failed",INVALID_CONVERT_FILE_INPUT:"error.convert.invalid_file_input",MISSING_BASE64_STRING:"error.convert.missing_base64",INVALID_BASE64_STRING:"error.convert.invalid_base64",CONVERT_FILE_TOO_LARGE:"error.convert.file_too_large",FAILED_DOWNLOAD_DATA:"error.convert.download_data_failed",FAILED_SET_TASK:"error.set.failed",UNSUPPORTED_TASK_TYPE:"error.task_invoker.unsupported_type",TASK_NOT_IMPLEMENTED:"error.task_invoker.not_implemented",UNSUPPORTED_TASK_TYPE_DETAIL:"error.task_invoker.unsupported_type_detail",DENO_WORKER_INIT_FAILED:"error.runtime.deno_worker_init_failed",HANDLER_DISPOSED:"error.runtime.handler_disposed",TRACEVIEW_API_FAILED:"error.runtime.traceview_api_failed",TRACEVIEW_SEND_FAILED:"error.runtime.traceview_send_failed",TRACEVIEW_SKIP:"log.traceview.skip",TRACEVIEW_FLUSHING:"log.traceview.flushing",TRACEVIEW_SUCCESS:"log.traceview.success",SOCKET_SERVER_ERROR:"error.runtime.socket_server_error",SOCKET_COMM_FAILED:"error.runtime.socket_comm_failed",WORKFLOW_CONTEXT_REQUIRED:"error.runtime.workflow_context_required",FILE_READ_ERROR:"error.runtime.file_read_error",WORKFLOW_STOPPED_BY_USER:"error.runtime.workflow_stopped_by_user",DEBUG_START_TIMEOUT:"error.runtime.debug_start_timeout",DEBUG_PEER_DISCONNECTED:"error.runtime.debug_peer_disconnected",RETRY_POLICY_NOT_FOUND:"error.try.retry_policy_not_found",INVALID_RETRY_POLICY:"error.try.invalid_retry_policy",INTERNAL_ERROR:"error.generic.internal_error"}});var FE=O((zQ,rL)=>{rL.exports={"error.http.url_required":"URL is required and cannot be empty","error.http.invalid_url":"Invalid or incomplete Web URL: {{url}}","error.http.failed_call":"Failed to execute HTTP call","error.http.failed_call_to":"Failed to execute HTTP call to {{endpoint}}","error.http.config_invalid":"Incorrect configuration for HTTP task received. System endpoint and/or bodyParameters missing for: {{taskName}}","error.intsvc.connection_required":"Connection is required for this task: {{taskName}}","error.intsvc.endpoint_required":"Endpoint is required for this task: {{taskName}}. Please check the task configuration.","error.intsvc.url_and_method_required":"Request URL and method are required for this task: {{taskName}}","error.intsvc.failed_call":"Failed to execute IS call","error.intsvc.failed_call_to":"Failed to execute IS call to {{endpoint}}","error.intsvc.vendor_failure":"Received failure from vendor system on API - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"Could not parse processedEventId from UiPathAdditionalEventData","error.intsvc_event.debug_not_supported_trigger":"Debug is not supported for this trigger. Please, publish the project to retrieve the events and trigger the workflow automatically.","error.intsvc_event.debug_not_supported_workflow":"Debug is not supported for this trigger workflow.","error.intsvc_event.failed_call":"Failed to execute IS Event call","error.workflow.execution_failed":"Workflow execution failed","error.workflow.task_execution_failed":"Task execution failed","error.workflow.unknown_task_error":"Unknown error while executing task '{{taskName}}'","error.workflow.error_handling_task":"Error handling task, task: {{taskName}}","error.workflow.no_do_tasks":"No do tasks found in workflow","error.expression.worker_operation_failed":"Worker operation failed","error.expression.worker_error":"Worker error occurred","error.expression.timeout":"{{operation}} timed out","error.expression.evaluation_error":"An error has occurred while evaluating an expression","error.expression.api_not_allowed":"{{api}} is not allowed in expressions and scripts","error.expression.eval_not_allowed":"eval is not allowed in expressions and scripts","error.expression.script_timeout":"Script execution timed out after {{timeoutMs}}ms","error.expression.invalid_eval_mode":"No valid evaluation mode was provided to worker: {{mode}}","error.expression.worker_terminated":"Worker terminated during cleanup","error.expression.json_patch_unavailable":"fast-json-patch.compare function not available","error.expression.json_patch_load_failed":"Failed to load fast-json-patch in browser worker","error.expression.json_patch_path_unavailable":"globalThis.fastJsonPatchPath not available in browser","error.expression.template_non_string":"Template string {{template}} resolved to a non-string value: {{value}}","error.expression.get_context_diff_not_impl":"getContextDiff is not implemented in {{handler}}","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff is not implemented in {{handler}}","error.switch.no_matching_case":"No matching case found for Switch task '{{taskName}}'","error.switch.invalid_transition":"Invalid transition for Switch task '{{taskName}}': Next step '{{nextStep}}' not found","error.switch.task_not_found":"Task '{{taskName}}' not found in the current level task list","error.switch.failed":"Failed to execute Switch task: {{taskName}}","error.switch.missing_when_condition":"Missing 'when' condition in switch case: '{{caseName}}'","error.switch.invalid_case_transition":"Invalid switch case transition for step '{{stepName}}': Case '{{caseName}}' has no valid 'then' transition.","error.script.no_code":"No code found for script task: {{taskName}}","error.script.failed":"Failed to execute script","error.convert.from_base64_failed":"Failed to convert file from base64: {{taskName}}","error.convert.invalid_file_input":"Expected a file reference as input for the file conversion: {{taskName}} (received: {{received}})","error.convert.missing_base64":"Convert File from Base64 requires a non-empty base64 string: {{taskName}}","error.convert.invalid_base64":"The provided value is not a valid base64 string: {{taskName}}","error.convert.file_too_large":"File exceeds the maximum supported size of {{maxMb}} MB for base64 conversion","error.convert.download_data_failed":"Failed to read the contents of the file reference: {{taskName}}","error.set.failed":"Failed to execute Set task: {{taskName}}","error.task_invoker.unsupported_type":"Unsupported task type","error.task_invoker.not_implemented":"Task Not Implemented: {{taskName}}","error.task_invoker.unsupported_type_detail":"Unsupported task type: {{taskType}}","error.runtime.deno_worker_init_failed":"Failed to initialize Deno Worker","error.runtime.handler_disposed":"Handler disposed","error.runtime.traceview_api_failed":"TraceView API failed, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{status}} {{statusText}}","error.runtime.traceview_send_failed":"Failed to send spans to trace view, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{errorMessage}}","log.traceview.skip":"TraceViewLogger: {{reason}}","log.traceview.flushing":"TraceViewLogger: Flushing {{count}} spans to trace view...","log.traceview.success":"TraceViewLogger: Updated {{count}} spans to trace view. TraceId: {{traceId}}, JobKey: {{jobKey}}","error.runtime.socket_server_error":"Socket Server returned error: HTTP {{status}}: {{statusText}}","error.runtime.socket_comm_failed":"Socket communication failed: {{errorMessage}}","error.runtime.workflow_context_required":"Workflow context is required","error.runtime.file_read_error":"Error reading file {{filePath}}","error.runtime.workflow_stopped_by_user":"Workflow stopped by user request","error.runtime.debug_start_timeout":"Debug session aborted: did not receive Start command from the designer within {{timeoutMs}}ms","error.runtime.debug_peer_disconnected":"Debug session disconnected.","error.try.retry_policy_not_found":"Retry policy '{{policyName}}' referenced by task '{{taskName}}' is not defined in the workflow's 'use.retries' section","error.try.invalid_retry_policy":"Invalid retry policy on task '{{taskName}}': {{reason}}","error.generic.internal_error":"An internal error occurred"}});var WE=O((YQ,nL)=>{nL.exports={"error.http.url_required":"URL ist erforderlich und darf nicht leer sein","error.http.invalid_url":"Ung\xFCltige oder unvollst\xE4ndige Web-URL: {{url}}","error.http.failed_call":"HTTP-Aufruf konnte nicht ausgef\xFChrt werden","error.http.failed_call_to":"HTTP-Aufruf an {{endpoint}} konnte nicht ausgef\xFChrt werden","error.http.config_invalid":"Ung\xFCltige Konfiguration f\xFCr HTTP-Aufgabe erhalten. Systemendpunkt und/oder bodyParameters fehlen f\xFCr: {{taskName}}","error.intsvc.connection_required":"Verbindung ist f\xFCr diese Aufgabe erforderlich: {{taskName}}","error.intsvc.endpoint_required":"Endpunkt ist f\xFCr diese Aufgabe erforderlich: {{taskName}}. Bitte \xFCberpr\xFCfen Sie die Aufgabenkonfiguration.","error.intsvc.url_and_method_required":"Anfrage-URL und Methode sind f\xFCr diese Aufgabe erforderlich: {{taskName}}","error.intsvc.failed_call":"IS-Aufruf konnte nicht ausgef\xFChrt werden","error.intsvc.failed_call_to":"IS-Aufruf an {{endpoint}} konnte nicht ausgef\xFChrt werden","error.intsvc.vendor_failure":"Fehler vom Anbietersystem bei API empfangen - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"processedEventId konnte nicht aus UiPathAdditionalEventData analysiert werden","error.intsvc_event.debug_not_supported_trigger":"Debug wird f\xFCr diesen Trigger nicht unterst\xFCtzt. Bitte ver\xF6ffentlichen Sie das Projekt, um die Ereignisse abzurufen und den Workflow automatisch auszul\xF6sen.","error.intsvc_event.debug_not_supported_workflow":"Debug wird f\xFCr diesen Trigger-Workflow nicht unterst\xFCtzt.","error.intsvc_event.failed_call":"IS-Ereignisaufruf konnte nicht ausgef\xFChrt werden","error.workflow.execution_failed":"Workflow-Ausf\xFChrung fehlgeschlagen","error.workflow.task_execution_failed":"Aufgabenausf\xFChrung fehlgeschlagen","error.workflow.unknown_task_error":"Unbekannter Fehler beim Ausf\xFChren der Aufgabe '{{taskName}}'","error.workflow.error_handling_task":"Fehler bei der Verarbeitung der Aufgabe: {{taskName}}","error.workflow.no_do_tasks":"Keine do-Aufgaben im Workflow gefunden","error.expression.worker_operation_failed":"Worker-Operation fehlgeschlagen","error.expression.worker_error":"Worker-Fehler aufgetreten","error.expression.timeout":"{{operation}} Zeit\xFCberschreitung","error.expression.evaluation_error":"Bei der Auswertung eines Ausdrucks ist ein Fehler aufgetreten","error.expression.api_not_allowed":"{{api}} ist in Ausdr\xFCcken und Skripten nicht erlaubt","error.expression.eval_not_allowed":"eval ist in Ausdr\xFCcken und Skripten nicht erlaubt","error.expression.script_timeout":"Skriptausf\xFChrung nach {{timeoutMs}}ms abgelaufen","error.expression.invalid_eval_mode":"Kein g\xFCltiger Auswertungsmodus wurde an Worker \xFCbergeben: {{mode}}","error.expression.worker_terminated":"Worker w\xE4hrend der Bereinigung beendet","error.expression.json_patch_unavailable":"fast-json-patch.compare Funktion nicht verf\xFCgbar","error.expression.json_patch_load_failed":"fast-json-patch konnte im Browser-Worker nicht geladen werden","error.expression.json_patch_path_unavailable":"globalThis.fastJsonPatchPath im Browser nicht verf\xFCgbar","error.expression.template_non_string":"Template-String {{template}} wurde zu einem Nicht-String-Wert aufgel\xF6st: {{value}}","error.expression.get_context_diff_not_impl":"getContextDiff ist in {{handler}} nicht implementiert","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff ist in {{handler}} nicht implementiert","error.switch.no_matching_case":"Kein passender Fall f\xFCr Switch-Aufgabe '{{taskName}}' gefunden","error.switch.invalid_transition":"Ung\xFCltiger \xDCbergang f\xFCr Switch-Aufgabe '{{taskName}}': N\xE4chster Schritt '{{nextStep}}' nicht gefunden","error.switch.task_not_found":"Aufgabe '{{taskName}}' nicht in der aktuellen Ebene der Aufgabenliste gefunden","error.switch.failed":"Switch-Aufgabe konnte nicht ausgef\xFChrt werden: {{taskName}}","error.switch.missing_when_condition":"Fehlende 'when'-Bedingung im Switch-Fall: '{{caseName}}'","error.switch.invalid_case_transition":"Ung\xFCltiger Switch-Fall-\xDCbergang f\xFCr Schritt '{{stepName}}': Fall '{{caseName}}' hat keinen g\xFCltigen 'then'-\xDCbergang.","error.script.no_code":"Kein Code f\xFCr Skriptaufgabe gefunden: {{taskName}}","error.script.failed":"Skriptausf\xFChrung fehlgeschlagen","error.set.failed":"Set-Aufgabe konnte nicht ausgef\xFChrt werden: {{taskName}}","error.task_invoker.unsupported_type":"Nicht unterst\xFCtzter Aufgabentyp","error.task_invoker.not_implemented":"Aufgabe nicht implementiert: {{taskName}}","error.task_invoker.unsupported_type_detail":"Nicht unterst\xFCtzter Aufgabentyp: {{taskType}}","error.runtime.deno_worker_init_failed":"Deno Worker konnte nicht initialisiert werden","error.runtime.handler_disposed":"Handler wurde verworfen","error.runtime.traceview_api_failed":"TraceView API fehlgeschlagen, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{status}} {{statusText}}","error.runtime.traceview_send_failed":"Spans konnten nicht an TraceView gesendet werden, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{errorMessage}}","log.traceview.skip":"TraceViewLogger: {{reason}}","log.traceview.flushing":"TraceViewLogger: {{count}} Spans werden an TraceView gesendet...","log.traceview.success":"TraceViewLogger: {{count}} Spans an TraceView aktualisiert. TraceId: {{traceId}}, JobKey: {{jobKey}}","error.runtime.socket_server_error":"Socket-Server hat Fehler zur\xFCckgegeben: HTTP {{status}}: {{statusText}}","error.runtime.socket_comm_failed":"Socket-Kommunikation fehlgeschlagen: {{errorMessage}}","error.runtime.workflow_context_required":"Workflow-Kontext ist erforderlich","error.runtime.file_read_error":"Fehler beim Lesen der Datei {{filePath}}","error.generic.internal_error":"Ein interner Fehler ist aufgetreten"}});var UE=O((KQ,oL)=>{oL.exports={"error.http.url_required":"L'URL est requise et ne peut pas \xEAtre vide","error.http.invalid_url":"URL Web invalide ou incompl\xE8te : {{url}}","error.http.failed_call":"\xC9chec de l'ex\xE9cution de l'appel HTTP","error.http.failed_call_to":"\xC9chec de l'ex\xE9cution de l'appel HTTP vers {{endpoint}}","error.http.config_invalid":"Configuration incorrecte re\xE7ue pour la t\xE2che HTTP. Point de terminaison syst\xE8me et/ou bodyParameters manquants pour : {{taskName}}","error.intsvc.connection_required":"La connexion est requise pour cette t\xE2che : {{taskName}}","error.intsvc.endpoint_required":"Le point de terminaison est requis pour cette t\xE2che : {{taskName}}. Veuillez v\xE9rifier la configuration de la t\xE2che.","error.intsvc.url_and_method_required":"L'URL et la m\xE9thode de requ\xEAte sont requises pour cette t\xE2che : {{taskName}}","error.intsvc.failed_call":"\xC9chec de l'ex\xE9cution de l'appel IS","error.intsvc.failed_call_to":"\xC9chec de l'ex\xE9cution de l'appel IS vers {{endpoint}}","error.intsvc.vendor_failure":"\xC9chec re\xE7u du syst\xE8me fournisseur sur l'API - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"Impossible d'analyser processedEventId depuis UiPathAdditionalEventData","error.intsvc_event.debug_not_supported_trigger":"Le d\xE9bogage n'est pas pris en charge pour ce d\xE9clencheur. Veuillez publier le projet pour r\xE9cup\xE9rer les \xE9v\xE9nements et d\xE9clencher le workflow automatiquement.","error.intsvc_event.debug_not_supported_workflow":"Le d\xE9bogage n'est pas pris en charge pour ce workflow de d\xE9clencheur.","error.intsvc_event.failed_call":"\xC9chec de l'ex\xE9cution de l'appel d'\xE9v\xE9nement IS","error.workflow.execution_failed":"\xC9chec de l'ex\xE9cution du workflow","error.workflow.task_execution_failed":"\xC9chec de l'ex\xE9cution de la t\xE2che","error.workflow.unknown_task_error":"Erreur inconnue lors de l'ex\xE9cution de la t\xE2che '{{taskName}}'","error.workflow.error_handling_task":"Erreur lors du traitement de la t\xE2che : {{taskName}}","error.workflow.no_do_tasks":"Aucune t\xE2che do trouv\xE9e dans le workflow","error.expression.worker_operation_failed":"\xC9chec de l'op\xE9ration du Worker","error.expression.worker_error":"Erreur du Worker survenue","error.expression.timeout":"{{operation}} a expir\xE9","error.expression.evaluation_error":"Une erreur s'est produite lors de l'\xE9valuation d'une expression","error.expression.api_not_allowed":"{{api}} n'est pas autoris\xE9 dans les expressions et les scripts","error.expression.eval_not_allowed":"eval n'est pas autoris\xE9 dans les expressions et les scripts","error.expression.script_timeout":"L'ex\xE9cution du script a expir\xE9 apr\xE8s {{timeoutMs}}ms","error.expression.invalid_eval_mode":"Aucun mode d'\xE9valuation valide n'a \xE9t\xE9 fourni au worker : {{mode}}","error.expression.worker_terminated":"Worker termin\xE9 pendant le nettoyage","error.expression.json_patch_unavailable":"La fonction fast-json-patch.compare n'est pas disponible","error.expression.json_patch_load_failed":"\xC9chec du chargement de fast-json-patch dans le worker du navigateur","error.expression.json_patch_path_unavailable":"globalThis.fastJsonPatchPath n'est pas disponible dans le navigateur","error.expression.template_non_string":"La cha\xEEne de mod\xE8le {{template}} a \xE9t\xE9 r\xE9solue en une valeur non-cha\xEEne : {{value}}","error.expression.get_context_diff_not_impl":"getContextDiff n'est pas impl\xE9ment\xE9 dans {{handler}}","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff n'est pas impl\xE9ment\xE9 dans {{handler}}","error.switch.no_matching_case":"Aucun cas correspondant trouv\xE9 pour la t\xE2che Switch '{{taskName}}'","error.switch.invalid_transition":"Transition invalide pour la t\xE2che Switch '{{taskName}}' : \xC9tape suivante '{{nextStep}}' non trouv\xE9e","error.switch.task_not_found":"T\xE2che '{{taskName}}' non trouv\xE9e dans la liste des t\xE2ches du niveau actuel","error.switch.failed":"\xC9chec de l'ex\xE9cution de la t\xE2che Switch : {{taskName}}","error.switch.missing_when_condition":"Condition 'when' manquante dans le cas switch : '{{caseName}}'","error.switch.invalid_case_transition":"Transition de cas switch invalide pour l'\xE9tape '{{stepName}}' : Le cas '{{caseName}}' n'a pas de transition 'then' valide.","error.script.no_code":"Aucun code trouv\xE9 pour la t\xE2che de script : {{taskName}}","error.script.failed":"\xC9chec de l'ex\xE9cution du script","error.set.failed":"\xC9chec de l'ex\xE9cution de la t\xE2che Set : {{taskName}}","error.task_invoker.unsupported_type":"Type de t\xE2che non pris en charge","error.task_invoker.not_implemented":"T\xE2che non impl\xE9ment\xE9e : {{taskName}}","error.task_invoker.unsupported_type_detail":"Type de t\xE2che non pris en charge : {{taskType}}","error.runtime.deno_worker_init_failed":"\xC9chec de l'initialisation du Deno Worker","error.runtime.handler_disposed":"Handler supprim\xE9","error.runtime.traceview_api_failed":"\xC9chec de l'API TraceView, TraceId : {{traceId}}, JobKey : {{jobKey}} : {{status}} {{statusText}}","error.runtime.traceview_send_failed":"\xC9chec de l'envoi des spans \xE0 TraceView, TraceId : {{traceId}}, JobKey : {{jobKey}} : {{errorMessage}}","log.traceview.skip":"TraceViewLogger : {{reason}}","log.traceview.flushing":"TraceViewLogger : Envoi de {{count}} spans \xE0 TraceView...","log.traceview.success":"TraceViewLogger : {{count}} spans mis \xE0 jour dans TraceView. TraceId : {{traceId}}, JobKey : {{jobKey}}","error.runtime.socket_server_error":"Le serveur Socket a renvoy\xE9 une erreur : HTTP {{status}} : {{statusText}}","error.runtime.socket_comm_failed":"\xC9chec de la communication Socket : {{errorMessage}}","error.runtime.workflow_context_required":"Le contexte du workflow est requis","error.runtime.file_read_error":"Erreur lors de la lecture du fichier {{filePath}}","error.generic.internal_error":"Une erreur interne s'est produite"}});var $E=O((JQ,iL)=>{iL.exports={"error.http.url_required":"URL\u306F\u5FC5\u9808\u3067\u3042\u308A\u3001\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093","error.http.invalid_url":"\u7121\u52B9\u307E\u305F\u306F\u4E0D\u5B8C\u5168\u306AWeb URL: {{url}}","error.http.failed_call":"HTTP\u547C\u3073\u51FA\u3057\u306E\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F","error.http.failed_call_to":"{{endpoint}}\u3078\u306EHTTP\u547C\u3073\u51FA\u3057\u306E\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F","error.http.config_invalid":"HTTP\u30BF\u30B9\u30AF\u306E\u8A2D\u5B9A\u304C\u6B63\u3057\u304F\u3042\u308A\u307E\u305B\u3093\u3002\u30B7\u30B9\u30C6\u30E0\u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8\u304A\u3088\u3073/\u307E\u305F\u306FbodyParameters\u304C\u4E0D\u8DB3\u3057\u3066\u3044\u307E\u3059: {{taskName}}","error.intsvc.connection_required":"\u3053\u306E\u30BF\u30B9\u30AF\u306B\u306F\u63A5\u7D9A\u304C\u5FC5\u8981\u3067\u3059: {{taskName}}","error.intsvc.endpoint_required":"\u3053\u306E\u30BF\u30B9\u30AF\u306B\u306F\u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8\u304C\u5FC5\u8981\u3067\u3059: {{taskName}}\u3002\u30BF\u30B9\u30AF\u8A2D\u5B9A\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002","error.intsvc.url_and_method_required":"\u3053\u306E\u30BF\u30B9\u30AF\u306B\u306F\u30EA\u30AF\u30A8\u30B9\u30C8URL\u3068\u30E1\u30BD\u30C3\u30C9\u304C\u5FC5\u8981\u3067\u3059: {{taskName}}","error.intsvc.failed_call":"IS\u547C\u3073\u51FA\u3057\u306E\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F","error.intsvc.failed_call_to":"{{endpoint}}\u3078\u306EIS\u547C\u3073\u51FA\u3057\u306E\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F","error.intsvc.vendor_failure":"\u30D9\u30F3\u30C0\u30FC\u30B7\u30B9\u30C6\u30E0\u304B\u3089API\u3067\u30A8\u30E9\u30FC\u3092\u53D7\u4FE1\u3057\u307E\u3057\u305F - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"UiPathAdditionalEventData\u304B\u3089processedEventId\u3092\u89E3\u6790\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F","error.intsvc_event.debug_not_supported_trigger":"\u3053\u306E\u30C8\u30EA\u30AC\u30FC\u3067\u306F\u30C7\u30D0\u30C3\u30B0\u306F\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u516C\u958B\u3057\u3066\u30A4\u30D9\u30F3\u30C8\u3092\u53D6\u5F97\u3057\u3001\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u81EA\u52D5\u7684\u306B\u30C8\u30EA\u30AC\u30FC\u3057\u3066\u304F\u3060\u3055\u3044\u3002","error.intsvc_event.debug_not_supported_workflow":"\u3053\u306E\u30C8\u30EA\u30AC\u30FC\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3067\u306F\u30C7\u30D0\u30C3\u30B0\u306F\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002","error.intsvc_event.failed_call":"IS\u30A4\u30D9\u30F3\u30C8\u547C\u3073\u51FA\u3057\u306E\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F","error.workflow.execution_failed":"\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F","error.workflow.task_execution_failed":"\u30BF\u30B9\u30AF\u306E\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F","error.workflow.unknown_task_error":"\u30BF\u30B9\u30AF '{{taskName}}' \u306E\u5B9F\u884C\u4E2D\u306B\u4E0D\u660E\u306A\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F","error.workflow.error_handling_task":"\u30BF\u30B9\u30AF\u51E6\u7406\u4E2D\u306E\u30A8\u30E9\u30FC: {{taskName}}","error.workflow.no_do_tasks":"\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306Bdo\u30BF\u30B9\u30AF\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093","error.expression.worker_operation_failed":"Worker\u64CD\u4F5C\u306B\u5931\u6557\u3057\u307E\u3057\u305F","error.expression.worker_error":"Worker\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F","error.expression.timeout":"{{operation}}\u304C\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F","error.expression.evaluation_error":"\u5F0F\u306E\u8A55\u4FA1\u4E2D\u306B\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F","error.expression.api_not_allowed":"{{api}}\u306F\u5F0F\u3068\u30B9\u30AF\u30EA\u30D7\u30C8\u3067\u8A31\u53EF\u3055\u308C\u3066\u3044\u307E\u305B\u3093","error.expression.eval_not_allowed":"eval\u306F\u5F0F\u3068\u30B9\u30AF\u30EA\u30D7\u30C8\u3067\u8A31\u53EF\u3055\u308C\u3066\u3044\u307E\u305B\u3093","error.expression.script_timeout":"\u30B9\u30AF\u30EA\u30D7\u30C8\u306E\u5B9F\u884C\u304C{{timeoutMs}}\u30DF\u30EA\u79D2\u5F8C\u306B\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F","error.expression.invalid_eval_mode":"\u30EF\u30FC\u30AB\u30FC\u306B\u6709\u52B9\u306A\u8A55\u4FA1\u30E2\u30FC\u30C9\u304C\u63D0\u4F9B\u3055\u308C\u3066\u3044\u307E\u305B\u3093: {{mode}}","error.expression.worker_terminated":"\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u4E2D\u306BWorker\u304C\u7D42\u4E86\u3057\u307E\u3057\u305F","error.expression.json_patch_unavailable":"fast-json-patch.compare\u95A2\u6570\u304C\u5229\u7528\u3067\u304D\u307E\u305B\u3093","error.expression.json_patch_load_failed":"\u30D6\u30E9\u30A6\u30B6\u30EF\u30FC\u30AB\u30FC\u3067fast-json-patch\u306E\u8AAD\u307F\u8FBC\u307F\u306B\u5931\u6557\u3057\u307E\u3057\u305F","error.expression.json_patch_path_unavailable":"\u30D6\u30E9\u30A6\u30B6\u3067globalThis.fastJsonPatchPath\u304C\u5229\u7528\u3067\u304D\u307E\u305B\u3093","error.expression.template_non_string":"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u6587\u5B57\u5217 {{template}} \u304C\u975E\u6587\u5B57\u5217\u5024\u306B\u89E3\u6C7A\u3055\u308C\u307E\u3057\u305F: {{value}}","error.expression.get_context_diff_not_impl":"getContextDiff\u306F{{handler}}\u3067\u5B9F\u88C5\u3055\u308C\u3066\u3044\u307E\u305B\u3093","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff\u306F{{handler}}\u3067\u5B9F\u88C5\u3055\u308C\u3066\u3044\u307E\u305B\u3093","error.switch.no_matching_case":"Switch\u30BF\u30B9\u30AF '{{taskName}}' \u306B\u4E00\u81F4\u3059\u308B\u30B1\u30FC\u30B9\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093","error.switch.invalid_transition":"Switch\u30BF\u30B9\u30AF '{{taskName}}' \u306E\u7121\u52B9\u306A\u9077\u79FB: \u6B21\u306E\u30B9\u30C6\u30C3\u30D7 '{{nextStep}}' \u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093","error.switch.task_not_found":"\u30BF\u30B9\u30AF '{{taskName}}' \u304C\u73FE\u5728\u306E\u30EC\u30D9\u30EB\u306E\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8\u306B\u898B\u3064\u304B\u308A\u307E\u305B\u3093","error.switch.failed":"Switch\u30BF\u30B9\u30AF\u306E\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {{taskName}}","error.switch.missing_when_condition":"\u30B9\u30A4\u30C3\u30C1\u30B1\u30FC\u30B9\u306B'when'\u6761\u4EF6\u304C\u3042\u308A\u307E\u305B\u3093: '{{caseName}}'","error.switch.invalid_case_transition":"\u30B9\u30C6\u30C3\u30D7 '{{stepName}}' \u306E\u30B9\u30A4\u30C3\u30C1\u30B1\u30FC\u30B9\u9077\u79FB\u304C\u7121\u52B9\u3067\u3059: \u30B1\u30FC\u30B9 '{{caseName}}' \u306B\u6709\u52B9\u306A 'then' \u9077\u79FB\u304C\u3042\u308A\u307E\u305B\u3093\u3002","error.script.no_code":"\u30B9\u30AF\u30EA\u30D7\u30C8\u30BF\u30B9\u30AF\u306B\u30B3\u30FC\u30C9\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093: {{taskName}}","error.script.failed":"\u30B9\u30AF\u30EA\u30D7\u30C8\u306E\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F","error.set.failed":"Set\u30BF\u30B9\u30AF\u306E\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {{taskName}}","error.task_invoker.unsupported_type":"\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u306A\u3044\u30BF\u30B9\u30AF\u30BF\u30A4\u30D7","error.task_invoker.not_implemented":"\u30BF\u30B9\u30AF\u304C\u5B9F\u88C5\u3055\u308C\u3066\u3044\u307E\u305B\u3093: {{taskName}}","error.task_invoker.unsupported_type_detail":"\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u306A\u3044\u30BF\u30B9\u30AF\u30BF\u30A4\u30D7: {{taskType}}","error.runtime.deno_worker_init_failed":"Deno Worker\u306E\u521D\u671F\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F","error.runtime.handler_disposed":"\u30CF\u30F3\u30C9\u30E9\u30FC\u304C\u7834\u68C4\u3055\u308C\u307E\u3057\u305F","error.runtime.traceview_api_failed":"TraceView API\u304C\u5931\u6557\u3057\u307E\u3057\u305F\u3001TraceId: {{traceId}}\u3001JobKey: {{jobKey}}: {{status}} {{statusText}}","error.runtime.traceview_send_failed":"TraceView\u3078\u306E\u30B9\u30D1\u30F3\u306E\u9001\u4FE1\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3001TraceId: {{traceId}}\u3001JobKey: {{jobKey}}: {{errorMessage}}","log.traceview.skip":"TraceViewLogger: {{reason}}","log.traceview.flushing":"TraceViewLogger: {{count}}\u500B\u306E\u30B9\u30D1\u30F3\u3092TraceView\u306B\u9001\u4FE1\u4E2D...","log.traceview.success":"TraceViewLogger: {{count}}\u500B\u306E\u30B9\u30D1\u30F3\u3092TraceView\u306B\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002TraceId: {{traceId}}\u3001JobKey: {{jobKey}}","error.runtime.socket_server_error":"\u30BD\u30B1\u30C3\u30C8\u30B5\u30FC\u30D0\u30FC\u304C\u30A8\u30E9\u30FC\u3092\u8FD4\u3057\u307E\u3057\u305F: HTTP {{status}}: {{statusText}}","error.runtime.socket_comm_failed":"\u30BD\u30B1\u30C3\u30C8\u901A\u4FE1\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {{errorMessage}}","error.runtime.workflow_context_required":"\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u304C\u5FC5\u8981\u3067\u3059","error.runtime.file_read_error":"\u30D5\u30A1\u30A4\u30EB {{filePath}} \u306E\u8AAD\u307F\u53D6\u308A\u30A8\u30E9\u30FC","error.generic.internal_error":"\u5185\u90E8\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F"}});var BE=O((GQ,sL)=>{sL.exports={"error.http.url_required":"URL\uC740 \uD544\uC218\uC774\uBA70 \uBE44\uC6CC\uB458 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4","error.http.invalid_url":"\uC720\uD6A8\uD558\uC9C0 \uC54A\uAC70\uB098 \uBD88\uC644\uC804\uD55C \uC6F9 URL: {{url}}","error.http.failed_call":"HTTP \uD638\uCD9C \uC2E4\uD589\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4","error.http.failed_call_to":"{{endpoint}}\uC5D0 \uB300\uD55C HTTP \uD638\uCD9C \uC2E4\uD589\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4","error.http.config_invalid":"HTTP \uC791\uC5C5\uC5D0 \uB300\uD574 \uC798\uBABB\uB41C \uAD6C\uC131\uC744 \uBC1B\uC558\uC2B5\uB2C8\uB2E4. \uC2DC\uC2A4\uD15C \uC5D4\uB4DC\uD3EC\uC778\uD2B8 \uBC0F/\uB610\uB294 bodyParameters\uAC00 \uB204\uB77D\uB418\uC5C8\uC2B5\uB2C8\uB2E4: {{taskName}}","error.intsvc.connection_required":"\uC774 \uC791\uC5C5\uC5D0\uB294 \uC5F0\uACB0\uC774 \uD544\uC694\uD569\uB2C8\uB2E4: {{taskName}}","error.intsvc.endpoint_required":"\uC774 \uC791\uC5C5\uC5D0\uB294 \uC5D4\uB4DC\uD3EC\uC778\uD2B8\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4: {{taskName}}. \uC791\uC5C5 \uAD6C\uC131\uC744 \uD655\uC778\uD558\uC138\uC694.","error.intsvc.url_and_method_required":"\uC774 \uC791\uC5C5\uC5D0\uB294 \uC694\uCCAD URL\uACFC \uBA54\uC11C\uB4DC\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4: {{taskName}}","error.intsvc.failed_call":"IS \uD638\uCD9C \uC2E4\uD589\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4","error.intsvc.failed_call_to":"{{endpoint}}\uC5D0 \uB300\uD55C IS \uD638\uCD9C \uC2E4\uD589\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4","error.intsvc.vendor_failure":"\uBCA4\uB354 \uC2DC\uC2A4\uD15C\uC5D0\uC11C API \uC624\uB958\uB97C \uC218\uC2E0\uD588\uC2B5\uB2C8\uB2E4 - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"UiPathAdditionalEventData\uC5D0\uC11C processedEventId\uB97C \uAD6C\uBB38 \uBD84\uC11D\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4","error.intsvc_event.debug_not_supported_trigger":"\uC774 \uD2B8\uB9AC\uAC70\uC5D0\uC11C\uB294 \uB514\uBC84\uADF8\uAC00 \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uD504\uB85C\uC81D\uD2B8\uB97C \uAC8C\uC2DC\uD558\uC5EC \uC774\uBCA4\uD2B8\uB97C \uAC00\uC838\uC624\uACE0 \uC6CC\uD06C\uD50C\uB85C\uB97C \uC790\uB3D9\uC73C\uB85C \uD2B8\uB9AC\uAC70\uD558\uC138\uC694.","error.intsvc_event.debug_not_supported_workflow":"\uC774 \uD2B8\uB9AC\uAC70 \uC6CC\uD06C\uD50C\uB85C\uC5D0\uC11C\uB294 \uB514\uBC84\uADF8\uAC00 \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","error.intsvc_event.failed_call":"IS \uC774\uBCA4\uD2B8 \uD638\uCD9C \uC2E4\uD589\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4","error.workflow.execution_failed":"\uC6CC\uD06C\uD50C\uB85C \uC2E4\uD589\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4","error.workflow.task_execution_failed":"\uC791\uC5C5 \uC2E4\uD589\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4","error.workflow.unknown_task_error":"\uC791\uC5C5 '{{taskName}}' \uC2E4\uD589 \uC911 \uC54C \uC218 \uC5C6\uB294 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4","error.workflow.error_handling_task":"\uC791\uC5C5 \uCC98\uB9AC \uC911 \uC624\uB958: {{taskName}}","error.workflow.no_do_tasks":"\uC6CC\uD06C\uD50C\uB85C\uC5D0\uC11C do \uC791\uC5C5\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4","error.expression.worker_operation_failed":"Worker \uC791\uC5C5\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4","error.expression.worker_error":"Worker \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4","error.expression.timeout":"{{operation}} \uC2DC\uAC04 \uCD08\uACFC","error.expression.evaluation_error":"\uD45C\uD604\uC2DD \uD3C9\uAC00 \uC911 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4","error.expression.api_not_allowed":"{{api}}\uC740(\uB294) \uD45C\uD604\uC2DD \uBC0F \uC2A4\uD06C\uB9BD\uD2B8\uC5D0\uC11C \uD5C8\uC6A9\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4","error.expression.eval_not_allowed":"eval\uC740 \uD45C\uD604\uC2DD \uBC0F \uC2A4\uD06C\uB9BD\uD2B8\uC5D0\uC11C \uD5C8\uC6A9\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4","error.expression.script_timeout":"\uC2A4\uD06C\uB9BD\uD2B8 \uC2E4\uD589\uC774 {{timeoutMs}}ms \uD6C4 \uC2DC\uAC04 \uCD08\uACFC\uB418\uC5C8\uC2B5\uB2C8\uB2E4","error.expression.invalid_eval_mode":"\uC6CC\uCEE4\uC5D0 \uC720\uD6A8\uD55C \uD3C9\uAC00 \uBAA8\uB4DC\uAC00 \uC81C\uACF5\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4: {{mode}}","error.expression.worker_terminated":"\uC815\uB9AC \uC911 Worker\uAC00 \uC885\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4","error.expression.json_patch_unavailable":"fast-json-patch.compare \uD568\uC218\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4","error.expression.json_patch_load_failed":"\uBE0C\uB77C\uC6B0\uC800 \uC6CC\uCEE4\uC5D0\uC11C fast-json-patch\uB97C \uB85C\uB4DC\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4","error.expression.json_patch_path_unavailable":"\uBE0C\uB77C\uC6B0\uC800\uC5D0\uC11C globalThis.fastJsonPatchPath\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4","error.expression.template_non_string":"\uD15C\uD50C\uB9BF \uBB38\uC790\uC5F4 {{template}}\uC774(\uAC00) \uBE44\uBB38\uC790\uC5F4 \uAC12\uC73C\uB85C \uD574\uACB0\uB418\uC5C8\uC2B5\uB2C8\uB2E4: {{value}}","error.expression.get_context_diff_not_impl":"getContextDiff\uAC00 {{handler}}\uC5D0\uC11C \uAD6C\uD604\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff\uAC00 {{handler}}\uC5D0\uC11C \uAD6C\uD604\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4","error.switch.no_matching_case":"Switch \uC791\uC5C5 '{{taskName}}'\uC5D0 \uB300\uD574 \uC77C\uCE58\uD558\uB294 \uCF00\uC774\uC2A4\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4","error.switch.invalid_transition":"Switch \uC791\uC5C5 '{{taskName}}'\uC5D0 \uB300\uD55C \uC798\uBABB\uB41C \uC804\uD658: \uB2E4\uC74C \uB2E8\uACC4 '{{nextStep}}'\uC744(\uB97C) \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4","error.switch.task_not_found":"\uD604\uC7AC \uB808\uBCA8 \uC791\uC5C5 \uBAA9\uB85D\uC5D0\uC11C \uC791\uC5C5 '{{taskName}}'\uC744(\uB97C) \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4","error.switch.failed":"Switch \uC791\uC5C5 \uC2E4\uD589\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4: {{taskName}}","error.switch.missing_when_condition":"\uC2A4\uC704\uCE58 \uCF00\uC774\uC2A4\uC5D0 'when' \uC870\uAC74\uC774 \uB204\uB77D\uB418\uC5C8\uC2B5\uB2C8\uB2E4: '{{caseName}}'","error.switch.invalid_case_transition":"\uB2E8\uACC4 '{{stepName}}'\uC5D0 \uB300\uD55C \uC2A4\uC704\uCE58 \uCF00\uC774\uC2A4 \uC804\uD658\uC774 \uC798\uBABB\uB418\uC5C8\uC2B5\uB2C8\uB2E4: \uCF00\uC774\uC2A4 '{{caseName}}'\uC5D0 \uC720\uD6A8\uD55C 'then' \uC804\uD658\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.","error.script.no_code":"\uC2A4\uD06C\uB9BD\uD2B8 \uC791\uC5C5\uC5D0 \uB300\uD55C \uCF54\uB4DC\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: {{taskName}}","error.script.failed":"\uC2A4\uD06C\uB9BD\uD2B8 \uC2E4\uD589\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4","error.set.failed":"Set \uC791\uC5C5 \uC2E4\uD589\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4: {{taskName}}","error.task_invoker.unsupported_type":"\uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC791\uC5C5 \uC720\uD615","error.task_invoker.not_implemented":"\uAD6C\uD604\uB418\uC9C0 \uC54A\uC740 \uC791\uC5C5: {{taskName}}","error.task_invoker.unsupported_type_detail":"\uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC791\uC5C5 \uC720\uD615: {{taskType}}","error.runtime.deno_worker_init_failed":"Deno Worker \uCD08\uAE30\uD654\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4","error.runtime.handler_disposed":"\uD578\uB4E4\uB7EC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4","error.runtime.traceview_api_failed":"TraceView API \uC2E4\uD328, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{status}} {{statusText}}","error.runtime.traceview_send_failed":"TraceView\uB85C \uC2A4\uD32C \uC804\uC1A1\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{errorMessage}}","log.traceview.skip":"TraceViewLogger: {{reason}}","log.traceview.flushing":"TraceViewLogger: {{count}}\uAC1C\uC758 \uC2A4\uD32C\uC744 TraceView\uB85C \uC804\uC1A1 \uC911...","log.traceview.success":"TraceViewLogger: {{count}}\uAC1C\uC758 \uC2A4\uD32C\uC774 TraceView\uC5D0 \uC5C5\uB370\uC774\uD2B8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. TraceId: {{traceId}}, JobKey: {{jobKey}}","error.runtime.socket_server_error":"\uC18C\uCF13 \uC11C\uBC84\uC5D0\uC11C \uC624\uB958\uB97C \uBC18\uD658\uD588\uC2B5\uB2C8\uB2E4: HTTP {{status}}: {{statusText}}","error.runtime.socket_comm_failed":"\uC18C\uCF13 \uD1B5\uC2E0\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4: {{errorMessage}}","error.runtime.workflow_context_required":"\uC6CC\uD06C\uD50C\uB85C \uCEE8\uD14D\uC2A4\uD2B8\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4","error.runtime.file_read_error":"\uD30C\uC77C {{filePath}} \uC77D\uAE30 \uC624\uB958","error.generic.internal_error":"\uB0B4\uBD80 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4"}});var HE=O((XQ,aL)=>{aL.exports={"error.http.url_required":"La URL es obligatoria y no puede estar vac\xEDa","error.http.invalid_url":"URL web inv\xE1lida o incompleta: {{url}}","error.http.failed_call":"Error al ejecutar la llamada HTTP","error.http.failed_call_to":"Error al ejecutar la llamada HTTP a {{endpoint}}","error.http.config_invalid":"Configuraci\xF3n incorrecta recibida para la tarea HTTP. Falta el endpoint del sistema y/o bodyParameters para: {{taskName}}","error.intsvc.connection_required":"Se requiere conexi\xF3n para esta tarea: {{taskName}}","error.intsvc.endpoint_required":"Se requiere endpoint para esta tarea: {{taskName}}. Por favor, verifique la configuraci\xF3n de la tarea.","error.intsvc.url_and_method_required":"Se requieren URL y m\xE9todo de solicitud para esta tarea: {{taskName}}","error.intsvc.failed_call":"Error al ejecutar la llamada IS","error.intsvc.failed_call_to":"Error al ejecutar la llamada IS a {{endpoint}}","error.intsvc.vendor_failure":"Se recibi\xF3 error del sistema del proveedor en la API - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"No se pudo analizar processedEventId de UiPathAdditionalEventData","error.intsvc_event.debug_not_supported_trigger":"La depuraci\xF3n no es compatible con este disparador. Por favor, publique el proyecto para recuperar los eventos y activar el flujo de trabajo autom\xE1ticamente.","error.intsvc_event.debug_not_supported_workflow":"La depuraci\xF3n no es compatible con este flujo de trabajo de disparador.","error.intsvc_event.failed_call":"Error al ejecutar la llamada de evento IS","error.workflow.execution_failed":"Error en la ejecuci\xF3n del flujo de trabajo","error.workflow.task_execution_failed":"Error en la ejecuci\xF3n de la tarea","error.workflow.unknown_task_error":"Error desconocido al ejecutar la tarea '{{taskName}}'","error.workflow.error_handling_task":"Error al procesar la tarea: {{taskName}}","error.workflow.no_do_tasks":"No se encontraron tareas do en el flujo de trabajo","error.expression.worker_operation_failed":"Error en la operaci\xF3n del Worker","error.expression.worker_error":"Se produjo un error del Worker","error.expression.timeout":"{{operation}} agot\xF3 el tiempo de espera","error.expression.evaluation_error":"Se ha producido un error al evaluar una expresi\xF3n","error.expression.api_not_allowed":"{{api}} no est\xE1 permitido en expresiones y scripts","error.expression.eval_not_allowed":"eval no est\xE1 permitido en expresiones y scripts","error.expression.script_timeout":"La ejecuci\xF3n del script agot\xF3 el tiempo de espera despu\xE9s de {{timeoutMs}}ms","error.expression.invalid_eval_mode":"No se proporcion\xF3 un modo de evaluaci\xF3n v\xE1lido al worker: {{mode}}","error.expression.worker_terminated":"Worker terminado durante la limpieza","error.expression.json_patch_unavailable":"La funci\xF3n fast-json-patch.compare no est\xE1 disponible","error.expression.json_patch_load_failed":"Error al cargar fast-json-patch en el worker del navegador","error.expression.json_patch_path_unavailable":"globalThis.fastJsonPatchPath no est\xE1 disponible en el navegador","error.expression.template_non_string":"La cadena de plantilla {{template}} se resolvi\xF3 a un valor que no es cadena: {{value}}","error.expression.get_context_diff_not_impl":"getContextDiff no est\xE1 implementado en {{handler}}","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff no est\xE1 implementado en {{handler}}","error.switch.no_matching_case":"No se encontr\xF3 caso coincidente para la tarea Switch '{{taskName}}'","error.switch.invalid_transition":"Transici\xF3n inv\xE1lida para la tarea Switch '{{taskName}}': No se encontr\xF3 el siguiente paso '{{nextStep}}'","error.switch.task_not_found":"No se encontr\xF3 la tarea '{{taskName}}' en la lista de tareas del nivel actual","error.switch.failed":"Error al ejecutar la tarea Switch: {{taskName}}","error.switch.missing_when_condition":"Falta la condici\xF3n 'when' en el caso switch: '{{caseName}}'","error.switch.invalid_case_transition":"Transici\xF3n de caso switch inv\xE1lida para el paso '{{stepName}}': El caso '{{caseName}}' no tiene una transici\xF3n 'then' v\xE1lida.","error.script.no_code":"No se encontr\xF3 c\xF3digo para la tarea de script: {{taskName}}","error.script.failed":"Error en la ejecuci\xF3n del script","error.set.failed":"Error al ejecutar la tarea Set: {{taskName}}","error.task_invoker.unsupported_type":"Tipo de tarea no compatible","error.task_invoker.not_implemented":"Tarea no implementada: {{taskName}}","error.task_invoker.unsupported_type_detail":"Tipo de tarea no compatible: {{taskType}}","error.runtime.deno_worker_init_failed":"Error al inicializar el Deno Worker","error.runtime.handler_disposed":"Handler eliminado","error.runtime.traceview_api_failed":"Error en la API de TraceView, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{status}} {{statusText}}","error.runtime.traceview_send_failed":"Error al enviar spans a TraceView, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{errorMessage}}","log.traceview.skip":"TraceViewLogger: {{reason}}","log.traceview.flushing":"TraceViewLogger: Enviando {{count}} spans a TraceView...","log.traceview.success":"TraceViewLogger: {{count}} spans actualizados en TraceView. TraceId: {{traceId}}, JobKey: {{jobKey}}","error.runtime.socket_server_error":"El servidor Socket devolvi\xF3 un error: HTTP {{status}}: {{statusText}}","error.runtime.socket_comm_failed":"Error en la comunicaci\xF3n del Socket: {{errorMessage}}","error.runtime.workflow_context_required":"Se requiere el contexto del flujo de trabajo","error.runtime.file_read_error":"Error al leer el archivo {{filePath}}","error.generic.internal_error":"Se produjo un error interno"}});var VE=O((ZQ,cL)=>{cL.exports={"error.http.url_required":"La URL es obligatoria y no puede estar vac\xEDa","error.http.invalid_url":"URL web inv\xE1lida o incompleta: {{url}}","error.http.failed_call":"Error al ejecutar la llamada HTTP","error.http.failed_call_to":"Error al ejecutar la llamada HTTP a {{endpoint}}","error.http.config_invalid":"Configuraci\xF3n incorrecta recibida para la tarea HTTP. Falta el endpoint del sistema y/o bodyParameters para: {{taskName}}","error.intsvc.connection_required":"Se requiere conexi\xF3n para esta tarea: {{taskName}}","error.intsvc.endpoint_required":"Se requiere endpoint para esta tarea: {{taskName}}. Por favor, verifique la configuraci\xF3n de la tarea.","error.intsvc.url_and_method_required":"Se requieren URL y m\xE9todo de solicitud para esta tarea: {{taskName}}","error.intsvc.failed_call":"Error al ejecutar la llamada IS","error.intsvc.failed_call_to":"Error al ejecutar la llamada IS a {{endpoint}}","error.intsvc.vendor_failure":"Se recibi\xF3 error del sistema del proveedor en la API - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"No se pudo analizar processedEventId de UiPathAdditionalEventData","error.intsvc_event.debug_not_supported_trigger":"La depuraci\xF3n no es compatible con este disparador. Por favor, publique el proyecto para recuperar los eventos y activar el flujo de trabajo autom\xE1ticamente.","error.intsvc_event.debug_not_supported_workflow":"La depuraci\xF3n no es compatible con este flujo de trabajo de disparador.","error.intsvc_event.failed_call":"Error al ejecutar la llamada de evento IS","error.workflow.execution_failed":"Error en la ejecuci\xF3n del flujo de trabajo","error.workflow.task_execution_failed":"Error en la ejecuci\xF3n de la tarea","error.workflow.unknown_task_error":"Error desconocido al ejecutar la tarea '{{taskName}}'","error.workflow.error_handling_task":"Error al procesar la tarea: {{taskName}}","error.workflow.no_do_tasks":"No se encontraron tareas do en el flujo de trabajo","error.expression.worker_operation_failed":"Error en la operaci\xF3n del Worker","error.expression.worker_error":"Se produjo un error del Worker","error.expression.timeout":"{{operation}} agot\xF3 el tiempo de espera","error.expression.evaluation_error":"Se ha producido un error al evaluar una expresi\xF3n","error.expression.api_not_allowed":"{{api}} no est\xE1 permitido en expresiones y scripts","error.expression.eval_not_allowed":"eval no est\xE1 permitido en expresiones y scripts","error.expression.script_timeout":"La ejecuci\xF3n del script agot\xF3 el tiempo de espera despu\xE9s de {{timeoutMs}}ms","error.expression.invalid_eval_mode":"No se proporcion\xF3 un modo de evaluaci\xF3n v\xE1lido al worker: {{mode}}","error.expression.worker_terminated":"Worker terminado durante la limpieza","error.expression.json_patch_unavailable":"La funci\xF3n fast-json-patch.compare no est\xE1 disponible","error.expression.json_patch_load_failed":"Error al cargar fast-json-patch en el worker del navegador","error.expression.json_patch_path_unavailable":"globalThis.fastJsonPatchPath no est\xE1 disponible en el navegador","error.expression.template_non_string":"La cadena de plantilla {{template}} se resolvi\xF3 a un valor que no es cadena: {{value}}","error.expression.get_context_diff_not_impl":"getContextDiff no est\xE1 implementado en {{handler}}","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff no est\xE1 implementado en {{handler}}","error.switch.no_matching_case":"No se encontr\xF3 caso coincidente para la tarea Switch '{{taskName}}'","error.switch.invalid_transition":"Transici\xF3n inv\xE1lida para la tarea Switch '{{taskName}}': No se encontr\xF3 el siguiente paso '{{nextStep}}'","error.switch.task_not_found":"No se encontr\xF3 la tarea '{{taskName}}' en la lista de tareas del nivel actual","error.switch.failed":"Error al ejecutar la tarea Switch: {{taskName}}","error.switch.missing_when_condition":"Falta la condici\xF3n 'when' en el caso switch: '{{caseName}}'","error.switch.invalid_case_transition":"Transici\xF3n de caso switch inv\xE1lida para el paso '{{stepName}}': El caso '{{caseName}}' no tiene una transici\xF3n 'then' v\xE1lida.","error.script.no_code":"No se encontr\xF3 c\xF3digo para la tarea de script: {{taskName}}","error.script.failed":"Error en la ejecuci\xF3n del script","error.set.failed":"Error al ejecutar la tarea Set: {{taskName}}","error.task_invoker.unsupported_type":"Tipo de tarea no compatible","error.task_invoker.not_implemented":"Tarea no implementada: {{taskName}}","error.task_invoker.unsupported_type_detail":"Tipo de tarea no compatible: {{taskType}}","error.runtime.deno_worker_init_failed":"Error al inicializar el Deno Worker","error.runtime.handler_disposed":"Handler eliminado","error.runtime.traceview_api_failed":"Error en la API de TraceView, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{status}} {{statusText}}","error.runtime.traceview_send_failed":"Error al enviar spans a TraceView, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{errorMessage}}","log.traceview.skip":"TraceViewLogger: {{reason}}","log.traceview.flushing":"TraceViewLogger: Enviando {{count}} spans a TraceView...","log.traceview.success":"TraceViewLogger: {{count}} spans actualizados en TraceView. TraceId: {{traceId}}, JobKey: {{jobKey}}","error.runtime.socket_server_error":"El servidor Socket devolvi\xF3 un error: HTTP {{status}}: {{statusText}}","error.runtime.socket_comm_failed":"Error en la comunicaci\xF3n del Socket: {{errorMessage}}","error.runtime.workflow_context_required":"Se requiere el contexto del flujo de trabajo","error.runtime.file_read_error":"Error al leer el archivo {{filePath}}","error.generic.internal_error":"Se produjo un error interno"}});var zE=O((QQ,uL)=>{uL.exports={"error.http.url_required":"O URL \xE9 obrigat\xF3rio e n\xE3o pode estar vazio","error.http.invalid_url":"URL web inv\xE1lido ou incompleto: {{url}}","error.http.failed_call":"Falha ao executar a chamada HTTP","error.http.failed_call_to":"Falha ao executar a chamada HTTP para {{endpoint}}","error.http.config_invalid":"Configura\xE7\xE3o incorreta recebida para a tarefa HTTP. Endpoint do sistema e/ou bodyParameters em falta para: {{taskName}}","error.intsvc.connection_required":"\xC9 necess\xE1ria uma conex\xE3o para esta tarefa: {{taskName}}","error.intsvc.endpoint_required":"\xC9 necess\xE1rio um endpoint para esta tarefa: {{taskName}}. Por favor, verifique a configura\xE7\xE3o da tarefa.","error.intsvc.url_and_method_required":"S\xE3o necess\xE1rios URL e m\xE9todo de pedido para esta tarefa: {{taskName}}","error.intsvc.failed_call":"Falha ao executar a chamada IS","error.intsvc.failed_call_to":"Falha ao executar a chamada IS para {{endpoint}}","error.intsvc.vendor_failure":"Recebido erro do sistema do fornecedor na API - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"N\xE3o foi poss\xEDvel analisar processedEventId de UiPathAdditionalEventData","error.intsvc_event.debug_not_supported_trigger":"A depura\xE7\xE3o n\xE3o \xE9 suportada para este acionador. Por favor, publique o projeto para obter os eventos e acionar o fluxo de trabalho automaticamente.","error.intsvc_event.debug_not_supported_workflow":"A depura\xE7\xE3o n\xE3o \xE9 suportada para este fluxo de trabalho de acionador.","error.intsvc_event.failed_call":"Falha ao executar a chamada de evento IS","error.workflow.execution_failed":"Falha na execu\xE7\xE3o do fluxo de trabalho","error.workflow.task_execution_failed":"Falha na execu\xE7\xE3o da tarefa","error.workflow.unknown_task_error":"Erro desconhecido ao executar a tarefa '{{taskName}}'","error.workflow.error_handling_task":"Erro ao processar a tarefa: {{taskName}}","error.workflow.no_do_tasks":"N\xE3o foram encontradas tarefas do no fluxo de trabalho","error.expression.worker_operation_failed":"Falha na opera\xE7\xE3o do Worker","error.expression.worker_error":"Ocorreu um erro do Worker","error.expression.timeout":"{{operation}} expirou","error.expression.evaluation_error":"Ocorreu um erro ao avaliar uma express\xE3o","error.expression.api_not_allowed":"{{api}} n\xE3o \xE9 permitido em express\xF5es e scripts","error.expression.eval_not_allowed":"eval n\xE3o \xE9 permitido em express\xF5es e scripts","error.expression.script_timeout":"A execu\xE7\xE3o do script expirou ap\xF3s {{timeoutMs}}ms","error.expression.invalid_eval_mode":"Nenhum modo de avalia\xE7\xE3o v\xE1lido foi fornecido ao worker: {{mode}}","error.expression.worker_terminated":"Worker terminado durante a limpeza","error.expression.json_patch_unavailable":"A fun\xE7\xE3o fast-json-patch.compare n\xE3o est\xE1 dispon\xEDvel","error.expression.json_patch_load_failed":"Falha ao carregar fast-json-patch no worker do navegador","error.expression.json_patch_path_unavailable":"globalThis.fastJsonPatchPath n\xE3o est\xE1 dispon\xEDvel no navegador","error.expression.template_non_string":"A string de modelo {{template}} foi resolvida para um valor n\xE3o-string: {{value}}","error.expression.get_context_diff_not_impl":"getContextDiff n\xE3o est\xE1 implementado em {{handler}}","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff n\xE3o est\xE1 implementado em {{handler}}","error.switch.no_matching_case":"Nenhum caso correspondente encontrado para a tarefa Switch '{{taskName}}'","error.switch.invalid_transition":"Transi\xE7\xE3o inv\xE1lida para a tarefa Switch '{{taskName}}': Pr\xF3ximo passo '{{nextStep}}' n\xE3o encontrado","error.switch.task_not_found":"Tarefa '{{taskName}}' n\xE3o encontrada na lista de tarefas do n\xEDvel atual","error.switch.failed":"Falha ao executar a tarefa Switch: {{taskName}}","error.switch.missing_when_condition":"Condi\xE7\xE3o 'when' em falta no caso switch: '{{caseName}}'","error.switch.invalid_case_transition":"Transi\xE7\xE3o de caso switch inv\xE1lida para o passo '{{stepName}}': O caso '{{caseName}}' n\xE3o tem uma transi\xE7\xE3o 'then' v\xE1lida.","error.script.no_code":"Nenhum c\xF3digo encontrado para a tarefa de script: {{taskName}}","error.script.failed":"Falha na execu\xE7\xE3o do script","error.set.failed":"Falha ao executar a tarefa Set: {{taskName}}","error.task_invoker.unsupported_type":"Tipo de tarefa n\xE3o suportado","error.task_invoker.not_implemented":"Tarefa n\xE3o implementada: {{taskName}}","error.task_invoker.unsupported_type_detail":"Tipo de tarefa n\xE3o suportado: {{taskType}}","error.runtime.deno_worker_init_failed":"Falha ao inicializar o Deno Worker","error.runtime.handler_disposed":"Handler descartado","error.runtime.traceview_api_failed":"Falha na API TraceView, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{status}} {{statusText}}","error.runtime.traceview_send_failed":"Falha ao enviar spans para TraceView, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{errorMessage}}","log.traceview.skip":"TraceViewLogger: {{reason}}","log.traceview.flushing":"TraceViewLogger: A enviar {{count}} spans para TraceView...","log.traceview.success":"TraceViewLogger: {{count}} spans atualizados em TraceView. TraceId: {{traceId}}, JobKey: {{jobKey}}","error.runtime.socket_server_error":"O servidor Socket devolveu um erro: HTTP {{status}}: {{statusText}}","error.runtime.socket_comm_failed":"Falha na comunica\xE7\xE3o do Socket: {{errorMessage}}","error.runtime.workflow_context_required":"O contexto do fluxo de trabalho \xE9 obrigat\xF3rio","error.runtime.file_read_error":"Erro ao ler o ficheiro {{filePath}}","error.generic.internal_error":"Ocorreu um erro interno"}});var YE=O((eee,lL)=>{lL.exports={"error.http.url_required":"A URL \xE9 obrigat\xF3ria e n\xE3o pode estar vazia","error.http.invalid_url":"URL web inv\xE1lida ou incompleta: {{url}}","error.http.failed_call":"Falha ao executar a chamada HTTP","error.http.failed_call_to":"Falha ao executar a chamada HTTP para {{endpoint}}","error.http.config_invalid":"Configura\xE7\xE3o incorreta recebida para a tarefa HTTP. Endpoint do sistema e/ou bodyParameters ausentes para: {{taskName}}","error.intsvc.connection_required":"\xC9 necess\xE1ria uma conex\xE3o para esta tarefa: {{taskName}}","error.intsvc.endpoint_required":"\xC9 necess\xE1rio um endpoint para esta tarefa: {{taskName}}. Por favor, verifique a configura\xE7\xE3o da tarefa.","error.intsvc.url_and_method_required":"S\xE3o necess\xE1rios URL e m\xE9todo de solicita\xE7\xE3o para esta tarefa: {{taskName}}","error.intsvc.failed_call":"Falha ao executar a chamada IS","error.intsvc.failed_call_to":"Falha ao executar a chamada IS para {{endpoint}}","error.intsvc.vendor_failure":"Recebido erro do sistema do fornecedor na API - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"N\xE3o foi poss\xEDvel analisar processedEventId de UiPathAdditionalEventData","error.intsvc_event.debug_not_supported_trigger":"A depura\xE7\xE3o n\xE3o \xE9 suportada para este gatilho. Por favor, publique o projeto para obter os eventos e acionar o fluxo de trabalho automaticamente.","error.intsvc_event.debug_not_supported_workflow":"A depura\xE7\xE3o n\xE3o \xE9 suportada para este fluxo de trabalho de gatilho.","error.intsvc_event.failed_call":"Falha ao executar a chamada de evento IS","error.workflow.execution_failed":"Falha na execu\xE7\xE3o do fluxo de trabalho","error.workflow.task_execution_failed":"Falha na execu\xE7\xE3o da tarefa","error.workflow.unknown_task_error":"Erro desconhecido ao executar a tarefa '{{taskName}}'","error.workflow.error_handling_task":"Erro ao processar a tarefa: {{taskName}}","error.workflow.no_do_tasks":"N\xE3o foram encontradas tarefas do no fluxo de trabalho","error.expression.worker_operation_failed":"Falha na opera\xE7\xE3o do Worker","error.expression.worker_error":"Ocorreu um erro do Worker","error.expression.timeout":"{{operation}} expirou","error.expression.evaluation_error":"Ocorreu um erro ao avaliar uma express\xE3o","error.expression.api_not_allowed":"{{api}} n\xE3o \xE9 permitido em express\xF5es e scripts","error.expression.eval_not_allowed":"eval n\xE3o \xE9 permitido em express\xF5es e scripts","error.expression.script_timeout":"A execu\xE7\xE3o do script expirou ap\xF3s {{timeoutMs}}ms","error.expression.invalid_eval_mode":"Nenhum modo de avalia\xE7\xE3o v\xE1lido foi fornecido ao worker: {{mode}}","error.expression.worker_terminated":"Worker terminado durante a limpeza","error.expression.json_patch_unavailable":"A fun\xE7\xE3o fast-json-patch.compare n\xE3o est\xE1 dispon\xEDvel","error.expression.json_patch_load_failed":"Falha ao carregar fast-json-patch no worker do navegador","error.expression.json_patch_path_unavailable":"globalThis.fastJsonPatchPath n\xE3o est\xE1 dispon\xEDvel no navegador","error.expression.template_non_string":"A string de template {{template}} foi resolvida para um valor n\xE3o-string: {{value}}","error.expression.get_context_diff_not_impl":"getContextDiff n\xE3o est\xE1 implementado em {{handler}}","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff n\xE3o est\xE1 implementado em {{handler}}","error.switch.no_matching_case":"Nenhum caso correspondente encontrado para a tarefa Switch '{{taskName}}'","error.switch.invalid_transition":"Transi\xE7\xE3o inv\xE1lida para a tarefa Switch '{{taskName}}': Pr\xF3ximo passo '{{nextStep}}' n\xE3o encontrado","error.switch.task_not_found":"Tarefa '{{taskName}}' n\xE3o encontrada na lista de tarefas do n\xEDvel atual","error.switch.failed":"Falha ao executar a tarefa Switch: {{taskName}}","error.switch.missing_when_condition":"Condi\xE7\xE3o 'when' ausente no caso switch: '{{caseName}}'","error.switch.invalid_case_transition":"Transi\xE7\xE3o de caso switch inv\xE1lida para o passo '{{stepName}}': O caso '{{caseName}}' n\xE3o tem uma transi\xE7\xE3o 'then' v\xE1lida.","error.script.no_code":"Nenhum c\xF3digo encontrado para a tarefa de script: {{taskName}}","error.script.failed":"Falha na execu\xE7\xE3o do script","error.set.failed":"Falha ao executar a tarefa Set: {{taskName}}","error.task_invoker.unsupported_type":"Tipo de tarefa n\xE3o suportado","error.task_invoker.not_implemented":"Tarefa n\xE3o implementada: {{taskName}}","error.task_invoker.unsupported_type_detail":"Tipo de tarefa n\xE3o suportado: {{taskType}}","error.runtime.deno_worker_init_failed":"Falha ao inicializar o Deno Worker","error.runtime.handler_disposed":"Handler descartado","error.runtime.traceview_api_failed":"Falha na API TraceView, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{status}} {{statusText}}","error.runtime.traceview_send_failed":"Falha ao enviar spans para TraceView, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{errorMessage}}","log.traceview.skip":"TraceViewLogger: {{reason}}","log.traceview.flushing":"TraceViewLogger: Enviando {{count}} spans para TraceView...","log.traceview.success":"TraceViewLogger: {{count}} spans atualizados em TraceView. TraceId: {{traceId}}, JobKey: {{jobKey}}","error.runtime.socket_server_error":"O servidor Socket retornou um erro: HTTP {{status}}: {{statusText}}","error.runtime.socket_comm_failed":"Falha na comunica\xE7\xE3o do Socket: {{errorMessage}}","error.runtime.workflow_context_required":"O contexto do fluxo de trabalho \xE9 obrigat\xF3rio","error.runtime.file_read_error":"Erro ao ler o arquivo {{filePath}}","error.generic.internal_error":"Ocorreu um erro interno"}});var KE=O((tee,dL)=>{dL.exports={"error.http.url_required":"URL\u662F\u5FC5\u9700\u7684\uFF0C\u4E0D\u80FD\u4E3A\u7A7A","error.http.invalid_url":"\u65E0\u6548\u6216\u4E0D\u5B8C\u6574\u7684Web URL\uFF1A{{url}}","error.http.failed_call":"\u6267\u884CHTTP\u8C03\u7528\u5931\u8D25","error.http.failed_call_to":"\u6267\u884CHTTP\u8C03\u7528\u5230{{endpoint}}\u5931\u8D25","error.http.config_invalid":"\u6536\u5230HTTP\u4EFB\u52A1\u7684\u914D\u7F6E\u4E0D\u6B63\u786E\u3002\u7F3A\u5C11\u7CFB\u7EDF\u7AEF\u70B9\u548C/\u6216bodyParameters\uFF1A{{taskName}}","error.intsvc.connection_required":"\u6B64\u4EFB\u52A1\u9700\u8981\u8FDE\u63A5\uFF1A{{taskName}}","error.intsvc.endpoint_required":"\u6B64\u4EFB\u52A1\u9700\u8981\u7AEF\u70B9\uFF1A{{taskName}}\u3002\u8BF7\u68C0\u67E5\u4EFB\u52A1\u914D\u7F6E\u3002","error.intsvc.url_and_method_required":"\u6B64\u4EFB\u52A1\u9700\u8981\u8BF7\u6C42URL\u548C\u65B9\u6CD5\uFF1A{{taskName}}","error.intsvc.failed_call":"\u6267\u884CIS\u8C03\u7528\u5931\u8D25","error.intsvc.failed_call_to":"\u6267\u884CIS\u8C03\u7528\u5230{{endpoint}}\u5931\u8D25","error.intsvc.vendor_failure":"\u4ECE\u4F9B\u5E94\u5546\u7CFB\u7EDF\u6536\u5230API\u9519\u8BEF - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"\u65E0\u6CD5\u4ECEUiPathAdditionalEventData\u89E3\u6790processedEventId","error.intsvc_event.debug_not_supported_trigger":"\u6B64\u89E6\u53D1\u5668\u4E0D\u652F\u6301\u8C03\u8BD5\u3002\u8BF7\u53D1\u5E03\u9879\u76EE\u4EE5\u83B7\u53D6\u4E8B\u4EF6\u5E76\u81EA\u52A8\u89E6\u53D1\u5DE5\u4F5C\u6D41\u3002","error.intsvc_event.debug_not_supported_workflow":"\u6B64\u89E6\u53D1\u5668\u5DE5\u4F5C\u6D41\u4E0D\u652F\u6301\u8C03\u8BD5\u3002","error.intsvc_event.failed_call":"\u6267\u884CIS\u4E8B\u4EF6\u8C03\u7528\u5931\u8D25","error.workflow.execution_failed":"\u5DE5\u4F5C\u6D41\u6267\u884C\u5931\u8D25","error.workflow.task_execution_failed":"\u4EFB\u52A1\u6267\u884C\u5931\u8D25","error.workflow.unknown_task_error":"\u6267\u884C\u4EFB\u52A1'{{taskName}}'\u65F6\u53D1\u751F\u672A\u77E5\u9519\u8BEF","error.workflow.error_handling_task":"\u5904\u7406\u4EFB\u52A1\u65F6\u51FA\u9519\uFF1A{{taskName}}","error.workflow.no_do_tasks":"\u5DE5\u4F5C\u6D41\u4E2D\u672A\u627E\u5230do\u4EFB\u52A1","error.expression.worker_operation_failed":"Worker\u64CD\u4F5C\u5931\u8D25","error.expression.worker_error":"\u53D1\u751FWorker\u9519\u8BEF","error.expression.timeout":"{{operation}}\u8D85\u65F6","error.expression.evaluation_error":"\u6C42\u503C\u8868\u8FBE\u5F0F\u65F6\u53D1\u751F\u9519\u8BEF","error.expression.api_not_allowed":"{{api}}\u4E0D\u5141\u8BB8\u5728\u8868\u8FBE\u5F0F\u548C\u811A\u672C\u4E2D\u4F7F\u7528","error.expression.eval_not_allowed":"eval\u4E0D\u5141\u8BB8\u5728\u8868\u8FBE\u5F0F\u548C\u811A\u672C\u4E2D\u4F7F\u7528","error.expression.script_timeout":"\u811A\u672C\u6267\u884C\u5728{{timeoutMs}}\u6BEB\u79D2\u540E\u8D85\u65F6","error.expression.invalid_eval_mode":"\u672A\u5411worker\u63D0\u4F9B\u6709\u6548\u7684\u6C42\u503C\u6A21\u5F0F\uFF1A{{mode}}","error.expression.worker_terminated":"Worker\u5728\u6E05\u7406\u671F\u95F4\u7EC8\u6B62","error.expression.json_patch_unavailable":"fast-json-patch.compare\u51FD\u6570\u4E0D\u53EF\u7528","error.expression.json_patch_load_failed":"\u5728\u6D4F\u89C8\u5668worker\u4E2D\u52A0\u8F7Dfast-json-patch\u5931\u8D25","error.expression.json_patch_path_unavailable":"\u6D4F\u89C8\u5668\u4E2D\u4E0D\u53EF\u7528globalThis.fastJsonPatchPath","error.expression.template_non_string":"\u6A21\u677F\u5B57\u7B26\u4E32{{template}}\u89E3\u6790\u4E3A\u975E\u5B57\u7B26\u4E32\u503C\uFF1A{{value}}","error.expression.get_context_diff_not_impl":"getContextDiff\u672A\u5728{{handler}}\u4E2D\u5B9E\u73B0","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff\u672A\u5728{{handler}}\u4E2D\u5B9E\u73B0","error.switch.no_matching_case":"\u672A\u627E\u5230Switch\u4EFB\u52A1'{{taskName}}'\u7684\u5339\u914D\u6848\u4F8B","error.switch.invalid_transition":"Switch\u4EFB\u52A1'{{taskName}}'\u7684\u65E0\u6548\u8F6C\u6362\uFF1A\u672A\u627E\u5230\u4E0B\u4E00\u6B65'{{nextStep}}'","error.switch.task_not_found":"\u5728\u5F53\u524D\u7EA7\u522B\u4EFB\u52A1\u5217\u8868\u4E2D\u672A\u627E\u5230\u4EFB\u52A1'{{taskName}}'","error.switch.failed":"\u6267\u884CSwitch\u4EFB\u52A1\u5931\u8D25\uFF1A{{taskName}}","error.switch.missing_when_condition":"switch\u6848\u4F8B\u4E2D\u7F3A\u5C11'when'\u6761\u4EF6\uFF1A'{{caseName}}'","error.switch.invalid_case_transition":"\u6B65\u9AA4'{{stepName}}'\u7684switch\u6848\u4F8B\u8F6C\u6362\u65E0\u6548\uFF1A\u6848\u4F8B'{{caseName}}'\u6CA1\u6709\u6709\u6548\u7684'then'\u8F6C\u6362\u3002","error.script.no_code":"\u672A\u627E\u5230\u811A\u672C\u4EFB\u52A1\u7684\u4EE3\u7801\uFF1A{{taskName}}","error.script.failed":"\u811A\u672C\u6267\u884C\u5931\u8D25","error.set.failed":"\u6267\u884CSet\u4EFB\u52A1\u5931\u8D25\uFF1A{{taskName}}","error.task_invoker.unsupported_type":"\u4E0D\u652F\u6301\u7684\u4EFB\u52A1\u7C7B\u578B","error.task_invoker.not_implemented":"\u672A\u5B9E\u73B0\u7684\u4EFB\u52A1\uFF1A{{taskName}}","error.task_invoker.unsupported_type_detail":"\u4E0D\u652F\u6301\u7684\u4EFB\u52A1\u7C7B\u578B\uFF1A{{taskType}}","error.runtime.deno_worker_init_failed":"\u521D\u59CB\u5316Deno Worker\u5931\u8D25","error.runtime.handler_disposed":"\u5904\u7406\u7A0B\u5E8F\u5DF2\u91CA\u653E","error.runtime.traceview_api_failed":"TraceView API\u5931\u8D25\uFF0CTraceId\uFF1A{{traceId}}\uFF0CJobKey\uFF1A{{jobKey}}\uFF1A{{status}} {{statusText}}","error.runtime.traceview_send_failed":"\u53D1\u9001spans\u5230TraceView\u5931\u8D25\uFF0CTraceId\uFF1A{{traceId}}\uFF0CJobKey\uFF1A{{jobKey}}\uFF1A{{errorMessage}}","log.traceview.skip":"TraceViewLogger\uFF1A{{reason}}","log.traceview.flushing":"TraceViewLogger\uFF1A\u6B63\u5728\u53D1\u9001{{count}}\u4E2Aspans\u5230TraceView...","log.traceview.success":"TraceViewLogger\uFF1A{{count}}\u4E2Aspans\u5DF2\u66F4\u65B0\u5230TraceView\u3002TraceId\uFF1A{{traceId}}\uFF0CJobKey\uFF1A{{jobKey}}","error.runtime.socket_server_error":"Socket\u670D\u52A1\u5668\u8FD4\u56DE\u9519\u8BEF\uFF1AHTTP {{status}}\uFF1A{{statusText}}","error.runtime.socket_comm_failed":"Socket\u901A\u4FE1\u5931\u8D25\uFF1A{{errorMessage}}","error.runtime.workflow_context_required":"\u9700\u8981\u5DE5\u4F5C\u6D41\u4E0A\u4E0B\u6587","error.runtime.file_read_error":"\u8BFB\u53D6\u6587\u4EF6{{filePath}}\u65F6\u51FA\u9519","error.generic.internal_error":"\u53D1\u751F\u5185\u90E8\u9519\u8BEF"}});var JE=O((ree,fL)=>{fL.exports={"error.http.url_required":"URL\u662F\u5FC5\u9700\u7684\uFF0C\u4E0D\u80FD\u70BA\u7A7A","error.http.invalid_url":"\u7121\u6548\u6216\u4E0D\u5B8C\u6574\u7684Web URL\uFF1A{{url}}","error.http.failed_call":"\u57F7\u884CHTTP\u547C\u53EB\u5931\u6557","error.http.failed_call_to":"\u57F7\u884CHTTP\u547C\u53EB\u5230{{endpoint}}\u5931\u6557","error.http.config_invalid":"\u6536\u5230HTTP\u4EFB\u52D9\u7684\u914D\u7F6E\u4E0D\u6B63\u78BA\u3002\u7F3A\u5C11\u7CFB\u7D71\u7AEF\u9EDE\u548C/\u6216bodyParameters\uFF1A{{taskName}}","error.intsvc.connection_required":"\u6B64\u4EFB\u52D9\u9700\u8981\u9023\u63A5\uFF1A{{taskName}}","error.intsvc.endpoint_required":"\u6B64\u4EFB\u52D9\u9700\u8981\u7AEF\u9EDE\uFF1A{{taskName}}\u3002\u8ACB\u6AA2\u67E5\u4EFB\u52D9\u914D\u7F6E\u3002","error.intsvc.url_and_method_required":"\u6B64\u4EFB\u52D9\u9700\u8981\u8ACB\u6C42URL\u548C\u65B9\u6CD5\uFF1A{{taskName}}","error.intsvc.failed_call":"\u57F7\u884CIS\u547C\u53EB\u5931\u6557","error.intsvc.failed_call_to":"\u57F7\u884CIS\u547C\u53EB\u5230{{endpoint}}\u5931\u6557","error.intsvc.vendor_failure":"\u5F9E\u4F9B\u61C9\u5546\u7CFB\u7D71\u6536\u5230API\u932F\u8AA4 - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"\u7121\u6CD5\u5F9EUiPathAdditionalEventData\u89E3\u6790processedEventId","error.intsvc_event.debug_not_supported_trigger":"\u6B64\u89F8\u767C\u5668\u4E0D\u652F\u63F4\u5075\u932F\u3002\u8ACB\u767C\u4F48\u5C08\u6848\u4EE5\u7372\u53D6\u4E8B\u4EF6\u4E26\u81EA\u52D5\u89F8\u767C\u5DE5\u4F5C\u6D41\u7A0B\u3002","error.intsvc_event.debug_not_supported_workflow":"\u6B64\u89F8\u767C\u5668\u5DE5\u4F5C\u6D41\u7A0B\u4E0D\u652F\u63F4\u5075\u932F\u3002","error.intsvc_event.failed_call":"\u57F7\u884CIS\u4E8B\u4EF6\u547C\u53EB\u5931\u6557","error.workflow.execution_failed":"\u5DE5\u4F5C\u6D41\u7A0B\u57F7\u884C\u5931\u6557","error.workflow.task_execution_failed":"\u4EFB\u52D9\u57F7\u884C\u5931\u6557","error.workflow.unknown_task_error":"\u57F7\u884C\u4EFB\u52D9'{{taskName}}'\u6642\u767C\u751F\u672A\u77E5\u932F\u8AA4","error.workflow.error_handling_task":"\u8655\u7406\u4EFB\u52D9\u6642\u51FA\u932F\uFF1A{{taskName}}","error.workflow.no_do_tasks":"\u5DE5\u4F5C\u6D41\u7A0B\u4E2D\u672A\u627E\u5230do\u4EFB\u52D9","error.expression.worker_operation_failed":"Worker\u64CD\u4F5C\u5931\u6557","error.expression.worker_error":"\u767C\u751FWorker\u932F\u8AA4","error.expression.timeout":"{{operation}}\u903E\u6642","error.expression.evaluation_error":"\u6C42\u503C\u904B\u7B97\u5F0F\u6642\u767C\u751F\u932F\u8AA4","error.expression.api_not_allowed":"{{api}}\u4E0D\u5141\u8A31\u5728\u904B\u7B97\u5F0F\u548C\u6307\u4EE4\u78BC\u4E2D\u4F7F\u7528","error.expression.eval_not_allowed":"eval\u4E0D\u5141\u8A31\u5728\u904B\u7B97\u5F0F\u548C\u6307\u4EE4\u78BC\u4E2D\u4F7F\u7528","error.expression.script_timeout":"\u6307\u4EE4\u78BC\u57F7\u884C\u5728{{timeoutMs}}\u6BEB\u79D2\u5F8C\u903E\u6642","error.expression.invalid_eval_mode":"\u672A\u5411worker\u63D0\u4F9B\u6709\u6548\u7684\u6C42\u503C\u6A21\u5F0F\uFF1A{{mode}}","error.expression.worker_terminated":"Worker\u5728\u6E05\u7406\u671F\u9593\u7D42\u6B62","error.expression.json_patch_unavailable":"fast-json-patch.compare\u51FD\u6578\u4E0D\u53EF\u7528","error.expression.json_patch_load_failed":"\u5728\u700F\u89BD\u5668worker\u4E2D\u8F09\u5165fast-json-patch\u5931\u6557","error.expression.json_patch_path_unavailable":"\u700F\u89BD\u5668\u4E2D\u4E0D\u53EF\u7528globalThis.fastJsonPatchPath","error.expression.template_non_string":"\u7BC4\u672C\u5B57\u4E32{{template}}\u89E3\u6790\u70BA\u975E\u5B57\u4E32\u503C\uFF1A{{value}}","error.expression.get_context_diff_not_impl":"getContextDiff\u672A\u5728{{handler}}\u4E2D\u5BE6\u4F5C","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff\u672A\u5728{{handler}}\u4E2D\u5BE6\u4F5C","error.switch.no_matching_case":"\u672A\u627E\u5230Switch\u4EFB\u52D9'{{taskName}}'\u7684\u5339\u914D\u6848\u4F8B","error.switch.invalid_transition":"Switch\u4EFB\u52D9'{{taskName}}'\u7684\u7121\u6548\u8F49\u63DB\uFF1A\u672A\u627E\u5230\u4E0B\u4E00\u6B65'{{nextStep}}'","error.switch.task_not_found":"\u5728\u7576\u524D\u7D1A\u5225\u4EFB\u52D9\u5217\u8868\u4E2D\u672A\u627E\u5230\u4EFB\u52D9'{{taskName}}'","error.switch.failed":"\u57F7\u884CSwitch\u4EFB\u52D9\u5931\u6557\uFF1A{{taskName}}","error.switch.missing_when_condition":"switch\u6848\u4F8B\u4E2D\u7F3A\u5C11'when'\u689D\u4EF6\uFF1A'{{caseName}}'","error.switch.invalid_case_transition":"\u6B65\u9A5F'{{stepName}}'\u7684switch\u6848\u4F8B\u8F49\u63DB\u7121\u6548\uFF1A\u6848\u4F8B'{{caseName}}'\u6C92\u6709\u6709\u6548\u7684'then'\u8F49\u63DB\u3002","error.script.no_code":"\u672A\u627E\u5230\u6307\u4EE4\u78BC\u4EFB\u52D9\u7684\u7A0B\u5F0F\u78BC\uFF1A{{taskName}}","error.script.failed":"\u6307\u4EE4\u78BC\u57F7\u884C\u5931\u6557","error.set.failed":"\u57F7\u884CSet\u4EFB\u52D9\u5931\u6557\uFF1A{{taskName}}","error.task_invoker.unsupported_type":"\u4E0D\u652F\u63F4\u7684\u4EFB\u52D9\u985E\u578B","error.task_invoker.not_implemented":"\u672A\u5BE6\u4F5C\u7684\u4EFB\u52D9\uFF1A{{taskName}}","error.task_invoker.unsupported_type_detail":"\u4E0D\u652F\u63F4\u7684\u4EFB\u52D9\u985E\u578B\uFF1A{{taskType}}","error.runtime.deno_worker_init_failed":"\u521D\u59CB\u5316Deno Worker\u5931\u6557","error.runtime.handler_disposed":"\u8655\u7406\u5E38\u5F0F\u5DF2\u91CB\u653E","error.runtime.traceview_api_failed":"TraceView API\u5931\u6557\uFF0CTraceId\uFF1A{{traceId}}\uFF0CJobKey\uFF1A{{jobKey}}\uFF1A{{status}} {{statusText}}","error.runtime.traceview_send_failed":"\u50B3\u9001spans\u5230TraceView\u5931\u6557\uFF0CTraceId\uFF1A{{traceId}}\uFF0CJobKey\uFF1A{{jobKey}}\uFF1A{{errorMessage}}","log.traceview.skip":"TraceViewLogger\uFF1A{{reason}}","log.traceview.flushing":"TraceViewLogger\uFF1A\u6B63\u5728\u50B3\u9001{{count}}\u500Bspans\u5230TraceView...","log.traceview.success":"TraceViewLogger\uFF1A{{count}}\u500Bspans\u5DF2\u66F4\u65B0\u5230TraceView\u3002TraceId\uFF1A{{traceId}}\uFF0CJobKey\uFF1A{{jobKey}}","error.runtime.socket_server_error":"Socket\u4F3A\u670D\u5668\u50B3\u56DE\u932F\u8AA4\uFF1AHTTP {{status}}\uFF1A{{statusText}}","error.runtime.socket_comm_failed":"Socket\u901A\u8A0A\u5931\u6557\uFF1A{{errorMessage}}","error.runtime.workflow_context_required":"\u9700\u8981\u5DE5\u4F5C\u6D41\u7A0B\u5167\u5BB9","error.runtime.file_read_error":"\u8B80\u53D6\u6A94\u6848{{filePath}}\u6642\u51FA\u932F","error.generic.internal_error":"\u767C\u751F\u5167\u90E8\u932F\u8AA4"}});var GE=O((nee,pL)=>{pL.exports={"error.http.url_required":"URL \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u0435\u043D \u0438 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043F\u0443\u0441\u0442\u044B\u043C","error.http.invalid_url":"\u041D\u0435\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u0438\u043B\u0438 \u043D\u0435\u043F\u043E\u043B\u043D\u044B\u0439 \u0432\u0435\u0431-URL: {{url}}","error.http.failed_call":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C HTTP-\u0432\u044B\u0437\u043E\u0432","error.http.failed_call_to":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C HTTP-\u0432\u044B\u0437\u043E\u0432 \u043A {{endpoint}}","error.http.config_invalid":"\u041F\u043E\u043B\u0443\u0447\u0435\u043D\u0430 \u043D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F \u0434\u043B\u044F HTTP-\u0437\u0430\u0434\u0430\u0447\u0438. \u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043C\u043D\u0430\u044F \u043A\u043E\u043D\u0435\u0447\u043D\u0430\u044F \u0442\u043E\u0447\u043A\u0430 \u0438/\u0438\u043B\u0438 bodyParameters \u0434\u043B\u044F: {{taskName}}","error.intsvc.connection_required":"\u0414\u043B\u044F \u044D\u0442\u043E\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435: {{taskName}}","error.intsvc.endpoint_required":"\u0414\u043B\u044F \u044D\u0442\u043E\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u043A\u043E\u043D\u0435\u0447\u043D\u0430\u044F \u0442\u043E\u0447\u043A\u0430: {{taskName}}. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044E \u0437\u0430\u0434\u0430\u0447\u0438.","error.intsvc.url_and_method_required":"\u0414\u043B\u044F \u044D\u0442\u043E\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u0442\u0440\u0435\u0431\u0443\u044E\u0442\u0441\u044F URL \u0438 \u043C\u0435\u0442\u043E\u0434 \u0437\u0430\u043F\u0440\u043E\u0441\u0430: {{taskName}}","error.intsvc.failed_call":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C IS-\u0432\u044B\u0437\u043E\u0432","error.intsvc.failed_call_to":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C IS-\u0432\u044B\u0437\u043E\u0432 \u043A {{endpoint}}","error.intsvc.vendor_failure":"\u041F\u043E\u043B\u0443\u0447\u0435\u043D\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 \u043E\u0442 \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u043F\u043E\u0441\u0442\u0430\u0432\u0449\u0438\u043A\u0430 \u043D\u0430 API - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0440\u043E\u0430\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C processedEventId \u0438\u0437 UiPathAdditionalEventData","error.intsvc_event.debug_not_supported_trigger":"\u041E\u0442\u043B\u0430\u0434\u043A\u0430 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u0434\u043B\u044F \u044D\u0442\u043E\u0433\u043E \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u043F\u0443\u0431\u043B\u0438\u043A\u0443\u0439\u0442\u0435 \u043F\u0440\u043E\u0435\u043A\u0442, \u0447\u0442\u043E\u0431\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F \u0438 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0430\u0431\u043E\u0447\u0438\u0439 \u043F\u0440\u043E\u0446\u0435\u0441\u0441.","error.intsvc_event.debug_not_supported_workflow":"\u041E\u0442\u043B\u0430\u0434\u043A\u0430 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u0434\u043B\u044F \u044D\u0442\u043E\u0433\u043E \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u043D\u043E\u0433\u043E \u0440\u0430\u0431\u043E\u0447\u0435\u0433\u043E \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430.","error.intsvc_event.failed_call":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0432\u044B\u0437\u043E\u0432 \u0441\u043E\u0431\u044B\u0442\u0438\u044F IS","error.workflow.execution_failed":"\u0412\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0440\u0430\u0431\u043E\u0447\u0435\u0433\u043E \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430 \u043D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C","error.workflow.task_execution_failed":"\u0412\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C","error.workflow.unknown_task_error":"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u0430\u044F \u043E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 '{{taskName}}'","error.workflow.error_handling_task":"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0435 \u0437\u0430\u0434\u0430\u0447\u0438: {{taskName}}","error.workflow.no_do_tasks":"\u0412 \u0440\u0430\u0431\u043E\u0447\u0435\u043C \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0435 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u044B \u0437\u0430\u0434\u0430\u0447\u0438 do","error.expression.worker_operation_failed":"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F Worker \u043D\u0435 \u0443\u0434\u0430\u043B\u0430\u0441\u044C","error.expression.worker_error":"\u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 Worker","error.expression.timeout":"{{operation}} \u0438\u0441\u0442\u0435\u043A\u043B\u043E \u0432\u0440\u0435\u043C\u044F \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F","error.expression.evaluation_error":"\u041F\u0440\u0438 \u0432\u044B\u0447\u0438\u0441\u043B\u0435\u043D\u0438\u0438 \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F \u043F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430","error.expression.api_not_allowed":"{{api}} \u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D \u0432 \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F\u0445 \u0438 \u0441\u043A\u0440\u0438\u043F\u0442\u0430\u0445","error.expression.eval_not_allowed":"eval \u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D \u0432 \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F\u0445 \u0438 \u0441\u043A\u0440\u0438\u043F\u0442\u0430\u0445","error.expression.script_timeout":"\u0412\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0441\u043A\u0440\u0438\u043F\u0442\u0430 \u0438\u0441\u0442\u0435\u043A\u043B\u043E \u043F\u043E\u0441\u043B\u0435 {{timeoutMs}}\u043C\u0441","error.expression.invalid_eval_mode":"Worker \u043D\u0435 \u0431\u044B\u043B \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D \u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u0440\u0435\u0436\u0438\u043C \u0432\u044B\u0447\u0438\u0441\u043B\u0435\u043D\u0438\u044F: {{mode}}","error.expression.worker_terminated":"Worker \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043E\u0447\u0438\u0441\u0442\u043A\u0438","error.expression.json_patch_unavailable":"\u0424\u0443\u043D\u043A\u0446\u0438\u044F fast-json-patch.compare \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430","error.expression.json_patch_load_failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C fast-json-patch \u0432 worker \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430","error.expression.json_patch_path_unavailable":"globalThis.fastJsonPatchPath \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435","error.expression.template_non_string":"\u0421\u0442\u0440\u043E\u043A\u0430 \u0448\u0430\u0431\u043B\u043E\u043D\u0430 {{template}} \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0430 \u0432 \u043D\u0435\u0441\u0442\u0440\u043E\u043A\u043E\u0432\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: {{value}}","error.expression.get_context_diff_not_impl":"getContextDiff \u043D\u0435 \u0440\u0435\u0430\u043B\u0438\u0437\u043E\u0432\u0430\u043D \u0432 {{handler}}","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff \u043D\u0435 \u0440\u0435\u0430\u043B\u0438\u0437\u043E\u0432\u0430\u043D \u0432 {{handler}}","error.switch.no_matching_case":"\u041D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0439 \u0441\u043B\u0443\u0447\u0430\u0439 \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u0447\u0438 Switch '{{taskName}}'","error.switch.invalid_transition":"\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u043F\u0435\u0440\u0435\u0445\u043E\u0434 \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u0447\u0438 Switch '{{taskName}}': \u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0448\u0430\u0433 '{{nextStep}}' \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D","error.switch.task_not_found":"\u0417\u0430\u0434\u0430\u0447\u0430 '{{taskName}}' \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u0430 \u0432 \u0441\u043F\u0438\u0441\u043A\u0435 \u0437\u0430\u0434\u0430\u0447 \u0442\u0435\u043A\u0443\u0449\u0435\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F","error.switch.failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0437\u0430\u0434\u0430\u0447\u0443 Switch: {{taskName}}","error.switch.missing_when_condition":"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0443\u0441\u043B\u043E\u0432\u0438\u0435 'when' \u0432 \u0441\u043B\u0443\u0447\u0430\u0435 switch: '{{caseName}}'","error.switch.invalid_case_transition":"\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u043F\u0435\u0440\u0435\u0445\u043E\u0434 \u0441\u043B\u0443\u0447\u0430\u044F switch \u0434\u043B\u044F \u0448\u0430\u0433\u0430 '{{stepName}}': \u0421\u043B\u0443\u0447\u0430\u0439 '{{caseName}}' \u043D\u0435 \u0438\u043C\u0435\u0435\u0442 \u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u043E\u0433\u043E \u043F\u0435\u0440\u0435\u0445\u043E\u0434\u0430 'then'.","error.script.no_code":"\u041A\u043E\u0434 \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u0447\u0438 \u0441\u043A\u0440\u0438\u043F\u0442\u0430 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D: {{taskName}}","error.script.failed":"\u0412\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0441\u043A\u0440\u0438\u043F\u0442\u0430 \u043D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C","error.set.failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0437\u0430\u0434\u0430\u0447\u0443 Set: {{taskName}}","error.task_invoker.unsupported_type":"\u041D\u0435\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0442\u0438\u043F \u0437\u0430\u0434\u0430\u0447\u0438","error.task_invoker.not_implemented":"\u0417\u0430\u0434\u0430\u0447\u0430 \u043D\u0435 \u0440\u0435\u0430\u043B\u0438\u0437\u043E\u0432\u0430\u043D\u0430: {{taskName}}","error.task_invoker.unsupported_type_detail":"\u041D\u0435\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0442\u0438\u043F \u0437\u0430\u0434\u0430\u0447\u0438: {{taskType}}","error.runtime.deno_worker_init_failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C Deno Worker","error.runtime.handler_disposed":"\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u0447\u0438\u043A \u0443\u0434\u0430\u043B\u0435\u043D","error.runtime.traceview_api_failed":"\u041E\u0448\u0438\u0431\u043A\u0430 API TraceView, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{status}} {{statusText}}","error.runtime.traceview_send_failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C spans \u0432 TraceView, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{errorMessage}}","log.traceview.skip":"TraceViewLogger: {{reason}}","log.traceview.flushing":"TraceViewLogger: \u041E\u0442\u043F\u0440\u0430\u0432\u043A\u0430 {{count}} spans \u0432 TraceView...","log.traceview.success":"TraceViewLogger: {{count}} spans \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u043E \u0432 TraceView. TraceId: {{traceId}}, JobKey: {{jobKey}}","error.runtime.socket_server_error":"\u0421\u0435\u0440\u0432\u0435\u0440 Socket \u0432\u0435\u0440\u043D\u0443\u043B \u043E\u0448\u0438\u0431\u043A\u0443: HTTP {{status}}: {{statusText}}","error.runtime.socket_comm_failed":"\u0421\u0431\u043E\u0439 \u0441\u0432\u044F\u0437\u0438 Socket: {{errorMessage}}","error.runtime.workflow_context_required":"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442 \u0440\u0430\u0431\u043E\u0447\u0435\u0433\u043E \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430","error.runtime.file_read_error":"\u041E\u0448\u0438\u0431\u043A\u0430 \u0447\u0442\u0435\u043D\u0438\u044F \u0444\u0430\u0439\u043B\u0430 {{filePath}}","error.generic.internal_error":"\u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u044F\u044F \u043E\u0448\u0438\u0431\u043A\u0430"}});var XE=O((oee,hL)=>{hL.exports={"error.http.url_required":"URL gereklidir ve bo\u015F olamaz","error.http.invalid_url":"Ge\xE7ersiz veya eksik Web URL'si: {{url}}","error.http.failed_call":"HTTP \xE7a\u011Fr\u0131s\u0131 y\xFCr\xFCt\xFClemedi","error.http.failed_call_to":"{{endpoint}} adresine HTTP \xE7a\u011Fr\u0131s\u0131 y\xFCr\xFCt\xFClemedi","error.http.config_invalid":"HTTP g\xF6revi i\xE7in hatal\u0131 yap\u0131land\u0131rma al\u0131nd\u0131. Sistem u\xE7 noktas\u0131 ve/veya bodyParameters eksik: {{taskName}}","error.intsvc.connection_required":"Bu g\xF6rev i\xE7in ba\u011Flant\u0131 gereklidir: {{taskName}}","error.intsvc.endpoint_required":"Bu g\xF6rev i\xE7in u\xE7 nokta gereklidir: {{taskName}}. L\xFCtfen g\xF6rev yap\u0131land\u0131rmas\u0131n\u0131 kontrol edin.","error.intsvc.url_and_method_required":"Bu g\xF6rev i\xE7in istek URL'si ve y\xF6ntemi gereklidir: {{taskName}}","error.intsvc.failed_call":"IS \xE7a\u011Fr\u0131s\u0131 y\xFCr\xFCt\xFClemedi","error.intsvc.failed_call_to":"{{endpoint}} adresine IS \xE7a\u011Fr\u0131s\u0131 y\xFCr\xFCt\xFClemedi","error.intsvc.vendor_failure":"API'de sat\u0131c\u0131 sisteminden hata al\u0131nd\u0131 - {{url}}","error.intsvc.date_fields_unresolved":"Date values were provided for task {{taskName}}, but no date formatting information could be resolved from the task metadata.","error.intsvc.credential_password_too_short":"The credential returned by Orchestrator has a password shorter than {{minLength}} characters. A password this short cannot be kept out of logs and workflow output, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a password with {{minLength}} or more characters.","error.intsvc.credential_password_too_common":"The credential returned by Orchestrator has a password that is too common to find reliably in logs and workflow output. It cannot be kept out of them, so it would be visible to anyone who can read them. The task stopped to protect it. Change the credential to a less common password.","error.intsvc.credential_limit_exceeded":"This workflow run fetched more than {{limit}} different credentials. The run cannot keep more than {{limit}} credentials out of logs and workflow output, so the next one would be visible to anyone who can read them. The task stopped to protect it. Split the work into several workflows, or use fewer different credentials in one run.","error.intsvc_event.event_id_parse_failed":"UiPathAdditionalEventData'dan processedEventId ayr\u0131\u015Ft\u0131r\u0131lamad\u0131","error.intsvc_event.debug_not_supported_trigger":"Bu tetikleyici i\xE7in hata ay\u0131klama desteklenmiyor. L\xFCtfen olaylar\u0131 almak ve i\u015F ak\u0131\u015F\u0131n\u0131 otomatik olarak tetiklemek i\xE7in projeyi yay\u0131nlay\u0131n.","error.intsvc_event.debug_not_supported_workflow":"Bu tetikleyici i\u015F ak\u0131\u015F\u0131 i\xE7in hata ay\u0131klama desteklenmiyor.","error.intsvc_event.failed_call":"IS olay \xE7a\u011Fr\u0131s\u0131 y\xFCr\xFCt\xFClemedi","error.workflow.execution_failed":"\u0130\u015F ak\u0131\u015F\u0131 y\xFCr\xFCtme ba\u015Far\u0131s\u0131z oldu","error.workflow.task_execution_failed":"G\xF6rev y\xFCr\xFCtme ba\u015Far\u0131s\u0131z oldu","error.workflow.unknown_task_error":"'{{taskName}}' g\xF6revi y\xFCr\xFCt\xFCl\xFCrken bilinmeyen hata olu\u015Ftu","error.workflow.error_handling_task":"G\xF6rev i\u015Flenirken hata: {{taskName}}","error.workflow.no_do_tasks":"\u0130\u015F ak\u0131\u015F\u0131nda do g\xF6revi bulunamad\u0131","error.expression.worker_operation_failed":"Worker i\u015Flemi ba\u015Far\u0131s\u0131z oldu","error.expression.worker_error":"Worker hatas\u0131 olu\u015Ftu","error.expression.timeout":"{{operation}} zaman a\u015F\u0131m\u0131na u\u011Frad\u0131","error.expression.evaluation_error":"Bir ifade de\u011Ferlendirilirken hata olu\u015Ftu","error.expression.api_not_allowed":"{{api}} ifadelerde ve betiklerde izin verilmiyor","error.expression.eval_not_allowed":"eval ifadelerde ve betiklerde izin verilmiyor","error.expression.script_timeout":"Betik y\xFCr\xFCtme {{timeoutMs}}ms sonra zaman a\u015F\u0131m\u0131na u\u011Frad\u0131","error.expression.invalid_eval_mode":"Worker'a ge\xE7erli bir de\u011Ferlendirme modu sa\u011Flanmad\u0131: {{mode}}","error.expression.worker_terminated":"Worker temizleme s\u0131ras\u0131nda sonland\u0131r\u0131ld\u0131","error.expression.json_patch_unavailable":"fast-json-patch.compare i\u015Flevi mevcut de\u011Fil","error.expression.json_patch_load_failed":"Taray\u0131c\u0131 worker'\u0131nda fast-json-patch y\xFCklenemedi","error.expression.json_patch_path_unavailable":"Taray\u0131c\u0131da globalThis.fastJsonPatchPath mevcut de\u011Fil","error.expression.template_non_string":"\u015Eablon dizesi {{template}} dize olmayan bir de\u011Fere \xE7\xF6z\xFCmlendi: {{value}}","error.expression.get_context_diff_not_impl":"getContextDiff {{handler}}'da uygulanmad\u0131","error.expression.get_workflow_input_diff_not_impl":"getWorkflowInputDiff {{handler}}'da uygulanmad\u0131","error.switch.no_matching_case":"Switch g\xF6revi '{{taskName}}' i\xE7in e\u015Fle\u015Fen durum bulunamad\u0131","error.switch.invalid_transition":"Switch g\xF6revi '{{taskName}}' i\xE7in ge\xE7ersiz ge\xE7i\u015F: Sonraki ad\u0131m '{{nextStep}}' bulunamad\u0131","error.switch.task_not_found":"'{{taskName}}' g\xF6revi mevcut seviye g\xF6rev listesinde bulunamad\u0131","error.switch.failed":"Switch g\xF6revi y\xFCr\xFCt\xFClemedi: {{taskName}}","error.switch.missing_when_condition":"Switch durumunda 'when' ko\u015Fulu eksik: '{{caseName}}'","error.switch.invalid_case_transition":"'{{stepName}}' ad\u0131m\u0131 i\xE7in ge\xE7ersiz switch durumu ge\xE7i\u015Fi: '{{caseName}}' durumunun ge\xE7erli bir 'then' ge\xE7i\u015Fi yok.","error.script.no_code":"Betik g\xF6revi i\xE7in kod bulunamad\u0131: {{taskName}}","error.script.failed":"Betik y\xFCr\xFCtme ba\u015Far\u0131s\u0131z oldu","error.set.failed":"Set g\xF6revi y\xFCr\xFCt\xFClemedi: {{taskName}}","error.task_invoker.unsupported_type":"Desteklenmeyen g\xF6rev t\xFCr\xFC","error.task_invoker.not_implemented":"G\xF6rev uygulanmad\u0131: {{taskName}}","error.task_invoker.unsupported_type_detail":"Desteklenmeyen g\xF6rev t\xFCr\xFC: {{taskType}}","error.runtime.deno_worker_init_failed":"Deno Worker ba\u015Flat\u0131lamad\u0131","error.runtime.handler_disposed":"\u0130\u015Fleyici kald\u0131r\u0131ld\u0131","error.runtime.traceview_api_failed":"TraceView API ba\u015Far\u0131s\u0131z oldu, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{status}} {{statusText}}","error.runtime.traceview_send_failed":"TraceView'a span'lar g\xF6nderilemedi, TraceId: {{traceId}}, JobKey: {{jobKey}}: {{errorMessage}}","log.traceview.skip":"TraceViewLogger: {{reason}}","log.traceview.flushing":"TraceViewLogger: {{count}} span TraceView'a g\xF6nderiliyor...","log.traceview.success":"TraceViewLogger: {{count}} span TraceView'da g\xFCncellendi. TraceId: {{traceId}}, JobKey: {{jobKey}}","error.runtime.socket_server_error":"Socket sunucusu hata d\xF6nd\xFCrd\xFC: HTTP {{status}}: {{statusText}}","error.runtime.socket_comm_failed":"Socket ileti\u015Fimi ba\u015Far\u0131s\u0131z oldu: {{errorMessage}}","error.runtime.workflow_context_required":"\u0130\u015F ak\u0131\u015F\u0131 ba\u011Flam\u0131 gereklidir","error.runtime.file_read_error":"{{filePath}} dosyas\u0131 okunurken hata olu\u015Ftu","error.generic.internal_error":"Dahili bir hata olu\u015Ftu"}});var tT=O(Cn=>{"use strict";var Jt=Cn&&Cn.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.LocalizationService=void 0;Cn.initLocalization=AL;Cn.t=IL;Cn.isLanguageSupported=xL;var _L=Jt(FE()),mL=Jt(WE()),vL=Jt(UE()),yL=Jt($E()),bL=Jt(BE()),gL=Jt(HE()),wL=Jt(VE()),EL=Jt(zE()),TL=Jt(YE()),SL=Jt(KE()),OL=Jt(JE()),kL=Jt(GE()),PL=Jt(XE()),QE=["en","de","fr","ja","ko","es","es-MX","pt","pt-BR","zh-CN","zh-TW","ru","tr"],eT={en:_L.default,de:mL.default,fr:vL.default,ja:yL.default,ko:bL.default,es:gL.default,"es-MX":wL.default,pt:EL.default,"pt-BR":TL.default,"zh-CN":SL.default,"zh-TW":OL.default,ru:kL.default,tr:PL.default},Mn={};async function ZE(o){if(Mn[o])return Mn[o];let t=eT[o];return t?(Mn[o]=t,t):(o==="en"?console.error("CRITICAL: Failed to load English translations. Error messages will not be available."):console.warn(`Failed to load locale for ${o}`),{})}var Iv="en",Ha=class o{constructor(t,r){this.currentLanguage=t,this.translations=r}static async create(t=Iv){let r=QE.includes(t)?t:Iv,e=await ZE(r);return r!=="en"&&!Mn.en&&await ZE("en"),new o(r,e)}static createDefault(){return Mn.en||(Mn.en=eT.en),new o("en",Mn.en)}t(t,r){let e=this.translations[t];if(!e&&this.currentLanguage!=="en"&&Mn.en&&(e=Mn.en[t]),!e)throw new Error(`Missing translation for key: ${t}. Please add the translation to en.json.`);return r?this.interpolate(e,r):e}interpolate(t,r){return t.replace(/\{\{(\w+)\}\}/g,(e,n)=>n in r?String(r[n]):e)}};Cn.LocalizationService=Ha;var rl=null;async function AL(o=Iv){rl=await Ha.create(o)}function IL(o,t){return rl||(rl=Ha.createDefault()),rl.t(o,t)}function xL(o){return QE.includes(o)}});var tt=O(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.t=pr.LocalizationService=pr.isLanguageSupported=pr.initLocalization=pr.ErrorKeys=void 0;var RL=qE();Object.defineProperty(pr,"ErrorKeys",{enumerable:!0,get:function(){return RL.ErrorKeys}});var nl=tT();Object.defineProperty(pr,"initLocalization",{enumerable:!0,get:function(){return nl.initLocalization}});Object.defineProperty(pr,"isLanguageSupported",{enumerable:!0,get:function(){return nl.isLanguageSupported}});Object.defineProperty(pr,"LocalizationService",{enumerable:!0,get:function(){return nl.LocalizationService}});Object.defineProperty(pr,"t",{enumerable:!0,get:function(){return nl.t}})});var nT=O(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.WorkflowCommandEvent=void 0;var rT;(function(o){o.Resume="Resume",o.SetBreakpoints="SetBreakpoints"})(rT||(ol.WorkflowCommandEvent=rT={}))});var oT=O(vi=>{"use strict";var ML=vi&&vi.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),CL=vi&&vi.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ML(t,o,r)};Object.defineProperty(vi,"__esModule",{value:!0});CL(nT(),vi)});var sT=O(iT=>{"use strict";Object.defineProperty(iT,"__esModule",{value:!0})});var lT=O(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.LogEvent=oo.TaskEvent=oo.WorkflowEvent=void 0;var aT;(function(o){o.WORKFLOW_STARTED="workflow_started",o.WORKFLOW_COMPLETED="workflow_completed",o.WORKFLOW_FAILED="workflow_failed",o.WORKFLOW_STOPPED="workflow_stopped"})(aT||(oo.WorkflowEvent=aT={}));var cT;(function(o){o.TASK_STARTED="task_started",o.TASK_COMPLETED="task_completed",o.TASK_FAILED="task_failed",o.TASK_STOPPED="task_stopped",o.TASK_RETRIED="task_retried"})(cT||(oo.TaskEvent=cT={}));var uT;(function(o){o.USER_LOG="user_log"})(uT||(oo.LogEvent=uT={}))});var fT=O(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.LogLevel=void 0;var dT;(function(o){o.VERBOSE="Verbose",o.INFO="Information",o.WARN="Warning",o.ERROR="Error"})(dT||(il.LogLevel=dT={}))});var xv=O(io=>{"use strict";var jL=io&&io.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),pT=io&&io.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&jL(t,o,r)};Object.defineProperty(io,"__esModule",{value:!0});pT(lT(),io);pT(fT(),io)});var al=O(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.TaskType=void 0;var hT;(function(o){o.DO="do",o.FOR="for",o.SWITCH="switch",o.TRY="try",o.WHILE="while",o.DO_WHILE="doWhile",o.BREAK="break",o.HTTP="http",o.SCRIPT="script",o.WAIT="wait",o.WORKFLOW_START="workflowStart",o.RESPONSE="response",o.SET="set",o.INTSVC="intSvc",o.INTSVC_EVENT="intSvcEvent",o.RAISE="raise",o.UNKNOWN="unknown"})(hT||(sl.TaskType=hT={}))});var _T=O(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.FormattedTaskTypeMap=fs.FormattedTaskType=void 0;var mt=al(),st;(function(o){o.Connector="Connector",o.ConnectorEvent="ConnectorEvent",o.HTTP="HTTP",o.Script="Script",o.If="If",o.ForEach="ForEach",o.TryCatch="TryCatch",o.Response="Response",o.DoWhile="DoWhile",o.While="While",o.Wait="Wait",o.Break="Break",o.WorkflowStart="WorkflowStart",o.Assign="Assign",o.Sequence="Sequence",o.Unknown="Unknown"})(st||(fs.FormattedTaskType=st={}));fs.FormattedTaskTypeMap={[mt.TaskType.DO]:st.Sequence,[mt.TaskType.FOR]:st.ForEach,[mt.TaskType.SWITCH]:st.If,[mt.TaskType.TRY]:st.TryCatch,[mt.TaskType.WHILE]:st.While,[mt.TaskType.DO_WHILE]:st.DoWhile,[mt.TaskType.HTTP]:st.HTTP,[mt.TaskType.SCRIPT]:st.Script,[mt.TaskType.INTSVC]:st.Connector,[mt.TaskType.INTSVC_EVENT]:st.ConnectorEvent,[mt.TaskType.SET]:st.Assign,[mt.TaskType.WAIT]:st.Wait,[mt.TaskType.BREAK]:st.Break,[mt.TaskType.WORKFLOW_START]:st.WorkflowStart,[mt.TaskType.RESPONSE]:st.Response,[mt.TaskType.RAISE]:st.Unknown,[mt.TaskType.UNKNOWN]:st.Unknown}});var vT=O(mT=>{"use strict";Object.defineProperty(mT,"__esModule",{value:!0})});var bT=O(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.SpanType=void 0;var yT;(function(o){o.ApiWorkflowRun="apiWorkflowRun",o.ApiWorkflowTaskRun="apiWorkflowTaskRun",o.ApiWorkflowUserLog="apiWorkflowUserLog",o.ApiWorkflowUnknown="apiWorkflowUnknown"})(yT||(cl.SpanType=yT={}))});var wT=O(gT=>{"use strict";Object.defineProperty(gT,"__esModule",{value:!0})});var OT=O(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.VerbosityLevelEnum=so.SourceEnum=so.StatusEnum=void 0;var ET;(function(o){o[o.Unset=0]="Unset",o[o.Ok=1]="Ok",o[o.Error=2]="Error",o[o.Running=3]="Running",o[o.Restricted=4]="Restricted",o[o.Cancelled=5]="Cancelled"})(ET||(so.StatusEnum=ET={}));var TT;(function(o){o[o.Agents=1]="Agents",o[o.ProcessOrchestration=2]="ProcessOrchestration",o[o.ApiWorkflows=3]="ApiWorkflows",o[o.Robots=4]="Robots"})(TT||(so.SourceEnum=TT={}));var ST;(function(o){o[o.Verbose=0]="Verbose",o[o.Trace=1]="Trace",o[o.Information=2]="Information",o[o.Warning=3]="Warning",o[o.Error=4]="Error",o[o.Critical=5]="Critical",o[o.Off=6]="Off"})(ST||(so.VerbosityLevelEnum=ST={}))});var kT=O(Qr=>{"use strict";var NL=Qr&&Qr.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),ul=Qr&&Qr.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&NL(t,o,r)};Object.defineProperty(Qr,"__esModule",{value:!0});ul(vT(),Qr);ul(bT(),Qr);ul(wT(),Qr);ul(OT(),Qr)});var AT=O(ao=>{"use strict";var DL=ao&&ao.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),PT=ao&&ao.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&DL(t,o,r)};Object.defineProperty(ao,"__esModule",{value:!0});PT(_T(),ao);PT(kT(),ao)});var IT=O(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.TaskHandlerArgs=void 0;var Rv=class{constructor(t){this.workflowConfig=t}};ll.TaskHandlerArgs=Rv});var RT=O(xT=>{"use strict";Object.defineProperty(xT,"__esModule",{value:!0})});var CT=O(MT=>{"use strict";Object.defineProperty(MT,"__esModule",{value:!0})});var DT=O(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.IntSvcEventMode=Nt.HttpAuthMode=Nt.RequestBodyType=Nt.INTEGRATION_SERVICE_EVENT_TASK_TYPE=Nt.UNIFIED_HTTP_TASK_TYPE=Nt.INTEGRATION_SERVICE_TASK_TYPE=void 0;Nt.INTEGRATION_SERVICE_TASK_TYPE="UiPath.IntSvc";Nt.UNIFIED_HTTP_TASK_TYPE="UiPath.Http";Nt.INTEGRATION_SERVICE_EVENT_TASK_TYPE="UiPath.IntSvcEvent";var jT;(function(o){o.RAW="raw",o.MULTIPART_FORM_DATA="multipartFormData"})(jT||(Nt.RequestBodyType=jT={}));var NT;(function(o){o.CONNECTOR="connector",o.MANUAL="manual"})(NT||(Nt.HttpAuthMode=NT={}));Nt.IntSvcEventMode={POLLING:"polling",WEBHOOKS:"webhooks"}});var Mv=O(co=>{"use strict";var LL=co&&co.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),LT=co&&co.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&LL(t,o,r)};Object.defineProperty(co,"__esModule",{value:!0});LT(CT(),co);LT(DT(),co)});var qT=O(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.ProxyVersion=void 0;var qL=Oe();Object.defineProperty(dl,"ProxyVersion",{enumerable:!0,get:function(){return qL.ProxyVersion}})});var FT=O(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.WorkflowError=uo.WorkflowErrorStatus=uo.WorkflowErrorType=void 0;var Cv;(function(o){o.CONFIGURATION_ERROR="https://serverlessworkflow.io/spec/1.0.0/errors/configuration",o.VALIDATION_ERROR="https://serverlessworkflow.io/spec/1.0.0/errors/validation",o.EXPRESSION_ERROR="https://serverlessworkflow.io/spec/1.0.0/errors/expression",o.AUTHENTICATION_ERROR="https://serverlessworkflow.io/spec/1.0.0/errors/authentication",o.AUTHORIZATION_ERROR="https://serverlessworkflow.io/spec/1.0.0/errors/authorization",o.TIMEOUT_ERROR="https://serverlessworkflow.io/spec/1.0.0/errors/timeout",o.COMMUNICATION_ERROR="https://serverlessworkflow.io/spec/1.0.0/errors/communication",o.RUNTIME_ERROR="https://serverlessworkflow.io/spec/1.0.0/errors/runtime"})(Cv||(uo.WorkflowErrorType=Cv={}));var jv;(function(o){o[o.BAD_REQUEST=400]="BAD_REQUEST",o[o.UNAUTHORIZED=401]="UNAUTHORIZED",o[o.FORBIDDEN=403]="FORBIDDEN",o[o.NOT_FOUND=404]="NOT_FOUND",o[o.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",o[o.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED"})(jv||(uo.WorkflowErrorStatus=jv={}));var ps=class o extends Error{constructor(t,r,e,n,i,s,c){let u=t??o.DEFAULT_TITLE;super(u);let a=new.target.prototype;Object.setPrototypeOf(this,a),this.name="WorkflowError",this.title=u,this.status=r||jv.INTERNAL_SERVER_ERROR,this.type=e||Cv.RUNTIME_ERROR,this.instance=n??o.DEFAULT_INSTANCE,this.detail=i??o.DEFAULT_DETAIL,this.data=s??{},this.originatingTaskName=c}toObject(){return{type:this.type,title:this.title,status:this.status,detail:this.detail,data:this.data,instance:this.instance,originatingTaskName:this.originatingTaskName}}getData(){return this.data}};uo.WorkflowError=ps;ps.DEFAULT_TITLE="Unknown Error";ps.DEFAULT_DETAIL="";ps.DEFAULT_INSTANCE=""});var WT=O(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.WorkflowExecutionResults=void 0;var Nv=class{constructor(t,r){this.workflowRunId="",this.result={},this.status="started",this.taskExecutions=[],this.taskTrackingEnabled=!1,this.executionSequence=0,this.workflowRunId=t,this.taskTrackingEnabled=r}addToWorkflowResult(t,r){this.taskTrackingEnabled&&(this.result[r]=t)}addToWorkflowExecutions(t){this.taskTrackingEnabled&&this.taskExecutions.push(`(${++this.executionSequence}) => ${t}`)}};fl.WorkflowExecutionResults=Nv});var Va=O(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.getWorkflowRetryConfig=UT;pl.resolveTransportRetryConfig=FL;function UT(o){return o.httpRetryConfig}function FL(o,t,r){let e=UT(o.$workflow.definition);if(e!==void 0){if((o.$runtime.control?.taskRetryDepth??0)>0){t?.debug(`Task '${r??""}': skipping the workflow-level httpRetryConfig because the call is inside a try block with a task-level retry policy.`);return}return e}}});var Lv=O((Dv,hs)=>{(function(o,t){typeof Dv=="object"&&typeof hs<"u"?hs.exports=t():typeof define=="function"&&define.amd?define(t):o.moment=t()})(Dv,function(){"use strict";var o;function t(){return o.apply(null,arguments)}function r(p){o=p}function e(p){return p instanceof Array||Object.prototype.toString.call(p)==="[object Array]"}function n(p){return p!=null&&Object.prototype.toString.call(p)==="[object Object]"}function i(p,y){return Object.prototype.hasOwnProperty.call(p,y)}function s(p){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(p).length===0;var y;for(y in p)if(i(p,y))return!1;return!0}function c(p){return p===void 0}function u(p){return typeof p=="number"||Object.prototype.toString.call(p)==="[object Number]"}function a(p){return p instanceof Date||Object.prototype.toString.call(p)==="[object Date]"}function l(p,y){var E=[],S,A=p.length;for(S=0;S<A;++S)E.push(y(p[S],S));return E}function d(p,y){for(var E in y)i(y,E)&&(p[E]=y[E]);return i(y,"toString")&&(p.toString=y.toString),i(y,"valueOf")&&(p.valueOf=y.valueOf),p}function f(p,y,E,S){return mw(p,y,E,S,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function _(p){return p._pf==null&&(p._pf=h()),p._pf}var m;Array.prototype.some?m=Array.prototype.some:m=function(p){var y=Object(this),E=y.length>>>0,S;for(S=0;S<E;S++)if(S in y&&p.call(this,y[S],S,y))return!0;return!1};function v(p){if(p._isValid==null){var y=_(p),E=m.call(y.parsedDateParts,function(A){return A!=null}),S=!isNaN(p._d.getTime())&&y.overflow<0&&!y.empty&&!y.invalidEra&&!y.invalidMonth&&!y.invalidWeekday&&!y.weekdayMismatch&&!y.nullInput&&!y.invalidFormat&&!y.userInvalidated&&(!y.meridiem||y.meridiem&&E);if(p._strict&&(S=S&&y.charsLeftOver===0&&y.unusedTokens.length===0&&y.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(p))p._isValid=S;else return S}return p._isValid}function b(p){var y=f(NaN);return p!=null?d(_(y),p):_(y).userInvalidated=!0,y}var g=t.momentProperties=[],w=!1;function T(p,y){var E,S,A,M=g.length;if(c(y._isAMomentObject)||(p._isAMomentObject=y._isAMomentObject),c(y._i)||(p._i=y._i),c(y._f)||(p._f=y._f),c(y._l)||(p._l=y._l),c(y._strict)||(p._strict=y._strict),c(y._tzm)||(p._tzm=y._tzm),c(y._isUTC)||(p._isUTC=y._isUTC),c(y._offset)||(p._offset=y._offset),c(y._pf)||(p._pf=_(y)),c(y._locale)||(p._locale=y._locale),M>0)for(E=0;E<M;E++)S=g[E],A=y[S],c(A)||(p[S]=A);return p}function P(p){T(this,p),this._d=new Date(p._d!=null?p._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),w===!1&&(w=!0,t.updateOffset(this),w=!1)}function k(p){return p instanceof P||p!=null&&p._isAMomentObject!=null}function x(p){t.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+p)}function R(p,y){var E=!0;return d(function(){if(t.deprecationHandler!=null&&t.deprecationHandler(null,p),E){var S=[],A,M,W,ue=arguments.length;for(M=0;M<ue;M++){if(A="",typeof arguments[M]=="object"){A+=`
|
|
85
85
|
[`+M+"] ";for(W in arguments[0])i(arguments[0],W)&&(A+=W+": "+arguments[0][W]+", ");A=A.slice(0,-2)}else A=arguments[M];S.push(A)}x(p+`
|
|
86
86
|
Arguments: `+Array.prototype.slice.call(S).join("")+`
|
|
87
|
-
`+new Error().stack),E=!1}return y.apply(this,arguments)},y)}var C={};function j(p,y){t.deprecationHandler!=null&&t.deprecationHandler(p,y),C[p]||(x(y),C[p]=!0)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;function L(p){return typeof Function<"u"&&p instanceof Function||Object.prototype.toString.call(p)==="[object Function]"}function D(p){var y,E;for(E in p)i(p,E)&&(y=p[E],L(y)?this[E]=y:this["_"+E]=y);this._config=p,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function F(p,y){var E=d({},p),S;for(S in y)i(y,S)&&(n(p[S])&&n(y[S])?(E[S]={},d(E[S],p[S]),d(E[S],y[S])):y[S]!=null?E[S]=y[S]:delete E[S]);for(S in p)i(p,S)&&!i(y,S)&&n(p[S])&&(E[S]=d({},E[S]));return E}function q(p){p!=null&&this.set(p)}var z;Object.keys?z=Object.keys:z=function(p){var y,E=[];for(y in p)i(p,y)&&E.push(y);return E};var K={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function se(p,y,E){var S=this._calendar[p]||this._calendar.sameElse;return L(S)?S.call(y,E):S}function X(p,y,E){var S=""+Math.abs(p),A=y-S.length,M=p>=0;return(M?E?"+":"":"-")+Math.pow(10,Math.max(0,A)).toString().substr(1)+S}var he=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,te=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,xe={},Ke={};function Q(p,y,E,S){var A=S;typeof S=="string"&&(A=function(){return this[S]()}),p&&(Ke[p]=A),y&&(Ke[y[0]]=function(){return X(A.apply(this,arguments),y[1],y[2])}),E&&(Ke[E]=function(){return this.localeData().ordinal(A.apply(this,arguments),p)})}function bn(p){return p.match(/\[[\s\S]/)?p.replace(/^\[|\]$/g,""):p.replace(/\\/g,"")}function Jo(p){var y=p.match(he),E,S;for(E=0,S=y.length;E<S;E++)Ke[y[E]]?y[E]=Ke[y[E]]:y[E]=bn(y[E]);return function(A){var M="",W;for(W=0;W<S;W++)M+=L(y[W])?y[W].call(A,p):y[W];return M}}function nr(p,y){return p.isValid()?(y=Vr(y,p.localeData()),xe[y]=xe[y]||Jo(y),xe[y](p)):p.localeData().invalidDate()}function Vr(p,y){var E=5;function S(A){return y.longDateFormat(A)||A}for(te.lastIndex=0;E>=0&&te.test(p);)p=p.replace(te,S),te.lastIndex=0,E-=1;return p}var $={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function H(p){var y=this._longDateFormat[p],E=this._longDateFormat[p.toUpperCase()];return y||!E?y:(this._longDateFormat[p]=E.match(he).map(function(S){return S==="MMMM"||S==="MM"||S==="DD"||S==="dddd"?S.slice(1):S}).join(""),this._longDateFormat[p])}var J="Invalid date";function ne(){return this._invalidDate}var _e="%d",Ee=/\d{1,2}/;function fe(p){return this._ordinal.replace("%d",p)}var Z={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ae(p,y,E,S){var A=this._relativeTime[E];return L(A)?A(p,y,E,S):A.replace(/%d/i,p)}function N(p,y){var E=this._relativeTime[p>0?"future":"past"];return L(E)?E(y):E.replace(/%s/i,y)}var B={};function G(p,y){var E=p.toLowerCase();B[E]=B[E+"s"]=B[y]=p}function ce(p){return typeof p=="string"?B[p]||B[p.toLowerCase()]:void 0}function oe(p){var y={},E,S;for(S in p)i(p,S)&&(E=ce(S),E&&(y[E]=p[S]));return y}var Ve={};function Be(p,y){Ve[p]=y}function zr(p){var y=[],E;for(E in p)i(p,E)&&y.push({unit:E,priority:Ve[E]});return y.sort(function(S,A){return S.priority-A.priority}),y}function or(p){return p%4===0&&p%100!==0||p%400===0}function _t(p){return p<0?Math.ceil(p)||0:Math.floor(p)}function me(p){var y=+p,E=0;return y!==0&&isFinite(y)&&(E=_t(y)),E}function Er(p,y){return function(E){return E!=null?(Yr(this,p,E),t.updateOffset(this,y),this):ir(this,p)}}function ir(p,y){return p.isValid()?p._d["get"+(p._isUTC?"UTC":"")+y]():NaN}function Yr(p,y,E){p.isValid()&&!isNaN(E)&&(y==="FullYear"&&or(p.year())&&p.month()===1&&p.date()===29?(E=me(E),p._d["set"+(p._isUTC?"UTC":"")+y](E,p.month(),Xi(E,p.month()))):p._d["set"+(p._isUTC?"UTC":"")+y](E))}function Qe(p){return p=ce(p),L(this[p])?this[p]():this}function Te(p,y){if(typeof p=="object"){p=oe(p);var E=zr(p),S,A=E.length;for(S=0;S<A;S++)this[E[S].unit](p[E[S].unit])}else if(p=ce(p),L(this[p]))return this[p](y);return this}var it=/\d/,Ze=/\d\d/,gn=/\d{3}/,Tr=/\d{4}/,Ct=/[+-]?\d{6}/,Re=/\d\d?/,zn=/\d\d\d\d?/,Go=/\d\d\d\d\d\d?/,Yn=/\d{1,3}/,Aa=/\d{1,4}/,Yi=/[+-]?\d{1,6}/,Kn=/\d+/,Ki=/[+-]?\d+/,R_=/Z|[+-]\d\d:?\d\d/gi,Ji=/Z|[+-]\d\d(?::?\d\d)?/gi,M_=/[+-]?\d+(\.\d{1,3})?/,Xo=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Gi;Gi={};function re(p,y,E){Gi[p]=L(y)?y:function(S,A){return S&&E?E:y}}function C_(p,y){return i(Gi,p)?Gi[p](y._strict,y._locale):new RegExp(j_(p))}function j_(p){return At(p.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(y,E,S,A,M){return E||S||A||M}))}function At(p){return p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ia={};function Me(p,y){var E,S=y,A;for(typeof p=="string"&&(p=[p]),u(y)&&(S=function(M,W){W[y]=me(M)}),A=p.length,E=0;E<A;E++)Ia[p[E]]=S}function Zo(p,y){Me(p,function(E,S,A,M){A._w=A._w||{},y(E,A._w,A,M)})}function N_(p,y,E){y!=null&&i(Ia,p)&&Ia[p](y,E._a,E,p)}var lt=0,Sr=1,sr=2,et=3,zt=4,Or=5,wn=6,D_=7,L_=8;function q_(p,y){return(p%y+y)%y}var Je;Array.prototype.indexOf?Je=Array.prototype.indexOf:Je=function(p){var y;for(y=0;y<this.length;++y)if(this[y]===p)return y;return-1};function Xi(p,y){if(isNaN(p)||isNaN(y))return NaN;var E=q_(y,12);return p+=(y-E)/12,E===1?or(p)?29:28:31-E%7%2}Q("M",["MM",2],"Mo",function(){return this.month()+1}),Q("MMM",0,0,function(p){return this.localeData().monthsShort(this,p)}),Q("MMMM",0,0,function(p){return this.localeData().months(this,p)}),G("month","M"),Be("month",8),re("M",Re),re("MM",Re,Ze),re("MMM",function(p,y){return y.monthsShortRegex(p)}),re("MMMM",function(p,y){return y.monthsRegex(p)}),Me(["M","MM"],function(p,y){y[Sr]=me(p)-1}),Me(["MMM","MMMM"],function(p,y,E,S){var A=E._locale.monthsParse(p,S,E._strict);A!=null?y[Sr]=A:_(E).invalidMonth=p});var F_="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),tu="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ru=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,W_=Xo,U_=Xo;function $_(p,y){return p?e(this._months)?this._months[p.month()]:this._months[(this._months.isFormat||ru).test(y)?"format":"standalone"][p.month()]:e(this._months)?this._months:this._months.standalone}function B_(p,y){return p?e(this._monthsShort)?this._monthsShort[p.month()]:this._monthsShort[ru.test(y)?"format":"standalone"][p.month()]:e(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function H_(p,y,E){var S,A,M,W=p.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],S=0;S<12;++S)M=f([2e3,S]),this._shortMonthsParse[S]=this.monthsShort(M,"").toLocaleLowerCase(),this._longMonthsParse[S]=this.months(M,"").toLocaleLowerCase();return E?y==="MMM"?(A=Je.call(this._shortMonthsParse,W),A!==-1?A:null):(A=Je.call(this._longMonthsParse,W),A!==-1?A:null):y==="MMM"?(A=Je.call(this._shortMonthsParse,W),A!==-1?A:(A=Je.call(this._longMonthsParse,W),A!==-1?A:null)):(A=Je.call(this._longMonthsParse,W),A!==-1?A:(A=Je.call(this._shortMonthsParse,W),A!==-1?A:null))}function V_(p,y,E){var S,A,M;if(this._monthsParseExact)return H_.call(this,p,y,E);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),S=0;S<12;S++){if(A=f([2e3,S]),E&&!this._longMonthsParse[S]&&(this._longMonthsParse[S]=new RegExp("^"+this.months(A,"").replace(".","")+"$","i"),this._shortMonthsParse[S]=new RegExp("^"+this.monthsShort(A,"").replace(".","")+"$","i")),!E&&!this._monthsParse[S]&&(M="^"+this.months(A,"")+"|^"+this.monthsShort(A,""),this._monthsParse[S]=new RegExp(M.replace(".",""),"i")),E&&y==="MMMM"&&this._longMonthsParse[S].test(p))return S;if(E&&y==="MMM"&&this._shortMonthsParse[S].test(p))return S;if(!E&&this._monthsParse[S].test(p))return S}}function nu(p,y){var E;if(!p.isValid())return p;if(typeof y=="string"){if(/^\d+$/.test(y))y=me(y);else if(y=p.localeData().monthsParse(y),!u(y))return p}return E=Math.min(p.date(),Xi(p.year(),y)),p._d["set"+(p._isUTC?"UTC":"")+"Month"](y,E),p}function ou(p){return p!=null?(nu(this,p),t.updateOffset(this,!0),this):ir(this,"Month")}function z_(){return Xi(this.year(),this.month())}function Y_(p){return this._monthsParseExact?(i(this,"_monthsRegex")||iu.call(this),p?this._monthsShortStrictRegex:this._monthsShortRegex):(i(this,"_monthsShortRegex")||(this._monthsShortRegex=W_),this._monthsShortStrictRegex&&p?this._monthsShortStrictRegex:this._monthsShortRegex)}function K_(p){return this._monthsParseExact?(i(this,"_monthsRegex")||iu.call(this),p?this._monthsStrictRegex:this._monthsRegex):(i(this,"_monthsRegex")||(this._monthsRegex=U_),this._monthsStrictRegex&&p?this._monthsStrictRegex:this._monthsRegex)}function iu(){function p(W,ue){return ue.length-W.length}var y=[],E=[],S=[],A,M;for(A=0;A<12;A++)M=f([2e3,A]),y.push(this.monthsShort(M,"")),E.push(this.months(M,"")),S.push(this.months(M,"")),S.push(this.monthsShort(M,""));for(y.sort(p),E.sort(p),S.sort(p),A=0;A<12;A++)y[A]=At(y[A]),E[A]=At(E[A]);for(A=0;A<24;A++)S[A]=At(S[A]);this._monthsRegex=new RegExp("^("+S.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+E.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+y.join("|")+")","i")}Q("Y",0,0,function(){var p=this.year();return p<=9999?X(p,4):"+"+p}),Q(0,["YY",2],0,function(){return this.year()%100}),Q(0,["YYYY",4],0,"year"),Q(0,["YYYYY",5],0,"year"),Q(0,["YYYYYY",6,!0],0,"year"),G("year","y"),Be("year",1),re("Y",Ki),re("YY",Re,Ze),re("YYYY",Aa,Tr),re("YYYYY",Yi,Ct),re("YYYYYY",Yi,Ct),Me(["YYYYY","YYYYYY"],lt),Me("YYYY",function(p,y){y[lt]=p.length===2?t.parseTwoDigitYear(p):me(p)}),Me("YY",function(p,y){y[lt]=t.parseTwoDigitYear(p)}),Me("Y",function(p,y){y[lt]=parseInt(p,10)});function Qo(p){return or(p)?366:365}t.parseTwoDigitYear=function(p){return me(p)+(me(p)>68?1900:2e3)};var su=Er("FullYear",!0);function J_(){return or(this.year())}function G_(p,y,E,S,A,M,W){var ue;return p<100&&p>=0?(ue=new Date(p+400,y,E,S,A,M,W),isFinite(ue.getFullYear())&&ue.setFullYear(p)):ue=new Date(p,y,E,S,A,M,W),ue}function ei(p){var y,E;return p<100&&p>=0?(E=Array.prototype.slice.call(arguments),E[0]=p+400,y=new Date(Date.UTC.apply(null,E)),isFinite(y.getUTCFullYear())&&y.setUTCFullYear(p)):y=new Date(Date.UTC.apply(null,arguments)),y}function Zi(p,y,E){var S=7+y-E,A=(7+ei(p,0,S).getUTCDay()-y)%7;return-A+S-1}function au(p,y,E,S,A){var M=(7+E-S)%7,W=Zi(p,S,A),ue=1+7*(y-1)+M+W,ye,Le;return ue<=0?(ye=p-1,Le=Qo(ye)+ue):ue>Qo(p)?(ye=p+1,Le=ue-Qo(p)):(ye=p,Le=ue),{year:ye,dayOfYear:Le}}function ti(p,y,E){var S=Zi(p.year(),y,E),A=Math.floor((p.dayOfYear()-S-1)/7)+1,M,W;return A<1?(W=p.year()-1,M=A+kr(W,y,E)):A>kr(p.year(),y,E)?(M=A-kr(p.year(),y,E),W=p.year()+1):(W=p.year(),M=A),{week:M,year:W}}function kr(p,y,E){var S=Zi(p,y,E),A=Zi(p+1,y,E);return(Qo(p)-S+A)/7}Q("w",["ww",2],"wo","week"),Q("W",["WW",2],"Wo","isoWeek"),G("week","w"),G("isoWeek","W"),Be("week",5),Be("isoWeek",5),re("w",Re),re("ww",Re,Ze),re("W",Re),re("WW",Re,Ze),Zo(["w","ww","W","WW"],function(p,y,E,S){y[S.substr(0,1)]=me(p)});function X_(p){return ti(p,this._week.dow,this._week.doy).week}var Z_={dow:0,doy:6};function Q_(){return this._week.dow}function em(){return this._week.doy}function tm(p){var y=this.localeData().week(this);return p==null?y:this.add((p-y)*7,"d")}function rm(p){var y=ti(this,1,4).week;return p==null?y:this.add((p-y)*7,"d")}Q("d",0,"do","day"),Q("dd",0,0,function(p){return this.localeData().weekdaysMin(this,p)}),Q("ddd",0,0,function(p){return this.localeData().weekdaysShort(this,p)}),Q("dddd",0,0,function(p){return this.localeData().weekdays(this,p)}),Q("e",0,0,"weekday"),Q("E",0,0,"isoWeekday"),G("day","d"),G("weekday","e"),G("isoWeekday","E"),Be("day",11),Be("weekday",11),Be("isoWeekday",11),re("d",Re),re("e",Re),re("E",Re),re("dd",function(p,y){return y.weekdaysMinRegex(p)}),re("ddd",function(p,y){return y.weekdaysShortRegex(p)}),re("dddd",function(p,y){return y.weekdaysRegex(p)}),Zo(["dd","ddd","dddd"],function(p,y,E,S){var A=E._locale.weekdaysParse(p,S,E._strict);A!=null?y.d=A:_(E).invalidWeekday=p}),Zo(["d","e","E"],function(p,y,E,S){y[S]=me(p)});function nm(p,y){return typeof p!="string"?p:isNaN(p)?(p=y.weekdaysParse(p),typeof p=="number"?p:null):parseInt(p,10)}function om(p,y){return typeof p=="string"?y.weekdaysParse(p)%7||7:isNaN(p)?null:p}function xa(p,y){return p.slice(y,7).concat(p.slice(0,y))}var im="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),cu="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),sm="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),am=Xo,cm=Xo,um=Xo;function lm(p,y){var E=e(this._weekdays)?this._weekdays:this._weekdays[p&&p!==!0&&this._weekdays.isFormat.test(y)?"format":"standalone"];return p===!0?xa(E,this._week.dow):p?E[p.day()]:E}function dm(p){return p===!0?xa(this._weekdaysShort,this._week.dow):p?this._weekdaysShort[p.day()]:this._weekdaysShort}function fm(p){return p===!0?xa(this._weekdaysMin,this._week.dow):p?this._weekdaysMin[p.day()]:this._weekdaysMin}function pm(p,y,E){var S,A,M,W=p.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],S=0;S<7;++S)M=f([2e3,1]).day(S),this._minWeekdaysParse[S]=this.weekdaysMin(M,"").toLocaleLowerCase(),this._shortWeekdaysParse[S]=this.weekdaysShort(M,"").toLocaleLowerCase(),this._weekdaysParse[S]=this.weekdays(M,"").toLocaleLowerCase();return E?y==="dddd"?(A=Je.call(this._weekdaysParse,W),A!==-1?A:null):y==="ddd"?(A=Je.call(this._shortWeekdaysParse,W),A!==-1?A:null):(A=Je.call(this._minWeekdaysParse,W),A!==-1?A:null):y==="dddd"?(A=Je.call(this._weekdaysParse,W),A!==-1||(A=Je.call(this._shortWeekdaysParse,W),A!==-1)?A:(A=Je.call(this._minWeekdaysParse,W),A!==-1?A:null)):y==="ddd"?(A=Je.call(this._shortWeekdaysParse,W),A!==-1||(A=Je.call(this._weekdaysParse,W),A!==-1)?A:(A=Je.call(this._minWeekdaysParse,W),A!==-1?A:null)):(A=Je.call(this._minWeekdaysParse,W),A!==-1||(A=Je.call(this._weekdaysParse,W),A!==-1)?A:(A=Je.call(this._shortWeekdaysParse,W),A!==-1?A:null))}function hm(p,y,E){var S,A,M;if(this._weekdaysParseExact)return pm.call(this,p,y,E);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),S=0;S<7;S++){if(A=f([2e3,1]).day(S),E&&!this._fullWeekdaysParse[S]&&(this._fullWeekdaysParse[S]=new RegExp("^"+this.weekdays(A,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[S]=new RegExp("^"+this.weekdaysShort(A,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[S]=new RegExp("^"+this.weekdaysMin(A,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[S]||(M="^"+this.weekdays(A,"")+"|^"+this.weekdaysShort(A,"")+"|^"+this.weekdaysMin(A,""),this._weekdaysParse[S]=new RegExp(M.replace(".",""),"i")),E&&y==="dddd"&&this._fullWeekdaysParse[S].test(p))return S;if(E&&y==="ddd"&&this._shortWeekdaysParse[S].test(p))return S;if(E&&y==="dd"&&this._minWeekdaysParse[S].test(p))return S;if(!E&&this._weekdaysParse[S].test(p))return S}}function _m(p){if(!this.isValid())return p!=null?this:NaN;var y=this._isUTC?this._d.getUTCDay():this._d.getDay();return p!=null?(p=nm(p,this.localeData()),this.add(p-y,"d")):y}function mm(p){if(!this.isValid())return p!=null?this:NaN;var y=(this.day()+7-this.localeData()._week.dow)%7;return p==null?y:this.add(p-y,"d")}function vm(p){if(!this.isValid())return p!=null?this:NaN;if(p!=null){var y=om(p,this.localeData());return this.day(this.day()%7?y:y-7)}else return this.day()||7}function ym(p){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Ra.call(this),p?this._weekdaysStrictRegex:this._weekdaysRegex):(i(this,"_weekdaysRegex")||(this._weekdaysRegex=am),this._weekdaysStrictRegex&&p?this._weekdaysStrictRegex:this._weekdaysRegex)}function bm(p){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Ra.call(this),p?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=cm),this._weekdaysShortStrictRegex&&p?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function gm(p){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Ra.call(this),p?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=um),this._weekdaysMinStrictRegex&&p?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ra(){function p(It,kn){return kn.length-It.length}var y=[],E=[],S=[],A=[],M,W,ue,ye,Le;for(M=0;M<7;M++)W=f([2e3,1]).day(M),ue=At(this.weekdaysMin(W,"")),ye=At(this.weekdaysShort(W,"")),Le=At(this.weekdays(W,"")),y.push(ue),E.push(ye),S.push(Le),A.push(ue),A.push(ye),A.push(Le);y.sort(p),E.sort(p),S.sort(p),A.sort(p),this._weekdaysRegex=new RegExp("^("+A.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+S.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+E.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+y.join("|")+")","i")}function Ma(){return this.hours()%12||12}function wm(){return this.hours()||24}Q("H",["HH",2],0,"hour"),Q("h",["hh",2],0,Ma),Q("k",["kk",2],0,wm),Q("hmm",0,0,function(){return""+Ma.apply(this)+X(this.minutes(),2)}),Q("hmmss",0,0,function(){return""+Ma.apply(this)+X(this.minutes(),2)+X(this.seconds(),2)}),Q("Hmm",0,0,function(){return""+this.hours()+X(this.minutes(),2)}),Q("Hmmss",0,0,function(){return""+this.hours()+X(this.minutes(),2)+X(this.seconds(),2)});function uu(p,y){Q(p,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),y)})}uu("a",!0),uu("A",!1),G("hour","h"),Be("hour",13);function lu(p,y){return y._meridiemParse}re("a",lu),re("A",lu),re("H",Re),re("h",Re),re("k",Re),re("HH",Re,Ze),re("hh",Re,Ze),re("kk",Re,Ze),re("hmm",zn),re("hmmss",Go),re("Hmm",zn),re("Hmmss",Go),Me(["H","HH"],et),Me(["k","kk"],function(p,y,E){var S=me(p);y[et]=S===24?0:S}),Me(["a","A"],function(p,y,E){E._isPm=E._locale.isPM(p),E._meridiem=p}),Me(["h","hh"],function(p,y,E){y[et]=me(p),_(E).bigHour=!0}),Me("hmm",function(p,y,E){var S=p.length-2;y[et]=me(p.substr(0,S)),y[zt]=me(p.substr(S)),_(E).bigHour=!0}),Me("hmmss",function(p,y,E){var S=p.length-4,A=p.length-2;y[et]=me(p.substr(0,S)),y[zt]=me(p.substr(S,2)),y[Or]=me(p.substr(A)),_(E).bigHour=!0}),Me("Hmm",function(p,y,E){var S=p.length-2;y[et]=me(p.substr(0,S)),y[zt]=me(p.substr(S))}),Me("Hmmss",function(p,y,E){var S=p.length-4,A=p.length-2;y[et]=me(p.substr(0,S)),y[zt]=me(p.substr(S,2)),y[Or]=me(p.substr(A))});function Em(p){return(p+"").toLowerCase().charAt(0)==="p"}var Tm=/[ap]\.?m?\.?/i,Sm=Er("Hours",!0);function Om(p,y,E){return p>11?E?"pm":"PM":E?"am":"AM"}var du={calendar:K,longDateFormat:$,invalidDate:J,ordinal:_e,dayOfMonthOrdinalParse:Ee,relativeTime:Z,months:F_,monthsShort:tu,week:Z_,weekdays:im,weekdaysMin:sm,weekdaysShort:cu,meridiemParse:Tm},$e={},ri={},ni;function km(p,y){var E,S=Math.min(p.length,y.length);for(E=0;E<S;E+=1)if(p[E]!==y[E])return E;return S}function fu(p){return p&&p.toLowerCase().replace("_","-")}function Pm(p){for(var y=0,E,S,A,M;y<p.length;){for(M=fu(p[y]).split("-"),E=M.length,S=fu(p[y+1]),S=S?S.split("-"):null;E>0;){if(A=Pr(M.slice(0,E).join("-")),A)return A;if(S&&S.length>=E&&km(M,S)>=E-1)break;E--}y++}return ni}function Jn(p){return p.match("^[^/\\\\]*$")!=null}function Pr(p){var y=null,E;if($e[p]===void 0&&typeof hs<"u"&&hs&&hs.exports&&Jn(p))try{y=ni._abbr,E=Ue,E("./locale/"+p),dt(y)}catch{$e[p]=null}return $e[p]}function dt(p,y){var E;return p&&(c(y)?E=En(p):E=Ar(p,y),E?ni=E:typeof console<"u"&&console.warn&&console.warn("Locale "+p+" not found. Did you forget to load it?")),ni._abbr}function Ar(p,y){if(y!==null){var E,S=du;if(y.abbr=p,$e[p]!=null)j("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),S=$e[p]._config;else if(y.parentLocale!=null)if($e[y.parentLocale]!=null)S=$e[y.parentLocale]._config;else if(E=Pr(y.parentLocale),E!=null)S=E._config;else return ri[y.parentLocale]||(ri[y.parentLocale]=[]),ri[y.parentLocale].push({name:p,config:y}),null;return $e[p]=new q(F(S,y)),ri[p]&&ri[p].forEach(function(A){Ar(A.name,A.config)}),dt(p),$e[p]}else return delete $e[p],null}function rM(p,y){if(y!=null){var E,S,A=du;$e[p]!=null&&$e[p].parentLocale!=null?$e[p].set(F($e[p]._config,y)):(S=Pr(p),S!=null&&(A=S._config),y=F(A,y),S==null&&(y.abbr=p),E=new q(y),E.parentLocale=$e[p],$e[p]=E),dt(p)}else $e[p]!=null&&($e[p].parentLocale!=null?($e[p]=$e[p].parentLocale,p===dt()&&dt(p)):$e[p]!=null&&delete $e[p]);return $e[p]}function En(p){var y;if(p&&p._locale&&p._locale._abbr&&(p=p._locale._abbr),!p)return ni;if(!e(p)){if(y=Pr(p),y)return y;p=[p]}return Pm(p)}function nM(){return z($e)}function Am(p){var y,E=p._a;return E&&_(p).overflow===-2&&(y=E[Sr]<0||E[Sr]>11?Sr:E[sr]<1||E[sr]>Xi(E[lt],E[Sr])?sr:E[et]<0||E[et]>24||E[et]===24&&(E[zt]!==0||E[Or]!==0||E[wn]!==0)?et:E[zt]<0||E[zt]>59?zt:E[Or]<0||E[Or]>59?Or:E[wn]<0||E[wn]>999?wn:-1,_(p)._overflowDayOfYear&&(y<lt||y>sr)&&(y=sr),_(p)._overflowWeeks&&y===-1&&(y=D_),_(p)._overflowWeekday&&y===-1&&(y=L_),_(p).overflow=y),p}var oM=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,iM=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,sM=/Z|[+-]\d\d(?::?\d\d)?/,pu=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Im=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],aM=/^\/?Date\((-?\d+)/i,cM=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,uM={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function pw(p){var y,E,S=p._i,A=oM.exec(S)||iM.exec(S),M,W,ue,ye,Le=pu.length,It=Im.length;if(A){for(_(p).iso=!0,y=0,E=Le;y<E;y++)if(pu[y][1].exec(A[1])){W=pu[y][0],M=pu[y][2]!==!1;break}if(W==null){p._isValid=!1;return}if(A[3]){for(y=0,E=It;y<E;y++)if(Im[y][1].exec(A[3])){ue=(A[2]||" ")+Im[y][0];break}if(ue==null){p._isValid=!1;return}}if(!M&&ue!=null){p._isValid=!1;return}if(A[4])if(sM.exec(A[4]))ye="Z";else{p._isValid=!1;return}p._f=W+(ue||"")+(ye||""),Rm(p)}else p._isValid=!1}function lM(p,y,E,S,A,M){var W=[dM(p),tu.indexOf(y),parseInt(E,10),parseInt(S,10),parseInt(A,10)];return M&&W.push(parseInt(M,10)),W}function dM(p){var y=parseInt(p,10);return y<=49?2e3+y:y<=999?1900+y:y}function fM(p){return p.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function pM(p,y,E){if(p){var S=cu.indexOf(p),A=new Date(y[0],y[1],y[2]).getDay();if(S!==A)return _(E).weekdayMismatch=!0,E._isValid=!1,!1}return!0}function hM(p,y,E){if(p)return uM[p];if(y)return 0;var S=parseInt(E,10),A=S%100,M=(S-A)/100;return M*60+A}function hw(p){var y=cM.exec(fM(p._i)),E;if(y){if(E=lM(y[4],y[3],y[2],y[5],y[6],y[7]),!pM(y[1],E,p))return;p._a=E,p._tzm=hM(y[8],y[9],y[10]),p._d=ei.apply(null,p._a),p._d.setUTCMinutes(p._d.getUTCMinutes()-p._tzm),_(p).rfc2822=!0}else p._isValid=!1}function _M(p){var y=aM.exec(p._i);if(y!==null){p._d=new Date(+y[1]);return}if(pw(p),p._isValid===!1)delete p._isValid;else return;if(hw(p),p._isValid===!1)delete p._isValid;else return;p._strict?p._isValid=!1:t.createFromInputFallback(p)}t.createFromInputFallback=R("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(p){p._d=new Date(p._i+(p._useUTC?" UTC":""))});function Qi(p,y,E){return p??y??E}function mM(p){var y=new Date(t.now());return p._useUTC?[y.getUTCFullYear(),y.getUTCMonth(),y.getUTCDate()]:[y.getFullYear(),y.getMonth(),y.getDate()]}function xm(p){var y,E,S=[],A,M,W;if(!p._d){for(A=mM(p),p._w&&p._a[sr]==null&&p._a[Sr]==null&&vM(p),p._dayOfYear!=null&&(W=Qi(p._a[lt],A[lt]),(p._dayOfYear>Qo(W)||p._dayOfYear===0)&&(_(p)._overflowDayOfYear=!0),E=ei(W,0,p._dayOfYear),p._a[Sr]=E.getUTCMonth(),p._a[sr]=E.getUTCDate()),y=0;y<3&&p._a[y]==null;++y)p._a[y]=S[y]=A[y];for(;y<7;y++)p._a[y]=S[y]=p._a[y]==null?y===2?1:0:p._a[y];p._a[et]===24&&p._a[zt]===0&&p._a[Or]===0&&p._a[wn]===0&&(p._nextDay=!0,p._a[et]=0),p._d=(p._useUTC?ei:G_).apply(null,S),M=p._useUTC?p._d.getUTCDay():p._d.getDay(),p._tzm!=null&&p._d.setUTCMinutes(p._d.getUTCMinutes()-p._tzm),p._nextDay&&(p._a[et]=24),p._w&&typeof p._w.d<"u"&&p._w.d!==M&&(_(p).weekdayMismatch=!0)}}function vM(p){var y,E,S,A,M,W,ue,ye,Le;y=p._w,y.GG!=null||y.W!=null||y.E!=null?(M=1,W=4,E=Qi(y.GG,p._a[lt],ti(He(),1,4).year),S=Qi(y.W,1),A=Qi(y.E,1),(A<1||A>7)&&(ye=!0)):(M=p._locale._week.dow,W=p._locale._week.doy,Le=ti(He(),M,W),E=Qi(y.gg,p._a[lt],Le.year),S=Qi(y.w,Le.week),y.d!=null?(A=y.d,(A<0||A>6)&&(ye=!0)):y.e!=null?(A=y.e+M,(y.e<0||y.e>6)&&(ye=!0)):A=M),S<1||S>kr(E,M,W)?_(p)._overflowWeeks=!0:ye!=null?_(p)._overflowWeekday=!0:(ue=au(E,S,A,M,W),p._a[lt]=ue.year,p._dayOfYear=ue.dayOfYear)}t.ISO_8601=function(){},t.RFC_2822=function(){};function Rm(p){if(p._f===t.ISO_8601){pw(p);return}if(p._f===t.RFC_2822){hw(p);return}p._a=[],_(p).empty=!0;var y=""+p._i,E,S,A,M,W,ue=y.length,ye=0,Le,It;for(A=Vr(p._f,p._locale).match(he)||[],It=A.length,E=0;E<It;E++)M=A[E],S=(y.match(C_(M,p))||[])[0],S&&(W=y.substr(0,y.indexOf(S)),W.length>0&&_(p).unusedInput.push(W),y=y.slice(y.indexOf(S)+S.length),ye+=S.length),Ke[M]?(S?_(p).empty=!1:_(p).unusedTokens.push(M),N_(M,S,p)):p._strict&&!S&&_(p).unusedTokens.push(M);_(p).charsLeftOver=ue-ye,y.length>0&&_(p).unusedInput.push(y),p._a[et]<=12&&_(p).bigHour===!0&&p._a[et]>0&&(_(p).bigHour=void 0),_(p).parsedDateParts=p._a.slice(0),_(p).meridiem=p._meridiem,p._a[et]=yM(p._locale,p._a[et],p._meridiem),Le=_(p).era,Le!==null&&(p._a[lt]=p._locale.erasConvertYear(Le,p._a[lt])),xm(p),Am(p)}function yM(p,y,E){var S;return E==null?y:p.meridiemHour!=null?p.meridiemHour(y,E):(p.isPM!=null&&(S=p.isPM(E),S&&y<12&&(y+=12),!S&&y===12&&(y=0)),y)}function bM(p){var y,E,S,A,M,W,ue=!1,ye=p._f.length;if(ye===0){_(p).invalidFormat=!0,p._d=new Date(NaN);return}for(A=0;A<ye;A++)M=0,W=!1,y=T({},p),p._useUTC!=null&&(y._useUTC=p._useUTC),y._f=p._f[A],Rm(y),v(y)&&(W=!0),M+=_(y).charsLeftOver,M+=_(y).unusedTokens.length*10,_(y).score=M,ue?M<S&&(S=M,E=y):(S==null||M<S||W)&&(S=M,E=y,W&&(ue=!0));d(p,E||y)}function gM(p){if(!p._d){var y=oe(p._i),E=y.day===void 0?y.date:y.day;p._a=l([y.year,y.month,E,y.hour,y.minute,y.second,y.millisecond],function(S){return S&&parseInt(S,10)}),xm(p)}}function wM(p){var y=new P(Am(_w(p)));return y._nextDay&&(y.add(1,"d"),y._nextDay=void 0),y}function _w(p){var y=p._i,E=p._f;return p._locale=p._locale||En(p._l),y===null||E===void 0&&y===""?b({nullInput:!0}):(typeof y=="string"&&(p._i=y=p._locale.preparse(y)),k(y)?new P(Am(y)):(a(y)?p._d=y:e(E)?bM(p):E?Rm(p):EM(p),v(p)||(p._d=null),p))}function EM(p){var y=p._i;c(y)?p._d=new Date(t.now()):a(y)?p._d=new Date(y.valueOf()):typeof y=="string"?_M(p):e(y)?(p._a=l(y.slice(0),function(E){return parseInt(E,10)}),xm(p)):n(y)?gM(p):u(y)?p._d=new Date(y):t.createFromInputFallback(p)}function mw(p,y,E,S,A){var M={};return(y===!0||y===!1)&&(S=y,y=void 0),(E===!0||E===!1)&&(S=E,E=void 0),(n(p)&&s(p)||e(p)&&p.length===0)&&(p=void 0),M._isAMomentObject=!0,M._useUTC=M._isUTC=A,M._l=E,M._i=p,M._f=y,M._strict=S,wM(M)}function He(p,y,E,S){return mw(p,y,E,S,!1)}var TM=R("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var p=He.apply(null,arguments);return this.isValid()&&p.isValid()?p<this?this:p:b()}),SM=R("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var p=He.apply(null,arguments);return this.isValid()&&p.isValid()?p>this?this:p:b()});function vw(p,y){var E,S;if(y.length===1&&e(y[0])&&(y=y[0]),!y.length)return He();for(E=y[0],S=1;S<y.length;++S)(!y[S].isValid()||y[S][p](E))&&(E=y[S]);return E}function OM(){var p=[].slice.call(arguments,0);return vw("isBefore",p)}function kM(){var p=[].slice.call(arguments,0);return vw("isAfter",p)}var PM=function(){return Date.now?Date.now():+new Date},Ca=["year","quarter","month","week","day","hour","minute","second","millisecond"];function AM(p){var y,E=!1,S,A=Ca.length;for(y in p)if(i(p,y)&&!(Je.call(Ca,y)!==-1&&(p[y]==null||!isNaN(p[y]))))return!1;for(S=0;S<A;++S)if(p[Ca[S]]){if(E)return!1;parseFloat(p[Ca[S]])!==me(p[Ca[S]])&&(E=!0)}return!0}function IM(){return this._isValid}function xM(){return Ir(NaN)}function hu(p){var y=oe(p),E=y.year||0,S=y.quarter||0,A=y.month||0,M=y.week||y.isoWeek||0,W=y.day||0,ue=y.hour||0,ye=y.minute||0,Le=y.second||0,It=y.millisecond||0;this._isValid=AM(y),this._milliseconds=+It+Le*1e3+ye*6e4+ue*1e3*60*60,this._days=+W+M*7,this._months=+A+S*3+E*12,this._data={},this._locale=En(),this._bubble()}function _u(p){return p instanceof hu}function Mm(p){return p<0?Math.round(-1*p)*-1:Math.round(p)}function RM(p,y,E){var S=Math.min(p.length,y.length),A=Math.abs(p.length-y.length),M=0,W;for(W=0;W<S;W++)(E&&p[W]!==y[W]||!E&&me(p[W])!==me(y[W]))&&M++;return M+A}function yw(p,y){Q(p,0,0,function(){var E=this.utcOffset(),S="+";return E<0&&(E=-E,S="-"),S+X(~~(E/60),2)+y+X(~~E%60,2)})}yw("Z",":"),yw("ZZ",""),re("Z",Ji),re("ZZ",Ji),Me(["Z","ZZ"],function(p,y,E){E._useUTC=!0,E._tzm=Cm(Ji,p)});var MM=/([\+\-]|\d\d)/gi;function Cm(p,y){var E=(y||"").match(p),S,A,M;return E===null?null:(S=E[E.length-1]||[],A=(S+"").match(MM)||["-",0,0],M=+(A[1]*60)+me(A[2]),M===0?0:A[0]==="+"?M:-M)}function jm(p,y){var E,S;return y._isUTC?(E=y.clone(),S=(k(p)||a(p)?p.valueOf():He(p).valueOf())-E.valueOf(),E._d.setTime(E._d.valueOf()+S),t.updateOffset(E,!1),E):He(p).local()}function Nm(p){return-Math.round(p._d.getTimezoneOffset())}t.updateOffset=function(){};function CM(p,y,E){var S=this._offset||0,A;if(!this.isValid())return p!=null?this:NaN;if(p!=null){if(typeof p=="string"){if(p=Cm(Ji,p),p===null)return this}else Math.abs(p)<16&&!E&&(p=p*60);return!this._isUTC&&y&&(A=Nm(this)),this._offset=p,this._isUTC=!0,A!=null&&this.add(A,"m"),S!==p&&(!y||this._changeInProgress?Ew(this,Ir(p-S,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?S:Nm(this)}function jM(p,y){return p!=null?(typeof p!="string"&&(p=-p),this.utcOffset(p,y),this):-this.utcOffset()}function NM(p){return this.utcOffset(0,p)}function DM(p){return this._isUTC&&(this.utcOffset(0,p),this._isUTC=!1,p&&this.subtract(Nm(this),"m")),this}function LM(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var p=Cm(R_,this._i);p!=null?this.utcOffset(p):this.utcOffset(0,!0)}return this}function qM(p){return this.isValid()?(p=p?He(p).utcOffset():0,(this.utcOffset()-p)%60===0):!1}function FM(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function WM(){if(!c(this._isDSTShifted))return this._isDSTShifted;var p={},y;return T(p,this),p=_w(p),p._a?(y=p._isUTC?f(p._a):He(p._a),this._isDSTShifted=this.isValid()&&RM(p._a,y.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function UM(){return this.isValid()?!this._isUTC:!1}function $M(){return this.isValid()?this._isUTC:!1}function bw(){return this.isValid()?this._isUTC&&this._offset===0:!1}var BM=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,HM=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ir(p,y){var E=p,S=null,A,M,W;return _u(p)?E={ms:p._milliseconds,d:p._days,M:p._months}:u(p)||!isNaN(+p)?(E={},y?E[y]=+p:E.milliseconds=+p):(S=BM.exec(p))?(A=S[1]==="-"?-1:1,E={y:0,d:me(S[sr])*A,h:me(S[et])*A,m:me(S[zt])*A,s:me(S[Or])*A,ms:me(Mm(S[wn]*1e3))*A}):(S=HM.exec(p))?(A=S[1]==="-"?-1:1,E={y:oi(S[2],A),M:oi(S[3],A),w:oi(S[4],A),d:oi(S[5],A),h:oi(S[6],A),m:oi(S[7],A),s:oi(S[8],A)}):E==null?E={}:typeof E=="object"&&("from"in E||"to"in E)&&(W=VM(He(E.from),He(E.to)),E={},E.ms=W.milliseconds,E.M=W.months),M=new hu(E),_u(p)&&i(p,"_locale")&&(M._locale=p._locale),_u(p)&&i(p,"_isValid")&&(M._isValid=p._isValid),M}Ir.fn=hu.prototype,Ir.invalid=xM;function oi(p,y){var E=p&&parseFloat(p.replace(",","."));return(isNaN(E)?0:E)*y}function gw(p,y){var E={};return E.months=y.month()-p.month()+(y.year()-p.year())*12,p.clone().add(E.months,"M").isAfter(y)&&--E.months,E.milliseconds=+y-+p.clone().add(E.months,"M"),E}function VM(p,y){var E;return p.isValid()&&y.isValid()?(y=jm(y,p),p.isBefore(y)?E=gw(p,y):(E=gw(y,p),E.milliseconds=-E.milliseconds,E.months=-E.months),E):{milliseconds:0,months:0}}function ww(p,y){return function(E,S){var A,M;return S!==null&&!isNaN(+S)&&(j(y,"moment()."+y+"(period, number) is deprecated. Please use moment()."+y+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),M=E,E=S,S=M),A=Ir(E,S),Ew(this,A,p),this}}function Ew(p,y,E,S){var A=y._milliseconds,M=Mm(y._days),W=Mm(y._months);p.isValid()&&(S=S??!0,W&&nu(p,ir(p,"Month")+W*E),M&&Yr(p,"Date",ir(p,"Date")+M*E),A&&p._d.setTime(p._d.valueOf()+A*E),S&&t.updateOffset(p,M||W))}var zM=ww(1,"add"),YM=ww(-1,"subtract");function Tw(p){return typeof p=="string"||p instanceof String}function KM(p){return k(p)||a(p)||Tw(p)||u(p)||GM(p)||JM(p)||p===null||p===void 0}function JM(p){var y=n(p)&&!s(p),E=!1,S=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],A,M,W=S.length;for(A=0;A<W;A+=1)M=S[A],E=E||i(p,M);return y&&E}function GM(p){var y=e(p),E=!1;return y&&(E=p.filter(function(S){return!u(S)&&Tw(p)}).length===0),y&&E}function XM(p){var y=n(p)&&!s(p),E=!1,S=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],A,M;for(A=0;A<S.length;A+=1)M=S[A],E=E||i(p,M);return y&&E}function ZM(p,y){var E=p.diff(y,"days",!0);return E<-6?"sameElse":E<-1?"lastWeek":E<0?"lastDay":E<1?"sameDay":E<2?"nextDay":E<7?"nextWeek":"sameElse"}function QM(p,y){arguments.length===1&&(arguments[0]?KM(arguments[0])?(p=arguments[0],y=void 0):XM(arguments[0])&&(y=arguments[0],p=void 0):(p=void 0,y=void 0));var E=p||He(),S=jm(E,this).startOf("day"),A=t.calendarFormat(this,S)||"sameElse",M=y&&(L(y[A])?y[A].call(this,E):y[A]);return this.format(M||this.localeData().calendar(A,this,He(E)))}function e1(){return new P(this)}function t1(p,y){var E=k(p)?p:He(p);return this.isValid()&&E.isValid()?(y=ce(y)||"millisecond",y==="millisecond"?this.valueOf()>E.valueOf():E.valueOf()<this.clone().startOf(y).valueOf()):!1}function r1(p,y){var E=k(p)?p:He(p);return this.isValid()&&E.isValid()?(y=ce(y)||"millisecond",y==="millisecond"?this.valueOf()<E.valueOf():this.clone().endOf(y).valueOf()<E.valueOf()):!1}function n1(p,y,E,S){var A=k(p)?p:He(p),M=k(y)?y:He(y);return this.isValid()&&A.isValid()&&M.isValid()?(S=S||"()",(S[0]==="("?this.isAfter(A,E):!this.isBefore(A,E))&&(S[1]===")"?this.isBefore(M,E):!this.isAfter(M,E))):!1}function o1(p,y){var E=k(p)?p:He(p),S;return this.isValid()&&E.isValid()?(y=ce(y)||"millisecond",y==="millisecond"?this.valueOf()===E.valueOf():(S=E.valueOf(),this.clone().startOf(y).valueOf()<=S&&S<=this.clone().endOf(y).valueOf())):!1}function i1(p,y){return this.isSame(p,y)||this.isAfter(p,y)}function s1(p,y){return this.isSame(p,y)||this.isBefore(p,y)}function a1(p,y,E){var S,A,M;if(!this.isValid())return NaN;if(S=jm(p,this),!S.isValid())return NaN;switch(A=(S.utcOffset()-this.utcOffset())*6e4,y=ce(y),y){case"year":M=mu(this,S)/12;break;case"month":M=mu(this,S);break;case"quarter":M=mu(this,S)/3;break;case"second":M=(this-S)/1e3;break;case"minute":M=(this-S)/6e4;break;case"hour":M=(this-S)/36e5;break;case"day":M=(this-S-A)/864e5;break;case"week":M=(this-S-A)/6048e5;break;default:M=this-S}return E?M:_t(M)}function mu(p,y){if(p.date()<y.date())return-mu(y,p);var E=(y.year()-p.year())*12+(y.month()-p.month()),S=p.clone().add(E,"months"),A,M;return y-S<0?(A=p.clone().add(E-1,"months"),M=(y-S)/(S-A)):(A=p.clone().add(E+1,"months"),M=(y-S)/(A-S)),-(E+M)||0}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function c1(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function u1(p){if(!this.isValid())return null;var y=p!==!0,E=y?this.clone().utc():this;return E.year()<0||E.year()>9999?nr(E,y?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):L(Date.prototype.toISOString)?y?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",nr(E,"Z")):nr(E,y?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function l1(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var p="moment",y="",E,S,A,M;return this.isLocal()||(p=this.utcOffset()===0?"moment.utc":"moment.parseZone",y="Z"),E="["+p+'("]',S=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",A="-MM-DD[T]HH:mm:ss.SSS",M=y+'[")]',this.format(E+S+A+M)}function d1(p){p||(p=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var y=nr(this,p);return this.localeData().postformat(y)}function f1(p,y){return this.isValid()&&(k(p)&&p.isValid()||He(p).isValid())?Ir({to:this,from:p}).locale(this.locale()).humanize(!y):this.localeData().invalidDate()}function p1(p){return this.from(He(),p)}function h1(p,y){return this.isValid()&&(k(p)&&p.isValid()||He(p).isValid())?Ir({from:this,to:p}).locale(this.locale()).humanize(!y):this.localeData().invalidDate()}function _1(p){return this.to(He(),p)}function Sw(p){var y;return p===void 0?this._locale._abbr:(y=En(p),y!=null&&(this._locale=y),this)}var Ow=R("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(p){return p===void 0?this.localeData():this.locale(p)});function kw(){return this._locale}var vu=1e3,es=60*vu,yu=60*es,Pw=(365*400+97)*24*yu;function ts(p,y){return(p%y+y)%y}function Aw(p,y,E){return p<100&&p>=0?new Date(p+400,y,E)-Pw:new Date(p,y,E).valueOf()}function Iw(p,y,E){return p<100&&p>=0?Date.UTC(p+400,y,E)-Pw:Date.UTC(p,y,E)}function m1(p){var y,E;if(p=ce(p),p===void 0||p==="millisecond"||!this.isValid())return this;switch(E=this._isUTC?Iw:Aw,p){case"year":y=E(this.year(),0,1);break;case"quarter":y=E(this.year(),this.month()-this.month()%3,1);break;case"month":y=E(this.year(),this.month(),1);break;case"week":y=E(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":y=E(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":y=E(this.year(),this.month(),this.date());break;case"hour":y=this._d.valueOf(),y-=ts(y+(this._isUTC?0:this.utcOffset()*es),yu);break;case"minute":y=this._d.valueOf(),y-=ts(y,es);break;case"second":y=this._d.valueOf(),y-=ts(y,vu);break}return this._d.setTime(y),t.updateOffset(this,!0),this}function v1(p){var y,E;if(p=ce(p),p===void 0||p==="millisecond"||!this.isValid())return this;switch(E=this._isUTC?Iw:Aw,p){case"year":y=E(this.year()+1,0,1)-1;break;case"quarter":y=E(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":y=E(this.year(),this.month()+1,1)-1;break;case"week":y=E(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":y=E(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":y=E(this.year(),this.month(),this.date()+1)-1;break;case"hour":y=this._d.valueOf(),y+=yu-ts(y+(this._isUTC?0:this.utcOffset()*es),yu)-1;break;case"minute":y=this._d.valueOf(),y+=es-ts(y,es)-1;break;case"second":y=this._d.valueOf(),y+=vu-ts(y,vu)-1;break}return this._d.setTime(y),t.updateOffset(this,!0),this}function y1(){return this._d.valueOf()-(this._offset||0)*6e4}function b1(){return Math.floor(this.valueOf()/1e3)}function g1(){return new Date(this.valueOf())}function w1(){var p=this;return[p.year(),p.month(),p.date(),p.hour(),p.minute(),p.second(),p.millisecond()]}function E1(){var p=this;return{years:p.year(),months:p.month(),date:p.date(),hours:p.hours(),minutes:p.minutes(),seconds:p.seconds(),milliseconds:p.milliseconds()}}function T1(){return this.isValid()?this.toISOString():null}function S1(){return v(this)}function O1(){return d({},_(this))}function k1(){return _(this).overflow}function P1(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Q("N",0,0,"eraAbbr"),Q("NN",0,0,"eraAbbr"),Q("NNN",0,0,"eraAbbr"),Q("NNNN",0,0,"eraName"),Q("NNNNN",0,0,"eraNarrow"),Q("y",["y",1],"yo","eraYear"),Q("y",["yy",2],0,"eraYear"),Q("y",["yyy",3],0,"eraYear"),Q("y",["yyyy",4],0,"eraYear"),re("N",Dm),re("NN",Dm),re("NNN",Dm),re("NNNN",q1),re("NNNNN",F1),Me(["N","NN","NNN","NNNN","NNNNN"],function(p,y,E,S){var A=E._locale.erasParse(p,S,E._strict);A?_(E).era=A:_(E).invalidEra=p}),re("y",Kn),re("yy",Kn),re("yyy",Kn),re("yyyy",Kn),re("yo",W1),Me(["y","yy","yyy","yyyy"],lt),Me(["yo"],function(p,y,E,S){var A;E._locale._eraYearOrdinalRegex&&(A=p.match(E._locale._eraYearOrdinalRegex)),E._locale.eraYearOrdinalParse?y[lt]=E._locale.eraYearOrdinalParse(p,A):y[lt]=parseInt(p,10)});function A1(p,y){var E,S,A,M=this._eras||En("en")._eras;for(E=0,S=M.length;E<S;++E){switch(typeof M[E].since){case"string":A=t(M[E].since).startOf("day"),M[E].since=A.valueOf();break}switch(typeof M[E].until){case"undefined":M[E].until=1/0;break;case"string":A=t(M[E].until).startOf("day").valueOf(),M[E].until=A.valueOf();break}}return M}function I1(p,y,E){var S,A,M=this.eras(),W,ue,ye;for(p=p.toUpperCase(),S=0,A=M.length;S<A;++S)if(W=M[S].name.toUpperCase(),ue=M[S].abbr.toUpperCase(),ye=M[S].narrow.toUpperCase(),E)switch(y){case"N":case"NN":case"NNN":if(ue===p)return M[S];break;case"NNNN":if(W===p)return M[S];break;case"NNNNN":if(ye===p)return M[S];break}else if([W,ue,ye].indexOf(p)>=0)return M[S]}function x1(p,y){var E=p.since<=p.until?1:-1;return y===void 0?t(p.since).year():t(p.since).year()+(y-p.offset)*E}function R1(){var p,y,E,S=this.localeData().eras();for(p=0,y=S.length;p<y;++p)if(E=this.clone().startOf("day").valueOf(),S[p].since<=E&&E<=S[p].until||S[p].until<=E&&E<=S[p].since)return S[p].name;return""}function M1(){var p,y,E,S=this.localeData().eras();for(p=0,y=S.length;p<y;++p)if(E=this.clone().startOf("day").valueOf(),S[p].since<=E&&E<=S[p].until||S[p].until<=E&&E<=S[p].since)return S[p].narrow;return""}function C1(){var p,y,E,S=this.localeData().eras();for(p=0,y=S.length;p<y;++p)if(E=this.clone().startOf("day").valueOf(),S[p].since<=E&&E<=S[p].until||S[p].until<=E&&E<=S[p].since)return S[p].abbr;return""}function j1(){var p,y,E,S,A=this.localeData().eras();for(p=0,y=A.length;p<y;++p)if(E=A[p].since<=A[p].until?1:-1,S=this.clone().startOf("day").valueOf(),A[p].since<=S&&S<=A[p].until||A[p].until<=S&&S<=A[p].since)return(this.year()-t(A[p].since).year())*E+A[p].offset;return this.year()}function N1(p){return i(this,"_erasNameRegex")||Lm.call(this),p?this._erasNameRegex:this._erasRegex}function D1(p){return i(this,"_erasAbbrRegex")||Lm.call(this),p?this._erasAbbrRegex:this._erasRegex}function L1(p){return i(this,"_erasNarrowRegex")||Lm.call(this),p?this._erasNarrowRegex:this._erasRegex}function Dm(p,y){return y.erasAbbrRegex(p)}function q1(p,y){return y.erasNameRegex(p)}function F1(p,y){return y.erasNarrowRegex(p)}function W1(p,y){return y._eraYearOrdinalRegex||Kn}function Lm(){var p=[],y=[],E=[],S=[],A,M,W=this.eras();for(A=0,M=W.length;A<M;++A)y.push(At(W[A].name)),p.push(At(W[A].abbr)),E.push(At(W[A].narrow)),S.push(At(W[A].name)),S.push(At(W[A].abbr)),S.push(At(W[A].narrow));this._erasRegex=new RegExp("^("+S.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+y.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+p.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+E.join("|")+")","i")}Q(0,["gg",2],0,function(){return this.weekYear()%100}),Q(0,["GG",2],0,function(){return this.isoWeekYear()%100});function bu(p,y){Q(0,[p,p.length],0,y)}bu("gggg","weekYear"),bu("ggggg","weekYear"),bu("GGGG","isoWeekYear"),bu("GGGGG","isoWeekYear"),G("weekYear","gg"),G("isoWeekYear","GG"),Be("weekYear",1),Be("isoWeekYear",1),re("G",Ki),re("g",Ki),re("GG",Re,Ze),re("gg",Re,Ze),re("GGGG",Aa,Tr),re("gggg",Aa,Tr),re("GGGGG",Yi,Ct),re("ggggg",Yi,Ct),Zo(["gggg","ggggg","GGGG","GGGGG"],function(p,y,E,S){y[S.substr(0,2)]=me(p)}),Zo(["gg","GG"],function(p,y,E,S){y[S]=t.parseTwoDigitYear(p)});function U1(p){return xw.call(this,p,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function $1(p){return xw.call(this,p,this.isoWeek(),this.isoWeekday(),1,4)}function B1(){return kr(this.year(),1,4)}function H1(){return kr(this.isoWeekYear(),1,4)}function V1(){var p=this.localeData()._week;return kr(this.year(),p.dow,p.doy)}function z1(){var p=this.localeData()._week;return kr(this.weekYear(),p.dow,p.doy)}function xw(p,y,E,S,A){var M;return p==null?ti(this,S,A).year:(M=kr(p,S,A),y>M&&(y=M),Y1.call(this,p,y,E,S,A))}function Y1(p,y,E,S,A){var M=au(p,y,E,S,A),W=ei(M.year,0,M.dayOfYear);return this.year(W.getUTCFullYear()),this.month(W.getUTCMonth()),this.date(W.getUTCDate()),this}Q("Q",0,"Qo","quarter"),G("quarter","Q"),Be("quarter",7),re("Q",it),Me("Q",function(p,y){y[Sr]=(me(p)-1)*3});function K1(p){return p==null?Math.ceil((this.month()+1)/3):this.month((p-1)*3+this.month()%3)}Q("D",["DD",2],"Do","date"),G("date","D"),Be("date",9),re("D",Re),re("DD",Re,Ze),re("Do",function(p,y){return p?y._dayOfMonthOrdinalParse||y._ordinalParse:y._dayOfMonthOrdinalParseLenient}),Me(["D","DD"],sr),Me("Do",function(p,y){y[sr]=me(p.match(Re)[0])});var Rw=Er("Date",!0);Q("DDD",["DDDD",3],"DDDo","dayOfYear"),G("dayOfYear","DDD"),Be("dayOfYear",4),re("DDD",Yn),re("DDDD",gn),Me(["DDD","DDDD"],function(p,y,E){E._dayOfYear=me(p)});function J1(p){var y=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return p==null?y:this.add(p-y,"d")}Q("m",["mm",2],0,"minute"),G("minute","m"),Be("minute",14),re("m",Re),re("mm",Re,Ze),Me(["m","mm"],zt);var G1=Er("Minutes",!1);Q("s",["ss",2],0,"second"),G("second","s"),Be("second",15),re("s",Re),re("ss",Re,Ze),Me(["s","ss"],Or);var X1=Er("Seconds",!1);Q("S",0,0,function(){return~~(this.millisecond()/100)}),Q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Q(0,["SSS",3],0,"millisecond"),Q(0,["SSSS",4],0,function(){return this.millisecond()*10}),Q(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Q(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Q(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Q(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Q(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),G("millisecond","ms"),Be("millisecond",16),re("S",Yn,it),re("SS",Yn,Ze),re("SSS",Yn,gn);var Gn,Mw;for(Gn="SSSS";Gn.length<=9;Gn+="S")re(Gn,Kn);function Z1(p,y){y[wn]=me(("0."+p)*1e3)}for(Gn="S";Gn.length<=9;Gn+="S")Me(Gn,Z1);Mw=Er("Milliseconds",!1),Q("z",0,0,"zoneAbbr"),Q("zz",0,0,"zoneName");function Q1(){return this._isUTC?"UTC":""}function eC(){return this._isUTC?"Coordinated Universal Time":""}var Y=P.prototype;Y.add=zM,Y.calendar=QM,Y.clone=e1,Y.diff=a1,Y.endOf=v1,Y.format=d1,Y.from=f1,Y.fromNow=p1,Y.to=h1,Y.toNow=_1,Y.get=Qe,Y.invalidAt=k1,Y.isAfter=t1,Y.isBefore=r1,Y.isBetween=n1,Y.isSame=o1,Y.isSameOrAfter=i1,Y.isSameOrBefore=s1,Y.isValid=S1,Y.lang=Ow,Y.locale=Sw,Y.localeData=kw,Y.max=SM,Y.min=TM,Y.parsingFlags=O1,Y.set=Te,Y.startOf=m1,Y.subtract=YM,Y.toArray=w1,Y.toObject=E1,Y.toDate=g1,Y.toISOString=u1,Y.inspect=l1,typeof Symbol<"u"&&Symbol.for!=null&&(Y[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Y.toJSON=T1,Y.toString=c1,Y.unix=b1,Y.valueOf=y1,Y.creationData=P1,Y.eraName=R1,Y.eraNarrow=M1,Y.eraAbbr=C1,Y.eraYear=j1,Y.year=su,Y.isLeapYear=J_,Y.weekYear=U1,Y.isoWeekYear=$1,Y.quarter=Y.quarters=K1,Y.month=ou,Y.daysInMonth=z_,Y.week=Y.weeks=tm,Y.isoWeek=Y.isoWeeks=rm,Y.weeksInYear=V1,Y.weeksInWeekYear=z1,Y.isoWeeksInYear=B1,Y.isoWeeksInISOWeekYear=H1,Y.date=Rw,Y.day=Y.days=_m,Y.weekday=mm,Y.isoWeekday=vm,Y.dayOfYear=J1,Y.hour=Y.hours=Sm,Y.minute=Y.minutes=G1,Y.second=Y.seconds=X1,Y.millisecond=Y.milliseconds=Mw,Y.utcOffset=CM,Y.utc=NM,Y.local=DM,Y.parseZone=LM,Y.hasAlignedHourOffset=qM,Y.isDST=FM,Y.isLocal=UM,Y.isUtcOffset=$M,Y.isUtc=bw,Y.isUTC=bw,Y.zoneAbbr=Q1,Y.zoneName=eC,Y.dates=R("dates accessor is deprecated. Use date instead.",Rw),Y.months=R("months accessor is deprecated. Use month instead",ou),Y.years=R("years accessor is deprecated. Use year instead",su),Y.zone=R("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",jM),Y.isDSTShifted=R("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",WM);function tC(p){return He(p*1e3)}function rC(){return He.apply(null,arguments).parseZone()}function Cw(p){return p}var ke=q.prototype;ke.calendar=se,ke.longDateFormat=H,ke.invalidDate=ne,ke.ordinal=fe,ke.preparse=Cw,ke.postformat=Cw,ke.relativeTime=ae,ke.pastFuture=N,ke.set=D,ke.eras=A1,ke.erasParse=I1,ke.erasConvertYear=x1,ke.erasAbbrRegex=D1,ke.erasNameRegex=N1,ke.erasNarrowRegex=L1,ke.months=$_,ke.monthsShort=B_,ke.monthsParse=V_,ke.monthsRegex=K_,ke.monthsShortRegex=Y_,ke.week=X_,ke.firstDayOfYear=em,ke.firstDayOfWeek=Q_,ke.weekdays=lm,ke.weekdaysMin=fm,ke.weekdaysShort=dm,ke.weekdaysParse=hm,ke.weekdaysRegex=ym,ke.weekdaysShortRegex=bm,ke.weekdaysMinRegex=gm,ke.isPM=Em,ke.meridiem=Om;function gu(p,y,E,S){var A=En(),M=f().set(S,y);return A[E](M,p)}function jw(p,y,E){if(u(p)&&(y=p,p=void 0),p=p||"",y!=null)return gu(p,y,E,"month");var S,A=[];for(S=0;S<12;S++)A[S]=gu(p,S,E,"month");return A}function qm(p,y,E,S){typeof p=="boolean"?(u(y)&&(E=y,y=void 0),y=y||""):(y=p,E=y,p=!1,u(y)&&(E=y,y=void 0),y=y||"");var A=En(),M=p?A._week.dow:0,W,ue=[];if(E!=null)return gu(y,(E+M)%7,S,"day");for(W=0;W<7;W++)ue[W]=gu(y,(W+M)%7,S,"day");return ue}function nC(p,y){return jw(p,y,"months")}function oC(p,y){return jw(p,y,"monthsShort")}function iC(p,y,E){return qm(p,y,E,"weekdays")}function sC(p,y,E){return qm(p,y,E,"weekdaysShort")}function aC(p,y,E){return qm(p,y,E,"weekdaysMin")}dt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(p){var y=p%10,E=me(p%100/10)===1?"th":y===1?"st":y===2?"nd":y===3?"rd":"th";return p+E}}),t.lang=R("moment.lang is deprecated. Use moment.locale instead.",dt),t.langData=R("moment.langData is deprecated. Use moment.localeData instead.",En);var Tn=Math.abs;function cC(){var p=this._data;return this._milliseconds=Tn(this._milliseconds),this._days=Tn(this._days),this._months=Tn(this._months),p.milliseconds=Tn(p.milliseconds),p.seconds=Tn(p.seconds),p.minutes=Tn(p.minutes),p.hours=Tn(p.hours),p.months=Tn(p.months),p.years=Tn(p.years),this}function Nw(p,y,E,S){var A=Ir(y,E);return p._milliseconds+=S*A._milliseconds,p._days+=S*A._days,p._months+=S*A._months,p._bubble()}function uC(p,y){return Nw(this,p,y,1)}function lC(p,y){return Nw(this,p,y,-1)}function Dw(p){return p<0?Math.floor(p):Math.ceil(p)}function dC(){var p=this._milliseconds,y=this._days,E=this._months,S=this._data,A,M,W,ue,ye;return p>=0&&y>=0&&E>=0||p<=0&&y<=0&&E<=0||(p+=Dw(Fm(E)+y)*864e5,y=0,E=0),S.milliseconds=p%1e3,A=_t(p/1e3),S.seconds=A%60,M=_t(A/60),S.minutes=M%60,W=_t(M/60),S.hours=W%24,y+=_t(W/24),ye=_t(Lw(y)),E+=ye,y-=Dw(Fm(ye)),ue=_t(E/12),E%=12,S.days=y,S.months=E,S.years=ue,this}function Lw(p){return p*4800/146097}function Fm(p){return p*146097/4800}function fC(p){if(!this.isValid())return NaN;var y,E,S=this._milliseconds;if(p=ce(p),p==="month"||p==="quarter"||p==="year")switch(y=this._days+S/864e5,E=this._months+Lw(y),p){case"month":return E;case"quarter":return E/3;case"year":return E/12}else switch(y=this._days+Math.round(Fm(this._months)),p){case"week":return y/7+S/6048e5;case"day":return y+S/864e5;case"hour":return y*24+S/36e5;case"minute":return y*1440+S/6e4;case"second":return y*86400+S/1e3;case"millisecond":return Math.floor(y*864e5)+S;default:throw new Error("Unknown unit "+p)}}function pC(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+me(this._months/12)*31536e6:NaN}function Sn(p){return function(){return this.as(p)}}var hC=Sn("ms"),_C=Sn("s"),mC=Sn("m"),vC=Sn("h"),yC=Sn("d"),bC=Sn("w"),gC=Sn("M"),wC=Sn("Q"),EC=Sn("y");function TC(){return Ir(this)}function SC(p){return p=ce(p),this.isValid()?this[p+"s"]():NaN}function ii(p){return function(){return this.isValid()?this._data[p]:NaN}}var OC=ii("milliseconds"),kC=ii("seconds"),PC=ii("minutes"),AC=ii("hours"),IC=ii("days"),xC=ii("months"),RC=ii("years");function MC(){return _t(this.days()/7)}var On=Math.round,rs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function CC(p,y,E,S,A){return A.relativeTime(y||1,!!E,p,S)}function jC(p,y,E,S){var A=Ir(p).abs(),M=On(A.as("s")),W=On(A.as("m")),ue=On(A.as("h")),ye=On(A.as("d")),Le=On(A.as("M")),It=On(A.as("w")),kn=On(A.as("y")),Xn=M<=E.ss&&["s",M]||M<E.s&&["ss",M]||W<=1&&["m"]||W<E.m&&["mm",W]||ue<=1&&["h"]||ue<E.h&&["hh",ue]||ye<=1&&["d"]||ye<E.d&&["dd",ye];return E.w!=null&&(Xn=Xn||It<=1&&["w"]||It<E.w&&["ww",It]),Xn=Xn||Le<=1&&["M"]||Le<E.M&&["MM",Le]||kn<=1&&["y"]||["yy",kn],Xn[2]=y,Xn[3]=+p>0,Xn[4]=S,CC.apply(null,Xn)}function NC(p){return p===void 0?On:typeof p=="function"?(On=p,!0):!1}function DC(p,y){return rs[p]===void 0?!1:y===void 0?rs[p]:(rs[p]=y,p==="s"&&(rs.ss=y-1),!0)}function LC(p,y){if(!this.isValid())return this.localeData().invalidDate();var E=!1,S=rs,A,M;return typeof p=="object"&&(y=p,p=!1),typeof p=="boolean"&&(E=p),typeof y=="object"&&(S=Object.assign({},rs,y),y.s!=null&&y.ss==null&&(S.ss=y.s-1)),A=this.localeData(),M=jC(this,!E,S,A),E&&(M=A.pastFuture(+this,M)),A.postformat(M)}var Wm=Math.abs;function ns(p){return(p>0)-(p<0)||+p}function wu(){if(!this.isValid())return this.localeData().invalidDate();var p=Wm(this._milliseconds)/1e3,y=Wm(this._days),E=Wm(this._months),S,A,M,W,ue=this.asSeconds(),ye,Le,It,kn;return ue?(S=_t(p/60),A=_t(S/60),p%=60,S%=60,M=_t(E/12),E%=12,W=p?p.toFixed(3).replace(/\.?0+$/,""):"",ye=ue<0?"-":"",Le=ns(this._months)!==ns(ue)?"-":"",It=ns(this._days)!==ns(ue)?"-":"",kn=ns(this._milliseconds)!==ns(ue)?"-":"",ye+"P"+(M?Le+M+"Y":"")+(E?Le+E+"M":"")+(y?It+y+"D":"")+(A||S||p?"T":"")+(A?kn+A+"H":"")+(S?kn+S+"M":"")+(p?kn+W+"S":"")):"P0D"}var Se=hu.prototype;Se.isValid=IM,Se.abs=cC,Se.add=uC,Se.subtract=lC,Se.as=fC,Se.asMilliseconds=hC,Se.asSeconds=_C,Se.asMinutes=mC,Se.asHours=vC,Se.asDays=yC,Se.asWeeks=bC,Se.asMonths=gC,Se.asQuarters=wC,Se.asYears=EC,Se.valueOf=pC,Se._bubble=dC,Se.clone=TC,Se.get=SC,Se.milliseconds=OC,Se.seconds=kC,Se.minutes=PC,Se.hours=AC,Se.days=IC,Se.weeks=MC,Se.months=xC,Se.years=RC,Se.humanize=LC,Se.toISOString=wu,Se.toString=wu,Se.toJSON=wu,Se.locale=Sw,Se.localeData=kw,Se.toIsoString=R("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",wu),Se.lang=Ow,Q("X",0,0,"unix"),Q("x",0,0,"valueOf"),re("x",Ki),re("X",M_),Me("X",function(p,y,E){E._d=new Date(parseFloat(p)*1e3)}),Me("x",function(p,y,E){E._d=new Date(me(p))});return t.version="2.29.4",r(He),t.fn=Y,t.min=OM,t.max=kM,t.now=PM,t.utc=f,t.unix=tC,t.months=nC,t.isDate=a,t.locale=dt,t.invalid=b,t.duration=Ir,t.isMoment=k,t.weekdays=iC,t.parseZone=rC,t.localeData=En,t.isDuration=_u,t.monthsShort=oC,t.weekdaysMin=aC,t.defineLocale=Ar,t.updateLocale=rM,t.locales=nM,t.weekdaysShort=sC,t.normalizeUnits=ce,t.relativeTimeRounding=NC,t.relativeTimeThreshold=DC,t.calendarFormat=ZM,t.prototype=Y,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t})});var Fv=O(_s=>{"use strict";var WL=_s&&_s.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(_s,"__esModule",{value:!0});_s.DateFormatUtils=void 0;var qv=WL(Lv()),yi=fr(),Qr=class{static extractOffsetFromDateExpression(t,r){if(!t||typeof t!="string")return null;try{let e=t.match(/new\s+Date\s*\(\s*["']([^"']+)["']\s*\)/);if(!e)return null;let i=e[1].match(new RegExp(`([+-]\\d{2}:\\d{2})|${yi.UTC_TIMEZONE_INDICATOR}$`));return i?i[0]===yi.UTC_TIMEZONE_INDICATOR?yi.DEFAULT_TIMEZONE_OFFSET:i[0]:null}catch(e){return r.error(`${this.LOG_PREFIX}Failed to extract offset from date expression "${t}": ${e.message}.`),null}}static formatDate(t,r,e,n){if(!t||typeof t!="string")return n.warn(`${this.LOG_PREFIX}UTC string must be a non-empty string. Cannot format date.`),t||"";if(!r||typeof r!="string")return n.warn(`${this.LOG_PREFIX}Mask must be a non-empty string. Returning original UTC string: ${t}`),t;try{let i=this.convertLDMLToMomentFormat(r),s;return this.isUTCMask(r)?s=qv.default.utc(t).format(i):e?s=qv.default.utc(t).utcOffset(e).format(i):s=qv.default.utc(t).format(i),s=s.replace(/\[Z\]/g,"Z"),s}catch(i){return n.error(`${this.LOG_PREFIX}Failed to format date "${t}" with mask "${r}": ${i.message}. Returning original UTC string.`),t}}static convertLDMLToMomentFormat(t){let r=t;return r=r.replace(/XXX/g,this.PLACEHOLDER_XXX),r=r.replace(/EEEE/g,this.PLACEHOLDER_EEEE),r=r.replace(/EEE/g,this.PLACEHOLDER_EEE),r=r.replace(/EE/g,this.PLACEHOLDER_EE),r=r.replace(/E/g,this.PLACEHOLDER_E),r=r.replace(/'([^']*)'/g,(e,n)=>n===yi.UTC_TIMEZONE_INDICATOR?this.PLACEHOLDER_LITERAL_Z:`[${n}]`),r=r.replace(new RegExp(yi.UTC_TIMEZONE_INDICATOR,"g"),this.PLACEHOLDER_LITERAL_Z),r=r.replace(/yyyy/g,"YYYY"),r=r.replace(/yy/g,"YY"),r=r.replace(/dd/gi,"DD"),r=r.replace(/\b[dD]\b/g,"D"),r=r.replace(/sss/g,"ss"),r=r.replace(new RegExp(this.PLACEHOLDER_EEEE,"g"),"dddd"),r=r.replace(new RegExp(this.PLACEHOLDER_EEE,"g"),"ddd"),r=r.replace(new RegExp(this.PLACEHOLDER_EE,"g"),"ddd"),r=r.replace(new RegExp(this.PLACEHOLDER_E,"g"),"ddd"),r=r.replace(new RegExp(this.PLACEHOLDER_XXX,"g"),"Z"),r=r.replace(new RegExp(this.PLACEHOLDER_LITERAL_Z,"g"),"[Z]"),r}static isUTCMask(t){return!t||typeof t!="string"?!1:t.endsWith(yi.UTC_TIMEZONE_INDICATOR)||t.endsWith(`'${yi.UTC_TIMEZONE_INDICATOR}'`)}};_s.DateFormatUtils=Qr;Qr.PLACEHOLDER_XXX="\uE000";Qr.PLACEHOLDER_EEEE="\uE001";Qr.PLACEHOLDER_EEE="\uE002";Qr.PLACEHOLDER_EE="\uE003";Qr.PLACEHOLDER_E="\uE004";Qr.PLACEHOLDER_LITERAL_Z="\uE005";Qr.LOG_PREFIX="DateFormatUtils: "});var Wv=O(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.isWorkflowError=$T;hl.toErrorString=$L;var UL=Oe();function $T(o){return!!o&&typeof o=="object"&&"name"in o&&"title"in o&&"detail"in o&&"type"in o&&"status"in o}function $L(o){let t="Unknown error";if($T(o)){let r=`${o.name}: ${o.title}`,e="instance"in o&&o.instance?`. ${o.instance}`:"",n="detail"in o&&o.detail?`. ${o.detail}`:"";t=`${r}${e}${n}`}else if(o&&typeof o=="object"&&"name"in o&&"message"in o){let r=`${o.name}: ${o.message}`,e="stack"in o&&o.stack?`. ${o.stack}`:"";t=`${r}${e}`}else t=(0,UL.getErrorMessage)(o);return t}});var vs=O(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.GenericUtils=en.BINARY_DATA_PLACEHOLDER=void 0;en.findBlobAttachmentRefs=BL;en.replaceBinaryWithPlaceholder=BT;en.redactSensitivePatches=HL;var ms=Oe();function BL(o,t=8){let r=[],e=new WeakSet,n=(i,s)=>{if(!(s>t)&&!(!i||typeof i!="object")&&!e.has(i)){if(e.add(i),(0,ms.isBlobFileReference)(i)){r.push({ID:i.ID,FullName:i.FullName,MimeType:i.MimeType});return}if(Array.isArray(i)){for(let c of i)n(c,s+1);return}for(let c of Object.values(i))n(c,s+1)}};return n(o,0),r}en.BINARY_DATA_PLACEHOLDER="[Binary Data]";function BT(o,t=8){let r=new WeakSet,e=(n,i)=>{if(n instanceof Uint8Array)return en.BINARY_DATA_PLACEHOLDER;if(i>=t||!n||typeof n!="object"||r.has(n))return n;if(r.add(n),Array.isArray(n)){let u=!1,a=n.map(l=>{let d=e(l,i+1);return d!==l&&(u=!0),d});return u?a:n}let s=!1,c={};for(let[u,a]of Object.entries(n)){let l=e(a,i+1);l!==a&&(s=!0),c[u]=l}return s?c:n};return e(o,0)}function HL(o){if(!o?.patches?.length)return o;let t=o.patches.map(r=>{if(!r||typeof r!="object")return r;let e=r,n=typeof e.path=="string"?e.path:"",i=n.split("/").slice(1).map(u=>u.replace(/~1/g,"/").replace(/~0/g,"~")),s=i[i.length-1]??"",c=i.slice(0,-1).findIndex(ms.isSensitiveKey);return c!==-1?{op:"add",path:n.split("/",c+2).join("/"),value:ms.REDACTED_STRING}:"value"in e?(0,ms.isSensitiveKey)(s)?{...e,value:ms.REDACTED_STRING}:{...e,value:(0,ms.redactSensitiveValues)(BT(e.value))}:r});return{...o,patches:t}}var Uv=class{static safelyExtractProperty(t,r){if(t&&typeof t=="object"&&t!==null&&!Array.isArray(t)){let e=t;if(r in e)return e[r]}}static parseNumericValue(t){if(typeof t=="number")return isNaN(t)?void 0:t;if(typeof t=="string"){let r=t.trim();if(r==="")return;let e=Number(r);return isNaN(e)?void 0:e}}};en.GenericUtils=Uv});var $v=O(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.InternalServiceDetector=void 0;var _l=class{static isInternalServiceUrl(t){if(!t)return!1;try{let r=new URL(t);return this.INTERNAL_DOMAINS.some(e=>r.hostname.endsWith(e))}catch{return!1}}};ml.InternalServiceDetector=_l;_l.INTERNAL_DOMAINS=[".uipath.com",".uipath.io"]});var za=O(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.ResourceOverrideResolver=void 0;var tn=fr(),Bv=class{static getOverriddenValue(t,r,e,n,i,s){if(!t.resourceOverwrites||Object.keys(t.resourceOverwrites).length===0)return r.info(`Resource overwrites is empty, returning defaultResourceKey: ${i}`),i;let c=l=>t.resourceOverwrites[l]?.[n];if(s&&s.trim()!==""){let l=`${e}.${s}`,d=c(l);if(d)return d}let u=`${e}.${i}`,a=c(u);return a||(r.info(`No resource overrides found, returning defaultResourceKey: ${i}`),i)}static getOrchestratorOverrides(t,r,e,n,i){let s=this.getResourcePrefix(e);if(!s)return;let c;if(e.includes(tn.ORCHESTRATOR_JOBS_ENDPOINT)){if(c=i?.ReleaseName,!c){r.info("No ReleaseName found in body parameters for Jobs endpoint orchestrator context resolution");return}}else if(c=n.id,!c){r.info("No resource path parameter found for orchestrator context resolution");return}let u=`${s}.${c}`,a=t.resourceOverwrites?.[u],l;return a?l={resourceName:a.name,folderKey:a.folderKey,folderPath:a.folderPath}:(l={folderKey:t.processConfig?.folderKey},r.info(`Fallback orchestrator context: ${JSON.stringify(l)}`)),e.includes(tn.ORCHESTRATOR_JOBS_ENDPOINT)&&(l.source=tn.API_WORKFLOW_SOURCE),l}static getSolutionResourceOverrides(t,r,e,n={},i=[]){let s=t.resourceOverwrites;if(!s||Object.keys(s).length===0)return;let c={};for(let u of i){let l=(u.location==="query"?e:n)?.[u.name];if(!l)continue;let d=this.findSolutionResourceOverride(s,u.resourceKind,l);d&&(c[u.name]={name:d.name,folderKey:d.folderKey,location:u.location})}if(Object.keys(c).length===0){r.info("No solution-resource field matched a configured resource override");return}return c}static findSolutionResourceOverride(t,r,e){let n=t[`${r}.${e}`];if(n)return n;let i=r.toLowerCase(),s=`.${e}`;return Object.entries(t).find(([c])=>c.endsWith(s)&&c.slice(0,-s.length).toLowerCase()===i)?.[1]}static getPropertyBindings(t,r,e){if(!t.resourceOverwrites||Object.keys(t.resourceOverwrites).length===0){r.info(`Resource overwrites is empty, no property bindings for eventType: ${e}`);return}let n=`Property.${e}`,i=t.resourceOverwrites[n];if(i&&typeof i=="object")return i;r.info(`No property bindings found for eventType: ${e}`)}static getResourcePrefix(t){if(t.includes(tn.ORCHESTRATOR_ASSETS_ENDPOINT)||t.includes(tn.ORCHESTRATOR_CREDENTIALS_ENDPOINT))return tn.ORCHESTRATOR_ASSET_RESOURCE_PREFIX;if(t.includes(tn.ORCHESTRATOR_QUEUE_ITEMS_ENDPOINT))return tn.ORCHESTRATOR_QUEUE_ITEMS_RESOURCE_PREFIX;if(t.includes(tn.ORCHESTRATOR_JOBS_ENDPOINT))return tn.ORCHESTRATOR_JOB_RESOURCE_PREFIX}};vl.ResourceOverrideResolver=Bv});var zv=O(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.WorkflowErrorBuilder=void 0;var VL=Oe(),Hv=qe(),zL=Wv(),Vv=class{setType(t){return this.type=t,this}setStatus(t){return this.status=t,this}setInstance(t){return this.instance=t,this}setTitle(t){return this.title=this.title?`${t}: ${this.title}`:t,this}setDetail(t){return this.detail=t,this}setData(t){return this.data=t,this}setOriginatingTaskName(t){return this.originatingTaskName||(this.originatingTaskName=t),this}fromWorkflowError(t){return this.title=t.title,this.detail=t.detail,this.status=t.status,this.type=t.type,this.instance=t.instance,this.data=t.data?t.data:void 0,this.originatingTaskName=t.originatingTaskName,this}fromError(t){return(0,zL.isWorkflowError)(t)?(this.title=t.title,this.detail=t.detail,this.status=t.status,this.type=t.type,this.instance=t.instance,this.data=t.data?t.data:void 0,this.originatingTaskName=t.originatingTaskName,this):(this.title=(0,VL.getErrorMessage)(t),this.detail=t instanceof Error?`${t.message}. ${t.stack}`:"",this.status=Hv.WorkflowErrorStatus.INTERNAL_SERVER_ERROR,this.type=Hv.WorkflowErrorType.RUNTIME_ERROR,this.instance="",this)}build(){return new Hv.WorkflowError(this.title,this.status,this.type,this.instance,this.detail,this.data,this.originatingTaskName)}};yl.WorkflowErrorBuilder=Vv});var KT=O(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.DEFAULT_MAX_RETRY_AFTER_MS=ze.DEFAULT_EXPONENTIAL_MULTIPLIER=ze.DEFAULT_MAX_RETRY_ATTEMPTS=void 0;ze.toDurationMs=Gt;ze.resolveRetryPolicy=KL;ze.validateRetryPolicy=Yv;ze.getRetryLimits=JL;ze.toBackoffRetryConfig=zT;ze.getMaxDelayMs=Kv;ze.computeBaseDelayMs=Jv;ze.applyJitterMs=Ka;ze.computeRetryDelayMs=GL;ze.getRetryAfterDelayMs=YT;ze.resolveRetryDelayMs=XL;ze.matchesErrorFilter=ZL;var fo=Oe(),bl=tt(),gl=qe(),VT=zv();ze.DEFAULT_MAX_RETRY_ATTEMPTS=3;ze.DEFAULT_EXPONENTIAL_MULTIPLIER=2;ze.DEFAULT_MAX_RETRY_AFTER_MS=5*60*1e3;var YL=new Set(["days","hours","minutes","seconds","milliseconds"]),HT=Object.values(fo.BackoffStrategy);function Gt(o){if(o==null)return;let t;if(typeof o=="number"){if(!Number.isFinite(o)||o<0)throw new Error(`Invalid duration: ${String(o)} (expected a finite, non-negative number of milliseconds)`);t=o}else if(typeof o=="string")t=fo.TimeDurationUtils.parseIso8601Duration(o);else if(typeof o=="object"&&!Array.isArray(o)){let r=Object.entries(o);if(r.length===0)throw new Error("Invalid duration: {} (at least one of days, hours, minutes, seconds, milliseconds is required)");for(let[e,n]of r){if(!YL.has(e))throw new Error(`Invalid duration component '${e}' (expected one of days, hours, minutes, seconds, milliseconds)`);if(typeof n!="number"||!Number.isFinite(n)||n<0)throw new Error(`Invalid duration component '${e}': ${String(n)} (expected a finite, non-negative number)`)}t=fo.TimeDurationUtils.parseDurationObject(o)}else throw new Error(`Invalid duration format: ${String(o)}`);return t}function KL(o,t,r){if(typeof o!="string")return Yv(o,r),o;let e=t?.use?.retries,n=e&&Object.prototype.hasOwnProperty.call(e,o)?e[o]:void 0;if(!ys(n))throw new VT.WorkflowErrorBuilder().setType(gl.WorkflowErrorType.CONFIGURATION_ERROR).setStatus(gl.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,bl.t)(bl.ErrorKeys.RETRY_POLICY_NOT_FOUND,{policyName:o,taskName:r})).setInstance("TryCatchTaskHandler").setData({taskName:r,policyName:o}).build();return Yv(n,r),n}function Yv(o,t){if(!ys(o))throw lo(t,`retry policy must be an object, got ${Ya(o)}`);let r=(a,l)=>{try{a()}catch(d){throw lo(t,`${l}: ${d instanceof Error?d.message:String(d)}`)}};r(()=>Gt(o.delay),"delay");for(let a of["when","exceptWhen"]){let l=o[a];if(l!==void 0&&typeof l!="string")throw lo(t,`${a} must be an expression string, got ${Ya(l)}`)}let e=(a,l)=>{if(a!==void 0){if(!ys(a))throw lo(t,`${l} must be an object, got ${Ya(a)}`);return a}},n=e(o.limit,"limit"),i=e(n?.attempt,"limit.attempt");r(()=>Gt(n?.duration),"limit.duration"),r(()=>Gt(i?.duration),"limit.attempt.duration");let s=i?.count;if(s!==void 0&&(typeof s!="number"||!Number.isInteger(s)||s<0))throw lo(t,`limit.attempt.count must be a non-negative integer, got ${Ya(s)}`);let c=e(o.jitter,"jitter");if(c){let a=0,l=0;if(r(()=>{a=Gt(c.from)??0},"jitter.from"),r(()=>{l=Gt(c.to)??0},"jitter.to"),a>l)throw lo(t,"jitter.from must be less than or equal to jitter.to")}let u=e(o.backoff,"backoff");if(u){if(HT.filter(d=>d in u).length!==1)throw lo(t,`backoff must define exactly one of ${HT.join(", ")}`);e(u.constant,"backoff.constant"),e(u.linear,"backoff.linear");let l=e(u.exponential,"backoff.exponential");if(l){let d=l.multiplier;if(d!==void 0&&(typeof d!="number"||!Number.isFinite(d)||d<=0))throw lo(t,`backoff.exponential.multiplier must be a positive number, got ${Ya(d)}`);r(()=>Gt(l.maxDelay),"backoff.exponential.maxDelay")}}}function JL(o){return{maxAttempts:o.limit?.attempt?.count??ze.DEFAULT_MAX_RETRY_ATTEMPTS,maxDurationMs:Gt(o.limit?.duration)}}function zT(o){let t=o.backoff?.exponential,r=fo.BackoffStrategy.CONSTANT;return o.backoff?.linear!==void 0?r=fo.BackoffStrategy.LINEAR:t!==void 0&&(r=fo.BackoffStrategy.EXPONENTIAL),{statusCodes:[],maxRetries:o.limit?.attempt?.count??ze.DEFAULT_MAX_RETRY_ATTEMPTS,delayMs:Gt(o.delay)??0,backoff:{strategy:r,multiplier:t?.multiplier??ze.DEFAULT_EXPONENTIAL_MULTIPLIER,maxDelayMs:Gt(t?.maxDelay)}}}function Kv(o){return Gt(o.backoff?.exponential?.maxDelay)}function Jv(o,t){let r=Math.max(1,Math.floor(t)),e=fo.HttpRetryPolicy.calculateDelay(zT(o),r),n=Kv(o);return n!==void 0&&e>n?n:e}function Ka(o,t,r=Math.random){let e=t;if(o.jitter){let n=Gt(o.jitter.from)??0,i=Gt(o.jitter.to)??n;e+=n+r()*Math.max(0,i-n)}return Math.max(0,Math.round(e))}function GL(o,t,r=Math.random){return Ka(o,Jv(o,t),r)}function YT(o){let t=ys(o.data)?o.data.cause:void 0,r=ys(t)?t.headers:void 0;if(!ys(r))return;let e=fo.HttpRetryPolicy.extractRetryAfterDelay(r);return e!==void 0&&Number.isFinite(e)&&e>=0?e:void 0}function XL(o,t,r,e=Math.random){let n=Jv(o,t),i=YT(r);if(i===void 0)return{delayMs:Ka(o,n,e)};let s=Kv(o)??ze.DEFAULT_MAX_RETRY_AFTER_MS,c=Math.min(i,s);return c<=n?{delayMs:Ka(o,n,e)}:{delayMs:Ka(o,c,e),retryAfterMs:i,...i>s?{retryAfterCapMs:s}:{}}}function ZL(o,t){return t?!(t.type!==void 0&&t.type!==o.type||t.status!==void 0&&Number(t.status)!==Number(o.status)||t.instance!==void 0&&t.instance!==o.instance||t.title!==void 0&&t.title!==o.title||t.details!==void 0&&t.details!==o.detail):!0}function ys(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}function Ya(o){return o===null?"null":Array.isArray(o)?"an array":typeof o=="object"?"an object":`${typeof o} ${JSON.stringify(o)}`}function lo(o,t){return new VT.WorkflowErrorBuilder().setType(gl.WorkflowErrorType.CONFIGURATION_ERROR).setStatus(gl.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,bl.t)(bl.ErrorKeys.INVALID_RETRY_POLICY,{taskName:o,reason:t})).setInstance("TryCatchTaskHandler").setData({taskName:o,reason:t}).build()}});var JT=O(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.RetryUtils=void 0;var QL=Oe(),Gv=class{static getRetryDelays(t){return QL.HttpRetryPolicy.getRetryDelays(t)}};wl.RetryUtils=Gv});var Ce=O(Dt=>{"use strict";var eq=Dt&&Dt.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),po=Dt&&Dt.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&eq(t,o,r)};Object.defineProperty(Dt,"__esModule",{value:!0});po(Fv(),Dt);po(Wv(),Dt);po(vs(),Dt);po($v(),Dt);po(za(),Dt);po(KT(),Dt);po(JT(),Dt);po(zv(),Dt)});var GT=O(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.WorkflowResponse=bs.WorkflowJobStatus=void 0;var tq=Ce(),El;(function(o){o.Successful="Successful",o.Faulted="Faulted"})(El||(bs.WorkflowJobStatus=El={}));var Xv=class{constructor(t,r){this.errorMessage=null,this.status=t?El.Faulted:El.Successful,r==null?this.data=null:this.data=typeof r!="object"||Array.isArray(r)?{result:r}:r,t&&(this.errorMessage=r?(0,tq.toErrorString)(r):"The job was marked as failed.")}};bs.WorkflowResponse=Xv});var qe=O(at=>{"use strict";var rq=at&&at.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),Xt=at&&at.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&rq(t,o,r)};Object.defineProperty(at,"__esModule",{value:!0});Xt(oT(),at);Xt(sT(),at);Xt(xv(),at);Xt(AT(),at);Xt(IT(),at);Xt(RT(),at);Xt(al(),at);Xt(Mv(),at);Xt(qT(),at);Xt(FT(),at);Xt(WT(),at);Xt(Va(),at);Xt(GT(),at)});var Qv=O(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.AbstractExpressionHandler=void 0;var XT=fr(),Tl=tt(),ZT=qe(),nq=Ce(),Zv=class{constructor(){}static getInstance(){throw new Error("getInstance method must be implemented by subclasses")}async setVariables(t){await this.withErrorHandling(()=>this.setVariablesInternal(t,!1),`Error setting variables: ${JSON.stringify(t)}`)}async mergeVariableValues(t){await this.withErrorHandling(()=>this.setVariablesInternal(t,!0),`Error merging variable values: ${JSON.stringify(t)}`)}async deleteVariables(t){await this.withErrorHandling(()=>this.deleteVariablesInternal(t),`Error deleting variables: ${JSON.stringify(t)}`)}async setInputOutput(t,r){return await this.withErrorHandling(async()=>{let e;return r&&typeof r=="string"&&(e=this.toSanitizedExpression(r)),await this.setInputOutputInternal(t,e)},`Error setting input/output: ${r||"result value"}`)}async updateContext(t,r){await this.withErrorHandling(()=>this.updateWorkflowContextInternal(t,r),`Error evaluating and setting context: ${t}`)}async evaluateConditionExpression(t){return!!await this.withErrorHandling(async()=>!!await this.evaluateDataExpression(t),`Error evaluating condition expression: ${t}`)}async evaluateDataExpression(t){if(!t)return t;try{let r=new Map;if(this.collectExpressions(t,r),r.size===0)return t;let e=await this.evaluateSanitizedExpressionsInternal(new Set(r.values()));return this.buildResolvedObject(t,e,r)}catch(r){throw this.getWorkflowError(r,"Error evaluating data expression")}}async resolvePlaceHolder(t,r){try{let e=await this.evaluateDataExpression(t);if(typeof e!="string")throw new Error((0,Tl.t)(Tl.ErrorKeys.TEMPLATE_NON_STRING,{template:t,value:String(e)}));return/\{[^}]{1,100}\}/.test(e)?e.replace(/{([^}]{1,100})}/g,(i,s)=>r[s]!==void 0?String(r[s]):`{${s}}`):e}catch(e){throw this.getWorkflowError(e,"Error resolving placeholder in template string")}}registerHostFunction(t,r){}isExpressionString(t){if(!t||typeof t!="string")return!1;let r=t.trim();return r.startsWith(XT.EXPR_PREFIX)&&r.endsWith(XT.EXPR_SUFFIX)}toSanitizedExpression(t){if(!this.isExpressionString(t))return;let r=t.trim().slice(2,-1).trim();return r&&r.startsWith("{")&&r.endsWith("}")&&(r=`(${r})`),r}async withErrorHandling(t,r){try{return await t()}catch(e){throw this.getWorkflowError(e,r)}}getWorkflowError(t,r){return new nq.WorkflowErrorBuilder().fromError(t).setType(ZT.WorkflowErrorType.EXPRESSION_ERROR).setStatus(ZT.WorkflowErrorStatus.BAD_REQUEST).setTitle(r||(0,Tl.t)(Tl.ErrorKeys.EXPRESSION_ERROR)).build()}collectExpressions(t,r){if(!QT(t))if(typeof t=="string"){let e=this.toSanitizedExpression(t);e&&r.set(t,e)}else Array.isArray(t)?t.forEach(e=>this.collectExpressions(e,r)):typeof t=="object"&&t!==null&&Object.values(t).forEach(e=>this.collectExpressions(e,r))}buildResolvedObject(t,r,e){if(typeof t=="string"){let n=e.get(t);return n&&r.has(n)?r.get(n):t}else{if(Array.isArray(t))return t.map(n=>this.buildResolvedObject(n,r,e));if(QT(t))return t;if(typeof t=="object"&&t!==null){let n={};for(let[i,s]of Object.entries(t))n[i]=this.buildResolvedObject(s,r,e);return n}}return t}};Sl.AbstractExpressionHandler=Zv;function QT(o){return ArrayBuffer.isView(o)||o instanceof ArrayBuffer||typeof Blob<"u"&&o instanceof Blob}});var eS=O(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.HostCallGate=rn.MAX_CONCURRENT_HOST_CALLS=rn.MAX_HOST_CALLS_PER_SCOPE=void 0;rn.MAX_HOST_CALLS_PER_SCOPE=1e3;rn.MAX_CONCURRENT_HOST_CALLS=6;var ey=class{constructor(t=rn.MAX_HOST_CALLS_PER_SCOPE,r=rn.MAX_CONCURRENT_HOST_CALLS){this.maxCallsPerScope=t,this.maxConcurrent=r,this.callCount=0,this.inFlight=0,this.waiters=[]}get maxCalls(){return this.maxCallsPerScope}reset(){this.callCount=0;let t=this.waiters;this.waiters=[];for(let r of t)r.abort(new Error("Host call aborted: execution scope was reset."))}tryConsumeBudget(){return this.callCount>=this.maxCallsPerScope?!1:(this.callCount++,!0)}async acquire(){if(this.inFlight<this.maxConcurrent){this.inFlight++;return}await new Promise((t,r)=>this.waiters.push({grant:t,abort:r}))}release(){let t=this.waiters.shift();t?t.grant():this.inFlight--}};rn.HostCallGate=ey});var Pl=O(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.BaseWorkerExpressionHandler=jr.HOST_CALL_CALLER_TIMEOUT_MS=jr.HOST_CALL_TIMEOUT_MS=void 0;var Ja=Oe(),Lt=tt(),Ol=Ce(),oq=Qv(),iq=eS();jr.HOST_CALL_TIMEOUT_MS=9e4;jr.HOST_CALL_CALLER_TIMEOUT_MS=jr.HOST_CALL_TIMEOUT_MS+1e4;var kl=class o extends oq.AbstractExpressionHandler{constructor(){super(...arguments),this.worker=null,this.workerUrl=null,this.pendingRequests=new Map,this.hostFunctions=new Map,this.workerMessageHandler=null,this.workerErrorHandler=null,this.hostCallGate=new iq.HostCallGate}registerHostFunction(t,r){this.hostFunctions.set(t,r),this.hostCallGate.reset()}get diffEnabled(){return!0}async initWorker(){if(!this.worker){this.cleanup();try{let{worker:t,workerUrl:r}=this.buildWorker(this.getWorkerScript());this.worker=t,this.workerUrl=r,this.setupWorkerListeners(),await new Promise(e=>setTimeout(e,10))}catch(t){throw new Ol.WorkflowErrorBuilder().fromError(t).setInstance(this.instanceName).setTitle((0,Lt.t)(Lt.ErrorKeys.INTERNAL_ERROR)).build()}}}cleanup(){this.hostCallGate.reset();for(let[,t]of this.pendingRequests)t.timeoutId&&clearTimeout(t.timeoutId),t.reject(new Error("Worker terminated during cleanup"));this.pendingRequests.clear(),this.worker&&this.workerMessageHandler&&this.workerErrorHandler&&(this.worker.removeEventListener?(this.worker.removeEventListener("message",this.workerMessageHandler),this.worker.removeEventListener("error",this.workerErrorHandler)):this.worker.off&&(this.worker.off("message",this.workerMessageHandler),this.worker.off("error",this.workerErrorHandler))),this.worker&&(this.worker.terminate(),this.worker=null),this.workerMessageHandler=null,this.workerErrorHandler=null,this.workerUrl&&(URL.revokeObjectURL(this.workerUrl),this.workerUrl=null)}dispose(){this.cleanup()}setupWorkerListeners(){this.worker&&(this.workerMessageHandler=t=>{let e=t.data??t;if(e.kind==="hostCall"){this.handleHostCall(e);return}let{id:n}=e,i=this.pendingRequests.get(n);if(!i){console.error(`No pending worker request for ID: ${n}`);return}if(this.pendingRequests.delete(n),i.timeoutId&&clearTimeout(i.timeoutId),e.success)i.resolve(e);else{let s=e.error,c=new Error((0,Ja.getErrorMessage)(s));c.name=s.name||c.name,c.stack=s.stack,s.code&&(c.code=s.code),s.cause&&(c.cause=s.cause);let u=new Ol.WorkflowErrorBuilder().fromError(c).setInstance(this.instanceName).setTitle((0,Lt.t)(Lt.ErrorKeys.WORKER_OPERATION_FAILED)).build();e.userLogs!==void 0&&(u.userLogs=e.userLogs),i.reject(u)}},this.workerErrorHandler=t=>{let r=t,e=r.error??new Error(r.message??(0,Ja.getErrorMessage)(t)),n=new Ol.WorkflowErrorBuilder().fromError(e).setInstance(this.instanceName).setTitle((0,Lt.t)(Lt.ErrorKeys.WORKER_ERROR)).build();for(let[,i]of this.pendingRequests)i.timeoutId&&clearTimeout(i.timeoutId),i.reject(n);this.pendingRequests.clear()},this.worker.addEventListener?(this.worker.addEventListener("message",this.workerMessageHandler),this.worker.addEventListener("error",this.workerErrorHandler)):this.worker.on&&(this.worker.on("message",this.workerMessageHandler),this.worker.on("error",this.workerErrorHandler)))}validateHostCall(t){let r=this.hostFunctions.get(t);return r?this.hostCallGate.tryConsumeBudget()?{ok:!0,impl:r}:{ok:!1,error:{name:"Error",message:`Host function call limit exceeded (max ${this.hostCallGate.maxCalls} per workflow run).`}}:{ok:!1,error:{name:"Error",message:`Unknown host function: ${t}`}}}async handleHostCall(t){let r=(i,s,c)=>{this.worker?.postMessage({mode:"hostCallResult",callId:t.callId,success:i,result:s,error:c})},e=this.validateHostCall(t.fn);if(!e.ok){r(!1,void 0,e.error);return}let n=e.impl;try{await this.hostCallGate.acquire()}catch(i){r(!1,void 0,{name:"Error",message:(0,Ja.getErrorMessage)(i)});return}try{let i=jr.HOST_CALL_TIMEOUT_MS,s=await sq(n(t.args),i,`Host function '${t.fn}' timed out after ${i}ms.`);r(!0,s)}catch(i){r(!1,void 0,{name:i?.name,message:(0,Ja.getErrorMessage)(i)})}finally{this.hostCallGate.release()}}async postWorkerMessage(t,r,e){return await this.initWorker(),new Promise((n,i)=>{let s=(0,Ja.getNewGuid)(),c;if(e){c=setTimeout(()=>{this.pendingRequests.delete(s);let a=new Ol.WorkflowErrorBuilder().fromError(new Error((0,Lt.t)(Lt.ErrorKeys.EXPRESSION_TIMEOUT,{operation:r,timeoutMs:e}))).setInstance(this.instanceName).setTitle((0,Lt.t)(Lt.ErrorKeys.EXPRESSION_TIMEOUT,{operation:r,timeoutMs:e})).build();i(a)},e);let u=c;typeof u.unref=="function"&&u.unref()}this.pendingRequests.set(s,{resolve:n,reject:i,timeoutId:c}),this.worker.postMessage({id:s,...t})})}resolveExpressionTimeout(t){return[...t].some(e=>e.includes("$helpers"))?jr.HOST_CALL_CALLER_TIMEOUT_MS:o.DATA_EXPRESSION_TIMEOUT_MS}async evaluateSanitizedExpressionsInternal(t){return(await this.postWorkerMessage({mode:"evaluateSanitizedExpressions",expressions:t},"Expressions evaluation(s) failed",this.resolveExpressionTimeout(t))).result}async setVariablesInternal(t,r){await this.postWorkerMessage({mode:"setVariables",variables:t,mergeObjects:r},"Setting variables failed",1e4)}async deleteVariablesInternal(t){await this.postWorkerMessage({mode:"deleteVariables",variableNames:t},"Deleting variables failed",1e4)}async setInputOutputInternal(t,r){return(await this.postWorkerMessage({mode:"setInputOutput",result:t,sanitizedExpression:r},"Setting input/output variables failed",1e4)).result}async updateWorkflowContextInternal(t,r){await this.postWorkerMessage({mode:"updateWorkflowContext",contextExpression:t,output:r},"Context evaluation and update failed",1e4)}async evaluateScript(t,r,e){let n=await this.postWorkerMessage({mode:"executeScript",script:t,taskName:r,timeoutMs:e},"Script execution failed",e);return{result:n.result,userLogs:n.userLogs}}async getContextDiff(){if(!this.diffEnabled)throw new Error((0,Lt.t)(Lt.ErrorKeys.GET_CONTEXT_DIFF_NOT_IMPL,{handler:this.instanceName}));return(await this.postWorkerMessage({mode:"getContextDiff"},"Context diff operation failed")).result}async getWorkflowInputDiff(){if(!this.diffEnabled)throw new Error((0,Lt.t)(Lt.ErrorKeys.GET_WORKFLOW_INPUT_DIFF_NOT_IMPL,{handler:this.instanceName}));return(await this.postWorkerMessage({mode:"getWorkflowInputDiff"},"Workflow input diff operation failed")).result}};jr.BaseWorkerExpressionHandler=kl;kl.DATA_EXPRESSION_TIMEOUT_MS=3e4;async function sq(o,t,r){let e,n=new Promise((i,s)=>{e=setTimeout(()=>s(new Error(r)),t),e.unref?.()});o.catch(()=>{});try{return await Promise.race([o,n])}finally{e!==void 0&&clearTimeout(e)}}});var ty=O(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.REDACT_SECRETS_SNIPPET=void 0;var tS=Oe();Al.REDACT_SECRETS_SNIPPET=`
|
|
87
|
+
`+new Error().stack),E=!1}return y.apply(this,arguments)},y)}var C={};function j(p,y){t.deprecationHandler!=null&&t.deprecationHandler(p,y),C[p]||(x(y),C[p]=!0)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;function L(p){return typeof Function<"u"&&p instanceof Function||Object.prototype.toString.call(p)==="[object Function]"}function D(p){var y,E;for(E in p)i(p,E)&&(y=p[E],L(y)?this[E]=y:this["_"+E]=y);this._config=p,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function F(p,y){var E=d({},p),S;for(S in y)i(y,S)&&(n(p[S])&&n(y[S])?(E[S]={},d(E[S],p[S]),d(E[S],y[S])):y[S]!=null?E[S]=y[S]:delete E[S]);for(S in p)i(p,S)&&!i(y,S)&&n(p[S])&&(E[S]=d({},E[S]));return E}function q(p){p!=null&&this.set(p)}var z;Object.keys?z=Object.keys:z=function(p){var y,E=[];for(y in p)i(p,y)&&E.push(y);return E};var K={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function se(p,y,E){var S=this._calendar[p]||this._calendar.sameElse;return L(S)?S.call(y,E):S}function X(p,y,E){var S=""+Math.abs(p),A=y-S.length,M=p>=0;return(M?E?"+":"":"-")+Math.pow(10,Math.max(0,A)).toString().substr(1)+S}var he=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,te=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,xe={},Ke={};function Q(p,y,E,S){var A=S;typeof S=="string"&&(A=function(){return this[S]()}),p&&(Ke[p]=A),y&&(Ke[y[0]]=function(){return X(A.apply(this,arguments),y[1],y[2])}),E&&(Ke[E]=function(){return this.localeData().ordinal(A.apply(this,arguments),p)})}function bn(p){return p.match(/\[[\s\S]/)?p.replace(/^\[|\]$/g,""):p.replace(/\\/g,"")}function Jo(p){var y=p.match(he),E,S;for(E=0,S=y.length;E<S;E++)Ke[y[E]]?y[E]=Ke[y[E]]:y[E]=bn(y[E]);return function(A){var M="",W;for(W=0;W<S;W++)M+=L(y[W])?y[W].call(A,p):y[W];return M}}function nr(p,y){return p.isValid()?(y=zr(y,p.localeData()),xe[y]=xe[y]||Jo(y),xe[y](p)):p.localeData().invalidDate()}function zr(p,y){var E=5;function S(A){return y.longDateFormat(A)||A}for(te.lastIndex=0;E>=0&&te.test(p);)p=p.replace(te,S),te.lastIndex=0,E-=1;return p}var $={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function H(p){var y=this._longDateFormat[p],E=this._longDateFormat[p.toUpperCase()];return y||!E?y:(this._longDateFormat[p]=E.match(he).map(function(S){return S==="MMMM"||S==="MM"||S==="DD"||S==="dddd"?S.slice(1):S}).join(""),this._longDateFormat[p])}var J="Invalid date";function ne(){return this._invalidDate}var _e="%d",Ee=/\d{1,2}/;function fe(p){return this._ordinal.replace("%d",p)}var Z={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ae(p,y,E,S){var A=this._relativeTime[E];return L(A)?A(p,y,E,S):A.replace(/%d/i,p)}function N(p,y){var E=this._relativeTime[p>0?"future":"past"];return L(E)?E(y):E.replace(/%s/i,y)}var B={};function G(p,y){var E=p.toLowerCase();B[E]=B[E+"s"]=B[y]=p}function ce(p){return typeof p=="string"?B[p]||B[p.toLowerCase()]:void 0}function oe(p){var y={},E,S;for(S in p)i(p,S)&&(E=ce(S),E&&(y[E]=p[S]));return y}var Ve={};function Be(p,y){Ve[p]=y}function Yr(p){var y=[],E;for(E in p)i(p,E)&&y.push({unit:E,priority:Ve[E]});return y.sort(function(S,A){return S.priority-A.priority}),y}function or(p){return p%4===0&&p%100!==0||p%400===0}function _t(p){return p<0?Math.ceil(p)||0:Math.floor(p)}function me(p){var y=+p,E=0;return y!==0&&isFinite(y)&&(E=_t(y)),E}function Er(p,y){return function(E){return E!=null?(Kr(this,p,E),t.updateOffset(this,y),this):ir(this,p)}}function ir(p,y){return p.isValid()?p._d["get"+(p._isUTC?"UTC":"")+y]():NaN}function Kr(p,y,E){p.isValid()&&!isNaN(E)&&(y==="FullYear"&&or(p.year())&&p.month()===1&&p.date()===29?(E=me(E),p._d["set"+(p._isUTC?"UTC":"")+y](E,p.month(),Xi(E,p.month()))):p._d["set"+(p._isUTC?"UTC":"")+y](E))}function Qe(p){return p=ce(p),L(this[p])?this[p]():this}function Te(p,y){if(typeof p=="object"){p=oe(p);var E=Yr(p),S,A=E.length;for(S=0;S<A;S++)this[E[S].unit](p[E[S].unit])}else if(p=ce(p),L(this[p]))return this[p](y);return this}var it=/\d/,Ze=/\d\d/,gn=/\d{3}/,Tr=/\d{4}/,Ct=/[+-]?\d{6}/,Re=/\d\d?/,zn=/\d\d\d\d?/,Go=/\d\d\d\d\d\d?/,Yn=/\d{1,3}/,Aa=/\d{1,4}/,Yi=/[+-]?\d{1,6}/,Kn=/\d+/,Ki=/[+-]?\d+/,R_=/Z|[+-]\d\d:?\d\d/gi,Ji=/Z|[+-]\d\d(?::?\d\d)?/gi,M_=/[+-]?\d+(\.\d{1,3})?/,Xo=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Gi;Gi={};function re(p,y,E){Gi[p]=L(y)?y:function(S,A){return S&&E?E:y}}function C_(p,y){return i(Gi,p)?Gi[p](y._strict,y._locale):new RegExp(j_(p))}function j_(p){return At(p.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(y,E,S,A,M){return E||S||A||M}))}function At(p){return p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ia={};function Me(p,y){var E,S=y,A;for(typeof p=="string"&&(p=[p]),u(y)&&(S=function(M,W){W[y]=me(M)}),A=p.length,E=0;E<A;E++)Ia[p[E]]=S}function Zo(p,y){Me(p,function(E,S,A,M){A._w=A._w||{},y(E,A._w,A,M)})}function N_(p,y,E){y!=null&&i(Ia,p)&&Ia[p](y,E._a,E,p)}var lt=0,Sr=1,sr=2,et=3,zt=4,Or=5,wn=6,D_=7,L_=8;function q_(p,y){return(p%y+y)%y}var Je;Array.prototype.indexOf?Je=Array.prototype.indexOf:Je=function(p){var y;for(y=0;y<this.length;++y)if(this[y]===p)return y;return-1};function Xi(p,y){if(isNaN(p)||isNaN(y))return NaN;var E=q_(y,12);return p+=(y-E)/12,E===1?or(p)?29:28:31-E%7%2}Q("M",["MM",2],"Mo",function(){return this.month()+1}),Q("MMM",0,0,function(p){return this.localeData().monthsShort(this,p)}),Q("MMMM",0,0,function(p){return this.localeData().months(this,p)}),G("month","M"),Be("month",8),re("M",Re),re("MM",Re,Ze),re("MMM",function(p,y){return y.monthsShortRegex(p)}),re("MMMM",function(p,y){return y.monthsRegex(p)}),Me(["M","MM"],function(p,y){y[Sr]=me(p)-1}),Me(["MMM","MMMM"],function(p,y,E,S){var A=E._locale.monthsParse(p,S,E._strict);A!=null?y[Sr]=A:_(E).invalidMonth=p});var F_="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),tu="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ru=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,W_=Xo,U_=Xo;function $_(p,y){return p?e(this._months)?this._months[p.month()]:this._months[(this._months.isFormat||ru).test(y)?"format":"standalone"][p.month()]:e(this._months)?this._months:this._months.standalone}function B_(p,y){return p?e(this._monthsShort)?this._monthsShort[p.month()]:this._monthsShort[ru.test(y)?"format":"standalone"][p.month()]:e(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function H_(p,y,E){var S,A,M,W=p.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],S=0;S<12;++S)M=f([2e3,S]),this._shortMonthsParse[S]=this.monthsShort(M,"").toLocaleLowerCase(),this._longMonthsParse[S]=this.months(M,"").toLocaleLowerCase();return E?y==="MMM"?(A=Je.call(this._shortMonthsParse,W),A!==-1?A:null):(A=Je.call(this._longMonthsParse,W),A!==-1?A:null):y==="MMM"?(A=Je.call(this._shortMonthsParse,W),A!==-1?A:(A=Je.call(this._longMonthsParse,W),A!==-1?A:null)):(A=Je.call(this._longMonthsParse,W),A!==-1?A:(A=Je.call(this._shortMonthsParse,W),A!==-1?A:null))}function V_(p,y,E){var S,A,M;if(this._monthsParseExact)return H_.call(this,p,y,E);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),S=0;S<12;S++){if(A=f([2e3,S]),E&&!this._longMonthsParse[S]&&(this._longMonthsParse[S]=new RegExp("^"+this.months(A,"").replace(".","")+"$","i"),this._shortMonthsParse[S]=new RegExp("^"+this.monthsShort(A,"").replace(".","")+"$","i")),!E&&!this._monthsParse[S]&&(M="^"+this.months(A,"")+"|^"+this.monthsShort(A,""),this._monthsParse[S]=new RegExp(M.replace(".",""),"i")),E&&y==="MMMM"&&this._longMonthsParse[S].test(p))return S;if(E&&y==="MMM"&&this._shortMonthsParse[S].test(p))return S;if(!E&&this._monthsParse[S].test(p))return S}}function nu(p,y){var E;if(!p.isValid())return p;if(typeof y=="string"){if(/^\d+$/.test(y))y=me(y);else if(y=p.localeData().monthsParse(y),!u(y))return p}return E=Math.min(p.date(),Xi(p.year(),y)),p._d["set"+(p._isUTC?"UTC":"")+"Month"](y,E),p}function ou(p){return p!=null?(nu(this,p),t.updateOffset(this,!0),this):ir(this,"Month")}function z_(){return Xi(this.year(),this.month())}function Y_(p){return this._monthsParseExact?(i(this,"_monthsRegex")||iu.call(this),p?this._monthsShortStrictRegex:this._monthsShortRegex):(i(this,"_monthsShortRegex")||(this._monthsShortRegex=W_),this._monthsShortStrictRegex&&p?this._monthsShortStrictRegex:this._monthsShortRegex)}function K_(p){return this._monthsParseExact?(i(this,"_monthsRegex")||iu.call(this),p?this._monthsStrictRegex:this._monthsRegex):(i(this,"_monthsRegex")||(this._monthsRegex=U_),this._monthsStrictRegex&&p?this._monthsStrictRegex:this._monthsRegex)}function iu(){function p(W,ue){return ue.length-W.length}var y=[],E=[],S=[],A,M;for(A=0;A<12;A++)M=f([2e3,A]),y.push(this.monthsShort(M,"")),E.push(this.months(M,"")),S.push(this.months(M,"")),S.push(this.monthsShort(M,""));for(y.sort(p),E.sort(p),S.sort(p),A=0;A<12;A++)y[A]=At(y[A]),E[A]=At(E[A]);for(A=0;A<24;A++)S[A]=At(S[A]);this._monthsRegex=new RegExp("^("+S.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+E.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+y.join("|")+")","i")}Q("Y",0,0,function(){var p=this.year();return p<=9999?X(p,4):"+"+p}),Q(0,["YY",2],0,function(){return this.year()%100}),Q(0,["YYYY",4],0,"year"),Q(0,["YYYYY",5],0,"year"),Q(0,["YYYYYY",6,!0],0,"year"),G("year","y"),Be("year",1),re("Y",Ki),re("YY",Re,Ze),re("YYYY",Aa,Tr),re("YYYYY",Yi,Ct),re("YYYYYY",Yi,Ct),Me(["YYYYY","YYYYYY"],lt),Me("YYYY",function(p,y){y[lt]=p.length===2?t.parseTwoDigitYear(p):me(p)}),Me("YY",function(p,y){y[lt]=t.parseTwoDigitYear(p)}),Me("Y",function(p,y){y[lt]=parseInt(p,10)});function Qo(p){return or(p)?366:365}t.parseTwoDigitYear=function(p){return me(p)+(me(p)>68?1900:2e3)};var su=Er("FullYear",!0);function J_(){return or(this.year())}function G_(p,y,E,S,A,M,W){var ue;return p<100&&p>=0?(ue=new Date(p+400,y,E,S,A,M,W),isFinite(ue.getFullYear())&&ue.setFullYear(p)):ue=new Date(p,y,E,S,A,M,W),ue}function ei(p){var y,E;return p<100&&p>=0?(E=Array.prototype.slice.call(arguments),E[0]=p+400,y=new Date(Date.UTC.apply(null,E)),isFinite(y.getUTCFullYear())&&y.setUTCFullYear(p)):y=new Date(Date.UTC.apply(null,arguments)),y}function Zi(p,y,E){var S=7+y-E,A=(7+ei(p,0,S).getUTCDay()-y)%7;return-A+S-1}function au(p,y,E,S,A){var M=(7+E-S)%7,W=Zi(p,S,A),ue=1+7*(y-1)+M+W,ye,Le;return ue<=0?(ye=p-1,Le=Qo(ye)+ue):ue>Qo(p)?(ye=p+1,Le=ue-Qo(p)):(ye=p,Le=ue),{year:ye,dayOfYear:Le}}function ti(p,y,E){var S=Zi(p.year(),y,E),A=Math.floor((p.dayOfYear()-S-1)/7)+1,M,W;return A<1?(W=p.year()-1,M=A+kr(W,y,E)):A>kr(p.year(),y,E)?(M=A-kr(p.year(),y,E),W=p.year()+1):(W=p.year(),M=A),{week:M,year:W}}function kr(p,y,E){var S=Zi(p,y,E),A=Zi(p+1,y,E);return(Qo(p)-S+A)/7}Q("w",["ww",2],"wo","week"),Q("W",["WW",2],"Wo","isoWeek"),G("week","w"),G("isoWeek","W"),Be("week",5),Be("isoWeek",5),re("w",Re),re("ww",Re,Ze),re("W",Re),re("WW",Re,Ze),Zo(["w","ww","W","WW"],function(p,y,E,S){y[S.substr(0,1)]=me(p)});function X_(p){return ti(p,this._week.dow,this._week.doy).week}var Z_={dow:0,doy:6};function Q_(){return this._week.dow}function em(){return this._week.doy}function tm(p){var y=this.localeData().week(this);return p==null?y:this.add((p-y)*7,"d")}function rm(p){var y=ti(this,1,4).week;return p==null?y:this.add((p-y)*7,"d")}Q("d",0,"do","day"),Q("dd",0,0,function(p){return this.localeData().weekdaysMin(this,p)}),Q("ddd",0,0,function(p){return this.localeData().weekdaysShort(this,p)}),Q("dddd",0,0,function(p){return this.localeData().weekdays(this,p)}),Q("e",0,0,"weekday"),Q("E",0,0,"isoWeekday"),G("day","d"),G("weekday","e"),G("isoWeekday","E"),Be("day",11),Be("weekday",11),Be("isoWeekday",11),re("d",Re),re("e",Re),re("E",Re),re("dd",function(p,y){return y.weekdaysMinRegex(p)}),re("ddd",function(p,y){return y.weekdaysShortRegex(p)}),re("dddd",function(p,y){return y.weekdaysRegex(p)}),Zo(["dd","ddd","dddd"],function(p,y,E,S){var A=E._locale.weekdaysParse(p,S,E._strict);A!=null?y.d=A:_(E).invalidWeekday=p}),Zo(["d","e","E"],function(p,y,E,S){y[S]=me(p)});function nm(p,y){return typeof p!="string"?p:isNaN(p)?(p=y.weekdaysParse(p),typeof p=="number"?p:null):parseInt(p,10)}function om(p,y){return typeof p=="string"?y.weekdaysParse(p)%7||7:isNaN(p)?null:p}function xa(p,y){return p.slice(y,7).concat(p.slice(0,y))}var im="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),cu="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),sm="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),am=Xo,cm=Xo,um=Xo;function lm(p,y){var E=e(this._weekdays)?this._weekdays:this._weekdays[p&&p!==!0&&this._weekdays.isFormat.test(y)?"format":"standalone"];return p===!0?xa(E,this._week.dow):p?E[p.day()]:E}function dm(p){return p===!0?xa(this._weekdaysShort,this._week.dow):p?this._weekdaysShort[p.day()]:this._weekdaysShort}function fm(p){return p===!0?xa(this._weekdaysMin,this._week.dow):p?this._weekdaysMin[p.day()]:this._weekdaysMin}function pm(p,y,E){var S,A,M,W=p.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],S=0;S<7;++S)M=f([2e3,1]).day(S),this._minWeekdaysParse[S]=this.weekdaysMin(M,"").toLocaleLowerCase(),this._shortWeekdaysParse[S]=this.weekdaysShort(M,"").toLocaleLowerCase(),this._weekdaysParse[S]=this.weekdays(M,"").toLocaleLowerCase();return E?y==="dddd"?(A=Je.call(this._weekdaysParse,W),A!==-1?A:null):y==="ddd"?(A=Je.call(this._shortWeekdaysParse,W),A!==-1?A:null):(A=Je.call(this._minWeekdaysParse,W),A!==-1?A:null):y==="dddd"?(A=Je.call(this._weekdaysParse,W),A!==-1||(A=Je.call(this._shortWeekdaysParse,W),A!==-1)?A:(A=Je.call(this._minWeekdaysParse,W),A!==-1?A:null)):y==="ddd"?(A=Je.call(this._shortWeekdaysParse,W),A!==-1||(A=Je.call(this._weekdaysParse,W),A!==-1)?A:(A=Je.call(this._minWeekdaysParse,W),A!==-1?A:null)):(A=Je.call(this._minWeekdaysParse,W),A!==-1||(A=Je.call(this._weekdaysParse,W),A!==-1)?A:(A=Je.call(this._shortWeekdaysParse,W),A!==-1?A:null))}function hm(p,y,E){var S,A,M;if(this._weekdaysParseExact)return pm.call(this,p,y,E);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),S=0;S<7;S++){if(A=f([2e3,1]).day(S),E&&!this._fullWeekdaysParse[S]&&(this._fullWeekdaysParse[S]=new RegExp("^"+this.weekdays(A,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[S]=new RegExp("^"+this.weekdaysShort(A,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[S]=new RegExp("^"+this.weekdaysMin(A,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[S]||(M="^"+this.weekdays(A,"")+"|^"+this.weekdaysShort(A,"")+"|^"+this.weekdaysMin(A,""),this._weekdaysParse[S]=new RegExp(M.replace(".",""),"i")),E&&y==="dddd"&&this._fullWeekdaysParse[S].test(p))return S;if(E&&y==="ddd"&&this._shortWeekdaysParse[S].test(p))return S;if(E&&y==="dd"&&this._minWeekdaysParse[S].test(p))return S;if(!E&&this._weekdaysParse[S].test(p))return S}}function _m(p){if(!this.isValid())return p!=null?this:NaN;var y=this._isUTC?this._d.getUTCDay():this._d.getDay();return p!=null?(p=nm(p,this.localeData()),this.add(p-y,"d")):y}function mm(p){if(!this.isValid())return p!=null?this:NaN;var y=(this.day()+7-this.localeData()._week.dow)%7;return p==null?y:this.add(p-y,"d")}function vm(p){if(!this.isValid())return p!=null?this:NaN;if(p!=null){var y=om(p,this.localeData());return this.day(this.day()%7?y:y-7)}else return this.day()||7}function ym(p){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Ra.call(this),p?this._weekdaysStrictRegex:this._weekdaysRegex):(i(this,"_weekdaysRegex")||(this._weekdaysRegex=am),this._weekdaysStrictRegex&&p?this._weekdaysStrictRegex:this._weekdaysRegex)}function bm(p){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Ra.call(this),p?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=cm),this._weekdaysShortStrictRegex&&p?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function gm(p){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Ra.call(this),p?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=um),this._weekdaysMinStrictRegex&&p?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ra(){function p(It,kn){return kn.length-It.length}var y=[],E=[],S=[],A=[],M,W,ue,ye,Le;for(M=0;M<7;M++)W=f([2e3,1]).day(M),ue=At(this.weekdaysMin(W,"")),ye=At(this.weekdaysShort(W,"")),Le=At(this.weekdays(W,"")),y.push(ue),E.push(ye),S.push(Le),A.push(ue),A.push(ye),A.push(Le);y.sort(p),E.sort(p),S.sort(p),A.sort(p),this._weekdaysRegex=new RegExp("^("+A.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+S.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+E.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+y.join("|")+")","i")}function Ma(){return this.hours()%12||12}function wm(){return this.hours()||24}Q("H",["HH",2],0,"hour"),Q("h",["hh",2],0,Ma),Q("k",["kk",2],0,wm),Q("hmm",0,0,function(){return""+Ma.apply(this)+X(this.minutes(),2)}),Q("hmmss",0,0,function(){return""+Ma.apply(this)+X(this.minutes(),2)+X(this.seconds(),2)}),Q("Hmm",0,0,function(){return""+this.hours()+X(this.minutes(),2)}),Q("Hmmss",0,0,function(){return""+this.hours()+X(this.minutes(),2)+X(this.seconds(),2)});function uu(p,y){Q(p,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),y)})}uu("a",!0),uu("A",!1),G("hour","h"),Be("hour",13);function lu(p,y){return y._meridiemParse}re("a",lu),re("A",lu),re("H",Re),re("h",Re),re("k",Re),re("HH",Re,Ze),re("hh",Re,Ze),re("kk",Re,Ze),re("hmm",zn),re("hmmss",Go),re("Hmm",zn),re("Hmmss",Go),Me(["H","HH"],et),Me(["k","kk"],function(p,y,E){var S=me(p);y[et]=S===24?0:S}),Me(["a","A"],function(p,y,E){E._isPm=E._locale.isPM(p),E._meridiem=p}),Me(["h","hh"],function(p,y,E){y[et]=me(p),_(E).bigHour=!0}),Me("hmm",function(p,y,E){var S=p.length-2;y[et]=me(p.substr(0,S)),y[zt]=me(p.substr(S)),_(E).bigHour=!0}),Me("hmmss",function(p,y,E){var S=p.length-4,A=p.length-2;y[et]=me(p.substr(0,S)),y[zt]=me(p.substr(S,2)),y[Or]=me(p.substr(A)),_(E).bigHour=!0}),Me("Hmm",function(p,y,E){var S=p.length-2;y[et]=me(p.substr(0,S)),y[zt]=me(p.substr(S))}),Me("Hmmss",function(p,y,E){var S=p.length-4,A=p.length-2;y[et]=me(p.substr(0,S)),y[zt]=me(p.substr(S,2)),y[Or]=me(p.substr(A))});function Em(p){return(p+"").toLowerCase().charAt(0)==="p"}var Tm=/[ap]\.?m?\.?/i,Sm=Er("Hours",!0);function Om(p,y,E){return p>11?E?"pm":"PM":E?"am":"AM"}var du={calendar:K,longDateFormat:$,invalidDate:J,ordinal:_e,dayOfMonthOrdinalParse:Ee,relativeTime:Z,months:F_,monthsShort:tu,week:Z_,weekdays:im,weekdaysMin:sm,weekdaysShort:cu,meridiemParse:Tm},$e={},ri={},ni;function km(p,y){var E,S=Math.min(p.length,y.length);for(E=0;E<S;E+=1)if(p[E]!==y[E])return E;return S}function fu(p){return p&&p.toLowerCase().replace("_","-")}function Pm(p){for(var y=0,E,S,A,M;y<p.length;){for(M=fu(p[y]).split("-"),E=M.length,S=fu(p[y+1]),S=S?S.split("-"):null;E>0;){if(A=Pr(M.slice(0,E).join("-")),A)return A;if(S&&S.length>=E&&km(M,S)>=E-1)break;E--}y++}return ni}function Jn(p){return p.match("^[^/\\\\]*$")!=null}function Pr(p){var y=null,E;if($e[p]===void 0&&typeof hs<"u"&&hs&&hs.exports&&Jn(p))try{y=ni._abbr,E=Ue,E("./locale/"+p),dt(y)}catch{$e[p]=null}return $e[p]}function dt(p,y){var E;return p&&(c(y)?E=En(p):E=Ar(p,y),E?ni=E:typeof console<"u"&&console.warn&&console.warn("Locale "+p+" not found. Did you forget to load it?")),ni._abbr}function Ar(p,y){if(y!==null){var E,S=du;if(y.abbr=p,$e[p]!=null)j("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),S=$e[p]._config;else if(y.parentLocale!=null)if($e[y.parentLocale]!=null)S=$e[y.parentLocale]._config;else if(E=Pr(y.parentLocale),E!=null)S=E._config;else return ri[y.parentLocale]||(ri[y.parentLocale]=[]),ri[y.parentLocale].push({name:p,config:y}),null;return $e[p]=new q(F(S,y)),ri[p]&&ri[p].forEach(function(A){Ar(A.name,A.config)}),dt(p),$e[p]}else return delete $e[p],null}function rM(p,y){if(y!=null){var E,S,A=du;$e[p]!=null&&$e[p].parentLocale!=null?$e[p].set(F($e[p]._config,y)):(S=Pr(p),S!=null&&(A=S._config),y=F(A,y),S==null&&(y.abbr=p),E=new q(y),E.parentLocale=$e[p],$e[p]=E),dt(p)}else $e[p]!=null&&($e[p].parentLocale!=null?($e[p]=$e[p].parentLocale,p===dt()&&dt(p)):$e[p]!=null&&delete $e[p]);return $e[p]}function En(p){var y;if(p&&p._locale&&p._locale._abbr&&(p=p._locale._abbr),!p)return ni;if(!e(p)){if(y=Pr(p),y)return y;p=[p]}return Pm(p)}function nM(){return z($e)}function Am(p){var y,E=p._a;return E&&_(p).overflow===-2&&(y=E[Sr]<0||E[Sr]>11?Sr:E[sr]<1||E[sr]>Xi(E[lt],E[Sr])?sr:E[et]<0||E[et]>24||E[et]===24&&(E[zt]!==0||E[Or]!==0||E[wn]!==0)?et:E[zt]<0||E[zt]>59?zt:E[Or]<0||E[Or]>59?Or:E[wn]<0||E[wn]>999?wn:-1,_(p)._overflowDayOfYear&&(y<lt||y>sr)&&(y=sr),_(p)._overflowWeeks&&y===-1&&(y=D_),_(p)._overflowWeekday&&y===-1&&(y=L_),_(p).overflow=y),p}var oM=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,iM=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,sM=/Z|[+-]\d\d(?::?\d\d)?/,pu=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Im=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],aM=/^\/?Date\((-?\d+)/i,cM=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,uM={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function pw(p){var y,E,S=p._i,A=oM.exec(S)||iM.exec(S),M,W,ue,ye,Le=pu.length,It=Im.length;if(A){for(_(p).iso=!0,y=0,E=Le;y<E;y++)if(pu[y][1].exec(A[1])){W=pu[y][0],M=pu[y][2]!==!1;break}if(W==null){p._isValid=!1;return}if(A[3]){for(y=0,E=It;y<E;y++)if(Im[y][1].exec(A[3])){ue=(A[2]||" ")+Im[y][0];break}if(ue==null){p._isValid=!1;return}}if(!M&&ue!=null){p._isValid=!1;return}if(A[4])if(sM.exec(A[4]))ye="Z";else{p._isValid=!1;return}p._f=W+(ue||"")+(ye||""),Rm(p)}else p._isValid=!1}function lM(p,y,E,S,A,M){var W=[dM(p),tu.indexOf(y),parseInt(E,10),parseInt(S,10),parseInt(A,10)];return M&&W.push(parseInt(M,10)),W}function dM(p){var y=parseInt(p,10);return y<=49?2e3+y:y<=999?1900+y:y}function fM(p){return p.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function pM(p,y,E){if(p){var S=cu.indexOf(p),A=new Date(y[0],y[1],y[2]).getDay();if(S!==A)return _(E).weekdayMismatch=!0,E._isValid=!1,!1}return!0}function hM(p,y,E){if(p)return uM[p];if(y)return 0;var S=parseInt(E,10),A=S%100,M=(S-A)/100;return M*60+A}function hw(p){var y=cM.exec(fM(p._i)),E;if(y){if(E=lM(y[4],y[3],y[2],y[5],y[6],y[7]),!pM(y[1],E,p))return;p._a=E,p._tzm=hM(y[8],y[9],y[10]),p._d=ei.apply(null,p._a),p._d.setUTCMinutes(p._d.getUTCMinutes()-p._tzm),_(p).rfc2822=!0}else p._isValid=!1}function _M(p){var y=aM.exec(p._i);if(y!==null){p._d=new Date(+y[1]);return}if(pw(p),p._isValid===!1)delete p._isValid;else return;if(hw(p),p._isValid===!1)delete p._isValid;else return;p._strict?p._isValid=!1:t.createFromInputFallback(p)}t.createFromInputFallback=R("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(p){p._d=new Date(p._i+(p._useUTC?" UTC":""))});function Qi(p,y,E){return p??y??E}function mM(p){var y=new Date(t.now());return p._useUTC?[y.getUTCFullYear(),y.getUTCMonth(),y.getUTCDate()]:[y.getFullYear(),y.getMonth(),y.getDate()]}function xm(p){var y,E,S=[],A,M,W;if(!p._d){for(A=mM(p),p._w&&p._a[sr]==null&&p._a[Sr]==null&&vM(p),p._dayOfYear!=null&&(W=Qi(p._a[lt],A[lt]),(p._dayOfYear>Qo(W)||p._dayOfYear===0)&&(_(p)._overflowDayOfYear=!0),E=ei(W,0,p._dayOfYear),p._a[Sr]=E.getUTCMonth(),p._a[sr]=E.getUTCDate()),y=0;y<3&&p._a[y]==null;++y)p._a[y]=S[y]=A[y];for(;y<7;y++)p._a[y]=S[y]=p._a[y]==null?y===2?1:0:p._a[y];p._a[et]===24&&p._a[zt]===0&&p._a[Or]===0&&p._a[wn]===0&&(p._nextDay=!0,p._a[et]=0),p._d=(p._useUTC?ei:G_).apply(null,S),M=p._useUTC?p._d.getUTCDay():p._d.getDay(),p._tzm!=null&&p._d.setUTCMinutes(p._d.getUTCMinutes()-p._tzm),p._nextDay&&(p._a[et]=24),p._w&&typeof p._w.d<"u"&&p._w.d!==M&&(_(p).weekdayMismatch=!0)}}function vM(p){var y,E,S,A,M,W,ue,ye,Le;y=p._w,y.GG!=null||y.W!=null||y.E!=null?(M=1,W=4,E=Qi(y.GG,p._a[lt],ti(He(),1,4).year),S=Qi(y.W,1),A=Qi(y.E,1),(A<1||A>7)&&(ye=!0)):(M=p._locale._week.dow,W=p._locale._week.doy,Le=ti(He(),M,W),E=Qi(y.gg,p._a[lt],Le.year),S=Qi(y.w,Le.week),y.d!=null?(A=y.d,(A<0||A>6)&&(ye=!0)):y.e!=null?(A=y.e+M,(y.e<0||y.e>6)&&(ye=!0)):A=M),S<1||S>kr(E,M,W)?_(p)._overflowWeeks=!0:ye!=null?_(p)._overflowWeekday=!0:(ue=au(E,S,A,M,W),p._a[lt]=ue.year,p._dayOfYear=ue.dayOfYear)}t.ISO_8601=function(){},t.RFC_2822=function(){};function Rm(p){if(p._f===t.ISO_8601){pw(p);return}if(p._f===t.RFC_2822){hw(p);return}p._a=[],_(p).empty=!0;var y=""+p._i,E,S,A,M,W,ue=y.length,ye=0,Le,It;for(A=zr(p._f,p._locale).match(he)||[],It=A.length,E=0;E<It;E++)M=A[E],S=(y.match(C_(M,p))||[])[0],S&&(W=y.substr(0,y.indexOf(S)),W.length>0&&_(p).unusedInput.push(W),y=y.slice(y.indexOf(S)+S.length),ye+=S.length),Ke[M]?(S?_(p).empty=!1:_(p).unusedTokens.push(M),N_(M,S,p)):p._strict&&!S&&_(p).unusedTokens.push(M);_(p).charsLeftOver=ue-ye,y.length>0&&_(p).unusedInput.push(y),p._a[et]<=12&&_(p).bigHour===!0&&p._a[et]>0&&(_(p).bigHour=void 0),_(p).parsedDateParts=p._a.slice(0),_(p).meridiem=p._meridiem,p._a[et]=yM(p._locale,p._a[et],p._meridiem),Le=_(p).era,Le!==null&&(p._a[lt]=p._locale.erasConvertYear(Le,p._a[lt])),xm(p),Am(p)}function yM(p,y,E){var S;return E==null?y:p.meridiemHour!=null?p.meridiemHour(y,E):(p.isPM!=null&&(S=p.isPM(E),S&&y<12&&(y+=12),!S&&y===12&&(y=0)),y)}function bM(p){var y,E,S,A,M,W,ue=!1,ye=p._f.length;if(ye===0){_(p).invalidFormat=!0,p._d=new Date(NaN);return}for(A=0;A<ye;A++)M=0,W=!1,y=T({},p),p._useUTC!=null&&(y._useUTC=p._useUTC),y._f=p._f[A],Rm(y),v(y)&&(W=!0),M+=_(y).charsLeftOver,M+=_(y).unusedTokens.length*10,_(y).score=M,ue?M<S&&(S=M,E=y):(S==null||M<S||W)&&(S=M,E=y,W&&(ue=!0));d(p,E||y)}function gM(p){if(!p._d){var y=oe(p._i),E=y.day===void 0?y.date:y.day;p._a=l([y.year,y.month,E,y.hour,y.minute,y.second,y.millisecond],function(S){return S&&parseInt(S,10)}),xm(p)}}function wM(p){var y=new P(Am(_w(p)));return y._nextDay&&(y.add(1,"d"),y._nextDay=void 0),y}function _w(p){var y=p._i,E=p._f;return p._locale=p._locale||En(p._l),y===null||E===void 0&&y===""?b({nullInput:!0}):(typeof y=="string"&&(p._i=y=p._locale.preparse(y)),k(y)?new P(Am(y)):(a(y)?p._d=y:e(E)?bM(p):E?Rm(p):EM(p),v(p)||(p._d=null),p))}function EM(p){var y=p._i;c(y)?p._d=new Date(t.now()):a(y)?p._d=new Date(y.valueOf()):typeof y=="string"?_M(p):e(y)?(p._a=l(y.slice(0),function(E){return parseInt(E,10)}),xm(p)):n(y)?gM(p):u(y)?p._d=new Date(y):t.createFromInputFallback(p)}function mw(p,y,E,S,A){var M={};return(y===!0||y===!1)&&(S=y,y=void 0),(E===!0||E===!1)&&(S=E,E=void 0),(n(p)&&s(p)||e(p)&&p.length===0)&&(p=void 0),M._isAMomentObject=!0,M._useUTC=M._isUTC=A,M._l=E,M._i=p,M._f=y,M._strict=S,wM(M)}function He(p,y,E,S){return mw(p,y,E,S,!1)}var TM=R("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var p=He.apply(null,arguments);return this.isValid()&&p.isValid()?p<this?this:p:b()}),SM=R("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var p=He.apply(null,arguments);return this.isValid()&&p.isValid()?p>this?this:p:b()});function vw(p,y){var E,S;if(y.length===1&&e(y[0])&&(y=y[0]),!y.length)return He();for(E=y[0],S=1;S<y.length;++S)(!y[S].isValid()||y[S][p](E))&&(E=y[S]);return E}function OM(){var p=[].slice.call(arguments,0);return vw("isBefore",p)}function kM(){var p=[].slice.call(arguments,0);return vw("isAfter",p)}var PM=function(){return Date.now?Date.now():+new Date},Ca=["year","quarter","month","week","day","hour","minute","second","millisecond"];function AM(p){var y,E=!1,S,A=Ca.length;for(y in p)if(i(p,y)&&!(Je.call(Ca,y)!==-1&&(p[y]==null||!isNaN(p[y]))))return!1;for(S=0;S<A;++S)if(p[Ca[S]]){if(E)return!1;parseFloat(p[Ca[S]])!==me(p[Ca[S]])&&(E=!0)}return!0}function IM(){return this._isValid}function xM(){return Ir(NaN)}function hu(p){var y=oe(p),E=y.year||0,S=y.quarter||0,A=y.month||0,M=y.week||y.isoWeek||0,W=y.day||0,ue=y.hour||0,ye=y.minute||0,Le=y.second||0,It=y.millisecond||0;this._isValid=AM(y),this._milliseconds=+It+Le*1e3+ye*6e4+ue*1e3*60*60,this._days=+W+M*7,this._months=+A+S*3+E*12,this._data={},this._locale=En(),this._bubble()}function _u(p){return p instanceof hu}function Mm(p){return p<0?Math.round(-1*p)*-1:Math.round(p)}function RM(p,y,E){var S=Math.min(p.length,y.length),A=Math.abs(p.length-y.length),M=0,W;for(W=0;W<S;W++)(E&&p[W]!==y[W]||!E&&me(p[W])!==me(y[W]))&&M++;return M+A}function yw(p,y){Q(p,0,0,function(){var E=this.utcOffset(),S="+";return E<0&&(E=-E,S="-"),S+X(~~(E/60),2)+y+X(~~E%60,2)})}yw("Z",":"),yw("ZZ",""),re("Z",Ji),re("ZZ",Ji),Me(["Z","ZZ"],function(p,y,E){E._useUTC=!0,E._tzm=Cm(Ji,p)});var MM=/([\+\-]|\d\d)/gi;function Cm(p,y){var E=(y||"").match(p),S,A,M;return E===null?null:(S=E[E.length-1]||[],A=(S+"").match(MM)||["-",0,0],M=+(A[1]*60)+me(A[2]),M===0?0:A[0]==="+"?M:-M)}function jm(p,y){var E,S;return y._isUTC?(E=y.clone(),S=(k(p)||a(p)?p.valueOf():He(p).valueOf())-E.valueOf(),E._d.setTime(E._d.valueOf()+S),t.updateOffset(E,!1),E):He(p).local()}function Nm(p){return-Math.round(p._d.getTimezoneOffset())}t.updateOffset=function(){};function CM(p,y,E){var S=this._offset||0,A;if(!this.isValid())return p!=null?this:NaN;if(p!=null){if(typeof p=="string"){if(p=Cm(Ji,p),p===null)return this}else Math.abs(p)<16&&!E&&(p=p*60);return!this._isUTC&&y&&(A=Nm(this)),this._offset=p,this._isUTC=!0,A!=null&&this.add(A,"m"),S!==p&&(!y||this._changeInProgress?Ew(this,Ir(p-S,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?S:Nm(this)}function jM(p,y){return p!=null?(typeof p!="string"&&(p=-p),this.utcOffset(p,y),this):-this.utcOffset()}function NM(p){return this.utcOffset(0,p)}function DM(p){return this._isUTC&&(this.utcOffset(0,p),this._isUTC=!1,p&&this.subtract(Nm(this),"m")),this}function LM(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var p=Cm(R_,this._i);p!=null?this.utcOffset(p):this.utcOffset(0,!0)}return this}function qM(p){return this.isValid()?(p=p?He(p).utcOffset():0,(this.utcOffset()-p)%60===0):!1}function FM(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function WM(){if(!c(this._isDSTShifted))return this._isDSTShifted;var p={},y;return T(p,this),p=_w(p),p._a?(y=p._isUTC?f(p._a):He(p._a),this._isDSTShifted=this.isValid()&&RM(p._a,y.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function UM(){return this.isValid()?!this._isUTC:!1}function $M(){return this.isValid()?this._isUTC:!1}function bw(){return this.isValid()?this._isUTC&&this._offset===0:!1}var BM=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,HM=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ir(p,y){var E=p,S=null,A,M,W;return _u(p)?E={ms:p._milliseconds,d:p._days,M:p._months}:u(p)||!isNaN(+p)?(E={},y?E[y]=+p:E.milliseconds=+p):(S=BM.exec(p))?(A=S[1]==="-"?-1:1,E={y:0,d:me(S[sr])*A,h:me(S[et])*A,m:me(S[zt])*A,s:me(S[Or])*A,ms:me(Mm(S[wn]*1e3))*A}):(S=HM.exec(p))?(A=S[1]==="-"?-1:1,E={y:oi(S[2],A),M:oi(S[3],A),w:oi(S[4],A),d:oi(S[5],A),h:oi(S[6],A),m:oi(S[7],A),s:oi(S[8],A)}):E==null?E={}:typeof E=="object"&&("from"in E||"to"in E)&&(W=VM(He(E.from),He(E.to)),E={},E.ms=W.milliseconds,E.M=W.months),M=new hu(E),_u(p)&&i(p,"_locale")&&(M._locale=p._locale),_u(p)&&i(p,"_isValid")&&(M._isValid=p._isValid),M}Ir.fn=hu.prototype,Ir.invalid=xM;function oi(p,y){var E=p&&parseFloat(p.replace(",","."));return(isNaN(E)?0:E)*y}function gw(p,y){var E={};return E.months=y.month()-p.month()+(y.year()-p.year())*12,p.clone().add(E.months,"M").isAfter(y)&&--E.months,E.milliseconds=+y-+p.clone().add(E.months,"M"),E}function VM(p,y){var E;return p.isValid()&&y.isValid()?(y=jm(y,p),p.isBefore(y)?E=gw(p,y):(E=gw(y,p),E.milliseconds=-E.milliseconds,E.months=-E.months),E):{milliseconds:0,months:0}}function ww(p,y){return function(E,S){var A,M;return S!==null&&!isNaN(+S)&&(j(y,"moment()."+y+"(period, number) is deprecated. Please use moment()."+y+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),M=E,E=S,S=M),A=Ir(E,S),Ew(this,A,p),this}}function Ew(p,y,E,S){var A=y._milliseconds,M=Mm(y._days),W=Mm(y._months);p.isValid()&&(S=S??!0,W&&nu(p,ir(p,"Month")+W*E),M&&Kr(p,"Date",ir(p,"Date")+M*E),A&&p._d.setTime(p._d.valueOf()+A*E),S&&t.updateOffset(p,M||W))}var zM=ww(1,"add"),YM=ww(-1,"subtract");function Tw(p){return typeof p=="string"||p instanceof String}function KM(p){return k(p)||a(p)||Tw(p)||u(p)||GM(p)||JM(p)||p===null||p===void 0}function JM(p){var y=n(p)&&!s(p),E=!1,S=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],A,M,W=S.length;for(A=0;A<W;A+=1)M=S[A],E=E||i(p,M);return y&&E}function GM(p){var y=e(p),E=!1;return y&&(E=p.filter(function(S){return!u(S)&&Tw(p)}).length===0),y&&E}function XM(p){var y=n(p)&&!s(p),E=!1,S=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],A,M;for(A=0;A<S.length;A+=1)M=S[A],E=E||i(p,M);return y&&E}function ZM(p,y){var E=p.diff(y,"days",!0);return E<-6?"sameElse":E<-1?"lastWeek":E<0?"lastDay":E<1?"sameDay":E<2?"nextDay":E<7?"nextWeek":"sameElse"}function QM(p,y){arguments.length===1&&(arguments[0]?KM(arguments[0])?(p=arguments[0],y=void 0):XM(arguments[0])&&(y=arguments[0],p=void 0):(p=void 0,y=void 0));var E=p||He(),S=jm(E,this).startOf("day"),A=t.calendarFormat(this,S)||"sameElse",M=y&&(L(y[A])?y[A].call(this,E):y[A]);return this.format(M||this.localeData().calendar(A,this,He(E)))}function e1(){return new P(this)}function t1(p,y){var E=k(p)?p:He(p);return this.isValid()&&E.isValid()?(y=ce(y)||"millisecond",y==="millisecond"?this.valueOf()>E.valueOf():E.valueOf()<this.clone().startOf(y).valueOf()):!1}function r1(p,y){var E=k(p)?p:He(p);return this.isValid()&&E.isValid()?(y=ce(y)||"millisecond",y==="millisecond"?this.valueOf()<E.valueOf():this.clone().endOf(y).valueOf()<E.valueOf()):!1}function n1(p,y,E,S){var A=k(p)?p:He(p),M=k(y)?y:He(y);return this.isValid()&&A.isValid()&&M.isValid()?(S=S||"()",(S[0]==="("?this.isAfter(A,E):!this.isBefore(A,E))&&(S[1]===")"?this.isBefore(M,E):!this.isAfter(M,E))):!1}function o1(p,y){var E=k(p)?p:He(p),S;return this.isValid()&&E.isValid()?(y=ce(y)||"millisecond",y==="millisecond"?this.valueOf()===E.valueOf():(S=E.valueOf(),this.clone().startOf(y).valueOf()<=S&&S<=this.clone().endOf(y).valueOf())):!1}function i1(p,y){return this.isSame(p,y)||this.isAfter(p,y)}function s1(p,y){return this.isSame(p,y)||this.isBefore(p,y)}function a1(p,y,E){var S,A,M;if(!this.isValid())return NaN;if(S=jm(p,this),!S.isValid())return NaN;switch(A=(S.utcOffset()-this.utcOffset())*6e4,y=ce(y),y){case"year":M=mu(this,S)/12;break;case"month":M=mu(this,S);break;case"quarter":M=mu(this,S)/3;break;case"second":M=(this-S)/1e3;break;case"minute":M=(this-S)/6e4;break;case"hour":M=(this-S)/36e5;break;case"day":M=(this-S-A)/864e5;break;case"week":M=(this-S-A)/6048e5;break;default:M=this-S}return E?M:_t(M)}function mu(p,y){if(p.date()<y.date())return-mu(y,p);var E=(y.year()-p.year())*12+(y.month()-p.month()),S=p.clone().add(E,"months"),A,M;return y-S<0?(A=p.clone().add(E-1,"months"),M=(y-S)/(S-A)):(A=p.clone().add(E+1,"months"),M=(y-S)/(A-S)),-(E+M)||0}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function c1(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function u1(p){if(!this.isValid())return null;var y=p!==!0,E=y?this.clone().utc():this;return E.year()<0||E.year()>9999?nr(E,y?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):L(Date.prototype.toISOString)?y?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",nr(E,"Z")):nr(E,y?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function l1(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var p="moment",y="",E,S,A,M;return this.isLocal()||(p=this.utcOffset()===0?"moment.utc":"moment.parseZone",y="Z"),E="["+p+'("]',S=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",A="-MM-DD[T]HH:mm:ss.SSS",M=y+'[")]',this.format(E+S+A+M)}function d1(p){p||(p=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var y=nr(this,p);return this.localeData().postformat(y)}function f1(p,y){return this.isValid()&&(k(p)&&p.isValid()||He(p).isValid())?Ir({to:this,from:p}).locale(this.locale()).humanize(!y):this.localeData().invalidDate()}function p1(p){return this.from(He(),p)}function h1(p,y){return this.isValid()&&(k(p)&&p.isValid()||He(p).isValid())?Ir({from:this,to:p}).locale(this.locale()).humanize(!y):this.localeData().invalidDate()}function _1(p){return this.to(He(),p)}function Sw(p){var y;return p===void 0?this._locale._abbr:(y=En(p),y!=null&&(this._locale=y),this)}var Ow=R("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(p){return p===void 0?this.localeData():this.locale(p)});function kw(){return this._locale}var vu=1e3,es=60*vu,yu=60*es,Pw=(365*400+97)*24*yu;function ts(p,y){return(p%y+y)%y}function Aw(p,y,E){return p<100&&p>=0?new Date(p+400,y,E)-Pw:new Date(p,y,E).valueOf()}function Iw(p,y,E){return p<100&&p>=0?Date.UTC(p+400,y,E)-Pw:Date.UTC(p,y,E)}function m1(p){var y,E;if(p=ce(p),p===void 0||p==="millisecond"||!this.isValid())return this;switch(E=this._isUTC?Iw:Aw,p){case"year":y=E(this.year(),0,1);break;case"quarter":y=E(this.year(),this.month()-this.month()%3,1);break;case"month":y=E(this.year(),this.month(),1);break;case"week":y=E(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":y=E(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":y=E(this.year(),this.month(),this.date());break;case"hour":y=this._d.valueOf(),y-=ts(y+(this._isUTC?0:this.utcOffset()*es),yu);break;case"minute":y=this._d.valueOf(),y-=ts(y,es);break;case"second":y=this._d.valueOf(),y-=ts(y,vu);break}return this._d.setTime(y),t.updateOffset(this,!0),this}function v1(p){var y,E;if(p=ce(p),p===void 0||p==="millisecond"||!this.isValid())return this;switch(E=this._isUTC?Iw:Aw,p){case"year":y=E(this.year()+1,0,1)-1;break;case"quarter":y=E(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":y=E(this.year(),this.month()+1,1)-1;break;case"week":y=E(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":y=E(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":y=E(this.year(),this.month(),this.date()+1)-1;break;case"hour":y=this._d.valueOf(),y+=yu-ts(y+(this._isUTC?0:this.utcOffset()*es),yu)-1;break;case"minute":y=this._d.valueOf(),y+=es-ts(y,es)-1;break;case"second":y=this._d.valueOf(),y+=vu-ts(y,vu)-1;break}return this._d.setTime(y),t.updateOffset(this,!0),this}function y1(){return this._d.valueOf()-(this._offset||0)*6e4}function b1(){return Math.floor(this.valueOf()/1e3)}function g1(){return new Date(this.valueOf())}function w1(){var p=this;return[p.year(),p.month(),p.date(),p.hour(),p.minute(),p.second(),p.millisecond()]}function E1(){var p=this;return{years:p.year(),months:p.month(),date:p.date(),hours:p.hours(),minutes:p.minutes(),seconds:p.seconds(),milliseconds:p.milliseconds()}}function T1(){return this.isValid()?this.toISOString():null}function S1(){return v(this)}function O1(){return d({},_(this))}function k1(){return _(this).overflow}function P1(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Q("N",0,0,"eraAbbr"),Q("NN",0,0,"eraAbbr"),Q("NNN",0,0,"eraAbbr"),Q("NNNN",0,0,"eraName"),Q("NNNNN",0,0,"eraNarrow"),Q("y",["y",1],"yo","eraYear"),Q("y",["yy",2],0,"eraYear"),Q("y",["yyy",3],0,"eraYear"),Q("y",["yyyy",4],0,"eraYear"),re("N",Dm),re("NN",Dm),re("NNN",Dm),re("NNNN",q1),re("NNNNN",F1),Me(["N","NN","NNN","NNNN","NNNNN"],function(p,y,E,S){var A=E._locale.erasParse(p,S,E._strict);A?_(E).era=A:_(E).invalidEra=p}),re("y",Kn),re("yy",Kn),re("yyy",Kn),re("yyyy",Kn),re("yo",W1),Me(["y","yy","yyy","yyyy"],lt),Me(["yo"],function(p,y,E,S){var A;E._locale._eraYearOrdinalRegex&&(A=p.match(E._locale._eraYearOrdinalRegex)),E._locale.eraYearOrdinalParse?y[lt]=E._locale.eraYearOrdinalParse(p,A):y[lt]=parseInt(p,10)});function A1(p,y){var E,S,A,M=this._eras||En("en")._eras;for(E=0,S=M.length;E<S;++E){switch(typeof M[E].since){case"string":A=t(M[E].since).startOf("day"),M[E].since=A.valueOf();break}switch(typeof M[E].until){case"undefined":M[E].until=1/0;break;case"string":A=t(M[E].until).startOf("day").valueOf(),M[E].until=A.valueOf();break}}return M}function I1(p,y,E){var S,A,M=this.eras(),W,ue,ye;for(p=p.toUpperCase(),S=0,A=M.length;S<A;++S)if(W=M[S].name.toUpperCase(),ue=M[S].abbr.toUpperCase(),ye=M[S].narrow.toUpperCase(),E)switch(y){case"N":case"NN":case"NNN":if(ue===p)return M[S];break;case"NNNN":if(W===p)return M[S];break;case"NNNNN":if(ye===p)return M[S];break}else if([W,ue,ye].indexOf(p)>=0)return M[S]}function x1(p,y){var E=p.since<=p.until?1:-1;return y===void 0?t(p.since).year():t(p.since).year()+(y-p.offset)*E}function R1(){var p,y,E,S=this.localeData().eras();for(p=0,y=S.length;p<y;++p)if(E=this.clone().startOf("day").valueOf(),S[p].since<=E&&E<=S[p].until||S[p].until<=E&&E<=S[p].since)return S[p].name;return""}function M1(){var p,y,E,S=this.localeData().eras();for(p=0,y=S.length;p<y;++p)if(E=this.clone().startOf("day").valueOf(),S[p].since<=E&&E<=S[p].until||S[p].until<=E&&E<=S[p].since)return S[p].narrow;return""}function C1(){var p,y,E,S=this.localeData().eras();for(p=0,y=S.length;p<y;++p)if(E=this.clone().startOf("day").valueOf(),S[p].since<=E&&E<=S[p].until||S[p].until<=E&&E<=S[p].since)return S[p].abbr;return""}function j1(){var p,y,E,S,A=this.localeData().eras();for(p=0,y=A.length;p<y;++p)if(E=A[p].since<=A[p].until?1:-1,S=this.clone().startOf("day").valueOf(),A[p].since<=S&&S<=A[p].until||A[p].until<=S&&S<=A[p].since)return(this.year()-t(A[p].since).year())*E+A[p].offset;return this.year()}function N1(p){return i(this,"_erasNameRegex")||Lm.call(this),p?this._erasNameRegex:this._erasRegex}function D1(p){return i(this,"_erasAbbrRegex")||Lm.call(this),p?this._erasAbbrRegex:this._erasRegex}function L1(p){return i(this,"_erasNarrowRegex")||Lm.call(this),p?this._erasNarrowRegex:this._erasRegex}function Dm(p,y){return y.erasAbbrRegex(p)}function q1(p,y){return y.erasNameRegex(p)}function F1(p,y){return y.erasNarrowRegex(p)}function W1(p,y){return y._eraYearOrdinalRegex||Kn}function Lm(){var p=[],y=[],E=[],S=[],A,M,W=this.eras();for(A=0,M=W.length;A<M;++A)y.push(At(W[A].name)),p.push(At(W[A].abbr)),E.push(At(W[A].narrow)),S.push(At(W[A].name)),S.push(At(W[A].abbr)),S.push(At(W[A].narrow));this._erasRegex=new RegExp("^("+S.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+y.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+p.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+E.join("|")+")","i")}Q(0,["gg",2],0,function(){return this.weekYear()%100}),Q(0,["GG",2],0,function(){return this.isoWeekYear()%100});function bu(p,y){Q(0,[p,p.length],0,y)}bu("gggg","weekYear"),bu("ggggg","weekYear"),bu("GGGG","isoWeekYear"),bu("GGGGG","isoWeekYear"),G("weekYear","gg"),G("isoWeekYear","GG"),Be("weekYear",1),Be("isoWeekYear",1),re("G",Ki),re("g",Ki),re("GG",Re,Ze),re("gg",Re,Ze),re("GGGG",Aa,Tr),re("gggg",Aa,Tr),re("GGGGG",Yi,Ct),re("ggggg",Yi,Ct),Zo(["gggg","ggggg","GGGG","GGGGG"],function(p,y,E,S){y[S.substr(0,2)]=me(p)}),Zo(["gg","GG"],function(p,y,E,S){y[S]=t.parseTwoDigitYear(p)});function U1(p){return xw.call(this,p,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function $1(p){return xw.call(this,p,this.isoWeek(),this.isoWeekday(),1,4)}function B1(){return kr(this.year(),1,4)}function H1(){return kr(this.isoWeekYear(),1,4)}function V1(){var p=this.localeData()._week;return kr(this.year(),p.dow,p.doy)}function z1(){var p=this.localeData()._week;return kr(this.weekYear(),p.dow,p.doy)}function xw(p,y,E,S,A){var M;return p==null?ti(this,S,A).year:(M=kr(p,S,A),y>M&&(y=M),Y1.call(this,p,y,E,S,A))}function Y1(p,y,E,S,A){var M=au(p,y,E,S,A),W=ei(M.year,0,M.dayOfYear);return this.year(W.getUTCFullYear()),this.month(W.getUTCMonth()),this.date(W.getUTCDate()),this}Q("Q",0,"Qo","quarter"),G("quarter","Q"),Be("quarter",7),re("Q",it),Me("Q",function(p,y){y[Sr]=(me(p)-1)*3});function K1(p){return p==null?Math.ceil((this.month()+1)/3):this.month((p-1)*3+this.month()%3)}Q("D",["DD",2],"Do","date"),G("date","D"),Be("date",9),re("D",Re),re("DD",Re,Ze),re("Do",function(p,y){return p?y._dayOfMonthOrdinalParse||y._ordinalParse:y._dayOfMonthOrdinalParseLenient}),Me(["D","DD"],sr),Me("Do",function(p,y){y[sr]=me(p.match(Re)[0])});var Rw=Er("Date",!0);Q("DDD",["DDDD",3],"DDDo","dayOfYear"),G("dayOfYear","DDD"),Be("dayOfYear",4),re("DDD",Yn),re("DDDD",gn),Me(["DDD","DDDD"],function(p,y,E){E._dayOfYear=me(p)});function J1(p){var y=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return p==null?y:this.add(p-y,"d")}Q("m",["mm",2],0,"minute"),G("minute","m"),Be("minute",14),re("m",Re),re("mm",Re,Ze),Me(["m","mm"],zt);var G1=Er("Minutes",!1);Q("s",["ss",2],0,"second"),G("second","s"),Be("second",15),re("s",Re),re("ss",Re,Ze),Me(["s","ss"],Or);var X1=Er("Seconds",!1);Q("S",0,0,function(){return~~(this.millisecond()/100)}),Q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Q(0,["SSS",3],0,"millisecond"),Q(0,["SSSS",4],0,function(){return this.millisecond()*10}),Q(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Q(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Q(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Q(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Q(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),G("millisecond","ms"),Be("millisecond",16),re("S",Yn,it),re("SS",Yn,Ze),re("SSS",Yn,gn);var Gn,Mw;for(Gn="SSSS";Gn.length<=9;Gn+="S")re(Gn,Kn);function Z1(p,y){y[wn]=me(("0."+p)*1e3)}for(Gn="S";Gn.length<=9;Gn+="S")Me(Gn,Z1);Mw=Er("Milliseconds",!1),Q("z",0,0,"zoneAbbr"),Q("zz",0,0,"zoneName");function Q1(){return this._isUTC?"UTC":""}function eC(){return this._isUTC?"Coordinated Universal Time":""}var Y=P.prototype;Y.add=zM,Y.calendar=QM,Y.clone=e1,Y.diff=a1,Y.endOf=v1,Y.format=d1,Y.from=f1,Y.fromNow=p1,Y.to=h1,Y.toNow=_1,Y.get=Qe,Y.invalidAt=k1,Y.isAfter=t1,Y.isBefore=r1,Y.isBetween=n1,Y.isSame=o1,Y.isSameOrAfter=i1,Y.isSameOrBefore=s1,Y.isValid=S1,Y.lang=Ow,Y.locale=Sw,Y.localeData=kw,Y.max=SM,Y.min=TM,Y.parsingFlags=O1,Y.set=Te,Y.startOf=m1,Y.subtract=YM,Y.toArray=w1,Y.toObject=E1,Y.toDate=g1,Y.toISOString=u1,Y.inspect=l1,typeof Symbol<"u"&&Symbol.for!=null&&(Y[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Y.toJSON=T1,Y.toString=c1,Y.unix=b1,Y.valueOf=y1,Y.creationData=P1,Y.eraName=R1,Y.eraNarrow=M1,Y.eraAbbr=C1,Y.eraYear=j1,Y.year=su,Y.isLeapYear=J_,Y.weekYear=U1,Y.isoWeekYear=$1,Y.quarter=Y.quarters=K1,Y.month=ou,Y.daysInMonth=z_,Y.week=Y.weeks=tm,Y.isoWeek=Y.isoWeeks=rm,Y.weeksInYear=V1,Y.weeksInWeekYear=z1,Y.isoWeeksInYear=B1,Y.isoWeeksInISOWeekYear=H1,Y.date=Rw,Y.day=Y.days=_m,Y.weekday=mm,Y.isoWeekday=vm,Y.dayOfYear=J1,Y.hour=Y.hours=Sm,Y.minute=Y.minutes=G1,Y.second=Y.seconds=X1,Y.millisecond=Y.milliseconds=Mw,Y.utcOffset=CM,Y.utc=NM,Y.local=DM,Y.parseZone=LM,Y.hasAlignedHourOffset=qM,Y.isDST=FM,Y.isLocal=UM,Y.isUtcOffset=$M,Y.isUtc=bw,Y.isUTC=bw,Y.zoneAbbr=Q1,Y.zoneName=eC,Y.dates=R("dates accessor is deprecated. Use date instead.",Rw),Y.months=R("months accessor is deprecated. Use month instead",ou),Y.years=R("years accessor is deprecated. Use year instead",su),Y.zone=R("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",jM),Y.isDSTShifted=R("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",WM);function tC(p){return He(p*1e3)}function rC(){return He.apply(null,arguments).parseZone()}function Cw(p){return p}var ke=q.prototype;ke.calendar=se,ke.longDateFormat=H,ke.invalidDate=ne,ke.ordinal=fe,ke.preparse=Cw,ke.postformat=Cw,ke.relativeTime=ae,ke.pastFuture=N,ke.set=D,ke.eras=A1,ke.erasParse=I1,ke.erasConvertYear=x1,ke.erasAbbrRegex=D1,ke.erasNameRegex=N1,ke.erasNarrowRegex=L1,ke.months=$_,ke.monthsShort=B_,ke.monthsParse=V_,ke.monthsRegex=K_,ke.monthsShortRegex=Y_,ke.week=X_,ke.firstDayOfYear=em,ke.firstDayOfWeek=Q_,ke.weekdays=lm,ke.weekdaysMin=fm,ke.weekdaysShort=dm,ke.weekdaysParse=hm,ke.weekdaysRegex=ym,ke.weekdaysShortRegex=bm,ke.weekdaysMinRegex=gm,ke.isPM=Em,ke.meridiem=Om;function gu(p,y,E,S){var A=En(),M=f().set(S,y);return A[E](M,p)}function jw(p,y,E){if(u(p)&&(y=p,p=void 0),p=p||"",y!=null)return gu(p,y,E,"month");var S,A=[];for(S=0;S<12;S++)A[S]=gu(p,S,E,"month");return A}function qm(p,y,E,S){typeof p=="boolean"?(u(y)&&(E=y,y=void 0),y=y||""):(y=p,E=y,p=!1,u(y)&&(E=y,y=void 0),y=y||"");var A=En(),M=p?A._week.dow:0,W,ue=[];if(E!=null)return gu(y,(E+M)%7,S,"day");for(W=0;W<7;W++)ue[W]=gu(y,(W+M)%7,S,"day");return ue}function nC(p,y){return jw(p,y,"months")}function oC(p,y){return jw(p,y,"monthsShort")}function iC(p,y,E){return qm(p,y,E,"weekdays")}function sC(p,y,E){return qm(p,y,E,"weekdaysShort")}function aC(p,y,E){return qm(p,y,E,"weekdaysMin")}dt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(p){var y=p%10,E=me(p%100/10)===1?"th":y===1?"st":y===2?"nd":y===3?"rd":"th";return p+E}}),t.lang=R("moment.lang is deprecated. Use moment.locale instead.",dt),t.langData=R("moment.langData is deprecated. Use moment.localeData instead.",En);var Tn=Math.abs;function cC(){var p=this._data;return this._milliseconds=Tn(this._milliseconds),this._days=Tn(this._days),this._months=Tn(this._months),p.milliseconds=Tn(p.milliseconds),p.seconds=Tn(p.seconds),p.minutes=Tn(p.minutes),p.hours=Tn(p.hours),p.months=Tn(p.months),p.years=Tn(p.years),this}function Nw(p,y,E,S){var A=Ir(y,E);return p._milliseconds+=S*A._milliseconds,p._days+=S*A._days,p._months+=S*A._months,p._bubble()}function uC(p,y){return Nw(this,p,y,1)}function lC(p,y){return Nw(this,p,y,-1)}function Dw(p){return p<0?Math.floor(p):Math.ceil(p)}function dC(){var p=this._milliseconds,y=this._days,E=this._months,S=this._data,A,M,W,ue,ye;return p>=0&&y>=0&&E>=0||p<=0&&y<=0&&E<=0||(p+=Dw(Fm(E)+y)*864e5,y=0,E=0),S.milliseconds=p%1e3,A=_t(p/1e3),S.seconds=A%60,M=_t(A/60),S.minutes=M%60,W=_t(M/60),S.hours=W%24,y+=_t(W/24),ye=_t(Lw(y)),E+=ye,y-=Dw(Fm(ye)),ue=_t(E/12),E%=12,S.days=y,S.months=E,S.years=ue,this}function Lw(p){return p*4800/146097}function Fm(p){return p*146097/4800}function fC(p){if(!this.isValid())return NaN;var y,E,S=this._milliseconds;if(p=ce(p),p==="month"||p==="quarter"||p==="year")switch(y=this._days+S/864e5,E=this._months+Lw(y),p){case"month":return E;case"quarter":return E/3;case"year":return E/12}else switch(y=this._days+Math.round(Fm(this._months)),p){case"week":return y/7+S/6048e5;case"day":return y+S/864e5;case"hour":return y*24+S/36e5;case"minute":return y*1440+S/6e4;case"second":return y*86400+S/1e3;case"millisecond":return Math.floor(y*864e5)+S;default:throw new Error("Unknown unit "+p)}}function pC(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+me(this._months/12)*31536e6:NaN}function Sn(p){return function(){return this.as(p)}}var hC=Sn("ms"),_C=Sn("s"),mC=Sn("m"),vC=Sn("h"),yC=Sn("d"),bC=Sn("w"),gC=Sn("M"),wC=Sn("Q"),EC=Sn("y");function TC(){return Ir(this)}function SC(p){return p=ce(p),this.isValid()?this[p+"s"]():NaN}function ii(p){return function(){return this.isValid()?this._data[p]:NaN}}var OC=ii("milliseconds"),kC=ii("seconds"),PC=ii("minutes"),AC=ii("hours"),IC=ii("days"),xC=ii("months"),RC=ii("years");function MC(){return _t(this.days()/7)}var On=Math.round,rs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function CC(p,y,E,S,A){return A.relativeTime(y||1,!!E,p,S)}function jC(p,y,E,S){var A=Ir(p).abs(),M=On(A.as("s")),W=On(A.as("m")),ue=On(A.as("h")),ye=On(A.as("d")),Le=On(A.as("M")),It=On(A.as("w")),kn=On(A.as("y")),Xn=M<=E.ss&&["s",M]||M<E.s&&["ss",M]||W<=1&&["m"]||W<E.m&&["mm",W]||ue<=1&&["h"]||ue<E.h&&["hh",ue]||ye<=1&&["d"]||ye<E.d&&["dd",ye];return E.w!=null&&(Xn=Xn||It<=1&&["w"]||It<E.w&&["ww",It]),Xn=Xn||Le<=1&&["M"]||Le<E.M&&["MM",Le]||kn<=1&&["y"]||["yy",kn],Xn[2]=y,Xn[3]=+p>0,Xn[4]=S,CC.apply(null,Xn)}function NC(p){return p===void 0?On:typeof p=="function"?(On=p,!0):!1}function DC(p,y){return rs[p]===void 0?!1:y===void 0?rs[p]:(rs[p]=y,p==="s"&&(rs.ss=y-1),!0)}function LC(p,y){if(!this.isValid())return this.localeData().invalidDate();var E=!1,S=rs,A,M;return typeof p=="object"&&(y=p,p=!1),typeof p=="boolean"&&(E=p),typeof y=="object"&&(S=Object.assign({},rs,y),y.s!=null&&y.ss==null&&(S.ss=y.s-1)),A=this.localeData(),M=jC(this,!E,S,A),E&&(M=A.pastFuture(+this,M)),A.postformat(M)}var Wm=Math.abs;function ns(p){return(p>0)-(p<0)||+p}function wu(){if(!this.isValid())return this.localeData().invalidDate();var p=Wm(this._milliseconds)/1e3,y=Wm(this._days),E=Wm(this._months),S,A,M,W,ue=this.asSeconds(),ye,Le,It,kn;return ue?(S=_t(p/60),A=_t(S/60),p%=60,S%=60,M=_t(E/12),E%=12,W=p?p.toFixed(3).replace(/\.?0+$/,""):"",ye=ue<0?"-":"",Le=ns(this._months)!==ns(ue)?"-":"",It=ns(this._days)!==ns(ue)?"-":"",kn=ns(this._milliseconds)!==ns(ue)?"-":"",ye+"P"+(M?Le+M+"Y":"")+(E?Le+E+"M":"")+(y?It+y+"D":"")+(A||S||p?"T":"")+(A?kn+A+"H":"")+(S?kn+S+"M":"")+(p?kn+W+"S":"")):"P0D"}var Se=hu.prototype;Se.isValid=IM,Se.abs=cC,Se.add=uC,Se.subtract=lC,Se.as=fC,Se.asMilliseconds=hC,Se.asSeconds=_C,Se.asMinutes=mC,Se.asHours=vC,Se.asDays=yC,Se.asWeeks=bC,Se.asMonths=gC,Se.asQuarters=wC,Se.asYears=EC,Se.valueOf=pC,Se._bubble=dC,Se.clone=TC,Se.get=SC,Se.milliseconds=OC,Se.seconds=kC,Se.minutes=PC,Se.hours=AC,Se.days=IC,Se.weeks=MC,Se.months=xC,Se.years=RC,Se.humanize=LC,Se.toISOString=wu,Se.toString=wu,Se.toJSON=wu,Se.locale=Sw,Se.localeData=kw,Se.toIsoString=R("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",wu),Se.lang=Ow,Q("X",0,0,"unix"),Q("x",0,0,"valueOf"),re("x",Ki),re("X",M_),Me("X",function(p,y,E){E._d=new Date(parseFloat(p)*1e3)}),Me("x",function(p,y,E){E._d=new Date(me(p))});return t.version="2.29.4",r(He),t.fn=Y,t.min=OM,t.max=kM,t.now=PM,t.utc=f,t.unix=tC,t.months=nC,t.isDate=a,t.locale=dt,t.invalid=b,t.duration=Ir,t.isMoment=k,t.weekdays=iC,t.parseZone=rC,t.localeData=En,t.isDuration=_u,t.monthsShort=oC,t.weekdaysMin=aC,t.defineLocale=Ar,t.updateLocale=rM,t.locales=nM,t.weekdaysShort=sC,t.normalizeUnits=ce,t.relativeTimeRounding=NC,t.relativeTimeThreshold=DC,t.calendarFormat=ZM,t.prototype=Y,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t})});var Fv=O(_s=>{"use strict";var WL=_s&&_s.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(_s,"__esModule",{value:!0});_s.DateFormatUtils=void 0;var qv=WL(Lv()),yi=fr(),en=class{static extractOffsetFromDateExpression(t,r){if(!t||typeof t!="string")return null;try{let e=t.match(/new\s+Date\s*\(\s*["']([^"']+)["']\s*\)/);if(!e)return null;let i=e[1].match(new RegExp(`([+-]\\d{2}:\\d{2})|${yi.UTC_TIMEZONE_INDICATOR}$`));return i?i[0]===yi.UTC_TIMEZONE_INDICATOR?yi.DEFAULT_TIMEZONE_OFFSET:i[0]:null}catch(e){return r.error(`${this.LOG_PREFIX}Failed to extract offset from date expression "${t}": ${e.message}.`),null}}static formatDate(t,r,e,n){if(!t||typeof t!="string")return n.warn(`${this.LOG_PREFIX}UTC string must be a non-empty string. Cannot format date.`),t||"";if(!r||typeof r!="string")return n.warn(`${this.LOG_PREFIX}Mask must be a non-empty string. Returning original UTC string: ${t}`),t;try{let i=this.convertLDMLToMomentFormat(r),s;return this.isUTCMask(r)?s=qv.default.utc(t).format(i):e?s=qv.default.utc(t).utcOffset(e).format(i):s=qv.default.utc(t).format(i),s=s.replace(/\[Z\]/g,"Z"),s}catch(i){return n.error(`${this.LOG_PREFIX}Failed to format date "${t}" with mask "${r}": ${i.message}. Returning original UTC string.`),t}}static convertLDMLToMomentFormat(t){let r=t;return r=r.replace(/XXX/g,this.PLACEHOLDER_XXX),r=r.replace(/EEEE/g,this.PLACEHOLDER_EEEE),r=r.replace(/EEE/g,this.PLACEHOLDER_EEE),r=r.replace(/EE/g,this.PLACEHOLDER_EE),r=r.replace(/E/g,this.PLACEHOLDER_E),r=r.replace(/'([^']*)'/g,(e,n)=>n===yi.UTC_TIMEZONE_INDICATOR?this.PLACEHOLDER_LITERAL_Z:`[${n}]`),r=r.replace(new RegExp(yi.UTC_TIMEZONE_INDICATOR,"g"),this.PLACEHOLDER_LITERAL_Z),r=r.replace(/yyyy/g,"YYYY"),r=r.replace(/yy/g,"YY"),r=r.replace(/dd/gi,"DD"),r=r.replace(/\b[dD]\b/g,"D"),r=r.replace(/sss/g,"ss"),r=r.replace(new RegExp(this.PLACEHOLDER_EEEE,"g"),"dddd"),r=r.replace(new RegExp(this.PLACEHOLDER_EEE,"g"),"ddd"),r=r.replace(new RegExp(this.PLACEHOLDER_EE,"g"),"ddd"),r=r.replace(new RegExp(this.PLACEHOLDER_E,"g"),"ddd"),r=r.replace(new RegExp(this.PLACEHOLDER_XXX,"g"),"Z"),r=r.replace(new RegExp(this.PLACEHOLDER_LITERAL_Z,"g"),"[Z]"),r}static isUTCMask(t){return!t||typeof t!="string"?!1:t.endsWith(yi.UTC_TIMEZONE_INDICATOR)||t.endsWith(`'${yi.UTC_TIMEZONE_INDICATOR}'`)}};_s.DateFormatUtils=en;en.PLACEHOLDER_XXX="\uE000";en.PLACEHOLDER_EEEE="\uE001";en.PLACEHOLDER_EEE="\uE002";en.PLACEHOLDER_EE="\uE003";en.PLACEHOLDER_E="\uE004";en.PLACEHOLDER_LITERAL_Z="\uE005";en.LOG_PREFIX="DateFormatUtils: "});var Wv=O(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.isWorkflowError=$T;hl.toErrorString=$L;var UL=Oe();function $T(o){return!!o&&typeof o=="object"&&"name"in o&&"title"in o&&"detail"in o&&"type"in o&&"status"in o}function $L(o){let t="Unknown error";if($T(o)){let r=`${o.name}: ${o.title}`,e="instance"in o&&o.instance?`. ${o.instance}`:"",n="detail"in o&&o.detail?`. ${o.detail}`:"";t=`${r}${e}${n}`}else if(o&&typeof o=="object"&&"name"in o&&"message"in o){let r=`${o.name}: ${o.message}`,e="stack"in o&&o.stack?`. ${o.stack}`:"";t=`${r}${e}`}else t=(0,UL.getErrorMessage)(o);return t}});var vs=O(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.GenericUtils=tn.BINARY_DATA_PLACEHOLDER=void 0;tn.findBlobAttachmentRefs=BL;tn.replaceBinaryWithPlaceholder=BT;tn.redactSensitivePatches=HL;var ms=Oe();function BL(o,t=8){let r=[],e=new WeakSet,n=(i,s)=>{if(!(s>t)&&!(!i||typeof i!="object")&&!e.has(i)){if(e.add(i),(0,ms.isBlobFileReference)(i)){r.push({ID:i.ID,FullName:i.FullName,MimeType:i.MimeType});return}if(Array.isArray(i)){for(let c of i)n(c,s+1);return}for(let c of Object.values(i))n(c,s+1)}};return n(o,0),r}tn.BINARY_DATA_PLACEHOLDER="[Binary Data]";function BT(o,t=8){let r=new WeakSet,e=(n,i)=>{if(n instanceof Uint8Array)return tn.BINARY_DATA_PLACEHOLDER;if(i>=t||!n||typeof n!="object"||r.has(n))return n;if(r.add(n),Array.isArray(n)){let u=!1,a=n.map(l=>{let d=e(l,i+1);return d!==l&&(u=!0),d});return u?a:n}let s=!1,c={};for(let[u,a]of Object.entries(n)){let l=e(a,i+1);l!==a&&(s=!0),c[u]=l}return s?c:n};return e(o,0)}function HL(o){if(!o?.patches?.length)return o;let t=o.patches.map(r=>{if(!r||typeof r!="object")return r;let e=r,n=typeof e.path=="string"?e.path:"",i=n.split("/").slice(1).map(u=>u.replace(/~1/g,"/").replace(/~0/g,"~")),s=i[i.length-1]??"",c=i.slice(0,-1).findIndex(ms.isSensitiveKey);return c!==-1?{op:"add",path:n.split("/",c+2).join("/"),value:ms.REDACTED_STRING}:"value"in e?(0,ms.isSensitiveKey)(s)?{...e,value:ms.REDACTED_STRING}:{...e,value:(0,ms.redactSensitiveValues)(BT(e.value))}:r});return{...o,patches:t}}var Uv=class{static safelyExtractProperty(t,r){if(t&&typeof t=="object"&&t!==null&&!Array.isArray(t)){let e=t;if(r in e)return e[r]}}static parseNumericValue(t){if(typeof t=="number")return isNaN(t)?void 0:t;if(typeof t=="string"){let r=t.trim();if(r==="")return;let e=Number(r);return isNaN(e)?void 0:e}}};tn.GenericUtils=Uv});var $v=O(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.InternalServiceDetector=void 0;var _l=class{static isInternalServiceUrl(t){if(!t)return!1;try{let r=new URL(t);return this.INTERNAL_DOMAINS.some(e=>r.hostname.endsWith(e))}catch{return!1}}};ml.InternalServiceDetector=_l;_l.INTERNAL_DOMAINS=[".uipath.com",".uipath.io"]});var za=O(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.ResourceOverrideResolver=void 0;var rn=fr(),Bv=class{static getOverriddenValue(t,r,e,n,i,s){if(!t.resourceOverwrites||Object.keys(t.resourceOverwrites).length===0)return r.info(`Resource overwrites is empty, returning defaultResourceKey: ${i}`),i;let c=l=>t.resourceOverwrites[l]?.[n];if(s&&s.trim()!==""){let l=`${e}.${s}`,d=c(l);if(d)return d}let u=`${e}.${i}`,a=c(u);return a||(r.info(`No resource overrides found, returning defaultResourceKey: ${i}`),i)}static getOrchestratorOverrides(t,r,e,n,i){let s=this.getResourcePrefix(e);if(!s)return;let c;if(e.includes(rn.ORCHESTRATOR_JOBS_ENDPOINT)){if(c=i?.ReleaseName,!c){r.info("No ReleaseName found in body parameters for Jobs endpoint orchestrator context resolution");return}}else if(c=n.id,!c){r.info("No resource path parameter found for orchestrator context resolution");return}let u=`${s}.${c}`,a=t.resourceOverwrites?.[u],l;return a?l={resourceName:a.name,folderKey:a.folderKey,folderPath:a.folderPath}:(l={folderKey:t.processConfig?.folderKey},r.info(`Fallback orchestrator context: ${JSON.stringify(l)}`)),e.includes(rn.ORCHESTRATOR_JOBS_ENDPOINT)&&(l.source=rn.API_WORKFLOW_SOURCE),l}static getSolutionResourceOverrides(t,r,e,n={},i=[]){let s=t.resourceOverwrites;if(!s||Object.keys(s).length===0)return;let c={};for(let u of i){let l=(u.location==="query"?e:n)?.[u.name];if(!l)continue;let d=this.findSolutionResourceOverride(s,u.resourceKind,l);d&&(c[u.name]={name:d.name,folderKey:d.folderKey,location:u.location})}if(Object.keys(c).length===0){r.info("No solution-resource field matched a configured resource override");return}return c}static findSolutionResourceOverride(t,r,e){let n=t[`${r}.${e}`];if(n)return n;let i=r.toLowerCase(),s=`.${e}`;return Object.entries(t).find(([c])=>c.endsWith(s)&&c.slice(0,-s.length).toLowerCase()===i)?.[1]}static getPropertyBindings(t,r,e){if(!t.resourceOverwrites||Object.keys(t.resourceOverwrites).length===0){r.info(`Resource overwrites is empty, no property bindings for eventType: ${e}`);return}let n=`Property.${e}`,i=t.resourceOverwrites[n];if(i&&typeof i=="object")return i;r.info(`No property bindings found for eventType: ${e}`)}static getResourcePrefix(t){if(t.includes(rn.ORCHESTRATOR_ASSETS_ENDPOINT)||t.includes(rn.ORCHESTRATOR_CREDENTIALS_ENDPOINT))return rn.ORCHESTRATOR_ASSET_RESOURCE_PREFIX;if(t.includes(rn.ORCHESTRATOR_QUEUE_ITEMS_ENDPOINT))return rn.ORCHESTRATOR_QUEUE_ITEMS_RESOURCE_PREFIX;if(t.includes(rn.ORCHESTRATOR_JOBS_ENDPOINT))return rn.ORCHESTRATOR_JOB_RESOURCE_PREFIX}};vl.ResourceOverrideResolver=Bv});var zv=O(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.WorkflowErrorBuilder=void 0;var VL=Oe(),Hv=qe(),zL=Wv(),Vv=class{setType(t){return this.type=t,this}setStatus(t){return this.status=t,this}setInstance(t){return this.instance=t,this}setTitle(t){return this.title=this.title?`${t}: ${this.title}`:t,this}setDetail(t){return this.detail=t,this}setData(t){return this.data=t,this}setOriginatingTaskName(t){return this.originatingTaskName||(this.originatingTaskName=t),this}fromWorkflowError(t){return this.title=t.title,this.detail=t.detail,this.status=t.status,this.type=t.type,this.instance=t.instance,this.data=t.data?t.data:void 0,this.originatingTaskName=t.originatingTaskName,this}fromError(t){return(0,zL.isWorkflowError)(t)?(this.title=t.title,this.detail=t.detail,this.status=t.status,this.type=t.type,this.instance=t.instance,this.data=t.data?t.data:void 0,this.originatingTaskName=t.originatingTaskName,this):(this.title=(0,VL.getErrorMessage)(t),this.detail=t instanceof Error?`${t.message}. ${t.stack}`:"",this.status=Hv.WorkflowErrorStatus.INTERNAL_SERVER_ERROR,this.type=Hv.WorkflowErrorType.RUNTIME_ERROR,this.instance="",this)}build(){return new Hv.WorkflowError(this.title,this.status,this.type,this.instance,this.detail,this.data,this.originatingTaskName)}};yl.WorkflowErrorBuilder=Vv});var KT=O(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.DEFAULT_MAX_RETRY_AFTER_MS=ze.DEFAULT_EXPONENTIAL_MULTIPLIER=ze.DEFAULT_MAX_RETRY_ATTEMPTS=void 0;ze.toDurationMs=Gt;ze.resolveRetryPolicy=KL;ze.validateRetryPolicy=Yv;ze.getRetryLimits=JL;ze.toBackoffRetryConfig=zT;ze.getMaxDelayMs=Kv;ze.computeBaseDelayMs=Jv;ze.applyJitterMs=Ka;ze.computeRetryDelayMs=GL;ze.getRetryAfterDelayMs=YT;ze.resolveRetryDelayMs=XL;ze.matchesErrorFilter=ZL;var fo=Oe(),bl=tt(),gl=qe(),VT=zv();ze.DEFAULT_MAX_RETRY_ATTEMPTS=3;ze.DEFAULT_EXPONENTIAL_MULTIPLIER=2;ze.DEFAULT_MAX_RETRY_AFTER_MS=5*60*1e3;var YL=new Set(["days","hours","minutes","seconds","milliseconds"]),HT=Object.values(fo.BackoffStrategy);function Gt(o){if(o==null)return;let t;if(typeof o=="number"){if(!Number.isFinite(o)||o<0)throw new Error(`Invalid duration: ${String(o)} (expected a finite, non-negative number of milliseconds)`);t=o}else if(typeof o=="string")t=fo.TimeDurationUtils.parseIso8601Duration(o);else if(typeof o=="object"&&!Array.isArray(o)){let r=Object.entries(o);if(r.length===0)throw new Error("Invalid duration: {} (at least one of days, hours, minutes, seconds, milliseconds is required)");for(let[e,n]of r){if(!YL.has(e))throw new Error(`Invalid duration component '${e}' (expected one of days, hours, minutes, seconds, milliseconds)`);if(typeof n!="number"||!Number.isFinite(n)||n<0)throw new Error(`Invalid duration component '${e}': ${String(n)} (expected a finite, non-negative number)`)}t=fo.TimeDurationUtils.parseDurationObject(o)}else throw new Error(`Invalid duration format: ${String(o)}`);return t}function KL(o,t,r){if(typeof o!="string")return Yv(o,r),o;let e=t?.use?.retries,n=e&&Object.prototype.hasOwnProperty.call(e,o)?e[o]:void 0;if(!ys(n))throw new VT.WorkflowErrorBuilder().setType(gl.WorkflowErrorType.CONFIGURATION_ERROR).setStatus(gl.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,bl.t)(bl.ErrorKeys.RETRY_POLICY_NOT_FOUND,{policyName:o,taskName:r})).setInstance("TryCatchTaskHandler").setData({taskName:r,policyName:o}).build();return Yv(n,r),n}function Yv(o,t){if(!ys(o))throw lo(t,`retry policy must be an object, got ${Ya(o)}`);let r=(a,l)=>{try{a()}catch(d){throw lo(t,`${l}: ${d instanceof Error?d.message:String(d)}`)}};r(()=>Gt(o.delay),"delay");for(let a of["when","exceptWhen"]){let l=o[a];if(l!==void 0&&typeof l!="string")throw lo(t,`${a} must be an expression string, got ${Ya(l)}`)}let e=(a,l)=>{if(a!==void 0){if(!ys(a))throw lo(t,`${l} must be an object, got ${Ya(a)}`);return a}},n=e(o.limit,"limit"),i=e(n?.attempt,"limit.attempt");r(()=>Gt(n?.duration),"limit.duration"),r(()=>Gt(i?.duration),"limit.attempt.duration");let s=i?.count;if(s!==void 0&&(typeof s!="number"||!Number.isInteger(s)||s<0))throw lo(t,`limit.attempt.count must be a non-negative integer, got ${Ya(s)}`);let c=e(o.jitter,"jitter");if(c){let a=0,l=0;if(r(()=>{a=Gt(c.from)??0},"jitter.from"),r(()=>{l=Gt(c.to)??0},"jitter.to"),a>l)throw lo(t,"jitter.from must be less than or equal to jitter.to")}let u=e(o.backoff,"backoff");if(u){if(HT.filter(d=>d in u).length!==1)throw lo(t,`backoff must define exactly one of ${HT.join(", ")}`);e(u.constant,"backoff.constant"),e(u.linear,"backoff.linear");let l=e(u.exponential,"backoff.exponential");if(l){let d=l.multiplier;if(d!==void 0&&(typeof d!="number"||!Number.isFinite(d)||d<=0))throw lo(t,`backoff.exponential.multiplier must be a positive number, got ${Ya(d)}`);r(()=>Gt(l.maxDelay),"backoff.exponential.maxDelay")}}}function JL(o){return{maxAttempts:o.limit?.attempt?.count??ze.DEFAULT_MAX_RETRY_ATTEMPTS,maxDurationMs:Gt(o.limit?.duration)}}function zT(o){let t=o.backoff?.exponential,r=fo.BackoffStrategy.CONSTANT;return o.backoff?.linear!==void 0?r=fo.BackoffStrategy.LINEAR:t!==void 0&&(r=fo.BackoffStrategy.EXPONENTIAL),{statusCodes:[],maxRetries:o.limit?.attempt?.count??ze.DEFAULT_MAX_RETRY_ATTEMPTS,delayMs:Gt(o.delay)??0,backoff:{strategy:r,multiplier:t?.multiplier??ze.DEFAULT_EXPONENTIAL_MULTIPLIER,maxDelayMs:Gt(t?.maxDelay)}}}function Kv(o){return Gt(o.backoff?.exponential?.maxDelay)}function Jv(o,t){let r=Math.max(1,Math.floor(t)),e=fo.HttpRetryPolicy.calculateDelay(zT(o),r),n=Kv(o);return n!==void 0&&e>n?n:e}function Ka(o,t,r=Math.random){let e=t;if(o.jitter){let n=Gt(o.jitter.from)??0,i=Gt(o.jitter.to)??n;e+=n+r()*Math.max(0,i-n)}return Math.max(0,Math.round(e))}function GL(o,t,r=Math.random){return Ka(o,Jv(o,t),r)}function YT(o){let t=ys(o.data)?o.data.cause:void 0,r=ys(t)?t.headers:void 0;if(!ys(r))return;let e=fo.HttpRetryPolicy.extractRetryAfterDelay(r);return e!==void 0&&Number.isFinite(e)&&e>=0?e:void 0}function XL(o,t,r,e=Math.random){let n=Jv(o,t),i=YT(r);if(i===void 0)return{delayMs:Ka(o,n,e)};let s=Kv(o)??ze.DEFAULT_MAX_RETRY_AFTER_MS,c=Math.min(i,s);return c<=n?{delayMs:Ka(o,n,e)}:{delayMs:Ka(o,c,e),retryAfterMs:i,...i>s?{retryAfterCapMs:s}:{}}}function ZL(o,t){return t?!(t.type!==void 0&&t.type!==o.type||t.status!==void 0&&Number(t.status)!==Number(o.status)||t.instance!==void 0&&t.instance!==o.instance||t.title!==void 0&&t.title!==o.title||t.details!==void 0&&t.details!==o.detail):!0}function ys(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}function Ya(o){return o===null?"null":Array.isArray(o)?"an array":typeof o=="object"?"an object":`${typeof o} ${JSON.stringify(o)}`}function lo(o,t){return new VT.WorkflowErrorBuilder().setType(gl.WorkflowErrorType.CONFIGURATION_ERROR).setStatus(gl.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,bl.t)(bl.ErrorKeys.INVALID_RETRY_POLICY,{taskName:o,reason:t})).setInstance("TryCatchTaskHandler").setData({taskName:o,reason:t}).build()}});var JT=O(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.RetryUtils=void 0;var QL=Oe(),Gv=class{static getRetryDelays(t){return QL.HttpRetryPolicy.getRetryDelays(t)}};wl.RetryUtils=Gv});var Ce=O(Dt=>{"use strict";var eq=Dt&&Dt.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),po=Dt&&Dt.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&eq(t,o,r)};Object.defineProperty(Dt,"__esModule",{value:!0});po(Fv(),Dt);po(Wv(),Dt);po(vs(),Dt);po($v(),Dt);po(za(),Dt);po(KT(),Dt);po(JT(),Dt);po(zv(),Dt)});var GT=O(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.WorkflowResponse=bs.WorkflowJobStatus=void 0;var tq=Ce(),El;(function(o){o.Successful="Successful",o.Faulted="Faulted"})(El||(bs.WorkflowJobStatus=El={}));var Xv=class{constructor(t,r){this.errorMessage=null,this.status=t?El.Faulted:El.Successful,r==null?this.data=null:this.data=typeof r!="object"||Array.isArray(r)?{result:r}:r,t&&(this.errorMessage=r?(0,tq.toErrorString)(r):"The job was marked as failed.")}};bs.WorkflowResponse=Xv});var qe=O(at=>{"use strict";var rq=at&&at.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),Xt=at&&at.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&rq(t,o,r)};Object.defineProperty(at,"__esModule",{value:!0});Xt(oT(),at);Xt(sT(),at);Xt(xv(),at);Xt(AT(),at);Xt(IT(),at);Xt(RT(),at);Xt(al(),at);Xt(Mv(),at);Xt(qT(),at);Xt(FT(),at);Xt(WT(),at);Xt(Va(),at);Xt(GT(),at)});var Qv=O(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.AbstractExpressionHandler=void 0;var XT=fr(),Tl=tt(),ZT=qe(),nq=Ce(),Zv=class{constructor(){}static getInstance(){throw new Error("getInstance method must be implemented by subclasses")}async setVariables(t){await this.withErrorHandling(()=>this.setVariablesInternal(t,!1),`Error setting variables: ${JSON.stringify(t)}`)}async mergeVariableValues(t){await this.withErrorHandling(()=>this.setVariablesInternal(t,!0),`Error merging variable values: ${JSON.stringify(t)}`)}async deleteVariables(t){await this.withErrorHandling(()=>this.deleteVariablesInternal(t),`Error deleting variables: ${JSON.stringify(t)}`)}async setInputOutput(t,r){return await this.withErrorHandling(async()=>{let e;return r&&typeof r=="string"&&(e=this.toSanitizedExpression(r)),await this.setInputOutputInternal(t,e)},`Error setting input/output: ${r||"result value"}`)}async updateContext(t,r){await this.withErrorHandling(()=>this.updateWorkflowContextInternal(t,r),`Error evaluating and setting context: ${t}`)}async evaluateConditionExpression(t){return!!await this.withErrorHandling(async()=>!!await this.evaluateDataExpression(t),`Error evaluating condition expression: ${t}`)}async evaluateDataExpression(t){if(!t)return t;try{let r=new Map;if(this.collectExpressions(t,r),r.size===0)return t;let e=await this.evaluateSanitizedExpressionsInternal(new Set(r.values()));return this.buildResolvedObject(t,e,r)}catch(r){throw this.getWorkflowError(r,"Error evaluating data expression")}}async resolvePlaceHolder(t,r){try{let e=await this.evaluateDataExpression(t);if(typeof e!="string")throw new Error((0,Tl.t)(Tl.ErrorKeys.TEMPLATE_NON_STRING,{template:t,value:String(e)}));return/\{[^}]{1,100}\}/.test(e)?e.replace(/{([^}]{1,100})}/g,(i,s)=>r[s]!==void 0?String(r[s]):`{${s}}`):e}catch(e){throw this.getWorkflowError(e,"Error resolving placeholder in template string")}}registerHostFunction(t,r){}isExpressionString(t){if(!t||typeof t!="string")return!1;let r=t.trim();return r.startsWith(XT.EXPR_PREFIX)&&r.endsWith(XT.EXPR_SUFFIX)}toSanitizedExpression(t){if(!this.isExpressionString(t))return;let r=t.trim().slice(2,-1).trim();return r&&r.startsWith("{")&&r.endsWith("}")&&(r=`(${r})`),r}async withErrorHandling(t,r){try{return await t()}catch(e){throw this.getWorkflowError(e,r)}}getWorkflowError(t,r){return new nq.WorkflowErrorBuilder().fromError(t).setType(ZT.WorkflowErrorType.EXPRESSION_ERROR).setStatus(ZT.WorkflowErrorStatus.BAD_REQUEST).setTitle(r||(0,Tl.t)(Tl.ErrorKeys.EXPRESSION_ERROR)).build()}collectExpressions(t,r){if(!QT(t))if(typeof t=="string"){let e=this.toSanitizedExpression(t);e&&r.set(t,e)}else Array.isArray(t)?t.forEach(e=>this.collectExpressions(e,r)):typeof t=="object"&&t!==null&&Object.values(t).forEach(e=>this.collectExpressions(e,r))}buildResolvedObject(t,r,e){if(typeof t=="string"){let n=e.get(t);return n&&r.has(n)?r.get(n):t}else{if(Array.isArray(t))return t.map(n=>this.buildResolvedObject(n,r,e));if(QT(t))return t;if(typeof t=="object"&&t!==null){let n={};for(let[i,s]of Object.entries(t))n[i]=this.buildResolvedObject(s,r,e);return n}}return t}};Sl.AbstractExpressionHandler=Zv;function QT(o){return ArrayBuffer.isView(o)||o instanceof ArrayBuffer||typeof Blob<"u"&&o instanceof Blob}});var eS=O(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.HostCallGate=nn.MAX_CONCURRENT_HOST_CALLS=nn.MAX_HOST_CALLS_PER_SCOPE=void 0;nn.MAX_HOST_CALLS_PER_SCOPE=1e3;nn.MAX_CONCURRENT_HOST_CALLS=6;var ey=class{constructor(t=nn.MAX_HOST_CALLS_PER_SCOPE,r=nn.MAX_CONCURRENT_HOST_CALLS){this.maxCallsPerScope=t,this.maxConcurrent=r,this.callCount=0,this.inFlight=0,this.waiters=[]}get maxCalls(){return this.maxCallsPerScope}reset(){this.callCount=0;let t=this.waiters;this.waiters=[];for(let r of t)r.abort(new Error("Host call aborted: execution scope was reset."))}tryConsumeBudget(){return this.callCount>=this.maxCallsPerScope?!1:(this.callCount++,!0)}async acquire(){if(this.inFlight<this.maxConcurrent){this.inFlight++;return}await new Promise((t,r)=>this.waiters.push({grant:t,abort:r}))}release(){let t=this.waiters.shift();t?t.grant():this.inFlight--}};nn.HostCallGate=ey});var Pl=O(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.BaseWorkerExpressionHandler=jr.HOST_CALL_CALLER_TIMEOUT_MS=jr.HOST_CALL_TIMEOUT_MS=void 0;var Ja=Oe(),Lt=tt(),Ol=Ce(),oq=Qv(),iq=eS();jr.HOST_CALL_TIMEOUT_MS=9e4;jr.HOST_CALL_CALLER_TIMEOUT_MS=jr.HOST_CALL_TIMEOUT_MS+1e4;var kl=class o extends oq.AbstractExpressionHandler{constructor(){super(...arguments),this.worker=null,this.workerUrl=null,this.pendingRequests=new Map,this.hostFunctions=new Map,this.workerMessageHandler=null,this.workerErrorHandler=null,this.hostCallGate=new iq.HostCallGate}registerHostFunction(t,r){this.hostFunctions.set(t,r),this.hostCallGate.reset()}get diffEnabled(){return!0}async initWorker(){if(!this.worker){this.cleanup();try{let{worker:t,workerUrl:r}=this.buildWorker(this.getWorkerScript());this.worker=t,this.workerUrl=r,this.setupWorkerListeners(),await new Promise(e=>setTimeout(e,10))}catch(t){throw new Ol.WorkflowErrorBuilder().fromError(t).setInstance(this.instanceName).setTitle((0,Lt.t)(Lt.ErrorKeys.INTERNAL_ERROR)).build()}}}cleanup(){this.hostCallGate.reset();for(let[,t]of this.pendingRequests)t.timeoutId&&clearTimeout(t.timeoutId),t.reject(new Error("Worker terminated during cleanup"));this.pendingRequests.clear(),this.worker&&this.workerMessageHandler&&this.workerErrorHandler&&(this.worker.removeEventListener?(this.worker.removeEventListener("message",this.workerMessageHandler),this.worker.removeEventListener("error",this.workerErrorHandler)):this.worker.off&&(this.worker.off("message",this.workerMessageHandler),this.worker.off("error",this.workerErrorHandler))),this.worker&&(this.worker.terminate(),this.worker=null),this.workerMessageHandler=null,this.workerErrorHandler=null,this.workerUrl&&(URL.revokeObjectURL(this.workerUrl),this.workerUrl=null)}dispose(){this.cleanup()}setupWorkerListeners(){this.worker&&(this.workerMessageHandler=t=>{let e=t.data??t;if(e.kind==="hostCall"){this.handleHostCall(e);return}let{id:n}=e,i=this.pendingRequests.get(n);if(!i){console.error(`No pending worker request for ID: ${n}`);return}if(this.pendingRequests.delete(n),i.timeoutId&&clearTimeout(i.timeoutId),e.success)i.resolve(e);else{let s=e.error,c=new Error((0,Ja.getErrorMessage)(s));c.name=s.name||c.name,c.stack=s.stack,s.code&&(c.code=s.code),s.cause&&(c.cause=s.cause);let u=new Ol.WorkflowErrorBuilder().fromError(c).setInstance(this.instanceName).setTitle((0,Lt.t)(Lt.ErrorKeys.WORKER_OPERATION_FAILED)).build();e.userLogs!==void 0&&(u.userLogs=e.userLogs),i.reject(u)}},this.workerErrorHandler=t=>{let r=t,e=r.error??new Error(r.message??(0,Ja.getErrorMessage)(t)),n=new Ol.WorkflowErrorBuilder().fromError(e).setInstance(this.instanceName).setTitle((0,Lt.t)(Lt.ErrorKeys.WORKER_ERROR)).build();for(let[,i]of this.pendingRequests)i.timeoutId&&clearTimeout(i.timeoutId),i.reject(n);this.pendingRequests.clear()},this.worker.addEventListener?(this.worker.addEventListener("message",this.workerMessageHandler),this.worker.addEventListener("error",this.workerErrorHandler)):this.worker.on&&(this.worker.on("message",this.workerMessageHandler),this.worker.on("error",this.workerErrorHandler)))}validateHostCall(t){let r=this.hostFunctions.get(t);return r?this.hostCallGate.tryConsumeBudget()?{ok:!0,impl:r}:{ok:!1,error:{name:"Error",message:`Host function call limit exceeded (max ${this.hostCallGate.maxCalls} per workflow run).`}}:{ok:!1,error:{name:"Error",message:`Unknown host function: ${t}`}}}async handleHostCall(t){let r=(i,s,c)=>{this.worker?.postMessage({mode:"hostCallResult",callId:t.callId,success:i,result:s,error:c})},e=this.validateHostCall(t.fn);if(!e.ok){r(!1,void 0,e.error);return}let n=e.impl;try{await this.hostCallGate.acquire()}catch(i){r(!1,void 0,{name:"Error",message:(0,Ja.getErrorMessage)(i)});return}try{let i=jr.HOST_CALL_TIMEOUT_MS,s=await sq(n(t.args),i,`Host function '${t.fn}' timed out after ${i}ms.`);r(!0,s)}catch(i){r(!1,void 0,{name:i?.name,message:(0,Ja.getErrorMessage)(i)})}finally{this.hostCallGate.release()}}async postWorkerMessage(t,r,e){return await this.initWorker(),new Promise((n,i)=>{let s=(0,Ja.getNewGuid)(),c;if(e){c=setTimeout(()=>{this.pendingRequests.delete(s);let a=new Ol.WorkflowErrorBuilder().fromError(new Error((0,Lt.t)(Lt.ErrorKeys.EXPRESSION_TIMEOUT,{operation:r,timeoutMs:e}))).setInstance(this.instanceName).setTitle((0,Lt.t)(Lt.ErrorKeys.EXPRESSION_TIMEOUT,{operation:r,timeoutMs:e})).build();i(a)},e);let u=c;typeof u.unref=="function"&&u.unref()}this.pendingRequests.set(s,{resolve:n,reject:i,timeoutId:c}),this.worker.postMessage({id:s,...t})})}resolveExpressionTimeout(t){return[...t].some(e=>e.includes("$helpers"))?jr.HOST_CALL_CALLER_TIMEOUT_MS:o.DATA_EXPRESSION_TIMEOUT_MS}async evaluateSanitizedExpressionsInternal(t){return(await this.postWorkerMessage({mode:"evaluateSanitizedExpressions",expressions:t},"Expressions evaluation(s) failed",this.resolveExpressionTimeout(t))).result}async setVariablesInternal(t,r){await this.postWorkerMessage({mode:"setVariables",variables:t,mergeObjects:r},"Setting variables failed",1e4)}async deleteVariablesInternal(t){await this.postWorkerMessage({mode:"deleteVariables",variableNames:t},"Deleting variables failed",1e4)}async setInputOutputInternal(t,r){return(await this.postWorkerMessage({mode:"setInputOutput",result:t,sanitizedExpression:r},"Setting input/output variables failed",1e4)).result}async updateWorkflowContextInternal(t,r){await this.postWorkerMessage({mode:"updateWorkflowContext",contextExpression:t,output:r},"Context evaluation and update failed",1e4)}async evaluateScript(t,r,e){let n=await this.postWorkerMessage({mode:"executeScript",script:t,taskName:r,timeoutMs:e},"Script execution failed",e);return{result:n.result,userLogs:n.userLogs}}async getContextDiff(){if(!this.diffEnabled)throw new Error((0,Lt.t)(Lt.ErrorKeys.GET_CONTEXT_DIFF_NOT_IMPL,{handler:this.instanceName}));return(await this.postWorkerMessage({mode:"getContextDiff"},"Context diff operation failed")).result}async getWorkflowInputDiff(){if(!this.diffEnabled)throw new Error((0,Lt.t)(Lt.ErrorKeys.GET_WORKFLOW_INPUT_DIFF_NOT_IMPL,{handler:this.instanceName}));return(await this.postWorkerMessage({mode:"getWorkflowInputDiff"},"Workflow input diff operation failed")).result}};jr.BaseWorkerExpressionHandler=kl;kl.DATA_EXPRESSION_TIMEOUT_MS=3e4;async function sq(o,t,r){let e,n=new Promise((i,s)=>{e=setTimeout(()=>s(new Error(r)),t),e.unref?.()});o.catch(()=>{});try{return await Promise.race([o,n])}finally{e!==void 0&&clearTimeout(e)}}});var ty=O(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.REDACT_SECRETS_SNIPPET=void 0;var tS=Oe();Al.REDACT_SECRETS_SNIPPET=`
|
|
88
88
|
const SENSITIVE_KEY_PATTERNS = ${JSON.stringify(tS.SENSITIVE_KEY_PATTERNS)};
|
|
89
89
|
const REDACTED = ${JSON.stringify(tS.REDACTED_STRING)};
|
|
90
90
|
const redactSecrets = (value, depth) => {
|
|
@@ -865,11 +865,11 @@ const redactSecrets = (value, depth) => {
|
|
|
865
865
|
handleMessage(e.data);
|
|
866
866
|
};
|
|
867
867
|
}
|
|
868
|
-
`}constructor(){super()}static getInstance(){return o.instance||(o.instance=new o),o.instance}static async reset(){o.instance&&(o.instance.cleanup(),await new Promise(t=>setTimeout(t,100)))}get instanceName(){return o.INSTANCE_NAME}getWorkerScript(){return o.EXPRESSION_EVALUATOR}buildWorker(t){if(ry)return{worker:new ry(t,{eval:!0}),workerUrl:null};if(typeof Worker<"u"&&typeof Blob<"u"&&typeof URL<"u"&&typeof URL.createObjectURL=="function"){let r=new Blob([t],{type:"application/javascript"}),e=URL.createObjectURL(r);return{worker:new Worker(e),workerUrl:e}}throw new Error("No worker implementation available")}};xl.JsExpressionHandler=Il;Il.INSTANCE_NAME="JsExpressionHandler"});var oy=O(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.ExpressionLanguage=void 0;Ga.getExpressionHandler=dq;var rS=qe(),uq=Ce(),lq=ny(),Rl;(function(o){o.JavaScript="javascript"})(Rl||(Ga.ExpressionLanguage=Rl={}));function dq(o,t){let r=o.evaluate?.language;switch(r){case Rl.JavaScript:return t?.expressionHandlers?.[Rl.JavaScript]??lq.JsExpressionHandler.getInstance();default:throw new uq.WorkflowErrorBuilder().setType(rS.WorkflowErrorType.VALIDATION_ERROR).setStatus(rS.WorkflowErrorStatus.BAD_REQUEST).setTitle(`Unsupported expression language: ${r}`).setDetail("Only JavaScript expressions are supported.").setInstance("expression-handler-factory").build()}}});var nS=O(hr=>{"use strict";var fq=hr&&hr.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),Ml=hr&&hr.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&fq(t,o,r)};Object.defineProperty(hr,"__esModule",{value:!0});hr.ExpressionLanguage=void 0;Ml(Qv(),hr);Ml(Pl(),hr);var pq=oy();Object.defineProperty(hr,"ExpressionLanguage",{enumerable:!0,get:function(){return pq.ExpressionLanguage}});Ml(ny(),hr);Ml(ty(),hr)});var iS=O(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.TelemetryDataFormatter=void 0;var bi=qe(),oS=Ce(),jn={applicationName:"UiPath.ApiWorkflows",events:{workflowEvent:"ApiWF.Workflow",taskEvent:"ApiWF.Task",errorEvent:"ApiWF.error"},status:{completed:"completed",faulted:"faulted",cancelled:"cancelled",retrying:"retrying"},responseCode:{ok:"200",error:"500"}},iy=class{constructor(t,r,e,n,i,s,c,u,a,l,d,f){this.customDimensions={ApplicationName:jn.applicationName,CloudOrganizationId:t,CloudTenantId:r,CloudUserId:i??"",SubscriptionType:s??"",ConsumerId:c??"",ProjectId:u??"",SolutionId:a??"",Designtime:l===!0?"true":"false"},e&&(this.customDimensions.ConsumerRunId=e,this.customDimensions.TraceId=e),n&&(this.customDimensions.ParentSpanId=n),d&&(this.customDimensions.FolderKey=d),f&&(this.customDimensions.JobId=f)}formatWorkflowLog(t,r,e){if(t!==bi.WorkflowEvent.WORKFLOW_STARTED)try{let n={...this.customDimensions,WorkflowRunId:r.workflowRunId,ExecutionStartTime:r.executionStartTimeMs?new Date(r.executionStartTimeMs).toISOString():"",ExecutionEndTime:r.executionEndTimeMs?new Date(r.executionEndTimeMs).toISOString():"",ExecutionTime:r.executionTimeMs?r.executionTimeMs.toString():"0",Language:r.language,ExternalExecutionTime:r.externalExecutionTimeMs?r.externalExecutionTimeMs.toString():"0",SystemExecutionTime:r.systemExecutionTimeMs?r.systemExecutionTimeMs.toString():"0",...r.externalExecutionBreakdown?{ExternalExecutionBreakdown:r.externalExecutionBreakdown}:{}};return this.populateStatusAndResponseCode(n,t,e),{name:jn.events.workflowEvent,properties:n}}catch(n){console.error("Failed to generate workflow telemetry data:",n);return}}formatTaskLog(t,r,e){if(!(t===bi.TaskEvent.TASK_STARTED||r.taskType===bi.TaskType.DO))try{let n={...this.customDimensions,WorkflowRunId:r.workflowRunId,TaskId:r.taskId,TaskType:bi.FormattedTaskTypeMap[r.taskType],DisplayName:r.displayName||`${bi.FormattedTaskTypeMap[r.taskType]}: ${r.taskId}`,ExecutionStartTime:r.executionStartTimeMs?new Date(r.executionStartTimeMs).toISOString():"",ExecutionEndTime:r.executionEndTimeMs?new Date(r.executionEndTimeMs).toISOString():"",ExecutionTime:r.executionTimeMs?r.executionTimeMs.toString():"0",...r.vendorExecutionTimeMs!==void 0?{VendorExecutionTime:r.vendorExecutionTimeMs.toString()}:{},...r.HttpCallMode!==void 0?{HttpCallMode:r.HttpCallMode.toString()}:{},...r.isUiPathInternalServiceCall!==void 0?{IsUiPathInternalServiceCall:r.isUiPathInternalServiceCall.toString()}:{},...r.retry?{RetryAttempt:r.retry.attempt.toString(),...r.retry.maxAttempts!==void 0?{RetryMaxAttempts:r.retry.maxAttempts.toString()}:{},RetryDelayMs:r.retry.delayMs.toString(),...r.retry.retryAfterMs!==void 0?{RetryAfterMs:r.retry.retryAfterMs.toString()}:{},...r.retry.failedTaskName?{RetryFailedTaskId:r.retry.failedTaskName}:{}}:{}};return this.populateStatusAndResponseCode(n,t,e),{name:jn.events.taskEvent,properties:n}}catch(n){console.error("Failed to generate task telemetry data:",n);return}}populateStatusAndResponseCode(t,r,e){if(!e){t.Status=jn.status.completed,t.ResponseCode=jn.responseCode.ok;return}t.ErrorType=("type"in e?e.type:null)||e.name||"error",r===bi.TaskEvent.TASK_STOPPED?(t.ErrorMessage="Task has stopped as a child task has failed",t.Status=jn.status.cancelled):r===bi.TaskEvent.TASK_RETRIED?(t.ErrorMessage=(0,oS.toErrorString)(e),t.Status=jn.status.retrying):(t.ErrorMessage=(0,oS.toErrorString)(e),t.Status=jn.status.faulted),t.ResponseCode="status"in e&&e.status?e.status.toString():jn.responseCode.error}};Cl.TelemetryDataFormatter=iy});var sy=O(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.newOtelSpanId=uS;gs.toOtelTraceIdOrUndefined=lS;gs.toOtelTraceId=mq;gs.toOtelSpanId=vq;var sS=/^[0-9a-f]{32}$/,hq=/^[0-9a-f]{16}$/;function aS(o){return o.replace(/-/g,"").toLowerCase()}function _q(o){if(!globalThis.crypto?.getRandomValues)throw new Error("Web Crypto (globalThis.crypto.getRandomValues) is unavailable in this runtime.");let t=new Uint8Array(o);return globalThis.crypto.getRandomValues(t),Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function cS(o){for(;;){let t=_q(o);if(!/^0+$/.test(t))return t}}function uS(){return cS(8)}function lS(o){if(o){let t=aS(o);if(sS.test(t)&&t!=="0".repeat(32))return t}}function mq(o){return lS(o)??cS(16)}function vq(o){if(o){let t=aS(o);if(hq.test(t)&&t!=="0".repeat(16))return t;if(sS.test(t)){let r=t.slice(16);if(r!=="0".repeat(16))return r}}return uS()}});var fS=O(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.TraceViewDataFormatter=void 0;var ay=Oe(),be=qe(),dS=Ce(),yq=vs(),Xa=sy(),jl=class o{constructor(t,r,e){this.workflowConfig=t,this.workflowName=r,this._traceId=(0,Xa.toOtelTraceId)(this.workflowConfig.tracingConfig?.traceId),this.apiWorkflowSpanId=e?(0,Xa.toOtelSpanId)(e):(0,Xa.newOtelSpanId)(),this.operationId=this.workflowConfig.telemetryConfig?.traceId||"",this.spanJobContext={organizationId:this.workflowConfig.organizationId,tenantId:this.workflowConfig.tenantId,processKey:this.workflowConfig.processConfig?.processKey,jobKey:this.workflowConfig.processConfig?.jobKey,folderKey:this.workflowConfig.processConfig?.folderKey},this.logInputOutput=this.workflowConfig.tracingConfig?.enableIoLogs===!0}get traceId(){return this._traceId}formatWorkflowLog(t,r,e){let n={spanType:be.SpanType.ApiWorkflowRun,workflowRunId:r.workflowRunId,executionTimeMs:r.executionTimeMs,jobSource:this.workflowConfig.source,language:r.language,operationId:this.operationId,error:this.mapErrorToSpanError(t,e),input:void 0,output:void 0};return this.createSpan(t,r,`API Workflow: ${this.workflowName}`,this.workflowConfig.tracingConfig?.parentSpanId?(0,Xa.toOtelSpanId)(this.workflowConfig.tracingConfig.parentSpanId):"",n,new Map([[be.WorkflowEvent.WORKFLOW_STARTED,be.StatusEnum.Running],[be.WorkflowEvent.WORKFLOW_COMPLETED,be.StatusEnum.Ok],[be.WorkflowEvent.WORKFLOW_FAILED,be.StatusEnum.Error]]))}formatTaskLog(t,r,e){let n=this.logInputOutput&&r.properties?this.sanitizeInputProperties(r.properties):void 0,i=this.shouldSanitizeOutput(r.properties),s=this.logInputOutput&&r.output?i?this.sanitizeOutputProperties(r.output):r.output:void 0,c=this.dropIfExceedsLimit(n,"input"),u=this.dropIfExceedsLimit(s,"output"),l=(t===be.TaskEvent.TASK_COMPLETED&&this.logInputOutput?this.extractAttachments(r.output):void 0)?.map(h=>this.toTraceViewAttachment(h)),d={spanType:be.SpanType.ApiWorkflowTaskRun,taskId:r.taskId,taskType:be.FormattedTaskTypeMap[r.taskType],workflowRunId:r.workflowRunId,executionTimeMs:r.executionTimeMs,licenseRefId:r.licenseRefId,input:c,output:u,error:this.mapErrorToSpanError(t,e)},f=this.createSpan(t,r,r.displayName||`${be.FormattedTaskTypeMap[r.taskType]}: ${r.taskId}`,this.apiWorkflowSpanId,d,new Map([[be.TaskEvent.TASK_STARTED,be.StatusEnum.Running],[be.TaskEvent.TASK_RETRIED,be.StatusEnum.Running],[be.TaskEvent.TASK_COMPLETED,be.StatusEnum.Ok],[be.TaskEvent.TASK_FAILED,be.StatusEnum.Error],[be.TaskEvent.TASK_STOPPED,be.StatusEnum.Cancelled]]));return l&&l.length>0&&(f.attachments=l),f}formatUserLog(t,r,e){let n=r.message?this.dropIfExceedsLimit(r.message,"userLog"):"",i={spanType:be.SpanType.ApiWorkflowUserLog,taskId:r.taskId,timestamp:r.timestamp,logLevel:be.VerbosityLevelEnum[this.mapLogLevelToVerbosityLevel(r.logLevel)],message:n},s=r.timestamp.getTime();return this.createSpan(t,{...r??{},executionStartTimeMs:s,executionEndTimeMs:s},`User Log: ${r.taskId}`,e,i,new Map([[be.LogEvent.USER_LOG,be.StatusEnum.Ok]]))}sanitizeInputProperties(t){let r=t.headers&&typeof t.headers=="object",e=t.query&&typeof t.query=="object";if(!r&&!e)return t;let n={...t};return r&&(n.headers=ay.REDACTED_STRING),e&&(n.query=(0,ay.sanitizeSecrets)(n.query)),n}shouldSanitizeOutput(t){if(!t)return!1;let r=t.url,e=t.method;return!!(r&&typeof r=="string"&&r.startsWith("/credentials/")&&e&&typeof e=="string"&&e.toUpperCase()==="GET")}sanitizeOutputProperties(t){if(!t||typeof t!="object")return t;let r=t;if(!(r.content&&typeof r.content=="object"))return t;let n={...r};return n.content=(0,ay.sanitizeSecrets)(n.content),n}extractAttachments(t){let r=(0,yq.findBlobAttachmentRefs)(t);return r.length>0?r:void 0}toTraceViewAttachment(t){return{id:t.ID,fileName:t.FullName,mimeType:t.MimeType}}createSpan(t,r,e,n,i,s){let c=r.taskSpanId;return{id:i.spanType===be.SpanType.ApiWorkflowRun?this.apiWorkflowSpanId:typeof c=="string"?c:(0,Xa.newOtelSpanId)(),parentId:n,name:e,spanType:i.spanType,status:s.get(t)||be.StatusEnum.Unset,source:be.SourceEnum.ApiWorkflows,traceId:this._traceId,startTime:r.executionStartTimeMs?new Date(r.executionStartTimeMs):new Date,endTime:r.executionEndTimeMs?new Date(r.executionEndTimeMs):void 0,updatedAt:new Date,attributes:i,jobContext:this.spanJobContext}}mapLogLevelToVerbosityLevel(t){switch(t){case be.LogLevel.VERBOSE:return be.VerbosityLevelEnum.Verbose;case be.LogLevel.ERROR:return be.VerbosityLevelEnum.Error;case be.LogLevel.WARN:return be.VerbosityLevelEnum.Warning;case be.LogLevel.INFO:return be.VerbosityLevelEnum.Information;default:return be.VerbosityLevelEnum.Trace}}mapErrorToSpanError(t,r){if(!r||t===be.TaskEvent.TASK_RETRIED)return;let e;if(t===be.TaskEvent.TASK_STOPPED)e={message:"Task has stopped as a child task has failed",details:(0,dS.isWorkflowError)(r)?`Child task ${r.originatingTaskName} failed: ${r.title}`:`Child task failed: ${r.message}`};else if((0,dS.isWorkflowError)(r)){let n=r,i="instance"in r&&r.instance?`${r.instance}: `:"",s="detail"in r&&r.detail?r.detail:"",c=`${i}${s}`;e={message:n.title,details:c}}else e={message:r.message,details:r.stack};return e}estimateDataSize(t){try{if(t==null)return 0;let r=JSON.stringify(t);return new Blob([r]).size}catch{return 0}}dropIfExceedsLimit(t,r){if(t==null)return t;let e=this.estimateDataSize(t);if(e<=o.MAX_DATA_SIZE_BYTES)return t;let n=(e/(1024*1024)).toFixed(2),i=(o.MAX_DATA_SIZE_BYTES/(1024*1024)).toFixed(0);return{dropped:!0,reason:"data_size_exceeded_limit",message:`${r} data was dropped because it exceeded ${i}MB, limit (original size: ${n}MB)`}}};Nl.TraceViewDataFormatter=jl;jl.MAX_DATA_SIZE_BYTES=5*1024*1024});var hS=O(ho=>{"use strict";var bq=ho&&ho.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),pS=ho&&ho.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&bq(t,o,r)};Object.defineProperty(ho,"__esModule",{value:!0});pS(iS(),ho);pS(fS(),ho)});var _S=O(gi=>{"use strict";var gq=gi&&gi.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),wq=gi&&gi.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&gq(t,o,r)};Object.defineProperty(gi,"__esModule",{value:!0});wq(hS(),gi)});var Qa=O(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.SecretRegistryStore=void 0;var Eq=Oe(),Za=class o{static acquire(t){let r=o.runsInProgress.get(t)??0;o.runsInProgress.set(t,r+1)}static release(t){let r=(o.runsInProgress.get(t)??1)-1;if(r>0){o.runsInProgress.set(t,r);return}o.runsInProgress.delete(t),o.dispose(t)}static get(t){return o.registries.get(t)}static getOrCreate(t){let r=o.registries.get(t);if(r)return r;let e=new Eq.SecretRegistry;return o.registries.set(t,e),e}static dispose(t){o.registries.delete(t)}};Dl.SecretRegistryStore=Za;Za.registries=new Map;Za.runsInProgress=new Map});var Et=O(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.AbstractTaskHandler=void 0;var Tq=Oe(),Sq=Qa(),Ll=tt(),ql=Ce(),cy=class{constructor(t,r,e){this.workflowConfig=t.workflowConfig,this.expressionHandler=e,this.logger=r,this.taskHandlerArgs=t}async handleTask(t,r,e,n){try{e&&this.setRuntimeExpressionArgs(e),this.executionContext=n;let i=await this.expressionHandler.evaluateDataExpression("${$input}"),s=await this.internalHandleTask(t,r,i);if(this.getRuntimeExpressionArgs().$runtime.control?.signalWorkflowEnd)return s;let c=await this.postProcess(r,t,s);return s.success?{...s,data:c}:s}catch(i){throw(0,ql.isWorkflowError)(i)?i:new ql.WorkflowErrorBuilder().fromError(i).setTitle((0,Ll.t)(Ll.ErrorKeys.ERROR_HANDLING_TASK,{taskName:t})).setData({taskName:t}).build()}}setRuntimeExpressionArgs(t){this.runtimeExpressionArgs=t}getRuntimeExpressionArgs(){if(!this.runtimeExpressionArgs)throw new Error("Runtime expression args are not set");return this.runtimeExpressionArgs}getSecretRegistry(){let t=this.runtimeExpressionArgs?.$runtime?.metadata?.workflowRunId;return t?Sq.SecretRegistryStore.get(t):void 0}async postProcess(t,r,e){try{if(!e.success)return e.data;let n=await this.handleOutput(t,r,e.data);return await this.handleExport(t,e.data),n}catch(n){let i=n instanceof Error?n:new Error((0,Tq.getErrorMessage)(n));throw this.logger.error("Error during post-processing task:",void 0,i),(0,ql.isWorkflowError)(i)?i:new ql.WorkflowErrorBuilder().fromError(i).setTitle((0,Ll.t)(Ll.ErrorKeys.INTERNAL_ERROR)).build()}}async handleOutput(t,r,e){try{return t.output?.as?await this.expressionHandler.setInputOutput(void 0,t.output.as):(await this.expressionHandler.setInputOutput(e,void 0),e)}catch(n){throw console.error("Error handling output:",n),n}}async handleExport(t,r){if(!t.export?.as)return;let e=t.export.as;await this.expressionHandler.updateContext(e,r)}};Fl.AbstractTaskHandler=cy});var dy=O(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.DefaultScriptTaskHandler=ws.BaseScriptTaskHandler=void 0;var Oq=Pl(),Wl=tt(),Ul=qe(),ec=xv(),uy=Ce(),kq=Et(),Pq=1e4,$l=class extends kq.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r,e){let n={};return await this.executeScript(t,r,n)}};ws.BaseScriptTaskHandler=$l;var ly=class o extends $l{constructor(t,r,e){super(t,r,e)}static create(t,r,e){return new o(t,r,e)}async executeScript(t,r,e){let s=r.run?.script?.code;try{if(!s)throw new uy.WorkflowErrorBuilder().setType(Ul.WorkflowErrorType.VALIDATION_ERROR).setStatus(Ul.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Wl.t)(Wl.ErrorKeys.NO_SCRIPT_CODE,{taskName:t})).setData({taskName:t}).build();let c=s.includes("$helpers")?Oq.HOST_CALL_CALLER_TIMEOUT_MS:Pq,u=await this.expressionHandler.evaluateScript(s,t,c),a=u.result,l=u.userLogs;return l&&Array.isArray(l)&&(this.printUserLogs(l,t),await this.sendUserLogs(l,t)),{success:!0,data:a}}catch(c){let u=c?.userLogs;return Array.isArray(u)&&this.printUserLogs(u,t),{success:!1,error:(0,uy.isWorkflowError)(c)?c:new uy.WorkflowErrorBuilder().fromError(c).setTitle((0,Wl.t)(Wl.ErrorKeys.FAILED_SCRIPT)).setStatus(Ul.WorkflowErrorStatus.BAD_REQUEST).setType(Ul.WorkflowErrorType.RUNTIME_ERROR).setData({taskName:t}).build()}}}async sendUserLogs(t,r){if(!(!t||t.length===0))for(let e of t){let n={taskId:r,timestamp:new Date(e.timestamp),message:e.message,logLevel:this.mapLogLevel(e.level)};await this.logger.logEvent(ec.LogEvent.USER_LOG,n)}}printUserLogs(t,r){let e=this.getSecretRegistry();for(let n of t){let i=e?e.redactString(n.message):n.message;console[n.level]?.(`[Script ${r}]:`,i)}}mapLogLevel(t){switch(t){case"log":case"info":return ec.LogLevel.INFO;case"error":return ec.LogLevel.ERROR;case"warn":return ec.LogLevel.WARN;case"debug":return ec.LogLevel.VERBOSE}}};ws.DefaultScriptTaskHandler=ly});var rc=O(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.setTraceContextProvider=Aq;tc.currentTraceContext=Iq;tc.runInTraceSpan=xq;var mS=Av(),fy=mS.noopTraceContextProvider;function Aq(o){fy=o??mS.noopTraceContextProvider}function Iq(){return fy.current()}function xq(o,t){return fy.runInSpan(o,t)}});var oc=O(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.buildTraceparent=hy;nc.isFirstPartyHost=Nq;nc.applyOutboundTraceHeaders=Lq;var wi=fr(),Rq=$v(),Mq=rc(),Cq=/^[0-9a-fA-F]{32}$/,jq=/^[0-9a-fA-F]{16}$/;function vS(o){return/^0+$/.test(o)}function hy(o){let{traceId:t,parentSpanId:r}=o??{};if(!(!t||!r)&&!(!Cq.test(t)||vS(t)||!jq.test(r)||vS(r)))return`00-${t.toLowerCase()}-${r.toLowerCase()}-01`}function Nq(o,t){if(!o)return!1;if(Rq.InternalServiceDetector.isInternalServiceUrl(o))return!0;if(!t)return!1;try{return new URL(o).hostname.toLowerCase()===new URL(t).hostname.toLowerCase()}catch{return!1}}function py(o,t){let r=t.toLowerCase();return Object.keys(o).some(e=>e.toLowerCase()===r)}function Dq(o,t){let r=t.toLowerCase(),e=Object.keys(o).find(n=>n.toLowerCase()===r);return e===void 0?void 0:o[e]}function Lq(o,t){if(!t.firstParty)return o;let r=(0,Mq.currentTraceContext)(),e=Dq(o,wi.TraceparentHeader)??hy(r?{traceId:r.traceId,parentSpanId:r.spanId}:void 0)??hy(t.telemetryConfig);return e&&(py(o,wi.TraceparentHeader)||(o[wi.TraceparentHeader]=e),py(o,wi.X_UIPATH_TRACEPARENT_ID)||(o[wi.X_UIPATH_TRACEPARENT_ID]=e)),t.baggage&&!py(o,wi.X_UIPATH_TRACE_BAGGAGE)&&(o[wi.X_UIPATH_TRACE_BAGGAGE]=t.baggage),o}});var Bl=O(Ft=>{"use strict";var qq=Ft&&Ft.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),Fq=Ft&&Ft.__setModuleDefault||(Object.create?function(o,t){Object.defineProperty(o,"default",{enumerable:!0,value:t})}:function(o,t){o.default=t}),Wq=Ft&&Ft.__importStar||function(){var o=function(t){return o=Object.getOwnPropertyNames||function(r){var e=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[e.length]=n);return e},o(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var e=o(t),n=0;n<e.length;n++)e[n]!=="default"&&qq(r,t,e[n]);return Fq(r,t),r}}();Object.defineProperty(Ft,"__esModule",{value:!0});Ft.commonsSupportsStreamBody=Uq;Ft.commonsSupportsBlobStreaming=$q;Ft.supportsRequestStreamBody=Bq;Ft.resetRequestStreamSupportForTests=Hq;Ft.trackFirstPull=Vq;Ft.sendStreamedSpliceRequest=Zq;var bS=Wq(Oe()),qt=Oe(),yS=oc();function Uq(){return bS.HTTP_STREAM_REQUEST_BODY_SUPPORTED===!0}function $q(){let o=bS.OrchestratorUtils;return typeof o?.uploadBlobStream=="function"&&typeof o?.openBlobDownloadStream=="function"}var Ei;function Bq(){if(Ei!==void 0)return Ei;if(globalThis.Deno!==void 0)return Ei=!0;try{let o=!1,t=new Request("https://localhost/",{method:"POST",body:new ReadableStream,get duplex(){return o=!0,"half"}}).headers.has("content-type");Ei=o&&!t}catch{Ei=!1}return Ei}function Hq(){Ei=void 0}function Vq(o,t){let r=o.getReader(),e=!1;return new ReadableStream({async pull(n){e||(e=!0,t());let{done:i,value:s}=await r.read();i?n.close():n.enqueue(s)},cancel(n){return r.cancel(n)}},{highWaterMark:0})}var zq="elements-vendor-processing-time",Yq=["application/octet-stream","application/pdf","application/zip","image/","audio/","video/","application/vnd.","application/x-tar","application/gzip"];function Kq(o){let t=o.toLowerCase();return Yq.some(r=>t.startsWith(r))}var Jq=["application/json","application/xml","text/xml","text/csv","text/plain","application/atom+xml","application/rss+xml"];function Gq(o){if(!o)return!1;let t=o.toLowerCase(),r=t.split(";")[0].trim();return(r.startsWith("application/")||r.startsWith("text/"))&&(r.endsWith("+json")||r.endsWith("+xml"))?!0:Jq.some(e=>t.startsWith(e))}async function Xq(o,t,r=!1){let e=(0,qt.getMediaType)(t);try{let n=t.get("content-disposition")??"",i=t.get("content-type")??"";if(!Gq(i)&&(n.toLowerCase().includes("attachment")||Kq(i))){if(r&&o.ok&&o.body)return o.body;let c=await o.arrayBuffer();return new Uint8Array(c)}let s=await o.text();switch(e){case qt.MediaType.JSON:try{return JSON.parse(s)}catch(c){return console.warn("Failed to parse JSON response, returning as text:",c),s}case qt.MediaType.URL_ENCODED:if(s){let c=new URLSearchParams(s);return Object.fromEntries(c.entries())}return s;default:return s}}catch(n){console.error("Error reading response content:",n);let i=(0,qt.getErrorMessage)(n);throw new Error(`Error reading response content: [${e}] - ${i}`)}}async function Zq(o,t,r){(0,qt.setDefaultContentTypeHeader)(o),r&&(0,yS.applyOutboundTraceHeaders)(o.headers??(o.headers={}),{telemetryConfig:r.telemetryConfig,baggage:r.baggage,firstParty:(0,yS.isFirstPartyHost)(o.url,r.baseUrl)});let e=o.url.trim();t.debug(`[StreamedHttpSend] Streaming HTTP request body to ${e} with method ${o.method}`);try{let n=Date.now(),i=await fetch((0,qt.buildUrl)(e,o.queryParameters),{method:o.method,headers:o.headers,body:o.body,signal:o.timeoutMs?AbortSignal.timeout(o.timeoutMs):void 0,duplex:"half"}),s=Date.now()-n,c={method:o.method,url:e,headers:o.verboseLoggingEnabled?(0,qt.sanitizeSecrets)(o.headers??{}):qt.REDACTED_STRING,query:(0,qt.sanitizeSecrets)(o.queryParameters??{}),body:o.body},u=(0,qt.extractResponseHeaders)(i),a=(0,qt.getHeaderCaseInsensitive)(u,zq),l={statusCode:i.status,statusText:i.statusText,headers:u,ok:i.ok,request:c,content:await Xq(i,i.headers,o.streamFileResponse===!0),vendorProcessingTimeMs:a?Number(a):s};return{success:l.ok,data:l,error:l.ok?void 0:new Error(`HTTP Status: ${l.statusCode}${l.statusText?` - ${l.statusText}`:""}`)}}catch(n){let i;return(0,qt.isError)(n)&&n.name==="TimeoutError"?i=new Error(`Request timed out after ${o.timeoutMs}ms!`):i=(0,qt.isError)(n)?n:new Error((0,qt.getErrorMessage)(n)),{success:!1,data:void 0,error:i}}}});var Ti=O(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.FILE_READ_MARKER_KEY=void 0;Rt.downloadBlobFileWithFriendlyError=zl;Rt.safeMimeType=Es;Rt.isPlainObject=Kl;Rt.declaredRefSize=Ts;Rt.materializeBlobRefBody=_F;Rt.resolveFileReadMarkers=vy;var nn=Oe(),ic=sc(),yy=Bl(),Qq=["server failed to authenticate the request","signature did not match","signaturedoesnotmatch","authenticationfailed"],eF=o=>{let r=(o instanceof Error?o.message:String(o??"")).toLowerCase();return Qq.some(e=>r.includes(e))};function TS(o,t){if(!eF(o))return;let r=o instanceof Error?o.message:String(o),e=t.FullName?`"${t.FullName}"`:`(id=${t.ID})`;return new Error(`Failed to download file ${e} from Orchestrator. The file name may contain unsupported characters \u2014 rename the file to use standard ASCII characters (letters, digits, spaces, dashes, underscores, periods) and try again. Underlying error: ${r}`)}async function zl(o,t,r){try{return await nn.OrchestratorUtils.downloadFileFromBlob(o.baseUrl,o.accessToken,o.organizationId,o.tenantId,r.ID,t,o.processConfig?.folderKey)}catch(e){throw TS(e,r)??e}}function tF(o){for(let t=0;t<o.length;t++){let r=o.charCodeAt(t);if(r<32||r===127)return!0}return!1}var rF=/^[a-zA-Z0-9][a-zA-Z0-9!#$&^_.+-]*\/[a-zA-Z0-9][a-zA-Z0-9!#$&^_.+-]*$/;function Es(o){if(typeof o!="string")return;let t=o.indexOf(";"),r=(t===-1?o:o.slice(0,t)).trim();if(!rF.test(r))return;let e=t===-1?"":o.slice(t);return tF(e)?r:`${r}${e}`}Rt.FILE_READ_MARKER_KEY="__uipathFileRead";function Yl(o){if(!o||typeof o!="object")return!1;let t=o[Rt.FILE_READ_MARKER_KEY];return!!t&&typeof t=="object"&&(0,nn.isBlobFileReference)(t.ref)}async function nF(o,t,r){let e=await zl(t,r,o);return(0,nn.getAttachmentEncoding)(o)==="base64"?new TextDecoder().decode(e.content):e.content}function by(o,t,r){return nF(o[Rt.FILE_READ_MARKER_KEY].ref,t,r)}function SS(o){return new Error(`A raw-bytes read of file (${o.FullName||o.ID}) was placed inside a JSON body field. Raw bytes cannot be embedded in JSON \u2014 convert the file with File to Base64 first for a nested field, or send the file reference as the entire request body.`)}function OS(o){return new Error(`A file reference (${o.FullName||o.ID}) was placed inside a JSON body field. A bare file reference cannot be embedded in a nested field \u2014 call serializeData() on it to inline its content, or send the file reference as the entire request body.`)}function gy(){return new Error("The request body contains a circular reference, which cannot be sent as JSON.")}function Kl(o){return Object.prototype.toString.call(o)==="[object Object]"}async function _y(o,t,r,e=new Set){if(Yl(o)){let n=await by(o,t,r);if(typeof n!="string")throw SS(o[Rt.FILE_READ_MARKER_KEY].ref);return n}if((0,nn.isBlobFileReference)(o))throw OS(o);if(Array.isArray(o)||Kl(o)){if(e.has(o))throw gy();let n=new Set(e).add(o);if(Array.isArray(o)){let c=await Promise.all(o.map(u=>_y(u,t,r,n)));return c.some((u,a)=>u!==o[a])?c:o}let i=Object.entries(o),s=await Promise.all(i.map(async([c,u])=>[c,await _y(u,t,r,n)]));return s.some(([,c],u)=>c!==i[u][1])?Object.fromEntries(s):o}return o}var kS="__uipath_splice_";function oF(o){let t=new Map,r=new Map,e=new Map,n=(s,c)=>{if(Yl(s)){let{ref:u}=s[Rt.FILE_READ_MARKER_KEY];if((0,nn.getAttachmentEncoding)(u)!=="base64")throw SS(u);let a=e.get(u.ID);return a||(a=`${kS}${(0,nn.getNewGuid)()}__`,e.set(u.ID,a),t.set(a,u)),r.set(a,(r.get(a)??0)+1),a}if((0,nn.isBlobFileReference)(s))throw OS(s);if(Array.isArray(s)||Kl(s)){if(c.has(s))throw gy();let u=new Set(c).add(s);if(Array.isArray(s)){let d=s.map(f=>n(f,u));return d.some((f,h)=>f!==s[h])?d:s}let a=Object.entries(s),l=a.map(([d,f])=>[d,n(f,u)]);return l.some(([,d],f)=>d!==a[f][1])?Object.fromEntries(l):s}return s},i=n(o,new Set);return t.size===0?void 0:{tokenizedBody:i,refsByToken:t,siteCounts:r}}function iF(o){let t=Object.keys(o).find(e=>e.toLowerCase()==="content-type");if(t===void 0)return!0;let r=o[t].toLowerCase();return r.startsWith("application/")&&r.includes("json")}var sF=(()=>{let o=new Uint8Array(256);for(let t=65;t<=90;t++)o[t]=1;for(let t=97;t<=122;t++)o[t]=1;for(let t=48;t<=57;t++)o[t]=1;return o[43]=1,o[47]=1,o[61]=1,o})();function aF(o,t){let r=t>=32&&t<127?` ("${String.fromCharCode(t)}")`:"";return new Error(`The base64 file (${o.FullName||o.ID}) contains a byte 0x${t.toString(16).padStart(2,"0")}${r} outside the base64 alphabet, so its content cannot be inlined into a JSON body. Whitespace and line breaks are not supported either \u2014 re-create the attachment with File to Base64 and try again.`)}function my(o,t){for(let r=0;r<o.length;r++)if(sF[o[r]]===0)throw aF(t,o[r])}function PS(o,t,r){return new Error(`Internal error while building the request body: splice token ${o} occurred ${r} time(s) in the serialized body, expected ${t}. The body cannot be sent safely.`)}function Hl(o,t,r){return new Error(`Failed to build the request body: file (${o.FullName||o.ID}) delivered ${r} byte(s) but its metadata declares ${t}. The attachment may have been modified \u2014 re-create it and retry.`)}function cF(o,t){let r=[];for(let[s,c]of t.siteCounts){let u=0;for(let a=o.indexOf(s);a!==-1;a=o.indexOf(s,a+s.length))r.push({index:a,token:s}),u++;if(u!==c)throw PS(s,c,u)}r.sort((s,c)=>s.index-c.index);let e=[],n=[],i=0;for(let s of r)e.push(o.slice(i,s.index)),n.push(s.token),i=s.index+s.token.length;return e.push(o.slice(i)),{segments:e,siteTokens:n}}function Ts(o){let t=o.Metadata?.Size;return typeof t=="number"&&Number.isSafeInteger(t)&&t>=0?t:void 0}function wy(o){let t=0;for(let r of o.segmentBytes)t+=r.byteLength;for(let r of o.siteTokens){let e=Ts(o.refsByToken.get(r));if(e===void 0)return;t+=e}return t}async function AS(o,t,r){try{return await nn.OrchestratorUtils.openBlobDownloadStream(t.baseUrl,t.accessToken,t.organizationId,t.tenantId,o.ID,r,t.processConfig?.folderKey)}catch(e){throw TS(e,o)??e}}async function IS(o,t,r){return(await AS(o,t,r)).stream}function uF(o){return typeof o=="number"&&Number.isSafeInteger(o)&&o>=0?o:void 0}function gS(o,t,r){return new Error(`Failed to stream request body file (${o.FullName||o.ID}): the download delivered ${r} byte(s) but its declared length is ${t}. The attachment may have changed \u2014 re-create it and retry.`)}function lF(o,t,r){let e=(0,ic.streamToAsyncIterable)(o)[Symbol.asyncIterator](),n=0,i=!1,s=async c=>{try{await e.return?.(c)}catch{}try{await o.cancel(c)}catch{}};return new ReadableStream({async pull(c){try{let u=await e.next();if(u.done){if(r!==void 0&&n!==r)throw gS(t,r,n);i=!0,c.close();return}let a=n+u.value.byteLength;if(r!==void 0&&a>r)throw gS(t,r,a);n=a,c.enqueue(u.value.slice())}catch(u){await s(u),c.error(u)}},async cancel(c){i||await s(c)}})}async function*dF(o,t,r){for(let n=0;n<o.siteTokens.length;n++){o.segmentBytes[n].byteLength>0&&(yield o.segmentBytes[n]);let i=o.refsByToken.get(o.siteTokens[n]),s=Ts(i),c=await IS(i,t,r),u=0,a=!1;try{for await(let l of(0,ic.streamToAsyncIterable)(c)){if(my(l,i),u+=l.byteLength,s!==void 0&&u>s)throw Hl(i,s,u);yield l}if(s!==void 0&&u!==s)throw Hl(i,s,u);a=!0}finally{if(!a)try{await c.cancel()}catch{}}}let e=o.segmentBytes[o.segmentBytes.length-1];e.byteLength>0&&(yield e)}async function fF(o,t,r){let e=wy(o);if(e!==void 0&&(0,yy.commonsSupportsBlobStreaming)()){let u=new Uint8Array(e),a=0,l=new Map;for(let f=0;f<o.siteTokens.length;f++){let h=o.segmentBytes[f];u.set(h,a),a+=h.byteLength;let _=o.siteTokens[f],m=o.refsByToken.get(_),v=Ts(m),b=l.get(_);if(b){u.copyWithin(a,b.start,b.start+b.length),a+=b.length;continue}let g=a,w=await IS(m,t,r),T=!1;try{for await(let P of(0,ic.streamToAsyncIterable)(w)){if(my(P,m),a-g+P.byteLength>v)throw Hl(m,v,a-g+P.byteLength);u.set(P,a),a+=P.byteLength}if(a-g!==v)throw Hl(m,v,a-g);T=!0}finally{if(!T)try{await w.cancel()}catch{}}l.set(_,{start:g,length:v})}let d=o.segmentBytes[o.segmentBytes.length-1];return u.set(d,a),u}let n=new Map;for(let[u,a]of o.refsByToken){let l=await zl(t,r,a);my(l.content,a),n.set(u,l.content)}let i=0;for(let u of o.segmentBytes)i+=u.byteLength;for(let u of o.siteTokens)i+=n.get(u).byteLength;let s=new Uint8Array(i),c=0;for(let u=0;u<o.siteTokens.length;u++){s.set(o.segmentBytes[u],c),c+=o.segmentBytes[u].byteLength;let a=n.get(o.siteTokens[u]);s.set(a,c),c+=a.byteLength}return s.set(o.segmentBytes[o.segmentBytes.length-1],c),s}function pF(o,t,r){let e=dF(o,t,r)[Symbol.asyncIterator]();return{stream:new ReadableStream({async pull(i){let s=await e.next();if(s.done){i.close();return}i.enqueue(s.value.slice())},async cancel(i){await e.return?.(i)}}),contentLength:wy(o)}}function wS(o,t){if(t?.streamWholeBodyRefs!==!0||!(0,yy.commonsSupportsBlobStreaming)())return!1;let r=t.wholeBodyStreamThresholdBytes??ic.STREAM_THRESHOLD_BYTES,e=Ts(o);return e===void 0||e>r}async function ES(o,t,r,e,n,i){let s=await AS(o,n,i),c=uF(s.size)??Ts(o);return Vl(r,"Content-Type")||(r["Content-Type"]=e(s.mimeType)),c!==void 0&&!Vl(r,"Content-Length")&&(r["Content-Length"]=String(c)),{body:lF(s.stream,o,c),headers:r,loggableBody:t,contentLength:c}}function Vl(o,t){let r=t.toLowerCase();return Object.keys(o).some(e=>e.toLowerCase()===r)}async function hF(o,t,r,e,n){let i=oF(o);if(!i)return{body:o,headers:t};let s=JSON.stringify(i.tokenizedBody);if(typeof s!="string")throw PS(kS,i.siteCounts.size,0);let{segments:c,siteTokens:u}=cF(s,i),a=new TextEncoder,l={segmentBytes:c.map(_=>a.encode(_)),siteTokens:u,refsByToken:i.refsByToken};Vl(t,"Content-Type")||(t["Content-Type"]="application/json");let d=wy(l),f=n.streamedSpliceThresholdBytes??ic.STREAM_THRESHOLD_BYTES;if(n.streamedSplice===!0&&d!==void 0&&d>f&&(0,yy.commonsSupportsBlobStreaming)()){let{stream:_,contentLength:m}=pF(l,r,e);return m!==void 0&&!Vl(t,"Content-Length")&&(t["Content-Length"]=String(m)),{body:_,headers:t,loggableBody:i.tokenizedBody,contentLength:m}}return{body:await fF(l,r,e),headers:t,loggableBody:i.tokenizedBody}}async function _F(o,t,r,e,n){let i=t?{...t}:{},s=Object.keys(i).some(c=>c.toLowerCase()==="content-type");if(Yl(o)){let{ref:c}=o[Rt.FILE_READ_MARKER_KEY];if(wS(c,n))return ES(c,o,i,a=>(0,nn.getAttachmentEncoding)(c)==="base64"?"text/plain":Es(c.MimeType)??Es(a)??"application/octet-stream",r,e);let u=await by(o,r,e);return typeof u=="string"?s||(i["Content-Type"]="text/plain"):s||(i["Content-Type"]=Es(c.MimeType)??"application/octet-stream"),{body:u,headers:i}}if((0,nn.isBlobFileReference)(o)){if(wS(o,n))return ES(o,o,i,u=>Es(u)??"application/octet-stream",r,e);let c=await zl(r,e,o);return s||(i["Content-Type"]=Es(c.mimeType)??"application/octet-stream"),{body:c.content,headers:i}}return o&&typeof o=="object"?n?.spliceNestedBase64&&iF(i)?hF(o,i,r,e,n):{body:await _y(o,r,e),headers:i}:{body:o,headers:i}}async function vy(o,t,r,e=new Set){if(Yl(o))return by(o,t,r);if(Array.isArray(o)||Kl(o)){if(e.has(o))throw gy();let n=new Set(e).add(o);if(Array.isArray(o)){let c=await Promise.all(o.map(u=>vy(u,t,r,n)));return c.some((u,a)=>u!==o[a])?c:o}let i=Object.entries(o),s=await Promise.all(i.map(async([c,u])=>[c,await vy(u,t,r,n)]));return s.some(([,c],u)=>c!==i[u][1])?Object.fromEntries(s):o}return o}});var sc=O(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.STREAM_THRESHOLD_BYTES=le.MAX_CONVERT_FILE_BYTES=le.BASE64_TO_FILE_FN=le.FILE_TO_BASE64_FN=void 0;le.uint8ArrayToBase64=Jl;le.normalizeBase64=Gl;le.base64ToUint8Array=ac;le.isValidBase64=cc;le.streamToAsyncIterable=Ey;le.base64EncodedLength=MS;le.encodeBase64Stream=CS;le.decodeBase64Stream=jS;le.detectMimeTypeFromBytes=Xl;le.sizedBase64DecodeLength=FS;le.encodeFileToBase64=kF;le.decodeFileToByteArray=WS;le.base64ToFile=PF;var Xe=Oe(),Tt=tt(),St=qe(),Nr=Ce(),mF=Ti(),vF=Bl();le.FILE_TO_BASE64_FN="fileToBase64";le.BASE64_TO_FILE_FN="base64ToFile";le.MAX_CONVERT_FILE_BYTES=50*1024*1024;le.STREAM_THRESHOLD_BYTES=1*1024*1024;function yF(){try{let o=globalThis.Deno;if(typeof o?.memoryUsage=="function")return Math.round(o.memoryUsage().rss/(1024*1024));let t=globalThis.process;if(typeof t?.memoryUsage=="function")return Math.round(t.memoryUsage().rss/(1024*1024))}catch{}}function vt(o,t,r,e){try{o.debug(`[${t}] ${r}`,{...e,rssMb:yF()})}catch{}}function Jl(o){let t=o;if(typeof t.toBase64=="function")return t.toBase64();let r="",e=32768;for(let n=0;n<o.length;n+=e)r+=String.fromCharCode.apply(null,o.subarray(n,n+e));return btoa(r)}function Gl(o){let t=o.indexOf(",");return(o.startsWith("data:")&&t!==-1?o.slice(t+1):o).replace(/\s+/g,"")}function ac(o){let t=Gl(o),r=Uint8Array;if(typeof r.fromBase64=="function")return r.fromBase64(t);let e=atob(t),n=new Uint8Array(e.length);for(let i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n}function cc(o){let t=Gl(o);return t.length===0||t.length%4===1||!/^[A-Za-z0-9+/]*={0,2}$/.test(t)?!1:!t.includes("=")||t.length%4===0}function RS(o){let t=0;for(let n of o)t+=n.byteLength;let r=new Uint8Array(t),e=0;for(let n of o)r.set(n,e),e+=n.byteLength;return r}var bF=64*1024;function Ey(o){return{async*[Symbol.asyncIterator](){let t;try{t=o.getReader({mode:"byob"})}catch{}if(t){let n=new ArrayBuffer(bF),i=!1;try{for(;;){let{done:s,value:c}=await t.read(new Uint8Array(n));if(s){i=!0;break}c.byteLength>0&&(yield c),n=c.buffer}}finally{if(!i)try{await t.cancel()}catch{}t.releaseLock()}return}let r=o.getReader(),e=!1;try{for(;;){let{done:n,value:i}=await r.read();if(n){e=!0;break}i&&(yield i)}}finally{if(!e)try{await r.cancel()}catch{}r.releaseLock()}}}}function MS(o){return Math.ceil(o/3)*4}async function*CS(o){let t=new TextEncoder,r=new Uint8Array(0);for await(let e of o){if(e.byteLength===0)continue;let n=r.byteLength===0?e:RS([r,e]),i=n.byteLength-n.byteLength%3;i>0?(yield t.encode(Jl(n.subarray(0,i))),r=n.slice(i)):r=n.slice()}r.byteLength>0&&(yield t.encode(Jl(r)))}async function*jS(o){let t=new TextDecoder,r="",e=!1,n=()=>new SyntaxError("Invalid base64 stream: content is not well-formed."),i=()=>new SyntaxError("Invalid base64 stream: padding must appear only at the end of the complete input."),s=4096,c="",u=!1;for await(let l of o){let d=t.decode(l,{stream:!0});if(c!==void 0){if(c+=d,("data:".startsWith(c.slice(0,5))||c.startsWith("data:"))&&c.length<5)continue;if(c.startsWith("data:")){let m=c.indexOf(",");if(m===-1){if(c.length<=s)continue;d=c}else d=c.slice(m+1)}else d=c;c=void 0}let f=d.replace(/\s+/g,"");if(e&&f.length>0)throw i();d=r+f;let h=d.length-d.length%4;if(h>0){let _=d.slice(0,h),m=_.includes("=");if(!cc(_))throw n();if(m&&d.length!==h)throw i();yield ac(_),u=!0,e=m,r=d.slice(h)}else r=d}let a=t.decode();if(c!==void 0){c+=a;let l=c.startsWith("data:")?c.indexOf(","):-1,d=(l===-1?c:c.slice(l+1)).replace(/\s+/g,"");if(e&&d.length>0)throw i();r+=d}else if(a){let l=a.replace(/\s+/g,"");if(e&&l.length>0)throw i();r+=l}if(r.length>0){if(e)throw i();if(!cc(r))throw n();yield ac(r)}else if(!u)throw n()}async function NS(o,t){try{await t.return?.()}catch{}try{await o.cancel()}catch{}}function DS(o){if(!(0,vF.commonsSupportsBlobStreaming)())return!1;let t=o.Metadata?.Size;return typeof t!="number"?!0:t>le.STREAM_THRESHOLD_BYTES}var gF=16;function Zt(o,t,r=0){if(o.length<r+t.length)return!1;for(let e=0;e<t.length;e++)if(o[r+e]!==t[e])return!1;return!0}function Xl(o){if(Zt(o,[137,80,78,71,13,10,26,10]))return"image/png";if(Zt(o,[255,216,255]))return"image/jpeg";if(Zt(o,[71,73,70,56]))return"image/gif";if(Zt(o,[37,80,68,70]))return"application/pdf";if(Zt(o,[31,139]))return"application/gzip";if(Zt(o,[73,73,42,0])||Zt(o,[77,77,0,42]))return"image/tiff";if(Zt(o,[82,73,70,70])){if(Zt(o,[87,69,66,80],8))return"image/webp";if(Zt(o,[87,65,86,69],8))return"audio/wav"}if(Zt(o,[102,116,121,112],4))return"video/mp4";if(Zt(o,[73,68,51]))return"audio/mpeg";if(Zt(o,[80,75,3,4]))return"application/zip"}function wF(o,t){return/[^.]\.[a-zA-Z0-9]{1,10}$/.test(o)?o:`${o}.${(0,Xe.getExtensionFromMimeType)(t)??"bin"}`}function LS(o){if(o===null)return"null";if(o===void 0)return"undefined";if(typeof o=="string")return/^\$[\w$]+(\.[\w$]+|\[\d+\])*$/.test(o)?`the string "${o}" \u2014 this looks like an unevaluated expression`:"a string";if(Array.isArray(o))return"an array";if(typeof o=="object"){let t=Object.keys(o);return`an object with keys [${t.slice(0,5).join(", ")}${t.length>5?", \u2026":""}]`}return`a ${typeof o}`}function Ty(o){return new Nr.WorkflowErrorBuilder().setType(St.WorkflowErrorType.VALIDATION_ERROR).setStatus(St.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Tt.t)(Tt.ErrorKeys.INVALID_BASE64_STRING,{taskName:o})).build()}function uc(o){let t=Math.floor(o/1048576);return new Nr.WorkflowErrorBuilder().setType(St.WorkflowErrorType.VALIDATION_ERROR).setStatus(St.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Tt.t)(Tt.ErrorKeys.CONVERT_FILE_TOO_LARGE,{maxMb:t})).build()}async function qS(o,t,r,e){if((0,Xe.isBlobFileReference)(o))return(await(0,mF.downloadBlobFileWithFriendlyError)(t,r,o)).content;if((0,Xe.isWorkflowFile)(o))return o.content;if(o instanceof Uint8Array)return o;throw new Nr.WorkflowErrorBuilder().setType(St.WorkflowErrorType.VALIDATION_ERROR).setStatus(St.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Tt.t)(Tt.ErrorKeys.INVALID_CONVERT_FILE_INPUT,{taskName:e,received:LS(o)})).build()}async function EF(o,t,r){vt(r,le.FILE_TO_BASE64_FN,"streaming: before open",{declaredSize:o.Metadata?.Size});let e=await Xe.OrchestratorUtils.openBlobDownloadStream(t.baseUrl,t.accessToken,t.organizationId,t.tenantId,o.ID,r,t.processConfig?.folderKey);vt(r,le.FILE_TO_BASE64_FN,"streaming: stream opened",{size:e.size,mimeType:e.mimeType});let n=o.FullName.replace(/([^.])\.[a-zA-Z0-9]{1,10}$/,"$1")||`file-${(0,Xe.getNewGuid)()}`,i=CS(Ey(e.stream)),s=e.size!==void 0?MS(e.size):void 0,c=Xe.OrchestratorUtils.uploadBlobStream,u=!1;try{let a=await c(t.baseUrl,t.accessToken,t.organizationId,t.tenantId,i,`${n}.base64`,"text/plain",r,"base64",t.processConfig?.folderKey,{knownSize:s});return u=!0,vt(r,le.FILE_TO_BASE64_FN,"streaming: after upload",{uploadedBytes:a.Metadata?.Size}),a}finally{u||await NS(e.stream,i)}}function TF(o){return o>=65&&o<=90||o>=97&&o<=122||o>=48&&o<=57||o===43||o===47}function FS(o,t){if(o===void 0||o<=0||o%4!==0||t===void 0||t.byteLength!==4)return;let r=0;for(;r<4&&t[3-r]===61;)r++;if(!(r>2)){for(let e=0;e<4-r;e++)if(!TF(t[e]))return;return o/4*3-r}}function SF(o){return o instanceof Error&&/Sized upload source (ended early|exceeded knownSize)/.test(o.message)}async function OF(o,t,r){try{return await xS(o,t,r,!0)}catch(e){if(!SF(e))throw e;return vt(r,le.BASE64_TO_FILE_FN,"streaming: sized upload mismatched (wrapped/prefixed base64?); retrying unsized",{error:e.message}),await xS(o,t,r,!1)}}async function xS(o,t,r,e){vt(r,le.BASE64_TO_FILE_FN,"streaming: before open",{declaredSize:o.Metadata?.Size,withSizing:e});let n=Xe.OrchestratorUtils.openBlobDownloadStream,i=await n(t.baseUrl,t.accessToken,t.organizationId,t.tenantId,o.ID,r,t.processConfig?.folderKey,e?{tailBytes:4}:void 0),s=e?FS(i.size,i.tail):void 0;vt(r,le.BASE64_TO_FILE_FN,"streaming: stream opened",{size:i.size,mimeType:i.mimeType,knownSize:s});let u=jS(Ey(i.stream))[Symbol.asyncIterator](),a=!1;try{let l=[],d=0,f=!1;for(;d<gF;){let k=await u.next();if(k.done){f=!0;break}k.value.byteLength!==0&&(l.push(k.value),d+=k.value.byteLength)}let h=RS(l),_=Xl(h),m=_??"application/octet-stream";vt(r,le.BASE64_TO_FILE_FN,"streaming: mime sniffed",{sniffedMime:_,headBytes:h.byteLength});let v=(0,Xe.getExtensionFromMimeType)(_),b=o.FullName.replace(/\.base64$/i,""),g=v?`${b.replace(/([^.])\.[a-zA-Z0-9]{1,10}$/,"$1")||`file-${(0,Xe.getNewGuid)()}`}.${v}`:b||`file-${(0,Xe.getNewGuid)()}.bin`;async function*w(){if(h.byteLength>0&&(yield h),!f)for(;;){let k=await u.next();if(k.done)break;yield k.value}}let T=Xe.OrchestratorUtils.uploadBlobStream,P=await T(t.baseUrl,t.accessToken,t.organizationId,t.tenantId,w(),g,m,r,"byte-array",t.processConfig?.folderKey,{knownSize:s});return a=!0,vt(r,le.BASE64_TO_FILE_FN,"streaming: after upload",{uploadedBytes:P.Metadata?.Size}),P}catch(l){throw l instanceof SyntaxError?Ty(le.BASE64_TO_FILE_FN):l}finally{a||await NS(i.stream,u)}}async function kF(o,t,r,e=le.MAX_CONVERT_FILE_BYTES){if(!(0,Xe.isBlobFileReference)(o))throw new Nr.WorkflowErrorBuilder().setType(St.WorkflowErrorType.VALIDATION_ERROR).setStatus(St.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Tt.t)(Tt.ErrorKeys.INVALID_CONVERT_FILE_INPUT,{taskName:le.FILE_TO_BASE64_FN,received:LS(o)})).build();if((0,Xe.getAttachmentEncoding)(o)==="base64")return o;try{if(DS(o))return await EF(o,t,r);let n=o.Metadata?.Size;if(typeof n=="number"&&n>e)throw uc(e);vt(r,le.FILE_TO_BASE64_FN,"before download",{declaredSize:n});let i=await qS(o,t,r,le.FILE_TO_BASE64_FN);if(i.byteLength>e)throw uc(e);vt(r,le.FILE_TO_BASE64_FN,"after download",{fileBytes:i.byteLength});let s=Jl(i);vt(r,le.FILE_TO_BASE64_FN,"after base64 encode",{base64Length:s.length});let c=new TextEncoder().encode(s);vt(r,le.FILE_TO_BASE64_FN,"after text encode");let u=o.FullName.replace(/([^.])\.[a-zA-Z0-9]{1,10}$/,"$1")||`file-${(0,Xe.getNewGuid)()}`,a=await Xe.OrchestratorUtils.uploadFileToBlob(t.baseUrl,t.accessToken,t.organizationId,t.tenantId,c,`${u}.base64`,"text/plain",r,t.processConfig?.folderKey,{encoding:"base64"});return vt(r,le.FILE_TO_BASE64_FN,"after upload"),a}catch(n){throw(0,Nr.isWorkflowError)(n)?n:new Nr.WorkflowErrorBuilder().fromError(n).setType(St.WorkflowErrorType.RUNTIME_ERROR).setStatus(St.WorkflowErrorStatus.INTERNAL_SERVER_ERROR).setTitle((0,Tt.t)(Tt.ErrorKeys.FAILED_DOWNLOAD_DATA,{taskName:le.FILE_TO_BASE64_FN})).build()}}async function WS(o,t,r,e=le.MAX_CONVERT_FILE_BYTES){if((0,Xe.getAttachmentEncoding)(o)!=="base64")return o;try{if(DS(o))return await OF(o,t,r);let n=o.Metadata?.Size;if(typeof n=="number"&&Math.floor(n*3/4)>e)throw uc(e);vt(r,le.BASE64_TO_FILE_FN,"before download",{declaredSize:n});let i=await qS(o,t,r,le.BASE64_TO_FILE_FN);vt(r,le.BASE64_TO_FILE_FN,"after download",{textBytes:i.byteLength});let s=new TextDecoder().decode(i);if(!cc(s))throw Ty(le.BASE64_TO_FILE_FN);let c=ac(s);if(c.byteLength>e)throw uc(e);vt(r,le.BASE64_TO_FILE_FN,"after base64 decode",{decodedBytes:c.byteLength});let u=Xl(c),a=u??"application/octet-stream",l=(0,Xe.getExtensionFromMimeType)(u),d=o.FullName.replace(/\.base64$/i,""),f=l?`${d.replace(/([^.])\.[a-zA-Z0-9]{1,10}$/,"$1")||`file-${(0,Xe.getNewGuid)()}`}.${l}`:d||`file-${(0,Xe.getNewGuid)()}.bin`,h=await Xe.OrchestratorUtils.uploadFileToBlob(t.baseUrl,t.accessToken,t.organizationId,t.tenantId,c,f,a,r,t.processConfig?.folderKey);return vt(r,le.BASE64_TO_FILE_FN,"after upload"),h}catch(n){throw(0,Nr.isWorkflowError)(n)?n:new Nr.WorkflowErrorBuilder().fromError(n).setType(St.WorkflowErrorType.RUNTIME_ERROR).setStatus(St.WorkflowErrorStatus.INTERNAL_SERVER_ERROR).setTitle((0,Tt.t)(Tt.ErrorKeys.FAILED_DOWNLOAD_DATA,{taskName:le.BASE64_TO_FILE_FN})).build()}}async function PF(o,t,r,e=le.MAX_CONVERT_FILE_BYTES){let n=o?.base64;if((0,Xe.isBlobFileReference)(n))return WS(n,t,r,e);if(typeof n!="string"||n.trim().length===0)throw new Nr.WorkflowErrorBuilder().setType(St.WorkflowErrorType.VALIDATION_ERROR).setStatus(St.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Tt.t)(Tt.ErrorKeys.MISSING_BASE64_STRING,{taskName:le.BASE64_TO_FILE_FN})).build();if(!cc(n))throw Ty(le.BASE64_TO_FILE_FN);let i=Gl(n);if(Math.floor(i.length*3/4)>e)throw uc(e);try{let s=ac(i),u=(typeof o.mimeType=="string"&&o.mimeType.trim().length>0?o.mimeType.trim():void 0)??Xl(s)??"application/octet-stream",a=typeof o.fileName=="string"&&o.fileName.trim().length>0?o.fileName.trim():void 0,l=wF(a??`file-${(0,Xe.getNewGuid)()}`,u);return await Xe.OrchestratorUtils.uploadFileToBlob(t.baseUrl,t.accessToken,t.organizationId,t.tenantId,s,l,u,r,t.processConfig?.folderKey)}catch(s){throw(0,Nr.isWorkflowError)(s)?s:new Nr.WorkflowErrorBuilder().fromError(s).setType(St.WorkflowErrorType.RUNTIME_ERROR).setStatus(St.WorkflowErrorStatus.INTERNAL_SERVER_ERROR).setTitle((0,Tt.t)(Tt.ErrorKeys.FAILED_CONVERT_BASE64_TO_FILE,{taskName:le.BASE64_TO_FILE_FN})).build()}}});var Sy=O(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.DebugManager=void 0;var Ss=tt(),Zl=class{static isDebugModeEnabled(t){return t.$runtime?.metadata?.isDebugMode===!0}static setBreakpoints(t,r){let e=Object.keys(r??{})[0];if(!e){console.warn(`No breakpoints given to set for workflow run: ${t}, adding empty array`),this.workflowBreakpoints.set(t,[]);return}let n=r[e]??[];this.validateBreakpoints(n),console.debug(`Setting ${n.length} breakpoints for workflow run: ${t} with file: ${e}`),this.workflowBreakpoints.set(t,n)}static getBreakpoints(t){return this.workflowBreakpoints.get(t)}static clearBreakpoints(t){this.workflowBreakpoints.delete(t)}static taskHasBreakpoint(t,r){let n=this.getBreakpoints(t)?.find(i=>i.taskId===r&&i.isEnabled);return{shouldPause:!!n,breakpointId:n?.id}}static validateBreakpoints(t){for(let r of t){if(!r.id?.trim())throw console.error("[DebugManager] Breakpoint ID cannot be empty"),new Error((0,Ss.t)(Ss.ErrorKeys.INTERNAL_ERROR));if(!r.taskId?.trim())throw console.error("[DebugManager] Task ID cannot be empty"),new Error((0,Ss.t)(Ss.ErrorKeys.INTERNAL_ERROR));if(typeof r.isEnabled!="boolean")throw console.error("[DebugManager] Breakpoint isEnabled must be a boolean"),new Error((0,Ss.t)(Ss.ErrorKeys.INTERNAL_ERROR))}}};Ql.DebugManager=Zl;Zl.workflowBreakpoints=new Map});var US=O(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.defaultLogger=Os.DefaultLogger=void 0;var ed=class o{constructor(){}static getInstance(){return o.instance||(o.instance=new o),o.instance}async logWorkflowEvent(t,r,e){await this.logWithDataJson(t,r,e)}async logTaskEvent(t,r,e){await this.logWithDataJson(t,r,e)}async logEvent(t,r){await this.logWithDataJson(t,r)}async logIterationVariables(t,r,e){await this.logWithDataJson(`Variables: ${t} > ${r}`,e)}async debug(t,r){await this.logWithDataJson(`DEBUG: ${t}`,r)}async info(t,r){await this.logWithDataJson(`INFO: ${t}`,r)}async warn(t,r){console.warn(t,r)}async error(t,r,e){console.error(t,r,JSON.stringify(r??{}),JSON.stringify(e??{},Object.getOwnPropertyNames(e??{})))}async logWithDataJson(t,r,e){console.log(t,r,JSON.stringify(r??{}),JSON.stringify(e??{},Object.getOwnPropertyNames(e??{})))}shutdown(){return Promise.resolve()}};Os.DefaultLogger=ed;Os.defaultLogger=ed.getInstance()});var ky=O(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.getDateTimeDescriptor=void 0;Si.createRuntimeExpressionArgs=AF;Si.buildJobMetadata=IF;var Oy=Ba();function AF(o,t,r,e,n){return{$secrets:{},$authorization:{scheme:Oy.BEARER,parameter:t?.accessToken},$workflow:{id:o.document.name+"-"+o.document.version,definition:{document:o.document,do:o.do,evaluate:o.evaluate,use:o.use,httpRetryConfig:o.httpRetryConfig},input:structuredClone(n??{}),startedAt:(0,Si.getDateTimeDescriptor)(r)},$runtime:{name:Oy.UIPATH_WORKFLOW_RUNTIME_NAME,version:Oy.UIPATH_WORKFLOW_RUNTIME_VERSION,metadata:{organizationId:t.organizationId,tenantId:t.tenantId,baseUrl:t.baseUrl,workflowRunId:e,isDebugMode:t.debugConfig?.runInDebugMode??!1,isRunningInDesigner:t.debugConfig?.isRunningInDesigner??!1,verboseDataLogging:(t.debugConfig?.isRunningInDesigner??!1)||(t.debugConfig?.enableVerboseDataLogging??!1),language:o.evaluate?.language,source:t.source??""},control:{signalWorkflowEnd:!1,signalLoopExit:!1,taskRetryDepth:0,signalWorkflowResponse:void 0}}}}function IF(o){let t={key:o.processConfig?.jobKey,startedByUserKey:o.userId};return Object.values(t).some(e=>e!=null&&e!=="")?t:void 0}var xF=o=>(o||(o=new Date),{iso8601:o.toISOString(),epoch:{seconds:Math.floor(o.getTime()/1e3),milliseconds:o.getTime()}});Si.getDateTimeDescriptor=xF});var nd=O(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.LoggingHelper=void 0;var td=Oe(),Qt=qe(),Nn=vs(),RF=ky(),lc=class o{static async logWorkflowData(t,r){let e=o.buildWorkflowLogData(r.event,r.runtimeExpressionArgs,r.input,r.output,r.details);await t.logWorkflowEvent(r.event,e,r.error)}static async logTaskData(t,r,e){let n=await o.buildTaskLogData(r.taskId,r.taskType,r.event,r.runtimeExpressionArgs,e,r.input,r.output,r.properties,r.variables,r.displayName,r.shouldPause,r.breakpointId,r.vendorExecutionTimeMs,r.HttpCallMode,r.isUiPathInternalServiceCall,r.taskSpanId,r.retry);await t.logTaskEvent(r.event,n,r.error)}static buildWorkflowLogData(t,r,e,n,i){let s,c,u,a,l,d=new Date,f=r?.$runtime?.metadata.workflowRunId,h=r?.$workflow.startedAt?.epoch.milliseconds;if(t===Qt.WorkflowEvent.WORKFLOW_STARTED){o.workflowTaskTimes.set(f,new Map);let g=r.$runtime?.metadata?.verboseDataLogging??!1;o.workflowVerboseDataModes.set(f,g)}else if(h){let g=o.calculateWorkflowExternalExecutionTime(f);u=g.totalTimeMs,l=g.externalExecutionBreakdownJson,c=d.getTime(),s=c-h,a=s-u,o.cleanup(f)}else console.warn(`Workflow '${f}' start time not found in RuntimeExpressionArgs!`),s=0,u=0,a=0;let _=(0,Nn.replaceBinaryWithPlaceholder)(e),m=(0,Nn.replaceBinaryWithPlaceholder)(n),v=i&&(0,Nn.replaceBinaryWithPlaceholder)(i);return{workflowId:r?.$workflow.id,workflowRunId:f,timestamp:d,language:r?.$runtime?.metadata?.language,input:_,output:m,details:v,executionStartTimeMs:h,executionEndTimeMs:c,executionTimeMs:s,externalExecutionTimeMs:u,systemExecutionTimeMs:a,externalExecutionBreakdown:l}}static async buildTaskLogData(t,r,e,n,i,s,c,u,a,l,d,f,h,_,m,v,b){let g,w,T,P=new Date,k=n?.$runtime?.metadata.workflowRunId;if(e===Qt.TaskEvent.TASK_STARTED)await i.mergeVariableValues({$task:{startedAt:(0,RF.getDateTimeDescriptor)(P)}}),T=P.getTime(),o.workflowTaskTimes.get(k)?.set(t,{taskId:t,startTime:T});else if(e===Qt.TaskEvent.TASK_RETRIED)T=o.workflowTaskTimes.get(k)?.get(t)?.startTime;else{let Ke=o.workflowTaskTimes.get(k)?.get(t);T=Ke?.startTime,T?(w=P.getTime(),g=w-T):(console.warn(`Task '${t}' start time not found in RuntimeExpressionArgs!`),g=0),h!==void 0&&Ke&&(Ke.vendorTime=h)}let x,R=o.workflowVerboseDataModes.get(k)??!1,C=(r!==Qt.TaskType.DO||t.includes("If"))&&e===Qt.TaskEvent.TASK_STARTED,j=(r!==Qt.TaskType.DO||t.includes("If"))&&e===Qt.TaskEvent.TASK_COMPLETED,L=(r!==Qt.TaskType.DO||t.includes("If"))&&e!==Qt.TaskEvent.TASK_STARTED,D=R&&(r!==Qt.TaskType.DO||t.includes("If")),F=R&&(r!==Qt.TaskType.DO||t.includes("If"))&&e===Qt.TaskEvent.TASK_STARTED;if(D)try{x=await i.getContextDiff()}catch(xe){console.warn("Failed to get context diff from worker, falling back to full context:",xe),x={patches:[{op:"replace",path:"",value:await i.evaluateDataExpression("${$context}")}],hasChanges:!0},xe instanceof Error&&console.warn("Context diff error details:",{message:xe.message,stack:xe.stack,name:xe.name})}let q=j?o.extractAttachments(c):void 0,z=C?(0,td.redactSensitiveValues)((0,Nn.replaceBinaryWithPlaceholder)(s)):void 0,K=j?(0,td.redactSensitiveValues)((0,Nn.replaceBinaryWithPlaceholder)(c)):void 0,se=L?(0,td.redactSensitiveValues)((0,Nn.replaceBinaryWithPlaceholder)(u)):void 0,X=F?(0,td.redactSensitiveValues)((0,Nn.replaceBinaryWithPlaceholder)(a)):void 0,he=(0,Nn.redactSensitivePatches)(x);return{workflowId:n?.$workflow.id,workflowRunId:k,taskId:t,displayName:l||`${Qt.FormattedTaskTypeMap[r]}: ${t}`,taskType:r,timestamp:P,input:z,output:K,properties:se,contextDiff:he,variables:X,executionStartTimeMs:T,executionEndTimeMs:w,executionTimeMs:g,isPaused:d,breakpointId:f,vendorExecutionTimeMs:h,HttpCallMode:_,isUiPathInternalServiceCall:m,taskSpanId:v,...q&&q.length>0?{attachments:q}:{},...b?{retry:b}:{}}}static extractAttachments(t){let r=(0,Nn.findBlobAttachmentRefs)(t);return r.length>0?r:void 0}static calculateWorkflowExternalExecutionTime(t){let r=0,e={},n=o.workflowTaskTimes.get(t);if(n)for(let s of n.values())s.vendorTime!==void 0&&(e[s.taskId]=s.vendorTime,r+=s.vendorTime);let i=Object.keys(e).length>0?JSON.stringify(e):void 0;return{totalTimeMs:r,externalExecutionBreakdownJson:i}}static cleanup(t){o.workflowTaskTimes.delete(t),o.workflowVerboseDataModes.delete(t)}};rd.LoggingHelper=lc;lc.workflowTaskTimes=new Map;lc.workflowVerboseDataModes=new Map});var $S=O(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.createRedactingLogger=void 0;var MF=Qa(),CF=(o,t)=>{let r=()=>MF.SecretRegistryStore.get(t),e=s=>r()?.redactString(s)??s,n=s=>{let c=r();return c?c.redact(s):s},i=s=>{let c=r();return c?c.redactError(s):s};return{debug:(s,c)=>o.debug(e(s),n(c)),info:(s,c)=>o.info(e(s),n(c)),warn:(s,c)=>o.warn(e(s),n(c)),error:(s,c,u)=>o.error(e(s),n(c),i(u)),logIterationVariables:(s,c,u)=>o.logIterationVariables(s,c,n(u)),logEvent:(s,c)=>o.logEvent(s,n(c)),logWorkflowEvent:(s,c,u)=>o.logWorkflowEvent(s,n(c),i(u)),logTaskEvent:(s,c,u)=>o.logTaskEvent(s,n(c),i(u)),shutdown:()=>o.shutdown()}};od.createRedactingLogger=CF});var Ne=O(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.isFunction=void 0;function jF(o){return typeof o=="function"}id.isFunction=jF});var _o=O(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.createErrorClass=void 0;function NF(o){var t=function(e){Error.call(e),e.stack=new Error().stack},r=o(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}sd.createErrorClass=NF});var Py=O(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.UnsubscriptionError=void 0;var DF=_o();ad.UnsubscriptionError=DF.createErrorClass(function(o){return function(r){o(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
868
|
+
`}constructor(){super()}static getInstance(){return o.instance||(o.instance=new o),o.instance}static async reset(){o.instance&&(o.instance.cleanup(),await new Promise(t=>setTimeout(t,100)))}get instanceName(){return o.INSTANCE_NAME}getWorkerScript(){return o.EXPRESSION_EVALUATOR}buildWorker(t){if(ry)return{worker:new ry(t,{eval:!0}),workerUrl:null};if(typeof Worker<"u"&&typeof Blob<"u"&&typeof URL<"u"&&typeof URL.createObjectURL=="function"){let r=new Blob([t],{type:"application/javascript"}),e=URL.createObjectURL(r);return{worker:new Worker(e),workerUrl:e}}throw new Error("No worker implementation available")}};xl.JsExpressionHandler=Il;Il.INSTANCE_NAME="JsExpressionHandler"});var oy=O(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.ExpressionLanguage=void 0;Ga.getExpressionHandler=dq;var rS=qe(),uq=Ce(),lq=ny(),Rl;(function(o){o.JavaScript="javascript"})(Rl||(Ga.ExpressionLanguage=Rl={}));function dq(o,t){let r=o.evaluate?.language;switch(r){case Rl.JavaScript:return t?.expressionHandlers?.[Rl.JavaScript]??lq.JsExpressionHandler.getInstance();default:throw new uq.WorkflowErrorBuilder().setType(rS.WorkflowErrorType.VALIDATION_ERROR).setStatus(rS.WorkflowErrorStatus.BAD_REQUEST).setTitle(`Unsupported expression language: ${r}`).setDetail("Only JavaScript expressions are supported.").setInstance("expression-handler-factory").build()}}});var nS=O(hr=>{"use strict";var fq=hr&&hr.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),Ml=hr&&hr.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&fq(t,o,r)};Object.defineProperty(hr,"__esModule",{value:!0});hr.ExpressionLanguage=void 0;Ml(Qv(),hr);Ml(Pl(),hr);var pq=oy();Object.defineProperty(hr,"ExpressionLanguage",{enumerable:!0,get:function(){return pq.ExpressionLanguage}});Ml(ny(),hr);Ml(ty(),hr)});var iS=O(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.TelemetryDataFormatter=void 0;var bi=qe(),oS=Ce(),jn={applicationName:"UiPath.ApiWorkflows",events:{workflowEvent:"ApiWF.Workflow",taskEvent:"ApiWF.Task",errorEvent:"ApiWF.error"},status:{completed:"completed",faulted:"faulted",cancelled:"cancelled",retrying:"retrying"},responseCode:{ok:"200",error:"500"}},iy=class{constructor(t,r,e,n,i,s,c,u,a,l,d,f){this.customDimensions={ApplicationName:jn.applicationName,CloudOrganizationId:t,CloudTenantId:r,CloudUserId:i??"",SubscriptionType:s??"",ConsumerId:c??"",ProjectId:u??"",SolutionId:a??"",Designtime:l===!0?"true":"false"},e&&(this.customDimensions.ConsumerRunId=e,this.customDimensions.TraceId=e),n&&(this.customDimensions.ParentSpanId=n),d&&(this.customDimensions.FolderKey=d),f&&(this.customDimensions.JobId=f)}formatWorkflowLog(t,r,e){if(t!==bi.WorkflowEvent.WORKFLOW_STARTED)try{let n={...this.customDimensions,WorkflowRunId:r.workflowRunId,ExecutionStartTime:r.executionStartTimeMs?new Date(r.executionStartTimeMs).toISOString():"",ExecutionEndTime:r.executionEndTimeMs?new Date(r.executionEndTimeMs).toISOString():"",ExecutionTime:r.executionTimeMs?r.executionTimeMs.toString():"0",Language:r.language,ExternalExecutionTime:r.externalExecutionTimeMs?r.externalExecutionTimeMs.toString():"0",SystemExecutionTime:r.systemExecutionTimeMs?r.systemExecutionTimeMs.toString():"0",...r.externalExecutionBreakdown?{ExternalExecutionBreakdown:r.externalExecutionBreakdown}:{}};return this.populateStatusAndResponseCode(n,t,e),{name:jn.events.workflowEvent,properties:n}}catch(n){console.error("Failed to generate workflow telemetry data:",n);return}}formatTaskLog(t,r,e){if(!(t===bi.TaskEvent.TASK_STARTED||r.taskType===bi.TaskType.DO))try{let n={...this.customDimensions,WorkflowRunId:r.workflowRunId,TaskId:r.taskId,TaskType:bi.FormattedTaskTypeMap[r.taskType],DisplayName:r.displayName||`${bi.FormattedTaskTypeMap[r.taskType]}: ${r.taskId}`,ExecutionStartTime:r.executionStartTimeMs?new Date(r.executionStartTimeMs).toISOString():"",ExecutionEndTime:r.executionEndTimeMs?new Date(r.executionEndTimeMs).toISOString():"",ExecutionTime:r.executionTimeMs?r.executionTimeMs.toString():"0",...r.vendorExecutionTimeMs!==void 0?{VendorExecutionTime:r.vendorExecutionTimeMs.toString()}:{},...r.HttpCallMode!==void 0?{HttpCallMode:r.HttpCallMode.toString()}:{},...r.isUiPathInternalServiceCall!==void 0?{IsUiPathInternalServiceCall:r.isUiPathInternalServiceCall.toString()}:{},...r.retry?{RetryAttempt:r.retry.attempt.toString(),...r.retry.maxAttempts!==void 0?{RetryMaxAttempts:r.retry.maxAttempts.toString()}:{},RetryDelayMs:r.retry.delayMs.toString(),...r.retry.retryAfterMs!==void 0?{RetryAfterMs:r.retry.retryAfterMs.toString()}:{},...r.retry.failedTaskName?{RetryFailedTaskId:r.retry.failedTaskName}:{}}:{}};return this.populateStatusAndResponseCode(n,t,e),{name:jn.events.taskEvent,properties:n}}catch(n){console.error("Failed to generate task telemetry data:",n);return}}populateStatusAndResponseCode(t,r,e){if(!e){t.Status=jn.status.completed,t.ResponseCode=jn.responseCode.ok;return}t.ErrorType=("type"in e?e.type:null)||e.name||"error",r===bi.TaskEvent.TASK_STOPPED?(t.ErrorMessage="Task has stopped as a child task has failed",t.Status=jn.status.cancelled):r===bi.TaskEvent.TASK_RETRIED?(t.ErrorMessage=(0,oS.toErrorString)(e),t.Status=jn.status.retrying):(t.ErrorMessage=(0,oS.toErrorString)(e),t.Status=jn.status.faulted),t.ResponseCode="status"in e&&e.status?e.status.toString():jn.responseCode.error}};Cl.TelemetryDataFormatter=iy});var sy=O(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.newOtelSpanId=uS;gs.toOtelTraceIdOrUndefined=lS;gs.toOtelTraceId=mq;gs.toOtelSpanId=vq;var sS=/^[0-9a-f]{32}$/,hq=/^[0-9a-f]{16}$/;function aS(o){return o.replace(/-/g,"").toLowerCase()}function _q(o){if(!globalThis.crypto?.getRandomValues)throw new Error("Web Crypto (globalThis.crypto.getRandomValues) is unavailable in this runtime.");let t=new Uint8Array(o);return globalThis.crypto.getRandomValues(t),Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function cS(o){for(;;){let t=_q(o);if(!/^0+$/.test(t))return t}}function uS(){return cS(8)}function lS(o){if(o){let t=aS(o);if(sS.test(t)&&t!=="0".repeat(32))return t}}function mq(o){return lS(o)??cS(16)}function vq(o){if(o){let t=aS(o);if(hq.test(t)&&t!=="0".repeat(16))return t;if(sS.test(t)){let r=t.slice(16);if(r!=="0".repeat(16))return r}}return uS()}});var fS=O(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.TraceViewDataFormatter=void 0;var ay=Oe(),be=qe(),dS=Ce(),yq=vs(),Xa=sy(),jl=class o{constructor(t,r,e){this.workflowConfig=t,this.workflowName=r,this._traceId=(0,Xa.toOtelTraceId)(this.workflowConfig.tracingConfig?.traceId),this.apiWorkflowSpanId=e?(0,Xa.toOtelSpanId)(e):(0,Xa.newOtelSpanId)(),this.operationId=this.workflowConfig.telemetryConfig?.traceId||"",this.spanJobContext={organizationId:this.workflowConfig.organizationId,tenantId:this.workflowConfig.tenantId,processKey:this.workflowConfig.processConfig?.processKey,jobKey:this.workflowConfig.processConfig?.jobKey,folderKey:this.workflowConfig.processConfig?.folderKey},this.logInputOutput=this.workflowConfig.tracingConfig?.enableIoLogs===!0}get traceId(){return this._traceId}formatWorkflowLog(t,r,e){let n={spanType:be.SpanType.ApiWorkflowRun,workflowRunId:r.workflowRunId,executionTimeMs:r.executionTimeMs,jobSource:this.workflowConfig.source,language:r.language,operationId:this.operationId,error:this.mapErrorToSpanError(t,e),input:void 0,output:void 0};return this.createSpan(t,r,`API Workflow: ${this.workflowName}`,this.workflowConfig.tracingConfig?.parentSpanId?(0,Xa.toOtelSpanId)(this.workflowConfig.tracingConfig.parentSpanId):"",n,new Map([[be.WorkflowEvent.WORKFLOW_STARTED,be.StatusEnum.Running],[be.WorkflowEvent.WORKFLOW_COMPLETED,be.StatusEnum.Ok],[be.WorkflowEvent.WORKFLOW_FAILED,be.StatusEnum.Error]]))}formatTaskLog(t,r,e){let n=this.logInputOutput&&r.properties?this.sanitizeInputProperties(r.properties):void 0,i=this.shouldSanitizeOutput(r.properties),s=this.logInputOutput&&r.output?i?this.sanitizeOutputProperties(r.output):r.output:void 0,c=this.dropIfExceedsLimit(n,"input"),u=this.dropIfExceedsLimit(s,"output"),l=(t===be.TaskEvent.TASK_COMPLETED&&this.logInputOutput?this.extractAttachments(r.output):void 0)?.map(h=>this.toTraceViewAttachment(h)),d={spanType:be.SpanType.ApiWorkflowTaskRun,taskId:r.taskId,taskType:be.FormattedTaskTypeMap[r.taskType],workflowRunId:r.workflowRunId,executionTimeMs:r.executionTimeMs,licenseRefId:r.licenseRefId,input:c,output:u,error:this.mapErrorToSpanError(t,e)},f=this.createSpan(t,r,r.displayName||`${be.FormattedTaskTypeMap[r.taskType]}: ${r.taskId}`,this.apiWorkflowSpanId,d,new Map([[be.TaskEvent.TASK_STARTED,be.StatusEnum.Running],[be.TaskEvent.TASK_RETRIED,be.StatusEnum.Running],[be.TaskEvent.TASK_COMPLETED,be.StatusEnum.Ok],[be.TaskEvent.TASK_FAILED,be.StatusEnum.Error],[be.TaskEvent.TASK_STOPPED,be.StatusEnum.Cancelled]]));return l&&l.length>0&&(f.attachments=l),f}formatUserLog(t,r,e){let n=r.message?this.dropIfExceedsLimit(r.message,"userLog"):"",i={spanType:be.SpanType.ApiWorkflowUserLog,taskId:r.taskId,timestamp:r.timestamp,logLevel:be.VerbosityLevelEnum[this.mapLogLevelToVerbosityLevel(r.logLevel)],message:n},s=r.timestamp.getTime();return this.createSpan(t,{...r??{},executionStartTimeMs:s,executionEndTimeMs:s},`User Log: ${r.taskId}`,e,i,new Map([[be.LogEvent.USER_LOG,be.StatusEnum.Ok]]))}sanitizeInputProperties(t){let r=t.headers&&typeof t.headers=="object",e=t.query&&typeof t.query=="object";if(!r&&!e)return t;let n={...t};return r&&(n.headers=ay.REDACTED_STRING),e&&(n.query=(0,ay.sanitizeSecrets)(n.query)),n}shouldSanitizeOutput(t){if(!t)return!1;let r=t.url,e=t.method;return!!(r&&typeof r=="string"&&r.startsWith("/credentials/")&&e&&typeof e=="string"&&e.toUpperCase()==="GET")}sanitizeOutputProperties(t){if(!t||typeof t!="object")return t;let r=t;if(!(r.content&&typeof r.content=="object"))return t;let n={...r};return n.content=(0,ay.sanitizeSecrets)(n.content),n}extractAttachments(t){let r=(0,yq.findBlobAttachmentRefs)(t);return r.length>0?r:void 0}toTraceViewAttachment(t){return{id:t.ID,fileName:t.FullName,mimeType:t.MimeType}}createSpan(t,r,e,n,i,s){let c=r.taskSpanId;return{id:i.spanType===be.SpanType.ApiWorkflowRun?this.apiWorkflowSpanId:typeof c=="string"?c:(0,Xa.newOtelSpanId)(),parentId:n,name:e,spanType:i.spanType,status:s.get(t)||be.StatusEnum.Unset,source:be.SourceEnum.ApiWorkflows,traceId:this._traceId,startTime:r.executionStartTimeMs?new Date(r.executionStartTimeMs):new Date,endTime:r.executionEndTimeMs?new Date(r.executionEndTimeMs):void 0,updatedAt:new Date,attributes:i,jobContext:this.spanJobContext}}mapLogLevelToVerbosityLevel(t){switch(t){case be.LogLevel.VERBOSE:return be.VerbosityLevelEnum.Verbose;case be.LogLevel.ERROR:return be.VerbosityLevelEnum.Error;case be.LogLevel.WARN:return be.VerbosityLevelEnum.Warning;case be.LogLevel.INFO:return be.VerbosityLevelEnum.Information;default:return be.VerbosityLevelEnum.Trace}}mapErrorToSpanError(t,r){if(!r||t===be.TaskEvent.TASK_RETRIED)return;let e;if(t===be.TaskEvent.TASK_STOPPED)e={message:"Task has stopped as a child task has failed",details:(0,dS.isWorkflowError)(r)?`Child task ${r.originatingTaskName} failed: ${r.title}`:`Child task failed: ${r.message}`};else if((0,dS.isWorkflowError)(r)){let n=r,i="instance"in r&&r.instance?`${r.instance}: `:"",s="detail"in r&&r.detail?r.detail:"",c=`${i}${s}`;e={message:n.title,details:c}}else e={message:r.message,details:r.stack};return e}estimateDataSize(t){try{if(t==null)return 0;let r=JSON.stringify(t);return new Blob([r]).size}catch{return 0}}dropIfExceedsLimit(t,r){if(t==null)return t;let e=this.estimateDataSize(t);if(e<=o.MAX_DATA_SIZE_BYTES)return t;let n=(e/(1024*1024)).toFixed(2),i=(o.MAX_DATA_SIZE_BYTES/(1024*1024)).toFixed(0);return{dropped:!0,reason:"data_size_exceeded_limit",message:`${r} data was dropped because it exceeded ${i}MB, limit (original size: ${n}MB)`}}};Nl.TraceViewDataFormatter=jl;jl.MAX_DATA_SIZE_BYTES=5*1024*1024});var hS=O(ho=>{"use strict";var bq=ho&&ho.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),pS=ho&&ho.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&bq(t,o,r)};Object.defineProperty(ho,"__esModule",{value:!0});pS(iS(),ho);pS(fS(),ho)});var _S=O(gi=>{"use strict";var gq=gi&&gi.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),wq=gi&&gi.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&gq(t,o,r)};Object.defineProperty(gi,"__esModule",{value:!0});wq(hS(),gi)});var Qa=O(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.SecretRegistryStore=void 0;var Eq=Oe(),Za=class o{static acquire(t){let r=o.runsInProgress.get(t)??0;o.runsInProgress.set(t,r+1)}static release(t){let r=(o.runsInProgress.get(t)??1)-1;if(r>0){o.runsInProgress.set(t,r);return}o.runsInProgress.delete(t),o.dispose(t)}static get(t){return o.registries.get(t)}static getOrCreate(t){let r=o.registries.get(t);if(r)return r;let e=new Eq.SecretRegistry;return o.registries.set(t,e),e}static dispose(t){o.registries.delete(t)}};Dl.SecretRegistryStore=Za;Za.registries=new Map;Za.runsInProgress=new Map});var Et=O(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.AbstractTaskHandler=void 0;var Tq=Oe(),Sq=Qa(),Ll=tt(),ql=Ce(),cy=class{constructor(t,r,e){this.workflowConfig=t.workflowConfig,this.expressionHandler=e,this.logger=r,this.taskHandlerArgs=t}async handleTask(t,r,e,n){try{e&&this.setRuntimeExpressionArgs(e),this.executionContext=n;let i=await this.expressionHandler.evaluateDataExpression("${$input}"),s=await this.internalHandleTask(t,r,i);if(this.getRuntimeExpressionArgs().$runtime.control?.signalWorkflowEnd)return s;let c=await this.postProcess(r,t,s);return s.success?{...s,data:c}:s}catch(i){throw(0,ql.isWorkflowError)(i)?i:new ql.WorkflowErrorBuilder().fromError(i).setTitle((0,Ll.t)(Ll.ErrorKeys.ERROR_HANDLING_TASK,{taskName:t})).setData({taskName:t}).build()}}setRuntimeExpressionArgs(t){this.runtimeExpressionArgs=t}getRuntimeExpressionArgs(){if(!this.runtimeExpressionArgs)throw new Error("Runtime expression args are not set");return this.runtimeExpressionArgs}getSecretRegistry(){let t=this.runtimeExpressionArgs?.$runtime?.metadata?.workflowRunId;return t?Sq.SecretRegistryStore.get(t):void 0}async postProcess(t,r,e){try{if(!e.success)return e.data;let n=await this.handleOutput(t,r,e.data);return await this.handleExport(t,e.data),n}catch(n){let i=n instanceof Error?n:new Error((0,Tq.getErrorMessage)(n));throw this.logger.error("Error during post-processing task:",void 0,i),(0,ql.isWorkflowError)(i)?i:new ql.WorkflowErrorBuilder().fromError(i).setTitle((0,Ll.t)(Ll.ErrorKeys.INTERNAL_ERROR)).build()}}async handleOutput(t,r,e){try{return t.output?.as?await this.expressionHandler.setInputOutput(void 0,t.output.as):(await this.expressionHandler.setInputOutput(e,void 0),e)}catch(n){throw console.error("Error handling output:",n),n}}async handleExport(t,r){if(!t.export?.as)return;let e=t.export.as;await this.expressionHandler.updateContext(e,r)}};Fl.AbstractTaskHandler=cy});var dy=O(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.DefaultScriptTaskHandler=ws.BaseScriptTaskHandler=void 0;var Oq=Pl(),Wl=tt(),Ul=qe(),ec=xv(),uy=Ce(),kq=Et(),Pq=1e4,$l=class extends kq.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r,e){let n={};return await this.executeScript(t,r,n)}};ws.BaseScriptTaskHandler=$l;var ly=class o extends $l{constructor(t,r,e){super(t,r,e)}static create(t,r,e){return new o(t,r,e)}async executeScript(t,r,e){let s=r.run?.script?.code;try{if(!s)throw new uy.WorkflowErrorBuilder().setType(Ul.WorkflowErrorType.VALIDATION_ERROR).setStatus(Ul.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Wl.t)(Wl.ErrorKeys.NO_SCRIPT_CODE,{taskName:t})).setData({taskName:t}).build();let c=s.includes("$helpers")?Oq.HOST_CALL_CALLER_TIMEOUT_MS:Pq,u=await this.expressionHandler.evaluateScript(s,t,c),a=u.result,l=u.userLogs;return l&&Array.isArray(l)&&(this.printUserLogs(l,t),await this.sendUserLogs(l,t)),{success:!0,data:a}}catch(c){let u=c?.userLogs;return Array.isArray(u)&&this.printUserLogs(u,t),{success:!1,error:(0,uy.isWorkflowError)(c)?c:new uy.WorkflowErrorBuilder().fromError(c).setTitle((0,Wl.t)(Wl.ErrorKeys.FAILED_SCRIPT)).setStatus(Ul.WorkflowErrorStatus.BAD_REQUEST).setType(Ul.WorkflowErrorType.RUNTIME_ERROR).setData({taskName:t}).build()}}}async sendUserLogs(t,r){if(!(!t||t.length===0))for(let e of t){let n={taskId:r,timestamp:new Date(e.timestamp),message:e.message,logLevel:this.mapLogLevel(e.level)};await this.logger.logEvent(ec.LogEvent.USER_LOG,n)}}printUserLogs(t,r){let e=this.getSecretRegistry();for(let n of t){let i=e?e.redactString(n.message):n.message;console[n.level]?.(`[Script ${r}]:`,i)}}mapLogLevel(t){switch(t){case"log":case"info":return ec.LogLevel.INFO;case"error":return ec.LogLevel.ERROR;case"warn":return ec.LogLevel.WARN;case"debug":return ec.LogLevel.VERBOSE}}};ws.DefaultScriptTaskHandler=ly});var rc=O(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.setTraceContextProvider=Aq;tc.currentTraceContext=Iq;tc.runInTraceSpan=xq;var mS=Av(),fy=mS.noopTraceContextProvider;function Aq(o){fy=o??mS.noopTraceContextProvider}function Iq(){return fy.current()}function xq(o,t){return fy.runInSpan(o,t)}});var oc=O(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.buildTraceparent=hy;nc.isFirstPartyHost=Nq;nc.applyOutboundTraceHeaders=Lq;var wi=fr(),Rq=$v(),Mq=rc(),Cq=/^[0-9a-fA-F]{32}$/,jq=/^[0-9a-fA-F]{16}$/;function vS(o){return/^0+$/.test(o)}function hy(o){let{traceId:t,parentSpanId:r}=o??{};if(!(!t||!r)&&!(!Cq.test(t)||vS(t)||!jq.test(r)||vS(r)))return`00-${t.toLowerCase()}-${r.toLowerCase()}-01`}function Nq(o,t){if(!o)return!1;if(Rq.InternalServiceDetector.isInternalServiceUrl(o))return!0;if(!t)return!1;try{return new URL(o).hostname.toLowerCase()===new URL(t).hostname.toLowerCase()}catch{return!1}}function py(o,t){let r=t.toLowerCase();return Object.keys(o).some(e=>e.toLowerCase()===r)}function Dq(o,t){let r=t.toLowerCase(),e=Object.keys(o).find(n=>n.toLowerCase()===r);return e===void 0?void 0:o[e]}function Lq(o,t){if(!t.firstParty)return o;let r=(0,Mq.currentTraceContext)(),e=Dq(o,wi.TraceparentHeader)??hy(r?{traceId:r.traceId,parentSpanId:r.spanId}:void 0)??hy(t.telemetryConfig);return e&&(py(o,wi.TraceparentHeader)||(o[wi.TraceparentHeader]=e),py(o,wi.X_UIPATH_TRACEPARENT_ID)||(o[wi.X_UIPATH_TRACEPARENT_ID]=e)),t.baggage&&!py(o,wi.X_UIPATH_TRACE_BAGGAGE)&&(o[wi.X_UIPATH_TRACE_BAGGAGE]=t.baggage),o}});var Bl=O(Ft=>{"use strict";var qq=Ft&&Ft.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),Fq=Ft&&Ft.__setModuleDefault||(Object.create?function(o,t){Object.defineProperty(o,"default",{enumerable:!0,value:t})}:function(o,t){o.default=t}),Wq=Ft&&Ft.__importStar||function(){var o=function(t){return o=Object.getOwnPropertyNames||function(r){var e=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[e.length]=n);return e},o(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var e=o(t),n=0;n<e.length;n++)e[n]!=="default"&&qq(r,t,e[n]);return Fq(r,t),r}}();Object.defineProperty(Ft,"__esModule",{value:!0});Ft.commonsSupportsStreamBody=Uq;Ft.commonsSupportsBlobStreaming=$q;Ft.supportsRequestStreamBody=Bq;Ft.resetRequestStreamSupportForTests=Hq;Ft.trackFirstPull=Vq;Ft.sendStreamedSpliceRequest=Zq;var bS=Wq(Oe()),qt=Oe(),yS=oc();function Uq(){return bS.HTTP_STREAM_REQUEST_BODY_SUPPORTED===!0}function $q(){let o=bS.OrchestratorUtils;return typeof o?.uploadBlobStream=="function"&&typeof o?.openBlobDownloadStream=="function"}var Ei;function Bq(){if(Ei!==void 0)return Ei;if(globalThis.Deno!==void 0)return Ei=!0;try{let o=!1,t=new Request("https://localhost/",{method:"POST",body:new ReadableStream,get duplex(){return o=!0,"half"}}).headers.has("content-type");Ei=o&&!t}catch{Ei=!1}return Ei}function Hq(){Ei=void 0}function Vq(o,t){let r=o.getReader(),e=!1;return new ReadableStream({async pull(n){e||(e=!0,t());let{done:i,value:s}=await r.read();i?n.close():n.enqueue(s)},cancel(n){return r.cancel(n)}},{highWaterMark:0})}var zq="elements-vendor-processing-time",Yq=["application/octet-stream","application/pdf","application/zip","image/","audio/","video/","application/vnd.","application/x-tar","application/gzip"];function Kq(o){let t=o.toLowerCase();return Yq.some(r=>t.startsWith(r))}var Jq=["application/json","application/xml","text/xml","text/csv","text/plain","application/atom+xml","application/rss+xml"];function Gq(o){if(!o)return!1;let t=o.toLowerCase(),r=t.split(";")[0].trim();return(r.startsWith("application/")||r.startsWith("text/"))&&(r.endsWith("+json")||r.endsWith("+xml"))?!0:Jq.some(e=>t.startsWith(e))}async function Xq(o,t,r=!1){let e=(0,qt.getMediaType)(t);try{let n=t.get("content-disposition")??"",i=t.get("content-type")??"";if(!Gq(i)&&(n.toLowerCase().includes("attachment")||Kq(i))){if(r&&o.ok&&o.body)return o.body;let c=await o.arrayBuffer();return new Uint8Array(c)}let s=await o.text();switch(e){case qt.MediaType.JSON:try{return JSON.parse(s)}catch(c){return console.warn("Failed to parse JSON response, returning as text:",c),s}case qt.MediaType.URL_ENCODED:if(s){let c=new URLSearchParams(s);return Object.fromEntries(c.entries())}return s;default:return s}}catch(n){console.error("Error reading response content:",n);let i=(0,qt.getErrorMessage)(n);throw new Error(`Error reading response content: [${e}] - ${i}`)}}async function Zq(o,t,r){(0,qt.setDefaultContentTypeHeader)(o),r&&(0,yS.applyOutboundTraceHeaders)(o.headers??(o.headers={}),{telemetryConfig:r.telemetryConfig,baggage:r.baggage,firstParty:(0,yS.isFirstPartyHost)(o.url,r.baseUrl)});let e=o.url.trim();t.debug(`[StreamedHttpSend] Streaming HTTP request body to ${e} with method ${o.method}`);try{let n=Date.now(),i=await fetch((0,qt.buildUrl)(e,o.queryParameters),{method:o.method,headers:o.headers,body:o.body,signal:o.timeoutMs?AbortSignal.timeout(o.timeoutMs):void 0,duplex:"half"}),s=Date.now()-n,c={method:o.method,url:e,headers:o.verboseLoggingEnabled?(0,qt.sanitizeSecrets)(o.headers??{}):qt.REDACTED_STRING,query:(0,qt.sanitizeSecrets)(o.queryParameters??{}),body:o.body},u=(0,qt.extractResponseHeaders)(i),a=(0,qt.getHeaderCaseInsensitive)(u,zq),l={statusCode:i.status,statusText:i.statusText,headers:u,ok:i.ok,request:c,content:await Xq(i,i.headers,o.streamFileResponse===!0),vendorProcessingTimeMs:a?Number(a):s};return{success:l.ok,data:l,error:l.ok?void 0:new Error(`HTTP Status: ${l.statusCode}${l.statusText?` - ${l.statusText}`:""}`)}}catch(n){let i;return(0,qt.isError)(n)&&n.name==="TimeoutError"?i=new Error(`Request timed out after ${o.timeoutMs}ms!`):i=(0,qt.isError)(n)?n:new Error((0,qt.getErrorMessage)(n)),{success:!1,data:void 0,error:i}}}});var Ti=O(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.FILE_READ_MARKER_KEY=void 0;Rt.downloadBlobFileWithFriendlyError=zl;Rt.safeMimeType=Es;Rt.isPlainObject=Kl;Rt.declaredRefSize=Ts;Rt.materializeBlobRefBody=_F;Rt.resolveFileReadMarkers=vy;var on=Oe(),ic=sc(),yy=Bl(),Qq=["server failed to authenticate the request","signature did not match","signaturedoesnotmatch","authenticationfailed"],eF=o=>{let r=(o instanceof Error?o.message:String(o??"")).toLowerCase();return Qq.some(e=>r.includes(e))};function TS(o,t){if(!eF(o))return;let r=o instanceof Error?o.message:String(o),e=t.FullName?`"${t.FullName}"`:`(id=${t.ID})`;return new Error(`Failed to download file ${e} from Orchestrator. The file name may contain unsupported characters \u2014 rename the file to use standard ASCII characters (letters, digits, spaces, dashes, underscores, periods) and try again. Underlying error: ${r}`)}async function zl(o,t,r){try{return await on.OrchestratorUtils.downloadFileFromBlob(o.baseUrl,o.accessToken,o.organizationId,o.tenantId,r.ID,t,o.processConfig?.folderKey)}catch(e){throw TS(e,r)??e}}function tF(o){for(let t=0;t<o.length;t++){let r=o.charCodeAt(t);if(r<32||r===127)return!0}return!1}var rF=/^[a-zA-Z0-9][a-zA-Z0-9!#$&^_.+-]*\/[a-zA-Z0-9][a-zA-Z0-9!#$&^_.+-]*$/;function Es(o){if(typeof o!="string")return;let t=o.indexOf(";"),r=(t===-1?o:o.slice(0,t)).trim();if(!rF.test(r))return;let e=t===-1?"":o.slice(t);return tF(e)?r:`${r}${e}`}Rt.FILE_READ_MARKER_KEY="__uipathFileRead";function Yl(o){if(!o||typeof o!="object")return!1;let t=o[Rt.FILE_READ_MARKER_KEY];return!!t&&typeof t=="object"&&(0,on.isBlobFileReference)(t.ref)}async function nF(o,t,r){let e=await zl(t,r,o);return(0,on.getAttachmentEncoding)(o)==="base64"?new TextDecoder().decode(e.content):e.content}function by(o,t,r){return nF(o[Rt.FILE_READ_MARKER_KEY].ref,t,r)}function SS(o){return new Error(`A raw-bytes read of file (${o.FullName||o.ID}) was placed inside a JSON body field. Raw bytes cannot be embedded in JSON \u2014 convert the file with File to Base64 first for a nested field, or send the file reference as the entire request body.`)}function OS(o){return new Error(`A file reference (${o.FullName||o.ID}) was placed inside a JSON body field. A bare file reference cannot be embedded in a nested field \u2014 call serializeData() on it to inline its content, or send the file reference as the entire request body.`)}function gy(){return new Error("The request body contains a circular reference, which cannot be sent as JSON.")}function Kl(o){return Object.prototype.toString.call(o)==="[object Object]"}async function _y(o,t,r,e=new Set){if(Yl(o)){let n=await by(o,t,r);if(typeof n!="string")throw SS(o[Rt.FILE_READ_MARKER_KEY].ref);return n}if((0,on.isBlobFileReference)(o))throw OS(o);if(Array.isArray(o)||Kl(o)){if(e.has(o))throw gy();let n=new Set(e).add(o);if(Array.isArray(o)){let c=await Promise.all(o.map(u=>_y(u,t,r,n)));return c.some((u,a)=>u!==o[a])?c:o}let i=Object.entries(o),s=await Promise.all(i.map(async([c,u])=>[c,await _y(u,t,r,n)]));return s.some(([,c],u)=>c!==i[u][1])?Object.fromEntries(s):o}return o}var kS="__uipath_splice_";function oF(o){let t=new Map,r=new Map,e=new Map,n=(s,c)=>{if(Yl(s)){let{ref:u}=s[Rt.FILE_READ_MARKER_KEY];if((0,on.getAttachmentEncoding)(u)!=="base64")throw SS(u);let a=e.get(u.ID);return a||(a=`${kS}${(0,on.getNewGuid)()}__`,e.set(u.ID,a),t.set(a,u)),r.set(a,(r.get(a)??0)+1),a}if((0,on.isBlobFileReference)(s))throw OS(s);if(Array.isArray(s)||Kl(s)){if(c.has(s))throw gy();let u=new Set(c).add(s);if(Array.isArray(s)){let d=s.map(f=>n(f,u));return d.some((f,h)=>f!==s[h])?d:s}let a=Object.entries(s),l=a.map(([d,f])=>[d,n(f,u)]);return l.some(([,d],f)=>d!==a[f][1])?Object.fromEntries(l):s}return s},i=n(o,new Set);return t.size===0?void 0:{tokenizedBody:i,refsByToken:t,siteCounts:r}}function iF(o){let t=Object.keys(o).find(e=>e.toLowerCase()==="content-type");if(t===void 0)return!0;let r=o[t].toLowerCase();return r.startsWith("application/")&&r.includes("json")}var sF=(()=>{let o=new Uint8Array(256);for(let t=65;t<=90;t++)o[t]=1;for(let t=97;t<=122;t++)o[t]=1;for(let t=48;t<=57;t++)o[t]=1;return o[43]=1,o[47]=1,o[61]=1,o})();function aF(o,t){let r=t>=32&&t<127?` ("${String.fromCharCode(t)}")`:"";return new Error(`The base64 file (${o.FullName||o.ID}) contains a byte 0x${t.toString(16).padStart(2,"0")}${r} outside the base64 alphabet, so its content cannot be inlined into a JSON body. Whitespace and line breaks are not supported either \u2014 re-create the attachment with File to Base64 and try again.`)}function my(o,t){for(let r=0;r<o.length;r++)if(sF[o[r]]===0)throw aF(t,o[r])}function PS(o,t,r){return new Error(`Internal error while building the request body: splice token ${o} occurred ${r} time(s) in the serialized body, expected ${t}. The body cannot be sent safely.`)}function Hl(o,t,r){return new Error(`Failed to build the request body: file (${o.FullName||o.ID}) delivered ${r} byte(s) but its metadata declares ${t}. The attachment may have been modified \u2014 re-create it and retry.`)}function cF(o,t){let r=[];for(let[s,c]of t.siteCounts){let u=0;for(let a=o.indexOf(s);a!==-1;a=o.indexOf(s,a+s.length))r.push({index:a,token:s}),u++;if(u!==c)throw PS(s,c,u)}r.sort((s,c)=>s.index-c.index);let e=[],n=[],i=0;for(let s of r)e.push(o.slice(i,s.index)),n.push(s.token),i=s.index+s.token.length;return e.push(o.slice(i)),{segments:e,siteTokens:n}}function Ts(o){let t=o.Metadata?.Size;return typeof t=="number"&&Number.isSafeInteger(t)&&t>=0?t:void 0}function wy(o){let t=0;for(let r of o.segmentBytes)t+=r.byteLength;for(let r of o.siteTokens){let e=Ts(o.refsByToken.get(r));if(e===void 0)return;t+=e}return t}async function AS(o,t,r){try{return await on.OrchestratorUtils.openBlobDownloadStream(t.baseUrl,t.accessToken,t.organizationId,t.tenantId,o.ID,r,t.processConfig?.folderKey)}catch(e){throw TS(e,o)??e}}async function IS(o,t,r){return(await AS(o,t,r)).stream}function uF(o){return typeof o=="number"&&Number.isSafeInteger(o)&&o>=0?o:void 0}function gS(o,t,r){return new Error(`Failed to stream request body file (${o.FullName||o.ID}): the download delivered ${r} byte(s) but its declared length is ${t}. The attachment may have changed \u2014 re-create it and retry.`)}function lF(o,t,r){let e=(0,ic.streamToAsyncIterable)(o)[Symbol.asyncIterator](),n=0,i=!1,s=async c=>{try{await e.return?.(c)}catch{}try{await o.cancel(c)}catch{}};return new ReadableStream({async pull(c){try{let u=await e.next();if(u.done){if(r!==void 0&&n!==r)throw gS(t,r,n);i=!0,c.close();return}let a=n+u.value.byteLength;if(r!==void 0&&a>r)throw gS(t,r,a);n=a,c.enqueue(u.value.slice())}catch(u){await s(u),c.error(u)}},async cancel(c){i||await s(c)}})}async function*dF(o,t,r){for(let n=0;n<o.siteTokens.length;n++){o.segmentBytes[n].byteLength>0&&(yield o.segmentBytes[n]);let i=o.refsByToken.get(o.siteTokens[n]),s=Ts(i),c=await IS(i,t,r),u=0,a=!1;try{for await(let l of(0,ic.streamToAsyncIterable)(c)){if(my(l,i),u+=l.byteLength,s!==void 0&&u>s)throw Hl(i,s,u);yield l}if(s!==void 0&&u!==s)throw Hl(i,s,u);a=!0}finally{if(!a)try{await c.cancel()}catch{}}}let e=o.segmentBytes[o.segmentBytes.length-1];e.byteLength>0&&(yield e)}async function fF(o,t,r){let e=wy(o);if(e!==void 0&&(0,yy.commonsSupportsBlobStreaming)()){let u=new Uint8Array(e),a=0,l=new Map;for(let f=0;f<o.siteTokens.length;f++){let h=o.segmentBytes[f];u.set(h,a),a+=h.byteLength;let _=o.siteTokens[f],m=o.refsByToken.get(_),v=Ts(m),b=l.get(_);if(b){u.copyWithin(a,b.start,b.start+b.length),a+=b.length;continue}let g=a,w=await IS(m,t,r),T=!1;try{for await(let P of(0,ic.streamToAsyncIterable)(w)){if(my(P,m),a-g+P.byteLength>v)throw Hl(m,v,a-g+P.byteLength);u.set(P,a),a+=P.byteLength}if(a-g!==v)throw Hl(m,v,a-g);T=!0}finally{if(!T)try{await w.cancel()}catch{}}l.set(_,{start:g,length:v})}let d=o.segmentBytes[o.segmentBytes.length-1];return u.set(d,a),u}let n=new Map;for(let[u,a]of o.refsByToken){let l=await zl(t,r,a);my(l.content,a),n.set(u,l.content)}let i=0;for(let u of o.segmentBytes)i+=u.byteLength;for(let u of o.siteTokens)i+=n.get(u).byteLength;let s=new Uint8Array(i),c=0;for(let u=0;u<o.siteTokens.length;u++){s.set(o.segmentBytes[u],c),c+=o.segmentBytes[u].byteLength;let a=n.get(o.siteTokens[u]);s.set(a,c),c+=a.byteLength}return s.set(o.segmentBytes[o.segmentBytes.length-1],c),s}function pF(o,t,r){let e=dF(o,t,r)[Symbol.asyncIterator]();return{stream:new ReadableStream({async pull(i){let s=await e.next();if(s.done){i.close();return}i.enqueue(s.value.slice())},async cancel(i){await e.return?.(i)}}),contentLength:wy(o)}}function wS(o,t){if(t?.streamWholeBodyRefs!==!0||!(0,yy.commonsSupportsBlobStreaming)())return!1;let r=t.wholeBodyStreamThresholdBytes??ic.STREAM_THRESHOLD_BYTES,e=Ts(o);return e===void 0||e>r}async function ES(o,t,r,e,n,i){let s=await AS(o,n,i),c=uF(s.size)??Ts(o);return Vl(r,"Content-Type")||(r["Content-Type"]=e(s.mimeType)),c!==void 0&&!Vl(r,"Content-Length")&&(r["Content-Length"]=String(c)),{body:lF(s.stream,o,c),headers:r,loggableBody:t,contentLength:c}}function Vl(o,t){let r=t.toLowerCase();return Object.keys(o).some(e=>e.toLowerCase()===r)}async function hF(o,t,r,e,n){let i=oF(o);if(!i)return{body:o,headers:t};let s=JSON.stringify(i.tokenizedBody);if(typeof s!="string")throw PS(kS,i.siteCounts.size,0);let{segments:c,siteTokens:u}=cF(s,i),a=new TextEncoder,l={segmentBytes:c.map(_=>a.encode(_)),siteTokens:u,refsByToken:i.refsByToken};Vl(t,"Content-Type")||(t["Content-Type"]="application/json");let d=wy(l),f=n.streamedSpliceThresholdBytes??ic.STREAM_THRESHOLD_BYTES;if(n.streamedSplice===!0&&d!==void 0&&d>f&&(0,yy.commonsSupportsBlobStreaming)()){let{stream:_,contentLength:m}=pF(l,r,e);return m!==void 0&&!Vl(t,"Content-Length")&&(t["Content-Length"]=String(m)),{body:_,headers:t,loggableBody:i.tokenizedBody,contentLength:m}}return{body:await fF(l,r,e),headers:t,loggableBody:i.tokenizedBody}}async function _F(o,t,r,e,n){let i=t?{...t}:{},s=Object.keys(i).some(c=>c.toLowerCase()==="content-type");if(Yl(o)){let{ref:c}=o[Rt.FILE_READ_MARKER_KEY];if(wS(c,n))return ES(c,o,i,a=>(0,on.getAttachmentEncoding)(c)==="base64"?"text/plain":Es(c.MimeType)??Es(a)??"application/octet-stream",r,e);let u=await by(o,r,e);return typeof u=="string"?s||(i["Content-Type"]="text/plain"):s||(i["Content-Type"]=Es(c.MimeType)??"application/octet-stream"),{body:u,headers:i}}if((0,on.isBlobFileReference)(o)){if(wS(o,n))return ES(o,o,i,u=>Es(u)??"application/octet-stream",r,e);let c=await zl(r,e,o);return s||(i["Content-Type"]=Es(c.mimeType)??"application/octet-stream"),{body:c.content,headers:i}}return o&&typeof o=="object"?n?.spliceNestedBase64&&iF(i)?hF(o,i,r,e,n):{body:await _y(o,r,e),headers:i}:{body:o,headers:i}}async function vy(o,t,r,e=new Set){if(Yl(o))return by(o,t,r);if(Array.isArray(o)||Kl(o)){if(e.has(o))throw gy();let n=new Set(e).add(o);if(Array.isArray(o)){let c=await Promise.all(o.map(u=>vy(u,t,r,n)));return c.some((u,a)=>u!==o[a])?c:o}let i=Object.entries(o),s=await Promise.all(i.map(async([c,u])=>[c,await vy(u,t,r,n)]));return s.some(([,c],u)=>c!==i[u][1])?Object.fromEntries(s):o}return o}});var sc=O(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.STREAM_THRESHOLD_BYTES=le.MAX_CONVERT_FILE_BYTES=le.BASE64_TO_FILE_FN=le.FILE_TO_BASE64_FN=void 0;le.uint8ArrayToBase64=Jl;le.normalizeBase64=Gl;le.base64ToUint8Array=ac;le.isValidBase64=cc;le.streamToAsyncIterable=Ey;le.base64EncodedLength=MS;le.encodeBase64Stream=CS;le.decodeBase64Stream=jS;le.detectMimeTypeFromBytes=Xl;le.sizedBase64DecodeLength=FS;le.encodeFileToBase64=kF;le.decodeFileToByteArray=WS;le.base64ToFile=PF;var Xe=Oe(),Tt=tt(),St=qe(),Nr=Ce(),mF=Ti(),vF=Bl();le.FILE_TO_BASE64_FN="fileToBase64";le.BASE64_TO_FILE_FN="base64ToFile";le.MAX_CONVERT_FILE_BYTES=50*1024*1024;le.STREAM_THRESHOLD_BYTES=1*1024*1024;function yF(){try{let o=globalThis.Deno;if(typeof o?.memoryUsage=="function")return Math.round(o.memoryUsage().rss/(1024*1024));let t=globalThis.process;if(typeof t?.memoryUsage=="function")return Math.round(t.memoryUsage().rss/(1024*1024))}catch{}}function vt(o,t,r,e){try{o.debug(`[${t}] ${r}`,{...e,rssMb:yF()})}catch{}}function Jl(o){let t=o;if(typeof t.toBase64=="function")return t.toBase64();let r="",e=32768;for(let n=0;n<o.length;n+=e)r+=String.fromCharCode.apply(null,o.subarray(n,n+e));return btoa(r)}function Gl(o){let t=o.indexOf(",");return(o.startsWith("data:")&&t!==-1?o.slice(t+1):o).replace(/\s+/g,"")}function ac(o){let t=Gl(o),r=Uint8Array;if(typeof r.fromBase64=="function")return r.fromBase64(t);let e=atob(t),n=new Uint8Array(e.length);for(let i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n}function cc(o){let t=Gl(o);return t.length===0||t.length%4===1||!/^[A-Za-z0-9+/]*={0,2}$/.test(t)?!1:!t.includes("=")||t.length%4===0}function RS(o){let t=0;for(let n of o)t+=n.byteLength;let r=new Uint8Array(t),e=0;for(let n of o)r.set(n,e),e+=n.byteLength;return r}var bF=64*1024;function Ey(o){return{async*[Symbol.asyncIterator](){let t;try{t=o.getReader({mode:"byob"})}catch{}if(t){let n=new ArrayBuffer(bF),i=!1;try{for(;;){let{done:s,value:c}=await t.read(new Uint8Array(n));if(s){i=!0;break}c.byteLength>0&&(yield c),n=c.buffer}}finally{if(!i)try{await t.cancel()}catch{}t.releaseLock()}return}let r=o.getReader(),e=!1;try{for(;;){let{done:n,value:i}=await r.read();if(n){e=!0;break}i&&(yield i)}}finally{if(!e)try{await r.cancel()}catch{}r.releaseLock()}}}}function MS(o){return Math.ceil(o/3)*4}async function*CS(o){let t=new TextEncoder,r=new Uint8Array(0);for await(let e of o){if(e.byteLength===0)continue;let n=r.byteLength===0?e:RS([r,e]),i=n.byteLength-n.byteLength%3;i>0?(yield t.encode(Jl(n.subarray(0,i))),r=n.slice(i)):r=n.slice()}r.byteLength>0&&(yield t.encode(Jl(r)))}async function*jS(o){let t=new TextDecoder,r="",e=!1,n=()=>new SyntaxError("Invalid base64 stream: content is not well-formed."),i=()=>new SyntaxError("Invalid base64 stream: padding must appear only at the end of the complete input."),s=4096,c="",u=!1;for await(let l of o){let d=t.decode(l,{stream:!0});if(c!==void 0){if(c+=d,("data:".startsWith(c.slice(0,5))||c.startsWith("data:"))&&c.length<5)continue;if(c.startsWith("data:")){let m=c.indexOf(",");if(m===-1){if(c.length<=s)continue;d=c}else d=c.slice(m+1)}else d=c;c=void 0}let f=d.replace(/\s+/g,"");if(e&&f.length>0)throw i();d=r+f;let h=d.length-d.length%4;if(h>0){let _=d.slice(0,h),m=_.includes("=");if(!cc(_))throw n();if(m&&d.length!==h)throw i();yield ac(_),u=!0,e=m,r=d.slice(h)}else r=d}let a=t.decode();if(c!==void 0){c+=a;let l=c.startsWith("data:")?c.indexOf(","):-1,d=(l===-1?c:c.slice(l+1)).replace(/\s+/g,"");if(e&&d.length>0)throw i();r+=d}else if(a){let l=a.replace(/\s+/g,"");if(e&&l.length>0)throw i();r+=l}if(r.length>0){if(e)throw i();if(!cc(r))throw n();yield ac(r)}else if(!u)throw n()}async function NS(o,t){try{await t.return?.()}catch{}try{await o.cancel()}catch{}}function DS(o){if(!(0,vF.commonsSupportsBlobStreaming)())return!1;let t=o.Metadata?.Size;return typeof t!="number"?!0:t>le.STREAM_THRESHOLD_BYTES}var gF=16;function Zt(o,t,r=0){if(o.length<r+t.length)return!1;for(let e=0;e<t.length;e++)if(o[r+e]!==t[e])return!1;return!0}function Xl(o){if(Zt(o,[137,80,78,71,13,10,26,10]))return"image/png";if(Zt(o,[255,216,255]))return"image/jpeg";if(Zt(o,[71,73,70,56]))return"image/gif";if(Zt(o,[37,80,68,70]))return"application/pdf";if(Zt(o,[31,139]))return"application/gzip";if(Zt(o,[73,73,42,0])||Zt(o,[77,77,0,42]))return"image/tiff";if(Zt(o,[82,73,70,70])){if(Zt(o,[87,69,66,80],8))return"image/webp";if(Zt(o,[87,65,86,69],8))return"audio/wav"}if(Zt(o,[102,116,121,112],4))return"video/mp4";if(Zt(o,[73,68,51]))return"audio/mpeg";if(Zt(o,[80,75,3,4]))return"application/zip"}function wF(o,t){return/[^.]\.[a-zA-Z0-9]{1,10}$/.test(o)?o:`${o}.${(0,Xe.getExtensionFromMimeType)(t)??"bin"}`}function LS(o){if(o===null)return"null";if(o===void 0)return"undefined";if(typeof o=="string")return/^\$[\w$]+(\.[\w$]+|\[\d+\])*$/.test(o)?`the string "${o}" \u2014 this looks like an unevaluated expression`:"a string";if(Array.isArray(o))return"an array";if(typeof o=="object"){let t=Object.keys(o);return`an object with keys [${t.slice(0,5).join(", ")}${t.length>5?", \u2026":""}]`}return`a ${typeof o}`}function Ty(o){return new Nr.WorkflowErrorBuilder().setType(St.WorkflowErrorType.VALIDATION_ERROR).setStatus(St.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Tt.t)(Tt.ErrorKeys.INVALID_BASE64_STRING,{taskName:o})).build()}function uc(o){let t=Math.floor(o/1048576);return new Nr.WorkflowErrorBuilder().setType(St.WorkflowErrorType.VALIDATION_ERROR).setStatus(St.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Tt.t)(Tt.ErrorKeys.CONVERT_FILE_TOO_LARGE,{maxMb:t})).build()}async function qS(o,t,r,e){if((0,Xe.isBlobFileReference)(o))return(await(0,mF.downloadBlobFileWithFriendlyError)(t,r,o)).content;if((0,Xe.isWorkflowFile)(o))return o.content;if(o instanceof Uint8Array)return o;throw new Nr.WorkflowErrorBuilder().setType(St.WorkflowErrorType.VALIDATION_ERROR).setStatus(St.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Tt.t)(Tt.ErrorKeys.INVALID_CONVERT_FILE_INPUT,{taskName:e,received:LS(o)})).build()}async function EF(o,t,r){vt(r,le.FILE_TO_BASE64_FN,"streaming: before open",{declaredSize:o.Metadata?.Size});let e=await Xe.OrchestratorUtils.openBlobDownloadStream(t.baseUrl,t.accessToken,t.organizationId,t.tenantId,o.ID,r,t.processConfig?.folderKey);vt(r,le.FILE_TO_BASE64_FN,"streaming: stream opened",{size:e.size,mimeType:e.mimeType});let n=o.FullName.replace(/([^.])\.[a-zA-Z0-9]{1,10}$/,"$1")||`file-${(0,Xe.getNewGuid)()}`,i=CS(Ey(e.stream)),s=e.size!==void 0?MS(e.size):void 0,c=Xe.OrchestratorUtils.uploadBlobStream,u=!1;try{let a=await c(t.baseUrl,t.accessToken,t.organizationId,t.tenantId,i,`${n}.base64`,"text/plain",r,"base64",t.processConfig?.folderKey,{knownSize:s});return u=!0,vt(r,le.FILE_TO_BASE64_FN,"streaming: after upload",{uploadedBytes:a.Metadata?.Size}),a}finally{u||await NS(e.stream,i)}}function TF(o){return o>=65&&o<=90||o>=97&&o<=122||o>=48&&o<=57||o===43||o===47}function FS(o,t){if(o===void 0||o<=0||o%4!==0||t===void 0||t.byteLength!==4)return;let r=0;for(;r<4&&t[3-r]===61;)r++;if(!(r>2)){for(let e=0;e<4-r;e++)if(!TF(t[e]))return;return o/4*3-r}}function SF(o){return o instanceof Error&&/Sized upload source (ended early|exceeded knownSize)/.test(o.message)}async function OF(o,t,r){try{return await xS(o,t,r,!0)}catch(e){if(!SF(e))throw e;return vt(r,le.BASE64_TO_FILE_FN,"streaming: sized upload mismatched (wrapped/prefixed base64?); retrying unsized",{error:e.message}),await xS(o,t,r,!1)}}async function xS(o,t,r,e){vt(r,le.BASE64_TO_FILE_FN,"streaming: before open",{declaredSize:o.Metadata?.Size,withSizing:e});let n=Xe.OrchestratorUtils.openBlobDownloadStream,i=await n(t.baseUrl,t.accessToken,t.organizationId,t.tenantId,o.ID,r,t.processConfig?.folderKey,e?{tailBytes:4}:void 0),s=e?FS(i.size,i.tail):void 0;vt(r,le.BASE64_TO_FILE_FN,"streaming: stream opened",{size:i.size,mimeType:i.mimeType,knownSize:s});let u=jS(Ey(i.stream))[Symbol.asyncIterator](),a=!1;try{let l=[],d=0,f=!1;for(;d<gF;){let k=await u.next();if(k.done){f=!0;break}k.value.byteLength!==0&&(l.push(k.value),d+=k.value.byteLength)}let h=RS(l),_=Xl(h),m=_??"application/octet-stream";vt(r,le.BASE64_TO_FILE_FN,"streaming: mime sniffed",{sniffedMime:_,headBytes:h.byteLength});let v=(0,Xe.getExtensionFromMimeType)(_),b=o.FullName.replace(/\.base64$/i,""),g=v?`${b.replace(/([^.])\.[a-zA-Z0-9]{1,10}$/,"$1")||`file-${(0,Xe.getNewGuid)()}`}.${v}`:b||`file-${(0,Xe.getNewGuid)()}.bin`;async function*w(){if(h.byteLength>0&&(yield h),!f)for(;;){let k=await u.next();if(k.done)break;yield k.value}}let T=Xe.OrchestratorUtils.uploadBlobStream,P=await T(t.baseUrl,t.accessToken,t.organizationId,t.tenantId,w(),g,m,r,"byte-array",t.processConfig?.folderKey,{knownSize:s});return a=!0,vt(r,le.BASE64_TO_FILE_FN,"streaming: after upload",{uploadedBytes:P.Metadata?.Size}),P}catch(l){throw l instanceof SyntaxError?Ty(le.BASE64_TO_FILE_FN):l}finally{a||await NS(i.stream,u)}}async function kF(o,t,r,e=le.MAX_CONVERT_FILE_BYTES){if(!(0,Xe.isBlobFileReference)(o))throw new Nr.WorkflowErrorBuilder().setType(St.WorkflowErrorType.VALIDATION_ERROR).setStatus(St.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Tt.t)(Tt.ErrorKeys.INVALID_CONVERT_FILE_INPUT,{taskName:le.FILE_TO_BASE64_FN,received:LS(o)})).build();if((0,Xe.getAttachmentEncoding)(o)==="base64")return o;try{if(DS(o))return await EF(o,t,r);let n=o.Metadata?.Size;if(typeof n=="number"&&n>e)throw uc(e);vt(r,le.FILE_TO_BASE64_FN,"before download",{declaredSize:n});let i=await qS(o,t,r,le.FILE_TO_BASE64_FN);if(i.byteLength>e)throw uc(e);vt(r,le.FILE_TO_BASE64_FN,"after download",{fileBytes:i.byteLength});let s=Jl(i);vt(r,le.FILE_TO_BASE64_FN,"after base64 encode",{base64Length:s.length});let c=new TextEncoder().encode(s);vt(r,le.FILE_TO_BASE64_FN,"after text encode");let u=o.FullName.replace(/([^.])\.[a-zA-Z0-9]{1,10}$/,"$1")||`file-${(0,Xe.getNewGuid)()}`,a=await Xe.OrchestratorUtils.uploadFileToBlob(t.baseUrl,t.accessToken,t.organizationId,t.tenantId,c,`${u}.base64`,"text/plain",r,t.processConfig?.folderKey,{encoding:"base64"});return vt(r,le.FILE_TO_BASE64_FN,"after upload"),a}catch(n){throw(0,Nr.isWorkflowError)(n)?n:new Nr.WorkflowErrorBuilder().fromError(n).setType(St.WorkflowErrorType.RUNTIME_ERROR).setStatus(St.WorkflowErrorStatus.INTERNAL_SERVER_ERROR).setTitle((0,Tt.t)(Tt.ErrorKeys.FAILED_DOWNLOAD_DATA,{taskName:le.FILE_TO_BASE64_FN})).build()}}async function WS(o,t,r,e=le.MAX_CONVERT_FILE_BYTES){if((0,Xe.getAttachmentEncoding)(o)!=="base64")return o;try{if(DS(o))return await OF(o,t,r);let n=o.Metadata?.Size;if(typeof n=="number"&&Math.floor(n*3/4)>e)throw uc(e);vt(r,le.BASE64_TO_FILE_FN,"before download",{declaredSize:n});let i=await qS(o,t,r,le.BASE64_TO_FILE_FN);vt(r,le.BASE64_TO_FILE_FN,"after download",{textBytes:i.byteLength});let s=new TextDecoder().decode(i);if(!cc(s))throw Ty(le.BASE64_TO_FILE_FN);let c=ac(s);if(c.byteLength>e)throw uc(e);vt(r,le.BASE64_TO_FILE_FN,"after base64 decode",{decodedBytes:c.byteLength});let u=Xl(c),a=u??"application/octet-stream",l=(0,Xe.getExtensionFromMimeType)(u),d=o.FullName.replace(/\.base64$/i,""),f=l?`${d.replace(/([^.])\.[a-zA-Z0-9]{1,10}$/,"$1")||`file-${(0,Xe.getNewGuid)()}`}.${l}`:d||`file-${(0,Xe.getNewGuid)()}.bin`,h=await Xe.OrchestratorUtils.uploadFileToBlob(t.baseUrl,t.accessToken,t.organizationId,t.tenantId,c,f,a,r,t.processConfig?.folderKey);return vt(r,le.BASE64_TO_FILE_FN,"after upload"),h}catch(n){throw(0,Nr.isWorkflowError)(n)?n:new Nr.WorkflowErrorBuilder().fromError(n).setType(St.WorkflowErrorType.RUNTIME_ERROR).setStatus(St.WorkflowErrorStatus.INTERNAL_SERVER_ERROR).setTitle((0,Tt.t)(Tt.ErrorKeys.FAILED_DOWNLOAD_DATA,{taskName:le.BASE64_TO_FILE_FN})).build()}}async function PF(o,t,r,e=le.MAX_CONVERT_FILE_BYTES){let n=o?.base64;if((0,Xe.isBlobFileReference)(n))return WS(n,t,r,e);if(typeof n!="string"||n.trim().length===0)throw new Nr.WorkflowErrorBuilder().setType(St.WorkflowErrorType.VALIDATION_ERROR).setStatus(St.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Tt.t)(Tt.ErrorKeys.MISSING_BASE64_STRING,{taskName:le.BASE64_TO_FILE_FN})).build();if(!cc(n))throw Ty(le.BASE64_TO_FILE_FN);let i=Gl(n);if(Math.floor(i.length*3/4)>e)throw uc(e);try{let s=ac(i),u=(typeof o.mimeType=="string"&&o.mimeType.trim().length>0?o.mimeType.trim():void 0)??Xl(s)??"application/octet-stream",a=typeof o.fileName=="string"&&o.fileName.trim().length>0?o.fileName.trim():void 0,l=wF(a??`file-${(0,Xe.getNewGuid)()}`,u);return await Xe.OrchestratorUtils.uploadFileToBlob(t.baseUrl,t.accessToken,t.organizationId,t.tenantId,s,l,u,r,t.processConfig?.folderKey)}catch(s){throw(0,Nr.isWorkflowError)(s)?s:new Nr.WorkflowErrorBuilder().fromError(s).setType(St.WorkflowErrorType.RUNTIME_ERROR).setStatus(St.WorkflowErrorStatus.INTERNAL_SERVER_ERROR).setTitle((0,Tt.t)(Tt.ErrorKeys.FAILED_CONVERT_BASE64_TO_FILE,{taskName:le.BASE64_TO_FILE_FN})).build()}}});var Sy=O(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.DebugManager=void 0;var Ss=tt(),Zl=class{static isDebugModeEnabled(t){return t.$runtime?.metadata?.isDebugMode===!0}static setBreakpoints(t,r){let e=Object.keys(r??{})[0];if(!e){console.warn(`No breakpoints given to set for workflow run: ${t}, adding empty array`),this.workflowBreakpoints.set(t,[]);return}let n=r[e]??[];this.validateBreakpoints(n),console.debug(`Setting ${n.length} breakpoints for workflow run: ${t} with file: ${e}`),this.workflowBreakpoints.set(t,n)}static getBreakpoints(t){return this.workflowBreakpoints.get(t)}static clearBreakpoints(t){this.workflowBreakpoints.delete(t)}static taskHasBreakpoint(t,r){let n=this.getBreakpoints(t)?.find(i=>i.taskId===r&&i.isEnabled);return{shouldPause:!!n,breakpointId:n?.id}}static validateBreakpoints(t){for(let r of t){if(!r.id?.trim())throw console.error("[DebugManager] Breakpoint ID cannot be empty"),new Error((0,Ss.t)(Ss.ErrorKeys.INTERNAL_ERROR));if(!r.taskId?.trim())throw console.error("[DebugManager] Task ID cannot be empty"),new Error((0,Ss.t)(Ss.ErrorKeys.INTERNAL_ERROR));if(typeof r.isEnabled!="boolean")throw console.error("[DebugManager] Breakpoint isEnabled must be a boolean"),new Error((0,Ss.t)(Ss.ErrorKeys.INTERNAL_ERROR))}}};Ql.DebugManager=Zl;Zl.workflowBreakpoints=new Map});var US=O(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.defaultLogger=Os.DefaultLogger=void 0;var ed=class o{constructor(){}static getInstance(){return o.instance||(o.instance=new o),o.instance}async logWorkflowEvent(t,r,e){await this.logWithDataJson(t,r,e)}async logTaskEvent(t,r,e){await this.logWithDataJson(t,r,e)}async logEvent(t,r){await this.logWithDataJson(t,r)}async logIterationVariables(t,r,e){await this.logWithDataJson(`Variables: ${t} > ${r}`,e)}async debug(t,r){await this.logWithDataJson(`DEBUG: ${t}`,r)}async info(t,r){await this.logWithDataJson(`INFO: ${t}`,r)}async warn(t,r){console.warn(t,r)}async error(t,r,e){console.error(t,r,JSON.stringify(r??{}),JSON.stringify(e??{},Object.getOwnPropertyNames(e??{})))}async logWithDataJson(t,r,e){console.log(t,r,JSON.stringify(r??{}),JSON.stringify(e??{},Object.getOwnPropertyNames(e??{})))}shutdown(){return Promise.resolve()}};Os.DefaultLogger=ed;Os.defaultLogger=ed.getInstance()});var ky=O(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.getDateTimeDescriptor=void 0;Si.createRuntimeExpressionArgs=AF;Si.buildJobMetadata=IF;var Oy=Ba();function AF(o,t,r,e,n){return{$secrets:{},$authorization:{scheme:Oy.BEARER,parameter:t?.accessToken},$workflow:{id:o.document.name+"-"+o.document.version,definition:{document:o.document,do:o.do,evaluate:o.evaluate,use:o.use,httpRetryConfig:o.httpRetryConfig},input:structuredClone(n??{}),startedAt:(0,Si.getDateTimeDescriptor)(r)},$runtime:{name:Oy.UIPATH_WORKFLOW_RUNTIME_NAME,version:Oy.UIPATH_WORKFLOW_RUNTIME_VERSION,metadata:{organizationId:t.organizationId,tenantId:t.tenantId,baseUrl:t.baseUrl,workflowRunId:e,isDebugMode:t.debugConfig?.runInDebugMode??!1,isRunningInDesigner:t.debugConfig?.isRunningInDesigner??!1,verboseDataLogging:(t.debugConfig?.isRunningInDesigner??!1)||(t.debugConfig?.enableVerboseDataLogging??!1),language:o.evaluate?.language,source:t.source??""},control:{signalWorkflowEnd:!1,signalLoopExit:!1,taskRetryDepth:0,signalWorkflowResponse:void 0}}}}function IF(o){let t={key:o.processConfig?.jobKey,startedByUserKey:o.userId};return Object.values(t).some(e=>e!=null&&e!=="")?t:void 0}var xF=o=>(o||(o=new Date),{iso8601:o.toISOString(),epoch:{seconds:Math.floor(o.getTime()/1e3),milliseconds:o.getTime()}});Si.getDateTimeDescriptor=xF});var nd=O(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.LoggingHelper=void 0;var td=Oe(),Qt=qe(),Nn=vs(),RF=ky(),lc=class o{static async logWorkflowData(t,r){let e=o.buildWorkflowLogData(r.event,r.runtimeExpressionArgs,r.input,r.output,r.details);await t.logWorkflowEvent(r.event,e,r.error)}static async logTaskData(t,r,e){let n=await o.buildTaskLogData(r.taskId,r.taskType,r.event,r.runtimeExpressionArgs,e,r.input,r.output,r.properties,r.variables,r.displayName,r.shouldPause,r.breakpointId,r.vendorExecutionTimeMs,r.HttpCallMode,r.isUiPathInternalServiceCall,r.taskSpanId,r.retry);await t.logTaskEvent(r.event,n,r.error)}static buildWorkflowLogData(t,r,e,n,i){let s,c,u,a,l,d=new Date,f=r?.$runtime?.metadata.workflowRunId,h=r?.$workflow.startedAt?.epoch.milliseconds;if(t===Qt.WorkflowEvent.WORKFLOW_STARTED){o.workflowTaskTimes.set(f,new Map);let g=r.$runtime?.metadata?.verboseDataLogging??!1;o.workflowVerboseDataModes.set(f,g)}else if(h){let g=o.calculateWorkflowExternalExecutionTime(f);u=g.totalTimeMs,l=g.externalExecutionBreakdownJson,c=d.getTime(),s=c-h,a=s-u,o.cleanup(f)}else console.warn(`Workflow '${f}' start time not found in RuntimeExpressionArgs!`),s=0,u=0,a=0;let _=(0,Nn.replaceBinaryWithPlaceholder)(e),m=(0,Nn.replaceBinaryWithPlaceholder)(n),v=i&&(0,Nn.replaceBinaryWithPlaceholder)(i);return{workflowId:r?.$workflow.id,workflowRunId:f,timestamp:d,language:r?.$runtime?.metadata?.language,input:_,output:m,details:v,executionStartTimeMs:h,executionEndTimeMs:c,executionTimeMs:s,externalExecutionTimeMs:u,systemExecutionTimeMs:a,externalExecutionBreakdown:l}}static async buildTaskLogData(t,r,e,n,i,s,c,u,a,l,d,f,h,_,m,v,b){let g,w,T,P=new Date,k=n?.$runtime?.metadata.workflowRunId;if(e===Qt.TaskEvent.TASK_STARTED)await i.mergeVariableValues({$task:{startedAt:(0,RF.getDateTimeDescriptor)(P)}}),T=P.getTime(),o.workflowTaskTimes.get(k)?.set(t,{taskId:t,startTime:T});else if(e===Qt.TaskEvent.TASK_RETRIED)T=o.workflowTaskTimes.get(k)?.get(t)?.startTime;else{let Ke=o.workflowTaskTimes.get(k)?.get(t);T=Ke?.startTime,T?(w=P.getTime(),g=w-T):(console.warn(`Task '${t}' start time not found in RuntimeExpressionArgs!`),g=0),h!==void 0&&Ke&&(Ke.vendorTime=h)}let x,R=o.workflowVerboseDataModes.get(k)??!1,C=(r!==Qt.TaskType.DO||t.includes("If"))&&e===Qt.TaskEvent.TASK_STARTED,j=(r!==Qt.TaskType.DO||t.includes("If"))&&e===Qt.TaskEvent.TASK_COMPLETED,L=(r!==Qt.TaskType.DO||t.includes("If"))&&e!==Qt.TaskEvent.TASK_STARTED,D=R&&(r!==Qt.TaskType.DO||t.includes("If")),F=R&&(r!==Qt.TaskType.DO||t.includes("If"))&&e===Qt.TaskEvent.TASK_STARTED;if(D)try{x=await i.getContextDiff()}catch(xe){console.warn("Failed to get context diff from worker, falling back to full context:",xe),x={patches:[{op:"replace",path:"",value:await i.evaluateDataExpression("${$context}")}],hasChanges:!0},xe instanceof Error&&console.warn("Context diff error details:",{message:xe.message,stack:xe.stack,name:xe.name})}let q=j?o.extractAttachments(c):void 0,z=C?(0,td.redactSensitiveValues)((0,Nn.replaceBinaryWithPlaceholder)(s)):void 0,K=j?(0,td.redactSensitiveValues)((0,Nn.replaceBinaryWithPlaceholder)(c)):void 0,se=L?(0,td.redactSensitiveValues)((0,Nn.replaceBinaryWithPlaceholder)(u)):void 0,X=F?(0,td.redactSensitiveValues)((0,Nn.replaceBinaryWithPlaceholder)(a)):void 0,he=(0,Nn.redactSensitivePatches)(x);return{workflowId:n?.$workflow.id,workflowRunId:k,taskId:t,displayName:l||`${Qt.FormattedTaskTypeMap[r]}: ${t}`,taskType:r,timestamp:P,input:z,output:K,properties:se,contextDiff:he,variables:X,executionStartTimeMs:T,executionEndTimeMs:w,executionTimeMs:g,isPaused:d,breakpointId:f,vendorExecutionTimeMs:h,HttpCallMode:_,isUiPathInternalServiceCall:m,taskSpanId:v,...q&&q.length>0?{attachments:q}:{},...b?{retry:b}:{}}}static extractAttachments(t){let r=(0,Nn.findBlobAttachmentRefs)(t);return r.length>0?r:void 0}static calculateWorkflowExternalExecutionTime(t){let r=0,e={},n=o.workflowTaskTimes.get(t);if(n)for(let s of n.values())s.vendorTime!==void 0&&(e[s.taskId]=s.vendorTime,r+=s.vendorTime);let i=Object.keys(e).length>0?JSON.stringify(e):void 0;return{totalTimeMs:r,externalExecutionBreakdownJson:i}}static cleanup(t){o.workflowTaskTimes.delete(t),o.workflowVerboseDataModes.delete(t)}};rd.LoggingHelper=lc;lc.workflowTaskTimes=new Map;lc.workflowVerboseDataModes=new Map});var $S=O(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.createRedactingLogger=void 0;var MF=Qa(),CF=(o,t)=>{let r=()=>MF.SecretRegistryStore.get(t),e=s=>r()?.redactString(s)??s,n=s=>{let c=r();return c?c.redact(s):s},i=s=>{let c=r();return c?c.redactError(s):s};return{debug:(s,c)=>o.debug(e(s),n(c)),info:(s,c)=>o.info(e(s),n(c)),warn:(s,c)=>o.warn(e(s),n(c)),error:(s,c,u)=>o.error(e(s),n(c),i(u)),logIterationVariables:(s,c,u)=>o.logIterationVariables(s,c,n(u)),logEvent:(s,c)=>o.logEvent(s,n(c)),logWorkflowEvent:(s,c,u)=>o.logWorkflowEvent(s,n(c),i(u)),logTaskEvent:(s,c,u)=>o.logTaskEvent(s,n(c),i(u)),shutdown:()=>o.shutdown()}};od.createRedactingLogger=CF});var Ne=O(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.isFunction=void 0;function jF(o){return typeof o=="function"}id.isFunction=jF});var _o=O(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.createErrorClass=void 0;function NF(o){var t=function(e){Error.call(e),e.stack=new Error().stack},r=o(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}sd.createErrorClass=NF});var Py=O(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.UnsubscriptionError=void 0;var DF=_o();ad.UnsubscriptionError=DF.createErrorClass(function(o){return function(r){o(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
869
869
|
`+r.map(function(e,n){return n+1+") "+e.toString()}).join(`
|
|
870
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}})});var Dn=O(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.arrRemove=void 0;function LF(o,t){if(o){var r=o.indexOf(t);0<=r&&o.splice(r,1)}}cd.arrRemove=LF});var er=O(Wt=>{"use strict";var BS=Wt&&Wt.__values||function(o){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&o[t],e=0;if(r)return r.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&e>=o.length&&(o=void 0),{value:o&&o[e++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},HS=Wt&&Wt.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},VS=Wt&&Wt.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.isSubscription=Wt.EMPTY_SUBSCRIPTION=Wt.Subscription=void 0;var dc=Ne(),Ay=Py(),zS=Dn(),Iy=function(){function o(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return o.prototype.unsubscribe=function(){var t,r,e,n,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var c=BS(s),u=c.next();!u.done;u=c.next()){var a=u.value;a.remove(this)}}catch(m){t={error:m}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else s.remove(this);var l=this.initialTeardown;if(dc.isFunction(l))try{l()}catch(m){i=m instanceof Ay.UnsubscriptionError?m.errors:[m]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=BS(d),h=f.next();!h.done;h=f.next()){var _=h.value;try{YS(_)}catch(m){i=i??[],m instanceof Ay.UnsubscriptionError?i=VS(VS([],HS(i)),HS(m.errors)):i.push(m)}}}catch(m){e={error:m}}finally{try{h&&!h.done&&(n=f.return)&&n.call(f)}finally{if(e)throw e.error}}}if(i)throw new Ay.UnsubscriptionError(i)}},o.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)YS(t);else{if(t instanceof o){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},o.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},o.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},o.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&zS.arrRemove(r,t)},o.prototype.remove=function(t){var r=this._finalizers;r&&zS.arrRemove(r,t),t instanceof o&&t._removeParent(this)},o.EMPTY=function(){var t=new o;return t.closed=!0,t}(),o}();Wt.Subscription=Iy;Wt.EMPTY_SUBSCRIPTION=Iy.EMPTY;function qF(o){return o instanceof Iy||o&&"closed"in o&&dc.isFunction(o.remove)&&dc.isFunction(o.add)&&dc.isFunction(o.unsubscribe)}Wt.isSubscription=qF;function YS(o){dc.isFunction(o)?o():o.unsubscribe()}});var ks=O(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.config=void 0;ud.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var xy=O(on=>{"use strict";var KS=on&&on.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},JS=on&&on.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(on,"__esModule",{value:!0});on.timeoutProvider=void 0;on.timeoutProvider={setTimeout:function(o,t){for(var r=[],e=2;e<arguments.length;e++)r[e-2]=arguments[e];var n=on.timeoutProvider.delegate;return n?.setTimeout?n.setTimeout.apply(n,JS([o,t],KS(r))):setTimeout.apply(void 0,JS([o,t],KS(r)))},clearTimeout:function(o){var t=on.timeoutProvider.delegate;return(t?.clearTimeout||clearTimeout)(o)},delegate:void 0}});var Ry=O(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.reportUnhandledError=void 0;var FF=ks(),WF=xy();function UF(o){WF.timeoutProvider.setTimeout(function(){var t=FF.config.onUnhandledError;if(t)t(o);else throw o})}ld.reportUnhandledError=UF});var yt=O(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.noop=void 0;function $F(){}dd.noop=$F});var GS=O(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.createNotification=sn.nextNotification=sn.errorNotification=sn.COMPLETE_NOTIFICATION=void 0;sn.COMPLETE_NOTIFICATION=function(){return fd("C",void 0,void 0)}();function BF(o){return fd("E",void 0,o)}sn.errorNotification=BF;function HF(o){return fd("N",o,void 0)}sn.nextNotification=HF;function fd(o,t,r){return{kind:o,value:t,error:r}}sn.createNotification=fd});var pd=O(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.captureError=Ps.errorContext=void 0;var XS=ks(),Oi=null;function VF(o){if(XS.config.useDeprecatedSynchronousErrorHandling){var t=!Oi;if(t&&(Oi={errorThrown:!1,error:null}),o(),t){var r=Oi,e=r.errorThrown,n=r.error;if(Oi=null,e)throw n}}else o()}Ps.errorContext=VF;function zF(o){XS.config.useDeprecatedSynchronousErrorHandling&&Oi&&(Oi.errorThrown=!0,Oi.error=o)}Ps.captureError=zF});var As=O(Dr=>{"use strict";var eO=Dr&&Dr.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(Dr,"__esModule",{value:!0});Dr.EMPTY_OBSERVER=Dr.SafeSubscriber=Dr.Subscriber=void 0;var YF=Ne(),ZS=er(),Ny=ks(),KF=Ry(),QS=yt(),My=GS(),JF=xy(),GF=pd(),tO=function(o){eO(t,o);function t(r){var e=o.call(this)||this;return e.isStopped=!1,r?(e.destination=r,ZS.isSubscription(r)&&r.add(e)):e.destination=Dr.EMPTY_OBSERVER,e}return t.create=function(r,e,n){return new rO(r,e,n)},t.prototype.next=function(r){this.isStopped?jy(My.nextNotification(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?jy(My.errorNotification(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?jy(My.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,o.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(ZS.Subscription);Dr.Subscriber=tO;var XF=Function.prototype.bind;function Cy(o,t){return XF.call(o,t)}var ZF=function(){function o(t){this.partialObserver=t}return o.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(e){hd(e)}},o.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(e){hd(e)}else hd(t)},o.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){hd(r)}},o}(),rO=function(o){eO(t,o);function t(r,e,n){var i=o.call(this)||this,s;if(YF.isFunction(r)||!r)s={next:r??void 0,error:e??void 0,complete:n??void 0};else{var c;i&&Ny.config.useDeprecatedNextContext?(c=Object.create(r),c.unsubscribe=function(){return i.unsubscribe()},s={next:r.next&&Cy(r.next,c),error:r.error&&Cy(r.error,c),complete:r.complete&&Cy(r.complete,c)}):s=r}return i.destination=new ZF(s),i}return t}(tO);Dr.SafeSubscriber=rO;function hd(o){Ny.config.useDeprecatedSynchronousErrorHandling?GF.captureError(o):KF.reportUnhandledError(o)}function QF(o){throw o}function jy(o,t){var r=Ny.config.onStoppedNotification;r&&JF.timeoutProvider.setTimeout(function(){return r(o,t)})}Dr.EMPTY_OBSERVER={closed:!0,next:QS.noop,error:QF,complete:QS.noop}});var fc=O(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.observable=void 0;_d.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()});var bt=O(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.identity=void 0;function eW(o){return o}md.identity=eW});var pc=O(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.pipeFromArray=Is.pipe=void 0;var tW=bt();function rW(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return nO(o)}Is.pipe=rW;function nO(o){return o.length===0?tW.identity:o.length===1?o[0]:function(r){return o.reduce(function(e,n){return n(e)},r)}}Is.pipeFromArray=nO});var Fe=O(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.Observable=void 0;var Ly=As(),nW=er(),oW=fc(),iW=pc(),sW=ks(),Dy=Ne(),aW=pd(),cW=function(){function o(t){t&&(this._subscribe=t)}return o.prototype.lift=function(t){var r=new o;return r.source=this,r.operator=t,r},o.prototype.subscribe=function(t,r,e){var n=this,i=lW(t)?t:new Ly.SafeSubscriber(t,r,e);return aW.errorContext(function(){var s=n,c=s.operator,u=s.source;i.add(c?c.call(i,u):u?n._subscribe(i):n._trySubscribe(i))}),i},o.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},o.prototype.forEach=function(t,r){var e=this;return r=oO(r),new r(function(n,i){var s=new Ly.SafeSubscriber({next:function(c){try{t(c)}catch(u){i(u),s.unsubscribe()}},error:i,complete:n});e.subscribe(s)})},o.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},o.prototype[oW.observable]=function(){return this},o.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return iW.pipeFromArray(t)(this)},o.prototype.toPromise=function(t){var r=this;return t=oO(t),new t(function(e,n){var i;r.subscribe(function(s){return i=s},function(s){return n(s)},function(){return e(i)})})},o.create=function(t){return new o(t)},o}();vd.Observable=cW;function oO(o){var t;return(t=o??sW.config.Promise)!==null&&t!==void 0?t:Promise}function uW(o){return o&&Dy.isFunction(o.next)&&Dy.isFunction(o.error)&&Dy.isFunction(o.complete)}function lW(o){return o&&o instanceof Ly.Subscriber||uW(o)&&nW.isSubscription(o)}});var ee=O(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.operate=xs.hasLift=void 0;var dW=Ne();function iO(o){return dW.isFunction(o?.lift)}xs.hasLift=iO;function fW(o){return function(t){if(iO(t))return t.lift(function(r){try{return o(r,this)}catch(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}xs.operate=fW});var ie=O(mo=>{"use strict";var pW=mo&&mo.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(mo,"__esModule",{value:!0});mo.OperatorSubscriber=mo.createOperatorSubscriber=void 0;var hW=As();function _W(o,t,r,e,n){return new sO(o,t,r,e,n)}mo.createOperatorSubscriber=_W;var sO=function(o){pW(t,o);function t(r,e,n,i,s,c){var u=o.call(this,r)||this;return u.onFinalize=s,u.shouldUnsubscribe=c,u._next=e?function(a){try{e(a)}catch(l){r.error(l)}}:o.prototype._next,u._error=i?function(a){try{i(a)}catch(l){r.error(l)}finally{this.unsubscribe()}}:o.prototype._error,u._complete=n?function(){try{n()}catch(a){r.error(a)}finally{this.unsubscribe()}}:o.prototype._complete,u}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var e=this.closed;o.prototype.unsubscribe.call(this),!e&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t}(hW.Subscriber);mo.OperatorSubscriber=sO});var qy=O(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.refCount=void 0;var mW=ee(),vW=ie();function yW(){return mW.operate(function(o,t){var r=null;o._refCount++;var e=vW.createOperatorSubscriber(t,void 0,void 0,void 0,function(){if(!o||o._refCount<=0||0<--o._refCount){r=null;return}var n=o._connection,i=r;r=null,n&&(!i||n===i)&&n.unsubscribe(),t.unsubscribe()});o.subscribe(e),e.closed||(r=o.connect())})}yd.refCount=yW});var hc=O(Rs=>{"use strict";var bW=Rs&&Rs.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(Rs,"__esModule",{value:!0});Rs.ConnectableObservable=void 0;var gW=Fe(),aO=er(),wW=qy(),EW=ie(),TW=ee(),SW=function(o){bW(t,o);function t(r,e){var n=o.call(this)||this;return n.source=r,n.subjectFactory=e,n._subject=null,n._refCount=0,n._connection=null,TW.hasLift(r)&&(n.lift=r.lift),n}return t.prototype._subscribe=function(r){return this.getSubject().subscribe(r)},t.prototype.getSubject=function(){var r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var r=this._connection;this._subject=this._connection=null,r?.unsubscribe()},t.prototype.connect=function(){var r=this,e=this._connection;if(!e){e=this._connection=new aO.Subscription;var n=this.getSubject();e.add(this.source.subscribe(EW.createOperatorSubscriber(n,void 0,function(){r._teardown(),n.complete()},function(i){r._teardown(),n.error(i)},function(){return r._teardown()}))),e.closed&&(this._connection=null,e=aO.Subscription.EMPTY)}return e},t.prototype.refCount=function(){return wW.refCount()(this)},t}(gW.Observable);Rs.ConnectableObservable=SW});var cO=O(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.performanceTimestampProvider=void 0;_c.performanceTimestampProvider={now:function(){return(_c.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var Fy=O(Lr=>{"use strict";var uO=Lr&&Lr.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},lO=Lr&&Lr.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(Lr,"__esModule",{value:!0});Lr.animationFrameProvider=void 0;var OW=er();Lr.animationFrameProvider={schedule:function(o){var t=requestAnimationFrame,r=cancelAnimationFrame,e=Lr.animationFrameProvider.delegate;e&&(t=e.requestAnimationFrame,r=e.cancelAnimationFrame);var n=t(function(i){r=void 0,o(i)});return new OW.Subscription(function(){return r?.(n)})},requestAnimationFrame:function(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=Lr.animationFrameProvider.delegate;return(r?.requestAnimationFrame||requestAnimationFrame).apply(void 0,lO([],uO(o)))},cancelAnimationFrame:function(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=Lr.animationFrameProvider.delegate;return(r?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,lO([],uO(o)))},delegate:void 0}});var pO=O(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.animationFrames=void 0;var kW=Fe(),PW=cO(),dO=Fy();function AW(o){return o?fO(o):IW}bd.animationFrames=AW;function fO(o){return new kW.Observable(function(t){var r=o||PW.performanceTimestampProvider,e=r.now(),n=0,i=function(){t.closed||(n=dO.animationFrameProvider.requestAnimationFrame(function(s){n=0;var c=r.now();t.next({timestamp:o?c:s,elapsed:c-e}),i()}))};return i(),function(){n&&dO.animationFrameProvider.cancelAnimationFrame(n)}})}var IW=fO()});var Wy=O(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.ObjectUnsubscribedError=void 0;var xW=_o();gd.ObjectUnsubscribedError=xW.createErrorClass(function(o){return function(){o(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})});var gt=O(an=>{"use strict";var _O=an&&an.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}(),RW=an&&an.__values||function(o){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&o[t],e=0;if(r)return r.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&e>=o.length&&(o=void 0),{value:o&&o[e++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(an,"__esModule",{value:!0});an.AnonymousSubject=an.Subject=void 0;var hO=Fe(),$y=er(),MW=Wy(),CW=Dn(),Uy=pd(),mO=function(o){_O(t,o);function t(){var r=o.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var e=new By(this,this);return e.operator=r,e},t.prototype._throwIfClosed=function(){if(this.closed)throw new MW.ObjectUnsubscribedError},t.prototype.next=function(r){var e=this;Uy.errorContext(function(){var n,i;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var s=RW(e.currentObservers),c=s.next();!c.done;c=s.next()){var u=c.value;u.next(r)}}catch(a){n={error:a}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}}})},t.prototype.error=function(r){var e=this;Uy.errorContext(function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=r;for(var n=e.observers;n.length;)n.shift().error(r)}})},t.prototype.complete=function(){var r=this;Uy.errorContext(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var e=r.observers;e.length;)e.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),o.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var e=this,n=this,i=n.hasError,s=n.isStopped,c=n.observers;return i||s?$y.EMPTY_SUBSCRIPTION:(this.currentObservers=null,c.push(r),new $y.Subscription(function(){e.currentObservers=null,CW.arrRemove(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var e=this,n=e.hasError,i=e.thrownError,s=e.isStopped;n?r.error(i):s&&r.complete()},t.prototype.asObservable=function(){var r=new hO.Observable;return r.source=this,r},t.create=function(r,e){return new By(r,e)},t}(hO.Observable);an.Subject=mO;var By=function(o){_O(t,o);function t(r,e){var n=o.call(this)||this;return n.destination=r,n.source=e,n}return t.prototype.next=function(r){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0||n.call(e,r)},t.prototype.error=function(r){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0||n.call(e,r)},t.prototype.complete=function(){var r,e;(e=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||e===void 0||e.call(r)},t.prototype._subscribe=function(r){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(r))!==null&&n!==void 0?n:$y.EMPTY_SUBSCRIPTION},t}(mO);an.AnonymousSubject=By});var Hy=O(Ms=>{"use strict";var jW=Ms&&Ms.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(Ms,"__esModule",{value:!0});Ms.BehaviorSubject=void 0;var NW=gt(),DW=function(o){jW(t,o);function t(r){var e=o.call(this)||this;return e._value=r,e}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var e=o.prototype._subscribe.call(this,r);return!e.closed&&r.next(this._value),e},t.prototype.getValue=function(){var r=this,e=r.hasError,n=r.thrownError,i=r._value;if(e)throw n;return this._throwIfClosed(),i},t.prototype.next=function(r){o.prototype.next.call(this,this._value=r)},t}(NW.Subject);Ms.BehaviorSubject=DW});var wd=O(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.dateTimestampProvider=void 0;mc.dateTimestampProvider={now:function(){return(mc.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var Ed=O(Cs=>{"use strict";var LW=Cs&&Cs.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(Cs,"__esModule",{value:!0});Cs.ReplaySubject=void 0;var qW=gt(),FW=wd(),WW=function(o){LW(t,o);function t(r,e,n){r===void 0&&(r=1/0),e===void 0&&(e=1/0),n===void 0&&(n=FW.dateTimestampProvider);var i=o.call(this)||this;return i._bufferSize=r,i._windowTime=e,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=e===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,e),i}return t.prototype.next=function(r){var e=this,n=e.isStopped,i=e._buffer,s=e._infiniteTimeWindow,c=e._timestampProvider,u=e._windowTime;n||(i.push(r),!s&&i.push(c.now()+u)),this._trimBuffer(),o.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(r),n=this,i=n._infiniteTimeWindow,s=n._buffer,c=s.slice(),u=0;u<c.length&&!r.closed;u+=i?1:2)r.next(c[u]);return this._checkFinalizedStatuses(r),e},t.prototype._trimBuffer=function(){var r=this,e=r._bufferSize,n=r._timestampProvider,i=r._buffer,s=r._infiniteTimeWindow,c=(s?1:2)*e;if(e<1/0&&c<i.length&&i.splice(0,i.length-c),!s){for(var u=n.now(),a=0,l=1;l<i.length&&i[l]<=u;l+=2)a=l;a&&i.splice(0,a+1)}},t}(qW.Subject);Cs.ReplaySubject=WW});var Td=O(js=>{"use strict";var UW=js&&js.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(js,"__esModule",{value:!0});js.AsyncSubject=void 0;var $W=gt(),BW=function(o){UW(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r._value=null,r._hasValue=!1,r._isComplete=!1,r}return t.prototype._checkFinalizedStatuses=function(r){var e=this,n=e.hasError,i=e._hasValue,s=e._value,c=e.thrownError,u=e.isStopped,a=e._isComplete;n?r.error(c):(u||a)&&(i&&r.next(s),r.complete())},t.prototype.next=function(r){this.isStopped||(this._value=r,this._hasValue=!0)},t.prototype.complete=function(){var r=this,e=r._hasValue,n=r._value,i=r._isComplete;i||(this._isComplete=!0,e&&o.prototype.next.call(this,n),o.prototype.complete.call(this))},t}($W.Subject);js.AsyncSubject=BW});var vO=O(Ns=>{"use strict";var HW=Ns&&Ns.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(Ns,"__esModule",{value:!0});Ns.Action=void 0;var VW=er(),zW=function(o){HW(t,o);function t(r,e){return o.call(this)||this}return t.prototype.schedule=function(r,e){return e===void 0&&(e=0),this},t}(VW.Subscription);Ns.Action=zW});var gO=O(cn=>{"use strict";var yO=cn&&cn.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},bO=cn&&cn.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(cn,"__esModule",{value:!0});cn.intervalProvider=void 0;cn.intervalProvider={setInterval:function(o,t){for(var r=[],e=2;e<arguments.length;e++)r[e-2]=arguments[e];var n=cn.intervalProvider.delegate;return n?.setInterval?n.setInterval.apply(n,bO([o,t],yO(r))):setInterval.apply(void 0,bO([o,t],yO(r)))},clearInterval:function(o){var t=cn.intervalProvider.delegate;return(t?.clearInterval||clearInterval)(o)},delegate:void 0}});var Ls=O(Ds=>{"use strict";var YW=Ds&&Ds.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(Ds,"__esModule",{value:!0});Ds.AsyncAction=void 0;var KW=vO(),wO=gO(),JW=Dn(),GW=function(o){YW(t,o);function t(r,e){var n=o.call(this,r,e)||this;return n.scheduler=r,n.work=e,n.pending=!1,n}return t.prototype.schedule=function(r,e){var n;if(e===void 0&&(e=0),this.closed)return this;this.state=r;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,e)),this.pending=!0,this.delay=e,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(s,this.id,e),this},t.prototype.requestAsyncId=function(r,e,n){return n===void 0&&(n=0),wO.intervalProvider.setInterval(r.flush.bind(r,this),n)},t.prototype.recycleAsyncId=function(r,e,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return e;e!=null&&wO.intervalProvider.clearInterval(e)},t.prototype.execute=function(r,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(r,e);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,e){var n=!1,i;try{this.work(r)}catch(s){n=!0,i=s||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,e=r.id,n=r.scheduler,i=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,JW.arrRemove(i,this),e!=null&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,o.prototype.unsubscribe.call(this)}},t}(KW.Action);Ds.AsyncAction=GW});var TO=O(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.TestTools=qs.Immediate=void 0;var XW=1,Vy,Sd={};function EO(o){return o in Sd?(delete Sd[o],!0):!1}qs.Immediate={setImmediate:function(o){var t=XW++;return Sd[t]=!0,Vy||(Vy=Promise.resolve()),Vy.then(function(){return EO(t)&&o()}),t},clearImmediate:function(o){EO(o)}};qs.TestTools={pending:function(){return Object.keys(Sd).length}}});var OO=O(un=>{"use strict";var ZW=un&&un.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},QW=un&&un.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(un,"__esModule",{value:!0});un.immediateProvider=void 0;var SO=TO(),eU=SO.Immediate.setImmediate,tU=SO.Immediate.clearImmediate;un.immediateProvider={setImmediate:function(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=un.immediateProvider.delegate;return(r?.setImmediate||eU).apply(void 0,QW([],ZW(o)))},clearImmediate:function(o){var t=un.immediateProvider.delegate;return(t?.clearImmediate||tU)(o)},delegate:void 0}});var PO=O(Fs=>{"use strict";var rU=Fs&&Fs.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(Fs,"__esModule",{value:!0});Fs.AsapAction=void 0;var nU=Ls(),kO=OO(),oU=function(o){rU(t,o);function t(r,e){var n=o.call(this,r,e)||this;return n.scheduler=r,n.work=e,n}return t.prototype.requestAsyncId=function(r,e,n){return n===void 0&&(n=0),n!==null&&n>0?o.prototype.requestAsyncId.call(this,r,e,n):(r.actions.push(this),r._scheduled||(r._scheduled=kO.immediateProvider.setImmediate(r.flush.bind(r,void 0))))},t.prototype.recycleAsyncId=function(r,e,n){var i;if(n===void 0&&(n=0),n!=null?n>0:this.delay>0)return o.prototype.recycleAsyncId.call(this,r,e,n);var s=r.actions;e!=null&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==e&&(kO.immediateProvider.clearImmediate(e),r._scheduled=void 0)},t}(nU.AsyncAction);Fs.AsapAction=oU});var zy=O(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});Od.Scheduler=void 0;var iU=wd(),sU=function(){function o(t,r){r===void 0&&(r=o.now),this.schedulerActionCtor=t,this.now=r}return o.prototype.schedule=function(t,r,e){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(e,r)},o.now=iU.dateTimestampProvider.now,o}();Od.Scheduler=sU});var Us=O(Ws=>{"use strict";var aU=Ws&&Ws.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(Ws,"__esModule",{value:!0});Ws.AsyncScheduler=void 0;var AO=zy(),cU=function(o){aU(t,o);function t(r,e){e===void 0&&(e=AO.Scheduler.now);var n=o.call(this,r,e)||this;return n.actions=[],n._active=!1,n}return t.prototype.flush=function(r){var e=this.actions;if(this._active){e.push(r);return}var n;this._active=!0;do if(n=r.execute(r.state,r.delay))break;while(r=e.shift());if(this._active=!1,n){for(;r=e.shift();)r.unsubscribe();throw n}},t}(AO.Scheduler);Ws.AsyncScheduler=cU});var IO=O($s=>{"use strict";var uU=$s&&$s.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty($s,"__esModule",{value:!0});$s.AsapScheduler=void 0;var lU=Us(),dU=function(o){uU(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var e=this._scheduled;this._scheduled=void 0;var n=this.actions,i;r=r||n.shift();do if(i=r.execute(r.state,r.delay))break;while((r=n[0])&&r.id===e&&n.shift());if(this._active=!1,i){for(;(r=n[0])&&r.id===e&&n.shift();)r.unsubscribe();throw i}},t}(lU.AsyncScheduler);$s.AsapScheduler=dU});var xO=O(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.asap=ki.asapScheduler=void 0;var fU=PO(),pU=IO();ki.asapScheduler=new pU.AsapScheduler(fU.AsapAction);ki.asap=ki.asapScheduler});var Ut=O(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.async=Pi.asyncScheduler=void 0;var hU=Ls(),_U=Us();Pi.asyncScheduler=new _U.AsyncScheduler(hU.AsyncAction);Pi.async=Pi.asyncScheduler});var RO=O(Bs=>{"use strict";var mU=Bs&&Bs.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(Bs,"__esModule",{value:!0});Bs.QueueAction=void 0;var vU=Ls(),yU=function(o){mU(t,o);function t(r,e){var n=o.call(this,r,e)||this;return n.scheduler=r,n.work=e,n}return t.prototype.schedule=function(r,e){return e===void 0&&(e=0),e>0?o.prototype.schedule.call(this,r,e):(this.delay=e,this.state=r,this.scheduler.flush(this),this)},t.prototype.execute=function(r,e){return e>0||this.closed?o.prototype.execute.call(this,r,e):this._execute(r,e)},t.prototype.requestAsyncId=function(r,e,n){return n===void 0&&(n=0),n!=null&&n>0||n==null&&this.delay>0?o.prototype.requestAsyncId.call(this,r,e,n):(r.flush(this),0)},t}(vU.AsyncAction);Bs.QueueAction=yU});var MO=O(Hs=>{"use strict";var bU=Hs&&Hs.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(Hs,"__esModule",{value:!0});Hs.QueueScheduler=void 0;var gU=Us(),wU=function(o){bU(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t}(gU.AsyncScheduler);Hs.QueueScheduler=wU});var CO=O(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.queue=Ai.queueScheduler=void 0;var EU=RO(),TU=MO();Ai.queueScheduler=new TU.QueueScheduler(EU.QueueAction);Ai.queue=Ai.queueScheduler});var NO=O(Vs=>{"use strict";var SU=Vs&&Vs.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(Vs,"__esModule",{value:!0});Vs.AnimationFrameAction=void 0;var OU=Ls(),jO=Fy(),kU=function(o){SU(t,o);function t(r,e){var n=o.call(this,r,e)||this;return n.scheduler=r,n.work=e,n}return t.prototype.requestAsyncId=function(r,e,n){return n===void 0&&(n=0),n!==null&&n>0?o.prototype.requestAsyncId.call(this,r,e,n):(r.actions.push(this),r._scheduled||(r._scheduled=jO.animationFrameProvider.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,e,n){var i;if(n===void 0&&(n=0),n!=null?n>0:this.delay>0)return o.prototype.recycleAsyncId.call(this,r,e,n);var s=r.actions;e!=null&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==e&&(jO.animationFrameProvider.cancelAnimationFrame(e),r._scheduled=void 0)},t}(OU.AsyncAction);Vs.AnimationFrameAction=kU});var DO=O(zs=>{"use strict";var PU=zs&&zs.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(zs,"__esModule",{value:!0});zs.AnimationFrameScheduler=void 0;var AU=Us(),IU=function(o){PU(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var e=this._scheduled;this._scheduled=void 0;var n=this.actions,i;r=r||n.shift();do if(i=r.execute(r.state,r.delay))break;while((r=n[0])&&r.id===e&&n.shift());if(this._active=!1,i){for(;(r=n[0])&&r.id===e&&n.shift();)r.unsubscribe();throw i}},t}(AU.AsyncScheduler);zs.AnimationFrameScheduler=IU});var LO=O(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.animationFrame=Ii.animationFrameScheduler=void 0;var xU=NO(),RU=DO();Ii.animationFrameScheduler=new RU.AnimationFrameScheduler(xU.AnimationFrameAction);Ii.animationFrame=Ii.animationFrameScheduler});var WO=O(vo=>{"use strict";var qO=vo&&vo.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(vo,"__esModule",{value:!0});vo.VirtualAction=vo.VirtualTimeScheduler=void 0;var MU=Ls(),CU=er(),jU=Us(),NU=function(o){qO(t,o);function t(r,e){r===void 0&&(r=FO),e===void 0&&(e=1/0);var n=o.call(this,r,function(){return n.frame})||this;return n.maxFrames=e,n.frame=0,n.index=-1,n}return t.prototype.flush=function(){for(var r=this,e=r.actions,n=r.maxFrames,i,s;(s=e[0])&&s.delay<=n&&(e.shift(),this.frame=s.delay,!(i=s.execute(s.state,s.delay))););if(i){for(;s=e.shift();)s.unsubscribe();throw i}},t.frameTimeFactor=10,t}(jU.AsyncScheduler);vo.VirtualTimeScheduler=NU;var FO=function(o){qO(t,o);function t(r,e,n){n===void 0&&(n=r.index+=1);var i=o.call(this,r,e)||this;return i.scheduler=r,i.work=e,i.index=n,i.active=!0,i.index=r.index=n,i}return t.prototype.schedule=function(r,e){if(e===void 0&&(e=0),Number.isFinite(e)){if(!this.id)return o.prototype.schedule.call(this,r,e);this.active=!1;var n=new t(this.scheduler,this.work);return this.add(n),n.schedule(r,e)}else return CU.Subscription.EMPTY},t.prototype.requestAsyncId=function(r,e,n){n===void 0&&(n=0),this.delay=r.frame+n;var i=r.actions;return i.push(this),i.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(r,e,n){n===void 0&&(n=0)},t.prototype._execute=function(r,e){if(this.active===!0)return o.prototype._execute.call(this,r,e)},t.sortActions=function(r,e){return r.delay===e.delay?r.index===e.index?0:r.index>e.index?1:-1:r.delay>e.delay?1:-1},t}(MU.AsyncAction);vo.VirtualAction=FO});var qr=O(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.empty=xi.EMPTY=void 0;var UO=Fe();xi.EMPTY=new UO.Observable(function(o){return o.complete()});function DU(o){return o?LU(o):xi.EMPTY}xi.empty=DU;function LU(o){return new UO.Observable(function(t){return o.schedule(function(){return t.complete()})})}});var vc=O(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.isScheduler=void 0;var qU=Ne();function FU(o){return o&&qU.isFunction(o.schedule)}kd.isScheduler=FU});var $t=O(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.popNumber=yo.popScheduler=yo.popResultSelector=void 0;var WU=Ne(),UU=vc();function Yy(o){return o[o.length-1]}function $U(o){return WU.isFunction(Yy(o))?o.pop():void 0}yo.popResultSelector=$U;function BU(o){return UU.isScheduler(Yy(o))?o.pop():void 0}yo.popScheduler=BU;function HU(o,t){return typeof Yy(o)=="number"?o.pop():t}yo.popNumber=HU});var Ad=O(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.isArrayLike=void 0;Pd.isArrayLike=function(o){return o&&typeof o.length=="number"&&typeof o!="function"}});var Ky=O(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.isPromise=void 0;var VU=Ne();function zU(o){return VU.isFunction(o?.then)}Id.isPromise=zU});var Jy=O(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.isInteropObservable=void 0;var YU=fc(),KU=Ne();function JU(o){return KU.isFunction(o[YU.observable])}xd.isInteropObservable=JU});var Gy=O(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.isAsyncIterable=void 0;var GU=Ne();function XU(o){return Symbol.asyncIterator&&GU.isFunction(o?.[Symbol.asyncIterator])}Rd.isAsyncIterable=XU});var Xy=O(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.createInvalidObservableTypeError=void 0;function ZU(o){return new TypeError("You provided "+(o!==null&&typeof o=="object"?"an invalid object":"'"+o+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}Md.createInvalidObservableTypeError=ZU});var Zy=O(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.iterator=Ys.getSymbolIterator=void 0;function $O(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}Ys.getSymbolIterator=$O;Ys.iterator=$O()});var Qy=O(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.isIterable=void 0;var QU=Zy(),e$=Ne();function t$(o){return e$.isFunction(o?.[QU.iterator])}Cd.isIterable=t$});var jd=O(_r=>{"use strict";var r$=_r&&_r.__generator||function(o,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,n,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(a){return function(l){return u([a,l])}}function u(a){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,n&&(i=a[0]&2?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,n=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1],i=a;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(a);break}i[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(o,r)}catch(l){a=[6,l],n=0}finally{e=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},Ks=_r&&_r.__await||function(o){return this instanceof Ks?(this.v=o,this):new Ks(o)},n$=_r&&_r.__asyncGenerator||function(o,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r.apply(o,t||[]),n,i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(f){e[f]&&(n[f]=function(h){return new Promise(function(_,m){i.push([f,h,_,m])>1||c(f,h)})})}function c(f,h){try{u(e[f](h))}catch(_){d(i[0][3],_)}}function u(f){f.value instanceof Ks?Promise.resolve(f.value.v).then(a,l):d(i[0][2],f)}function a(f){c("next",f)}function l(f){c("throw",f)}function d(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1])}};Object.defineProperty(_r,"__esModule",{value:!0});_r.isReadableStreamLike=_r.readableStreamLikeToAsyncGenerator=void 0;var o$=Ne();function i$(o){return n$(this,arguments,function(){var r,e,n,i;return r$(this,function(s){switch(s.label){case 0:r=o.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Ks(r.read())];case 3:return e=s.sent(),n=e.value,i=e.done,i?[4,Ks(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Ks(n)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}_r.readableStreamLikeToAsyncGenerator=i$;function s$(o){return o$.isFunction(o?.getReader)}_r.isReadableStreamLike=s$});var ve=O(Ye=>{"use strict";var a$=Ye&&Ye.__awaiter||function(o,t,r,e){function n(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function c(l){try{a(e.next(l))}catch(d){s(d)}}function u(l){try{a(e.throw(l))}catch(d){s(d)}}function a(l){l.done?i(l.value):n(l.value).then(c,u)}a((e=e.apply(o,t||[])).next())})},c$=Ye&&Ye.__generator||function(o,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,n,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(a){return function(l){return u([a,l])}}function u(a){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,n&&(i=a[0]&2?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,n=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1],i=a;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(a);break}i[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(o,r)}catch(l){a=[6,l],n=0}finally{e=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},u$=Ye&&Ye.__asyncValues||function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=o[Symbol.asyncIterator],r;return t?t.call(o):(o=typeof eb=="function"?eb(o):o[Symbol.iterator](),r={},e("next"),e("throw"),e("return"),r[Symbol.asyncIterator]=function(){return this},r);function e(i){r[i]=o[i]&&function(s){return new Promise(function(c,u){s=o[i](s),n(c,u,s.done,s.value)})}}function n(i,s,c,u){Promise.resolve(u).then(function(a){i({value:a,done:c})},s)}},eb=Ye&&Ye.__values||function(o){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&o[t],e=0;if(r)return r.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&e>=o.length&&(o=void 0),{value:o&&o[e++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.fromReadableStreamLike=Ye.fromAsyncIterable=Ye.fromIterable=Ye.fromPromise=Ye.fromArrayLike=Ye.fromInteropObservable=Ye.innerFrom=void 0;var l$=Ad(),d$=Ky(),Js=Fe(),f$=Jy(),p$=Gy(),h$=Xy(),_$=Qy(),BO=jd(),m$=Ne(),v$=Ry(),y$=fc();function b$(o){if(o instanceof Js.Observable)return o;if(o!=null){if(f$.isInteropObservable(o))return HO(o);if(l$.isArrayLike(o))return VO(o);if(d$.isPromise(o))return zO(o);if(p$.isAsyncIterable(o))return tb(o);if(_$.isIterable(o))return YO(o);if(BO.isReadableStreamLike(o))return KO(o)}throw h$.createInvalidObservableTypeError(o)}Ye.innerFrom=b$;function HO(o){return new Js.Observable(function(t){var r=o[y$.observable]();if(m$.isFunction(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}Ye.fromInteropObservable=HO;function VO(o){return new Js.Observable(function(t){for(var r=0;r<o.length&&!t.closed;r++)t.next(o[r]);t.complete()})}Ye.fromArrayLike=VO;function zO(o){return new Js.Observable(function(t){o.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,v$.reportUnhandledError)})}Ye.fromPromise=zO;function YO(o){return new Js.Observable(function(t){var r,e;try{for(var n=eb(o),i=n.next();!i.done;i=n.next()){var s=i.value;if(t.next(s),t.closed)return}}catch(c){r={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(r)throw r.error}}t.complete()})}Ye.fromIterable=YO;function tb(o){return new Js.Observable(function(t){g$(o,t).catch(function(r){return t.error(r)})})}Ye.fromAsyncIterable=tb;function KO(o){return tb(BO.readableStreamLikeToAsyncGenerator(o))}Ye.fromReadableStreamLike=KO;function g$(o,t){var r,e,n,i;return a$(this,void 0,void 0,function(){var s,c;return c$(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=u$(o),u.label=1;case 1:return[4,r.next()];case 2:if(e=u.sent(),!!e.done)return[3,4];if(s=e.value,t.next(s),t.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return c=u.sent(),n={error:c},[3,11];case 6:return u.trys.push([6,,9,10]),e&&!e.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}});var Ln=O(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.executeSchedule=void 0;function w$(o,t,r,e,n){e===void 0&&(e=0),n===void 0&&(n=!1);var i=t.schedule(function(){r(),n?o.add(this.schedule(null,e)):this.unsubscribe()},e);if(o.add(i),!n)return i}Nd.executeSchedule=w$});var yc=O(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.observeOn=void 0;var rb=Ln(),E$=ee(),T$=ie();function S$(o,t){return t===void 0&&(t=0),E$.operate(function(r,e){r.subscribe(T$.createOperatorSubscriber(e,function(n){return rb.executeSchedule(e,o,function(){return e.next(n)},t)},function(){return rb.executeSchedule(e,o,function(){return e.complete()},t)},function(n){return rb.executeSchedule(e,o,function(){return e.error(n)},t)}))})}Dd.observeOn=S$});var bc=O(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.subscribeOn=void 0;var O$=ee();function k$(o,t){return t===void 0&&(t=0),O$.operate(function(r,e){e.add(o.schedule(function(){return r.subscribe(e)},t))})}Ld.subscribeOn=k$});var JO=O(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});qd.scheduleObservable=void 0;var P$=ve(),A$=yc(),I$=bc();function x$(o,t){return P$.innerFrom(o).pipe(I$.subscribeOn(t),A$.observeOn(t))}qd.scheduleObservable=x$});var GO=O(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.schedulePromise=void 0;var R$=ve(),M$=yc(),C$=bc();function j$(o,t){return R$.innerFrom(o).pipe(C$.subscribeOn(t),M$.observeOn(t))}Fd.schedulePromise=j$});var XO=O(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.scheduleArray=void 0;var N$=Fe();function D$(o,t){return new N$.Observable(function(r){var e=0;return t.schedule(function(){e===o.length?r.complete():(r.next(o[e++]),r.closed||this.schedule())})})}Wd.scheduleArray=D$});var nb=O(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.scheduleIterable=void 0;var L$=Fe(),q$=Zy(),F$=Ne(),ZO=Ln();function W$(o,t){return new L$.Observable(function(r){var e;return ZO.executeSchedule(r,t,function(){e=o[q$.iterator](),ZO.executeSchedule(r,t,function(){var n,i,s;try{n=e.next(),i=n.value,s=n.done}catch(c){r.error(c);return}s?r.complete():r.next(i)},0,!0)}),function(){return F$.isFunction(e?.return)&&e.return()}})}Ud.scheduleIterable=W$});var ob=O($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.scheduleAsyncIterable=void 0;var U$=Fe(),QO=Ln();function $$(o,t){if(!o)throw new Error("Iterable cannot be null");return new U$.Observable(function(r){QO.executeSchedule(r,t,function(){var e=o[Symbol.asyncIterator]();QO.executeSchedule(r,t,function(){e.next().then(function(n){n.done?r.complete():r.next(n.value)})},0,!0)})})}$d.scheduleAsyncIterable=$$});var ek=O(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});Bd.scheduleReadableStreamLike=void 0;var B$=ob(),H$=jd();function V$(o,t){return B$.scheduleAsyncIterable(H$.readableStreamLikeToAsyncGenerator(o),t)}Bd.scheduleReadableStreamLike=V$});var ib=O(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.scheduled=void 0;var z$=JO(),Y$=GO(),K$=XO(),J$=nb(),G$=ob(),X$=Jy(),Z$=Ky(),Q$=Ad(),e4=Qy(),t4=Gy(),r4=Xy(),n4=jd(),o4=ek();function i4(o,t){if(o!=null){if(X$.isInteropObservable(o))return z$.scheduleObservable(o,t);if(Q$.isArrayLike(o))return K$.scheduleArray(o,t);if(Z$.isPromise(o))return Y$.schedulePromise(o,t);if(t4.isAsyncIterable(o))return G$.scheduleAsyncIterable(o,t);if(e4.isIterable(o))return J$.scheduleIterable(o,t);if(n4.isReadableStreamLike(o))return o4.scheduleReadableStreamLike(o,t)}throw r4.createInvalidObservableTypeError(o)}Hd.scheduled=i4});var qn=O(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.from=void 0;var s4=ib(),a4=ve();function c4(o,t){return t?s4.scheduled(o,t):a4.innerFrom(o)}Vd.from=c4});var Yd=O(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.of=void 0;var u4=$t(),l4=qn();function d4(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=u4.popScheduler(o);return l4.from(o,r)}zd.of=d4});var sb=O(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.throwError=void 0;var f4=Fe(),p4=Ne();function h4(o,t){var r=p4.isFunction(o)?o:function(){return o},e=function(n){return n.error(r())};return new f4.Observable(t?function(n){return t.schedule(e,0,n)}:e)}Kd.throwError=h4});var Jd=O(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.observeNotification=Fn.Notification=Fn.NotificationKind=void 0;var _4=qr(),m4=Yd(),v4=sb(),y4=Ne(),b4;(function(o){o.NEXT="N",o.ERROR="E",o.COMPLETE="C"})(b4=Fn.NotificationKind||(Fn.NotificationKind={}));var g4=function(){function o(t,r,e){this.kind=t,this.value=r,this.error=e,this.hasValue=t==="N"}return o.prototype.observe=function(t){return tk(this,t)},o.prototype.do=function(t,r,e){var n=this,i=n.kind,s=n.value,c=n.error;return i==="N"?t?.(s):i==="E"?r?.(c):e?.()},o.prototype.accept=function(t,r,e){var n;return y4.isFunction((n=t)===null||n===void 0?void 0:n.next)?this.observe(t):this.do(t,r,e)},o.prototype.toObservable=function(){var t=this,r=t.kind,e=t.value,n=t.error,i=r==="N"?m4.of(e):r==="E"?v4.throwError(function(){return n}):r==="C"?_4.EMPTY:0;if(!i)throw new TypeError("Unexpected notification kind "+r);return i},o.createNext=function(t){return new o("N",t)},o.createError=function(t){return new o("E",void 0,t)},o.createComplete=function(){return o.completeNotification},o.completeNotification=new o("C"),o}();Fn.Notification=g4;function tk(o,t){var r,e,n,i=o,s=i.kind,c=i.value,u=i.error;if(typeof s!="string")throw new TypeError('Invalid notification, missing "kind"');s==="N"?(r=t.next)===null||r===void 0||r.call(t,c):s==="E"?(e=t.error)===null||e===void 0||e.call(t,u):(n=t.complete)===null||n===void 0||n.call(t)}Fn.observeNotification=tk});var nk=O(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.isObservable=void 0;var w4=Fe(),rk=Ne();function E4(o){return!!o&&(o instanceof w4.Observable||rk.isFunction(o.lift)&&rk.isFunction(o.subscribe))}Gd.isObservable=E4});var bo=O(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.EmptyError=void 0;var T4=_o();Xd.EmptyError=T4.createErrorClass(function(o){return function(){o(this),this.name="EmptyError",this.message="no elements in sequence"}})});var ok=O(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.lastValueFrom=void 0;var S4=bo();function O4(o,t){var r=typeof t=="object";return new Promise(function(e,n){var i=!1,s;o.subscribe({next:function(c){s=c,i=!0},error:n,complete:function(){i?e(s):r?e(t.defaultValue):n(new S4.EmptyError)}})})}Zd.lastValueFrom=O4});var ik=O(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.firstValueFrom=void 0;var k4=bo(),P4=As();function A4(o,t){var r=typeof t=="object";return new Promise(function(e,n){var i=new P4.SafeSubscriber({next:function(s){e(s),i.unsubscribe()},error:n,complete:function(){r?e(t.defaultValue):n(new k4.EmptyError)}});o.subscribe(i)})}Qd.firstValueFrom=A4});var ab=O(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});ef.ArgumentOutOfRangeError=void 0;var I4=_o();ef.ArgumentOutOfRangeError=I4.createErrorClass(function(o){return function(){o(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})});var cb=O(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});tf.NotFoundError=void 0;var x4=_o();tf.NotFoundError=x4.createErrorClass(function(o){return function(r){o(this),this.name="NotFoundError",this.message=r}})});var ub=O(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});rf.SequenceError=void 0;var R4=_o();rf.SequenceError=R4.createErrorClass(function(o){return function(r){o(this),this.name="SequenceError",this.message=r}})});var of=O(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});nf.isValidDate=void 0;function M4(o){return o instanceof Date&&!isNaN(o)}nf.isValidDate=M4});var sf=O(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.timeout=Ri.TimeoutError=void 0;var C4=Ut(),j4=of(),N4=ee(),D4=ve(),L4=_o(),q4=ie(),F4=Ln();Ri.TimeoutError=L4.createErrorClass(function(o){return function(r){r===void 0&&(r=null),o(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r}});function W4(o,t){var r=j4.isValidDate(o)?{first:o}:typeof o=="number"?{each:o}:o,e=r.first,n=r.each,i=r.with,s=i===void 0?U4:i,c=r.scheduler,u=c===void 0?t??C4.asyncScheduler:c,a=r.meta,l=a===void 0?null:a;if(e==null&&n==null)throw new TypeError("No timeout provided.");return N4.operate(function(d,f){var h,_,m=null,v=0,b=function(g){_=F4.executeSchedule(f,u,function(){try{h.unsubscribe(),D4.innerFrom(s({meta:l,lastValue:m,seen:v})).subscribe(f)}catch(w){f.error(w)}},g)};h=d.subscribe(q4.createOperatorSubscriber(f,function(g){_?.unsubscribe(),v++,f.next(m=g),n>0&&b(n)},void 0,void 0,function(){_?.closed||_?.unsubscribe(),m=null})),!v&&b(e!=null?typeof e=="number"?e:+e-u.now():n)})}Ri.timeout=W4;function U4(o){throw new Ri.TimeoutError(o)}});var go=O(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.map=void 0;var $4=ee(),B4=ie();function H4(o,t){return $4.operate(function(r,e){var n=0;r.subscribe(B4.createOperatorSubscriber(e,function(i){e.next(o.call(t,i,n++))}))})}af.map=H4});var Eo=O(wo=>{"use strict";var V4=wo&&wo.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},z4=wo&&wo.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(wo,"__esModule",{value:!0});wo.mapOneOrManyArgs=void 0;var Y4=go(),K4=Array.isArray;function J4(o,t){return K4(t)?o.apply(void 0,z4([],V4(t))):o(t)}function G4(o){return Y4.map(function(t){return J4(o,t)})}wo.mapOneOrManyArgs=G4});var db=O(To=>{"use strict";var X4=To&&To.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},sk=To&&To.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(To,"__esModule",{value:!0});To.bindCallbackInternals=void 0;var Z4=vc(),Q4=Fe(),eB=bc(),tB=Eo(),rB=yc(),nB=Td();function lb(o,t,r,e){if(r)if(Z4.isScheduler(r))e=r;else return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return lb(o,t,e).apply(this,n).pipe(tB.mapOneOrManyArgs(r))};return e?function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return lb(o,t).apply(this,n).pipe(eB.subscribeOn(e),rB.observeOn(e))}:function(){for(var n=this,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var c=new nB.AsyncSubject,u=!0;return new Q4.Observable(function(a){var l=c.subscribe(a);if(u){u=!1;var d=!1,f=!1;t.apply(n,sk(sk([],X4(i)),[function(){for(var h=[],_=0;_<arguments.length;_++)h[_]=arguments[_];if(o){var m=h.shift();if(m!=null){c.error(m);return}}c.next(1<h.length?h:h[0]),f=!0,d&&c.complete()}])),f&&c.complete(),d=!0}return l})}}To.bindCallbackInternals=lb});var ak=O(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});cf.bindCallback=void 0;var oB=db();function iB(o,t,r){return oB.bindCallbackInternals(!1,o,t,r)}cf.bindCallback=iB});var ck=O(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});uf.bindNodeCallback=void 0;var sB=db();function aB(o,t,r){return sB.bindCallbackInternals(!0,o,t,r)}uf.bindNodeCallback=aB});var fb=O(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});lf.argsArgArrayOrObject=void 0;var cB=Array.isArray,uB=Object.getPrototypeOf,lB=Object.prototype,dB=Object.keys;function fB(o){if(o.length===1){var t=o[0];if(cB(t))return{args:t,keys:null};if(pB(t)){var r=dB(t);return{args:r.map(function(e){return t[e]}),keys:r}}}return{args:o,keys:null}}lf.argsArgArrayOrObject=fB;function pB(o){return o&&typeof o=="object"&&uB(o)===lB}});var pb=O(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.createObject=void 0;function hB(o,t){return o.reduce(function(r,e,n){return r[e]=t[n],r},{})}df.createObject=hB});var ff=O(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.combineLatestInit=Gs.combineLatest=void 0;var _B=Fe(),mB=fb(),dk=qn(),fk=bt(),vB=Eo(),uk=$t(),yB=pb(),bB=ie(),gB=Ln();function wB(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=uk.popScheduler(o),e=uk.popResultSelector(o),n=mB.argsArgArrayOrObject(o),i=n.args,s=n.keys;if(i.length===0)return dk.from([],r);var c=new _B.Observable(pk(i,r,s?function(u){return yB.createObject(s,u)}:fk.identity));return e?c.pipe(vB.mapOneOrManyArgs(e)):c}Gs.combineLatest=wB;function pk(o,t,r){return r===void 0&&(r=fk.identity),function(e){lk(t,function(){for(var n=o.length,i=new Array(n),s=n,c=n,u=function(l){lk(t,function(){var d=dk.from(o[l],t),f=!1;d.subscribe(bB.createOperatorSubscriber(e,function(h){i[l]=h,f||(f=!0,c--),c||e.next(r(i.slice()))},function(){--s||e.complete()}))},e)},a=0;a<n;a++)u(a)},e)}}Gs.combineLatestInit=pk;function lk(o,t,r){o?gB.executeSchedule(r,o,t):t()}});var hf=O(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});pf.mergeInternals=void 0;var EB=ve(),TB=Ln(),hk=ie();function SB(o,t,r,e,n,i,s,c){var u=[],a=0,l=0,d=!1,f=function(){d&&!u.length&&!a&&t.complete()},h=function(m){return a<e?_(m):u.push(m)},_=function(m){i&&t.next(m),a++;var v=!1;EB.innerFrom(r(m,l++)).subscribe(hk.createOperatorSubscriber(t,function(b){n?.(b),i?h(b):t.next(b)},function(){v=!0},void 0,function(){if(v)try{a--;for(var b=function(){var g=u.shift();s?TB.executeSchedule(t,s,function(){return _(g)}):_(g)};u.length&&a<e;)b();f()}catch(g){t.error(g)}}))};return o.subscribe(hk.createOperatorSubscriber(t,h,function(){d=!0,f()})),function(){c?.()}}pf.mergeInternals=SB});var Wn=O(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.mergeMap=void 0;var OB=go(),kB=ve(),PB=ee(),AB=hf(),IB=Ne();function _k(o,t,r){return r===void 0&&(r=1/0),IB.isFunction(t)?_k(function(e,n){return OB.map(function(i,s){return t(e,i,n,s)})(kB.innerFrom(o(e,n)))},r):(typeof t=="number"&&(r=t),PB.operate(function(e,n){return AB.mergeInternals(e,n,o,r)}))}_f.mergeMap=_k});var gc=O(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});mf.mergeAll=void 0;var xB=Wn(),RB=bt();function MB(o){return o===void 0&&(o=1/0),xB.mergeMap(RB.identity,o)}mf.mergeAll=MB});var yf=O(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.concatAll=void 0;var CB=gc();function jB(){return CB.mergeAll(1)}vf.concatAll=jB});var wc=O(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});bf.concat=void 0;var NB=yf(),DB=$t(),LB=qn();function qB(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return NB.concatAll()(LB.from(o,DB.popScheduler(o)))}bf.concat=qB});var Ec=O(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.defer=void 0;var FB=Fe(),WB=ve();function UB(o){return new FB.Observable(function(t){WB.innerFrom(o()).subscribe(t)})}gf.defer=UB});var mk=O(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.connectable=void 0;var $B=gt(),BB=Fe(),HB=Ec(),VB={connector:function(){return new $B.Subject},resetOnDisconnect:!0};function zB(o,t){t===void 0&&(t=VB);var r=null,e=t.connector,n=t.resetOnDisconnect,i=n===void 0?!0:n,s=e(),c=new BB.Observable(function(u){return s.subscribe(u)});return c.connect=function(){return(!r||r.closed)&&(r=HB.defer(function(){return o}).subscribe(s),i&&r.add(function(){return s=e()})),r},c}wf.connectable=zB});var vk=O(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});Ef.forkJoin=void 0;var YB=Fe(),KB=fb(),JB=ve(),GB=$t(),XB=ie(),ZB=Eo(),QB=pb();function e6(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=GB.popResultSelector(o),e=KB.argsArgArrayOrObject(o),n=e.args,i=e.keys,s=new YB.Observable(function(c){var u=n.length;if(!u){c.complete();return}for(var a=new Array(u),l=u,d=u,f=function(_){var m=!1;JB.innerFrom(n[_]).subscribe(XB.createOperatorSubscriber(c,function(v){m||(m=!0,d--),a[_]=v},function(){return l--},void 0,function(){(!l||!m)&&(d||c.next(i?QB.createObject(i,a):a),c.complete())}))},h=0;h<u;h++)f(h)});return r?s.pipe(ZB.mapOneOrManyArgs(r)):s}Ef.forkJoin=e6});var bk=O(Xs=>{"use strict";var t6=Xs&&Xs.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i};Object.defineProperty(Xs,"__esModule",{value:!0});Xs.fromEvent=void 0;var r6=ve(),n6=Fe(),o6=Wn(),i6=Ad(),Mi=Ne(),s6=Eo(),a6=["addListener","removeListener"],c6=["addEventListener","removeEventListener"],u6=["on","off"];function hb(o,t,r,e){if(Mi.isFunction(r)&&(e=r,r=void 0),e)return hb(o,t,r).pipe(s6.mapOneOrManyArgs(e));var n=t6(f6(o)?c6.map(function(c){return function(u){return o[c](t,u,r)}}):l6(o)?a6.map(yk(o,t)):d6(o)?u6.map(yk(o,t)):[],2),i=n[0],s=n[1];if(!i&&i6.isArrayLike(o))return o6.mergeMap(function(c){return hb(c,t,r)})(r6.innerFrom(o));if(!i)throw new TypeError("Invalid event target");return new n6.Observable(function(c){var u=function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return c.next(1<a.length?a:a[0])};return i(u),function(){return s(u)}})}Xs.fromEvent=hb;function yk(o,t){return function(r){return function(e){return o[r](t,e)}}}function l6(o){return Mi.isFunction(o.addListener)&&Mi.isFunction(o.removeListener)}function d6(o){return Mi.isFunction(o.on)&&Mi.isFunction(o.off)}function f6(o){return Mi.isFunction(o.addEventListener)&&Mi.isFunction(o.removeEventListener)}});var wk=O(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.fromEventPattern=void 0;var p6=Fe(),h6=Ne(),_6=Eo();function gk(o,t,r){return r?gk(o,t).pipe(_6.mapOneOrManyArgs(r)):new p6.Observable(function(e){var n=function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return e.next(s.length===1?s[0]:s)},i=o(n);return h6.isFunction(t)?function(){return t(n,i)}:void 0})}Tf.fromEventPattern=gk});var Tk=O(Zs=>{"use strict";var m6=Zs&&Zs.__generator||function(o,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,n,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(a){return function(l){return u([a,l])}}function u(a){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,n&&(i=a[0]&2?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,n=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1],i=a;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(a);break}i[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(o,r)}catch(l){a=[6,l],n=0}finally{e=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(Zs,"__esModule",{value:!0});Zs.generate=void 0;var Ek=bt(),v6=vc(),y6=Ec(),b6=nb();function g6(o,t,r,e,n){var i,s,c,u;arguments.length===1?(i=o,u=i.initialState,t=i.condition,r=i.iterate,s=i.resultSelector,c=s===void 0?Ek.identity:s,n=i.scheduler):(u=o,!e||v6.isScheduler(e)?(c=Ek.identity,n=e):c=e);function a(){var l;return m6(this,function(d){switch(d.label){case 0:l=u,d.label=1;case 1:return!t||t(l)?[4,c(l)]:[3,4];case 2:d.sent(),d.label=3;case 3:return l=r(l),[3,1];case 4:return[2]}})}return y6.defer(n?function(){return b6.scheduleIterable(a(),n)}:a)}Zs.generate=g6});var Sk=O(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});Sf.iif=void 0;var w6=Ec();function E6(o,t,r){return w6.defer(function(){return o()?t:r})}Sf.iif=E6});var So=O(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.timer=void 0;var T6=Fe(),S6=Ut(),O6=vc(),k6=of();function P6(o,t,r){o===void 0&&(o=0),r===void 0&&(r=S6.async);var e=-1;return t!=null&&(O6.isScheduler(t)?r=t:e=t),new T6.Observable(function(n){var i=k6.isValidDate(o)?+o-r.now():o;i<0&&(i=0);var s=0;return r.schedule(function(){n.closed||(n.next(s++),0<=e?this.schedule(void 0,e):n.complete())},i)})}Of.timer=P6});var _b=O(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.interval=void 0;var A6=Ut(),I6=So();function x6(o,t){return o===void 0&&(o=0),t===void 0&&(t=A6.asyncScheduler),o<0&&(o=0),I6.timer(o,o,t)}kf.interval=x6});var kk=O(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.merge=void 0;var R6=gc(),M6=ve(),C6=qr(),Ok=$t(),j6=qn();function N6(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=Ok.popScheduler(o),e=Ok.popNumber(o,1/0),n=o;return n.length?n.length===1?M6.innerFrom(n[0]):R6.mergeAll(e)(j6.from(n,r)):C6.EMPTY}Pf.merge=N6});var mb=O(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.never=Ci.NEVER=void 0;var D6=Fe(),L6=yt();Ci.NEVER=new D6.Observable(L6.noop);function q6(){return Ci.NEVER}Ci.never=q6});var ji=O(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});Af.argsOrArgArray=void 0;var F6=Array.isArray;function W6(o){return o.length===1&&F6(o[0])?o[0]:o}Af.argsOrArgArray=W6});var vb=O(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.onErrorResumeNext=void 0;var U6=Fe(),$6=ji(),B6=ie(),Pk=yt(),H6=ve();function V6(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=$6.argsOrArgArray(o);return new U6.Observable(function(e){var n=0,i=function(){if(n<r.length){var s=void 0;try{s=H6.innerFrom(r[n++])}catch{i();return}var c=new B6.OperatorSubscriber(e,void 0,Pk.noop,Pk.noop);s.subscribe(c),c.add(i)}else e.complete()};i()})}If.onErrorResumeNext=V6});var Ak=O(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.pairs=void 0;var z6=qn();function Y6(o,t){return z6.from(Object.entries(o),t)}xf.pairs=Y6});var Ik=O(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.not=void 0;function K6(o,t){return function(r,e){return!o.call(t,r,e)}}Rf.not=K6});var Ni=O(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});Mf.filter=void 0;var J6=ee(),G6=ie();function X6(o,t){return J6.operate(function(r,e){var n=0;r.subscribe(G6.createOperatorSubscriber(e,function(i){return o.call(t,i,n++)&&e.next(i)}))})}Mf.filter=X6});var Mk=O(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.partition=void 0;var Z6=Ik(),xk=Ni(),Rk=ve();function Q6(o,t,r){return[xk.filter(t,r)(Rk.innerFrom(o)),xk.filter(Z6.not(t,r))(Rk.innerFrom(o))]}Cf.partition=Q6});var yb=O(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.raceInit=Qs.race=void 0;var eH=Fe(),Ck=ve(),tH=ji(),rH=ie();function nH(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return o=tH.argsOrArgArray(o),o.length===1?Ck.innerFrom(o[0]):new eH.Observable(jk(o))}Qs.race=nH;function jk(o){return function(t){for(var r=[],e=function(i){r.push(Ck.innerFrom(o[i]).subscribe(rH.createOperatorSubscriber(t,function(s){if(r){for(var c=0;c<r.length;c++)c!==i&&r[c].unsubscribe();r=null}t.next(s)})))},n=0;r&&!t.closed&&n<o.length;n++)e(n)}}Qs.raceInit=jk});var Nk=O(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.range=void 0;var oH=Fe(),iH=qr();function sH(o,t,r){if(t==null&&(t=o,o=0),t<=0)return iH.EMPTY;var e=t+o;return new oH.Observable(r?function(n){var i=o;return r.schedule(function(){i<e?(n.next(i++),this.schedule()):n.complete()})}:function(n){for(var i=o;i<e&&!n.closed;)n.next(i++);n.complete()})}jf.range=sH});var Dk=O(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.using=void 0;var aH=Fe(),cH=ve(),uH=qr();function lH(o,t){return new aH.Observable(function(r){var e=o(),n=t(e),i=n?cH.innerFrom(n):uH.EMPTY;return i.subscribe(r),function(){e&&e.unsubscribe()}})}Nf.using=lH});var Df=O(Oo=>{"use strict";var dH=Oo&&Oo.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},fH=Oo&&Oo.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(Oo,"__esModule",{value:!0});Oo.zip=void 0;var pH=Fe(),hH=ve(),_H=ji(),mH=qr(),vH=ie(),yH=$t();function bH(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=yH.popResultSelector(o),e=_H.argsOrArgArray(o);return e.length?new pH.Observable(function(n){var i=e.map(function(){return[]}),s=e.map(function(){return!1});n.add(function(){i=s=null});for(var c=function(a){hH.innerFrom(e[a]).subscribe(vH.createOperatorSubscriber(n,function(l){if(i[a].push(l),i.every(function(f){return f.length})){var d=i.map(function(f){return f.shift()});n.next(r?r.apply(void 0,fH([],dH(d))):d),i.some(function(f,h){return!f.length&&s[h]})&&n.complete()}},function(){s[a]=!0,!i[a].length&&n.complete()}))},u=0;!n.closed&&u<e.length;u++)c(u);return function(){i=s=null}}):mH.EMPTY}Oo.zip=bH});var qk=O(Lk=>{"use strict";Object.defineProperty(Lk,"__esModule",{value:!0})});var bb=O(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.audit=void 0;var gH=ee(),wH=ve(),Fk=ie();function EH(o){return gH.operate(function(t,r){var e=!1,n=null,i=null,s=!1,c=function(){if(i?.unsubscribe(),i=null,e){e=!1;var a=n;n=null,r.next(a)}s&&r.complete()},u=function(){i=null,s&&r.complete()};t.subscribe(Fk.createOperatorSubscriber(r,function(a){e=!0,n=a,i||wH.innerFrom(o(a)).subscribe(i=Fk.createOperatorSubscriber(r,c,u))},function(){s=!0,(!e||!i||i.closed)&&r.complete()}))})}Lf.audit=EH});var Wk=O(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.auditTime=void 0;var TH=Ut(),SH=bb(),OH=So();function kH(o,t){return t===void 0&&(t=TH.asyncScheduler),SH.audit(function(){return OH.timer(o,t)})}qf.auditTime=kH});var $k=O(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.buffer=void 0;var PH=ee(),AH=yt(),Uk=ie(),IH=ve();function xH(o){return PH.operate(function(t,r){var e=[];return t.subscribe(Uk.createOperatorSubscriber(r,function(n){return e.push(n)},function(){r.next(e),r.complete()})),IH.innerFrom(o).subscribe(Uk.createOperatorSubscriber(r,function(){var n=e;e=[],r.next(n)},AH.noop)),function(){e=null}})}Ff.buffer=xH});var Bk=O(ea=>{"use strict";var gb=ea&&ea.__values||function(o){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&o[t],e=0;if(r)return r.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&e>=o.length&&(o=void 0),{value:o&&o[e++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ea,"__esModule",{value:!0});ea.bufferCount=void 0;var RH=ee(),MH=ie(),CH=Dn();function jH(o,t){return t===void 0&&(t=null),t=t??o,RH.operate(function(r,e){var n=[],i=0;r.subscribe(MH.createOperatorSubscriber(e,function(s){var c,u,a,l,d=null;i++%t===0&&n.push([]);try{for(var f=gb(n),h=f.next();!h.done;h=f.next()){var _=h.value;_.push(s),o<=_.length&&(d=d??[],d.push(_))}}catch(b){c={error:b}}finally{try{h&&!h.done&&(u=f.return)&&u.call(f)}finally{if(c)throw c.error}}if(d)try{for(var m=gb(d),v=m.next();!v.done;v=m.next()){var _=v.value;CH.arrRemove(n,_),e.next(_)}}catch(b){a={error:b}}finally{try{v&&!v.done&&(l=m.return)&&l.call(m)}finally{if(a)throw a.error}}},function(){var s,c;try{for(var u=gb(n),a=u.next();!a.done;a=u.next()){var l=a.value;e.next(l)}}catch(d){s={error:d}}finally{try{a&&!a.done&&(c=u.return)&&c.call(u)}finally{if(s)throw s.error}}e.complete()},void 0,function(){n=null}))})}ea.bufferCount=jH});var Vk=O(ta=>{"use strict";var NH=ta&&ta.__values||function(o){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&o[t],e=0;if(r)return r.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&e>=o.length&&(o=void 0),{value:o&&o[e++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ta,"__esModule",{value:!0});ta.bufferTime=void 0;var DH=er(),LH=ee(),qH=ie(),FH=Dn(),WH=Ut(),UH=$t(),Hk=Ln();function $H(o){for(var t,r,e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=(t=UH.popScheduler(e))!==null&&t!==void 0?t:WH.asyncScheduler,s=(r=e[0])!==null&&r!==void 0?r:null,c=e[1]||1/0;return LH.operate(function(u,a){var l=[],d=!1,f=function(m){var v=m.buffer,b=m.subs;b.unsubscribe(),FH.arrRemove(l,m),a.next(v),d&&h()},h=function(){if(l){var m=new DH.Subscription;a.add(m);var v=[],b={buffer:v,subs:m};l.push(b),Hk.executeSchedule(m,i,function(){return f(b)},o)}};s!==null&&s>=0?Hk.executeSchedule(a,i,h,s,!0):d=!0,h();var _=qH.createOperatorSubscriber(a,function(m){var v,b,g=l.slice();try{for(var w=NH(g),T=w.next();!T.done;T=w.next()){var P=T.value,k=P.buffer;k.push(m),c<=k.length&&f(P)}}catch(x){v={error:x}}finally{try{T&&!T.done&&(b=w.return)&&b.call(w)}finally{if(v)throw v.error}}},function(){for(;l?.length;)a.next(l.shift().buffer);_?.unsubscribe(),a.complete(),a.unsubscribe()},void 0,function(){return l=null});u.subscribe(_)})}ta.bufferTime=$H});var Kk=O(ra=>{"use strict";var BH=ra&&ra.__values||function(o){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&o[t],e=0;if(r)return r.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&e>=o.length&&(o=void 0),{value:o&&o[e++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ra,"__esModule",{value:!0});ra.bufferToggle=void 0;var HH=er(),VH=ee(),zk=ve(),wb=ie(),Yk=yt(),zH=Dn();function YH(o,t){return VH.operate(function(r,e){var n=[];zk.innerFrom(o).subscribe(wb.createOperatorSubscriber(e,function(i){var s=[];n.push(s);var c=new HH.Subscription,u=function(){zH.arrRemove(n,s),e.next(s),c.unsubscribe()};c.add(zk.innerFrom(t(i)).subscribe(wb.createOperatorSubscriber(e,u,Yk.noop)))},Yk.noop)),r.subscribe(wb.createOperatorSubscriber(e,function(i){var s,c;try{for(var u=BH(n),a=u.next();!a.done;a=u.next()){var l=a.value;l.push(i)}}catch(d){s={error:d}}finally{try{a&&!a.done&&(c=u.return)&&c.call(u)}finally{if(s)throw s.error}}},function(){for(;n.length>0;)e.next(n.shift());e.complete()}))})}ra.bufferToggle=YH});var Gk=O(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});Wf.bufferWhen=void 0;var KH=ee(),JH=yt(),Jk=ie(),GH=ve();function XH(o){return KH.operate(function(t,r){var e=null,n=null,i=function(){n?.unsubscribe();var s=e;e=[],s&&r.next(s),GH.innerFrom(o()).subscribe(n=Jk.createOperatorSubscriber(r,i,JH.noop))};i(),t.subscribe(Jk.createOperatorSubscriber(r,function(s){return e?.push(s)},function(){e&&r.next(e),r.complete()},void 0,function(){return e=n=null}))})}Wf.bufferWhen=XH});var Zk=O(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.catchError=void 0;var ZH=ve(),QH=ie(),e2=ee();function Xk(o){return e2.operate(function(t,r){var e=null,n=!1,i;e=t.subscribe(QH.createOperatorSubscriber(r,void 0,void 0,function(s){i=ZH.innerFrom(o(s,Xk(o)(t))),e?(e.unsubscribe(),e=null,i.subscribe(r)):n=!0})),n&&(e.unsubscribe(),e=null,i.subscribe(r))})}Uf.catchError=Xk});var Eb=O($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.scanInternals=void 0;var t2=ie();function r2(o,t,r,e,n){return function(i,s){var c=r,u=t,a=0;i.subscribe(t2.createOperatorSubscriber(s,function(l){var d=a++;u=c?o(u,l,d):(c=!0,l),e&&s.next(u)},n&&function(){c&&s.next(u),s.complete()}))}}$f.scanInternals=r2});var na=O(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});Bf.reduce=void 0;var n2=Eb(),o2=ee();function i2(o,t){return o2.operate(n2.scanInternals(o,t,arguments.length>=2,!1,!0))}Bf.reduce=i2});var Tb=O(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});Hf.toArray=void 0;var s2=na(),a2=ee(),c2=function(o,t){return o.push(t),o};function u2(){return a2.operate(function(o,t){s2.reduce(c2,[])(o).subscribe(t)})}Hf.toArray=u2});var Sb=O(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.joinAllInternals=void 0;var l2=bt(),d2=Eo(),f2=pc(),p2=Wn(),h2=Tb();function _2(o,t){return f2.pipe(h2.toArray(),p2.mergeMap(function(r){return o(r)}),t?d2.mapOneOrManyArgs(t):l2.identity)}Vf.joinAllInternals=_2});var Ob=O(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});zf.combineLatestAll=void 0;var m2=ff(),v2=Sb();function y2(o){return v2.joinAllInternals(m2.combineLatest,o)}zf.combineLatestAll=y2});var Qk=O(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});Yf.combineAll=void 0;var b2=Ob();Yf.combineAll=b2.combineLatestAll});var nP=O(ko=>{"use strict";var eP=ko&&ko.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},tP=ko&&ko.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(ko,"__esModule",{value:!0});ko.combineLatest=void 0;var g2=ff(),w2=ee(),E2=ji(),T2=Eo(),S2=pc(),O2=$t();function rP(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=O2.popResultSelector(o);return r?S2.pipe(rP.apply(void 0,tP([],eP(o))),T2.mapOneOrManyArgs(r)):w2.operate(function(e,n){g2.combineLatestInit(tP([e],eP(E2.argsOrArgArray(o))))(n)})}ko.combineLatest=rP});var oP=O(Po=>{"use strict";var k2=Po&&Po.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},P2=Po&&Po.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(Po,"__esModule",{value:!0});Po.combineLatestWith=void 0;var A2=nP();function I2(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return A2.combineLatest.apply(void 0,P2([],k2(o)))}Po.combineLatestWith=I2});var kb=O(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});Kf.concatMap=void 0;var iP=Wn(),x2=Ne();function R2(o,t){return x2.isFunction(t)?iP.mergeMap(o,t,1):iP.mergeMap(o,1)}Kf.concatMap=R2});var aP=O(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});Jf.concatMapTo=void 0;var sP=kb(),M2=Ne();function C2(o,t){return M2.isFunction(t)?sP.concatMap(function(){return o},t):sP.concatMap(function(){return o})}Jf.concatMapTo=C2});var cP=O(Ao=>{"use strict";var j2=Ao&&Ao.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},N2=Ao&&Ao.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(Ao,"__esModule",{value:!0});Ao.concat=void 0;var D2=ee(),L2=yf(),q2=$t(),F2=qn();function W2(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=q2.popScheduler(o);return D2.operate(function(e,n){L2.concatAll()(F2.from(N2([e],j2(o)),r)).subscribe(n)})}Ao.concat=W2});var uP=O(Io=>{"use strict";var U2=Io&&Io.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},$2=Io&&Io.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(Io,"__esModule",{value:!0});Io.concatWith=void 0;var B2=cP();function H2(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return B2.concat.apply(void 0,$2([],U2(o)))}Io.concatWith=H2});var lP=O(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.fromSubscribable=void 0;var V2=Fe();function z2(o){return new V2.Observable(function(t){return o.subscribe(t)})}Gf.fromSubscribable=z2});var Zf=O(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.connect=void 0;var Y2=gt(),K2=ve(),J2=ee(),G2=lP(),X2={connector:function(){return new Y2.Subject}};function Z2(o,t){t===void 0&&(t=X2);var r=t.connector;return J2.operate(function(e,n){var i=r();K2.innerFrom(o(G2.fromSubscribable(i))).subscribe(n),n.add(e.subscribe(i))})}Xf.connect=Z2});var dP=O(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.count=void 0;var Q2=na();function e8(o){return Q2.reduce(function(t,r,e){return!o||o(r,e)?t+1:t},0)}Qf.count=e8});var pP=O(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.debounce=void 0;var t8=ee(),r8=yt(),fP=ie(),n8=ve();function o8(o){return t8.operate(function(t,r){var e=!1,n=null,i=null,s=function(){if(i?.unsubscribe(),i=null,e){e=!1;var c=n;n=null,r.next(c)}};t.subscribe(fP.createOperatorSubscriber(r,function(c){i?.unsubscribe(),e=!0,n=c,i=fP.createOperatorSubscriber(r,s,r8.noop),n8.innerFrom(o(c)).subscribe(i)},function(){s(),r.complete()},void 0,function(){n=i=null}))})}ep.debounce=o8});var hP=O(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.debounceTime=void 0;var i8=Ut(),s8=ee(),a8=ie();function c8(o,t){return t===void 0&&(t=i8.asyncScheduler),s8.operate(function(r,e){var n=null,i=null,s=null,c=function(){if(n){n.unsubscribe(),n=null;var a=i;i=null,e.next(a)}};function u(){var a=s+o,l=t.now();if(l<a){n=this.schedule(void 0,a-l),e.add(n);return}c()}r.subscribe(a8.createOperatorSubscriber(e,function(a){i=a,s=t.now(),n||(n=t.schedule(u,o),e.add(n))},function(){c(),e.complete()},void 0,function(){i=n=null}))})}tp.debounceTime=c8});var Tc=O(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.defaultIfEmpty=void 0;var u8=ee(),l8=ie();function d8(o){return u8.operate(function(t,r){var e=!1;t.subscribe(l8.createOperatorSubscriber(r,function(n){e=!0,r.next(n)},function(){e||r.next(o),r.complete()}))})}rp.defaultIfEmpty=d8});var Sc=O(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});np.take=void 0;var f8=qr(),p8=ee(),h8=ie();function _8(o){return o<=0?function(){return f8.EMPTY}:p8.operate(function(t,r){var e=0;t.subscribe(h8.createOperatorSubscriber(r,function(n){++e<=o&&(r.next(n),o<=e&&r.complete())}))})}np.take=_8});var Pb=O(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});op.ignoreElements=void 0;var m8=ee(),v8=ie(),y8=yt();function b8(){return m8.operate(function(o,t){o.subscribe(v8.createOperatorSubscriber(t,y8.noop))})}op.ignoreElements=b8});var Ab=O(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.mapTo=void 0;var g8=go();function w8(o){return g8.map(function(){return o})}ip.mapTo=w8});var Ib=O(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});sp.delayWhen=void 0;var E8=wc(),_P=Sc(),T8=Pb(),S8=Ab(),O8=Wn(),k8=ve();function mP(o,t){return t?function(r){return E8.concat(t.pipe(_P.take(1),T8.ignoreElements()),r.pipe(mP(o)))}:O8.mergeMap(function(r,e){return k8.innerFrom(o(r,e)).pipe(_P.take(1),S8.mapTo(r))})}sp.delayWhen=mP});var vP=O(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.delay=void 0;var P8=Ut(),A8=Ib(),I8=So();function x8(o,t){t===void 0&&(t=P8.asyncScheduler);var r=I8.timer(o,t);return A8.delayWhen(function(){return r})}ap.delay=x8});var yP=O(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.dematerialize=void 0;var R8=Jd(),M8=ee(),C8=ie();function j8(){return M8.operate(function(o,t){o.subscribe(C8.createOperatorSubscriber(t,function(r){return R8.observeNotification(r,t)}))})}cp.dematerialize=j8});var gP=O(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.distinct=void 0;var N8=ee(),bP=ie(),D8=yt(),L8=ve();function q8(o,t){return N8.operate(function(r,e){var n=new Set;r.subscribe(bP.createOperatorSubscriber(e,function(i){var s=o?o(i):i;n.has(s)||(n.add(s),e.next(i))})),t&&L8.innerFrom(t).subscribe(bP.createOperatorSubscriber(e,function(){return n.clear()},D8.noop))})}up.distinct=q8});var xb=O(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});lp.distinctUntilChanged=void 0;var F8=bt(),W8=ee(),U8=ie();function $8(o,t){return t===void 0&&(t=F8.identity),o=o??B8,W8.operate(function(r,e){var n,i=!0;r.subscribe(U8.createOperatorSubscriber(e,function(s){var c=t(s);(i||!o(n,c))&&(i=!1,n=c,e.next(s))}))})}lp.distinctUntilChanged=$8;function B8(o,t){return o===t}});var wP=O(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});dp.distinctUntilKeyChanged=void 0;var H8=xb();function V8(o,t){return H8.distinctUntilChanged(function(r,e){return t?t(r[o],e[o]):r[o]===e[o]})}dp.distinctUntilKeyChanged=V8});var Oc=O(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.throwIfEmpty=void 0;var z8=bo(),Y8=ee(),K8=ie();function J8(o){return o===void 0&&(o=G8),Y8.operate(function(t,r){var e=!1;t.subscribe(K8.createOperatorSubscriber(r,function(n){e=!0,r.next(n)},function(){return e?r.complete():r.error(o())}))})}fp.throwIfEmpty=J8;function G8(){return new z8.EmptyError}});var TP=O(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});pp.elementAt=void 0;var EP=ab(),X8=Ni(),Z8=Oc(),Q8=Tc(),eV=Sc();function tV(o,t){if(o<0)throw new EP.ArgumentOutOfRangeError;var r=arguments.length>=2;return function(e){return e.pipe(X8.filter(function(n,i){return i===o}),eV.take(1),r?Q8.defaultIfEmpty(t):Z8.throwIfEmpty(function(){return new EP.ArgumentOutOfRangeError}))}}pp.elementAt=tV});var SP=O(xo=>{"use strict";var rV=xo&&xo.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},nV=xo&&xo.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(xo,"__esModule",{value:!0});xo.endWith=void 0;var oV=wc(),iV=Yd();function sV(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return function(r){return oV.concat(r,iV.of.apply(void 0,nV([],rV(o))))}}xo.endWith=sV});var OP=O(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.every=void 0;var aV=ee(),cV=ie();function uV(o,t){return aV.operate(function(r,e){var n=0;r.subscribe(cV.createOperatorSubscriber(e,function(i){o.call(t,i,n++,r)||(e.next(!1),e.complete())},function(){e.next(!0),e.complete()}))})}hp.every=uV});var Rb=O(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.exhaustMap=void 0;var lV=go(),kP=ve(),dV=ee(),PP=ie();function AP(o,t){return t?function(r){return r.pipe(AP(function(e,n){return kP.innerFrom(o(e,n)).pipe(lV.map(function(i,s){return t(e,i,n,s)}))}))}:dV.operate(function(r,e){var n=0,i=null,s=!1;r.subscribe(PP.createOperatorSubscriber(e,function(c){i||(i=PP.createOperatorSubscriber(e,void 0,function(){i=null,s&&e.complete()}),kP.innerFrom(o(c,n++)).subscribe(i))},function(){s=!0,!i&&e.complete()}))})}_p.exhaustMap=AP});var Mb=O(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});mp.exhaustAll=void 0;var fV=Rb(),pV=bt();function hV(){return fV.exhaustMap(pV.identity)}mp.exhaustAll=hV});var IP=O(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.exhaust=void 0;var _V=Mb();vp.exhaust=_V.exhaustAll});var xP=O(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.expand=void 0;var mV=ee(),vV=hf();function yV(o,t,r){return t===void 0&&(t=1/0),t=(t||0)<1?1/0:t,mV.operate(function(e,n){return vV.mergeInternals(e,n,o,t,void 0,!0,r)})}yp.expand=yV});var RP=O(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});bp.finalize=void 0;var bV=ee();function gV(o){return bV.operate(function(t,r){try{t.subscribe(r)}finally{r.add(o)}})}bp.finalize=gV});var Cb=O(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.createFind=oa.find=void 0;var wV=ee(),EV=ie();function TV(o,t){return wV.operate(MP(o,t,"value"))}oa.find=TV;function MP(o,t,r){var e=r==="index";return function(n,i){var s=0;n.subscribe(EV.createOperatorSubscriber(i,function(c){var u=s++;o.call(t,c,u,n)&&(i.next(e?u:c),i.complete())},function(){i.next(e?-1:void 0),i.complete()}))}}oa.createFind=MP});var CP=O(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});gp.findIndex=void 0;var SV=ee(),OV=Cb();function kV(o,t){return SV.operate(OV.createFind(o,t,"index"))}gp.findIndex=kV});var jP=O(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});wp.first=void 0;var PV=bo(),AV=Ni(),IV=Sc(),xV=Tc(),RV=Oc(),MV=bt();function CV(o,t){var r=arguments.length>=2;return function(e){return e.pipe(o?AV.filter(function(n,i){return o(n,i,e)}):MV.identity,IV.take(1),r?xV.defaultIfEmpty(t):RV.throwIfEmpty(function(){return new PV.EmptyError}))}}wp.first=CV});var DP=O(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});Ep.groupBy=void 0;var jV=Fe(),NV=ve(),DV=gt(),LV=ee(),NP=ie();function qV(o,t,r,e){return LV.operate(function(n,i){var s;!t||typeof t=="function"?s=t:(r=t.duration,s=t.element,e=t.connector);var c=new Map,u=function(_){c.forEach(_),_(i)},a=function(_){return u(function(m){return m.error(_)})},l=0,d=!1,f=new NP.OperatorSubscriber(i,function(_){try{var m=o(_),v=c.get(m);if(!v){c.set(m,v=e?e():new DV.Subject);var b=h(m,v);if(i.next(b),r){var g=NP.createOperatorSubscriber(v,function(){v.complete(),g?.unsubscribe()},void 0,void 0,function(){return c.delete(m)});f.add(NV.innerFrom(r(b)).subscribe(g))}}v.next(s?s(_):_)}catch(w){a(w)}},function(){return u(function(_){return _.complete()})},a,function(){return c.clear()},function(){return d=!0,l===0});n.subscribe(f);function h(_,m){var v=new jV.Observable(function(b){l++;var g=m.subscribe(b);return function(){g.unsubscribe(),--l===0&&d&&f.unsubscribe()}});return v.key=_,v}})}Ep.groupBy=qV});var LP=O(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.isEmpty=void 0;var FV=ee(),WV=ie();function UV(){return FV.operate(function(o,t){o.subscribe(WV.createOperatorSubscriber(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}Tp.isEmpty=UV});var jb=O(ia=>{"use strict";var $V=ia&&ia.__values||function(o){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&o[t],e=0;if(r)return r.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&e>=o.length&&(o=void 0),{value:o&&o[e++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ia,"__esModule",{value:!0});ia.takeLast=void 0;var BV=qr(),HV=ee(),VV=ie();function zV(o){return o<=0?function(){return BV.EMPTY}:HV.operate(function(t,r){var e=[];t.subscribe(VV.createOperatorSubscriber(r,function(n){e.push(n),o<e.length&&e.shift()},function(){var n,i;try{for(var s=$V(e),c=s.next();!c.done;c=s.next()){var u=c.value;r.next(u)}}catch(a){n={error:a}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}r.complete()},void 0,function(){e=null}))})}ia.takeLast=zV});var qP=O(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});Sp.last=void 0;var YV=bo(),KV=Ni(),JV=jb(),GV=Oc(),XV=Tc(),ZV=bt();function QV(o,t){var r=arguments.length>=2;return function(e){return e.pipe(o?KV.filter(function(n,i){return o(n,i,e)}):ZV.identity,JV.takeLast(1),r?XV.defaultIfEmpty(t):GV.throwIfEmpty(function(){return new YV.EmptyError}))}}Sp.last=QV});var FP=O(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});Op.materialize=void 0;var Nb=Jd(),ez=ee(),tz=ie();function rz(){return ez.operate(function(o,t){o.subscribe(tz.createOperatorSubscriber(t,function(r){t.next(Nb.Notification.createNext(r))},function(){t.next(Nb.Notification.createComplete()),t.complete()},function(r){t.next(Nb.Notification.createError(r)),t.complete()}))})}Op.materialize=rz});var WP=O(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});kp.max=void 0;var nz=na(),oz=Ne();function iz(o){return nz.reduce(oz.isFunction(o)?function(t,r){return o(t,r)>0?t:r}:function(t,r){return t>r?t:r})}kp.max=iz});var UP=O(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.flatMap=void 0;var sz=Wn();Pp.flatMap=sz.mergeMap});var BP=O(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});Ap.mergeMapTo=void 0;var $P=Wn(),az=Ne();function cz(o,t,r){return r===void 0&&(r=1/0),az.isFunction(t)?$P.mergeMap(function(){return o},t,r):(typeof t=="number"&&(r=t),$P.mergeMap(function(){return o},r))}Ap.mergeMapTo=cz});var HP=O(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.mergeScan=void 0;var uz=ee(),lz=hf();function dz(o,t,r){return r===void 0&&(r=1/0),uz.operate(function(e,n){var i=t;return lz.mergeInternals(e,n,function(s,c){return o(i,s,c)},r,function(s){i=s},!1,void 0,function(){return i=null})})}Ip.mergeScan=dz});var zP=O(Ro=>{"use strict";var fz=Ro&&Ro.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},pz=Ro&&Ro.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(Ro,"__esModule",{value:!0});Ro.merge=void 0;var hz=ee(),_z=ji(),mz=gc(),VP=$t(),vz=qn();function yz(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=VP.popScheduler(o),e=VP.popNumber(o,1/0);return o=_z.argsOrArgArray(o),hz.operate(function(n,i){mz.mergeAll(e)(vz.from(pz([n],fz(o)),r)).subscribe(i)})}Ro.merge=yz});var YP=O(Mo=>{"use strict";var bz=Mo&&Mo.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},gz=Mo&&Mo.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(Mo,"__esModule",{value:!0});Mo.mergeWith=void 0;var wz=zP();function Ez(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return wz.merge.apply(void 0,gz([],bz(o)))}Mo.mergeWith=Ez});var KP=O(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});xp.min=void 0;var Tz=na(),Sz=Ne();function Oz(o){return Tz.reduce(Sz.isFunction(o)?function(t,r){return o(t,r)<0?t:r}:function(t,r){return t<r?t:r})}xp.min=Oz});var Mp=O(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.multicast=void 0;var kz=hc(),JP=Ne(),Pz=Zf();function Az(o,t){var r=JP.isFunction(o)?o:function(){return o};return JP.isFunction(t)?Pz.connect(t,{connector:r}):function(e){return new kz.ConnectableObservable(e,r)}}Rp.multicast=Az});var XP=O(ln=>{"use strict";var Iz=ln&&ln.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},xz=ln&&ln.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(ln,"__esModule",{value:!0});ln.onErrorResumeNext=ln.onErrorResumeNextWith=void 0;var Rz=ji(),Mz=vb();function GP(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=Rz.argsOrArgArray(o);return function(e){return Mz.onErrorResumeNext.apply(void 0,xz([e],Iz(r)))}}ln.onErrorResumeNextWith=GP;ln.onErrorResumeNext=GP});var ZP=O(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});Cp.pairwise=void 0;var Cz=ee(),jz=ie();function Nz(){return Cz.operate(function(o,t){var r,e=!1;o.subscribe(jz.createOperatorSubscriber(t,function(n){var i=r;r=n,e&&t.next([i,n]),e=!0}))})}Cp.pairwise=Nz});var QP=O(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});jp.pluck=void 0;var Dz=go();function Lz(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=o.length;if(r===0)throw new Error("list of properties cannot be empty.");return Dz.map(function(e){for(var n=e,i=0;i<r;i++){var s=n?.[o[i]];if(typeof s<"u")n=s;else return}return n})}jp.pluck=Lz});var eA=O(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.publish=void 0;var qz=gt(),Fz=Mp(),Wz=Zf();function Uz(o){return o?function(t){return Wz.connect(o)(t)}:function(t){return Fz.multicast(new qz.Subject)(t)}}Np.publish=Uz});var tA=O(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.publishBehavior=void 0;var $z=Hy(),Bz=hc();function Hz(o){return function(t){var r=new $z.BehaviorSubject(o);return new Bz.ConnectableObservable(t,function(){return r})}}Dp.publishBehavior=Hz});var rA=O(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});Lp.publishLast=void 0;var Vz=Td(),zz=hc();function Yz(){return function(o){var t=new Vz.AsyncSubject;return new zz.ConnectableObservable(o,function(){return t})}}Lp.publishLast=Yz});var oA=O(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});qp.publishReplay=void 0;var Kz=Ed(),Jz=Mp(),nA=Ne();function Gz(o,t,r,e){r&&!nA.isFunction(r)&&(e=r);var n=nA.isFunction(r)?r:void 0;return function(i){return Jz.multicast(new Kz.ReplaySubject(o,t,e),n)(i)}}qp.publishReplay=Gz});var iA=O(Co=>{"use strict";var Xz=Co&&Co.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},Zz=Co&&Co.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(Co,"__esModule",{value:!0});Co.raceWith=void 0;var Qz=yb(),e3=ee(),t3=bt();function r3(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return o.length?e3.operate(function(r,e){Qz.raceInit(Zz([r],Xz(o)))(e)}):t3.identity}Co.raceWith=r3});var aA=O(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});Fp.repeat=void 0;var n3=qr(),o3=ee(),sA=ie(),i3=ve(),s3=So();function a3(o){var t,r=1/0,e;return o!=null&&(typeof o=="object"?(t=o.count,r=t===void 0?1/0:t,e=o.delay):r=o),r<=0?function(){return n3.EMPTY}:o3.operate(function(n,i){var s=0,c,u=function(){if(c?.unsubscribe(),c=null,e!=null){var l=typeof e=="number"?s3.timer(e):i3.innerFrom(e(s)),d=sA.createOperatorSubscriber(i,function(){d.unsubscribe(),a()});l.subscribe(d)}else a()},a=function(){var l=!1;c=n.subscribe(sA.createOperatorSubscriber(i,void 0,function(){++s<r?c?u():l=!0:i.complete()})),l&&u()};a()})}Fp.repeat=a3});var uA=O(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});Wp.repeatWhen=void 0;var c3=ve(),u3=gt(),l3=ee(),cA=ie();function d3(o){return l3.operate(function(t,r){var e,n=!1,i,s=!1,c=!1,u=function(){return c&&s&&(r.complete(),!0)},a=function(){return i||(i=new u3.Subject,c3.innerFrom(o(i)).subscribe(cA.createOperatorSubscriber(r,function(){e?l():n=!0},function(){s=!0,u()}))),i},l=function(){c=!1,e=t.subscribe(cA.createOperatorSubscriber(r,void 0,function(){c=!0,!u()&&a().next()})),n&&(e.unsubscribe(),e=null,n=!1,l())};l()})}Wp.repeatWhen=d3});var dA=O(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});Up.retry=void 0;var f3=ee(),lA=ie(),p3=bt(),h3=So(),_3=ve();function m3(o){o===void 0&&(o=1/0);var t;o&&typeof o=="object"?t=o:t={count:o};var r=t.count,e=r===void 0?1/0:r,n=t.delay,i=t.resetOnSuccess,s=i===void 0?!1:i;return e<=0?p3.identity:f3.operate(function(c,u){var a=0,l,d=function(){var f=!1;l=c.subscribe(lA.createOperatorSubscriber(u,function(h){s&&(a=0),u.next(h)},void 0,function(h){if(a++<e){var _=function(){l?(l.unsubscribe(),l=null,d()):f=!0};if(n!=null){var m=typeof n=="number"?h3.timer(n):_3.innerFrom(n(h,a)),v=lA.createOperatorSubscriber(u,function(){v.unsubscribe(),_()},function(){u.complete()});m.subscribe(v)}else _()}else u.error(h)})),f&&(l.unsubscribe(),l=null,d())};d()})}Up.retry=m3});var pA=O($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});$p.retryWhen=void 0;var v3=ve(),y3=gt(),b3=ee(),fA=ie();function g3(o){return b3.operate(function(t,r){var e,n=!1,i,s=function(){e=t.subscribe(fA.createOperatorSubscriber(r,void 0,void 0,function(c){i||(i=new y3.Subject,v3.innerFrom(o(i)).subscribe(fA.createOperatorSubscriber(r,function(){return e?s():n=!0}))),i&&i.next(c)})),n&&(e.unsubscribe(),e=null,n=!1,s())};s()})}$p.retryWhen=g3});var Db=O(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});Bp.sample=void 0;var w3=ve(),E3=ee(),T3=yt(),hA=ie();function S3(o){return E3.operate(function(t,r){var e=!1,n=null;t.subscribe(hA.createOperatorSubscriber(r,function(i){e=!0,n=i})),w3.innerFrom(o).subscribe(hA.createOperatorSubscriber(r,function(){if(e){e=!1;var i=n;n=null,r.next(i)}},T3.noop))})}Bp.sample=S3});var _A=O(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});Hp.sampleTime=void 0;var O3=Ut(),k3=Db(),P3=_b();function A3(o,t){return t===void 0&&(t=O3.asyncScheduler),k3.sample(P3.interval(o,t))}Hp.sampleTime=A3});var mA=O(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});Vp.scan=void 0;var I3=ee(),x3=Eb();function R3(o,t){return I3.operate(x3.scanInternals(o,t,arguments.length>=2,!0))}Vp.scan=R3});var yA=O(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.sequenceEqual=void 0;var M3=ee(),C3=ie(),j3=ve();function N3(o,t){return t===void 0&&(t=function(r,e){return r===e}),M3.operate(function(r,e){var n=vA(),i=vA(),s=function(u){e.next(u),e.complete()},c=function(u,a){var l=C3.createOperatorSubscriber(e,function(d){var f=a.buffer,h=a.complete;f.length===0?h?s(!1):u.buffer.push(d):!t(d,f.shift())&&s(!1)},function(){u.complete=!0;var d=a.complete,f=a.buffer;d&&s(f.length===0),l?.unsubscribe()});return l};r.subscribe(c(n,i)),j3.innerFrom(o).subscribe(c(i,n))})}zp.sequenceEqual=N3;function vA(){return{buffer:[],complete:!1}}});var qb=O(jo=>{"use strict";var D3=jo&&jo.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},L3=jo&&jo.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(jo,"__esModule",{value:!0});jo.share=void 0;var bA=ve(),q3=gt(),gA=As(),F3=ee();function W3(o){o===void 0&&(o={});var t=o.connector,r=t===void 0?function(){return new q3.Subject}:t,e=o.resetOnError,n=e===void 0?!0:e,i=o.resetOnComplete,s=i===void 0?!0:i,c=o.resetOnRefCountZero,u=c===void 0?!0:c;return function(a){var l,d,f,h=0,_=!1,m=!1,v=function(){d?.unsubscribe(),d=void 0},b=function(){v(),l=f=void 0,_=m=!1},g=function(){var w=l;b(),w?.unsubscribe()};return F3.operate(function(w,T){h++,!m&&!_&&v();var P=f=f??r();T.add(function(){h--,h===0&&!m&&!_&&(d=Lb(g,u))}),P.subscribe(T),!l&&h>0&&(l=new gA.SafeSubscriber({next:function(k){return P.next(k)},error:function(k){m=!0,v(),d=Lb(b,n,k),P.error(k)},complete:function(){_=!0,v(),d=Lb(b,s),P.complete()}}),bA.innerFrom(w).subscribe(l))})(a)}}jo.share=W3;function Lb(o,t){for(var r=[],e=2;e<arguments.length;e++)r[e-2]=arguments[e];if(t===!0){o();return}if(t!==!1){var n=new gA.SafeSubscriber({next:function(){n.unsubscribe(),o()}});return bA.innerFrom(t.apply(void 0,L3([],D3(r)))).subscribe(n)}}});var wA=O(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.shareReplay=void 0;var U3=Ed(),$3=qb();function B3(o,t,r){var e,n,i,s,c=!1;return o&&typeof o=="object"?(e=o.bufferSize,s=e===void 0?1/0:e,n=o.windowTime,t=n===void 0?1/0:n,i=o.refCount,c=i===void 0?!1:i,r=o.scheduler):s=o??1/0,$3.share({connector:function(){return new U3.ReplaySubject(s,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:c})}Yp.shareReplay=B3});var EA=O(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});Kp.single=void 0;var H3=bo(),V3=ub(),z3=cb(),Y3=ee(),K3=ie();function J3(o){return Y3.operate(function(t,r){var e=!1,n,i=!1,s=0;t.subscribe(K3.createOperatorSubscriber(r,function(c){i=!0,(!o||o(c,s++,t))&&(e&&r.error(new V3.SequenceError("Too many matching values")),e=!0,n=c)},function(){e?(r.next(n),r.complete()):r.error(i?new z3.NotFoundError("No matching values"):new H3.EmptyError)}))})}Kp.single=J3});var TA=O(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});Jp.skip=void 0;var G3=Ni();function X3(o){return G3.filter(function(t,r){return o<=r})}Jp.skip=X3});var SA=O(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.skipLast=void 0;var Z3=bt(),Q3=ee(),eY=ie();function tY(o){return o<=0?Z3.identity:Q3.operate(function(t,r){var e=new Array(o),n=0;return t.subscribe(eY.createOperatorSubscriber(r,function(i){var s=n++;if(s<o)e[s]=i;else{var c=s%o,u=e[c];e[c]=i,r.next(u)}})),function(){e=null}})}Gp.skipLast=tY});var kA=O(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});Xp.skipUntil=void 0;var rY=ee(),OA=ie(),nY=ve(),oY=yt();function iY(o){return rY.operate(function(t,r){var e=!1,n=OA.createOperatorSubscriber(r,function(){n?.unsubscribe(),e=!0},oY.noop);nY.innerFrom(o).subscribe(n),t.subscribe(OA.createOperatorSubscriber(r,function(i){return e&&r.next(i)}))})}Xp.skipUntil=iY});var PA=O(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.skipWhile=void 0;var sY=ee(),aY=ie();function cY(o){return sY.operate(function(t,r){var e=!1,n=0;t.subscribe(aY.createOperatorSubscriber(r,function(i){return(e||(e=!o(i,n++)))&&r.next(i)}))})}Zp.skipWhile=cY});var IA=O(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});Qp.startWith=void 0;var AA=wc(),uY=$t(),lY=ee();function dY(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=uY.popScheduler(o);return lY.operate(function(e,n){(r?AA.concat(o,e,r):AA.concat(o,e)).subscribe(n)})}Qp.startWith=dY});var kc=O(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.switchMap=void 0;var fY=ve(),pY=ee(),xA=ie();function hY(o,t){return pY.operate(function(r,e){var n=null,i=0,s=!1,c=function(){return s&&!n&&e.complete()};r.subscribe(xA.createOperatorSubscriber(e,function(u){n?.unsubscribe();var a=0,l=i++;fY.innerFrom(o(u,l)).subscribe(n=xA.createOperatorSubscriber(e,function(d){return e.next(t?t(u,d,l,a++):d)},function(){n=null,c()}))},function(){s=!0,c()}))})}eh.switchMap=hY});var RA=O(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});th.switchAll=void 0;var _Y=kc(),mY=bt();function vY(){return _Y.switchMap(mY.identity)}th.switchAll=vY});var CA=O(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.switchMapTo=void 0;var MA=kc(),yY=Ne();function bY(o,t){return yY.isFunction(t)?MA.switchMap(function(){return o},t):MA.switchMap(function(){return o})}rh.switchMapTo=bY});var jA=O(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.switchScan=void 0;var gY=kc(),wY=ee();function EY(o,t){return wY.operate(function(r,e){var n=t;return gY.switchMap(function(i,s){return o(n,i,s)},function(i,s){return n=s,s})(r).subscribe(e),function(){n=null}})}nh.switchScan=EY});var NA=O(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.takeUntil=void 0;var TY=ee(),SY=ie(),OY=ve(),kY=yt();function PY(o){return TY.operate(function(t,r){OY.innerFrom(o).subscribe(SY.createOperatorSubscriber(r,function(){return r.complete()},kY.noop)),!r.closed&&t.subscribe(r)})}oh.takeUntil=PY});var DA=O(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.takeWhile=void 0;var AY=ee(),IY=ie();function xY(o,t){return t===void 0&&(t=!1),AY.operate(function(r,e){var n=0;r.subscribe(IY.createOperatorSubscriber(e,function(i){var s=o(i,n++);(s||t)&&e.next(i),!s&&e.complete()}))})}ih.takeWhile=xY});var LA=O(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.tap=void 0;var RY=Ne(),MY=ee(),CY=ie(),jY=bt();function NY(o,t,r){var e=RY.isFunction(o)||t||r?{next:o,error:t,complete:r}:o;return e?MY.operate(function(n,i){var s;(s=e.subscribe)===null||s===void 0||s.call(e);var c=!0;n.subscribe(CY.createOperatorSubscriber(i,function(u){var a;(a=e.next)===null||a===void 0||a.call(e,u),i.next(u)},function(){var u;c=!1,(u=e.complete)===null||u===void 0||u.call(e),i.complete()},function(u){var a;c=!1,(a=e.error)===null||a===void 0||a.call(e,u),i.error(u)},function(){var u,a;c&&((u=e.unsubscribe)===null||u===void 0||u.call(e)),(a=e.finalize)===null||a===void 0||a.call(e)}))}):jY.identity}sh.tap=NY});var Fb=O(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.throttle=Di.defaultThrottleConfig=void 0;var DY=ee(),qA=ie(),LY=ve();Di.defaultThrottleConfig={leading:!0,trailing:!1};function qY(o,t){return t===void 0&&(t=Di.defaultThrottleConfig),DY.operate(function(r,e){var n=t.leading,i=t.trailing,s=!1,c=null,u=null,a=!1,l=function(){u?.unsubscribe(),u=null,i&&(h(),a&&e.complete())},d=function(){u=null,a&&e.complete()},f=function(_){return u=LY.innerFrom(o(_)).subscribe(qA.createOperatorSubscriber(e,l,d))},h=function(){if(s){s=!1;var _=c;c=null,e.next(_),!a&&f(_)}};r.subscribe(qA.createOperatorSubscriber(e,function(_){s=!0,c=_,!(u&&!u.closed)&&(n?h():f(_))},function(){a=!0,!(i&&s&&u&&!u.closed)&&e.complete()}))})}Di.throttle=qY});var WA=O(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});ah.throttleTime=void 0;var FY=Ut(),FA=Fb(),WY=So();function UY(o,t,r){t===void 0&&(t=FY.asyncScheduler),r===void 0&&(r=FA.defaultThrottleConfig);var e=WY.timer(o,t);return FA.throttle(function(){return e},r)}ah.throttleTime=UY});var $A=O(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.TimeInterval=sa.timeInterval=void 0;var $Y=Ut(),BY=ee(),HY=ie();function VY(o){return o===void 0&&(o=$Y.asyncScheduler),BY.operate(function(t,r){var e=o.now();t.subscribe(HY.createOperatorSubscriber(r,function(n){var i=o.now(),s=i-e;e=i,r.next(new UA(n,s))}))})}sa.timeInterval=VY;var UA=function(){function o(t,r){this.value=t,this.interval=r}return o}();sa.TimeInterval=UA});var BA=O(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});ch.timeoutWith=void 0;var zY=Ut(),YY=of(),KY=sf();function JY(o,t,r){var e,n,i;if(r=r??zY.async,YY.isValidDate(o)?e=o:typeof o=="number"&&(n=o),t)i=function(){return t};else throw new TypeError("No observable provided to switch to");if(e==null&&n==null)throw new TypeError("No timeout provided.");return KY.timeout({first:e,each:n,scheduler:r,with:i})}ch.timeoutWith=JY});var HA=O(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});uh.timestamp=void 0;var GY=wd(),XY=go();function ZY(o){return o===void 0&&(o=GY.dateTimestampProvider),XY.map(function(t){return{value:t,timestamp:o.now()}})}uh.timestamp=ZY});var YA=O(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});lh.window=void 0;var VA=gt(),QY=ee(),zA=ie(),eK=yt(),tK=ve();function rK(o){return QY.operate(function(t,r){var e=new VA.Subject;r.next(e.asObservable());var n=function(i){e.error(i),r.error(i)};return t.subscribe(zA.createOperatorSubscriber(r,function(i){return e?.next(i)},function(){e.complete(),r.complete()},n)),tK.innerFrom(o).subscribe(zA.createOperatorSubscriber(r,function(){e.complete(),r.next(e=new VA.Subject)},eK.noop,n)),function(){e?.unsubscribe(),e=null}})}lh.window=rK});var JA=O(aa=>{"use strict";var nK=aa&&aa.__values||function(o){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&o[t],e=0;if(r)return r.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&e>=o.length&&(o=void 0),{value:o&&o[e++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(aa,"__esModule",{value:!0});aa.windowCount=void 0;var KA=gt(),oK=ee(),iK=ie();function sK(o,t){t===void 0&&(t=0);var r=t>0?t:o;return oK.operate(function(e,n){var i=[new KA.Subject],s=[],c=0;n.next(i[0].asObservable()),e.subscribe(iK.createOperatorSubscriber(n,function(u){var a,l;try{for(var d=nK(i),f=d.next();!f.done;f=d.next()){var h=f.value;h.next(u)}}catch(v){a={error:v}}finally{try{f&&!f.done&&(l=d.return)&&l.call(d)}finally{if(a)throw a.error}}var _=c-o+1;if(_>=0&&_%r===0&&i.shift().complete(),++c%r===0){var m=new KA.Subject;i.push(m),n.next(m.asObservable())}},function(){for(;i.length>0;)i.shift().complete();n.complete()},function(u){for(;i.length>0;)i.shift().error(u);n.error(u)},function(){s=null,i=null}))})}aa.windowCount=sK});var XA=O(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});dh.windowTime=void 0;var aK=gt(),cK=Ut(),uK=er(),lK=ee(),dK=ie(),fK=Dn(),pK=$t(),GA=Ln();function hK(o){for(var t,r,e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=(t=pK.popScheduler(e))!==null&&t!==void 0?t:cK.asyncScheduler,s=(r=e[0])!==null&&r!==void 0?r:null,c=e[1]||1/0;return lK.operate(function(u,a){var l=[],d=!1,f=function(v){var b=v.window,g=v.subs;b.complete(),g.unsubscribe(),fK.arrRemove(l,v),d&&h()},h=function(){if(l){var v=new uK.Subscription;a.add(v);var b=new aK.Subject,g={window:b,subs:v,seen:0};l.push(g),a.next(b.asObservable()),GA.executeSchedule(v,i,function(){return f(g)},o)}};s!==null&&s>=0?GA.executeSchedule(a,i,h,s,!0):d=!0,h();var _=function(v){return l.slice().forEach(v)},m=function(v){_(function(b){var g=b.window;return v(g)}),v(a),a.unsubscribe()};return u.subscribe(dK.createOperatorSubscriber(a,function(v){_(function(b){b.window.next(v),c<=++b.seen&&f(b)})},function(){return m(function(v){return v.complete()})},function(v){return m(function(b){return b.error(v)})})),function(){l=null}})}dh.windowTime=hK});var eI=O(ca=>{"use strict";var _K=ca&&ca.__values||function(o){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&o[t],e=0;if(r)return r.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&e>=o.length&&(o=void 0),{value:o&&o[e++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ca,"__esModule",{value:!0});ca.windowToggle=void 0;var mK=gt(),vK=er(),yK=ee(),ZA=ve(),Wb=ie(),QA=yt(),bK=Dn();function gK(o,t){return yK.operate(function(r,e){var n=[],i=function(s){for(;0<n.length;)n.shift().error(s);e.error(s)};ZA.innerFrom(o).subscribe(Wb.createOperatorSubscriber(e,function(s){var c=new mK.Subject;n.push(c);var u=new vK.Subscription,a=function(){bK.arrRemove(n,c),c.complete(),u.unsubscribe()},l;try{l=ZA.innerFrom(t(s))}catch(d){i(d);return}e.next(c.asObservable()),u.add(l.subscribe(Wb.createOperatorSubscriber(e,a,QA.noop,i)))},QA.noop)),r.subscribe(Wb.createOperatorSubscriber(e,function(s){var c,u,a=n.slice();try{for(var l=_K(a),d=l.next();!d.done;d=l.next()){var f=d.value;f.next(s)}}catch(h){c={error:h}}finally{try{d&&!d.done&&(u=l.return)&&u.call(l)}finally{if(c)throw c.error}}},function(){for(;0<n.length;)n.shift().complete();e.complete()},i,function(){for(;0<n.length;)n.shift().unsubscribe()}))})}ca.windowToggle=gK});var rI=O(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});fh.windowWhen=void 0;var wK=gt(),EK=ee(),tI=ie(),TK=ve();function SK(o){return EK.operate(function(t,r){var e,n,i=function(c){e.error(c),r.error(c)},s=function(){n?.unsubscribe(),e?.complete(),e=new wK.Subject,r.next(e.asObservable());var c;try{c=TK.innerFrom(o())}catch(u){i(u);return}c.subscribe(n=tI.createOperatorSubscriber(r,s,s,i))};s(),t.subscribe(tI.createOperatorSubscriber(r,function(c){return e.next(c)},function(){e.complete(),r.complete()},i,function(){n?.unsubscribe(),e=null}))})}fh.windowWhen=SK});var sI=O(No=>{"use strict";var nI=No&&No.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},oI=No&&No.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(No,"__esModule",{value:!0});No.withLatestFrom=void 0;var OK=ee(),iI=ie(),kK=ve(),PK=bt(),AK=yt(),IK=$t();function xK(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=IK.popResultSelector(o);return OK.operate(function(e,n){for(var i=o.length,s=new Array(i),c=o.map(function(){return!1}),u=!1,a=function(d){kK.innerFrom(o[d]).subscribe(iI.createOperatorSubscriber(n,function(f){s[d]=f,!u&&!c[d]&&(c[d]=!0,(u=c.every(PK.identity))&&(c=null))},AK.noop))},l=0;l<i;l++)a(l);e.subscribe(iI.createOperatorSubscriber(n,function(d){if(u){var f=oI([d],nI(s));n.next(r?r.apply(void 0,oI([],nI(f))):f)}}))})}No.withLatestFrom=xK});var aI=O(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.zipAll=void 0;var RK=Df(),MK=Sb();function CK(o){return MK.joinAllInternals(RK.zip,o)}ph.zipAll=CK});var cI=O(Do=>{"use strict";var jK=Do&&Do.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},NK=Do&&Do.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(Do,"__esModule",{value:!0});Do.zip=void 0;var DK=Df(),LK=ee();function qK(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return LK.operate(function(r,e){DK.zip.apply(void 0,NK([r],jK(o))).subscribe(e)})}Do.zip=qK});var uI=O(Lo=>{"use strict";var FK=Lo&&Lo.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},WK=Lo&&Lo.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(Lo,"__esModule",{value:!0});Lo.zipWith=void 0;var UK=cI();function $K(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return UK.zip.apply(void 0,WK([],FK(o)))}Lo.zipWith=$K});var Ub=O(I=>{"use strict";var BK=I&&I.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r),Object.defineProperty(o,e,{enumerable:!0,get:function(){return t[r]}})}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),HK=I&&I.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&BK(t,o,r)};Object.defineProperty(I,"__esModule",{value:!0});I.interval=I.iif=I.generate=I.fromEventPattern=I.fromEvent=I.from=I.forkJoin=I.empty=I.defer=I.connectable=I.concat=I.combineLatest=I.bindNodeCallback=I.bindCallback=I.UnsubscriptionError=I.TimeoutError=I.SequenceError=I.ObjectUnsubscribedError=I.NotFoundError=I.EmptyError=I.ArgumentOutOfRangeError=I.firstValueFrom=I.lastValueFrom=I.isObservable=I.identity=I.noop=I.pipe=I.NotificationKind=I.Notification=I.Subscriber=I.Subscription=I.Scheduler=I.VirtualAction=I.VirtualTimeScheduler=I.animationFrameScheduler=I.animationFrame=I.queueScheduler=I.queue=I.asyncScheduler=I.async=I.asapScheduler=I.asap=I.AsyncSubject=I.ReplaySubject=I.BehaviorSubject=I.Subject=I.animationFrames=I.observable=I.ConnectableObservable=I.Observable=void 0;I.filter=I.expand=I.exhaustMap=I.exhaustAll=I.exhaust=I.every=I.endWith=I.elementAt=I.distinctUntilKeyChanged=I.distinctUntilChanged=I.distinct=I.dematerialize=I.delayWhen=I.delay=I.defaultIfEmpty=I.debounceTime=I.debounce=I.count=I.connect=I.concatWith=I.concatMapTo=I.concatMap=I.concatAll=I.combineLatestWith=I.combineLatestAll=I.combineAll=I.catchError=I.bufferWhen=I.bufferToggle=I.bufferTime=I.bufferCount=I.buffer=I.auditTime=I.audit=I.config=I.NEVER=I.EMPTY=I.scheduled=I.zip=I.using=I.timer=I.throwError=I.range=I.race=I.partition=I.pairs=I.onErrorResumeNext=I.of=I.never=I.merge=void 0;I.switchMap=I.switchAll=I.subscribeOn=I.startWith=I.skipWhile=I.skipUntil=I.skipLast=I.skip=I.single=I.shareReplay=I.share=I.sequenceEqual=I.scan=I.sampleTime=I.sample=I.refCount=I.retryWhen=I.retry=I.repeatWhen=I.repeat=I.reduce=I.raceWith=I.publishReplay=I.publishLast=I.publishBehavior=I.publish=I.pluck=I.pairwise=I.onErrorResumeNextWith=I.observeOn=I.multicast=I.min=I.mergeWith=I.mergeScan=I.mergeMapTo=I.mergeMap=I.flatMap=I.mergeAll=I.max=I.materialize=I.mapTo=I.map=I.last=I.isEmpty=I.ignoreElements=I.groupBy=I.first=I.findIndex=I.find=I.finalize=void 0;I.zipWith=I.zipAll=I.withLatestFrom=I.windowWhen=I.windowToggle=I.windowTime=I.windowCount=I.window=I.toArray=I.timestamp=I.timeoutWith=I.timeout=I.timeInterval=I.throwIfEmpty=I.throttleTime=I.throttle=I.tap=I.takeWhile=I.takeUntil=I.takeLast=I.take=I.switchScan=I.switchMapTo=void 0;var VK=Fe();Object.defineProperty(I,"Observable",{enumerable:!0,get:function(){return VK.Observable}});var zK=hc();Object.defineProperty(I,"ConnectableObservable",{enumerable:!0,get:function(){return zK.ConnectableObservable}});var YK=fc();Object.defineProperty(I,"observable",{enumerable:!0,get:function(){return YK.observable}});var KK=pO();Object.defineProperty(I,"animationFrames",{enumerable:!0,get:function(){return KK.animationFrames}});var JK=gt();Object.defineProperty(I,"Subject",{enumerable:!0,get:function(){return JK.Subject}});var GK=Hy();Object.defineProperty(I,"BehaviorSubject",{enumerable:!0,get:function(){return GK.BehaviorSubject}});var XK=Ed();Object.defineProperty(I,"ReplaySubject",{enumerable:!0,get:function(){return XK.ReplaySubject}});var ZK=Td();Object.defineProperty(I,"AsyncSubject",{enumerable:!0,get:function(){return ZK.AsyncSubject}});var lI=xO();Object.defineProperty(I,"asap",{enumerable:!0,get:function(){return lI.asap}});Object.defineProperty(I,"asapScheduler",{enumerable:!0,get:function(){return lI.asapScheduler}});var dI=Ut();Object.defineProperty(I,"async",{enumerable:!0,get:function(){return dI.async}});Object.defineProperty(I,"asyncScheduler",{enumerable:!0,get:function(){return dI.asyncScheduler}});var fI=CO();Object.defineProperty(I,"queue",{enumerable:!0,get:function(){return fI.queue}});Object.defineProperty(I,"queueScheduler",{enumerable:!0,get:function(){return fI.queueScheduler}});var pI=LO();Object.defineProperty(I,"animationFrame",{enumerable:!0,get:function(){return pI.animationFrame}});Object.defineProperty(I,"animationFrameScheduler",{enumerable:!0,get:function(){return pI.animationFrameScheduler}});var hI=WO();Object.defineProperty(I,"VirtualTimeScheduler",{enumerable:!0,get:function(){return hI.VirtualTimeScheduler}});Object.defineProperty(I,"VirtualAction",{enumerable:!0,get:function(){return hI.VirtualAction}});var QK=zy();Object.defineProperty(I,"Scheduler",{enumerable:!0,get:function(){return QK.Scheduler}});var e5=er();Object.defineProperty(I,"Subscription",{enumerable:!0,get:function(){return e5.Subscription}});var t5=As();Object.defineProperty(I,"Subscriber",{enumerable:!0,get:function(){return t5.Subscriber}});var _I=Jd();Object.defineProperty(I,"Notification",{enumerable:!0,get:function(){return _I.Notification}});Object.defineProperty(I,"NotificationKind",{enumerable:!0,get:function(){return _I.NotificationKind}});var r5=pc();Object.defineProperty(I,"pipe",{enumerable:!0,get:function(){return r5.pipe}});var n5=yt();Object.defineProperty(I,"noop",{enumerable:!0,get:function(){return n5.noop}});var o5=bt();Object.defineProperty(I,"identity",{enumerable:!0,get:function(){return o5.identity}});var i5=nk();Object.defineProperty(I,"isObservable",{enumerable:!0,get:function(){return i5.isObservable}});var s5=ok();Object.defineProperty(I,"lastValueFrom",{enumerable:!0,get:function(){return s5.lastValueFrom}});var a5=ik();Object.defineProperty(I,"firstValueFrom",{enumerable:!0,get:function(){return a5.firstValueFrom}});var c5=ab();Object.defineProperty(I,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return c5.ArgumentOutOfRangeError}});var u5=bo();Object.defineProperty(I,"EmptyError",{enumerable:!0,get:function(){return u5.EmptyError}});var l5=cb();Object.defineProperty(I,"NotFoundError",{enumerable:!0,get:function(){return l5.NotFoundError}});var d5=Wy();Object.defineProperty(I,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return d5.ObjectUnsubscribedError}});var f5=ub();Object.defineProperty(I,"SequenceError",{enumerable:!0,get:function(){return f5.SequenceError}});var p5=sf();Object.defineProperty(I,"TimeoutError",{enumerable:!0,get:function(){return p5.TimeoutError}});var h5=Py();Object.defineProperty(I,"UnsubscriptionError",{enumerable:!0,get:function(){return h5.UnsubscriptionError}});var _5=ak();Object.defineProperty(I,"bindCallback",{enumerable:!0,get:function(){return _5.bindCallback}});var m5=ck();Object.defineProperty(I,"bindNodeCallback",{enumerable:!0,get:function(){return m5.bindNodeCallback}});var v5=ff();Object.defineProperty(I,"combineLatest",{enumerable:!0,get:function(){return v5.combineLatest}});var y5=wc();Object.defineProperty(I,"concat",{enumerable:!0,get:function(){return y5.concat}});var b5=mk();Object.defineProperty(I,"connectable",{enumerable:!0,get:function(){return b5.connectable}});var g5=Ec();Object.defineProperty(I,"defer",{enumerable:!0,get:function(){return g5.defer}});var w5=qr();Object.defineProperty(I,"empty",{enumerable:!0,get:function(){return w5.empty}});var E5=vk();Object.defineProperty(I,"forkJoin",{enumerable:!0,get:function(){return E5.forkJoin}});var T5=qn();Object.defineProperty(I,"from",{enumerable:!0,get:function(){return T5.from}});var S5=bk();Object.defineProperty(I,"fromEvent",{enumerable:!0,get:function(){return S5.fromEvent}});var O5=wk();Object.defineProperty(I,"fromEventPattern",{enumerable:!0,get:function(){return O5.fromEventPattern}});var k5=Tk();Object.defineProperty(I,"generate",{enumerable:!0,get:function(){return k5.generate}});var P5=Sk();Object.defineProperty(I,"iif",{enumerable:!0,get:function(){return P5.iif}});var A5=_b();Object.defineProperty(I,"interval",{enumerable:!0,get:function(){return A5.interval}});var I5=kk();Object.defineProperty(I,"merge",{enumerable:!0,get:function(){return I5.merge}});var x5=mb();Object.defineProperty(I,"never",{enumerable:!0,get:function(){return x5.never}});var R5=Yd();Object.defineProperty(I,"of",{enumerable:!0,get:function(){return R5.of}});var M5=vb();Object.defineProperty(I,"onErrorResumeNext",{enumerable:!0,get:function(){return M5.onErrorResumeNext}});var C5=Ak();Object.defineProperty(I,"pairs",{enumerable:!0,get:function(){return C5.pairs}});var j5=Mk();Object.defineProperty(I,"partition",{enumerable:!0,get:function(){return j5.partition}});var N5=yb();Object.defineProperty(I,"race",{enumerable:!0,get:function(){return N5.race}});var D5=Nk();Object.defineProperty(I,"range",{enumerable:!0,get:function(){return D5.range}});var L5=sb();Object.defineProperty(I,"throwError",{enumerable:!0,get:function(){return L5.throwError}});var q5=So();Object.defineProperty(I,"timer",{enumerable:!0,get:function(){return q5.timer}});var F5=Dk();Object.defineProperty(I,"using",{enumerable:!0,get:function(){return F5.using}});var W5=Df();Object.defineProperty(I,"zip",{enumerable:!0,get:function(){return W5.zip}});var U5=ib();Object.defineProperty(I,"scheduled",{enumerable:!0,get:function(){return U5.scheduled}});var $5=qr();Object.defineProperty(I,"EMPTY",{enumerable:!0,get:function(){return $5.EMPTY}});var B5=mb();Object.defineProperty(I,"NEVER",{enumerable:!0,get:function(){return B5.NEVER}});HK(qk(),I);var H5=ks();Object.defineProperty(I,"config",{enumerable:!0,get:function(){return H5.config}});var V5=bb();Object.defineProperty(I,"audit",{enumerable:!0,get:function(){return V5.audit}});var z5=Wk();Object.defineProperty(I,"auditTime",{enumerable:!0,get:function(){return z5.auditTime}});var Y5=$k();Object.defineProperty(I,"buffer",{enumerable:!0,get:function(){return Y5.buffer}});var K5=Bk();Object.defineProperty(I,"bufferCount",{enumerable:!0,get:function(){return K5.bufferCount}});var J5=Vk();Object.defineProperty(I,"bufferTime",{enumerable:!0,get:function(){return J5.bufferTime}});var G5=Kk();Object.defineProperty(I,"bufferToggle",{enumerable:!0,get:function(){return G5.bufferToggle}});var X5=Gk();Object.defineProperty(I,"bufferWhen",{enumerable:!0,get:function(){return X5.bufferWhen}});var Z5=Zk();Object.defineProperty(I,"catchError",{enumerable:!0,get:function(){return Z5.catchError}});var Q5=Qk();Object.defineProperty(I,"combineAll",{enumerable:!0,get:function(){return Q5.combineAll}});var e9=Ob();Object.defineProperty(I,"combineLatestAll",{enumerable:!0,get:function(){return e9.combineLatestAll}});var t9=oP();Object.defineProperty(I,"combineLatestWith",{enumerable:!0,get:function(){return t9.combineLatestWith}});var r9=yf();Object.defineProperty(I,"concatAll",{enumerable:!0,get:function(){return r9.concatAll}});var n9=kb();Object.defineProperty(I,"concatMap",{enumerable:!0,get:function(){return n9.concatMap}});var o9=aP();Object.defineProperty(I,"concatMapTo",{enumerable:!0,get:function(){return o9.concatMapTo}});var i9=uP();Object.defineProperty(I,"concatWith",{enumerable:!0,get:function(){return i9.concatWith}});var s9=Zf();Object.defineProperty(I,"connect",{enumerable:!0,get:function(){return s9.connect}});var a9=dP();Object.defineProperty(I,"count",{enumerable:!0,get:function(){return a9.count}});var c9=pP();Object.defineProperty(I,"debounce",{enumerable:!0,get:function(){return c9.debounce}});var u9=hP();Object.defineProperty(I,"debounceTime",{enumerable:!0,get:function(){return u9.debounceTime}});var l9=Tc();Object.defineProperty(I,"defaultIfEmpty",{enumerable:!0,get:function(){return l9.defaultIfEmpty}});var d9=vP();Object.defineProperty(I,"delay",{enumerable:!0,get:function(){return d9.delay}});var f9=Ib();Object.defineProperty(I,"delayWhen",{enumerable:!0,get:function(){return f9.delayWhen}});var p9=yP();Object.defineProperty(I,"dematerialize",{enumerable:!0,get:function(){return p9.dematerialize}});var h9=gP();Object.defineProperty(I,"distinct",{enumerable:!0,get:function(){return h9.distinct}});var _9=xb();Object.defineProperty(I,"distinctUntilChanged",{enumerable:!0,get:function(){return _9.distinctUntilChanged}});var m9=wP();Object.defineProperty(I,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return m9.distinctUntilKeyChanged}});var v9=TP();Object.defineProperty(I,"elementAt",{enumerable:!0,get:function(){return v9.elementAt}});var y9=SP();Object.defineProperty(I,"endWith",{enumerable:!0,get:function(){return y9.endWith}});var b9=OP();Object.defineProperty(I,"every",{enumerable:!0,get:function(){return b9.every}});var g9=IP();Object.defineProperty(I,"exhaust",{enumerable:!0,get:function(){return g9.exhaust}});var w9=Mb();Object.defineProperty(I,"exhaustAll",{enumerable:!0,get:function(){return w9.exhaustAll}});var E9=Rb();Object.defineProperty(I,"exhaustMap",{enumerable:!0,get:function(){return E9.exhaustMap}});var T9=xP();Object.defineProperty(I,"expand",{enumerable:!0,get:function(){return T9.expand}});var S9=Ni();Object.defineProperty(I,"filter",{enumerable:!0,get:function(){return S9.filter}});var O9=RP();Object.defineProperty(I,"finalize",{enumerable:!0,get:function(){return O9.finalize}});var k9=Cb();Object.defineProperty(I,"find",{enumerable:!0,get:function(){return k9.find}});var P9=CP();Object.defineProperty(I,"findIndex",{enumerable:!0,get:function(){return P9.findIndex}});var A9=jP();Object.defineProperty(I,"first",{enumerable:!0,get:function(){return A9.first}});var I9=DP();Object.defineProperty(I,"groupBy",{enumerable:!0,get:function(){return I9.groupBy}});var x9=Pb();Object.defineProperty(I,"ignoreElements",{enumerable:!0,get:function(){return x9.ignoreElements}});var R9=LP();Object.defineProperty(I,"isEmpty",{enumerable:!0,get:function(){return R9.isEmpty}});var M9=qP();Object.defineProperty(I,"last",{enumerable:!0,get:function(){return M9.last}});var C9=go();Object.defineProperty(I,"map",{enumerable:!0,get:function(){return C9.map}});var j9=Ab();Object.defineProperty(I,"mapTo",{enumerable:!0,get:function(){return j9.mapTo}});var N9=FP();Object.defineProperty(I,"materialize",{enumerable:!0,get:function(){return N9.materialize}});var D9=WP();Object.defineProperty(I,"max",{enumerable:!0,get:function(){return D9.max}});var L9=gc();Object.defineProperty(I,"mergeAll",{enumerable:!0,get:function(){return L9.mergeAll}});var q9=UP();Object.defineProperty(I,"flatMap",{enumerable:!0,get:function(){return q9.flatMap}});var F9=Wn();Object.defineProperty(I,"mergeMap",{enumerable:!0,get:function(){return F9.mergeMap}});var W9=BP();Object.defineProperty(I,"mergeMapTo",{enumerable:!0,get:function(){return W9.mergeMapTo}});var U9=HP();Object.defineProperty(I,"mergeScan",{enumerable:!0,get:function(){return U9.mergeScan}});var $9=YP();Object.defineProperty(I,"mergeWith",{enumerable:!0,get:function(){return $9.mergeWith}});var B9=KP();Object.defineProperty(I,"min",{enumerable:!0,get:function(){return B9.min}});var H9=Mp();Object.defineProperty(I,"multicast",{enumerable:!0,get:function(){return H9.multicast}});var V9=yc();Object.defineProperty(I,"observeOn",{enumerable:!0,get:function(){return V9.observeOn}});var z9=XP();Object.defineProperty(I,"onErrorResumeNextWith",{enumerable:!0,get:function(){return z9.onErrorResumeNextWith}});var Y9=ZP();Object.defineProperty(I,"pairwise",{enumerable:!0,get:function(){return Y9.pairwise}});var K9=QP();Object.defineProperty(I,"pluck",{enumerable:!0,get:function(){return K9.pluck}});var J9=eA();Object.defineProperty(I,"publish",{enumerable:!0,get:function(){return J9.publish}});var G9=tA();Object.defineProperty(I,"publishBehavior",{enumerable:!0,get:function(){return G9.publishBehavior}});var X9=rA();Object.defineProperty(I,"publishLast",{enumerable:!0,get:function(){return X9.publishLast}});var Z9=oA();Object.defineProperty(I,"publishReplay",{enumerable:!0,get:function(){return Z9.publishReplay}});var Q9=iA();Object.defineProperty(I,"raceWith",{enumerable:!0,get:function(){return Q9.raceWith}});var e7=na();Object.defineProperty(I,"reduce",{enumerable:!0,get:function(){return e7.reduce}});var t7=aA();Object.defineProperty(I,"repeat",{enumerable:!0,get:function(){return t7.repeat}});var r7=uA();Object.defineProperty(I,"repeatWhen",{enumerable:!0,get:function(){return r7.repeatWhen}});var n7=dA();Object.defineProperty(I,"retry",{enumerable:!0,get:function(){return n7.retry}});var o7=pA();Object.defineProperty(I,"retryWhen",{enumerable:!0,get:function(){return o7.retryWhen}});var i7=qy();Object.defineProperty(I,"refCount",{enumerable:!0,get:function(){return i7.refCount}});var s7=Db();Object.defineProperty(I,"sample",{enumerable:!0,get:function(){return s7.sample}});var a7=_A();Object.defineProperty(I,"sampleTime",{enumerable:!0,get:function(){return a7.sampleTime}});var c7=mA();Object.defineProperty(I,"scan",{enumerable:!0,get:function(){return c7.scan}});var u7=yA();Object.defineProperty(I,"sequenceEqual",{enumerable:!0,get:function(){return u7.sequenceEqual}});var l7=qb();Object.defineProperty(I,"share",{enumerable:!0,get:function(){return l7.share}});var d7=wA();Object.defineProperty(I,"shareReplay",{enumerable:!0,get:function(){return d7.shareReplay}});var f7=EA();Object.defineProperty(I,"single",{enumerable:!0,get:function(){return f7.single}});var p7=TA();Object.defineProperty(I,"skip",{enumerable:!0,get:function(){return p7.skip}});var h7=SA();Object.defineProperty(I,"skipLast",{enumerable:!0,get:function(){return h7.skipLast}});var _7=kA();Object.defineProperty(I,"skipUntil",{enumerable:!0,get:function(){return _7.skipUntil}});var m7=PA();Object.defineProperty(I,"skipWhile",{enumerable:!0,get:function(){return m7.skipWhile}});var v7=IA();Object.defineProperty(I,"startWith",{enumerable:!0,get:function(){return v7.startWith}});var y7=bc();Object.defineProperty(I,"subscribeOn",{enumerable:!0,get:function(){return y7.subscribeOn}});var b7=RA();Object.defineProperty(I,"switchAll",{enumerable:!0,get:function(){return b7.switchAll}});var g7=kc();Object.defineProperty(I,"switchMap",{enumerable:!0,get:function(){return g7.switchMap}});var w7=CA();Object.defineProperty(I,"switchMapTo",{enumerable:!0,get:function(){return w7.switchMapTo}});var E7=jA();Object.defineProperty(I,"switchScan",{enumerable:!0,get:function(){return E7.switchScan}});var T7=Sc();Object.defineProperty(I,"take",{enumerable:!0,get:function(){return T7.take}});var S7=jb();Object.defineProperty(I,"takeLast",{enumerable:!0,get:function(){return S7.takeLast}});var O7=NA();Object.defineProperty(I,"takeUntil",{enumerable:!0,get:function(){return O7.takeUntil}});var k7=DA();Object.defineProperty(I,"takeWhile",{enumerable:!0,get:function(){return k7.takeWhile}});var P7=LA();Object.defineProperty(I,"tap",{enumerable:!0,get:function(){return P7.tap}});var A7=Fb();Object.defineProperty(I,"throttle",{enumerable:!0,get:function(){return A7.throttle}});var I7=WA();Object.defineProperty(I,"throttleTime",{enumerable:!0,get:function(){return I7.throttleTime}});var x7=Oc();Object.defineProperty(I,"throwIfEmpty",{enumerable:!0,get:function(){return x7.throwIfEmpty}});var R7=$A();Object.defineProperty(I,"timeInterval",{enumerable:!0,get:function(){return R7.timeInterval}});var M7=sf();Object.defineProperty(I,"timeout",{enumerable:!0,get:function(){return M7.timeout}});var C7=BA();Object.defineProperty(I,"timeoutWith",{enumerable:!0,get:function(){return C7.timeoutWith}});var j7=HA();Object.defineProperty(I,"timestamp",{enumerable:!0,get:function(){return j7.timestamp}});var N7=Tb();Object.defineProperty(I,"toArray",{enumerable:!0,get:function(){return N7.toArray}});var D7=YA();Object.defineProperty(I,"window",{enumerable:!0,get:function(){return D7.window}});var L7=JA();Object.defineProperty(I,"windowCount",{enumerable:!0,get:function(){return L7.windowCount}});var q7=XA();Object.defineProperty(I,"windowTime",{enumerable:!0,get:function(){return q7.windowTime}});var F7=eI();Object.defineProperty(I,"windowToggle",{enumerable:!0,get:function(){return F7.windowToggle}});var W7=rI();Object.defineProperty(I,"windowWhen",{enumerable:!0,get:function(){return W7.windowWhen}});var U7=sI();Object.defineProperty(I,"withLatestFrom",{enumerable:!0,get:function(){return U7.withLatestFrom}});var $7=aI();Object.defineProperty(I,"zipAll",{enumerable:!0,get:function(){return $7.zipAll}});var B7=uI();Object.defineProperty(I,"zipWith",{enumerable:!0,get:function(){return B7.zipWith}})});var $b=O(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});hh.HttpCallMode=void 0;var mI;(function(o){o.DIRECT="direct",o.INTEGRATION_SERVICE="integrationService"})(mI||(hh.HttpCallMode=mI={}))});var vI=O(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});_h.BreakTaskHandler=void 0;var H7=Et(),Bb=class extends H7.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r,e){this.logger.info(`Executing BreakTask: ${t}`);let n=this.getRuntimeExpressionArgs();if(n.$runtime.control||(n.$runtime.control={}),r.break){let i=r.break;this.logger.debug(`BreakTask '${t}' > Evaluating condition from 'break' property: '${i}'`);try{this.logger.debug(`BreakTask '${t}' > Evaluating condition '${i}' with input:`,e);let s=await this.expressionHandler.evaluateDataExpression(i);this.logger.debug(`BreakTask '${t}' > Condition evaluated to: ${s}`),(typeof s=="boolean"?s:typeof s=="string"?s.toLowerCase()==="true":!!s)?(this.logger.debug(`BreakTask '${t}' > Condition from 'break' property evaluated to true, breaking loop`),n.$runtime.control.signalLoopExit=!0):(this.logger.debug(`BreakTask '${t}' > Condition from 'break' property evaluated to false, continuing loop`),n.$runtime.control.signalLoopExit=!1)}catch(s){this.logger.error(`Error evaluating condition '${i}' from 'break' property for BreakTask '${t}':`,void 0,s),n.$runtime.control.signalLoopExit=!1}}else this.logger.debug(`BreakTask '${t}' > No 'break' property found. Not breaking loop.`),n.$runtime.control.signalLoopExit=!1;return{success:!0,data:e}}};_h.BreakTaskHandler=Bb});var yI=O(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});mh.DoTaskHandler=void 0;var V7=Un(),z7=Et(),Hb=class extends z7.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r,e){return await V7.TaskExecutorHelper.executeTaskList(r.do,e,this.workflowConfig,this.getRuntimeExpressionArgs(),this.logger,this.expressionHandler,r.variables)}};mh.DoTaskHandler=Hb});var EI=O(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});vh.DoWhileTaskHandler=void 0;var bI=Un(),gI=tt(),Y7=qe(),K7=Ce(),J7=Et(),wI=1e4,Vb=class extends J7.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r,e){this.logger.info(`Executing DoWhileTask: ${t}`);let n=bI.TaskExecutorHelper.readAsExtendedTask({[t]:r}),i=r.doWhile,s=r.do,c=typeof r.limit=="number"?Math.min(r.limit,wI):wI;this.logger.debug(`DoWhileTask '${t}' > doWhileExpression: '${i}', limit: ${c}`);let u={success:!0,data:{}},a=0,l=!0;do{this.logger.logIterationVariables(t,Y7.TaskType.DO_WHILE,{iteration:a});let d;try{d=structuredClone(s)}catch(h){throw this.logger.error(`DoWhileTask '${t}': Failed to clone task list for iteration ${a}. Error: ${h}`),new K7.WorkflowErrorBuilder().fromError(h).setTitle((0,gI.t)(gI.ErrorKeys.TASK_EXECUTION_FAILED,{taskName:t})).build()}if(u=await bI.TaskExecutorHelper.executeTaskList(d,e,this.workflowConfig,this.getRuntimeExpressionArgs(),this.logger,this.expressionHandler,n.variables),!u.success)break;let f=this.getRuntimeExpressionArgs();if(f.$runtime.control?.signalLoopExit===!0){this.logger.debug(`DoWhileTask '${t}' > Loop exit signaled during iteration ${a}`),f.$runtime.control.signalLoopExit=!1;break}if(this.getRuntimeExpressionArgs().$runtime.control.signalWorkflowEnd)return this.logger.warn(`DoWhileTask '${t}' > iteration ${a} ended with result: ${u}`),u;a++,l=await this.expressionHandler.evaluateConditionExpression(i),this.logger.debug(`DoWhileTask '${t}' > iteration with index ${a-1} ended with result: ${u}. DoWhileExpression '${i}' evaluated to ${l}`)}while(l&&a<c);return a>=c&&this.logger.warn(`DoWhileTask '${t}' reached iteration limit (${c})`),u}};vh.DoWhileTaskHandler=Vb});var OI=O(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});yh.ForTaskHandler=void 0;var TI=Un(),zb=qe(),SI=Ce(),G7=Et(),Yb=class extends G7.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r,e){this.logger.info(`Executing ForTask: ${t}`);let n=TI.TaskExecutorHelper.readAsExtendedTask({[t]:r}),i=r.for,s=i.in;if(!s?.trim())return this.logger.error(`ForTask '${t}' has an empty in expression`),{success:!1,error:new SI.WorkflowErrorBuilder().setTitle(`ForTask '${t}' has an empty in expression`).setDetail(`ForTask '${t}' cannot be executed without an iterable collection in expression`).setStatus(zb.WorkflowErrorStatus.BAD_REQUEST).setType(zb.WorkflowErrorType.EXPRESSION_ERROR).build()};let c=i.each||"item",u=i.at||"index",a=r.while,l=r.do;this.logger.debug(`ForTask '${t}' > eachVariable: '${c}', atVariable: '${u}'`);let d=await this.expressionHandler.evaluateDataExpression(s),f={success:!0,data:{}};if(d?.length){let h=0;for(let _ of d){if(await this.expressionHandler.setVariables({[`$${c}`]:_,[`$${u}`]:h}),n.variables||(n.variables={}),n.variables[c]=_,n.variables[u]=h,a){let b=await this.expressionHandler.evaluateConditionExpression(a);if(this.logger.debug(`ForTask '${t}' > whileExpression: '${a}' >> , ${b?"continue":"break"}`),!b)break}this.logger.debug(`Iteration started: '${t}' > iteration ${h} with input: ${_}`),this.logger.logIterationVariables(t,zb.TaskType.FOR,{[c]:_,[u]:h});let m;try{m=structuredClone(l)}catch(b){throw this.logger.error(`Failed to clone task list for iteration ${h}. Error: ${b}`),new SI.WorkflowErrorBuilder().setTitle(`ForTask '${t}' failed: Unable to clone tasks`).setDetail(`Task cloning is required for proper expression evaluation in loops. Cloning failed with error: ${b}`).setData({taskName:t,iteration:h}).build()}if(f=await TI.TaskExecutorHelper.executeTaskList(m,e,this.workflowConfig,this.getRuntimeExpressionArgs(),this.logger,this.expressionHandler,n.variables),!f.success)break;let v=this.getRuntimeExpressionArgs();if(v.$runtime.control?.signalLoopExit===!0){this.logger.debug(`ForTask '${t}' > Loop exit signaled during iteration ${h}`),v.$runtime.control.signalLoopExit=!1;break}if(this.getRuntimeExpressionArgs().$runtime.control.signalWorkflowEnd)return this.logger.debug(`ForTask '${t}' > iteration ${h} completed with input: ${_} and result: ${f}`),f;this.logger.debug(`Iteration completed: '${t}' > iteration ${h} with input: ${_} and result: ${f}`),e=f.data,n.variables&&(delete n.variables[c],delete n.variables[u]),h++}await this.expressionHandler.deleteVariables([`$${c}`,`$${u}`])}return f.resolvedProperties={in:d},f}};yh.ForTaskHandler=Yb});var qo=O(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.getHttpErrorDetails=je.getHttpErrorStatus=void 0;je.extractVendorProcessingTime=eJ;je.getUnifiedHttpAuthMode=kI;je.isSwitchTask=PI;je.isTaskWithTransition=tJ;je.isUnifiedHttpTask=Xb;je.isHttpTask=Zb;je.isIntSvcTask=AI;je.isIntSvcEventTask=II;je.isScriptTask=xI;je.isSetTask=Qb;je.isForTask=RI;je.isWhileTask=MI;je.isDoWhileTask=CI;je.isRaiseTask=jI;je.isTryTask=NI;je.isDoTask=DI;je.isWaitTask=LI;je.isBreakTask=qI;je.isEndTask=FI;je.isWorkflowStartTask=WI;je.getHttpCallMode=rJ;je.isResponseTask=Gb;je.getTaskType=nJ;je.isTaskDisabled=oJ;var Jb=qe(),pt=al(),Pc=Mv(),Kb=$b(),X7=Ce(),Z7=vs(),Q7=Un();function eJ(o){let t=Z7.GenericUtils.safelyExtractProperty(o,"vendorProcessingTimeMs");return t!==void 0?t:void 0}function kI(o){let t=o.with?.bodyParameters?.authentication;if(!t&&typeof o.with?.bodyParameters=="string")try{let e=(o.with?.bodyParameters).trim();e.startsWith("${")&&e.endsWith("}")&&(t=JSON.parse(e.slice(2,-1)).authentication)}catch(e){console.warn(`Error parsing body parameters for Unified HTTP task as JSON: ${e}`)}let r=t?.trim()?.toLowerCase();if(!r||!Object.values(Pc.HttpAuthMode).some(e=>r===e))throw new X7.WorkflowErrorBuilder().setType(Jb.WorkflowErrorType.VALIDATION_ERROR).setStatus(Jb.WorkflowErrorStatus.BAD_REQUEST).setTitle(`Empty or invalid authentication type for Unified HTTP task: ${t}`).build();return r}function PI(o){return"switch"in o}function tJ(o){return o.then!==void 0&&["continue","exit","end"].includes(o.then)}function Xb(o){return o.call===Pc.UNIFIED_HTTP_TASK_TYPE}function Zb(o){return o.call==="http"}function AI(o){return o.call===Pc.INTEGRATION_SERVICE_TASK_TYPE}function II(o){return o.call===Pc.INTEGRATION_SERVICE_EVENT_TASK_TYPE}function xI(o){return o.run?.script!==void 0}function Qb(o){return o.set!==void 0}function RI(o){return o.for!==void 0&&o.do!==void 0&&o.for?.each!==void 0}function MI(o){return o.for!==void 0&&o.do!==void 0&&o.while!==void 0&&!o.for?.each}function CI(o){return o.for!==void 0&&o.do!==void 0&&o.doWhile!==void 0}function jI(o){return o.raise!==void 0}function NI(o){return o.try!==void 0}function DI(o){return o.do!==void 0&&o.for===void 0}function LI(o){return o.wait!==void 0}function qI(o){return o.break!==void 0}function FI(o){return o.then==="end"}function WI(o){return o.name==="WorkflowStart"}function rJ(o){return Zb(o)?Kb.HttpCallMode.DIRECT:Xb(o)?kI(o)===Pc.HttpAuthMode.MANUAL?Kb.HttpCallMode.DIRECT:Kb.HttpCallMode.INTEGRATION_SERVICE:null}function Gb(o){return o.response!==void 0||Qb(o)&&FI(o)}function nJ(o){return Zb(o)||Xb(o)?pt.TaskType.HTTP:AI(o)?pt.TaskType.INTSVC:xI(o)?pt.TaskType.SCRIPT:Qb(o)?qI(o)?pt.TaskType.BREAK:WI(o)?pt.TaskType.WORKFLOW_START:Gb(o)?pt.TaskType.RESPONSE:pt.TaskType.SET:RI(o)?pt.TaskType.FOR:PI(o)?pt.TaskType.SWITCH:DI(o)?pt.TaskType.DO:jI(o)?pt.TaskType.RAISE:NI(o)?pt.TaskType.TRY:LI(o)?pt.TaskType.WAIT:CI(o)?pt.TaskType.DO_WHILE:MI(o)?pt.TaskType.WHILE:II(o)?pt.TaskType.INTSVC_EVENT:Gb(o)?pt.TaskType.RESPONSE:pt.TaskType.UNKNOWN}async function oJ(o,t){let r=Q7.TaskExecutorHelper.readAsExtendedTask(o);return r.if?(r.if==="${false}"?!1:await t.evaluateConditionExpression(r.if))===!1:!1}var iJ=o=>typeof o=="number"&&Number.isInteger(o)&&o>=400&&o<600?o:Jb.WorkflowErrorStatus.INTERNAL_SERVER_ERROR;je.getHttpErrorStatus=iJ;var sJ=o=>{let t=o?.content?.providerMessage,r=o?.content?.message,e=t&&r?`${r} - ${t}`:t||r;if(!e){let n=o?.content;e=n?JSON.stringify(n):""}return e};je.getHttpErrorDetails=sJ});var YI=O(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.MAX_MULTIPART_PARTS=rt.MAX_MULTIPART_TOTAL_BYTES=rt.MAX_MULTIPART_PART_BYTES=void 0;rt.resolveMultipartParts=uJ;rt.normalizeMultipartPartsInput=dJ;rt.bodyFieldsToMultipartParts=fJ;rt.sanitizePartFilename=bh;rt.isMultipartPartInput=og;rt.estimateBase64DecodedBytes=zI;var ng=Oe(),UI=qe(),aJ=Ce(),gh=Ti(),Ac=sc();rt.MAX_MULTIPART_PART_BYTES=Ac.MAX_CONVERT_FILE_BYTES;rt.MAX_MULTIPART_TOTAL_BYTES=Ac.MAX_CONVERT_FILE_BYTES;rt.MAX_MULTIPART_PARTS=100;var BI="application/octet-stream",cJ={downloadBlobFile:gh.downloadBlobFileWithFriendlyError};async function uJ(o,t,r,e=cJ){if(o===void 0)return;if(!Array.isArray(o))throw Fr("Expected an array of parts with a name and value.");lJ(o);let n=new tg,i=[];for(let[s,c]of o.entries())i.push(await pJ(c,s,t,r,e,n));return i}function lJ(o){if(o.length>rt.MAX_MULTIPART_PARTS)throw Fr(`The form has ${o.length} parts, above the limit of ${rt.MAX_MULTIPART_PARTS}.`);let t=0;for(let r of o){if(!og(r)||!(0,ng.isBlobFileReference)(r.value))continue;let e=(0,gh.declaredRefSize)(r.value);e!==void 0&&(Li(r.name,e,"attachment"),t+=e)}if(t>rt.MAX_MULTIPART_TOTAL_BYTES)throw VI(t)}var tg=class{constructor(){this.used=0}add(t){if(this.used+=t.value instanceof Blob?t.value.size:new TextEncoder().encode(t.value).byteLength,this.used>rt.MAX_MULTIPART_TOTAL_BYTES)throw VI(this.used);return t}};async function dJ(o,t){if(typeof o!="string")return o;let r=o.trim();if(r.length===0)return[];let e;try{e=JSON.parse(r)}catch{throw Fr("The value is a string but not a JSON array of parts.")}if(!Array.isArray(e))throw Fr("Expected an array of parts with a name and value.");return t(e)}function fJ(o){if(!(!(0,gh.isPlainObject)(o)||(0,ng.isBlobFileReference)(o)))return Object.entries(o).filter(([,t])=>t!==void 0).map(([t,r])=>({name:t,value:r}))}function bh(o){if(typeof o!="string")return;let r=(o.split(/[\\/]/).pop()??"").replace(/[\u0000-\u001f\u007f]/g,"").trim();return r.length>0?r:void 0}function og(o){return(0,gh.isPlainObject)(o)?typeof o.name=="string"&&o.name.trim().length>0&&"value"in o:!1}async function pJ(o,t,r,e,n,i){let s=hJ(o,t),{name:c,value:u,contentType:a,filename:l}=s;return(0,ng.isBlobFileReference)(u)?i.add(await _J(s,u,r,e,n)):s.encoding==="base64"?i.add(HI(c,u,a,l)):i.add(mJ(c,u,a,l)??vJ(c,u,a,l))}function hJ(o,t){if(!og(o))throw Fr(`Part #${t+1} must be an object with a non-empty 'name' and a 'value'.`);let{name:r,value:e,encoding:n}=o;if(e==null)throw Fr(`Part '${r}' has no value.`);let i=$I(o.contentType,r,"contentType"),s=bh($I(o.filename,r,"filename"));if(n!==void 0&&n!=="base64")throw Fr(`Part '${r}' has an unsupported encoding '${String(n)}'. Only 'base64' is supported.`);return{name:r,value:e,contentType:i,filename:s,encoding:n}}async function _J(o,t,r,e,n){let{name:i,contentType:s,filename:c}=o,u=await n.downloadBlobFile(r,e,t);if(Li(i,u.content.byteLength,"attachment"),o.encoding==="base64"){let l=c??bh(t.FullName.replace(/\.base64$/i,""));return HI(i,new TextDecoder().decode(u.content),s,l)}let a=s??t.MimeType??u.mimeType;return{name:i,value:new Blob([u.content],{type:a}),filename:c??bh(t.FullName),contentType:a}}function HI(o,t,r,e){if(typeof t!="string"||!(0,Ac.isValidBase64)(t))throw Fr(`Part '${o}' declares encoding 'base64' but its value is not a valid base64 string.`);Li(o,zI(t),"inline");let n=(0,Ac.base64ToUint8Array)(t);return Li(o,n.byteLength,"inline"),rg(o,n,r,e)}function mJ(o,t,r,e){if(t instanceof Uint8Array)return Li(o,t.byteLength,"inline"),rg(o,t,r,e);if(t instanceof ArrayBuffer)return Li(o,t.byteLength,"inline"),rg(o,new Uint8Array(t),r,e);if(t instanceof Blob){Li(o,t.size,"inline");let n=r??(t.type||BI);return{name:o,value:t.type===n?t:new Blob([t],{type:n}),filename:e,contentType:n}}}function vJ(o,t,r,e){return typeof t=="string"?eg(o,t,r,e):typeof t=="number"||typeof t=="boolean"||typeof t=="bigint"?eg(o,String(t),r,e):eg(o,JSON.stringify(t),r,e)}function eg(o,t,r,e){return r?{name:o,value:new Blob([t],{type:r}),filename:e,contentType:r}:{name:o,value:t,filename:e,contentType:r}}function rg(o,t,r,e){let n=r??BI;return{name:o,value:new Blob([t],{type:n}),filename:e,contentType:n}}function Li(o,t,r){if(t>rt.MAX_MULTIPART_PART_BYTES){let e=Math.floor(rt.MAX_MULTIPART_PART_BYTES/1048576);throw Fr(`Part '${o}' is ${t} bytes, above the ${e} MB limit for a multipart part. ${r==="inline"?"Pass the file as an attachment reference instead.":"Split the upload or use a smaller file."}`)}}function VI(o){let t=Math.floor(rt.MAX_MULTIPART_TOTAL_BYTES/1048576);return Fr(`The parts add up to ${o} bytes, above the ${t} MB limit for a multipart body. Split the upload or use smaller files.`)}function zI(o){let t=(0,Ac.normalizeBase64)(o),r=t.endsWith("==")?2:Number(t.endsWith("="));return Math.max(0,Math.floor(t.length*3/4)-r)}function $I(o,t,r){if(o==null)return;if(typeof o!="string")throw Fr(`Part '${t}' has a non-string '${r}'.`);let e=o.trim();return e.length>0?e:void 0}function Fr(o){return new aJ.WorkflowErrorBuilder().setType(UI.WorkflowErrorType.VALIDATION_ERROR).setStatus(UI.WorkflowErrorStatus.BAD_REQUEST).setTitle(`Invalid multipart form data. ${o}`).build()}});var cg=O(fn=>{"use strict";var yJ=fn&&fn.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),bJ=fn&&fn.__setModuleDefault||(Object.create?function(o,t){Object.defineProperty(o,"default",{enumerable:!0,value:t})}:function(o,t){o.default=t}),gJ=fn&&fn.__importStar||function(){var o=function(t){return o=Object.getOwnPropertyNames||function(r){var e=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[e.length]=n);return e},o(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var e=o(t),n=0;n<e.length;n++)e[n]!=="default"&&yJ(r,t,e[n]);return bJ(r,t),r}}();Object.defineProperty(fn,"__esModule",{value:!0});fn.HttpTaskHandler=void 0;var wt=Oe(),KI=qo(),dn=tt(),qi=qe(),wJ=Va(),ua=Ce(),ig=oc(),EJ=Et(),JI=Ti(),TJ=sc(),sg=YI(),la=gJ(Bl()),ag=class extends EJ.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r,e){let n=r.with?.endpoint,{proxyConfig:i}=this.workflowConfig,s={endpoint:n,method:r.with?.method,proxyConfig:i},c={};try{let u={headers:r.with?.headers,body:r.with?.body,query:r.with?.query,multipartFormData:r.with?.multipartFormData},a=await this.expressionHandler.evaluateDataExpression(u),l=!i?.url||i.version===wt.ProxyVersion.V2,d=l&&(!i?.url||la.commonsSupportsStreamBody()&&la.supportsRequestStreamBody()),f=a.multipartFormData!==void 0,h=f?await this.resolveMultipartBody(a.multipartFormData,a.body):void 0,{body:_,headers:m,loggableBody:v}=await(0,JI.materializeBlobRefBody)(f?void 0:a.body,a.headers,this.workflowConfig,this.logger,{spliceNestedBase64:l,streamedSplice:d,streamWholeBodyRefs:d});if(r.with?.endpoint){let R=await this.expressionHandler.resolvePlaceHolder(r.with?.endpoint,e);if(!R||!R.trim())throw new ua.WorkflowErrorBuilder().setType(qi.WorkflowErrorType.VALIDATION_ERROR).setStatus(qi.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,dn.t)(dn.ErrorKeys.URL_REQUIRED)).setData({taskName:t}).build();if(!this.isValidWebUrl(R))throw new ua.WorkflowErrorBuilder().setType(qi.WorkflowErrorType.VALIDATION_ERROR).setStatus(qi.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,dn.t)(dn.ErrorKeys.INVALID_URL,{url:(0,wt.stripUrlQuery)(R)})).setData({taskName:t}).build();n=R}else throw new ua.WorkflowErrorBuilder().setType(qi.WorkflowErrorType.VALIDATION_ERROR).setStatus(qi.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,dn.t)(dn.ErrorKeys.URL_REQUIRED)).setData({taskName:t}).build();let b=(0,ig.isFirstPartyHost)(n,this.workflowConfig.baseUrl);(0,ig.applyOutboundTraceHeaders)(m,{telemetryConfig:this.workflowConfig.telemetryConfig,baggage:this.workflowConfig.tracingConfig?.baggage,firstParty:b});let g=i?.url?{url:i.url,authToken:this.workflowConfig.accessToken,version:i.version,responseHeaderPrefix:i.responseHeaderPrefix}:void 0,w=(0,wJ.resolveTransportRetryConfig)(this.getRuntimeExpressionArgs(),this.logger,t),T={url:n,method:(0,wt.getHttpMethod)(String(r.with?.method)),headers:m,queryParameters:a.query,body:_,multipartFormData:h,proxySettings:g,retryConfig:w,streamFileResponse:la.commonsSupportsBlobStreaming(),verboseLoggingEnabled:this.getRuntimeExpressionArgs().$runtime?.metadata?.verboseDataLogging},P={type:wt.ActivityType.HttpRequest,properties:T,name:t};c={url:T.url,method:T.method,headers:T.headers,query:T.queryParameters,body:v??T.body};let k;if(_ instanceof ReadableStream&&!la.commonsSupportsStreamBody())k=await la.sendStreamedSpliceRequest(T,this.logger,{telemetryConfig:this.workflowConfig.telemetryConfig,baggage:this.workflowConfig.tracingConfig?.baggage,baseUrl:this.workflowConfig.baseUrl});else{let R=!1;if(_ instanceof ReadableStream&&i?.url&&(T.body=la.trackFirstPull(_,()=>{R=!0})),k=await new wt.HttpRequestActivity(P,this.logger,t).execute(),!k.success&&!k.data&&_ instanceof ReadableStream&&i?.url&&!R){this.logger.warn(`[HttpTaskHandler] Streamed request body was rejected before transmission (${(0,wt.getErrorMessage)(k.error)}); retrying '${t}' with a buffered body`);let j=await(0,JI.materializeBlobRefBody)(a.body,a.headers,this.workflowConfig,this.logger,{spliceNestedBase64:l,streamedSplice:!1,streamWholeBodyRefs:!1});T.body=j.body,T.headers=j.headers,(0,ig.applyOutboundTraceHeaders)(T.headers,{telemetryConfig:this.workflowConfig.telemetryConfig,baggage:this.workflowConfig.tracingConfig?.baggage,firstParty:b}),k=await new wt.HttpRequestActivity(P,this.logger,t).execute()}}if(v!==void 0&&k.data?.request&&(k.data.request.body=v),k.success&&k.data&&(k.data.content instanceof ReadableStream||(0,wt.isFileResponse)(k.data.headers)&&k.data.content instanceof Uint8Array)){let R=k.data.content,C=k.data.headers,j=z=>{let K=Object.keys(C).find(se=>se.toLowerCase()===z);return K!==void 0?C[K]:void 0},L=j("content-type")??"application/octet-stream",D=r.with?.outputFileName,F=(0,wt.generateDownloadFileName)(t,L,C,D),q;if(R instanceof ReadableStream){let z=j("content-encoding")?.trim().toLowerCase(),K=Number(j("content-length")??NaN),se=(z===void 0||z==="identity")&&Number.isFinite(K)&&K>=0?K:void 0,X=wt.OrchestratorUtils.uploadBlobStream,he=!1;try{q=await X(this.workflowConfig.baseUrl,this.workflowConfig.accessToken,this.workflowConfig.organizationId,this.workflowConfig.tenantId,(0,TJ.streamToAsyncIterable)(R),F,L,this.logger,"byte-array",this.workflowConfig.processConfig?.folderKey,{knownSize:se}),he=!0}finally{if(!he)try{await R.cancel()}catch{}}}else q=await wt.OrchestratorUtils.uploadFileToBlob(this.workflowConfig.baseUrl,this.workflowConfig.accessToken,this.workflowConfig.organizationId,this.workflowConfig.tenantId,R,F,L,this.logger,this.workflowConfig.processConfig?.folderKey);k.data.content=q}let x=k.success||!k.data?k.data:{...k.data,request:(0,wt.redactHttpRequest)(k.data.request)};return{success:k.success,data:x,resolvedProperties:c,error:k.success?void 0:new ua.WorkflowErrorBuilder().fromError(new Error((0,wt.stripUrlQueries)((0,wt.getErrorMessage)(k.error)))).setStatus((0,KI.getHttpErrorStatus)(k.data?.statusCode)).setTitle((0,dn.t)(dn.ErrorKeys.FAILED_HTTP_CALL_TO,{endpoint:(0,wt.stripUrlQuery)(n)})).setDetail((0,KI.getHttpErrorDetails)(k.data)).setData({taskName:t,cause:x}).build()}}catch(u){return{success:!1,resolvedProperties:c,error:(0,ua.isWorkflowError)(u)?u:new ua.WorkflowErrorBuilder().fromError(u).setType(qi.WorkflowErrorType.COMMUNICATION_ERROR).setTitle((0,dn.t)(dn.ErrorKeys.FAILED_HTTP_CALL)).setData({taskName:t,cause:{...s,endpoint:typeof s.endpoint=="string"?(0,wt.stripUrlQuery)(s.endpoint):s.endpoint}}).build()}}}async resolveMultipartBody(t,r){let e=await(0,sg.normalizeMultipartPartsInput)(t,i=>this.expressionHandler.evaluateDataExpression(i)),n=Array.isArray(e)?[...(0,sg.bodyFieldsToMultipartParts)(r)??[],...e]:e;return(0,sg.resolveMultipartParts)(n,this.workflowConfig,this.logger)}isValidWebUrl(t){if(!t)return!1;try{let r=new URL(t.trim());return["http:","https:"].includes(r.protocol)}catch(r){let e=typeof r?.name=="string"?r.name:"Error";return this.logger.warn(`Invalid Web URL in HTTP task: ${(0,wt.stripUrlQuery)(t)}. Error: ${e}`),!1}}};fn.HttpTaskHandler=ag});var lg=O(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});Eh.IntSvcTaskHandlerUtil=void 0;var Bt=fr(),wh=Fv(),SJ=za(),OJ=rc(),kJ=oc(),GI=o=>o==="query"||o==="path",ug=class{static prepareRequestHeaders(t,r,e,n){let i=t??{};return i[Bt.X_UIPATH_INTERNAL_TENANT_ID]=e.tenantId,i[Bt.X_UIPATH_INTERNAL_ORG_ID]=e.organizationId,i[Bt.X_UIPATH_CORRELATION_ID]=e.telemetryConfig?.traceId||r,e?.tracingConfig&&(i[Bt.X_UIPATH_TRACE_VIEW_TRACE_ID]=e?.tracingConfig?.traceId,i[Bt.X_UIPATH_TRACE_VIEW_PARENT_SPAN_ID]=(0,OJ.currentTraceContext)()?.spanId??e?.tracingConfig?.parentSpanId),(0,kJ.applyOutboundTraceHeaders)(i,{telemetryConfig:e?.telemetryConfig,baggage:e?.tracingConfig?.baggage,firstParty:!0}),i[Bt.X_UIPATH_SOURCE]=Bt.ApiWorkflowJobSource,i[Bt.X_UIPATH_ORIGINATOR]=e.source||Bt.ApiWorkflowJobSource,n&&(i[Bt.X_UIPATH_IS_DESIGN_API]="true"),e.licensingContext&&(i[Bt.X_UIPATH_LICENSING_CONTEXT]=e.licensingContext),e.processConfig?.jobKey&&(i[Bt.X_UIPATH_JOB_ID]=e.processConfig.jobKey),i}static resolveConnectionId(t,r,e,n){let i=typeof t.with?.connectionId=="string"?t.with.connectionId:"",s=typeof t.with?.connectionResourceId=="string"?t.with.connectionResourceId:"";return SJ.ResourceOverrideResolver.getOverriddenValue(r,e,n,"ConnectionId",i,s)}static getBaseUrl(t){return t.automationEdgeFqdn?`https://${t.automationEdgeFqdn}`:t.baseUrl}static resolveDateFields(t,r){let e=t?.inputMetadata?.dateFields;if(Array.isArray(e))return e;let n=t?.configuration;return n?this.extractDateFieldsFromConfig(n,r):[]}static extractDateFieldsFromConfig(t,r){if(!t||typeof t!="string")return r.warn("Configuration is empty or invalid, no date fields to extract"),[];try{let n=JSON.parse(t)?.optionalConfiguration?.fieldsContainer?.inputFields;if(!Array.isArray(n))return r.warn("No input fields found in configuration"),[];let i=n.filter(s=>{let c=s.format==="date-time",u=s.mask&&typeof s.mask=="string"&&s.mask.trim()!=="",a=s.name&&typeof s.name=="string";return c&&u&&a}).map(s=>({name:s.name,mask:s.mask,format:s.format}));return i.length>0&&r.debug(`Extracted ${i.length} date field(s) from configuration: ${i.map(s=>s.name).join(", ")}`),i}catch(e){return r.error(`Failed to parse configuration for date fields: ${e.message}`),[]}}static resolveSolutionResourceFields(t,r){let e=t?.inputMetadata?.solutionResourceFields;return Array.isArray(e)?e.filter(n=>typeof n?.name=="string"&&typeof n?.resourceKind=="string"&&n.resourceKind!==""&&GI(n?.location)):this.extractSolutionResourceFieldsFromConfig(t?.configuration,r)}static extractSolutionResourceFieldsFromConfig(t,r){if(!t)return[];try{let n=JSON.parse(t)?.optionalConfiguration?.fieldsContainer?.inputFields;if(!Array.isArray(n))return[];let i=n.filter(s=>typeof s?.name=="string"&&typeof s?.design?.solutionResourceKind=="string"&&s.design.solutionResourceKind!==""&&GI(s.fieldLocation)).map(s=>({name:s.name,location:s.fieldLocation,resourceKind:s.design.solutionResourceKind}));return i.length>0&&r.debug(`Extracted ${i.length} solution-resource field(s) from configuration: ${i.map(s=>s.name).join(", ")}`),i}catch(e){return r.error(`Failed to parse configuration for solution-resource fields: ${e.message}`),[]}}static collectDateFieldOffsets(t,r,e){let n=new Map,i=/new\s+Date\s*\(/;try{if(t)for(let[s,c]of Object.entries(t)){if(typeof c!="string"||!i.test(c))continue;let a=wh.DateFormatUtils.extractOffsetFromDateExpression(c,e)||Bt.DEFAULT_TIMEZONE_OFFSET;n.set(s,a)}if(r)for(let[s,c]of Object.entries(r)){if(typeof c!="string"||!i.test(c))continue;let a=wh.DateFormatUtils.extractOffsetFromDateExpression(c,e)||Bt.DEFAULT_TIMEZONE_OFFSET;n.set(s,a)}return n}catch(s){return e.error(`Failed to collect date field offsets: ${s.message}`),n}}static formatDateFieldsInParameters(t,r,e,n,i){try{if(t.length===0){i.warn("No date fields found, skipping date formatting");return}let s=new Map;for(let c of t)s.set(c.name,c.mask);for(let[c,u]of r){let a=s.get(c);if(!a){i.warn(`Field ${c} not found in configuration, skipping`);continue}if(e&&c in e){let l=e[c];if(l&&typeof l.toISOString=="function"){let d=l;if(isNaN(d.getTime())){i.warn(`Field ${c} contains an invalid Date, skipping formatting.`);continue}let f=wh.DateFormatUtils.formatDate(d.toISOString(),a,u,i);e[c]=f,i.info(`Formatted query param ${c}: ${d.toISOString()} \u2192 ${f} (offset: ${u}, mask: ${a})`)}else i.warn(`Field ${c} is not a Date object, skipping formatting. Value: ${l}`)}if(n&&c in n){let l=n[c];if(l&&typeof l.toISOString=="function"){let d=l;if(isNaN(d.getTime())){i.warn(`Field ${c} contains an invalid Date, skipping formatting.`);continue}let f=wh.DateFormatUtils.formatDate(d.toISOString(),a,u,i);n[c]=f,i.info(`Formatted body param ${c}: ${d.toISOString()} \u2192 ${f} (offset: ${u}, mask: ${a})`)}else i.warn(`Field ${c} is not a Date object, skipping formatting. Value: ${l}`)}}}catch(s){i.error(`Error during date formatting: ${s.message}. Skipping date formatting.`)}}};Eh.IntSvcTaskHandlerUtil=ug});var ZI=O(Th=>{"use strict";Object.defineProperty(Th,"__esModule",{value:!0});Th.IntSvcsEventTaskHandler=void 0;var XI=Oe(),dg=fr(),fg=qo(),mr=tt(),vr=qe(),PJ=Va(),Fi=Ce(),pg=lg(),AJ=za(),IJ=Et(),hg=class extends IJ.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r){let e=this.getRuntimeExpressionArgs();if(!r.with?.connectionId)throw new Fi.WorkflowErrorBuilder().setType(vr.WorkflowErrorType.VALIDATION_ERROR).setStatus(vr.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,mr.t)(mr.ErrorKeys.CONNECTION_REQUIRED,{taskName:t})).setData({taskName:t}).build();let n=e.$workflow?.input,i=n?.UiPathAdditionalEventData;if(n&&Object.keys(n).length>0&&Object.values(n).some(_=>_==null?!1:typeof _=="string"?_.trim()!=="":!0)&&!i)return{success:!0,data:{content:n},resolvedProperties:void 0,error:void 0};let c=this.extractProcessedEventId(i);if(i&&(!c||c.trim()===""))throw new Fi.WorkflowErrorBuilder().setType(vr.WorkflowErrorType.VALIDATION_ERROR).setStatus(vr.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,mr.t)(mr.ErrorKeys.EVENT_ID_PARSE_FAILED)).setData({taskName:t,uiPathAdditionalEventData:i}).build();let u=r.with?.eventMode,a=(e.$runtime?.metadata?.isRunningInDesigner??!1)||(this.workflowConfig.processConfig?.isStudioDebugContext??!1);if(u===vr.IntSvcEventMode.WEBHOOKS&&!a&&!c)throw new Fi.WorkflowErrorBuilder().setType(vr.WorkflowErrorType.VALIDATION_ERROR).setStatus(vr.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,mr.t)(mr.ErrorKeys.DEBUG_NOT_SUPPORTED_WORKFLOW)).setData({taskName:t}).build();let l,d=this.workflowConfig.debugConfig?.useProxyForIntSvcCalls??!1;if(d){let{proxyConfig:_}=this.workflowConfig;l=_?.url?{url:_.url,authToken:this.workflowConfig.accessToken,version:_.version,responseHeaderPrefix:_.responseHeaderPrefix}:void 0}let f={baseUrl:pg.IntSvcTaskHandlerUtil.getBaseUrl(this.workflowConfig),accessToken:this.workflowConfig.accessToken,connectionId:pg.IntSvcTaskHandlerUtil.resolveConnectionId(r,this.workflowConfig,this.logger,"EventTrigger"),connectorKey:r.with?.connector,orgId:this.workflowConfig.organizationId,tenantId:this.workflowConfig.tenantId,useProxyServer:d,proxySettings:l,objectName:"",eventType:""},h={};try{if(f.retryConfig=(0,PJ.resolveTransportRetryConfig)(this.getRuntimeExpressionArgs(),this.logger,t),f.headers=pg.IntSvcTaskHandlerUtil.prepareRequestHeaders(r.with?.headers||{},e.$runtime.metadata.workflowRunId,this.workflowConfig),c)this.logger.info("Using processedEventId from UiPathAdditionalEventData",{processedEventId:c}),f.eventId=c,f.objectName=n.UiPathEventObjectType,f.eventType=n.UiPathEvent;else{this.logger.info("Making API call to get the event data"),f.objectName=r.with?.objectName,f.eventType=r.with?.eventType,f.filterExpression=r.with?.filterExpression;let w=r.with?.eventType,T=AJ.ResourceOverrideResolver.getPropertyBindings(this.workflowConfig,this.logger,w);if(T)f.queryParameters=T,h={query:T};else{let P={queryParameters:r.with.queryParameters,pathParameters:r.with.pathParameters},k=await this.expressionHandler.evaluateDataExpression(P);k?.queryParameters&&(f.queryParameters=k.queryParameters||{}),k?.pathParameters&&(f.pathParameters=k.pathParameters||{}),h={queryParameters:k.queryParameters,pathParameters:k.pathParameters}}}let _={type:XI.ActivityType.IntSvcEventRequest,name:t,properties:f},v=await new XI.IntSvcEventApiRequestActivity(_,this.logger,t).execute(),b=a&&u===vr.IntSvcEventMode.WEBHOOKS&&v.data?.statusCode===404&&(0,fg.getHttpErrorDetails)(v.data).toLowerCase().includes("no polling event configuration found"),g;return b?g=new Fi.WorkflowErrorBuilder().setType(vr.WorkflowErrorType.VALIDATION_ERROR).setStatus(vr.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,mr.t)(mr.ErrorKeys.DEBUG_NOT_SUPPORTED_TRIGGER)).setData({taskName:t}).build():v.success||(g=new Fi.WorkflowErrorBuilder().fromError(v.error).setStatus((0,fg.getHttpErrorStatus)(v.data?.statusCode)).setTitle((0,mr.t)(mr.ErrorKeys.FAILED_IS_EVENT_CALL)).setDetail((0,fg.getHttpErrorDetails)(v.data)).setData({taskName:t,cause:v.data}).build()),{success:v.success,data:v.data,resolvedProperties:h,error:g}}catch(_){return{success:!1,resolvedProperties:h,error:(0,Fi.isWorkflowError)(_)?_:new Fi.WorkflowErrorBuilder().fromError(_).setType(vr.WorkflowErrorType.COMMUNICATION_ERROR).setStatus(vr.WorkflowErrorStatus.INTERNAL_SERVER_ERROR).setTitle((0,mr.t)(mr.ErrorKeys.FAILED_IS_EVENT_CALL)).setData({taskName:t,cause:this.getIntsvcErrorData(f,r)}).build()}}}getIntsvcErrorData(t,r){return{[dg.X_UIPATH_INTERNAL_ORG_ID]:this.workflowConfig.organizationId,[dg.X_UIPATH_INTERNAL_TENANT_ID]:this.workflowConfig.tenantId,[dg.X_UIPATH_CONNECTOR_KEY]:r.with?.connector,connectionId:r.with?.connectionId,eventType:t.eventType,filterExpression:t.filterExpression}}extractProcessedEventId(t){if(t){if(typeof t=="object"&&t!==null)return t.processedEventId;if(typeof t=="string")try{let r=JSON.parse(t);if(typeof r=="object"&&r!==null)return r.processedEventId}catch{this.logger.error(`Failed to parse UiPathAdditionalEventData as JSON: ${t}`);return}}}};Th.IntSvcsEventTaskHandler=hg});var rx=O($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.credentialRefusalError=$n.registerOrchestratorCredential=$n.isOrchestratorCredentialsCall=void 0;var QI=Oe(),mg=fr(),da=tt(),fa=qe(),_g=Ce(),xJ="Username",ex="Password",tx=(o,t)=>{if(t in o)return o[t];let r=t.toLowerCase(),e=Object.keys(o).find(n=>n.toLowerCase()===r);return e===void 0?void 0:o[e]},RJ=o=>{if(!o)return!1;let t=o.search(/[?#]/),r=t===-1?o:o.slice(0,t),e=r.startsWith("/")?r:`/${r}`;return e===mg.ORCHESTRATOR_CREDENTIALS_ENDPOINT||e.startsWith(`${mg.ORCHESTRATOR_CREDENTIALS_ENDPOINT}/`)},MJ=(o,t)=>o?.toLowerCase()===mg.ORCHESTRATOR_CONNECTOR_KEY.toLowerCase()&&RJ(t);$n.isOrchestratorCredentialsCall=MJ;var CJ=(o,t,r,e,n)=>{if(!(0,$n.isOrchestratorCredentialsCall)(t,r))return;if(!e||typeof e!="object"||Array.isArray(e)){n?.warn(`[registerOrchestratorCredential] Credentials response is not an object (${e===null?"null":typeof e}), so no secret was registered and the credential may appear in logs and output.`);return}let i=e,s=tx(i,xJ),c=typeof s=="string"?s:void 0,u=tx(i,ex);if(typeof u=="string")return o.registerCredential(c,u);n?.warn(`[registerOrchestratorCredential] Credentials response has no string '${ex}' field, so no secret was registered and the credential may appear in logs and output. Fields present: ${Object.keys(i).join(", ")}`)};$n.registerOrchestratorCredential=CJ;var jJ=(o,t)=>{switch(o){case"too-short":return new _g.WorkflowErrorBuilder().setType(fa.WorkflowErrorType.VALIDATION_ERROR).setStatus(fa.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,da.t)(da.ErrorKeys.CREDENTIAL_PASSWORD_TOO_SHORT,{minLength:QI.MIN_SECRET_LENGTH})).setData({taskName:t}).build();case"too-common":return new _g.WorkflowErrorBuilder().setType(fa.WorkflowErrorType.VALIDATION_ERROR).setStatus(fa.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,da.t)(da.ErrorKeys.CREDENTIAL_PASSWORD_TOO_COMMON)).setData({taskName:t}).build();case"budget-full":return new _g.WorkflowErrorBuilder().setType(fa.WorkflowErrorType.RUNTIME_ERROR).setStatus(fa.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,da.t)(da.ErrorKeys.CREDENTIAL_LIMIT_EXCEEDED,{limit:QI.MAX_TRACKED_CREDENTIALS})).setData({taskName:t}).build();default:return}};$n.credentialRefusalError=jJ});var nx=O(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0});Sh.OrchestratorOverrideApplier=void 0;var NJ=Oe(),Wi=fr(),vg=class o{static apply(t,r){t.headers??(t.headers={});let e=t.headers;r.folderKey&&(e.folderkey=r.folderKey),r.folderPath&&(e["folderpath-encoded"]=o.base64Utf16LeEncode(r.folderPath),o.isByteStringSafe(r.folderPath)&&(e.folderpath=r.folderPath)),r.jobKey&&(e.jobkey=r.jobKey);let n=t.endpoint,i=t.method,s=n.includes(Wi.ORCHESTRATOR_ASSETS_ENDPOINT),c=n.includes(Wi.ORCHESTRATOR_CREDENTIALS_ENDPOINT),u=n.includes(Wi.ORCHESTRATOR_QUEUE_ITEMS_ENDPOINT),a=n.includes(Wi.ORCHESTRATOR_JOBS_ENDPOINT)&&i===NJ.HttpMethod.POST;r.resourceName&&(s?t.endpoint=o.replacePathSegment(n,`${Wi.ORCHESTRATOR_ASSETS_ENDPOINT}/`,r.resourceName):c?t.endpoint=o.replacePathSegment(n,`${Wi.ORCHESTRATOR_CREDENTIALS_ENDPOINT}/`,r.resourceName):u?t.endpoint=o.replacePathSegment(n,`${Wi.ORCHESTRATOR_QUEUE_ITEMS_ENDPOINT}/`,r.resourceName):a&&(t.body??(t.body={}),t.body.ReleaseName=r.resourceName)),r.robotKey&&c&&(t.queryParameters={...t.queryParameters,robotKey:r.robotKey}),r.source&&a&&(t.body??(t.body={}),t.body.Source=r.source)}static replacePathSegment(t,r,e){let n=new RegExp(`${r}[^\\/\\?#]+`,"g");return t.replace(n,`${r}${e}`)}static isByteStringSafe(t){for(let r=0;r<t.length;r++)if(t.charCodeAt(r)>255)return!1;return!0}static base64Utf16LeEncode(t){let r=new Uint8Array(t.length*2);for(let n=0;n<t.length;n++){let i=t.charCodeAt(n);r[n*2]=i&255,r[n*2+1]=i>>8&255}let e="";for(let n of r)e+=String.fromCharCode(n);return btoa(e)}};Sh.OrchestratorOverrideApplier=vg});var ox=O(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});Oh.SolutionResourceOverrideApplier=void 0;var DJ=fr(),yg=class{static apply(t,r,e){let n={...t.queryParameters};for(let[i,s]of Object.entries(e)){let c=s.location==="query"?n:r;s.name&&(c[i]=s.name),s.folderKey&&(c[`${i}${DJ.SOLUTION_RESOURCE_FOLDER_KEY_SUFFIX}`]=s.folderKey)}t.queryParameters=n}};Oh.SolutionResourceOverrideApplier=yg});var wg=O(kh=>{"use strict";Object.defineProperty(kh,"__esModule",{value:!0});kh.IntSvcsTaskHandler=void 0;var Fo=Oe(),Ic=fr(),bg=rx(),LJ=Qa(),ix=qo(),Ht=tt(),pn=qe(),qJ=Va(),Wo=Ce(),Ui=lg(),FJ=nx(),sx=za(),WJ=ox(),UJ=Et(),ax=Ti(),gg=class extends UJ.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r){let e=this.getRuntimeExpressionArgs();if(!r.with?.connectionId)throw new Wo.WorkflowErrorBuilder().setType(pn.WorkflowErrorType.VALIDATION_ERROR).setStatus(pn.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Ht.t)(Ht.ErrorKeys.CONNECTION_REQUIRED,{taskName:t})).setData({taskName:t}).build();if(!r.with?.endpoint)throw new Wo.WorkflowErrorBuilder().setType(pn.WorkflowErrorType.VALIDATION_ERROR).setStatus(pn.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Ht.t)(Ht.ErrorKeys.ENDPOINT_REQUIRED,{taskName:t})).setData({taskName:t}).build();if(r.with?.proxyToVendorAPI&&(!r.with?.bodyParameters?.url||!r.with?.bodyParameters?.method))throw new Wo.WorkflowErrorBuilder().setType(pn.WorkflowErrorType.VALIDATION_ERROR).setStatus(pn.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Ht.t)(Ht.ErrorKeys.URL_AND_METHOD_REQUIRED,{taskName:t})).setData({taskName:t}).build();let n,i=this.workflowConfig.debugConfig?.useProxyForIntSvcCalls??!1;if(i){let{proxyConfig:u}=this.workflowConfig;n=u?.url?{url:u.url,authToken:this.workflowConfig.accessToken,version:u.version,responseHeaderPrefix:u.responseHeaderPrefix}:void 0}let s={endpoint:r.with?.endpoint,baseUrl:Ui.IntSvcTaskHandlerUtil.getBaseUrl(this.workflowConfig),accessToken:this.workflowConfig.accessToken,connectionId:Ui.IntSvcTaskHandlerUtil.resolveConnectionId(r,this.workflowConfig,this.logger,"Connection"),connectorKey:r.with?.connector,orgId:this.workflowConfig.organizationId,tenantId:this.workflowConfig.tenantId,method:r.with?.method?(0,Fo.getHttpMethod)(String(r.with.method)):Fo.HttpMethod.GET,proxyToVendorAPI:r.with?.proxyToVendorAPI,executionType:r.with?.executionType,verboseLoggingEnabled:e.$runtime?.metadata?.verboseDataLogging,useProxyServer:i,proxySettings:n,maxRecords:Wo.GenericUtils.parseNumericValue(r.with?.maximumRecordsReturned),enableURLInputFields:r.metadata?.inputMetadata?.enableURLInputFields},c={};try{let u={headers:r.with.headers,queryParameters:r.with.queryParameters,pathParameters:r.with.pathParameters,bodyParameters:r.with.bodyParameters},a=Ui.IntSvcTaskHandlerUtil.collectDateFieldOffsets(r.with.bodyParameters,r.with.queryParameters,this.logger),l=await this.expressionHandler.evaluateDataExpression(u),d=a.size>0?Ui.IntSvcTaskHandlerUtil.resolveDateFields(r.metadata,this.logger):[];if(a.size>0&&d.length===0)throw new Wo.WorkflowErrorBuilder().setType(pn.WorkflowErrorType.VALIDATION_ERROR).setStatus(pn.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Ht.t)(Ht.ErrorKeys.DATE_FIELDS_UNRESOLVED,{taskName:t})).setData({taskName:t}).build();a.size>0&&d.length>0&&Ui.IntSvcTaskHandlerUtil.formatDateFieldsInParameters(d,a,l?.queryParameters,l?.bodyParameters,this.logger);let f={};l?.headers&&Object.keys(l.headers).length>0&&(f={...l.headers}),s.headers=Ui.IntSvcTaskHandlerUtil.prepareRequestHeaders(f,e.$runtime.metadata.workflowRunId,this.workflowConfig,e.$runtime.metadata.isRunningInDesigner);let h=r.with?.connector;if(l?.queryParameters&&Object.keys(l.queryParameters).length>0){let R=l.queryParameters,C={};for(let[j,L]of Object.entries(R))Ic.OPTIONAL_INT_SVC_PARAMETERS.includes(j)?L!=null&&(C[j]=String(L)):C[j]=String(L);s.queryParameters=C}let _=l?.pathParameters??{},m={..._},v=this.resolveSolutionResourceOverrides(s.queryParameters,m,r.metadata);if(v&&WJ.SolutionResourceOverrideApplier.apply(s,m,v),Object.keys(m).length>0){let R=r.with?.endpoint;for(let[C,j]of Object.entries(m))R=R.replace(`{${C}}`,j);s.endpoint=R}if(l?.bodyParameters&&Object.keys(l.bodyParameters).length>0){let R=l.bodyParameters;if(r.with?.proxyToVendorAPI){let C=await(0,ax.materializeBlobRefBody)(R.body,R.headers,this.workflowConfig,this.logger);R.body=C.body,R.headers=C.headers}s.body=R}if(r.with?.multipartParameters&&Object.keys(r.with.multipartParameters).length>0){let R=[];for(let C of r.with.multipartParameters)if(C.dataType==="file"){let j,L=C.value;if(L&&(j=await this.expressionHandler.evaluateDataExpression({_val:L}),j=j?._val),(0,Fo.isBlobFileReference)(j)||(j=l?.bodyParameters?l.bodyParameters[C.name]:void 0),(0,Fo.isBlobFileReference)(j)){let D=await(0,ax.downloadBlobFileWithFriendlyError)(this.workflowConfig,this.logger,j);R.push({...C,fileName:j.FullName,contentType:j.MimeType,fileContent:D.content})}else R.push(C)}else R.push(C);s.multipartParameters=R}if(h===Ic.ORCHESTRATOR_CONNECTOR_KEY){let R=r.with.endpoint,C=this.resolveOrchestratorContext(R,_,l?.bodyParameters);C&&FJ.OrchestratorOverrideApplier.apply(s,C)}s.retryConfig=(0,qJ.resolveTransportRetryConfig)(this.getRuntimeExpressionArgs(),this.logger,t);let b={type:Fo.ActivityType.IntSvcApiRequest,name:t,properties:s},g=l.bodyParameters;c=s.proxyToVendorAPI?{url:g?.url,method:g?.method,headers:g?.headers,query:g?.query,pathParameters:g?.path,bodyParameters:g?.body}:{url:s.endpoint,method:s.method,headers:l.headers,query:l.queryParameters,pathParameters:l.pathParameters,bodyParameters:l.bodyParameters};let T=await new Fo.IntSvcApiRequestActivity(b,this.logger,t).execute(),P=r.with?.endpoint;if(T.success&&(0,bg.isOrchestratorCredentialsCall)(h,P)){let R=this.getRuntimeExpressionArgs()?.$runtime?.metadata?.workflowRunId;if(!R)throw new Error("Cannot protect the Orchestrator credential: the run has no workflowRunId.");let C=(0,bg.registerOrchestratorCredential)(LJ.SecretRegistryStore.getOrCreate(R),h,P,T.data?.content,this.logger),j=(0,bg.credentialRefusalError)(C,t);if(j)throw j}if(T.success&&T.data?.content instanceof Uint8Array){let R=T.data.content,C=this.extractContentType(T.data.headers)||"application/octet-stream",j=r.with?.outputFileName,L=(0,Fo.generateDownloadFileName)(t,C,T.data.headers,j),D=await Fo.OrchestratorUtils.uploadFileToBlob(this.workflowConfig.baseUrl,this.workflowConfig.accessToken,this.workflowConfig.organizationId,this.workflowConfig.tenantId,R,L,C,this.logger,this.workflowConfig.processConfig?.folderKey);T.data.content=D}let k=T.data?.isVendorError??!1;T.data&&delete T.data.isVendorError;let x=this.getErrorTitle(s,k);return{success:T.success,data:T.data,resolvedProperties:c,error:T.success?void 0:new Wo.WorkflowErrorBuilder().fromError(T.error).setStatus((0,ix.getHttpErrorStatus)(T.data?.statusCode)).setTitle(x).setDetail((0,ix.getHttpErrorDetails)(T.data)).setData({taskName:t,cause:T.data}).build()}}catch(u){return{success:!1,resolvedProperties:c,error:(0,Wo.isWorkflowError)(u)?u:new Wo.WorkflowErrorBuilder().fromError(u).setType(pn.WorkflowErrorType.COMMUNICATION_ERROR).setStatus(pn.WorkflowErrorStatus.INTERNAL_SERVER_ERROR).setTitle((0,Ht.t)(Ht.ErrorKeys.FAILED_IS_CALL)).setData({taskName:t,cause:this.getIntsvcErrorData(s,r)}).build()}}}getErrorTitle(t,r){let e=(0,Ht.t)(Ht.ErrorKeys.FAILED_IS_CALL_TO,{endpoint:t.endpoint});return t.proxyToVendorAPI&&r?(0,Ht.t)(Ht.ErrorKeys.VENDOR_FAILURE,{url:t.body?.url}):e}extractContentType(t){if(!t)return;let r=Object.keys(t).find(e=>e.toLowerCase()==="content-type");return r?t[r]:void 0}getIntsvcErrorData(t,r){return{endpoint:t.endpoint,method:t.method,[Ic.X_UIPATH_INTERNAL_ORG_ID]:this.workflowConfig.organizationId,[Ic.X_UIPATH_INTERNAL_TENANT_ID]:this.workflowConfig.tenantId,[Ic.X_UIPATH_CONNECTOR_KEY]:r.with?.connector,connectionId:r.with?.connectionId}}resolveOrchestratorContext(t,r,e){let n=sx.ResourceOverrideResolver.getOrchestratorOverrides(this.workflowConfig,this.logger,t,r,e),i=this.workflowConfig.processConfig?.robotKey;i&&(n??(n={}),n.robotKey=i);let s=this.workflowConfig.processConfig?.jobKey;return s&&(n??(n={}),n.jobKey=s),n}resolveSolutionResourceOverrides(t,r,e){let n=Ui.IntSvcTaskHandlerUtil.resolveSolutionResourceFields(e,this.logger);if(n.length!==0)return sx.ResourceOverrideResolver.getSolutionResourceOverrides(this.workflowConfig,this.logger,t??{},r??{},n)}};kh.IntSvcsTaskHandler=gg});var cx=O(Ph=>{"use strict";Object.defineProperty(Ph,"__esModule",{value:!0});Ph.RaiseTaskHandler=void 0;var pa=qe(),$J=Ce(),BJ=Et(),Eg=class extends BJ.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r){this.logger.debug(`Processing raise task for "${t}" with values:`,{error:r.raise?.error?.toString()});let e,n,i=async(s,c="")=>s?await this.expressionHandler.evaluateDataExpression(s):c;if(r.raise?.error)if(typeof r.raise.error=="string")n=r.raise.error;else{let s=r.raise.error,c=await i(s.type,pa.WorkflowErrorType.RUNTIME_ERROR),u=pa.WorkflowErrorType[c]??pa.WorkflowErrorType.RUNTIME_ERROR,a=await i(s.title,"Unknown Error"),l=await i(s.detail),d=await i(s.instance),f=typeof s.status=="number"?s.status:400;e=new pa.WorkflowError(a,f,u,d,l)}else n=`Raise task for "${t}" was invoked without any error specified`;return e||(e=new $J.WorkflowErrorBuilder().setTitle(n??"Unknown Error").setType(pa.WorkflowErrorType.RUNTIME_ERROR).setStatus(pa.WorkflowErrorStatus.BAD_REQUEST).setInstance("RaiseTaskHandler").setData({taskName:t}).build()),{success:!1,error:e}}};Ph.RaiseTaskHandler=Eg});var dx=O(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});Ah.ResponseTaskHandler=void 0;var HJ=Oe(),ux=Ce(),VJ=vs(),zJ=Et(),lx=Ti();function YJ(o){let t=(o??"download").toString(),r="";for(let n of t){let i=n.charCodeAt(0);i<32||i===127||n==='"'||n==="\\"||n==="/"||(r+=n)}return`attachment; filename="${r.trim()||"download"}"`}var Tg=class extends zJ.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r){try{let e=r.set!==void 0,n=e?r.set||{}:r.response||{};this.logger.debug(`Processing ${e?"old":"new"} response task for "${t}" with values:`,n);let i=await this.expressionHandler.evaluateDataExpression({response:n,jobFailure:r.markJobAsFailed??!1});this.logger.debug(`Response task evaluated successfully for "${t}":`,i);let s=this.getRuntimeExpressionArgs();s.$runtime.control.signalWorkflowEnd=!0;let c=await(0,lx.resolveFileReadMarkers)(i.response,this.workflowConfig,this.logger),u;if((0,HJ.isBlobFileReference)(c))u=c;else{let a=(0,VJ.findBlobAttachmentRefs)(c);a.length>0&&(u=a[0])}return s.$runtime.control.signalWorkflowResponse={signalJobFailure:i.jobFailure,...u?{isFileResponse:!0,contentType:(0,lx.safeMimeType)(u.MimeType)??"application/octet-stream",contentDisposition:YJ(u.FullName),attachmentId:u.ID}:{}},{success:!0,data:c}}catch(e){return this.logger.error(`Error processing response task "${t}":`,e),{success:!1,error:(0,ux.isWorkflowError)(e)?e:new ux.WorkflowErrorBuilder().fromError(e).setTitle(`Failed to execute Response task: ${t}`).setData({taskName:t}).build()}}}};Ah.ResponseTaskHandler=Tg});var hx=O(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});Ih.SetTaskHandler=void 0;var fx=tt(),Sg=qe(),px=Ce(),KJ=Et(),Og=class extends KJ.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r){try{if(this.logger.debug(`Processing set task for "${t}" with values:`,r.set),!r.set)throw new Sg.WorkflowError(`Task ${t} has no values to set`,Sg.WorkflowErrorStatus.BAD_REQUEST,Sg.WorkflowErrorType.VALIDATION_ERROR,"SetTaskHandler");let e=await this.expressionHandler.evaluateDataExpression(r.set);return this.logger.debug(`Set task evaluated successfully for "${t}":`,e),{success:!0,data:e}}catch(e){return this.logger.error(`Error processing set task "${t}":`,e),{success:!1,error:(0,px.isWorkflowError)(e)?e:new px.WorkflowErrorBuilder().fromError(e).setTitle((0,fx.t)(fx.ErrorKeys.FAILED_SET_TASK,{taskName:t})).setData({taskName:t}).build()}}}};Ih.SetTaskHandler=Og});var _x=O(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});xh.SwitchTaskHandler=void 0;var kg=Un(),JJ=qo(),Vt=tt(),Uo=qe(),ha=Ce(),GJ=Et(),Pg=class o extends GJ.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r,e){try{this.logger.debug(`Processing switch task for "${t}"`);let n=kg.TaskExecutorHelper.readAsExtendedTask({[t]:r}),i=this.getRuntimeExpressionArgs(),s=await XJ(r,e,this.logger,this.expressionHandler);if(!s)throw new ha.WorkflowErrorBuilder().setType(Uo.WorkflowErrorType.VALIDATION_ERROR).setStatus(Uo.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Vt.t)(Vt.ErrorKeys.NO_MATCHING_CASE,{taskName:t})).setData({taskName:t}).build();let{caseName:c,caseTask:u}=ZJ(s,t);if(!this.taskHandlerArgs.workflowResult||!this.taskHandlerArgs.allCurrentLevelTasks||!this.taskHandlerArgs.taskIndexRef){let h=`Missing required switch task context: ${this.taskHandlerArgs.workflowResult?this.taskHandlerArgs.allCurrentLevelTasks?"taskIndexRef":"allCurrentLevelTasks":"workflowResult"}`;throw this.logger.error(h),new ha.WorkflowErrorBuilder().setType(Uo.WorkflowErrorType.RUNTIME_ERROR).setStatus(Uo.WorkflowErrorStatus.INTERNAL_SERVER_ERROR).setTitle((0,Vt.t)(Vt.ErrorKeys.INTERNAL_ERROR)).build()}this.taskHandlerArgs.workflowResult.addToWorkflowExecutions(`Switch: ${r.name} > Case: ${c}`),await this.logger.debug(`Switch task '${t}' matched case: '${c}'`);let a=o.findNextTask(this.taskHandlerArgs.allCurrentLevelTasks,u.then);if(!a)throw new ha.WorkflowErrorBuilder().setType(Uo.WorkflowErrorType.VALIDATION_ERROR).setStatus(Uo.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Vt.t)(Vt.ErrorKeys.INVALID_SWITCH_TRANSITION,{taskName:t,nextStep:u.then})).setData({taskName:t,transition:u.then}).build();let l=this.taskHandlerArgs.allCurrentLevelTasks.indexOf(a);if(l===-1)throw new ha.WorkflowErrorBuilder().setType(Uo.WorkflowErrorType.VALIDATION_ERROR).setStatus(Uo.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Vt.t)(Vt.ErrorKeys.TASK_NOT_FOUND,{taskName:u.then})).setData({taskName:t,transition:u.then}).build();return this.taskHandlerArgs.taskIndexRef.value=l,await(0,JJ.isTaskDisabled)(a,this.expressionHandler)?{success:!0,data:e}:await kg.TaskExecutorHelper.executeFlowTask(a,this.taskHandlerArgs.allCurrentLevelTasks,e,this.taskHandlerArgs.taskIndexRef,this.workflowConfig,i,this.taskHandlerArgs.workflowResult,this.logger,this.expressionHandler,n.variables)}catch(n){return{success:!1,error:(0,ha.isWorkflowError)(n)?n:new ha.WorkflowErrorBuilder().fromError(n).setTitle((0,Vt.t)(Vt.ErrorKeys.FAILED_SWITCH_TASK,{taskName:t})).setData({taskName:t}).build()}}}static findNextTask(t,r){return t.find(e=>kg.TaskExecutorHelper.readAsExtendedTask(e).name===r)}};xh.SwitchTaskHandler=Pg;async function XJ(o,t,r,e){if(!o.switch)return;let n=o.switch,i;for(let s of n){let[c,u]=Object.entries(s)[0];if(c==="default"){i=s;continue}if(!u.when)throw new Error((0,Vt.t)(Vt.ErrorKeys.MISSING_WHEN_CONDITION,{caseName:c}));if(await e.evaluateConditionExpression(u.when))return r.debug(`Switch case matched: '${c}' with expression: ${JSON.stringify(u.when)}`),s;if(t&&t.content&&t.content&&await e.evaluateConditionExpression(u.when))return r.debug(`Switch case matched in 'content': '${c}' with expression: ${JSON.stringify(u.when)}`),s}return r.debug("No switch case matched, falling back to default case."),i}function ZJ(o,t){let r=Object.keys(o)[0],e=o[r];if(!e||!e.then)throw new Error((0,Vt.t)(Vt.ErrorKeys.INVALID_CASE_TRANSITION,{stepName:t,caseName:r}));return{caseName:r,caseTask:e}}});var vx=O(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});Mh.TryCatchTaskHandler=void 0;var QJ=fr(),eG=nd(),Ag=Un(),mx=qe(),_a=Ce(),tG=Et(),Rh=new WeakMap,Ig=class extends tG.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r,e){this.logger.info(`Executing Try: ${t}`);let n=r.catch,i=n?.as||QJ.ERROR,s=Ag.TaskExecutorHelper.readAsExtendedTask({[t]:r}),c=n?.retry!==void 0?(0,_a.resolveRetryPolicy)(n.retry,this.getRuntimeExpressionArgs().$workflow.definition,t):void 0,u=c?(0,_a.getRetryLimits)(c):void 0;c?.limit?.attempt?.duration!==void 0&&this.logger.warn(`Try task '${t}': retry 'limit.attempt.duration' (per-attempt timeout) is not supported and will be ignored.`);let a=0,l;for(;;){let d;try{return await this.executeTryBlock(r,e,s,c!==void 0)}catch(f){d=this.toWorkflowError(t,f)}if(l??(l=Date.now()),!await this.isErrorCaught(n,i,d))throw this.logger.debug(`Try task '${t}': error does not match the catch filter, propagating.`,{status:d.status,type:d.type}),d;if(c&&u){let f=a+1,{delayMs:h,retryAfterMs:_,retryAfterCapMs:m}=(0,_a.resolveRetryDelayMs)(c,f,d),v=Date.now()-l;if(this.isWithinRetryLimits(u,f,v+h)&&await this.isRetryAllowed(c,i,d)){a=f;let b=_===void 0?"":m===void 0?" (from Retry-After header)":` (Retry-After header asked for ${_}ms, capped at ${m}ms)`;this.logger.warn(`Try task '${t}': attempt failed, retrying (${a}/${u.maxAttempts}) in ${h}ms${b}. Error: ${d.title}`),await this.logRetryEvent(t,r,d,a,u,h,_),h>0&&await new Promise(g=>setTimeout(g,h)),await this.expressionHandler.setInputOutput(e);continue}this.logger.warn(`Try task '${t}': retry policy exhausted or not applicable after ${a} retry attempt(s).`)}return await this.handleCaughtError(t,n,i,d,s,c!==void 0)}}async executeTryBlock(t,r,e,n){var i;let s=this.getRuntimeExpressionArgs();n&&((i=s.$runtime).control??(i.control={}),s.$runtime.control.taskRetryDepth=(s.$runtime.control.taskRetryDepth??0)+1);try{return await Ag.TaskExecutorHelper.executeTaskList(t.try,r,this.workflowConfig,s,this.logger,this.expressionHandler,e.variables)}finally{n&&(s.$runtime.control.taskRetryDepth=Math.max(0,(s.$runtime.control.taskRetryDepth??1)-1))}}async isErrorCaught(t,r,e){return t?(0,_a.matchesErrorFilter)(e,t.errors?.with)?await this.evaluateConditions(t.when,t.exceptWhen,r,e):!1:!0}async isRetryAllowed(t,r,e){return await this.evaluateConditions(t.when,t.exceptWhen,r,e)}isWithinRetryLimits(t,r,e){return!(r>t.maxAttempts||t.maxDurationMs!==void 0&&e>=t.maxDurationMs)}async evaluateConditions(t,r,e,n){if(!t&&!r)return!0;let i=`$${e}`;await this.bindErrorVariable(i,n.toObject());try{return!(t&&!await this.expressionHandler.evaluateConditionExpression(t)||r&&await this.expressionHandler.evaluateConditionExpression(r))}finally{await this.unbindErrorVariable(i)}}async bindErrorVariable(t,r){await this.expressionHandler.setVariables({[t]:r});let e=Rh.get(this.expressionHandler);e||(e=new Map,Rh.set(this.expressionHandler,e));let n=e.get(t)??[];n.push(r),e.set(t,n)}async unbindErrorVariable(t){let r=Rh.get(this.expressionHandler),e=r?.get(t);if(e?.pop(),e&&e.length>0){await this.expressionHandler.setVariables({[t]:e[e.length-1]});return}r?.delete(t),r?.size===0&&Rh.delete(this.expressionHandler),await this.expressionHandler.deleteVariables([t])}async logRetryEvent(t,r,e,n,i,s,c){try{await eG.LoggingHelper.logTaskData(this.logger,{taskId:t,taskType:mx.TaskType.TRY,displayName:r.metadata?.displayName,event:mx.TaskEvent.TASK_RETRIED,runtimeExpressionArgs:this.getRuntimeExpressionArgs(),error:e,taskSpanId:this.executionContext?.taskSpanId,retry:{attempt:n,maxAttempts:i.maxAttempts,delayMs:s,...c!==void 0?{retryAfterMs:c}:{},failedTaskName:e.originatingTaskName}},this.expressionHandler)}catch(u){this.logger.warn(`Try task '${t}': failed to log retry event`,{error:u instanceof Error?u.message:String(u)})}}async handleCaughtError(t,r,e,n,i,s){let c=this.toErrorObject(t,e,n);if(!r||!r.do){if(s)throw n;return c}let u=c.data[e];await this.bindErrorVariable(`$${e}`,u),i.variables=i.variables||{},i.variables[e]=u;try{return await this.expressionHandler.setInputOutput(c.data,void 0),await Ag.TaskExecutorHelper.executeTaskList(r.do,c,this.workflowConfig,this.getRuntimeExpressionArgs(),this.logger,this.expressionHandler,i.variables)}finally{await this.unbindErrorVariable(`$${e}`),delete i.variables[e]}}toWorkflowError(t,r){return(0,_a.isWorkflowError)(r)?r:new _a.WorkflowErrorBuilder().fromError(r).setTitle(`Unknown error while executing task '${t}'`).setInstance("TryCatchTaskHandler").setData({taskName:t}).build()}toErrorObject(t,r,e){let n=this.toWorkflowError(t,e);return{success:!0,data:r?{[r]:n.toObject()}:n.toObject(),error:void 0}}};Mh.TryCatchTaskHandler=Ig});var gx=O(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.UnifiedHttpTaskHandler=void 0;var rG=qo(),yx=tt(),xc=qe(),nG=Ce(),bx=oc(),oG=Ti(),iG=cg(),sG=wg(),xg=class{constructor(t,r,e){this.taskHandlerArgs=t,this.logger=r,this.expressionHandler=e}async handleTask(t,r,e){if(!r.with?.bodyParameters||!r.with?.endpoint)throw new nG.WorkflowErrorBuilder().setType(xc.WorkflowErrorType.VALIDATION_ERROR).setStatus(xc.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,yx.t)(yx.ErrorKeys.HTTP_TASK_CONFIG_INVALID,{taskName:t})).setData({taskName:t}).build();let n=r.with.bodyParameters,i=await this.expressionHandler.evaluateDataExpression(n),s=this.taskHandlerArgs.workflowConfig;if((0,bx.applyOutboundTraceHeaders)(i.headers??(i.headers={}),{telemetryConfig:s.telemetryConfig,baggage:s.tracingConfig?.baggage,firstParty:(0,bx.isFirstPartyHost)(i.url,s.baseUrl)}),(0,rG.getUnifiedHttpAuthMode)(r)===xc.HttpAuthMode.CONNECTOR){let u=r.with.connectionId,a=i?.targetConnector,l=r.with.connectionResourceId,d=["authentication","connection","connectionId","connector","targetConnector","requestBodyType","multipartFormData"],f=Object.fromEntries(Object.entries(i||{}).filter(([m])=>!d.includes(m))),h={...r,call:xc.INTEGRATION_SERVICE_TASK_TYPE,with:{endpoint:r.with.endpoint,method:r.with.method,headers:r.with.headers,connector:a,connectionId:u,connectionResourceId:l,bodyParameters:Object.keys(f).length>0?f:void 0,queryParameters:r.with.queryParameters,pathParameters:r.with.pathParameters,multipartParameters:r.with.multipartParameters,proxyToVendorAPI:!0,executionType:r.with.executionType,outputFileName:r.with.outputFileName}};return await new sG.IntSvcsTaskHandler(this.taskHandlerArgs,this.logger,this.expressionHandler).handleTask(t,h,e)}else{let u=i.requestBodyType===xc.RequestBodyType.MULTIPART_FORM_DATA,a=(0,oG.isPlainObject)(i.body)?i.body:void 0,l=u?a:i.body,d={endpoint:i.url,method:i.method,headers:i.headers,body:l,query:i.query},f={...r,call:"http",with:{...d,...u?{multipartFormData:i.multipartFormData??[]}:{},...r.with.outputFileName!==void 0?{outputFileName:r.with.outputFileName}:{}}};return await new iG.HttpTaskHandler(this.taskHandlerArgs,this.logger,this.expressionHandler).handleTask(t,f,e)}}};Ch.UnifiedHttpTaskHandler=xg});var Tx=O(Nh=>{"use strict";Object.defineProperty(Nh,"__esModule",{value:!0});Nh.WaitTaskHandler=void 0;var wx=Oe(),Ex=Ce(),aG=Et(),jh=class o extends aG.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r,e){try{this.logger.debug(`Processing wait task for "${t}"`,{waitDuration:r.wait});let n=r.wait,i=0;if(!n)throw this.logger.debug(`No wait duration provided for task "${t}", proceeding without wait`),new Error("Wait duration is required but was not provided");let s=await this.expressionHandler.evaluateDataExpression(n);if(i=this.parseDuration(s),i>o.MAX_WAIT_TIME_MS)throw new Error(`Wait time ${i}ms exceeds maximum allowed (${o.MAX_WAIT_TIME_MS}ms)`);return this.logger.debug(`Wait task "${t}" will wait for ${i} milliseconds`,{waitTimeMs:i}),await new Promise(c=>setTimeout(c,i)),this.logger.debug(`Wait task "${t}" completed after ${i} milliseconds`,{waitTimeMs:i}),{success:!0,data:{waitedFor:i}}}catch(n){return this.logger.error(`Error processing wait task "${t}":`,n),{success:!1,error:(0,Ex.isWorkflowError)(n)?n:new Ex.WorkflowErrorBuilder().fromError(n).setTitle(`Failed to execute Wait task: ${t}`).setData({taskName:t}).build()}}}parseDuration(t){if(typeof t=="number"){if(!Number.isFinite(t)||t<0)throw new Error(`Invalid wait duration: ${t} (expected a non-negative number of milliseconds)`);return t}else{if(typeof t=="string")return wx.TimeDurationUtils.parseIso8601Duration(t);if(typeof t=="object"&&t!==null)return wx.TimeDurationUtils.parseDurationObject(t);throw new Error(`Invalid duration format: ${String(t)}`)}}};Nh.WaitTaskHandler=jh;jh.MAX_WAIT_TIME_MS=1*60*1e3});var Px=O(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});Dh.WhileTaskHandler=void 0;var Sx=Un(),Ox=tt(),cG=qe(),uG=Ce(),lG=Et(),kx=1e4,Rg=class extends lG.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r,e){this.logger.info(`Executing WhileTask: ${t}`);let n=Sx.TaskExecutorHelper.readAsExtendedTask({[t]:r}),i=r.while,s=r.do,c=typeof r.limit=="number"?Math.min(r.limit,kx):kx;this.logger.debug(`WhileTask '${t}' > whileExpression: '${i}', limit: ${c}`);let u={success:!0,data:{}},a=0,l=await this.expressionHandler.evaluateConditionExpression(i);for(this.logger.debug(`WhileTask '${t}' > whileExpression: '${i}' >> ${l?"continue":"break"}`);l&&a<c;){this.logger.debug(`WhileTask '${t}' > iteration ${a} started`),this.logger.logIterationVariables(t,cG.TaskType.WHILE,{iteration:a});let d;try{d=structuredClone(s)}catch(h){throw this.logger.error(`WhileTask '${t}': Failed to clone task list for iteration ${a}. Error: ${h}`),new uG.WorkflowErrorBuilder().fromError(h).setTitle((0,Ox.t)(Ox.ErrorKeys.TASK_EXECUTION_FAILED,{taskName:t})).build()}if(u=await Sx.TaskExecutorHelper.executeTaskList(d,e,this.workflowConfig,this.getRuntimeExpressionArgs(),this.logger,this.expressionHandler,n.variables),!u.success)break;let f=this.getRuntimeExpressionArgs();if(f.$runtime.control?.signalLoopExit===!0){this.logger.debug(`WhileTask '${t}' > Loop exit signaled during iteration ${a}`),f.$runtime.control.signalLoopExit=!1;break}if(this.getRuntimeExpressionArgs().$runtime.control.signalWorkflowEnd)return this.logger.warn(`WhileTask '${t}' > iteration ${a} ended with result: ${u}`),u;this.logger.debug(`WhileTask '${t}' > iteration ${a} completed with result: ${u}`),l=await this.expressionHandler.evaluateConditionExpression(i),this.logger.debug(`WhileTask '${t}' > whileExpression: '${i}' >> ${l?"continue":"break"}`),a++}return a>=c&&this.logger.warn(`WhileTask '${t}' reached iteration limit (${c})`),u}};Dh.WhileTaskHandler=Rg});var xx=O(Mg=>{"use strict";Object.defineProperty(Mg,"__esModule",{value:!0});Mg.invokeTaskHandler=kG;var Ix=Ba(),dG=vI(),fG=yI(),pG=EI(),Ax=OI(),hG=cg(),_G=ZI(),mG=wg(),vG=cx(),yG=dx(),bG=dy(),gG=hx(),wG=_x(),EG=vx(),TG=gx(),SG=Tx(),OG=Px(),yr=tt(),$i=qe(),Mc=Ce(),Rc=qo();async function kG(o){let t=Object.keys(o.task).join(", "),r={success:!1,error:new Mc.WorkflowErrorBuilder().setType($i.WorkflowErrorType.RUNTIME_ERROR).setStatus($i.WorkflowErrorStatus.NOT_IMPLEMENTED).setTitle((0,yr.t)(yr.ErrorKeys.TASK_NOT_IMPLEMENTED,{taskName:o.taskName})).setDetail((0,yr.t)(yr.ErrorKeys.UNSUPPORTED_TASK_TYPE_DETAIL,{taskType:String(o.task.type||"unknown")})).setData({taskName:o.taskName,properties:t,source:Ix.TASK_INVOKER}).build()};try{let e=o.task;(e.call||e.run||e.set!==void 0||e.do||e.for||e.try||e.raise||e.switch||e.while||e.doWhile||e.break||e.wait||e.response)&&(r=await PG(e,o.taskName,o.taskHandlerArgs,o.runtimeExpressionArgs,o.taskInput,o.logger,o.expressionHandler,o.customTaskHandlerFactories,o.taskSpanId))}catch(e){if((0,Mc.isWorkflowError)(e))throw e;r.error=new Mc.WorkflowErrorBuilder().fromError(e).setTitle((0,yr.t)(yr.ErrorKeys.ERROR_HANDLING_TASK,{taskName:o.taskName})).build()}return r}var PG=async(o,t,r,e,n,i,s,c,u)=>{let a=AG(o,r,i,s,c),l={name:t,input:n,output:{}};return await s.setVariables({$task:l}),await a.handleTask(t,o,e,{taskSpanId:u})},AG=(o,t,r,e,n)=>{let i=o;if(i.break&&i.then===Ix.EXIT)return new dG.BreakTaskHandler(t,r,e);if(o.call)return(0,Rc.isUnifiedHttpTask)(o)?new TG.UnifiedHttpTaskHandler(t,r,e):(0,Rc.isIntSvcTask)(o)?new mG.IntSvcsTaskHandler(t,r,e):(0,Rc.isIntSvcEventTask)(o)?new _G.IntSvcsEventTaskHandler(t,r,e):new hG.HttpTaskHandler(t,r,e);if(o.run){let s=n?.[$i.TaskType.SCRIPT];return s?s(t,r,e):bG.DefaultScriptTaskHandler.create(t,r,e)}if(o.set!==void 0&&!(0,Rc.isResponseTask)(o))return new gG.SetTaskHandler(t,r,e);if(o.try)return new EG.TryCatchTaskHandler(t,r,e);if(o.for&&o.do)return o.while?o.for.each?new Ax.ForTaskHandler(t,r,e):new OG.WhileTaskHandler(t,r,e):o.doWhile?new pG.DoWhileTaskHandler(t,r,e):new Ax.ForTaskHandler(t,r,e);if(o.do)return new fG.DoTaskHandler(t,r,e);if(o.raise)return new vG.RaiseTaskHandler(t,r,e);if(o.switch){if(!t.allCurrentLevelTasks||!t.taskIndexRef||!t.workflowResult)throw r.error("Switch task handler missing required context: allCurrentLevelTasks, taskIndexRef, or workflowResult"),new Mc.WorkflowErrorBuilder().setType($i.WorkflowErrorType.RUNTIME_ERROR).setStatus($i.WorkflowErrorStatus.INTERNAL_SERVER_ERROR).setTitle((0,yr.t)(yr.ErrorKeys.FAILED_SWITCH_TASK,{taskName:"switch"})).build();return new wG.SwitchTaskHandler(t,r,e)}if(o.wait)return new SG.WaitTaskHandler(t,r,e);if((0,Rc.isResponseTask)(o))return new yG.ResponseTaskHandler(t,r,e);throw new Mc.WorkflowErrorBuilder().setType($i.WorkflowErrorType.VALIDATION_ERROR).setStatus($i.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,yr.t)(yr.ErrorKeys.UNSUPPORTED_TASK_TYPE)).setDetail((0,yr.t)(yr.ErrorKeys.UNSUPPORTED_TASK_TYPE_DETAIL,{taskType:String(o.type||"unknown")})).build()}});var Un=O(Lh=>{"use strict";Object.defineProperty(Lh,"__esModule",{value:!0});Lh.TaskExecutorHelper=void 0;var Cg=Ub(),Rx=Ba(),ma=tt(),$o=qe(),IG=$b(),va=Ce(),Mx=sy(),xG=rc(),Cx=Sy(),Cc=nd(),jg=Dg(),RG=xx(),ht=qo(),Ng=class o{static async executeTaskList(t,r,e,n,i,s,c){let u={success:!0,data:{}};if(!t||t.length===0)return u;let a={value:0},l=t[a.value];for(;l;){if(await(0,ht.isTaskDisabled)(l,s)){a.value++,l=t[a.value];continue}let f=jg.ServerlessWorkflowExecutor.getExecutor(n.$runtime.metadata.workflowRunId).workflowExecutionResults;u=await this.executeFlowTask(l,t,r,a,e,n,f,i,s,c);let h=o.readAsExtendedTask(t[a.value]);if(!u.success)throw(0,va.isWorkflowError)(u.error)?u.error:new va.WorkflowErrorBuilder().fromError(u.error).setTitle((0,ma.t)(ma.ErrorKeys.UNKNOWN_TASK_ERROR,{taskName:h.name})).setData({taskName:h.name,result:u}).build();if(n.$runtime.control?.signalWorkflowEnd)return i.debug(`TaskExecutorHelper.executeTaskList: signalWorkflowEnd detected after processing task '${h.name}'. Halting current task list.`),u;if(n.$runtime.control?.signalLoopExit===!0)return i.debug(`TaskExecutorHelper.executeTaskList: signalLoopExit detected after processing task '${h.name}'. Halting current task list execution.`),u;if(u.success&&u.data&&(r=u.data),h.then)if((0,ht.isTaskWithTransition)(h)){if(h.then===Rx.EXIT)break;if(h.then===Rx.END)return n.$runtime.control.signalWorkflowEnd=!0,u}else{let _=t.findIndex(m=>o.readAsExtendedTask(m).name===h.then);if(_===-1){let m=`Invalid transition from task '${h.name}': Next task '${h.then}' not found`;throw i.error(m),new va.WorkflowErrorBuilder().setType($o.WorkflowErrorType.RUNTIME_ERROR).setStatus($o.WorkflowErrorStatus.INTERNAL_SERVER_ERROR).setTitle((0,ma.t)(ma.ErrorKeys.INTERNAL_ERROR)).setData({taskName:h.name,nextTask:h.then,errorMessage:`Next task '${h.then}' not found`}).build()}a.value=_}else a.value++;l=t[a.value]}return u}static readAsExtendedTask(t,r){let e=Object.keys(t)[0],n=typeof t[e]=="object"?t[e]:{},i={...n,name:e,metadata:n.metadata,variables:{...n.variables??{},...r??{}}};for(let[s,c]of Object.entries(t))s!==e&&(i[s]=c);return i}static detectUiPathInternalServiceCall(t,r){if((0,ht.getHttpCallMode)(t)===IG.HttpCallMode.DIRECT&&r){let e=r.url;if(e)return va.InternalServiceDetector.isInternalServiceUrl(e)}}static async executeFlowTask(t,r,e,n,i,s,c,u,a,l){let d=o.readAsExtendedTask(t,l),f={success:!0,data:{}},h=(0,Mx.newOtelSpanId)(),_=(0,Mx.toOtelTraceIdOrUndefined)(i.tracingConfig?.traceId),m=_?{traceId:_,spanId:h}:void 0,v=b=>m?(0,xG.runInTraceSpan)(m,b):b();try{let b={taskId:d.name,taskType:(0,ht.getTaskType)(d),displayName:d.metadata?.displayName,event:$o.TaskEvent.TASK_STARTED,runtimeExpressionArgs:s,input:e,variables:l||d.variables?{...l??{},...d.variables??{}}:void 0,taskSpanId:h};if(Cx.DebugManager.isDebugModeEnabled(s)){let{shouldPause:k,breakpointId:x}=Cx.DebugManager.taskHasBreakpoint(s.$runtime.metadata.workflowRunId,d.name);if(k){console.debug(`Task has breakpoint: ${d.name} [id: ${x}], pausing execution...`),b.breakpointId=x,b.shouldPause=!0;let C=jg.ServerlessWorkflowExecutor.getExecutor(s.$runtime.metadata.workflowRunId)?.commandStream$?.pipe((0,Cg.filter)(L=>L.command===$o.WorkflowCommandEvent.Resume)),j=(0,Cg.firstValueFrom)(C??Cg.EMPTY);console.debug(`Paused on: ${d.name} [breakpoint: ${x}], waiting for command to continue...`),await Cc.LoggingHelper.logTaskData(u,b,a),await j,console.debug(`Resume command received on: ${d.name} [breakpoint:${x}], continuing...`)}else await Cc.LoggingHelper.logTaskData(u,b,a)}else await Cc.LoggingHelper.logTaskData(u,b,a);c.addToWorkflowExecutions(d.name);let g=this.setupTaskHandlerArgs(i,r,n,c),w=jg.ServerlessWorkflowExecutor.getExecutor(s.$runtime.metadata.workflowRunId);if(f=await v(()=>(0,RG.invokeTaskHandler)({task:d,taskName:d.name,taskHandlerArgs:g,runtimeExpressionArgs:s,taskInput:e,logger:u,expressionHandler:a,customTaskHandlerFactories:w?.customTaskHandlerFactories,taskSpanId:h})),c.addToWorkflowResult(f,d.name),!f.success&&!d.raise)throw f.error;let T=d.raise?f.error.toObject():f.data,P=this.detectUiPathInternalServiceCall(d,f.resolvedProperties);return await v(()=>Cc.LoggingHelper.logTaskData(u,{taskId:d.name,taskType:(0,ht.getTaskType)(d),displayName:d.metadata?.displayName,event:$o.TaskEvent.TASK_COMPLETED,runtimeExpressionArgs:s,properties:f.resolvedProperties,output:T,vendorExecutionTimeMs:(0,ht.isUnifiedHttpTask)(d)||(0,ht.isIntSvcTask)(d)||(0,ht.isHttpTask)(d)?(0,ht.extractVendorProcessingTime)(f.data):void 0,...(0,ht.getHttpCallMode)(d)!==null?{HttpCallMode:(0,ht.getHttpCallMode)(d)?.toString()}:{},...P!==void 0?{isUiPathInternalServiceCall:P}:{},taskSpanId:h},a)),f}catch(b){let g=new va.WorkflowErrorBuilder,w=!0;(0,va.isWorkflowError)(b)?(w=!b.originatingTaskName,g.fromWorkflowError(b)):g.fromError(b).setTitle((0,ma.t)(ma.ErrorKeys.TASK_EXECUTION_FAILED)),w&&g.setOriginatingTaskName(d.name);let T=g.build(),P=w?$o.TaskEvent.TASK_FAILED:$o.TaskEvent.TASK_STOPPED,k=this.detectUiPathInternalServiceCall(d,f.resolvedProperties);throw await Cc.LoggingHelper.logTaskData(u,{taskId:d.name,taskType:(0,ht.getTaskType)(d),displayName:d.metadata?.displayName,event:P,runtimeExpressionArgs:s,properties:f.resolvedProperties,error:T,vendorExecutionTimeMs:(0,ht.isUnifiedHttpTask)(d)||(0,ht.isIntSvcTask)(d)||(0,ht.isHttpTask)(d)?(0,ht.extractVendorProcessingTime)(f.data):void 0,...(0,ht.getHttpCallMode)(d)!==null?{HttpCallMode:(0,ht.getHttpCallMode)(d)?.toString()}:{},...k!==void 0?{isUiPathInternalServiceCall:k}:{},taskSpanId:h},a),T}}static setupTaskHandlerArgs(t,r,e,n){let i=new $o.TaskHandlerArgs(structuredClone(t));return i.allCurrentLevelTasks=r,i.taskIndexRef=e,i.workflowResult=n,i}};Lh.TaskExecutorHelper=Ng});var Dg=O(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});Uh.ServerlessWorkflowExecutor=void 0;var qh=Oe(),MG=oy(),jx=sc(),Bi=tt(),Hi=qe(),jc=Ce(),CG=rc(),Lg=Sy(),jG=US(),Nx=ky(),Nc=nd(),NG=$S(),Fh=Qa(),DG=Un(),Wh=class o{constructor(t,r,e,n,i,s){this.workflowStartedAt=void 0,this.customTaskHandlerFactories={},this.commandStream$=void 0,this.workflowStartedAt=new Date,this.workflow=t,this.logger=e,this.workflowConfig=r,this.workflowRunId=i||(0,qh.getNewGuid)(),this.workflowExecutionResults=new Hi.WorkflowExecutionResults(this.workflowRunId,r.debugConfig?.enableTaskTracking===!0),this.expressionHandler=(0,MG.getExpressionHandler)(t,n),n?.traceContextProvider&&(0,CG.setTraceContextProvider)(n.traceContextProvider),this.runtimeExpressionArgs=(0,Nx.createRuntimeExpressionArgs)(t,r,this.workflowStartedAt,this.workflowRunId,s),this.customTaskHandlerFactories=n?.taskHandlerFactories??{}}static getExecutor(t){return o.workflowExecutorMap.get(t)}static async execute(t,r,e,n,i){let s=null,c=null,u=i||(0,qh.getNewGuid)(),a=(0,NG.createRedactingLogger)(n?.logger??jG.defaultLogger,u);await(0,Bi.initLocalization)(r.languageCode),Fh.SecretRegistryStore.acquire(u);try{if(s=new o(t,r,a,n,u,e),o.workflowExecutorMap.set(s.workflowRunId,s),r.debugConfig?.runInDebugMode){if(!n?.commandStream$)throw a.error("$commandStream is required in WorkflowExecutorOptions when debug mode is enabled"),new Error((0,Bi.t)(Bi.ErrorKeys.INTERNAL_ERROR));s.commandStream$=n.commandStream$,c=n.commandStream$.subscribe(g=>{if(g.command===Hi.WorkflowCommandEvent.SetBreakpoints){let w=g.payload;Lg.DebugManager.setBreakpoints(s.workflowRunId,w)}}),Lg.DebugManager.setBreakpoints(s.workflowRunId,r.debugConfig?.breakpoints)}let l=await s.executeWorkflow(),d=s.runtimeExpressionArgs.$runtime.control?.signalWorkflowResponse,f=!!d,h=l.success===!1||d?.signalJobFailure===!0,_=l.success===!1?l.error:f?l.data:void 0,m=Fh.SecretRegistryStore.get(u),v=m?m.redact(_):_,b=new Hi.WorkflowResponse(h,v);return await a.shutdown(),b}catch(l){a?.error("Workflow execution failed",void 0,l instanceof Error?l:new Error((0,qh.getErrorMessage)(l))),await a.shutdown();let d=(0,jc.isWorkflowError)(l)?l:new jc.WorkflowErrorBuilder().fromError(l).setTitle((0,Bi.t)(Bi.ErrorKeys.WORKFLOW_EXECUTION_FAILED)).build(),f=Fh.SecretRegistryStore.get(u);throw f?f.redactError(d):d}finally{Fh.SecretRegistryStore.release(u),s?.expressionHandler?.dispose(),c?.unsubscribe(),Lg.DebugManager.clearBreakpoints(s?.workflowRunId??""),o.workflowExecutorMap.delete(s?.workflowRunId??""),Nc.LoggingHelper.cleanup(s?.workflowRunId??"")}}async executeWorkflow(){try{let t=(0,qh.redactObjectPaths)(this.workflowConfig,["accessToken","telemetryConfig.connectionString","tracingConfig.tracingToken"]);await Nc.LoggingHelper.logWorkflowData(this.logger,{event:Hi.WorkflowEvent.WORKFLOW_STARTED,runtimeExpressionArgs:this.runtimeExpressionArgs,input:this.runtimeExpressionArgs?.$workflow.input,details:t});let{do:r}=this.workflow;if(!r||r.length===0){let n=new Error("No do tasks found in workflow"),i=new jc.WorkflowErrorBuilder().fromError(n).build();return await Nc.LoggingHelper.logWorkflowData(this.logger,{event:Hi.WorkflowEvent.WORKFLOW_FAILED,runtimeExpressionArgs:this.runtimeExpressionArgs,error:i}),{success:!1,error:i}}this.workflowExecutionResults.addToWorkflowExecutions("do"),this.registerHostFunctions(),await this.expressionHandler.setVariables({$context:{orchestratorJobDetails:(0,Nx.buildJobMetadata)(this.workflowConfig)??{},variables:{}},$input:this.runtimeExpressionArgs?.$workflow.input,$output:{},$task:{output:{}},$workflow:this.runtimeExpressionArgs?.$workflow});let e=await DG.TaskExecutorHelper.executeTaskList(r,this.runtimeExpressionArgs?.$workflow.input,this.workflowConfig,this.runtimeExpressionArgs,this.logger,this.expressionHandler);return this.workflowExecutionResults.status=e.success?"completed":"faulted",await Nc.LoggingHelper.logWorkflowData(this.logger,{event:Hi.WorkflowEvent.WORKFLOW_COMPLETED,runtimeExpressionArgs:this.runtimeExpressionArgs,output:this.workflowConfig.debugConfig?.enableTaskTracking?this.workflowExecutionResults.result:e.data,details:this.workflowConfig.debugConfig?.enableTaskTracking?{executions:this.workflowExecutionResults.taskExecutions,status:this.workflowExecutionResults.status,error:e.error}:void 0}),e}catch(t){let r=(0,jc.isWorkflowError)(t)?t:new jc.WorkflowErrorBuilder().fromError(t).setTitle((0,Bi.t)(Bi.ErrorKeys.WORKFLOW_EXECUTION_FAILED)).build();throw this.workflowExecutionResults.status="faulted",await Nc.LoggingHelper.logWorkflowData(this.logger,{event:Hi.WorkflowEvent.WORKFLOW_FAILED,runtimeExpressionArgs:this.runtimeExpressionArgs,details:this.workflowConfig.debugConfig?.enableTaskTracking?{executions:this.workflowExecutionResults.taskExecutions,output:this.workflowExecutionResults.result,status:this.workflowExecutionResults.status,error:r}:void 0,error:r}),r}}registerHostFunctions(){this.expressionHandler.registerHostFunction("base64ToFile",t=>(0,jx.base64ToFile)(t??{},this.workflowConfig,this.logger)),this.expressionHandler.registerHostFunction("fileToBase64",t=>{let{ref:r}=t??{};return(0,jx.encodeFileToBase64)(r,this.workflowConfig,this.logger)})}};Uh.ServerlessWorkflowExecutor=Wh;Wh.workflowExecutorMap=new Map});var br=O(Ot=>{"use strict";var LG=Ot&&Ot.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),ya=Ot&&Ot.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&LG(t,o,r)};Object.defineProperty(Ot,"__esModule",{value:!0});Ot.ServerlessWorkflowExecutor=Ot.BaseScriptTaskHandler=void 0;ya(LE(),Ot);ya(nS(),Ot);ya(_S(),Ot);ya(tt(),Ot);ya(qe(),Ot);ya(Ce(),Ot);var qG=dy();Object.defineProperty(Ot,"BaseScriptTaskHandler",{enumerable:!0,get:function(){return qG.BaseScriptTaskHandler}});var FG=Dg();Object.defineProperty(Ot,"ServerlessWorkflowExecutor",{enumerable:!0,get:function(){return FG.ServerlessWorkflowExecutor}})});var eR={};$m(eR,{BaggageContextAccessor:()=>Bg});import{AsyncLocalStorage as oX}from"node:async_hooks";var Bg,tR=Pe(()=>{Bg=class o{static storage=new oX;static get(){return o.storage.getStore()?.value}static run(t,r){return o.storage.run({value:t},r)}static set(t){let r=o.storage.getStore();return r===void 0?!1:(r.value=t,!0)}}});var kt,zg,dR,Yg=Pe(()=>{kt={WorkflowEvent:"ApiWorkflow.WorkflowEvent",TaskEvent:"ApiWorkflow.TaskEvent",UserLog:"ApiWorkflow.UserLog",AppInsights:"ApiWorkflow.AppInsights",Ready:"ApiWorkflow.Ready",Lost:"ApiWorkflow.Lost",Chunk:"ApiWorkflow.Chunk"},zg="SendCommand",dR="PeerDisconnected"});var Pt,Hn,ut,r_,n_,o_,Fc,i_,zo=Pe(()=>{Pt=class extends Error{constructor(t,r){let e=new.target.prototype;super(`${t}: Status code '${r}'`),this.statusCode=r,this.__proto__=e}},Hn=class extends Error{constructor(t="A timeout occurred."){let r=new.target.prototype;super(t),this.__proto__=r}},ut=class extends Error{constructor(t="An abort occurred."){let r=new.target.prototype;super(t),this.__proto__=r}},r_=class extends Error{constructor(t,r){let e=new.target.prototype;super(t),this.transport=r,this.errorType="UnsupportedTransportError",this.__proto__=e}},n_=class extends Error{constructor(t,r){let e=new.target.prototype;super(t),this.transport=r,this.errorType="DisabledTransportError",this.__proto__=e}},o_=class extends Error{constructor(t,r){let e=new.target.prototype;super(t),this.transport=r,this.errorType="FailedToStartTransportError",this.__proto__=e}},Fc=class extends Error{constructor(t){let r=new.target.prototype;super(t),this.errorType="FailedToNegotiateWithServerError",this.__proto__=r}},i_=class extends Error{constructor(t,r){let e=new.target.prototype;super(t),this.innerErrors=r,this.__proto__=e}}});var wa,mn,Wc=Pe(()=>{wa=class{constructor(t,r,e){this.statusCode=t,this.statusText=r,this.content=e}},mn=class{get(t,r){return this.send({...r,method:"GET",url:t})}post(t,r){return this.send({...r,method:"POST",url:t})}delete(t,r){return this.send({...r,method:"DELETE",url:t})}getCookieString(t){return""}}});var U,Ur=Pe(()=>{(function(o){o[o.Trace=0]="Trace",o[o.Debug=1]="Debug",o[o.Information=2]="Information",o[o.Warning=3]="Warning",o[o.Error=4]="Error",o[o.Critical=5]="Critical",o[o.None=6]="None"})(U||(U={}))});var vn,s_=Pe(()=>{vn=class{constructor(){}log(t,r){}};vn.instance=new vn});var vR={};$m(vR,{Arg:()=>De,ConsoleLogger:()=>Yo,Platform:()=>We,SubjectSubscription:()=>Uc,VERSION:()=>Ea,constructUserAgent:()=>mR,createLogger:()=>Gg,formatArrayBuffer:()=>_R,getDataDetail:()=>Vn,getErrorString:()=>Bc,getGlobalThis:()=>Xg,getUserAgentHeader:()=>$r,isArrayBuffer:()=>wr,sendMessage:()=>$c});function Vn(o,t){let r="";return wr(o)?(r=`Binary data of length ${o.byteLength}`,t&&(r+=`. Content: '${_R(o)}'`)):typeof o=="string"&&(r=`String data of length ${o.length}`,t&&(r+=`. Content: '${o}'`)),r}function _R(o){let t=new Uint8Array(o),r="";return t.forEach(e=>{let n=e<16?"0":"";r+=`0x${n}${e.toString(16)} `}),r.substr(0,r.length-1)}function wr(o){return o&&typeof ArrayBuffer<"u"&&(o instanceof ArrayBuffer||o.constructor&&o.constructor.name==="ArrayBuffer")}async function $c(o,t,r,e,n,i){let s={},[c,u]=$r();s[c]=u,o.log(U.Trace,`(${t} transport) sending data. ${Vn(n,i.logMessageContent)}.`);let a=wr(n)?"arraybuffer":"text",l=await r.post(e,{content:n,headers:{...s,...i.headers},responseType:a,timeout:i.timeout,withCredentials:i.withCredentials});o.log(U.Trace,`(${t} transport) request complete. Response status: ${l.statusCode}.`)}function Gg(o){return o===void 0?new Yo(U.Information):o===null?vn.instance:o.log!==void 0?o:new Yo(o)}function $r(){let o="X-SignalR-User-Agent";return We.isNode&&(o="User-Agent"),[o,mR(Ea,vX(),bX(),yX())]}function mR(o,t,r,e){let n="Microsoft SignalR/",i=o.split(".");return n+=`${i[0]}.${i[1]}`,n+=` (${o}; `,t&&t!==""?n+=`${t}; `:n+="Unknown OS; ",n+=`${r}`,e?n+=`; ${e}`:n+="; Unknown Runtime Version",n+=")",n}function vX(){if(We.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function yX(){if(We.isNode)return process.versions.node}function bX(){return We.isNode?"NodeJS":"Browser"}function Bc(o){return o.stack?o.stack:o.message?o.message:`${o}`}function Xg(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}var Ea,De,We,Uc,Yo,Mt=Pe(()=>{Ur();s_();Ea="8.0.7",De=class{static isRequired(t,r){if(t==null)throw new Error(`The '${r}' argument is required.`)}static isNotEmpty(t,r){if(!t||t.match(/^\s*$/))throw new Error(`The '${r}' argument should not be empty.`)}static isIn(t,r,e){if(!(t in r))throw new Error(`Unknown ${e} value: ${t}.`)}},We=class o{static get isBrowser(){return!o.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!o.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!o.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}};Uc=class{constructor(t,r){this._subject=t,this._observer=r}dispose(){let t=this._subject.observers.indexOf(this._observer);t>-1&&this._subject.observers.splice(t,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(r=>{})}},Yo=class{constructor(t){this._minLevel=t,this.out=console}log(t,r){if(t>=this._minLevel){let e=`[${new Date().toISOString()}] ${U[t]}: ${r}`;switch(t){case U.Critical:case U.Error:this.out.error(e);break;case U.Warning:this.out.warn(e);break;case U.Information:this.out.info(e);break;default:this.out.log(e);break}}}}});function yR(o,t){let r;switch(t){case"arraybuffer":r=o.arrayBuffer();break;case"text":r=o.text();break;case"blob":case"document":case"json":throw new Error(`${t} is not supported.`);default:r=o.text();break}return r}var a_,bR=Pe(()=>{zo();Wc();Ur();Mt();a_=class extends mn{constructor(t){if(super(),this._logger=t,typeof fetch>"u"||We.isNode){let r=typeof __webpack_require__=="function"?__non_webpack_require__:Ue;this._jar=new(r("tough-cookie")).CookieJar,typeof fetch>"u"?this._fetchType=r("node-fetch"):this._fetchType=fetch,this._fetchType=r("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(Xg());if(typeof AbortController>"u"){let r=typeof __webpack_require__=="function"?__non_webpack_require__:Ue;this._abortControllerType=r("abort-controller")}else this._abortControllerType=AbortController}async send(t){if(t.abortSignal&&t.abortSignal.aborted)throw new ut;if(!t.method)throw new Error("No method defined.");if(!t.url)throw new Error("No url defined.");let r=new this._abortControllerType,e;t.abortSignal&&(t.abortSignal.onabort=()=>{r.abort(),e=new ut});let n=null;if(t.timeout){let u=t.timeout;n=setTimeout(()=>{r.abort(),this._logger.log(U.Warning,"Timeout from HTTP request."),e=new Hn},u)}t.content===""&&(t.content=void 0),t.content&&(t.headers=t.headers||{},wr(t.content)?t.headers["Content-Type"]="application/octet-stream":t.headers["Content-Type"]="text/plain;charset=UTF-8");let i;try{i=await this._fetchType(t.url,{body:t.content,cache:"no-cache",credentials:t.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...t.headers},method:t.method,mode:"cors",redirect:"follow",signal:r.signal})}catch(u){throw e||(this._logger.log(U.Warning,`Error from HTTP request. ${u}.`),u)}finally{n&&clearTimeout(n),t.abortSignal&&(t.abortSignal.onabort=null)}if(!i.ok){let u=await yR(i,"text");throw new Pt(u||i.statusText,i.status)}let c=await yR(i,t.responseType);return new wa(i.status,i.statusText,c)}getCookieString(t){let r="";return We.isNode&&this._jar&&this._jar.getCookies(t,(e,n)=>r=n.join("; ")),r}}});var c_,gR=Pe(()=>{zo();Wc();Ur();Mt();c_=class extends mn{constructor(t){super(),this._logger=t}send(t){return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new ut):t.method?t.url?new Promise((r,e)=>{let n=new XMLHttpRequest;n.open(t.method,t.url,!0),n.withCredentials=t.withCredentials===void 0?!0:t.withCredentials,n.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.content===""&&(t.content=void 0),t.content&&(wr(t.content)?n.setRequestHeader("Content-Type","application/octet-stream"):n.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));let i=t.headers;i&&Object.keys(i).forEach(s=>{n.setRequestHeader(s,i[s])}),t.responseType&&(n.responseType=t.responseType),t.abortSignal&&(t.abortSignal.onabort=()=>{n.abort(),e(new ut)}),t.timeout&&(n.timeout=t.timeout),n.onload=()=>{t.abortSignal&&(t.abortSignal.onabort=null),n.status>=200&&n.status<300?r(new wa(n.status,n.statusText,n.response||n.responseText)):e(new Pt(n.response||n.responseText||n.statusText,n.status))},n.onerror=()=>{this._logger.log(U.Warning,`Error from HTTP request. ${n.status}: ${n.statusText}.`),e(new Pt(n.statusText,n.status))},n.ontimeout=()=>{this._logger.log(U.Warning,"Timeout from HTTP request."),e(new Hn)},n.send(t.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}});var u_,wR=Pe(()=>{zo();bR();Wc();Mt();gR();u_=class extends mn{constructor(t){if(super(),typeof fetch<"u"||We.isNode)this._httpClient=new a_(t);else if(typeof XMLHttpRequest<"u")this._httpClient=new c_(t);else throw new Error("No usable HttpClient found.")}send(t){return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new ut):t.method?t.url?this._httpClient.send(t):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(t){return this._httpClient.getCookieString(t)}}});var tr,Zg=Pe(()=>{tr=class o{static write(t){return`${t}${o.RecordSeparator}`}static parse(t){if(t[t.length-1]!==o.RecordSeparator)throw new Error("Message is incomplete.");let r=t.split(o.RecordSeparator);return r.pop(),r}};tr.RecordSeparatorCode=30;tr.RecordSeparator=String.fromCharCode(tr.RecordSeparatorCode)});var l_,ER=Pe(()=>{Zg();Mt();l_=class{writeHandshakeRequest(t){return tr.write(JSON.stringify(t))}parseHandshakeResponse(t){let r,e;if(wr(t)){let c=new Uint8Array(t),u=c.indexOf(tr.RecordSeparatorCode);if(u===-1)throw new Error("Message is incomplete.");let a=u+1;r=String.fromCharCode.apply(null,Array.prototype.slice.call(c.slice(0,a))),e=c.byteLength>a?c.slice(a).buffer:null}else{let c=t,u=c.indexOf(tr.RecordSeparator);if(u===-1)throw new Error("Message is incomplete.");let a=u+1;r=c.substring(0,a),e=c.length>a?c.substring(a):null}let n=tr.parse(r),i=JSON.parse(n[0]);if(i.type)throw new Error("Expected a handshake response from the server.");return[e,i]}}});var pe,d_=Pe(()=>{(function(o){o[o.Invocation=1]="Invocation",o[o.StreamItem=2]="StreamItem",o[o.Completion=3]="Completion",o[o.StreamInvocation=4]="StreamInvocation",o[o.CancelInvocation=5]="CancelInvocation",o[o.Ping=6]="Ping",o[o.Close=7]="Close",o[o.Ack=8]="Ack",o[o.Sequence=9]="Sequence"})(pe||(pe={}))});var f_,TR=Pe(()=>{Mt();f_=class{constructor(){this.observers=[]}next(t){for(let r of this.observers)r.next(t)}error(t){for(let r of this.observers)r.error&&r.error(t)}complete(){for(let t of this.observers)t.complete&&t.complete()}subscribe(t){return this.observers.push(t),new Uc(this,t)}}});var p_,Qg,SR=Pe(()=>{d_();Mt();p_=class{constructor(t,r,e){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=t,this._connection=r,this._bufferSize=e}async _send(t){let r=this._protocol.writeMessage(t),e=Promise.resolve();if(this._isInvocationMessage(t)){this._totalMessageCount++;let n=()=>{},i=()=>{};wr(r)?this._bufferedByteCount+=r.byteLength:this._bufferedByteCount+=r.length,this._bufferedByteCount>=this._bufferSize&&(e=new Promise((s,c)=>{n=s,i=c})),this._messages.push(new Qg(r,this._totalMessageCount,n,i))}try{this._reconnectInProgress||await this._connection.send(r)}catch{this._disconnected()}await e}_ack(t){let r=-1;for(let e=0;e<this._messages.length;e++){let n=this._messages[e];if(n._id<=t.sequenceId)r=e,wr(n._message)?this._bufferedByteCount-=n._message.byteLength:this._bufferedByteCount-=n._message.length,n._resolver();else if(this._bufferedByteCount<this._bufferSize)n._resolver();else break}r!==-1&&(this._messages=this._messages.slice(r+1))}_shouldProcessMessage(t){if(this._waitForSequenceMessage)return t.type!==pe.Sequence?!1:(this._waitForSequenceMessage=!1,!0);if(!this._isInvocationMessage(t))return!0;let r=this._nextReceivingSequenceId;return this._nextReceivingSequenceId++,r<=this._latestReceivedSequenceId?(r===this._latestReceivedSequenceId&&this._ackTimer(),!1):(this._latestReceivedSequenceId=r,this._ackTimer(),!0)}_resetSequence(t){if(t.sequenceId>this._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=t.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){let t=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:pe.Sequence,sequenceId:t}));let r=this._messages;for(let e of r)await this._connection.send(e._message);this._reconnectInProgress=!1}_dispose(t){t??(t=new Error("Unable to reconnect to server."));for(let r of this._messages)r._rejector(t)}_isInvocationMessage(t){switch(t.type){case pe.Invocation:case pe.StreamItem:case pe.Completion:case pe.StreamInvocation:case pe.CancelInvocation:return!0;case pe.Close:case pe.Sequence:case pe.Ping:case pe.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:pe.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}},Qg=class{constructor(t,r,e,n){this._message=t,this._id=r,this._resolver=e,this._rejector=n}}});var gX,wX,EX,Ae,Hc,ew=Pe(()=>{ER();zo();d_();Ur();TR();Mt();SR();gX=30*1e3,wX=15*1e3,EX=1e5;(function(o){o.Disconnected="Disconnected",o.Connecting="Connecting",o.Connected="Connected",o.Disconnecting="Disconnecting",o.Reconnecting="Reconnecting"})(Ae||(Ae={}));Hc=class o{static create(t,r,e,n,i,s,c){return new o(t,r,e,n,i,s,c)}constructor(t,r,e,n,i,s,c){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(U.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},De.isRequired(t,"connection"),De.isRequired(r,"logger"),De.isRequired(e,"protocol"),this.serverTimeoutInMilliseconds=i??gX,this.keepAliveIntervalInMilliseconds=s??wX,this._statefulReconnectBufferSize=c??EX,this._logger=r,this._protocol=e,this.connection=t,this._reconnectPolicy=n,this._handshakeProtocol=new l_,this.connection.onreceive=u=>this._processIncomingData(u),this.connection.onclose=u=>this._connectionClosed(u),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=Ae.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:pe.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(t){if(this._connectionState!==Ae.Disconnected&&this._connectionState!==Ae.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!t)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=t}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==Ae.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=Ae.Connecting,this._logger.log(U.Debug,"Starting HubConnection.");try{await this._startInternal(),We.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=Ae.Connected,this._connectionStarted=!0,this._logger.log(U.Debug,"HubConnection connected successfully.")}catch(t){return this._connectionState=Ae.Disconnected,this._logger.log(U.Debug,`HubConnection failed to start successfully because of error '${t}'.`),Promise.reject(t)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;let t=new Promise((r,e)=>{this._handshakeResolver=r,this._handshakeRejecter=e});await this.connection.start(this._protocol.transferFormat);try{let r=this._protocol.version;this.connection.features.reconnect||(r=1);let e={protocol:this._protocol.name,version:r};if(this._logger.log(U.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(e)),this._logger.log(U.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await t,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new p_(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(r){throw this._logger.log(U.Debug,`Hub handshake failed with error '${r}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(r),r}}async stop(){let t=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await t}catch{}}_stopInternal(t){if(this._connectionState===Ae.Disconnected)return this._logger.log(U.Debug,`Call to HubConnection.stop(${t}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===Ae.Disconnecting)return this._logger.log(U.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;let r=this._connectionState;return this._connectionState=Ae.Disconnecting,this._logger.log(U.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(U.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(r===Ae.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=t||new ut("The connection was stopped before the hub handshake could complete."),this.connection.stop(t))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(t,...r){let[e,n]=this._replaceStreamingParams(r),i=this._createStreamInvocation(t,r,n),s,c=new f_;return c.cancelCallback=()=>{let u=this._createCancelInvocation(i.invocationId);return delete this._callbacks[i.invocationId],s.then(()=>this._sendWithProtocol(u))},this._callbacks[i.invocationId]=(u,a)=>{if(a){c.error(a);return}else u&&(u.type===pe.Completion?u.error?c.error(new Error(u.error)):c.complete():c.next(u.item))},s=this._sendWithProtocol(i).catch(u=>{c.error(u),delete this._callbacks[i.invocationId]}),this._launchStreams(e,s),c}_sendMessage(t){return this._resetKeepAliveInterval(),this.connection.send(t)}_sendWithProtocol(t){return this._messageBuffer?this._messageBuffer._send(t):this._sendMessage(this._protocol.writeMessage(t))}send(t,...r){let[e,n]=this._replaceStreamingParams(r),i=this._sendWithProtocol(this._createInvocation(t,r,!0,n));return this._launchStreams(e,i),i}invoke(t,...r){let[e,n]=this._replaceStreamingParams(r),i=this._createInvocation(t,r,!1,n);return new Promise((c,u)=>{this._callbacks[i.invocationId]=(l,d)=>{if(d){u(d);return}else l&&(l.type===pe.Completion?l.error?u(new Error(l.error)):c(l.result):u(new Error(`Unexpected message type: ${l.type}`)))};let a=this._sendWithProtocol(i).catch(l=>{u(l),delete this._callbacks[i.invocationId]});this._launchStreams(e,a)})}on(t,r){!t||!r||(t=t.toLowerCase(),this._methods[t]||(this._methods[t]=[]),this._methods[t].indexOf(r)===-1&&this._methods[t].push(r))}off(t,r){if(!t)return;t=t.toLowerCase();let e=this._methods[t];if(e)if(r){let n=e.indexOf(r);n!==-1&&(e.splice(n,1),e.length===0&&delete this._methods[t])}else delete this._methods[t]}onclose(t){t&&this._closedCallbacks.push(t)}onreconnecting(t){t&&this._reconnectingCallbacks.push(t)}onreconnected(t){t&&this._reconnectedCallbacks.push(t)}_processIncomingData(t){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(t=this._processHandshakeResponse(t),this._receivedHandshakeResponse=!0),t){let r=this._protocol.parseMessages(t,this._logger);for(let e of r)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(e)))switch(e.type){case pe.Invocation:this._invokeClientMethod(e).catch(n=>{this._logger.log(U.Error,`Invoke client method threw error: ${Bc(n)}`)});break;case pe.StreamItem:case pe.Completion:{let n=this._callbacks[e.invocationId];if(n){e.type===pe.Completion&&delete this._callbacks[e.invocationId];try{n(e)}catch(i){this._logger.log(U.Error,`Stream callback threw error: ${Bc(i)}`)}}break}case pe.Ping:break;case pe.Close:{this._logger.log(U.Information,"Close message received from server.");let n=e.error?new Error("Server returned an error on close: "+e.error):void 0;e.allowReconnect===!0?this.connection.stop(n):this._stopPromise=this._stopInternal(n);break}case pe.Ack:this._messageBuffer&&this._messageBuffer._ack(e);break;case pe.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(e);break;default:this._logger.log(U.Warning,`Invalid message type: ${e.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(t){let r,e;try{[e,r]=this._handshakeProtocol.parseHandshakeResponse(t)}catch(n){let i="Error parsing handshake response: "+n;this._logger.log(U.Error,i);let s=new Error(i);throw this._handshakeRejecter(s),s}if(r.error){let n="Server returned handshake error: "+r.error;this._logger.log(U.Error,n);let i=new Error(n);throw this._handshakeRejecter(i),i}else this._logger.log(U.Debug,"Server handshake complete.");return this._handshakeResolver(),e}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this._pingServerHandle===void 0)){let t=this._nextKeepAlive-new Date().getTime();t<0&&(t=0),this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===Ae.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},t)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(t){let r=t.target.toLowerCase(),e=this._methods[r];if(!e){this._logger.log(U.Warning,`No client method with the name '${r}' found.`),t.invocationId&&(this._logger.log(U.Warning,`No result given for '${r}' method and invocation ID '${t.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(t.invocationId,"Client didn't provide a result.",null)));return}let n=e.slice(),i=!!t.invocationId,s,c,u;for(let a of n)try{let l=s;s=await a.apply(this,t.arguments),i&&s&&l&&(this._logger.log(U.Error,`Multiple results provided for '${r}'. Sending error to server.`),u=this._createCompletionMessage(t.invocationId,"Client provided multiple results.",null)),c=void 0}catch(l){c=l,this._logger.log(U.Error,`A callback for the method '${r}' threw error '${l}'.`)}u?await this._sendWithProtocol(u):i?(c?u=this._createCompletionMessage(t.invocationId,`${c}`,null):s!==void 0?u=this._createCompletionMessage(t.invocationId,null,s):(this._logger.log(U.Warning,`No result given for '${r}' method and invocation ID '${t.invocationId}'.`),u=this._createCompletionMessage(t.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(u)):s&&this._logger.log(U.Error,`Result given for '${r}' method but server is not expecting a result.`)}_connectionClosed(t){this._logger.log(U.Debug,`HubConnection.connectionClosed(${t}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||t||new ut("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(t||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===Ae.Disconnecting?this._completeClose(t):this._connectionState===Ae.Connected&&this._reconnectPolicy?this._reconnect(t):this._connectionState===Ae.Connected&&this._completeClose(t)}_completeClose(t){if(this._connectionStarted){this._connectionState=Ae.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(t??new Error("Connection closed.")),this._messageBuffer=void 0),We.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(r=>r.apply(this,[t]))}catch(r){this._logger.log(U.Error,`An onclose callback called with error '${t}' threw error '${r}'.`)}}}async _reconnect(t){let r=Date.now(),e=0,n=t!==void 0?t:new Error("Attempting to reconnect due to a unknown error."),i=this._getNextRetryDelay(e++,0,n);if(i===null){this._logger.log(U.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(t);return}if(this._connectionState=Ae.Reconnecting,t?this._logger.log(U.Information,`Connection reconnecting because of error '${t}'.`):this._logger.log(U.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(s=>s.apply(this,[t]))}catch(s){this._logger.log(U.Error,`An onreconnecting callback called with error '${t}' threw error '${s}'.`)}if(this._connectionState!==Ae.Reconnecting){this._logger.log(U.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;i!==null;){if(this._logger.log(U.Information,`Reconnect attempt number ${e} will start in ${i} ms.`),await new Promise(s=>{this._reconnectDelayHandle=setTimeout(s,i)}),this._reconnectDelayHandle=void 0,this._connectionState!==Ae.Reconnecting){this._logger.log(U.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=Ae.Connected,this._logger.log(U.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(s=>s.apply(this,[this.connection.connectionId]))}catch(s){this._logger.log(U.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${s}'.`)}return}catch(s){if(this._logger.log(U.Information,`Reconnect attempt failed because of error '${s}'.`),this._connectionState!==Ae.Reconnecting){this._logger.log(U.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===Ae.Disconnecting&&this._completeClose();return}n=s instanceof Error?s:new Error(s.toString()),i=this._getNextRetryDelay(e++,Date.now()-r,n)}}this._logger.log(U.Information,`Reconnect retries have been exhausted after ${Date.now()-r} ms and ${e} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(t,r,e){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:r,previousRetryCount:t,retryReason:e})}catch(n){return this._logger.log(U.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${t}, ${r}) threw error '${n}'.`),null}}_cancelCallbacksWithError(t){let r=this._callbacks;this._callbacks={},Object.keys(r).forEach(e=>{let n=r[e];try{n(null,t)}catch(i){this._logger.log(U.Error,`Stream 'error' callback called with '${t}' threw error: ${Bc(i)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(t,r,e,n){if(e)return n.length!==0?{arguments:r,streamIds:n,target:t,type:pe.Invocation}:{arguments:r,target:t,type:pe.Invocation};{let i=this._invocationId;return this._invocationId++,n.length!==0?{arguments:r,invocationId:i.toString(),streamIds:n,target:t,type:pe.Invocation}:{arguments:r,invocationId:i.toString(),target:t,type:pe.Invocation}}}_launchStreams(t,r){if(t.length!==0){r||(r=Promise.resolve());for(let e in t)t[e].subscribe({complete:()=>{r=r.then(()=>this._sendWithProtocol(this._createCompletionMessage(e)))},error:n=>{let i;n instanceof Error?i=n.message:n&&n.toString?i=n.toString():i="Unknown error",r=r.then(()=>this._sendWithProtocol(this._createCompletionMessage(e,i)))},next:n=>{r=r.then(()=>this._sendWithProtocol(this._createStreamItemMessage(e,n)))}})}}_replaceStreamingParams(t){let r=[],e=[];for(let n=0;n<t.length;n++){let i=t[n];if(this._isObservable(i)){let s=this._invocationId;this._invocationId++,r[s]=i,e.push(s.toString()),t.splice(n,1)}}return[r,e]}_isObservable(t){return t&&t.subscribe&&typeof t.subscribe=="function"}_createStreamInvocation(t,r,e){let n=this._invocationId;return this._invocationId++,e.length!==0?{arguments:r,invocationId:n.toString(),streamIds:e,target:t,type:pe.StreamInvocation}:{arguments:r,invocationId:n.toString(),target:t,type:pe.StreamInvocation}}_createCancelInvocation(t){return{invocationId:t,type:pe.CancelInvocation}}_createStreamItemMessage(t,r){return{invocationId:t,item:r,type:pe.StreamItem}}_createCompletionMessage(t,r,e){return r?{error:r,invocationId:t,type:pe.Completion}:{invocationId:t,result:e,type:pe.Completion}}_createCloseMessage(){return{type:pe.Close}}}});var TX,Vc,OR=Pe(()=>{TX=[0,2e3,1e4,3e4,null],Vc=class{constructor(t){this._retryDelays=t!==void 0?[...t,null]:TX}nextRetryDelayInMilliseconds(t){return this._retryDelays[t.previousRetryCount]}}});var Br,tw=Pe(()=>{Br=class{};Br.Authorization="Authorization";Br.Cookie="Cookie"});var h_,kR=Pe(()=>{tw();Wc();h_=class extends mn{constructor(t,r){super(),this._innerClient=t,this._accessTokenFactory=r}async send(t){let r=!0;this._accessTokenFactory&&(!this._accessToken||t.url&&t.url.indexOf("/negotiate?")>0)&&(r=!1,this._accessToken=await this._accessTokenFactory()),this._setAuthorizationHeader(t);let e=await this._innerClient.send(t);return r&&e.statusCode===401&&this._accessTokenFactory?(this._accessToken=await this._accessTokenFactory(),this._setAuthorizationHeader(t),await this._innerClient.send(t)):e}_setAuthorizationHeader(t){t.headers||(t.headers={}),this._accessToken?t.headers[Br.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&t.headers[Br.Authorization]&&delete t.headers[Br.Authorization]}getCookieString(t){return this._innerClient.getCookieString(t)}}});var ot,nt,Ta=Pe(()=>{(function(o){o[o.None=0]="None",o[o.WebSockets=1]="WebSockets",o[o.ServerSentEvents=2]="ServerSentEvents",o[o.LongPolling=4]="LongPolling"})(ot||(ot={}));(function(o){o[o.Text=1]="Text",o[o.Binary=2]="Binary"})(nt||(nt={}))});var __,PR=Pe(()=>{__=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}}});var zc,AR=Pe(()=>{PR();zo();Ur();Ta();Mt();zc=class{get pollAborted(){return this._pollAbort.aborted}constructor(t,r,e){this._httpClient=t,this._logger=r,this._pollAbort=new __,this._options=e,this._running=!1,this.onreceive=null,this.onclose=null}async connect(t,r){if(De.isRequired(t,"url"),De.isRequired(r,"transferFormat"),De.isIn(r,nt,"transferFormat"),this._url=t,this._logger.log(U.Trace,"(LongPolling transport) Connecting."),r===nt.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");let[e,n]=$r(),i={[e]:n,...this._options.headers},s={abortSignal:this._pollAbort.signal,headers:i,timeout:1e5,withCredentials:this._options.withCredentials};r===nt.Binary&&(s.responseType="arraybuffer");let c=`${t}&_=${Date.now()}`;this._logger.log(U.Trace,`(LongPolling transport) polling: ${c}.`);let u=await this._httpClient.get(c,s);u.statusCode!==200?(this._logger.log(U.Error,`(LongPolling transport) Unexpected response code: ${u.statusCode}.`),this._closeError=new Pt(u.statusText||"",u.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,s)}async _poll(t,r){try{for(;this._running;)try{let e=`${t}&_=${Date.now()}`;this._logger.log(U.Trace,`(LongPolling transport) polling: ${e}.`);let n=await this._httpClient.get(e,r);n.statusCode===204?(this._logger.log(U.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):n.statusCode!==200?(this._logger.log(U.Error,`(LongPolling transport) Unexpected response code: ${n.statusCode}.`),this._closeError=new Pt(n.statusText||"",n.statusCode),this._running=!1):n.content?(this._logger.log(U.Trace,`(LongPolling transport) data received. ${Vn(n.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(n.content)):this._logger.log(U.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(e){this._running?e instanceof Hn?this._logger.log(U.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=e,this._running=!1):this._logger.log(U.Trace,`(LongPolling transport) Poll errored after shutdown: ${e.message}`)}}finally{this._logger.log(U.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(t){return this._running?$c(this._logger,"LongPolling",this._httpClient,this._url,t,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(U.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(U.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);let t={},[r,e]=$r();t[r]=e;let n={headers:{...t,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials},i;try{await this._httpClient.delete(this._url,n)}catch(s){i=s}i?i instanceof Pt&&(i.statusCode===404?this._logger.log(U.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log(U.Trace,`(LongPolling transport) Error sending a DELETE request: ${i}`)):this._logger.log(U.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log(U.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let t="(LongPolling transport) Firing onclose event.";this._closeError&&(t+=" Error: "+this._closeError),this._logger.log(U.Trace,t),this.onclose(this._closeError)}}}});var m_,IR=Pe(()=>{Ur();Ta();Mt();m_=class{constructor(t,r,e,n){this._httpClient=t,this._accessToken=r,this._logger=e,this._options=n,this.onreceive=null,this.onclose=null}async connect(t,r){return De.isRequired(t,"url"),De.isRequired(r,"transferFormat"),De.isIn(r,nt,"transferFormat"),this._logger.log(U.Trace,"(SSE transport) Connecting."),this._url=t,this._accessToken&&(t+=(t.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((e,n)=>{let i=!1;if(r!==nt.Text){n(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let s;if(We.isBrowser||We.isWebWorker)s=new this._options.EventSource(t,{withCredentials:this._options.withCredentials});else{let c=this._httpClient.getCookieString(t),u={};u.Cookie=c;let[a,l]=$r();u[a]=l,s=new this._options.EventSource(t,{withCredentials:this._options.withCredentials,headers:{...u,...this._options.headers}})}try{s.onmessage=c=>{if(this.onreceive)try{this._logger.log(U.Trace,`(SSE transport) data received. ${Vn(c.data,this._options.logMessageContent)}.`),this.onreceive(c.data)}catch(u){this._close(u);return}},s.onerror=c=>{i?this._close():n(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},s.onopen=()=>{this._logger.log(U.Information,`SSE connected to ${this._url}`),this._eventSource=s,i=!0,e()}}catch(c){n(c);return}})}async send(t){return this._eventSource?$c(this._logger,"SSE",this._httpClient,this._url,t,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(t){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(t))}}});var v_,xR=Pe(()=>{tw();Ur();Ta();Mt();v_=class{constructor(t,r,e,n,i,s){this._logger=e,this._accessTokenFactory=r,this._logMessageContent=n,this._webSocketConstructor=i,this._httpClient=t,this.onreceive=null,this.onclose=null,this._headers=s}async connect(t,r){De.isRequired(t,"url"),De.isRequired(r,"transferFormat"),De.isIn(r,nt,"transferFormat"),this._logger.log(U.Trace,"(WebSockets transport) Connecting.");let e;return this._accessTokenFactory&&(e=await this._accessTokenFactory()),new Promise((n,i)=>{t=t.replace(/^http/,"ws");let s,c=this._httpClient.getCookieString(t),u=!1;if(We.isNode||We.isReactNative){let a={},[l,d]=$r();a[l]=d,e&&(a[Br.Authorization]=`Bearer ${e}`),c&&(a[Br.Cookie]=c),s=new this._webSocketConstructor(t,void 0,{headers:{...a,...this._headers}})}else e&&(t+=(t.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(e)}`);s||(s=new this._webSocketConstructor(t)),r===nt.Binary&&(s.binaryType="arraybuffer"),s.onopen=a=>{this._logger.log(U.Information,`WebSocket connected to ${t}.`),this._webSocket=s,u=!0,n()},s.onerror=a=>{let l=null;typeof ErrorEvent<"u"&&a instanceof ErrorEvent?l=a.error:l="There was an error with the transport",this._logger.log(U.Information,`(WebSockets transport) ${l}.`)},s.onmessage=a=>{if(this._logger.log(U.Trace,`(WebSockets transport) data received. ${Vn(a.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(a.data)}catch(l){this._close(l);return}},s.onclose=a=>{if(u)this._close(a);else{let l=null;typeof ErrorEvent<"u"&&a instanceof ErrorEvent?l=a.error:l="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",i(new Error(l))}}})}send(t){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(U.Trace,`(WebSockets transport) sending data. ${Vn(t,this._logMessageContent)}.`),this._webSocket.send(t),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(t){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(U.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(t)&&(t.wasClean===!1||t.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${t.code} (${t.reason||"no reason given"}).`)):t instanceof Error?this.onclose(t):this.onclose())}_isCloseEvent(t){return t&&typeof t.wasClean=="boolean"&&typeof t.code=="number"}}});function SX(o,t){return!o||(t&o)!==0}var RR,y_,rw,Sa,MR=Pe(()=>{kR();wR();zo();Ur();Ta();AR();IR();Mt();xR();RR=100,y_=class{constructor(t,r={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,De.isRequired(t,"url"),this._logger=Gg(r.logger),this.baseUrl=this._resolveUrl(t),r=r||{},r.logMessageContent=r.logMessageContent===void 0?!1:r.logMessageContent,typeof r.withCredentials=="boolean"||r.withCredentials===void 0)r.withCredentials=r.withCredentials===void 0?!0:r.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");r.timeout=r.timeout===void 0?100*1e3:r.timeout;let e=null,n=null;if(We.isNode&&typeof Ue<"u"){let i=typeof __webpack_require__=="function"?__non_webpack_require__:Ue;e=i("ws"),n=i("eventsource")}!We.isNode&&typeof WebSocket<"u"&&!r.WebSocket?r.WebSocket=WebSocket:We.isNode&&!r.WebSocket&&e&&(r.WebSocket=e),!We.isNode&&typeof EventSource<"u"&&!r.EventSource?r.EventSource=EventSource:We.isNode&&!r.EventSource&&typeof n<"u"&&(r.EventSource=n),this._httpClient=new h_(r.httpClient||new u_(this._logger),r.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=r,this.onreceive=null,this.onclose=null}async start(t){if(t=t||nt.Binary,De.isIn(t,nt,"transferFormat"),this._logger.log(U.Debug,`Starting connection with transfer format '${nt[t]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(t),await this._startInternalPromise,this._connectionState==="Disconnecting"){let r="Failed to start the HttpConnection before stop() was called.";return this._logger.log(U.Error,r),await this._stopPromise,Promise.reject(new ut(r))}else if(this._connectionState!=="Connected"){let r="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(U.Error,r),Promise.reject(new ut(r))}this._connectionStarted=!0}send(t){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new rw(this.transport)),this._sendQueue.send(t))}async stop(t){if(this._connectionState==="Disconnected")return this._logger.log(U.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log(U.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(r=>{this._stopPromiseResolver=r}),await this._stopInternal(t),await this._stopPromise}async _stopInternal(t){this._stopError=t;try{await this._startInternalPromise}catch{}if(this.transport){try{await this.transport.stop()}catch(r){this._logger.log(U.Error,`HttpConnection.transport.stop() threw error '${r}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(U.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(t){let r=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===ot.WebSockets)this.transport=this._constructTransport(ot.WebSockets),await this._startTransport(r,t);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let e=null,n=0;do{if(e=await this._getNegotiationResponse(r),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new ut("The connection was stopped during negotiation.");if(e.error)throw new Error(e.error);if(e.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(e.url&&(r=e.url),e.accessToken){let i=e.accessToken;this._accessTokenFactory=()=>i,this._httpClient._accessToken=i,this._httpClient._accessTokenFactory=void 0}n++}while(e.url&&n<RR);if(n===RR&&e.url)throw new Error("Negotiate redirection limit exceeded.");await this._createTransport(r,this._options.transport,e,t)}this.transport instanceof zc&&(this.features.inherentKeepAlive=!0),this._connectionState==="Connecting"&&(this._logger.log(U.Debug,"The HttpConnection connected successfully."),this._connectionState="Connected")}catch(e){return this._logger.log(U.Error,"Failed to start the connection: "+e),this._connectionState="Disconnected",this.transport=void 0,this._stopPromiseResolver(),Promise.reject(e)}}async _getNegotiationResponse(t){let r={},[e,n]=$r();r[e]=n;let i=this._resolveNegotiateUrl(t);this._logger.log(U.Debug,`Sending negotiation request: ${i}.`);try{let s=await this._httpClient.post(i,{content:"",headers:{...r,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials});if(s.statusCode!==200)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${s.statusCode}'`));let c=JSON.parse(s.content);return(!c.negotiateVersion||c.negotiateVersion<1)&&(c.connectionToken=c.connectionId),c.useStatefulReconnect&&this._options._useStatefulReconnect!==!0?Promise.reject(new Fc("Client didn't negotiate Stateful Reconnect but the server did.")):c}catch(s){let c="Failed to complete negotiation with the server: "+s;return s instanceof Pt&&s.statusCode===404&&(c=c+" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this._logger.log(U.Error,c),Promise.reject(new Fc(c))}}_createConnectUrl(t,r){return r?t+(t.indexOf("?")===-1?"?":"&")+`id=${r}`:t}async _createTransport(t,r,e,n){let i=this._createConnectUrl(t,e.connectionToken);if(this._isITransport(r)){this._logger.log(U.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=r,await this._startTransport(i,n),this.connectionId=e.connectionId;return}let s=[],c=e.availableTransports||[],u=e;for(let a of c){let l=this._resolveTransportOrError(a,r,n,u?.useStatefulReconnect===!0);if(l instanceof Error)s.push(`${a.transport} failed:`),s.push(l);else if(this._isITransport(l)){if(this.transport=l,!u){try{u=await this._getNegotiationResponse(t)}catch(d){return Promise.reject(d)}i=this._createConnectUrl(t,u.connectionToken)}try{await this._startTransport(i,n),this.connectionId=u.connectionId;return}catch(d){if(this._logger.log(U.Error,`Failed to start the transport '${a.transport}': ${d}`),u=void 0,s.push(new o_(`${a.transport} failed: ${d}`,ot[a.transport])),this._connectionState!=="Connecting"){let f="Failed to select transport before stop() was called.";return this._logger.log(U.Debug,f),Promise.reject(new ut(f))}}}}return s.length>0?Promise.reject(new i_(`Unable to connect to the server with any of the available transports. ${s.join(" ")}`,s)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(t){switch(t){case ot.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new v_(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case ot.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new m_(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case ot.LongPolling:return new zc(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${t}.`)}}_startTransport(t,r){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async e=>{let n=!1;if(this.features.reconnect)try{this.features.disconnected(),await this.transport.connect(t,r),await this.features.resend()}catch{n=!0}else{this._stopConnection(e);return}n&&this._stopConnection(e)}:this.transport.onclose=e=>this._stopConnection(e),this.transport.connect(t,r)}_resolveTransportOrError(t,r,e,n){let i=ot[t.transport];if(i==null)return this._logger.log(U.Debug,`Skipping transport '${t.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${t.transport}' because it is not supported by this client.`);if(SX(r,i))if(t.transferFormats.map(c=>nt[c]).indexOf(e)>=0){if(i===ot.WebSockets&&!this._options.WebSocket||i===ot.ServerSentEvents&&!this._options.EventSource)return this._logger.log(U.Debug,`Skipping transport '${ot[i]}' because it is not supported in your environment.'`),new r_(`'${ot[i]}' is not supported in your environment.`,i);this._logger.log(U.Debug,`Selecting transport '${ot[i]}'.`);try{return this.features.reconnect=i===ot.WebSockets?n:void 0,this._constructTransport(i)}catch(c){return c}}else return this._logger.log(U.Debug,`Skipping transport '${ot[i]}' because it does not support the requested transfer format '${nt[e]}'.`),new Error(`'${ot[i]}' does not support ${nt[e]}.`);else return this._logger.log(U.Debug,`Skipping transport '${ot[i]}' because it was disabled by the client.`),new n_(`'${ot[i]}' is disabled by the client.`,i)}_isITransport(t){return t&&typeof t=="object"&&"connect"in t}_stopConnection(t){if(this._logger.log(U.Debug,`HttpConnection.stopConnection(${t}) called while in state ${this._connectionState}.`),this.transport=void 0,t=this._stopError||t,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log(U.Debug,`Call to HttpConnection.stopConnection(${t}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log(U.Warning,`Call to HttpConnection.stopConnection(${t}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${t}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),t?this._logger.log(U.Error,`Connection disconnected with error '${t}'.`):this._logger.log(U.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(r=>{this._logger.log(U.Error,`TransportSendQueue.stop() threw error '${r}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(t)}catch(r){this._logger.log(U.Error,`HttpConnection.onclose(${t}) threw error '${r}'.`)}}}_resolveUrl(t){if(t.lastIndexOf("https://",0)===0||t.lastIndexOf("http://",0)===0)return t;if(!We.isBrowser)throw new Error(`Cannot resolve '${t}'.`);let r=window.document.createElement("a");return r.href=t,this._logger.log(U.Information,`Normalizing '${t}' to '${r.href}'.`),r.href}_resolveNegotiateUrl(t){let r=new URL(t);r.pathname.endsWith("/")?r.pathname+="negotiate":r.pathname+="/negotiate";let e=new URLSearchParams(r.searchParams);return e.has("negotiateVersion")||e.append("negotiateVersion",this._negotiateVersion.toString()),e.has("useStatefulReconnect")?e.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&e.append("useStatefulReconnect","true"),r.search=e.toString(),r.toString()}};rw=class o{constructor(t){this._transport=t,this._buffer=[],this._executing=!0,this._sendBufferedData=new Sa,this._transportResult=new Sa,this._sendLoopPromise=this._sendLoop()}send(t){return this._bufferData(t),this._transportResult||(this._transportResult=new Sa),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(t){if(this._buffer.length&&typeof this._buffer[0]!=typeof t)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof t}`);this._buffer.push(t),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new Sa;let t=this._transportResult;this._transportResult=void 0;let r=typeof this._buffer[0]=="string"?this._buffer.join(""):o._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(r),t.resolve()}catch(e){t.reject(e)}}}static _concatBuffers(t){let r=t.map(i=>i.byteLength).reduce((i,s)=>i+s),e=new Uint8Array(r),n=0;for(let i of t)e.set(new Uint8Array(i),n),n+=i.byteLength;return e.buffer}},Sa=class{constructor(){this.promise=new Promise((t,r)=>[this._resolver,this._rejecter]=[t,r])}resolve(){this._resolver()}reject(t){this._rejecter(t)}}});var OX,b_,CR=Pe(()=>{d_();Ur();Ta();s_();Zg();OX="json",b_=class{constructor(){this.name=OX,this.version=2,this.transferFormat=nt.Text}parseMessages(t,r){if(typeof t!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!t)return[];r===null&&(r=vn.instance);let e=tr.parse(t),n=[];for(let i of e){let s=JSON.parse(i);if(typeof s.type!="number")throw new Error("Invalid payload.");switch(s.type){case pe.Invocation:this._isInvocationMessage(s);break;case pe.StreamItem:this._isStreamItemMessage(s);break;case pe.Completion:this._isCompletionMessage(s);break;case pe.Ping:break;case pe.Close:break;case pe.Ack:this._isAckMessage(s);break;case pe.Sequence:this._isSequenceMessage(s);break;default:r.log(U.Information,"Unknown message type '"+s.type+"' ignored.");continue}n.push(s)}return n}writeMessage(t){return tr.write(JSON.stringify(t))}_isInvocationMessage(t){this._assertNotEmptyString(t.target,"Invalid payload for Invocation message."),t.invocationId!==void 0&&this._assertNotEmptyString(t.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(t){if(this._assertNotEmptyString(t.invocationId,"Invalid payload for StreamItem message."),t.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(t){if(t.result&&t.error)throw new Error("Invalid payload for Completion message.");!t.result&&t.error&&this._assertNotEmptyString(t.error,"Invalid payload for Completion message."),this._assertNotEmptyString(t.invocationId,"Invalid payload for Completion message.")}_isAckMessage(t){if(typeof t.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(t){if(typeof t.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(t,r){if(typeof t!="string"||t==="")throw new Error(r)}}});function PX(o){let t=kX[o.toLowerCase()];if(typeof t<"u")return t;throw new Error(`Unknown log level: ${o}`)}function AX(o){return o.log!==void 0}var kX,Yc,jR=Pe(()=>{OR();MR();ew();Ur();CR();s_();Mt();kX={trace:U.Trace,debug:U.Debug,info:U.Information,information:U.Information,warn:U.Warning,warning:U.Warning,error:U.Error,critical:U.Critical,none:U.None};Yc=class{configureLogging(t){if(De.isRequired(t,"logging"),AX(t))this.logger=t;else if(typeof t=="string"){let r=PX(t);this.logger=new Yo(r)}else this.logger=new Yo(t);return this}withUrl(t,r){return De.isRequired(t,"url"),De.isNotEmpty(t,"url"),this.url=t,typeof r=="object"?this.httpConnectionOptions={...this.httpConnectionOptions,...r}:this.httpConnectionOptions={...this.httpConnectionOptions,transport:r},this}withHubProtocol(t){return De.isRequired(t,"protocol"),this.protocol=t,this}withAutomaticReconnect(t){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return t?Array.isArray(t)?this.reconnectPolicy=new Vc(t):this.reconnectPolicy=t:this.reconnectPolicy=new Vc,this}withServerTimeout(t){return De.isRequired(t,"milliseconds"),this._serverTimeoutInMilliseconds=t,this}withKeepAliveInterval(t){return De.isRequired(t,"milliseconds"),this._keepAliveIntervalInMilliseconds=t,this}withStatefulReconnect(t){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=t?.bufferSize,this}build(){let t=this.httpConnectionOptions||{};if(t.logger===void 0&&(t.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");let r=new y_(this.url,t);return Hc.create(r,this.logger||vn.instance,this.protocol||new b_,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}});var nw=Pe(()=>{zo();ew();jR();Mt()});var NR=O(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.LogLevel=void 0;var xX;(function(o){o[o.Trace=0]="Trace",o[o.Debug=1]="Debug",o[o.Information=2]="Information",o[o.Warning=3]="Warning",o[o.Error=4]="Error",o[o.Critical=5]="Critical",o[o.None=6]="None"})(xX=Kc.LogLevel||(Kc.LogLevel={}))});var DR=O(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0});g_.NullLogger=void 0;var Jc=class{constructor(){}log(t,r){}};g_.NullLogger=Jc;Jc.instance=new Jc});var UR=O(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.getGlobalThis=Ie.getErrorString=Ie.constructUserAgent=Ie.getUserAgentHeader=Ie.ConsoleLogger=Ie.SubjectSubscription=Ie.createLogger=Ie.sendMessage=Ie.isArrayBuffer=Ie.formatArrayBuffer=Ie.getDataDetail=Ie.Platform=Ie.Arg=Ie.VERSION=void 0;var Ko=NR(),RX=DR();Ie.VERSION="8.0.7";var ow=class{static isRequired(t,r){if(t==null)throw new Error(`The '${r}' argument is required.`)}static isNotEmpty(t,r){if(!t||t.match(/^\s*$/))throw new Error(`The '${r}' argument should not be empty.`)}static isIn(t,r,e){if(!(t in r))throw new Error(`Unknown ${e} value: ${t}.`)}};Ie.Arg=ow;var zi=class o{static get isBrowser(){return!o.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!o.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!o.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}};Ie.Platform=zi;function LR(o,t){let r="";return sw(o)?(r=`Binary data of length ${o.byteLength}`,t&&(r+=`. Content: '${qR(o)}'`)):typeof o=="string"&&(r=`String data of length ${o.length}`,t&&(r+=`. Content: '${o}'`)),r}Ie.getDataDetail=LR;function qR(o){let t=new Uint8Array(o),r="";return t.forEach(e=>{let n=e<16?"0":"";r+=`0x${n}${e.toString(16)} `}),r.substr(0,r.length-1)}Ie.formatArrayBuffer=qR;function sw(o){return o&&typeof ArrayBuffer<"u"&&(o instanceof ArrayBuffer||o.constructor&&o.constructor.name==="ArrayBuffer")}Ie.isArrayBuffer=sw;async function MX(o,t,r,e,n,i){let s={},[c,u]=FR();s[c]=u,o.log(Ko.LogLevel.Trace,`(${t} transport) sending data. ${LR(n,i.logMessageContent)}.`);let a=sw(n)?"arraybuffer":"text",l=await r.post(e,{content:n,headers:{...s,...i.headers},responseType:a,timeout:i.timeout,withCredentials:i.withCredentials});o.log(Ko.LogLevel.Trace,`(${t} transport) request complete. Response status: ${l.statusCode}.`)}Ie.sendMessage=MX;function CX(o){return o===void 0?new Gc(Ko.LogLevel.Information):o===null?RX.NullLogger.instance:o.log!==void 0?o:new Gc(o)}Ie.createLogger=CX;var iw=class{constructor(t,r){this._subject=t,this._observer=r}dispose(){let t=this._subject.observers.indexOf(this._observer);t>-1&&this._subject.observers.splice(t,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(r=>{})}};Ie.SubjectSubscription=iw;var Gc=class{constructor(t){this._minLevel=t,this.out=console}log(t,r){if(t>=this._minLevel){let e=`[${new Date().toISOString()}] ${Ko.LogLevel[t]}: ${r}`;switch(t){case Ko.LogLevel.Critical:case Ko.LogLevel.Error:this.out.error(e);break;case Ko.LogLevel.Warning:this.out.warn(e);break;case Ko.LogLevel.Information:this.out.info(e);break;default:this.out.log(e);break}}}};Ie.ConsoleLogger=Gc;function FR(){let o="X-SignalR-User-Agent";return zi.isNode&&(o="User-Agent"),[o,WR(Ie.VERSION,jX(),DX(),NX())]}Ie.getUserAgentHeader=FR;function WR(o,t,r,e){let n="Microsoft SignalR/",i=o.split(".");return n+=`${i[0]}.${i[1]}`,n+=` (${o}; `,t&&t!==""?n+=`${t}; `:n+="Unknown OS; ",n+=`${r}`,e?n+=`; ${e}`:n+="; Unknown Runtime Version",n+=")",n}Ie.constructUserAgent=WR;function jX(){if(zi.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function NX(){if(zi.isNode)return process.versions.node}function DX(){return zi.isNode?"NodeJS":"Browser"}function LX(o){return o.stack?o.stack:o.message?o.message:`${o}`}Ie.getErrorString=LX;function qX(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}Ie.getGlobalThis=qX});function BR(o){o&&Object.defineProperty(o,"isNode",{get:()=>!1,configurable:!0})}var HR,$R,FX,VR=Pe(async()=>{nw();HR=Ge(UR()),$R="8.0.7";if(Ea!==$R)throw new Error(`signalr-deno-platform: @microsoft/signalr is ${Ea}, expected ${$R}. The debug hub forces SignalR's browser path under deno by overriding the internal Platform.isNode getter; re-verify that override and the internal Utils import paths against the new version, then update EXPECTED_SIGNALR_VERSION.`);FX=typeof globalThis.Deno<"u";if(FX){BR(HR.Platform);try{let o=await Promise.resolve().then(()=>(Mt(),vR));BR(o.Platform)}catch{}}});function w_(o){if(typeof o=="number"){globalThis.Deno?.unrefTimer?.(o);return}o.unref?.()}var aw=Pe(()=>{});var zR={};$m(zR,{SignalRDebugConnection:()=>cw});var cw,YR=Pe(async()=>{await VR();nw();aw();Yg();cw=class o{static BUFFER_BYTE_CAP=32*1024*1024;static COMMAND_DEDUP_CAP=256;static STOP_START_WAIT_MS=2e3;static DEBUG_HUB_MAX_RECEIVE_BYTES=512*1024;static WIRE_EXPANSION_FACTOR=4;static WIRE_SAFETY_FRACTION=.75;static MAX_MESSAGE_SIZE_CHARS=Math.floor(o.DEBUG_HUB_MAX_RECEIVE_BYTES*o.WIRE_SAFETY_FRACTION/o.WIRE_EXPANSION_FACTOR);static MAX_SEND_ATTEMPTS=4;static RETRY_BACKSTOP_ATTEMPTS=25;static RETRY_DELAY_MS=250;connection=null;buffer=[];bufferBytes=0;totalDropped=0;totalSendFailureDrops=0;chunkIdPrefix=crypto.randomUUID();chunkGroupCounter=0;chunkingEnabled=!1;currentFlush=null;startPromise=null;stopping=!1;commandHandlers=new Map;peerDisconnectedHandler=null;seenCommandIds=new Map;hubUrl;accessTokenFactory;connectionFactory;retryDelayMs;constructor(t,r,e=o.defaultConnectionFactory,n=o.RETRY_DELAY_MS){this.hubUrl=t,this.accessTokenFactory=r,this.connectionFactory=e,this.retryDelayMs=n}static defaultConnectionFactory(t,r){return new Yc().withUrl(t,{accessTokenFactory:r}).withAutomaticReconnect().build()}onCommand(t,r){if(this.connection)throw new Error(`onCommand('${t}') called after start(); register handlers before start()`);this.commandHandlers.set(t,r)}onPeerDisconnected(t){if(this.connection)throw new Error("onPeerDisconnected called after start(); register the handler before start()");this.peerDisconnectedHandler=t}invokePeerDisconnected(){let t=this.peerDisconnectedHandler;if(t)try{t()}catch(r){console.error("SignalRDebugConnection: peer-disconnected handler threw",r)}}dispatchCommand(t,r,e){let{parsed:n,parseFailed:i}=o.parseJson(t,r);i||this.isDuplicateCommand(t,n)||o.invokeHandler(t,n,e)}isDuplicateCommand(t,r){if(!r||typeof r!="object")return!1;let e=r.__commandId;if(typeof e!="string"||e.length===0)return!1;if(this.seenCommandIds.has(e))return console.debug(`SignalRDebugConnection: dropping duplicate ${t} command (__commandId=${e})`),!0;if(this.seenCommandIds.set(e,!0),this.seenCommandIds.size>o.COMMAND_DEDUP_CAP){let n=this.seenCommandIds.keys().next().value;n!==void 0&&this.seenCommandIds.delete(n)}return!1}static parseJson(t,r){let e;if(typeof r=="string"&&r.length>0)try{e=JSON.parse(r)}catch(n){return console.error(`SignalRDebugConnection: failed to parse JSON payload for inbound command ${t}; dropping`,n),{parsed:void 0,parseFailed:!0}}return{parsed:e,parseFailed:!1}}static invokeHandler(t,r,e){try{e(r)}catch(n){console.error(`SignalRDebugConnection: handler for ${t} threw`,n)}}start(){return this.startPromise?this.startPromise:(this.stopping=!1,this.startPromise=this.doStart(),this.startPromise)}async doStart(){let t=this.connectionFactory(this.hubUrl,this.accessTokenFactory);for(let[r,e]of this.commandHandlers)t.on(r,n=>{this.dispatchCommand(r,n,e)});this.peerDisconnectedHandler&&t.on(dR,()=>{this.invokePeerDisconnected()}),t.onreconnected(()=>{this.flushBuffer()}),t.onclose(r=>{r&&!this.stopping&&(o.isAuthFailure(r)?console.error("SignalRDebugConnection: connection closed due to authentication failure",r):console.error("SignalRDebugConnection: connection closed unexpectedly",r))}),this.connection=t;try{await t.start(),await this.flushBuffer()}catch(r){o.isAuthFailure(r)?console.error("SignalRDebugConnection: initial connect rejected (auth)",r):console.error("SignalRDebugConnection: failed to start",r)}}static isAuthFailure(t){return t instanceof Pt&&(t.statusCode===401||t.statusCode===403)}enableChunking(){this.chunkingEnabled=!0}send(t){this.stopping||this.enqueue(t)&&this.connection?.state===Ae.Connected&&this.flushBuffer()}enqueue(t){let r=o.toBufferedEnvelope(t);if(!r)return!1;let e=this.dropToCapacity(r.bytes);return e&&this.prependLostEnvelope(e),this.buffer.push(r),this.bufferBytes+=r.bytes,!0}static toBufferedEnvelope(t){let r;try{r=JSON.stringify(t.payload)}catch(e){return console.error(`SignalRDebugConnection: failed to serialize payload for ${t.eventName}; dropping event`,e),null}return{eventName:t.eventName,jsonPayload:r,bytes:o.byteLength(r),seq:o.extractSeq(t.payload)}}dropToCapacity(t){let r=null;for(;this.bufferBytes+t>o.BUFFER_BYTE_CAP&&this.buffer.length>0;){let e=this.buffer.shift();this.bufferBytes-=e.bytes,this.totalDropped++,(this.totalDropped===1||this.totalDropped%100===0)&&console.warn(`SignalRDebugConnection: buffer overflow, dropped ${this.totalDropped} event(s)`),e.eventName!==kt.Lost&&typeof e.seq=="number"&&(r===null?r={fromSeq:e.seq,toSeq:e.seq,droppedCount:1}:(r.toSeq=e.seq,r.droppedCount++))}return r}prependLostEnvelope(t){let r=o.synthesizeLost(t);this.buffer.unshift(r),this.bufferBytes+=r.bytes}static synthesizeLost(t,r="buffer_overflow"){let e={seq:t.fromSeq,fromSeq:t.fromSeq,toSeq:t.toSeq,droppedCount:t.droppedCount,reason:r},n=JSON.stringify(e);return{eventName:kt.Lost,jsonPayload:n,bytes:o.byteLength(n),seq:t.fromSeq}}static TEXT_ENCODER=new TextEncoder;static byteLength(t){return o.TEXT_ENCODER.encode(t).length}static extractSeq(t){if(!t||typeof t!="object")return;let r=t.seq;return typeof r=="number"?r:void 0}flushBuffer(){return this.currentFlush??=this.doFlush().finally(()=>{this.currentFlush=null})}async doFlush(){for(;this.buffer.length>0&&this.connection?.state===Ae.Connected;){let t=this.connection,r=this.buffer.shift();this.bufferBytes-=r.bytes;try{await this.sendEnvelope(t,r)}catch(e){let n=this.handleSendFailure(t,r,e);if(n==="stop")return;n==="retry"&&!this.stopping&&await o.delay(this.retryDelayMs)}}}static delay(t){return new Promise(r=>{let e=setTimeout(r,t);w_(e)})}handleSendFailure(t,r,e){let n=r.attempts=(r.attempts??0)+1,i=r.seq,s=typeof i=="number"&&r.eventName!==kt.Lost,c=t.state===Ae.Connected,u=c?r.payloadAttempts=(r.payloadAttempts??0)+1:r.payloadAttempts??0,a=s&&u>=o.MAX_SEND_ATTEMPTS,l=n>=o.RETRY_BACKSTOP_ATTEMPTS;if(!a&&!l)return this.buffer.unshift(r),this.bufferBytes+=r.bytes,(n<=o.MAX_SEND_ATTEMPTS||n%10===0)&&console.error(`SignalRDebugConnection: relay of ${r.eventName} failed (attempt ${n}/${o.RETRY_BACKSTOP_ATTEMPTS}, ${u}/${o.MAX_SEND_ATTEMPTS} payload-blamed${c?"":", transport"}${s?"":", unreportable"}); will retry`,e),c?"retry":"stop";if(this.totalSendFailureDrops++,console.error(`SignalRDebugConnection: dropping ${r.eventName} after ${n} relay attempt(s), ${u} payload-blamed \u2014 ${a?"the hub keeps rejecting it":"retry backstop reached"}; ${this.totalSendFailureDrops} send-failure drop(s) so far`+(s?"":"; unreportable ("+(r.eventName===kt.Lost?"a Lost cannot report its own loss":"no seq to anchor a Lost")+"), so this drop is invisible to the FE"),e),s){let d=o.synthesizeLost({fromSeq:i,toSeq:i,droppedCount:1},"send_failed");this.buffer.unshift(d),this.bufferBytes+=d.bytes}return"continue"}async sendEnvelope(t,r){if(!this.chunkingEnabled||r.jsonPayload.length<=o.MAX_MESSAGE_SIZE_CHARS){await t.invoke(zg,r.eventName,r.jsonPayload);return}let e=`chunk-${this.chunkIdPrefix}-${this.chunkGroupCounter++}`,n=o.splitIntoParts(r.jsonPayload,o.MAX_MESSAGE_SIZE_CHARS);for(let i=0;i<n.length;i++){let s={correlationId:e,index:i,count:n.length,eventName:r.eventName,part:n[i]};await t.invoke(zg,kt.Chunk,JSON.stringify(s))}}static splitIntoParts(t,r){let e=[];for(let n=0;n<t.length;n+=r)e.push(t.substring(n,n+r));return e}async stop(){if(this.startPromise&&await o.withTimeout(this.startPromise,o.STOP_START_WAIT_MS),this.stopping=!0,this.currentFlush)try{await this.currentFlush}catch{}if(this.connection?.state===Ae.Connected)try{await this.flushBuffer()}catch{}try{await this.connection?.stop()}catch(t){console.error("SignalRDebugConnection: error during stop",t)}this.connection=null,this.startPromise=null}static withTimeout(t,r){return new Promise(e=>{let n=!1,i=()=>{n||(n=!0,e())},s=setTimeout(i,r);t.then(i,i).finally(()=>clearTimeout(s))})}isConnected(){return this.connection?.state===Ae.Connected}}});var dw=O((Xc,lw)=>{(function(o,t){typeof Xc=="object"&&typeof lw=="object"?lw.exports=t():typeof define=="function"&&define.amd?define([],t):typeof Xc=="object"?Xc.ipc=t():o.ipc=t()})(Xc,()=>{return o={8568:r=>{"use strict";r.exports={mask:(e,n,i,s,c)=>{for(var u=0;u<c;u++)i[s+u]=e[u]^n[3&u]},unmask:(e,n)=>{let i=e.length;for(var s=0;s<i;s++)e[s]^=n[3&s]}}},4984:(r,e,n)=>{"use strict";try{r.exports=n(6920)(__dirname)}catch{r.exports=n(8568)}},6920:(r,e,n)=>{var i=n(2058),s=n(7072),c=n(8558),u=Ue,a=process.config&&process.config.variables||{},l=!!process.env.PREBUILDS_ONLY,d=process.versions.modules,f=process.versions&&process.versions.electron||process.env.ELECTRON_RUN_AS_NODE||typeof window<"u"&&window.process&&window.process.type==="renderer"?"electron":process.versions&&process.versions.nw?"node-webkit":"node",h=process.env.npm_config_arch||c.arch(),_=process.env.npm_config_platform||c.platform(),m=process.env.LIBC||(function(D){return D==="linux"&&i.existsSync("/etc/alpine-release")}(_)?"musl":"glibc"),v=process.env.ARM_VERSION||(h==="arm64"?"8":a.arm_version)||"",b=(process.versions.uv||"").split(".")[0];function g(D){return u(g.path(D))}function w(D){try{return i.readdirSync(D)}catch{return[]}}function T(D,F){var q=w(D).filter(F);return q[0]&&s.join(D,q[0])}function P(D){return/\.node$/.test(D)}function k(D){var F=D.split("-");if(F.length===2){var q=F[0],z=F[1].split("+");if(q&&z.length&&z.every(Boolean))return{name:D,platform:q,architectures:z}}}function x(D,F){return function(q){return q!=null&&q.platform===D&&q.architectures.includes(F)}}function R(D,F){return D.architectures.length-F.architectures.length}function C(D){var F=D.split("."),q={file:D,specificity:0};if(F.pop()==="node"){for(var z=0;z<F.length;z++){var K=F[z];if(K==="node"||K==="electron"||K==="node-webkit")q.runtime=K;else if(K==="napi")q.napi=!0;else if(K.slice(0,3)==="abi")q.abi=K.slice(3);else if(K.slice(0,2)==="uv")q.uv=K.slice(2);else if(K.slice(0,4)==="armv")q.armv=K.slice(4);else{if(K!=="glibc"&&K!=="musl")continue;q.libc=K}q.specificity++}return q}}function j(D,F){return function(q){return!(q==null||q.runtime!==D&&!function(z){return z.runtime==="node"&&z.napi}(q)||q.abi!==F&&!q.napi||q.uv&&q.uv!==b||q.armv&&q.armv!==v||q.libc&&q.libc!==m)}}function L(D){return function(F,q){return F.runtime!==q.runtime?F.runtime===D?-1:1:F.abi!==q.abi?F.abi?-1:1:F.specificity!==q.specificity?F.specificity>q.specificity?-1:1:0}}r.exports=g,g.path=function(D){D=s.resolve(D||".");try{var F=u(s.join(D,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[F+"_PREBUILD"]&&(D=process.env[F+"_PREBUILD"])}catch{}if(!l){var q=T(s.join(D,"build/Release"),P);if(q)return q;var z=T(s.join(D,"build/Debug"),P);if(z)return z}var K=he(D);if(K)return K;var se=he(s.dirname(process.execPath));if(se)return se;var X=["platform="+_,"arch="+h,"runtime="+f,"abi="+d,"uv="+b,v?"armv="+v:"","libc="+m,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"","webpack=true"].filter(Boolean).join(" ");throw new Error("No native build was found for "+X+`
|
|
870
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}})});var Dn=O(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.arrRemove=void 0;function LF(o,t){if(o){var r=o.indexOf(t);0<=r&&o.splice(r,1)}}cd.arrRemove=LF});var er=O(Wt=>{"use strict";var BS=Wt&&Wt.__values||function(o){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&o[t],e=0;if(r)return r.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&e>=o.length&&(o=void 0),{value:o&&o[e++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},HS=Wt&&Wt.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},VS=Wt&&Wt.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.isSubscription=Wt.EMPTY_SUBSCRIPTION=Wt.Subscription=void 0;var dc=Ne(),Ay=Py(),zS=Dn(),Iy=function(){function o(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return o.prototype.unsubscribe=function(){var t,r,e,n,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var c=BS(s),u=c.next();!u.done;u=c.next()){var a=u.value;a.remove(this)}}catch(m){t={error:m}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else s.remove(this);var l=this.initialTeardown;if(dc.isFunction(l))try{l()}catch(m){i=m instanceof Ay.UnsubscriptionError?m.errors:[m]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=BS(d),h=f.next();!h.done;h=f.next()){var _=h.value;try{YS(_)}catch(m){i=i??[],m instanceof Ay.UnsubscriptionError?i=VS(VS([],HS(i)),HS(m.errors)):i.push(m)}}}catch(m){e={error:m}}finally{try{h&&!h.done&&(n=f.return)&&n.call(f)}finally{if(e)throw e.error}}}if(i)throw new Ay.UnsubscriptionError(i)}},o.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)YS(t);else{if(t instanceof o){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},o.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},o.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},o.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&zS.arrRemove(r,t)},o.prototype.remove=function(t){var r=this._finalizers;r&&zS.arrRemove(r,t),t instanceof o&&t._removeParent(this)},o.EMPTY=function(){var t=new o;return t.closed=!0,t}(),o}();Wt.Subscription=Iy;Wt.EMPTY_SUBSCRIPTION=Iy.EMPTY;function qF(o){return o instanceof Iy||o&&"closed"in o&&dc.isFunction(o.remove)&&dc.isFunction(o.add)&&dc.isFunction(o.unsubscribe)}Wt.isSubscription=qF;function YS(o){dc.isFunction(o)?o():o.unsubscribe()}});var ks=O(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.config=void 0;ud.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var xy=O(sn=>{"use strict";var KS=sn&&sn.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},JS=sn&&sn.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(sn,"__esModule",{value:!0});sn.timeoutProvider=void 0;sn.timeoutProvider={setTimeout:function(o,t){for(var r=[],e=2;e<arguments.length;e++)r[e-2]=arguments[e];var n=sn.timeoutProvider.delegate;return n?.setTimeout?n.setTimeout.apply(n,JS([o,t],KS(r))):setTimeout.apply(void 0,JS([o,t],KS(r)))},clearTimeout:function(o){var t=sn.timeoutProvider.delegate;return(t?.clearTimeout||clearTimeout)(o)},delegate:void 0}});var Ry=O(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.reportUnhandledError=void 0;var FF=ks(),WF=xy();function UF(o){WF.timeoutProvider.setTimeout(function(){var t=FF.config.onUnhandledError;if(t)t(o);else throw o})}ld.reportUnhandledError=UF});var yt=O(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.noop=void 0;function $F(){}dd.noop=$F});var GS=O(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.createNotification=an.nextNotification=an.errorNotification=an.COMPLETE_NOTIFICATION=void 0;an.COMPLETE_NOTIFICATION=function(){return fd("C",void 0,void 0)}();function BF(o){return fd("E",void 0,o)}an.errorNotification=BF;function HF(o){return fd("N",o,void 0)}an.nextNotification=HF;function fd(o,t,r){return{kind:o,value:t,error:r}}an.createNotification=fd});var pd=O(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.captureError=Ps.errorContext=void 0;var XS=ks(),Oi=null;function VF(o){if(XS.config.useDeprecatedSynchronousErrorHandling){var t=!Oi;if(t&&(Oi={errorThrown:!1,error:null}),o(),t){var r=Oi,e=r.errorThrown,n=r.error;if(Oi=null,e)throw n}}else o()}Ps.errorContext=VF;function zF(o){XS.config.useDeprecatedSynchronousErrorHandling&&Oi&&(Oi.errorThrown=!0,Oi.error=o)}Ps.captureError=zF});var As=O(Dr=>{"use strict";var eO=Dr&&Dr.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(Dr,"__esModule",{value:!0});Dr.EMPTY_OBSERVER=Dr.SafeSubscriber=Dr.Subscriber=void 0;var YF=Ne(),ZS=er(),Ny=ks(),KF=Ry(),QS=yt(),My=GS(),JF=xy(),GF=pd(),tO=function(o){eO(t,o);function t(r){var e=o.call(this)||this;return e.isStopped=!1,r?(e.destination=r,ZS.isSubscription(r)&&r.add(e)):e.destination=Dr.EMPTY_OBSERVER,e}return t.create=function(r,e,n){return new rO(r,e,n)},t.prototype.next=function(r){this.isStopped?jy(My.nextNotification(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?jy(My.errorNotification(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?jy(My.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,o.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(ZS.Subscription);Dr.Subscriber=tO;var XF=Function.prototype.bind;function Cy(o,t){return XF.call(o,t)}var ZF=function(){function o(t){this.partialObserver=t}return o.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(e){hd(e)}},o.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(e){hd(e)}else hd(t)},o.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){hd(r)}},o}(),rO=function(o){eO(t,o);function t(r,e,n){var i=o.call(this)||this,s;if(YF.isFunction(r)||!r)s={next:r??void 0,error:e??void 0,complete:n??void 0};else{var c;i&&Ny.config.useDeprecatedNextContext?(c=Object.create(r),c.unsubscribe=function(){return i.unsubscribe()},s={next:r.next&&Cy(r.next,c),error:r.error&&Cy(r.error,c),complete:r.complete&&Cy(r.complete,c)}):s=r}return i.destination=new ZF(s),i}return t}(tO);Dr.SafeSubscriber=rO;function hd(o){Ny.config.useDeprecatedSynchronousErrorHandling?GF.captureError(o):KF.reportUnhandledError(o)}function QF(o){throw o}function jy(o,t){var r=Ny.config.onStoppedNotification;r&&JF.timeoutProvider.setTimeout(function(){return r(o,t)})}Dr.EMPTY_OBSERVER={closed:!0,next:QS.noop,error:QF,complete:QS.noop}});var fc=O(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.observable=void 0;_d.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()});var bt=O(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.identity=void 0;function eW(o){return o}md.identity=eW});var pc=O(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.pipeFromArray=Is.pipe=void 0;var tW=bt();function rW(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return nO(o)}Is.pipe=rW;function nO(o){return o.length===0?tW.identity:o.length===1?o[0]:function(r){return o.reduce(function(e,n){return n(e)},r)}}Is.pipeFromArray=nO});var Fe=O(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.Observable=void 0;var Ly=As(),nW=er(),oW=fc(),iW=pc(),sW=ks(),Dy=Ne(),aW=pd(),cW=function(){function o(t){t&&(this._subscribe=t)}return o.prototype.lift=function(t){var r=new o;return r.source=this,r.operator=t,r},o.prototype.subscribe=function(t,r,e){var n=this,i=lW(t)?t:new Ly.SafeSubscriber(t,r,e);return aW.errorContext(function(){var s=n,c=s.operator,u=s.source;i.add(c?c.call(i,u):u?n._subscribe(i):n._trySubscribe(i))}),i},o.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},o.prototype.forEach=function(t,r){var e=this;return r=oO(r),new r(function(n,i){var s=new Ly.SafeSubscriber({next:function(c){try{t(c)}catch(u){i(u),s.unsubscribe()}},error:i,complete:n});e.subscribe(s)})},o.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},o.prototype[oW.observable]=function(){return this},o.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return iW.pipeFromArray(t)(this)},o.prototype.toPromise=function(t){var r=this;return t=oO(t),new t(function(e,n){var i;r.subscribe(function(s){return i=s},function(s){return n(s)},function(){return e(i)})})},o.create=function(t){return new o(t)},o}();vd.Observable=cW;function oO(o){var t;return(t=o??sW.config.Promise)!==null&&t!==void 0?t:Promise}function uW(o){return o&&Dy.isFunction(o.next)&&Dy.isFunction(o.error)&&Dy.isFunction(o.complete)}function lW(o){return o&&o instanceof Ly.Subscriber||uW(o)&&nW.isSubscription(o)}});var ee=O(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.operate=xs.hasLift=void 0;var dW=Ne();function iO(o){return dW.isFunction(o?.lift)}xs.hasLift=iO;function fW(o){return function(t){if(iO(t))return t.lift(function(r){try{return o(r,this)}catch(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}xs.operate=fW});var ie=O(mo=>{"use strict";var pW=mo&&mo.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(mo,"__esModule",{value:!0});mo.OperatorSubscriber=mo.createOperatorSubscriber=void 0;var hW=As();function _W(o,t,r,e,n){return new sO(o,t,r,e,n)}mo.createOperatorSubscriber=_W;var sO=function(o){pW(t,o);function t(r,e,n,i,s,c){var u=o.call(this,r)||this;return u.onFinalize=s,u.shouldUnsubscribe=c,u._next=e?function(a){try{e(a)}catch(l){r.error(l)}}:o.prototype._next,u._error=i?function(a){try{i(a)}catch(l){r.error(l)}finally{this.unsubscribe()}}:o.prototype._error,u._complete=n?function(){try{n()}catch(a){r.error(a)}finally{this.unsubscribe()}}:o.prototype._complete,u}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var e=this.closed;o.prototype.unsubscribe.call(this),!e&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t}(hW.Subscriber);mo.OperatorSubscriber=sO});var qy=O(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.refCount=void 0;var mW=ee(),vW=ie();function yW(){return mW.operate(function(o,t){var r=null;o._refCount++;var e=vW.createOperatorSubscriber(t,void 0,void 0,void 0,function(){if(!o||o._refCount<=0||0<--o._refCount){r=null;return}var n=o._connection,i=r;r=null,n&&(!i||n===i)&&n.unsubscribe(),t.unsubscribe()});o.subscribe(e),e.closed||(r=o.connect())})}yd.refCount=yW});var hc=O(Rs=>{"use strict";var bW=Rs&&Rs.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(Rs,"__esModule",{value:!0});Rs.ConnectableObservable=void 0;var gW=Fe(),aO=er(),wW=qy(),EW=ie(),TW=ee(),SW=function(o){bW(t,o);function t(r,e){var n=o.call(this)||this;return n.source=r,n.subjectFactory=e,n._subject=null,n._refCount=0,n._connection=null,TW.hasLift(r)&&(n.lift=r.lift),n}return t.prototype._subscribe=function(r){return this.getSubject().subscribe(r)},t.prototype.getSubject=function(){var r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var r=this._connection;this._subject=this._connection=null,r?.unsubscribe()},t.prototype.connect=function(){var r=this,e=this._connection;if(!e){e=this._connection=new aO.Subscription;var n=this.getSubject();e.add(this.source.subscribe(EW.createOperatorSubscriber(n,void 0,function(){r._teardown(),n.complete()},function(i){r._teardown(),n.error(i)},function(){return r._teardown()}))),e.closed&&(this._connection=null,e=aO.Subscription.EMPTY)}return e},t.prototype.refCount=function(){return wW.refCount()(this)},t}(gW.Observable);Rs.ConnectableObservable=SW});var cO=O(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.performanceTimestampProvider=void 0;_c.performanceTimestampProvider={now:function(){return(_c.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var Fy=O(Lr=>{"use strict";var uO=Lr&&Lr.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},lO=Lr&&Lr.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(Lr,"__esModule",{value:!0});Lr.animationFrameProvider=void 0;var OW=er();Lr.animationFrameProvider={schedule:function(o){var t=requestAnimationFrame,r=cancelAnimationFrame,e=Lr.animationFrameProvider.delegate;e&&(t=e.requestAnimationFrame,r=e.cancelAnimationFrame);var n=t(function(i){r=void 0,o(i)});return new OW.Subscription(function(){return r?.(n)})},requestAnimationFrame:function(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=Lr.animationFrameProvider.delegate;return(r?.requestAnimationFrame||requestAnimationFrame).apply(void 0,lO([],uO(o)))},cancelAnimationFrame:function(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=Lr.animationFrameProvider.delegate;return(r?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,lO([],uO(o)))},delegate:void 0}});var pO=O(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.animationFrames=void 0;var kW=Fe(),PW=cO(),dO=Fy();function AW(o){return o?fO(o):IW}bd.animationFrames=AW;function fO(o){return new kW.Observable(function(t){var r=o||PW.performanceTimestampProvider,e=r.now(),n=0,i=function(){t.closed||(n=dO.animationFrameProvider.requestAnimationFrame(function(s){n=0;var c=r.now();t.next({timestamp:o?c:s,elapsed:c-e}),i()}))};return i(),function(){n&&dO.animationFrameProvider.cancelAnimationFrame(n)}})}var IW=fO()});var Wy=O(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.ObjectUnsubscribedError=void 0;var xW=_o();gd.ObjectUnsubscribedError=xW.createErrorClass(function(o){return function(){o(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})});var gt=O(cn=>{"use strict";var _O=cn&&cn.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}(),RW=cn&&cn.__values||function(o){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&o[t],e=0;if(r)return r.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&e>=o.length&&(o=void 0),{value:o&&o[e++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(cn,"__esModule",{value:!0});cn.AnonymousSubject=cn.Subject=void 0;var hO=Fe(),$y=er(),MW=Wy(),CW=Dn(),Uy=pd(),mO=function(o){_O(t,o);function t(){var r=o.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var e=new By(this,this);return e.operator=r,e},t.prototype._throwIfClosed=function(){if(this.closed)throw new MW.ObjectUnsubscribedError},t.prototype.next=function(r){var e=this;Uy.errorContext(function(){var n,i;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var s=RW(e.currentObservers),c=s.next();!c.done;c=s.next()){var u=c.value;u.next(r)}}catch(a){n={error:a}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}}})},t.prototype.error=function(r){var e=this;Uy.errorContext(function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=r;for(var n=e.observers;n.length;)n.shift().error(r)}})},t.prototype.complete=function(){var r=this;Uy.errorContext(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var e=r.observers;e.length;)e.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),o.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var e=this,n=this,i=n.hasError,s=n.isStopped,c=n.observers;return i||s?$y.EMPTY_SUBSCRIPTION:(this.currentObservers=null,c.push(r),new $y.Subscription(function(){e.currentObservers=null,CW.arrRemove(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var e=this,n=e.hasError,i=e.thrownError,s=e.isStopped;n?r.error(i):s&&r.complete()},t.prototype.asObservable=function(){var r=new hO.Observable;return r.source=this,r},t.create=function(r,e){return new By(r,e)},t}(hO.Observable);cn.Subject=mO;var By=function(o){_O(t,o);function t(r,e){var n=o.call(this)||this;return n.destination=r,n.source=e,n}return t.prototype.next=function(r){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0||n.call(e,r)},t.prototype.error=function(r){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0||n.call(e,r)},t.prototype.complete=function(){var r,e;(e=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||e===void 0||e.call(r)},t.prototype._subscribe=function(r){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(r))!==null&&n!==void 0?n:$y.EMPTY_SUBSCRIPTION},t}(mO);cn.AnonymousSubject=By});var Hy=O(Ms=>{"use strict";var jW=Ms&&Ms.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(Ms,"__esModule",{value:!0});Ms.BehaviorSubject=void 0;var NW=gt(),DW=function(o){jW(t,o);function t(r){var e=o.call(this)||this;return e._value=r,e}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var e=o.prototype._subscribe.call(this,r);return!e.closed&&r.next(this._value),e},t.prototype.getValue=function(){var r=this,e=r.hasError,n=r.thrownError,i=r._value;if(e)throw n;return this._throwIfClosed(),i},t.prototype.next=function(r){o.prototype.next.call(this,this._value=r)},t}(NW.Subject);Ms.BehaviorSubject=DW});var wd=O(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.dateTimestampProvider=void 0;mc.dateTimestampProvider={now:function(){return(mc.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var Ed=O(Cs=>{"use strict";var LW=Cs&&Cs.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(Cs,"__esModule",{value:!0});Cs.ReplaySubject=void 0;var qW=gt(),FW=wd(),WW=function(o){LW(t,o);function t(r,e,n){r===void 0&&(r=1/0),e===void 0&&(e=1/0),n===void 0&&(n=FW.dateTimestampProvider);var i=o.call(this)||this;return i._bufferSize=r,i._windowTime=e,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=e===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,e),i}return t.prototype.next=function(r){var e=this,n=e.isStopped,i=e._buffer,s=e._infiniteTimeWindow,c=e._timestampProvider,u=e._windowTime;n||(i.push(r),!s&&i.push(c.now()+u)),this._trimBuffer(),o.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(r),n=this,i=n._infiniteTimeWindow,s=n._buffer,c=s.slice(),u=0;u<c.length&&!r.closed;u+=i?1:2)r.next(c[u]);return this._checkFinalizedStatuses(r),e},t.prototype._trimBuffer=function(){var r=this,e=r._bufferSize,n=r._timestampProvider,i=r._buffer,s=r._infiniteTimeWindow,c=(s?1:2)*e;if(e<1/0&&c<i.length&&i.splice(0,i.length-c),!s){for(var u=n.now(),a=0,l=1;l<i.length&&i[l]<=u;l+=2)a=l;a&&i.splice(0,a+1)}},t}(qW.Subject);Cs.ReplaySubject=WW});var Td=O(js=>{"use strict";var UW=js&&js.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(js,"__esModule",{value:!0});js.AsyncSubject=void 0;var $W=gt(),BW=function(o){UW(t,o);function t(){var r=o!==null&&o.apply(this,arguments)||this;return r._value=null,r._hasValue=!1,r._isComplete=!1,r}return t.prototype._checkFinalizedStatuses=function(r){var e=this,n=e.hasError,i=e._hasValue,s=e._value,c=e.thrownError,u=e.isStopped,a=e._isComplete;n?r.error(c):(u||a)&&(i&&r.next(s),r.complete())},t.prototype.next=function(r){this.isStopped||(this._value=r,this._hasValue=!0)},t.prototype.complete=function(){var r=this,e=r._hasValue,n=r._value,i=r._isComplete;i||(this._isComplete=!0,e&&o.prototype.next.call(this,n),o.prototype.complete.call(this))},t}($W.Subject);js.AsyncSubject=BW});var vO=O(Ns=>{"use strict";var HW=Ns&&Ns.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(Ns,"__esModule",{value:!0});Ns.Action=void 0;var VW=er(),zW=function(o){HW(t,o);function t(r,e){return o.call(this)||this}return t.prototype.schedule=function(r,e){return e===void 0&&(e=0),this},t}(VW.Subscription);Ns.Action=zW});var gO=O(un=>{"use strict";var yO=un&&un.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},bO=un&&un.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(un,"__esModule",{value:!0});un.intervalProvider=void 0;un.intervalProvider={setInterval:function(o,t){for(var r=[],e=2;e<arguments.length;e++)r[e-2]=arguments[e];var n=un.intervalProvider.delegate;return n?.setInterval?n.setInterval.apply(n,bO([o,t],yO(r))):setInterval.apply(void 0,bO([o,t],yO(r)))},clearInterval:function(o){var t=un.intervalProvider.delegate;return(t?.clearInterval||clearInterval)(o)},delegate:void 0}});var Ls=O(Ds=>{"use strict";var YW=Ds&&Ds.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(Ds,"__esModule",{value:!0});Ds.AsyncAction=void 0;var KW=vO(),wO=gO(),JW=Dn(),GW=function(o){YW(t,o);function t(r,e){var n=o.call(this,r,e)||this;return n.scheduler=r,n.work=e,n.pending=!1,n}return t.prototype.schedule=function(r,e){var n;if(e===void 0&&(e=0),this.closed)return this;this.state=r;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,e)),this.pending=!0,this.delay=e,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(s,this.id,e),this},t.prototype.requestAsyncId=function(r,e,n){return n===void 0&&(n=0),wO.intervalProvider.setInterval(r.flush.bind(r,this),n)},t.prototype.recycleAsyncId=function(r,e,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return e;e!=null&&wO.intervalProvider.clearInterval(e)},t.prototype.execute=function(r,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(r,e);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,e){var n=!1,i;try{this.work(r)}catch(s){n=!0,i=s||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,e=r.id,n=r.scheduler,i=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,JW.arrRemove(i,this),e!=null&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,o.prototype.unsubscribe.call(this)}},t}(KW.Action);Ds.AsyncAction=GW});var TO=O(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.TestTools=qs.Immediate=void 0;var XW=1,Vy,Sd={};function EO(o){return o in Sd?(delete Sd[o],!0):!1}qs.Immediate={setImmediate:function(o){var t=XW++;return Sd[t]=!0,Vy||(Vy=Promise.resolve()),Vy.then(function(){return EO(t)&&o()}),t},clearImmediate:function(o){EO(o)}};qs.TestTools={pending:function(){return Object.keys(Sd).length}}});var OO=O(ln=>{"use strict";var ZW=ln&&ln.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},QW=ln&&ln.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(ln,"__esModule",{value:!0});ln.immediateProvider=void 0;var SO=TO(),eU=SO.Immediate.setImmediate,tU=SO.Immediate.clearImmediate;ln.immediateProvider={setImmediate:function(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=ln.immediateProvider.delegate;return(r?.setImmediate||eU).apply(void 0,QW([],ZW(o)))},clearImmediate:function(o){var t=ln.immediateProvider.delegate;return(t?.clearImmediate||tU)(o)},delegate:void 0}});var PO=O(Fs=>{"use strict";var rU=Fs&&Fs.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(Fs,"__esModule",{value:!0});Fs.AsapAction=void 0;var nU=Ls(),kO=OO(),oU=function(o){rU(t,o);function t(r,e){var n=o.call(this,r,e)||this;return n.scheduler=r,n.work=e,n}return t.prototype.requestAsyncId=function(r,e,n){return n===void 0&&(n=0),n!==null&&n>0?o.prototype.requestAsyncId.call(this,r,e,n):(r.actions.push(this),r._scheduled||(r._scheduled=kO.immediateProvider.setImmediate(r.flush.bind(r,void 0))))},t.prototype.recycleAsyncId=function(r,e,n){var i;if(n===void 0&&(n=0),n!=null?n>0:this.delay>0)return o.prototype.recycleAsyncId.call(this,r,e,n);var s=r.actions;e!=null&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==e&&(kO.immediateProvider.clearImmediate(e),r._scheduled=void 0)},t}(nU.AsyncAction);Fs.AsapAction=oU});var zy=O(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});Od.Scheduler=void 0;var iU=wd(),sU=function(){function o(t,r){r===void 0&&(r=o.now),this.schedulerActionCtor=t,this.now=r}return o.prototype.schedule=function(t,r,e){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(e,r)},o.now=iU.dateTimestampProvider.now,o}();Od.Scheduler=sU});var Us=O(Ws=>{"use strict";var aU=Ws&&Ws.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(Ws,"__esModule",{value:!0});Ws.AsyncScheduler=void 0;var AO=zy(),cU=function(o){aU(t,o);function t(r,e){e===void 0&&(e=AO.Scheduler.now);var n=o.call(this,r,e)||this;return n.actions=[],n._active=!1,n}return t.prototype.flush=function(r){var e=this.actions;if(this._active){e.push(r);return}var n;this._active=!0;do if(n=r.execute(r.state,r.delay))break;while(r=e.shift());if(this._active=!1,n){for(;r=e.shift();)r.unsubscribe();throw n}},t}(AO.Scheduler);Ws.AsyncScheduler=cU});var IO=O($s=>{"use strict";var uU=$s&&$s.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty($s,"__esModule",{value:!0});$s.AsapScheduler=void 0;var lU=Us(),dU=function(o){uU(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var e=this._scheduled;this._scheduled=void 0;var n=this.actions,i;r=r||n.shift();do if(i=r.execute(r.state,r.delay))break;while((r=n[0])&&r.id===e&&n.shift());if(this._active=!1,i){for(;(r=n[0])&&r.id===e&&n.shift();)r.unsubscribe();throw i}},t}(lU.AsyncScheduler);$s.AsapScheduler=dU});var xO=O(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.asap=ki.asapScheduler=void 0;var fU=PO(),pU=IO();ki.asapScheduler=new pU.AsapScheduler(fU.AsapAction);ki.asap=ki.asapScheduler});var Ut=O(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.async=Pi.asyncScheduler=void 0;var hU=Ls(),_U=Us();Pi.asyncScheduler=new _U.AsyncScheduler(hU.AsyncAction);Pi.async=Pi.asyncScheduler});var RO=O(Bs=>{"use strict";var mU=Bs&&Bs.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(Bs,"__esModule",{value:!0});Bs.QueueAction=void 0;var vU=Ls(),yU=function(o){mU(t,o);function t(r,e){var n=o.call(this,r,e)||this;return n.scheduler=r,n.work=e,n}return t.prototype.schedule=function(r,e){return e===void 0&&(e=0),e>0?o.prototype.schedule.call(this,r,e):(this.delay=e,this.state=r,this.scheduler.flush(this),this)},t.prototype.execute=function(r,e){return e>0||this.closed?o.prototype.execute.call(this,r,e):this._execute(r,e)},t.prototype.requestAsyncId=function(r,e,n){return n===void 0&&(n=0),n!=null&&n>0||n==null&&this.delay>0?o.prototype.requestAsyncId.call(this,r,e,n):(r.flush(this),0)},t}(vU.AsyncAction);Bs.QueueAction=yU});var MO=O(Hs=>{"use strict";var bU=Hs&&Hs.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(Hs,"__esModule",{value:!0});Hs.QueueScheduler=void 0;var gU=Us(),wU=function(o){bU(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t}(gU.AsyncScheduler);Hs.QueueScheduler=wU});var CO=O(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.queue=Ai.queueScheduler=void 0;var EU=RO(),TU=MO();Ai.queueScheduler=new TU.QueueScheduler(EU.QueueAction);Ai.queue=Ai.queueScheduler});var NO=O(Vs=>{"use strict";var SU=Vs&&Vs.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(Vs,"__esModule",{value:!0});Vs.AnimationFrameAction=void 0;var OU=Ls(),jO=Fy(),kU=function(o){SU(t,o);function t(r,e){var n=o.call(this,r,e)||this;return n.scheduler=r,n.work=e,n}return t.prototype.requestAsyncId=function(r,e,n){return n===void 0&&(n=0),n!==null&&n>0?o.prototype.requestAsyncId.call(this,r,e,n):(r.actions.push(this),r._scheduled||(r._scheduled=jO.animationFrameProvider.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,e,n){var i;if(n===void 0&&(n=0),n!=null?n>0:this.delay>0)return o.prototype.recycleAsyncId.call(this,r,e,n);var s=r.actions;e!=null&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==e&&(jO.animationFrameProvider.cancelAnimationFrame(e),r._scheduled=void 0)},t}(OU.AsyncAction);Vs.AnimationFrameAction=kU});var DO=O(zs=>{"use strict";var PU=zs&&zs.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(zs,"__esModule",{value:!0});zs.AnimationFrameScheduler=void 0;var AU=Us(),IU=function(o){PU(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var e=this._scheduled;this._scheduled=void 0;var n=this.actions,i;r=r||n.shift();do if(i=r.execute(r.state,r.delay))break;while((r=n[0])&&r.id===e&&n.shift());if(this._active=!1,i){for(;(r=n[0])&&r.id===e&&n.shift();)r.unsubscribe();throw i}},t}(AU.AsyncScheduler);zs.AnimationFrameScheduler=IU});var LO=O(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.animationFrame=Ii.animationFrameScheduler=void 0;var xU=NO(),RU=DO();Ii.animationFrameScheduler=new RU.AnimationFrameScheduler(xU.AnimationFrameAction);Ii.animationFrame=Ii.animationFrameScheduler});var WO=O(vo=>{"use strict";var qO=vo&&vo.__extends||function(){var o=function(t,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},o(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(vo,"__esModule",{value:!0});vo.VirtualAction=vo.VirtualTimeScheduler=void 0;var MU=Ls(),CU=er(),jU=Us(),NU=function(o){qO(t,o);function t(r,e){r===void 0&&(r=FO),e===void 0&&(e=1/0);var n=o.call(this,r,function(){return n.frame})||this;return n.maxFrames=e,n.frame=0,n.index=-1,n}return t.prototype.flush=function(){for(var r=this,e=r.actions,n=r.maxFrames,i,s;(s=e[0])&&s.delay<=n&&(e.shift(),this.frame=s.delay,!(i=s.execute(s.state,s.delay))););if(i){for(;s=e.shift();)s.unsubscribe();throw i}},t.frameTimeFactor=10,t}(jU.AsyncScheduler);vo.VirtualTimeScheduler=NU;var FO=function(o){qO(t,o);function t(r,e,n){n===void 0&&(n=r.index+=1);var i=o.call(this,r,e)||this;return i.scheduler=r,i.work=e,i.index=n,i.active=!0,i.index=r.index=n,i}return t.prototype.schedule=function(r,e){if(e===void 0&&(e=0),Number.isFinite(e)){if(!this.id)return o.prototype.schedule.call(this,r,e);this.active=!1;var n=new t(this.scheduler,this.work);return this.add(n),n.schedule(r,e)}else return CU.Subscription.EMPTY},t.prototype.requestAsyncId=function(r,e,n){n===void 0&&(n=0),this.delay=r.frame+n;var i=r.actions;return i.push(this),i.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(r,e,n){n===void 0&&(n=0)},t.prototype._execute=function(r,e){if(this.active===!0)return o.prototype._execute.call(this,r,e)},t.sortActions=function(r,e){return r.delay===e.delay?r.index===e.index?0:r.index>e.index?1:-1:r.delay>e.delay?1:-1},t}(MU.AsyncAction);vo.VirtualAction=FO});var qr=O(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.empty=xi.EMPTY=void 0;var UO=Fe();xi.EMPTY=new UO.Observable(function(o){return o.complete()});function DU(o){return o?LU(o):xi.EMPTY}xi.empty=DU;function LU(o){return new UO.Observable(function(t){return o.schedule(function(){return t.complete()})})}});var vc=O(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.isScheduler=void 0;var qU=Ne();function FU(o){return o&&qU.isFunction(o.schedule)}kd.isScheduler=FU});var $t=O(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.popNumber=yo.popScheduler=yo.popResultSelector=void 0;var WU=Ne(),UU=vc();function Yy(o){return o[o.length-1]}function $U(o){return WU.isFunction(Yy(o))?o.pop():void 0}yo.popResultSelector=$U;function BU(o){return UU.isScheduler(Yy(o))?o.pop():void 0}yo.popScheduler=BU;function HU(o,t){return typeof Yy(o)=="number"?o.pop():t}yo.popNumber=HU});var Ad=O(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.isArrayLike=void 0;Pd.isArrayLike=function(o){return o&&typeof o.length=="number"&&typeof o!="function"}});var Ky=O(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.isPromise=void 0;var VU=Ne();function zU(o){return VU.isFunction(o?.then)}Id.isPromise=zU});var Jy=O(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.isInteropObservable=void 0;var YU=fc(),KU=Ne();function JU(o){return KU.isFunction(o[YU.observable])}xd.isInteropObservable=JU});var Gy=O(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.isAsyncIterable=void 0;var GU=Ne();function XU(o){return Symbol.asyncIterator&&GU.isFunction(o?.[Symbol.asyncIterator])}Rd.isAsyncIterable=XU});var Xy=O(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.createInvalidObservableTypeError=void 0;function ZU(o){return new TypeError("You provided "+(o!==null&&typeof o=="object"?"an invalid object":"'"+o+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}Md.createInvalidObservableTypeError=ZU});var Zy=O(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.iterator=Ys.getSymbolIterator=void 0;function $O(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}Ys.getSymbolIterator=$O;Ys.iterator=$O()});var Qy=O(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.isIterable=void 0;var QU=Zy(),e$=Ne();function t$(o){return e$.isFunction(o?.[QU.iterator])}Cd.isIterable=t$});var jd=O(_r=>{"use strict";var r$=_r&&_r.__generator||function(o,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,n,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(a){return function(l){return u([a,l])}}function u(a){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,n&&(i=a[0]&2?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,n=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1],i=a;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(a);break}i[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(o,r)}catch(l){a=[6,l],n=0}finally{e=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},Ks=_r&&_r.__await||function(o){return this instanceof Ks?(this.v=o,this):new Ks(o)},n$=_r&&_r.__asyncGenerator||function(o,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r.apply(o,t||[]),n,i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(f){e[f]&&(n[f]=function(h){return new Promise(function(_,m){i.push([f,h,_,m])>1||c(f,h)})})}function c(f,h){try{u(e[f](h))}catch(_){d(i[0][3],_)}}function u(f){f.value instanceof Ks?Promise.resolve(f.value.v).then(a,l):d(i[0][2],f)}function a(f){c("next",f)}function l(f){c("throw",f)}function d(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1])}};Object.defineProperty(_r,"__esModule",{value:!0});_r.isReadableStreamLike=_r.readableStreamLikeToAsyncGenerator=void 0;var o$=Ne();function i$(o){return n$(this,arguments,function(){var r,e,n,i;return r$(this,function(s){switch(s.label){case 0:r=o.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Ks(r.read())];case 3:return e=s.sent(),n=e.value,i=e.done,i?[4,Ks(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Ks(n)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}_r.readableStreamLikeToAsyncGenerator=i$;function s$(o){return o$.isFunction(o?.getReader)}_r.isReadableStreamLike=s$});var ve=O(Ye=>{"use strict";var a$=Ye&&Ye.__awaiter||function(o,t,r,e){function n(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function c(l){try{a(e.next(l))}catch(d){s(d)}}function u(l){try{a(e.throw(l))}catch(d){s(d)}}function a(l){l.done?i(l.value):n(l.value).then(c,u)}a((e=e.apply(o,t||[])).next())})},c$=Ye&&Ye.__generator||function(o,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,n,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(a){return function(l){return u([a,l])}}function u(a){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,n&&(i=a[0]&2?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,n=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1],i=a;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(a);break}i[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(o,r)}catch(l){a=[6,l],n=0}finally{e=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},u$=Ye&&Ye.__asyncValues||function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=o[Symbol.asyncIterator],r;return t?t.call(o):(o=typeof eb=="function"?eb(o):o[Symbol.iterator](),r={},e("next"),e("throw"),e("return"),r[Symbol.asyncIterator]=function(){return this},r);function e(i){r[i]=o[i]&&function(s){return new Promise(function(c,u){s=o[i](s),n(c,u,s.done,s.value)})}}function n(i,s,c,u){Promise.resolve(u).then(function(a){i({value:a,done:c})},s)}},eb=Ye&&Ye.__values||function(o){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&o[t],e=0;if(r)return r.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&e>=o.length&&(o=void 0),{value:o&&o[e++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.fromReadableStreamLike=Ye.fromAsyncIterable=Ye.fromIterable=Ye.fromPromise=Ye.fromArrayLike=Ye.fromInteropObservable=Ye.innerFrom=void 0;var l$=Ad(),d$=Ky(),Js=Fe(),f$=Jy(),p$=Gy(),h$=Xy(),_$=Qy(),BO=jd(),m$=Ne(),v$=Ry(),y$=fc();function b$(o){if(o instanceof Js.Observable)return o;if(o!=null){if(f$.isInteropObservable(o))return HO(o);if(l$.isArrayLike(o))return VO(o);if(d$.isPromise(o))return zO(o);if(p$.isAsyncIterable(o))return tb(o);if(_$.isIterable(o))return YO(o);if(BO.isReadableStreamLike(o))return KO(o)}throw h$.createInvalidObservableTypeError(o)}Ye.innerFrom=b$;function HO(o){return new Js.Observable(function(t){var r=o[y$.observable]();if(m$.isFunction(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}Ye.fromInteropObservable=HO;function VO(o){return new Js.Observable(function(t){for(var r=0;r<o.length&&!t.closed;r++)t.next(o[r]);t.complete()})}Ye.fromArrayLike=VO;function zO(o){return new Js.Observable(function(t){o.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,v$.reportUnhandledError)})}Ye.fromPromise=zO;function YO(o){return new Js.Observable(function(t){var r,e;try{for(var n=eb(o),i=n.next();!i.done;i=n.next()){var s=i.value;if(t.next(s),t.closed)return}}catch(c){r={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(r)throw r.error}}t.complete()})}Ye.fromIterable=YO;function tb(o){return new Js.Observable(function(t){g$(o,t).catch(function(r){return t.error(r)})})}Ye.fromAsyncIterable=tb;function KO(o){return tb(BO.readableStreamLikeToAsyncGenerator(o))}Ye.fromReadableStreamLike=KO;function g$(o,t){var r,e,n,i;return a$(this,void 0,void 0,function(){var s,c;return c$(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=u$(o),u.label=1;case 1:return[4,r.next()];case 2:if(e=u.sent(),!!e.done)return[3,4];if(s=e.value,t.next(s),t.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return c=u.sent(),n={error:c},[3,11];case 6:return u.trys.push([6,,9,10]),e&&!e.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}});var Ln=O(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.executeSchedule=void 0;function w$(o,t,r,e,n){e===void 0&&(e=0),n===void 0&&(n=!1);var i=t.schedule(function(){r(),n?o.add(this.schedule(null,e)):this.unsubscribe()},e);if(o.add(i),!n)return i}Nd.executeSchedule=w$});var yc=O(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.observeOn=void 0;var rb=Ln(),E$=ee(),T$=ie();function S$(o,t){return t===void 0&&(t=0),E$.operate(function(r,e){r.subscribe(T$.createOperatorSubscriber(e,function(n){return rb.executeSchedule(e,o,function(){return e.next(n)},t)},function(){return rb.executeSchedule(e,o,function(){return e.complete()},t)},function(n){return rb.executeSchedule(e,o,function(){return e.error(n)},t)}))})}Dd.observeOn=S$});var bc=O(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.subscribeOn=void 0;var O$=ee();function k$(o,t){return t===void 0&&(t=0),O$.operate(function(r,e){e.add(o.schedule(function(){return r.subscribe(e)},t))})}Ld.subscribeOn=k$});var JO=O(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});qd.scheduleObservable=void 0;var P$=ve(),A$=yc(),I$=bc();function x$(o,t){return P$.innerFrom(o).pipe(I$.subscribeOn(t),A$.observeOn(t))}qd.scheduleObservable=x$});var GO=O(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.schedulePromise=void 0;var R$=ve(),M$=yc(),C$=bc();function j$(o,t){return R$.innerFrom(o).pipe(C$.subscribeOn(t),M$.observeOn(t))}Fd.schedulePromise=j$});var XO=O(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.scheduleArray=void 0;var N$=Fe();function D$(o,t){return new N$.Observable(function(r){var e=0;return t.schedule(function(){e===o.length?r.complete():(r.next(o[e++]),r.closed||this.schedule())})})}Wd.scheduleArray=D$});var nb=O(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.scheduleIterable=void 0;var L$=Fe(),q$=Zy(),F$=Ne(),ZO=Ln();function W$(o,t){return new L$.Observable(function(r){var e;return ZO.executeSchedule(r,t,function(){e=o[q$.iterator](),ZO.executeSchedule(r,t,function(){var n,i,s;try{n=e.next(),i=n.value,s=n.done}catch(c){r.error(c);return}s?r.complete():r.next(i)},0,!0)}),function(){return F$.isFunction(e?.return)&&e.return()}})}Ud.scheduleIterable=W$});var ob=O($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.scheduleAsyncIterable=void 0;var U$=Fe(),QO=Ln();function $$(o,t){if(!o)throw new Error("Iterable cannot be null");return new U$.Observable(function(r){QO.executeSchedule(r,t,function(){var e=o[Symbol.asyncIterator]();QO.executeSchedule(r,t,function(){e.next().then(function(n){n.done?r.complete():r.next(n.value)})},0,!0)})})}$d.scheduleAsyncIterable=$$});var ek=O(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});Bd.scheduleReadableStreamLike=void 0;var B$=ob(),H$=jd();function V$(o,t){return B$.scheduleAsyncIterable(H$.readableStreamLikeToAsyncGenerator(o),t)}Bd.scheduleReadableStreamLike=V$});var ib=O(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.scheduled=void 0;var z$=JO(),Y$=GO(),K$=XO(),J$=nb(),G$=ob(),X$=Jy(),Z$=Ky(),Q$=Ad(),e4=Qy(),t4=Gy(),r4=Xy(),n4=jd(),o4=ek();function i4(o,t){if(o!=null){if(X$.isInteropObservable(o))return z$.scheduleObservable(o,t);if(Q$.isArrayLike(o))return K$.scheduleArray(o,t);if(Z$.isPromise(o))return Y$.schedulePromise(o,t);if(t4.isAsyncIterable(o))return G$.scheduleAsyncIterable(o,t);if(e4.isIterable(o))return J$.scheduleIterable(o,t);if(n4.isReadableStreamLike(o))return o4.scheduleReadableStreamLike(o,t)}throw r4.createInvalidObservableTypeError(o)}Hd.scheduled=i4});var qn=O(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.from=void 0;var s4=ib(),a4=ve();function c4(o,t){return t?s4.scheduled(o,t):a4.innerFrom(o)}Vd.from=c4});var Yd=O(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.of=void 0;var u4=$t(),l4=qn();function d4(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=u4.popScheduler(o);return l4.from(o,r)}zd.of=d4});var sb=O(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.throwError=void 0;var f4=Fe(),p4=Ne();function h4(o,t){var r=p4.isFunction(o)?o:function(){return o},e=function(n){return n.error(r())};return new f4.Observable(t?function(n){return t.schedule(e,0,n)}:e)}Kd.throwError=h4});var Jd=O(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.observeNotification=Fn.Notification=Fn.NotificationKind=void 0;var _4=qr(),m4=Yd(),v4=sb(),y4=Ne(),b4;(function(o){o.NEXT="N",o.ERROR="E",o.COMPLETE="C"})(b4=Fn.NotificationKind||(Fn.NotificationKind={}));var g4=function(){function o(t,r,e){this.kind=t,this.value=r,this.error=e,this.hasValue=t==="N"}return o.prototype.observe=function(t){return tk(this,t)},o.prototype.do=function(t,r,e){var n=this,i=n.kind,s=n.value,c=n.error;return i==="N"?t?.(s):i==="E"?r?.(c):e?.()},o.prototype.accept=function(t,r,e){var n;return y4.isFunction((n=t)===null||n===void 0?void 0:n.next)?this.observe(t):this.do(t,r,e)},o.prototype.toObservable=function(){var t=this,r=t.kind,e=t.value,n=t.error,i=r==="N"?m4.of(e):r==="E"?v4.throwError(function(){return n}):r==="C"?_4.EMPTY:0;if(!i)throw new TypeError("Unexpected notification kind "+r);return i},o.createNext=function(t){return new o("N",t)},o.createError=function(t){return new o("E",void 0,t)},o.createComplete=function(){return o.completeNotification},o.completeNotification=new o("C"),o}();Fn.Notification=g4;function tk(o,t){var r,e,n,i=o,s=i.kind,c=i.value,u=i.error;if(typeof s!="string")throw new TypeError('Invalid notification, missing "kind"');s==="N"?(r=t.next)===null||r===void 0||r.call(t,c):s==="E"?(e=t.error)===null||e===void 0||e.call(t,u):(n=t.complete)===null||n===void 0||n.call(t)}Fn.observeNotification=tk});var nk=O(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.isObservable=void 0;var w4=Fe(),rk=Ne();function E4(o){return!!o&&(o instanceof w4.Observable||rk.isFunction(o.lift)&&rk.isFunction(o.subscribe))}Gd.isObservable=E4});var bo=O(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.EmptyError=void 0;var T4=_o();Xd.EmptyError=T4.createErrorClass(function(o){return function(){o(this),this.name="EmptyError",this.message="no elements in sequence"}})});var ok=O(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.lastValueFrom=void 0;var S4=bo();function O4(o,t){var r=typeof t=="object";return new Promise(function(e,n){var i=!1,s;o.subscribe({next:function(c){s=c,i=!0},error:n,complete:function(){i?e(s):r?e(t.defaultValue):n(new S4.EmptyError)}})})}Zd.lastValueFrom=O4});var ik=O(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.firstValueFrom=void 0;var k4=bo(),P4=As();function A4(o,t){var r=typeof t=="object";return new Promise(function(e,n){var i=new P4.SafeSubscriber({next:function(s){e(s),i.unsubscribe()},error:n,complete:function(){r?e(t.defaultValue):n(new k4.EmptyError)}});o.subscribe(i)})}Qd.firstValueFrom=A4});var ab=O(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});ef.ArgumentOutOfRangeError=void 0;var I4=_o();ef.ArgumentOutOfRangeError=I4.createErrorClass(function(o){return function(){o(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})});var cb=O(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});tf.NotFoundError=void 0;var x4=_o();tf.NotFoundError=x4.createErrorClass(function(o){return function(r){o(this),this.name="NotFoundError",this.message=r}})});var ub=O(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});rf.SequenceError=void 0;var R4=_o();rf.SequenceError=R4.createErrorClass(function(o){return function(r){o(this),this.name="SequenceError",this.message=r}})});var of=O(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});nf.isValidDate=void 0;function M4(o){return o instanceof Date&&!isNaN(o)}nf.isValidDate=M4});var sf=O(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.timeout=Ri.TimeoutError=void 0;var C4=Ut(),j4=of(),N4=ee(),D4=ve(),L4=_o(),q4=ie(),F4=Ln();Ri.TimeoutError=L4.createErrorClass(function(o){return function(r){r===void 0&&(r=null),o(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r}});function W4(o,t){var r=j4.isValidDate(o)?{first:o}:typeof o=="number"?{each:o}:o,e=r.first,n=r.each,i=r.with,s=i===void 0?U4:i,c=r.scheduler,u=c===void 0?t??C4.asyncScheduler:c,a=r.meta,l=a===void 0?null:a;if(e==null&&n==null)throw new TypeError("No timeout provided.");return N4.operate(function(d,f){var h,_,m=null,v=0,b=function(g){_=F4.executeSchedule(f,u,function(){try{h.unsubscribe(),D4.innerFrom(s({meta:l,lastValue:m,seen:v})).subscribe(f)}catch(w){f.error(w)}},g)};h=d.subscribe(q4.createOperatorSubscriber(f,function(g){_?.unsubscribe(),v++,f.next(m=g),n>0&&b(n)},void 0,void 0,function(){_?.closed||_?.unsubscribe(),m=null})),!v&&b(e!=null?typeof e=="number"?e:+e-u.now():n)})}Ri.timeout=W4;function U4(o){throw new Ri.TimeoutError(o)}});var go=O(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.map=void 0;var $4=ee(),B4=ie();function H4(o,t){return $4.operate(function(r,e){var n=0;r.subscribe(B4.createOperatorSubscriber(e,function(i){e.next(o.call(t,i,n++))}))})}af.map=H4});var Eo=O(wo=>{"use strict";var V4=wo&&wo.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},z4=wo&&wo.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(wo,"__esModule",{value:!0});wo.mapOneOrManyArgs=void 0;var Y4=go(),K4=Array.isArray;function J4(o,t){return K4(t)?o.apply(void 0,z4([],V4(t))):o(t)}function G4(o){return Y4.map(function(t){return J4(o,t)})}wo.mapOneOrManyArgs=G4});var db=O(To=>{"use strict";var X4=To&&To.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},sk=To&&To.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(To,"__esModule",{value:!0});To.bindCallbackInternals=void 0;var Z4=vc(),Q4=Fe(),eB=bc(),tB=Eo(),rB=yc(),nB=Td();function lb(o,t,r,e){if(r)if(Z4.isScheduler(r))e=r;else return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return lb(o,t,e).apply(this,n).pipe(tB.mapOneOrManyArgs(r))};return e?function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return lb(o,t).apply(this,n).pipe(eB.subscribeOn(e),rB.observeOn(e))}:function(){for(var n=this,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var c=new nB.AsyncSubject,u=!0;return new Q4.Observable(function(a){var l=c.subscribe(a);if(u){u=!1;var d=!1,f=!1;t.apply(n,sk(sk([],X4(i)),[function(){for(var h=[],_=0;_<arguments.length;_++)h[_]=arguments[_];if(o){var m=h.shift();if(m!=null){c.error(m);return}}c.next(1<h.length?h:h[0]),f=!0,d&&c.complete()}])),f&&c.complete(),d=!0}return l})}}To.bindCallbackInternals=lb});var ak=O(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});cf.bindCallback=void 0;var oB=db();function iB(o,t,r){return oB.bindCallbackInternals(!1,o,t,r)}cf.bindCallback=iB});var ck=O(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});uf.bindNodeCallback=void 0;var sB=db();function aB(o,t,r){return sB.bindCallbackInternals(!0,o,t,r)}uf.bindNodeCallback=aB});var fb=O(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});lf.argsArgArrayOrObject=void 0;var cB=Array.isArray,uB=Object.getPrototypeOf,lB=Object.prototype,dB=Object.keys;function fB(o){if(o.length===1){var t=o[0];if(cB(t))return{args:t,keys:null};if(pB(t)){var r=dB(t);return{args:r.map(function(e){return t[e]}),keys:r}}}return{args:o,keys:null}}lf.argsArgArrayOrObject=fB;function pB(o){return o&&typeof o=="object"&&uB(o)===lB}});var pb=O(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.createObject=void 0;function hB(o,t){return o.reduce(function(r,e,n){return r[e]=t[n],r},{})}df.createObject=hB});var ff=O(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.combineLatestInit=Gs.combineLatest=void 0;var _B=Fe(),mB=fb(),dk=qn(),fk=bt(),vB=Eo(),uk=$t(),yB=pb(),bB=ie(),gB=Ln();function wB(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=uk.popScheduler(o),e=uk.popResultSelector(o),n=mB.argsArgArrayOrObject(o),i=n.args,s=n.keys;if(i.length===0)return dk.from([],r);var c=new _B.Observable(pk(i,r,s?function(u){return yB.createObject(s,u)}:fk.identity));return e?c.pipe(vB.mapOneOrManyArgs(e)):c}Gs.combineLatest=wB;function pk(o,t,r){return r===void 0&&(r=fk.identity),function(e){lk(t,function(){for(var n=o.length,i=new Array(n),s=n,c=n,u=function(l){lk(t,function(){var d=dk.from(o[l],t),f=!1;d.subscribe(bB.createOperatorSubscriber(e,function(h){i[l]=h,f||(f=!0,c--),c||e.next(r(i.slice()))},function(){--s||e.complete()}))},e)},a=0;a<n;a++)u(a)},e)}}Gs.combineLatestInit=pk;function lk(o,t,r){o?gB.executeSchedule(r,o,t):t()}});var hf=O(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});pf.mergeInternals=void 0;var EB=ve(),TB=Ln(),hk=ie();function SB(o,t,r,e,n,i,s,c){var u=[],a=0,l=0,d=!1,f=function(){d&&!u.length&&!a&&t.complete()},h=function(m){return a<e?_(m):u.push(m)},_=function(m){i&&t.next(m),a++;var v=!1;EB.innerFrom(r(m,l++)).subscribe(hk.createOperatorSubscriber(t,function(b){n?.(b),i?h(b):t.next(b)},function(){v=!0},void 0,function(){if(v)try{a--;for(var b=function(){var g=u.shift();s?TB.executeSchedule(t,s,function(){return _(g)}):_(g)};u.length&&a<e;)b();f()}catch(g){t.error(g)}}))};return o.subscribe(hk.createOperatorSubscriber(t,h,function(){d=!0,f()})),function(){c?.()}}pf.mergeInternals=SB});var Wn=O(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.mergeMap=void 0;var OB=go(),kB=ve(),PB=ee(),AB=hf(),IB=Ne();function _k(o,t,r){return r===void 0&&(r=1/0),IB.isFunction(t)?_k(function(e,n){return OB.map(function(i,s){return t(e,i,n,s)})(kB.innerFrom(o(e,n)))},r):(typeof t=="number"&&(r=t),PB.operate(function(e,n){return AB.mergeInternals(e,n,o,r)}))}_f.mergeMap=_k});var gc=O(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});mf.mergeAll=void 0;var xB=Wn(),RB=bt();function MB(o){return o===void 0&&(o=1/0),xB.mergeMap(RB.identity,o)}mf.mergeAll=MB});var yf=O(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.concatAll=void 0;var CB=gc();function jB(){return CB.mergeAll(1)}vf.concatAll=jB});var wc=O(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});bf.concat=void 0;var NB=yf(),DB=$t(),LB=qn();function qB(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return NB.concatAll()(LB.from(o,DB.popScheduler(o)))}bf.concat=qB});var Ec=O(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.defer=void 0;var FB=Fe(),WB=ve();function UB(o){return new FB.Observable(function(t){WB.innerFrom(o()).subscribe(t)})}gf.defer=UB});var mk=O(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.connectable=void 0;var $B=gt(),BB=Fe(),HB=Ec(),VB={connector:function(){return new $B.Subject},resetOnDisconnect:!0};function zB(o,t){t===void 0&&(t=VB);var r=null,e=t.connector,n=t.resetOnDisconnect,i=n===void 0?!0:n,s=e(),c=new BB.Observable(function(u){return s.subscribe(u)});return c.connect=function(){return(!r||r.closed)&&(r=HB.defer(function(){return o}).subscribe(s),i&&r.add(function(){return s=e()})),r},c}wf.connectable=zB});var vk=O(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});Ef.forkJoin=void 0;var YB=Fe(),KB=fb(),JB=ve(),GB=$t(),XB=ie(),ZB=Eo(),QB=pb();function e6(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=GB.popResultSelector(o),e=KB.argsArgArrayOrObject(o),n=e.args,i=e.keys,s=new YB.Observable(function(c){var u=n.length;if(!u){c.complete();return}for(var a=new Array(u),l=u,d=u,f=function(_){var m=!1;JB.innerFrom(n[_]).subscribe(XB.createOperatorSubscriber(c,function(v){m||(m=!0,d--),a[_]=v},function(){return l--},void 0,function(){(!l||!m)&&(d||c.next(i?QB.createObject(i,a):a),c.complete())}))},h=0;h<u;h++)f(h)});return r?s.pipe(ZB.mapOneOrManyArgs(r)):s}Ef.forkJoin=e6});var bk=O(Xs=>{"use strict";var t6=Xs&&Xs.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i};Object.defineProperty(Xs,"__esModule",{value:!0});Xs.fromEvent=void 0;var r6=ve(),n6=Fe(),o6=Wn(),i6=Ad(),Mi=Ne(),s6=Eo(),a6=["addListener","removeListener"],c6=["addEventListener","removeEventListener"],u6=["on","off"];function hb(o,t,r,e){if(Mi.isFunction(r)&&(e=r,r=void 0),e)return hb(o,t,r).pipe(s6.mapOneOrManyArgs(e));var n=t6(f6(o)?c6.map(function(c){return function(u){return o[c](t,u,r)}}):l6(o)?a6.map(yk(o,t)):d6(o)?u6.map(yk(o,t)):[],2),i=n[0],s=n[1];if(!i&&i6.isArrayLike(o))return o6.mergeMap(function(c){return hb(c,t,r)})(r6.innerFrom(o));if(!i)throw new TypeError("Invalid event target");return new n6.Observable(function(c){var u=function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return c.next(1<a.length?a:a[0])};return i(u),function(){return s(u)}})}Xs.fromEvent=hb;function yk(o,t){return function(r){return function(e){return o[r](t,e)}}}function l6(o){return Mi.isFunction(o.addListener)&&Mi.isFunction(o.removeListener)}function d6(o){return Mi.isFunction(o.on)&&Mi.isFunction(o.off)}function f6(o){return Mi.isFunction(o.addEventListener)&&Mi.isFunction(o.removeEventListener)}});var wk=O(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.fromEventPattern=void 0;var p6=Fe(),h6=Ne(),_6=Eo();function gk(o,t,r){return r?gk(o,t).pipe(_6.mapOneOrManyArgs(r)):new p6.Observable(function(e){var n=function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return e.next(s.length===1?s[0]:s)},i=o(n);return h6.isFunction(t)?function(){return t(n,i)}:void 0})}Tf.fromEventPattern=gk});var Tk=O(Zs=>{"use strict";var m6=Zs&&Zs.__generator||function(o,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,n,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(a){return function(l){return u([a,l])}}function u(a){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,n&&(i=a[0]&2?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,n=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1],i=a;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(a);break}i[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(o,r)}catch(l){a=[6,l],n=0}finally{e=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(Zs,"__esModule",{value:!0});Zs.generate=void 0;var Ek=bt(),v6=vc(),y6=Ec(),b6=nb();function g6(o,t,r,e,n){var i,s,c,u;arguments.length===1?(i=o,u=i.initialState,t=i.condition,r=i.iterate,s=i.resultSelector,c=s===void 0?Ek.identity:s,n=i.scheduler):(u=o,!e||v6.isScheduler(e)?(c=Ek.identity,n=e):c=e);function a(){var l;return m6(this,function(d){switch(d.label){case 0:l=u,d.label=1;case 1:return!t||t(l)?[4,c(l)]:[3,4];case 2:d.sent(),d.label=3;case 3:return l=r(l),[3,1];case 4:return[2]}})}return y6.defer(n?function(){return b6.scheduleIterable(a(),n)}:a)}Zs.generate=g6});var Sk=O(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});Sf.iif=void 0;var w6=Ec();function E6(o,t,r){return w6.defer(function(){return o()?t:r})}Sf.iif=E6});var So=O(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.timer=void 0;var T6=Fe(),S6=Ut(),O6=vc(),k6=of();function P6(o,t,r){o===void 0&&(o=0),r===void 0&&(r=S6.async);var e=-1;return t!=null&&(O6.isScheduler(t)?r=t:e=t),new T6.Observable(function(n){var i=k6.isValidDate(o)?+o-r.now():o;i<0&&(i=0);var s=0;return r.schedule(function(){n.closed||(n.next(s++),0<=e?this.schedule(void 0,e):n.complete())},i)})}Of.timer=P6});var _b=O(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.interval=void 0;var A6=Ut(),I6=So();function x6(o,t){return o===void 0&&(o=0),t===void 0&&(t=A6.asyncScheduler),o<0&&(o=0),I6.timer(o,o,t)}kf.interval=x6});var kk=O(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.merge=void 0;var R6=gc(),M6=ve(),C6=qr(),Ok=$t(),j6=qn();function N6(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=Ok.popScheduler(o),e=Ok.popNumber(o,1/0),n=o;return n.length?n.length===1?M6.innerFrom(n[0]):R6.mergeAll(e)(j6.from(n,r)):C6.EMPTY}Pf.merge=N6});var mb=O(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.never=Ci.NEVER=void 0;var D6=Fe(),L6=yt();Ci.NEVER=new D6.Observable(L6.noop);function q6(){return Ci.NEVER}Ci.never=q6});var ji=O(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});Af.argsOrArgArray=void 0;var F6=Array.isArray;function W6(o){return o.length===1&&F6(o[0])?o[0]:o}Af.argsOrArgArray=W6});var vb=O(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.onErrorResumeNext=void 0;var U6=Fe(),$6=ji(),B6=ie(),Pk=yt(),H6=ve();function V6(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=$6.argsOrArgArray(o);return new U6.Observable(function(e){var n=0,i=function(){if(n<r.length){var s=void 0;try{s=H6.innerFrom(r[n++])}catch{i();return}var c=new B6.OperatorSubscriber(e,void 0,Pk.noop,Pk.noop);s.subscribe(c),c.add(i)}else e.complete()};i()})}If.onErrorResumeNext=V6});var Ak=O(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.pairs=void 0;var z6=qn();function Y6(o,t){return z6.from(Object.entries(o),t)}xf.pairs=Y6});var Ik=O(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.not=void 0;function K6(o,t){return function(r,e){return!o.call(t,r,e)}}Rf.not=K6});var Ni=O(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});Mf.filter=void 0;var J6=ee(),G6=ie();function X6(o,t){return J6.operate(function(r,e){var n=0;r.subscribe(G6.createOperatorSubscriber(e,function(i){return o.call(t,i,n++)&&e.next(i)}))})}Mf.filter=X6});var Mk=O(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.partition=void 0;var Z6=Ik(),xk=Ni(),Rk=ve();function Q6(o,t,r){return[xk.filter(t,r)(Rk.innerFrom(o)),xk.filter(Z6.not(t,r))(Rk.innerFrom(o))]}Cf.partition=Q6});var yb=O(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.raceInit=Qs.race=void 0;var eH=Fe(),Ck=ve(),tH=ji(),rH=ie();function nH(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return o=tH.argsOrArgArray(o),o.length===1?Ck.innerFrom(o[0]):new eH.Observable(jk(o))}Qs.race=nH;function jk(o){return function(t){for(var r=[],e=function(i){r.push(Ck.innerFrom(o[i]).subscribe(rH.createOperatorSubscriber(t,function(s){if(r){for(var c=0;c<r.length;c++)c!==i&&r[c].unsubscribe();r=null}t.next(s)})))},n=0;r&&!t.closed&&n<o.length;n++)e(n)}}Qs.raceInit=jk});var Nk=O(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.range=void 0;var oH=Fe(),iH=qr();function sH(o,t,r){if(t==null&&(t=o,o=0),t<=0)return iH.EMPTY;var e=t+o;return new oH.Observable(r?function(n){var i=o;return r.schedule(function(){i<e?(n.next(i++),this.schedule()):n.complete()})}:function(n){for(var i=o;i<e&&!n.closed;)n.next(i++);n.complete()})}jf.range=sH});var Dk=O(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.using=void 0;var aH=Fe(),cH=ve(),uH=qr();function lH(o,t){return new aH.Observable(function(r){var e=o(),n=t(e),i=n?cH.innerFrom(n):uH.EMPTY;return i.subscribe(r),function(){e&&e.unsubscribe()}})}Nf.using=lH});var Df=O(Oo=>{"use strict";var dH=Oo&&Oo.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},fH=Oo&&Oo.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(Oo,"__esModule",{value:!0});Oo.zip=void 0;var pH=Fe(),hH=ve(),_H=ji(),mH=qr(),vH=ie(),yH=$t();function bH(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=yH.popResultSelector(o),e=_H.argsOrArgArray(o);return e.length?new pH.Observable(function(n){var i=e.map(function(){return[]}),s=e.map(function(){return!1});n.add(function(){i=s=null});for(var c=function(a){hH.innerFrom(e[a]).subscribe(vH.createOperatorSubscriber(n,function(l){if(i[a].push(l),i.every(function(f){return f.length})){var d=i.map(function(f){return f.shift()});n.next(r?r.apply(void 0,fH([],dH(d))):d),i.some(function(f,h){return!f.length&&s[h]})&&n.complete()}},function(){s[a]=!0,!i[a].length&&n.complete()}))},u=0;!n.closed&&u<e.length;u++)c(u);return function(){i=s=null}}):mH.EMPTY}Oo.zip=bH});var qk=O(Lk=>{"use strict";Object.defineProperty(Lk,"__esModule",{value:!0})});var bb=O(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.audit=void 0;var gH=ee(),wH=ve(),Fk=ie();function EH(o){return gH.operate(function(t,r){var e=!1,n=null,i=null,s=!1,c=function(){if(i?.unsubscribe(),i=null,e){e=!1;var a=n;n=null,r.next(a)}s&&r.complete()},u=function(){i=null,s&&r.complete()};t.subscribe(Fk.createOperatorSubscriber(r,function(a){e=!0,n=a,i||wH.innerFrom(o(a)).subscribe(i=Fk.createOperatorSubscriber(r,c,u))},function(){s=!0,(!e||!i||i.closed)&&r.complete()}))})}Lf.audit=EH});var Wk=O(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.auditTime=void 0;var TH=Ut(),SH=bb(),OH=So();function kH(o,t){return t===void 0&&(t=TH.asyncScheduler),SH.audit(function(){return OH.timer(o,t)})}qf.auditTime=kH});var $k=O(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.buffer=void 0;var PH=ee(),AH=yt(),Uk=ie(),IH=ve();function xH(o){return PH.operate(function(t,r){var e=[];return t.subscribe(Uk.createOperatorSubscriber(r,function(n){return e.push(n)},function(){r.next(e),r.complete()})),IH.innerFrom(o).subscribe(Uk.createOperatorSubscriber(r,function(){var n=e;e=[],r.next(n)},AH.noop)),function(){e=null}})}Ff.buffer=xH});var Bk=O(ea=>{"use strict";var gb=ea&&ea.__values||function(o){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&o[t],e=0;if(r)return r.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&e>=o.length&&(o=void 0),{value:o&&o[e++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ea,"__esModule",{value:!0});ea.bufferCount=void 0;var RH=ee(),MH=ie(),CH=Dn();function jH(o,t){return t===void 0&&(t=null),t=t??o,RH.operate(function(r,e){var n=[],i=0;r.subscribe(MH.createOperatorSubscriber(e,function(s){var c,u,a,l,d=null;i++%t===0&&n.push([]);try{for(var f=gb(n),h=f.next();!h.done;h=f.next()){var _=h.value;_.push(s),o<=_.length&&(d=d??[],d.push(_))}}catch(b){c={error:b}}finally{try{h&&!h.done&&(u=f.return)&&u.call(f)}finally{if(c)throw c.error}}if(d)try{for(var m=gb(d),v=m.next();!v.done;v=m.next()){var _=v.value;CH.arrRemove(n,_),e.next(_)}}catch(b){a={error:b}}finally{try{v&&!v.done&&(l=m.return)&&l.call(m)}finally{if(a)throw a.error}}},function(){var s,c;try{for(var u=gb(n),a=u.next();!a.done;a=u.next()){var l=a.value;e.next(l)}}catch(d){s={error:d}}finally{try{a&&!a.done&&(c=u.return)&&c.call(u)}finally{if(s)throw s.error}}e.complete()},void 0,function(){n=null}))})}ea.bufferCount=jH});var Vk=O(ta=>{"use strict";var NH=ta&&ta.__values||function(o){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&o[t],e=0;if(r)return r.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&e>=o.length&&(o=void 0),{value:o&&o[e++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ta,"__esModule",{value:!0});ta.bufferTime=void 0;var DH=er(),LH=ee(),qH=ie(),FH=Dn(),WH=Ut(),UH=$t(),Hk=Ln();function $H(o){for(var t,r,e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=(t=UH.popScheduler(e))!==null&&t!==void 0?t:WH.asyncScheduler,s=(r=e[0])!==null&&r!==void 0?r:null,c=e[1]||1/0;return LH.operate(function(u,a){var l=[],d=!1,f=function(m){var v=m.buffer,b=m.subs;b.unsubscribe(),FH.arrRemove(l,m),a.next(v),d&&h()},h=function(){if(l){var m=new DH.Subscription;a.add(m);var v=[],b={buffer:v,subs:m};l.push(b),Hk.executeSchedule(m,i,function(){return f(b)},o)}};s!==null&&s>=0?Hk.executeSchedule(a,i,h,s,!0):d=!0,h();var _=qH.createOperatorSubscriber(a,function(m){var v,b,g=l.slice();try{for(var w=NH(g),T=w.next();!T.done;T=w.next()){var P=T.value,k=P.buffer;k.push(m),c<=k.length&&f(P)}}catch(x){v={error:x}}finally{try{T&&!T.done&&(b=w.return)&&b.call(w)}finally{if(v)throw v.error}}},function(){for(;l?.length;)a.next(l.shift().buffer);_?.unsubscribe(),a.complete(),a.unsubscribe()},void 0,function(){return l=null});u.subscribe(_)})}ta.bufferTime=$H});var Kk=O(ra=>{"use strict";var BH=ra&&ra.__values||function(o){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&o[t],e=0;if(r)return r.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&e>=o.length&&(o=void 0),{value:o&&o[e++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ra,"__esModule",{value:!0});ra.bufferToggle=void 0;var HH=er(),VH=ee(),zk=ve(),wb=ie(),Yk=yt(),zH=Dn();function YH(o,t){return VH.operate(function(r,e){var n=[];zk.innerFrom(o).subscribe(wb.createOperatorSubscriber(e,function(i){var s=[];n.push(s);var c=new HH.Subscription,u=function(){zH.arrRemove(n,s),e.next(s),c.unsubscribe()};c.add(zk.innerFrom(t(i)).subscribe(wb.createOperatorSubscriber(e,u,Yk.noop)))},Yk.noop)),r.subscribe(wb.createOperatorSubscriber(e,function(i){var s,c;try{for(var u=BH(n),a=u.next();!a.done;a=u.next()){var l=a.value;l.push(i)}}catch(d){s={error:d}}finally{try{a&&!a.done&&(c=u.return)&&c.call(u)}finally{if(s)throw s.error}}},function(){for(;n.length>0;)e.next(n.shift());e.complete()}))})}ra.bufferToggle=YH});var Gk=O(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});Wf.bufferWhen=void 0;var KH=ee(),JH=yt(),Jk=ie(),GH=ve();function XH(o){return KH.operate(function(t,r){var e=null,n=null,i=function(){n?.unsubscribe();var s=e;e=[],s&&r.next(s),GH.innerFrom(o()).subscribe(n=Jk.createOperatorSubscriber(r,i,JH.noop))};i(),t.subscribe(Jk.createOperatorSubscriber(r,function(s){return e?.push(s)},function(){e&&r.next(e),r.complete()},void 0,function(){return e=n=null}))})}Wf.bufferWhen=XH});var Zk=O(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.catchError=void 0;var ZH=ve(),QH=ie(),e2=ee();function Xk(o){return e2.operate(function(t,r){var e=null,n=!1,i;e=t.subscribe(QH.createOperatorSubscriber(r,void 0,void 0,function(s){i=ZH.innerFrom(o(s,Xk(o)(t))),e?(e.unsubscribe(),e=null,i.subscribe(r)):n=!0})),n&&(e.unsubscribe(),e=null,i.subscribe(r))})}Uf.catchError=Xk});var Eb=O($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.scanInternals=void 0;var t2=ie();function r2(o,t,r,e,n){return function(i,s){var c=r,u=t,a=0;i.subscribe(t2.createOperatorSubscriber(s,function(l){var d=a++;u=c?o(u,l,d):(c=!0,l),e&&s.next(u)},n&&function(){c&&s.next(u),s.complete()}))}}$f.scanInternals=r2});var na=O(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});Bf.reduce=void 0;var n2=Eb(),o2=ee();function i2(o,t){return o2.operate(n2.scanInternals(o,t,arguments.length>=2,!1,!0))}Bf.reduce=i2});var Tb=O(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});Hf.toArray=void 0;var s2=na(),a2=ee(),c2=function(o,t){return o.push(t),o};function u2(){return a2.operate(function(o,t){s2.reduce(c2,[])(o).subscribe(t)})}Hf.toArray=u2});var Sb=O(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.joinAllInternals=void 0;var l2=bt(),d2=Eo(),f2=pc(),p2=Wn(),h2=Tb();function _2(o,t){return f2.pipe(h2.toArray(),p2.mergeMap(function(r){return o(r)}),t?d2.mapOneOrManyArgs(t):l2.identity)}Vf.joinAllInternals=_2});var Ob=O(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});zf.combineLatestAll=void 0;var m2=ff(),v2=Sb();function y2(o){return v2.joinAllInternals(m2.combineLatest,o)}zf.combineLatestAll=y2});var Qk=O(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});Yf.combineAll=void 0;var b2=Ob();Yf.combineAll=b2.combineLatestAll});var nP=O(ko=>{"use strict";var eP=ko&&ko.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},tP=ko&&ko.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(ko,"__esModule",{value:!0});ko.combineLatest=void 0;var g2=ff(),w2=ee(),E2=ji(),T2=Eo(),S2=pc(),O2=$t();function rP(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=O2.popResultSelector(o);return r?S2.pipe(rP.apply(void 0,tP([],eP(o))),T2.mapOneOrManyArgs(r)):w2.operate(function(e,n){g2.combineLatestInit(tP([e],eP(E2.argsOrArgArray(o))))(n)})}ko.combineLatest=rP});var oP=O(Po=>{"use strict";var k2=Po&&Po.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},P2=Po&&Po.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(Po,"__esModule",{value:!0});Po.combineLatestWith=void 0;var A2=nP();function I2(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return A2.combineLatest.apply(void 0,P2([],k2(o)))}Po.combineLatestWith=I2});var kb=O(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});Kf.concatMap=void 0;var iP=Wn(),x2=Ne();function R2(o,t){return x2.isFunction(t)?iP.mergeMap(o,t,1):iP.mergeMap(o,1)}Kf.concatMap=R2});var aP=O(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});Jf.concatMapTo=void 0;var sP=kb(),M2=Ne();function C2(o,t){return M2.isFunction(t)?sP.concatMap(function(){return o},t):sP.concatMap(function(){return o})}Jf.concatMapTo=C2});var cP=O(Ao=>{"use strict";var j2=Ao&&Ao.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},N2=Ao&&Ao.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(Ao,"__esModule",{value:!0});Ao.concat=void 0;var D2=ee(),L2=yf(),q2=$t(),F2=qn();function W2(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=q2.popScheduler(o);return D2.operate(function(e,n){L2.concatAll()(F2.from(N2([e],j2(o)),r)).subscribe(n)})}Ao.concat=W2});var uP=O(Io=>{"use strict";var U2=Io&&Io.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},$2=Io&&Io.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(Io,"__esModule",{value:!0});Io.concatWith=void 0;var B2=cP();function H2(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return B2.concat.apply(void 0,$2([],U2(o)))}Io.concatWith=H2});var lP=O(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.fromSubscribable=void 0;var V2=Fe();function z2(o){return new V2.Observable(function(t){return o.subscribe(t)})}Gf.fromSubscribable=z2});var Zf=O(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.connect=void 0;var Y2=gt(),K2=ve(),J2=ee(),G2=lP(),X2={connector:function(){return new Y2.Subject}};function Z2(o,t){t===void 0&&(t=X2);var r=t.connector;return J2.operate(function(e,n){var i=r();K2.innerFrom(o(G2.fromSubscribable(i))).subscribe(n),n.add(e.subscribe(i))})}Xf.connect=Z2});var dP=O(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.count=void 0;var Q2=na();function e8(o){return Q2.reduce(function(t,r,e){return!o||o(r,e)?t+1:t},0)}Qf.count=e8});var pP=O(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.debounce=void 0;var t8=ee(),r8=yt(),fP=ie(),n8=ve();function o8(o){return t8.operate(function(t,r){var e=!1,n=null,i=null,s=function(){if(i?.unsubscribe(),i=null,e){e=!1;var c=n;n=null,r.next(c)}};t.subscribe(fP.createOperatorSubscriber(r,function(c){i?.unsubscribe(),e=!0,n=c,i=fP.createOperatorSubscriber(r,s,r8.noop),n8.innerFrom(o(c)).subscribe(i)},function(){s(),r.complete()},void 0,function(){n=i=null}))})}ep.debounce=o8});var hP=O(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.debounceTime=void 0;var i8=Ut(),s8=ee(),a8=ie();function c8(o,t){return t===void 0&&(t=i8.asyncScheduler),s8.operate(function(r,e){var n=null,i=null,s=null,c=function(){if(n){n.unsubscribe(),n=null;var a=i;i=null,e.next(a)}};function u(){var a=s+o,l=t.now();if(l<a){n=this.schedule(void 0,a-l),e.add(n);return}c()}r.subscribe(a8.createOperatorSubscriber(e,function(a){i=a,s=t.now(),n||(n=t.schedule(u,o),e.add(n))},function(){c(),e.complete()},void 0,function(){i=n=null}))})}tp.debounceTime=c8});var Tc=O(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.defaultIfEmpty=void 0;var u8=ee(),l8=ie();function d8(o){return u8.operate(function(t,r){var e=!1;t.subscribe(l8.createOperatorSubscriber(r,function(n){e=!0,r.next(n)},function(){e||r.next(o),r.complete()}))})}rp.defaultIfEmpty=d8});var Sc=O(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});np.take=void 0;var f8=qr(),p8=ee(),h8=ie();function _8(o){return o<=0?function(){return f8.EMPTY}:p8.operate(function(t,r){var e=0;t.subscribe(h8.createOperatorSubscriber(r,function(n){++e<=o&&(r.next(n),o<=e&&r.complete())}))})}np.take=_8});var Pb=O(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});op.ignoreElements=void 0;var m8=ee(),v8=ie(),y8=yt();function b8(){return m8.operate(function(o,t){o.subscribe(v8.createOperatorSubscriber(t,y8.noop))})}op.ignoreElements=b8});var Ab=O(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.mapTo=void 0;var g8=go();function w8(o){return g8.map(function(){return o})}ip.mapTo=w8});var Ib=O(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});sp.delayWhen=void 0;var E8=wc(),_P=Sc(),T8=Pb(),S8=Ab(),O8=Wn(),k8=ve();function mP(o,t){return t?function(r){return E8.concat(t.pipe(_P.take(1),T8.ignoreElements()),r.pipe(mP(o)))}:O8.mergeMap(function(r,e){return k8.innerFrom(o(r,e)).pipe(_P.take(1),S8.mapTo(r))})}sp.delayWhen=mP});var vP=O(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.delay=void 0;var P8=Ut(),A8=Ib(),I8=So();function x8(o,t){t===void 0&&(t=P8.asyncScheduler);var r=I8.timer(o,t);return A8.delayWhen(function(){return r})}ap.delay=x8});var yP=O(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.dematerialize=void 0;var R8=Jd(),M8=ee(),C8=ie();function j8(){return M8.operate(function(o,t){o.subscribe(C8.createOperatorSubscriber(t,function(r){return R8.observeNotification(r,t)}))})}cp.dematerialize=j8});var gP=O(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.distinct=void 0;var N8=ee(),bP=ie(),D8=yt(),L8=ve();function q8(o,t){return N8.operate(function(r,e){var n=new Set;r.subscribe(bP.createOperatorSubscriber(e,function(i){var s=o?o(i):i;n.has(s)||(n.add(s),e.next(i))})),t&&L8.innerFrom(t).subscribe(bP.createOperatorSubscriber(e,function(){return n.clear()},D8.noop))})}up.distinct=q8});var xb=O(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});lp.distinctUntilChanged=void 0;var F8=bt(),W8=ee(),U8=ie();function $8(o,t){return t===void 0&&(t=F8.identity),o=o??B8,W8.operate(function(r,e){var n,i=!0;r.subscribe(U8.createOperatorSubscriber(e,function(s){var c=t(s);(i||!o(n,c))&&(i=!1,n=c,e.next(s))}))})}lp.distinctUntilChanged=$8;function B8(o,t){return o===t}});var wP=O(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});dp.distinctUntilKeyChanged=void 0;var H8=xb();function V8(o,t){return H8.distinctUntilChanged(function(r,e){return t?t(r[o],e[o]):r[o]===e[o]})}dp.distinctUntilKeyChanged=V8});var Oc=O(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.throwIfEmpty=void 0;var z8=bo(),Y8=ee(),K8=ie();function J8(o){return o===void 0&&(o=G8),Y8.operate(function(t,r){var e=!1;t.subscribe(K8.createOperatorSubscriber(r,function(n){e=!0,r.next(n)},function(){return e?r.complete():r.error(o())}))})}fp.throwIfEmpty=J8;function G8(){return new z8.EmptyError}});var TP=O(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});pp.elementAt=void 0;var EP=ab(),X8=Ni(),Z8=Oc(),Q8=Tc(),eV=Sc();function tV(o,t){if(o<0)throw new EP.ArgumentOutOfRangeError;var r=arguments.length>=2;return function(e){return e.pipe(X8.filter(function(n,i){return i===o}),eV.take(1),r?Q8.defaultIfEmpty(t):Z8.throwIfEmpty(function(){return new EP.ArgumentOutOfRangeError}))}}pp.elementAt=tV});var SP=O(xo=>{"use strict";var rV=xo&&xo.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},nV=xo&&xo.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(xo,"__esModule",{value:!0});xo.endWith=void 0;var oV=wc(),iV=Yd();function sV(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return function(r){return oV.concat(r,iV.of.apply(void 0,nV([],rV(o))))}}xo.endWith=sV});var OP=O(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.every=void 0;var aV=ee(),cV=ie();function uV(o,t){return aV.operate(function(r,e){var n=0;r.subscribe(cV.createOperatorSubscriber(e,function(i){o.call(t,i,n++,r)||(e.next(!1),e.complete())},function(){e.next(!0),e.complete()}))})}hp.every=uV});var Rb=O(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.exhaustMap=void 0;var lV=go(),kP=ve(),dV=ee(),PP=ie();function AP(o,t){return t?function(r){return r.pipe(AP(function(e,n){return kP.innerFrom(o(e,n)).pipe(lV.map(function(i,s){return t(e,i,n,s)}))}))}:dV.operate(function(r,e){var n=0,i=null,s=!1;r.subscribe(PP.createOperatorSubscriber(e,function(c){i||(i=PP.createOperatorSubscriber(e,void 0,function(){i=null,s&&e.complete()}),kP.innerFrom(o(c,n++)).subscribe(i))},function(){s=!0,!i&&e.complete()}))})}_p.exhaustMap=AP});var Mb=O(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});mp.exhaustAll=void 0;var fV=Rb(),pV=bt();function hV(){return fV.exhaustMap(pV.identity)}mp.exhaustAll=hV});var IP=O(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.exhaust=void 0;var _V=Mb();vp.exhaust=_V.exhaustAll});var xP=O(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.expand=void 0;var mV=ee(),vV=hf();function yV(o,t,r){return t===void 0&&(t=1/0),t=(t||0)<1?1/0:t,mV.operate(function(e,n){return vV.mergeInternals(e,n,o,t,void 0,!0,r)})}yp.expand=yV});var RP=O(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});bp.finalize=void 0;var bV=ee();function gV(o){return bV.operate(function(t,r){try{t.subscribe(r)}finally{r.add(o)}})}bp.finalize=gV});var Cb=O(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.createFind=oa.find=void 0;var wV=ee(),EV=ie();function TV(o,t){return wV.operate(MP(o,t,"value"))}oa.find=TV;function MP(o,t,r){var e=r==="index";return function(n,i){var s=0;n.subscribe(EV.createOperatorSubscriber(i,function(c){var u=s++;o.call(t,c,u,n)&&(i.next(e?u:c),i.complete())},function(){i.next(e?-1:void 0),i.complete()}))}}oa.createFind=MP});var CP=O(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});gp.findIndex=void 0;var SV=ee(),OV=Cb();function kV(o,t){return SV.operate(OV.createFind(o,t,"index"))}gp.findIndex=kV});var jP=O(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});wp.first=void 0;var PV=bo(),AV=Ni(),IV=Sc(),xV=Tc(),RV=Oc(),MV=bt();function CV(o,t){var r=arguments.length>=2;return function(e){return e.pipe(o?AV.filter(function(n,i){return o(n,i,e)}):MV.identity,IV.take(1),r?xV.defaultIfEmpty(t):RV.throwIfEmpty(function(){return new PV.EmptyError}))}}wp.first=CV});var DP=O(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});Ep.groupBy=void 0;var jV=Fe(),NV=ve(),DV=gt(),LV=ee(),NP=ie();function qV(o,t,r,e){return LV.operate(function(n,i){var s;!t||typeof t=="function"?s=t:(r=t.duration,s=t.element,e=t.connector);var c=new Map,u=function(_){c.forEach(_),_(i)},a=function(_){return u(function(m){return m.error(_)})},l=0,d=!1,f=new NP.OperatorSubscriber(i,function(_){try{var m=o(_),v=c.get(m);if(!v){c.set(m,v=e?e():new DV.Subject);var b=h(m,v);if(i.next(b),r){var g=NP.createOperatorSubscriber(v,function(){v.complete(),g?.unsubscribe()},void 0,void 0,function(){return c.delete(m)});f.add(NV.innerFrom(r(b)).subscribe(g))}}v.next(s?s(_):_)}catch(w){a(w)}},function(){return u(function(_){return _.complete()})},a,function(){return c.clear()},function(){return d=!0,l===0});n.subscribe(f);function h(_,m){var v=new jV.Observable(function(b){l++;var g=m.subscribe(b);return function(){g.unsubscribe(),--l===0&&d&&f.unsubscribe()}});return v.key=_,v}})}Ep.groupBy=qV});var LP=O(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.isEmpty=void 0;var FV=ee(),WV=ie();function UV(){return FV.operate(function(o,t){o.subscribe(WV.createOperatorSubscriber(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}Tp.isEmpty=UV});var jb=O(ia=>{"use strict";var $V=ia&&ia.__values||function(o){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&o[t],e=0;if(r)return r.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&e>=o.length&&(o=void 0),{value:o&&o[e++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ia,"__esModule",{value:!0});ia.takeLast=void 0;var BV=qr(),HV=ee(),VV=ie();function zV(o){return o<=0?function(){return BV.EMPTY}:HV.operate(function(t,r){var e=[];t.subscribe(VV.createOperatorSubscriber(r,function(n){e.push(n),o<e.length&&e.shift()},function(){var n,i;try{for(var s=$V(e),c=s.next();!c.done;c=s.next()){var u=c.value;r.next(u)}}catch(a){n={error:a}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}r.complete()},void 0,function(){e=null}))})}ia.takeLast=zV});var qP=O(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});Sp.last=void 0;var YV=bo(),KV=Ni(),JV=jb(),GV=Oc(),XV=Tc(),ZV=bt();function QV(o,t){var r=arguments.length>=2;return function(e){return e.pipe(o?KV.filter(function(n,i){return o(n,i,e)}):ZV.identity,JV.takeLast(1),r?XV.defaultIfEmpty(t):GV.throwIfEmpty(function(){return new YV.EmptyError}))}}Sp.last=QV});var FP=O(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});Op.materialize=void 0;var Nb=Jd(),ez=ee(),tz=ie();function rz(){return ez.operate(function(o,t){o.subscribe(tz.createOperatorSubscriber(t,function(r){t.next(Nb.Notification.createNext(r))},function(){t.next(Nb.Notification.createComplete()),t.complete()},function(r){t.next(Nb.Notification.createError(r)),t.complete()}))})}Op.materialize=rz});var WP=O(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});kp.max=void 0;var nz=na(),oz=Ne();function iz(o){return nz.reduce(oz.isFunction(o)?function(t,r){return o(t,r)>0?t:r}:function(t,r){return t>r?t:r})}kp.max=iz});var UP=O(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.flatMap=void 0;var sz=Wn();Pp.flatMap=sz.mergeMap});var BP=O(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});Ap.mergeMapTo=void 0;var $P=Wn(),az=Ne();function cz(o,t,r){return r===void 0&&(r=1/0),az.isFunction(t)?$P.mergeMap(function(){return o},t,r):(typeof t=="number"&&(r=t),$P.mergeMap(function(){return o},r))}Ap.mergeMapTo=cz});var HP=O(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.mergeScan=void 0;var uz=ee(),lz=hf();function dz(o,t,r){return r===void 0&&(r=1/0),uz.operate(function(e,n){var i=t;return lz.mergeInternals(e,n,function(s,c){return o(i,s,c)},r,function(s){i=s},!1,void 0,function(){return i=null})})}Ip.mergeScan=dz});var zP=O(Ro=>{"use strict";var fz=Ro&&Ro.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},pz=Ro&&Ro.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(Ro,"__esModule",{value:!0});Ro.merge=void 0;var hz=ee(),_z=ji(),mz=gc(),VP=$t(),vz=qn();function yz(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=VP.popScheduler(o),e=VP.popNumber(o,1/0);return o=_z.argsOrArgArray(o),hz.operate(function(n,i){mz.mergeAll(e)(vz.from(pz([n],fz(o)),r)).subscribe(i)})}Ro.merge=yz});var YP=O(Mo=>{"use strict";var bz=Mo&&Mo.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},gz=Mo&&Mo.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(Mo,"__esModule",{value:!0});Mo.mergeWith=void 0;var wz=zP();function Ez(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return wz.merge.apply(void 0,gz([],bz(o)))}Mo.mergeWith=Ez});var KP=O(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});xp.min=void 0;var Tz=na(),Sz=Ne();function Oz(o){return Tz.reduce(Sz.isFunction(o)?function(t,r){return o(t,r)<0?t:r}:function(t,r){return t<r?t:r})}xp.min=Oz});var Mp=O(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.multicast=void 0;var kz=hc(),JP=Ne(),Pz=Zf();function Az(o,t){var r=JP.isFunction(o)?o:function(){return o};return JP.isFunction(t)?Pz.connect(t,{connector:r}):function(e){return new kz.ConnectableObservable(e,r)}}Rp.multicast=Az});var XP=O(dn=>{"use strict";var Iz=dn&&dn.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},xz=dn&&dn.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(dn,"__esModule",{value:!0});dn.onErrorResumeNext=dn.onErrorResumeNextWith=void 0;var Rz=ji(),Mz=vb();function GP(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=Rz.argsOrArgArray(o);return function(e){return Mz.onErrorResumeNext.apply(void 0,xz([e],Iz(r)))}}dn.onErrorResumeNextWith=GP;dn.onErrorResumeNext=GP});var ZP=O(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});Cp.pairwise=void 0;var Cz=ee(),jz=ie();function Nz(){return Cz.operate(function(o,t){var r,e=!1;o.subscribe(jz.createOperatorSubscriber(t,function(n){var i=r;r=n,e&&t.next([i,n]),e=!0}))})}Cp.pairwise=Nz});var QP=O(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});jp.pluck=void 0;var Dz=go();function Lz(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=o.length;if(r===0)throw new Error("list of properties cannot be empty.");return Dz.map(function(e){for(var n=e,i=0;i<r;i++){var s=n?.[o[i]];if(typeof s<"u")n=s;else return}return n})}jp.pluck=Lz});var eA=O(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.publish=void 0;var qz=gt(),Fz=Mp(),Wz=Zf();function Uz(o){return o?function(t){return Wz.connect(o)(t)}:function(t){return Fz.multicast(new qz.Subject)(t)}}Np.publish=Uz});var tA=O(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.publishBehavior=void 0;var $z=Hy(),Bz=hc();function Hz(o){return function(t){var r=new $z.BehaviorSubject(o);return new Bz.ConnectableObservable(t,function(){return r})}}Dp.publishBehavior=Hz});var rA=O(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});Lp.publishLast=void 0;var Vz=Td(),zz=hc();function Yz(){return function(o){var t=new Vz.AsyncSubject;return new zz.ConnectableObservable(o,function(){return t})}}Lp.publishLast=Yz});var oA=O(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});qp.publishReplay=void 0;var Kz=Ed(),Jz=Mp(),nA=Ne();function Gz(o,t,r,e){r&&!nA.isFunction(r)&&(e=r);var n=nA.isFunction(r)?r:void 0;return function(i){return Jz.multicast(new Kz.ReplaySubject(o,t,e),n)(i)}}qp.publishReplay=Gz});var iA=O(Co=>{"use strict";var Xz=Co&&Co.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},Zz=Co&&Co.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(Co,"__esModule",{value:!0});Co.raceWith=void 0;var Qz=yb(),e3=ee(),t3=bt();function r3(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return o.length?e3.operate(function(r,e){Qz.raceInit(Zz([r],Xz(o)))(e)}):t3.identity}Co.raceWith=r3});var aA=O(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});Fp.repeat=void 0;var n3=qr(),o3=ee(),sA=ie(),i3=ve(),s3=So();function a3(o){var t,r=1/0,e;return o!=null&&(typeof o=="object"?(t=o.count,r=t===void 0?1/0:t,e=o.delay):r=o),r<=0?function(){return n3.EMPTY}:o3.operate(function(n,i){var s=0,c,u=function(){if(c?.unsubscribe(),c=null,e!=null){var l=typeof e=="number"?s3.timer(e):i3.innerFrom(e(s)),d=sA.createOperatorSubscriber(i,function(){d.unsubscribe(),a()});l.subscribe(d)}else a()},a=function(){var l=!1;c=n.subscribe(sA.createOperatorSubscriber(i,void 0,function(){++s<r?c?u():l=!0:i.complete()})),l&&u()};a()})}Fp.repeat=a3});var uA=O(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});Wp.repeatWhen=void 0;var c3=ve(),u3=gt(),l3=ee(),cA=ie();function d3(o){return l3.operate(function(t,r){var e,n=!1,i,s=!1,c=!1,u=function(){return c&&s&&(r.complete(),!0)},a=function(){return i||(i=new u3.Subject,c3.innerFrom(o(i)).subscribe(cA.createOperatorSubscriber(r,function(){e?l():n=!0},function(){s=!0,u()}))),i},l=function(){c=!1,e=t.subscribe(cA.createOperatorSubscriber(r,void 0,function(){c=!0,!u()&&a().next()})),n&&(e.unsubscribe(),e=null,n=!1,l())};l()})}Wp.repeatWhen=d3});var dA=O(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});Up.retry=void 0;var f3=ee(),lA=ie(),p3=bt(),h3=So(),_3=ve();function m3(o){o===void 0&&(o=1/0);var t;o&&typeof o=="object"?t=o:t={count:o};var r=t.count,e=r===void 0?1/0:r,n=t.delay,i=t.resetOnSuccess,s=i===void 0?!1:i;return e<=0?p3.identity:f3.operate(function(c,u){var a=0,l,d=function(){var f=!1;l=c.subscribe(lA.createOperatorSubscriber(u,function(h){s&&(a=0),u.next(h)},void 0,function(h){if(a++<e){var _=function(){l?(l.unsubscribe(),l=null,d()):f=!0};if(n!=null){var m=typeof n=="number"?h3.timer(n):_3.innerFrom(n(h,a)),v=lA.createOperatorSubscriber(u,function(){v.unsubscribe(),_()},function(){u.complete()});m.subscribe(v)}else _()}else u.error(h)})),f&&(l.unsubscribe(),l=null,d())};d()})}Up.retry=m3});var pA=O($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});$p.retryWhen=void 0;var v3=ve(),y3=gt(),b3=ee(),fA=ie();function g3(o){return b3.operate(function(t,r){var e,n=!1,i,s=function(){e=t.subscribe(fA.createOperatorSubscriber(r,void 0,void 0,function(c){i||(i=new y3.Subject,v3.innerFrom(o(i)).subscribe(fA.createOperatorSubscriber(r,function(){return e?s():n=!0}))),i&&i.next(c)})),n&&(e.unsubscribe(),e=null,n=!1,s())};s()})}$p.retryWhen=g3});var Db=O(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});Bp.sample=void 0;var w3=ve(),E3=ee(),T3=yt(),hA=ie();function S3(o){return E3.operate(function(t,r){var e=!1,n=null;t.subscribe(hA.createOperatorSubscriber(r,function(i){e=!0,n=i})),w3.innerFrom(o).subscribe(hA.createOperatorSubscriber(r,function(){if(e){e=!1;var i=n;n=null,r.next(i)}},T3.noop))})}Bp.sample=S3});var _A=O(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});Hp.sampleTime=void 0;var O3=Ut(),k3=Db(),P3=_b();function A3(o,t){return t===void 0&&(t=O3.asyncScheduler),k3.sample(P3.interval(o,t))}Hp.sampleTime=A3});var mA=O(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});Vp.scan=void 0;var I3=ee(),x3=Eb();function R3(o,t){return I3.operate(x3.scanInternals(o,t,arguments.length>=2,!0))}Vp.scan=R3});var yA=O(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.sequenceEqual=void 0;var M3=ee(),C3=ie(),j3=ve();function N3(o,t){return t===void 0&&(t=function(r,e){return r===e}),M3.operate(function(r,e){var n=vA(),i=vA(),s=function(u){e.next(u),e.complete()},c=function(u,a){var l=C3.createOperatorSubscriber(e,function(d){var f=a.buffer,h=a.complete;f.length===0?h?s(!1):u.buffer.push(d):!t(d,f.shift())&&s(!1)},function(){u.complete=!0;var d=a.complete,f=a.buffer;d&&s(f.length===0),l?.unsubscribe()});return l};r.subscribe(c(n,i)),j3.innerFrom(o).subscribe(c(i,n))})}zp.sequenceEqual=N3;function vA(){return{buffer:[],complete:!1}}});var qb=O(jo=>{"use strict";var D3=jo&&jo.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},L3=jo&&jo.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(jo,"__esModule",{value:!0});jo.share=void 0;var bA=ve(),q3=gt(),gA=As(),F3=ee();function W3(o){o===void 0&&(o={});var t=o.connector,r=t===void 0?function(){return new q3.Subject}:t,e=o.resetOnError,n=e===void 0?!0:e,i=o.resetOnComplete,s=i===void 0?!0:i,c=o.resetOnRefCountZero,u=c===void 0?!0:c;return function(a){var l,d,f,h=0,_=!1,m=!1,v=function(){d?.unsubscribe(),d=void 0},b=function(){v(),l=f=void 0,_=m=!1},g=function(){var w=l;b(),w?.unsubscribe()};return F3.operate(function(w,T){h++,!m&&!_&&v();var P=f=f??r();T.add(function(){h--,h===0&&!m&&!_&&(d=Lb(g,u))}),P.subscribe(T),!l&&h>0&&(l=new gA.SafeSubscriber({next:function(k){return P.next(k)},error:function(k){m=!0,v(),d=Lb(b,n,k),P.error(k)},complete:function(){_=!0,v(),d=Lb(b,s),P.complete()}}),bA.innerFrom(w).subscribe(l))})(a)}}jo.share=W3;function Lb(o,t){for(var r=[],e=2;e<arguments.length;e++)r[e-2]=arguments[e];if(t===!0){o();return}if(t!==!1){var n=new gA.SafeSubscriber({next:function(){n.unsubscribe(),o()}});return bA.innerFrom(t.apply(void 0,L3([],D3(r)))).subscribe(n)}}});var wA=O(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.shareReplay=void 0;var U3=Ed(),$3=qb();function B3(o,t,r){var e,n,i,s,c=!1;return o&&typeof o=="object"?(e=o.bufferSize,s=e===void 0?1/0:e,n=o.windowTime,t=n===void 0?1/0:n,i=o.refCount,c=i===void 0?!1:i,r=o.scheduler):s=o??1/0,$3.share({connector:function(){return new U3.ReplaySubject(s,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:c})}Yp.shareReplay=B3});var EA=O(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});Kp.single=void 0;var H3=bo(),V3=ub(),z3=cb(),Y3=ee(),K3=ie();function J3(o){return Y3.operate(function(t,r){var e=!1,n,i=!1,s=0;t.subscribe(K3.createOperatorSubscriber(r,function(c){i=!0,(!o||o(c,s++,t))&&(e&&r.error(new V3.SequenceError("Too many matching values")),e=!0,n=c)},function(){e?(r.next(n),r.complete()):r.error(i?new z3.NotFoundError("No matching values"):new H3.EmptyError)}))})}Kp.single=J3});var TA=O(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});Jp.skip=void 0;var G3=Ni();function X3(o){return G3.filter(function(t,r){return o<=r})}Jp.skip=X3});var SA=O(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.skipLast=void 0;var Z3=bt(),Q3=ee(),eY=ie();function tY(o){return o<=0?Z3.identity:Q3.operate(function(t,r){var e=new Array(o),n=0;return t.subscribe(eY.createOperatorSubscriber(r,function(i){var s=n++;if(s<o)e[s]=i;else{var c=s%o,u=e[c];e[c]=i,r.next(u)}})),function(){e=null}})}Gp.skipLast=tY});var kA=O(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});Xp.skipUntil=void 0;var rY=ee(),OA=ie(),nY=ve(),oY=yt();function iY(o){return rY.operate(function(t,r){var e=!1,n=OA.createOperatorSubscriber(r,function(){n?.unsubscribe(),e=!0},oY.noop);nY.innerFrom(o).subscribe(n),t.subscribe(OA.createOperatorSubscriber(r,function(i){return e&&r.next(i)}))})}Xp.skipUntil=iY});var PA=O(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.skipWhile=void 0;var sY=ee(),aY=ie();function cY(o){return sY.operate(function(t,r){var e=!1,n=0;t.subscribe(aY.createOperatorSubscriber(r,function(i){return(e||(e=!o(i,n++)))&&r.next(i)}))})}Zp.skipWhile=cY});var IA=O(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});Qp.startWith=void 0;var AA=wc(),uY=$t(),lY=ee();function dY(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=uY.popScheduler(o);return lY.operate(function(e,n){(r?AA.concat(o,e,r):AA.concat(o,e)).subscribe(n)})}Qp.startWith=dY});var kc=O(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.switchMap=void 0;var fY=ve(),pY=ee(),xA=ie();function hY(o,t){return pY.operate(function(r,e){var n=null,i=0,s=!1,c=function(){return s&&!n&&e.complete()};r.subscribe(xA.createOperatorSubscriber(e,function(u){n?.unsubscribe();var a=0,l=i++;fY.innerFrom(o(u,l)).subscribe(n=xA.createOperatorSubscriber(e,function(d){return e.next(t?t(u,d,l,a++):d)},function(){n=null,c()}))},function(){s=!0,c()}))})}eh.switchMap=hY});var RA=O(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});th.switchAll=void 0;var _Y=kc(),mY=bt();function vY(){return _Y.switchMap(mY.identity)}th.switchAll=vY});var CA=O(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.switchMapTo=void 0;var MA=kc(),yY=Ne();function bY(o,t){return yY.isFunction(t)?MA.switchMap(function(){return o},t):MA.switchMap(function(){return o})}rh.switchMapTo=bY});var jA=O(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.switchScan=void 0;var gY=kc(),wY=ee();function EY(o,t){return wY.operate(function(r,e){var n=t;return gY.switchMap(function(i,s){return o(n,i,s)},function(i,s){return n=s,s})(r).subscribe(e),function(){n=null}})}nh.switchScan=EY});var NA=O(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.takeUntil=void 0;var TY=ee(),SY=ie(),OY=ve(),kY=yt();function PY(o){return TY.operate(function(t,r){OY.innerFrom(o).subscribe(SY.createOperatorSubscriber(r,function(){return r.complete()},kY.noop)),!r.closed&&t.subscribe(r)})}oh.takeUntil=PY});var DA=O(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.takeWhile=void 0;var AY=ee(),IY=ie();function xY(o,t){return t===void 0&&(t=!1),AY.operate(function(r,e){var n=0;r.subscribe(IY.createOperatorSubscriber(e,function(i){var s=o(i,n++);(s||t)&&e.next(i),!s&&e.complete()}))})}ih.takeWhile=xY});var LA=O(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.tap=void 0;var RY=Ne(),MY=ee(),CY=ie(),jY=bt();function NY(o,t,r){var e=RY.isFunction(o)||t||r?{next:o,error:t,complete:r}:o;return e?MY.operate(function(n,i){var s;(s=e.subscribe)===null||s===void 0||s.call(e);var c=!0;n.subscribe(CY.createOperatorSubscriber(i,function(u){var a;(a=e.next)===null||a===void 0||a.call(e,u),i.next(u)},function(){var u;c=!1,(u=e.complete)===null||u===void 0||u.call(e),i.complete()},function(u){var a;c=!1,(a=e.error)===null||a===void 0||a.call(e,u),i.error(u)},function(){var u,a;c&&((u=e.unsubscribe)===null||u===void 0||u.call(e)),(a=e.finalize)===null||a===void 0||a.call(e)}))}):jY.identity}sh.tap=NY});var Fb=O(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.throttle=Di.defaultThrottleConfig=void 0;var DY=ee(),qA=ie(),LY=ve();Di.defaultThrottleConfig={leading:!0,trailing:!1};function qY(o,t){return t===void 0&&(t=Di.defaultThrottleConfig),DY.operate(function(r,e){var n=t.leading,i=t.trailing,s=!1,c=null,u=null,a=!1,l=function(){u?.unsubscribe(),u=null,i&&(h(),a&&e.complete())},d=function(){u=null,a&&e.complete()},f=function(_){return u=LY.innerFrom(o(_)).subscribe(qA.createOperatorSubscriber(e,l,d))},h=function(){if(s){s=!1;var _=c;c=null,e.next(_),!a&&f(_)}};r.subscribe(qA.createOperatorSubscriber(e,function(_){s=!0,c=_,!(u&&!u.closed)&&(n?h():f(_))},function(){a=!0,!(i&&s&&u&&!u.closed)&&e.complete()}))})}Di.throttle=qY});var WA=O(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});ah.throttleTime=void 0;var FY=Ut(),FA=Fb(),WY=So();function UY(o,t,r){t===void 0&&(t=FY.asyncScheduler),r===void 0&&(r=FA.defaultThrottleConfig);var e=WY.timer(o,t);return FA.throttle(function(){return e},r)}ah.throttleTime=UY});var $A=O(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.TimeInterval=sa.timeInterval=void 0;var $Y=Ut(),BY=ee(),HY=ie();function VY(o){return o===void 0&&(o=$Y.asyncScheduler),BY.operate(function(t,r){var e=o.now();t.subscribe(HY.createOperatorSubscriber(r,function(n){var i=o.now(),s=i-e;e=i,r.next(new UA(n,s))}))})}sa.timeInterval=VY;var UA=function(){function o(t,r){this.value=t,this.interval=r}return o}();sa.TimeInterval=UA});var BA=O(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});ch.timeoutWith=void 0;var zY=Ut(),YY=of(),KY=sf();function JY(o,t,r){var e,n,i;if(r=r??zY.async,YY.isValidDate(o)?e=o:typeof o=="number"&&(n=o),t)i=function(){return t};else throw new TypeError("No observable provided to switch to");if(e==null&&n==null)throw new TypeError("No timeout provided.");return KY.timeout({first:e,each:n,scheduler:r,with:i})}ch.timeoutWith=JY});var HA=O(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});uh.timestamp=void 0;var GY=wd(),XY=go();function ZY(o){return o===void 0&&(o=GY.dateTimestampProvider),XY.map(function(t){return{value:t,timestamp:o.now()}})}uh.timestamp=ZY});var YA=O(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});lh.window=void 0;var VA=gt(),QY=ee(),zA=ie(),eK=yt(),tK=ve();function rK(o){return QY.operate(function(t,r){var e=new VA.Subject;r.next(e.asObservable());var n=function(i){e.error(i),r.error(i)};return t.subscribe(zA.createOperatorSubscriber(r,function(i){return e?.next(i)},function(){e.complete(),r.complete()},n)),tK.innerFrom(o).subscribe(zA.createOperatorSubscriber(r,function(){e.complete(),r.next(e=new VA.Subject)},eK.noop,n)),function(){e?.unsubscribe(),e=null}})}lh.window=rK});var JA=O(aa=>{"use strict";var nK=aa&&aa.__values||function(o){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&o[t],e=0;if(r)return r.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&e>=o.length&&(o=void 0),{value:o&&o[e++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(aa,"__esModule",{value:!0});aa.windowCount=void 0;var KA=gt(),oK=ee(),iK=ie();function sK(o,t){t===void 0&&(t=0);var r=t>0?t:o;return oK.operate(function(e,n){var i=[new KA.Subject],s=[],c=0;n.next(i[0].asObservable()),e.subscribe(iK.createOperatorSubscriber(n,function(u){var a,l;try{for(var d=nK(i),f=d.next();!f.done;f=d.next()){var h=f.value;h.next(u)}}catch(v){a={error:v}}finally{try{f&&!f.done&&(l=d.return)&&l.call(d)}finally{if(a)throw a.error}}var _=c-o+1;if(_>=0&&_%r===0&&i.shift().complete(),++c%r===0){var m=new KA.Subject;i.push(m),n.next(m.asObservable())}},function(){for(;i.length>0;)i.shift().complete();n.complete()},function(u){for(;i.length>0;)i.shift().error(u);n.error(u)},function(){s=null,i=null}))})}aa.windowCount=sK});var XA=O(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});dh.windowTime=void 0;var aK=gt(),cK=Ut(),uK=er(),lK=ee(),dK=ie(),fK=Dn(),pK=$t(),GA=Ln();function hK(o){for(var t,r,e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=(t=pK.popScheduler(e))!==null&&t!==void 0?t:cK.asyncScheduler,s=(r=e[0])!==null&&r!==void 0?r:null,c=e[1]||1/0;return lK.operate(function(u,a){var l=[],d=!1,f=function(v){var b=v.window,g=v.subs;b.complete(),g.unsubscribe(),fK.arrRemove(l,v),d&&h()},h=function(){if(l){var v=new uK.Subscription;a.add(v);var b=new aK.Subject,g={window:b,subs:v,seen:0};l.push(g),a.next(b.asObservable()),GA.executeSchedule(v,i,function(){return f(g)},o)}};s!==null&&s>=0?GA.executeSchedule(a,i,h,s,!0):d=!0,h();var _=function(v){return l.slice().forEach(v)},m=function(v){_(function(b){var g=b.window;return v(g)}),v(a),a.unsubscribe()};return u.subscribe(dK.createOperatorSubscriber(a,function(v){_(function(b){b.window.next(v),c<=++b.seen&&f(b)})},function(){return m(function(v){return v.complete()})},function(v){return m(function(b){return b.error(v)})})),function(){l=null}})}dh.windowTime=hK});var eI=O(ca=>{"use strict";var _K=ca&&ca.__values||function(o){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&o[t],e=0;if(r)return r.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&e>=o.length&&(o=void 0),{value:o&&o[e++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ca,"__esModule",{value:!0});ca.windowToggle=void 0;var mK=gt(),vK=er(),yK=ee(),ZA=ve(),Wb=ie(),QA=yt(),bK=Dn();function gK(o,t){return yK.operate(function(r,e){var n=[],i=function(s){for(;0<n.length;)n.shift().error(s);e.error(s)};ZA.innerFrom(o).subscribe(Wb.createOperatorSubscriber(e,function(s){var c=new mK.Subject;n.push(c);var u=new vK.Subscription,a=function(){bK.arrRemove(n,c),c.complete(),u.unsubscribe()},l;try{l=ZA.innerFrom(t(s))}catch(d){i(d);return}e.next(c.asObservable()),u.add(l.subscribe(Wb.createOperatorSubscriber(e,a,QA.noop,i)))},QA.noop)),r.subscribe(Wb.createOperatorSubscriber(e,function(s){var c,u,a=n.slice();try{for(var l=_K(a),d=l.next();!d.done;d=l.next()){var f=d.value;f.next(s)}}catch(h){c={error:h}}finally{try{d&&!d.done&&(u=l.return)&&u.call(l)}finally{if(c)throw c.error}}},function(){for(;0<n.length;)n.shift().complete();e.complete()},i,function(){for(;0<n.length;)n.shift().unsubscribe()}))})}ca.windowToggle=gK});var rI=O(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});fh.windowWhen=void 0;var wK=gt(),EK=ee(),tI=ie(),TK=ve();function SK(o){return EK.operate(function(t,r){var e,n,i=function(c){e.error(c),r.error(c)},s=function(){n?.unsubscribe(),e?.complete(),e=new wK.Subject,r.next(e.asObservable());var c;try{c=TK.innerFrom(o())}catch(u){i(u);return}c.subscribe(n=tI.createOperatorSubscriber(r,s,s,i))};s(),t.subscribe(tI.createOperatorSubscriber(r,function(c){return e.next(c)},function(){e.complete(),r.complete()},i,function(){n?.unsubscribe(),e=null}))})}fh.windowWhen=SK});var sI=O(No=>{"use strict";var nI=No&&No.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},oI=No&&No.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(No,"__esModule",{value:!0});No.withLatestFrom=void 0;var OK=ee(),iI=ie(),kK=ve(),PK=bt(),AK=yt(),IK=$t();function xK(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var r=IK.popResultSelector(o);return OK.operate(function(e,n){for(var i=o.length,s=new Array(i),c=o.map(function(){return!1}),u=!1,a=function(d){kK.innerFrom(o[d]).subscribe(iI.createOperatorSubscriber(n,function(f){s[d]=f,!u&&!c[d]&&(c[d]=!0,(u=c.every(PK.identity))&&(c=null))},AK.noop))},l=0;l<i;l++)a(l);e.subscribe(iI.createOperatorSubscriber(n,function(d){if(u){var f=oI([d],nI(s));n.next(r?r.apply(void 0,oI([],nI(f))):f)}}))})}No.withLatestFrom=xK});var aI=O(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.zipAll=void 0;var RK=Df(),MK=Sb();function CK(o){return MK.joinAllInternals(RK.zip,o)}ph.zipAll=CK});var cI=O(Do=>{"use strict";var jK=Do&&Do.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},NK=Do&&Do.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(Do,"__esModule",{value:!0});Do.zip=void 0;var DK=Df(),LK=ee();function qK(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return LK.operate(function(r,e){DK.zip.apply(void 0,NK([r],jK(o))).subscribe(e)})}Do.zip=qK});var uI=O(Lo=>{"use strict";var FK=Lo&&Lo.__read||function(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),n,i=[],s;try{for(;(t===void 0||t-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(c){s={error:c}}finally{try{n&&!n.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return i},WK=Lo&&Lo.__spreadArray||function(o,t){for(var r=0,e=t.length,n=o.length;r<e;r++,n++)o[n]=t[r];return o};Object.defineProperty(Lo,"__esModule",{value:!0});Lo.zipWith=void 0;var UK=cI();function $K(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return UK.zip.apply(void 0,WK([],FK(o)))}Lo.zipWith=$K});var Ub=O(I=>{"use strict";var BK=I&&I.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r),Object.defineProperty(o,e,{enumerable:!0,get:function(){return t[r]}})}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),HK=I&&I.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&BK(t,o,r)};Object.defineProperty(I,"__esModule",{value:!0});I.interval=I.iif=I.generate=I.fromEventPattern=I.fromEvent=I.from=I.forkJoin=I.empty=I.defer=I.connectable=I.concat=I.combineLatest=I.bindNodeCallback=I.bindCallback=I.UnsubscriptionError=I.TimeoutError=I.SequenceError=I.ObjectUnsubscribedError=I.NotFoundError=I.EmptyError=I.ArgumentOutOfRangeError=I.firstValueFrom=I.lastValueFrom=I.isObservable=I.identity=I.noop=I.pipe=I.NotificationKind=I.Notification=I.Subscriber=I.Subscription=I.Scheduler=I.VirtualAction=I.VirtualTimeScheduler=I.animationFrameScheduler=I.animationFrame=I.queueScheduler=I.queue=I.asyncScheduler=I.async=I.asapScheduler=I.asap=I.AsyncSubject=I.ReplaySubject=I.BehaviorSubject=I.Subject=I.animationFrames=I.observable=I.ConnectableObservable=I.Observable=void 0;I.filter=I.expand=I.exhaustMap=I.exhaustAll=I.exhaust=I.every=I.endWith=I.elementAt=I.distinctUntilKeyChanged=I.distinctUntilChanged=I.distinct=I.dematerialize=I.delayWhen=I.delay=I.defaultIfEmpty=I.debounceTime=I.debounce=I.count=I.connect=I.concatWith=I.concatMapTo=I.concatMap=I.concatAll=I.combineLatestWith=I.combineLatestAll=I.combineAll=I.catchError=I.bufferWhen=I.bufferToggle=I.bufferTime=I.bufferCount=I.buffer=I.auditTime=I.audit=I.config=I.NEVER=I.EMPTY=I.scheduled=I.zip=I.using=I.timer=I.throwError=I.range=I.race=I.partition=I.pairs=I.onErrorResumeNext=I.of=I.never=I.merge=void 0;I.switchMap=I.switchAll=I.subscribeOn=I.startWith=I.skipWhile=I.skipUntil=I.skipLast=I.skip=I.single=I.shareReplay=I.share=I.sequenceEqual=I.scan=I.sampleTime=I.sample=I.refCount=I.retryWhen=I.retry=I.repeatWhen=I.repeat=I.reduce=I.raceWith=I.publishReplay=I.publishLast=I.publishBehavior=I.publish=I.pluck=I.pairwise=I.onErrorResumeNextWith=I.observeOn=I.multicast=I.min=I.mergeWith=I.mergeScan=I.mergeMapTo=I.mergeMap=I.flatMap=I.mergeAll=I.max=I.materialize=I.mapTo=I.map=I.last=I.isEmpty=I.ignoreElements=I.groupBy=I.first=I.findIndex=I.find=I.finalize=void 0;I.zipWith=I.zipAll=I.withLatestFrom=I.windowWhen=I.windowToggle=I.windowTime=I.windowCount=I.window=I.toArray=I.timestamp=I.timeoutWith=I.timeout=I.timeInterval=I.throwIfEmpty=I.throttleTime=I.throttle=I.tap=I.takeWhile=I.takeUntil=I.takeLast=I.take=I.switchScan=I.switchMapTo=void 0;var VK=Fe();Object.defineProperty(I,"Observable",{enumerable:!0,get:function(){return VK.Observable}});var zK=hc();Object.defineProperty(I,"ConnectableObservable",{enumerable:!0,get:function(){return zK.ConnectableObservable}});var YK=fc();Object.defineProperty(I,"observable",{enumerable:!0,get:function(){return YK.observable}});var KK=pO();Object.defineProperty(I,"animationFrames",{enumerable:!0,get:function(){return KK.animationFrames}});var JK=gt();Object.defineProperty(I,"Subject",{enumerable:!0,get:function(){return JK.Subject}});var GK=Hy();Object.defineProperty(I,"BehaviorSubject",{enumerable:!0,get:function(){return GK.BehaviorSubject}});var XK=Ed();Object.defineProperty(I,"ReplaySubject",{enumerable:!0,get:function(){return XK.ReplaySubject}});var ZK=Td();Object.defineProperty(I,"AsyncSubject",{enumerable:!0,get:function(){return ZK.AsyncSubject}});var lI=xO();Object.defineProperty(I,"asap",{enumerable:!0,get:function(){return lI.asap}});Object.defineProperty(I,"asapScheduler",{enumerable:!0,get:function(){return lI.asapScheduler}});var dI=Ut();Object.defineProperty(I,"async",{enumerable:!0,get:function(){return dI.async}});Object.defineProperty(I,"asyncScheduler",{enumerable:!0,get:function(){return dI.asyncScheduler}});var fI=CO();Object.defineProperty(I,"queue",{enumerable:!0,get:function(){return fI.queue}});Object.defineProperty(I,"queueScheduler",{enumerable:!0,get:function(){return fI.queueScheduler}});var pI=LO();Object.defineProperty(I,"animationFrame",{enumerable:!0,get:function(){return pI.animationFrame}});Object.defineProperty(I,"animationFrameScheduler",{enumerable:!0,get:function(){return pI.animationFrameScheduler}});var hI=WO();Object.defineProperty(I,"VirtualTimeScheduler",{enumerable:!0,get:function(){return hI.VirtualTimeScheduler}});Object.defineProperty(I,"VirtualAction",{enumerable:!0,get:function(){return hI.VirtualAction}});var QK=zy();Object.defineProperty(I,"Scheduler",{enumerable:!0,get:function(){return QK.Scheduler}});var e5=er();Object.defineProperty(I,"Subscription",{enumerable:!0,get:function(){return e5.Subscription}});var t5=As();Object.defineProperty(I,"Subscriber",{enumerable:!0,get:function(){return t5.Subscriber}});var _I=Jd();Object.defineProperty(I,"Notification",{enumerable:!0,get:function(){return _I.Notification}});Object.defineProperty(I,"NotificationKind",{enumerable:!0,get:function(){return _I.NotificationKind}});var r5=pc();Object.defineProperty(I,"pipe",{enumerable:!0,get:function(){return r5.pipe}});var n5=yt();Object.defineProperty(I,"noop",{enumerable:!0,get:function(){return n5.noop}});var o5=bt();Object.defineProperty(I,"identity",{enumerable:!0,get:function(){return o5.identity}});var i5=nk();Object.defineProperty(I,"isObservable",{enumerable:!0,get:function(){return i5.isObservable}});var s5=ok();Object.defineProperty(I,"lastValueFrom",{enumerable:!0,get:function(){return s5.lastValueFrom}});var a5=ik();Object.defineProperty(I,"firstValueFrom",{enumerable:!0,get:function(){return a5.firstValueFrom}});var c5=ab();Object.defineProperty(I,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return c5.ArgumentOutOfRangeError}});var u5=bo();Object.defineProperty(I,"EmptyError",{enumerable:!0,get:function(){return u5.EmptyError}});var l5=cb();Object.defineProperty(I,"NotFoundError",{enumerable:!0,get:function(){return l5.NotFoundError}});var d5=Wy();Object.defineProperty(I,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return d5.ObjectUnsubscribedError}});var f5=ub();Object.defineProperty(I,"SequenceError",{enumerable:!0,get:function(){return f5.SequenceError}});var p5=sf();Object.defineProperty(I,"TimeoutError",{enumerable:!0,get:function(){return p5.TimeoutError}});var h5=Py();Object.defineProperty(I,"UnsubscriptionError",{enumerable:!0,get:function(){return h5.UnsubscriptionError}});var _5=ak();Object.defineProperty(I,"bindCallback",{enumerable:!0,get:function(){return _5.bindCallback}});var m5=ck();Object.defineProperty(I,"bindNodeCallback",{enumerable:!0,get:function(){return m5.bindNodeCallback}});var v5=ff();Object.defineProperty(I,"combineLatest",{enumerable:!0,get:function(){return v5.combineLatest}});var y5=wc();Object.defineProperty(I,"concat",{enumerable:!0,get:function(){return y5.concat}});var b5=mk();Object.defineProperty(I,"connectable",{enumerable:!0,get:function(){return b5.connectable}});var g5=Ec();Object.defineProperty(I,"defer",{enumerable:!0,get:function(){return g5.defer}});var w5=qr();Object.defineProperty(I,"empty",{enumerable:!0,get:function(){return w5.empty}});var E5=vk();Object.defineProperty(I,"forkJoin",{enumerable:!0,get:function(){return E5.forkJoin}});var T5=qn();Object.defineProperty(I,"from",{enumerable:!0,get:function(){return T5.from}});var S5=bk();Object.defineProperty(I,"fromEvent",{enumerable:!0,get:function(){return S5.fromEvent}});var O5=wk();Object.defineProperty(I,"fromEventPattern",{enumerable:!0,get:function(){return O5.fromEventPattern}});var k5=Tk();Object.defineProperty(I,"generate",{enumerable:!0,get:function(){return k5.generate}});var P5=Sk();Object.defineProperty(I,"iif",{enumerable:!0,get:function(){return P5.iif}});var A5=_b();Object.defineProperty(I,"interval",{enumerable:!0,get:function(){return A5.interval}});var I5=kk();Object.defineProperty(I,"merge",{enumerable:!0,get:function(){return I5.merge}});var x5=mb();Object.defineProperty(I,"never",{enumerable:!0,get:function(){return x5.never}});var R5=Yd();Object.defineProperty(I,"of",{enumerable:!0,get:function(){return R5.of}});var M5=vb();Object.defineProperty(I,"onErrorResumeNext",{enumerable:!0,get:function(){return M5.onErrorResumeNext}});var C5=Ak();Object.defineProperty(I,"pairs",{enumerable:!0,get:function(){return C5.pairs}});var j5=Mk();Object.defineProperty(I,"partition",{enumerable:!0,get:function(){return j5.partition}});var N5=yb();Object.defineProperty(I,"race",{enumerable:!0,get:function(){return N5.race}});var D5=Nk();Object.defineProperty(I,"range",{enumerable:!0,get:function(){return D5.range}});var L5=sb();Object.defineProperty(I,"throwError",{enumerable:!0,get:function(){return L5.throwError}});var q5=So();Object.defineProperty(I,"timer",{enumerable:!0,get:function(){return q5.timer}});var F5=Dk();Object.defineProperty(I,"using",{enumerable:!0,get:function(){return F5.using}});var W5=Df();Object.defineProperty(I,"zip",{enumerable:!0,get:function(){return W5.zip}});var U5=ib();Object.defineProperty(I,"scheduled",{enumerable:!0,get:function(){return U5.scheduled}});var $5=qr();Object.defineProperty(I,"EMPTY",{enumerable:!0,get:function(){return $5.EMPTY}});var B5=mb();Object.defineProperty(I,"NEVER",{enumerable:!0,get:function(){return B5.NEVER}});HK(qk(),I);var H5=ks();Object.defineProperty(I,"config",{enumerable:!0,get:function(){return H5.config}});var V5=bb();Object.defineProperty(I,"audit",{enumerable:!0,get:function(){return V5.audit}});var z5=Wk();Object.defineProperty(I,"auditTime",{enumerable:!0,get:function(){return z5.auditTime}});var Y5=$k();Object.defineProperty(I,"buffer",{enumerable:!0,get:function(){return Y5.buffer}});var K5=Bk();Object.defineProperty(I,"bufferCount",{enumerable:!0,get:function(){return K5.bufferCount}});var J5=Vk();Object.defineProperty(I,"bufferTime",{enumerable:!0,get:function(){return J5.bufferTime}});var G5=Kk();Object.defineProperty(I,"bufferToggle",{enumerable:!0,get:function(){return G5.bufferToggle}});var X5=Gk();Object.defineProperty(I,"bufferWhen",{enumerable:!0,get:function(){return X5.bufferWhen}});var Z5=Zk();Object.defineProperty(I,"catchError",{enumerable:!0,get:function(){return Z5.catchError}});var Q5=Qk();Object.defineProperty(I,"combineAll",{enumerable:!0,get:function(){return Q5.combineAll}});var e9=Ob();Object.defineProperty(I,"combineLatestAll",{enumerable:!0,get:function(){return e9.combineLatestAll}});var t9=oP();Object.defineProperty(I,"combineLatestWith",{enumerable:!0,get:function(){return t9.combineLatestWith}});var r9=yf();Object.defineProperty(I,"concatAll",{enumerable:!0,get:function(){return r9.concatAll}});var n9=kb();Object.defineProperty(I,"concatMap",{enumerable:!0,get:function(){return n9.concatMap}});var o9=aP();Object.defineProperty(I,"concatMapTo",{enumerable:!0,get:function(){return o9.concatMapTo}});var i9=uP();Object.defineProperty(I,"concatWith",{enumerable:!0,get:function(){return i9.concatWith}});var s9=Zf();Object.defineProperty(I,"connect",{enumerable:!0,get:function(){return s9.connect}});var a9=dP();Object.defineProperty(I,"count",{enumerable:!0,get:function(){return a9.count}});var c9=pP();Object.defineProperty(I,"debounce",{enumerable:!0,get:function(){return c9.debounce}});var u9=hP();Object.defineProperty(I,"debounceTime",{enumerable:!0,get:function(){return u9.debounceTime}});var l9=Tc();Object.defineProperty(I,"defaultIfEmpty",{enumerable:!0,get:function(){return l9.defaultIfEmpty}});var d9=vP();Object.defineProperty(I,"delay",{enumerable:!0,get:function(){return d9.delay}});var f9=Ib();Object.defineProperty(I,"delayWhen",{enumerable:!0,get:function(){return f9.delayWhen}});var p9=yP();Object.defineProperty(I,"dematerialize",{enumerable:!0,get:function(){return p9.dematerialize}});var h9=gP();Object.defineProperty(I,"distinct",{enumerable:!0,get:function(){return h9.distinct}});var _9=xb();Object.defineProperty(I,"distinctUntilChanged",{enumerable:!0,get:function(){return _9.distinctUntilChanged}});var m9=wP();Object.defineProperty(I,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return m9.distinctUntilKeyChanged}});var v9=TP();Object.defineProperty(I,"elementAt",{enumerable:!0,get:function(){return v9.elementAt}});var y9=SP();Object.defineProperty(I,"endWith",{enumerable:!0,get:function(){return y9.endWith}});var b9=OP();Object.defineProperty(I,"every",{enumerable:!0,get:function(){return b9.every}});var g9=IP();Object.defineProperty(I,"exhaust",{enumerable:!0,get:function(){return g9.exhaust}});var w9=Mb();Object.defineProperty(I,"exhaustAll",{enumerable:!0,get:function(){return w9.exhaustAll}});var E9=Rb();Object.defineProperty(I,"exhaustMap",{enumerable:!0,get:function(){return E9.exhaustMap}});var T9=xP();Object.defineProperty(I,"expand",{enumerable:!0,get:function(){return T9.expand}});var S9=Ni();Object.defineProperty(I,"filter",{enumerable:!0,get:function(){return S9.filter}});var O9=RP();Object.defineProperty(I,"finalize",{enumerable:!0,get:function(){return O9.finalize}});var k9=Cb();Object.defineProperty(I,"find",{enumerable:!0,get:function(){return k9.find}});var P9=CP();Object.defineProperty(I,"findIndex",{enumerable:!0,get:function(){return P9.findIndex}});var A9=jP();Object.defineProperty(I,"first",{enumerable:!0,get:function(){return A9.first}});var I9=DP();Object.defineProperty(I,"groupBy",{enumerable:!0,get:function(){return I9.groupBy}});var x9=Pb();Object.defineProperty(I,"ignoreElements",{enumerable:!0,get:function(){return x9.ignoreElements}});var R9=LP();Object.defineProperty(I,"isEmpty",{enumerable:!0,get:function(){return R9.isEmpty}});var M9=qP();Object.defineProperty(I,"last",{enumerable:!0,get:function(){return M9.last}});var C9=go();Object.defineProperty(I,"map",{enumerable:!0,get:function(){return C9.map}});var j9=Ab();Object.defineProperty(I,"mapTo",{enumerable:!0,get:function(){return j9.mapTo}});var N9=FP();Object.defineProperty(I,"materialize",{enumerable:!0,get:function(){return N9.materialize}});var D9=WP();Object.defineProperty(I,"max",{enumerable:!0,get:function(){return D9.max}});var L9=gc();Object.defineProperty(I,"mergeAll",{enumerable:!0,get:function(){return L9.mergeAll}});var q9=UP();Object.defineProperty(I,"flatMap",{enumerable:!0,get:function(){return q9.flatMap}});var F9=Wn();Object.defineProperty(I,"mergeMap",{enumerable:!0,get:function(){return F9.mergeMap}});var W9=BP();Object.defineProperty(I,"mergeMapTo",{enumerable:!0,get:function(){return W9.mergeMapTo}});var U9=HP();Object.defineProperty(I,"mergeScan",{enumerable:!0,get:function(){return U9.mergeScan}});var $9=YP();Object.defineProperty(I,"mergeWith",{enumerable:!0,get:function(){return $9.mergeWith}});var B9=KP();Object.defineProperty(I,"min",{enumerable:!0,get:function(){return B9.min}});var H9=Mp();Object.defineProperty(I,"multicast",{enumerable:!0,get:function(){return H9.multicast}});var V9=yc();Object.defineProperty(I,"observeOn",{enumerable:!0,get:function(){return V9.observeOn}});var z9=XP();Object.defineProperty(I,"onErrorResumeNextWith",{enumerable:!0,get:function(){return z9.onErrorResumeNextWith}});var Y9=ZP();Object.defineProperty(I,"pairwise",{enumerable:!0,get:function(){return Y9.pairwise}});var K9=QP();Object.defineProperty(I,"pluck",{enumerable:!0,get:function(){return K9.pluck}});var J9=eA();Object.defineProperty(I,"publish",{enumerable:!0,get:function(){return J9.publish}});var G9=tA();Object.defineProperty(I,"publishBehavior",{enumerable:!0,get:function(){return G9.publishBehavior}});var X9=rA();Object.defineProperty(I,"publishLast",{enumerable:!0,get:function(){return X9.publishLast}});var Z9=oA();Object.defineProperty(I,"publishReplay",{enumerable:!0,get:function(){return Z9.publishReplay}});var Q9=iA();Object.defineProperty(I,"raceWith",{enumerable:!0,get:function(){return Q9.raceWith}});var e7=na();Object.defineProperty(I,"reduce",{enumerable:!0,get:function(){return e7.reduce}});var t7=aA();Object.defineProperty(I,"repeat",{enumerable:!0,get:function(){return t7.repeat}});var r7=uA();Object.defineProperty(I,"repeatWhen",{enumerable:!0,get:function(){return r7.repeatWhen}});var n7=dA();Object.defineProperty(I,"retry",{enumerable:!0,get:function(){return n7.retry}});var o7=pA();Object.defineProperty(I,"retryWhen",{enumerable:!0,get:function(){return o7.retryWhen}});var i7=qy();Object.defineProperty(I,"refCount",{enumerable:!0,get:function(){return i7.refCount}});var s7=Db();Object.defineProperty(I,"sample",{enumerable:!0,get:function(){return s7.sample}});var a7=_A();Object.defineProperty(I,"sampleTime",{enumerable:!0,get:function(){return a7.sampleTime}});var c7=mA();Object.defineProperty(I,"scan",{enumerable:!0,get:function(){return c7.scan}});var u7=yA();Object.defineProperty(I,"sequenceEqual",{enumerable:!0,get:function(){return u7.sequenceEqual}});var l7=qb();Object.defineProperty(I,"share",{enumerable:!0,get:function(){return l7.share}});var d7=wA();Object.defineProperty(I,"shareReplay",{enumerable:!0,get:function(){return d7.shareReplay}});var f7=EA();Object.defineProperty(I,"single",{enumerable:!0,get:function(){return f7.single}});var p7=TA();Object.defineProperty(I,"skip",{enumerable:!0,get:function(){return p7.skip}});var h7=SA();Object.defineProperty(I,"skipLast",{enumerable:!0,get:function(){return h7.skipLast}});var _7=kA();Object.defineProperty(I,"skipUntil",{enumerable:!0,get:function(){return _7.skipUntil}});var m7=PA();Object.defineProperty(I,"skipWhile",{enumerable:!0,get:function(){return m7.skipWhile}});var v7=IA();Object.defineProperty(I,"startWith",{enumerable:!0,get:function(){return v7.startWith}});var y7=bc();Object.defineProperty(I,"subscribeOn",{enumerable:!0,get:function(){return y7.subscribeOn}});var b7=RA();Object.defineProperty(I,"switchAll",{enumerable:!0,get:function(){return b7.switchAll}});var g7=kc();Object.defineProperty(I,"switchMap",{enumerable:!0,get:function(){return g7.switchMap}});var w7=CA();Object.defineProperty(I,"switchMapTo",{enumerable:!0,get:function(){return w7.switchMapTo}});var E7=jA();Object.defineProperty(I,"switchScan",{enumerable:!0,get:function(){return E7.switchScan}});var T7=Sc();Object.defineProperty(I,"take",{enumerable:!0,get:function(){return T7.take}});var S7=jb();Object.defineProperty(I,"takeLast",{enumerable:!0,get:function(){return S7.takeLast}});var O7=NA();Object.defineProperty(I,"takeUntil",{enumerable:!0,get:function(){return O7.takeUntil}});var k7=DA();Object.defineProperty(I,"takeWhile",{enumerable:!0,get:function(){return k7.takeWhile}});var P7=LA();Object.defineProperty(I,"tap",{enumerable:!0,get:function(){return P7.tap}});var A7=Fb();Object.defineProperty(I,"throttle",{enumerable:!0,get:function(){return A7.throttle}});var I7=WA();Object.defineProperty(I,"throttleTime",{enumerable:!0,get:function(){return I7.throttleTime}});var x7=Oc();Object.defineProperty(I,"throwIfEmpty",{enumerable:!0,get:function(){return x7.throwIfEmpty}});var R7=$A();Object.defineProperty(I,"timeInterval",{enumerable:!0,get:function(){return R7.timeInterval}});var M7=sf();Object.defineProperty(I,"timeout",{enumerable:!0,get:function(){return M7.timeout}});var C7=BA();Object.defineProperty(I,"timeoutWith",{enumerable:!0,get:function(){return C7.timeoutWith}});var j7=HA();Object.defineProperty(I,"timestamp",{enumerable:!0,get:function(){return j7.timestamp}});var N7=Tb();Object.defineProperty(I,"toArray",{enumerable:!0,get:function(){return N7.toArray}});var D7=YA();Object.defineProperty(I,"window",{enumerable:!0,get:function(){return D7.window}});var L7=JA();Object.defineProperty(I,"windowCount",{enumerable:!0,get:function(){return L7.windowCount}});var q7=XA();Object.defineProperty(I,"windowTime",{enumerable:!0,get:function(){return q7.windowTime}});var F7=eI();Object.defineProperty(I,"windowToggle",{enumerable:!0,get:function(){return F7.windowToggle}});var W7=rI();Object.defineProperty(I,"windowWhen",{enumerable:!0,get:function(){return W7.windowWhen}});var U7=sI();Object.defineProperty(I,"withLatestFrom",{enumerable:!0,get:function(){return U7.withLatestFrom}});var $7=aI();Object.defineProperty(I,"zipAll",{enumerable:!0,get:function(){return $7.zipAll}});var B7=uI();Object.defineProperty(I,"zipWith",{enumerable:!0,get:function(){return B7.zipWith}})});var $b=O(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});hh.HttpCallMode=void 0;var mI;(function(o){o.DIRECT="direct",o.INTEGRATION_SERVICE="integrationService"})(mI||(hh.HttpCallMode=mI={}))});var vI=O(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});_h.BreakTaskHandler=void 0;var H7=Et(),Bb=class extends H7.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r,e){this.logger.info(`Executing BreakTask: ${t}`);let n=this.getRuntimeExpressionArgs();if(n.$runtime.control||(n.$runtime.control={}),r.break){let i=r.break;this.logger.debug(`BreakTask '${t}' > Evaluating condition from 'break' property: '${i}'`);try{this.logger.debug(`BreakTask '${t}' > Evaluating condition '${i}' with input:`,e);let s=await this.expressionHandler.evaluateDataExpression(i);this.logger.debug(`BreakTask '${t}' > Condition evaluated to: ${s}`),(typeof s=="boolean"?s:typeof s=="string"?s.toLowerCase()==="true":!!s)?(this.logger.debug(`BreakTask '${t}' > Condition from 'break' property evaluated to true, breaking loop`),n.$runtime.control.signalLoopExit=!0):(this.logger.debug(`BreakTask '${t}' > Condition from 'break' property evaluated to false, continuing loop`),n.$runtime.control.signalLoopExit=!1)}catch(s){this.logger.error(`Error evaluating condition '${i}' from 'break' property for BreakTask '${t}':`,void 0,s),n.$runtime.control.signalLoopExit=!1}}else this.logger.debug(`BreakTask '${t}' > No 'break' property found. Not breaking loop.`),n.$runtime.control.signalLoopExit=!1;return{success:!0,data:e}}};_h.BreakTaskHandler=Bb});var yI=O(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});mh.DoTaskHandler=void 0;var V7=Un(),z7=Et(),Hb=class extends z7.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r,e){return await V7.TaskExecutorHelper.executeTaskList(r.do,e,this.workflowConfig,this.getRuntimeExpressionArgs(),this.logger,this.expressionHandler,r.variables)}};mh.DoTaskHandler=Hb});var EI=O(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});vh.DoWhileTaskHandler=void 0;var bI=Un(),gI=tt(),Y7=qe(),K7=Ce(),J7=Et(),wI=1e4,Vb=class extends J7.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r,e){this.logger.info(`Executing DoWhileTask: ${t}`);let n=bI.TaskExecutorHelper.readAsExtendedTask({[t]:r}),i=r.doWhile,s=r.do,c=typeof r.limit=="number"?Math.min(r.limit,wI):wI;this.logger.debug(`DoWhileTask '${t}' > doWhileExpression: '${i}', limit: ${c}`);let u={success:!0,data:{}},a=0,l=!0;do{this.logger.logIterationVariables(t,Y7.TaskType.DO_WHILE,{iteration:a});let d;try{d=structuredClone(s)}catch(h){throw this.logger.error(`DoWhileTask '${t}': Failed to clone task list for iteration ${a}. Error: ${h}`),new K7.WorkflowErrorBuilder().fromError(h).setTitle((0,gI.t)(gI.ErrorKeys.TASK_EXECUTION_FAILED,{taskName:t})).build()}if(u=await bI.TaskExecutorHelper.executeTaskList(d,e,this.workflowConfig,this.getRuntimeExpressionArgs(),this.logger,this.expressionHandler,n.variables),!u.success)break;let f=this.getRuntimeExpressionArgs();if(f.$runtime.control?.signalLoopExit===!0){this.logger.debug(`DoWhileTask '${t}' > Loop exit signaled during iteration ${a}`),f.$runtime.control.signalLoopExit=!1;break}if(this.getRuntimeExpressionArgs().$runtime.control.signalWorkflowEnd)return this.logger.warn(`DoWhileTask '${t}' > iteration ${a} ended with result: ${u}`),u;a++,l=await this.expressionHandler.evaluateConditionExpression(i),this.logger.debug(`DoWhileTask '${t}' > iteration with index ${a-1} ended with result: ${u}. DoWhileExpression '${i}' evaluated to ${l}`)}while(l&&a<c);return a>=c&&this.logger.warn(`DoWhileTask '${t}' reached iteration limit (${c})`),u}};vh.DoWhileTaskHandler=Vb});var OI=O(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});yh.ForTaskHandler=void 0;var TI=Un(),zb=qe(),SI=Ce(),G7=Et(),Yb=class extends G7.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r,e){this.logger.info(`Executing ForTask: ${t}`);let n=TI.TaskExecutorHelper.readAsExtendedTask({[t]:r}),i=r.for,s=i.in;if(!s?.trim())return this.logger.error(`ForTask '${t}' has an empty in expression`),{success:!1,error:new SI.WorkflowErrorBuilder().setTitle(`ForTask '${t}' has an empty in expression`).setDetail(`ForTask '${t}' cannot be executed without an iterable collection in expression`).setStatus(zb.WorkflowErrorStatus.BAD_REQUEST).setType(zb.WorkflowErrorType.EXPRESSION_ERROR).build()};let c=i.each||"item",u=i.at||"index",a=r.while,l=r.do;this.logger.debug(`ForTask '${t}' > eachVariable: '${c}', atVariable: '${u}'`);let d=await this.expressionHandler.evaluateDataExpression(s),f={success:!0,data:{}};if(d?.length){let h=0;for(let _ of d){if(await this.expressionHandler.setVariables({[`$${c}`]:_,[`$${u}`]:h}),n.variables||(n.variables={}),n.variables[c]=_,n.variables[u]=h,a){let b=await this.expressionHandler.evaluateConditionExpression(a);if(this.logger.debug(`ForTask '${t}' > whileExpression: '${a}' >> , ${b?"continue":"break"}`),!b)break}this.logger.debug(`Iteration started: '${t}' > iteration ${h} with input: ${_}`),this.logger.logIterationVariables(t,zb.TaskType.FOR,{[c]:_,[u]:h});let m;try{m=structuredClone(l)}catch(b){throw this.logger.error(`Failed to clone task list for iteration ${h}. Error: ${b}`),new SI.WorkflowErrorBuilder().setTitle(`ForTask '${t}' failed: Unable to clone tasks`).setDetail(`Task cloning is required for proper expression evaluation in loops. Cloning failed with error: ${b}`).setData({taskName:t,iteration:h}).build()}if(f=await TI.TaskExecutorHelper.executeTaskList(m,e,this.workflowConfig,this.getRuntimeExpressionArgs(),this.logger,this.expressionHandler,n.variables),!f.success)break;let v=this.getRuntimeExpressionArgs();if(v.$runtime.control?.signalLoopExit===!0){this.logger.debug(`ForTask '${t}' > Loop exit signaled during iteration ${h}`),v.$runtime.control.signalLoopExit=!1;break}if(this.getRuntimeExpressionArgs().$runtime.control.signalWorkflowEnd)return this.logger.debug(`ForTask '${t}' > iteration ${h} completed with input: ${_} and result: ${f}`),f;this.logger.debug(`Iteration completed: '${t}' > iteration ${h} with input: ${_} and result: ${f}`),e=f.data,n.variables&&(delete n.variables[c],delete n.variables[u]),h++}await this.expressionHandler.deleteVariables([`$${c}`,`$${u}`])}return f.resolvedProperties={in:d},f}};yh.ForTaskHandler=Yb});var qo=O(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.getHttpErrorDetails=je.getHttpErrorStatus=void 0;je.extractVendorProcessingTime=eJ;je.getUnifiedHttpAuthMode=kI;je.isSwitchTask=PI;je.isTaskWithTransition=tJ;je.isUnifiedHttpTask=Xb;je.isHttpTask=Zb;je.isIntSvcTask=AI;je.isIntSvcEventTask=II;je.isScriptTask=xI;je.isSetTask=Qb;je.isForTask=RI;je.isWhileTask=MI;je.isDoWhileTask=CI;je.isRaiseTask=jI;je.isTryTask=NI;je.isDoTask=DI;je.isWaitTask=LI;je.isBreakTask=qI;je.isEndTask=FI;je.isWorkflowStartTask=WI;je.getHttpCallMode=rJ;je.isResponseTask=Gb;je.getTaskType=nJ;je.isTaskDisabled=oJ;var Jb=qe(),pt=al(),Pc=Mv(),Kb=$b(),X7=Ce(),Z7=vs(),Q7=Un();function eJ(o){let t=Z7.GenericUtils.safelyExtractProperty(o,"vendorProcessingTimeMs");return t!==void 0?t:void 0}function kI(o){let t=o.with?.bodyParameters?.authentication;if(!t&&typeof o.with?.bodyParameters=="string")try{let e=(o.with?.bodyParameters).trim();e.startsWith("${")&&e.endsWith("}")&&(t=JSON.parse(e.slice(2,-1)).authentication)}catch(e){console.warn(`Error parsing body parameters for Unified HTTP task as JSON: ${e}`)}let r=t?.trim()?.toLowerCase();if(!r||!Object.values(Pc.HttpAuthMode).some(e=>r===e))throw new X7.WorkflowErrorBuilder().setType(Jb.WorkflowErrorType.VALIDATION_ERROR).setStatus(Jb.WorkflowErrorStatus.BAD_REQUEST).setTitle(`Empty or invalid authentication type for Unified HTTP task: ${t}`).build();return r}function PI(o){return"switch"in o}function tJ(o){return o.then!==void 0&&["continue","exit","end"].includes(o.then)}function Xb(o){return o.call===Pc.UNIFIED_HTTP_TASK_TYPE}function Zb(o){return o.call==="http"}function AI(o){return o.call===Pc.INTEGRATION_SERVICE_TASK_TYPE}function II(o){return o.call===Pc.INTEGRATION_SERVICE_EVENT_TASK_TYPE}function xI(o){return o.run?.script!==void 0}function Qb(o){return o.set!==void 0}function RI(o){return o.for!==void 0&&o.do!==void 0&&o.for?.each!==void 0}function MI(o){return o.for!==void 0&&o.do!==void 0&&o.while!==void 0&&!o.for?.each}function CI(o){return o.for!==void 0&&o.do!==void 0&&o.doWhile!==void 0}function jI(o){return o.raise!==void 0}function NI(o){return o.try!==void 0}function DI(o){return o.do!==void 0&&o.for===void 0}function LI(o){return o.wait!==void 0}function qI(o){return o.break!==void 0}function FI(o){return o.then==="end"}function WI(o){return o.name==="WorkflowStart"}function rJ(o){return Zb(o)?Kb.HttpCallMode.DIRECT:Xb(o)?kI(o)===Pc.HttpAuthMode.MANUAL?Kb.HttpCallMode.DIRECT:Kb.HttpCallMode.INTEGRATION_SERVICE:null}function Gb(o){return o.response!==void 0||Qb(o)&&FI(o)}function nJ(o){return Zb(o)||Xb(o)?pt.TaskType.HTTP:AI(o)?pt.TaskType.INTSVC:xI(o)?pt.TaskType.SCRIPT:Qb(o)?qI(o)?pt.TaskType.BREAK:WI(o)?pt.TaskType.WORKFLOW_START:Gb(o)?pt.TaskType.RESPONSE:pt.TaskType.SET:RI(o)?pt.TaskType.FOR:PI(o)?pt.TaskType.SWITCH:DI(o)?pt.TaskType.DO:jI(o)?pt.TaskType.RAISE:NI(o)?pt.TaskType.TRY:LI(o)?pt.TaskType.WAIT:CI(o)?pt.TaskType.DO_WHILE:MI(o)?pt.TaskType.WHILE:II(o)?pt.TaskType.INTSVC_EVENT:Gb(o)?pt.TaskType.RESPONSE:pt.TaskType.UNKNOWN}async function oJ(o,t){let r=Q7.TaskExecutorHelper.readAsExtendedTask(o);return r.if?(r.if==="${false}"?!1:await t.evaluateConditionExpression(r.if))===!1:!1}var iJ=o=>typeof o=="number"&&Number.isInteger(o)&&o>=400&&o<600?o:Jb.WorkflowErrorStatus.INTERNAL_SERVER_ERROR;je.getHttpErrorStatus=iJ;var sJ=o=>{let t=o?.content?.providerMessage,r=o?.content?.message,e=t&&r?`${r} - ${t}`:t||r;if(!e){let n=o?.content;e=n?JSON.stringify(n):""}return e};je.getHttpErrorDetails=sJ});var YI=O(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.MAX_MULTIPART_PARTS=rt.MAX_MULTIPART_TOTAL_BYTES=rt.MAX_MULTIPART_PART_BYTES=void 0;rt.resolveMultipartParts=uJ;rt.normalizeMultipartPartsInput=dJ;rt.bodyFieldsToMultipartParts=fJ;rt.sanitizePartFilename=bh;rt.isMultipartPartInput=og;rt.estimateBase64DecodedBytes=zI;var ng=Oe(),UI=qe(),aJ=Ce(),gh=Ti(),Ac=sc();rt.MAX_MULTIPART_PART_BYTES=Ac.MAX_CONVERT_FILE_BYTES;rt.MAX_MULTIPART_TOTAL_BYTES=Ac.MAX_CONVERT_FILE_BYTES;rt.MAX_MULTIPART_PARTS=100;var BI="application/octet-stream",cJ={downloadBlobFile:gh.downloadBlobFileWithFriendlyError};async function uJ(o,t,r,e=cJ){if(o===void 0)return;if(!Array.isArray(o))throw Fr("Expected an array of parts with a name and value.");lJ(o);let n=new tg,i=[];for(let[s,c]of o.entries())i.push(await pJ(c,s,t,r,e,n));return i}function lJ(o){if(o.length>rt.MAX_MULTIPART_PARTS)throw Fr(`The form has ${o.length} parts, above the limit of ${rt.MAX_MULTIPART_PARTS}.`);let t=0;for(let r of o){if(!og(r)||!(0,ng.isBlobFileReference)(r.value))continue;let e=(0,gh.declaredRefSize)(r.value);e!==void 0&&(Li(r.name,e,"attachment"),t+=e)}if(t>rt.MAX_MULTIPART_TOTAL_BYTES)throw VI(t)}var tg=class{constructor(){this.used=0}add(t){if(this.used+=t.value instanceof Blob?t.value.size:new TextEncoder().encode(t.value).byteLength,this.used>rt.MAX_MULTIPART_TOTAL_BYTES)throw VI(this.used);return t}};async function dJ(o,t){if(typeof o!="string")return o;let r=o.trim();if(r.length===0)return[];let e;try{e=JSON.parse(r)}catch{throw Fr("The value is a string but not a JSON array of parts.")}if(!Array.isArray(e))throw Fr("Expected an array of parts with a name and value.");return t(e)}function fJ(o){if(!(!(0,gh.isPlainObject)(o)||(0,ng.isBlobFileReference)(o)))return Object.entries(o).filter(([,t])=>t!==void 0).map(([t,r])=>({name:t,value:r}))}function bh(o){if(typeof o!="string")return;let r=(o.split(/[\\/]/).pop()??"").replace(/[\u0000-\u001f\u007f]/g,"").trim();return r.length>0?r:void 0}function og(o){return(0,gh.isPlainObject)(o)?typeof o.name=="string"&&o.name.trim().length>0&&"value"in o:!1}async function pJ(o,t,r,e,n,i){let s=hJ(o,t),{name:c,value:u,contentType:a,filename:l}=s;return(0,ng.isBlobFileReference)(u)?i.add(await _J(s,u,r,e,n)):s.encoding==="base64"?i.add(HI(c,u,a,l)):i.add(mJ(c,u,a,l)??vJ(c,u,a,l))}function hJ(o,t){if(!og(o))throw Fr(`Part #${t+1} must be an object with a non-empty 'name' and a 'value'.`);let{name:r,value:e,encoding:n}=o;if(e==null)throw Fr(`Part '${r}' has no value.`);let i=$I(o.contentType,r,"contentType"),s=bh($I(o.filename,r,"filename"));if(n!==void 0&&n!=="base64")throw Fr(`Part '${r}' has an unsupported encoding '${String(n)}'. Only 'base64' is supported.`);return{name:r,value:e,contentType:i,filename:s,encoding:n}}async function _J(o,t,r,e,n){let{name:i,contentType:s,filename:c}=o,u=await n.downloadBlobFile(r,e,t);if(Li(i,u.content.byteLength,"attachment"),o.encoding==="base64"){let l=c??bh(t.FullName.replace(/\.base64$/i,""));return HI(i,new TextDecoder().decode(u.content),s,l)}let a=s??t.MimeType??u.mimeType;return{name:i,value:new Blob([u.content],{type:a}),filename:c??bh(t.FullName),contentType:a}}function HI(o,t,r,e){if(typeof t!="string"||!(0,Ac.isValidBase64)(t))throw Fr(`Part '${o}' declares encoding 'base64' but its value is not a valid base64 string.`);Li(o,zI(t),"inline");let n=(0,Ac.base64ToUint8Array)(t);return Li(o,n.byteLength,"inline"),rg(o,n,r,e)}function mJ(o,t,r,e){if(t instanceof Uint8Array)return Li(o,t.byteLength,"inline"),rg(o,t,r,e);if(t instanceof ArrayBuffer)return Li(o,t.byteLength,"inline"),rg(o,new Uint8Array(t),r,e);if(t instanceof Blob){Li(o,t.size,"inline");let n=r??(t.type||BI);return{name:o,value:t.type===n?t:new Blob([t],{type:n}),filename:e,contentType:n}}}function vJ(o,t,r,e){return typeof t=="string"?eg(o,t,r,e):typeof t=="number"||typeof t=="boolean"||typeof t=="bigint"?eg(o,String(t),r,e):eg(o,JSON.stringify(t),r,e)}function eg(o,t,r,e){return r?{name:o,value:new Blob([t],{type:r}),filename:e,contentType:r}:{name:o,value:t,filename:e,contentType:r}}function rg(o,t,r,e){let n=r??BI;return{name:o,value:new Blob([t],{type:n}),filename:e,contentType:n}}function Li(o,t,r){if(t>rt.MAX_MULTIPART_PART_BYTES){let e=Math.floor(rt.MAX_MULTIPART_PART_BYTES/1048576);throw Fr(`Part '${o}' is ${t} bytes, above the ${e} MB limit for a multipart part. ${r==="inline"?"Pass the file as an attachment reference instead.":"Split the upload or use a smaller file."}`)}}function VI(o){let t=Math.floor(rt.MAX_MULTIPART_TOTAL_BYTES/1048576);return Fr(`The parts add up to ${o} bytes, above the ${t} MB limit for a multipart body. Split the upload or use smaller files.`)}function zI(o){let t=(0,Ac.normalizeBase64)(o),r=t.endsWith("==")?2:Number(t.endsWith("="));return Math.max(0,Math.floor(t.length*3/4)-r)}function $I(o,t,r){if(o==null)return;if(typeof o!="string")throw Fr(`Part '${t}' has a non-string '${r}'.`);let e=o.trim();return e.length>0?e:void 0}function Fr(o){return new aJ.WorkflowErrorBuilder().setType(UI.WorkflowErrorType.VALIDATION_ERROR).setStatus(UI.WorkflowErrorStatus.BAD_REQUEST).setTitle(`Invalid multipart form data. ${o}`).build()}});var cg=O(pn=>{"use strict";var yJ=pn&&pn.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),bJ=pn&&pn.__setModuleDefault||(Object.create?function(o,t){Object.defineProperty(o,"default",{enumerable:!0,value:t})}:function(o,t){o.default=t}),gJ=pn&&pn.__importStar||function(){var o=function(t){return o=Object.getOwnPropertyNames||function(r){var e=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[e.length]=n);return e},o(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var e=o(t),n=0;n<e.length;n++)e[n]!=="default"&&yJ(r,t,e[n]);return bJ(r,t),r}}();Object.defineProperty(pn,"__esModule",{value:!0});pn.HttpTaskHandler=void 0;var wt=Oe(),KI=qo(),fn=tt(),qi=qe(),wJ=Va(),ua=Ce(),ig=oc(),EJ=Et(),JI=Ti(),TJ=sc(),sg=YI(),la=gJ(Bl()),ag=class extends EJ.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r,e){let n=r.with?.endpoint,{proxyConfig:i}=this.workflowConfig,s={endpoint:n,method:r.with?.method,proxyConfig:i},c={};try{let u={headers:r.with?.headers,body:r.with?.body,query:r.with?.query,multipartFormData:r.with?.multipartFormData},a=await this.expressionHandler.evaluateDataExpression(u),l=!i?.url||i.version===wt.ProxyVersion.V2,d=l&&(!i?.url||la.commonsSupportsStreamBody()&&la.supportsRequestStreamBody()),f=a.multipartFormData!==void 0,h=f?await this.resolveMultipartBody(a.multipartFormData,a.body):void 0,{body:_,headers:m,loggableBody:v}=await(0,JI.materializeBlobRefBody)(f?void 0:a.body,a.headers,this.workflowConfig,this.logger,{spliceNestedBase64:l,streamedSplice:d,streamWholeBodyRefs:d});if(r.with?.endpoint){let R=await this.expressionHandler.resolvePlaceHolder(r.with?.endpoint,e);if(!R||!R.trim())throw new ua.WorkflowErrorBuilder().setType(qi.WorkflowErrorType.VALIDATION_ERROR).setStatus(qi.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,fn.t)(fn.ErrorKeys.URL_REQUIRED)).setData({taskName:t}).build();if(!this.isValidWebUrl(R))throw new ua.WorkflowErrorBuilder().setType(qi.WorkflowErrorType.VALIDATION_ERROR).setStatus(qi.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,fn.t)(fn.ErrorKeys.INVALID_URL,{url:(0,wt.stripUrlQuery)(R)})).setData({taskName:t}).build();n=R}else throw new ua.WorkflowErrorBuilder().setType(qi.WorkflowErrorType.VALIDATION_ERROR).setStatus(qi.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,fn.t)(fn.ErrorKeys.URL_REQUIRED)).setData({taskName:t}).build();let b=(0,ig.isFirstPartyHost)(n,this.workflowConfig.baseUrl);(0,ig.applyOutboundTraceHeaders)(m,{telemetryConfig:this.workflowConfig.telemetryConfig,baggage:this.workflowConfig.tracingConfig?.baggage,firstParty:b});let g=i?.url?{url:i.url,authToken:this.workflowConfig.accessToken,version:i.version,responseHeaderPrefix:i.responseHeaderPrefix}:void 0,w=(0,wJ.resolveTransportRetryConfig)(this.getRuntimeExpressionArgs(),this.logger,t),T={url:n,method:(0,wt.getHttpMethod)(String(r.with?.method)),headers:m,queryParameters:a.query,body:_,multipartFormData:h,proxySettings:g,retryConfig:w,streamFileResponse:la.commonsSupportsBlobStreaming(),verboseLoggingEnabled:this.getRuntimeExpressionArgs().$runtime?.metadata?.verboseDataLogging},P={type:wt.ActivityType.HttpRequest,properties:T,name:t};c={url:T.url,method:T.method,headers:T.headers,query:T.queryParameters,body:v??T.body};let k;if(_ instanceof ReadableStream&&!la.commonsSupportsStreamBody())k=await la.sendStreamedSpliceRequest(T,this.logger,{telemetryConfig:this.workflowConfig.telemetryConfig,baggage:this.workflowConfig.tracingConfig?.baggage,baseUrl:this.workflowConfig.baseUrl});else{let R=!1;if(_ instanceof ReadableStream&&i?.url&&(T.body=la.trackFirstPull(_,()=>{R=!0})),k=await new wt.HttpRequestActivity(P,this.logger,t).execute(),!k.success&&!k.data&&_ instanceof ReadableStream&&i?.url&&!R){this.logger.warn(`[HttpTaskHandler] Streamed request body was rejected before transmission (${(0,wt.getErrorMessage)(k.error)}); retrying '${t}' with a buffered body`);let j=await(0,JI.materializeBlobRefBody)(a.body,a.headers,this.workflowConfig,this.logger,{spliceNestedBase64:l,streamedSplice:!1,streamWholeBodyRefs:!1});T.body=j.body,T.headers=j.headers,(0,ig.applyOutboundTraceHeaders)(T.headers,{telemetryConfig:this.workflowConfig.telemetryConfig,baggage:this.workflowConfig.tracingConfig?.baggage,firstParty:b}),k=await new wt.HttpRequestActivity(P,this.logger,t).execute()}}if(v!==void 0&&k.data?.request&&(k.data.request.body=v),k.success&&k.data&&(k.data.content instanceof ReadableStream||(0,wt.isFileResponse)(k.data.headers)&&k.data.content instanceof Uint8Array)){let R=k.data.content,C=k.data.headers,j=z=>{let K=Object.keys(C).find(se=>se.toLowerCase()===z);return K!==void 0?C[K]:void 0},L=j("content-type")??"application/octet-stream",D=r.with?.outputFileName,F=(0,wt.generateDownloadFileName)(t,L,C,D),q;if(R instanceof ReadableStream){let z=j("content-encoding")?.trim().toLowerCase(),K=Number(j("content-length")??NaN),se=(z===void 0||z==="identity")&&Number.isFinite(K)&&K>=0?K:void 0,X=wt.OrchestratorUtils.uploadBlobStream,he=!1;try{q=await X(this.workflowConfig.baseUrl,this.workflowConfig.accessToken,this.workflowConfig.organizationId,this.workflowConfig.tenantId,(0,TJ.streamToAsyncIterable)(R),F,L,this.logger,"byte-array",this.workflowConfig.processConfig?.folderKey,{knownSize:se}),he=!0}finally{if(!he)try{await R.cancel()}catch{}}}else q=await wt.OrchestratorUtils.uploadFileToBlob(this.workflowConfig.baseUrl,this.workflowConfig.accessToken,this.workflowConfig.organizationId,this.workflowConfig.tenantId,R,F,L,this.logger,this.workflowConfig.processConfig?.folderKey);k.data.content=q}let x=k.success||!k.data?k.data:{...k.data,request:(0,wt.redactHttpRequest)(k.data.request)};return{success:k.success,data:x,resolvedProperties:c,error:k.success?void 0:new ua.WorkflowErrorBuilder().fromError(new Error((0,wt.stripUrlQueries)((0,wt.getErrorMessage)(k.error)))).setStatus((0,KI.getHttpErrorStatus)(k.data?.statusCode)).setTitle((0,fn.t)(fn.ErrorKeys.FAILED_HTTP_CALL_TO,{endpoint:(0,wt.stripUrlQuery)(n)})).setDetail((0,KI.getHttpErrorDetails)(k.data)).setData({taskName:t,cause:x}).build()}}catch(u){return{success:!1,resolvedProperties:c,error:(0,ua.isWorkflowError)(u)?u:new ua.WorkflowErrorBuilder().fromError(u).setType(qi.WorkflowErrorType.COMMUNICATION_ERROR).setTitle((0,fn.t)(fn.ErrorKeys.FAILED_HTTP_CALL)).setData({taskName:t,cause:{...s,endpoint:typeof s.endpoint=="string"?(0,wt.stripUrlQuery)(s.endpoint):s.endpoint}}).build()}}}async resolveMultipartBody(t,r){let e=await(0,sg.normalizeMultipartPartsInput)(t,i=>this.expressionHandler.evaluateDataExpression(i)),n=Array.isArray(e)?[...(0,sg.bodyFieldsToMultipartParts)(r)??[],...e]:e;return(0,sg.resolveMultipartParts)(n,this.workflowConfig,this.logger)}isValidWebUrl(t){if(!t)return!1;try{let r=new URL(t.trim());return["http:","https:"].includes(r.protocol)}catch(r){let e=typeof r?.name=="string"?r.name:"Error";return this.logger.warn(`Invalid Web URL in HTTP task: ${(0,wt.stripUrlQuery)(t)}. Error: ${e}`),!1}}};pn.HttpTaskHandler=ag});var lg=O(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});Eh.IntSvcTaskHandlerUtil=void 0;var Bt=fr(),wh=Fv(),SJ=za(),OJ=rc(),kJ=oc(),GI=o=>o==="query"||o==="path",ug=class{static prepareRequestHeaders(t,r,e,n){let i=t??{};return i[Bt.X_UIPATH_INTERNAL_TENANT_ID]=e.tenantId,i[Bt.X_UIPATH_INTERNAL_ORG_ID]=e.organizationId,i[Bt.X_UIPATH_CORRELATION_ID]=e.telemetryConfig?.traceId||r,e?.tracingConfig&&(i[Bt.X_UIPATH_TRACE_VIEW_TRACE_ID]=e?.tracingConfig?.traceId,i[Bt.X_UIPATH_TRACE_VIEW_PARENT_SPAN_ID]=(0,OJ.currentTraceContext)()?.spanId??e?.tracingConfig?.parentSpanId),(0,kJ.applyOutboundTraceHeaders)(i,{telemetryConfig:e?.telemetryConfig,baggage:e?.tracingConfig?.baggage,firstParty:!0}),i[Bt.X_UIPATH_SOURCE]=Bt.ApiWorkflowJobSource,i[Bt.X_UIPATH_ORIGINATOR]=e.source||Bt.ApiWorkflowJobSource,n&&(i[Bt.X_UIPATH_IS_DESIGN_API]="true"),e.licensingContext&&(i[Bt.X_UIPATH_LICENSING_CONTEXT]=e.licensingContext),e.processConfig?.jobKey&&(i[Bt.X_UIPATH_JOB_ID]=e.processConfig.jobKey),i}static resolveConnectionId(t,r,e,n){let i=typeof t.with?.connectionId=="string"?t.with.connectionId:"",s=typeof t.with?.connectionResourceId=="string"?t.with.connectionResourceId:"";return SJ.ResourceOverrideResolver.getOverriddenValue(r,e,n,"ConnectionId",i,s)}static getBaseUrl(t){return t.automationEdgeFqdn?`https://${t.automationEdgeFqdn}`:t.baseUrl}static resolveDateFields(t,r){let e=t?.inputMetadata?.dateFields;if(Array.isArray(e))return e;let n=t?.configuration;return n?this.extractDateFieldsFromConfig(n,r):[]}static extractDateFieldsFromConfig(t,r){if(!t||typeof t!="string")return r.warn("Configuration is empty or invalid, no date fields to extract"),[];try{let n=JSON.parse(t)?.optionalConfiguration?.fieldsContainer?.inputFields;if(!Array.isArray(n))return r.warn("No input fields found in configuration"),[];let i=n.filter(s=>{let c=s.format==="date-time",u=s.mask&&typeof s.mask=="string"&&s.mask.trim()!=="",a=s.name&&typeof s.name=="string";return c&&u&&a}).map(s=>({name:s.name,mask:s.mask,format:s.format}));return i.length>0&&r.debug(`Extracted ${i.length} date field(s) from configuration: ${i.map(s=>s.name).join(", ")}`),i}catch(e){return r.error(`Failed to parse configuration for date fields: ${e.message}`),[]}}static resolveSolutionResourceFields(t,r){let e=t?.inputMetadata?.solutionResourceFields;return Array.isArray(e)?e.filter(n=>typeof n?.name=="string"&&typeof n?.resourceKind=="string"&&n.resourceKind!==""&&GI(n?.location)):this.extractSolutionResourceFieldsFromConfig(t?.configuration,r)}static extractSolutionResourceFieldsFromConfig(t,r){if(!t)return[];try{let n=JSON.parse(t)?.optionalConfiguration?.fieldsContainer?.inputFields;if(!Array.isArray(n))return[];let i=n.filter(s=>typeof s?.name=="string"&&typeof s?.design?.solutionResourceKind=="string"&&s.design.solutionResourceKind!==""&&GI(s.fieldLocation)).map(s=>({name:s.name,location:s.fieldLocation,resourceKind:s.design.solutionResourceKind}));return i.length>0&&r.debug(`Extracted ${i.length} solution-resource field(s) from configuration: ${i.map(s=>s.name).join(", ")}`),i}catch(e){return r.error(`Failed to parse configuration for solution-resource fields: ${e.message}`),[]}}static collectDateFieldOffsets(t,r,e){let n=new Map,i=/new\s+Date\s*\(/;try{if(t)for(let[s,c]of Object.entries(t)){if(typeof c!="string"||!i.test(c))continue;let a=wh.DateFormatUtils.extractOffsetFromDateExpression(c,e)||Bt.DEFAULT_TIMEZONE_OFFSET;n.set(s,a)}if(r)for(let[s,c]of Object.entries(r)){if(typeof c!="string"||!i.test(c))continue;let a=wh.DateFormatUtils.extractOffsetFromDateExpression(c,e)||Bt.DEFAULT_TIMEZONE_OFFSET;n.set(s,a)}return n}catch(s){return e.error(`Failed to collect date field offsets: ${s.message}`),n}}static formatDateFieldsInParameters(t,r,e,n,i){try{if(t.length===0){i.warn("No date fields found, skipping date formatting");return}let s=new Map;for(let c of t)s.set(c.name,c.mask);for(let[c,u]of r){let a=s.get(c);if(!a){i.warn(`Field ${c} not found in configuration, skipping`);continue}if(e&&c in e){let l=e[c];if(l&&typeof l.toISOString=="function"){let d=l;if(isNaN(d.getTime())){i.warn(`Field ${c} contains an invalid Date, skipping formatting.`);continue}let f=wh.DateFormatUtils.formatDate(d.toISOString(),a,u,i);e[c]=f,i.info(`Formatted query param ${c}: ${d.toISOString()} \u2192 ${f} (offset: ${u}, mask: ${a})`)}else i.warn(`Field ${c} is not a Date object, skipping formatting. Value: ${l}`)}if(n&&c in n){let l=n[c];if(l&&typeof l.toISOString=="function"){let d=l;if(isNaN(d.getTime())){i.warn(`Field ${c} contains an invalid Date, skipping formatting.`);continue}let f=wh.DateFormatUtils.formatDate(d.toISOString(),a,u,i);n[c]=f,i.info(`Formatted body param ${c}: ${d.toISOString()} \u2192 ${f} (offset: ${u}, mask: ${a})`)}else i.warn(`Field ${c} is not a Date object, skipping formatting. Value: ${l}`)}}}catch(s){i.error(`Error during date formatting: ${s.message}. Skipping date formatting.`)}}};Eh.IntSvcTaskHandlerUtil=ug});var ZI=O(Th=>{"use strict";Object.defineProperty(Th,"__esModule",{value:!0});Th.IntSvcsEventTaskHandler=void 0;var XI=Oe(),dg=fr(),fg=qo(),mr=tt(),vr=qe(),PJ=Va(),Fi=Ce(),pg=lg(),AJ=za(),IJ=Et(),hg=class extends IJ.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r){let e=this.getRuntimeExpressionArgs();if(!r.with?.connectionId)throw new Fi.WorkflowErrorBuilder().setType(vr.WorkflowErrorType.VALIDATION_ERROR).setStatus(vr.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,mr.t)(mr.ErrorKeys.CONNECTION_REQUIRED,{taskName:t})).setData({taskName:t}).build();let n=e.$workflow?.input,i=n?.UiPathAdditionalEventData;if(n&&Object.keys(n).length>0&&Object.values(n).some(_=>_==null?!1:typeof _=="string"?_.trim()!=="":!0)&&!i)return{success:!0,data:{content:n},resolvedProperties:void 0,error:void 0};let c=this.extractProcessedEventId(i);if(i&&(!c||c.trim()===""))throw new Fi.WorkflowErrorBuilder().setType(vr.WorkflowErrorType.VALIDATION_ERROR).setStatus(vr.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,mr.t)(mr.ErrorKeys.EVENT_ID_PARSE_FAILED)).setData({taskName:t,uiPathAdditionalEventData:i}).build();let u=r.with?.eventMode,a=(e.$runtime?.metadata?.isRunningInDesigner??!1)||(this.workflowConfig.processConfig?.isStudioDebugContext??!1);if(u===vr.IntSvcEventMode.WEBHOOKS&&!a&&!c)throw new Fi.WorkflowErrorBuilder().setType(vr.WorkflowErrorType.VALIDATION_ERROR).setStatus(vr.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,mr.t)(mr.ErrorKeys.DEBUG_NOT_SUPPORTED_WORKFLOW)).setData({taskName:t}).build();let l,d=this.workflowConfig.debugConfig?.useProxyForIntSvcCalls??!1;if(d){let{proxyConfig:_}=this.workflowConfig;l=_?.url?{url:_.url,authToken:this.workflowConfig.accessToken,version:_.version,responseHeaderPrefix:_.responseHeaderPrefix}:void 0}let f={baseUrl:pg.IntSvcTaskHandlerUtil.getBaseUrl(this.workflowConfig),accessToken:this.workflowConfig.accessToken,connectionId:pg.IntSvcTaskHandlerUtil.resolveConnectionId(r,this.workflowConfig,this.logger,"EventTrigger"),connectorKey:r.with?.connector,orgId:this.workflowConfig.organizationId,tenantId:this.workflowConfig.tenantId,useProxyServer:d,proxySettings:l,objectName:"",eventType:""},h={};try{if(f.retryConfig=(0,PJ.resolveTransportRetryConfig)(this.getRuntimeExpressionArgs(),this.logger,t),f.headers=pg.IntSvcTaskHandlerUtil.prepareRequestHeaders(r.with?.headers||{},e.$runtime.metadata.workflowRunId,this.workflowConfig),c)this.logger.info("Using processedEventId from UiPathAdditionalEventData",{processedEventId:c}),f.eventId=c,f.objectName=n.UiPathEventObjectType,f.eventType=n.UiPathEvent;else{this.logger.info("Making API call to get the event data"),f.objectName=r.with?.objectName,f.eventType=r.with?.eventType,f.filterExpression=r.with?.filterExpression;let w=r.with?.eventType,T=AJ.ResourceOverrideResolver.getPropertyBindings(this.workflowConfig,this.logger,w);if(T)f.queryParameters=T,h={query:T};else{let P={queryParameters:r.with.queryParameters,pathParameters:r.with.pathParameters},k=await this.expressionHandler.evaluateDataExpression(P);k?.queryParameters&&(f.queryParameters=k.queryParameters||{}),k?.pathParameters&&(f.pathParameters=k.pathParameters||{}),h={queryParameters:k.queryParameters,pathParameters:k.pathParameters}}}let _={type:XI.ActivityType.IntSvcEventRequest,name:t,properties:f},v=await new XI.IntSvcEventApiRequestActivity(_,this.logger,t).execute(),b=a&&u===vr.IntSvcEventMode.WEBHOOKS&&v.data?.statusCode===404&&(0,fg.getHttpErrorDetails)(v.data).toLowerCase().includes("no polling event configuration found"),g;return b?g=new Fi.WorkflowErrorBuilder().setType(vr.WorkflowErrorType.VALIDATION_ERROR).setStatus(vr.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,mr.t)(mr.ErrorKeys.DEBUG_NOT_SUPPORTED_TRIGGER)).setData({taskName:t}).build():v.success||(g=new Fi.WorkflowErrorBuilder().fromError(v.error).setStatus((0,fg.getHttpErrorStatus)(v.data?.statusCode)).setTitle((0,mr.t)(mr.ErrorKeys.FAILED_IS_EVENT_CALL)).setDetail((0,fg.getHttpErrorDetails)(v.data)).setData({taskName:t,cause:v.data}).build()),{success:v.success,data:v.data,resolvedProperties:h,error:g}}catch(_){return{success:!1,resolvedProperties:h,error:(0,Fi.isWorkflowError)(_)?_:new Fi.WorkflowErrorBuilder().fromError(_).setType(vr.WorkflowErrorType.COMMUNICATION_ERROR).setStatus(vr.WorkflowErrorStatus.INTERNAL_SERVER_ERROR).setTitle((0,mr.t)(mr.ErrorKeys.FAILED_IS_EVENT_CALL)).setData({taskName:t,cause:this.getIntsvcErrorData(f,r)}).build()}}}getIntsvcErrorData(t,r){return{[dg.X_UIPATH_INTERNAL_ORG_ID]:this.workflowConfig.organizationId,[dg.X_UIPATH_INTERNAL_TENANT_ID]:this.workflowConfig.tenantId,[dg.X_UIPATH_CONNECTOR_KEY]:r.with?.connector,connectionId:r.with?.connectionId,eventType:t.eventType,filterExpression:t.filterExpression}}extractProcessedEventId(t){if(t){if(typeof t=="object"&&t!==null)return t.processedEventId;if(typeof t=="string")try{let r=JSON.parse(t);if(typeof r=="object"&&r!==null)return r.processedEventId}catch{this.logger.error(`Failed to parse UiPathAdditionalEventData as JSON: ${t}`);return}}}};Th.IntSvcsEventTaskHandler=hg});var rx=O($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.credentialRefusalError=$n.registerOrchestratorCredential=$n.isOrchestratorCredentialsCall=void 0;var QI=Oe(),mg=fr(),da=tt(),fa=qe(),_g=Ce(),xJ="Username",ex="Password",tx=(o,t)=>{if(t in o)return o[t];let r=t.toLowerCase(),e=Object.keys(o).find(n=>n.toLowerCase()===r);return e===void 0?void 0:o[e]},RJ=o=>{if(!o)return!1;let t=o.search(/[?#]/),r=t===-1?o:o.slice(0,t),e=r.startsWith("/")?r:`/${r}`;return e===mg.ORCHESTRATOR_CREDENTIALS_ENDPOINT||e.startsWith(`${mg.ORCHESTRATOR_CREDENTIALS_ENDPOINT}/`)},MJ=(o,t)=>o?.toLowerCase()===mg.ORCHESTRATOR_CONNECTOR_KEY.toLowerCase()&&RJ(t);$n.isOrchestratorCredentialsCall=MJ;var CJ=(o,t,r,e,n)=>{if(!(0,$n.isOrchestratorCredentialsCall)(t,r))return;if(!e||typeof e!="object"||Array.isArray(e)){n?.warn(`[registerOrchestratorCredential] Credentials response is not an object (${e===null?"null":typeof e}), so no secret was registered and the credential may appear in logs and output.`);return}let i=e,s=tx(i,xJ),c=typeof s=="string"?s:void 0,u=tx(i,ex);if(typeof u=="string")return o.registerCredential(c,u);n?.warn(`[registerOrchestratorCredential] Credentials response has no string '${ex}' field, so no secret was registered and the credential may appear in logs and output. Fields present: ${Object.keys(i).join(", ")}`)};$n.registerOrchestratorCredential=CJ;var jJ=(o,t)=>{switch(o){case"too-short":return new _g.WorkflowErrorBuilder().setType(fa.WorkflowErrorType.VALIDATION_ERROR).setStatus(fa.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,da.t)(da.ErrorKeys.CREDENTIAL_PASSWORD_TOO_SHORT,{minLength:QI.MIN_SECRET_LENGTH})).setData({taskName:t}).build();case"too-common":return new _g.WorkflowErrorBuilder().setType(fa.WorkflowErrorType.VALIDATION_ERROR).setStatus(fa.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,da.t)(da.ErrorKeys.CREDENTIAL_PASSWORD_TOO_COMMON)).setData({taskName:t}).build();case"budget-full":return new _g.WorkflowErrorBuilder().setType(fa.WorkflowErrorType.RUNTIME_ERROR).setStatus(fa.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,da.t)(da.ErrorKeys.CREDENTIAL_LIMIT_EXCEEDED,{limit:QI.MAX_TRACKED_CREDENTIALS})).setData({taskName:t}).build();default:return}};$n.credentialRefusalError=jJ});var nx=O(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0});Sh.OrchestratorOverrideApplier=void 0;var NJ=Oe(),Wi=fr(),vg=class o{static apply(t,r){t.headers??(t.headers={});let e=t.headers;r.folderKey&&(e.folderkey=r.folderKey),r.folderPath&&(e["folderpath-encoded"]=o.base64Utf16LeEncode(r.folderPath),o.isByteStringSafe(r.folderPath)&&(e.folderpath=r.folderPath)),r.jobKey&&(e.jobkey=r.jobKey);let n=t.endpoint,i=t.method,s=n.includes(Wi.ORCHESTRATOR_ASSETS_ENDPOINT),c=n.includes(Wi.ORCHESTRATOR_CREDENTIALS_ENDPOINT),u=n.includes(Wi.ORCHESTRATOR_QUEUE_ITEMS_ENDPOINT),a=n.includes(Wi.ORCHESTRATOR_JOBS_ENDPOINT)&&i===NJ.HttpMethod.POST;r.resourceName&&(s?t.endpoint=o.replacePathSegment(n,`${Wi.ORCHESTRATOR_ASSETS_ENDPOINT}/`,r.resourceName):c?t.endpoint=o.replacePathSegment(n,`${Wi.ORCHESTRATOR_CREDENTIALS_ENDPOINT}/`,r.resourceName):u?t.endpoint=o.replacePathSegment(n,`${Wi.ORCHESTRATOR_QUEUE_ITEMS_ENDPOINT}/`,r.resourceName):a&&(t.body??(t.body={}),t.body.ReleaseName=r.resourceName)),r.robotKey&&c&&(t.queryParameters={...t.queryParameters,robotKey:r.robotKey}),r.source&&a&&(t.body??(t.body={}),t.body.Source=r.source)}static replacePathSegment(t,r,e){let n=new RegExp(`${r}[^\\/\\?#]+`,"g");return t.replace(n,`${r}${e}`)}static isByteStringSafe(t){for(let r=0;r<t.length;r++)if(t.charCodeAt(r)>255)return!1;return!0}static base64Utf16LeEncode(t){let r=new Uint8Array(t.length*2);for(let n=0;n<t.length;n++){let i=t.charCodeAt(n);r[n*2]=i&255,r[n*2+1]=i>>8&255}let e="";for(let n of r)e+=String.fromCharCode(n);return btoa(e)}};Sh.OrchestratorOverrideApplier=vg});var ox=O(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});Oh.SolutionResourceOverrideApplier=void 0;var DJ=fr(),yg=class{static apply(t,r,e){let n={...t.queryParameters};for(let[i,s]of Object.entries(e)){let c=s.location==="query"?n:r;s.name&&(c[i]=s.name),s.folderKey&&(c[`${i}${DJ.SOLUTION_RESOURCE_FOLDER_KEY_SUFFIX}`]=s.folderKey)}t.queryParameters=n}};Oh.SolutionResourceOverrideApplier=yg});var wg=O(kh=>{"use strict";Object.defineProperty(kh,"__esModule",{value:!0});kh.IntSvcsTaskHandler=void 0;var Fo=Oe(),Ic=fr(),bg=rx(),LJ=Qa(),ix=qo(),Ht=tt(),hn=qe(),qJ=Va(),Wo=Ce(),Ui=lg(),FJ=nx(),sx=za(),WJ=ox(),UJ=Et(),ax=Ti(),gg=class extends UJ.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r){let e=this.getRuntimeExpressionArgs();if(!r.with?.connectionId)throw new Wo.WorkflowErrorBuilder().setType(hn.WorkflowErrorType.VALIDATION_ERROR).setStatus(hn.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Ht.t)(Ht.ErrorKeys.CONNECTION_REQUIRED,{taskName:t})).setData({taskName:t}).build();if(!r.with?.endpoint)throw new Wo.WorkflowErrorBuilder().setType(hn.WorkflowErrorType.VALIDATION_ERROR).setStatus(hn.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Ht.t)(Ht.ErrorKeys.ENDPOINT_REQUIRED,{taskName:t})).setData({taskName:t}).build();if(r.with?.proxyToVendorAPI&&(!r.with?.bodyParameters?.url||!r.with?.bodyParameters?.method))throw new Wo.WorkflowErrorBuilder().setType(hn.WorkflowErrorType.VALIDATION_ERROR).setStatus(hn.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Ht.t)(Ht.ErrorKeys.URL_AND_METHOD_REQUIRED,{taskName:t})).setData({taskName:t}).build();let n,i=this.workflowConfig.debugConfig?.useProxyForIntSvcCalls??!1;if(i){let{proxyConfig:u}=this.workflowConfig;n=u?.url?{url:u.url,authToken:this.workflowConfig.accessToken,version:u.version,responseHeaderPrefix:u.responseHeaderPrefix}:void 0}let s={endpoint:r.with?.endpoint,baseUrl:Ui.IntSvcTaskHandlerUtil.getBaseUrl(this.workflowConfig),accessToken:this.workflowConfig.accessToken,connectionId:Ui.IntSvcTaskHandlerUtil.resolveConnectionId(r,this.workflowConfig,this.logger,"Connection"),connectorKey:r.with?.connector,orgId:this.workflowConfig.organizationId,tenantId:this.workflowConfig.tenantId,method:r.with?.method?(0,Fo.getHttpMethod)(String(r.with.method)):Fo.HttpMethod.GET,proxyToVendorAPI:r.with?.proxyToVendorAPI,executionType:r.with?.executionType,verboseLoggingEnabled:e.$runtime?.metadata?.verboseDataLogging,useProxyServer:i,proxySettings:n,maxRecords:Wo.GenericUtils.parseNumericValue(r.with?.maximumRecordsReturned),enableURLInputFields:r.metadata?.inputMetadata?.enableURLInputFields},c={};try{let u={headers:r.with.headers,queryParameters:r.with.queryParameters,pathParameters:r.with.pathParameters,bodyParameters:r.with.bodyParameters},a=Ui.IntSvcTaskHandlerUtil.collectDateFieldOffsets(r.with.bodyParameters,r.with.queryParameters,this.logger),l=await this.expressionHandler.evaluateDataExpression(u),d=a.size>0?Ui.IntSvcTaskHandlerUtil.resolveDateFields(r.metadata,this.logger):[];if(a.size>0&&d.length===0)throw new Wo.WorkflowErrorBuilder().setType(hn.WorkflowErrorType.VALIDATION_ERROR).setStatus(hn.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Ht.t)(Ht.ErrorKeys.DATE_FIELDS_UNRESOLVED,{taskName:t})).setData({taskName:t}).build();a.size>0&&d.length>0&&Ui.IntSvcTaskHandlerUtil.formatDateFieldsInParameters(d,a,l?.queryParameters,l?.bodyParameters,this.logger);let f={};l?.headers&&Object.keys(l.headers).length>0&&(f={...l.headers}),s.headers=Ui.IntSvcTaskHandlerUtil.prepareRequestHeaders(f,e.$runtime.metadata.workflowRunId,this.workflowConfig,e.$runtime.metadata.isRunningInDesigner);let h=r.with?.connector;if(l?.queryParameters&&Object.keys(l.queryParameters).length>0){let R=l.queryParameters,C={};for(let[j,L]of Object.entries(R))Ic.OPTIONAL_INT_SVC_PARAMETERS.includes(j)?L!=null&&(C[j]=String(L)):C[j]=String(L);s.queryParameters=C}let _=l?.pathParameters??{},m={..._},v=this.resolveSolutionResourceOverrides(s.queryParameters,m,r.metadata);if(v&&WJ.SolutionResourceOverrideApplier.apply(s,m,v),Object.keys(m).length>0){let R=r.with?.endpoint;for(let[C,j]of Object.entries(m))R=R.replace(`{${C}}`,j);s.endpoint=R}if(l?.bodyParameters&&Object.keys(l.bodyParameters).length>0){let R=l.bodyParameters;if(r.with?.proxyToVendorAPI){let C=await(0,ax.materializeBlobRefBody)(R.body,R.headers,this.workflowConfig,this.logger);R.body=C.body,R.headers=C.headers}s.body=R}if(r.with?.multipartParameters&&Object.keys(r.with.multipartParameters).length>0){let R=[];for(let C of r.with.multipartParameters)if(C.dataType==="file"){let j,L=C.value;if(L&&(j=await this.expressionHandler.evaluateDataExpression({_val:L}),j=j?._val),(0,Fo.isBlobFileReference)(j)||(j=l?.bodyParameters?l.bodyParameters[C.name]:void 0),(0,Fo.isBlobFileReference)(j)){let D=await(0,ax.downloadBlobFileWithFriendlyError)(this.workflowConfig,this.logger,j);R.push({...C,fileName:j.FullName,contentType:j.MimeType,fileContent:D.content})}else R.push(C)}else R.push(C);s.multipartParameters=R}if(h===Ic.ORCHESTRATOR_CONNECTOR_KEY){let R=r.with.endpoint,C=this.resolveOrchestratorContext(R,_,l?.bodyParameters);C&&FJ.OrchestratorOverrideApplier.apply(s,C)}s.retryConfig=(0,qJ.resolveTransportRetryConfig)(this.getRuntimeExpressionArgs(),this.logger,t);let b={type:Fo.ActivityType.IntSvcApiRequest,name:t,properties:s},g=l.bodyParameters;c=s.proxyToVendorAPI?{url:g?.url,method:g?.method,headers:g?.headers,query:g?.query,pathParameters:g?.path,bodyParameters:g?.body}:{url:s.endpoint,method:s.method,headers:l.headers,query:l.queryParameters,pathParameters:l.pathParameters,bodyParameters:l.bodyParameters};let T=await new Fo.IntSvcApiRequestActivity(b,this.logger,t).execute(),P=r.with?.endpoint;if(T.success&&(0,bg.isOrchestratorCredentialsCall)(h,P)){let R=this.getRuntimeExpressionArgs()?.$runtime?.metadata?.workflowRunId;if(!R)throw new Error("Cannot protect the Orchestrator credential: the run has no workflowRunId.");let C=(0,bg.registerOrchestratorCredential)(LJ.SecretRegistryStore.getOrCreate(R),h,P,T.data?.content,this.logger),j=(0,bg.credentialRefusalError)(C,t);if(j)throw j}if(T.success&&T.data?.content instanceof Uint8Array){let R=T.data.content,C=this.extractContentType(T.data.headers)||"application/octet-stream",j=r.with?.outputFileName,L=(0,Fo.generateDownloadFileName)(t,C,T.data.headers,j),D=await Fo.OrchestratorUtils.uploadFileToBlob(this.workflowConfig.baseUrl,this.workflowConfig.accessToken,this.workflowConfig.organizationId,this.workflowConfig.tenantId,R,L,C,this.logger,this.workflowConfig.processConfig?.folderKey);T.data.content=D}let k=T.data?.isVendorError??!1;T.data&&delete T.data.isVendorError;let x=this.getErrorTitle(s,k);return{success:T.success,data:T.data,resolvedProperties:c,error:T.success?void 0:new Wo.WorkflowErrorBuilder().fromError(T.error).setStatus((0,ix.getHttpErrorStatus)(T.data?.statusCode)).setTitle(x).setDetail((0,ix.getHttpErrorDetails)(T.data)).setData({taskName:t,cause:T.data}).build()}}catch(u){return{success:!1,resolvedProperties:c,error:(0,Wo.isWorkflowError)(u)?u:new Wo.WorkflowErrorBuilder().fromError(u).setType(hn.WorkflowErrorType.COMMUNICATION_ERROR).setStatus(hn.WorkflowErrorStatus.INTERNAL_SERVER_ERROR).setTitle((0,Ht.t)(Ht.ErrorKeys.FAILED_IS_CALL)).setData({taskName:t,cause:this.getIntsvcErrorData(s,r)}).build()}}}getErrorTitle(t,r){let e=(0,Ht.t)(Ht.ErrorKeys.FAILED_IS_CALL_TO,{endpoint:t.endpoint});return t.proxyToVendorAPI&&r?(0,Ht.t)(Ht.ErrorKeys.VENDOR_FAILURE,{url:t.body?.url}):e}extractContentType(t){if(!t)return;let r=Object.keys(t).find(e=>e.toLowerCase()==="content-type");return r?t[r]:void 0}getIntsvcErrorData(t,r){return{endpoint:t.endpoint,method:t.method,[Ic.X_UIPATH_INTERNAL_ORG_ID]:this.workflowConfig.organizationId,[Ic.X_UIPATH_INTERNAL_TENANT_ID]:this.workflowConfig.tenantId,[Ic.X_UIPATH_CONNECTOR_KEY]:r.with?.connector,connectionId:r.with?.connectionId}}resolveOrchestratorContext(t,r,e){let n=sx.ResourceOverrideResolver.getOrchestratorOverrides(this.workflowConfig,this.logger,t,r,e),i=this.workflowConfig.processConfig?.robotKey;i&&(n??(n={}),n.robotKey=i);let s=this.workflowConfig.processConfig?.jobKey;return s&&(n??(n={}),n.jobKey=s),n}resolveSolutionResourceOverrides(t,r,e){let n=Ui.IntSvcTaskHandlerUtil.resolveSolutionResourceFields(e,this.logger);if(n.length!==0)return sx.ResourceOverrideResolver.getSolutionResourceOverrides(this.workflowConfig,this.logger,t??{},r??{},n)}};kh.IntSvcsTaskHandler=gg});var cx=O(Ph=>{"use strict";Object.defineProperty(Ph,"__esModule",{value:!0});Ph.RaiseTaskHandler=void 0;var pa=qe(),$J=Ce(),BJ=Et(),Eg=class extends BJ.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r){this.logger.debug(`Processing raise task for "${t}" with values:`,{error:r.raise?.error?.toString()});let e,n,i=async(s,c="")=>s?await this.expressionHandler.evaluateDataExpression(s):c;if(r.raise?.error)if(typeof r.raise.error=="string")n=r.raise.error;else{let s=r.raise.error,c=await i(s.type,pa.WorkflowErrorType.RUNTIME_ERROR),u=pa.WorkflowErrorType[c]??pa.WorkflowErrorType.RUNTIME_ERROR,a=await i(s.title,"Unknown Error"),l=await i(s.detail),d=await i(s.instance),f=typeof s.status=="number"?s.status:400;e=new pa.WorkflowError(a,f,u,d,l)}else n=`Raise task for "${t}" was invoked without any error specified`;return e||(e=new $J.WorkflowErrorBuilder().setTitle(n??"Unknown Error").setType(pa.WorkflowErrorType.RUNTIME_ERROR).setStatus(pa.WorkflowErrorStatus.BAD_REQUEST).setInstance("RaiseTaskHandler").setData({taskName:t}).build()),{success:!1,error:e}}};Ph.RaiseTaskHandler=Eg});var dx=O(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});Ah.ResponseTaskHandler=void 0;var HJ=Oe(),ux=Ce(),VJ=vs(),zJ=Et(),lx=Ti();function YJ(o){let t=(o??"download").toString(),r="";for(let n of t){let i=n.charCodeAt(0);i<32||i===127||n==='"'||n==="\\"||n==="/"||(r+=n)}return`attachment; filename="${r.trim()||"download"}"`}var Tg=class extends zJ.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r){try{let e=r.set!==void 0,n=e?r.set||{}:r.response||{};this.logger.debug(`Processing ${e?"old":"new"} response task for "${t}" with values:`,n);let i=await this.expressionHandler.evaluateDataExpression({response:n,jobFailure:r.markJobAsFailed??!1});this.logger.debug(`Response task evaluated successfully for "${t}":`,i);let s=this.getRuntimeExpressionArgs();s.$runtime.control.signalWorkflowEnd=!0;let c=await(0,lx.resolveFileReadMarkers)(i.response,this.workflowConfig,this.logger),u;if((0,HJ.isBlobFileReference)(c))u=c;else{let a=(0,VJ.findBlobAttachmentRefs)(c);a.length>0&&(u=a[0])}return s.$runtime.control.signalWorkflowResponse={signalJobFailure:i.jobFailure,...u?{isFileResponse:!0,contentType:(0,lx.safeMimeType)(u.MimeType)??"application/octet-stream",contentDisposition:YJ(u.FullName),attachmentId:u.ID}:{}},{success:!0,data:c}}catch(e){return this.logger.error(`Error processing response task "${t}":`,e),{success:!1,error:(0,ux.isWorkflowError)(e)?e:new ux.WorkflowErrorBuilder().fromError(e).setTitle(`Failed to execute Response task: ${t}`).setData({taskName:t}).build()}}}};Ah.ResponseTaskHandler=Tg});var hx=O(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});Ih.SetTaskHandler=void 0;var fx=tt(),Sg=qe(),px=Ce(),KJ=Et(),Og=class extends KJ.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r){try{if(this.logger.debug(`Processing set task for "${t}" with values:`,r.set),!r.set)throw new Sg.WorkflowError(`Task ${t} has no values to set`,Sg.WorkflowErrorStatus.BAD_REQUEST,Sg.WorkflowErrorType.VALIDATION_ERROR,"SetTaskHandler");let e=await this.expressionHandler.evaluateDataExpression(r.set);return this.logger.debug(`Set task evaluated successfully for "${t}":`,e),{success:!0,data:e}}catch(e){return this.logger.error(`Error processing set task "${t}":`,e),{success:!1,error:(0,px.isWorkflowError)(e)?e:new px.WorkflowErrorBuilder().fromError(e).setTitle((0,fx.t)(fx.ErrorKeys.FAILED_SET_TASK,{taskName:t})).setData({taskName:t}).build()}}}};Ih.SetTaskHandler=Og});var _x=O(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});xh.SwitchTaskHandler=void 0;var kg=Un(),JJ=qo(),Vt=tt(),Uo=qe(),ha=Ce(),GJ=Et(),Pg=class o extends GJ.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r,e){try{this.logger.debug(`Processing switch task for "${t}"`);let n=kg.TaskExecutorHelper.readAsExtendedTask({[t]:r}),i=this.getRuntimeExpressionArgs(),s=await XJ(r,e,this.logger,this.expressionHandler);if(!s)throw new ha.WorkflowErrorBuilder().setType(Uo.WorkflowErrorType.VALIDATION_ERROR).setStatus(Uo.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Vt.t)(Vt.ErrorKeys.NO_MATCHING_CASE,{taskName:t})).setData({taskName:t}).build();let{caseName:c,caseTask:u}=ZJ(s,t);if(!this.taskHandlerArgs.workflowResult||!this.taskHandlerArgs.allCurrentLevelTasks||!this.taskHandlerArgs.taskIndexRef){let h=`Missing required switch task context: ${this.taskHandlerArgs.workflowResult?this.taskHandlerArgs.allCurrentLevelTasks?"taskIndexRef":"allCurrentLevelTasks":"workflowResult"}`;throw this.logger.error(h),new ha.WorkflowErrorBuilder().setType(Uo.WorkflowErrorType.RUNTIME_ERROR).setStatus(Uo.WorkflowErrorStatus.INTERNAL_SERVER_ERROR).setTitle((0,Vt.t)(Vt.ErrorKeys.INTERNAL_ERROR)).build()}this.taskHandlerArgs.workflowResult.addToWorkflowExecutions(`Switch: ${r.name} > Case: ${c}`),await this.logger.debug(`Switch task '${t}' matched case: '${c}'`);let a=o.findNextTask(this.taskHandlerArgs.allCurrentLevelTasks,u.then);if(!a)throw new ha.WorkflowErrorBuilder().setType(Uo.WorkflowErrorType.VALIDATION_ERROR).setStatus(Uo.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Vt.t)(Vt.ErrorKeys.INVALID_SWITCH_TRANSITION,{taskName:t,nextStep:u.then})).setData({taskName:t,transition:u.then}).build();let l=this.taskHandlerArgs.allCurrentLevelTasks.indexOf(a);if(l===-1)throw new ha.WorkflowErrorBuilder().setType(Uo.WorkflowErrorType.VALIDATION_ERROR).setStatus(Uo.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,Vt.t)(Vt.ErrorKeys.TASK_NOT_FOUND,{taskName:u.then})).setData({taskName:t,transition:u.then}).build();return this.taskHandlerArgs.taskIndexRef.value=l,await(0,JJ.isTaskDisabled)(a,this.expressionHandler)?{success:!0,data:e}:await kg.TaskExecutorHelper.executeFlowTask(a,this.taskHandlerArgs.allCurrentLevelTasks,e,this.taskHandlerArgs.taskIndexRef,this.workflowConfig,i,this.taskHandlerArgs.workflowResult,this.logger,this.expressionHandler,n.variables)}catch(n){return{success:!1,error:(0,ha.isWorkflowError)(n)?n:new ha.WorkflowErrorBuilder().fromError(n).setTitle((0,Vt.t)(Vt.ErrorKeys.FAILED_SWITCH_TASK,{taskName:t})).setData({taskName:t}).build()}}}static findNextTask(t,r){return t.find(e=>kg.TaskExecutorHelper.readAsExtendedTask(e).name===r)}};xh.SwitchTaskHandler=Pg;async function XJ(o,t,r,e){if(!o.switch)return;let n=o.switch,i;for(let s of n){let[c,u]=Object.entries(s)[0];if(c==="default"){i=s;continue}if(!u.when)throw new Error((0,Vt.t)(Vt.ErrorKeys.MISSING_WHEN_CONDITION,{caseName:c}));if(await e.evaluateConditionExpression(u.when))return r.debug(`Switch case matched: '${c}' with expression: ${JSON.stringify(u.when)}`),s;if(t&&t.content&&t.content&&await e.evaluateConditionExpression(u.when))return r.debug(`Switch case matched in 'content': '${c}' with expression: ${JSON.stringify(u.when)}`),s}return r.debug("No switch case matched, falling back to default case."),i}function ZJ(o,t){let r=Object.keys(o)[0],e=o[r];if(!e||!e.then)throw new Error((0,Vt.t)(Vt.ErrorKeys.INVALID_CASE_TRANSITION,{stepName:t,caseName:r}));return{caseName:r,caseTask:e}}});var vx=O(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});Mh.TryCatchTaskHandler=void 0;var QJ=fr(),eG=nd(),Ag=Un(),mx=qe(),_a=Ce(),tG=Et(),Rh=new WeakMap,Ig=class extends tG.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r,e){this.logger.info(`Executing Try: ${t}`);let n=r.catch,i=n?.as||QJ.ERROR,s=Ag.TaskExecutorHelper.readAsExtendedTask({[t]:r}),c=n?.retry!==void 0?(0,_a.resolveRetryPolicy)(n.retry,this.getRuntimeExpressionArgs().$workflow.definition,t):void 0,u=c?(0,_a.getRetryLimits)(c):void 0;c?.limit?.attempt?.duration!==void 0&&this.logger.warn(`Try task '${t}': retry 'limit.attempt.duration' (per-attempt timeout) is not supported and will be ignored.`);let a=0,l;for(;;){let d;try{return await this.executeTryBlock(r,e,s,c!==void 0)}catch(f){d=this.toWorkflowError(t,f)}if(l??(l=Date.now()),!await this.isErrorCaught(n,i,d))throw this.logger.debug(`Try task '${t}': error does not match the catch filter, propagating.`,{status:d.status,type:d.type}),d;if(c&&u){let f=a+1,{delayMs:h,retryAfterMs:_,retryAfterCapMs:m}=(0,_a.resolveRetryDelayMs)(c,f,d),v=Date.now()-l;if(this.isWithinRetryLimits(u,f,v+h)&&await this.isRetryAllowed(c,i,d)){a=f;let b=_===void 0?"":m===void 0?" (from Retry-After header)":` (Retry-After header asked for ${_}ms, capped at ${m}ms)`;this.logger.warn(`Try task '${t}': attempt failed, retrying (${a}/${u.maxAttempts}) in ${h}ms${b}. Error: ${d.title}`),await this.logRetryEvent(t,r,d,a,u,h,_),h>0&&await new Promise(g=>setTimeout(g,h)),await this.expressionHandler.setInputOutput(e);continue}this.logger.warn(`Try task '${t}': retry policy exhausted or not applicable after ${a} retry attempt(s).`)}return await this.handleCaughtError(t,n,i,d,s,c!==void 0)}}async executeTryBlock(t,r,e,n){var i;let s=this.getRuntimeExpressionArgs();n&&((i=s.$runtime).control??(i.control={}),s.$runtime.control.taskRetryDepth=(s.$runtime.control.taskRetryDepth??0)+1);try{return await Ag.TaskExecutorHelper.executeTaskList(t.try,r,this.workflowConfig,s,this.logger,this.expressionHandler,e.variables)}finally{n&&(s.$runtime.control.taskRetryDepth=Math.max(0,(s.$runtime.control.taskRetryDepth??1)-1))}}async isErrorCaught(t,r,e){return t?(0,_a.matchesErrorFilter)(e,t.errors?.with)?await this.evaluateConditions(t.when,t.exceptWhen,r,e):!1:!0}async isRetryAllowed(t,r,e){return await this.evaluateConditions(t.when,t.exceptWhen,r,e)}isWithinRetryLimits(t,r,e){return!(r>t.maxAttempts||t.maxDurationMs!==void 0&&e>=t.maxDurationMs)}async evaluateConditions(t,r,e,n){if(!t&&!r)return!0;let i=`$${e}`;await this.bindErrorVariable(i,n.toObject());try{return!(t&&!await this.expressionHandler.evaluateConditionExpression(t)||r&&await this.expressionHandler.evaluateConditionExpression(r))}finally{await this.unbindErrorVariable(i)}}async bindErrorVariable(t,r){await this.expressionHandler.setVariables({[t]:r});let e=Rh.get(this.expressionHandler);e||(e=new Map,Rh.set(this.expressionHandler,e));let n=e.get(t)??[];n.push(r),e.set(t,n)}async unbindErrorVariable(t){let r=Rh.get(this.expressionHandler),e=r?.get(t);if(e?.pop(),e&&e.length>0){await this.expressionHandler.setVariables({[t]:e[e.length-1]});return}r?.delete(t),r?.size===0&&Rh.delete(this.expressionHandler),await this.expressionHandler.deleteVariables([t])}async logRetryEvent(t,r,e,n,i,s,c){try{await eG.LoggingHelper.logTaskData(this.logger,{taskId:t,taskType:mx.TaskType.TRY,displayName:r.metadata?.displayName,event:mx.TaskEvent.TASK_RETRIED,runtimeExpressionArgs:this.getRuntimeExpressionArgs(),error:e,taskSpanId:this.executionContext?.taskSpanId,retry:{attempt:n,maxAttempts:i.maxAttempts,delayMs:s,...c!==void 0?{retryAfterMs:c}:{},failedTaskName:e.originatingTaskName}},this.expressionHandler)}catch(u){this.logger.warn(`Try task '${t}': failed to log retry event`,{error:u instanceof Error?u.message:String(u)})}}async handleCaughtError(t,r,e,n,i,s){let c=this.toErrorObject(t,e,n);if(!r||!r.do){if(s)throw n;return c}let u=c.data[e];await this.bindErrorVariable(`$${e}`,u),i.variables=i.variables||{},i.variables[e]=u;try{return await this.expressionHandler.setInputOutput(c.data,void 0),await Ag.TaskExecutorHelper.executeTaskList(r.do,c,this.workflowConfig,this.getRuntimeExpressionArgs(),this.logger,this.expressionHandler,i.variables)}finally{await this.unbindErrorVariable(`$${e}`),delete i.variables[e]}}toWorkflowError(t,r){return(0,_a.isWorkflowError)(r)?r:new _a.WorkflowErrorBuilder().fromError(r).setTitle(`Unknown error while executing task '${t}'`).setInstance("TryCatchTaskHandler").setData({taskName:t}).build()}toErrorObject(t,r,e){let n=this.toWorkflowError(t,e);return{success:!0,data:r?{[r]:n.toObject()}:n.toObject(),error:void 0}}};Mh.TryCatchTaskHandler=Ig});var gx=O(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.UnifiedHttpTaskHandler=void 0;var rG=qo(),yx=tt(),xc=qe(),nG=Ce(),bx=oc(),oG=Ti(),iG=cg(),sG=wg(),xg=class{constructor(t,r,e){this.taskHandlerArgs=t,this.logger=r,this.expressionHandler=e}async handleTask(t,r,e){if(!r.with?.bodyParameters||!r.with?.endpoint)throw new nG.WorkflowErrorBuilder().setType(xc.WorkflowErrorType.VALIDATION_ERROR).setStatus(xc.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,yx.t)(yx.ErrorKeys.HTTP_TASK_CONFIG_INVALID,{taskName:t})).setData({taskName:t}).build();let n=r.with.bodyParameters,i=await this.expressionHandler.evaluateDataExpression(n),s=this.taskHandlerArgs.workflowConfig;if((0,bx.applyOutboundTraceHeaders)(i.headers??(i.headers={}),{telemetryConfig:s.telemetryConfig,baggage:s.tracingConfig?.baggage,firstParty:(0,bx.isFirstPartyHost)(i.url,s.baseUrl)}),(0,rG.getUnifiedHttpAuthMode)(r)===xc.HttpAuthMode.CONNECTOR){let u=r.with.connectionId,a=i?.targetConnector,l=r.with.connectionResourceId,d=["authentication","connection","connectionId","connector","targetConnector","requestBodyType","multipartFormData"],f=Object.fromEntries(Object.entries(i||{}).filter(([m])=>!d.includes(m))),h={...r,call:xc.INTEGRATION_SERVICE_TASK_TYPE,with:{endpoint:r.with.endpoint,method:r.with.method,headers:r.with.headers,connector:a,connectionId:u,connectionResourceId:l,bodyParameters:Object.keys(f).length>0?f:void 0,queryParameters:r.with.queryParameters,pathParameters:r.with.pathParameters,multipartParameters:r.with.multipartParameters,proxyToVendorAPI:!0,executionType:r.with.executionType,outputFileName:r.with.outputFileName}};return await new sG.IntSvcsTaskHandler(this.taskHandlerArgs,this.logger,this.expressionHandler).handleTask(t,h,e)}else{let u=i.requestBodyType===xc.RequestBodyType.MULTIPART_FORM_DATA,a=(0,oG.isPlainObject)(i.body)?i.body:void 0,l=u?a:i.body,d={endpoint:i.url,method:i.method,headers:i.headers,body:l,query:i.query},f={...r,call:"http",with:{...d,...u?{multipartFormData:i.multipartFormData??[]}:{},...r.with.outputFileName!==void 0?{outputFileName:r.with.outputFileName}:{}}};return await new iG.HttpTaskHandler(this.taskHandlerArgs,this.logger,this.expressionHandler).handleTask(t,f,e)}}};Ch.UnifiedHttpTaskHandler=xg});var Tx=O(Nh=>{"use strict";Object.defineProperty(Nh,"__esModule",{value:!0});Nh.WaitTaskHandler=void 0;var wx=Oe(),Ex=Ce(),aG=Et(),jh=class o extends aG.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r,e){try{this.logger.debug(`Processing wait task for "${t}"`,{waitDuration:r.wait});let n=r.wait,i=0;if(!n)throw this.logger.debug(`No wait duration provided for task "${t}", proceeding without wait`),new Error("Wait duration is required but was not provided");let s=await this.expressionHandler.evaluateDataExpression(n);if(i=this.parseDuration(s),i>o.MAX_WAIT_TIME_MS)throw new Error(`Wait time ${i}ms exceeds maximum allowed (${o.MAX_WAIT_TIME_MS}ms)`);return this.logger.debug(`Wait task "${t}" will wait for ${i} milliseconds`,{waitTimeMs:i}),await new Promise(c=>setTimeout(c,i)),this.logger.debug(`Wait task "${t}" completed after ${i} milliseconds`,{waitTimeMs:i}),{success:!0,data:{waitedFor:i}}}catch(n){return this.logger.error(`Error processing wait task "${t}":`,n),{success:!1,error:(0,Ex.isWorkflowError)(n)?n:new Ex.WorkflowErrorBuilder().fromError(n).setTitle(`Failed to execute Wait task: ${t}`).setData({taskName:t}).build()}}}parseDuration(t){if(typeof t=="number"){if(!Number.isFinite(t)||t<0)throw new Error(`Invalid wait duration: ${t} (expected a non-negative number of milliseconds)`);return t}else{if(typeof t=="string")return wx.TimeDurationUtils.parseIso8601Duration(t);if(typeof t=="object"&&t!==null)return wx.TimeDurationUtils.parseDurationObject(t);throw new Error(`Invalid duration format: ${String(t)}`)}}};Nh.WaitTaskHandler=jh;jh.MAX_WAIT_TIME_MS=1*60*1e3});var Px=O(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});Dh.WhileTaskHandler=void 0;var Sx=Un(),Ox=tt(),cG=qe(),uG=Ce(),lG=Et(),kx=1e4,Rg=class extends lG.AbstractTaskHandler{constructor(t,r,e){super(t,r,e)}async internalHandleTask(t,r,e){this.logger.info(`Executing WhileTask: ${t}`);let n=Sx.TaskExecutorHelper.readAsExtendedTask({[t]:r}),i=r.while,s=r.do,c=typeof r.limit=="number"?Math.min(r.limit,kx):kx;this.logger.debug(`WhileTask '${t}' > whileExpression: '${i}', limit: ${c}`);let u={success:!0,data:{}},a=0,l=await this.expressionHandler.evaluateConditionExpression(i);for(this.logger.debug(`WhileTask '${t}' > whileExpression: '${i}' >> ${l?"continue":"break"}`);l&&a<c;){this.logger.debug(`WhileTask '${t}' > iteration ${a} started`),this.logger.logIterationVariables(t,cG.TaskType.WHILE,{iteration:a});let d;try{d=structuredClone(s)}catch(h){throw this.logger.error(`WhileTask '${t}': Failed to clone task list for iteration ${a}. Error: ${h}`),new uG.WorkflowErrorBuilder().fromError(h).setTitle((0,Ox.t)(Ox.ErrorKeys.TASK_EXECUTION_FAILED,{taskName:t})).build()}if(u=await Sx.TaskExecutorHelper.executeTaskList(d,e,this.workflowConfig,this.getRuntimeExpressionArgs(),this.logger,this.expressionHandler,n.variables),!u.success)break;let f=this.getRuntimeExpressionArgs();if(f.$runtime.control?.signalLoopExit===!0){this.logger.debug(`WhileTask '${t}' > Loop exit signaled during iteration ${a}`),f.$runtime.control.signalLoopExit=!1;break}if(this.getRuntimeExpressionArgs().$runtime.control.signalWorkflowEnd)return this.logger.warn(`WhileTask '${t}' > iteration ${a} ended with result: ${u}`),u;this.logger.debug(`WhileTask '${t}' > iteration ${a} completed with result: ${u}`),l=await this.expressionHandler.evaluateConditionExpression(i),this.logger.debug(`WhileTask '${t}' > whileExpression: '${i}' >> ${l?"continue":"break"}`),a++}return a>=c&&this.logger.warn(`WhileTask '${t}' reached iteration limit (${c})`),u}};Dh.WhileTaskHandler=Rg});var xx=O(Mg=>{"use strict";Object.defineProperty(Mg,"__esModule",{value:!0});Mg.invokeTaskHandler=kG;var Ix=Ba(),dG=vI(),fG=yI(),pG=EI(),Ax=OI(),hG=cg(),_G=ZI(),mG=wg(),vG=cx(),yG=dx(),bG=dy(),gG=hx(),wG=_x(),EG=vx(),TG=gx(),SG=Tx(),OG=Px(),yr=tt(),$i=qe(),Mc=Ce(),Rc=qo();async function kG(o){let t=Object.keys(o.task).join(", "),r={success:!1,error:new Mc.WorkflowErrorBuilder().setType($i.WorkflowErrorType.RUNTIME_ERROR).setStatus($i.WorkflowErrorStatus.NOT_IMPLEMENTED).setTitle((0,yr.t)(yr.ErrorKeys.TASK_NOT_IMPLEMENTED,{taskName:o.taskName})).setDetail((0,yr.t)(yr.ErrorKeys.UNSUPPORTED_TASK_TYPE_DETAIL,{taskType:String(o.task.type||"unknown")})).setData({taskName:o.taskName,properties:t,source:Ix.TASK_INVOKER}).build()};try{let e=o.task;(e.call||e.run||e.set!==void 0||e.do||e.for||e.try||e.raise||e.switch||e.while||e.doWhile||e.break||e.wait||e.response)&&(r=await PG(e,o.taskName,o.taskHandlerArgs,o.runtimeExpressionArgs,o.taskInput,o.logger,o.expressionHandler,o.customTaskHandlerFactories,o.taskSpanId))}catch(e){if((0,Mc.isWorkflowError)(e))throw e;r.error=new Mc.WorkflowErrorBuilder().fromError(e).setTitle((0,yr.t)(yr.ErrorKeys.ERROR_HANDLING_TASK,{taskName:o.taskName})).build()}return r}var PG=async(o,t,r,e,n,i,s,c,u)=>{let a=AG(o,r,i,s,c),l={name:t,input:n,output:{}};return await s.setVariables({$task:l}),await a.handleTask(t,o,e,{taskSpanId:u})},AG=(o,t,r,e,n)=>{let i=o;if(i.break&&i.then===Ix.EXIT)return new dG.BreakTaskHandler(t,r,e);if(o.call)return(0,Rc.isUnifiedHttpTask)(o)?new TG.UnifiedHttpTaskHandler(t,r,e):(0,Rc.isIntSvcTask)(o)?new mG.IntSvcsTaskHandler(t,r,e):(0,Rc.isIntSvcEventTask)(o)?new _G.IntSvcsEventTaskHandler(t,r,e):new hG.HttpTaskHandler(t,r,e);if(o.run){let s=n?.[$i.TaskType.SCRIPT];return s?s(t,r,e):bG.DefaultScriptTaskHandler.create(t,r,e)}if(o.set!==void 0&&!(0,Rc.isResponseTask)(o))return new gG.SetTaskHandler(t,r,e);if(o.try)return new EG.TryCatchTaskHandler(t,r,e);if(o.for&&o.do)return o.while?o.for.each?new Ax.ForTaskHandler(t,r,e):new OG.WhileTaskHandler(t,r,e):o.doWhile?new pG.DoWhileTaskHandler(t,r,e):new Ax.ForTaskHandler(t,r,e);if(o.do)return new fG.DoTaskHandler(t,r,e);if(o.raise)return new vG.RaiseTaskHandler(t,r,e);if(o.switch){if(!t.allCurrentLevelTasks||!t.taskIndexRef||!t.workflowResult)throw r.error("Switch task handler missing required context: allCurrentLevelTasks, taskIndexRef, or workflowResult"),new Mc.WorkflowErrorBuilder().setType($i.WorkflowErrorType.RUNTIME_ERROR).setStatus($i.WorkflowErrorStatus.INTERNAL_SERVER_ERROR).setTitle((0,yr.t)(yr.ErrorKeys.FAILED_SWITCH_TASK,{taskName:"switch"})).build();return new wG.SwitchTaskHandler(t,r,e)}if(o.wait)return new SG.WaitTaskHandler(t,r,e);if((0,Rc.isResponseTask)(o))return new yG.ResponseTaskHandler(t,r,e);throw new Mc.WorkflowErrorBuilder().setType($i.WorkflowErrorType.VALIDATION_ERROR).setStatus($i.WorkflowErrorStatus.BAD_REQUEST).setTitle((0,yr.t)(yr.ErrorKeys.UNSUPPORTED_TASK_TYPE)).setDetail((0,yr.t)(yr.ErrorKeys.UNSUPPORTED_TASK_TYPE_DETAIL,{taskType:String(o.type||"unknown")})).build()}});var Un=O(Lh=>{"use strict";Object.defineProperty(Lh,"__esModule",{value:!0});Lh.TaskExecutorHelper=void 0;var Cg=Ub(),Rx=Ba(),ma=tt(),$o=qe(),IG=$b(),va=Ce(),Mx=sy(),xG=rc(),Cx=Sy(),Cc=nd(),jg=Dg(),RG=xx(),ht=qo(),Ng=class o{static async executeTaskList(t,r,e,n,i,s,c){let u={success:!0,data:{}};if(!t||t.length===0)return u;let a={value:0},l=t[a.value];for(;l;){if(await(0,ht.isTaskDisabled)(l,s)){a.value++,l=t[a.value];continue}let f=jg.ServerlessWorkflowExecutor.getExecutor(n.$runtime.metadata.workflowRunId).workflowExecutionResults;u=await this.executeFlowTask(l,t,r,a,e,n,f,i,s,c);let h=o.readAsExtendedTask(t[a.value]);if(!u.success)throw(0,va.isWorkflowError)(u.error)?u.error:new va.WorkflowErrorBuilder().fromError(u.error).setTitle((0,ma.t)(ma.ErrorKeys.UNKNOWN_TASK_ERROR,{taskName:h.name})).setData({taskName:h.name,result:u}).build();if(n.$runtime.control?.signalWorkflowEnd)return i.debug(`TaskExecutorHelper.executeTaskList: signalWorkflowEnd detected after processing task '${h.name}'. Halting current task list.`),u;if(n.$runtime.control?.signalLoopExit===!0)return i.debug(`TaskExecutorHelper.executeTaskList: signalLoopExit detected after processing task '${h.name}'. Halting current task list execution.`),u;if(u.success&&u.data&&(r=u.data),h.then)if((0,ht.isTaskWithTransition)(h)){if(h.then===Rx.EXIT)break;if(h.then===Rx.END)return n.$runtime.control.signalWorkflowEnd=!0,u}else{let _=t.findIndex(m=>o.readAsExtendedTask(m).name===h.then);if(_===-1){let m=`Invalid transition from task '${h.name}': Next task '${h.then}' not found`;throw i.error(m),new va.WorkflowErrorBuilder().setType($o.WorkflowErrorType.RUNTIME_ERROR).setStatus($o.WorkflowErrorStatus.INTERNAL_SERVER_ERROR).setTitle((0,ma.t)(ma.ErrorKeys.INTERNAL_ERROR)).setData({taskName:h.name,nextTask:h.then,errorMessage:`Next task '${h.then}' not found`}).build()}a.value=_}else a.value++;l=t[a.value]}return u}static readAsExtendedTask(t,r){let e=Object.keys(t)[0],n=typeof t[e]=="object"?t[e]:{},i={...n,name:e,metadata:n.metadata,variables:{...n.variables??{},...r??{}}};for(let[s,c]of Object.entries(t))s!==e&&(i[s]=c);return i}static detectUiPathInternalServiceCall(t,r){if((0,ht.getHttpCallMode)(t)===IG.HttpCallMode.DIRECT&&r){let e=r.url;if(e)return va.InternalServiceDetector.isInternalServiceUrl(e)}}static async executeFlowTask(t,r,e,n,i,s,c,u,a,l){let d=o.readAsExtendedTask(t,l),f={success:!0,data:{}},h=(0,Mx.newOtelSpanId)(),_=(0,Mx.toOtelTraceIdOrUndefined)(i.tracingConfig?.traceId),m=_?{traceId:_,spanId:h}:void 0,v=b=>m?(0,xG.runInTraceSpan)(m,b):b();try{let b={taskId:d.name,taskType:(0,ht.getTaskType)(d),displayName:d.metadata?.displayName,event:$o.TaskEvent.TASK_STARTED,runtimeExpressionArgs:s,input:e,variables:l||d.variables?{...l??{},...d.variables??{}}:void 0,taskSpanId:h};if(Cx.DebugManager.isDebugModeEnabled(s)){let{shouldPause:k,breakpointId:x}=Cx.DebugManager.taskHasBreakpoint(s.$runtime.metadata.workflowRunId,d.name);if(k){console.debug(`Task has breakpoint: ${d.name} [id: ${x}], pausing execution...`),b.breakpointId=x,b.shouldPause=!0;let C=jg.ServerlessWorkflowExecutor.getExecutor(s.$runtime.metadata.workflowRunId)?.commandStream$?.pipe((0,Cg.filter)(L=>L.command===$o.WorkflowCommandEvent.Resume)),j=(0,Cg.firstValueFrom)(C??Cg.EMPTY);console.debug(`Paused on: ${d.name} [breakpoint: ${x}], waiting for command to continue...`),await Cc.LoggingHelper.logTaskData(u,b,a),await j,console.debug(`Resume command received on: ${d.name} [breakpoint:${x}], continuing...`)}else await Cc.LoggingHelper.logTaskData(u,b,a)}else await Cc.LoggingHelper.logTaskData(u,b,a);c.addToWorkflowExecutions(d.name);let g=this.setupTaskHandlerArgs(i,r,n,c),w=jg.ServerlessWorkflowExecutor.getExecutor(s.$runtime.metadata.workflowRunId);if(f=await v(()=>(0,RG.invokeTaskHandler)({task:d,taskName:d.name,taskHandlerArgs:g,runtimeExpressionArgs:s,taskInput:e,logger:u,expressionHandler:a,customTaskHandlerFactories:w?.customTaskHandlerFactories,taskSpanId:h})),c.addToWorkflowResult(f,d.name),!f.success&&!d.raise)throw f.error;let T=d.raise?f.error.toObject():f.data,P=this.detectUiPathInternalServiceCall(d,f.resolvedProperties);return await v(()=>Cc.LoggingHelper.logTaskData(u,{taskId:d.name,taskType:(0,ht.getTaskType)(d),displayName:d.metadata?.displayName,event:$o.TaskEvent.TASK_COMPLETED,runtimeExpressionArgs:s,properties:f.resolvedProperties,output:T,vendorExecutionTimeMs:(0,ht.isUnifiedHttpTask)(d)||(0,ht.isIntSvcTask)(d)||(0,ht.isHttpTask)(d)?(0,ht.extractVendorProcessingTime)(f.data):void 0,...(0,ht.getHttpCallMode)(d)!==null?{HttpCallMode:(0,ht.getHttpCallMode)(d)?.toString()}:{},...P!==void 0?{isUiPathInternalServiceCall:P}:{},taskSpanId:h},a)),f}catch(b){let g=new va.WorkflowErrorBuilder,w=!0;(0,va.isWorkflowError)(b)?(w=!b.originatingTaskName,g.fromWorkflowError(b)):g.fromError(b).setTitle((0,ma.t)(ma.ErrorKeys.TASK_EXECUTION_FAILED)),w&&g.setOriginatingTaskName(d.name);let T=g.build(),P=w?$o.TaskEvent.TASK_FAILED:$o.TaskEvent.TASK_STOPPED,k=this.detectUiPathInternalServiceCall(d,f.resolvedProperties);throw await Cc.LoggingHelper.logTaskData(u,{taskId:d.name,taskType:(0,ht.getTaskType)(d),displayName:d.metadata?.displayName,event:P,runtimeExpressionArgs:s,properties:f.resolvedProperties,error:T,vendorExecutionTimeMs:(0,ht.isUnifiedHttpTask)(d)||(0,ht.isIntSvcTask)(d)||(0,ht.isHttpTask)(d)?(0,ht.extractVendorProcessingTime)(f.data):void 0,...(0,ht.getHttpCallMode)(d)!==null?{HttpCallMode:(0,ht.getHttpCallMode)(d)?.toString()}:{},...k!==void 0?{isUiPathInternalServiceCall:k}:{},taskSpanId:h},a),T}}static setupTaskHandlerArgs(t,r,e,n){let i=new $o.TaskHandlerArgs(structuredClone(t));return i.allCurrentLevelTasks=r,i.taskIndexRef=e,i.workflowResult=n,i}};Lh.TaskExecutorHelper=Ng});var Dg=O(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});Uh.ServerlessWorkflowExecutor=void 0;var qh=Oe(),MG=oy(),jx=sc(),Bi=tt(),Hi=qe(),jc=Ce(),CG=rc(),Lg=Sy(),jG=US(),Nx=ky(),Nc=nd(),NG=$S(),Fh=Qa(),DG=Un(),Wh=class o{constructor(t,r,e,n,i,s){this.workflowStartedAt=void 0,this.customTaskHandlerFactories={},this.commandStream$=void 0,this.workflowStartedAt=new Date,this.workflow=t,this.logger=e,this.workflowConfig=r,this.workflowRunId=i||(0,qh.getNewGuid)(),this.workflowExecutionResults=new Hi.WorkflowExecutionResults(this.workflowRunId,r.debugConfig?.enableTaskTracking===!0),this.expressionHandler=(0,MG.getExpressionHandler)(t,n),n?.traceContextProvider&&(0,CG.setTraceContextProvider)(n.traceContextProvider),this.runtimeExpressionArgs=(0,Nx.createRuntimeExpressionArgs)(t,r,this.workflowStartedAt,this.workflowRunId,s),this.customTaskHandlerFactories=n?.taskHandlerFactories??{}}static getExecutor(t){return o.workflowExecutorMap.get(t)}static async execute(t,r,e,n,i){let s=null,c=null,u=i||(0,qh.getNewGuid)(),a=(0,NG.createRedactingLogger)(n?.logger??jG.defaultLogger,u);await(0,Bi.initLocalization)(r.languageCode),Fh.SecretRegistryStore.acquire(u);try{if(s=new o(t,r,a,n,u,e),o.workflowExecutorMap.set(s.workflowRunId,s),r.debugConfig?.runInDebugMode){if(!n?.commandStream$)throw a.error("$commandStream is required in WorkflowExecutorOptions when debug mode is enabled"),new Error((0,Bi.t)(Bi.ErrorKeys.INTERNAL_ERROR));s.commandStream$=n.commandStream$,c=n.commandStream$.subscribe(g=>{if(g.command===Hi.WorkflowCommandEvent.SetBreakpoints){let w=g.payload;Lg.DebugManager.setBreakpoints(s.workflowRunId,w)}}),Lg.DebugManager.setBreakpoints(s.workflowRunId,r.debugConfig?.breakpoints)}let l=await s.executeWorkflow(),d=s.runtimeExpressionArgs.$runtime.control?.signalWorkflowResponse,f=!!d,h=l.success===!1||d?.signalJobFailure===!0,_=l.success===!1?l.error:f?l.data:void 0,m=Fh.SecretRegistryStore.get(u),v=m?m.redact(_):_,b=new Hi.WorkflowResponse(h,v);return await a.shutdown(),b}catch(l){a?.error("Workflow execution failed",void 0,l instanceof Error?l:new Error((0,qh.getErrorMessage)(l))),await a.shutdown();let d=(0,jc.isWorkflowError)(l)?l:new jc.WorkflowErrorBuilder().fromError(l).setTitle((0,Bi.t)(Bi.ErrorKeys.WORKFLOW_EXECUTION_FAILED)).build(),f=Fh.SecretRegistryStore.get(u);throw f?f.redactError(d):d}finally{Fh.SecretRegistryStore.release(u),s?.expressionHandler?.dispose(),c?.unsubscribe(),Lg.DebugManager.clearBreakpoints(s?.workflowRunId??""),o.workflowExecutorMap.delete(s?.workflowRunId??""),Nc.LoggingHelper.cleanup(s?.workflowRunId??"")}}async executeWorkflow(){try{let t=(0,qh.redactObjectPaths)(this.workflowConfig,["accessToken","telemetryConfig.connectionString","tracingConfig.tracingToken"]);await Nc.LoggingHelper.logWorkflowData(this.logger,{event:Hi.WorkflowEvent.WORKFLOW_STARTED,runtimeExpressionArgs:this.runtimeExpressionArgs,input:this.runtimeExpressionArgs?.$workflow.input,details:t});let{do:r}=this.workflow;if(!r||r.length===0){let n=new Error("No do tasks found in workflow"),i=new jc.WorkflowErrorBuilder().fromError(n).build();return await Nc.LoggingHelper.logWorkflowData(this.logger,{event:Hi.WorkflowEvent.WORKFLOW_FAILED,runtimeExpressionArgs:this.runtimeExpressionArgs,error:i}),{success:!1,error:i}}this.workflowExecutionResults.addToWorkflowExecutions("do"),this.registerHostFunctions(),await this.expressionHandler.setVariables({$context:{orchestratorJobDetails:(0,Nx.buildJobMetadata)(this.workflowConfig)??{},variables:{}},$input:this.runtimeExpressionArgs?.$workflow.input,$output:{},$task:{output:{}},$workflow:this.runtimeExpressionArgs?.$workflow});let e=await DG.TaskExecutorHelper.executeTaskList(r,this.runtimeExpressionArgs?.$workflow.input,this.workflowConfig,this.runtimeExpressionArgs,this.logger,this.expressionHandler);return this.workflowExecutionResults.status=e.success?"completed":"faulted",await Nc.LoggingHelper.logWorkflowData(this.logger,{event:Hi.WorkflowEvent.WORKFLOW_COMPLETED,runtimeExpressionArgs:this.runtimeExpressionArgs,output:this.workflowConfig.debugConfig?.enableTaskTracking?this.workflowExecutionResults.result:e.data,details:this.workflowConfig.debugConfig?.enableTaskTracking?{executions:this.workflowExecutionResults.taskExecutions,status:this.workflowExecutionResults.status,error:e.error}:void 0}),e}catch(t){let r=(0,jc.isWorkflowError)(t)?t:new jc.WorkflowErrorBuilder().fromError(t).setTitle((0,Bi.t)(Bi.ErrorKeys.WORKFLOW_EXECUTION_FAILED)).build();throw this.workflowExecutionResults.status="faulted",await Nc.LoggingHelper.logWorkflowData(this.logger,{event:Hi.WorkflowEvent.WORKFLOW_FAILED,runtimeExpressionArgs:this.runtimeExpressionArgs,details:this.workflowConfig.debugConfig?.enableTaskTracking?{executions:this.workflowExecutionResults.taskExecutions,output:this.workflowExecutionResults.result,status:this.workflowExecutionResults.status,error:r}:void 0,error:r}),r}}registerHostFunctions(){this.expressionHandler.registerHostFunction("base64ToFile",t=>(0,jx.base64ToFile)(t??{},this.workflowConfig,this.logger)),this.expressionHandler.registerHostFunction("fileToBase64",t=>{let{ref:r}=t??{};return(0,jx.encodeFileToBase64)(r,this.workflowConfig,this.logger)})}};Uh.ServerlessWorkflowExecutor=Wh;Wh.workflowExecutorMap=new Map});var br=O(Ot=>{"use strict";var LG=Ot&&Ot.__createBinding||(Object.create?function(o,t,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(o,e,n)}:function(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}),ya=Ot&&Ot.__exportStar||function(o,t){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&LG(t,o,r)};Object.defineProperty(Ot,"__esModule",{value:!0});Ot.ServerlessWorkflowExecutor=Ot.BaseScriptTaskHandler=void 0;ya(LE(),Ot);ya(nS(),Ot);ya(_S(),Ot);ya(tt(),Ot);ya(qe(),Ot);ya(Ce(),Ot);var qG=dy();Object.defineProperty(Ot,"BaseScriptTaskHandler",{enumerable:!0,get:function(){return qG.BaseScriptTaskHandler}});var FG=Dg();Object.defineProperty(Ot,"ServerlessWorkflowExecutor",{enumerable:!0,get:function(){return FG.ServerlessWorkflowExecutor}})});var eR={};$m(eR,{BaggageContextAccessor:()=>Bg});import{AsyncLocalStorage as oX}from"node:async_hooks";var Bg,tR=Pe(()=>{Bg=class o{static storage=new oX;static get(){return o.storage.getStore()?.value}static run(t,r){return o.storage.run({value:t},r)}static set(t){let r=o.storage.getStore();return r===void 0?!1:(r.value=t,!0)}}});var kt,zg,dR,Yg=Pe(()=>{kt={WorkflowEvent:"ApiWorkflow.WorkflowEvent",TaskEvent:"ApiWorkflow.TaskEvent",UserLog:"ApiWorkflow.UserLog",AppInsights:"ApiWorkflow.AppInsights",Ready:"ApiWorkflow.Ready",Lost:"ApiWorkflow.Lost",Chunk:"ApiWorkflow.Chunk"},zg="SendCommand",dR="PeerDisconnected"});var Pt,Hn,ut,r_,n_,o_,Fc,i_,zo=Pe(()=>{Pt=class extends Error{constructor(t,r){let e=new.target.prototype;super(`${t}: Status code '${r}'`),this.statusCode=r,this.__proto__=e}},Hn=class extends Error{constructor(t="A timeout occurred."){let r=new.target.prototype;super(t),this.__proto__=r}},ut=class extends Error{constructor(t="An abort occurred."){let r=new.target.prototype;super(t),this.__proto__=r}},r_=class extends Error{constructor(t,r){let e=new.target.prototype;super(t),this.transport=r,this.errorType="UnsupportedTransportError",this.__proto__=e}},n_=class extends Error{constructor(t,r){let e=new.target.prototype;super(t),this.transport=r,this.errorType="DisabledTransportError",this.__proto__=e}},o_=class extends Error{constructor(t,r){let e=new.target.prototype;super(t),this.transport=r,this.errorType="FailedToStartTransportError",this.__proto__=e}},Fc=class extends Error{constructor(t){let r=new.target.prototype;super(t),this.errorType="FailedToNegotiateWithServerError",this.__proto__=r}},i_=class extends Error{constructor(t,r){let e=new.target.prototype;super(t),this.innerErrors=r,this.__proto__=e}}});var wa,vn,Wc=Pe(()=>{wa=class{constructor(t,r,e){this.statusCode=t,this.statusText=r,this.content=e}},vn=class{get(t,r){return this.send({...r,method:"GET",url:t})}post(t,r){return this.send({...r,method:"POST",url:t})}delete(t,r){return this.send({...r,method:"DELETE",url:t})}getCookieString(t){return""}}});var U,Ur=Pe(()=>{(function(o){o[o.Trace=0]="Trace",o[o.Debug=1]="Debug",o[o.Information=2]="Information",o[o.Warning=3]="Warning",o[o.Error=4]="Error",o[o.Critical=5]="Critical",o[o.None=6]="None"})(U||(U={}))});var yn,s_=Pe(()=>{yn=class{constructor(){}log(t,r){}};yn.instance=new yn});var vR={};$m(vR,{Arg:()=>De,ConsoleLogger:()=>Yo,Platform:()=>We,SubjectSubscription:()=>Uc,VERSION:()=>Ea,constructUserAgent:()=>mR,createLogger:()=>Gg,formatArrayBuffer:()=>_R,getDataDetail:()=>Vn,getErrorString:()=>Bc,getGlobalThis:()=>Xg,getUserAgentHeader:()=>$r,isArrayBuffer:()=>wr,sendMessage:()=>$c});function Vn(o,t){let r="";return wr(o)?(r=`Binary data of length ${o.byteLength}`,t&&(r+=`. Content: '${_R(o)}'`)):typeof o=="string"&&(r=`String data of length ${o.length}`,t&&(r+=`. Content: '${o}'`)),r}function _R(o){let t=new Uint8Array(o),r="";return t.forEach(e=>{let n=e<16?"0":"";r+=`0x${n}${e.toString(16)} `}),r.substr(0,r.length-1)}function wr(o){return o&&typeof ArrayBuffer<"u"&&(o instanceof ArrayBuffer||o.constructor&&o.constructor.name==="ArrayBuffer")}async function $c(o,t,r,e,n,i){let s={},[c,u]=$r();s[c]=u,o.log(U.Trace,`(${t} transport) sending data. ${Vn(n,i.logMessageContent)}.`);let a=wr(n)?"arraybuffer":"text",l=await r.post(e,{content:n,headers:{...s,...i.headers},responseType:a,timeout:i.timeout,withCredentials:i.withCredentials});o.log(U.Trace,`(${t} transport) request complete. Response status: ${l.statusCode}.`)}function Gg(o){return o===void 0?new Yo(U.Information):o===null?yn.instance:o.log!==void 0?o:new Yo(o)}function $r(){let o="X-SignalR-User-Agent";return We.isNode&&(o="User-Agent"),[o,mR(Ea,vX(),bX(),yX())]}function mR(o,t,r,e){let n="Microsoft SignalR/",i=o.split(".");return n+=`${i[0]}.${i[1]}`,n+=` (${o}; `,t&&t!==""?n+=`${t}; `:n+="Unknown OS; ",n+=`${r}`,e?n+=`; ${e}`:n+="; Unknown Runtime Version",n+=")",n}function vX(){if(We.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function yX(){if(We.isNode)return process.versions.node}function bX(){return We.isNode?"NodeJS":"Browser"}function Bc(o){return o.stack?o.stack:o.message?o.message:`${o}`}function Xg(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}var Ea,De,We,Uc,Yo,Mt=Pe(()=>{Ur();s_();Ea="8.0.7",De=class{static isRequired(t,r){if(t==null)throw new Error(`The '${r}' argument is required.`)}static isNotEmpty(t,r){if(!t||t.match(/^\s*$/))throw new Error(`The '${r}' argument should not be empty.`)}static isIn(t,r,e){if(!(t in r))throw new Error(`Unknown ${e} value: ${t}.`)}},We=class o{static get isBrowser(){return!o.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!o.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!o.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}};Uc=class{constructor(t,r){this._subject=t,this._observer=r}dispose(){let t=this._subject.observers.indexOf(this._observer);t>-1&&this._subject.observers.splice(t,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(r=>{})}},Yo=class{constructor(t){this._minLevel=t,this.out=console}log(t,r){if(t>=this._minLevel){let e=`[${new Date().toISOString()}] ${U[t]}: ${r}`;switch(t){case U.Critical:case U.Error:this.out.error(e);break;case U.Warning:this.out.warn(e);break;case U.Information:this.out.info(e);break;default:this.out.log(e);break}}}}});function yR(o,t){let r;switch(t){case"arraybuffer":r=o.arrayBuffer();break;case"text":r=o.text();break;case"blob":case"document":case"json":throw new Error(`${t} is not supported.`);default:r=o.text();break}return r}var a_,bR=Pe(()=>{zo();Wc();Ur();Mt();a_=class extends vn{constructor(t){if(super(),this._logger=t,typeof fetch>"u"||We.isNode){let r=typeof __webpack_require__=="function"?__non_webpack_require__:Ue;this._jar=new(r("tough-cookie")).CookieJar,typeof fetch>"u"?this._fetchType=r("node-fetch"):this._fetchType=fetch,this._fetchType=r("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(Xg());if(typeof AbortController>"u"){let r=typeof __webpack_require__=="function"?__non_webpack_require__:Ue;this._abortControllerType=r("abort-controller")}else this._abortControllerType=AbortController}async send(t){if(t.abortSignal&&t.abortSignal.aborted)throw new ut;if(!t.method)throw new Error("No method defined.");if(!t.url)throw new Error("No url defined.");let r=new this._abortControllerType,e;t.abortSignal&&(t.abortSignal.onabort=()=>{r.abort(),e=new ut});let n=null;if(t.timeout){let u=t.timeout;n=setTimeout(()=>{r.abort(),this._logger.log(U.Warning,"Timeout from HTTP request."),e=new Hn},u)}t.content===""&&(t.content=void 0),t.content&&(t.headers=t.headers||{},wr(t.content)?t.headers["Content-Type"]="application/octet-stream":t.headers["Content-Type"]="text/plain;charset=UTF-8");let i;try{i=await this._fetchType(t.url,{body:t.content,cache:"no-cache",credentials:t.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...t.headers},method:t.method,mode:"cors",redirect:"follow",signal:r.signal})}catch(u){throw e||(this._logger.log(U.Warning,`Error from HTTP request. ${u}.`),u)}finally{n&&clearTimeout(n),t.abortSignal&&(t.abortSignal.onabort=null)}if(!i.ok){let u=await yR(i,"text");throw new Pt(u||i.statusText,i.status)}let c=await yR(i,t.responseType);return new wa(i.status,i.statusText,c)}getCookieString(t){let r="";return We.isNode&&this._jar&&this._jar.getCookies(t,(e,n)=>r=n.join("; ")),r}}});var c_,gR=Pe(()=>{zo();Wc();Ur();Mt();c_=class extends vn{constructor(t){super(),this._logger=t}send(t){return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new ut):t.method?t.url?new Promise((r,e)=>{let n=new XMLHttpRequest;n.open(t.method,t.url,!0),n.withCredentials=t.withCredentials===void 0?!0:t.withCredentials,n.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.content===""&&(t.content=void 0),t.content&&(wr(t.content)?n.setRequestHeader("Content-Type","application/octet-stream"):n.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));let i=t.headers;i&&Object.keys(i).forEach(s=>{n.setRequestHeader(s,i[s])}),t.responseType&&(n.responseType=t.responseType),t.abortSignal&&(t.abortSignal.onabort=()=>{n.abort(),e(new ut)}),t.timeout&&(n.timeout=t.timeout),n.onload=()=>{t.abortSignal&&(t.abortSignal.onabort=null),n.status>=200&&n.status<300?r(new wa(n.status,n.statusText,n.response||n.responseText)):e(new Pt(n.response||n.responseText||n.statusText,n.status))},n.onerror=()=>{this._logger.log(U.Warning,`Error from HTTP request. ${n.status}: ${n.statusText}.`),e(new Pt(n.statusText,n.status))},n.ontimeout=()=>{this._logger.log(U.Warning,"Timeout from HTTP request."),e(new Hn)},n.send(t.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}});var u_,wR=Pe(()=>{zo();bR();Wc();Mt();gR();u_=class extends vn{constructor(t){if(super(),typeof fetch<"u"||We.isNode)this._httpClient=new a_(t);else if(typeof XMLHttpRequest<"u")this._httpClient=new c_(t);else throw new Error("No usable HttpClient found.")}send(t){return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new ut):t.method?t.url?this._httpClient.send(t):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(t){return this._httpClient.getCookieString(t)}}});var tr,Zg=Pe(()=>{tr=class o{static write(t){return`${t}${o.RecordSeparator}`}static parse(t){if(t[t.length-1]!==o.RecordSeparator)throw new Error("Message is incomplete.");let r=t.split(o.RecordSeparator);return r.pop(),r}};tr.RecordSeparatorCode=30;tr.RecordSeparator=String.fromCharCode(tr.RecordSeparatorCode)});var l_,ER=Pe(()=>{Zg();Mt();l_=class{writeHandshakeRequest(t){return tr.write(JSON.stringify(t))}parseHandshakeResponse(t){let r,e;if(wr(t)){let c=new Uint8Array(t),u=c.indexOf(tr.RecordSeparatorCode);if(u===-1)throw new Error("Message is incomplete.");let a=u+1;r=String.fromCharCode.apply(null,Array.prototype.slice.call(c.slice(0,a))),e=c.byteLength>a?c.slice(a).buffer:null}else{let c=t,u=c.indexOf(tr.RecordSeparator);if(u===-1)throw new Error("Message is incomplete.");let a=u+1;r=c.substring(0,a),e=c.length>a?c.substring(a):null}let n=tr.parse(r),i=JSON.parse(n[0]);if(i.type)throw new Error("Expected a handshake response from the server.");return[e,i]}}});var pe,d_=Pe(()=>{(function(o){o[o.Invocation=1]="Invocation",o[o.StreamItem=2]="StreamItem",o[o.Completion=3]="Completion",o[o.StreamInvocation=4]="StreamInvocation",o[o.CancelInvocation=5]="CancelInvocation",o[o.Ping=6]="Ping",o[o.Close=7]="Close",o[o.Ack=8]="Ack",o[o.Sequence=9]="Sequence"})(pe||(pe={}))});var f_,TR=Pe(()=>{Mt();f_=class{constructor(){this.observers=[]}next(t){for(let r of this.observers)r.next(t)}error(t){for(let r of this.observers)r.error&&r.error(t)}complete(){for(let t of this.observers)t.complete&&t.complete()}subscribe(t){return this.observers.push(t),new Uc(this,t)}}});var p_,Qg,SR=Pe(()=>{d_();Mt();p_=class{constructor(t,r,e){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=t,this._connection=r,this._bufferSize=e}async _send(t){let r=this._protocol.writeMessage(t),e=Promise.resolve();if(this._isInvocationMessage(t)){this._totalMessageCount++;let n=()=>{},i=()=>{};wr(r)?this._bufferedByteCount+=r.byteLength:this._bufferedByteCount+=r.length,this._bufferedByteCount>=this._bufferSize&&(e=new Promise((s,c)=>{n=s,i=c})),this._messages.push(new Qg(r,this._totalMessageCount,n,i))}try{this._reconnectInProgress||await this._connection.send(r)}catch{this._disconnected()}await e}_ack(t){let r=-1;for(let e=0;e<this._messages.length;e++){let n=this._messages[e];if(n._id<=t.sequenceId)r=e,wr(n._message)?this._bufferedByteCount-=n._message.byteLength:this._bufferedByteCount-=n._message.length,n._resolver();else if(this._bufferedByteCount<this._bufferSize)n._resolver();else break}r!==-1&&(this._messages=this._messages.slice(r+1))}_shouldProcessMessage(t){if(this._waitForSequenceMessage)return t.type!==pe.Sequence?!1:(this._waitForSequenceMessage=!1,!0);if(!this._isInvocationMessage(t))return!0;let r=this._nextReceivingSequenceId;return this._nextReceivingSequenceId++,r<=this._latestReceivedSequenceId?(r===this._latestReceivedSequenceId&&this._ackTimer(),!1):(this._latestReceivedSequenceId=r,this._ackTimer(),!0)}_resetSequence(t){if(t.sequenceId>this._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=t.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){let t=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:pe.Sequence,sequenceId:t}));let r=this._messages;for(let e of r)await this._connection.send(e._message);this._reconnectInProgress=!1}_dispose(t){t??(t=new Error("Unable to reconnect to server."));for(let r of this._messages)r._rejector(t)}_isInvocationMessage(t){switch(t.type){case pe.Invocation:case pe.StreamItem:case pe.Completion:case pe.StreamInvocation:case pe.CancelInvocation:return!0;case pe.Close:case pe.Sequence:case pe.Ping:case pe.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:pe.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}},Qg=class{constructor(t,r,e,n){this._message=t,this._id=r,this._resolver=e,this._rejector=n}}});var gX,wX,EX,Ae,Hc,ew=Pe(()=>{ER();zo();d_();Ur();TR();Mt();SR();gX=30*1e3,wX=15*1e3,EX=1e5;(function(o){o.Disconnected="Disconnected",o.Connecting="Connecting",o.Connected="Connected",o.Disconnecting="Disconnecting",o.Reconnecting="Reconnecting"})(Ae||(Ae={}));Hc=class o{static create(t,r,e,n,i,s,c){return new o(t,r,e,n,i,s,c)}constructor(t,r,e,n,i,s,c){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(U.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},De.isRequired(t,"connection"),De.isRequired(r,"logger"),De.isRequired(e,"protocol"),this.serverTimeoutInMilliseconds=i??gX,this.keepAliveIntervalInMilliseconds=s??wX,this._statefulReconnectBufferSize=c??EX,this._logger=r,this._protocol=e,this.connection=t,this._reconnectPolicy=n,this._handshakeProtocol=new l_,this.connection.onreceive=u=>this._processIncomingData(u),this.connection.onclose=u=>this._connectionClosed(u),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=Ae.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:pe.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(t){if(this._connectionState!==Ae.Disconnected&&this._connectionState!==Ae.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!t)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=t}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==Ae.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=Ae.Connecting,this._logger.log(U.Debug,"Starting HubConnection.");try{await this._startInternal(),We.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=Ae.Connected,this._connectionStarted=!0,this._logger.log(U.Debug,"HubConnection connected successfully.")}catch(t){return this._connectionState=Ae.Disconnected,this._logger.log(U.Debug,`HubConnection failed to start successfully because of error '${t}'.`),Promise.reject(t)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;let t=new Promise((r,e)=>{this._handshakeResolver=r,this._handshakeRejecter=e});await this.connection.start(this._protocol.transferFormat);try{let r=this._protocol.version;this.connection.features.reconnect||(r=1);let e={protocol:this._protocol.name,version:r};if(this._logger.log(U.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(e)),this._logger.log(U.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await t,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new p_(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(r){throw this._logger.log(U.Debug,`Hub handshake failed with error '${r}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(r),r}}async stop(){let t=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await t}catch{}}_stopInternal(t){if(this._connectionState===Ae.Disconnected)return this._logger.log(U.Debug,`Call to HubConnection.stop(${t}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===Ae.Disconnecting)return this._logger.log(U.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;let r=this._connectionState;return this._connectionState=Ae.Disconnecting,this._logger.log(U.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(U.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(r===Ae.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=t||new ut("The connection was stopped before the hub handshake could complete."),this.connection.stop(t))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(t,...r){let[e,n]=this._replaceStreamingParams(r),i=this._createStreamInvocation(t,r,n),s,c=new f_;return c.cancelCallback=()=>{let u=this._createCancelInvocation(i.invocationId);return delete this._callbacks[i.invocationId],s.then(()=>this._sendWithProtocol(u))},this._callbacks[i.invocationId]=(u,a)=>{if(a){c.error(a);return}else u&&(u.type===pe.Completion?u.error?c.error(new Error(u.error)):c.complete():c.next(u.item))},s=this._sendWithProtocol(i).catch(u=>{c.error(u),delete this._callbacks[i.invocationId]}),this._launchStreams(e,s),c}_sendMessage(t){return this._resetKeepAliveInterval(),this.connection.send(t)}_sendWithProtocol(t){return this._messageBuffer?this._messageBuffer._send(t):this._sendMessage(this._protocol.writeMessage(t))}send(t,...r){let[e,n]=this._replaceStreamingParams(r),i=this._sendWithProtocol(this._createInvocation(t,r,!0,n));return this._launchStreams(e,i),i}invoke(t,...r){let[e,n]=this._replaceStreamingParams(r),i=this._createInvocation(t,r,!1,n);return new Promise((c,u)=>{this._callbacks[i.invocationId]=(l,d)=>{if(d){u(d);return}else l&&(l.type===pe.Completion?l.error?u(new Error(l.error)):c(l.result):u(new Error(`Unexpected message type: ${l.type}`)))};let a=this._sendWithProtocol(i).catch(l=>{u(l),delete this._callbacks[i.invocationId]});this._launchStreams(e,a)})}on(t,r){!t||!r||(t=t.toLowerCase(),this._methods[t]||(this._methods[t]=[]),this._methods[t].indexOf(r)===-1&&this._methods[t].push(r))}off(t,r){if(!t)return;t=t.toLowerCase();let e=this._methods[t];if(e)if(r){let n=e.indexOf(r);n!==-1&&(e.splice(n,1),e.length===0&&delete this._methods[t])}else delete this._methods[t]}onclose(t){t&&this._closedCallbacks.push(t)}onreconnecting(t){t&&this._reconnectingCallbacks.push(t)}onreconnected(t){t&&this._reconnectedCallbacks.push(t)}_processIncomingData(t){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(t=this._processHandshakeResponse(t),this._receivedHandshakeResponse=!0),t){let r=this._protocol.parseMessages(t,this._logger);for(let e of r)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(e)))switch(e.type){case pe.Invocation:this._invokeClientMethod(e).catch(n=>{this._logger.log(U.Error,`Invoke client method threw error: ${Bc(n)}`)});break;case pe.StreamItem:case pe.Completion:{let n=this._callbacks[e.invocationId];if(n){e.type===pe.Completion&&delete this._callbacks[e.invocationId];try{n(e)}catch(i){this._logger.log(U.Error,`Stream callback threw error: ${Bc(i)}`)}}break}case pe.Ping:break;case pe.Close:{this._logger.log(U.Information,"Close message received from server.");let n=e.error?new Error("Server returned an error on close: "+e.error):void 0;e.allowReconnect===!0?this.connection.stop(n):this._stopPromise=this._stopInternal(n);break}case pe.Ack:this._messageBuffer&&this._messageBuffer._ack(e);break;case pe.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(e);break;default:this._logger.log(U.Warning,`Invalid message type: ${e.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(t){let r,e;try{[e,r]=this._handshakeProtocol.parseHandshakeResponse(t)}catch(n){let i="Error parsing handshake response: "+n;this._logger.log(U.Error,i);let s=new Error(i);throw this._handshakeRejecter(s),s}if(r.error){let n="Server returned handshake error: "+r.error;this._logger.log(U.Error,n);let i=new Error(n);throw this._handshakeRejecter(i),i}else this._logger.log(U.Debug,"Server handshake complete.");return this._handshakeResolver(),e}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this._pingServerHandle===void 0)){let t=this._nextKeepAlive-new Date().getTime();t<0&&(t=0),this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===Ae.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},t)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(t){let r=t.target.toLowerCase(),e=this._methods[r];if(!e){this._logger.log(U.Warning,`No client method with the name '${r}' found.`),t.invocationId&&(this._logger.log(U.Warning,`No result given for '${r}' method and invocation ID '${t.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(t.invocationId,"Client didn't provide a result.",null)));return}let n=e.slice(),i=!!t.invocationId,s,c,u;for(let a of n)try{let l=s;s=await a.apply(this,t.arguments),i&&s&&l&&(this._logger.log(U.Error,`Multiple results provided for '${r}'. Sending error to server.`),u=this._createCompletionMessage(t.invocationId,"Client provided multiple results.",null)),c=void 0}catch(l){c=l,this._logger.log(U.Error,`A callback for the method '${r}' threw error '${l}'.`)}u?await this._sendWithProtocol(u):i?(c?u=this._createCompletionMessage(t.invocationId,`${c}`,null):s!==void 0?u=this._createCompletionMessage(t.invocationId,null,s):(this._logger.log(U.Warning,`No result given for '${r}' method and invocation ID '${t.invocationId}'.`),u=this._createCompletionMessage(t.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(u)):s&&this._logger.log(U.Error,`Result given for '${r}' method but server is not expecting a result.`)}_connectionClosed(t){this._logger.log(U.Debug,`HubConnection.connectionClosed(${t}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||t||new ut("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(t||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===Ae.Disconnecting?this._completeClose(t):this._connectionState===Ae.Connected&&this._reconnectPolicy?this._reconnect(t):this._connectionState===Ae.Connected&&this._completeClose(t)}_completeClose(t){if(this._connectionStarted){this._connectionState=Ae.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(t??new Error("Connection closed.")),this._messageBuffer=void 0),We.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(r=>r.apply(this,[t]))}catch(r){this._logger.log(U.Error,`An onclose callback called with error '${t}' threw error '${r}'.`)}}}async _reconnect(t){let r=Date.now(),e=0,n=t!==void 0?t:new Error("Attempting to reconnect due to a unknown error."),i=this._getNextRetryDelay(e++,0,n);if(i===null){this._logger.log(U.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(t);return}if(this._connectionState=Ae.Reconnecting,t?this._logger.log(U.Information,`Connection reconnecting because of error '${t}'.`):this._logger.log(U.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(s=>s.apply(this,[t]))}catch(s){this._logger.log(U.Error,`An onreconnecting callback called with error '${t}' threw error '${s}'.`)}if(this._connectionState!==Ae.Reconnecting){this._logger.log(U.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;i!==null;){if(this._logger.log(U.Information,`Reconnect attempt number ${e} will start in ${i} ms.`),await new Promise(s=>{this._reconnectDelayHandle=setTimeout(s,i)}),this._reconnectDelayHandle=void 0,this._connectionState!==Ae.Reconnecting){this._logger.log(U.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=Ae.Connected,this._logger.log(U.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(s=>s.apply(this,[this.connection.connectionId]))}catch(s){this._logger.log(U.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${s}'.`)}return}catch(s){if(this._logger.log(U.Information,`Reconnect attempt failed because of error '${s}'.`),this._connectionState!==Ae.Reconnecting){this._logger.log(U.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===Ae.Disconnecting&&this._completeClose();return}n=s instanceof Error?s:new Error(s.toString()),i=this._getNextRetryDelay(e++,Date.now()-r,n)}}this._logger.log(U.Information,`Reconnect retries have been exhausted after ${Date.now()-r} ms and ${e} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(t,r,e){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:r,previousRetryCount:t,retryReason:e})}catch(n){return this._logger.log(U.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${t}, ${r}) threw error '${n}'.`),null}}_cancelCallbacksWithError(t){let r=this._callbacks;this._callbacks={},Object.keys(r).forEach(e=>{let n=r[e];try{n(null,t)}catch(i){this._logger.log(U.Error,`Stream 'error' callback called with '${t}' threw error: ${Bc(i)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(t,r,e,n){if(e)return n.length!==0?{arguments:r,streamIds:n,target:t,type:pe.Invocation}:{arguments:r,target:t,type:pe.Invocation};{let i=this._invocationId;return this._invocationId++,n.length!==0?{arguments:r,invocationId:i.toString(),streamIds:n,target:t,type:pe.Invocation}:{arguments:r,invocationId:i.toString(),target:t,type:pe.Invocation}}}_launchStreams(t,r){if(t.length!==0){r||(r=Promise.resolve());for(let e in t)t[e].subscribe({complete:()=>{r=r.then(()=>this._sendWithProtocol(this._createCompletionMessage(e)))},error:n=>{let i;n instanceof Error?i=n.message:n&&n.toString?i=n.toString():i="Unknown error",r=r.then(()=>this._sendWithProtocol(this._createCompletionMessage(e,i)))},next:n=>{r=r.then(()=>this._sendWithProtocol(this._createStreamItemMessage(e,n)))}})}}_replaceStreamingParams(t){let r=[],e=[];for(let n=0;n<t.length;n++){let i=t[n];if(this._isObservable(i)){let s=this._invocationId;this._invocationId++,r[s]=i,e.push(s.toString()),t.splice(n,1)}}return[r,e]}_isObservable(t){return t&&t.subscribe&&typeof t.subscribe=="function"}_createStreamInvocation(t,r,e){let n=this._invocationId;return this._invocationId++,e.length!==0?{arguments:r,invocationId:n.toString(),streamIds:e,target:t,type:pe.StreamInvocation}:{arguments:r,invocationId:n.toString(),target:t,type:pe.StreamInvocation}}_createCancelInvocation(t){return{invocationId:t,type:pe.CancelInvocation}}_createStreamItemMessage(t,r){return{invocationId:t,item:r,type:pe.StreamItem}}_createCompletionMessage(t,r,e){return r?{error:r,invocationId:t,type:pe.Completion}:{invocationId:t,result:e,type:pe.Completion}}_createCloseMessage(){return{type:pe.Close}}}});var TX,Vc,OR=Pe(()=>{TX=[0,2e3,1e4,3e4,null],Vc=class{constructor(t){this._retryDelays=t!==void 0?[...t,null]:TX}nextRetryDelayInMilliseconds(t){return this._retryDelays[t.previousRetryCount]}}});var Br,tw=Pe(()=>{Br=class{};Br.Authorization="Authorization";Br.Cookie="Cookie"});var h_,kR=Pe(()=>{tw();Wc();h_=class extends vn{constructor(t,r){super(),this._innerClient=t,this._accessTokenFactory=r}async send(t){let r=!0;this._accessTokenFactory&&(!this._accessToken||t.url&&t.url.indexOf("/negotiate?")>0)&&(r=!1,this._accessToken=await this._accessTokenFactory()),this._setAuthorizationHeader(t);let e=await this._innerClient.send(t);return r&&e.statusCode===401&&this._accessTokenFactory?(this._accessToken=await this._accessTokenFactory(),this._setAuthorizationHeader(t),await this._innerClient.send(t)):e}_setAuthorizationHeader(t){t.headers||(t.headers={}),this._accessToken?t.headers[Br.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&t.headers[Br.Authorization]&&delete t.headers[Br.Authorization]}getCookieString(t){return this._innerClient.getCookieString(t)}}});var ot,nt,Ta=Pe(()=>{(function(o){o[o.None=0]="None",o[o.WebSockets=1]="WebSockets",o[o.ServerSentEvents=2]="ServerSentEvents",o[o.LongPolling=4]="LongPolling"})(ot||(ot={}));(function(o){o[o.Text=1]="Text",o[o.Binary=2]="Binary"})(nt||(nt={}))});var __,PR=Pe(()=>{__=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}}});var zc,AR=Pe(()=>{PR();zo();Ur();Ta();Mt();zc=class{get pollAborted(){return this._pollAbort.aborted}constructor(t,r,e){this._httpClient=t,this._logger=r,this._pollAbort=new __,this._options=e,this._running=!1,this.onreceive=null,this.onclose=null}async connect(t,r){if(De.isRequired(t,"url"),De.isRequired(r,"transferFormat"),De.isIn(r,nt,"transferFormat"),this._url=t,this._logger.log(U.Trace,"(LongPolling transport) Connecting."),r===nt.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");let[e,n]=$r(),i={[e]:n,...this._options.headers},s={abortSignal:this._pollAbort.signal,headers:i,timeout:1e5,withCredentials:this._options.withCredentials};r===nt.Binary&&(s.responseType="arraybuffer");let c=`${t}&_=${Date.now()}`;this._logger.log(U.Trace,`(LongPolling transport) polling: ${c}.`);let u=await this._httpClient.get(c,s);u.statusCode!==200?(this._logger.log(U.Error,`(LongPolling transport) Unexpected response code: ${u.statusCode}.`),this._closeError=new Pt(u.statusText||"",u.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,s)}async _poll(t,r){try{for(;this._running;)try{let e=`${t}&_=${Date.now()}`;this._logger.log(U.Trace,`(LongPolling transport) polling: ${e}.`);let n=await this._httpClient.get(e,r);n.statusCode===204?(this._logger.log(U.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):n.statusCode!==200?(this._logger.log(U.Error,`(LongPolling transport) Unexpected response code: ${n.statusCode}.`),this._closeError=new Pt(n.statusText||"",n.statusCode),this._running=!1):n.content?(this._logger.log(U.Trace,`(LongPolling transport) data received. ${Vn(n.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(n.content)):this._logger.log(U.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(e){this._running?e instanceof Hn?this._logger.log(U.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=e,this._running=!1):this._logger.log(U.Trace,`(LongPolling transport) Poll errored after shutdown: ${e.message}`)}}finally{this._logger.log(U.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(t){return this._running?$c(this._logger,"LongPolling",this._httpClient,this._url,t,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(U.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(U.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);let t={},[r,e]=$r();t[r]=e;let n={headers:{...t,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials},i;try{await this._httpClient.delete(this._url,n)}catch(s){i=s}i?i instanceof Pt&&(i.statusCode===404?this._logger.log(U.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log(U.Trace,`(LongPolling transport) Error sending a DELETE request: ${i}`)):this._logger.log(U.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log(U.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let t="(LongPolling transport) Firing onclose event.";this._closeError&&(t+=" Error: "+this._closeError),this._logger.log(U.Trace,t),this.onclose(this._closeError)}}}});var m_,IR=Pe(()=>{Ur();Ta();Mt();m_=class{constructor(t,r,e,n){this._httpClient=t,this._accessToken=r,this._logger=e,this._options=n,this.onreceive=null,this.onclose=null}async connect(t,r){return De.isRequired(t,"url"),De.isRequired(r,"transferFormat"),De.isIn(r,nt,"transferFormat"),this._logger.log(U.Trace,"(SSE transport) Connecting."),this._url=t,this._accessToken&&(t+=(t.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((e,n)=>{let i=!1;if(r!==nt.Text){n(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let s;if(We.isBrowser||We.isWebWorker)s=new this._options.EventSource(t,{withCredentials:this._options.withCredentials});else{let c=this._httpClient.getCookieString(t),u={};u.Cookie=c;let[a,l]=$r();u[a]=l,s=new this._options.EventSource(t,{withCredentials:this._options.withCredentials,headers:{...u,...this._options.headers}})}try{s.onmessage=c=>{if(this.onreceive)try{this._logger.log(U.Trace,`(SSE transport) data received. ${Vn(c.data,this._options.logMessageContent)}.`),this.onreceive(c.data)}catch(u){this._close(u);return}},s.onerror=c=>{i?this._close():n(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},s.onopen=()=>{this._logger.log(U.Information,`SSE connected to ${this._url}`),this._eventSource=s,i=!0,e()}}catch(c){n(c);return}})}async send(t){return this._eventSource?$c(this._logger,"SSE",this._httpClient,this._url,t,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(t){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(t))}}});var v_,xR=Pe(()=>{tw();Ur();Ta();Mt();v_=class{constructor(t,r,e,n,i,s){this._logger=e,this._accessTokenFactory=r,this._logMessageContent=n,this._webSocketConstructor=i,this._httpClient=t,this.onreceive=null,this.onclose=null,this._headers=s}async connect(t,r){De.isRequired(t,"url"),De.isRequired(r,"transferFormat"),De.isIn(r,nt,"transferFormat"),this._logger.log(U.Trace,"(WebSockets transport) Connecting.");let e;return this._accessTokenFactory&&(e=await this._accessTokenFactory()),new Promise((n,i)=>{t=t.replace(/^http/,"ws");let s,c=this._httpClient.getCookieString(t),u=!1;if(We.isNode||We.isReactNative){let a={},[l,d]=$r();a[l]=d,e&&(a[Br.Authorization]=`Bearer ${e}`),c&&(a[Br.Cookie]=c),s=new this._webSocketConstructor(t,void 0,{headers:{...a,...this._headers}})}else e&&(t+=(t.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(e)}`);s||(s=new this._webSocketConstructor(t)),r===nt.Binary&&(s.binaryType="arraybuffer"),s.onopen=a=>{this._logger.log(U.Information,`WebSocket connected to ${t}.`),this._webSocket=s,u=!0,n()},s.onerror=a=>{let l=null;typeof ErrorEvent<"u"&&a instanceof ErrorEvent?l=a.error:l="There was an error with the transport",this._logger.log(U.Information,`(WebSockets transport) ${l}.`)},s.onmessage=a=>{if(this._logger.log(U.Trace,`(WebSockets transport) data received. ${Vn(a.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(a.data)}catch(l){this._close(l);return}},s.onclose=a=>{if(u)this._close(a);else{let l=null;typeof ErrorEvent<"u"&&a instanceof ErrorEvent?l=a.error:l="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",i(new Error(l))}}})}send(t){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(U.Trace,`(WebSockets transport) sending data. ${Vn(t,this._logMessageContent)}.`),this._webSocket.send(t),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(t){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(U.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(t)&&(t.wasClean===!1||t.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${t.code} (${t.reason||"no reason given"}).`)):t instanceof Error?this.onclose(t):this.onclose())}_isCloseEvent(t){return t&&typeof t.wasClean=="boolean"&&typeof t.code=="number"}}});function SX(o,t){return!o||(t&o)!==0}var RR,y_,rw,Sa,MR=Pe(()=>{kR();wR();zo();Ur();Ta();AR();IR();Mt();xR();RR=100,y_=class{constructor(t,r={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,De.isRequired(t,"url"),this._logger=Gg(r.logger),this.baseUrl=this._resolveUrl(t),r=r||{},r.logMessageContent=r.logMessageContent===void 0?!1:r.logMessageContent,typeof r.withCredentials=="boolean"||r.withCredentials===void 0)r.withCredentials=r.withCredentials===void 0?!0:r.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");r.timeout=r.timeout===void 0?100*1e3:r.timeout;let e=null,n=null;if(We.isNode&&typeof Ue<"u"){let i=typeof __webpack_require__=="function"?__non_webpack_require__:Ue;e=i("ws"),n=i("eventsource")}!We.isNode&&typeof WebSocket<"u"&&!r.WebSocket?r.WebSocket=WebSocket:We.isNode&&!r.WebSocket&&e&&(r.WebSocket=e),!We.isNode&&typeof EventSource<"u"&&!r.EventSource?r.EventSource=EventSource:We.isNode&&!r.EventSource&&typeof n<"u"&&(r.EventSource=n),this._httpClient=new h_(r.httpClient||new u_(this._logger),r.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=r,this.onreceive=null,this.onclose=null}async start(t){if(t=t||nt.Binary,De.isIn(t,nt,"transferFormat"),this._logger.log(U.Debug,`Starting connection with transfer format '${nt[t]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(t),await this._startInternalPromise,this._connectionState==="Disconnecting"){let r="Failed to start the HttpConnection before stop() was called.";return this._logger.log(U.Error,r),await this._stopPromise,Promise.reject(new ut(r))}else if(this._connectionState!=="Connected"){let r="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(U.Error,r),Promise.reject(new ut(r))}this._connectionStarted=!0}send(t){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new rw(this.transport)),this._sendQueue.send(t))}async stop(t){if(this._connectionState==="Disconnected")return this._logger.log(U.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log(U.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(r=>{this._stopPromiseResolver=r}),await this._stopInternal(t),await this._stopPromise}async _stopInternal(t){this._stopError=t;try{await this._startInternalPromise}catch{}if(this.transport){try{await this.transport.stop()}catch(r){this._logger.log(U.Error,`HttpConnection.transport.stop() threw error '${r}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(U.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(t){let r=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===ot.WebSockets)this.transport=this._constructTransport(ot.WebSockets),await this._startTransport(r,t);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let e=null,n=0;do{if(e=await this._getNegotiationResponse(r),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new ut("The connection was stopped during negotiation.");if(e.error)throw new Error(e.error);if(e.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(e.url&&(r=e.url),e.accessToken){let i=e.accessToken;this._accessTokenFactory=()=>i,this._httpClient._accessToken=i,this._httpClient._accessTokenFactory=void 0}n++}while(e.url&&n<RR);if(n===RR&&e.url)throw new Error("Negotiate redirection limit exceeded.");await this._createTransport(r,this._options.transport,e,t)}this.transport instanceof zc&&(this.features.inherentKeepAlive=!0),this._connectionState==="Connecting"&&(this._logger.log(U.Debug,"The HttpConnection connected successfully."),this._connectionState="Connected")}catch(e){return this._logger.log(U.Error,"Failed to start the connection: "+e),this._connectionState="Disconnected",this.transport=void 0,this._stopPromiseResolver(),Promise.reject(e)}}async _getNegotiationResponse(t){let r={},[e,n]=$r();r[e]=n;let i=this._resolveNegotiateUrl(t);this._logger.log(U.Debug,`Sending negotiation request: ${i}.`);try{let s=await this._httpClient.post(i,{content:"",headers:{...r,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials});if(s.statusCode!==200)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${s.statusCode}'`));let c=JSON.parse(s.content);return(!c.negotiateVersion||c.negotiateVersion<1)&&(c.connectionToken=c.connectionId),c.useStatefulReconnect&&this._options._useStatefulReconnect!==!0?Promise.reject(new Fc("Client didn't negotiate Stateful Reconnect but the server did.")):c}catch(s){let c="Failed to complete negotiation with the server: "+s;return s instanceof Pt&&s.statusCode===404&&(c=c+" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this._logger.log(U.Error,c),Promise.reject(new Fc(c))}}_createConnectUrl(t,r){return r?t+(t.indexOf("?")===-1?"?":"&")+`id=${r}`:t}async _createTransport(t,r,e,n){let i=this._createConnectUrl(t,e.connectionToken);if(this._isITransport(r)){this._logger.log(U.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=r,await this._startTransport(i,n),this.connectionId=e.connectionId;return}let s=[],c=e.availableTransports||[],u=e;for(let a of c){let l=this._resolveTransportOrError(a,r,n,u?.useStatefulReconnect===!0);if(l instanceof Error)s.push(`${a.transport} failed:`),s.push(l);else if(this._isITransport(l)){if(this.transport=l,!u){try{u=await this._getNegotiationResponse(t)}catch(d){return Promise.reject(d)}i=this._createConnectUrl(t,u.connectionToken)}try{await this._startTransport(i,n),this.connectionId=u.connectionId;return}catch(d){if(this._logger.log(U.Error,`Failed to start the transport '${a.transport}': ${d}`),u=void 0,s.push(new o_(`${a.transport} failed: ${d}`,ot[a.transport])),this._connectionState!=="Connecting"){let f="Failed to select transport before stop() was called.";return this._logger.log(U.Debug,f),Promise.reject(new ut(f))}}}}return s.length>0?Promise.reject(new i_(`Unable to connect to the server with any of the available transports. ${s.join(" ")}`,s)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(t){switch(t){case ot.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new v_(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case ot.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new m_(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case ot.LongPolling:return new zc(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${t}.`)}}_startTransport(t,r){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async e=>{let n=!1;if(this.features.reconnect)try{this.features.disconnected(),await this.transport.connect(t,r),await this.features.resend()}catch{n=!0}else{this._stopConnection(e);return}n&&this._stopConnection(e)}:this.transport.onclose=e=>this._stopConnection(e),this.transport.connect(t,r)}_resolveTransportOrError(t,r,e,n){let i=ot[t.transport];if(i==null)return this._logger.log(U.Debug,`Skipping transport '${t.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${t.transport}' because it is not supported by this client.`);if(SX(r,i))if(t.transferFormats.map(c=>nt[c]).indexOf(e)>=0){if(i===ot.WebSockets&&!this._options.WebSocket||i===ot.ServerSentEvents&&!this._options.EventSource)return this._logger.log(U.Debug,`Skipping transport '${ot[i]}' because it is not supported in your environment.'`),new r_(`'${ot[i]}' is not supported in your environment.`,i);this._logger.log(U.Debug,`Selecting transport '${ot[i]}'.`);try{return this.features.reconnect=i===ot.WebSockets?n:void 0,this._constructTransport(i)}catch(c){return c}}else return this._logger.log(U.Debug,`Skipping transport '${ot[i]}' because it does not support the requested transfer format '${nt[e]}'.`),new Error(`'${ot[i]}' does not support ${nt[e]}.`);else return this._logger.log(U.Debug,`Skipping transport '${ot[i]}' because it was disabled by the client.`),new n_(`'${ot[i]}' is disabled by the client.`,i)}_isITransport(t){return t&&typeof t=="object"&&"connect"in t}_stopConnection(t){if(this._logger.log(U.Debug,`HttpConnection.stopConnection(${t}) called while in state ${this._connectionState}.`),this.transport=void 0,t=this._stopError||t,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log(U.Debug,`Call to HttpConnection.stopConnection(${t}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log(U.Warning,`Call to HttpConnection.stopConnection(${t}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${t}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),t?this._logger.log(U.Error,`Connection disconnected with error '${t}'.`):this._logger.log(U.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(r=>{this._logger.log(U.Error,`TransportSendQueue.stop() threw error '${r}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(t)}catch(r){this._logger.log(U.Error,`HttpConnection.onclose(${t}) threw error '${r}'.`)}}}_resolveUrl(t){if(t.lastIndexOf("https://",0)===0||t.lastIndexOf("http://",0)===0)return t;if(!We.isBrowser)throw new Error(`Cannot resolve '${t}'.`);let r=window.document.createElement("a");return r.href=t,this._logger.log(U.Information,`Normalizing '${t}' to '${r.href}'.`),r.href}_resolveNegotiateUrl(t){let r=new URL(t);r.pathname.endsWith("/")?r.pathname+="negotiate":r.pathname+="/negotiate";let e=new URLSearchParams(r.searchParams);return e.has("negotiateVersion")||e.append("negotiateVersion",this._negotiateVersion.toString()),e.has("useStatefulReconnect")?e.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&e.append("useStatefulReconnect","true"),r.search=e.toString(),r.toString()}};rw=class o{constructor(t){this._transport=t,this._buffer=[],this._executing=!0,this._sendBufferedData=new Sa,this._transportResult=new Sa,this._sendLoopPromise=this._sendLoop()}send(t){return this._bufferData(t),this._transportResult||(this._transportResult=new Sa),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(t){if(this._buffer.length&&typeof this._buffer[0]!=typeof t)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof t}`);this._buffer.push(t),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new Sa;let t=this._transportResult;this._transportResult=void 0;let r=typeof this._buffer[0]=="string"?this._buffer.join(""):o._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(r),t.resolve()}catch(e){t.reject(e)}}}static _concatBuffers(t){let r=t.map(i=>i.byteLength).reduce((i,s)=>i+s),e=new Uint8Array(r),n=0;for(let i of t)e.set(new Uint8Array(i),n),n+=i.byteLength;return e.buffer}},Sa=class{constructor(){this.promise=new Promise((t,r)=>[this._resolver,this._rejecter]=[t,r])}resolve(){this._resolver()}reject(t){this._rejecter(t)}}});var OX,b_,CR=Pe(()=>{d_();Ur();Ta();s_();Zg();OX="json",b_=class{constructor(){this.name=OX,this.version=2,this.transferFormat=nt.Text}parseMessages(t,r){if(typeof t!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!t)return[];r===null&&(r=yn.instance);let e=tr.parse(t),n=[];for(let i of e){let s=JSON.parse(i);if(typeof s.type!="number")throw new Error("Invalid payload.");switch(s.type){case pe.Invocation:this._isInvocationMessage(s);break;case pe.StreamItem:this._isStreamItemMessage(s);break;case pe.Completion:this._isCompletionMessage(s);break;case pe.Ping:break;case pe.Close:break;case pe.Ack:this._isAckMessage(s);break;case pe.Sequence:this._isSequenceMessage(s);break;default:r.log(U.Information,"Unknown message type '"+s.type+"' ignored.");continue}n.push(s)}return n}writeMessage(t){return tr.write(JSON.stringify(t))}_isInvocationMessage(t){this._assertNotEmptyString(t.target,"Invalid payload for Invocation message."),t.invocationId!==void 0&&this._assertNotEmptyString(t.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(t){if(this._assertNotEmptyString(t.invocationId,"Invalid payload for StreamItem message."),t.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(t){if(t.result&&t.error)throw new Error("Invalid payload for Completion message.");!t.result&&t.error&&this._assertNotEmptyString(t.error,"Invalid payload for Completion message."),this._assertNotEmptyString(t.invocationId,"Invalid payload for Completion message.")}_isAckMessage(t){if(typeof t.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(t){if(typeof t.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(t,r){if(typeof t!="string"||t==="")throw new Error(r)}}});function PX(o){let t=kX[o.toLowerCase()];if(typeof t<"u")return t;throw new Error(`Unknown log level: ${o}`)}function AX(o){return o.log!==void 0}var kX,Yc,jR=Pe(()=>{OR();MR();ew();Ur();CR();s_();Mt();kX={trace:U.Trace,debug:U.Debug,info:U.Information,information:U.Information,warn:U.Warning,warning:U.Warning,error:U.Error,critical:U.Critical,none:U.None};Yc=class{configureLogging(t){if(De.isRequired(t,"logging"),AX(t))this.logger=t;else if(typeof t=="string"){let r=PX(t);this.logger=new Yo(r)}else this.logger=new Yo(t);return this}withUrl(t,r){return De.isRequired(t,"url"),De.isNotEmpty(t,"url"),this.url=t,typeof r=="object"?this.httpConnectionOptions={...this.httpConnectionOptions,...r}:this.httpConnectionOptions={...this.httpConnectionOptions,transport:r},this}withHubProtocol(t){return De.isRequired(t,"protocol"),this.protocol=t,this}withAutomaticReconnect(t){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return t?Array.isArray(t)?this.reconnectPolicy=new Vc(t):this.reconnectPolicy=t:this.reconnectPolicy=new Vc,this}withServerTimeout(t){return De.isRequired(t,"milliseconds"),this._serverTimeoutInMilliseconds=t,this}withKeepAliveInterval(t){return De.isRequired(t,"milliseconds"),this._keepAliveIntervalInMilliseconds=t,this}withStatefulReconnect(t){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=t?.bufferSize,this}build(){let t=this.httpConnectionOptions||{};if(t.logger===void 0&&(t.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");let r=new y_(this.url,t);return Hc.create(r,this.logger||yn.instance,this.protocol||new b_,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}});var nw=Pe(()=>{zo();ew();jR();Mt()});var NR=O(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.LogLevel=void 0;var xX;(function(o){o[o.Trace=0]="Trace",o[o.Debug=1]="Debug",o[o.Information=2]="Information",o[o.Warning=3]="Warning",o[o.Error=4]="Error",o[o.Critical=5]="Critical",o[o.None=6]="None"})(xX=Kc.LogLevel||(Kc.LogLevel={}))});var DR=O(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0});g_.NullLogger=void 0;var Jc=class{constructor(){}log(t,r){}};g_.NullLogger=Jc;Jc.instance=new Jc});var UR=O(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.getGlobalThis=Ie.getErrorString=Ie.constructUserAgent=Ie.getUserAgentHeader=Ie.ConsoleLogger=Ie.SubjectSubscription=Ie.createLogger=Ie.sendMessage=Ie.isArrayBuffer=Ie.formatArrayBuffer=Ie.getDataDetail=Ie.Platform=Ie.Arg=Ie.VERSION=void 0;var Ko=NR(),RX=DR();Ie.VERSION="8.0.7";var ow=class{static isRequired(t,r){if(t==null)throw new Error(`The '${r}' argument is required.`)}static isNotEmpty(t,r){if(!t||t.match(/^\s*$/))throw new Error(`The '${r}' argument should not be empty.`)}static isIn(t,r,e){if(!(t in r))throw new Error(`Unknown ${e} value: ${t}.`)}};Ie.Arg=ow;var zi=class o{static get isBrowser(){return!o.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!o.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!o.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}};Ie.Platform=zi;function LR(o,t){let r="";return sw(o)?(r=`Binary data of length ${o.byteLength}`,t&&(r+=`. Content: '${qR(o)}'`)):typeof o=="string"&&(r=`String data of length ${o.length}`,t&&(r+=`. Content: '${o}'`)),r}Ie.getDataDetail=LR;function qR(o){let t=new Uint8Array(o),r="";return t.forEach(e=>{let n=e<16?"0":"";r+=`0x${n}${e.toString(16)} `}),r.substr(0,r.length-1)}Ie.formatArrayBuffer=qR;function sw(o){return o&&typeof ArrayBuffer<"u"&&(o instanceof ArrayBuffer||o.constructor&&o.constructor.name==="ArrayBuffer")}Ie.isArrayBuffer=sw;async function MX(o,t,r,e,n,i){let s={},[c,u]=FR();s[c]=u,o.log(Ko.LogLevel.Trace,`(${t} transport) sending data. ${LR(n,i.logMessageContent)}.`);let a=sw(n)?"arraybuffer":"text",l=await r.post(e,{content:n,headers:{...s,...i.headers},responseType:a,timeout:i.timeout,withCredentials:i.withCredentials});o.log(Ko.LogLevel.Trace,`(${t} transport) request complete. Response status: ${l.statusCode}.`)}Ie.sendMessage=MX;function CX(o){return o===void 0?new Gc(Ko.LogLevel.Information):o===null?RX.NullLogger.instance:o.log!==void 0?o:new Gc(o)}Ie.createLogger=CX;var iw=class{constructor(t,r){this._subject=t,this._observer=r}dispose(){let t=this._subject.observers.indexOf(this._observer);t>-1&&this._subject.observers.splice(t,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(r=>{})}};Ie.SubjectSubscription=iw;var Gc=class{constructor(t){this._minLevel=t,this.out=console}log(t,r){if(t>=this._minLevel){let e=`[${new Date().toISOString()}] ${Ko.LogLevel[t]}: ${r}`;switch(t){case Ko.LogLevel.Critical:case Ko.LogLevel.Error:this.out.error(e);break;case Ko.LogLevel.Warning:this.out.warn(e);break;case Ko.LogLevel.Information:this.out.info(e);break;default:this.out.log(e);break}}}};Ie.ConsoleLogger=Gc;function FR(){let o="X-SignalR-User-Agent";return zi.isNode&&(o="User-Agent"),[o,WR(Ie.VERSION,jX(),DX(),NX())]}Ie.getUserAgentHeader=FR;function WR(o,t,r,e){let n="Microsoft SignalR/",i=o.split(".");return n+=`${i[0]}.${i[1]}`,n+=` (${o}; `,t&&t!==""?n+=`${t}; `:n+="Unknown OS; ",n+=`${r}`,e?n+=`; ${e}`:n+="; Unknown Runtime Version",n+=")",n}Ie.constructUserAgent=WR;function jX(){if(zi.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function NX(){if(zi.isNode)return process.versions.node}function DX(){return zi.isNode?"NodeJS":"Browser"}function LX(o){return o.stack?o.stack:o.message?o.message:`${o}`}Ie.getErrorString=LX;function qX(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}Ie.getGlobalThis=qX});function BR(o){o&&Object.defineProperty(o,"isNode",{get:()=>!1,configurable:!0})}var HR,$R,FX,VR=Pe(async()=>{nw();HR=Ge(UR()),$R="8.0.7";if(Ea!==$R)throw new Error(`signalr-deno-platform: @microsoft/signalr is ${Ea}, expected ${$R}. The debug hub forces SignalR's browser path under deno by overriding the internal Platform.isNode getter; re-verify that override and the internal Utils import paths against the new version, then update EXPECTED_SIGNALR_VERSION.`);FX=typeof globalThis.Deno<"u";if(FX){BR(HR.Platform);try{let o=await Promise.resolve().then(()=>(Mt(),vR));BR(o.Platform)}catch{}}});function w_(o){if(typeof o=="number"){globalThis.Deno?.unrefTimer?.(o);return}o.unref?.()}var aw=Pe(()=>{});var zR={};$m(zR,{SignalRDebugConnection:()=>cw});var cw,YR=Pe(async()=>{await VR();nw();aw();Yg();cw=class o{static BUFFER_BYTE_CAP=32*1024*1024;static COMMAND_DEDUP_CAP=256;static STOP_START_WAIT_MS=2e3;static DEBUG_HUB_MAX_RECEIVE_BYTES=512*1024;static WIRE_EXPANSION_FACTOR=4;static WIRE_SAFETY_FRACTION=.75;static MAX_MESSAGE_SIZE_CHARS=Math.floor(o.DEBUG_HUB_MAX_RECEIVE_BYTES*o.WIRE_SAFETY_FRACTION/o.WIRE_EXPANSION_FACTOR);static MAX_SEND_ATTEMPTS=4;static RETRY_BACKSTOP_ATTEMPTS=25;static RETRY_DELAY_MS=250;connection=null;buffer=[];bufferBytes=0;totalDropped=0;totalSendFailureDrops=0;chunkIdPrefix=crypto.randomUUID();chunkGroupCounter=0;chunkingEnabled=!1;currentFlush=null;startPromise=null;stopping=!1;commandHandlers=new Map;peerDisconnectedHandler=null;seenCommandIds=new Map;hubUrl;accessTokenFactory;connectionFactory;retryDelayMs;constructor(t,r,e=o.defaultConnectionFactory,n=o.RETRY_DELAY_MS){this.hubUrl=t,this.accessTokenFactory=r,this.connectionFactory=e,this.retryDelayMs=n}static defaultConnectionFactory(t,r){return new Yc().withUrl(t,{accessTokenFactory:r}).withAutomaticReconnect().build()}onCommand(t,r){if(this.connection)throw new Error(`onCommand('${t}') called after start(); register handlers before start()`);this.commandHandlers.set(t,r)}onPeerDisconnected(t){if(this.connection)throw new Error("onPeerDisconnected called after start(); register the handler before start()");this.peerDisconnectedHandler=t}invokePeerDisconnected(){let t=this.peerDisconnectedHandler;if(t)try{t()}catch(r){console.error("SignalRDebugConnection: peer-disconnected handler threw",r)}}dispatchCommand(t,r,e){let{parsed:n,parseFailed:i}=o.parseJson(t,r);i||this.isDuplicateCommand(t,n)||o.invokeHandler(t,n,e)}isDuplicateCommand(t,r){if(!r||typeof r!="object")return!1;let e=r.__commandId;if(typeof e!="string"||e.length===0)return!1;if(this.seenCommandIds.has(e))return console.debug(`SignalRDebugConnection: dropping duplicate ${t} command (__commandId=${e})`),!0;if(this.seenCommandIds.set(e,!0),this.seenCommandIds.size>o.COMMAND_DEDUP_CAP){let n=this.seenCommandIds.keys().next().value;n!==void 0&&this.seenCommandIds.delete(n)}return!1}static parseJson(t,r){let e;if(typeof r=="string"&&r.length>0)try{e=JSON.parse(r)}catch(n){return console.error(`SignalRDebugConnection: failed to parse JSON payload for inbound command ${t}; dropping`,n),{parsed:void 0,parseFailed:!0}}return{parsed:e,parseFailed:!1}}static invokeHandler(t,r,e){try{e(r)}catch(n){console.error(`SignalRDebugConnection: handler for ${t} threw`,n)}}start(){return this.startPromise?this.startPromise:(this.stopping=!1,this.startPromise=this.doStart(),this.startPromise)}async doStart(){let t=this.connectionFactory(this.hubUrl,this.accessTokenFactory);for(let[r,e]of this.commandHandlers)t.on(r,n=>{this.dispatchCommand(r,n,e)});this.peerDisconnectedHandler&&t.on(dR,()=>{this.invokePeerDisconnected()}),t.onreconnected(()=>{this.flushBuffer()}),t.onclose(r=>{r&&!this.stopping&&(o.isAuthFailure(r)?console.error("SignalRDebugConnection: connection closed due to authentication failure",r):console.error("SignalRDebugConnection: connection closed unexpectedly",r))}),this.connection=t;try{await t.start(),await this.flushBuffer()}catch(r){o.isAuthFailure(r)?console.error("SignalRDebugConnection: initial connect rejected (auth)",r):console.error("SignalRDebugConnection: failed to start",r)}}static isAuthFailure(t){return t instanceof Pt&&(t.statusCode===401||t.statusCode===403)}enableChunking(){this.chunkingEnabled=!0}send(t){this.stopping||this.enqueue(t)&&this.connection?.state===Ae.Connected&&this.flushBuffer()}enqueue(t){let r=o.toBufferedEnvelope(t);if(!r)return!1;let e=this.dropToCapacity(r.bytes);return e&&this.prependLostEnvelope(e),this.buffer.push(r),this.bufferBytes+=r.bytes,!0}static toBufferedEnvelope(t){let r;try{r=JSON.stringify(t.payload)}catch(e){return console.error(`SignalRDebugConnection: failed to serialize payload for ${t.eventName}; dropping event`,e),null}return{eventName:t.eventName,jsonPayload:r,bytes:o.byteLength(r),seq:o.extractSeq(t.payload)}}dropToCapacity(t){let r=null;for(;this.bufferBytes+t>o.BUFFER_BYTE_CAP&&this.buffer.length>0;){let e=this.buffer.shift();this.bufferBytes-=e.bytes,this.totalDropped++,(this.totalDropped===1||this.totalDropped%100===0)&&console.warn(`SignalRDebugConnection: buffer overflow, dropped ${this.totalDropped} event(s)`),e.eventName!==kt.Lost&&typeof e.seq=="number"&&(r===null?r={fromSeq:e.seq,toSeq:e.seq,droppedCount:1}:(r.toSeq=e.seq,r.droppedCount++))}return r}prependLostEnvelope(t){let r=o.synthesizeLost(t);this.buffer.unshift(r),this.bufferBytes+=r.bytes}static synthesizeLost(t,r="buffer_overflow"){let e={seq:t.fromSeq,fromSeq:t.fromSeq,toSeq:t.toSeq,droppedCount:t.droppedCount,reason:r},n=JSON.stringify(e);return{eventName:kt.Lost,jsonPayload:n,bytes:o.byteLength(n),seq:t.fromSeq}}static TEXT_ENCODER=new TextEncoder;static byteLength(t){return o.TEXT_ENCODER.encode(t).length}static extractSeq(t){if(!t||typeof t!="object")return;let r=t.seq;return typeof r=="number"?r:void 0}flushBuffer(){return this.currentFlush??=this.doFlush().finally(()=>{this.currentFlush=null})}async doFlush(){for(;this.buffer.length>0&&this.connection?.state===Ae.Connected;){let t=this.connection,r=this.buffer.shift();this.bufferBytes-=r.bytes;try{await this.sendEnvelope(t,r)}catch(e){let n=this.handleSendFailure(t,r,e);if(n==="stop")return;n==="retry"&&!this.stopping&&await o.delay(this.retryDelayMs)}}}static delay(t){return new Promise(r=>{let e=setTimeout(r,t);w_(e)})}handleSendFailure(t,r,e){let n=r.attempts=(r.attempts??0)+1,i=r.seq,s=typeof i=="number"&&r.eventName!==kt.Lost,c=t.state===Ae.Connected,u=c?r.payloadAttempts=(r.payloadAttempts??0)+1:r.payloadAttempts??0,a=s&&u>=o.MAX_SEND_ATTEMPTS,l=n>=o.RETRY_BACKSTOP_ATTEMPTS;if(!a&&!l)return this.buffer.unshift(r),this.bufferBytes+=r.bytes,(n<=o.MAX_SEND_ATTEMPTS||n%10===0)&&console.error(`SignalRDebugConnection: relay of ${r.eventName} failed (attempt ${n}/${o.RETRY_BACKSTOP_ATTEMPTS}, ${u}/${o.MAX_SEND_ATTEMPTS} payload-blamed${c?"":", transport"}${s?"":", unreportable"}); will retry`,e),c?"retry":"stop";if(this.totalSendFailureDrops++,console.error(`SignalRDebugConnection: dropping ${r.eventName} after ${n} relay attempt(s), ${u} payload-blamed \u2014 ${a?"the hub keeps rejecting it":"retry backstop reached"}; ${this.totalSendFailureDrops} send-failure drop(s) so far`+(s?"":"; unreportable ("+(r.eventName===kt.Lost?"a Lost cannot report its own loss":"no seq to anchor a Lost")+"), so this drop is invisible to the FE"),e),s){let d=o.synthesizeLost({fromSeq:i,toSeq:i,droppedCount:1},"send_failed");this.buffer.unshift(d),this.bufferBytes+=d.bytes}return"continue"}async sendEnvelope(t,r){if(!this.chunkingEnabled||r.jsonPayload.length<=o.MAX_MESSAGE_SIZE_CHARS){await t.invoke(zg,r.eventName,r.jsonPayload);return}let e=`chunk-${this.chunkIdPrefix}-${this.chunkGroupCounter++}`,n=o.splitIntoParts(r.jsonPayload,o.MAX_MESSAGE_SIZE_CHARS);for(let i=0;i<n.length;i++){let s={correlationId:e,index:i,count:n.length,eventName:r.eventName,part:n[i]};await t.invoke(zg,kt.Chunk,JSON.stringify(s))}}static splitIntoParts(t,r){let e=[];for(let n=0;n<t.length;n+=r)e.push(t.substring(n,n+r));return e}async stop(){if(this.startPromise&&await o.withTimeout(this.startPromise,o.STOP_START_WAIT_MS),this.stopping=!0,this.currentFlush)try{await this.currentFlush}catch{}if(this.connection?.state===Ae.Connected)try{await this.flushBuffer()}catch{}try{await this.connection?.stop()}catch(t){console.error("SignalRDebugConnection: error during stop",t)}this.connection=null,this.startPromise=null}static withTimeout(t,r){return new Promise(e=>{let n=!1,i=()=>{n||(n=!0,e())},s=setTimeout(i,r);t.then(i,i).finally(()=>clearTimeout(s))})}isConnected(){return this.connection?.state===Ae.Connected}}});var dw=O((Xc,lw)=>{(function(o,t){typeof Xc=="object"&&typeof lw=="object"?lw.exports=t():typeof define=="function"&&define.amd?define([],t):typeof Xc=="object"?Xc.ipc=t():o.ipc=t()})(Xc,()=>{return o={8568:r=>{"use strict";r.exports={mask:(e,n,i,s,c)=>{for(var u=0;u<c;u++)i[s+u]=e[u]^n[3&u]},unmask:(e,n)=>{let i=e.length;for(var s=0;s<i;s++)e[s]^=n[3&s]}}},4984:(r,e,n)=>{"use strict";try{r.exports=n(6920)(__dirname)}catch{r.exports=n(8568)}},6920:(r,e,n)=>{var i=n(2058),s=n(7072),c=n(8558),u=Ue,a=process.config&&process.config.variables||{},l=!!process.env.PREBUILDS_ONLY,d=process.versions.modules,f=process.versions&&process.versions.electron||process.env.ELECTRON_RUN_AS_NODE||typeof window<"u"&&window.process&&window.process.type==="renderer"?"electron":process.versions&&process.versions.nw?"node-webkit":"node",h=process.env.npm_config_arch||c.arch(),_=process.env.npm_config_platform||c.platform(),m=process.env.LIBC||(function(D){return D==="linux"&&i.existsSync("/etc/alpine-release")}(_)?"musl":"glibc"),v=process.env.ARM_VERSION||(h==="arm64"?"8":a.arm_version)||"",b=(process.versions.uv||"").split(".")[0];function g(D){return u(g.path(D))}function w(D){try{return i.readdirSync(D)}catch{return[]}}function T(D,F){var q=w(D).filter(F);return q[0]&&s.join(D,q[0])}function P(D){return/\.node$/.test(D)}function k(D){var F=D.split("-");if(F.length===2){var q=F[0],z=F[1].split("+");if(q&&z.length&&z.every(Boolean))return{name:D,platform:q,architectures:z}}}function x(D,F){return function(q){return q!=null&&q.platform===D&&q.architectures.includes(F)}}function R(D,F){return D.architectures.length-F.architectures.length}function C(D){var F=D.split("."),q={file:D,specificity:0};if(F.pop()==="node"){for(var z=0;z<F.length;z++){var K=F[z];if(K==="node"||K==="electron"||K==="node-webkit")q.runtime=K;else if(K==="napi")q.napi=!0;else if(K.slice(0,3)==="abi")q.abi=K.slice(3);else if(K.slice(0,2)==="uv")q.uv=K.slice(2);else if(K.slice(0,4)==="armv")q.armv=K.slice(4);else{if(K!=="glibc"&&K!=="musl")continue;q.libc=K}q.specificity++}return q}}function j(D,F){return function(q){return!(q==null||q.runtime!==D&&!function(z){return z.runtime==="node"&&z.napi}(q)||q.abi!==F&&!q.napi||q.uv&&q.uv!==b||q.armv&&q.armv!==v||q.libc&&q.libc!==m)}}function L(D){return function(F,q){return F.runtime!==q.runtime?F.runtime===D?-1:1:F.abi!==q.abi?F.abi?-1:1:F.specificity!==q.specificity?F.specificity>q.specificity?-1:1:0}}r.exports=g,g.path=function(D){D=s.resolve(D||".");try{var F=u(s.join(D,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[F+"_PREBUILD"]&&(D=process.env[F+"_PREBUILD"])}catch{}if(!l){var q=T(s.join(D,"build/Release"),P);if(q)return q;var z=T(s.join(D,"build/Debug"),P);if(z)return z}var K=he(D);if(K)return K;var se=he(s.dirname(process.execPath));if(se)return se;var X=["platform="+_,"arch="+h,"runtime="+f,"abi="+d,"uv="+b,v?"armv="+v:"","libc="+m,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"","webpack=true"].filter(Boolean).join(" ");throw new Error("No native build was found for "+X+`
|
|
871
871
|
loaded from: `+D+`
|
|
872
|
-
`);function he(te){var xe=w(s.join(te,"prebuilds")).map(k).filter(x(_,h)).sort(R)[0];if(xe){var Ke=s.join(te,"prebuilds",xe.name),Q=w(Ke).map(C).filter(j(f,d)).sort(L(f))[0];return Q?s.join(Ke,Q.file):void 0}}},g.parseTags=C,g.matchTags=j,g.compareTags=L,g.parseTuple=k,g.matchTuple=x,g.compareTuples=R},5968:()=>{var r;(function(e){(function(n){var i=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),s=c(e);function c(u,a){return function(l,d){typeof u[l]!="function"&&Object.defineProperty(u,l,{configurable:!0,writable:!0,value:d}),a&&a(l,d)}}i.Reflect===void 0?i.Reflect=e:s=c(i.Reflect,s),function(u){var a=Object.prototype.hasOwnProperty,l=typeof Symbol=="function",d=l&&Symbol.toPrimitive!==void 0?Symbol.toPrimitive:"@@toPrimitive",f=l&&Symbol.iterator!==void 0?Symbol.iterator:"@@iterator",h=typeof Object.create=="function",_={__proto__:[]}instanceof Array,m=!h&&!_,v={create:h?function(){return Vr(Object.create(null))}:_?function(){return Vr({__proto__:null})}:function(){return Vr({})},has:m?function($,H){return a.call($,H)}:function($,H){return H in $},get:m?function($,H){return a.call($,H)?$[H]:void 0}:function($,H){return $[H]}},b=Object.getPrototypeOf(Function),g=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",w=g||typeof Map!="function"||typeof Map.prototype.entries!="function"?function(){var $={},H=[],J=function(){function fe(Z,ae,N){this._index=0,this._keys=Z,this._values=ae,this._selector=N}return fe.prototype["@@iterator"]=function(){return this},fe.prototype[f]=function(){return this},fe.prototype.next=function(){var Z=this._index;if(Z>=0&&Z<this._keys.length){var ae=this._selector(this._keys[Z],this._values[Z]);return Z+1>=this._keys.length?(this._index=-1,this._keys=H,this._values=H):this._index++,{value:ae,done:!1}}return{value:void 0,done:!0}},fe.prototype.throw=function(Z){throw this._index>=0&&(this._index=-1,this._keys=H,this._values=H),Z},fe.prototype.return=function(Z){return this._index>=0&&(this._index=-1,this._keys=H,this._values=H),{value:Z,done:!0}},fe}();return function(){function fe(){this._keys=[],this._values=[],this._cacheKey=$,this._cacheIndex=-2}return Object.defineProperty(fe.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),fe.prototype.has=function(Z){return this._find(Z,!1)>=0},fe.prototype.get=function(Z){var ae=this._find(Z,!1);return ae>=0?this._values[ae]:void 0},fe.prototype.set=function(Z,ae){var N=this._find(Z,!0);return this._values[N]=ae,this},fe.prototype.delete=function(Z){var ae=this._find(Z,!1);if(ae>=0){for(var N=this._keys.length,B=ae+1;B<N;B++)this._keys[B-1]=this._keys[B],this._values[B-1]=this._values[B];return this._keys.length--,this._values.length--,Z===this._cacheKey&&(this._cacheKey=$,this._cacheIndex=-2),!0}return!1},fe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=$,this._cacheIndex=-2},fe.prototype.keys=function(){return new J(this._keys,this._values,ne)},fe.prototype.values=function(){return new J(this._keys,this._values,_e)},fe.prototype.entries=function(){return new J(this._keys,this._values,Ee)},fe.prototype["@@iterator"]=function(){return this.entries()},fe.prototype[f]=function(){return this.entries()},fe.prototype._find=function(Z,ae){return this._cacheKey!==Z&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=Z)),this._cacheIndex<0&&ae&&(this._cacheIndex=this._keys.length,this._keys.push(Z),this._values.push(void 0)),this._cacheIndex},fe}();function ne(fe,Z){return fe}function _e(fe,Z){return Z}function Ee(fe,Z){return[fe,Z]}}():Map,T=g||typeof Set!="function"||typeof Set.prototype.entries!="function"?function(){function $(){this._map=new w}return Object.defineProperty($.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),$.prototype.has=function(H){return this._map.has(H)},$.prototype.add=function(H){return this._map.set(H,H),this},$.prototype.delete=function(H){return this._map.delete(H)},$.prototype.clear=function(){this._map.clear()},$.prototype.keys=function(){return this._map.keys()},$.prototype.values=function(){return this._map.values()},$.prototype.entries=function(){return this._map.entries()},$.prototype["@@iterator"]=function(){return this.keys()},$.prototype[f]=function(){return this.keys()},$}():Set,P=new(g||typeof WeakMap!="function"?function(){var $=16,H=v.create(),J=ne();return function(){function Z(){this._key=ne()}return Z.prototype.has=function(ae){var N=_e(ae,!1);return N!==void 0&&v.has(N,this._key)},Z.prototype.get=function(ae){var N=_e(ae,!1);return N!==void 0?v.get(N,this._key):void 0},Z.prototype.set=function(ae,N){return _e(ae,!0)[this._key]=N,this},Z.prototype.delete=function(ae){var N=_e(ae,!1);return N!==void 0&&delete N[this._key]},Z.prototype.clear=function(){this._key=ne()},Z}();function ne(){var Z;do Z="@@WeakMap@@"+fe();while(v.has(H,Z));return H[Z]=!0,Z}function _e(Z,ae){if(!a.call(Z,J)){if(!ae)return;Object.defineProperty(Z,J,{value:v.create()})}return Z[J]}function Ee(Z,ae){for(var N=0;N<ae;++N)Z[N]=255*Math.random()|0;return Z}function fe(){var Z,ae=(Z=$,typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(Z)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(Z)):Ee(new Uint8Array(Z),Z):Ee(new Array(Z),Z));ae[6]=79&ae[6]|64,ae[8]=191&ae[8]|128;for(var N="",B=0;B<$;++B){var G=ae[B];B!==4&&B!==6&&B!==8||(N+="-"),G<16&&(N+="0"),N+=G.toString(16).toLowerCase()}return N}}():WeakMap);function k($,H,J){var ne=P.get($);if(z(ne)){if(!J)return;ne=new w,P.set($,ne)}var _e=ne.get(H);if(z(_e)){if(!J)return;_e=new w,ne.set(H,_e)}return _e}function x($,H,J){if(R($,H,J))return!0;var ne=nr(H);return!K(ne)&&x($,ne,J)}function R($,H,J){var ne=k(H,J,!1);return!z(ne)&&!!ne.has($)}function C($,H,J){if(R($,H,J))return j($,H,J);var ne=nr(H);return K(ne)?void 0:C($,ne,J)}function j($,H,J){var ne=k(H,J,!1);if(!z(ne))return ne.get($)}function L($,H,J,ne){k(J,ne,!0).set($,H)}function D($,H){var J=F($,H),ne=nr($);if(ne===null)return J;var _e=D(ne,H);if(_e.length<=0)return J;if(J.length<=0)return _e;for(var Ee=new T,fe=[],Z=0,ae=J;Z<ae.length;Z++){var N=ae[Z];Ee.has(N)||(Ee.add(N),fe.push(N))}for(var B=0,G=_e;B<G.length;B++)N=G[B],Ee.has(N)||(Ee.add(N),fe.push(N));return fe}function F($,H){var J=[],ne=k($,H,!1);if(z(ne))return J;for(var _e=function(ae){var N=Q(ae,f);if(!xe(N))throw new TypeError;var B=N.call(ae);if(!se(B))throw new TypeError;return B}(ne.keys()),Ee=0;;){var fe=bn(_e);if(!fe)return J.length=Ee,J;var Z=fe.value;try{J[Ee]=Z}catch(ae){try{Jo(_e)}finally{throw ae}}Ee++}}function q($){if($===null)return 1;switch(typeof $){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return $===null?1:6;default:return 6}}function z($){return $===void 0}function K($){return $===null}function se($){return typeof $=="object"?$!==null:typeof $=="function"}function X($,H){switch(q($)){case 0:case 1:case 2:case 3:case 4:case 5:return $}var J=H===3?"string":H===5?"number":"default",ne=Q($,d);if(ne!==void 0){var _e=ne.call($,J);if(se(_e))throw new TypeError;return _e}return function(Ee,fe){if(fe==="string"){var Z=Ee.toString;if(xe(Z)&&!se(N=Z.call(Ee))||xe(ae=Ee.valueOf)&&!se(N=ae.call(Ee)))return N}else{var ae;if(xe(ae=Ee.valueOf)&&!se(N=ae.call(Ee)))return N;var N,B=Ee.toString;if(xe(B)&&!se(N=B.call(Ee)))return N}throw new TypeError}($,J==="default"?"number":J)}function he($){var H=X($,3);return typeof H=="symbol"?H:function(J){return""+J}(H)}function te($){return Array.isArray?Array.isArray($):$ instanceof Object?$ instanceof Array:Object.prototype.toString.call($)==="[object Array]"}function xe($){return typeof $=="function"}function Ke($){return typeof $=="function"}function Q($,H){var J=$[H];if(J!=null){if(!xe(J))throw new TypeError;return J}}function bn($){var H=$.next();return!H.done&&H}function Jo($){var H=$.return;H&&H.call($)}function nr($){var H=Object.getPrototypeOf($);if(typeof $!="function"||$===b||H!==b)return H;var J=$.prototype,ne=J&&Object.getPrototypeOf(J);if(ne==null||ne===Object.prototype)return H;var _e=ne.constructor;return typeof _e!="function"||_e===$?H:_e}function Vr($){return $.__=void 0,delete $.__,$}u("decorate",function($,H,J,ne){if(z(J)){if(!te($))throw new TypeError;if(!Ke(H))throw new TypeError;return function(_e,Ee){for(var fe=_e.length-1;fe>=0;--fe){var Z=(0,_e[fe])(Ee);if(!z(Z)&&!K(Z)){if(!Ke(Z))throw new TypeError;Ee=Z}}return Ee}($,H)}if(!te($))throw new TypeError;if(!se(H))throw new TypeError;if(!se(ne)&&!z(ne)&&!K(ne))throw new TypeError;return K(ne)&&(ne=void 0),function(_e,Ee,fe,Z){for(var ae=_e.length-1;ae>=0;--ae){var N=(0,_e[ae])(Ee,fe,Z);if(!z(N)&&!K(N)){if(!se(N))throw new TypeError;Z=N}}return Z}($,H,J=he(J),ne)}),u("metadata",function($,H){return function(J,ne){if(!se(J))throw new TypeError;if(!z(ne)&&!function(_e){switch(q(_e)){case 3:case 4:return!0;default:return!1}}(ne))throw new TypeError;L($,H,J,ne)}}),u("defineMetadata",function($,H,J,ne){if(!se(J))throw new TypeError;return z(ne)||(ne=he(ne)),L($,H,J,ne)}),u("hasMetadata",function($,H,J){if(!se(H))throw new TypeError;return z(J)||(J=he(J)),x($,H,J)}),u("hasOwnMetadata",function($,H,J){if(!se(H))throw new TypeError;return z(J)||(J=he(J)),R($,H,J)}),u("getMetadata",function($,H,J){if(!se(H))throw new TypeError;return z(J)||(J=he(J)),C($,H,J)}),u("getOwnMetadata",function($,H,J){if(!se(H))throw new TypeError;return z(J)||(J=he(J)),j($,H,J)}),u("getMetadataKeys",function($,H){if(!se($))throw new TypeError;return z(H)||(H=he(H)),D($,H)}),u("getOwnMetadataKeys",function($,H){if(!se($))throw new TypeError;return z(H)||(H=he(H)),F($,H)}),u("deleteMetadata",function($,H,J){if(!se(H))throw new TypeError;z(J)||(J=he(J));var ne=k(H,J,!1);if(z(ne)||!ne.delete($))return!1;if(ne.size>0)return!0;var _e=P.get(H);return _e.delete(J),_e.size>0||P.delete(H),!0})}(s)})()})(r||(r={}))},2444:function(r,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(Jn,Pr,dt,Ar){Ar===void 0&&(Ar=dt),Object.defineProperty(Jn,Ar,{enumerable:!0,get:function(){return Pr[dt]}})}:function(Jn,Pr,dt,Ar){Ar===void 0&&(Ar=dt),Jn[Ar]=Pr[dt]}),s=this&&this.__exportStar||function(Jn,Pr){for(var dt in Jn)dt==="default"||Object.prototype.hasOwnProperty.call(Pr,dt)||i(Pr,Jn,dt)};Object.defineProperty(e,"__esModule",{value:!0}),e.interval=e.iif=e.generate=e.fromEventPattern=e.fromEvent=e.from=e.forkJoin=e.empty=e.defer=e.connectable=e.concat=e.combineLatest=e.bindNodeCallback=e.bindCallback=e.UnsubscriptionError=e.TimeoutError=e.SequenceError=e.ObjectUnsubscribedError=e.NotFoundError=e.EmptyError=e.ArgumentOutOfRangeError=e.firstValueFrom=e.lastValueFrom=e.isObservable=e.identity=e.noop=e.pipe=e.NotificationKind=e.Notification=e.Subscriber=e.Subscription=e.Scheduler=e.VirtualAction=e.VirtualTimeScheduler=e.animationFrameScheduler=e.animationFrame=e.queueScheduler=e.queue=e.asyncScheduler=e.async=e.asapScheduler=e.asap=e.AsyncSubject=e.ReplaySubject=e.BehaviorSubject=e.Subject=e.animationFrames=e.observable=e.ConnectableObservable=e.Observable=void 0,e.filter=e.expand=e.exhaustMap=e.exhaustAll=e.exhaust=e.every=e.endWith=e.elementAt=e.distinctUntilKeyChanged=e.distinctUntilChanged=e.distinct=e.dematerialize=e.delayWhen=e.delay=e.defaultIfEmpty=e.debounceTime=e.debounce=e.count=e.connect=e.concatWith=e.concatMapTo=e.concatMap=e.concatAll=e.combineLatestWith=e.combineLatestAll=e.combineAll=e.catchError=e.bufferWhen=e.bufferToggle=e.bufferTime=e.bufferCount=e.buffer=e.auditTime=e.audit=e.config=e.NEVER=e.EMPTY=e.scheduled=e.zip=e.using=e.timer=e.throwError=e.range=e.race=e.partition=e.pairs=e.onErrorResumeNext=e.of=e.never=e.merge=void 0,e.switchMapTo=e.switchMap=e.switchAll=e.subscribeOn=e.startWith=e.skipWhile=e.skipUntil=e.skipLast=e.skip=e.single=e.shareReplay=e.share=e.sequenceEqual=e.scan=e.sampleTime=e.sample=e.refCount=e.retryWhen=e.retry=e.repeatWhen=e.repeat=e.reduce=e.raceWith=e.publishReplay=e.publishLast=e.publishBehavior=e.publish=e.pluck=e.pairwise=e.observeOn=e.multicast=e.min=e.mergeWith=e.mergeScan=e.mergeMapTo=e.mergeMap=e.flatMap=e.mergeAll=e.max=e.materialize=e.mapTo=e.map=e.last=e.isEmpty=e.ignoreElements=e.groupBy=e.first=e.findIndex=e.find=e.finalize=void 0,e.zipWith=e.zipAll=e.withLatestFrom=e.windowWhen=e.windowToggle=e.windowTime=e.windowCount=e.window=e.toArray=e.timestamp=e.timeoutWith=e.timeout=e.timeInterval=e.throwIfEmpty=e.throttleTime=e.throttle=e.tap=e.takeWhile=e.takeUntil=e.takeLast=e.take=e.switchScan=void 0;var c=n(9332);Object.defineProperty(e,"Observable",{enumerable:!0,get:function(){return c.Observable}});var u=n(9304);Object.defineProperty(e,"ConnectableObservable",{enumerable:!0,get:function(){return u.ConnectableObservable}});var a=n(1908);Object.defineProperty(e,"observable",{enumerable:!0,get:function(){return a.observable}});var l=n(4176);Object.defineProperty(e,"animationFrames",{enumerable:!0,get:function(){return l.animationFrames}});var d=n(5388);Object.defineProperty(e,"Subject",{enumerable:!0,get:function(){return d.Subject}});var f=n(315);Object.defineProperty(e,"BehaviorSubject",{enumerable:!0,get:function(){return f.BehaviorSubject}});var h=n(1964);Object.defineProperty(e,"ReplaySubject",{enumerable:!0,get:function(){return h.ReplaySubject}});var _=n(1892);Object.defineProperty(e,"AsyncSubject",{enumerable:!0,get:function(){return _.AsyncSubject}});var m=n(7640);Object.defineProperty(e,"asap",{enumerable:!0,get:function(){return m.asap}}),Object.defineProperty(e,"asapScheduler",{enumerable:!0,get:function(){return m.asapScheduler}});var v=n(1416);Object.defineProperty(e,"async",{enumerable:!0,get:function(){return v.async}}),Object.defineProperty(e,"asyncScheduler",{enumerable:!0,get:function(){return v.asyncScheduler}});var b=n(6644);Object.defineProperty(e,"queue",{enumerable:!0,get:function(){return b.queue}}),Object.defineProperty(e,"queueScheduler",{enumerable:!0,get:function(){return b.queueScheduler}});var g=n(652);Object.defineProperty(e,"animationFrame",{enumerable:!0,get:function(){return g.animationFrame}}),Object.defineProperty(e,"animationFrameScheduler",{enumerable:!0,get:function(){return g.animationFrameScheduler}});var w=n(9648);Object.defineProperty(e,"VirtualTimeScheduler",{enumerable:!0,get:function(){return w.VirtualTimeScheduler}}),Object.defineProperty(e,"VirtualAction",{enumerable:!0,get:function(){return w.VirtualAction}});var T=n(3456);Object.defineProperty(e,"Scheduler",{enumerable:!0,get:function(){return T.Scheduler}});var P=n(1536);Object.defineProperty(e,"Subscription",{enumerable:!0,get:function(){return P.Subscription}});var k=n(8);Object.defineProperty(e,"Subscriber",{enumerable:!0,get:function(){return k.Subscriber}});var x=n(1800);Object.defineProperty(e,"Notification",{enumerable:!0,get:function(){return x.Notification}}),Object.defineProperty(e,"NotificationKind",{enumerable:!0,get:function(){return x.NotificationKind}});var R=n(488);Object.defineProperty(e,"pipe",{enumerable:!0,get:function(){return R.pipe}});var C=n(892);Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return C.noop}});var j=n(8760);Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return j.identity}});var L=n(6368);Object.defineProperty(e,"isObservable",{enumerable:!0,get:function(){return L.isObservable}});var D=n(7256);Object.defineProperty(e,"lastValueFrom",{enumerable:!0,get:function(){return D.lastValueFrom}});var F=n(8356);Object.defineProperty(e,"firstValueFrom",{enumerable:!0,get:function(){return F.firstValueFrom}});var q=n(8028);Object.defineProperty(e,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return q.ArgumentOutOfRangeError}});var z=n(1424);Object.defineProperty(e,"EmptyError",{enumerable:!0,get:function(){return z.EmptyError}});var K=n(7628);Object.defineProperty(e,"NotFoundError",{enumerable:!0,get:function(){return K.NotFoundError}});var se=n(740);Object.defineProperty(e,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return se.ObjectUnsubscribedError}});var X=n(6968);Object.defineProperty(e,"SequenceError",{enumerable:!0,get:function(){return X.SequenceError}});var he=n(328);Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return he.TimeoutError}});var te=n(3952);Object.defineProperty(e,"UnsubscriptionError",{enumerable:!0,get:function(){return te.UnsubscriptionError}});var xe=n(9904);Object.defineProperty(e,"bindCallback",{enumerable:!0,get:function(){return xe.bindCallback}});var Ke=n(7044);Object.defineProperty(e,"bindNodeCallback",{enumerable:!0,get:function(){return Ke.bindNodeCallback}});var Q=n(7240);Object.defineProperty(e,"combineLatest",{enumerable:!0,get:function(){return Q.combineLatest}});var bn=n(347);Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return bn.concat}});var Jo=n(5528);Object.defineProperty(e,"connectable",{enumerable:!0,get:function(){return Jo.connectable}});var nr=n(5056);Object.defineProperty(e,"defer",{enumerable:!0,get:function(){return nr.defer}});var Vr=n(9424);Object.defineProperty(e,"empty",{enumerable:!0,get:function(){return Vr.empty}});var $=n(4168);Object.defineProperty(e,"forkJoin",{enumerable:!0,get:function(){return $.forkJoin}});var H=n(6124);Object.defineProperty(e,"from",{enumerable:!0,get:function(){return H.from}});var J=n(5948);Object.defineProperty(e,"fromEvent",{enumerable:!0,get:function(){return J.fromEvent}});var ne=n(9680);Object.defineProperty(e,"fromEventPattern",{enumerable:!0,get:function(){return ne.fromEventPattern}});var _e=n(1328);Object.defineProperty(e,"generate",{enumerable:!0,get:function(){return _e.generate}});var Ee=n(4560);Object.defineProperty(e,"iif",{enumerable:!0,get:function(){return Ee.iif}});var fe=n(9312);Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return fe.interval}});var Z=n(8336);Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return Z.merge}});var ae=n(3504);Object.defineProperty(e,"never",{enumerable:!0,get:function(){return ae.never}});var N=n(5960);Object.defineProperty(e,"of",{enumerable:!0,get:function(){return N.of}});var B=n(5172);Object.defineProperty(e,"onErrorResumeNext",{enumerable:!0,get:function(){return B.onErrorResumeNext}});var G=n(9643);Object.defineProperty(e,"pairs",{enumerable:!0,get:function(){return G.pairs}});var ce=n(21);Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return ce.partition}});var oe=n(6683);Object.defineProperty(e,"race",{enumerable:!0,get:function(){return oe.race}});var Ve=n(9463);Object.defineProperty(e,"range",{enumerable:!0,get:function(){return Ve.range}});var Be=n(1684);Object.defineProperty(e,"throwError",{enumerable:!0,get:function(){return Be.throwError}});var zr=n(4536);Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return zr.timer}});var or=n(500);Object.defineProperty(e,"using",{enumerable:!0,get:function(){return or.using}});var _t=n(5456);Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return _t.zip}});var me=n(3716);Object.defineProperty(e,"scheduled",{enumerable:!0,get:function(){return me.scheduled}});var Er=n(9424);Object.defineProperty(e,"EMPTY",{enumerable:!0,get:function(){return Er.EMPTY}});var ir=n(3504);Object.defineProperty(e,"NEVER",{enumerable:!0,get:function(){return ir.NEVER}}),s(n(4828),e);var Yr=n(7004);Object.defineProperty(e,"config",{enumerable:!0,get:function(){return Yr.config}});var Qe=n(3824);Object.defineProperty(e,"audit",{enumerable:!0,get:function(){return Qe.audit}});var Te=n(1016);Object.defineProperty(e,"auditTime",{enumerable:!0,get:function(){return Te.auditTime}});var it=n(4320);Object.defineProperty(e,"buffer",{enumerable:!0,get:function(){return it.buffer}});var Ze=n(8992);Object.defineProperty(e,"bufferCount",{enumerable:!0,get:function(){return Ze.bufferCount}});var gn=n(4448);Object.defineProperty(e,"bufferTime",{enumerable:!0,get:function(){return gn.bufferTime}});var Tr=n(5636);Object.defineProperty(e,"bufferToggle",{enumerable:!0,get:function(){return Tr.bufferToggle}});var Ct=n(3096);Object.defineProperty(e,"bufferWhen",{enumerable:!0,get:function(){return Ct.bufferWhen}});var Re=n(4464);Object.defineProperty(e,"catchError",{enumerable:!0,get:function(){return Re.catchError}});var zn=n(5028);Object.defineProperty(e,"combineAll",{enumerable:!0,get:function(){return zn.combineAll}});var Go=n(1920);Object.defineProperty(e,"combineLatestAll",{enumerable:!0,get:function(){return Go.combineLatestAll}});var Yn=n(5832);Object.defineProperty(e,"combineLatestWith",{enumerable:!0,get:function(){return Yn.combineLatestWith}});var Aa=n(2708);Object.defineProperty(e,"concatAll",{enumerable:!0,get:function(){return Aa.concatAll}});var Yi=n(4912);Object.defineProperty(e,"concatMap",{enumerable:!0,get:function(){return Yi.concatMap}});var Kn=n(9080);Object.defineProperty(e,"concatMapTo",{enumerable:!0,get:function(){return Kn.concatMapTo}});var Ki=n(9440);Object.defineProperty(e,"concatWith",{enumerable:!0,get:function(){return Ki.concatWith}});var R_=n(7312);Object.defineProperty(e,"connect",{enumerable:!0,get:function(){return R_.connect}});var Ji=n(1132);Object.defineProperty(e,"count",{enumerable:!0,get:function(){return Ji.count}});var M_=n(5924);Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return M_.debounce}});var Xo=n(3600);Object.defineProperty(e,"debounceTime",{enumerable:!0,get:function(){return Xo.debounceTime}});var Gi=n(6204);Object.defineProperty(e,"defaultIfEmpty",{enumerable:!0,get:function(){return Gi.defaultIfEmpty}});var re=n(7752);Object.defineProperty(e,"delay",{enumerable:!0,get:function(){return re.delay}});var C_=n(7532);Object.defineProperty(e,"delayWhen",{enumerable:!0,get:function(){return C_.delayWhen}});var j_=n(6491);Object.defineProperty(e,"dematerialize",{enumerable:!0,get:function(){return j_.dematerialize}});var At=n(3976);Object.defineProperty(e,"distinct",{enumerable:!0,get:function(){return At.distinct}});var Ia=n(8987);Object.defineProperty(e,"distinctUntilChanged",{enumerable:!0,get:function(){return Ia.distinctUntilChanged}});var Me=n(4288);Object.defineProperty(e,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Me.distinctUntilKeyChanged}});var Zo=n(1320);Object.defineProperty(e,"elementAt",{enumerable:!0,get:function(){return Zo.elementAt}});var N_=n(4028);Object.defineProperty(e,"endWith",{enumerable:!0,get:function(){return N_.endWith}});var lt=n(2528);Object.defineProperty(e,"every",{enumerable:!0,get:function(){return lt.every}});var Sr=n(9372);Object.defineProperty(e,"exhaust",{enumerable:!0,get:function(){return Sr.exhaust}});var sr=n(668);Object.defineProperty(e,"exhaustAll",{enumerable:!0,get:function(){return sr.exhaustAll}});var et=n(7332);Object.defineProperty(e,"exhaustMap",{enumerable:!0,get:function(){return et.exhaustMap}});var zt=n(400);Object.defineProperty(e,"expand",{enumerable:!0,get:function(){return zt.expand}});var Or=n(7424);Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return Or.filter}});var wn=n(8424);Object.defineProperty(e,"finalize",{enumerable:!0,get:function(){return wn.finalize}});var D_=n(2328);Object.defineProperty(e,"find",{enumerable:!0,get:function(){return D_.find}});var L_=n(8168);Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return L_.findIndex}});var q_=n(1564);Object.defineProperty(e,"first",{enumerable:!0,get:function(){return q_.first}});var Je=n(3499);Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return Je.groupBy}});var Xi=n(4664);Object.defineProperty(e,"ignoreElements",{enumerable:!0,get:function(){return Xi.ignoreElements}});var F_=n(3320);Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return F_.isEmpty}});var tu=n(2804);Object.defineProperty(e,"last",{enumerable:!0,get:function(){return tu.last}});var ru=n(7144);Object.defineProperty(e,"map",{enumerable:!0,get:function(){return ru.map}});var W_=n(6544);Object.defineProperty(e,"mapTo",{enumerable:!0,get:function(){return W_.mapTo}});var U_=n(224);Object.defineProperty(e,"materialize",{enumerable:!0,get:function(){return U_.materialize}});var $_=n(5594);Object.defineProperty(e,"max",{enumerable:!0,get:function(){return $_.max}});var B_=n(981);Object.defineProperty(e,"mergeAll",{enumerable:!0,get:function(){return B_.mergeAll}});var H_=n(9190);Object.defineProperty(e,"flatMap",{enumerable:!0,get:function(){return H_.flatMap}});var V_=n(9829);Object.defineProperty(e,"mergeMap",{enumerable:!0,get:function(){return V_.mergeMap}});var nu=n(3744);Object.defineProperty(e,"mergeMapTo",{enumerable:!0,get:function(){return nu.mergeMapTo}});var ou=n(6632);Object.defineProperty(e,"mergeScan",{enumerable:!0,get:function(){return ou.mergeScan}});var z_=n(364);Object.defineProperty(e,"mergeWith",{enumerable:!0,get:function(){return z_.mergeWith}});var Y_=n(1171);Object.defineProperty(e,"min",{enumerable:!0,get:function(){return Y_.min}});var K_=n(8324);Object.defineProperty(e,"multicast",{enumerable:!0,get:function(){return K_.multicast}});var iu=n(3064);Object.defineProperty(e,"observeOn",{enumerable:!0,get:function(){return iu.observeOn}});var Qo=n(8948);Object.defineProperty(e,"pairwise",{enumerable:!0,get:function(){return Qo.pairwise}});var su=n(7680);Object.defineProperty(e,"pluck",{enumerable:!0,get:function(){return su.pluck}});var J_=n(8228);Object.defineProperty(e,"publish",{enumerable:!0,get:function(){return J_.publish}});var G_=n(4662);Object.defineProperty(e,"publishBehavior",{enumerable:!0,get:function(){return G_.publishBehavior}});var ei=n(1636);Object.defineProperty(e,"publishLast",{enumerable:!0,get:function(){return ei.publishLast}});var Zi=n(6956);Object.defineProperty(e,"publishReplay",{enumerable:!0,get:function(){return Zi.publishReplay}});var au=n(5412);Object.defineProperty(e,"raceWith",{enumerable:!0,get:function(){return au.raceWith}});var ti=n(4036);Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return ti.reduce}});var kr=n(2072);Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return kr.repeat}});var X_=n(1044);Object.defineProperty(e,"repeatWhen",{enumerable:!0,get:function(){return X_.repeatWhen}});var Z_=n(4848);Object.defineProperty(e,"retry",{enumerable:!0,get:function(){return Z_.retry}});var Q_=n(9292);Object.defineProperty(e,"retryWhen",{enumerable:!0,get:function(){return Q_.retryWhen}});var em=n(3120);Object.defineProperty(e,"refCount",{enumerable:!0,get:function(){return em.refCount}});var tm=n(3076);Object.defineProperty(e,"sample",{enumerable:!0,get:function(){return tm.sample}});var rm=n(2180);Object.defineProperty(e,"sampleTime",{enumerable:!0,get:function(){return rm.sampleTime}});var nm=n(6424);Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return nm.scan}});var om=n(6440);Object.defineProperty(e,"sequenceEqual",{enumerable:!0,get:function(){return om.sequenceEqual}});var xa=n(6532);Object.defineProperty(e,"share",{enumerable:!0,get:function(){return xa.share}});var im=n(4980);Object.defineProperty(e,"shareReplay",{enumerable:!0,get:function(){return im.shareReplay}});var cu=n(1400);Object.defineProperty(e,"single",{enumerable:!0,get:function(){return cu.single}});var sm=n(7516);Object.defineProperty(e,"skip",{enumerable:!0,get:function(){return sm.skip}});var am=n(7211);Object.defineProperty(e,"skipLast",{enumerable:!0,get:function(){return am.skipLast}});var cm=n(7136);Object.defineProperty(e,"skipUntil",{enumerable:!0,get:function(){return cm.skipUntil}});var um=n(7820);Object.defineProperty(e,"skipWhile",{enumerable:!0,get:function(){return um.skipWhile}});var lm=n(3432);Object.defineProperty(e,"startWith",{enumerable:!0,get:function(){return lm.startWith}});var dm=n(8212);Object.defineProperty(e,"subscribeOn",{enumerable:!0,get:function(){return dm.subscribeOn}});var fm=n(1272);Object.defineProperty(e,"switchAll",{enumerable:!0,get:function(){return fm.switchAll}});var pm=n(9456);Object.defineProperty(e,"switchMap",{enumerable:!0,get:function(){return pm.switchMap}});var hm=n(8152);Object.defineProperty(e,"switchMapTo",{enumerable:!0,get:function(){return hm.switchMapTo}});var _m=n(2600);Object.defineProperty(e,"switchScan",{enumerable:!0,get:function(){return _m.switchScan}});var mm=n(5688);Object.defineProperty(e,"take",{enumerable:!0,get:function(){return mm.take}});var vm=n(384);Object.defineProperty(e,"takeLast",{enumerable:!0,get:function(){return vm.takeLast}});var ym=n(220);Object.defineProperty(e,"takeUntil",{enumerable:!0,get:function(){return ym.takeUntil}});var bm=n(7924);Object.defineProperty(e,"takeWhile",{enumerable:!0,get:function(){return bm.takeWhile}});var gm=n(2200);Object.defineProperty(e,"tap",{enumerable:!0,get:function(){return gm.tap}});var Ra=n(6912);Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return Ra.throttle}});var Ma=n(2085);Object.defineProperty(e,"throttleTime",{enumerable:!0,get:function(){return Ma.throttleTime}});var wm=n(6400);Object.defineProperty(e,"throwIfEmpty",{enumerable:!0,get:function(){return wm.throwIfEmpty}});var uu=n(2920);Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return uu.timeInterval}});var lu=n(328);Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return lu.timeout}});var Em=n(2244);Object.defineProperty(e,"timeoutWith",{enumerable:!0,get:function(){return Em.timeoutWith}});var Tm=n(4576);Object.defineProperty(e,"timestamp",{enumerable:!0,get:function(){return Tm.timestamp}});var Sm=n(1572);Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return Sm.toArray}});var Om=n(4096);Object.defineProperty(e,"window",{enumerable:!0,get:function(){return Om.window}});var du=n(3100);Object.defineProperty(e,"windowCount",{enumerable:!0,get:function(){return du.windowCount}});var $e=n(6652);Object.defineProperty(e,"windowTime",{enumerable:!0,get:function(){return $e.windowTime}});var ri=n(3592);Object.defineProperty(e,"windowToggle",{enumerable:!0,get:function(){return ri.windowToggle}});var ni=n(4256);Object.defineProperty(e,"windowWhen",{enumerable:!0,get:function(){return ni.windowWhen}});var km=n(5432);Object.defineProperty(e,"withLatestFrom",{enumerable:!0,get:function(){return km.withLatestFrom}});var fu=n(3515);Object.defineProperty(e,"zipAll",{enumerable:!0,get:function(){return fu.zipAll}});var Pm=n(5828);Object.defineProperty(e,"zipWith",{enumerable:!0,get:function(){return Pm.zipWith}})},1892:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(u,a){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(l[f]=d[f])},i(u,a)},function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function l(){this.constructor=u}i(u,a),u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)});Object.defineProperty(e,"__esModule",{value:!0}),e.AsyncSubject=void 0;var c=function(u){function a(){var l=u!==null&&u.apply(this,arguments)||this;return l._value=null,l._hasValue=!1,l._isComplete=!1,l}return s(a,u),a.prototype._checkFinalizedStatuses=function(l){var d=this,f=d.hasError,h=d._hasValue,_=d._value,m=d.thrownError,v=d.isStopped,b=d._isComplete;f?l.error(m):(v||b)&&(h&&l.next(_),l.complete())},a.prototype.next=function(l){this.isStopped||(this._value=l,this._hasValue=!0)},a.prototype.complete=function(){var l=this,d=l._hasValue,f=l._value;l._isComplete||(this._isComplete=!0,d&&u.prototype.next.call(this,f),u.prototype.complete.call(this))},a}(n(5388).Subject);e.AsyncSubject=c},315:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(u,a){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(l[f]=d[f])},i(u,a)},function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function l(){this.constructor=u}i(u,a),u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)});Object.defineProperty(e,"__esModule",{value:!0}),e.BehaviorSubject=void 0;var c=function(u){function a(l){var d=u.call(this)||this;return d._value=l,d}return s(a,u),Object.defineProperty(a.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),a.prototype._subscribe=function(l){var d=u.prototype._subscribe.call(this,l);return!d.closed&&l.next(this._value),d},a.prototype.getValue=function(){var l=this,d=l.hasError,f=l.thrownError,h=l._value;if(d)throw f;return this._throwIfClosed(),h},a.prototype.next=function(l){u.prototype.next.call(this,this._value=l)},a}(n(5388).Subject);e.BehaviorSubject=c},1800:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.observeNotification=e.Notification=e.NotificationKind=void 0;var i,s=n(9424),c=n(5960),u=n(1684),a=n(7528);(i=e.NotificationKind||(e.NotificationKind={})).NEXT="N",i.ERROR="E",i.COMPLETE="C";var l=function(){function f(h,_,m){this.kind=h,this.value=_,this.error=m,this.hasValue=h==="N"}return f.prototype.observe=function(h){return d(this,h)},f.prototype.do=function(h,_,m){var v=this,b=v.kind,g=v.value,w=v.error;return b==="N"?h?.(g):b==="E"?_?.(w):m?.()},f.prototype.accept=function(h,_,m){var v;return a.isFunction((v=h)===null||v===void 0?void 0:v.next)?this.observe(h):this.do(h,_,m)},f.prototype.toObservable=function(){var h=this,_=h.kind,m=h.value,v=h.error,b=_==="N"?c.of(m):_==="E"?u.throwError(function(){return v}):_==="C"?s.EMPTY:0;if(!b)throw new TypeError("Unexpected notification kind "+_);return b},f.createNext=function(h){return new f("N",h)},f.createError=function(h){return new f("E",void 0,h)},f.createComplete=function(){return f.completeNotification},f.completeNotification=new f("C"),f}();function d(f,h){var _,m,v,b=f,g=b.kind,w=b.value,T=b.error;if(typeof g!="string")throw new TypeError('Invalid notification, missing "kind"');g==="N"?(_=h.next)===null||_===void 0||_.call(h,w):g==="E"?(m=h.error)===null||m===void 0||m.call(h,T):(v=h.complete)===null||v===void 0||v.call(h)}e.Notification=l,e.observeNotification=d},7736:(r,e)=>{"use strict";function n(i,s,c){return{kind:i,value:s,error:c}}Object.defineProperty(e,"__esModule",{value:!0}),e.createNotification=e.nextNotification=e.errorNotification=e.COMPLETE_NOTIFICATION=void 0,e.COMPLETE_NOTIFICATION=n("C",void 0,void 0),e.errorNotification=function(i){return n("E",void 0,i)},e.nextNotification=function(i){return n("N",i,void 0)},e.createNotification=n},9332:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Observable=void 0;var i=n(8),s=n(1536),c=n(1908),u=n(488),a=n(7004),l=n(7528),d=n(4672),f=function(){function _(m){m&&(this._subscribe=m)}return _.prototype.lift=function(m){var v=new _;return v.source=this,v.operator=m,v},_.prototype.subscribe=function(m,v,b){var g,w=this,T=(g=m)&&g instanceof i.Subscriber||function(P){return P&&l.isFunction(P.next)&&l.isFunction(P.error)&&l.isFunction(P.complete)}(g)&&s.isSubscription(g)?m:new i.SafeSubscriber(m,v,b);return d.errorContext(function(){var P=w,k=P.operator,x=P.source;T.add(k?k.call(T,x):x?w._subscribe(T):w._trySubscribe(T))}),T},_.prototype._trySubscribe=function(m){try{return this._subscribe(m)}catch(v){m.error(v)}},_.prototype.forEach=function(m,v){var b=this;return new(v=h(v))(function(g,w){var T=new i.SafeSubscriber({next:function(P){try{m(P)}catch(k){w(k),T.unsubscribe()}},error:w,complete:g});b.subscribe(T)})},_.prototype._subscribe=function(m){var v;return(v=this.source)===null||v===void 0?void 0:v.subscribe(m)},_.prototype[c.observable]=function(){return this},_.prototype.pipe=function(){for(var m=[],v=0;v<arguments.length;v++)m[v]=arguments[v];return u.pipeFromArray(m)(this)},_.prototype.toPromise=function(m){var v=this;return new(m=h(m))(function(b,g){var w;v.subscribe(function(T){return w=T},function(T){return g(T)},function(){return b(w)})})},_.create=function(m){return new _(m)},_}();function h(_){var m;return(m=_??a.config.Promise)!==null&&m!==void 0?m:Promise}e.Observable=f},1964:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(l,d){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var _ in h)Object.prototype.hasOwnProperty.call(h,_)&&(f[_]=h[_])},i(l,d)},function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function f(){this.constructor=l}i(l,d),l.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)});Object.defineProperty(e,"__esModule",{value:!0}),e.ReplaySubject=void 0;var c=n(5388),u=n(1312),a=function(l){function d(f,h,_){f===void 0&&(f=1/0),h===void 0&&(h=1/0),_===void 0&&(_=u.dateTimestampProvider);var m=l.call(this)||this;return m._bufferSize=f,m._windowTime=h,m._timestampProvider=_,m._buffer=[],m._infiniteTimeWindow=!0,m._infiniteTimeWindow=h===1/0,m._bufferSize=Math.max(1,f),m._windowTime=Math.max(1,h),m}return s(d,l),d.prototype.next=function(f){var h=this,_=h.isStopped,m=h._buffer,v=h._infiniteTimeWindow,b=h._timestampProvider,g=h._windowTime;_||(m.push(f),!v&&m.push(b.now()+g)),this._trimBuffer(),l.prototype.next.call(this,f)},d.prototype._subscribe=function(f){this._throwIfClosed(),this._trimBuffer();for(var h=this._innerSubscribe(f),_=this._infiniteTimeWindow,m=this._buffer.slice(),v=0;v<m.length&&!f.closed;v+=_?1:2)f.next(m[v]);return this._checkFinalizedStatuses(f),h},d.prototype._trimBuffer=function(){var f=this,h=f._bufferSize,_=f._timestampProvider,m=f._buffer,v=f._infiniteTimeWindow,b=(v?1:2)*h;if(h<1/0&&b<m.length&&m.splice(0,m.length-b),!v){for(var g=_.now(),w=0,T=1;T<m.length&&m[T]<=g;T+=2)w=T;w&&m.splice(0,w+1)}},d}(c.Subject);e.ReplaySubject=a},3456:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scheduler=void 0;var i=n(1312),s=function(){function c(u,a){a===void 0&&(a=c.now),this.schedulerActionCtor=u,this.now=a}return c.prototype.schedule=function(u,a,l){return a===void 0&&(a=0),new this.schedulerActionCtor(this,u).schedule(l,a)},c.now=i.dateTimestampProvider.now,c}();e.Scheduler=s},5388:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(m,v){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,g){b.__proto__=g}||function(b,g){for(var w in g)Object.prototype.hasOwnProperty.call(g,w)&&(b[w]=g[w])},i(m,v)},function(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function b(){this.constructor=m}i(m,v),m.prototype=v===null?Object.create(v):(b.prototype=v.prototype,new b)}),c=this&&this.__values||function(m){var v=typeof Symbol=="function"&&Symbol.iterator,b=v&&m[v],g=0;if(b)return b.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&g>=m.length&&(m=void 0),{value:m&&m[g++],done:!m}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.AnonymousSubject=e.Subject=void 0;var u=n(9332),a=n(1536),l=n(740),d=n(9331),f=n(4672),h=function(m){function v(){var b=m.call(this)||this;return b.closed=!1,b.currentObservers=null,b.observers=[],b.isStopped=!1,b.hasError=!1,b.thrownError=null,b}return s(v,m),v.prototype.lift=function(b){var g=new _(this,this);return g.operator=b,g},v.prototype._throwIfClosed=function(){if(this.closed)throw new l.ObjectUnsubscribedError},v.prototype.next=function(b){var g=this;f.errorContext(function(){var w,T;if(g._throwIfClosed(),!g.isStopped){g.currentObservers||(g.currentObservers=Array.from(g.observers));try{for(var P=c(g.currentObservers),k=P.next();!k.done;k=P.next())k.value.next(b)}catch(x){w={error:x}}finally{try{k&&!k.done&&(T=P.return)&&T.call(P)}finally{if(w)throw w.error}}}})},v.prototype.error=function(b){var g=this;f.errorContext(function(){if(g._throwIfClosed(),!g.isStopped){g.hasError=g.isStopped=!0,g.thrownError=b;for(var w=g.observers;w.length;)w.shift().error(b)}})},v.prototype.complete=function(){var b=this;f.errorContext(function(){if(b._throwIfClosed(),!b.isStopped){b.isStopped=!0;for(var g=b.observers;g.length;)g.shift().complete()}})},v.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(v.prototype,"observed",{get:function(){var b;return((b=this.observers)===null||b===void 0?void 0:b.length)>0},enumerable:!1,configurable:!0}),v.prototype._trySubscribe=function(b){return this._throwIfClosed(),m.prototype._trySubscribe.call(this,b)},v.prototype._subscribe=function(b){return this._throwIfClosed(),this._checkFinalizedStatuses(b),this._innerSubscribe(b)},v.prototype._innerSubscribe=function(b){var g=this,w=this,T=w.hasError,P=w.isStopped,k=w.observers;return T||P?a.EMPTY_SUBSCRIPTION:(this.currentObservers=null,k.push(b),new a.Subscription(function(){g.currentObservers=null,d.arrRemove(k,b)}))},v.prototype._checkFinalizedStatuses=function(b){var g=this,w=g.hasError,T=g.thrownError,P=g.isStopped;w?b.error(T):P&&b.complete()},v.prototype.asObservable=function(){var b=new u.Observable;return b.source=this,b},v.create=function(b,g){return new _(b,g)},v}(u.Observable);e.Subject=h;var _=function(m){function v(b,g){var w=m.call(this)||this;return w.destination=b,w.source=g,w}return s(v,m),v.prototype.next=function(b){var g,w;(w=(g=this.destination)===null||g===void 0?void 0:g.next)===null||w===void 0||w.call(g,b)},v.prototype.error=function(b){var g,w;(w=(g=this.destination)===null||g===void 0?void 0:g.error)===null||w===void 0||w.call(g,b)},v.prototype.complete=function(){var b,g;(g=(b=this.destination)===null||b===void 0?void 0:b.complete)===null||g===void 0||g.call(b)},v.prototype._subscribe=function(b){var g,w;return(w=(g=this.source)===null||g===void 0?void 0:g.subscribe(b))!==null&&w!==void 0?w:a.EMPTY_SUBSCRIPTION},v}(h);e.AnonymousSubject=_},8:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(k,x){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,C){R.__proto__=C}||function(R,C){for(var j in C)Object.prototype.hasOwnProperty.call(C,j)&&(R[j]=C[j])},i(k,x)},function(k,x){if(typeof x!="function"&&x!==null)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function R(){this.constructor=k}i(k,x),k.prototype=x===null?Object.create(x):(R.prototype=x.prototype,new R)});Object.defineProperty(e,"__esModule",{value:!0}),e.EMPTY_OBSERVER=e.SafeSubscriber=e.Subscriber=void 0;var c=n(7528),u=n(1536),a=n(7004),l=n(6136),d=n(892),f=n(7736),h=n(172),_=n(4672),m=function(k){function x(R){var C=k.call(this)||this;return C.isStopped=!1,R?(C.destination=R,u.isSubscription(R)&&R.add(C)):C.destination=e.EMPTY_OBSERVER,C}return s(x,k),x.create=function(R,C,j){return new w(R,C,j)},x.prototype.next=function(R){this.isStopped?P(f.nextNotification(R),this):this._next(R)},x.prototype.error=function(R){this.isStopped?P(f.errorNotification(R),this):(this.isStopped=!0,this._error(R))},x.prototype.complete=function(){this.isStopped?P(f.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},x.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,k.prototype.unsubscribe.call(this),this.destination=null)},x.prototype._next=function(R){this.destination.next(R)},x.prototype._error=function(R){try{this.destination.error(R)}finally{this.unsubscribe()}},x.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},x}(u.Subscription);e.Subscriber=m;var v=Function.prototype.bind;function b(k,x){return v.call(k,x)}var g=function(){function k(x){this.partialObserver=x}return k.prototype.next=function(x){var R=this.partialObserver;if(R.next)try{R.next(x)}catch(C){T(C)}},k.prototype.error=function(x){var R=this.partialObserver;if(R.error)try{R.error(x)}catch(C){T(C)}else T(x)},k.prototype.complete=function(){var x=this.partialObserver;if(x.complete)try{x.complete()}catch(R){T(R)}},k}(),w=function(k){function x(R,C,j){var L,D,F=k.call(this)||this;return c.isFunction(R)||!R?L={next:R??void 0,error:C??void 0,complete:j??void 0}:F&&a.config.useDeprecatedNextContext?((D=Object.create(R)).unsubscribe=function(){return F.unsubscribe()},L={next:R.next&&b(R.next,D),error:R.error&&b(R.error,D),complete:R.complete&&b(R.complete,D)}):L=R,F.destination=new g(L),F}return s(x,k),x}(m);function T(k){a.config.useDeprecatedSynchronousErrorHandling?_.captureError(k):l.reportUnhandledError(k)}function P(k,x){var R=a.config.onStoppedNotification;R&&h.timeoutProvider.setTimeout(function(){return R(k,x)})}e.SafeSubscriber=w,e.EMPTY_OBSERVER={closed:!0,next:d.noop,error:function(k){throw k},complete:d.noop}},1536:function(r,e,n){"use strict";var i=this&&this.__values||function(h){var _=typeof Symbol=="function"&&Symbol.iterator,m=_&&h[_],v=0;if(m)return m.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&v>=h.length&&(h=void 0),{value:h&&h[v++],done:!h}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(h,_){var m=typeof Symbol=="function"&&h[Symbol.iterator];if(!m)return h;var v,b,g=m.call(h),w=[];try{for(;(_===void 0||_-- >0)&&!(v=g.next()).done;)w.push(v.value)}catch(T){b={error:T}}finally{try{v&&!v.done&&(m=g.return)&&m.call(g)}finally{if(b)throw b.error}}return w},c=this&&this.__spreadArray||function(h,_){for(var m=0,v=_.length,b=h.length;m<v;m++,b++)h[b]=_[m];return h};Object.defineProperty(e,"__esModule",{value:!0}),e.isSubscription=e.EMPTY_SUBSCRIPTION=e.Subscription=void 0;var u=n(7528),a=n(3952),l=n(9331),d=function(){function h(m){this.initialTeardown=m,this.closed=!1,this._parentage=null,this._finalizers=null}var _;return h.prototype.unsubscribe=function(){var m,v,b,g,w;if(!this.closed){this.closed=!0;var T=this._parentage;if(T)if(this._parentage=null,Array.isArray(T))try{for(var P=i(T),k=P.next();!k.done;k=P.next())k.value.remove(this)}catch(D){m={error:D}}finally{try{k&&!k.done&&(v=P.return)&&v.call(P)}finally{if(m)throw m.error}}else T.remove(this);var x=this.initialTeardown;if(u.isFunction(x))try{x()}catch(D){w=D instanceof a.UnsubscriptionError?D.errors:[D]}var R=this._finalizers;if(R){this._finalizers=null;try{for(var C=i(R),j=C.next();!j.done;j=C.next()){var L=j.value;try{f(L)}catch(D){w=w??[],D instanceof a.UnsubscriptionError?w=c(c([],s(w)),s(D.errors)):w.push(D)}}}catch(D){b={error:D}}finally{try{j&&!j.done&&(g=C.return)&&g.call(C)}finally{if(b)throw b.error}}}if(w)throw new a.UnsubscriptionError(w)}},h.prototype.add=function(m){var v;if(m&&m!==this)if(this.closed)f(m);else{if(m instanceof h){if(m.closed||m._hasParent(this))return;m._addParent(this)}(this._finalizers=(v=this._finalizers)!==null&&v!==void 0?v:[]).push(m)}},h.prototype._hasParent=function(m){var v=this._parentage;return v===m||Array.isArray(v)&&v.includes(m)},h.prototype._addParent=function(m){var v=this._parentage;this._parentage=Array.isArray(v)?(v.push(m),v):v?[v,m]:m},h.prototype._removeParent=function(m){var v=this._parentage;v===m?this._parentage=null:Array.isArray(v)&&l.arrRemove(v,m)},h.prototype.remove=function(m){var v=this._finalizers;v&&l.arrRemove(v,m),m instanceof h&&m._removeParent(this)},h.EMPTY=((_=new h).closed=!0,_),h}();function f(h){u.isFunction(h)?h():h.unsubscribe()}e.Subscription=d,e.EMPTY_SUBSCRIPTION=d.EMPTY,e.isSubscription=function(h){return h instanceof d||h&&"closed"in h&&u.isFunction(h.remove)&&u.isFunction(h.add)&&u.isFunction(h.unsubscribe)}},7004:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.config=void 0,e.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},8356:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.firstValueFrom=void 0;var i=n(1424),s=n(8);e.firstValueFrom=function(c,u){var a=typeof u=="object";return new Promise(function(l,d){var f=new s.SafeSubscriber({next:function(h){l(h),f.unsubscribe()},error:d,complete:function(){a?l(u.defaultValue):d(new i.EmptyError)}});c.subscribe(f)})}},7256:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lastValueFrom=void 0;var i=n(1424);e.lastValueFrom=function(s,c){var u=typeof c=="object";return new Promise(function(a,l){var d,f=!1;s.subscribe({next:function(h){d=h,f=!0},error:l,complete:function(){f?a(d):u?a(c.defaultValue):l(new i.EmptyError)}})})}},9304:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(h,_){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&(m[b]=v[b])},i(h,_)},function(h,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function m(){this.constructor=h}i(h,_),h.prototype=_===null?Object.create(_):(m.prototype=_.prototype,new m)});Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectableObservable=void 0;var c=n(9332),u=n(1536),a=n(3120),l=n(48),d=n(6676),f=function(h){function _(m,v){var b=h.call(this)||this;return b.source=m,b.subjectFactory=v,b._subject=null,b._refCount=0,b._connection=null,d.hasLift(m)&&(b.lift=m.lift),b}return s(_,h),_.prototype._subscribe=function(m){return this.getSubject().subscribe(m)},_.prototype.getSubject=function(){var m=this._subject;return m&&!m.isStopped||(this._subject=this.subjectFactory()),this._subject},_.prototype._teardown=function(){this._refCount=0;var m=this._connection;this._subject=this._connection=null,m?.unsubscribe()},_.prototype.connect=function(){var m=this,v=this._connection;if(!v){v=this._connection=new u.Subscription;var b=this.getSubject();v.add(this.source.subscribe(l.createOperatorSubscriber(b,void 0,function(){m._teardown(),b.complete()},function(g){m._teardown(),b.error(g)},function(){return m._teardown()}))),v.closed&&(this._connection=null,v=u.Subscription.EMPTY)}return v},_.prototype.refCount=function(){return a.refCount()(this)},_}(c.Observable);e.ConnectableObservable=f},9904:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bindCallback=void 0;var i=n(9276);e.bindCallback=function(s,c,u){return i.bindCallbackInternals(!1,s,c,u)}},9276:function(r,e,n){"use strict";var i=this&&this.__read||function(h,_){var m=typeof Symbol=="function"&&h[Symbol.iterator];if(!m)return h;var v,b,g=m.call(h),w=[];try{for(;(_===void 0||_-- >0)&&!(v=g.next()).done;)w.push(v.value)}catch(T){b={error:T}}finally{try{v&&!v.done&&(m=g.return)&&m.call(g)}finally{if(b)throw b.error}}return w},s=this&&this.__spreadArray||function(h,_){for(var m=0,v=_.length,b=h.length;m<v;m++,b++)h[b]=_[m];return h};Object.defineProperty(e,"__esModule",{value:!0}),e.bindCallbackInternals=void 0;var c=n(3264),u=n(9332),a=n(8212),l=n(872),d=n(3064),f=n(1892);e.bindCallbackInternals=function h(_,m,v,b){if(v){if(!c.isScheduler(v))return function(){for(var g=[],w=0;w<arguments.length;w++)g[w]=arguments[w];return h(_,m,b).apply(this,g).pipe(l.mapOneOrManyArgs(v))};b=v}return b?function(){for(var g=[],w=0;w<arguments.length;w++)g[w]=arguments[w];return h(_,m).apply(this,g).pipe(a.subscribeOn(b),d.observeOn(b))}:function(){for(var g=this,w=[],T=0;T<arguments.length;T++)w[T]=arguments[T];var P=new f.AsyncSubject,k=!0;return new u.Observable(function(x){var R=P.subscribe(x);if(k){k=!1;var C=!1,j=!1;m.apply(g,s(s([],i(w)),[function(){for(var L=[],D=0;D<arguments.length;D++)L[D]=arguments[D];if(_){var F=L.shift();if(F!=null)return void P.error(F)}P.next(1<L.length?L:L[0]),j=!0,C&&P.complete()}])),j&&P.complete(),C=!0}return R})}}},7044:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bindNodeCallback=void 0;var i=n(9276);e.bindNodeCallback=function(s,c,u){return i.bindCallbackInternals(!0,s,c,u)}},7240:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.combineLatestInit=e.combineLatest=void 0;var i=n(9332),s=n(6680),c=n(6124),u=n(8760),a=n(872),l=n(1904),d=n(8872),f=n(48),h=n(4880);function _(v,b,g){return g===void 0&&(g=u.identity),function(w){m(b,function(){for(var T=v.length,P=new Array(T),k=T,x=T,R=function(j){m(b,function(){var L=c.from(v[j],b),D=!1;L.subscribe(f.createOperatorSubscriber(w,function(F){P[j]=F,D||(D=!0,x--),x||w.next(g(P.slice()))},function(){--k||w.complete()}))},w)},C=0;C<T;C++)R(C)},w)}}function m(v,b,g){v?h.executeSchedule(g,v,b):b()}e.combineLatest=function(){for(var v=[],b=0;b<arguments.length;b++)v[b]=arguments[b];var g=l.popScheduler(v),w=l.popResultSelector(v),T=s.argsArgArrayOrObject(v),P=T.args,k=T.keys;if(P.length===0)return c.from([],g);var x=new i.Observable(_(P,g,k?function(R){return d.createObject(k,R)}:u.identity));return w?x.pipe(a.mapOneOrManyArgs(w)):x},e.combineLatestInit=_},347:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.concat=void 0;var i=n(2708),s=n(1904),c=n(6124);e.concat=function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];return i.concatAll()(c.from(u,s.popScheduler(u)))}},5528:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.connectable=void 0;var i=n(5388),s=n(9332),c=n(5056),u={connector:function(){return new i.Subject},resetOnDisconnect:!0};e.connectable=function(a,l){l===void 0&&(l=u);var d=null,f=l.connector,h=l.resetOnDisconnect,_=h===void 0||h,m=f(),v=new s.Observable(function(b){return m.subscribe(b)});return v.connect=function(){return d&&!d.closed||(d=c.defer(function(){return a}).subscribe(m),_&&d.add(function(){return m=f()})),d},v}},5056:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defer=void 0;var i=n(9332),s=n(4720);e.defer=function(c){return new i.Observable(function(u){s.innerFrom(c()).subscribe(u)})}},4176:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.animationFrames=void 0;var i=n(9332),s=n(4296),c=n(5368);function u(l){return new i.Observable(function(d){var f=l||s.performanceTimestampProvider,h=f.now(),_=0,m=function(){d.closed||(_=c.animationFrameProvider.requestAnimationFrame(function(v){_=0;var b=f.now();d.next({timestamp:l?b:v,elapsed:b-h}),m()}))};return m(),function(){_&&c.animationFrameProvider.cancelAnimationFrame(_)}})}e.animationFrames=function(l){return l?u(l):a};var a=u()},9424:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.empty=e.EMPTY=void 0;var i=n(9332);e.EMPTY=new i.Observable(function(s){return s.complete()}),e.empty=function(s){return s?function(c){return new i.Observable(function(u){return c.schedule(function(){return u.complete()})})}(s):e.EMPTY}},4168:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forkJoin=void 0;var i=n(9332),s=n(6680),c=n(4720),u=n(1904),a=n(48),l=n(872),d=n(8872);e.forkJoin=function(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];var _=u.popResultSelector(f),m=s.argsArgArrayOrObject(f),v=m.args,b=m.keys,g=new i.Observable(function(w){var T=v.length;if(T)for(var P=new Array(T),k=T,x=T,R=function(j){var L=!1;c.innerFrom(v[j]).subscribe(a.createOperatorSubscriber(w,function(D){L||(L=!0,x--),P[j]=D},function(){return k--},void 0,function(){k&&L||(x||w.next(b?d.createObject(b,P):P),w.complete())}))},C=0;C<T;C++)R(C);else w.complete()});return _?g.pipe(l.mapOneOrManyArgs(_)):g}},6124:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.from=void 0;var i=n(3716),s=n(4720);e.from=function(c,u){return u?i.scheduled(c,u):s.innerFrom(c)}},5948:function(r,e,n){"use strict";var i=this&&this.__read||function(v,b){var g=typeof Symbol=="function"&&v[Symbol.iterator];if(!g)return v;var w,T,P=g.call(v),k=[];try{for(;(b===void 0||b-- >0)&&!(w=P.next()).done;)k.push(w.value)}catch(x){T={error:x}}finally{try{w&&!w.done&&(g=P.return)&&g.call(P)}finally{if(T)throw T.error}}return k};Object.defineProperty(e,"__esModule",{value:!0}),e.fromEvent=void 0;var s=n(4720),c=n(9332),u=n(9829),a=n(8531),l=n(7528),d=n(872),f=["addListener","removeListener"],h=["addEventListener","removeEventListener"],_=["on","off"];function m(v,b){return function(g){return function(w){return v[g](b,w)}}}e.fromEvent=function v(b,g,w,T){if(l.isFunction(w)&&(T=w,w=void 0),T)return v(b,g,w).pipe(d.mapOneOrManyArgs(T));var P=i(function(R){return l.isFunction(R.addEventListener)&&l.isFunction(R.removeEventListener)}(b)?h.map(function(R){return function(C){return b[R](g,C,w)}}):function(R){return l.isFunction(R.addListener)&&l.isFunction(R.removeListener)}(b)?f.map(m(b,g)):function(R){return l.isFunction(R.on)&&l.isFunction(R.off)}(b)?_.map(m(b,g)):[],2),k=P[0],x=P[1];if(!k&&a.isArrayLike(b))return u.mergeMap(function(R){return v(R,g,w)})(s.innerFrom(b));if(!k)throw new TypeError("Invalid event target");return new c.Observable(function(R){var C=function(){for(var j=[],L=0;L<arguments.length;L++)j[L]=arguments[L];return R.next(1<j.length?j:j[0])};return k(C),function(){return x(C)}})}},9680:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromEventPattern=void 0;var i=n(9332),s=n(7528),c=n(872);e.fromEventPattern=function u(a,l,d){return d?u(a,l).pipe(c.mapOneOrManyArgs(d)):new i.Observable(function(f){var h=function(){for(var m=[],v=0;v<arguments.length;v++)m[v]=arguments[v];return f.next(m.length===1?m[0]:m)},_=a(h);return s.isFunction(l)?function(){return l(h,_)}:void 0})}},1712:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromSubscribable=void 0;var i=n(9332);e.fromSubscribable=function(s){return new i.Observable(function(c){return s.subscribe(c)})}},1328:function(r,e,n){"use strict";var i=this&&this.__generator||function(l,d){var f,h,_,m,v={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return m={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function b(g){return function(w){return function(T){if(f)throw new TypeError("Generator is already executing.");for(;v;)try{if(f=1,h&&(_=2&T[0]?h.return:T[0]?h.throw||((_=h.return)&&_.call(h),0):h.next)&&!(_=_.call(h,T[1])).done)return _;switch(h=0,_&&(T=[2&T[0],_.value]),T[0]){case 0:case 1:_=T;break;case 4:return v.label++,{value:T[1],done:!1};case 5:v.label++,h=T[1],T=[0];continue;case 7:T=v.ops.pop(),v.trys.pop();continue;default:if(!((_=(_=v.trys).length>0&&_[_.length-1])||T[0]!==6&&T[0]!==2)){v=0;continue}if(T[0]===3&&(!_||T[1]>_[0]&&T[1]<_[3])){v.label=T[1];break}if(T[0]===6&&v.label<_[1]){v.label=_[1],_=T;break}if(_&&v.label<_[2]){v.label=_[2],v.ops.push(T);break}_[2]&&v.ops.pop(),v.trys.pop();continue}T=d.call(l,v)}catch(P){T=[6,P],h=0}finally{f=_=0}if(5&T[0])throw T[1];return{value:T[0]?T[1]:void 0,done:!0}}([g,w])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.generate=void 0;var s=n(8760),c=n(3264),u=n(5056),a=n(8184);e.generate=function(l,d,f,h,_){var m,v,b,g;function w(){var T;return i(this,function(P){switch(P.label){case 0:T=g,P.label=1;case 1:return d&&!d(T)?[3,4]:[4,b(T)];case 2:P.sent(),P.label=3;case 3:return T=f(T),[3,1];case 4:return[2]}})}return arguments.length===1?(g=(m=l).initialState,d=m.condition,f=m.iterate,v=m.resultSelector,b=v===void 0?s.identity:v,_=m.scheduler):(g=l,!h||c.isScheduler(h)?(b=s.identity,_=h):b=h),u.defer(_?function(){return a.scheduleIterable(w(),_)}:w)}},4560:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.iif=void 0;var i=n(5056);e.iif=function(s,c,u){return i.defer(function(){return s()?c:u})}},4720:function(r,e,n){"use strict";var i=this&&this.__awaiter||function(j,L,D,F){return new(D||(D=Promise))(function(q,z){function K(he){try{X(F.next(he))}catch(te){z(te)}}function se(he){try{X(F.throw(he))}catch(te){z(te)}}function X(he){var te;he.done?q(he.value):(te=he.value,te instanceof D?te:new D(function(xe){xe(te)})).then(K,se)}X((F=F.apply(j,L||[])).next())})},s=this&&this.__generator||function(j,L){var D,F,q,z,K={label:0,sent:function(){if(1&q[0])throw q[1];return q[1]},trys:[],ops:[]};return z={next:se(0),throw:se(1),return:se(2)},typeof Symbol=="function"&&(z[Symbol.iterator]=function(){return this}),z;function se(X){return function(he){return function(te){if(D)throw new TypeError("Generator is already executing.");for(;K;)try{if(D=1,F&&(q=2&te[0]?F.return:te[0]?F.throw||((q=F.return)&&q.call(F),0):F.next)&&!(q=q.call(F,te[1])).done)return q;switch(F=0,q&&(te=[2&te[0],q.value]),te[0]){case 0:case 1:q=te;break;case 4:return K.label++,{value:te[1],done:!1};case 5:K.label++,F=te[1],te=[0];continue;case 7:te=K.ops.pop(),K.trys.pop();continue;default:if(!((q=(q=K.trys).length>0&&q[q.length-1])||te[0]!==6&&te[0]!==2)){K=0;continue}if(te[0]===3&&(!q||te[1]>q[0]&&te[1]<q[3])){K.label=te[1];break}if(te[0]===6&&K.label<q[1]){K.label=q[1],q=te;break}if(q&&K.label<q[2]){K.label=q[2],K.ops.push(te);break}q[2]&&K.ops.pop(),K.trys.pop();continue}te=L.call(j,K)}catch(xe){te=[6,xe],F=0}finally{D=q=0}if(5&te[0])throw te[1];return{value:te[0]?te[1]:void 0,done:!0}}([X,he])}}},c=this&&this.__asyncValues||function(j){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var L,D=j[Symbol.asyncIterator];return D?D.call(j):(j=typeof u=="function"?u(j):j[Symbol.iterator](),L={},F("next"),F("throw"),F("return"),L[Symbol.asyncIterator]=function(){return this},L);function F(q){L[q]=j[q]&&function(z){return new Promise(function(K,se){(function(X,he,te,xe){Promise.resolve(xe).then(function(Ke){X({value:Ke,done:te})},he)})(K,se,(z=j[q](z)).done,z.value)})}}},u=this&&this.__values||function(j){var L=typeof Symbol=="function"&&Symbol.iterator,D=L&&j[L],F=0;if(D)return D.call(j);if(j&&typeof j.length=="number")return{next:function(){return j&&F>=j.length&&(j=void 0),{value:j&&j[F++],done:!j}}};throw new TypeError(L?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.fromReadableStreamLike=e.fromAsyncIterable=e.fromIterable=e.fromPromise=e.fromArrayLike=e.fromInteropObservable=e.innerFrom=void 0;var a=n(8531),l=n(1580),d=n(9332),f=n(3780),h=n(4616),_=n(8304),m=n(7576),v=n(9144),b=n(7528),g=n(6136),w=n(1908);function T(j){return new d.Observable(function(L){var D=j[w.observable]();if(b.isFunction(D.subscribe))return D.subscribe(L);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function P(j){return new d.Observable(function(L){for(var D=0;D<j.length&&!L.closed;D++)L.next(j[D]);L.complete()})}function k(j){return new d.Observable(function(L){j.then(function(D){L.closed||(L.next(D),L.complete())},function(D){return L.error(D)}).then(null,g.reportUnhandledError)})}function x(j){return new d.Observable(function(L){var D,F;try{for(var q=u(j),z=q.next();!z.done;z=q.next()){var K=z.value;if(L.next(K),L.closed)return}}catch(se){D={error:se}}finally{try{z&&!z.done&&(F=q.return)&&F.call(q)}finally{if(D)throw D.error}}L.complete()})}function R(j){return new d.Observable(function(L){(function(D,F){var q,z,K,se;return i(this,void 0,void 0,function(){var X,he;return s(this,function(te){switch(te.label){case 0:te.trys.push([0,5,6,11]),q=c(D),te.label=1;case 1:return[4,q.next()];case 2:if((z=te.sent()).done)return[3,4];if(X=z.value,F.next(X),F.closed)return[2];te.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return he=te.sent(),K={error:he},[3,11];case 6:return te.trys.push([6,,9,10]),z&&!z.done&&(se=q.return)?[4,se.call(q)]:[3,8];case 7:te.sent(),te.label=8;case 8:return[3,10];case 9:if(K)throw K.error;return[7];case 10:return[7];case 11:return F.complete(),[2]}})})})(j,L).catch(function(D){return L.error(D)})})}function C(j){return R(v.readableStreamLikeToAsyncGenerator(j))}e.innerFrom=function(j){if(j instanceof d.Observable)return j;if(j!=null){if(f.isInteropObservable(j))return T(j);if(a.isArrayLike(j))return P(j);if(l.isPromise(j))return k(j);if(h.isAsyncIterable(j))return R(j);if(m.isIterable(j))return x(j);if(v.isReadableStreamLike(j))return C(j)}throw _.createInvalidObservableTypeError(j)},e.fromInteropObservable=T,e.fromArrayLike=P,e.fromPromise=k,e.fromIterable=x,e.fromAsyncIterable=R,e.fromReadableStreamLike=C},9312:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.interval=void 0;var i=n(1416),s=n(4536);e.interval=function(c,u){return c===void 0&&(c=0),u===void 0&&(u=i.asyncScheduler),c<0&&(c=0),s.timer(c,c,u)}},8336:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var i=n(981),s=n(4720),c=n(9424),u=n(1904),a=n(6124);e.merge=function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var f=u.popScheduler(l),h=u.popNumber(l,1/0),_=l;return _.length?_.length===1?s.innerFrom(_[0]):i.mergeAll(h)(a.from(_,f)):c.EMPTY}},3504:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.never=e.NEVER=void 0;var i=n(9332),s=n(892);e.NEVER=new i.Observable(s.noop),e.never=function(){return e.NEVER}},5960:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.of=void 0;var i=n(1904),s=n(6124);e.of=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];var a=i.popScheduler(c);return s.from(c,a)}},5172:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.onErrorResumeNext=void 0;var i=n(9424),s=n(9596),c=n(9872);e.onErrorResumeNext=function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];return s.onErrorResumeNext(c.argsOrArgArray(u))(i.EMPTY)}},9643:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pairs=void 0;var i=n(6124);e.pairs=function(s,c){return i.from(Object.entries(s),c)}},21:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.partition=void 0;var i=n(2364),s=n(7424),c=n(4720);e.partition=function(u,a,l){return[s.filter(a,l)(c.innerFrom(u)),s.filter(i.not(a,l))(c.innerFrom(u))]}},6683:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.raceInit=e.race=void 0;var i=n(9332),s=n(4720),c=n(9872),u=n(48);function a(l){return function(d){for(var f=[],h=function(m){f.push(s.innerFrom(l[m]).subscribe(u.createOperatorSubscriber(d,function(v){if(f){for(var b=0;b<f.length;b++)b!==m&&f[b].unsubscribe();f=null}d.next(v)})))},_=0;f&&!d.closed&&_<l.length;_++)h(_)}}e.race=function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];return(l=c.argsOrArgArray(l)).length===1?s.innerFrom(l[0]):new i.Observable(a(l))},e.raceInit=a},9463:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.range=void 0;var i=n(9332),s=n(9424);e.range=function(c,u,a){if(u==null&&(u=c,c=0),u<=0)return s.EMPTY;var l=u+c;return new i.Observable(a?function(d){var f=c;return a.schedule(function(){f<l?(d.next(f++),this.schedule()):d.complete()})}:function(d){for(var f=c;f<l&&!d.closed;)d.next(f++);d.complete()})}},1684:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throwError=void 0;var i=n(9332),s=n(7528);e.throwError=function(c,u){var a=s.isFunction(c)?c:function(){return c},l=function(d){return d.error(a())};return new i.Observable(u?function(d){return u.schedule(l,0,d)}:l)}},4536:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.timer=void 0;var i=n(9332),s=n(1416),c=n(3264),u=n(2720);e.timer=function(a,l,d){a===void 0&&(a=0),d===void 0&&(d=s.async);var f=-1;return l!=null&&(c.isScheduler(l)?d=l:f=l),new i.Observable(function(h){var _=u.isValidDate(a)?+a-d.now():a;_<0&&(_=0);var m=0;return d.schedule(function(){h.closed||(h.next(m++),0<=f?this.schedule(void 0,f):h.complete())},_)})}},500:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.using=void 0;var i=n(9332),s=n(4720),c=n(9424);e.using=function(u,a){return new i.Observable(function(l){var d=u(),f=a(d);return(f?s.innerFrom(f):c.EMPTY).subscribe(l),function(){d&&d.unsubscribe()}})}},5456:function(r,e,n){"use strict";var i=this&&this.__read||function(h,_){var m=typeof Symbol=="function"&&h[Symbol.iterator];if(!m)return h;var v,b,g=m.call(h),w=[];try{for(;(_===void 0||_-- >0)&&!(v=g.next()).done;)w.push(v.value)}catch(T){b={error:T}}finally{try{v&&!v.done&&(m=g.return)&&m.call(g)}finally{if(b)throw b.error}}return w},s=this&&this.__spreadArray||function(h,_){for(var m=0,v=_.length,b=h.length;m<v;m++,b++)h[b]=_[m];return h};Object.defineProperty(e,"__esModule",{value:!0}),e.zip=void 0;var c=n(9332),u=n(4720),a=n(9872),l=n(9424),d=n(48),f=n(1904);e.zip=function(){for(var h=[],_=0;_<arguments.length;_++)h[_]=arguments[_];var m=f.popResultSelector(h),v=a.argsOrArgArray(h);return v.length?new c.Observable(function(b){var g=v.map(function(){return[]}),w=v.map(function(){return!1});b.add(function(){g=w=null});for(var T=function(k){u.innerFrom(v[k]).subscribe(d.createOperatorSubscriber(b,function(x){if(g[k].push(x),g.every(function(C){return C.length})){var R=g.map(function(C){return C.shift()});b.next(m?m.apply(void 0,s([],i(R))):R),g.some(function(C,j){return!C.length&&w[j]})&&b.complete()}},function(){w[k]=!0,!g[k].length&&b.complete()}))},P=0;!b.closed&&P<v.length;P++)T(P);return function(){g=w=null}}):l.EMPTY}},48:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(a,l){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(d[h]=f[h])},i(a,l)},function(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function d(){this.constructor=a}i(a,l),a.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(e,"__esModule",{value:!0}),e.OperatorSubscriber=e.createOperatorSubscriber=void 0;var c=n(8);e.createOperatorSubscriber=function(a,l,d,f,h){return new u(a,l,d,f,h)};var u=function(a){function l(d,f,h,_,m,v){var b=a.call(this,d)||this;return b.onFinalize=m,b.shouldUnsubscribe=v,b._next=f?function(g){try{f(g)}catch(w){d.error(w)}}:a.prototype._next,b._error=_?function(g){try{_(g)}catch(w){d.error(w)}finally{this.unsubscribe()}}:a.prototype._error,b._complete=h?function(){try{h()}catch(g){d.error(g)}finally{this.unsubscribe()}}:a.prototype._complete,b}return s(l,a),l.prototype.unsubscribe=function(){var d;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var f=this.closed;a.prototype.unsubscribe.call(this),!f&&((d=this.onFinalize)===null||d===void 0||d.call(this))}},l}(c.Subscriber);e.OperatorSubscriber=u},3824:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.audit=void 0;var i=n(6676),s=n(4720),c=n(48);e.audit=function(u){return i.operate(function(a,l){var d=!1,f=null,h=null,_=!1,m=function(){if(h?.unsubscribe(),h=null,d){d=!1;var b=f;f=null,l.next(b)}_&&l.complete()},v=function(){h=null,_&&l.complete()};a.subscribe(c.createOperatorSubscriber(l,function(b){d=!0,f=b,h||s.innerFrom(u(b)).subscribe(h=c.createOperatorSubscriber(l,m,v))},function(){_=!0,(!d||!h||h.closed)&&l.complete()}))})}},1016:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.auditTime=void 0;var i=n(1416),s=n(3824),c=n(4536);e.auditTime=function(u,a){return a===void 0&&(a=i.asyncScheduler),s.audit(function(){return c.timer(u,a)})}},4320:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.buffer=void 0;var i=n(6676),s=n(892),c=n(48);e.buffer=function(u){return i.operate(function(a,l){var d=[];return a.subscribe(c.createOperatorSubscriber(l,function(f){return d.push(f)},function(){l.next(d),l.complete()})),u.subscribe(c.createOperatorSubscriber(l,function(){var f=d;d=[],l.next(f)},s.noop)),function(){d=null}})}},8992:function(r,e,n){"use strict";var i=this&&this.__values||function(a){var l=typeof Symbol=="function"&&Symbol.iterator,d=l&&a[l],f=0;if(d)return d.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&f>=a.length&&(a=void 0),{value:a&&a[f++],done:!a}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.bufferCount=void 0;var s=n(6676),c=n(48),u=n(9331);e.bufferCount=function(a,l){return l===void 0&&(l=null),l=l??a,s.operate(function(d,f){var h=[],_=0;d.subscribe(c.createOperatorSubscriber(f,function(m){var v,b,g,w,T=null;_++%l==0&&h.push([]);try{for(var P=i(h),k=P.next();!k.done;k=P.next())(C=k.value).push(m),a<=C.length&&(T=T??[]).push(C)}catch(j){v={error:j}}finally{try{k&&!k.done&&(b=P.return)&&b.call(P)}finally{if(v)throw v.error}}if(T)try{for(var x=i(T),R=x.next();!R.done;R=x.next()){var C=R.value;u.arrRemove(h,C),f.next(C)}}catch(j){g={error:j}}finally{try{R&&!R.done&&(w=x.return)&&w.call(x)}finally{if(g)throw g.error}}},function(){var m,v;try{for(var b=i(h),g=b.next();!g.done;g=b.next()){var w=g.value;f.next(w)}}catch(T){m={error:T}}finally{try{g&&!g.done&&(v=b.return)&&v.call(b)}finally{if(m)throw m.error}}f.complete()},void 0,function(){h=null}))})}},4448:function(r,e,n){"use strict";var i=this&&this.__values||function(h){var _=typeof Symbol=="function"&&Symbol.iterator,m=_&&h[_],v=0;if(m)return m.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&v>=h.length&&(h=void 0),{value:h&&h[v++],done:!h}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.bufferTime=void 0;var s=n(1536),c=n(6676),u=n(48),a=n(9331),l=n(1416),d=n(1904),f=n(4880);e.bufferTime=function(h){for(var _,m,v=[],b=1;b<arguments.length;b++)v[b-1]=arguments[b];var g=(_=d.popScheduler(v))!==null&&_!==void 0?_:l.asyncScheduler,w=(m=v[0])!==null&&m!==void 0?m:null,T=v[1]||1/0;return c.operate(function(P,k){var x=[],R=!1,C=function(D){var F=D.buffer;D.subs.unsubscribe(),a.arrRemove(x,D),k.next(F),R&&j()},j=function(){if(x){var D=new s.Subscription;k.add(D);var F={buffer:[],subs:D};x.push(F),f.executeSchedule(D,g,function(){return C(F)},h)}};w!==null&&w>=0?f.executeSchedule(k,g,j,w,!0):R=!0,j();var L=u.createOperatorSubscriber(k,function(D){var F,q,z=x.slice();try{for(var K=i(z),se=K.next();!se.done;se=K.next()){var X=se.value,he=X.buffer;he.push(D),T<=he.length&&C(X)}}catch(te){F={error:te}}finally{try{se&&!se.done&&(q=K.return)&&q.call(K)}finally{if(F)throw F.error}}},function(){for(;x?.length;)k.next(x.shift().buffer);L?.unsubscribe(),k.complete(),k.unsubscribe()},void 0,function(){return x=null});P.subscribe(L)})}},5636:function(r,e,n){"use strict";var i=this&&this.__values||function(f){var h=typeof Symbol=="function"&&Symbol.iterator,_=h&&f[h],m=0;if(_)return _.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&m>=f.length&&(f=void 0),{value:f&&f[m++],done:!f}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.bufferToggle=void 0;var s=n(1536),c=n(6676),u=n(4720),a=n(48),l=n(892),d=n(9331);e.bufferToggle=function(f,h){return c.operate(function(_,m){var v=[];u.innerFrom(f).subscribe(a.createOperatorSubscriber(m,function(b){var g=[];v.push(g);var w=new s.Subscription;w.add(u.innerFrom(h(b)).subscribe(a.createOperatorSubscriber(m,function(){d.arrRemove(v,g),m.next(g),w.unsubscribe()},l.noop)))},l.noop)),_.subscribe(a.createOperatorSubscriber(m,function(b){var g,w;try{for(var T=i(v),P=T.next();!P.done;P=T.next())P.value.push(b)}catch(k){g={error:k}}finally{try{P&&!P.done&&(w=T.return)&&w.call(T)}finally{if(g)throw g.error}}},function(){for(;v.length>0;)m.next(v.shift());m.complete()}))})}},3096:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bufferWhen=void 0;var i=n(6676),s=n(892),c=n(48),u=n(4720);e.bufferWhen=function(a){return i.operate(function(l,d){var f=null,h=null,_=function(){h?.unsubscribe();var m=f;f=[],m&&d.next(m),u.innerFrom(a()).subscribe(h=c.createOperatorSubscriber(d,_,s.noop))};_(),l.subscribe(c.createOperatorSubscriber(d,function(m){return f?.push(m)},function(){f&&d.next(f),d.complete()},void 0,function(){return f=h=null}))})}},4464:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.catchError=void 0;var i=n(4720),s=n(48),c=n(6676);e.catchError=function u(a){return c.operate(function(l,d){var f,h=null,_=!1;h=l.subscribe(s.createOperatorSubscriber(d,void 0,void 0,function(m){f=i.innerFrom(a(m,u(a)(l))),h?(h.unsubscribe(),h=null,f.subscribe(d)):_=!0})),_&&(h.unsubscribe(),h=null,f.subscribe(d))})}},5028:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.combineAll=void 0;var i=n(1920);e.combineAll=i.combineLatestAll},9516:function(r,e,n){"use strict";var i=this&&this.__read||function(h,_){var m=typeof Symbol=="function"&&h[Symbol.iterator];if(!m)return h;var v,b,g=m.call(h),w=[];try{for(;(_===void 0||_-- >0)&&!(v=g.next()).done;)w.push(v.value)}catch(T){b={error:T}}finally{try{v&&!v.done&&(m=g.return)&&m.call(g)}finally{if(b)throw b.error}}return w},s=this&&this.__spreadArray||function(h,_){for(var m=0,v=_.length,b=h.length;m<v;m++,b++)h[b]=_[m];return h};Object.defineProperty(e,"__esModule",{value:!0}),e.combineLatest=void 0;var c=n(7240),u=n(6676),a=n(9872),l=n(872),d=n(488),f=n(1904);e.combineLatest=function h(){for(var _=[],m=0;m<arguments.length;m++)_[m]=arguments[m];var v=f.popResultSelector(_);return v?d.pipe(h.apply(void 0,s([],i(_))),l.mapOneOrManyArgs(v)):u.operate(function(b,g){c.combineLatestInit(s([b],i(a.argsOrArgArray(_))))(g)})}},1920:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.combineLatestAll=void 0;var i=n(7240),s=n(9864);e.combineLatestAll=function(c){return s.joinAllInternals(i.combineLatest,c)}},5832:function(r,e,n){"use strict";var i=this&&this.__read||function(u,a){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d,f,h=l.call(u),_=[];try{for(;(a===void 0||a-- >0)&&!(d=h.next()).done;)_.push(d.value)}catch(m){f={error:m}}finally{try{d&&!d.done&&(l=h.return)&&l.call(h)}finally{if(f)throw f.error}}return _},s=this&&this.__spreadArray||function(u,a){for(var l=0,d=a.length,f=u.length;l<d;l++,f++)u[f]=a[l];return u};Object.defineProperty(e,"__esModule",{value:!0}),e.combineLatestWith=void 0;var c=n(9516);e.combineLatestWith=function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];return c.combineLatest.apply(void 0,s([],i(u)))}},8192:function(r,e,n){"use strict";var i=this&&this.__read||function(d,f){var h=typeof Symbol=="function"&&d[Symbol.iterator];if(!h)return d;var _,m,v=h.call(d),b=[];try{for(;(f===void 0||f-- >0)&&!(_=v.next()).done;)b.push(_.value)}catch(g){m={error:g}}finally{try{_&&!_.done&&(h=v.return)&&h.call(v)}finally{if(m)throw m.error}}return b},s=this&&this.__spreadArray||function(d,f){for(var h=0,_=f.length,m=d.length;h<_;h++,m++)d[m]=f[h];return d};Object.defineProperty(e,"__esModule",{value:!0}),e.concat=void 0;var c=n(6676),u=n(2708),a=n(1904),l=n(6124);e.concat=function(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];var h=a.popScheduler(d);return c.operate(function(_,m){u.concatAll()(l.from(s([_],i(d)),h)).subscribe(m)})}},2708:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.concatAll=void 0;var i=n(981);e.concatAll=function(){return i.mergeAll(1)}},4912:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.concatMap=void 0;var i=n(9829),s=n(7528);e.concatMap=function(c,u){return s.isFunction(u)?i.mergeMap(c,u,1):i.mergeMap(c,1)}},9080:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.concatMapTo=void 0;var i=n(4912),s=n(7528);e.concatMapTo=function(c,u){return s.isFunction(u)?i.concatMap(function(){return c},u):i.concatMap(function(){return c})}},9440:function(r,e,n){"use strict";var i=this&&this.__read||function(u,a){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d,f,h=l.call(u),_=[];try{for(;(a===void 0||a-- >0)&&!(d=h.next()).done;)_.push(d.value)}catch(m){f={error:m}}finally{try{d&&!d.done&&(l=h.return)&&l.call(h)}finally{if(f)throw f.error}}return _},s=this&&this.__spreadArray||function(u,a){for(var l=0,d=a.length,f=u.length;l<d;l++,f++)u[f]=a[l];return u};Object.defineProperty(e,"__esModule",{value:!0}),e.concatWith=void 0;var c=n(8192);e.concatWith=function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];return c.concat.apply(void 0,s([],i(u)))}},7312:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.connect=void 0;var i=n(5388),s=n(4720),c=n(6676),u=n(1712),a={connector:function(){return new i.Subject}};e.connect=function(l,d){d===void 0&&(d=a);var f=d.connector;return c.operate(function(h,_){var m=f();s.innerFrom(l(u.fromSubscribable(m))).subscribe(_),_.add(h.subscribe(m))})}},1132:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.count=void 0;var i=n(4036);e.count=function(s){return i.reduce(function(c,u,a){return!s||s(u,a)?c+1:c},0)}},5924:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=void 0;var i=n(6676),s=n(892),c=n(48),u=n(4720);e.debounce=function(a){return i.operate(function(l,d){var f=!1,h=null,_=null,m=function(){if(_?.unsubscribe(),_=null,f){f=!1;var v=h;h=null,d.next(v)}};l.subscribe(c.createOperatorSubscriber(d,function(v){_?.unsubscribe(),f=!0,h=v,_=c.createOperatorSubscriber(d,m,s.noop),u.innerFrom(a(v)).subscribe(_)},function(){m(),d.complete()},void 0,function(){h=_=null}))})}},3600:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.debounceTime=void 0;var i=n(1416),s=n(6676),c=n(48);e.debounceTime=function(u,a){return a===void 0&&(a=i.asyncScheduler),s.operate(function(l,d){var f=null,h=null,_=null,m=function(){if(f){f.unsubscribe(),f=null;var b=h;h=null,d.next(b)}};function v(){var b=_+u,g=a.now();if(g<b)return f=this.schedule(void 0,b-g),void d.add(f);m()}l.subscribe(c.createOperatorSubscriber(d,function(b){h=b,_=a.now(),f||(f=a.schedule(v,u),d.add(f))},function(){m(),d.complete()},void 0,function(){h=f=null}))})}},6204:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultIfEmpty=void 0;var i=n(6676),s=n(48);e.defaultIfEmpty=function(c){return i.operate(function(u,a){var l=!1;u.subscribe(s.createOperatorSubscriber(a,function(d){l=!0,a.next(d)},function(){l||a.next(c),a.complete()}))})}},7752:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.delay=void 0;var i=n(1416),s=n(7532),c=n(4536);e.delay=function(u,a){a===void 0&&(a=i.asyncScheduler);var l=c.timer(u,a);return s.delayWhen(function(){return l})}},7532:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.delayWhen=void 0;var i=n(347),s=n(5688),c=n(4664),u=n(6544),a=n(9829);e.delayWhen=function l(d,f){return f?function(h){return i.concat(f.pipe(s.take(1),c.ignoreElements()),h.pipe(l(d)))}:a.mergeMap(function(h,_){return d(h,_).pipe(s.take(1),u.mapTo(h))})}},6491:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dematerialize=void 0;var i=n(1800),s=n(6676),c=n(48);e.dematerialize=function(){return s.operate(function(u,a){u.subscribe(c.createOperatorSubscriber(a,function(l){return i.observeNotification(l,a)}))})}},3976:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distinct=void 0;var i=n(6676),s=n(48),c=n(892);e.distinct=function(u,a){return i.operate(function(l,d){var f=new Set;l.subscribe(s.createOperatorSubscriber(d,function(h){var _=u?u(h):h;f.has(_)||(f.add(_),d.next(h))})),a?.subscribe(s.createOperatorSubscriber(d,function(){return f.clear()},c.noop))})}},8987:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distinctUntilChanged=void 0;var i=n(8760),s=n(6676),c=n(48);function u(a,l){return a===l}e.distinctUntilChanged=function(a,l){return l===void 0&&(l=i.identity),a=a??u,s.operate(function(d,f){var h,_=!0;d.subscribe(c.createOperatorSubscriber(f,function(m){var v=l(m);!_&&a(h,v)||(_=!1,h=v,f.next(m))}))})}},4288:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distinctUntilKeyChanged=void 0;var i=n(8987);e.distinctUntilKeyChanged=function(s,c){return i.distinctUntilChanged(function(u,a){return c?c(u[s],a[s]):u[s]===a[s]})}},1320:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.elementAt=void 0;var i=n(8028),s=n(7424),c=n(6400),u=n(6204),a=n(5688);e.elementAt=function(l,d){if(l<0)throw new i.ArgumentOutOfRangeError;var f=arguments.length>=2;return function(h){return h.pipe(s.filter(function(_,m){return m===l}),a.take(1),f?u.defaultIfEmpty(d):c.throwIfEmpty(function(){return new i.ArgumentOutOfRangeError}))}}},4028:function(r,e,n){"use strict";var i=this&&this.__read||function(a,l){var d=typeof Symbol=="function"&&a[Symbol.iterator];if(!d)return a;var f,h,_=d.call(a),m=[];try{for(;(l===void 0||l-- >0)&&!(f=_.next()).done;)m.push(f.value)}catch(v){h={error:v}}finally{try{f&&!f.done&&(d=_.return)&&d.call(_)}finally{if(h)throw h.error}}return m},s=this&&this.__spreadArray||function(a,l){for(var d=0,f=l.length,h=a.length;d<f;d++,h++)a[h]=l[d];return a};Object.defineProperty(e,"__esModule",{value:!0}),e.endWith=void 0;var c=n(347),u=n(5960);e.endWith=function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return function(d){return c.concat(d,u.of.apply(void 0,s([],i(a))))}}},2528:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.every=void 0;var i=n(6676),s=n(48);e.every=function(c,u){return i.operate(function(a,l){var d=0;a.subscribe(s.createOperatorSubscriber(l,function(f){c.call(u,f,d++,a)||(l.next(!1),l.complete())},function(){l.next(!0),l.complete()}))})}},9372:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.exhaust=void 0;var i=n(668);e.exhaust=i.exhaustAll},668:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.exhaustAll=void 0;var i=n(7332),s=n(8760);e.exhaustAll=function(){return i.exhaustMap(s.identity)}},7332:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.exhaustMap=void 0;var i=n(7144),s=n(4720),c=n(6676),u=n(48);e.exhaustMap=function a(l,d){return d?function(f){return f.pipe(a(function(h,_){return s.innerFrom(l(h,_)).pipe(i.map(function(m,v){return d(h,m,_,v)}))}))}:c.operate(function(f,h){var _=0,m=null,v=!1;f.subscribe(u.createOperatorSubscriber(h,function(b){m||(m=u.createOperatorSubscriber(h,void 0,function(){m=null,v&&h.complete()}),s.innerFrom(l(b,_++)).subscribe(m))},function(){v=!0,!m&&h.complete()}))})}},400:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.expand=void 0;var i=n(6676),s=n(7948);e.expand=function(c,u,a){return u===void 0&&(u=1/0),u=(u||0)<1?1/0:u,i.operate(function(l,d){return s.mergeInternals(l,d,c,u,void 0,!0,a)})}},7424:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.filter=void 0;var i=n(6676),s=n(48);e.filter=function(c,u){return i.operate(function(a,l){var d=0;a.subscribe(s.createOperatorSubscriber(l,function(f){return c.call(u,f,d++)&&l.next(f)}))})}},8424:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.finalize=void 0;var i=n(6676);e.finalize=function(s){return i.operate(function(c,u){try{c.subscribe(u)}finally{u.add(s)}})}},2328:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFind=e.find=void 0;var i=n(6676),s=n(48);function c(u,a,l){var d=l==="index";return function(f,h){var _=0;f.subscribe(s.createOperatorSubscriber(h,function(m){var v=_++;u.call(a,m,v,f)&&(h.next(d?v:m),h.complete())},function(){h.next(d?-1:void 0),h.complete()}))}}e.find=function(u,a){return i.operate(c(u,a,"value"))},e.createFind=c},8168:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findIndex=void 0;var i=n(6676),s=n(2328);e.findIndex=function(c,u){return i.operate(s.createFind(c,u,"index"))}},1564:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.first=void 0;var i=n(1424),s=n(7424),c=n(5688),u=n(6204),a=n(6400),l=n(8760);e.first=function(d,f){var h=arguments.length>=2;return function(_){return _.pipe(d?s.filter(function(m,v){return d(m,v,_)}):l.identity,c.take(1),h?u.defaultIfEmpty(f):a.throwIfEmpty(function(){return new i.EmptyError}))}}},9190:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.flatMap=void 0;var i=n(9829);e.flatMap=i.mergeMap},3499:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.groupBy=void 0;var i=n(9332),s=n(4720),c=n(5388),u=n(6676),a=n(48);e.groupBy=function(l,d,f,h){return u.operate(function(_,m){var v;d&&typeof d!="function"?(f=d.duration,v=d.element,h=d.connector):v=d;var b=new Map,g=function(x){b.forEach(x),x(m)},w=function(x){return g(function(R){return R.error(x)})},T=0,P=!1,k=new a.OperatorSubscriber(m,function(x){try{var R=l(x),C=b.get(R);if(!C){b.set(R,C=h?h():new c.Subject);var j=(D=R,F=C,(q=new i.Observable(function(z){T++;var K=F.subscribe(z);return function(){K.unsubscribe(),--T==0&&P&&k.unsubscribe()}})).key=D,q);if(m.next(j),f){var L=a.createOperatorSubscriber(C,function(){C.complete(),L?.unsubscribe()},void 0,void 0,function(){return b.delete(R)});k.add(s.innerFrom(f(j)).subscribe(L))}}C.next(v?v(x):x)}catch(z){w(z)}var D,F,q},function(){return g(function(x){return x.complete()})},w,function(){return b.clear()},function(){return P=!0,T===0});_.subscribe(k)})}},4664:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ignoreElements=void 0;var i=n(6676),s=n(48),c=n(892);e.ignoreElements=function(){return i.operate(function(u,a){u.subscribe(s.createOperatorSubscriber(a,c.noop))})}},3320:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=void 0;var i=n(6676),s=n(48);e.isEmpty=function(){return i.operate(function(c,u){c.subscribe(s.createOperatorSubscriber(u,function(){u.next(!1),u.complete()},function(){u.next(!0),u.complete()}))})}},9864:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinAllInternals=void 0;var i=n(8760),s=n(872),c=n(488),u=n(9829),a=n(1572);e.joinAllInternals=function(l,d){return c.pipe(a.toArray(),u.mergeMap(function(f){return l(f)}),d?s.mapOneOrManyArgs(d):i.identity)}},2804:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.last=void 0;var i=n(1424),s=n(7424),c=n(384),u=n(6400),a=n(6204),l=n(8760);e.last=function(d,f){var h=arguments.length>=2;return function(_){return _.pipe(d?s.filter(function(m,v){return d(m,v,_)}):l.identity,c.takeLast(1),h?a.defaultIfEmpty(f):u.throwIfEmpty(function(){return new i.EmptyError}))}}},7144:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.map=void 0;var i=n(6676),s=n(48);e.map=function(c,u){return i.operate(function(a,l){var d=0;a.subscribe(s.createOperatorSubscriber(l,function(f){l.next(c.call(u,f,d++))}))})}},6544:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mapTo=void 0;var i=n(7144);e.mapTo=function(s){return i.map(function(){return s})}},224:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.materialize=void 0;var i=n(1800),s=n(6676),c=n(48);e.materialize=function(){return s.operate(function(u,a){u.subscribe(c.createOperatorSubscriber(a,function(l){a.next(i.Notification.createNext(l))},function(){a.next(i.Notification.createComplete()),a.complete()},function(l){a.next(i.Notification.createError(l)),a.complete()}))})}},5594:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.max=void 0;var i=n(4036),s=n(7528);e.max=function(c){return i.reduce(s.isFunction(c)?function(u,a){return c(u,a)>0?u:a}:function(u,a){return u>a?u:a})}},4824:function(r,e,n){"use strict";var i=this&&this.__read||function(f,h){var _=typeof Symbol=="function"&&f[Symbol.iterator];if(!_)return f;var m,v,b=_.call(f),g=[];try{for(;(h===void 0||h-- >0)&&!(m=b.next()).done;)g.push(m.value)}catch(w){v={error:w}}finally{try{m&&!m.done&&(_=b.return)&&_.call(b)}finally{if(v)throw v.error}}return g},s=this&&this.__spreadArray||function(f,h){for(var _=0,m=h.length,v=f.length;_<m;_++,v++)f[v]=h[_];return f};Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var c=n(6676),u=n(9872),a=n(981),l=n(1904),d=n(6124);e.merge=function(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];var _=l.popScheduler(f),m=l.popNumber(f,1/0);return f=u.argsOrArgArray(f),c.operate(function(v,b){a.mergeAll(m)(d.from(s([v],i(f)),_)).subscribe(b)})}},981:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeAll=void 0;var i=n(9829),s=n(8760);e.mergeAll=function(c){return c===void 0&&(c=1/0),i.mergeMap(s.identity,c)}},7948:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeInternals=void 0;var i=n(4720),s=n(4880),c=n(48);e.mergeInternals=function(u,a,l,d,f,h,_,m){var v=[],b=0,g=0,w=!1,T=function(){!w||v.length||b||a.complete()},P=function(x){return b<d?k(x):v.push(x)},k=function(x){h&&a.next(x),b++;var R=!1;i.innerFrom(l(x,g++)).subscribe(c.createOperatorSubscriber(a,function(C){f?.(C),h?P(C):a.next(C)},function(){R=!0},void 0,function(){if(R)try{b--;for(var C=function(){var j=v.shift();_?s.executeSchedule(a,_,function(){return k(j)}):k(j)};v.length&&b<d;)C();T()}catch(j){a.error(j)}}))};return u.subscribe(c.createOperatorSubscriber(a,P,function(){w=!0,T()})),function(){m?.()}}},9829:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeMap=void 0;var i=n(7144),s=n(4720),c=n(6676),u=n(7948),a=n(7528);e.mergeMap=function l(d,f,h){return h===void 0&&(h=1/0),a.isFunction(f)?l(function(_,m){return i.map(function(v,b){return f(_,v,m,b)})(s.innerFrom(d(_,m)))},h):(typeof f=="number"&&(h=f),c.operate(function(_,m){return u.mergeInternals(_,m,d,h)}))}},3744:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeMapTo=void 0;var i=n(9829),s=n(7528);e.mergeMapTo=function(c,u,a){return a===void 0&&(a=1/0),s.isFunction(u)?i.mergeMap(function(){return c},u,a):(typeof u=="number"&&(a=u),i.mergeMap(function(){return c},a))}},6632:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeScan=void 0;var i=n(6676),s=n(7948);e.mergeScan=function(c,u,a){return a===void 0&&(a=1/0),i.operate(function(l,d){var f=u;return s.mergeInternals(l,d,function(h,_){return c(f,h,_)},a,function(h){f=h},!1,void 0,function(){return f=null})})}},364:function(r,e,n){"use strict";var i=this&&this.__read||function(u,a){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d,f,h=l.call(u),_=[];try{for(;(a===void 0||a-- >0)&&!(d=h.next()).done;)_.push(d.value)}catch(m){f={error:m}}finally{try{d&&!d.done&&(l=h.return)&&l.call(h)}finally{if(f)throw f.error}}return _},s=this&&this.__spreadArray||function(u,a){for(var l=0,d=a.length,f=u.length;l<d;l++,f++)u[f]=a[l];return u};Object.defineProperty(e,"__esModule",{value:!0}),e.mergeWith=void 0;var c=n(4824);e.mergeWith=function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];return c.merge.apply(void 0,s([],i(u)))}},1171:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.min=void 0;var i=n(4036),s=n(7528);e.min=function(c){return i.reduce(s.isFunction(c)?function(u,a){return c(u,a)<0?u:a}:function(u,a){return u<a?u:a})}},8324:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.multicast=void 0;var i=n(9304),s=n(7528),c=n(7312);e.multicast=function(u,a){var l=s.isFunction(u)?u:function(){return u};return s.isFunction(a)?c.connect(a,{connector:l}):function(d){return new i.ConnectableObservable(d,l)}}},3064:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.observeOn=void 0;var i=n(4880),s=n(6676),c=n(48);e.observeOn=function(u,a){return a===void 0&&(a=0),s.operate(function(l,d){l.subscribe(c.createOperatorSubscriber(d,function(f){return i.executeSchedule(d,u,function(){return d.next(f)},a)},function(){return i.executeSchedule(d,u,function(){return d.complete()},a)},function(f){return i.executeSchedule(d,u,function(){return d.error(f)},a)}))})}},9596:function(r,e,n){"use strict";var i=this&&this.__read||function(f,h){var _=typeof Symbol=="function"&&f[Symbol.iterator];if(!_)return f;var m,v,b=_.call(f),g=[];try{for(;(h===void 0||h-- >0)&&!(m=b.next()).done;)g.push(m.value)}catch(w){v={error:w}}finally{try{m&&!m.done&&(_=b.return)&&_.call(b)}finally{if(v)throw v.error}}return g},s=this&&this.__spreadArray||function(f,h){for(var _=0,m=h.length,v=f.length;_<m;_++,v++)f[v]=h[_];return f};Object.defineProperty(e,"__esModule",{value:!0}),e.onErrorResumeNext=void 0;var c=n(6676),u=n(4720),a=n(9872),l=n(48),d=n(892);e.onErrorResumeNext=function(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];var _=a.argsOrArgArray(f);return c.operate(function(m,v){var b=s([m],i(_)),g=function(){if(!v.closed)if(b.length>0){var w=void 0;try{w=u.innerFrom(b.shift())}catch{return void g()}var T=l.createOperatorSubscriber(v,void 0,d.noop,d.noop);w.subscribe(T),T.add(g)}else v.complete()};g()})}},8948:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pairwise=void 0;var i=n(6676),s=n(48);e.pairwise=function(){return i.operate(function(c,u){var a,l=!1;c.subscribe(s.createOperatorSubscriber(u,function(d){var f=a;a=d,l&&u.next([f,d]),l=!0}))})}},7680:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pluck=void 0;var i=n(7144);e.pluck=function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];var u=s.length;if(u===0)throw new Error("list of properties cannot be empty.");return i.map(function(a){for(var l=a,d=0;d<u;d++){var f=l?.[s[d]];if(f===void 0)return;l=f}return l})}},8228:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.publish=void 0;var i=n(5388),s=n(8324),c=n(7312);e.publish=function(u){return u?function(a){return c.connect(u)(a)}:function(a){return s.multicast(new i.Subject)(a)}}},4662:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.publishBehavior=void 0;var i=n(315),s=n(9304);e.publishBehavior=function(c){return function(u){var a=new i.BehaviorSubject(c);return new s.ConnectableObservable(u,function(){return a})}}},1636:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.publishLast=void 0;var i=n(1892),s=n(9304);e.publishLast=function(){return function(c){var u=new i.AsyncSubject;return new s.ConnectableObservable(c,function(){return u})}}},6956:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.publishReplay=void 0;var i=n(1964),s=n(8324),c=n(7528);e.publishReplay=function(u,a,l,d){l&&!c.isFunction(l)&&(d=l);var f=c.isFunction(l)?l:void 0;return function(h){return s.multicast(new i.ReplaySubject(u,a,d),f)(h)}}},5412:function(r,e,n){"use strict";var i=this&&this.__read||function(l,d){var f=typeof Symbol=="function"&&l[Symbol.iterator];if(!f)return l;var h,_,m=f.call(l),v=[];try{for(;(d===void 0||d-- >0)&&!(h=m.next()).done;)v.push(h.value)}catch(b){_={error:b}}finally{try{h&&!h.done&&(f=m.return)&&f.call(m)}finally{if(_)throw _.error}}return v},s=this&&this.__spreadArray||function(l,d){for(var f=0,h=d.length,_=l.length;f<h;f++,_++)l[_]=d[f];return l};Object.defineProperty(e,"__esModule",{value:!0}),e.raceWith=void 0;var c=n(6683),u=n(6676),a=n(8760);e.raceWith=function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];return l.length?u.operate(function(f,h){c.raceInit(s([f],i(l)))(h)}):a.identity}},4036:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.reduce=void 0;var i=n(3984),s=n(6676);e.reduce=function(c,u){return s.operate(i.scanInternals(c,u,arguments.length>=2,!1,!0))}},3120:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.refCount=void 0;var i=n(6676),s=n(48);e.refCount=function(){return i.operate(function(c,u){var a=null;c._refCount++;var l=s.createOperatorSubscriber(u,void 0,void 0,void 0,function(){if(!c||c._refCount<=0||0<--c._refCount)a=null;else{var d=c._connection,f=a;a=null,!d||f&&d!==f||d.unsubscribe(),u.unsubscribe()}});c.subscribe(l),l.closed||(a=c.connect())})}},2072:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.repeat=void 0;var i=n(9424),s=n(6676),c=n(48),u=n(4720),a=n(4536);e.repeat=function(l){var d,f,h=1/0;return l!=null&&(typeof l=="object"?(d=l.count,h=d===void 0?1/0:d,f=l.delay):h=l),h<=0?function(){return i.EMPTY}:s.operate(function(_,m){var v,b=0,g=function(){if(v?.unsubscribe(),v=null,f!=null){var T=typeof f=="number"?a.timer(f):u.innerFrom(f(b)),P=c.createOperatorSubscriber(m,function(){P.unsubscribe(),w()});T.subscribe(P)}else w()},w=function(){var T=!1;v=_.subscribe(c.createOperatorSubscriber(m,void 0,function(){++b<h?v?g():T=!0:m.complete()})),T&&g()};w()})}},1044:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.repeatWhen=void 0;var i=n(5388),s=n(6676),c=n(48);e.repeatWhen=function(u){return s.operate(function(a,l){var d,f,h=!1,_=!1,m=!1,v=function(){return m&&_&&(l.complete(),!0)},b=function(){m=!1,d=a.subscribe(c.createOperatorSubscriber(l,void 0,function(){m=!0,!v()&&(f||(f=new i.Subject,u(f).subscribe(c.createOperatorSubscriber(l,function(){d?b():h=!0},function(){_=!0,v()}))),f).next()})),h&&(d.unsubscribe(),d=null,h=!1,b())};b()})}},4848:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.retry=void 0;var i=n(6676),s=n(48),c=n(8760),u=n(4536),a=n(4720);e.retry=function(l){var d;l===void 0&&(l=1/0);var f=(d=l&&typeof l=="object"?l:{count:l}).count,h=f===void 0?1/0:f,_=d.delay,m=d.resetOnSuccess,v=m!==void 0&&m;return h<=0?c.identity:i.operate(function(b,g){var w,T=0,P=function(){var k=!1;w=b.subscribe(s.createOperatorSubscriber(g,function(x){v&&(T=0),g.next(x)},void 0,function(x){if(T++<h){var R=function(){w?(w.unsubscribe(),w=null,P()):k=!0};if(_!=null){var C=typeof _=="number"?u.timer(_):a.innerFrom(_(x,T)),j=s.createOperatorSubscriber(g,function(){j.unsubscribe(),R()},function(){g.complete()});C.subscribe(j)}else R()}else g.error(x)})),k&&(w.unsubscribe(),w=null,P())};P()})}},9292:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.retryWhen=void 0;var i=n(5388),s=n(6676),c=n(48);e.retryWhen=function(u){return s.operate(function(a,l){var d,f,h=!1,_=function(){d=a.subscribe(c.createOperatorSubscriber(l,void 0,void 0,function(m){f||(f=new i.Subject,u(f).subscribe(c.createOperatorSubscriber(l,function(){return d?_():h=!0}))),f&&f.next(m)})),h&&(d.unsubscribe(),d=null,h=!1,_())};_()})}},3076:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sample=void 0;var i=n(6676),s=n(892),c=n(48);e.sample=function(u){return i.operate(function(a,l){var d=!1,f=null;a.subscribe(c.createOperatorSubscriber(l,function(h){d=!0,f=h})),u.subscribe(c.createOperatorSubscriber(l,function(){if(d){d=!1;var h=f;f=null,l.next(h)}},s.noop))})}},2180:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sampleTime=void 0;var i=n(1416),s=n(3076),c=n(9312);e.sampleTime=function(u,a){return a===void 0&&(a=i.asyncScheduler),s.sample(c.interval(u,a))}},6424:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scan=void 0;var i=n(6676),s=n(3984);e.scan=function(c,u){return i.operate(s.scanInternals(c,u,arguments.length>=2,!0))}},3984:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scanInternals=void 0;var i=n(48);e.scanInternals=function(s,c,u,a,l){return function(d,f){var h=u,_=c,m=0;d.subscribe(i.createOperatorSubscriber(f,function(v){var b=m++;_=h?s(_,v,b):(h=!0,v),a&&f.next(_)},l&&function(){h&&f.next(_),f.complete()}))}}},6440:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sequenceEqual=void 0;var i=n(6676),s=n(48);e.sequenceEqual=function(c,u){return u===void 0&&(u=function(a,l){return a===l}),i.operate(function(a,l){var d={buffer:[],complete:!1},f={buffer:[],complete:!1},h=function(m){l.next(m),l.complete()},_=function(m,v){var b=s.createOperatorSubscriber(l,function(g){var w=v.buffer,T=v.complete;w.length===0?T?h(!1):m.buffer.push(g):!u(g,w.shift())&&h(!1)},function(){m.complete=!0;var g=v.complete,w=v.buffer;g&&h(w.length===0),b?.unsubscribe()});return b};a.subscribe(_(d,f)),c.subscribe(_(f,d))})}},6532:function(r,e,n){"use strict";var i=this&&this.__read||function(f,h){var _=typeof Symbol=="function"&&f[Symbol.iterator];if(!_)return f;var m,v,b=_.call(f),g=[];try{for(;(h===void 0||h-- >0)&&!(m=b.next()).done;)g.push(m.value)}catch(w){v={error:w}}finally{try{m&&!m.done&&(_=b.return)&&_.call(b)}finally{if(v)throw v.error}}return g},s=this&&this.__spreadArray||function(f,h){for(var _=0,m=h.length,v=f.length;_<m;_++,v++)f[v]=h[_];return f};Object.defineProperty(e,"__esModule",{value:!0}),e.share=void 0;var c=n(4720),u=n(5388),a=n(8),l=n(6676);function d(f,h){for(var _=[],m=2;m<arguments.length;m++)_[m-2]=arguments[m];if(h!==!0){if(h!==!1){var v=new a.SafeSubscriber({next:function(){v.unsubscribe(),f()}});return h.apply(void 0,s([],i(_))).subscribe(v)}}else f()}e.share=function(f){f===void 0&&(f={});var h=f.connector,_=h===void 0?function(){return new u.Subject}:h,m=f.resetOnError,v=m===void 0||m,b=f.resetOnComplete,g=b===void 0||b,w=f.resetOnRefCountZero,T=w===void 0||w;return function(P){var k,x,R,C=0,j=!1,L=!1,D=function(){x?.unsubscribe(),x=void 0},F=function(){D(),k=R=void 0,j=L=!1},q=function(){var z=k;F(),z?.unsubscribe()};return l.operate(function(z,K){C++,L||j||D();var se=R=R??_();K.add(function(){--C!=0||L||j||(x=d(q,T))}),se.subscribe(K),!k&&C>0&&(k=new a.SafeSubscriber({next:function(X){return se.next(X)},error:function(X){L=!0,D(),x=d(F,v,X),se.error(X)},complete:function(){j=!0,D(),x=d(F,g),se.complete()}}),c.innerFrom(z).subscribe(k))})(P)}}},4980:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shareReplay=void 0;var i=n(1964),s=n(6532);e.shareReplay=function(c,u,a){var l,d,f,h,_=!1;return c&&typeof c=="object"?(l=c.bufferSize,h=l===void 0?1/0:l,d=c.windowTime,u=d===void 0?1/0:d,_=(f=c.refCount)!==void 0&&f,a=c.scheduler):h=c??1/0,s.share({connector:function(){return new i.ReplaySubject(h,u,a)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:_})}},1400:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.single=void 0;var i=n(1424),s=n(6968),c=n(7628),u=n(6676),a=n(48);e.single=function(l){return u.operate(function(d,f){var h,_=!1,m=!1,v=0;d.subscribe(a.createOperatorSubscriber(f,function(b){m=!0,l&&!l(b,v++,d)||(_&&f.error(new s.SequenceError("Too many matching values")),_=!0,h=b)},function(){_?(f.next(h),f.complete()):f.error(m?new c.NotFoundError("No matching values"):new i.EmptyError)}))})}},7516:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.skip=void 0;var i=n(7424);e.skip=function(s){return i.filter(function(c,u){return s<=u})}},7211:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.skipLast=void 0;var i=n(8760),s=n(6676),c=n(48);e.skipLast=function(u){return u<=0?i.identity:s.operate(function(a,l){var d=new Array(u),f=0;return a.subscribe(c.createOperatorSubscriber(l,function(h){var _=f++;if(_<u)d[_]=h;else{var m=_%u,v=d[m];d[m]=h,l.next(v)}})),function(){d=null}})}},7136:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.skipUntil=void 0;var i=n(6676),s=n(48),c=n(4720),u=n(892);e.skipUntil=function(a){return i.operate(function(l,d){var f=!1,h=s.createOperatorSubscriber(d,function(){h?.unsubscribe(),f=!0},u.noop);c.innerFrom(a).subscribe(h),l.subscribe(s.createOperatorSubscriber(d,function(_){return f&&d.next(_)}))})}},7820:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.skipWhile=void 0;var i=n(6676),s=n(48);e.skipWhile=function(c){return i.operate(function(u,a){var l=!1,d=0;u.subscribe(s.createOperatorSubscriber(a,function(f){return(l||(l=!c(f,d++)))&&a.next(f)}))})}},3432:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.startWith=void 0;var i=n(347),s=n(1904),c=n(6676);e.startWith=function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];var l=s.popScheduler(u);return c.operate(function(d,f){(l?i.concat(u,d,l):i.concat(u,d)).subscribe(f)})}},8212:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.subscribeOn=void 0;var i=n(6676);e.subscribeOn=function(s,c){return c===void 0&&(c=0),i.operate(function(u,a){a.add(s.schedule(function(){return u.subscribe(a)},c))})}},1272:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.switchAll=void 0;var i=n(9456),s=n(8760);e.switchAll=function(){return i.switchMap(s.identity)}},9456:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.switchMap=void 0;var i=n(4720),s=n(6676),c=n(48);e.switchMap=function(u,a){return s.operate(function(l,d){var f=null,h=0,_=!1,m=function(){return _&&!f&&d.complete()};l.subscribe(c.createOperatorSubscriber(d,function(v){f?.unsubscribe();var b=0,g=h++;i.innerFrom(u(v,g)).subscribe(f=c.createOperatorSubscriber(d,function(w){return d.next(a?a(v,w,g,b++):w)},function(){f=null,m()}))},function(){_=!0,m()}))})}},8152:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.switchMapTo=void 0;var i=n(9456),s=n(7528);e.switchMapTo=function(c,u){return s.isFunction(u)?i.switchMap(function(){return c},u):i.switchMap(function(){return c})}},2600:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.switchScan=void 0;var i=n(9456),s=n(6676);e.switchScan=function(c,u){return s.operate(function(a,l){var d=u;return i.switchMap(function(f,h){return c(d,f,h)},function(f,h){return d=h,h})(a).subscribe(l),function(){d=null}})}},5688:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.take=void 0;var i=n(9424),s=n(6676),c=n(48);e.take=function(u){return u<=0?function(){return i.EMPTY}:s.operate(function(a,l){var d=0;a.subscribe(c.createOperatorSubscriber(l,function(f){++d<=u&&(l.next(f),u<=d&&l.complete())}))})}},384:function(r,e,n){"use strict";var i=this&&this.__values||function(a){var l=typeof Symbol=="function"&&Symbol.iterator,d=l&&a[l],f=0;if(d)return d.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&f>=a.length&&(a=void 0),{value:a&&a[f++],done:!a}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.takeLast=void 0;var s=n(9424),c=n(6676),u=n(48);e.takeLast=function(a){return a<=0?function(){return s.EMPTY}:c.operate(function(l,d){var f=[];l.subscribe(u.createOperatorSubscriber(d,function(h){f.push(h),a<f.length&&f.shift()},function(){var h,_;try{for(var m=i(f),v=m.next();!v.done;v=m.next()){var b=v.value;d.next(b)}}catch(g){h={error:g}}finally{try{v&&!v.done&&(_=m.return)&&_.call(m)}finally{if(h)throw h.error}}d.complete()},void 0,function(){f=null}))})}},220:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.takeUntil=void 0;var i=n(6676),s=n(48),c=n(4720),u=n(892);e.takeUntil=function(a){return i.operate(function(l,d){c.innerFrom(a).subscribe(s.createOperatorSubscriber(d,function(){return d.complete()},u.noop)),!d.closed&&l.subscribe(d)})}},7924:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.takeWhile=void 0;var i=n(6676),s=n(48);e.takeWhile=function(c,u){return u===void 0&&(u=!1),i.operate(function(a,l){var d=0;a.subscribe(s.createOperatorSubscriber(l,function(f){var h=c(f,d++);(h||u)&&l.next(f),!h&&l.complete()}))})}},2200:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tap=void 0;var i=n(7528),s=n(6676),c=n(48),u=n(8760);e.tap=function(a,l,d){var f=i.isFunction(a)||l||d?{next:a,error:l,complete:d}:a;return f?s.operate(function(h,_){var m;(m=f.subscribe)===null||m===void 0||m.call(f);var v=!0;h.subscribe(c.createOperatorSubscriber(_,function(b){var g;(g=f.next)===null||g===void 0||g.call(f,b),_.next(b)},function(){var b;v=!1,(b=f.complete)===null||b===void 0||b.call(f),_.complete()},function(b){var g;v=!1,(g=f.error)===null||g===void 0||g.call(f,b),_.error(b)},function(){var b,g;v&&((b=f.unsubscribe)===null||b===void 0||b.call(f)),(g=f.finalize)===null||g===void 0||g.call(f)}))}):u.identity}},6912:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=e.defaultThrottleConfig=void 0;var i=n(6676),s=n(48),c=n(4720);e.defaultThrottleConfig={leading:!0,trailing:!1},e.throttle=function(u,a){return a===void 0&&(a=e.defaultThrottleConfig),i.operate(function(l,d){var f=a.leading,h=a.trailing,_=!1,m=null,v=null,b=!1,g=function(){v?.unsubscribe(),v=null,h&&(P(),b&&d.complete())},w=function(){v=null,b&&d.complete()},T=function(k){return v=c.innerFrom(u(k)).subscribe(s.createOperatorSubscriber(d,g,w))},P=function(){if(_){_=!1;var k=m;m=null,d.next(k),!b&&T(k)}};l.subscribe(s.createOperatorSubscriber(d,function(k){_=!0,m=k,(!v||v.closed)&&(f?P():T(k))},function(){b=!0,(!(h&&_&&v)||v.closed)&&d.complete()}))})}},2085:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throttleTime=void 0;var i=n(1416),s=n(6912),c=n(4536);e.throttleTime=function(u,a,l){a===void 0&&(a=i.asyncScheduler),l===void 0&&(l=s.defaultThrottleConfig);var d=c.timer(u,a);return s.throttle(function(){return d},l)}},6400:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throwIfEmpty=void 0;var i=n(1424),s=n(6676),c=n(48);function u(){return new i.EmptyError}e.throwIfEmpty=function(a){return a===void 0&&(a=u),s.operate(function(l,d){var f=!1;l.subscribe(c.createOperatorSubscriber(d,function(h){f=!0,d.next(h)},function(){return f?d.complete():d.error(a())}))})}},2920:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TimeInterval=e.timeInterval=void 0;var i=n(1416),s=n(6676),c=n(48);e.timeInterval=function(a){return a===void 0&&(a=i.asyncScheduler),s.operate(function(l,d){var f=a.now();l.subscribe(c.createOperatorSubscriber(d,function(h){var _=a.now(),m=_-f;f=_,d.next(new u(h,m))}))})};var u=function(a,l){this.value=a,this.interval=l};e.TimeInterval=u},328:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.timeout=e.TimeoutError=void 0;var i=n(1416),s=n(2720),c=n(6676),u=n(4720),a=n(8188),l=n(48),d=n(4880);function f(h){throw new e.TimeoutError(h)}e.TimeoutError=a.createErrorClass(function(h){return function(_){_===void 0&&(_=null),h(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=_}}),e.timeout=function(h,_){var m=s.isValidDate(h)?{first:h}:typeof h=="number"?{each:h}:h,v=m.first,b=m.each,g=m.with,w=g===void 0?f:g,T=m.scheduler,P=T===void 0?_??i.asyncScheduler:T,k=m.meta,x=k===void 0?null:k;if(v==null&&b==null)throw new TypeError("No timeout provided.");return c.operate(function(R,C){var j,L,D=null,F=0,q=function(z){L=d.executeSchedule(C,P,function(){try{j.unsubscribe(),u.innerFrom(w({meta:x,lastValue:D,seen:F})).subscribe(C)}catch(K){C.error(K)}},z)};j=R.subscribe(l.createOperatorSubscriber(C,function(z){L?.unsubscribe(),F++,C.next(D=z),b>0&&q(b)},void 0,void 0,function(){L?.closed||L==null||L.unsubscribe(),D=null})),!F&&q(v!=null?typeof v=="number"?v:+v-P.now():b)})}},2244:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.timeoutWith=void 0;var i=n(1416),s=n(2720),c=n(328);e.timeoutWith=function(u,a,l){var d,f,h;if(l=l??i.async,s.isValidDate(u)?d=u:typeof u=="number"&&(f=u),!a)throw new TypeError("No observable provided to switch to");if(h=function(){return a},d==null&&f==null)throw new TypeError("No timeout provided.");return c.timeout({first:d,each:f,scheduler:l,with:h})}},4576:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.timestamp=void 0;var i=n(1312),s=n(7144);e.timestamp=function(c){return c===void 0&&(c=i.dateTimestampProvider),s.map(function(u){return{value:u,timestamp:c.now()}})}},1572:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toArray=void 0;var i=n(4036),s=n(6676),c=function(u,a){return u.push(a),u};e.toArray=function(){return s.operate(function(u,a){i.reduce(c,[])(u).subscribe(a)})}},4096:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.window=void 0;var i=n(5388),s=n(6676),c=n(48),u=n(892);e.window=function(a){return s.operate(function(l,d){var f=new i.Subject;d.next(f.asObservable());var h=function(_){f.error(_),d.error(_)};return l.subscribe(c.createOperatorSubscriber(d,function(_){return f?.next(_)},function(){f.complete(),d.complete()},h)),a.subscribe(c.createOperatorSubscriber(d,function(){f.complete(),d.next(f=new i.Subject)},u.noop,h)),function(){f?.unsubscribe(),f=null}})}},3100:function(r,e,n){"use strict";var i=this&&this.__values||function(a){var l=typeof Symbol=="function"&&Symbol.iterator,d=l&&a[l],f=0;if(d)return d.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&f>=a.length&&(a=void 0),{value:a&&a[f++],done:!a}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.windowCount=void 0;var s=n(5388),c=n(6676),u=n(48);e.windowCount=function(a,l){l===void 0&&(l=0);var d=l>0?l:a;return c.operate(function(f,h){var _=[new s.Subject],m=0;h.next(_[0].asObservable()),f.subscribe(u.createOperatorSubscriber(h,function(v){var b,g;try{for(var w=i(_),T=w.next();!T.done;T=w.next())T.value.next(v)}catch(x){b={error:x}}finally{try{T&&!T.done&&(g=w.return)&&g.call(w)}finally{if(b)throw b.error}}var P=m-a+1;if(P>=0&&P%d==0&&_.shift().complete(),++m%d==0){var k=new s.Subject;_.push(k),h.next(k.asObservable())}},function(){for(;_.length>0;)_.shift().complete();h.complete()},function(v){for(;_.length>0;)_.shift().error(v);h.error(v)},function(){_=null}))})}},6652:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.windowTime=void 0;var i=n(5388),s=n(1416),c=n(1536),u=n(6676),a=n(48),l=n(9331),d=n(1904),f=n(4880);e.windowTime=function(h){for(var _,m,v=[],b=1;b<arguments.length;b++)v[b-1]=arguments[b];var g=(_=d.popScheduler(v))!==null&&_!==void 0?_:s.asyncScheduler,w=(m=v[0])!==null&&m!==void 0?m:null,T=v[1]||1/0;return u.operate(function(P,k){var x=[],R=!1,C=function(F){var q=F.window,z=F.subs;q.complete(),z.unsubscribe(),l.arrRemove(x,F),R&&j()},j=function(){if(x){var F=new c.Subscription;k.add(F);var q=new i.Subject,z={window:q,subs:F,seen:0};x.push(z),k.next(q.asObservable()),f.executeSchedule(F,g,function(){return C(z)},h)}};w!==null&&w>=0?f.executeSchedule(k,g,j,w,!0):R=!0,j();var L=function(F){return x.slice().forEach(F)},D=function(F){L(function(q){var z=q.window;return F(z)}),F(k),k.unsubscribe()};return P.subscribe(a.createOperatorSubscriber(k,function(F){L(function(q){q.window.next(F),T<=++q.seen&&C(q)})},function(){return D(function(F){return F.complete()})},function(F){return D(function(q){return q.error(F)})})),function(){x=null}})}},3592:function(r,e,n){"use strict";var i=this&&this.__values||function(h){var _=typeof Symbol=="function"&&Symbol.iterator,m=_&&h[_],v=0;if(m)return m.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&v>=h.length&&(h=void 0),{value:h&&h[v++],done:!h}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.windowToggle=void 0;var s=n(5388),c=n(1536),u=n(6676),a=n(4720),l=n(48),d=n(892),f=n(9331);e.windowToggle=function(h,_){return u.operate(function(m,v){var b=[],g=function(w){for(;0<b.length;)b.shift().error(w);v.error(w)};a.innerFrom(h).subscribe(l.createOperatorSubscriber(v,function(w){var T=new s.Subject;b.push(T);var P,k=new c.Subscription;try{P=a.innerFrom(_(w))}catch(x){return void g(x)}v.next(T.asObservable()),k.add(P.subscribe(l.createOperatorSubscriber(v,function(){f.arrRemove(b,T),T.complete(),k.unsubscribe()},d.noop,g)))},d.noop)),m.subscribe(l.createOperatorSubscriber(v,function(w){var T,P,k=b.slice();try{for(var x=i(k),R=x.next();!R.done;R=x.next())R.value.next(w)}catch(C){T={error:C}}finally{try{R&&!R.done&&(P=x.return)&&P.call(x)}finally{if(T)throw T.error}}},function(){for(;0<b.length;)b.shift().complete();v.complete()},g,function(){for(;0<b.length;)b.shift().unsubscribe()}))})}},4256:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.windowWhen=void 0;var i=n(5388),s=n(6676),c=n(48),u=n(4720);e.windowWhen=function(a){return s.operate(function(l,d){var f,h,_=function(v){f.error(v),d.error(v)},m=function(){var v;h?.unsubscribe(),f?.complete(),f=new i.Subject,d.next(f.asObservable());try{v=u.innerFrom(a())}catch(b){return void _(b)}v.subscribe(h=c.createOperatorSubscriber(d,m,m,_))};m(),l.subscribe(c.createOperatorSubscriber(d,function(v){return f.next(v)},function(){f.complete(),d.complete()},_,function(){h?.unsubscribe(),f=null}))})}},5432:function(r,e,n){"use strict";var i=this&&this.__read||function(h,_){var m=typeof Symbol=="function"&&h[Symbol.iterator];if(!m)return h;var v,b,g=m.call(h),w=[];try{for(;(_===void 0||_-- >0)&&!(v=g.next()).done;)w.push(v.value)}catch(T){b={error:T}}finally{try{v&&!v.done&&(m=g.return)&&m.call(g)}finally{if(b)throw b.error}}return w},s=this&&this.__spreadArray||function(h,_){for(var m=0,v=_.length,b=h.length;m<v;m++,b++)h[b]=_[m];return h};Object.defineProperty(e,"__esModule",{value:!0}),e.withLatestFrom=void 0;var c=n(6676),u=n(48),a=n(4720),l=n(8760),d=n(892),f=n(1904);e.withLatestFrom=function(){for(var h=[],_=0;_<arguments.length;_++)h[_]=arguments[_];var m=f.popResultSelector(h);return c.operate(function(v,b){for(var g=h.length,w=new Array(g),T=h.map(function(){return!1}),P=!1,k=function(R){a.innerFrom(h[R]).subscribe(u.createOperatorSubscriber(b,function(C){w[R]=C,P||T[R]||(T[R]=!0,(P=T.every(l.identity))&&(T=null))},d.noop))},x=0;x<g;x++)k(x);v.subscribe(u.createOperatorSubscriber(b,function(R){if(P){var C=s([R],i(w));b.next(m?m.apply(void 0,s([],i(C))):C)}}))})}},8220:function(r,e,n){"use strict";var i=this&&this.__read||function(a,l){var d=typeof Symbol=="function"&&a[Symbol.iterator];if(!d)return a;var f,h,_=d.call(a),m=[];try{for(;(l===void 0||l-- >0)&&!(f=_.next()).done;)m.push(f.value)}catch(v){h={error:v}}finally{try{f&&!f.done&&(d=_.return)&&d.call(_)}finally{if(h)throw h.error}}return m},s=this&&this.__spreadArray||function(a,l){for(var d=0,f=l.length,h=a.length;d<f;d++,h++)a[h]=l[d];return a};Object.defineProperty(e,"__esModule",{value:!0}),e.zip=void 0;var c=n(5456),u=n(6676);e.zip=function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return u.operate(function(d,f){c.zip.apply(void 0,s([d],i(a))).subscribe(f)})}},3515:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.zipAll=void 0;var i=n(5456),s=n(9864);e.zipAll=function(c){return s.joinAllInternals(i.zip,c)}},5828:function(r,e,n){"use strict";var i=this&&this.__read||function(u,a){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d,f,h=l.call(u),_=[];try{for(;(a===void 0||a-- >0)&&!(d=h.next()).done;)_.push(d.value)}catch(m){f={error:m}}finally{try{d&&!d.done&&(l=h.return)&&l.call(h)}finally{if(f)throw f.error}}return _},s=this&&this.__spreadArray||function(u,a){for(var l=0,d=a.length,f=u.length;l<d;l++,f++)u[f]=a[l];return u};Object.defineProperty(e,"__esModule",{value:!0}),e.zipWith=void 0;var c=n(8220);e.zipWith=function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];return c.zip.apply(void 0,s([],i(u)))}},2060:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleArray=void 0;var i=n(9332);e.scheduleArray=function(s,c){return new i.Observable(function(u){var a=0;return c.schedule(function(){a===s.length?u.complete():(u.next(s[a++]),u.closed||this.schedule())})})}},4248:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleAsyncIterable=void 0;var i=n(9332),s=n(4880);e.scheduleAsyncIterable=function(c,u){if(!c)throw new Error("Iterable cannot be null");return new i.Observable(function(a){s.executeSchedule(a,u,function(){var l=c[Symbol.asyncIterator]();s.executeSchedule(a,u,function(){l.next().then(function(d){d.done?a.complete():a.next(d.value)})},0,!0)})})}},8184:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleIterable=void 0;var i=n(9332),s=n(496),c=n(7528),u=n(4880);e.scheduleIterable=function(a,l){return new i.Observable(function(d){var f;return u.executeSchedule(d,l,function(){f=a[s.iterator](),u.executeSchedule(d,l,function(){var h,_,m;try{_=(h=f.next()).value,m=h.done}catch(v){return void d.error(v)}m?d.complete():d.next(_)},0,!0)}),function(){return c.isFunction(f?.return)&&f.return()}})}},148:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleObservable=void 0;var i=n(4720),s=n(3064),c=n(8212);e.scheduleObservable=function(u,a){return i.innerFrom(u).pipe(c.subscribeOn(a),s.observeOn(a))}},2024:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.schedulePromise=void 0;var i=n(4720),s=n(3064),c=n(8212);e.schedulePromise=function(u,a){return i.innerFrom(u).pipe(c.subscribeOn(a),s.observeOn(a))}},6936:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleReadableStreamLike=void 0;var i=n(4248),s=n(9144);e.scheduleReadableStreamLike=function(c,u){return i.scheduleAsyncIterable(s.readableStreamLikeToAsyncGenerator(c),u)}},3716:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scheduled=void 0;var i=n(148),s=n(2024),c=n(2060),u=n(8184),a=n(4248),l=n(3780),d=n(1580),f=n(8531),h=n(7576),_=n(4616),m=n(8304),v=n(9144),b=n(6936);e.scheduled=function(g,w){if(g!=null){if(l.isInteropObservable(g))return i.scheduleObservable(g,w);if(f.isArrayLike(g))return c.scheduleArray(g,w);if(d.isPromise(g))return s.schedulePromise(g,w);if(_.isAsyncIterable(g))return a.scheduleAsyncIterable(g,w);if(h.isIterable(g))return u.scheduleIterable(g,w);if(v.isReadableStreamLike(g))return b.scheduleReadableStreamLike(g,w)}throw m.createInvalidObservableTypeError(g)}},5536:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(u,a){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(l[f]=d[f])},i(u,a)},function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function l(){this.constructor=u}i(u,a),u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)});Object.defineProperty(e,"__esModule",{value:!0}),e.Action=void 0;var c=function(u){function a(l,d){return u.call(this)||this}return s(a,u),a.prototype.schedule=function(l,d){return d===void 0&&(d=0),this},a}(n(1536).Subscription);e.Action=c},8820:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(l,d){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var _ in h)Object.prototype.hasOwnProperty.call(h,_)&&(f[_]=h[_])},i(l,d)},function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function f(){this.constructor=l}i(l,d),l.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)});Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationFrameAction=void 0;var c=n(1492),u=n(5368),a=function(l){function d(f,h){var _=l.call(this,f,h)||this;return _.scheduler=f,_.work=h,_}return s(d,l),d.prototype.requestAsyncId=function(f,h,_){return _===void 0&&(_=0),_!==null&&_>0?l.prototype.requestAsyncId.call(this,f,h,_):(f.actions.push(this),f._scheduled||(f._scheduled=u.animationFrameProvider.requestAnimationFrame(function(){return f.flush(void 0)})))},d.prototype.recycleAsyncId=function(f,h,_){var m;if(_===void 0&&(_=0),_!=null?_>0:this.delay>0)return l.prototype.recycleAsyncId.call(this,f,h,_);var v=f.actions;h!=null&&((m=v[v.length-1])===null||m===void 0?void 0:m.id)!==h&&(u.animationFrameProvider.cancelAnimationFrame(h),f._scheduled=void 0)},d}(c.AsyncAction);e.AnimationFrameAction=a},448:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(u,a){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(l[f]=d[f])},i(u,a)},function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function l(){this.constructor=u}i(u,a),u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)});Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationFrameScheduler=void 0;var c=function(u){function a(){return u!==null&&u.apply(this,arguments)||this}return s(a,u),a.prototype.flush=function(l){this._active=!0;var d=this._scheduled;this._scheduled=void 0;var f,h=this.actions;l=l||h.shift();do if(f=l.execute(l.state,l.delay))break;while((l=h[0])&&l.id===d&&h.shift());if(this._active=!1,f){for(;(l=h[0])&&l.id===d&&h.shift();)l.unsubscribe();throw f}},a}(n(9056).AsyncScheduler);e.AnimationFrameScheduler=c},7560:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(l,d){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var _ in h)Object.prototype.hasOwnProperty.call(h,_)&&(f[_]=h[_])},i(l,d)},function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function f(){this.constructor=l}i(l,d),l.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)});Object.defineProperty(e,"__esModule",{value:!0}),e.AsapAction=void 0;var c=n(1492),u=n(8268),a=function(l){function d(f,h){var _=l.call(this,f,h)||this;return _.scheduler=f,_.work=h,_}return s(d,l),d.prototype.requestAsyncId=function(f,h,_){return _===void 0&&(_=0),_!==null&&_>0?l.prototype.requestAsyncId.call(this,f,h,_):(f.actions.push(this),f._scheduled||(f._scheduled=u.immediateProvider.setImmediate(f.flush.bind(f,void 0))))},d.prototype.recycleAsyncId=function(f,h,_){var m;if(_===void 0&&(_=0),_!=null?_>0:this.delay>0)return l.prototype.recycleAsyncId.call(this,f,h,_);var v=f.actions;h!=null&&((m=v[v.length-1])===null||m===void 0?void 0:m.id)!==h&&(u.immediateProvider.clearImmediate(h),f._scheduled=void 0)},d}(c.AsyncAction);e.AsapAction=a},5268:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(u,a){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(l[f]=d[f])},i(u,a)},function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function l(){this.constructor=u}i(u,a),u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)});Object.defineProperty(e,"__esModule",{value:!0}),e.AsapScheduler=void 0;var c=function(u){function a(){return u!==null&&u.apply(this,arguments)||this}return s(a,u),a.prototype.flush=function(l){this._active=!0;var d=this._scheduled;this._scheduled=void 0;var f,h=this.actions;l=l||h.shift();do if(f=l.execute(l.state,l.delay))break;while((l=h[0])&&l.id===d&&h.shift());if(this._active=!1,f){for(;(l=h[0])&&l.id===d&&h.shift();)l.unsubscribe();throw f}},a}(n(9056).AsyncScheduler);e.AsapScheduler=c},1492:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(d,f){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,_){h.__proto__=_}||function(h,_){for(var m in _)Object.prototype.hasOwnProperty.call(_,m)&&(h[m]=_[m])},i(d,f)},function(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function h(){this.constructor=d}i(d,f),d.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)});Object.defineProperty(e,"__esModule",{value:!0}),e.AsyncAction=void 0;var c=n(5536),u=n(5355),a=n(9331),l=function(d){function f(h,_){var m=d.call(this,h,_)||this;return m.scheduler=h,m.work=_,m.pending=!1,m}return s(f,d),f.prototype.schedule=function(h,_){var m;if(_===void 0&&(_=0),this.closed)return this;this.state=h;var v=this.id,b=this.scheduler;return v!=null&&(this.id=this.recycleAsyncId(b,v,_)),this.pending=!0,this.delay=_,this.id=(m=this.id)!==null&&m!==void 0?m:this.requestAsyncId(b,this.id,_),this},f.prototype.requestAsyncId=function(h,_,m){return m===void 0&&(m=0),u.intervalProvider.setInterval(h.flush.bind(h,this),m)},f.prototype.recycleAsyncId=function(h,_,m){if(m===void 0&&(m=0),m!=null&&this.delay===m&&this.pending===!1)return _;_!=null&&u.intervalProvider.clearInterval(_)},f.prototype.execute=function(h,_){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var m=this._execute(h,_);if(m)return m;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},f.prototype._execute=function(h,_){var m,v=!1;try{this.work(h)}catch(b){v=!0,m=b||new Error("Scheduled action threw falsy error")}if(v)return this.unsubscribe(),m},f.prototype.unsubscribe=function(){if(!this.closed){var h=this.id,_=this.scheduler,m=_.actions;this.work=this.state=this.scheduler=null,this.pending=!1,a.arrRemove(m,this),h!=null&&(this.id=this.recycleAsyncId(_,h,null)),this.delay=null,d.prototype.unsubscribe.call(this)}},f}(c.Action);e.AsyncAction=l},9056:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(a,l){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(d[h]=f[h])},i(a,l)},function(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function d(){this.constructor=a}i(a,l),a.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(e,"__esModule",{value:!0}),e.AsyncScheduler=void 0;var c=n(3456),u=function(a){function l(d,f){f===void 0&&(f=c.Scheduler.now);var h=a.call(this,d,f)||this;return h.actions=[],h._active=!1,h}return s(l,a),l.prototype.flush=function(d){var f=this.actions;if(this._active)f.push(d);else{var h;this._active=!0;do if(h=d.execute(d.state,d.delay))break;while(d=f.shift());if(this._active=!1,h){for(;d=f.shift();)d.unsubscribe();throw h}}},l}(c.Scheduler);e.AsyncScheduler=u},9848:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(u,a){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(l[f]=d[f])},i(u,a)},function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function l(){this.constructor=u}i(u,a),u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)});Object.defineProperty(e,"__esModule",{value:!0}),e.QueueAction=void 0;var c=function(u){function a(l,d){var f=u.call(this,l,d)||this;return f.scheduler=l,f.work=d,f}return s(a,u),a.prototype.schedule=function(l,d){return d===void 0&&(d=0),d>0?u.prototype.schedule.call(this,l,d):(this.delay=d,this.state=l,this.scheduler.flush(this),this)},a.prototype.execute=function(l,d){return d>0||this.closed?u.prototype.execute.call(this,l,d):this._execute(l,d)},a.prototype.requestAsyncId=function(l,d,f){return f===void 0&&(f=0),f!=null&&f>0||f==null&&this.delay>0?u.prototype.requestAsyncId.call(this,l,d,f):(l.flush(this),0)},a}(n(1492).AsyncAction);e.QueueAction=c},4904:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(u,a){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(l[f]=d[f])},i(u,a)},function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function l(){this.constructor=u}i(u,a),u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)});Object.defineProperty(e,"__esModule",{value:!0}),e.QueueScheduler=void 0;var c=function(u){function a(){return u!==null&&u.apply(this,arguments)||this}return s(a,u),a}(n(9056).AsyncScheduler);e.QueueScheduler=c},9648:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(d,f){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,_){h.__proto__=_}||function(h,_){for(var m in _)Object.prototype.hasOwnProperty.call(_,m)&&(h[m]=_[m])},i(d,f)},function(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function h(){this.constructor=d}i(d,f),d.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)});Object.defineProperty(e,"__esModule",{value:!0}),e.VirtualAction=e.VirtualTimeScheduler=void 0;var c=n(1492),u=n(1536),a=function(d){function f(h,_){h===void 0&&(h=l),_===void 0&&(_=1/0);var m=d.call(this,h,function(){return m.frame})||this;return m.maxFrames=_,m.frame=0,m.index=-1,m}return s(f,d),f.prototype.flush=function(){for(var h,_,m=this.actions,v=this.maxFrames;(_=m[0])&&_.delay<=v&&(m.shift(),this.frame=_.delay,!(h=_.execute(_.state,_.delay))););if(h){for(;_=m.shift();)_.unsubscribe();throw h}},f.frameTimeFactor=10,f}(n(9056).AsyncScheduler);e.VirtualTimeScheduler=a;var l=function(d){function f(h,_,m){m===void 0&&(m=h.index+=1);var v=d.call(this,h,_)||this;return v.scheduler=h,v.work=_,v.index=m,v.active=!0,v.index=h.index=m,v}return s(f,d),f.prototype.schedule=function(h,_){if(_===void 0&&(_=0),Number.isFinite(_)){if(!this.id)return d.prototype.schedule.call(this,h,_);this.active=!1;var m=new f(this.scheduler,this.work);return this.add(m),m.schedule(h,_)}return u.Subscription.EMPTY},f.prototype.requestAsyncId=function(h,_,m){m===void 0&&(m=0),this.delay=h.frame+m;var v=h.actions;return v.push(this),v.sort(f.sortActions),1},f.prototype.recycleAsyncId=function(h,_,m){m===void 0&&(m=0)},f.prototype._execute=function(h,_){if(this.active===!0)return d.prototype._execute.call(this,h,_)},f.sortActions=function(h,_){return h.delay===_.delay?h.index===_.index?0:h.index>_.index?1:-1:h.delay>_.delay?1:-1},f}(c.AsyncAction);e.VirtualAction=l},652:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.animationFrame=e.animationFrameScheduler=void 0;var i=n(8820),s=n(448);e.animationFrameScheduler=new s.AnimationFrameScheduler(i.AnimationFrameAction),e.animationFrame=e.animationFrameScheduler},5368:function(r,e,n){"use strict";var i=this&&this.__read||function(u,a){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d,f,h=l.call(u),_=[];try{for(;(a===void 0||a-- >0)&&!(d=h.next()).done;)_.push(d.value)}catch(m){f={error:m}}finally{try{d&&!d.done&&(l=h.return)&&l.call(h)}finally{if(f)throw f.error}}return _},s=this&&this.__spreadArray||function(u,a){for(var l=0,d=a.length,f=u.length;l<d;l++,f++)u[f]=a[l];return u};Object.defineProperty(e,"__esModule",{value:!0}),e.animationFrameProvider=void 0;var c=n(1536);e.animationFrameProvider={schedule:function(u){var a=requestAnimationFrame,l=cancelAnimationFrame,d=e.animationFrameProvider.delegate;d&&(a=d.requestAnimationFrame,l=d.cancelAnimationFrame);var f=a(function(h){l=void 0,u(h)});return new c.Subscription(function(){return l?.(f)})},requestAnimationFrame:function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];var l=e.animationFrameProvider.delegate;return(l?.requestAnimationFrame||requestAnimationFrame).apply(void 0,s([],i(u)))},cancelAnimationFrame:function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];var l=e.animationFrameProvider.delegate;return(l?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,s([],i(u)))},delegate:void 0}},7640:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.asap=e.asapScheduler=void 0;var i=n(7560),s=n(5268);e.asapScheduler=new s.AsapScheduler(i.AsapAction),e.asap=e.asapScheduler},1416:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.async=e.asyncScheduler=void 0;var i=n(1492),s=n(9056);e.asyncScheduler=new s.AsyncScheduler(i.AsyncAction),e.async=e.asyncScheduler},1312:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dateTimestampProvider=void 0,e.dateTimestampProvider={now:function(){return(e.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},8268:function(r,e,n){"use strict";var i=this&&this.__read||function(l,d){var f=typeof Symbol=="function"&&l[Symbol.iterator];if(!f)return l;var h,_,m=f.call(l),v=[];try{for(;(d===void 0||d-- >0)&&!(h=m.next()).done;)v.push(h.value)}catch(b){_={error:b}}finally{try{h&&!h.done&&(f=m.return)&&f.call(m)}finally{if(_)throw _.error}}return v},s=this&&this.__spreadArray||function(l,d){for(var f=0,h=d.length,_=l.length;f<h;f++,_++)l[_]=d[f];return l};Object.defineProperty(e,"__esModule",{value:!0}),e.immediateProvider=void 0;var c=n(4768),u=c.Immediate.setImmediate,a=c.Immediate.clearImmediate;e.immediateProvider={setImmediate:function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var f=e.immediateProvider.delegate;return(f?.setImmediate||u).apply(void 0,s([],i(l)))},clearImmediate:function(l){var d=e.immediateProvider.delegate;return(d?.clearImmediate||a)(l)},delegate:void 0}},5355:function(r,e){"use strict";var n=this&&this.__read||function(s,c){var u=typeof Symbol=="function"&&s[Symbol.iterator];if(!u)return s;var a,l,d=u.call(s),f=[];try{for(;(c===void 0||c-- >0)&&!(a=d.next()).done;)f.push(a.value)}catch(h){l={error:h}}finally{try{a&&!a.done&&(u=d.return)&&u.call(d)}finally{if(l)throw l.error}}return f},i=this&&this.__spreadArray||function(s,c){for(var u=0,a=c.length,l=s.length;u<a;u++,l++)s[l]=c[u];return s};Object.defineProperty(e,"__esModule",{value:!0}),e.intervalProvider=void 0,e.intervalProvider={setInterval:function(s,c){for(var u=[],a=2;a<arguments.length;a++)u[a-2]=arguments[a];var l=e.intervalProvider.delegate;return l?.setInterval?l.setInterval.apply(l,i([s,c],n(u))):setInterval.apply(void 0,i([s,c],n(u)))},clearInterval:function(s){var c=e.intervalProvider.delegate;return(c?.clearInterval||clearInterval)(s)},delegate:void 0}},4296:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.performanceTimestampProvider=void 0,e.performanceTimestampProvider={now:function(){return(e.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}},6644:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.queue=e.queueScheduler=void 0;var i=n(9848),s=n(4904);e.queueScheduler=new s.QueueScheduler(i.QueueAction),e.queue=e.queueScheduler},172:function(r,e){"use strict";var n=this&&this.__read||function(s,c){var u=typeof Symbol=="function"&&s[Symbol.iterator];if(!u)return s;var a,l,d=u.call(s),f=[];try{for(;(c===void 0||c-- >0)&&!(a=d.next()).done;)f.push(a.value)}catch(h){l={error:h}}finally{try{a&&!a.done&&(u=d.return)&&u.call(d)}finally{if(l)throw l.error}}return f},i=this&&this.__spreadArray||function(s,c){for(var u=0,a=c.length,l=s.length;u<a;u++,l++)s[l]=c[u];return s};Object.defineProperty(e,"__esModule",{value:!0}),e.timeoutProvider=void 0,e.timeoutProvider={setTimeout:function(s,c){for(var u=[],a=2;a<arguments.length;a++)u[a-2]=arguments[a];var l=e.timeoutProvider.delegate;return l?.setTimeout?l.setTimeout.apply(l,i([s,c],n(u))):setTimeout.apply(void 0,i([s,c],n(u)))},clearTimeout:function(s){var c=e.timeoutProvider.delegate;return(c?.clearTimeout||clearTimeout)(s)},delegate:void 0}},496:(r,e)=>{"use strict";function n(){return typeof Symbol=="function"&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(e,"__esModule",{value:!0}),e.iterator=e.getSymbolIterator=void 0,e.getSymbolIterator=n,e.iterator=n()},1908:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.observable=void 0,e.observable=typeof Symbol=="function"&&Symbol.observable||"@@observable"},4828:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},8028:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArgumentOutOfRangeError=void 0;var i=n(8188);e.ArgumentOutOfRangeError=i.createErrorClass(function(s){return function(){s(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})},1424:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmptyError=void 0;var i=n(8188);e.EmptyError=i.createErrorClass(function(s){return function(){s(this),this.name="EmptyError",this.message="no elements in sequence"}})},4768:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TestTools=e.Immediate=void 0;var n,i=1,s={};function c(u){return u in s&&(delete s[u],!0)}e.Immediate={setImmediate:function(u){var a=i++;return s[a]=!0,n||(n=Promise.resolve()),n.then(function(){return c(a)&&u()}),a},clearImmediate:function(u){c(u)}},e.TestTools={pending:function(){return Object.keys(s).length}}},7628:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NotFoundError=void 0;var i=n(8188);e.NotFoundError=i.createErrorClass(function(s){return function(c){s(this),this.name="NotFoundError",this.message=c}})},740:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectUnsubscribedError=void 0;var i=n(8188);e.ObjectUnsubscribedError=i.createErrorClass(function(s){return function(){s(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})},6968:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SequenceError=void 0;var i=n(8188);e.SequenceError=i.createErrorClass(function(s){return function(c){s(this),this.name="SequenceError",this.message=c}})},3952:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UnsubscriptionError=void 0;var i=n(8188);e.UnsubscriptionError=i.createErrorClass(function(s){return function(c){s(this),this.message=c?c.length+` errors occurred during unsubscription:
|
|
872
|
+
`);function he(te){var xe=w(s.join(te,"prebuilds")).map(k).filter(x(_,h)).sort(R)[0];if(xe){var Ke=s.join(te,"prebuilds",xe.name),Q=w(Ke).map(C).filter(j(f,d)).sort(L(f))[0];return Q?s.join(Ke,Q.file):void 0}}},g.parseTags=C,g.matchTags=j,g.compareTags=L,g.parseTuple=k,g.matchTuple=x,g.compareTuples=R},5968:()=>{var r;(function(e){(function(n){var i=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),s=c(e);function c(u,a){return function(l,d){typeof u[l]!="function"&&Object.defineProperty(u,l,{configurable:!0,writable:!0,value:d}),a&&a(l,d)}}i.Reflect===void 0?i.Reflect=e:s=c(i.Reflect,s),function(u){var a=Object.prototype.hasOwnProperty,l=typeof Symbol=="function",d=l&&Symbol.toPrimitive!==void 0?Symbol.toPrimitive:"@@toPrimitive",f=l&&Symbol.iterator!==void 0?Symbol.iterator:"@@iterator",h=typeof Object.create=="function",_={__proto__:[]}instanceof Array,m=!h&&!_,v={create:h?function(){return zr(Object.create(null))}:_?function(){return zr({__proto__:null})}:function(){return zr({})},has:m?function($,H){return a.call($,H)}:function($,H){return H in $},get:m?function($,H){return a.call($,H)?$[H]:void 0}:function($,H){return $[H]}},b=Object.getPrototypeOf(Function),g=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",w=g||typeof Map!="function"||typeof Map.prototype.entries!="function"?function(){var $={},H=[],J=function(){function fe(Z,ae,N){this._index=0,this._keys=Z,this._values=ae,this._selector=N}return fe.prototype["@@iterator"]=function(){return this},fe.prototype[f]=function(){return this},fe.prototype.next=function(){var Z=this._index;if(Z>=0&&Z<this._keys.length){var ae=this._selector(this._keys[Z],this._values[Z]);return Z+1>=this._keys.length?(this._index=-1,this._keys=H,this._values=H):this._index++,{value:ae,done:!1}}return{value:void 0,done:!0}},fe.prototype.throw=function(Z){throw this._index>=0&&(this._index=-1,this._keys=H,this._values=H),Z},fe.prototype.return=function(Z){return this._index>=0&&(this._index=-1,this._keys=H,this._values=H),{value:Z,done:!0}},fe}();return function(){function fe(){this._keys=[],this._values=[],this._cacheKey=$,this._cacheIndex=-2}return Object.defineProperty(fe.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),fe.prototype.has=function(Z){return this._find(Z,!1)>=0},fe.prototype.get=function(Z){var ae=this._find(Z,!1);return ae>=0?this._values[ae]:void 0},fe.prototype.set=function(Z,ae){var N=this._find(Z,!0);return this._values[N]=ae,this},fe.prototype.delete=function(Z){var ae=this._find(Z,!1);if(ae>=0){for(var N=this._keys.length,B=ae+1;B<N;B++)this._keys[B-1]=this._keys[B],this._values[B-1]=this._values[B];return this._keys.length--,this._values.length--,Z===this._cacheKey&&(this._cacheKey=$,this._cacheIndex=-2),!0}return!1},fe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=$,this._cacheIndex=-2},fe.prototype.keys=function(){return new J(this._keys,this._values,ne)},fe.prototype.values=function(){return new J(this._keys,this._values,_e)},fe.prototype.entries=function(){return new J(this._keys,this._values,Ee)},fe.prototype["@@iterator"]=function(){return this.entries()},fe.prototype[f]=function(){return this.entries()},fe.prototype._find=function(Z,ae){return this._cacheKey!==Z&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=Z)),this._cacheIndex<0&&ae&&(this._cacheIndex=this._keys.length,this._keys.push(Z),this._values.push(void 0)),this._cacheIndex},fe}();function ne(fe,Z){return fe}function _e(fe,Z){return Z}function Ee(fe,Z){return[fe,Z]}}():Map,T=g||typeof Set!="function"||typeof Set.prototype.entries!="function"?function(){function $(){this._map=new w}return Object.defineProperty($.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),$.prototype.has=function(H){return this._map.has(H)},$.prototype.add=function(H){return this._map.set(H,H),this},$.prototype.delete=function(H){return this._map.delete(H)},$.prototype.clear=function(){this._map.clear()},$.prototype.keys=function(){return this._map.keys()},$.prototype.values=function(){return this._map.values()},$.prototype.entries=function(){return this._map.entries()},$.prototype["@@iterator"]=function(){return this.keys()},$.prototype[f]=function(){return this.keys()},$}():Set,P=new(g||typeof WeakMap!="function"?function(){var $=16,H=v.create(),J=ne();return function(){function Z(){this._key=ne()}return Z.prototype.has=function(ae){var N=_e(ae,!1);return N!==void 0&&v.has(N,this._key)},Z.prototype.get=function(ae){var N=_e(ae,!1);return N!==void 0?v.get(N,this._key):void 0},Z.prototype.set=function(ae,N){return _e(ae,!0)[this._key]=N,this},Z.prototype.delete=function(ae){var N=_e(ae,!1);return N!==void 0&&delete N[this._key]},Z.prototype.clear=function(){this._key=ne()},Z}();function ne(){var Z;do Z="@@WeakMap@@"+fe();while(v.has(H,Z));return H[Z]=!0,Z}function _e(Z,ae){if(!a.call(Z,J)){if(!ae)return;Object.defineProperty(Z,J,{value:v.create()})}return Z[J]}function Ee(Z,ae){for(var N=0;N<ae;++N)Z[N]=255*Math.random()|0;return Z}function fe(){var Z,ae=(Z=$,typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(Z)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(Z)):Ee(new Uint8Array(Z),Z):Ee(new Array(Z),Z));ae[6]=79&ae[6]|64,ae[8]=191&ae[8]|128;for(var N="",B=0;B<$;++B){var G=ae[B];B!==4&&B!==6&&B!==8||(N+="-"),G<16&&(N+="0"),N+=G.toString(16).toLowerCase()}return N}}():WeakMap);function k($,H,J){var ne=P.get($);if(z(ne)){if(!J)return;ne=new w,P.set($,ne)}var _e=ne.get(H);if(z(_e)){if(!J)return;_e=new w,ne.set(H,_e)}return _e}function x($,H,J){if(R($,H,J))return!0;var ne=nr(H);return!K(ne)&&x($,ne,J)}function R($,H,J){var ne=k(H,J,!1);return!z(ne)&&!!ne.has($)}function C($,H,J){if(R($,H,J))return j($,H,J);var ne=nr(H);return K(ne)?void 0:C($,ne,J)}function j($,H,J){var ne=k(H,J,!1);if(!z(ne))return ne.get($)}function L($,H,J,ne){k(J,ne,!0).set($,H)}function D($,H){var J=F($,H),ne=nr($);if(ne===null)return J;var _e=D(ne,H);if(_e.length<=0)return J;if(J.length<=0)return _e;for(var Ee=new T,fe=[],Z=0,ae=J;Z<ae.length;Z++){var N=ae[Z];Ee.has(N)||(Ee.add(N),fe.push(N))}for(var B=0,G=_e;B<G.length;B++)N=G[B],Ee.has(N)||(Ee.add(N),fe.push(N));return fe}function F($,H){var J=[],ne=k($,H,!1);if(z(ne))return J;for(var _e=function(ae){var N=Q(ae,f);if(!xe(N))throw new TypeError;var B=N.call(ae);if(!se(B))throw new TypeError;return B}(ne.keys()),Ee=0;;){var fe=bn(_e);if(!fe)return J.length=Ee,J;var Z=fe.value;try{J[Ee]=Z}catch(ae){try{Jo(_e)}finally{throw ae}}Ee++}}function q($){if($===null)return 1;switch(typeof $){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return $===null?1:6;default:return 6}}function z($){return $===void 0}function K($){return $===null}function se($){return typeof $=="object"?$!==null:typeof $=="function"}function X($,H){switch(q($)){case 0:case 1:case 2:case 3:case 4:case 5:return $}var J=H===3?"string":H===5?"number":"default",ne=Q($,d);if(ne!==void 0){var _e=ne.call($,J);if(se(_e))throw new TypeError;return _e}return function(Ee,fe){if(fe==="string"){var Z=Ee.toString;if(xe(Z)&&!se(N=Z.call(Ee))||xe(ae=Ee.valueOf)&&!se(N=ae.call(Ee)))return N}else{var ae;if(xe(ae=Ee.valueOf)&&!se(N=ae.call(Ee)))return N;var N,B=Ee.toString;if(xe(B)&&!se(N=B.call(Ee)))return N}throw new TypeError}($,J==="default"?"number":J)}function he($){var H=X($,3);return typeof H=="symbol"?H:function(J){return""+J}(H)}function te($){return Array.isArray?Array.isArray($):$ instanceof Object?$ instanceof Array:Object.prototype.toString.call($)==="[object Array]"}function xe($){return typeof $=="function"}function Ke($){return typeof $=="function"}function Q($,H){var J=$[H];if(J!=null){if(!xe(J))throw new TypeError;return J}}function bn($){var H=$.next();return!H.done&&H}function Jo($){var H=$.return;H&&H.call($)}function nr($){var H=Object.getPrototypeOf($);if(typeof $!="function"||$===b||H!==b)return H;var J=$.prototype,ne=J&&Object.getPrototypeOf(J);if(ne==null||ne===Object.prototype)return H;var _e=ne.constructor;return typeof _e!="function"||_e===$?H:_e}function zr($){return $.__=void 0,delete $.__,$}u("decorate",function($,H,J,ne){if(z(J)){if(!te($))throw new TypeError;if(!Ke(H))throw new TypeError;return function(_e,Ee){for(var fe=_e.length-1;fe>=0;--fe){var Z=(0,_e[fe])(Ee);if(!z(Z)&&!K(Z)){if(!Ke(Z))throw new TypeError;Ee=Z}}return Ee}($,H)}if(!te($))throw new TypeError;if(!se(H))throw new TypeError;if(!se(ne)&&!z(ne)&&!K(ne))throw new TypeError;return K(ne)&&(ne=void 0),function(_e,Ee,fe,Z){for(var ae=_e.length-1;ae>=0;--ae){var N=(0,_e[ae])(Ee,fe,Z);if(!z(N)&&!K(N)){if(!se(N))throw new TypeError;Z=N}}return Z}($,H,J=he(J),ne)}),u("metadata",function($,H){return function(J,ne){if(!se(J))throw new TypeError;if(!z(ne)&&!function(_e){switch(q(_e)){case 3:case 4:return!0;default:return!1}}(ne))throw new TypeError;L($,H,J,ne)}}),u("defineMetadata",function($,H,J,ne){if(!se(J))throw new TypeError;return z(ne)||(ne=he(ne)),L($,H,J,ne)}),u("hasMetadata",function($,H,J){if(!se(H))throw new TypeError;return z(J)||(J=he(J)),x($,H,J)}),u("hasOwnMetadata",function($,H,J){if(!se(H))throw new TypeError;return z(J)||(J=he(J)),R($,H,J)}),u("getMetadata",function($,H,J){if(!se(H))throw new TypeError;return z(J)||(J=he(J)),C($,H,J)}),u("getOwnMetadata",function($,H,J){if(!se(H))throw new TypeError;return z(J)||(J=he(J)),j($,H,J)}),u("getMetadataKeys",function($,H){if(!se($))throw new TypeError;return z(H)||(H=he(H)),D($,H)}),u("getOwnMetadataKeys",function($,H){if(!se($))throw new TypeError;return z(H)||(H=he(H)),F($,H)}),u("deleteMetadata",function($,H,J){if(!se(H))throw new TypeError;z(J)||(J=he(J));var ne=k(H,J,!1);if(z(ne)||!ne.delete($))return!1;if(ne.size>0)return!0;var _e=P.get(H);return _e.delete(J),_e.size>0||P.delete(H),!0})}(s)})()})(r||(r={}))},2444:function(r,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(Jn,Pr,dt,Ar){Ar===void 0&&(Ar=dt),Object.defineProperty(Jn,Ar,{enumerable:!0,get:function(){return Pr[dt]}})}:function(Jn,Pr,dt,Ar){Ar===void 0&&(Ar=dt),Jn[Ar]=Pr[dt]}),s=this&&this.__exportStar||function(Jn,Pr){for(var dt in Jn)dt==="default"||Object.prototype.hasOwnProperty.call(Pr,dt)||i(Pr,Jn,dt)};Object.defineProperty(e,"__esModule",{value:!0}),e.interval=e.iif=e.generate=e.fromEventPattern=e.fromEvent=e.from=e.forkJoin=e.empty=e.defer=e.connectable=e.concat=e.combineLatest=e.bindNodeCallback=e.bindCallback=e.UnsubscriptionError=e.TimeoutError=e.SequenceError=e.ObjectUnsubscribedError=e.NotFoundError=e.EmptyError=e.ArgumentOutOfRangeError=e.firstValueFrom=e.lastValueFrom=e.isObservable=e.identity=e.noop=e.pipe=e.NotificationKind=e.Notification=e.Subscriber=e.Subscription=e.Scheduler=e.VirtualAction=e.VirtualTimeScheduler=e.animationFrameScheduler=e.animationFrame=e.queueScheduler=e.queue=e.asyncScheduler=e.async=e.asapScheduler=e.asap=e.AsyncSubject=e.ReplaySubject=e.BehaviorSubject=e.Subject=e.animationFrames=e.observable=e.ConnectableObservable=e.Observable=void 0,e.filter=e.expand=e.exhaustMap=e.exhaustAll=e.exhaust=e.every=e.endWith=e.elementAt=e.distinctUntilKeyChanged=e.distinctUntilChanged=e.distinct=e.dematerialize=e.delayWhen=e.delay=e.defaultIfEmpty=e.debounceTime=e.debounce=e.count=e.connect=e.concatWith=e.concatMapTo=e.concatMap=e.concatAll=e.combineLatestWith=e.combineLatestAll=e.combineAll=e.catchError=e.bufferWhen=e.bufferToggle=e.bufferTime=e.bufferCount=e.buffer=e.auditTime=e.audit=e.config=e.NEVER=e.EMPTY=e.scheduled=e.zip=e.using=e.timer=e.throwError=e.range=e.race=e.partition=e.pairs=e.onErrorResumeNext=e.of=e.never=e.merge=void 0,e.switchMapTo=e.switchMap=e.switchAll=e.subscribeOn=e.startWith=e.skipWhile=e.skipUntil=e.skipLast=e.skip=e.single=e.shareReplay=e.share=e.sequenceEqual=e.scan=e.sampleTime=e.sample=e.refCount=e.retryWhen=e.retry=e.repeatWhen=e.repeat=e.reduce=e.raceWith=e.publishReplay=e.publishLast=e.publishBehavior=e.publish=e.pluck=e.pairwise=e.observeOn=e.multicast=e.min=e.mergeWith=e.mergeScan=e.mergeMapTo=e.mergeMap=e.flatMap=e.mergeAll=e.max=e.materialize=e.mapTo=e.map=e.last=e.isEmpty=e.ignoreElements=e.groupBy=e.first=e.findIndex=e.find=e.finalize=void 0,e.zipWith=e.zipAll=e.withLatestFrom=e.windowWhen=e.windowToggle=e.windowTime=e.windowCount=e.window=e.toArray=e.timestamp=e.timeoutWith=e.timeout=e.timeInterval=e.throwIfEmpty=e.throttleTime=e.throttle=e.tap=e.takeWhile=e.takeUntil=e.takeLast=e.take=e.switchScan=void 0;var c=n(9332);Object.defineProperty(e,"Observable",{enumerable:!0,get:function(){return c.Observable}});var u=n(9304);Object.defineProperty(e,"ConnectableObservable",{enumerable:!0,get:function(){return u.ConnectableObservable}});var a=n(1908);Object.defineProperty(e,"observable",{enumerable:!0,get:function(){return a.observable}});var l=n(4176);Object.defineProperty(e,"animationFrames",{enumerable:!0,get:function(){return l.animationFrames}});var d=n(5388);Object.defineProperty(e,"Subject",{enumerable:!0,get:function(){return d.Subject}});var f=n(315);Object.defineProperty(e,"BehaviorSubject",{enumerable:!0,get:function(){return f.BehaviorSubject}});var h=n(1964);Object.defineProperty(e,"ReplaySubject",{enumerable:!0,get:function(){return h.ReplaySubject}});var _=n(1892);Object.defineProperty(e,"AsyncSubject",{enumerable:!0,get:function(){return _.AsyncSubject}});var m=n(7640);Object.defineProperty(e,"asap",{enumerable:!0,get:function(){return m.asap}}),Object.defineProperty(e,"asapScheduler",{enumerable:!0,get:function(){return m.asapScheduler}});var v=n(1416);Object.defineProperty(e,"async",{enumerable:!0,get:function(){return v.async}}),Object.defineProperty(e,"asyncScheduler",{enumerable:!0,get:function(){return v.asyncScheduler}});var b=n(6644);Object.defineProperty(e,"queue",{enumerable:!0,get:function(){return b.queue}}),Object.defineProperty(e,"queueScheduler",{enumerable:!0,get:function(){return b.queueScheduler}});var g=n(652);Object.defineProperty(e,"animationFrame",{enumerable:!0,get:function(){return g.animationFrame}}),Object.defineProperty(e,"animationFrameScheduler",{enumerable:!0,get:function(){return g.animationFrameScheduler}});var w=n(9648);Object.defineProperty(e,"VirtualTimeScheduler",{enumerable:!0,get:function(){return w.VirtualTimeScheduler}}),Object.defineProperty(e,"VirtualAction",{enumerable:!0,get:function(){return w.VirtualAction}});var T=n(3456);Object.defineProperty(e,"Scheduler",{enumerable:!0,get:function(){return T.Scheduler}});var P=n(1536);Object.defineProperty(e,"Subscription",{enumerable:!0,get:function(){return P.Subscription}});var k=n(8);Object.defineProperty(e,"Subscriber",{enumerable:!0,get:function(){return k.Subscriber}});var x=n(1800);Object.defineProperty(e,"Notification",{enumerable:!0,get:function(){return x.Notification}}),Object.defineProperty(e,"NotificationKind",{enumerable:!0,get:function(){return x.NotificationKind}});var R=n(488);Object.defineProperty(e,"pipe",{enumerable:!0,get:function(){return R.pipe}});var C=n(892);Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return C.noop}});var j=n(8760);Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return j.identity}});var L=n(6368);Object.defineProperty(e,"isObservable",{enumerable:!0,get:function(){return L.isObservable}});var D=n(7256);Object.defineProperty(e,"lastValueFrom",{enumerable:!0,get:function(){return D.lastValueFrom}});var F=n(8356);Object.defineProperty(e,"firstValueFrom",{enumerable:!0,get:function(){return F.firstValueFrom}});var q=n(8028);Object.defineProperty(e,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return q.ArgumentOutOfRangeError}});var z=n(1424);Object.defineProperty(e,"EmptyError",{enumerable:!0,get:function(){return z.EmptyError}});var K=n(7628);Object.defineProperty(e,"NotFoundError",{enumerable:!0,get:function(){return K.NotFoundError}});var se=n(740);Object.defineProperty(e,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return se.ObjectUnsubscribedError}});var X=n(6968);Object.defineProperty(e,"SequenceError",{enumerable:!0,get:function(){return X.SequenceError}});var he=n(328);Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return he.TimeoutError}});var te=n(3952);Object.defineProperty(e,"UnsubscriptionError",{enumerable:!0,get:function(){return te.UnsubscriptionError}});var xe=n(9904);Object.defineProperty(e,"bindCallback",{enumerable:!0,get:function(){return xe.bindCallback}});var Ke=n(7044);Object.defineProperty(e,"bindNodeCallback",{enumerable:!0,get:function(){return Ke.bindNodeCallback}});var Q=n(7240);Object.defineProperty(e,"combineLatest",{enumerable:!0,get:function(){return Q.combineLatest}});var bn=n(347);Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return bn.concat}});var Jo=n(5528);Object.defineProperty(e,"connectable",{enumerable:!0,get:function(){return Jo.connectable}});var nr=n(5056);Object.defineProperty(e,"defer",{enumerable:!0,get:function(){return nr.defer}});var zr=n(9424);Object.defineProperty(e,"empty",{enumerable:!0,get:function(){return zr.empty}});var $=n(4168);Object.defineProperty(e,"forkJoin",{enumerable:!0,get:function(){return $.forkJoin}});var H=n(6124);Object.defineProperty(e,"from",{enumerable:!0,get:function(){return H.from}});var J=n(5948);Object.defineProperty(e,"fromEvent",{enumerable:!0,get:function(){return J.fromEvent}});var ne=n(9680);Object.defineProperty(e,"fromEventPattern",{enumerable:!0,get:function(){return ne.fromEventPattern}});var _e=n(1328);Object.defineProperty(e,"generate",{enumerable:!0,get:function(){return _e.generate}});var Ee=n(4560);Object.defineProperty(e,"iif",{enumerable:!0,get:function(){return Ee.iif}});var fe=n(9312);Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return fe.interval}});var Z=n(8336);Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return Z.merge}});var ae=n(3504);Object.defineProperty(e,"never",{enumerable:!0,get:function(){return ae.never}});var N=n(5960);Object.defineProperty(e,"of",{enumerable:!0,get:function(){return N.of}});var B=n(5172);Object.defineProperty(e,"onErrorResumeNext",{enumerable:!0,get:function(){return B.onErrorResumeNext}});var G=n(9643);Object.defineProperty(e,"pairs",{enumerable:!0,get:function(){return G.pairs}});var ce=n(21);Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return ce.partition}});var oe=n(6683);Object.defineProperty(e,"race",{enumerable:!0,get:function(){return oe.race}});var Ve=n(9463);Object.defineProperty(e,"range",{enumerable:!0,get:function(){return Ve.range}});var Be=n(1684);Object.defineProperty(e,"throwError",{enumerable:!0,get:function(){return Be.throwError}});var Yr=n(4536);Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return Yr.timer}});var or=n(500);Object.defineProperty(e,"using",{enumerable:!0,get:function(){return or.using}});var _t=n(5456);Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return _t.zip}});var me=n(3716);Object.defineProperty(e,"scheduled",{enumerable:!0,get:function(){return me.scheduled}});var Er=n(9424);Object.defineProperty(e,"EMPTY",{enumerable:!0,get:function(){return Er.EMPTY}});var ir=n(3504);Object.defineProperty(e,"NEVER",{enumerable:!0,get:function(){return ir.NEVER}}),s(n(4828),e);var Kr=n(7004);Object.defineProperty(e,"config",{enumerable:!0,get:function(){return Kr.config}});var Qe=n(3824);Object.defineProperty(e,"audit",{enumerable:!0,get:function(){return Qe.audit}});var Te=n(1016);Object.defineProperty(e,"auditTime",{enumerable:!0,get:function(){return Te.auditTime}});var it=n(4320);Object.defineProperty(e,"buffer",{enumerable:!0,get:function(){return it.buffer}});var Ze=n(8992);Object.defineProperty(e,"bufferCount",{enumerable:!0,get:function(){return Ze.bufferCount}});var gn=n(4448);Object.defineProperty(e,"bufferTime",{enumerable:!0,get:function(){return gn.bufferTime}});var Tr=n(5636);Object.defineProperty(e,"bufferToggle",{enumerable:!0,get:function(){return Tr.bufferToggle}});var Ct=n(3096);Object.defineProperty(e,"bufferWhen",{enumerable:!0,get:function(){return Ct.bufferWhen}});var Re=n(4464);Object.defineProperty(e,"catchError",{enumerable:!0,get:function(){return Re.catchError}});var zn=n(5028);Object.defineProperty(e,"combineAll",{enumerable:!0,get:function(){return zn.combineAll}});var Go=n(1920);Object.defineProperty(e,"combineLatestAll",{enumerable:!0,get:function(){return Go.combineLatestAll}});var Yn=n(5832);Object.defineProperty(e,"combineLatestWith",{enumerable:!0,get:function(){return Yn.combineLatestWith}});var Aa=n(2708);Object.defineProperty(e,"concatAll",{enumerable:!0,get:function(){return Aa.concatAll}});var Yi=n(4912);Object.defineProperty(e,"concatMap",{enumerable:!0,get:function(){return Yi.concatMap}});var Kn=n(9080);Object.defineProperty(e,"concatMapTo",{enumerable:!0,get:function(){return Kn.concatMapTo}});var Ki=n(9440);Object.defineProperty(e,"concatWith",{enumerable:!0,get:function(){return Ki.concatWith}});var R_=n(7312);Object.defineProperty(e,"connect",{enumerable:!0,get:function(){return R_.connect}});var Ji=n(1132);Object.defineProperty(e,"count",{enumerable:!0,get:function(){return Ji.count}});var M_=n(5924);Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return M_.debounce}});var Xo=n(3600);Object.defineProperty(e,"debounceTime",{enumerable:!0,get:function(){return Xo.debounceTime}});var Gi=n(6204);Object.defineProperty(e,"defaultIfEmpty",{enumerable:!0,get:function(){return Gi.defaultIfEmpty}});var re=n(7752);Object.defineProperty(e,"delay",{enumerable:!0,get:function(){return re.delay}});var C_=n(7532);Object.defineProperty(e,"delayWhen",{enumerable:!0,get:function(){return C_.delayWhen}});var j_=n(6491);Object.defineProperty(e,"dematerialize",{enumerable:!0,get:function(){return j_.dematerialize}});var At=n(3976);Object.defineProperty(e,"distinct",{enumerable:!0,get:function(){return At.distinct}});var Ia=n(8987);Object.defineProperty(e,"distinctUntilChanged",{enumerable:!0,get:function(){return Ia.distinctUntilChanged}});var Me=n(4288);Object.defineProperty(e,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Me.distinctUntilKeyChanged}});var Zo=n(1320);Object.defineProperty(e,"elementAt",{enumerable:!0,get:function(){return Zo.elementAt}});var N_=n(4028);Object.defineProperty(e,"endWith",{enumerable:!0,get:function(){return N_.endWith}});var lt=n(2528);Object.defineProperty(e,"every",{enumerable:!0,get:function(){return lt.every}});var Sr=n(9372);Object.defineProperty(e,"exhaust",{enumerable:!0,get:function(){return Sr.exhaust}});var sr=n(668);Object.defineProperty(e,"exhaustAll",{enumerable:!0,get:function(){return sr.exhaustAll}});var et=n(7332);Object.defineProperty(e,"exhaustMap",{enumerable:!0,get:function(){return et.exhaustMap}});var zt=n(400);Object.defineProperty(e,"expand",{enumerable:!0,get:function(){return zt.expand}});var Or=n(7424);Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return Or.filter}});var wn=n(8424);Object.defineProperty(e,"finalize",{enumerable:!0,get:function(){return wn.finalize}});var D_=n(2328);Object.defineProperty(e,"find",{enumerable:!0,get:function(){return D_.find}});var L_=n(8168);Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return L_.findIndex}});var q_=n(1564);Object.defineProperty(e,"first",{enumerable:!0,get:function(){return q_.first}});var Je=n(3499);Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return Je.groupBy}});var Xi=n(4664);Object.defineProperty(e,"ignoreElements",{enumerable:!0,get:function(){return Xi.ignoreElements}});var F_=n(3320);Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return F_.isEmpty}});var tu=n(2804);Object.defineProperty(e,"last",{enumerable:!0,get:function(){return tu.last}});var ru=n(7144);Object.defineProperty(e,"map",{enumerable:!0,get:function(){return ru.map}});var W_=n(6544);Object.defineProperty(e,"mapTo",{enumerable:!0,get:function(){return W_.mapTo}});var U_=n(224);Object.defineProperty(e,"materialize",{enumerable:!0,get:function(){return U_.materialize}});var $_=n(5594);Object.defineProperty(e,"max",{enumerable:!0,get:function(){return $_.max}});var B_=n(981);Object.defineProperty(e,"mergeAll",{enumerable:!0,get:function(){return B_.mergeAll}});var H_=n(9190);Object.defineProperty(e,"flatMap",{enumerable:!0,get:function(){return H_.flatMap}});var V_=n(9829);Object.defineProperty(e,"mergeMap",{enumerable:!0,get:function(){return V_.mergeMap}});var nu=n(3744);Object.defineProperty(e,"mergeMapTo",{enumerable:!0,get:function(){return nu.mergeMapTo}});var ou=n(6632);Object.defineProperty(e,"mergeScan",{enumerable:!0,get:function(){return ou.mergeScan}});var z_=n(364);Object.defineProperty(e,"mergeWith",{enumerable:!0,get:function(){return z_.mergeWith}});var Y_=n(1171);Object.defineProperty(e,"min",{enumerable:!0,get:function(){return Y_.min}});var K_=n(8324);Object.defineProperty(e,"multicast",{enumerable:!0,get:function(){return K_.multicast}});var iu=n(3064);Object.defineProperty(e,"observeOn",{enumerable:!0,get:function(){return iu.observeOn}});var Qo=n(8948);Object.defineProperty(e,"pairwise",{enumerable:!0,get:function(){return Qo.pairwise}});var su=n(7680);Object.defineProperty(e,"pluck",{enumerable:!0,get:function(){return su.pluck}});var J_=n(8228);Object.defineProperty(e,"publish",{enumerable:!0,get:function(){return J_.publish}});var G_=n(4662);Object.defineProperty(e,"publishBehavior",{enumerable:!0,get:function(){return G_.publishBehavior}});var ei=n(1636);Object.defineProperty(e,"publishLast",{enumerable:!0,get:function(){return ei.publishLast}});var Zi=n(6956);Object.defineProperty(e,"publishReplay",{enumerable:!0,get:function(){return Zi.publishReplay}});var au=n(5412);Object.defineProperty(e,"raceWith",{enumerable:!0,get:function(){return au.raceWith}});var ti=n(4036);Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return ti.reduce}});var kr=n(2072);Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return kr.repeat}});var X_=n(1044);Object.defineProperty(e,"repeatWhen",{enumerable:!0,get:function(){return X_.repeatWhen}});var Z_=n(4848);Object.defineProperty(e,"retry",{enumerable:!0,get:function(){return Z_.retry}});var Q_=n(9292);Object.defineProperty(e,"retryWhen",{enumerable:!0,get:function(){return Q_.retryWhen}});var em=n(3120);Object.defineProperty(e,"refCount",{enumerable:!0,get:function(){return em.refCount}});var tm=n(3076);Object.defineProperty(e,"sample",{enumerable:!0,get:function(){return tm.sample}});var rm=n(2180);Object.defineProperty(e,"sampleTime",{enumerable:!0,get:function(){return rm.sampleTime}});var nm=n(6424);Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return nm.scan}});var om=n(6440);Object.defineProperty(e,"sequenceEqual",{enumerable:!0,get:function(){return om.sequenceEqual}});var xa=n(6532);Object.defineProperty(e,"share",{enumerable:!0,get:function(){return xa.share}});var im=n(4980);Object.defineProperty(e,"shareReplay",{enumerable:!0,get:function(){return im.shareReplay}});var cu=n(1400);Object.defineProperty(e,"single",{enumerable:!0,get:function(){return cu.single}});var sm=n(7516);Object.defineProperty(e,"skip",{enumerable:!0,get:function(){return sm.skip}});var am=n(7211);Object.defineProperty(e,"skipLast",{enumerable:!0,get:function(){return am.skipLast}});var cm=n(7136);Object.defineProperty(e,"skipUntil",{enumerable:!0,get:function(){return cm.skipUntil}});var um=n(7820);Object.defineProperty(e,"skipWhile",{enumerable:!0,get:function(){return um.skipWhile}});var lm=n(3432);Object.defineProperty(e,"startWith",{enumerable:!0,get:function(){return lm.startWith}});var dm=n(8212);Object.defineProperty(e,"subscribeOn",{enumerable:!0,get:function(){return dm.subscribeOn}});var fm=n(1272);Object.defineProperty(e,"switchAll",{enumerable:!0,get:function(){return fm.switchAll}});var pm=n(9456);Object.defineProperty(e,"switchMap",{enumerable:!0,get:function(){return pm.switchMap}});var hm=n(8152);Object.defineProperty(e,"switchMapTo",{enumerable:!0,get:function(){return hm.switchMapTo}});var _m=n(2600);Object.defineProperty(e,"switchScan",{enumerable:!0,get:function(){return _m.switchScan}});var mm=n(5688);Object.defineProperty(e,"take",{enumerable:!0,get:function(){return mm.take}});var vm=n(384);Object.defineProperty(e,"takeLast",{enumerable:!0,get:function(){return vm.takeLast}});var ym=n(220);Object.defineProperty(e,"takeUntil",{enumerable:!0,get:function(){return ym.takeUntil}});var bm=n(7924);Object.defineProperty(e,"takeWhile",{enumerable:!0,get:function(){return bm.takeWhile}});var gm=n(2200);Object.defineProperty(e,"tap",{enumerable:!0,get:function(){return gm.tap}});var Ra=n(6912);Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return Ra.throttle}});var Ma=n(2085);Object.defineProperty(e,"throttleTime",{enumerable:!0,get:function(){return Ma.throttleTime}});var wm=n(6400);Object.defineProperty(e,"throwIfEmpty",{enumerable:!0,get:function(){return wm.throwIfEmpty}});var uu=n(2920);Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return uu.timeInterval}});var lu=n(328);Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return lu.timeout}});var Em=n(2244);Object.defineProperty(e,"timeoutWith",{enumerable:!0,get:function(){return Em.timeoutWith}});var Tm=n(4576);Object.defineProperty(e,"timestamp",{enumerable:!0,get:function(){return Tm.timestamp}});var Sm=n(1572);Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return Sm.toArray}});var Om=n(4096);Object.defineProperty(e,"window",{enumerable:!0,get:function(){return Om.window}});var du=n(3100);Object.defineProperty(e,"windowCount",{enumerable:!0,get:function(){return du.windowCount}});var $e=n(6652);Object.defineProperty(e,"windowTime",{enumerable:!0,get:function(){return $e.windowTime}});var ri=n(3592);Object.defineProperty(e,"windowToggle",{enumerable:!0,get:function(){return ri.windowToggle}});var ni=n(4256);Object.defineProperty(e,"windowWhen",{enumerable:!0,get:function(){return ni.windowWhen}});var km=n(5432);Object.defineProperty(e,"withLatestFrom",{enumerable:!0,get:function(){return km.withLatestFrom}});var fu=n(3515);Object.defineProperty(e,"zipAll",{enumerable:!0,get:function(){return fu.zipAll}});var Pm=n(5828);Object.defineProperty(e,"zipWith",{enumerable:!0,get:function(){return Pm.zipWith}})},1892:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(u,a){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(l[f]=d[f])},i(u,a)},function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function l(){this.constructor=u}i(u,a),u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)});Object.defineProperty(e,"__esModule",{value:!0}),e.AsyncSubject=void 0;var c=function(u){function a(){var l=u!==null&&u.apply(this,arguments)||this;return l._value=null,l._hasValue=!1,l._isComplete=!1,l}return s(a,u),a.prototype._checkFinalizedStatuses=function(l){var d=this,f=d.hasError,h=d._hasValue,_=d._value,m=d.thrownError,v=d.isStopped,b=d._isComplete;f?l.error(m):(v||b)&&(h&&l.next(_),l.complete())},a.prototype.next=function(l){this.isStopped||(this._value=l,this._hasValue=!0)},a.prototype.complete=function(){var l=this,d=l._hasValue,f=l._value;l._isComplete||(this._isComplete=!0,d&&u.prototype.next.call(this,f),u.prototype.complete.call(this))},a}(n(5388).Subject);e.AsyncSubject=c},315:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(u,a){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(l[f]=d[f])},i(u,a)},function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function l(){this.constructor=u}i(u,a),u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)});Object.defineProperty(e,"__esModule",{value:!0}),e.BehaviorSubject=void 0;var c=function(u){function a(l){var d=u.call(this)||this;return d._value=l,d}return s(a,u),Object.defineProperty(a.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),a.prototype._subscribe=function(l){var d=u.prototype._subscribe.call(this,l);return!d.closed&&l.next(this._value),d},a.prototype.getValue=function(){var l=this,d=l.hasError,f=l.thrownError,h=l._value;if(d)throw f;return this._throwIfClosed(),h},a.prototype.next=function(l){u.prototype.next.call(this,this._value=l)},a}(n(5388).Subject);e.BehaviorSubject=c},1800:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.observeNotification=e.Notification=e.NotificationKind=void 0;var i,s=n(9424),c=n(5960),u=n(1684),a=n(7528);(i=e.NotificationKind||(e.NotificationKind={})).NEXT="N",i.ERROR="E",i.COMPLETE="C";var l=function(){function f(h,_,m){this.kind=h,this.value=_,this.error=m,this.hasValue=h==="N"}return f.prototype.observe=function(h){return d(this,h)},f.prototype.do=function(h,_,m){var v=this,b=v.kind,g=v.value,w=v.error;return b==="N"?h?.(g):b==="E"?_?.(w):m?.()},f.prototype.accept=function(h,_,m){var v;return a.isFunction((v=h)===null||v===void 0?void 0:v.next)?this.observe(h):this.do(h,_,m)},f.prototype.toObservable=function(){var h=this,_=h.kind,m=h.value,v=h.error,b=_==="N"?c.of(m):_==="E"?u.throwError(function(){return v}):_==="C"?s.EMPTY:0;if(!b)throw new TypeError("Unexpected notification kind "+_);return b},f.createNext=function(h){return new f("N",h)},f.createError=function(h){return new f("E",void 0,h)},f.createComplete=function(){return f.completeNotification},f.completeNotification=new f("C"),f}();function d(f,h){var _,m,v,b=f,g=b.kind,w=b.value,T=b.error;if(typeof g!="string")throw new TypeError('Invalid notification, missing "kind"');g==="N"?(_=h.next)===null||_===void 0||_.call(h,w):g==="E"?(m=h.error)===null||m===void 0||m.call(h,T):(v=h.complete)===null||v===void 0||v.call(h)}e.Notification=l,e.observeNotification=d},7736:(r,e)=>{"use strict";function n(i,s,c){return{kind:i,value:s,error:c}}Object.defineProperty(e,"__esModule",{value:!0}),e.createNotification=e.nextNotification=e.errorNotification=e.COMPLETE_NOTIFICATION=void 0,e.COMPLETE_NOTIFICATION=n("C",void 0,void 0),e.errorNotification=function(i){return n("E",void 0,i)},e.nextNotification=function(i){return n("N",i,void 0)},e.createNotification=n},9332:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Observable=void 0;var i=n(8),s=n(1536),c=n(1908),u=n(488),a=n(7004),l=n(7528),d=n(4672),f=function(){function _(m){m&&(this._subscribe=m)}return _.prototype.lift=function(m){var v=new _;return v.source=this,v.operator=m,v},_.prototype.subscribe=function(m,v,b){var g,w=this,T=(g=m)&&g instanceof i.Subscriber||function(P){return P&&l.isFunction(P.next)&&l.isFunction(P.error)&&l.isFunction(P.complete)}(g)&&s.isSubscription(g)?m:new i.SafeSubscriber(m,v,b);return d.errorContext(function(){var P=w,k=P.operator,x=P.source;T.add(k?k.call(T,x):x?w._subscribe(T):w._trySubscribe(T))}),T},_.prototype._trySubscribe=function(m){try{return this._subscribe(m)}catch(v){m.error(v)}},_.prototype.forEach=function(m,v){var b=this;return new(v=h(v))(function(g,w){var T=new i.SafeSubscriber({next:function(P){try{m(P)}catch(k){w(k),T.unsubscribe()}},error:w,complete:g});b.subscribe(T)})},_.prototype._subscribe=function(m){var v;return(v=this.source)===null||v===void 0?void 0:v.subscribe(m)},_.prototype[c.observable]=function(){return this},_.prototype.pipe=function(){for(var m=[],v=0;v<arguments.length;v++)m[v]=arguments[v];return u.pipeFromArray(m)(this)},_.prototype.toPromise=function(m){var v=this;return new(m=h(m))(function(b,g){var w;v.subscribe(function(T){return w=T},function(T){return g(T)},function(){return b(w)})})},_.create=function(m){return new _(m)},_}();function h(_){var m;return(m=_??a.config.Promise)!==null&&m!==void 0?m:Promise}e.Observable=f},1964:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(l,d){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var _ in h)Object.prototype.hasOwnProperty.call(h,_)&&(f[_]=h[_])},i(l,d)},function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function f(){this.constructor=l}i(l,d),l.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)});Object.defineProperty(e,"__esModule",{value:!0}),e.ReplaySubject=void 0;var c=n(5388),u=n(1312),a=function(l){function d(f,h,_){f===void 0&&(f=1/0),h===void 0&&(h=1/0),_===void 0&&(_=u.dateTimestampProvider);var m=l.call(this)||this;return m._bufferSize=f,m._windowTime=h,m._timestampProvider=_,m._buffer=[],m._infiniteTimeWindow=!0,m._infiniteTimeWindow=h===1/0,m._bufferSize=Math.max(1,f),m._windowTime=Math.max(1,h),m}return s(d,l),d.prototype.next=function(f){var h=this,_=h.isStopped,m=h._buffer,v=h._infiniteTimeWindow,b=h._timestampProvider,g=h._windowTime;_||(m.push(f),!v&&m.push(b.now()+g)),this._trimBuffer(),l.prototype.next.call(this,f)},d.prototype._subscribe=function(f){this._throwIfClosed(),this._trimBuffer();for(var h=this._innerSubscribe(f),_=this._infiniteTimeWindow,m=this._buffer.slice(),v=0;v<m.length&&!f.closed;v+=_?1:2)f.next(m[v]);return this._checkFinalizedStatuses(f),h},d.prototype._trimBuffer=function(){var f=this,h=f._bufferSize,_=f._timestampProvider,m=f._buffer,v=f._infiniteTimeWindow,b=(v?1:2)*h;if(h<1/0&&b<m.length&&m.splice(0,m.length-b),!v){for(var g=_.now(),w=0,T=1;T<m.length&&m[T]<=g;T+=2)w=T;w&&m.splice(0,w+1)}},d}(c.Subject);e.ReplaySubject=a},3456:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scheduler=void 0;var i=n(1312),s=function(){function c(u,a){a===void 0&&(a=c.now),this.schedulerActionCtor=u,this.now=a}return c.prototype.schedule=function(u,a,l){return a===void 0&&(a=0),new this.schedulerActionCtor(this,u).schedule(l,a)},c.now=i.dateTimestampProvider.now,c}();e.Scheduler=s},5388:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(m,v){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,g){b.__proto__=g}||function(b,g){for(var w in g)Object.prototype.hasOwnProperty.call(g,w)&&(b[w]=g[w])},i(m,v)},function(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function b(){this.constructor=m}i(m,v),m.prototype=v===null?Object.create(v):(b.prototype=v.prototype,new b)}),c=this&&this.__values||function(m){var v=typeof Symbol=="function"&&Symbol.iterator,b=v&&m[v],g=0;if(b)return b.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&g>=m.length&&(m=void 0),{value:m&&m[g++],done:!m}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.AnonymousSubject=e.Subject=void 0;var u=n(9332),a=n(1536),l=n(740),d=n(9331),f=n(4672),h=function(m){function v(){var b=m.call(this)||this;return b.closed=!1,b.currentObservers=null,b.observers=[],b.isStopped=!1,b.hasError=!1,b.thrownError=null,b}return s(v,m),v.prototype.lift=function(b){var g=new _(this,this);return g.operator=b,g},v.prototype._throwIfClosed=function(){if(this.closed)throw new l.ObjectUnsubscribedError},v.prototype.next=function(b){var g=this;f.errorContext(function(){var w,T;if(g._throwIfClosed(),!g.isStopped){g.currentObservers||(g.currentObservers=Array.from(g.observers));try{for(var P=c(g.currentObservers),k=P.next();!k.done;k=P.next())k.value.next(b)}catch(x){w={error:x}}finally{try{k&&!k.done&&(T=P.return)&&T.call(P)}finally{if(w)throw w.error}}}})},v.prototype.error=function(b){var g=this;f.errorContext(function(){if(g._throwIfClosed(),!g.isStopped){g.hasError=g.isStopped=!0,g.thrownError=b;for(var w=g.observers;w.length;)w.shift().error(b)}})},v.prototype.complete=function(){var b=this;f.errorContext(function(){if(b._throwIfClosed(),!b.isStopped){b.isStopped=!0;for(var g=b.observers;g.length;)g.shift().complete()}})},v.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(v.prototype,"observed",{get:function(){var b;return((b=this.observers)===null||b===void 0?void 0:b.length)>0},enumerable:!1,configurable:!0}),v.prototype._trySubscribe=function(b){return this._throwIfClosed(),m.prototype._trySubscribe.call(this,b)},v.prototype._subscribe=function(b){return this._throwIfClosed(),this._checkFinalizedStatuses(b),this._innerSubscribe(b)},v.prototype._innerSubscribe=function(b){var g=this,w=this,T=w.hasError,P=w.isStopped,k=w.observers;return T||P?a.EMPTY_SUBSCRIPTION:(this.currentObservers=null,k.push(b),new a.Subscription(function(){g.currentObservers=null,d.arrRemove(k,b)}))},v.prototype._checkFinalizedStatuses=function(b){var g=this,w=g.hasError,T=g.thrownError,P=g.isStopped;w?b.error(T):P&&b.complete()},v.prototype.asObservable=function(){var b=new u.Observable;return b.source=this,b},v.create=function(b,g){return new _(b,g)},v}(u.Observable);e.Subject=h;var _=function(m){function v(b,g){var w=m.call(this)||this;return w.destination=b,w.source=g,w}return s(v,m),v.prototype.next=function(b){var g,w;(w=(g=this.destination)===null||g===void 0?void 0:g.next)===null||w===void 0||w.call(g,b)},v.prototype.error=function(b){var g,w;(w=(g=this.destination)===null||g===void 0?void 0:g.error)===null||w===void 0||w.call(g,b)},v.prototype.complete=function(){var b,g;(g=(b=this.destination)===null||b===void 0?void 0:b.complete)===null||g===void 0||g.call(b)},v.prototype._subscribe=function(b){var g,w;return(w=(g=this.source)===null||g===void 0?void 0:g.subscribe(b))!==null&&w!==void 0?w:a.EMPTY_SUBSCRIPTION},v}(h);e.AnonymousSubject=_},8:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(k,x){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,C){R.__proto__=C}||function(R,C){for(var j in C)Object.prototype.hasOwnProperty.call(C,j)&&(R[j]=C[j])},i(k,x)},function(k,x){if(typeof x!="function"&&x!==null)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function R(){this.constructor=k}i(k,x),k.prototype=x===null?Object.create(x):(R.prototype=x.prototype,new R)});Object.defineProperty(e,"__esModule",{value:!0}),e.EMPTY_OBSERVER=e.SafeSubscriber=e.Subscriber=void 0;var c=n(7528),u=n(1536),a=n(7004),l=n(6136),d=n(892),f=n(7736),h=n(172),_=n(4672),m=function(k){function x(R){var C=k.call(this)||this;return C.isStopped=!1,R?(C.destination=R,u.isSubscription(R)&&R.add(C)):C.destination=e.EMPTY_OBSERVER,C}return s(x,k),x.create=function(R,C,j){return new w(R,C,j)},x.prototype.next=function(R){this.isStopped?P(f.nextNotification(R),this):this._next(R)},x.prototype.error=function(R){this.isStopped?P(f.errorNotification(R),this):(this.isStopped=!0,this._error(R))},x.prototype.complete=function(){this.isStopped?P(f.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},x.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,k.prototype.unsubscribe.call(this),this.destination=null)},x.prototype._next=function(R){this.destination.next(R)},x.prototype._error=function(R){try{this.destination.error(R)}finally{this.unsubscribe()}},x.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},x}(u.Subscription);e.Subscriber=m;var v=Function.prototype.bind;function b(k,x){return v.call(k,x)}var g=function(){function k(x){this.partialObserver=x}return k.prototype.next=function(x){var R=this.partialObserver;if(R.next)try{R.next(x)}catch(C){T(C)}},k.prototype.error=function(x){var R=this.partialObserver;if(R.error)try{R.error(x)}catch(C){T(C)}else T(x)},k.prototype.complete=function(){var x=this.partialObserver;if(x.complete)try{x.complete()}catch(R){T(R)}},k}(),w=function(k){function x(R,C,j){var L,D,F=k.call(this)||this;return c.isFunction(R)||!R?L={next:R??void 0,error:C??void 0,complete:j??void 0}:F&&a.config.useDeprecatedNextContext?((D=Object.create(R)).unsubscribe=function(){return F.unsubscribe()},L={next:R.next&&b(R.next,D),error:R.error&&b(R.error,D),complete:R.complete&&b(R.complete,D)}):L=R,F.destination=new g(L),F}return s(x,k),x}(m);function T(k){a.config.useDeprecatedSynchronousErrorHandling?_.captureError(k):l.reportUnhandledError(k)}function P(k,x){var R=a.config.onStoppedNotification;R&&h.timeoutProvider.setTimeout(function(){return R(k,x)})}e.SafeSubscriber=w,e.EMPTY_OBSERVER={closed:!0,next:d.noop,error:function(k){throw k},complete:d.noop}},1536:function(r,e,n){"use strict";var i=this&&this.__values||function(h){var _=typeof Symbol=="function"&&Symbol.iterator,m=_&&h[_],v=0;if(m)return m.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&v>=h.length&&(h=void 0),{value:h&&h[v++],done:!h}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(h,_){var m=typeof Symbol=="function"&&h[Symbol.iterator];if(!m)return h;var v,b,g=m.call(h),w=[];try{for(;(_===void 0||_-- >0)&&!(v=g.next()).done;)w.push(v.value)}catch(T){b={error:T}}finally{try{v&&!v.done&&(m=g.return)&&m.call(g)}finally{if(b)throw b.error}}return w},c=this&&this.__spreadArray||function(h,_){for(var m=0,v=_.length,b=h.length;m<v;m++,b++)h[b]=_[m];return h};Object.defineProperty(e,"__esModule",{value:!0}),e.isSubscription=e.EMPTY_SUBSCRIPTION=e.Subscription=void 0;var u=n(7528),a=n(3952),l=n(9331),d=function(){function h(m){this.initialTeardown=m,this.closed=!1,this._parentage=null,this._finalizers=null}var _;return h.prototype.unsubscribe=function(){var m,v,b,g,w;if(!this.closed){this.closed=!0;var T=this._parentage;if(T)if(this._parentage=null,Array.isArray(T))try{for(var P=i(T),k=P.next();!k.done;k=P.next())k.value.remove(this)}catch(D){m={error:D}}finally{try{k&&!k.done&&(v=P.return)&&v.call(P)}finally{if(m)throw m.error}}else T.remove(this);var x=this.initialTeardown;if(u.isFunction(x))try{x()}catch(D){w=D instanceof a.UnsubscriptionError?D.errors:[D]}var R=this._finalizers;if(R){this._finalizers=null;try{for(var C=i(R),j=C.next();!j.done;j=C.next()){var L=j.value;try{f(L)}catch(D){w=w??[],D instanceof a.UnsubscriptionError?w=c(c([],s(w)),s(D.errors)):w.push(D)}}}catch(D){b={error:D}}finally{try{j&&!j.done&&(g=C.return)&&g.call(C)}finally{if(b)throw b.error}}}if(w)throw new a.UnsubscriptionError(w)}},h.prototype.add=function(m){var v;if(m&&m!==this)if(this.closed)f(m);else{if(m instanceof h){if(m.closed||m._hasParent(this))return;m._addParent(this)}(this._finalizers=(v=this._finalizers)!==null&&v!==void 0?v:[]).push(m)}},h.prototype._hasParent=function(m){var v=this._parentage;return v===m||Array.isArray(v)&&v.includes(m)},h.prototype._addParent=function(m){var v=this._parentage;this._parentage=Array.isArray(v)?(v.push(m),v):v?[v,m]:m},h.prototype._removeParent=function(m){var v=this._parentage;v===m?this._parentage=null:Array.isArray(v)&&l.arrRemove(v,m)},h.prototype.remove=function(m){var v=this._finalizers;v&&l.arrRemove(v,m),m instanceof h&&m._removeParent(this)},h.EMPTY=((_=new h).closed=!0,_),h}();function f(h){u.isFunction(h)?h():h.unsubscribe()}e.Subscription=d,e.EMPTY_SUBSCRIPTION=d.EMPTY,e.isSubscription=function(h){return h instanceof d||h&&"closed"in h&&u.isFunction(h.remove)&&u.isFunction(h.add)&&u.isFunction(h.unsubscribe)}},7004:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.config=void 0,e.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},8356:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.firstValueFrom=void 0;var i=n(1424),s=n(8);e.firstValueFrom=function(c,u){var a=typeof u=="object";return new Promise(function(l,d){var f=new s.SafeSubscriber({next:function(h){l(h),f.unsubscribe()},error:d,complete:function(){a?l(u.defaultValue):d(new i.EmptyError)}});c.subscribe(f)})}},7256:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lastValueFrom=void 0;var i=n(1424);e.lastValueFrom=function(s,c){var u=typeof c=="object";return new Promise(function(a,l){var d,f=!1;s.subscribe({next:function(h){d=h,f=!0},error:l,complete:function(){f?a(d):u?a(c.defaultValue):l(new i.EmptyError)}})})}},9304:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(h,_){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&(m[b]=v[b])},i(h,_)},function(h,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function m(){this.constructor=h}i(h,_),h.prototype=_===null?Object.create(_):(m.prototype=_.prototype,new m)});Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectableObservable=void 0;var c=n(9332),u=n(1536),a=n(3120),l=n(48),d=n(6676),f=function(h){function _(m,v){var b=h.call(this)||this;return b.source=m,b.subjectFactory=v,b._subject=null,b._refCount=0,b._connection=null,d.hasLift(m)&&(b.lift=m.lift),b}return s(_,h),_.prototype._subscribe=function(m){return this.getSubject().subscribe(m)},_.prototype.getSubject=function(){var m=this._subject;return m&&!m.isStopped||(this._subject=this.subjectFactory()),this._subject},_.prototype._teardown=function(){this._refCount=0;var m=this._connection;this._subject=this._connection=null,m?.unsubscribe()},_.prototype.connect=function(){var m=this,v=this._connection;if(!v){v=this._connection=new u.Subscription;var b=this.getSubject();v.add(this.source.subscribe(l.createOperatorSubscriber(b,void 0,function(){m._teardown(),b.complete()},function(g){m._teardown(),b.error(g)},function(){return m._teardown()}))),v.closed&&(this._connection=null,v=u.Subscription.EMPTY)}return v},_.prototype.refCount=function(){return a.refCount()(this)},_}(c.Observable);e.ConnectableObservable=f},9904:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bindCallback=void 0;var i=n(9276);e.bindCallback=function(s,c,u){return i.bindCallbackInternals(!1,s,c,u)}},9276:function(r,e,n){"use strict";var i=this&&this.__read||function(h,_){var m=typeof Symbol=="function"&&h[Symbol.iterator];if(!m)return h;var v,b,g=m.call(h),w=[];try{for(;(_===void 0||_-- >0)&&!(v=g.next()).done;)w.push(v.value)}catch(T){b={error:T}}finally{try{v&&!v.done&&(m=g.return)&&m.call(g)}finally{if(b)throw b.error}}return w},s=this&&this.__spreadArray||function(h,_){for(var m=0,v=_.length,b=h.length;m<v;m++,b++)h[b]=_[m];return h};Object.defineProperty(e,"__esModule",{value:!0}),e.bindCallbackInternals=void 0;var c=n(3264),u=n(9332),a=n(8212),l=n(872),d=n(3064),f=n(1892);e.bindCallbackInternals=function h(_,m,v,b){if(v){if(!c.isScheduler(v))return function(){for(var g=[],w=0;w<arguments.length;w++)g[w]=arguments[w];return h(_,m,b).apply(this,g).pipe(l.mapOneOrManyArgs(v))};b=v}return b?function(){for(var g=[],w=0;w<arguments.length;w++)g[w]=arguments[w];return h(_,m).apply(this,g).pipe(a.subscribeOn(b),d.observeOn(b))}:function(){for(var g=this,w=[],T=0;T<arguments.length;T++)w[T]=arguments[T];var P=new f.AsyncSubject,k=!0;return new u.Observable(function(x){var R=P.subscribe(x);if(k){k=!1;var C=!1,j=!1;m.apply(g,s(s([],i(w)),[function(){for(var L=[],D=0;D<arguments.length;D++)L[D]=arguments[D];if(_){var F=L.shift();if(F!=null)return void P.error(F)}P.next(1<L.length?L:L[0]),j=!0,C&&P.complete()}])),j&&P.complete(),C=!0}return R})}}},7044:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bindNodeCallback=void 0;var i=n(9276);e.bindNodeCallback=function(s,c,u){return i.bindCallbackInternals(!0,s,c,u)}},7240:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.combineLatestInit=e.combineLatest=void 0;var i=n(9332),s=n(6680),c=n(6124),u=n(8760),a=n(872),l=n(1904),d=n(8872),f=n(48),h=n(4880);function _(v,b,g){return g===void 0&&(g=u.identity),function(w){m(b,function(){for(var T=v.length,P=new Array(T),k=T,x=T,R=function(j){m(b,function(){var L=c.from(v[j],b),D=!1;L.subscribe(f.createOperatorSubscriber(w,function(F){P[j]=F,D||(D=!0,x--),x||w.next(g(P.slice()))},function(){--k||w.complete()}))},w)},C=0;C<T;C++)R(C)},w)}}function m(v,b,g){v?h.executeSchedule(g,v,b):b()}e.combineLatest=function(){for(var v=[],b=0;b<arguments.length;b++)v[b]=arguments[b];var g=l.popScheduler(v),w=l.popResultSelector(v),T=s.argsArgArrayOrObject(v),P=T.args,k=T.keys;if(P.length===0)return c.from([],g);var x=new i.Observable(_(P,g,k?function(R){return d.createObject(k,R)}:u.identity));return w?x.pipe(a.mapOneOrManyArgs(w)):x},e.combineLatestInit=_},347:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.concat=void 0;var i=n(2708),s=n(1904),c=n(6124);e.concat=function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];return i.concatAll()(c.from(u,s.popScheduler(u)))}},5528:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.connectable=void 0;var i=n(5388),s=n(9332),c=n(5056),u={connector:function(){return new i.Subject},resetOnDisconnect:!0};e.connectable=function(a,l){l===void 0&&(l=u);var d=null,f=l.connector,h=l.resetOnDisconnect,_=h===void 0||h,m=f(),v=new s.Observable(function(b){return m.subscribe(b)});return v.connect=function(){return d&&!d.closed||(d=c.defer(function(){return a}).subscribe(m),_&&d.add(function(){return m=f()})),d},v}},5056:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defer=void 0;var i=n(9332),s=n(4720);e.defer=function(c){return new i.Observable(function(u){s.innerFrom(c()).subscribe(u)})}},4176:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.animationFrames=void 0;var i=n(9332),s=n(4296),c=n(5368);function u(l){return new i.Observable(function(d){var f=l||s.performanceTimestampProvider,h=f.now(),_=0,m=function(){d.closed||(_=c.animationFrameProvider.requestAnimationFrame(function(v){_=0;var b=f.now();d.next({timestamp:l?b:v,elapsed:b-h}),m()}))};return m(),function(){_&&c.animationFrameProvider.cancelAnimationFrame(_)}})}e.animationFrames=function(l){return l?u(l):a};var a=u()},9424:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.empty=e.EMPTY=void 0;var i=n(9332);e.EMPTY=new i.Observable(function(s){return s.complete()}),e.empty=function(s){return s?function(c){return new i.Observable(function(u){return c.schedule(function(){return u.complete()})})}(s):e.EMPTY}},4168:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forkJoin=void 0;var i=n(9332),s=n(6680),c=n(4720),u=n(1904),a=n(48),l=n(872),d=n(8872);e.forkJoin=function(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];var _=u.popResultSelector(f),m=s.argsArgArrayOrObject(f),v=m.args,b=m.keys,g=new i.Observable(function(w){var T=v.length;if(T)for(var P=new Array(T),k=T,x=T,R=function(j){var L=!1;c.innerFrom(v[j]).subscribe(a.createOperatorSubscriber(w,function(D){L||(L=!0,x--),P[j]=D},function(){return k--},void 0,function(){k&&L||(x||w.next(b?d.createObject(b,P):P),w.complete())}))},C=0;C<T;C++)R(C);else w.complete()});return _?g.pipe(l.mapOneOrManyArgs(_)):g}},6124:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.from=void 0;var i=n(3716),s=n(4720);e.from=function(c,u){return u?i.scheduled(c,u):s.innerFrom(c)}},5948:function(r,e,n){"use strict";var i=this&&this.__read||function(v,b){var g=typeof Symbol=="function"&&v[Symbol.iterator];if(!g)return v;var w,T,P=g.call(v),k=[];try{for(;(b===void 0||b-- >0)&&!(w=P.next()).done;)k.push(w.value)}catch(x){T={error:x}}finally{try{w&&!w.done&&(g=P.return)&&g.call(P)}finally{if(T)throw T.error}}return k};Object.defineProperty(e,"__esModule",{value:!0}),e.fromEvent=void 0;var s=n(4720),c=n(9332),u=n(9829),a=n(8531),l=n(7528),d=n(872),f=["addListener","removeListener"],h=["addEventListener","removeEventListener"],_=["on","off"];function m(v,b){return function(g){return function(w){return v[g](b,w)}}}e.fromEvent=function v(b,g,w,T){if(l.isFunction(w)&&(T=w,w=void 0),T)return v(b,g,w).pipe(d.mapOneOrManyArgs(T));var P=i(function(R){return l.isFunction(R.addEventListener)&&l.isFunction(R.removeEventListener)}(b)?h.map(function(R){return function(C){return b[R](g,C,w)}}):function(R){return l.isFunction(R.addListener)&&l.isFunction(R.removeListener)}(b)?f.map(m(b,g)):function(R){return l.isFunction(R.on)&&l.isFunction(R.off)}(b)?_.map(m(b,g)):[],2),k=P[0],x=P[1];if(!k&&a.isArrayLike(b))return u.mergeMap(function(R){return v(R,g,w)})(s.innerFrom(b));if(!k)throw new TypeError("Invalid event target");return new c.Observable(function(R){var C=function(){for(var j=[],L=0;L<arguments.length;L++)j[L]=arguments[L];return R.next(1<j.length?j:j[0])};return k(C),function(){return x(C)}})}},9680:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromEventPattern=void 0;var i=n(9332),s=n(7528),c=n(872);e.fromEventPattern=function u(a,l,d){return d?u(a,l).pipe(c.mapOneOrManyArgs(d)):new i.Observable(function(f){var h=function(){for(var m=[],v=0;v<arguments.length;v++)m[v]=arguments[v];return f.next(m.length===1?m[0]:m)},_=a(h);return s.isFunction(l)?function(){return l(h,_)}:void 0})}},1712:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromSubscribable=void 0;var i=n(9332);e.fromSubscribable=function(s){return new i.Observable(function(c){return s.subscribe(c)})}},1328:function(r,e,n){"use strict";var i=this&&this.__generator||function(l,d){var f,h,_,m,v={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return m={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function b(g){return function(w){return function(T){if(f)throw new TypeError("Generator is already executing.");for(;v;)try{if(f=1,h&&(_=2&T[0]?h.return:T[0]?h.throw||((_=h.return)&&_.call(h),0):h.next)&&!(_=_.call(h,T[1])).done)return _;switch(h=0,_&&(T=[2&T[0],_.value]),T[0]){case 0:case 1:_=T;break;case 4:return v.label++,{value:T[1],done:!1};case 5:v.label++,h=T[1],T=[0];continue;case 7:T=v.ops.pop(),v.trys.pop();continue;default:if(!((_=(_=v.trys).length>0&&_[_.length-1])||T[0]!==6&&T[0]!==2)){v=0;continue}if(T[0]===3&&(!_||T[1]>_[0]&&T[1]<_[3])){v.label=T[1];break}if(T[0]===6&&v.label<_[1]){v.label=_[1],_=T;break}if(_&&v.label<_[2]){v.label=_[2],v.ops.push(T);break}_[2]&&v.ops.pop(),v.trys.pop();continue}T=d.call(l,v)}catch(P){T=[6,P],h=0}finally{f=_=0}if(5&T[0])throw T[1];return{value:T[0]?T[1]:void 0,done:!0}}([g,w])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.generate=void 0;var s=n(8760),c=n(3264),u=n(5056),a=n(8184);e.generate=function(l,d,f,h,_){var m,v,b,g;function w(){var T;return i(this,function(P){switch(P.label){case 0:T=g,P.label=1;case 1:return d&&!d(T)?[3,4]:[4,b(T)];case 2:P.sent(),P.label=3;case 3:return T=f(T),[3,1];case 4:return[2]}})}return arguments.length===1?(g=(m=l).initialState,d=m.condition,f=m.iterate,v=m.resultSelector,b=v===void 0?s.identity:v,_=m.scheduler):(g=l,!h||c.isScheduler(h)?(b=s.identity,_=h):b=h),u.defer(_?function(){return a.scheduleIterable(w(),_)}:w)}},4560:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.iif=void 0;var i=n(5056);e.iif=function(s,c,u){return i.defer(function(){return s()?c:u})}},4720:function(r,e,n){"use strict";var i=this&&this.__awaiter||function(j,L,D,F){return new(D||(D=Promise))(function(q,z){function K(he){try{X(F.next(he))}catch(te){z(te)}}function se(he){try{X(F.throw(he))}catch(te){z(te)}}function X(he){var te;he.done?q(he.value):(te=he.value,te instanceof D?te:new D(function(xe){xe(te)})).then(K,se)}X((F=F.apply(j,L||[])).next())})},s=this&&this.__generator||function(j,L){var D,F,q,z,K={label:0,sent:function(){if(1&q[0])throw q[1];return q[1]},trys:[],ops:[]};return z={next:se(0),throw:se(1),return:se(2)},typeof Symbol=="function"&&(z[Symbol.iterator]=function(){return this}),z;function se(X){return function(he){return function(te){if(D)throw new TypeError("Generator is already executing.");for(;K;)try{if(D=1,F&&(q=2&te[0]?F.return:te[0]?F.throw||((q=F.return)&&q.call(F),0):F.next)&&!(q=q.call(F,te[1])).done)return q;switch(F=0,q&&(te=[2&te[0],q.value]),te[0]){case 0:case 1:q=te;break;case 4:return K.label++,{value:te[1],done:!1};case 5:K.label++,F=te[1],te=[0];continue;case 7:te=K.ops.pop(),K.trys.pop();continue;default:if(!((q=(q=K.trys).length>0&&q[q.length-1])||te[0]!==6&&te[0]!==2)){K=0;continue}if(te[0]===3&&(!q||te[1]>q[0]&&te[1]<q[3])){K.label=te[1];break}if(te[0]===6&&K.label<q[1]){K.label=q[1],q=te;break}if(q&&K.label<q[2]){K.label=q[2],K.ops.push(te);break}q[2]&&K.ops.pop(),K.trys.pop();continue}te=L.call(j,K)}catch(xe){te=[6,xe],F=0}finally{D=q=0}if(5&te[0])throw te[1];return{value:te[0]?te[1]:void 0,done:!0}}([X,he])}}},c=this&&this.__asyncValues||function(j){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var L,D=j[Symbol.asyncIterator];return D?D.call(j):(j=typeof u=="function"?u(j):j[Symbol.iterator](),L={},F("next"),F("throw"),F("return"),L[Symbol.asyncIterator]=function(){return this},L);function F(q){L[q]=j[q]&&function(z){return new Promise(function(K,se){(function(X,he,te,xe){Promise.resolve(xe).then(function(Ke){X({value:Ke,done:te})},he)})(K,se,(z=j[q](z)).done,z.value)})}}},u=this&&this.__values||function(j){var L=typeof Symbol=="function"&&Symbol.iterator,D=L&&j[L],F=0;if(D)return D.call(j);if(j&&typeof j.length=="number")return{next:function(){return j&&F>=j.length&&(j=void 0),{value:j&&j[F++],done:!j}}};throw new TypeError(L?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.fromReadableStreamLike=e.fromAsyncIterable=e.fromIterable=e.fromPromise=e.fromArrayLike=e.fromInteropObservable=e.innerFrom=void 0;var a=n(8531),l=n(1580),d=n(9332),f=n(3780),h=n(4616),_=n(8304),m=n(7576),v=n(9144),b=n(7528),g=n(6136),w=n(1908);function T(j){return new d.Observable(function(L){var D=j[w.observable]();if(b.isFunction(D.subscribe))return D.subscribe(L);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function P(j){return new d.Observable(function(L){for(var D=0;D<j.length&&!L.closed;D++)L.next(j[D]);L.complete()})}function k(j){return new d.Observable(function(L){j.then(function(D){L.closed||(L.next(D),L.complete())},function(D){return L.error(D)}).then(null,g.reportUnhandledError)})}function x(j){return new d.Observable(function(L){var D,F;try{for(var q=u(j),z=q.next();!z.done;z=q.next()){var K=z.value;if(L.next(K),L.closed)return}}catch(se){D={error:se}}finally{try{z&&!z.done&&(F=q.return)&&F.call(q)}finally{if(D)throw D.error}}L.complete()})}function R(j){return new d.Observable(function(L){(function(D,F){var q,z,K,se;return i(this,void 0,void 0,function(){var X,he;return s(this,function(te){switch(te.label){case 0:te.trys.push([0,5,6,11]),q=c(D),te.label=1;case 1:return[4,q.next()];case 2:if((z=te.sent()).done)return[3,4];if(X=z.value,F.next(X),F.closed)return[2];te.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return he=te.sent(),K={error:he},[3,11];case 6:return te.trys.push([6,,9,10]),z&&!z.done&&(se=q.return)?[4,se.call(q)]:[3,8];case 7:te.sent(),te.label=8;case 8:return[3,10];case 9:if(K)throw K.error;return[7];case 10:return[7];case 11:return F.complete(),[2]}})})})(j,L).catch(function(D){return L.error(D)})})}function C(j){return R(v.readableStreamLikeToAsyncGenerator(j))}e.innerFrom=function(j){if(j instanceof d.Observable)return j;if(j!=null){if(f.isInteropObservable(j))return T(j);if(a.isArrayLike(j))return P(j);if(l.isPromise(j))return k(j);if(h.isAsyncIterable(j))return R(j);if(m.isIterable(j))return x(j);if(v.isReadableStreamLike(j))return C(j)}throw _.createInvalidObservableTypeError(j)},e.fromInteropObservable=T,e.fromArrayLike=P,e.fromPromise=k,e.fromIterable=x,e.fromAsyncIterable=R,e.fromReadableStreamLike=C},9312:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.interval=void 0;var i=n(1416),s=n(4536);e.interval=function(c,u){return c===void 0&&(c=0),u===void 0&&(u=i.asyncScheduler),c<0&&(c=0),s.timer(c,c,u)}},8336:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var i=n(981),s=n(4720),c=n(9424),u=n(1904),a=n(6124);e.merge=function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var f=u.popScheduler(l),h=u.popNumber(l,1/0),_=l;return _.length?_.length===1?s.innerFrom(_[0]):i.mergeAll(h)(a.from(_,f)):c.EMPTY}},3504:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.never=e.NEVER=void 0;var i=n(9332),s=n(892);e.NEVER=new i.Observable(s.noop),e.never=function(){return e.NEVER}},5960:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.of=void 0;var i=n(1904),s=n(6124);e.of=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];var a=i.popScheduler(c);return s.from(c,a)}},5172:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.onErrorResumeNext=void 0;var i=n(9424),s=n(9596),c=n(9872);e.onErrorResumeNext=function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];return s.onErrorResumeNext(c.argsOrArgArray(u))(i.EMPTY)}},9643:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pairs=void 0;var i=n(6124);e.pairs=function(s,c){return i.from(Object.entries(s),c)}},21:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.partition=void 0;var i=n(2364),s=n(7424),c=n(4720);e.partition=function(u,a,l){return[s.filter(a,l)(c.innerFrom(u)),s.filter(i.not(a,l))(c.innerFrom(u))]}},6683:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.raceInit=e.race=void 0;var i=n(9332),s=n(4720),c=n(9872),u=n(48);function a(l){return function(d){for(var f=[],h=function(m){f.push(s.innerFrom(l[m]).subscribe(u.createOperatorSubscriber(d,function(v){if(f){for(var b=0;b<f.length;b++)b!==m&&f[b].unsubscribe();f=null}d.next(v)})))},_=0;f&&!d.closed&&_<l.length;_++)h(_)}}e.race=function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];return(l=c.argsOrArgArray(l)).length===1?s.innerFrom(l[0]):new i.Observable(a(l))},e.raceInit=a},9463:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.range=void 0;var i=n(9332),s=n(9424);e.range=function(c,u,a){if(u==null&&(u=c,c=0),u<=0)return s.EMPTY;var l=u+c;return new i.Observable(a?function(d){var f=c;return a.schedule(function(){f<l?(d.next(f++),this.schedule()):d.complete()})}:function(d){for(var f=c;f<l&&!d.closed;)d.next(f++);d.complete()})}},1684:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throwError=void 0;var i=n(9332),s=n(7528);e.throwError=function(c,u){var a=s.isFunction(c)?c:function(){return c},l=function(d){return d.error(a())};return new i.Observable(u?function(d){return u.schedule(l,0,d)}:l)}},4536:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.timer=void 0;var i=n(9332),s=n(1416),c=n(3264),u=n(2720);e.timer=function(a,l,d){a===void 0&&(a=0),d===void 0&&(d=s.async);var f=-1;return l!=null&&(c.isScheduler(l)?d=l:f=l),new i.Observable(function(h){var _=u.isValidDate(a)?+a-d.now():a;_<0&&(_=0);var m=0;return d.schedule(function(){h.closed||(h.next(m++),0<=f?this.schedule(void 0,f):h.complete())},_)})}},500:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.using=void 0;var i=n(9332),s=n(4720),c=n(9424);e.using=function(u,a){return new i.Observable(function(l){var d=u(),f=a(d);return(f?s.innerFrom(f):c.EMPTY).subscribe(l),function(){d&&d.unsubscribe()}})}},5456:function(r,e,n){"use strict";var i=this&&this.__read||function(h,_){var m=typeof Symbol=="function"&&h[Symbol.iterator];if(!m)return h;var v,b,g=m.call(h),w=[];try{for(;(_===void 0||_-- >0)&&!(v=g.next()).done;)w.push(v.value)}catch(T){b={error:T}}finally{try{v&&!v.done&&(m=g.return)&&m.call(g)}finally{if(b)throw b.error}}return w},s=this&&this.__spreadArray||function(h,_){for(var m=0,v=_.length,b=h.length;m<v;m++,b++)h[b]=_[m];return h};Object.defineProperty(e,"__esModule",{value:!0}),e.zip=void 0;var c=n(9332),u=n(4720),a=n(9872),l=n(9424),d=n(48),f=n(1904);e.zip=function(){for(var h=[],_=0;_<arguments.length;_++)h[_]=arguments[_];var m=f.popResultSelector(h),v=a.argsOrArgArray(h);return v.length?new c.Observable(function(b){var g=v.map(function(){return[]}),w=v.map(function(){return!1});b.add(function(){g=w=null});for(var T=function(k){u.innerFrom(v[k]).subscribe(d.createOperatorSubscriber(b,function(x){if(g[k].push(x),g.every(function(C){return C.length})){var R=g.map(function(C){return C.shift()});b.next(m?m.apply(void 0,s([],i(R))):R),g.some(function(C,j){return!C.length&&w[j]})&&b.complete()}},function(){w[k]=!0,!g[k].length&&b.complete()}))},P=0;!b.closed&&P<v.length;P++)T(P);return function(){g=w=null}}):l.EMPTY}},48:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(a,l){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(d[h]=f[h])},i(a,l)},function(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function d(){this.constructor=a}i(a,l),a.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(e,"__esModule",{value:!0}),e.OperatorSubscriber=e.createOperatorSubscriber=void 0;var c=n(8);e.createOperatorSubscriber=function(a,l,d,f,h){return new u(a,l,d,f,h)};var u=function(a){function l(d,f,h,_,m,v){var b=a.call(this,d)||this;return b.onFinalize=m,b.shouldUnsubscribe=v,b._next=f?function(g){try{f(g)}catch(w){d.error(w)}}:a.prototype._next,b._error=_?function(g){try{_(g)}catch(w){d.error(w)}finally{this.unsubscribe()}}:a.prototype._error,b._complete=h?function(){try{h()}catch(g){d.error(g)}finally{this.unsubscribe()}}:a.prototype._complete,b}return s(l,a),l.prototype.unsubscribe=function(){var d;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var f=this.closed;a.prototype.unsubscribe.call(this),!f&&((d=this.onFinalize)===null||d===void 0||d.call(this))}},l}(c.Subscriber);e.OperatorSubscriber=u},3824:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.audit=void 0;var i=n(6676),s=n(4720),c=n(48);e.audit=function(u){return i.operate(function(a,l){var d=!1,f=null,h=null,_=!1,m=function(){if(h?.unsubscribe(),h=null,d){d=!1;var b=f;f=null,l.next(b)}_&&l.complete()},v=function(){h=null,_&&l.complete()};a.subscribe(c.createOperatorSubscriber(l,function(b){d=!0,f=b,h||s.innerFrom(u(b)).subscribe(h=c.createOperatorSubscriber(l,m,v))},function(){_=!0,(!d||!h||h.closed)&&l.complete()}))})}},1016:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.auditTime=void 0;var i=n(1416),s=n(3824),c=n(4536);e.auditTime=function(u,a){return a===void 0&&(a=i.asyncScheduler),s.audit(function(){return c.timer(u,a)})}},4320:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.buffer=void 0;var i=n(6676),s=n(892),c=n(48);e.buffer=function(u){return i.operate(function(a,l){var d=[];return a.subscribe(c.createOperatorSubscriber(l,function(f){return d.push(f)},function(){l.next(d),l.complete()})),u.subscribe(c.createOperatorSubscriber(l,function(){var f=d;d=[],l.next(f)},s.noop)),function(){d=null}})}},8992:function(r,e,n){"use strict";var i=this&&this.__values||function(a){var l=typeof Symbol=="function"&&Symbol.iterator,d=l&&a[l],f=0;if(d)return d.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&f>=a.length&&(a=void 0),{value:a&&a[f++],done:!a}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.bufferCount=void 0;var s=n(6676),c=n(48),u=n(9331);e.bufferCount=function(a,l){return l===void 0&&(l=null),l=l??a,s.operate(function(d,f){var h=[],_=0;d.subscribe(c.createOperatorSubscriber(f,function(m){var v,b,g,w,T=null;_++%l==0&&h.push([]);try{for(var P=i(h),k=P.next();!k.done;k=P.next())(C=k.value).push(m),a<=C.length&&(T=T??[]).push(C)}catch(j){v={error:j}}finally{try{k&&!k.done&&(b=P.return)&&b.call(P)}finally{if(v)throw v.error}}if(T)try{for(var x=i(T),R=x.next();!R.done;R=x.next()){var C=R.value;u.arrRemove(h,C),f.next(C)}}catch(j){g={error:j}}finally{try{R&&!R.done&&(w=x.return)&&w.call(x)}finally{if(g)throw g.error}}},function(){var m,v;try{for(var b=i(h),g=b.next();!g.done;g=b.next()){var w=g.value;f.next(w)}}catch(T){m={error:T}}finally{try{g&&!g.done&&(v=b.return)&&v.call(b)}finally{if(m)throw m.error}}f.complete()},void 0,function(){h=null}))})}},4448:function(r,e,n){"use strict";var i=this&&this.__values||function(h){var _=typeof Symbol=="function"&&Symbol.iterator,m=_&&h[_],v=0;if(m)return m.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&v>=h.length&&(h=void 0),{value:h&&h[v++],done:!h}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.bufferTime=void 0;var s=n(1536),c=n(6676),u=n(48),a=n(9331),l=n(1416),d=n(1904),f=n(4880);e.bufferTime=function(h){for(var _,m,v=[],b=1;b<arguments.length;b++)v[b-1]=arguments[b];var g=(_=d.popScheduler(v))!==null&&_!==void 0?_:l.asyncScheduler,w=(m=v[0])!==null&&m!==void 0?m:null,T=v[1]||1/0;return c.operate(function(P,k){var x=[],R=!1,C=function(D){var F=D.buffer;D.subs.unsubscribe(),a.arrRemove(x,D),k.next(F),R&&j()},j=function(){if(x){var D=new s.Subscription;k.add(D);var F={buffer:[],subs:D};x.push(F),f.executeSchedule(D,g,function(){return C(F)},h)}};w!==null&&w>=0?f.executeSchedule(k,g,j,w,!0):R=!0,j();var L=u.createOperatorSubscriber(k,function(D){var F,q,z=x.slice();try{for(var K=i(z),se=K.next();!se.done;se=K.next()){var X=se.value,he=X.buffer;he.push(D),T<=he.length&&C(X)}}catch(te){F={error:te}}finally{try{se&&!se.done&&(q=K.return)&&q.call(K)}finally{if(F)throw F.error}}},function(){for(;x?.length;)k.next(x.shift().buffer);L?.unsubscribe(),k.complete(),k.unsubscribe()},void 0,function(){return x=null});P.subscribe(L)})}},5636:function(r,e,n){"use strict";var i=this&&this.__values||function(f){var h=typeof Symbol=="function"&&Symbol.iterator,_=h&&f[h],m=0;if(_)return _.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&m>=f.length&&(f=void 0),{value:f&&f[m++],done:!f}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.bufferToggle=void 0;var s=n(1536),c=n(6676),u=n(4720),a=n(48),l=n(892),d=n(9331);e.bufferToggle=function(f,h){return c.operate(function(_,m){var v=[];u.innerFrom(f).subscribe(a.createOperatorSubscriber(m,function(b){var g=[];v.push(g);var w=new s.Subscription;w.add(u.innerFrom(h(b)).subscribe(a.createOperatorSubscriber(m,function(){d.arrRemove(v,g),m.next(g),w.unsubscribe()},l.noop)))},l.noop)),_.subscribe(a.createOperatorSubscriber(m,function(b){var g,w;try{for(var T=i(v),P=T.next();!P.done;P=T.next())P.value.push(b)}catch(k){g={error:k}}finally{try{P&&!P.done&&(w=T.return)&&w.call(T)}finally{if(g)throw g.error}}},function(){for(;v.length>0;)m.next(v.shift());m.complete()}))})}},3096:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bufferWhen=void 0;var i=n(6676),s=n(892),c=n(48),u=n(4720);e.bufferWhen=function(a){return i.operate(function(l,d){var f=null,h=null,_=function(){h?.unsubscribe();var m=f;f=[],m&&d.next(m),u.innerFrom(a()).subscribe(h=c.createOperatorSubscriber(d,_,s.noop))};_(),l.subscribe(c.createOperatorSubscriber(d,function(m){return f?.push(m)},function(){f&&d.next(f),d.complete()},void 0,function(){return f=h=null}))})}},4464:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.catchError=void 0;var i=n(4720),s=n(48),c=n(6676);e.catchError=function u(a){return c.operate(function(l,d){var f,h=null,_=!1;h=l.subscribe(s.createOperatorSubscriber(d,void 0,void 0,function(m){f=i.innerFrom(a(m,u(a)(l))),h?(h.unsubscribe(),h=null,f.subscribe(d)):_=!0})),_&&(h.unsubscribe(),h=null,f.subscribe(d))})}},5028:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.combineAll=void 0;var i=n(1920);e.combineAll=i.combineLatestAll},9516:function(r,e,n){"use strict";var i=this&&this.__read||function(h,_){var m=typeof Symbol=="function"&&h[Symbol.iterator];if(!m)return h;var v,b,g=m.call(h),w=[];try{for(;(_===void 0||_-- >0)&&!(v=g.next()).done;)w.push(v.value)}catch(T){b={error:T}}finally{try{v&&!v.done&&(m=g.return)&&m.call(g)}finally{if(b)throw b.error}}return w},s=this&&this.__spreadArray||function(h,_){for(var m=0,v=_.length,b=h.length;m<v;m++,b++)h[b]=_[m];return h};Object.defineProperty(e,"__esModule",{value:!0}),e.combineLatest=void 0;var c=n(7240),u=n(6676),a=n(9872),l=n(872),d=n(488),f=n(1904);e.combineLatest=function h(){for(var _=[],m=0;m<arguments.length;m++)_[m]=arguments[m];var v=f.popResultSelector(_);return v?d.pipe(h.apply(void 0,s([],i(_))),l.mapOneOrManyArgs(v)):u.operate(function(b,g){c.combineLatestInit(s([b],i(a.argsOrArgArray(_))))(g)})}},1920:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.combineLatestAll=void 0;var i=n(7240),s=n(9864);e.combineLatestAll=function(c){return s.joinAllInternals(i.combineLatest,c)}},5832:function(r,e,n){"use strict";var i=this&&this.__read||function(u,a){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d,f,h=l.call(u),_=[];try{for(;(a===void 0||a-- >0)&&!(d=h.next()).done;)_.push(d.value)}catch(m){f={error:m}}finally{try{d&&!d.done&&(l=h.return)&&l.call(h)}finally{if(f)throw f.error}}return _},s=this&&this.__spreadArray||function(u,a){for(var l=0,d=a.length,f=u.length;l<d;l++,f++)u[f]=a[l];return u};Object.defineProperty(e,"__esModule",{value:!0}),e.combineLatestWith=void 0;var c=n(9516);e.combineLatestWith=function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];return c.combineLatest.apply(void 0,s([],i(u)))}},8192:function(r,e,n){"use strict";var i=this&&this.__read||function(d,f){var h=typeof Symbol=="function"&&d[Symbol.iterator];if(!h)return d;var _,m,v=h.call(d),b=[];try{for(;(f===void 0||f-- >0)&&!(_=v.next()).done;)b.push(_.value)}catch(g){m={error:g}}finally{try{_&&!_.done&&(h=v.return)&&h.call(v)}finally{if(m)throw m.error}}return b},s=this&&this.__spreadArray||function(d,f){for(var h=0,_=f.length,m=d.length;h<_;h++,m++)d[m]=f[h];return d};Object.defineProperty(e,"__esModule",{value:!0}),e.concat=void 0;var c=n(6676),u=n(2708),a=n(1904),l=n(6124);e.concat=function(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];var h=a.popScheduler(d);return c.operate(function(_,m){u.concatAll()(l.from(s([_],i(d)),h)).subscribe(m)})}},2708:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.concatAll=void 0;var i=n(981);e.concatAll=function(){return i.mergeAll(1)}},4912:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.concatMap=void 0;var i=n(9829),s=n(7528);e.concatMap=function(c,u){return s.isFunction(u)?i.mergeMap(c,u,1):i.mergeMap(c,1)}},9080:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.concatMapTo=void 0;var i=n(4912),s=n(7528);e.concatMapTo=function(c,u){return s.isFunction(u)?i.concatMap(function(){return c},u):i.concatMap(function(){return c})}},9440:function(r,e,n){"use strict";var i=this&&this.__read||function(u,a){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d,f,h=l.call(u),_=[];try{for(;(a===void 0||a-- >0)&&!(d=h.next()).done;)_.push(d.value)}catch(m){f={error:m}}finally{try{d&&!d.done&&(l=h.return)&&l.call(h)}finally{if(f)throw f.error}}return _},s=this&&this.__spreadArray||function(u,a){for(var l=0,d=a.length,f=u.length;l<d;l++,f++)u[f]=a[l];return u};Object.defineProperty(e,"__esModule",{value:!0}),e.concatWith=void 0;var c=n(8192);e.concatWith=function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];return c.concat.apply(void 0,s([],i(u)))}},7312:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.connect=void 0;var i=n(5388),s=n(4720),c=n(6676),u=n(1712),a={connector:function(){return new i.Subject}};e.connect=function(l,d){d===void 0&&(d=a);var f=d.connector;return c.operate(function(h,_){var m=f();s.innerFrom(l(u.fromSubscribable(m))).subscribe(_),_.add(h.subscribe(m))})}},1132:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.count=void 0;var i=n(4036);e.count=function(s){return i.reduce(function(c,u,a){return!s||s(u,a)?c+1:c},0)}},5924:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=void 0;var i=n(6676),s=n(892),c=n(48),u=n(4720);e.debounce=function(a){return i.operate(function(l,d){var f=!1,h=null,_=null,m=function(){if(_?.unsubscribe(),_=null,f){f=!1;var v=h;h=null,d.next(v)}};l.subscribe(c.createOperatorSubscriber(d,function(v){_?.unsubscribe(),f=!0,h=v,_=c.createOperatorSubscriber(d,m,s.noop),u.innerFrom(a(v)).subscribe(_)},function(){m(),d.complete()},void 0,function(){h=_=null}))})}},3600:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.debounceTime=void 0;var i=n(1416),s=n(6676),c=n(48);e.debounceTime=function(u,a){return a===void 0&&(a=i.asyncScheduler),s.operate(function(l,d){var f=null,h=null,_=null,m=function(){if(f){f.unsubscribe(),f=null;var b=h;h=null,d.next(b)}};function v(){var b=_+u,g=a.now();if(g<b)return f=this.schedule(void 0,b-g),void d.add(f);m()}l.subscribe(c.createOperatorSubscriber(d,function(b){h=b,_=a.now(),f||(f=a.schedule(v,u),d.add(f))},function(){m(),d.complete()},void 0,function(){h=f=null}))})}},6204:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultIfEmpty=void 0;var i=n(6676),s=n(48);e.defaultIfEmpty=function(c){return i.operate(function(u,a){var l=!1;u.subscribe(s.createOperatorSubscriber(a,function(d){l=!0,a.next(d)},function(){l||a.next(c),a.complete()}))})}},7752:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.delay=void 0;var i=n(1416),s=n(7532),c=n(4536);e.delay=function(u,a){a===void 0&&(a=i.asyncScheduler);var l=c.timer(u,a);return s.delayWhen(function(){return l})}},7532:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.delayWhen=void 0;var i=n(347),s=n(5688),c=n(4664),u=n(6544),a=n(9829);e.delayWhen=function l(d,f){return f?function(h){return i.concat(f.pipe(s.take(1),c.ignoreElements()),h.pipe(l(d)))}:a.mergeMap(function(h,_){return d(h,_).pipe(s.take(1),u.mapTo(h))})}},6491:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dematerialize=void 0;var i=n(1800),s=n(6676),c=n(48);e.dematerialize=function(){return s.operate(function(u,a){u.subscribe(c.createOperatorSubscriber(a,function(l){return i.observeNotification(l,a)}))})}},3976:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distinct=void 0;var i=n(6676),s=n(48),c=n(892);e.distinct=function(u,a){return i.operate(function(l,d){var f=new Set;l.subscribe(s.createOperatorSubscriber(d,function(h){var _=u?u(h):h;f.has(_)||(f.add(_),d.next(h))})),a?.subscribe(s.createOperatorSubscriber(d,function(){return f.clear()},c.noop))})}},8987:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distinctUntilChanged=void 0;var i=n(8760),s=n(6676),c=n(48);function u(a,l){return a===l}e.distinctUntilChanged=function(a,l){return l===void 0&&(l=i.identity),a=a??u,s.operate(function(d,f){var h,_=!0;d.subscribe(c.createOperatorSubscriber(f,function(m){var v=l(m);!_&&a(h,v)||(_=!1,h=v,f.next(m))}))})}},4288:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distinctUntilKeyChanged=void 0;var i=n(8987);e.distinctUntilKeyChanged=function(s,c){return i.distinctUntilChanged(function(u,a){return c?c(u[s],a[s]):u[s]===a[s]})}},1320:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.elementAt=void 0;var i=n(8028),s=n(7424),c=n(6400),u=n(6204),a=n(5688);e.elementAt=function(l,d){if(l<0)throw new i.ArgumentOutOfRangeError;var f=arguments.length>=2;return function(h){return h.pipe(s.filter(function(_,m){return m===l}),a.take(1),f?u.defaultIfEmpty(d):c.throwIfEmpty(function(){return new i.ArgumentOutOfRangeError}))}}},4028:function(r,e,n){"use strict";var i=this&&this.__read||function(a,l){var d=typeof Symbol=="function"&&a[Symbol.iterator];if(!d)return a;var f,h,_=d.call(a),m=[];try{for(;(l===void 0||l-- >0)&&!(f=_.next()).done;)m.push(f.value)}catch(v){h={error:v}}finally{try{f&&!f.done&&(d=_.return)&&d.call(_)}finally{if(h)throw h.error}}return m},s=this&&this.__spreadArray||function(a,l){for(var d=0,f=l.length,h=a.length;d<f;d++,h++)a[h]=l[d];return a};Object.defineProperty(e,"__esModule",{value:!0}),e.endWith=void 0;var c=n(347),u=n(5960);e.endWith=function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return function(d){return c.concat(d,u.of.apply(void 0,s([],i(a))))}}},2528:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.every=void 0;var i=n(6676),s=n(48);e.every=function(c,u){return i.operate(function(a,l){var d=0;a.subscribe(s.createOperatorSubscriber(l,function(f){c.call(u,f,d++,a)||(l.next(!1),l.complete())},function(){l.next(!0),l.complete()}))})}},9372:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.exhaust=void 0;var i=n(668);e.exhaust=i.exhaustAll},668:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.exhaustAll=void 0;var i=n(7332),s=n(8760);e.exhaustAll=function(){return i.exhaustMap(s.identity)}},7332:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.exhaustMap=void 0;var i=n(7144),s=n(4720),c=n(6676),u=n(48);e.exhaustMap=function a(l,d){return d?function(f){return f.pipe(a(function(h,_){return s.innerFrom(l(h,_)).pipe(i.map(function(m,v){return d(h,m,_,v)}))}))}:c.operate(function(f,h){var _=0,m=null,v=!1;f.subscribe(u.createOperatorSubscriber(h,function(b){m||(m=u.createOperatorSubscriber(h,void 0,function(){m=null,v&&h.complete()}),s.innerFrom(l(b,_++)).subscribe(m))},function(){v=!0,!m&&h.complete()}))})}},400:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.expand=void 0;var i=n(6676),s=n(7948);e.expand=function(c,u,a){return u===void 0&&(u=1/0),u=(u||0)<1?1/0:u,i.operate(function(l,d){return s.mergeInternals(l,d,c,u,void 0,!0,a)})}},7424:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.filter=void 0;var i=n(6676),s=n(48);e.filter=function(c,u){return i.operate(function(a,l){var d=0;a.subscribe(s.createOperatorSubscriber(l,function(f){return c.call(u,f,d++)&&l.next(f)}))})}},8424:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.finalize=void 0;var i=n(6676);e.finalize=function(s){return i.operate(function(c,u){try{c.subscribe(u)}finally{u.add(s)}})}},2328:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFind=e.find=void 0;var i=n(6676),s=n(48);function c(u,a,l){var d=l==="index";return function(f,h){var _=0;f.subscribe(s.createOperatorSubscriber(h,function(m){var v=_++;u.call(a,m,v,f)&&(h.next(d?v:m),h.complete())},function(){h.next(d?-1:void 0),h.complete()}))}}e.find=function(u,a){return i.operate(c(u,a,"value"))},e.createFind=c},8168:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findIndex=void 0;var i=n(6676),s=n(2328);e.findIndex=function(c,u){return i.operate(s.createFind(c,u,"index"))}},1564:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.first=void 0;var i=n(1424),s=n(7424),c=n(5688),u=n(6204),a=n(6400),l=n(8760);e.first=function(d,f){var h=arguments.length>=2;return function(_){return _.pipe(d?s.filter(function(m,v){return d(m,v,_)}):l.identity,c.take(1),h?u.defaultIfEmpty(f):a.throwIfEmpty(function(){return new i.EmptyError}))}}},9190:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.flatMap=void 0;var i=n(9829);e.flatMap=i.mergeMap},3499:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.groupBy=void 0;var i=n(9332),s=n(4720),c=n(5388),u=n(6676),a=n(48);e.groupBy=function(l,d,f,h){return u.operate(function(_,m){var v;d&&typeof d!="function"?(f=d.duration,v=d.element,h=d.connector):v=d;var b=new Map,g=function(x){b.forEach(x),x(m)},w=function(x){return g(function(R){return R.error(x)})},T=0,P=!1,k=new a.OperatorSubscriber(m,function(x){try{var R=l(x),C=b.get(R);if(!C){b.set(R,C=h?h():new c.Subject);var j=(D=R,F=C,(q=new i.Observable(function(z){T++;var K=F.subscribe(z);return function(){K.unsubscribe(),--T==0&&P&&k.unsubscribe()}})).key=D,q);if(m.next(j),f){var L=a.createOperatorSubscriber(C,function(){C.complete(),L?.unsubscribe()},void 0,void 0,function(){return b.delete(R)});k.add(s.innerFrom(f(j)).subscribe(L))}}C.next(v?v(x):x)}catch(z){w(z)}var D,F,q},function(){return g(function(x){return x.complete()})},w,function(){return b.clear()},function(){return P=!0,T===0});_.subscribe(k)})}},4664:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ignoreElements=void 0;var i=n(6676),s=n(48),c=n(892);e.ignoreElements=function(){return i.operate(function(u,a){u.subscribe(s.createOperatorSubscriber(a,c.noop))})}},3320:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=void 0;var i=n(6676),s=n(48);e.isEmpty=function(){return i.operate(function(c,u){c.subscribe(s.createOperatorSubscriber(u,function(){u.next(!1),u.complete()},function(){u.next(!0),u.complete()}))})}},9864:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinAllInternals=void 0;var i=n(8760),s=n(872),c=n(488),u=n(9829),a=n(1572);e.joinAllInternals=function(l,d){return c.pipe(a.toArray(),u.mergeMap(function(f){return l(f)}),d?s.mapOneOrManyArgs(d):i.identity)}},2804:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.last=void 0;var i=n(1424),s=n(7424),c=n(384),u=n(6400),a=n(6204),l=n(8760);e.last=function(d,f){var h=arguments.length>=2;return function(_){return _.pipe(d?s.filter(function(m,v){return d(m,v,_)}):l.identity,c.takeLast(1),h?a.defaultIfEmpty(f):u.throwIfEmpty(function(){return new i.EmptyError}))}}},7144:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.map=void 0;var i=n(6676),s=n(48);e.map=function(c,u){return i.operate(function(a,l){var d=0;a.subscribe(s.createOperatorSubscriber(l,function(f){l.next(c.call(u,f,d++))}))})}},6544:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mapTo=void 0;var i=n(7144);e.mapTo=function(s){return i.map(function(){return s})}},224:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.materialize=void 0;var i=n(1800),s=n(6676),c=n(48);e.materialize=function(){return s.operate(function(u,a){u.subscribe(c.createOperatorSubscriber(a,function(l){a.next(i.Notification.createNext(l))},function(){a.next(i.Notification.createComplete()),a.complete()},function(l){a.next(i.Notification.createError(l)),a.complete()}))})}},5594:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.max=void 0;var i=n(4036),s=n(7528);e.max=function(c){return i.reduce(s.isFunction(c)?function(u,a){return c(u,a)>0?u:a}:function(u,a){return u>a?u:a})}},4824:function(r,e,n){"use strict";var i=this&&this.__read||function(f,h){var _=typeof Symbol=="function"&&f[Symbol.iterator];if(!_)return f;var m,v,b=_.call(f),g=[];try{for(;(h===void 0||h-- >0)&&!(m=b.next()).done;)g.push(m.value)}catch(w){v={error:w}}finally{try{m&&!m.done&&(_=b.return)&&_.call(b)}finally{if(v)throw v.error}}return g},s=this&&this.__spreadArray||function(f,h){for(var _=0,m=h.length,v=f.length;_<m;_++,v++)f[v]=h[_];return f};Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var c=n(6676),u=n(9872),a=n(981),l=n(1904),d=n(6124);e.merge=function(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];var _=l.popScheduler(f),m=l.popNumber(f,1/0);return f=u.argsOrArgArray(f),c.operate(function(v,b){a.mergeAll(m)(d.from(s([v],i(f)),_)).subscribe(b)})}},981:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeAll=void 0;var i=n(9829),s=n(8760);e.mergeAll=function(c){return c===void 0&&(c=1/0),i.mergeMap(s.identity,c)}},7948:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeInternals=void 0;var i=n(4720),s=n(4880),c=n(48);e.mergeInternals=function(u,a,l,d,f,h,_,m){var v=[],b=0,g=0,w=!1,T=function(){!w||v.length||b||a.complete()},P=function(x){return b<d?k(x):v.push(x)},k=function(x){h&&a.next(x),b++;var R=!1;i.innerFrom(l(x,g++)).subscribe(c.createOperatorSubscriber(a,function(C){f?.(C),h?P(C):a.next(C)},function(){R=!0},void 0,function(){if(R)try{b--;for(var C=function(){var j=v.shift();_?s.executeSchedule(a,_,function(){return k(j)}):k(j)};v.length&&b<d;)C();T()}catch(j){a.error(j)}}))};return u.subscribe(c.createOperatorSubscriber(a,P,function(){w=!0,T()})),function(){m?.()}}},9829:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeMap=void 0;var i=n(7144),s=n(4720),c=n(6676),u=n(7948),a=n(7528);e.mergeMap=function l(d,f,h){return h===void 0&&(h=1/0),a.isFunction(f)?l(function(_,m){return i.map(function(v,b){return f(_,v,m,b)})(s.innerFrom(d(_,m)))},h):(typeof f=="number"&&(h=f),c.operate(function(_,m){return u.mergeInternals(_,m,d,h)}))}},3744:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeMapTo=void 0;var i=n(9829),s=n(7528);e.mergeMapTo=function(c,u,a){return a===void 0&&(a=1/0),s.isFunction(u)?i.mergeMap(function(){return c},u,a):(typeof u=="number"&&(a=u),i.mergeMap(function(){return c},a))}},6632:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeScan=void 0;var i=n(6676),s=n(7948);e.mergeScan=function(c,u,a){return a===void 0&&(a=1/0),i.operate(function(l,d){var f=u;return s.mergeInternals(l,d,function(h,_){return c(f,h,_)},a,function(h){f=h},!1,void 0,function(){return f=null})})}},364:function(r,e,n){"use strict";var i=this&&this.__read||function(u,a){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d,f,h=l.call(u),_=[];try{for(;(a===void 0||a-- >0)&&!(d=h.next()).done;)_.push(d.value)}catch(m){f={error:m}}finally{try{d&&!d.done&&(l=h.return)&&l.call(h)}finally{if(f)throw f.error}}return _},s=this&&this.__spreadArray||function(u,a){for(var l=0,d=a.length,f=u.length;l<d;l++,f++)u[f]=a[l];return u};Object.defineProperty(e,"__esModule",{value:!0}),e.mergeWith=void 0;var c=n(4824);e.mergeWith=function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];return c.merge.apply(void 0,s([],i(u)))}},1171:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.min=void 0;var i=n(4036),s=n(7528);e.min=function(c){return i.reduce(s.isFunction(c)?function(u,a){return c(u,a)<0?u:a}:function(u,a){return u<a?u:a})}},8324:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.multicast=void 0;var i=n(9304),s=n(7528),c=n(7312);e.multicast=function(u,a){var l=s.isFunction(u)?u:function(){return u};return s.isFunction(a)?c.connect(a,{connector:l}):function(d){return new i.ConnectableObservable(d,l)}}},3064:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.observeOn=void 0;var i=n(4880),s=n(6676),c=n(48);e.observeOn=function(u,a){return a===void 0&&(a=0),s.operate(function(l,d){l.subscribe(c.createOperatorSubscriber(d,function(f){return i.executeSchedule(d,u,function(){return d.next(f)},a)},function(){return i.executeSchedule(d,u,function(){return d.complete()},a)},function(f){return i.executeSchedule(d,u,function(){return d.error(f)},a)}))})}},9596:function(r,e,n){"use strict";var i=this&&this.__read||function(f,h){var _=typeof Symbol=="function"&&f[Symbol.iterator];if(!_)return f;var m,v,b=_.call(f),g=[];try{for(;(h===void 0||h-- >0)&&!(m=b.next()).done;)g.push(m.value)}catch(w){v={error:w}}finally{try{m&&!m.done&&(_=b.return)&&_.call(b)}finally{if(v)throw v.error}}return g},s=this&&this.__spreadArray||function(f,h){for(var _=0,m=h.length,v=f.length;_<m;_++,v++)f[v]=h[_];return f};Object.defineProperty(e,"__esModule",{value:!0}),e.onErrorResumeNext=void 0;var c=n(6676),u=n(4720),a=n(9872),l=n(48),d=n(892);e.onErrorResumeNext=function(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];var _=a.argsOrArgArray(f);return c.operate(function(m,v){var b=s([m],i(_)),g=function(){if(!v.closed)if(b.length>0){var w=void 0;try{w=u.innerFrom(b.shift())}catch{return void g()}var T=l.createOperatorSubscriber(v,void 0,d.noop,d.noop);w.subscribe(T),T.add(g)}else v.complete()};g()})}},8948:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pairwise=void 0;var i=n(6676),s=n(48);e.pairwise=function(){return i.operate(function(c,u){var a,l=!1;c.subscribe(s.createOperatorSubscriber(u,function(d){var f=a;a=d,l&&u.next([f,d]),l=!0}))})}},7680:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pluck=void 0;var i=n(7144);e.pluck=function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];var u=s.length;if(u===0)throw new Error("list of properties cannot be empty.");return i.map(function(a){for(var l=a,d=0;d<u;d++){var f=l?.[s[d]];if(f===void 0)return;l=f}return l})}},8228:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.publish=void 0;var i=n(5388),s=n(8324),c=n(7312);e.publish=function(u){return u?function(a){return c.connect(u)(a)}:function(a){return s.multicast(new i.Subject)(a)}}},4662:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.publishBehavior=void 0;var i=n(315),s=n(9304);e.publishBehavior=function(c){return function(u){var a=new i.BehaviorSubject(c);return new s.ConnectableObservable(u,function(){return a})}}},1636:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.publishLast=void 0;var i=n(1892),s=n(9304);e.publishLast=function(){return function(c){var u=new i.AsyncSubject;return new s.ConnectableObservable(c,function(){return u})}}},6956:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.publishReplay=void 0;var i=n(1964),s=n(8324),c=n(7528);e.publishReplay=function(u,a,l,d){l&&!c.isFunction(l)&&(d=l);var f=c.isFunction(l)?l:void 0;return function(h){return s.multicast(new i.ReplaySubject(u,a,d),f)(h)}}},5412:function(r,e,n){"use strict";var i=this&&this.__read||function(l,d){var f=typeof Symbol=="function"&&l[Symbol.iterator];if(!f)return l;var h,_,m=f.call(l),v=[];try{for(;(d===void 0||d-- >0)&&!(h=m.next()).done;)v.push(h.value)}catch(b){_={error:b}}finally{try{h&&!h.done&&(f=m.return)&&f.call(m)}finally{if(_)throw _.error}}return v},s=this&&this.__spreadArray||function(l,d){for(var f=0,h=d.length,_=l.length;f<h;f++,_++)l[_]=d[f];return l};Object.defineProperty(e,"__esModule",{value:!0}),e.raceWith=void 0;var c=n(6683),u=n(6676),a=n(8760);e.raceWith=function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];return l.length?u.operate(function(f,h){c.raceInit(s([f],i(l)))(h)}):a.identity}},4036:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.reduce=void 0;var i=n(3984),s=n(6676);e.reduce=function(c,u){return s.operate(i.scanInternals(c,u,arguments.length>=2,!1,!0))}},3120:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.refCount=void 0;var i=n(6676),s=n(48);e.refCount=function(){return i.operate(function(c,u){var a=null;c._refCount++;var l=s.createOperatorSubscriber(u,void 0,void 0,void 0,function(){if(!c||c._refCount<=0||0<--c._refCount)a=null;else{var d=c._connection,f=a;a=null,!d||f&&d!==f||d.unsubscribe(),u.unsubscribe()}});c.subscribe(l),l.closed||(a=c.connect())})}},2072:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.repeat=void 0;var i=n(9424),s=n(6676),c=n(48),u=n(4720),a=n(4536);e.repeat=function(l){var d,f,h=1/0;return l!=null&&(typeof l=="object"?(d=l.count,h=d===void 0?1/0:d,f=l.delay):h=l),h<=0?function(){return i.EMPTY}:s.operate(function(_,m){var v,b=0,g=function(){if(v?.unsubscribe(),v=null,f!=null){var T=typeof f=="number"?a.timer(f):u.innerFrom(f(b)),P=c.createOperatorSubscriber(m,function(){P.unsubscribe(),w()});T.subscribe(P)}else w()},w=function(){var T=!1;v=_.subscribe(c.createOperatorSubscriber(m,void 0,function(){++b<h?v?g():T=!0:m.complete()})),T&&g()};w()})}},1044:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.repeatWhen=void 0;var i=n(5388),s=n(6676),c=n(48);e.repeatWhen=function(u){return s.operate(function(a,l){var d,f,h=!1,_=!1,m=!1,v=function(){return m&&_&&(l.complete(),!0)},b=function(){m=!1,d=a.subscribe(c.createOperatorSubscriber(l,void 0,function(){m=!0,!v()&&(f||(f=new i.Subject,u(f).subscribe(c.createOperatorSubscriber(l,function(){d?b():h=!0},function(){_=!0,v()}))),f).next()})),h&&(d.unsubscribe(),d=null,h=!1,b())};b()})}},4848:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.retry=void 0;var i=n(6676),s=n(48),c=n(8760),u=n(4536),a=n(4720);e.retry=function(l){var d;l===void 0&&(l=1/0);var f=(d=l&&typeof l=="object"?l:{count:l}).count,h=f===void 0?1/0:f,_=d.delay,m=d.resetOnSuccess,v=m!==void 0&&m;return h<=0?c.identity:i.operate(function(b,g){var w,T=0,P=function(){var k=!1;w=b.subscribe(s.createOperatorSubscriber(g,function(x){v&&(T=0),g.next(x)},void 0,function(x){if(T++<h){var R=function(){w?(w.unsubscribe(),w=null,P()):k=!0};if(_!=null){var C=typeof _=="number"?u.timer(_):a.innerFrom(_(x,T)),j=s.createOperatorSubscriber(g,function(){j.unsubscribe(),R()},function(){g.complete()});C.subscribe(j)}else R()}else g.error(x)})),k&&(w.unsubscribe(),w=null,P())};P()})}},9292:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.retryWhen=void 0;var i=n(5388),s=n(6676),c=n(48);e.retryWhen=function(u){return s.operate(function(a,l){var d,f,h=!1,_=function(){d=a.subscribe(c.createOperatorSubscriber(l,void 0,void 0,function(m){f||(f=new i.Subject,u(f).subscribe(c.createOperatorSubscriber(l,function(){return d?_():h=!0}))),f&&f.next(m)})),h&&(d.unsubscribe(),d=null,h=!1,_())};_()})}},3076:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sample=void 0;var i=n(6676),s=n(892),c=n(48);e.sample=function(u){return i.operate(function(a,l){var d=!1,f=null;a.subscribe(c.createOperatorSubscriber(l,function(h){d=!0,f=h})),u.subscribe(c.createOperatorSubscriber(l,function(){if(d){d=!1;var h=f;f=null,l.next(h)}},s.noop))})}},2180:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sampleTime=void 0;var i=n(1416),s=n(3076),c=n(9312);e.sampleTime=function(u,a){return a===void 0&&(a=i.asyncScheduler),s.sample(c.interval(u,a))}},6424:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scan=void 0;var i=n(6676),s=n(3984);e.scan=function(c,u){return i.operate(s.scanInternals(c,u,arguments.length>=2,!0))}},3984:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scanInternals=void 0;var i=n(48);e.scanInternals=function(s,c,u,a,l){return function(d,f){var h=u,_=c,m=0;d.subscribe(i.createOperatorSubscriber(f,function(v){var b=m++;_=h?s(_,v,b):(h=!0,v),a&&f.next(_)},l&&function(){h&&f.next(_),f.complete()}))}}},6440:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sequenceEqual=void 0;var i=n(6676),s=n(48);e.sequenceEqual=function(c,u){return u===void 0&&(u=function(a,l){return a===l}),i.operate(function(a,l){var d={buffer:[],complete:!1},f={buffer:[],complete:!1},h=function(m){l.next(m),l.complete()},_=function(m,v){var b=s.createOperatorSubscriber(l,function(g){var w=v.buffer,T=v.complete;w.length===0?T?h(!1):m.buffer.push(g):!u(g,w.shift())&&h(!1)},function(){m.complete=!0;var g=v.complete,w=v.buffer;g&&h(w.length===0),b?.unsubscribe()});return b};a.subscribe(_(d,f)),c.subscribe(_(f,d))})}},6532:function(r,e,n){"use strict";var i=this&&this.__read||function(f,h){var _=typeof Symbol=="function"&&f[Symbol.iterator];if(!_)return f;var m,v,b=_.call(f),g=[];try{for(;(h===void 0||h-- >0)&&!(m=b.next()).done;)g.push(m.value)}catch(w){v={error:w}}finally{try{m&&!m.done&&(_=b.return)&&_.call(b)}finally{if(v)throw v.error}}return g},s=this&&this.__spreadArray||function(f,h){for(var _=0,m=h.length,v=f.length;_<m;_++,v++)f[v]=h[_];return f};Object.defineProperty(e,"__esModule",{value:!0}),e.share=void 0;var c=n(4720),u=n(5388),a=n(8),l=n(6676);function d(f,h){for(var _=[],m=2;m<arguments.length;m++)_[m-2]=arguments[m];if(h!==!0){if(h!==!1){var v=new a.SafeSubscriber({next:function(){v.unsubscribe(),f()}});return h.apply(void 0,s([],i(_))).subscribe(v)}}else f()}e.share=function(f){f===void 0&&(f={});var h=f.connector,_=h===void 0?function(){return new u.Subject}:h,m=f.resetOnError,v=m===void 0||m,b=f.resetOnComplete,g=b===void 0||b,w=f.resetOnRefCountZero,T=w===void 0||w;return function(P){var k,x,R,C=0,j=!1,L=!1,D=function(){x?.unsubscribe(),x=void 0},F=function(){D(),k=R=void 0,j=L=!1},q=function(){var z=k;F(),z?.unsubscribe()};return l.operate(function(z,K){C++,L||j||D();var se=R=R??_();K.add(function(){--C!=0||L||j||(x=d(q,T))}),se.subscribe(K),!k&&C>0&&(k=new a.SafeSubscriber({next:function(X){return se.next(X)},error:function(X){L=!0,D(),x=d(F,v,X),se.error(X)},complete:function(){j=!0,D(),x=d(F,g),se.complete()}}),c.innerFrom(z).subscribe(k))})(P)}}},4980:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shareReplay=void 0;var i=n(1964),s=n(6532);e.shareReplay=function(c,u,a){var l,d,f,h,_=!1;return c&&typeof c=="object"?(l=c.bufferSize,h=l===void 0?1/0:l,d=c.windowTime,u=d===void 0?1/0:d,_=(f=c.refCount)!==void 0&&f,a=c.scheduler):h=c??1/0,s.share({connector:function(){return new i.ReplaySubject(h,u,a)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:_})}},1400:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.single=void 0;var i=n(1424),s=n(6968),c=n(7628),u=n(6676),a=n(48);e.single=function(l){return u.operate(function(d,f){var h,_=!1,m=!1,v=0;d.subscribe(a.createOperatorSubscriber(f,function(b){m=!0,l&&!l(b,v++,d)||(_&&f.error(new s.SequenceError("Too many matching values")),_=!0,h=b)},function(){_?(f.next(h),f.complete()):f.error(m?new c.NotFoundError("No matching values"):new i.EmptyError)}))})}},7516:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.skip=void 0;var i=n(7424);e.skip=function(s){return i.filter(function(c,u){return s<=u})}},7211:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.skipLast=void 0;var i=n(8760),s=n(6676),c=n(48);e.skipLast=function(u){return u<=0?i.identity:s.operate(function(a,l){var d=new Array(u),f=0;return a.subscribe(c.createOperatorSubscriber(l,function(h){var _=f++;if(_<u)d[_]=h;else{var m=_%u,v=d[m];d[m]=h,l.next(v)}})),function(){d=null}})}},7136:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.skipUntil=void 0;var i=n(6676),s=n(48),c=n(4720),u=n(892);e.skipUntil=function(a){return i.operate(function(l,d){var f=!1,h=s.createOperatorSubscriber(d,function(){h?.unsubscribe(),f=!0},u.noop);c.innerFrom(a).subscribe(h),l.subscribe(s.createOperatorSubscriber(d,function(_){return f&&d.next(_)}))})}},7820:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.skipWhile=void 0;var i=n(6676),s=n(48);e.skipWhile=function(c){return i.operate(function(u,a){var l=!1,d=0;u.subscribe(s.createOperatorSubscriber(a,function(f){return(l||(l=!c(f,d++)))&&a.next(f)}))})}},3432:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.startWith=void 0;var i=n(347),s=n(1904),c=n(6676);e.startWith=function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];var l=s.popScheduler(u);return c.operate(function(d,f){(l?i.concat(u,d,l):i.concat(u,d)).subscribe(f)})}},8212:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.subscribeOn=void 0;var i=n(6676);e.subscribeOn=function(s,c){return c===void 0&&(c=0),i.operate(function(u,a){a.add(s.schedule(function(){return u.subscribe(a)},c))})}},1272:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.switchAll=void 0;var i=n(9456),s=n(8760);e.switchAll=function(){return i.switchMap(s.identity)}},9456:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.switchMap=void 0;var i=n(4720),s=n(6676),c=n(48);e.switchMap=function(u,a){return s.operate(function(l,d){var f=null,h=0,_=!1,m=function(){return _&&!f&&d.complete()};l.subscribe(c.createOperatorSubscriber(d,function(v){f?.unsubscribe();var b=0,g=h++;i.innerFrom(u(v,g)).subscribe(f=c.createOperatorSubscriber(d,function(w){return d.next(a?a(v,w,g,b++):w)},function(){f=null,m()}))},function(){_=!0,m()}))})}},8152:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.switchMapTo=void 0;var i=n(9456),s=n(7528);e.switchMapTo=function(c,u){return s.isFunction(u)?i.switchMap(function(){return c},u):i.switchMap(function(){return c})}},2600:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.switchScan=void 0;var i=n(9456),s=n(6676);e.switchScan=function(c,u){return s.operate(function(a,l){var d=u;return i.switchMap(function(f,h){return c(d,f,h)},function(f,h){return d=h,h})(a).subscribe(l),function(){d=null}})}},5688:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.take=void 0;var i=n(9424),s=n(6676),c=n(48);e.take=function(u){return u<=0?function(){return i.EMPTY}:s.operate(function(a,l){var d=0;a.subscribe(c.createOperatorSubscriber(l,function(f){++d<=u&&(l.next(f),u<=d&&l.complete())}))})}},384:function(r,e,n){"use strict";var i=this&&this.__values||function(a){var l=typeof Symbol=="function"&&Symbol.iterator,d=l&&a[l],f=0;if(d)return d.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&f>=a.length&&(a=void 0),{value:a&&a[f++],done:!a}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.takeLast=void 0;var s=n(9424),c=n(6676),u=n(48);e.takeLast=function(a){return a<=0?function(){return s.EMPTY}:c.operate(function(l,d){var f=[];l.subscribe(u.createOperatorSubscriber(d,function(h){f.push(h),a<f.length&&f.shift()},function(){var h,_;try{for(var m=i(f),v=m.next();!v.done;v=m.next()){var b=v.value;d.next(b)}}catch(g){h={error:g}}finally{try{v&&!v.done&&(_=m.return)&&_.call(m)}finally{if(h)throw h.error}}d.complete()},void 0,function(){f=null}))})}},220:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.takeUntil=void 0;var i=n(6676),s=n(48),c=n(4720),u=n(892);e.takeUntil=function(a){return i.operate(function(l,d){c.innerFrom(a).subscribe(s.createOperatorSubscriber(d,function(){return d.complete()},u.noop)),!d.closed&&l.subscribe(d)})}},7924:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.takeWhile=void 0;var i=n(6676),s=n(48);e.takeWhile=function(c,u){return u===void 0&&(u=!1),i.operate(function(a,l){var d=0;a.subscribe(s.createOperatorSubscriber(l,function(f){var h=c(f,d++);(h||u)&&l.next(f),!h&&l.complete()}))})}},2200:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tap=void 0;var i=n(7528),s=n(6676),c=n(48),u=n(8760);e.tap=function(a,l,d){var f=i.isFunction(a)||l||d?{next:a,error:l,complete:d}:a;return f?s.operate(function(h,_){var m;(m=f.subscribe)===null||m===void 0||m.call(f);var v=!0;h.subscribe(c.createOperatorSubscriber(_,function(b){var g;(g=f.next)===null||g===void 0||g.call(f,b),_.next(b)},function(){var b;v=!1,(b=f.complete)===null||b===void 0||b.call(f),_.complete()},function(b){var g;v=!1,(g=f.error)===null||g===void 0||g.call(f,b),_.error(b)},function(){var b,g;v&&((b=f.unsubscribe)===null||b===void 0||b.call(f)),(g=f.finalize)===null||g===void 0||g.call(f)}))}):u.identity}},6912:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=e.defaultThrottleConfig=void 0;var i=n(6676),s=n(48),c=n(4720);e.defaultThrottleConfig={leading:!0,trailing:!1},e.throttle=function(u,a){return a===void 0&&(a=e.defaultThrottleConfig),i.operate(function(l,d){var f=a.leading,h=a.trailing,_=!1,m=null,v=null,b=!1,g=function(){v?.unsubscribe(),v=null,h&&(P(),b&&d.complete())},w=function(){v=null,b&&d.complete()},T=function(k){return v=c.innerFrom(u(k)).subscribe(s.createOperatorSubscriber(d,g,w))},P=function(){if(_){_=!1;var k=m;m=null,d.next(k),!b&&T(k)}};l.subscribe(s.createOperatorSubscriber(d,function(k){_=!0,m=k,(!v||v.closed)&&(f?P():T(k))},function(){b=!0,(!(h&&_&&v)||v.closed)&&d.complete()}))})}},2085:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throttleTime=void 0;var i=n(1416),s=n(6912),c=n(4536);e.throttleTime=function(u,a,l){a===void 0&&(a=i.asyncScheduler),l===void 0&&(l=s.defaultThrottleConfig);var d=c.timer(u,a);return s.throttle(function(){return d},l)}},6400:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throwIfEmpty=void 0;var i=n(1424),s=n(6676),c=n(48);function u(){return new i.EmptyError}e.throwIfEmpty=function(a){return a===void 0&&(a=u),s.operate(function(l,d){var f=!1;l.subscribe(c.createOperatorSubscriber(d,function(h){f=!0,d.next(h)},function(){return f?d.complete():d.error(a())}))})}},2920:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TimeInterval=e.timeInterval=void 0;var i=n(1416),s=n(6676),c=n(48);e.timeInterval=function(a){return a===void 0&&(a=i.asyncScheduler),s.operate(function(l,d){var f=a.now();l.subscribe(c.createOperatorSubscriber(d,function(h){var _=a.now(),m=_-f;f=_,d.next(new u(h,m))}))})};var u=function(a,l){this.value=a,this.interval=l};e.TimeInterval=u},328:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.timeout=e.TimeoutError=void 0;var i=n(1416),s=n(2720),c=n(6676),u=n(4720),a=n(8188),l=n(48),d=n(4880);function f(h){throw new e.TimeoutError(h)}e.TimeoutError=a.createErrorClass(function(h){return function(_){_===void 0&&(_=null),h(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=_}}),e.timeout=function(h,_){var m=s.isValidDate(h)?{first:h}:typeof h=="number"?{each:h}:h,v=m.first,b=m.each,g=m.with,w=g===void 0?f:g,T=m.scheduler,P=T===void 0?_??i.asyncScheduler:T,k=m.meta,x=k===void 0?null:k;if(v==null&&b==null)throw new TypeError("No timeout provided.");return c.operate(function(R,C){var j,L,D=null,F=0,q=function(z){L=d.executeSchedule(C,P,function(){try{j.unsubscribe(),u.innerFrom(w({meta:x,lastValue:D,seen:F})).subscribe(C)}catch(K){C.error(K)}},z)};j=R.subscribe(l.createOperatorSubscriber(C,function(z){L?.unsubscribe(),F++,C.next(D=z),b>0&&q(b)},void 0,void 0,function(){L?.closed||L==null||L.unsubscribe(),D=null})),!F&&q(v!=null?typeof v=="number"?v:+v-P.now():b)})}},2244:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.timeoutWith=void 0;var i=n(1416),s=n(2720),c=n(328);e.timeoutWith=function(u,a,l){var d,f,h;if(l=l??i.async,s.isValidDate(u)?d=u:typeof u=="number"&&(f=u),!a)throw new TypeError("No observable provided to switch to");if(h=function(){return a},d==null&&f==null)throw new TypeError("No timeout provided.");return c.timeout({first:d,each:f,scheduler:l,with:h})}},4576:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.timestamp=void 0;var i=n(1312),s=n(7144);e.timestamp=function(c){return c===void 0&&(c=i.dateTimestampProvider),s.map(function(u){return{value:u,timestamp:c.now()}})}},1572:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toArray=void 0;var i=n(4036),s=n(6676),c=function(u,a){return u.push(a),u};e.toArray=function(){return s.operate(function(u,a){i.reduce(c,[])(u).subscribe(a)})}},4096:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.window=void 0;var i=n(5388),s=n(6676),c=n(48),u=n(892);e.window=function(a){return s.operate(function(l,d){var f=new i.Subject;d.next(f.asObservable());var h=function(_){f.error(_),d.error(_)};return l.subscribe(c.createOperatorSubscriber(d,function(_){return f?.next(_)},function(){f.complete(),d.complete()},h)),a.subscribe(c.createOperatorSubscriber(d,function(){f.complete(),d.next(f=new i.Subject)},u.noop,h)),function(){f?.unsubscribe(),f=null}})}},3100:function(r,e,n){"use strict";var i=this&&this.__values||function(a){var l=typeof Symbol=="function"&&Symbol.iterator,d=l&&a[l],f=0;if(d)return d.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&f>=a.length&&(a=void 0),{value:a&&a[f++],done:!a}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.windowCount=void 0;var s=n(5388),c=n(6676),u=n(48);e.windowCount=function(a,l){l===void 0&&(l=0);var d=l>0?l:a;return c.operate(function(f,h){var _=[new s.Subject],m=0;h.next(_[0].asObservable()),f.subscribe(u.createOperatorSubscriber(h,function(v){var b,g;try{for(var w=i(_),T=w.next();!T.done;T=w.next())T.value.next(v)}catch(x){b={error:x}}finally{try{T&&!T.done&&(g=w.return)&&g.call(w)}finally{if(b)throw b.error}}var P=m-a+1;if(P>=0&&P%d==0&&_.shift().complete(),++m%d==0){var k=new s.Subject;_.push(k),h.next(k.asObservable())}},function(){for(;_.length>0;)_.shift().complete();h.complete()},function(v){for(;_.length>0;)_.shift().error(v);h.error(v)},function(){_=null}))})}},6652:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.windowTime=void 0;var i=n(5388),s=n(1416),c=n(1536),u=n(6676),a=n(48),l=n(9331),d=n(1904),f=n(4880);e.windowTime=function(h){for(var _,m,v=[],b=1;b<arguments.length;b++)v[b-1]=arguments[b];var g=(_=d.popScheduler(v))!==null&&_!==void 0?_:s.asyncScheduler,w=(m=v[0])!==null&&m!==void 0?m:null,T=v[1]||1/0;return u.operate(function(P,k){var x=[],R=!1,C=function(F){var q=F.window,z=F.subs;q.complete(),z.unsubscribe(),l.arrRemove(x,F),R&&j()},j=function(){if(x){var F=new c.Subscription;k.add(F);var q=new i.Subject,z={window:q,subs:F,seen:0};x.push(z),k.next(q.asObservable()),f.executeSchedule(F,g,function(){return C(z)},h)}};w!==null&&w>=0?f.executeSchedule(k,g,j,w,!0):R=!0,j();var L=function(F){return x.slice().forEach(F)},D=function(F){L(function(q){var z=q.window;return F(z)}),F(k),k.unsubscribe()};return P.subscribe(a.createOperatorSubscriber(k,function(F){L(function(q){q.window.next(F),T<=++q.seen&&C(q)})},function(){return D(function(F){return F.complete()})},function(F){return D(function(q){return q.error(F)})})),function(){x=null}})}},3592:function(r,e,n){"use strict";var i=this&&this.__values||function(h){var _=typeof Symbol=="function"&&Symbol.iterator,m=_&&h[_],v=0;if(m)return m.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&v>=h.length&&(h=void 0),{value:h&&h[v++],done:!h}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.windowToggle=void 0;var s=n(5388),c=n(1536),u=n(6676),a=n(4720),l=n(48),d=n(892),f=n(9331);e.windowToggle=function(h,_){return u.operate(function(m,v){var b=[],g=function(w){for(;0<b.length;)b.shift().error(w);v.error(w)};a.innerFrom(h).subscribe(l.createOperatorSubscriber(v,function(w){var T=new s.Subject;b.push(T);var P,k=new c.Subscription;try{P=a.innerFrom(_(w))}catch(x){return void g(x)}v.next(T.asObservable()),k.add(P.subscribe(l.createOperatorSubscriber(v,function(){f.arrRemove(b,T),T.complete(),k.unsubscribe()},d.noop,g)))},d.noop)),m.subscribe(l.createOperatorSubscriber(v,function(w){var T,P,k=b.slice();try{for(var x=i(k),R=x.next();!R.done;R=x.next())R.value.next(w)}catch(C){T={error:C}}finally{try{R&&!R.done&&(P=x.return)&&P.call(x)}finally{if(T)throw T.error}}},function(){for(;0<b.length;)b.shift().complete();v.complete()},g,function(){for(;0<b.length;)b.shift().unsubscribe()}))})}},4256:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.windowWhen=void 0;var i=n(5388),s=n(6676),c=n(48),u=n(4720);e.windowWhen=function(a){return s.operate(function(l,d){var f,h,_=function(v){f.error(v),d.error(v)},m=function(){var v;h?.unsubscribe(),f?.complete(),f=new i.Subject,d.next(f.asObservable());try{v=u.innerFrom(a())}catch(b){return void _(b)}v.subscribe(h=c.createOperatorSubscriber(d,m,m,_))};m(),l.subscribe(c.createOperatorSubscriber(d,function(v){return f.next(v)},function(){f.complete(),d.complete()},_,function(){h?.unsubscribe(),f=null}))})}},5432:function(r,e,n){"use strict";var i=this&&this.__read||function(h,_){var m=typeof Symbol=="function"&&h[Symbol.iterator];if(!m)return h;var v,b,g=m.call(h),w=[];try{for(;(_===void 0||_-- >0)&&!(v=g.next()).done;)w.push(v.value)}catch(T){b={error:T}}finally{try{v&&!v.done&&(m=g.return)&&m.call(g)}finally{if(b)throw b.error}}return w},s=this&&this.__spreadArray||function(h,_){for(var m=0,v=_.length,b=h.length;m<v;m++,b++)h[b]=_[m];return h};Object.defineProperty(e,"__esModule",{value:!0}),e.withLatestFrom=void 0;var c=n(6676),u=n(48),a=n(4720),l=n(8760),d=n(892),f=n(1904);e.withLatestFrom=function(){for(var h=[],_=0;_<arguments.length;_++)h[_]=arguments[_];var m=f.popResultSelector(h);return c.operate(function(v,b){for(var g=h.length,w=new Array(g),T=h.map(function(){return!1}),P=!1,k=function(R){a.innerFrom(h[R]).subscribe(u.createOperatorSubscriber(b,function(C){w[R]=C,P||T[R]||(T[R]=!0,(P=T.every(l.identity))&&(T=null))},d.noop))},x=0;x<g;x++)k(x);v.subscribe(u.createOperatorSubscriber(b,function(R){if(P){var C=s([R],i(w));b.next(m?m.apply(void 0,s([],i(C))):C)}}))})}},8220:function(r,e,n){"use strict";var i=this&&this.__read||function(a,l){var d=typeof Symbol=="function"&&a[Symbol.iterator];if(!d)return a;var f,h,_=d.call(a),m=[];try{for(;(l===void 0||l-- >0)&&!(f=_.next()).done;)m.push(f.value)}catch(v){h={error:v}}finally{try{f&&!f.done&&(d=_.return)&&d.call(_)}finally{if(h)throw h.error}}return m},s=this&&this.__spreadArray||function(a,l){for(var d=0,f=l.length,h=a.length;d<f;d++,h++)a[h]=l[d];return a};Object.defineProperty(e,"__esModule",{value:!0}),e.zip=void 0;var c=n(5456),u=n(6676);e.zip=function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return u.operate(function(d,f){c.zip.apply(void 0,s([d],i(a))).subscribe(f)})}},3515:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.zipAll=void 0;var i=n(5456),s=n(9864);e.zipAll=function(c){return s.joinAllInternals(i.zip,c)}},5828:function(r,e,n){"use strict";var i=this&&this.__read||function(u,a){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d,f,h=l.call(u),_=[];try{for(;(a===void 0||a-- >0)&&!(d=h.next()).done;)_.push(d.value)}catch(m){f={error:m}}finally{try{d&&!d.done&&(l=h.return)&&l.call(h)}finally{if(f)throw f.error}}return _},s=this&&this.__spreadArray||function(u,a){for(var l=0,d=a.length,f=u.length;l<d;l++,f++)u[f]=a[l];return u};Object.defineProperty(e,"__esModule",{value:!0}),e.zipWith=void 0;var c=n(8220);e.zipWith=function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];return c.zip.apply(void 0,s([],i(u)))}},2060:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleArray=void 0;var i=n(9332);e.scheduleArray=function(s,c){return new i.Observable(function(u){var a=0;return c.schedule(function(){a===s.length?u.complete():(u.next(s[a++]),u.closed||this.schedule())})})}},4248:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleAsyncIterable=void 0;var i=n(9332),s=n(4880);e.scheduleAsyncIterable=function(c,u){if(!c)throw new Error("Iterable cannot be null");return new i.Observable(function(a){s.executeSchedule(a,u,function(){var l=c[Symbol.asyncIterator]();s.executeSchedule(a,u,function(){l.next().then(function(d){d.done?a.complete():a.next(d.value)})},0,!0)})})}},8184:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleIterable=void 0;var i=n(9332),s=n(496),c=n(7528),u=n(4880);e.scheduleIterable=function(a,l){return new i.Observable(function(d){var f;return u.executeSchedule(d,l,function(){f=a[s.iterator](),u.executeSchedule(d,l,function(){var h,_,m;try{_=(h=f.next()).value,m=h.done}catch(v){return void d.error(v)}m?d.complete():d.next(_)},0,!0)}),function(){return c.isFunction(f?.return)&&f.return()}})}},148:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleObservable=void 0;var i=n(4720),s=n(3064),c=n(8212);e.scheduleObservable=function(u,a){return i.innerFrom(u).pipe(c.subscribeOn(a),s.observeOn(a))}},2024:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.schedulePromise=void 0;var i=n(4720),s=n(3064),c=n(8212);e.schedulePromise=function(u,a){return i.innerFrom(u).pipe(c.subscribeOn(a),s.observeOn(a))}},6936:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleReadableStreamLike=void 0;var i=n(4248),s=n(9144);e.scheduleReadableStreamLike=function(c,u){return i.scheduleAsyncIterable(s.readableStreamLikeToAsyncGenerator(c),u)}},3716:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scheduled=void 0;var i=n(148),s=n(2024),c=n(2060),u=n(8184),a=n(4248),l=n(3780),d=n(1580),f=n(8531),h=n(7576),_=n(4616),m=n(8304),v=n(9144),b=n(6936);e.scheduled=function(g,w){if(g!=null){if(l.isInteropObservable(g))return i.scheduleObservable(g,w);if(f.isArrayLike(g))return c.scheduleArray(g,w);if(d.isPromise(g))return s.schedulePromise(g,w);if(_.isAsyncIterable(g))return a.scheduleAsyncIterable(g,w);if(h.isIterable(g))return u.scheduleIterable(g,w);if(v.isReadableStreamLike(g))return b.scheduleReadableStreamLike(g,w)}throw m.createInvalidObservableTypeError(g)}},5536:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(u,a){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(l[f]=d[f])},i(u,a)},function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function l(){this.constructor=u}i(u,a),u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)});Object.defineProperty(e,"__esModule",{value:!0}),e.Action=void 0;var c=function(u){function a(l,d){return u.call(this)||this}return s(a,u),a.prototype.schedule=function(l,d){return d===void 0&&(d=0),this},a}(n(1536).Subscription);e.Action=c},8820:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(l,d){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var _ in h)Object.prototype.hasOwnProperty.call(h,_)&&(f[_]=h[_])},i(l,d)},function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function f(){this.constructor=l}i(l,d),l.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)});Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationFrameAction=void 0;var c=n(1492),u=n(5368),a=function(l){function d(f,h){var _=l.call(this,f,h)||this;return _.scheduler=f,_.work=h,_}return s(d,l),d.prototype.requestAsyncId=function(f,h,_){return _===void 0&&(_=0),_!==null&&_>0?l.prototype.requestAsyncId.call(this,f,h,_):(f.actions.push(this),f._scheduled||(f._scheduled=u.animationFrameProvider.requestAnimationFrame(function(){return f.flush(void 0)})))},d.prototype.recycleAsyncId=function(f,h,_){var m;if(_===void 0&&(_=0),_!=null?_>0:this.delay>0)return l.prototype.recycleAsyncId.call(this,f,h,_);var v=f.actions;h!=null&&((m=v[v.length-1])===null||m===void 0?void 0:m.id)!==h&&(u.animationFrameProvider.cancelAnimationFrame(h),f._scheduled=void 0)},d}(c.AsyncAction);e.AnimationFrameAction=a},448:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(u,a){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(l[f]=d[f])},i(u,a)},function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function l(){this.constructor=u}i(u,a),u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)});Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationFrameScheduler=void 0;var c=function(u){function a(){return u!==null&&u.apply(this,arguments)||this}return s(a,u),a.prototype.flush=function(l){this._active=!0;var d=this._scheduled;this._scheduled=void 0;var f,h=this.actions;l=l||h.shift();do if(f=l.execute(l.state,l.delay))break;while((l=h[0])&&l.id===d&&h.shift());if(this._active=!1,f){for(;(l=h[0])&&l.id===d&&h.shift();)l.unsubscribe();throw f}},a}(n(9056).AsyncScheduler);e.AnimationFrameScheduler=c},7560:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(l,d){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var _ in h)Object.prototype.hasOwnProperty.call(h,_)&&(f[_]=h[_])},i(l,d)},function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function f(){this.constructor=l}i(l,d),l.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)});Object.defineProperty(e,"__esModule",{value:!0}),e.AsapAction=void 0;var c=n(1492),u=n(8268),a=function(l){function d(f,h){var _=l.call(this,f,h)||this;return _.scheduler=f,_.work=h,_}return s(d,l),d.prototype.requestAsyncId=function(f,h,_){return _===void 0&&(_=0),_!==null&&_>0?l.prototype.requestAsyncId.call(this,f,h,_):(f.actions.push(this),f._scheduled||(f._scheduled=u.immediateProvider.setImmediate(f.flush.bind(f,void 0))))},d.prototype.recycleAsyncId=function(f,h,_){var m;if(_===void 0&&(_=0),_!=null?_>0:this.delay>0)return l.prototype.recycleAsyncId.call(this,f,h,_);var v=f.actions;h!=null&&((m=v[v.length-1])===null||m===void 0?void 0:m.id)!==h&&(u.immediateProvider.clearImmediate(h),f._scheduled=void 0)},d}(c.AsyncAction);e.AsapAction=a},5268:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(u,a){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(l[f]=d[f])},i(u,a)},function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function l(){this.constructor=u}i(u,a),u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)});Object.defineProperty(e,"__esModule",{value:!0}),e.AsapScheduler=void 0;var c=function(u){function a(){return u!==null&&u.apply(this,arguments)||this}return s(a,u),a.prototype.flush=function(l){this._active=!0;var d=this._scheduled;this._scheduled=void 0;var f,h=this.actions;l=l||h.shift();do if(f=l.execute(l.state,l.delay))break;while((l=h[0])&&l.id===d&&h.shift());if(this._active=!1,f){for(;(l=h[0])&&l.id===d&&h.shift();)l.unsubscribe();throw f}},a}(n(9056).AsyncScheduler);e.AsapScheduler=c},1492:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(d,f){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,_){h.__proto__=_}||function(h,_){for(var m in _)Object.prototype.hasOwnProperty.call(_,m)&&(h[m]=_[m])},i(d,f)},function(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function h(){this.constructor=d}i(d,f),d.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)});Object.defineProperty(e,"__esModule",{value:!0}),e.AsyncAction=void 0;var c=n(5536),u=n(5355),a=n(9331),l=function(d){function f(h,_){var m=d.call(this,h,_)||this;return m.scheduler=h,m.work=_,m.pending=!1,m}return s(f,d),f.prototype.schedule=function(h,_){var m;if(_===void 0&&(_=0),this.closed)return this;this.state=h;var v=this.id,b=this.scheduler;return v!=null&&(this.id=this.recycleAsyncId(b,v,_)),this.pending=!0,this.delay=_,this.id=(m=this.id)!==null&&m!==void 0?m:this.requestAsyncId(b,this.id,_),this},f.prototype.requestAsyncId=function(h,_,m){return m===void 0&&(m=0),u.intervalProvider.setInterval(h.flush.bind(h,this),m)},f.prototype.recycleAsyncId=function(h,_,m){if(m===void 0&&(m=0),m!=null&&this.delay===m&&this.pending===!1)return _;_!=null&&u.intervalProvider.clearInterval(_)},f.prototype.execute=function(h,_){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var m=this._execute(h,_);if(m)return m;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},f.prototype._execute=function(h,_){var m,v=!1;try{this.work(h)}catch(b){v=!0,m=b||new Error("Scheduled action threw falsy error")}if(v)return this.unsubscribe(),m},f.prototype.unsubscribe=function(){if(!this.closed){var h=this.id,_=this.scheduler,m=_.actions;this.work=this.state=this.scheduler=null,this.pending=!1,a.arrRemove(m,this),h!=null&&(this.id=this.recycleAsyncId(_,h,null)),this.delay=null,d.prototype.unsubscribe.call(this)}},f}(c.Action);e.AsyncAction=l},9056:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(a,l){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(d[h]=f[h])},i(a,l)},function(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function d(){this.constructor=a}i(a,l),a.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(e,"__esModule",{value:!0}),e.AsyncScheduler=void 0;var c=n(3456),u=function(a){function l(d,f){f===void 0&&(f=c.Scheduler.now);var h=a.call(this,d,f)||this;return h.actions=[],h._active=!1,h}return s(l,a),l.prototype.flush=function(d){var f=this.actions;if(this._active)f.push(d);else{var h;this._active=!0;do if(h=d.execute(d.state,d.delay))break;while(d=f.shift());if(this._active=!1,h){for(;d=f.shift();)d.unsubscribe();throw h}}},l}(c.Scheduler);e.AsyncScheduler=u},9848:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(u,a){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(l[f]=d[f])},i(u,a)},function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function l(){this.constructor=u}i(u,a),u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)});Object.defineProperty(e,"__esModule",{value:!0}),e.QueueAction=void 0;var c=function(u){function a(l,d){var f=u.call(this,l,d)||this;return f.scheduler=l,f.work=d,f}return s(a,u),a.prototype.schedule=function(l,d){return d===void 0&&(d=0),d>0?u.prototype.schedule.call(this,l,d):(this.delay=d,this.state=l,this.scheduler.flush(this),this)},a.prototype.execute=function(l,d){return d>0||this.closed?u.prototype.execute.call(this,l,d):this._execute(l,d)},a.prototype.requestAsyncId=function(l,d,f){return f===void 0&&(f=0),f!=null&&f>0||f==null&&this.delay>0?u.prototype.requestAsyncId.call(this,l,d,f):(l.flush(this),0)},a}(n(1492).AsyncAction);e.QueueAction=c},4904:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(u,a){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(l[f]=d[f])},i(u,a)},function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function l(){this.constructor=u}i(u,a),u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)});Object.defineProperty(e,"__esModule",{value:!0}),e.QueueScheduler=void 0;var c=function(u){function a(){return u!==null&&u.apply(this,arguments)||this}return s(a,u),a}(n(9056).AsyncScheduler);e.QueueScheduler=c},9648:function(r,e,n){"use strict";var i,s=this&&this.__extends||(i=function(d,f){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,_){h.__proto__=_}||function(h,_){for(var m in _)Object.prototype.hasOwnProperty.call(_,m)&&(h[m]=_[m])},i(d,f)},function(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function h(){this.constructor=d}i(d,f),d.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)});Object.defineProperty(e,"__esModule",{value:!0}),e.VirtualAction=e.VirtualTimeScheduler=void 0;var c=n(1492),u=n(1536),a=function(d){function f(h,_){h===void 0&&(h=l),_===void 0&&(_=1/0);var m=d.call(this,h,function(){return m.frame})||this;return m.maxFrames=_,m.frame=0,m.index=-1,m}return s(f,d),f.prototype.flush=function(){for(var h,_,m=this.actions,v=this.maxFrames;(_=m[0])&&_.delay<=v&&(m.shift(),this.frame=_.delay,!(h=_.execute(_.state,_.delay))););if(h){for(;_=m.shift();)_.unsubscribe();throw h}},f.frameTimeFactor=10,f}(n(9056).AsyncScheduler);e.VirtualTimeScheduler=a;var l=function(d){function f(h,_,m){m===void 0&&(m=h.index+=1);var v=d.call(this,h,_)||this;return v.scheduler=h,v.work=_,v.index=m,v.active=!0,v.index=h.index=m,v}return s(f,d),f.prototype.schedule=function(h,_){if(_===void 0&&(_=0),Number.isFinite(_)){if(!this.id)return d.prototype.schedule.call(this,h,_);this.active=!1;var m=new f(this.scheduler,this.work);return this.add(m),m.schedule(h,_)}return u.Subscription.EMPTY},f.prototype.requestAsyncId=function(h,_,m){m===void 0&&(m=0),this.delay=h.frame+m;var v=h.actions;return v.push(this),v.sort(f.sortActions),1},f.prototype.recycleAsyncId=function(h,_,m){m===void 0&&(m=0)},f.prototype._execute=function(h,_){if(this.active===!0)return d.prototype._execute.call(this,h,_)},f.sortActions=function(h,_){return h.delay===_.delay?h.index===_.index?0:h.index>_.index?1:-1:h.delay>_.delay?1:-1},f}(c.AsyncAction);e.VirtualAction=l},652:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.animationFrame=e.animationFrameScheduler=void 0;var i=n(8820),s=n(448);e.animationFrameScheduler=new s.AnimationFrameScheduler(i.AnimationFrameAction),e.animationFrame=e.animationFrameScheduler},5368:function(r,e,n){"use strict";var i=this&&this.__read||function(u,a){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d,f,h=l.call(u),_=[];try{for(;(a===void 0||a-- >0)&&!(d=h.next()).done;)_.push(d.value)}catch(m){f={error:m}}finally{try{d&&!d.done&&(l=h.return)&&l.call(h)}finally{if(f)throw f.error}}return _},s=this&&this.__spreadArray||function(u,a){for(var l=0,d=a.length,f=u.length;l<d;l++,f++)u[f]=a[l];return u};Object.defineProperty(e,"__esModule",{value:!0}),e.animationFrameProvider=void 0;var c=n(1536);e.animationFrameProvider={schedule:function(u){var a=requestAnimationFrame,l=cancelAnimationFrame,d=e.animationFrameProvider.delegate;d&&(a=d.requestAnimationFrame,l=d.cancelAnimationFrame);var f=a(function(h){l=void 0,u(h)});return new c.Subscription(function(){return l?.(f)})},requestAnimationFrame:function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];var l=e.animationFrameProvider.delegate;return(l?.requestAnimationFrame||requestAnimationFrame).apply(void 0,s([],i(u)))},cancelAnimationFrame:function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];var l=e.animationFrameProvider.delegate;return(l?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,s([],i(u)))},delegate:void 0}},7640:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.asap=e.asapScheduler=void 0;var i=n(7560),s=n(5268);e.asapScheduler=new s.AsapScheduler(i.AsapAction),e.asap=e.asapScheduler},1416:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.async=e.asyncScheduler=void 0;var i=n(1492),s=n(9056);e.asyncScheduler=new s.AsyncScheduler(i.AsyncAction),e.async=e.asyncScheduler},1312:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dateTimestampProvider=void 0,e.dateTimestampProvider={now:function(){return(e.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},8268:function(r,e,n){"use strict";var i=this&&this.__read||function(l,d){var f=typeof Symbol=="function"&&l[Symbol.iterator];if(!f)return l;var h,_,m=f.call(l),v=[];try{for(;(d===void 0||d-- >0)&&!(h=m.next()).done;)v.push(h.value)}catch(b){_={error:b}}finally{try{h&&!h.done&&(f=m.return)&&f.call(m)}finally{if(_)throw _.error}}return v},s=this&&this.__spreadArray||function(l,d){for(var f=0,h=d.length,_=l.length;f<h;f++,_++)l[_]=d[f];return l};Object.defineProperty(e,"__esModule",{value:!0}),e.immediateProvider=void 0;var c=n(4768),u=c.Immediate.setImmediate,a=c.Immediate.clearImmediate;e.immediateProvider={setImmediate:function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var f=e.immediateProvider.delegate;return(f?.setImmediate||u).apply(void 0,s([],i(l)))},clearImmediate:function(l){var d=e.immediateProvider.delegate;return(d?.clearImmediate||a)(l)},delegate:void 0}},5355:function(r,e){"use strict";var n=this&&this.__read||function(s,c){var u=typeof Symbol=="function"&&s[Symbol.iterator];if(!u)return s;var a,l,d=u.call(s),f=[];try{for(;(c===void 0||c-- >0)&&!(a=d.next()).done;)f.push(a.value)}catch(h){l={error:h}}finally{try{a&&!a.done&&(u=d.return)&&u.call(d)}finally{if(l)throw l.error}}return f},i=this&&this.__spreadArray||function(s,c){for(var u=0,a=c.length,l=s.length;u<a;u++,l++)s[l]=c[u];return s};Object.defineProperty(e,"__esModule",{value:!0}),e.intervalProvider=void 0,e.intervalProvider={setInterval:function(s,c){for(var u=[],a=2;a<arguments.length;a++)u[a-2]=arguments[a];var l=e.intervalProvider.delegate;return l?.setInterval?l.setInterval.apply(l,i([s,c],n(u))):setInterval.apply(void 0,i([s,c],n(u)))},clearInterval:function(s){var c=e.intervalProvider.delegate;return(c?.clearInterval||clearInterval)(s)},delegate:void 0}},4296:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.performanceTimestampProvider=void 0,e.performanceTimestampProvider={now:function(){return(e.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}},6644:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.queue=e.queueScheduler=void 0;var i=n(9848),s=n(4904);e.queueScheduler=new s.QueueScheduler(i.QueueAction),e.queue=e.queueScheduler},172:function(r,e){"use strict";var n=this&&this.__read||function(s,c){var u=typeof Symbol=="function"&&s[Symbol.iterator];if(!u)return s;var a,l,d=u.call(s),f=[];try{for(;(c===void 0||c-- >0)&&!(a=d.next()).done;)f.push(a.value)}catch(h){l={error:h}}finally{try{a&&!a.done&&(u=d.return)&&u.call(d)}finally{if(l)throw l.error}}return f},i=this&&this.__spreadArray||function(s,c){for(var u=0,a=c.length,l=s.length;u<a;u++,l++)s[l]=c[u];return s};Object.defineProperty(e,"__esModule",{value:!0}),e.timeoutProvider=void 0,e.timeoutProvider={setTimeout:function(s,c){for(var u=[],a=2;a<arguments.length;a++)u[a-2]=arguments[a];var l=e.timeoutProvider.delegate;return l?.setTimeout?l.setTimeout.apply(l,i([s,c],n(u))):setTimeout.apply(void 0,i([s,c],n(u)))},clearTimeout:function(s){var c=e.timeoutProvider.delegate;return(c?.clearTimeout||clearTimeout)(s)},delegate:void 0}},496:(r,e)=>{"use strict";function n(){return typeof Symbol=="function"&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(e,"__esModule",{value:!0}),e.iterator=e.getSymbolIterator=void 0,e.getSymbolIterator=n,e.iterator=n()},1908:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.observable=void 0,e.observable=typeof Symbol=="function"&&Symbol.observable||"@@observable"},4828:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},8028:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArgumentOutOfRangeError=void 0;var i=n(8188);e.ArgumentOutOfRangeError=i.createErrorClass(function(s){return function(){s(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})},1424:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmptyError=void 0;var i=n(8188);e.EmptyError=i.createErrorClass(function(s){return function(){s(this),this.name="EmptyError",this.message="no elements in sequence"}})},4768:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TestTools=e.Immediate=void 0;var n,i=1,s={};function c(u){return u in s&&(delete s[u],!0)}e.Immediate={setImmediate:function(u){var a=i++;return s[a]=!0,n||(n=Promise.resolve()),n.then(function(){return c(a)&&u()}),a},clearImmediate:function(u){c(u)}},e.TestTools={pending:function(){return Object.keys(s).length}}},7628:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NotFoundError=void 0;var i=n(8188);e.NotFoundError=i.createErrorClass(function(s){return function(c){s(this),this.name="NotFoundError",this.message=c}})},740:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectUnsubscribedError=void 0;var i=n(8188);e.ObjectUnsubscribedError=i.createErrorClass(function(s){return function(){s(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})},6968:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SequenceError=void 0;var i=n(8188);e.SequenceError=i.createErrorClass(function(s){return function(c){s(this),this.name="SequenceError",this.message=c}})},3952:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UnsubscriptionError=void 0;var i=n(8188);e.UnsubscriptionError=i.createErrorClass(function(s){return function(c){s(this),this.message=c?c.length+` errors occurred during unsubscription:
|
|
873
873
|
`+c.map(function(u,a){return a+1+") "+u.toString()}).join(`
|
|
874
874
|
`):"",this.name="UnsubscriptionError",this.errors=c}})},1904:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.popNumber=e.popScheduler=e.popResultSelector=void 0;var i=n(7528),s=n(3264);function c(u){return u[u.length-1]}e.popResultSelector=function(u){return i.isFunction(c(u))?u.pop():void 0},e.popScheduler=function(u){return s.isScheduler(c(u))?u.pop():void 0},e.popNumber=function(u,a){return typeof c(u)=="number"?u.pop():a}},6680:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.argsArgArrayOrObject=void 0;var n=Array.isArray,i=Object.getPrototypeOf,s=Object.prototype,c=Object.keys;e.argsArgArrayOrObject=function(u){if(u.length===1){var a=u[0];if(n(a))return{args:a,keys:null};if((d=a)&&typeof d=="object"&&i(d)===s){var l=c(a);return{args:l.map(function(f){return a[f]}),keys:l}}}var d;return{args:u,keys:null}}},9872:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.argsOrArgArray=void 0;var n=Array.isArray;e.argsOrArgArray=function(i){return i.length===1&&n(i[0])?i[0]:i}},9331:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arrRemove=void 0,e.arrRemove=function(n,i){if(n){var s=n.indexOf(i);0<=s&&n.splice(s,1)}}},8188:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createErrorClass=void 0,e.createErrorClass=function(n){var i=n(function(s){Error.call(s),s.stack=new Error().stack});return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}},8872:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createObject=void 0,e.createObject=function(n,i){return n.reduce(function(s,c,u){return s[c]=i[u],s},{})}},4672:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.captureError=e.errorContext=void 0;var i=n(7004),s=null;e.errorContext=function(c){if(i.config.useDeprecatedSynchronousErrorHandling){var u=!s;if(u&&(s={errorThrown:!1,error:null}),c(),u){var a=s,l=a.errorThrown,d=a.error;if(s=null,l)throw d}}else c()},e.captureError=function(c){i.config.useDeprecatedSynchronousErrorHandling&&s&&(s.errorThrown=!0,s.error=c)}},4880:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.executeSchedule=void 0,e.executeSchedule=function(n,i,s,c,u){c===void 0&&(c=0),u===void 0&&(u=!1);var a=i.schedule(function(){s(),u?n.add(this.schedule(null,c)):this.unsubscribe()},c);if(n.add(a),!u)return a}},8760:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.identity=void 0,e.identity=function(n){return n}},8531:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isArrayLike=void 0,e.isArrayLike=function(n){return n&&typeof n.length=="number"&&typeof n!="function"}},4616:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAsyncIterable=void 0;var i=n(7528);e.isAsyncIterable=function(s){return Symbol.asyncIterator&&i.isFunction(s?.[Symbol.asyncIterator])}},2720:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isValidDate=void 0,e.isValidDate=function(n){return n instanceof Date&&!isNaN(n)}},7528:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isFunction=void 0,e.isFunction=function(n){return typeof n=="function"}},3780:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isInteropObservable=void 0;var i=n(1908),s=n(7528);e.isInteropObservable=function(c){return s.isFunction(c[i.observable])}},7576:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isIterable=void 0;var i=n(496),s=n(7528);e.isIterable=function(c){return s.isFunction(c?.[i.iterator])}},6368:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isObservable=void 0;var i=n(9332),s=n(7528);e.isObservable=function(c){return!!c&&(c instanceof i.Observable||s.isFunction(c.lift)&&s.isFunction(c.subscribe))}},1580:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isPromise=void 0;var i=n(7528);e.isPromise=function(s){return i.isFunction(s?.then)}},9144:function(r,e,n){"use strict";var i=this&&this.__generator||function(a,l){var d,f,h,_,m={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]};return _={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function v(b){return function(g){return function(w){if(d)throw new TypeError("Generator is already executing.");for(;m;)try{if(d=1,f&&(h=2&w[0]?f.return:w[0]?f.throw||((h=f.return)&&h.call(f),0):f.next)&&!(h=h.call(f,w[1])).done)return h;switch(f=0,h&&(w=[2&w[0],h.value]),w[0]){case 0:case 1:h=w;break;case 4:return m.label++,{value:w[1],done:!1};case 5:m.label++,f=w[1],w=[0];continue;case 7:w=m.ops.pop(),m.trys.pop();continue;default:if(!((h=(h=m.trys).length>0&&h[h.length-1])||w[0]!==6&&w[0]!==2)){m=0;continue}if(w[0]===3&&(!h||w[1]>h[0]&&w[1]<h[3])){m.label=w[1];break}if(w[0]===6&&m.label<h[1]){m.label=h[1],h=w;break}if(h&&m.label<h[2]){m.label=h[2],m.ops.push(w);break}h[2]&&m.ops.pop(),m.trys.pop();continue}w=l.call(a,m)}catch(T){w=[6,T],f=0}finally{d=h=0}if(5&w[0])throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}([b,g])}}},s=this&&this.__await||function(a){return this instanceof s?(this.v=a,this):new s(a)},c=this&&this.__asyncGenerator||function(a,l,d){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f,h=d.apply(a,l||[]),_=[];return f={},m("next"),m("throw"),m("return"),f[Symbol.asyncIterator]=function(){return this},f;function m(T){h[T]&&(f[T]=function(P){return new Promise(function(k,x){_.push([T,P,k,x])>1||v(T,P)})})}function v(T,P){try{(k=h[T](P)).value instanceof s?Promise.resolve(k.value.v).then(b,g):w(_[0][2],k)}catch(x){w(_[0][3],x)}var k}function b(T){v("next",T)}function g(T){v("throw",T)}function w(T,P){T(P),_.shift(),_.length&&v(_[0][0],_[0][1])}};Object.defineProperty(e,"__esModule",{value:!0}),e.isReadableStreamLike=e.readableStreamLikeToAsyncGenerator=void 0;var u=n(7528);e.readableStreamLikeToAsyncGenerator=function(a){return c(this,arguments,function(){var l,d,f;return i(this,function(h){switch(h.label){case 0:l=a.getReader(),h.label=1;case 1:h.trys.push([1,,9,10]),h.label=2;case 2:return[4,s(l.read())];case 3:return d=h.sent(),f=d.value,d.done?[4,s(void 0)]:[3,5];case 4:return[2,h.sent()];case 5:return[4,s(f)];case 6:return[4,h.sent()];case 7:return h.sent(),[3,2];case 8:return[3,10];case 9:return l.releaseLock(),[7];case 10:return[2]}})})},e.isReadableStreamLike=function(a){return u.isFunction(a?.getReader)}},3264:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isScheduler=void 0;var i=n(7528);e.isScheduler=function(s){return s&&i.isFunction(s.schedule)}},6676:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.operate=e.hasLift=void 0;var i=n(7528);function s(c){return i.isFunction(c?.lift)}e.hasLift=s,e.operate=function(c){return function(u){if(s(u))return u.lift(function(a){try{return c(a,this)}catch(l){this.error(l)}});throw new TypeError("Unable to lift unknown Observable type")}}},872:function(r,e,n){"use strict";var i=this&&this.__read||function(a,l){var d=typeof Symbol=="function"&&a[Symbol.iterator];if(!d)return a;var f,h,_=d.call(a),m=[];try{for(;(l===void 0||l-- >0)&&!(f=_.next()).done;)m.push(f.value)}catch(v){h={error:v}}finally{try{f&&!f.done&&(d=_.return)&&d.call(_)}finally{if(h)throw h.error}}return m},s=this&&this.__spreadArray||function(a,l){for(var d=0,f=l.length,h=a.length;d<f;d++,h++)a[h]=l[d];return a};Object.defineProperty(e,"__esModule",{value:!0}),e.mapOneOrManyArgs=void 0;var c=n(7144),u=Array.isArray;e.mapOneOrManyArgs=function(a){return c.map(function(l){return function(d,f){return u(f)?d.apply(void 0,s([],i(f))):d(f)}(a,l)})}},892:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.noop=void 0,e.noop=function(){}},2364:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.not=void 0,e.not=function(n,i){return function(s,c){return!n.call(i,s,c)}}},488:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pipeFromArray=e.pipe=void 0;var i=n(8760);function s(c){return c.length===0?i.identity:c.length===1?c[0]:function(u){return c.reduce(function(a,l){return l(a)},u)}}e.pipe=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return s(c)},e.pipeFromArray=s},6136:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.reportUnhandledError=void 0;var i=n(7004),s=n(172);e.reportUnhandledError=function(c){s.timeoutProvider.setTimeout(function(){var u=i.config.onUnhandledError;if(!u)throw c;u(c)})}},8304:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createInvalidObservableTypeError=void 0,e.createInvalidObservableTypeError=function(n){return new TypeError("You provided "+(n!==null&&typeof n=="object"?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},764:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ipc=e.IpcNodeImpl=void 0;let i=n(6192),s=n(1844);class c extends i.IpcBaseImpl{constructor(){super(s.NodeAddressBuilder)}namedPipe(a){return l=>l.isPipe(a)}}e.IpcNodeImpl=c,e.ipc=new c},1844:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NodeAddressBuilder=void 0;let i=n(6192),s=n(3792);class c extends i.AddressBuilder{isPipe(a){this._address=new s.NamedPipeAddress(a)}isWebSocket(a){this._address=new s.NodeWebSocketAddress(a)}assertAddress(){if(this._address instanceof s.NamedPipeAddress||this._address instanceof s.NodeWebSocketAddress)return this._address;throw new Error("Neither method isPipe nor isWebSocket was called in the address callback.")}}e.NodeAddressBuilder=c},7928:function(r,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(_,m,v,b){b===void 0&&(b=v);var g=Object.getOwnPropertyDescriptor(m,v);g&&!("get"in g?!m.__esModule:g.writable||g.configurable)||(g={enumerable:!0,get:function(){return m[v]}}),Object.defineProperty(_,b,g)}:function(_,m,v,b){b===void 0&&(b=v),_[b]=m[v]}),s=this&&this.__setModuleDefault||(Object.create?function(_,m){Object.defineProperty(_,"default",{enumerable:!0,value:m})}:function(_,m){_.default=m}),c=this&&this.__importStar||function(_){if(_&&_.__esModule)return _;var m={};if(_!=null)for(var v in _)v!=="default"&&Object.prototype.hasOwnProperty.call(_,v)&&i(m,_,v);return s(m,_),m},u=this&&this.__awaiter||function(_,m,v,b){return new(v||(v=Promise))(function(g,w){function T(x){try{k(b.next(x))}catch(R){w(R)}}function P(x){try{k(b.throw(x))}catch(R){w(R)}}function k(x){var R;x.done?g(x.value):(R=x.value,R instanceof v?R:new v(function(C){C(R)})).then(T,P)}k((b=b.apply(_,m||[])).next())})},a=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(e,"__esModule",{value:!0}),e.Platform=void 0;let l=c(n(2058)),d=a(n(7072)),f=n(4856),h=n(6192);(function(_){let m;(function(g){g[g.Windows=0]="Windows",g[g.Linux=1]="Linux"})(m=_.Id||(_.Id={}));class v{get id(){return m.Windows}getFullPipeName(w){return`\\\\.\\pipe\\${w}`}pipeExists(w){return u(this,void 0,void 0,function*(){return l.existsSync(this.getFullPipeName(w))})}}class b{get id(){return m.Linux}getFullPipeName(w){return d.default.isAbsolute(w)?w:`${b.tempPath}CoreFxPipe_${w}`}pipeExists(w){return u(this,void 0,void 0,function*(){let T,P;try{T=yield f.NamedPipeSocket.connect(w,h.Timeout.infiniteTimeSpan,h.CancellationToken.none,void 0),P=!0}catch{P=!1}return T&&T.dispose(),P})}static get tempPath(){let w=process.env.TMPDIR;return w??"/tmp/"}}_.current=function(){switch(process.platform==="win32"?m.Windows:m.Linux){case m.Windows:return new v;case m.Linux:return new b;default:throw new h.InvalidOperationError}}()})(e.Platform||(e.Platform={}))},4624:function(r,e,n){"use strict";var i=this&&this.__awaiter||function(a,l,d,f){return new(d||(d=Promise))(function(h,_){function m(g){try{b(f.next(g))}catch(w){_(w)}}function v(g){try{b(f.throw(g))}catch(w){_(w)}}function b(g){var w;g.done?h(g.value):(w=g.value,w instanceof d?w:new d(function(T){T(w)})).then(m,v)}b((f=f.apply(a,l||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.NamedPipeAddress=void 0;let s=n(6192),c=n(6700);class u extends s.Address{constructor(l){super(),this.name=l}get key(){return`namedpipe:${this.name}`}connect(l,d,f){return i(this,void 0,void 0,function*(){return yield c.NamedPipeSocket.connectWithHelper(l,this.name,d,f)})}}e.NamedPipeAddress=u},6700:function(r,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,v,b,g){g===void 0&&(g=b);var w=Object.getOwnPropertyDescriptor(v,b);w&&!("get"in w?!v.__esModule:w.writable||w.configurable)||(w={enumerable:!0,get:function(){return v[b]}}),Object.defineProperty(m,g,w)}:function(m,v,b,g){g===void 0&&(g=b),m[g]=v[b]}),s=this&&this.__setModuleDefault||(Object.create?function(m,v){Object.defineProperty(m,"default",{enumerable:!0,value:v})}:function(m,v){m.default=v}),c=this&&this.__importStar||function(m){if(m&&m.__esModule)return m;var v={};if(m!=null)for(var b in m)b!=="default"&&Object.prototype.hasOwnProperty.call(m,b)&&i(v,m,b);return s(v,m),v},u=this&&this.__awaiter||function(m,v,b,g){return new(b||(b=Promise))(function(w,T){function P(R){try{x(g.next(R))}catch(C){T(C)}}function k(R){try{x(g.throw(R))}catch(C){T(C)}}function x(R){var C;R.done?w(R.value):(C=R.value,C instanceof b?C:new b(function(j){j(C)})).then(P,k)}x((g=g.apply(m,v||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.NamedPipeSocket=void 0;let a=c(n(5256)),l=n(2444),d=n(6192),f=n(4856),h=n(7804);class _ extends d.Socket{static connectWithHelper(v,b,g,w,T){return u(this,void 0,void 0,function*(){let P,k=new Array,x=!1;yield v({address:new h.NamedPipeAddress(b),timeout:g,ct:w,tryConnectAsync(){return u(this,void 0,void 0,function*(){if(x=!0,P)return!0;try{return P=yield _.connect(b,g,w,T),!0}catch(C){return k.push(d.UnknownError.ensureError(C)),!1}})}});let R=d.AggregateError.maybeAggregate(...k);if(R&&d.Trace.log(R),P)return P;throw R||(x?new d.InvalidOperationError:new d.InvalidOperationError("The specified ConnectHelper didn't call the provided tryConnect function."))})}static connect(v,b,g,w){return u(this,void 0,void 0,function*(){(0,d.assertArgument)({pipeName:v},"string"),(0,d.assertArgument)({timeout:b},d.TimeSpan),(0,d.assertArgument)({ct:g},d.CancellationToken),(0,d.assertArgument)({socketLikeCtor:w},"undefined",Function);let T=f.Platform.current.getFullPipeName(v),P=new(w??a.Socket),k=new d.PromiseCompletionSource;P.once("error",R=>{k.setFaulted(R)}).connect(T,()=>{k.setResult()});let x=g.register(()=>k.setCanceled());b.bind(k);try{return yield k.promise,new _(P)}catch(R){throw P.removeAllListeners(),P.unref(),P.destroy(),R}finally{x.dispose()}})}get $data(){return this._$data}write(v,b){return u(this,void 0,void 0,function*(){if((0,d.assertArgument)({buffer:v},Buffer),(0,d.assertArgument)({ct:b},d.CancellationToken),this._disposed)throw new d.ObjectDisposedError(_.name);if(v.byteLength!==0)return yield new Promise((g,w)=>{this._socketLike.write(v,T=>T?w(T):g())})})}dispose(){this._disposed||(this._disposed=!0,this._$data.complete(),this._socketLike.removeAllListeners(),this._socketLike.unref(),this._socketLike.destroy())}constructor(v){super(),this._socketLike=v,this._$data=new l.Subject,this._disposed=!1,v.on("end",()=>this.dispose()),v.on("data",b=>this._$data.next(b))}}e.NamedPipeSocket=_},5776:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},7596:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},7804:function(r,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(c,u,a,l){l===void 0&&(l=a);var d=Object.getOwnPropertyDescriptor(u,a);d&&!("get"in d?!u.__esModule:d.writable||d.configurable)||(d={enumerable:!0,get:function(){return u[a]}}),Object.defineProperty(c,l,d)}:function(c,u,a,l){l===void 0&&(l=a),c[l]=u[a]}),s=this&&this.__exportStar||function(c,u){for(var a in c)a==="default"||Object.prototype.hasOwnProperty.call(u,a)||i(u,c,a)};Object.defineProperty(e,"__esModule",{value:!0}),s(n(4624),e),s(n(6700),e),s(n(5776),e),s(n(7596),e)},9036:function(r,e,n){"use strict";var i=this&&this.__awaiter||function(f,h,_,m){return new(_||(_=Promise))(function(v,b){function g(P){try{T(m.next(P))}catch(k){b(k)}}function w(P){try{T(m.throw(P))}catch(k){b(k)}}function T(P){var k;P.done?v(P.value):(k=P.value,k instanceof _?k:new _(function(x){x(k)})).then(g,w)}T((m=m.apply(f,h||[])).next())})},s=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.NodeWebSocket=void 0;let c=n(2444),u=s(n(5852)),a=n(6192),l=n(3048);class d extends a.Socket{static connectWithHelper(h,_,m,v,b){return i(this,void 0,void 0,function*(){let g,w=new Array,T=!1;yield h({address:new l.NodeWebSocketAddress(_),timeout:m,ct:v,tryConnectAsync(){return i(this,void 0,void 0,function*(){try{if(g)return!0;try{return g=yield d.connect(_,m,v,b),!0}catch(k){return w.push(a.UnknownError.ensureError(k)),!1}}finally{T=!0}})}});let P=a.AggregateError.maybeAggregate(...w);if(P&&a.Trace.log(P),g)return g;throw P||(T?new a.InvalidOperationError:new a.InvalidOperationError("The specified ConnectHelper didn't call the provided tryConnect function."))})}static connect(h,_,m,v){return i(this,void 0,void 0,function*(){(0,a.assertArgument)({url:h},"string"),(0,a.assertArgument)({timeout:_},a.TimeSpan),(0,a.assertArgument)({ct:m},a.CancellationToken),(0,a.assertArgument)({socketLikeCtor:v},"undefined",Function);let b=new u.default(h);b.binaryType="arraybuffer";let g=new a.PromiseCompletionSource;b.onerror=T=>{let P=new l.NodeWebSocketError.ConnectFailure(b,T.error);g.trySetFaulted(P)},b.onopen=T=>{g.trySetResult()};let w=m.register(()=>g.trySetCanceled());_.bind(g);try{return yield g.promise,new d(b)}catch(T){throw b.onerror=null,b.onopen=null,b.close(),T}finally{w.dispose()}})}get $data(){return this._$data}write(h,_){return i(this,void 0,void 0,function*(){if((0,a.assertArgument)({buffer:h},Buffer),(0,a.assertArgument)({ct:_},a.CancellationToken),this._disposed)throw new a.ObjectDisposedError(d.name);if(h.byteLength!==0)return yield new Promise(m=>{this._socket.send(h),m()})})}dispose(){this._disposed||(this._disposed=!0,this._$data.complete(),this._socket.onopen=null,this._socket.onerror=null,this._socket.onclose=null,this._socket.onmessage=null,this._socket.close())}constructor(h){super(),this._socket=h,this._$data=new c.Subject,this._disposed=!1,h.onclose=()=>this.dispose(),h.onmessage=_=>{let m=Buffer.from(_.data);this._$data.next(m)}}}e.NodeWebSocket=d},9828:function(r,e,n){"use strict";var i=this&&this.__awaiter||function(a,l,d,f){return new(d||(d=Promise))(function(h,_){function m(g){try{b(f.next(g))}catch(w){_(w)}}function v(g){try{b(f.throw(g))}catch(w){_(w)}}function b(g){var w;g.done?h(g.value):(w=g.value,w instanceof d?w:new d(function(T){T(w)})).then(m,v)}b((f=f.apply(a,l||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.NodeWebSocketAddress=void 0;let s=n(3048),c=n(6192);class u extends c.Address{constructor(l){super(),this.url=l}get key(){return`websocket:${this.url}`}connect(l,d,f){return i(this,void 0,void 0,function*(){return yield s.NodeWebSocket.connectWithHelper(l,this.url,d,f)})}}e.NodeWebSocketAddress=u},1540:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NodeWebSocketError=void 0;let i=n(6192);class s extends i.CoreIpcError{}e.NodeWebSocketError=s,function(c){class u extends c{constructor(l,d,f){super(f??u.defaultMessage),this.socket=l,this.innerError=d}}u.defaultMessage="Received an error while awaiting for a WebSocket to connect.",c.ConnectFailure=u}(s=e.NodeWebSocketError||(e.NodeWebSocketError={}))},8728:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1556:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},3048:function(r,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(c,u,a,l){l===void 0&&(l=a);var d=Object.getOwnPropertyDescriptor(u,a);d&&!("get"in d?!u.__esModule:d.writable||d.configurable)||(d={enumerable:!0,get:function(){return u[a]}}),Object.defineProperty(c,l,d)}:function(c,u,a,l){l===void 0&&(l=a),c[l]=u[a]}),s=this&&this.__exportStar||function(c,u){for(var a in c)a==="default"||Object.prototype.hasOwnProperty.call(u,a)||i(u,c,a)};Object.defineProperty(e,"__esModule",{value:!0}),s(n(9036),e),s(n(9828),e),s(n(8728),e),s(n(1556),e),s(n(1540),e)},3792:function(r,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(c,u,a,l){l===void 0&&(l=a);var d=Object.getOwnPropertyDescriptor(u,a);d&&!("get"in d?!u.__esModule:d.writable||d.configurable)||(d={enumerable:!0,get:function(){return u[a]}}),Object.defineProperty(c,l,d)}:function(c,u,a,l){l===void 0&&(l=a),c[l]=u[a]}),s=this&&this.__exportStar||function(c,u){for(var a in c)a==="default"||Object.prototype.hasOwnProperty.call(u,a)||i(u,c,a)};Object.defineProperty(e,"__esModule",{value:!0}),s(n(7804),e),s(n(3048),e)},4856:function(r,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(c,u,a,l){l===void 0&&(l=a);var d=Object.getOwnPropertyDescriptor(u,a);d&&!("get"in d?!u.__esModule:d.writable||d.configurable)||(d={enumerable:!0,get:function(){return u[a]}}),Object.defineProperty(c,l,d)}:function(c,u,a,l){l===void 0&&(l=a),c[l]=u[a]}),s=this&&this.__exportStar||function(c,u){for(var a in c)a==="default"||Object.prototype.hasOwnProperty.call(u,a)||i(u,c,a)};Object.defineProperty(e,"__esModule",{value:!0}),s(n(7928),e),s(n(3792),e),s(n(764),e),s(n(6192),e),s(n(1844),e)},3968:function(r,e,n){"use strict";var i=this&&this.__awaiter||function(u,a,l,d){return new(l||(l=Promise))(function(f,h){function _(b){try{v(d.next(b))}catch(g){h(g)}}function m(b){try{v(d.throw(b))}catch(g){h(g)}}function v(b){var g;b.done?f(b.value):(g=b.value,g instanceof l?g:new l(function(w){w(g)})).then(_,m)}v((d=d.apply(u,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationToken=void 0;let s=n(2644),c=n(5188);e.CancellationToken=class{static get none(){return s.EmptyCancellationToken.instance}constructor(){}bind(u){if(this.isCancellationRequested)return void u.trySetCanceled();if(!this.canBeCanceled)return;let a=this.register(()=>u.trySetCanceled());c.Trace.traceErrorNoThrow(i(this,void 0,void 0,function*(){try{yield u.promise}finally{a.dispose()}}))}}},6593:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmptyCancellationTokenRegistration=e.ProperCancellationTokenRegistration=e.CancellationTokenRegistration=void 0;let i=n(5188),s=n(2644);class c{}e.CancellationTokenRegistration=c,e.ProperCancellationTokenRegistration=class extends c{constructor(a,l){super(),this._source=a,this._callback=l,(0,i.assertArgument)({_source:a},s.CancellationTokenSource),(0,i.assertArgument)({_callback:l},"function")}dispose(){this._source.unregister(this._callback)}};class u extends c{constructor(){super()}dispose(){}}e.EmptyCancellationTokenRegistration=u,u.instance=new u},6660:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=void 0;let i=n(5188),s=n(2644);e.CancellationTokenSource=class{static createLinkedTokenSource(...c){if(c.length===0)throw new i.ArgumentError("No tokens were supplied.");if(c.filter(d=>!(d instanceof s.CancellationToken)).length>0)throw new i.ArgumentError("Some supplied arguments were not instances of CancellationToken.");function u(){a.dispose(),l.cancel()}let a=new i.AggregateDisposable(...c.map(d=>d.register(u))),l=new s.LinkedCancellationTokenSource(a);return l}constructor(c){this._token=new s.RandomCancellationToken(this),this._isDisposed=!1,this._isCancellationRequested=!1,this._nodeJsTimeout=null,this._callbacks=new Array,this.onTimeout=()=>{try{this.cancelUnchecked(!1)}catch{}},(0,i.assertArgument)({arg0:c},"number",i.TimeSpan,"undefined");let u=typeof c=="number"?"millisecondsDelay":"delay";if(c!=null&&(c=i.TimeSpan.toTimeSpan(c)),c&&!c.isInfinite){if(c.isNegative)throw new i.ArgumentOutOfRangeError(u,"Specified argument represented a negative interval.");this.cancelAfterUnchecked(c)}}get token(){return this._token}cancel(c=!1){(0,i.assertArgument)({throwOnFirstError:c},"boolean"),this.assertNotDisposed(),this._isCancellationRequested||this.cancelUnchecked(c)}cancelAfter(c){(0,i.assertArgument)({arg0:c},"number",i.TimeSpan),this.assertNotDisposed();let u=typeof c=="number"?"millisecondsDelay":"delay";if((c=i.TimeSpan.toTimeSpan(c)).isNegative&&!c.isInfinite)throw new i.ArgumentOutOfRangeError(u);this._isCancellationRequested||this.cancelAfterUnchecked(c)}dispose(){this._isDisposed||(this._isDisposed=!0,this.ensureTimeoutCleared())}registerUnchecked(c){return this._isCancellationRequested?c():this._callbacks.push(c),new s.ProperCancellationTokenRegistration(this,c)}unregister(c){let u=this._callbacks.indexOf(c);u>=0&&this._callbacks.splice(u,1)}get isCancellationRequested(){return this._isCancellationRequested}cancelAfterUnchecked(c){this.ensureTimeoutCleared(),this._nodeJsTimeout=setTimeout(this.onTimeout,c.totalMilliseconds)}cancelUnchecked(c){this.ensureTimeoutCleared(),this._isCancellationRequested=!0;let u=this._callbacks.splice(0);if(c)for(let a of u)a();else{let a=new Array;for(let l of u)try{l()}catch(d){a.push(i.UnknownError.ensureError(d))}if(a.length>0)throw new i.AggregateError(void 0,...a)}}assertNotDisposed(){if(this._isDisposed)throw new i.ObjectDisposedError(void 0,"The CancellationTokenSource has been disposed.")}ensureTimeoutCleared(){this._nodeJsTimeout&&(clearTimeout(this._nodeJsTimeout),this._nodeJsTimeout=null)}}},2736:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmptyCancellationToken=void 0;let i=n(2644),s=n(5188);class c extends i.CancellationToken{constructor(){super()}get canBeCanceled(){return!1}get isCancellationRequested(){return!1}throwIfCancellationRequested(){}register(a){return(0,s.assertArgument)({callback:a},"function"),i.EmptyCancellationTokenRegistration.instance}toString(){return"CancellationToken.none"}}e.EmptyCancellationToken=c,c.instance=new c},852:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedCancellationTokenSource=void 0;let i=n(2644);class s extends i.CancellationTokenSource{constructor(u){super(),this._registration=u}dispose(){this._isDisposed||(super.dispose(),this._registration.dispose())}}e.LinkedCancellationTokenSource=s},6540:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RandomCancellationToken=void 0;let i=n(2644),s=n(5188);class c extends i.CancellationToken{constructor(a){super(),this._source=a}get canBeCanceled(){return!0}get isCancellationRequested(){return this._source.isCancellationRequested}throwIfCancellationRequested(){if(this._source.isCancellationRequested)throw new s.OperationCanceledError}register(a){return(0,s.assertArgument)({callback:a},"function"),this._source.registerUnchecked(a)}static toString(){return"new CancellationToken()"}}e.RandomCancellationToken=c},2644:function(r,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(c,u,a,l){l===void 0&&(l=a);var d=Object.getOwnPropertyDescriptor(u,a);d&&!("get"in d?!u.__esModule:d.writable||d.configurable)||(d={enumerable:!0,get:function(){return u[a]}}),Object.defineProperty(c,l,d)}:function(c,u,a,l){l===void 0&&(l=a),c[l]=u[a]}),s=this&&this.__exportStar||function(c,u){for(var a in c)a==="default"||Object.prototype.hasOwnProperty.call(u,a)||i(u,c,a)};Object.defineProperty(e,"__esModule",{value:!0}),s(n(6660),e),s(n(6593),e),s(n(3968),e),s(n(2736),e),s(n(6540),e),s(n(852),e)},6456:(r,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConditionalWeakTable=void 0;let i=n(6720);e.ConditionalWeakTable=class{constructor(){this._symbol=Symbol()}getOrCreateValue(s,c){var u,a,l;return(0,i.assertArgument)({key:s},"object","function"),(0,i.assertArgument)({factory:c},"function"),(u=(a=s)[l=this._symbol])!==null&&u!==void 0?u:a[l]=c(s)}}},2372:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Dictionary=void 0;class n{constructor(){this._map=new Map}static create(){return new n}get(s){return this._map.get(s)}getOrCreateValue(s,c){if(this._map.has(s))return this._map.get(s);let u=c(s);return this._map.set(s,u),u}delete(s){return this._map.delete(s)}values(){return this._map.values()}clear(){this._map.clear()}}e.Dictionary=n},4444:function(r,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(c,u,a,l){l===void 0&&(l=a);var d=Object.getOwnPropertyDescriptor(u,a);d&&!("get"in d?!u.__esModule:d.writable||d.configurable)||(d={enumerable:!0,get:function(){return u[a]}}),Object.defineProperty(c,l,d)}:function(c,u,a,l){l===void 0&&(l=a),c[l]=u[a]}),s=this&&this.__exportStar||function(c,u){for(var a in c)a==="default"||Object.prototype.hasOwnProperty.call(u,a)||i(u,c,a)};Object.defineProperty(e,"__esModule",{value:!0}),s(n(6456),e),s(n(2372),e)},9740:function(r,e,n){"use strict";var i=this&&this.__awaiter||function(u,a,l,d){return new(l||(l=Promise))(function(f,h){function _(b){try{v(d.next(b))}catch(g){h(g)}}function m(b){try{v(d.throw(b))}catch(g){h(g)}}function v(b){var g;b.done?f(b.value):(g=b.value,g instanceof l?g:new l(function(w){w(g)})).then(_,m)}v((d=d.apply(u,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Trace=void 0;let s=n(5188);class c{static addListener(a){return(0,s.assertArgument)({listener:a},"function"),c._listeners.push(a),{dispose:()=>{let l=c._listeners.indexOf(a);l>=0&&c._listeners.splice(l,1)}}}static log(a){for(let l of c._listeners)try{l(a)}catch{}}static category(a){return(0,s.assertArgument)({name:a},"string"),new c.traceCategory(a)}static _cachedEmptyActionOfT(a){}static traceError(a,l){c._promiseTrace.log(`\r
|
|
875
875
|
promise: ${a}\r
|
|
@@ -881,7 +881,7 @@ ${a.Data}`)}}static createRemoteError(a,l){return l.Type==="System.TimeoutExcept
|
|
|
881
881
|
\r
|
|
882
882
|
`+P)}function g(w,T,P,k,x){if(w.listenerCount("wsClientError")){let R=new Error(x);Error.captureStackTrace(R,g),w.emit("wsClientError",R,P,T)}else b(P,k,x)}r.exports=class extends i{constructor(w,T){if(super(),(w={maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:d,...w}).port==null&&!w.server&&!w.noServer||w.port!=null&&(w.server||w.noServer)||w.server&&w.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(w.port!=null?(this._server=s.createServer((P,k)=>{let x=s.STATUS_CODES[426];k.writeHead(426,{"Content-Length":x.length,"Content-Type":"text/plain"}),k.end(x)}),this._server.listen(w.port,w.host,w.backlog,T)):w.server&&(this._server=w.server),this._server){let P=this.emit.bind(this,"connection");this._removeListeners=function(k,x){for(let R of Object.keys(x))k.on(R,x[R]);return function(){for(let R of Object.keys(x))k.removeListener(R,x[R])}}(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(k,x,R)=>{this.handleUpgrade(k,x,R,P)}})}w.perMessageDeflate===!0&&(w.perMessageDeflate={}),w.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=w,this._state=0}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(w){if(this._state===2)return w&&this.once("close",()=>{w(new Error("The server is not running"))}),void process.nextTick(m,this);if(w&&this.once("close",w),this._state!==1)if(this._state=1,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients&&this.clients.size?this._shouldEmitClose=!0:process.nextTick(m,this);else{let T=this._server;this._removeListeners(),this._removeListeners=this._server=null,T.close(()=>{m(this)})}}shouldHandle(w){if(this.options.path){let T=w.url.indexOf("?");if((T!==-1?w.url.slice(0,T):w.url)!==this.options.path)return!1}return!0}handleUpgrade(w,T,P,k){T.on("error",v);let x=w.headers["sec-websocket-key"],R=+w.headers["sec-websocket-version"];if(w.method!=="GET")return void g(this,w,T,405,"Invalid HTTP method");if(w.headers.upgrade.toLowerCase()!=="websocket")return void g(this,w,T,400,"Invalid Upgrade header");if(!x||!_.test(x))return void g(this,w,T,400,"Missing or invalid Sec-WebSocket-Key header");if(R!==8&&R!==13)return void g(this,w,T,400,"Missing or invalid Sec-WebSocket-Version header");if(!this.shouldHandle(w))return void b(T,400);let C=w.headers["sec-websocket-protocol"],j=new Set;if(C!==void 0)try{j=l.parse(C)}catch{return void g(this,w,T,400,"Invalid Sec-WebSocket-Protocol header")}let L=w.headers["sec-websocket-extensions"],D={};if(this.options.perMessageDeflate&&L!==void 0){let F=new a(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let q=u.parse(L);q[a.extensionName]&&(F.accept(q[a.extensionName]),D[a.extensionName]=F)}catch{return void g(this,w,T,400,"Invalid or unacceptable Sec-WebSocket-Extensions header")}}if(this.options.verifyClient){let F={origin:w.headers[R===8?"sec-websocket-origin":"origin"],secure:!(!w.socket.authorized&&!w.socket.encrypted),req:w};if(this.options.verifyClient.length===2)return void this.options.verifyClient(F,(q,z,K,se)=>{if(!q)return b(T,z||401,K,se);this.completeUpgrade(D,x,j,w,T,P,k)});if(!this.options.verifyClient(F))return b(T,401)}this.completeUpgrade(D,x,j,w,T,P,k)}completeUpgrade(w,T,P,k,x,R,C){if(!x.readable||!x.writable)return x.destroy();if(x[h])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return b(x,503);let j=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${c("sha1").update(T+f).digest("base64")}`],L=new this.options.WebSocket(null);if(P.size){let D=this.options.handleProtocols?this.options.handleProtocols(P,k):P.values().next().value;D&&(j.push(`Sec-WebSocket-Protocol: ${D}`),L._protocol=D)}if(w[a.extensionName]){let D=w[a.extensionName].params,F=u.format({[a.extensionName]:[D]});j.push(`Sec-WebSocket-Extensions: ${F}`),L._extensions=w}this.emit("headers",j,k),x.write(j.concat(`\r
|
|
883
883
|
`).join(`\r
|
|
884
|
-
`)),x.removeListener("error",v),L.setSocket(x,R,{maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(L),L.on("close",()=>{this.clients.delete(L),this._shouldEmitClose&&!this.clients.size&&process.nextTick(m,this)})),C(L,k)}}},5144:(r,e,n)=>{"use strict";let i=n(467),s=n(1256),c=n(3755),u=n(5256),a=n(192),{randomBytes:l,createHash:d}=n(7968),{Readable:f}=n(8378),{URL:h}=n(8716),_=n(516),m=n(6804),v=n(957),{BINARY_TYPES:b,EMPTY_BUFFER:g,GUID:w,kForOnEventAttribute:T,kListener:P,kStatusCode:k,kWebSocket:x,NOOP:R}=n(5820),{EventTarget:{addEventListener:C,removeEventListener:j}}=n(2584),{format:L,parse:D}=n(1056),{toBuffer:F}=n(3092),q=Symbol("kAborted"),z=[8,13],K=["CONNECTING","OPEN","CLOSING","CLOSED"],se=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class X extends i{constructor(B,G,ce){super(),this._binaryType=b[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=g,this._closeTimer=null,this._extensions={},this._paused=!1,this._protocol="",this._readyState=X.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,B!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,G===void 0?G=[]:Array.isArray(G)||(typeof G=="object"&&G!==null?(ce=G,G=[]):G=[G]),he(this,B,G,ce)):this._isServer=!0}get binaryType(){return this._binaryType}set binaryType(B){b.includes(B)&&(this._binaryType=B,this._receiver&&(this._receiver._binaryType=B))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(B,G,ce){let oe=new m({binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:ce.maxPayload,skipUTF8Validation:ce.skipUTF8Validation});this._sender=new v(B,this._extensions,ce.generateMask),this._receiver=oe,this._socket=B,oe[x]=this,B[x]=this,oe.on("conclude",Jo),oe.on("drain",nr),oe.on("error",Vr),oe.on("message",H),oe.on("ping",J),oe.on("pong",ne),B.setTimeout(0),B.setNoDelay(),G.length>0&&B.unshift(G),B.on("close",Ee),B.on("data",fe),B.on("end",Z),B.on("error",ae),this._readyState=X.OPEN,this.emit("open")}emitClose(){if(!this._socket)return this._readyState=X.CLOSED,void this.emit("close",this._closeCode,this._closeMessage);this._extensions[_.extensionName]&&this._extensions[_.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=X.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(B,G){if(this.readyState!==X.CLOSED){if(this.readyState===X.CONNECTING)return Q(this,this._req,"WebSocket was closed before the connection was established");this.readyState!==X.CLOSING?(this._readyState=X.CLOSING,this._sender.close(B,G,!this._isServer,ce=>{ce||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),3e4)):this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end()}}pause(){this.readyState!==X.CONNECTING&&this.readyState!==X.CLOSED&&(this._paused=!0,this._socket.pause())}ping(B,G,ce){if(this.readyState===X.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");typeof B=="function"?(ce=B,B=G=void 0):typeof G=="function"&&(ce=G,G=void 0),typeof B=="number"&&(B=B.toString()),this.readyState===X.OPEN?(G===void 0&&(G=!this._isServer),this._sender.ping(B||g,G,ce)):bn(this,B,ce)}pong(B,G,ce){if(this.readyState===X.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");typeof B=="function"?(ce=B,B=G=void 0):typeof G=="function"&&(ce=G,G=void 0),typeof B=="number"&&(B=B.toString()),this.readyState===X.OPEN?(G===void 0&&(G=!this._isServer),this._sender.pong(B||g,G,ce)):bn(this,B,ce)}resume(){this.readyState!==X.CONNECTING&&this.readyState!==X.CLOSED&&(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(B,G,ce){if(this.readyState===X.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof G=="function"&&(ce=G,G={}),typeof B=="number"&&(B=B.toString()),this.readyState!==X.OPEN)return void bn(this,B,ce);let oe={binary:typeof B!="string",mask:!this._isServer,compress:!0,fin:!0,...G};this._extensions[_.extensionName]||(oe.compress=!1),this._sender.send(B||g,oe,ce)}terminate(){if(this.readyState!==X.CLOSED){if(this.readyState===X.CONNECTING)return Q(this,this._req,"WebSocket was closed before the connection was established");this._socket&&(this._readyState=X.CLOSING,this._socket.destroy())}}}function he(N,B,G,ce){let oe={protocolVersion:z[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...ce,createConnection:void 0,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(!z.includes(oe.protocolVersion))throw new RangeError(`Unsupported protocol version: ${oe.protocolVersion} (supported versions: ${z.join(", ")})`);let Ve;if(B instanceof h)Ve=B,N._url=B.href;else{try{Ve=new h(B)}catch{throw new SyntaxError(`Invalid URL: ${B}`)}N._url=B}let Be=Ve.protocol==="wss:",zr=Ve.protocol==="ws+unix:",or;if(Ve.protocol==="ws:"||Be||zr?zr&&!Ve.pathname?or="The URL's pathname is empty":Ve.hash&&(or="The URL contains a fragment identifier"):or=`The URL's protocol must be one of "ws:", "wss:", or "ws+unix:"`,or){let Te=new SyntaxError(or);if(N._redirects===0)throw Te;return void te(N,Te)}let _t=Be?443:80,me=l(16).toString("base64"),Er=Be?s.request:c.request,ir=new Set,Yr,Qe;if(oe.createConnection=Be?Ke:xe,oe.defaultPort=oe.defaultPort||_t,oe.port=Ve.port||_t,oe.host=Ve.hostname.startsWith("[")?Ve.hostname.slice(1,-1):Ve.hostname,oe.headers={...oe.headers,"Sec-WebSocket-Version":oe.protocolVersion,"Sec-WebSocket-Key":me,Connection:"Upgrade",Upgrade:"websocket"},oe.path=Ve.pathname+Ve.search,oe.timeout=oe.handshakeTimeout,oe.perMessageDeflate&&(Yr=new _(oe.perMessageDeflate!==!0?oe.perMessageDeflate:{},!1,oe.maxPayload),oe.headers["Sec-WebSocket-Extensions"]=L({[_.extensionName]:Yr.offer()})),G.length){for(let Te of G){if(typeof Te!="string"||!se.test(Te)||ir.has(Te))throw new SyntaxError("An invalid or duplicated subprotocol was specified");ir.add(Te)}oe.headers["Sec-WebSocket-Protocol"]=G.join(",")}if(oe.origin&&(oe.protocolVersion<13?oe.headers["Sec-WebSocket-Origin"]=oe.origin:oe.headers.Origin=oe.origin),(Ve.username||Ve.password)&&(oe.auth=`${Ve.username}:${Ve.password}`),zr){let Te=oe.path.split(":");oe.socketPath=Te[0],oe.path=Te[1]}if(oe.followRedirects){if(N._redirects===0){N._originalIpc=zr,N._originalSecure=Be,N._originalHostOrSocketPath=zr?oe.socketPath:Ve.host;let Te=ce&&ce.headers;if(ce={...ce,headers:{}},Te)for(let[it,Ze]of Object.entries(Te))ce.headers[it.toLowerCase()]=Ze}else if(N.listenerCount("redirect")===0){let Te=zr?!!N._originalIpc&&oe.socketPath===N._originalHostOrSocketPath:!N._originalIpc&&Ve.host===N._originalHostOrSocketPath;(!Te||N._originalSecure&&!Be)&&(delete oe.headers.authorization,delete oe.headers.cookie,Te||delete oe.headers.host,oe.auth=void 0)}oe.auth&&!ce.headers.authorization&&(ce.headers.authorization="Basic "+Buffer.from(oe.auth).toString("base64")),Qe=N._req=Er(oe),N._redirects&&N.emit("redirect",N.url,Qe)}else Qe=N._req=Er(oe);oe.timeout&&Qe.on("timeout",()=>{Q(N,Qe,"Opening handshake has timed out")}),Qe.on("error",Te=>{Qe===null||Qe[q]||(Qe=N._req=null,te(N,Te))}),Qe.on("response",Te=>{let it=Te.headers.location,Ze=Te.statusCode;if(it&&oe.followRedirects&&Ze>=300&&Ze<400){if(++N._redirects>oe.maxRedirects)return void Q(N,Qe,"Maximum redirects exceeded");let gn;Qe.abort();try{gn=new h(it,B)}catch{let Ct=new SyntaxError(`Invalid URL: ${it}`);return void te(N,Ct)}he(N,gn,G,ce)}else N.emit("unexpected-response",Qe,Te)||Q(N,Qe,`Unexpected server response: ${Te.statusCode}`)}),Qe.on("upgrade",(Te,it,Ze)=>{if(N.emit("upgrade",Te),N.readyState!==X.CONNECTING)return;if(Qe=N._req=null,Te.headers.upgrade.toLowerCase()!=="websocket")return void Q(N,it,"Invalid Upgrade header");let gn=d("sha1").update(me+w).digest("base64");if(Te.headers["sec-websocket-accept"]!==gn)return void Q(N,it,"Invalid Sec-WebSocket-Accept header");let Tr=Te.headers["sec-websocket-protocol"],Ct;if(Tr!==void 0?ir.size?ir.has(Tr)||(Ct="Server sent an invalid subprotocol"):Ct="Server sent a subprotocol but none was requested":ir.size&&(Ct="Server sent no subprotocol"),Ct)return void Q(N,it,Ct);Tr&&(N._protocol=Tr);let Re=Te.headers["sec-websocket-extensions"];if(Re!==void 0){if(!Yr)return void Q(N,it,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");let zn;try{zn=D(Re)}catch{return void Q(N,it,"Invalid Sec-WebSocket-Extensions header")}let Go=Object.keys(zn);if(Go.length!==1||Go[0]!==_.extensionName)return void Q(N,it,"Server indicated an extension that was not requested");try{Yr.accept(zn[_.extensionName])}catch{return void Q(N,it,"Invalid Sec-WebSocket-Extensions header")}N._extensions[_.extensionName]=Yr}N.setSocket(it,Ze,{generateMask:oe.generateMask,maxPayload:oe.maxPayload,skipUTF8Validation:oe.skipUTF8Validation})}),Qe.end()}function te(N,B){N._readyState=X.CLOSING,N.emit("error",B),N.emitClose()}function xe(N){return N.path=N.socketPath,u.connect(N)}function Ke(N){return N.path=void 0,N.servername||N.servername===""||(N.servername=u.isIP(N.host)?"":N.host),a.connect(N)}function Q(N,B,G){N._readyState=X.CLOSING;let ce=new Error(G);Error.captureStackTrace(ce,Q),B.setHeader?(B[q]=!0,B.abort(),B.socket&&!B.socket.destroyed&&B.socket.destroy(),process.nextTick(te,N,ce)):(B.destroy(ce),B.once("error",N.emit.bind(N,"error")),B.once("close",N.emitClose.bind(N)))}function bn(N,B,G){if(B){let ce=F(B).length;N._socket?N._sender._bufferedBytes+=ce:N._bufferedAmount+=ce}G&&G(new Error(`WebSocket is not open: readyState ${N.readyState} (${K[N.readyState]})`))}function Jo(N,B){let G=this[x];G._closeFrameReceived=!0,G._closeMessage=B,G._closeCode=N,G._socket[x]!==void 0&&(G._socket.removeListener("data",fe),process.nextTick(_e,G._socket),N===1005?G.close():G.close(N,B))}function nr(){let N=this[x];N.isPaused||N._socket.resume()}function Vr(N){let B=this[x];B._socket[x]!==void 0&&(B._socket.removeListener("data",fe),process.nextTick(_e,B._socket),B.close(N[k])),B.emit("error",N)}function $(){this[x].emitClose()}function H(N,B){this[x].emit("message",N,B)}function J(N){let B=this[x];B.pong(N,!B._isServer,R),B.emit("ping",N)}function ne(N){this[x].emit("pong",N)}function _e(N){N.resume()}function Ee(){let N=this[x],B;this.removeListener("close",Ee),this.removeListener("data",fe),this.removeListener("end",Z),N._readyState=X.CLOSING,this._readableState.endEmitted||N._closeFrameReceived||N._receiver._writableState.errorEmitted||(B=N._socket.read())===null||N._receiver.write(B),N._receiver.end(),this[x]=void 0,clearTimeout(N._closeTimer),N._receiver._writableState.finished||N._receiver._writableState.errorEmitted?N.emitClose():(N._receiver.on("error",$),N._receiver.on("finish",$))}function fe(N){this[x]._receiver.write(N)||this.pause()}function Z(){let N=this[x];N._readyState=X.CLOSING,N._receiver.end(),this.end()}function ae(){let N=this[x];this.removeListener("error",ae),this.on("error",R),N&&(N._readyState=X.CLOSING,this.destroy())}Object.defineProperty(X,"CONNECTING",{enumerable:!0,value:K.indexOf("CONNECTING")}),Object.defineProperty(X.prototype,"CONNECTING",{enumerable:!0,value:K.indexOf("CONNECTING")}),Object.defineProperty(X,"OPEN",{enumerable:!0,value:K.indexOf("OPEN")}),Object.defineProperty(X.prototype,"OPEN",{enumerable:!0,value:K.indexOf("OPEN")}),Object.defineProperty(X,"CLOSING",{enumerable:!0,value:K.indexOf("CLOSING")}),Object.defineProperty(X.prototype,"CLOSING",{enumerable:!0,value:K.indexOf("CLOSING")}),Object.defineProperty(X,"CLOSED",{enumerable:!0,value:K.indexOf("CLOSED")}),Object.defineProperty(X.prototype,"CLOSED",{enumerable:!0,value:K.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(N=>{Object.defineProperty(X.prototype,N,{enumerable:!0})}),["open","error","close","message"].forEach(N=>{Object.defineProperty(X.prototype,`on${N}`,{enumerable:!0,get(){for(let B of this.listeners(N))if(B[T])return B[P];return null},set(B){for(let G of this.listeners(N))if(G[T]){this.removeListener(N,G);break}typeof B=="function"&&this.addEventListener(N,B,{[T]:!0})}})}),X.prototype.addEventListener=C,X.prototype.removeEventListener=j,r.exports=X},7968:r=>{"use strict";r.exports=Ue("node:crypto")},467:r=>{"use strict";r.exports=Ue("node:events")},2058:r=>{"use strict";r.exports=Ue("node:fs")},3755:r=>{"use strict";r.exports=Ue("node:http")},1256:r=>{"use strict";r.exports=Ue("node:https")},5256:r=>{"use strict";r.exports=Ue("node:net")},8558:r=>{"use strict";r.exports=Ue("node:os")},7072:r=>{"use strict";r.exports=Ue("node:path")},8378:r=>{"use strict";r.exports=Ue("node:stream")},192:r=>{"use strict";r.exports=Ue("node:tls")},8716:r=>{"use strict";r.exports=Ue("node:url")},592:r=>{"use strict";r.exports=Ue("node:zlib")}},t={},function r(e){var n=t[e];if(n!==void 0)return n.exports;var i=t[e]={exports:{}};return o[e].call(i.exports,i,i.exports,r),i.exports}(4856);var o,t})});var x_=Ge(Oe()),Hr=Ge(br());import{readFile as sZ}from"node:fs/promises";import{join as fw}from"node:path";var WG="13.8.2-release-s204.0" ,UG="1057391c" ,$G="@uipath/api-workflow-runtime",Dx=(o,t)=>/^__[A-Z_]+__$/.test(o)?t:o,Lx={version:Dx(WG,"0.0.0-dev"),commit:Dx(UG,"local")};function qx(){return`${$G} v${Lx.version} (${Lx.commit})`}var Qh=Ge(br());var Ux=Ge(br());import{Worker as BG}from"node:worker_threads";var HG=typeof globalThis.Deno<"u",VG=`
|
|
884
|
+
`)),x.removeListener("error",v),L.setSocket(x,R,{maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(L),L.on("close",()=>{this.clients.delete(L),this._shouldEmitClose&&!this.clients.size&&process.nextTick(m,this)})),C(L,k)}}},5144:(r,e,n)=>{"use strict";let i=n(467),s=n(1256),c=n(3755),u=n(5256),a=n(192),{randomBytes:l,createHash:d}=n(7968),{Readable:f}=n(8378),{URL:h}=n(8716),_=n(516),m=n(6804),v=n(957),{BINARY_TYPES:b,EMPTY_BUFFER:g,GUID:w,kForOnEventAttribute:T,kListener:P,kStatusCode:k,kWebSocket:x,NOOP:R}=n(5820),{EventTarget:{addEventListener:C,removeEventListener:j}}=n(2584),{format:L,parse:D}=n(1056),{toBuffer:F}=n(3092),q=Symbol("kAborted"),z=[8,13],K=["CONNECTING","OPEN","CLOSING","CLOSED"],se=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class X extends i{constructor(B,G,ce){super(),this._binaryType=b[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=g,this._closeTimer=null,this._extensions={},this._paused=!1,this._protocol="",this._readyState=X.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,B!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,G===void 0?G=[]:Array.isArray(G)||(typeof G=="object"&&G!==null?(ce=G,G=[]):G=[G]),he(this,B,G,ce)):this._isServer=!0}get binaryType(){return this._binaryType}set binaryType(B){b.includes(B)&&(this._binaryType=B,this._receiver&&(this._receiver._binaryType=B))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(B,G,ce){let oe=new m({binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:ce.maxPayload,skipUTF8Validation:ce.skipUTF8Validation});this._sender=new v(B,this._extensions,ce.generateMask),this._receiver=oe,this._socket=B,oe[x]=this,B[x]=this,oe.on("conclude",Jo),oe.on("drain",nr),oe.on("error",zr),oe.on("message",H),oe.on("ping",J),oe.on("pong",ne),B.setTimeout(0),B.setNoDelay(),G.length>0&&B.unshift(G),B.on("close",Ee),B.on("data",fe),B.on("end",Z),B.on("error",ae),this._readyState=X.OPEN,this.emit("open")}emitClose(){if(!this._socket)return this._readyState=X.CLOSED,void this.emit("close",this._closeCode,this._closeMessage);this._extensions[_.extensionName]&&this._extensions[_.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=X.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(B,G){if(this.readyState!==X.CLOSED){if(this.readyState===X.CONNECTING)return Q(this,this._req,"WebSocket was closed before the connection was established");this.readyState!==X.CLOSING?(this._readyState=X.CLOSING,this._sender.close(B,G,!this._isServer,ce=>{ce||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),3e4)):this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end()}}pause(){this.readyState!==X.CONNECTING&&this.readyState!==X.CLOSED&&(this._paused=!0,this._socket.pause())}ping(B,G,ce){if(this.readyState===X.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");typeof B=="function"?(ce=B,B=G=void 0):typeof G=="function"&&(ce=G,G=void 0),typeof B=="number"&&(B=B.toString()),this.readyState===X.OPEN?(G===void 0&&(G=!this._isServer),this._sender.ping(B||g,G,ce)):bn(this,B,ce)}pong(B,G,ce){if(this.readyState===X.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");typeof B=="function"?(ce=B,B=G=void 0):typeof G=="function"&&(ce=G,G=void 0),typeof B=="number"&&(B=B.toString()),this.readyState===X.OPEN?(G===void 0&&(G=!this._isServer),this._sender.pong(B||g,G,ce)):bn(this,B,ce)}resume(){this.readyState!==X.CONNECTING&&this.readyState!==X.CLOSED&&(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(B,G,ce){if(this.readyState===X.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof G=="function"&&(ce=G,G={}),typeof B=="number"&&(B=B.toString()),this.readyState!==X.OPEN)return void bn(this,B,ce);let oe={binary:typeof B!="string",mask:!this._isServer,compress:!0,fin:!0,...G};this._extensions[_.extensionName]||(oe.compress=!1),this._sender.send(B||g,oe,ce)}terminate(){if(this.readyState!==X.CLOSED){if(this.readyState===X.CONNECTING)return Q(this,this._req,"WebSocket was closed before the connection was established");this._socket&&(this._readyState=X.CLOSING,this._socket.destroy())}}}function he(N,B,G,ce){let oe={protocolVersion:z[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...ce,createConnection:void 0,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(!z.includes(oe.protocolVersion))throw new RangeError(`Unsupported protocol version: ${oe.protocolVersion} (supported versions: ${z.join(", ")})`);let Ve;if(B instanceof h)Ve=B,N._url=B.href;else{try{Ve=new h(B)}catch{throw new SyntaxError(`Invalid URL: ${B}`)}N._url=B}let Be=Ve.protocol==="wss:",Yr=Ve.protocol==="ws+unix:",or;if(Ve.protocol==="ws:"||Be||Yr?Yr&&!Ve.pathname?or="The URL's pathname is empty":Ve.hash&&(or="The URL contains a fragment identifier"):or=`The URL's protocol must be one of "ws:", "wss:", or "ws+unix:"`,or){let Te=new SyntaxError(or);if(N._redirects===0)throw Te;return void te(N,Te)}let _t=Be?443:80,me=l(16).toString("base64"),Er=Be?s.request:c.request,ir=new Set,Kr,Qe;if(oe.createConnection=Be?Ke:xe,oe.defaultPort=oe.defaultPort||_t,oe.port=Ve.port||_t,oe.host=Ve.hostname.startsWith("[")?Ve.hostname.slice(1,-1):Ve.hostname,oe.headers={...oe.headers,"Sec-WebSocket-Version":oe.protocolVersion,"Sec-WebSocket-Key":me,Connection:"Upgrade",Upgrade:"websocket"},oe.path=Ve.pathname+Ve.search,oe.timeout=oe.handshakeTimeout,oe.perMessageDeflate&&(Kr=new _(oe.perMessageDeflate!==!0?oe.perMessageDeflate:{},!1,oe.maxPayload),oe.headers["Sec-WebSocket-Extensions"]=L({[_.extensionName]:Kr.offer()})),G.length){for(let Te of G){if(typeof Te!="string"||!se.test(Te)||ir.has(Te))throw new SyntaxError("An invalid or duplicated subprotocol was specified");ir.add(Te)}oe.headers["Sec-WebSocket-Protocol"]=G.join(",")}if(oe.origin&&(oe.protocolVersion<13?oe.headers["Sec-WebSocket-Origin"]=oe.origin:oe.headers.Origin=oe.origin),(Ve.username||Ve.password)&&(oe.auth=`${Ve.username}:${Ve.password}`),Yr){let Te=oe.path.split(":");oe.socketPath=Te[0],oe.path=Te[1]}if(oe.followRedirects){if(N._redirects===0){N._originalIpc=Yr,N._originalSecure=Be,N._originalHostOrSocketPath=Yr?oe.socketPath:Ve.host;let Te=ce&&ce.headers;if(ce={...ce,headers:{}},Te)for(let[it,Ze]of Object.entries(Te))ce.headers[it.toLowerCase()]=Ze}else if(N.listenerCount("redirect")===0){let Te=Yr?!!N._originalIpc&&oe.socketPath===N._originalHostOrSocketPath:!N._originalIpc&&Ve.host===N._originalHostOrSocketPath;(!Te||N._originalSecure&&!Be)&&(delete oe.headers.authorization,delete oe.headers.cookie,Te||delete oe.headers.host,oe.auth=void 0)}oe.auth&&!ce.headers.authorization&&(ce.headers.authorization="Basic "+Buffer.from(oe.auth).toString("base64")),Qe=N._req=Er(oe),N._redirects&&N.emit("redirect",N.url,Qe)}else Qe=N._req=Er(oe);oe.timeout&&Qe.on("timeout",()=>{Q(N,Qe,"Opening handshake has timed out")}),Qe.on("error",Te=>{Qe===null||Qe[q]||(Qe=N._req=null,te(N,Te))}),Qe.on("response",Te=>{let it=Te.headers.location,Ze=Te.statusCode;if(it&&oe.followRedirects&&Ze>=300&&Ze<400){if(++N._redirects>oe.maxRedirects)return void Q(N,Qe,"Maximum redirects exceeded");let gn;Qe.abort();try{gn=new h(it,B)}catch{let Ct=new SyntaxError(`Invalid URL: ${it}`);return void te(N,Ct)}he(N,gn,G,ce)}else N.emit("unexpected-response",Qe,Te)||Q(N,Qe,`Unexpected server response: ${Te.statusCode}`)}),Qe.on("upgrade",(Te,it,Ze)=>{if(N.emit("upgrade",Te),N.readyState!==X.CONNECTING)return;if(Qe=N._req=null,Te.headers.upgrade.toLowerCase()!=="websocket")return void Q(N,it,"Invalid Upgrade header");let gn=d("sha1").update(me+w).digest("base64");if(Te.headers["sec-websocket-accept"]!==gn)return void Q(N,it,"Invalid Sec-WebSocket-Accept header");let Tr=Te.headers["sec-websocket-protocol"],Ct;if(Tr!==void 0?ir.size?ir.has(Tr)||(Ct="Server sent an invalid subprotocol"):Ct="Server sent a subprotocol but none was requested":ir.size&&(Ct="Server sent no subprotocol"),Ct)return void Q(N,it,Ct);Tr&&(N._protocol=Tr);let Re=Te.headers["sec-websocket-extensions"];if(Re!==void 0){if(!Kr)return void Q(N,it,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");let zn;try{zn=D(Re)}catch{return void Q(N,it,"Invalid Sec-WebSocket-Extensions header")}let Go=Object.keys(zn);if(Go.length!==1||Go[0]!==_.extensionName)return void Q(N,it,"Server indicated an extension that was not requested");try{Kr.accept(zn[_.extensionName])}catch{return void Q(N,it,"Invalid Sec-WebSocket-Extensions header")}N._extensions[_.extensionName]=Kr}N.setSocket(it,Ze,{generateMask:oe.generateMask,maxPayload:oe.maxPayload,skipUTF8Validation:oe.skipUTF8Validation})}),Qe.end()}function te(N,B){N._readyState=X.CLOSING,N.emit("error",B),N.emitClose()}function xe(N){return N.path=N.socketPath,u.connect(N)}function Ke(N){return N.path=void 0,N.servername||N.servername===""||(N.servername=u.isIP(N.host)?"":N.host),a.connect(N)}function Q(N,B,G){N._readyState=X.CLOSING;let ce=new Error(G);Error.captureStackTrace(ce,Q),B.setHeader?(B[q]=!0,B.abort(),B.socket&&!B.socket.destroyed&&B.socket.destroy(),process.nextTick(te,N,ce)):(B.destroy(ce),B.once("error",N.emit.bind(N,"error")),B.once("close",N.emitClose.bind(N)))}function bn(N,B,G){if(B){let ce=F(B).length;N._socket?N._sender._bufferedBytes+=ce:N._bufferedAmount+=ce}G&&G(new Error(`WebSocket is not open: readyState ${N.readyState} (${K[N.readyState]})`))}function Jo(N,B){let G=this[x];G._closeFrameReceived=!0,G._closeMessage=B,G._closeCode=N,G._socket[x]!==void 0&&(G._socket.removeListener("data",fe),process.nextTick(_e,G._socket),N===1005?G.close():G.close(N,B))}function nr(){let N=this[x];N.isPaused||N._socket.resume()}function zr(N){let B=this[x];B._socket[x]!==void 0&&(B._socket.removeListener("data",fe),process.nextTick(_e,B._socket),B.close(N[k])),B.emit("error",N)}function $(){this[x].emitClose()}function H(N,B){this[x].emit("message",N,B)}function J(N){let B=this[x];B.pong(N,!B._isServer,R),B.emit("ping",N)}function ne(N){this[x].emit("pong",N)}function _e(N){N.resume()}function Ee(){let N=this[x],B;this.removeListener("close",Ee),this.removeListener("data",fe),this.removeListener("end",Z),N._readyState=X.CLOSING,this._readableState.endEmitted||N._closeFrameReceived||N._receiver._writableState.errorEmitted||(B=N._socket.read())===null||N._receiver.write(B),N._receiver.end(),this[x]=void 0,clearTimeout(N._closeTimer),N._receiver._writableState.finished||N._receiver._writableState.errorEmitted?N.emitClose():(N._receiver.on("error",$),N._receiver.on("finish",$))}function fe(N){this[x]._receiver.write(N)||this.pause()}function Z(){let N=this[x];N._readyState=X.CLOSING,N._receiver.end(),this.end()}function ae(){let N=this[x];this.removeListener("error",ae),this.on("error",R),N&&(N._readyState=X.CLOSING,this.destroy())}Object.defineProperty(X,"CONNECTING",{enumerable:!0,value:K.indexOf("CONNECTING")}),Object.defineProperty(X.prototype,"CONNECTING",{enumerable:!0,value:K.indexOf("CONNECTING")}),Object.defineProperty(X,"OPEN",{enumerable:!0,value:K.indexOf("OPEN")}),Object.defineProperty(X.prototype,"OPEN",{enumerable:!0,value:K.indexOf("OPEN")}),Object.defineProperty(X,"CLOSING",{enumerable:!0,value:K.indexOf("CLOSING")}),Object.defineProperty(X.prototype,"CLOSING",{enumerable:!0,value:K.indexOf("CLOSING")}),Object.defineProperty(X,"CLOSED",{enumerable:!0,value:K.indexOf("CLOSED")}),Object.defineProperty(X.prototype,"CLOSED",{enumerable:!0,value:K.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(N=>{Object.defineProperty(X.prototype,N,{enumerable:!0})}),["open","error","close","message"].forEach(N=>{Object.defineProperty(X.prototype,`on${N}`,{enumerable:!0,get(){for(let B of this.listeners(N))if(B[T])return B[P];return null},set(B){for(let G of this.listeners(N))if(G[T]){this.removeListener(N,G);break}typeof B=="function"&&this.addEventListener(N,B,{[T]:!0})}})}),X.prototype.addEventListener=C,X.prototype.removeEventListener=j,r.exports=X},7968:r=>{"use strict";r.exports=Ue("node:crypto")},467:r=>{"use strict";r.exports=Ue("node:events")},2058:r=>{"use strict";r.exports=Ue("node:fs")},3755:r=>{"use strict";r.exports=Ue("node:http")},1256:r=>{"use strict";r.exports=Ue("node:https")},5256:r=>{"use strict";r.exports=Ue("node:net")},8558:r=>{"use strict";r.exports=Ue("node:os")},7072:r=>{"use strict";r.exports=Ue("node:path")},8378:r=>{"use strict";r.exports=Ue("node:stream")},192:r=>{"use strict";r.exports=Ue("node:tls")},8716:r=>{"use strict";r.exports=Ue("node:url")},592:r=>{"use strict";r.exports=Ue("node:zlib")}},t={},function r(e){var n=t[e];if(n!==void 0)return n.exports;var i=t[e]={exports:{}};return o[e].call(i.exports,i,i.exports,r),i.exports}(4856);var o,t})});var x_=Ge(Oe()),Vr=Ge(br());import{readFile as sZ}from"node:fs/promises";import{join as fw}from"node:path";var WG="13.8.2-release-s204.1" ,UG="a1909132" ,$G="@uipath/api-workflow-runtime",Dx=(o,t)=>/^__[A-Z_]+__$/.test(o)?t:o,Lx={version:Dx(WG,"0.0.0-dev"),commit:Dx(UG,"local")};function qx(){return`${$G} v${Lx.version} (${Lx.commit})`}var Qh=Ge(br());var Ux=Ge(br());import{Worker as BG}from"node:worker_threads";var HG=typeof globalThis.Deno<"u",VG=`
|
|
885
885
|
if (typeof self === 'undefined') {
|
|
886
886
|
const { parentPort } = require('worker_threads');
|
|
887
887
|
globalThis.self = {
|
|
@@ -1432,7 +1432,7 @@ self.onmessage = function(e) {
|
|
|
1432
1432
|
}
|
|
1433
1433
|
}
|
|
1434
1434
|
};
|
|
1435
|
-
`}async testEvaluatePlainJsExpression(t){return(await this.evaluateSanitizedExpressionsInternal(new Set([t]))).get(t)}};var gr=Ge(br()),Vg=Ge(Oe());var Bh=Ge(Oe()),Hh=Ge(br()),Vi=class{static sanitizeData(t,r){if(!t)return{sanitizedData:t,sanitizedError:this.sanitizeError(r)};let e;try{e=(0,Bh.removeObjectPaths)(t,["context","input","output","variables","properties"])}catch(i){console.error("Error sanitizing data:",i),e=t}let n=this.sanitizeError(r);return{sanitizedData:e,sanitizedError:n}}static sanitizeError(t){if(t)try{if((0,Hh.isWorkflowError)(t)){let r=t.getData(),e=(0,Bh.redactObjectPaths)(r,["cause.headers","cause.request"]);return new Hh.WorkflowError(t.title,t.status,t.type,t.instance,t.detail,e,t.originatingTaskName)}else{let r=new Error(t.message);r.stack=t.stack;for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r}}catch(r){return console.error("Error sanitizing error:",r),t}}};var $x=Ge(Lv()),Bx=Ge(Oe()),Hx=Ge(Oe()),zG="X-UiPath-Licensing-Context",YG="/lease_/api/usageEvent",KG="Is.Activities",JG=1,GG="Vertical",XG=!1;function ZG(o){return $x.default.utc(o).format("YYYY-MM-DDTHH:mm:ss.SSS")+"0000Z"}function qg(o){if(o)try{let t=o.split(";");for(let r of t){let e=r.indexOf("=");if(e===-1)continue;let n=r.substring(0,e).trim(),i=r.substring(e+1).trim();if(n==="transactionType"&&i)return i}return}catch(t){console.error("LicensingService: Failed to parse licensing context:",t);return}}var Vh=class{licensingContext;organizationId;tenantId;accessToken;baseUrl;source;constructor(t,r){this.licensingContext=r||"",this.organizationId=t.organizationId,this.tenantId=t.tenantId,this.accessToken=t.tracingConfig?.tracingToken||"",this.baseUrl=t.baseUrl,this.source=t.source}async reportHttpTaskConsumption(t){if(!XG||!this.licensingContext||qg(this.licensingContext)!==GG)return;if(!this.accessToken){console.error("LicensingService: No access token available for licensing consumption reporting");return}let r=this.buildLeaseRequest(t),e=(0,Bx.addPathComponentsToUrl)(this.baseUrl,[this.organizationId,YG,this.organizationId]);try{let n=await fetch(e,{method:"PUT",body:JSON.stringify(r),headers:{Authorization:`Bearer ${this.accessToken}`,"Content-Type":"application/json",[zG]:this.licensingContext},signal:AbortSignal.timeout(5e3)}),i=await n.text();if(n.ok)console.log("LicensingService: Consumption reported successfully.");else{let s=`Licensing API failed: ${n.status} ${n.statusText} - ${i}`;throw console.error(`LicensingService: ${s}`),new Error(s)}}catch(n){let s=n instanceof DOMException&&n.name==="TimeoutError"?"LicensingService: Request timed out after 5s":`LicensingService: Failed to report consumption: ${(0,Hx.getErrorMessage)(n)}`;throw console.error(s),new Error(s)}}buildLeaseRequest(t){let r=t.displayName||"N/A",e=[{k:"count",v:"1"},{k:"activityType",v:"HTTP"},{k:"activityDisplayName",v:r.substring(0,255)},{k:"source",v:this.source}];return{nonce:t.nonce,referenceId:t.referenceId,usage:1,consumedAt:ZG(new Date),organizationId:this.organizationId,context:{tenantId:this.tenantId,operationCode:KG},rawData:{formula:JG,Params:e}}}};var sR=Ge(br()),aR=Ge(Oe());async function Vx(o,t,r,e,n,i="v2",s=""){let c=i==="v3"?"api/Traces/v3/spans":"api/Traces/spans",u=s.replace(/^\/+|\/+$/g,""),a=u?`${u}/${c}`:c,l=new URL(`${o.replace(/\/$/,"")}/${a}`);return l.searchParams.set("traceId",r),l.searchParams.set("source",e),fetch(l.toString(),{method:"POST",headers:{"Content-Type":"application/json",...n},body:JSON.stringify(t)})}function QG(o){let t=globalThis.crypto;if(t?.getRandomValues===void 0)throw new Error("Web Crypto API is unavailable; @uipath/tracing requires globalThis.crypto (browser, Node >= 20, or Deno).");let r=new Uint8Array(o);return t.getRandomValues(r),Array.from(r,e=>e.toString(16).padStart(2,"0")).join("")}var zx={generate(){return QG(8)},fromUuid(o){return o.replace(/-/g,"").slice(16).toLowerCase()},toUuid(o){if(o.length!==16)throw new Error(`Invalid OTEL span ID length: ${o.length}`);let t=o.padStart(32,"0");return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16,20)}-${t.slice(20)}`},isValid(o){return o.length===16&&/^[0-9a-fA-F]{16}$/.test(o)}};var zh;(function(o){o[o.Unset=0]="Unset",o[o.Ok=1]="Ok",o[o.Error=2]="Error",o[o.Running=3]="Running",o[o.Restricted=4]="Restricted",o[o.Cancelled=5]="Cancelled"})(zh||(zh={}));var Wr;(function(o){o[o.Testing=0]="Testing",o[o.Agents=1]="Agents",o[o.ProcessOrchestration=2]="ProcessOrchestration",o[o.ApiWorkflows=3]="ApiWorkflows",o[o.Robots=4]="Robots",o[o.ConversationalAgentsService=5]="ConversationalAgentsService",o[o.IntegrationServiceTrigger=6]="IntegrationServiceTrigger",o[o.Playground=7]="Playground",o[o.Governance=8]="Governance",o[o.IXPUnstructuredAndComplexDocuments=9]="IXPUnstructuredAndComplexDocuments",o[o.CodedAgents=10]="CodedAgents",o[o.IXPCommunicationsMining=11]="IXPCommunicationsMining",o[o.EnterpriseContextService=12]="EnterpriseContextService",o[o.MCP=13]="MCP",o[o.A2A=14]="A2A",o[o.Serverless=15]="Serverless",o[o.DocumentUnderstanding=16]="DocumentUnderstanding"})(Wr||(Wr={}));var Dc;(function(o){o[o.Verbose=0]="Verbose",o[o.Trace=1]="Trace",o[o.Information=2]="Information",o[o.Warning=3]="Warning",o[o.Error=4]="Error",o[o.Critical=5]="Critical",o[o.Off=6]="Off"})(Dc||(Dc={}));var Yh;(function(o){o[o.Debug=0]="Debug",o[o.Runtime=1]="Runtime"})(Yh||(Yh={}));var ba;(function(o){o[o.Orchestrator=0]="Orchestrator",o[o.LLMOps=1]="LLMOps",o[o.IDP=2]="IDP"})(ba||(ba={}));var Lc;(function(o){o[o.None=0]="None",o[o.In=1]="In",o[o.Out=2]="Out"})(Lc||(Lc={}));var Yx;(function(o){o[o.Pending=0]="Pending",o[o.Approved=1]="Approved",o[o.Dismissed=2]="Dismissed"})(Yx||(Yx={}));var Kx;(function(o){o[o.Enabled=0]="Enabled",o[o.Disabled=1]="Disabled"})(Kx||(Kx={}));var Jx;(function(o){o[o.Episodic=0]="Episodic",o[o.Escalation=1]="Escalation"})(Jx||(Jx={}));var Gx;(function(o){o.Hybrid="Hybrid",o.Semantic="Semantic"})(Gx||(Gx={}));var Xx;(function(o){o[o.Allow=0]="Allow",o[o.PartialBlock=1]="PartialBlock",o[o.Block=2]="Block"})(Xx||(Xx={}));function Ug(o){return{id:o.id??zx.generate(),traceId:o.traceId,parentId:o.parentId,name:o.name,spanType:o.spanType,attributes:JSON.stringify(Wg(o.attributes)),status:zh[o.status],organizationId:o.organizationId,tenantId:o.tenantId,folderKey:o.folderKey,source:Wr[o.source],startTime:Fg(o.startTime),endTime:o.endTime!==void 0?Fg(o.endTime):void 0,updatedAt:Fg(o.updatedAt),verbosityLevel:Dc[o.verbosityLevel??Dc.Information],executionType:o.executionType!==void 0?Yh[o.executionType]:void 0,agentVersion:o.agentVersion,processKey:o.processKey,jobKey:o.jobKey,referenceId:o.agentId,attachments:o.attachments?.map(r=>({provider:ba[r.provider],id:r.id,fileName:r.fileName,mimeType:r.mimeType,direction:Lc[r.direction??Lc.None]})),context:eX(o.baggage)}}function eX(o){if(o===void 0)return;let t=o.toReferenceHierarchy();if(t.length!==0)return{referenceHierarchy:t.map(r=>({serviceType:r.serviceType,referenceId:r.referenceId,version:r.version}))}}function Fg(o){return typeof o=="string"?o:o.toISOString()}function Wg(o){if(Array.isArray(o))return o.map(Wg);if(o!==null&&typeof o=="object"&&!(o instanceof Date)){let t={};for(let[r,e]of Object.entries(o))e!=null&&(t[r]=Wg(e));return t}return o}var $g="1.0.0";var Qx="x-uipath-tracebaggage",ga={Type:"ref.type",Id:"ref.id",Version:"ref.v"},Zx=class o{static Empty=new o([]);_entries;constructor(t){this._entries=t}get entries(){return this._entries}get length(){return this._entries.length}add(t){let r=new Map,e=t instanceof Map?t.entries():Object.entries(t);for(let[i,s]of e){if(typeof i!="string"||i.trim()==="")throw new Error("Property keys must be non-empty strings.");if(typeof s!="string")throw new Error(`Property '${i}' must have a string value.`);r.set(i,s)}if(r.size===0)throw new Error("Properties must contain at least one key.");let n={properties:r};return new o([...this._entries,n])}addReference(t,r,e){if(typeof t!="string"||t.trim()==="")throw new Error("serviceType must be a non-empty string.");if(typeof r!="string"||r.trim()==="")throw new Error("referenceId must be a non-empty string.");let n={[ga.Type]:t,[ga.Id]:r};return e!=null&&e.trim()!==""&&(n[ga.Version]=e),this.add(n)}toReferenceHierarchy(){let t=[];for(let r of this._entries){let e=tX(r);e!==void 0&&t.push(e)}return t}toHeaderValue(){if(this._entries.length===0)return"";let t=[];for(let r of this._entries){let n=Array.from(r.properties.keys()).sort().map(i=>`${i}=${r.properties.get(i)}`).join(";");t.push(n)}return t.join(",")}static fromHeaderValue(t){if(t==null)return o.Empty;let r=t.trim();if(r==="")return o.Empty;let e=[];for(let n of r.split(",")){let i=n.trim();if(i==="")continue;let s=new Map;for(let c of i.split(";")){let u=c.trim();if(u==="")continue;let a=u.indexOf("=");if(a<=0||a>=u.length-1)continue;let l=u.slice(0,a).trim(),d=u.slice(a+1).trim();l===""||d===""||s.set(l,d)}s.size>0&&e.push({properties:s})}return e.length===0?o.Empty:new o(e)}};function tX(o){if(o==null)throw new Error("entry is required");let t=o.properties.get(ga.Type),r=o.properties.get(ga.Id);if(!t||!r||!nX(r))return;let e=o.properties.get(ga.Version);return{serviceType:t,referenceId:r,version:e}}var rX=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function nX(o){return rX.test(o)}var hn=class extends Error{statusCode;constructor(t,r){super(t),this.statusCode=r,this.name="LLMOpsClientError"}},Kh=class{config;constructor(t){this.config=t}resolveUrl(t){let r=this.config.organizationId;if(!r)return t;let e=r;return this.config.tenantId&&(e+=`/${this.config.tenantId}`),e+="/llmopstenant_",`${e}/${t}`}async executeCore(t,r,e,n){let s=`${this.config.baseUrl.replace(/\/$/,"")}/${r}`,{extraHeaders:c}=n??{},u;for(let a=0;a<3;a++){try{let l=await this.config.getToken(),d={method:t,headers:{Authorization:`Bearer ${l}`,"X-SDK-Version":$g,...e!==void 0?{"Content-Type":"application/json"}:{},...c},...e!==void 0?{body:JSON.stringify(e)}:{}},f=await fetch(s,d);if(f.ok)return f;if(f.status>=400&&f.status<500)throw new hn(`HTTP ${f.status}`,f.status);u=new hn(`HTTP ${f.status} (attempt ${a+1})`,f.status)}catch(l){if(l instanceof hn&&l.statusCode!==void 0&&l.statusCode<500)throw l;u=l}a<2&&await rR(1e3*Math.pow(2,a))}throw u instanceof Error?u:new hn("Request failed after 3 attempts")}async executeJson(t,r,e){return(await this.executeCore(t,r,e)).json()}async executeVoid(t,r,e){await this.executeCore(t,r,e)}async publishSpans(t,r,e){let n=e??r[0]?.source??Wr.Agents,i=r[0],s=sX(i?.organizationId,i?.tenantId),c=r.map(Ug),u,a;try{a=await Promise.resolve().then(()=>(tR(),eR))}catch{a=void 0}if(a!==void 0){let d=a.BaggageContextAccessor.get();d!==void 0&&d.length>0&&(u=d.toHeaderValue())}let l;for(let d=0;d<3;d++){try{let h={Authorization:`Bearer ${await this.config.getToken()}`,"X-SDK-Version":$g};u!==void 0&&(h[Qx]=u);let _=await Vx(this.config.baseUrl,c,t,oR(n),h,this.config.apiVersion??"v2",s);if(_.ok)return;if(_.status>=400&&_.status<500)throw new hn(`HTTP ${_.status}`,_.status);l=new hn(`HTTP ${_.status} (attempt ${d+1})`,_.status)}catch(f){if(f instanceof hn&&f.statusCode!==void 0&&f.statusCode<500)throw f;l=f}d<2&&await rR(1e3*Math.pow(2,d))}throw l instanceof Error?l:new hn("Failed to publish spans after 3 attempts")}async publishSpansBatch(t,r){let e=t.map(Ug),n=(this.config.apiVersion??"v2")==="v3"?"api/Traces/v3/spans/batch":"api/Traces/spans/batch",i=this.resolveUrl(`${n}?source=${encodeURIComponent(oR(r))}`);return this.executeJson("POST",i,e)}async getSpans(t,r=1e3,e=!1){let n=this.resolveUrl(`api/Traces/v2/spans?traceId=${encodeURIComponent(t)}&pageSize=${r}&isHistorical=${e}`),i=await this.executeCore("GET",n),s=await i.json(),c=i.headers.get("X-Continuation-Token")??i.headers.get("x-continuation-token")??void 0;return{spans:s,continuationToken:c}}async getOtelSpans(t,r=1e3,e=!1){if((this.config.apiVersion??"v2")!=="v3"){let n=this.resolveUrl(`api/Traces/v2/spans/otel?traceId=${encodeURIComponent(t)}&pageSize=${r}&isHistorical=${e}`),i=await this.executeCore("GET",n),s=await i.json(),c=i.headers.get("X-Continuation-Token")??i.headers.get("x-continuation-token")??void 0;return{spans:s?.spans??[],continuationToken:c}}return this.getOtelSpansV3(t,e)}async getOtelSpansV3(t,r){let e=[],n="";for(;;){let i=this.resolveUrl(`api/Traces/v3/spans?traceId=${encodeURIComponent(t)}&pageSize=500&isHistorical=${r}`),s=n?{"X-UiPath-Trace-Tokens":n}:void 0,c=await this.executeCore("GET",i,void 0,{extraHeaders:s}),u=await c.json(),a=u.Spans??u.spans??[];if(e.push(...a),n=c.headers.get("X-UiPath-Trace-Tokens")??"",!n)break}return{spans:e}}async getSpansByIds(t,r){let e=this.resolveUrl(`api/Traces/v2/spans/byIds?traceId=${encodeURIComponent(t)}`);return this.executeJson("POST",e,r)}async getOtelSpansByIds(t,r){if((this.config.apiVersion??"v2")!=="v3"){let e=this.resolveUrl(`api/Traces/v2/spans/otel/byIds?traceId=${encodeURIComponent(t)}`);return this.executeJson("POST",e,r)}return this.getOtelSpansByIdsV3(t,r)}async getOtelSpansByIdsV3(t,r){let e=this.resolveUrl(`api/Traces/v3/spans/byIds?traceId=${encodeURIComponent(t)}`),n=await this.executeJson("POST",e,r);return Array.isArray(n)?n:n.Spans??n.spans??[]}async getSpansByReferenceId(t,r={}){let e=new URLSearchParams;r.serviceType!==void 0&&e.set("serviceType",r.serviceType),r.version!==void 0&&e.set("version",r.version),r.pageNumber!==void 0&&e.set("pageNumber",String(r.pageNumber)),r.pageSize!==void 0&&e.set("pageSize",String(r.pageSize)),r.startTime!==void 0&&e.set("startTime",r.startTime instanceof Date?r.startTime.toISOString():r.startTime),r.endTime!==void 0&&e.set("endTime",r.endTime instanceof Date?r.endTime.toISOString():r.endTime),r.traceId!==void 0&&e.set("traceId",r.traceId);let n=e.toString(),i=this.resolveUrl(`api/Traces/v3/spans/reference/${encodeURIComponent(t)}${n?`?${n}`:""}`);return this.executeJson("GET",i)}createFeedback(t){return this.executeJson("POST",this.resolveUrl("api/Feedback"),t)}editFeedback(t,r){return this.executeJson("POST",this.resolveUrl(`api/Feedback/${t}`),r)}deleteFeedback(t){return this.executeVoid("DELETE",this.resolveUrl(`api/Feedback/${t}`))}getFeedback(t){return this.executeJson("GET",this.resolveUrl(`api/Feedback/${t}`))}listFeedback(t){let r=iX(t);return this.executeJson("GET",this.resolveUrl(`api/Feedback${r}`))}getFeedbackMemoryLinks(t){return this.executeJson("GET",this.resolveUrl(`api/Feedback/memoryLinks?traceId=${encodeURIComponent(t)}`))}searchFeedbackByTraceIds(t){return this.executeJson("POST",this.resolveUrl("api/Feedback/search"),t)}createFeedbackCategory(t){return this.executeJson("POST",this.resolveUrl("api/Feedback/category"),t)}listFeedbackCategories(t=0,r=100,e,n){let i=`?skip=${t}&take=${r}`;return e!==void 0&&(i+=`&isPositive=${e}`),n!==void 0&&(i+=`&isNegative=${n}`),this.executeJson("GET",this.resolveUrl(`api/Feedback/category${i}`))}deleteFeedbackCategory(t,r=!1){return this.executeVoid("DELETE",this.resolveUrl(`api/Feedback/category/${t}?forceDelete=${r}`))}createMemoryItem(t,r){return this.executeJson("POST",this.resolveUrl(`api/Memory/${t}/items`),r)}listMemoryItems(t,r=0,e=100,n=!1){let i=`?skip=${r}&take=${e}`;return n&&(i+="&expand=span"),this.executeJson("GET",this.resolveUrl(`api/Memory/${t}/items${i}`))}getMemoryItem(t,r,e=!1){let n=e?"?expand=span":"";return this.executeJson("GET",this.resolveUrl(`api/Memory/${t}/items/${r}${n}`))}updateMemoryItem(t,r,e){return this.executeJson("PATCH",this.resolveUrl(`api/Memory/${t}/items/${r}`),e)}deleteMemoryItem(t,r){return this.executeVoid("DELETE",this.resolveUrl(`api/Memory/${t}/items/${r}`))}bulkDeleteMemoryItems(t,r){return this.executeVoid("DELETE",this.resolveUrl(`api/Memory/${t}/items`),{memoryItemIds:r})}deleteMemorySpace(t){return this.executeVoid("DELETE",this.resolveUrl(`api/Memory/${t}`))}searchMemory(t,r){return this.executeJson("POST",this.resolveUrl(`api/Memory/${t}/search`),r)}};function iX(o){if(!o)return"";let t=[];return t.push(`skip=${o.skip??0}`),t.push(`take=${o.take??100}`),o.agentId&&t.push(`agentId=${encodeURIComponent(o.agentId)}`),o.agentVersion&&t.push(`agentVersion=${encodeURIComponent(o.agentVersion)}`),o.status!==void 0&&t.push(`status=${o.status}`),o.traceId&&t.push(`traceId=${encodeURIComponent(o.traceId)}`),o.spanId&&t.push(`spanId=${encodeURIComponent(o.spanId)}`),`?${t.join("&")}`}function rR(o){return new Promise(t=>setTimeout(t,o))}var nR="00000000-0000-0000-0000-000000000000";function sX(o,t){if(!o||o===nR)return"";let r=o;return t&&t!==nR&&(r+=`/${t}`),`${r}/llmopstenant_`}function oR(o){return Wr[o]??String(o)}var Hg="00000000-0000-0000-0000-000000000000";function iR(o){let{organizationId:t,tenantId:r,folderKey:e,processKey:n,jobKey:i}=o.jobContext;if(!e||e.toLowerCase()===Hg)throw new Error(`toSdkSpan: missing folderKey. TraceId: ${o.traceId}, JobKey: ${i}`);return{id:o.id,traceId:o.traceId,parentId:o.parentId||void 0,name:o.name,spanType:o.spanType,attributes:o.attributes??{},status:o.status,source:Wr.ApiWorkflows,startTime:o.startTime,endTime:o.endTime,updatedAt:o.updatedAt,organizationId:t,tenantId:r,folderKey:e,processKey:n,jobKey:i,attachments:o.attachments?.map(s=>({provider:ba.LLMOps,id:s.id,fileName:s.fileName,mimeType:s.mimeType}))}}var Jh=class{traceId;traceViewDataFormatter;injectedPublisher;lazyPublisher;workflowConfig;constructor(t,r,e){this.workflowConfig=t,this.traceViewDataFormatter=new sR.TraceViewDataFormatter(t,r),this.traceId=this.traceViewDataFormatter.traceId,this.injectedPublisher=e}getPublisher(){return this.injectedPublisher?this.injectedPublisher:(this.lazyPublisher||(this.lazyPublisher=new Kh({baseUrl:this.workflowConfig.baseUrl,getToken:()=>Promise.resolve(this.workflowConfig.tracingConfig?.tracingToken??""),apiVersion:"v3"})),this.lazyPublisher)}async sendSpans(t){if(!this.workflowConfig.tracingConfig?.tracingToken||t.length===0){console.log(`TraceViewLogger: ${this.workflowConfig.tracingConfig?.tracingToken?"No spans to flush":"No trace view token"}`);return}let r=this.workflowConfig.processConfig?.folderKey;if(!r||r.toLowerCase()===Hg){console.error(`TraceViewLogger: skipping v3 ingest \u2014 missing/empty folderKey. JobKey: ${this.workflowConfig.processConfig?.jobKey}`);return}console.log(`TraceViewLogger: Flushing ${t.length} spans to trace view...`);try{let e=t.map(iR);await this.getPublisher().publishSpans(this.traceId,e,Wr.ApiWorkflows),console.log(`TraceViewLogger: Updated ${e.length} spans to trace view. TraceId: ${this.traceId}, JobKey: ${this.workflowConfig.processConfig?.jobKey}`)}catch(e){let n=`Error: TraceViewLogger: Failed to send spans to trace view, TraceId: ${this.traceId}, JobKey: ${this.workflowConfig.processConfig?.jobKey}: ${(0,aR.getErrorMessage)(e)}`;throw console.error(n),new Error(n)}}formatWorkflowLog(t,r,e){return this.traceViewDataFormatter.formatWorkflowLog(t,r,e)}formatTaskLog(t,r,e){return this.traceViewDataFormatter.formatTaskLog(t,r,e)}formatUserLog(t,r,e){return this.traceViewDataFormatter.formatUserLog(t,r,e)}};var Bo={Information:"Information",Warning:"Warning",Error:"Error"};var Bn={TELEMETRY_EVENT:"telemetry_event",TELEMETRY_TRACE:"telemetry_trace",USER_LOG:"user_log"},Ho=class{static createEventDto(t,r,e,n,i,s){try{let c=r==="task"?t.formatTaskLog(e,n,s):t.formatWorkflowLog(e,n,s);return c?{name:c.name,eventTime:new Date().toISOString(),jobKey:i,properties:c.properties||{}}:(console.error(`Error: Failed to format ${r} log data:`,{event:e,data:JSON.stringify(n),error:s}),null)}catch(c){return console.error(`Failed to create ${r} event DTO:`,{error:c,event:e,data:JSON.stringify(n)}),null}}static createTraceDto(t,r,e,n,i){try{let s={};return n&&Object.keys(n).length>0?Object.entries(n).forEach(([c,u])=>{s[c]=typeof u=="object"?JSON.stringify(u):String(u)}):i&&(t=t+" "+i.message,i.message&&(s.message=i.message),i.name&&(s.name=i.name),i.stack&&(s.stack=i.stack),Object.entries(i).forEach(([c,u])=>{u!=null&&(s[c]=typeof u=="object"?JSON.stringify(u):String(u))})),{message:t,severityLevel:r,eventTime:new Date().toISOString(),jobKey:e,properties:s}}catch(s){return console.error("Failed to create trace DTO:",{error:s,message:t,severity:r,data:JSON.stringify(n)}),null}}static createJobLogDto(t){try{return{Message:String(t.message),LogLevel:t.logLevel}}catch(r){return console.error("Failed to create job log DTO:",{error:r,data:JSON.stringify(t)}),null}}};var Gh=class{logLevel;workflowId;workflowName;constructor(t,r,e){this.logLevel=t,this.workflowId=r,this.workflowName=e}async logWorkflowEvent(t,r,e){await this.logEventToConsole(t,r,e)}async logTaskEvent(t,r,e){await this.logEventToConsole(t,r,e)}logIterationVariables(){return Promise.resolve()}async logEvent(t,r){return Promise.resolve()}async logEventToConsole(t,r,e){let n={workflowName:this.workflowName,...r&&{data:r}};if(e)return this.error(`Event: ${t}`,n,e),Promise.resolve();await this.info(`Event: ${t}`,n)}async debug(t,r){this.shouldLog("debug")&&await this.log("debug",t,r)}async info(t,r){this.shouldLog("info")&&await this.log("info",t,r)}async warn(t,r){this.shouldLog("warn")&&await this.log("warn",t,r)}shutdown(){return Promise.resolve()}async error(t,r,e){await this.log("error",t,r,e)}shouldLog(t){let r=["debug","info","warn","error"];return r.indexOf(t)>=r.indexOf(this.logLevel)}log(t,r,e,n){try{let i={message:r,workflowId:this.workflowId,workflowName:this.workflowName,level:t,logTime:new Date().toISOString(),...n&&{error:{name:n.name,message:n.title||n.message,type:n.type,stack:n.detail||n.stack,status:n.status}},...e&&{data:e}};return console[t](JSON.stringify(i)),Promise.resolve()}catch(i){return console.error("Failed to log message:",r,i),Promise.resolve()}}};var Xh=class{loggers;rawDataLoggers;ORPHANED_USER_LOGS_TASK_ID="unknown";jobApi;telemetryDataFormatter;traceViewService;licensingService;licensingContext;OrchestratorJobId;totalSocketDurationMs=0;totalTraceViewDurationMs=0;spans=[];userLogDataWithTaskIds=new Map;workflowConfig;SPAN_BATCH_SIZE=5;SPAN_BATCH_INTERVAL_MS=3e3;MAX_SPAN_DATA_SIZE_BYTES=1024*1024;lastSpanFlushTime=Date.now();lastSpanFlushTaskCount=0;taskCount=0;constructor(t,r,e,n,i,s,c){this.loggers=[new Gh(t.debugConfig?.isRunningInDesigner?"debug":"info",r,r)],this.rawDataLoggers=c??[],this.jobApi=e,this.workflowConfig=t,this.traceViewService=new Jh(t,r),this.licensingService=new Vh(t,s),this.licensingContext=s,this.telemetryDataFormatter=new gr.TelemetryDataFormatter(t.organizationId,t.tenantId,t.telemetryConfig?.traceId,t.telemetryConfig?.parentSpanId,t.userId,t.subscriptionType,t.source,n,i,t.processConfig?.isStudioDebugContext,t.processConfig?.folderKey,t.processConfig?.jobKey),this.OrchestratorJobId=t.processConfig?.jobKey}async logWorkflowEvent(t,r,e){let{sanitizedData:n,sanitizedError:i}=Vi.sanitizeData(r,e),s=this.loggers.map(l=>l.logWorkflowEvent(t,n,i)),c=this.rawDataLoggers.map(l=>l.logWorkflowEvent(t,r,e));if(await Promise.all([...s,...c]),t===gr.WorkflowEvent.WORKFLOW_STARTED)return Promise.resolve();let u=this.traceViewService.formatWorkflowLog(t,r,e);this.spans.push(u),await this.flushSpansIfNeeded(),this.addUserLogsToTraceViewSpans(this.ORPHANED_USER_LOGS_TASK_ID,u.id),await this.sendTraceViewData(this.spans),this.userLogDataWithTaskIds.clear(),this.updateWorkflowExecutionTimes(n);let a=Ho.createEventDto(this.telemetryDataFormatter,"workflow",t,n,this.OrchestratorJobId,i);await this.sendTelemetryData(a,Bn.TELEMETRY_EVENT)}async logTaskEvent(t,r,e){let{sanitizedData:n,sanitizedError:i}=Vi.sanitizeData(r,e),s=this.loggers.map(v=>v.logTaskEvent(t,n,i)),c=this.rawDataLoggers.map(v=>v.logTaskEvent(t,r,e));if(await Promise.all([...s,...c]),this.taskCount++,t===gr.TaskEvent.TASK_STARTED||r.taskType===gr.TaskType.DO)return Promise.resolve();let u=Ho.createEventDto(this.telemetryDataFormatter,"task",t,n,this.OrchestratorJobId,i),a=t===gr.TaskEvent.TASK_COMPLETED&&r.taskType===gr.TaskType.HTTP&&r.HttpCallMode==="direct"&&!r.isUiPathInternalServiceCall&&!this.workflowConfig.processConfig?.isStudioDebugContext,l=(0,Vg.getNewGuid)(),d=(0,Vg.getNewGuid)();if(u?.properties&&this.licensingContext&&a){u.properties.LicensingContext=this.licensingContext;let v=qg(this.licensingContext);v&&(u.properties.LicensingTransactionType=v),l&&(u.properties.LicensingNonce=l),d&&(u.properties.LicensingReferenceId=d)}let f=this.sendTelemetryData(u,Bn.TELEMETRY_EVENT),h=a?{...r,licenseRefId:d}:r,_=this.traceViewService.formatTaskLog(t,h,e);this.spans.push(_),await this.flushSpansIfNeeded(),this.addUserLogsToTraceViewSpans(r.taskId,_.id);let m=a&&l&&d?this.reportLicensingConsumption({displayName:r.displayName,nonce:l,referenceId:d}):Promise.resolve();await Promise.all([f,m])}async logEvent(t,r){let e=[...this.loggers.map(s=>s.logEvent(t,r)),...this.rawDataLoggers.map(s=>s.logEvent(t,r))],n=Ho.createJobLogDto(r),i=this.sendTelemetryData(n,Bn.USER_LOG);if(this.workflowConfig.tracingConfig?.enableUserLogs){let s=r.taskId||this.ORPHANED_USER_LOGS_TASK_ID;this.userLogDataWithTaskIds.has(s)?this.userLogDataWithTaskIds.get(s)?.push(r):this.userLogDataWithTaskIds.set(s,[r])}await Promise.all([...e,i])}async logIterationVariables(t,r,e){let n=[...this.loggers.map(i=>i.logIterationVariables(t,r,e)),...this.rawDataLoggers.map(i=>i.logIterationVariables(t,r,e))];await Promise.all(n)}async debug(t,r){let{sanitizedData:e}=Vi.sanitizeData(r||{},void 0),n=[...this.loggers.map(i=>i.debug(t,e)),...this.rawDataLoggers.map(i=>i.debug(t,r))];await Promise.all(n)}async info(t,r){await this.logWithTelemetry(t,Bo.Information,r)}async warn(t,r){await this.logWithTelemetry(t,Bo.Warning,r)}async error(t,r,e){await this.logWithTelemetry(t,Bo.Error,r,e)}addUserLogsToTraceViewSpans(t,r){this.userLogDataWithTaskIds.has(t)&&(this.userLogDataWithTaskIds.get(t)?.forEach(n=>{let i=this.traceViewService.formatUserLog(gr.LogEvent.USER_LOG,n,r);this.spans.push(i)}),this.userLogDataWithTaskIds.delete(t))}async logWithTelemetry(t,r,e,n){let{sanitizedData:i,sanitizedError:s}=Vi.sanitizeData(e||{},n),c=(d,f)=>{let h=f?e:i,_=f?n:s;switch(r){case Bo.Information:return d.info(t,h);case Bo.Warning:return d.warn(t,h);case Bo.Error:return d.error(t,h,_);default:return d.info(t,h)}},u=[...this.loggers.map(d=>c(d,!1)),...this.rawDataLoggers.map(d=>c(d,!0))],a=Ho.createTraceDto(t,r,this.OrchestratorJobId,i,s),l=this.sendTelemetryData(a,Bn.TELEMETRY_TRACE);await Promise.all([...u,l])}async sendTelemetryData(t,r){if(!t){console.debug(`No DTO provided for ${r}, skipping telemetry`);return}if(!this.jobApi){console.warn(`Job API not available for ${r}`);return}let e=Date.now();try{r===Bn.TELEMETRY_EVENT?await this.jobApi.sendTelemetryEvent(t):r===Bn.TELEMETRY_TRACE?await this.jobApi.sendTelemetryTrace(t):r===Bn.USER_LOG&&await this.jobApi.sendLog(t);let n=Date.now()-e;this.totalSocketDurationMs+=n}catch(n){let i=Date.now()-e;this.totalSocketDurationMs+=i,console.error(`IPC communication failed for ${r}:`,{error:n,dto:JSON.stringify(t),duration:`${i}ms`})}}updateWorkflowExecutionTimes(t){t.executionEndTimeMs=Date.now(),t.executionTimeMs=t.executionEndTimeMs-(t.executionStartTimeMs||0),t.externalExecutionTimeMs=(t.externalExecutionTimeMs||0)+this.totalSocketDurationMs+this.totalTraceViewDurationMs,t.systemExecutionTimeMs=t.executionTimeMs-t.externalExecutionTimeMs;let r={};if(t.externalExecutionBreakdown)try{r=JSON.parse(t.externalExecutionBreakdown)}catch{r={}}this.totalSocketDurationMs>0&&(r.SocketTimeMs=this.totalSocketDurationMs),this.totalTraceViewDurationMs>0&&(r.TraceViewTimeMs=this.totalTraceViewDurationMs),t.externalExecutionBreakdown=JSON.stringify(r)}getSpansSize(){try{let t=JSON.stringify(this.spans);return new Blob([t]).size}catch{return 0}}async flushSpansIfNeeded(){let t=Date.now(),r=t-this.lastSpanFlushTime,e=this.getSpansSize();if((this.spans.length>=this.SPAN_BATCH_SIZE||r>=this.SPAN_BATCH_INTERVAL_MS||e>this.MAX_SPAN_DATA_SIZE_BYTES)&&this.spans.length>0){let i=e>this.MAX_SPAN_DATA_SIZE_BYTES?"size":this.spans.length>=this.SPAN_BATCH_SIZE?"count":"time";console.log(`[MEMORY OPTIMIZATION] Flushing ${this.spans.length} spans (${Math.round(e/1024)} KB) due to ${i}`),await this.sendTraceViewData([...this.spans]),this.spans.length=0,this.lastSpanFlushTime=t,this.lastSpanFlushTaskCount=this.taskCount}}async sendTraceViewData(t){let r=Date.now();try{await this.traceViewService.sendSpans(t);let e=Date.now()-r;this.totalTraceViewDurationMs+=e}catch(e){let n=Date.now()-r;this.totalTraceViewDurationMs+=n,console.error("TraceView service error:",e);let i=Ho.createTraceDto("TraceView service failed",Bo.Error,this.OrchestratorJobId,void 0,e);await this.sendTelemetryData(i,Bn.TELEMETRY_TRACE)}}async reportLicensingConsumption(t){try{await this.licensingService.reportHttpTaskConsumption(t)}catch(r){console.error("LicensingService: Error reporting consumption:",r)}}async shutdown(){await Promise.all([...this.loggers.map(t=>t.shutdown()),...this.rawDataLoggers.map(t=>t.shutdown())])}};import{AsyncLocalStorage as aX}from"node:async_hooks";var Zh=class{storage=new aX;current(){return this.storage.getStore()}runInSpan(t,r){return this.storage.run(t,r)}};var cX="APIWF_TRACE_CONTEXT_PROPAGATION",uX=new Set(["1","true"]);function lX(){let o;try{o=process.env[cX]}catch{return!1}return uX.has((o??"").trim().toLowerCase())}var cR;function uR(){if(lX())return cR??=new Zh,cR}var lR=async(o,t,r,e={})=>{if(!t)throw new Error("Workflow context is required");let{releasePackage:n,jobApi:i,licensingContext:s,additionalLoggers:c,commandStream$:u}=e;t.proxyConfig=void 0;let a=n?`${n.id}@${n.version}`:`${o.document.name}@${o.document.version}`,l=new Xh(t,a,i,o.document.tags?.projectId,o.document.tags?.solutionId,s,c),d=(t.debugConfig?.isRunningInDesigner??!1)||(t.debugConfig?.enableVerboseDataLogging??!1);return await Qh.ServerlessWorkflowExecutor.execute(o,t,r,{expressionHandlers:{[Qh.ExpressionLanguage.JavaScript]:$h.getInstance({diffEnabled:d})},logger:l,commandStream$:u,traceContextProvider:uR()},t.processConfig?.jobKey)};var _n={Successful:"Successful",Faulted:"Faulted",Stopped:"Stopped"};var Oa=Ge(Oe()),ka=Ge(br());var ct=Ge(br());Yg();var Vo=Ge(br()),dX="#Wrapper",fX="#Retry",pX=[dX,fX],hX=o=>{let t=pX.find(r=>o.endsWith(r));return t?o.slice(0,-t.length):o},e_=class{retries=new Map;onTaskEvent(t,r){let e=r?.taskId;if(!e||r?.taskType!==Vo.TaskType.TRY)return;let n=hX(e);switch(t){case Vo.TaskEvent.TASK_STARTED:this.retries.set(n,0);break;case Vo.TaskEvent.TASK_RETRIED:this.retries.set(n,r?.retry?.attempt??(this.retries.get(n)??0)+1);break;case Vo.TaskEvent.TASK_COMPLETED:case Vo.TaskEvent.TASK_FAILED:case Vo.TaskEvent.TASK_STOPPED:this.retries.delete(n);break;default:break}}snapshot(){let t={};for(let[r,e]of this.retries)t[r]={iterationIndex:e};return t}reset(){this.retries.clear()}};var Jg=class extends Error{isStop=!0;constructor(){super((0,ct.t)(ct.ErrorKeys.WORKFLOW_STOPPED_BY_USER)),this.name="WorkflowStoppedError"}};var _X=new Set(["taskId","taskType","workflowId","workflowRunId","timestamp","isPaused","breakpointId","executionTimeMs","logLevel","loopContext"]),Kg=o=>{if(!o)return;let t={name:o.name,message:o.message,stack:o.stack},r=o;return r.type!==void 0&&(t.type=r.type),r.status!==void 0&&(t.status=r.status),r.title!==void 0&&(t.title=r.title),r.detail!==void 0&&(t.detail=r.detail),r.instance!==void 0&&(t.instance=r.instance),r.data!==void 0&&(t.data=r.data),r.originatingTaskName!==void 0&&(t.originatingTaskName=r.originatingTaskName),t},t_=class o{static MAX_PAYLOAD_BYTES=5*1024*1024;static SMALL_FIELD_BYTES=4*1024;seq=0;loopContextData={};retryTracker=new e_;terminalEmitted=!1;connection;stopState;constructor(t,r){this.connection=t,this.stopState=r}currentLoopContext(){return structuredClone({...this.loopContextData,...this.retryTracker.snapshot()})}stampLoopContext(t){return{...t,loopContext:this.currentLoopContext()}}emit(t,r){let e={...r,seq:this.seq++};this.connection.send({eventName:t,payload:this.guardPayloadSize(t,e)})}guardPayloadSize(t,r){let e=new Map,n=2,i=0;for(let[d,f]of Object.entries(r)){let h;try{let m=o.jsonValueByteLength(f,o.MAX_PAYLOAD_BYTES);if(m===void 0){e.set(d,0);continue}h=m}catch{h=1/0}e.set(d,h);let _=(i>0?1:0)+o.jsonStringByteLength(d,o.MAX_PAYLOAD_BYTES)+1;!Number.isFinite(h)||n>o.MAX_PAYLOAD_BYTES-_-h?n=1/0:n+=_+h,i++}if(n<=o.MAX_PAYLOAD_BYTES)return r;let s={},c=[];for(let[d,f]of Object.entries(r))(e.get(d)??1/0)<=o.SMALL_FIELD_BYTES?s[d]=f:c.push(d);if(c.includes("data")){let d=o.pickEssentialLogData(r.data);d&&(s.data=d)}let u=Number.isFinite(n)?(n/(1024*1024)).toFixed(2):">5.00",a=(o.MAX_PAYLOAD_BYTES/(1024*1024)).toFixed(0),l={...s,dropped:!0,reason:"payload_size_exceeded_limit",droppedFields:c,message:`${t} payload dropped because it exceeded ${a}MB (original size: ${u}MB)`};return s.message!==void 0&&(l.originalMessage=s.message),l}static pickEssentialLogData(t){if(t===null||typeof t!="object")return;let r=t,e={};for(let n of _X)o.isSmallField(r[n])&&(e[n]=r[n]);return Object.keys(e).length>0?e:void 0}static isSmallField(t){if(t===void 0)return!1;try{let r=o.jsonValueByteLength(t,o.SMALL_FIELD_BYTES);return r!==void 0&&r<=o.SMALL_FIELD_BYTES}catch{return!1}}static jsonStringByteLength(t,r){let e=4;for(let n=0;n<t.length;n++){let i=t.charCodeAt(n);if(i===34||i===92)e+=4;else if(i<=31)e+=i===8||i===9||i===10||i===12||i===13?3:7;else if(i>=55296&&i<=56319){let s=t.charCodeAt(n+1);s>=56320&&s<=57343?(e+=4,n++):e+=7}else i>=56320&&i<=57343?e+=7:e+=i<128?1:i<2048?2:3;if(e>r)return r+1}return e}static jsonValueByteLength(t,r,e=new Set,n="",i=!0){if(i&&t!==null&&typeof t=="object"){let c=t.toJSON;if(typeof c=="function")return this.jsonValueByteLength(c.call(t,n),r,e,n,!1)}if(t===null)return 4;switch(typeof t){case"string":return this.jsonStringByteLength(t,r);case"boolean":return t?4:5;case"number":{let c=Number.isFinite(t)?String(t):"null";return c.length>r?r+1:c.length}case"bigint":throw new TypeError("BigInt is not JSON serializable");case"undefined":case"function":case"symbol":return}let s=t;if(s instanceof Number||s instanceof String||s instanceof Boolean)return this.jsonValueByteLength(s.valueOf(),r,e,n,!1);if(Object.prototype.toString.call(s)==="[object BigInt]")throw new TypeError("BigInt is not JSON serializable");if(e.has(s))throw new TypeError("Circular structure is not JSON serializable");e.add(s);try{if(Array.isArray(s)){let a=2;for(let l=0;l<s.length;l++){if(l>0&&a++,a>r)return r+1;let d=r-a,h=this.jsonValueByteLength(s[l],d,e,String(l))??4;if(h>d)return r+1;a+=h}return a}let c=2,u=0;for(let a in s){if(!Object.prototype.hasOwnProperty.call(s,a))continue;let l=s[a],d=this.jsonValueByteLength(l,r-c,e,a);if(d===void 0)continue;let f=(u>0?1:0)+this.jsonStringByteLength(a,Math.max(0,r-c))+1;if(f>r-c||d>r-c-f)return r+1;c+=f+d,u++}return c}finally{e.delete(s)}}logWorkflowEvent(t,r,e){return t===ct.WorkflowEvent.WORKFLOW_STARTED&&(this.loopContextData={},this.retryTracker.reset()),this.terminalEmitted&&t===ct.WorkflowEvent.WORKFLOW_FAILED||this.emit(kt.WorkflowEvent,{event:t,data:this.stampLoopContext(r),error:Kg(e)}),Promise.resolve()}logTaskEvent(t,r,e){return this.terminalEmitted&&(t===ct.TaskEvent.TASK_FAILED||t===ct.TaskEvent.TASK_STOPPED)?Promise.resolve():t===ct.TaskEvent.TASK_STARTED&&this.stopState?.requested?(this.terminalEmitted||(this.stopState.reason!=="peer-disconnect"?this.emitStopped(r.taskId):this.emitPeerDisconnectFailure()),Promise.reject(new Jg)):(this.retryTracker.onTaskEvent(t,r),this.emit(kt.TaskEvent,{event:t,data:this.stampLoopContext(r),error:Kg(e)}),(t===ct.TaskEvent.TASK_COMPLETED||t===ct.TaskEvent.TASK_FAILED)&&delete this.loopContextData[r.taskId],Promise.resolve())}emitStopped(t){this.terminalEmitted=!0,this.emit(kt.WorkflowEvent,{event:ct.WorkflowEvent.WORKFLOW_STOPPED,data:this.stampLoopContext({stoppedAtTaskId:t,reason:(0,ct.t)(ct.ErrorKeys.WORKFLOW_STOPPED_BY_USER)})})}emitPeerDisconnectFailure(){this.terminalEmitted||(this.terminalEmitted=!0,this.emit(kt.WorkflowEvent,{event:ct.WorkflowEvent.WORKFLOW_FAILED,data:this.stampLoopContext({}),error:{name:"PeerDisconnected",message:(0,ct.t)(ct.ErrorKeys.DEBUG_PEER_DISCONNECTED)}}))}logEvent(t,r){return this.terminalEmitted||this.emit(kt.UserLog,{event:t,data:this.stampLoopContext(r)}),Promise.resolve()}logIterationVariables(t,r,e){let n=this.loopContextData[t];return n?n.iterationIndex++:this.loopContextData[t]={iterationIndex:0},Promise.resolve()}debug(t,r){return this.sendLog("debug",t,r)}info(t,r){return this.sendLog("info",t,r)}warn(t,r){return this.sendLog("warn",t,r)}error(t,r,e){return this.sendLog("error",t,r,e)}sendLog(t,r,e,n){return this.terminalEmitted||this.emit(kt.AppInsights,{kind:"log",level:t,message:r,data:e,error:Kg(n)}),Promise.resolve()}shutdown(){return Promise.resolve()}};var qc=Ge(br()),pR=Ge(Ub());function mX(o){if(!o||typeof o!="object")return;let t=o;return typeof t.taskId!="string"||t.taskId.length===0||typeof t.isEnabled!="boolean"?void 0:{id:typeof t.id=="string"&&t.id.length>0?t.id:t.taskId,taskId:t.taskId,isEnabled:t.isEnabled}}function fR(o){if(!o||typeof o!="object"||Array.isArray(o))return{};let t={};for(let[r,e]of Object.entries(o)){if(!Array.isArray(e))continue;let n=[];for(let i of e){let s=mX(i);s&&n.push(s)}t[r]=n}return t}function hR(o,t){let r=new pR.Subject,e={requested:!1},n,i,s=new Promise((v,b)=>{n=v,i=b}),c=!1,u=new t_(o,e),a=null,l=()=>{a!==null&&(clearTimeout(a),a=null)},d=()=>{c||(c=!0,n({breakpoints:{},supportsChunkedEnvelopes:!1}))},f=()=>{e.requested||(e.requested=!0,e.reason="peer-disconnect",u.emitPeerDisconnectFailure(),d(),r.next({command:qc.WorkflowCommandEvent.Resume,payload:void 0}))},h=()=>{t!==void 0&&(l(),a=setTimeout(()=>{a=null,f()},t))},_=(v,b)=>{o.onCommand(v,g=>{l(),b(g)})};return _("Start",v=>{if(c){console.warn("Start command received more than once; ignoring duplicate");return}c=!0;let b=v??{};n({breakpoints:fR(b.Breakpoints),supportsChunkedEnvelopes:b.SupportsChunkedEnvelopes===!0})}),_("Resume",()=>{r.next({command:qc.WorkflowCommandEvent.Resume,payload:void 0})}),_("SetBreakpoints",v=>{r.next({command:qc.WorkflowCommandEvent.SetBreakpoints,payload:fR(v)})}),_("Stop",()=>{e.requested=!0,e.reason="user",d(),r.next({command:qc.WorkflowCommandEvent.Resume,payload:void 0})}),_("Hello",()=>{}),_("PeerShutdown",()=>{f()}),{commandStream$:r,stopState:e,logger:u,awaitStart:v=>v===void 0?s:new Promise((b,g)=>{let w=setTimeout(()=>{i(new Error(`Did not receive Start command within ${v}ms`))},v);s.then(T=>{clearTimeout(w),b(T)},T=>{clearTimeout(w),g(T)})}),onPeerDisconnected:h}}var WX=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,UX="/orchestrator_/signalr/robotdebug",uw=6e4,$X=6e4;function BX(o,t,r,e){try{let n=(0,Oa.addPathComponentsToUrl)(o,[t,r,UX]);return(0,Oa.addQueryParamsToUrl)(n,{sessionId:e})}catch(n){throw new Error(`Failed to build DebugHub URL from baseUrl=${o}: ${(0,Oa.getErrorMessage)(n)}`)}}var HX=(o,t,r)=>{let e=(0,ka.t)(ka.ErrorKeys.DEBUG_START_TIMEOUT,{timeoutMs:r});return o.send({eventName:kt.WorkflowEvent,payload:{event:ka.WorkflowEvent.WORKFLOW_FAILED,data:{},error:{name:"StartTimeout",message:e},seq:0}}),{status:_n.Faulted,outputArguments:null,id:t,info:e}};async function KR(o,t,r){let e=o.debugSessionId;if(typeof e!="string"||!WX.test(e))throw new Error("Debug job is missing a valid runtimeContext.debugSessionId (UUID); StudioWeb must pre-generate it before job start.");let n=BX(o.baseUrl,o.organizationId,o.tenantId,e),{SignalRDebugConnection:i}=await YR().then(()=>zR),s=new i(n,()=>o.accessToken),c=hR(s,$X);t.push(c.logger),s.onPeerDisconnected(c.onPeerDisconnected),await s.start(),s.send({eventName:kt.Ready,payload:{}});let u;try{u=await c.awaitStart(uw)}catch(a){return console.error(`Debug session aborted: Start not received within ${uw}ms`,a),{debugConnection:s,stopState:c.stopState,commandStream$:c.commandStream$,breakpoints:{},earlyResult:HX(s,r,uw)}}return u.supportsChunkedEnvelopes&&s.enableChunking(),{debugConnection:s,stopState:c.stopState,commandStream$:c.commandStream$,breakpoints:u.breakpoints}}import GR from"node:http";function VX(o){for(let t=0;t<o.length;t++){let r=o.charCodeAt(t);if(r<32||r>126||r===34||r===92)return!1}return!0}function JR(o){let t=[],r=[],e=`HEAVYBODY_${crypto.randomUUID()}_`,i=JSON.stringify(o,(_,m)=>{if(typeof m=="string"&&m.length>=1e6&&VX(m)){let v=`${e}${t.length}_`;return t.push(m),r.push(v),v}return m});if(t.length===0||i===void 0)return i;let s=[];for(let _=0;_<r.length;_++){let m=i.indexOf(r[_]);if(m===-1||i.indexOf(r[_],m+1)!==-1)return JSON.stringify(o);s.push({pos:m,token:r[_],value:t[_]})}s.sort((_,m)=>_.pos-m.pos);let c=new TextEncoder,u=[],a=0,l=0;for(let _ of s){let m=c.encode(i.slice(a,_.pos));u.push(m),l+=m.length+_.value.length,a=_.pos+_.token.length}let d=c.encode(i.slice(a));l+=d.length;let f=new Uint8Array(l),h=0;for(let _=0;_<s.length;_++){f.set(u[_],h),h+=u[_].length;let{written:m}=c.encodeInto(s[_].value,f.subarray(h));if(m!==s[_].value.length)throw new Error(`encodeResultBody: short write while splicing heavy string ${_}: wrote ${m} of ${s[_].value.length} bytes at offset ${h}`);h+=m}return f.set(d,h),f}var E_=class{socketPath;serverlessJobId;agent;constructor(t,r){this.socketPath=t,this.serverlessJobId=r,this.agent=new GR.Agent({keepAlive:!0})}post(t,r){let e=t.includes("{serverlessJobId}")?t.replace("{serverlessJobId}",this.serverlessJobId):t,n=JR(r);return new Promise((i,s)=>{let c=GR.request({socketPath:this.socketPath,path:e,method:"POST",agent:this.agent,headers:{"Content-Type":"application/json"}},u=>{u.resume(),u.on("end",()=>{let a=u.statusCode??0;if(a>=200&&a<300){i();return}s(new Error(`Socket communication failed: Socket Server returned error: HTTP ${a}: ${u.statusMessage}`))}),u.on("error",a=>{s(new Error(`Socket communication failed: ${a.message}`))})});c.on("error",u=>{s(new Error(`Socket communication failed: ${u.message}`))}),c.end(n)})}close(){this.agent.destroy()}};var T_=class{socketService;constructor(t,r){this.socketService=new E_(t,r)}async sendResult(t){return await this.socketService.post("/api/jobs/{serverlessJobId}/result",{id:t.id,status:t.status,outputArguments:t.outputArguments,info:t.info}),!0}async sendTelemetryEvent(t){await this.socketService.post("/api/jobs/{serverlessJobId}/telemetry/customevents",t)}async sendTelemetryTrace(t){await this.socketService.post("/api/jobs/{serverlessJobId}/telemetry/traces",t)}async sendLog(t){await this.socketService.post("/api/jobs/{serverlessJobId}/logs",t)}reportPeakMemoryUsage(t){return Promise.resolve()}async close(){this.socketService.close()}};var eu=Ge(dw());var XR=Ge(dw()),Pa="Never called: CoreIPC generates the real IJobInvocationApi methods",Zc=class{SetResult(t,r){throw new Error(Pa)}SendLog(t,r){throw new Error(Pa)}SendTelemetryEvent(t,r){throw new Error(Pa)}SendTelemetryTrace(t,r){throw new Error(Pa)}ReportPeakMemoryUsage(t,r){throw new Error(Pa)}GetUserAccessToken(t){throw new Error(Pa)}};XR.ipc.$service({endpoint:"IJobInvocationApi"})(Zc);import{open as zX,unlink as YX}from"node:fs/promises";var KX=1e6,JX=32*1024,GX=64*1024;function XX(o){for(let t=0;t<o.length;t++){let r=o.charCodeAt(t);if(r<32||r>126||r===34||r===92)return!1}return!0}function*S_(o,t){let r=0;for(;r<t.length;){let e=Math.min(r+JX,t.length),n=t.charCodeAt(e-1);e<t.length&&e-1>r&&n>=55296&&n<=56319&&(e-=1),yield o.encode(t.slice(r,e)),r=e}}function*ZX(o,t,r){let e=0;for(;e<t.length;){let n=Math.min(e+r.length,t.length),{read:i,written:s}=o.encodeInto(t.slice(e,n),r);yield r.subarray(0,s),e+=i}}async function*QX(o){let t=new TextEncoder,r=[],e=[],n=`__uipath_output_splice_${crypto.randomUUID()}__`,s=JSON.stringify(o,(l,d)=>{if(typeof d=="string"&&d.length>=KX&&XX(d)){let f=`${n}${r.length}__`;return r.push(d),e.push(f),f}return d});if(s===void 0){yield t.encode("null");return}if(r.length===0){yield*S_(t,s);return}let c=[];for(let l=0;l<e.length;l++){let d=s.indexOf(e[l]);if(d===-1||s.indexOf(e[l],d+1)!==-1){yield*S_(t,JSON.stringify(o));return}c.push({position:d,token:e[l],text:r[l]})}c.sort((l,d)=>l.position-d.position);let u=new Uint8Array(GX),a=0;for(let l of c)yield*S_(t,s.slice(a,l.position)),yield*ZX(t,l.text,u),a=l.position+l.token.length;yield*S_(t,s.slice(a))}var Qc=class extends Error{maxBytes;constructor(t){super(`The workflow output arguments exceed the maximum allowed size of ${t} bytes. Reduce the size of the returned data, or write large content to a file and return a file reference instead.`),this.maxBytes=t,this.name="OutputArgumentsTooLargeError"}};async function ZR(o,t,r){let e=r!==void 0&&r>0?r:1/0,n=await zX(o,"w"),i=0;try{for await(let s of QX(t)){if(i+=s.length,i>e)throw new Qc(e);await n.write(s)}await n.close()}catch(s){throw await n.close().catch(()=>{}),await YX(o).catch(()=>{}),s}}var O_=class{proxy;ipcEndpoint;_serverlessJobId;outputFile;constructor(t,r,e){this.ipcEndpoint=t,this._serverlessJobId=r,this.outputFile=e,this.proxy=eu.ipc.proxy.withAddress(eu.ipc.namedPipe(t)).withService(Zc)}async sendResult(t){let r=await this.spillOutputArguments(t.outputArguments);return r.rejected!==void 0?await this.proxy.SetResult(this._serverlessJobId,{id:t.id,status:_n.Faulted,outputArguments:null,info:r.rejected}):await this.proxy.SetResult(this._serverlessJobId,{id:t.id,status:t.status,outputArguments:r.filePath===void 0?t.outputArguments:void 0,outputArgumentsFilePath:r.filePath,info:t.info})}async spillOutputArguments(t){if(this.outputFile===void 0)return{};try{return await ZR(this.outputFile.filePath,t,this.outputFile.maxBytes),{filePath:this.outputFile.filePath}}catch(r){return r instanceof Qc?(console.error(r.message),{rejected:r.message}):(console.error("Failed to write the output arguments file; sending them inline:",r),{})}}async sendTelemetryEvent(t){await this.proxy.SendTelemetryEvent(this._serverlessJobId,t)}async sendTelemetryTrace(t){await this.proxy.SendTelemetryTrace(this._serverlessJobId,t)}async sendLog(t){await this.proxy.SendLog(this._serverlessJobId,t)}async reportPeakMemoryUsage(t){await this.proxy.ReportPeakMemoryUsage(this._serverlessJobId,t)}async close(){await eu.ipc.disposeChannel(eu.ipc.namedPipe(this.ipcEndpoint))}};var yn=Ge(br());aw();var eZ=250,tZ=1e3,rZ=500,nZ=.85,oZ=.8,iZ=1e4,rr=o=>`${(o/1048576).toFixed(1)} MB`,k_=(o,t)=>`${(o/1048576).toFixed(1)}/${rr(t)}`,P_=class{timer;peak={rss:0,heapTotal:0,heapUsed:0,external:0};peakSinceLastLine=0;lastLineRss=0;lastLineAt=0;lastReportAt=0;lastReportedRss=0;reportInFlight;aboveCritical=!1;lastCriticalAt=0;reportEnabled;finalized=!1;opts;constructor(t){this.opts=t,this.reportEnabled=t.reportEnabled}start(){let t=process.memoryUsage();this.lastLineAt=Date.now(),this.lastLineRss=t.rss,this.track(t),this.timer=setInterval(()=>this.sample(),eZ),w_(this.timer)}onTaskCompleted(t,r){if(!this.opts.trackActivityMemory||this.finalized)return;let e=process.memoryUsage();this.track(e);let n=e.rss-this.lastLineRss,i=`${n<0?"-":"+"}${rr(Math.abs(n))}`;this.emitLine(yn.LogLevel.INFO,`[memory] after '${t}'${r?" (failed)":""}: rss ${this.formatRss(e.rss)} (${i}, peak during ${rr(this.peakSinceLastLine)}), heap ${k_(e.heapUsed,e.heapTotal)}, external ${rr(e.external)}`,e)}async finalize(){if(!this.finalized){this.finalized=!0,this.timer!==void 0&&clearInterval(this.timer),this.track(process.memoryUsage());try{await this.opts.jobApi.sendLog({Message:`[memory] job peak: rss ${this.formatRss(this.peak.rss)}, heap ${k_(this.peak.heapUsed,this.peak.heapTotal)}, external ${rr(this.peak.external)}`,LogLevel:yn.LogLevel.INFO})}catch(t){console.debug("[memory] failed to send summary log:",t)}await this.reportInFlight,await this.report()}}sample(){if(this.finalized)return;let t=Date.now(),r=process.memoryUsage();this.track(r),this.checkCritical(t,r),this.opts.trackActivityMemory&&t-this.lastLineAt>=rZ&&this.emitLine(yn.LogLevel.INFO,`[memory] rss ${this.formatRss(r.rss)}, peak ${rr(this.peakSinceLastLine)}, heap ${k_(r.heapUsed,r.heapTotal)}, external ${rr(r.external)}`,r),this.reportEnabled&&t-this.lastReportAt>=tZ&&this.peak.rss>this.lastReportedRss&&(this.lastReportAt=t,this.report())}checkCritical(t,r){if(this.opts.memoryLimit<=0)return;let e=r.rss/this.opts.memoryLimit;if(this.aboveCritical&&e<oZ){this.aboveCritical=!1;return}e>=nZ&&(!this.aboveCritical||t-this.lastCriticalAt>=iZ)&&(this.aboveCritical=!0,this.lastCriticalAt=t,this.emitLine(yn.LogLevel.WARN,`[memory] rss ${rr(r.rss)} is ${Math.round(e*100)}% of the ${rr(this.opts.memoryLimit)} limit (peak ${rr(this.peakSinceLastLine)}, heap ${k_(r.heapUsed,r.heapTotal)}, external ${rr(r.external)})`,r))}track(t){t.rss>this.peak.rss&&(this.peak={...t}),t.rss>this.peakSinceLastLine&&(this.peakSinceLastLine=t.rss)}emitLine(t,r,e){this.lastLineAt=Date.now(),this.lastLineRss=e.rss,this.peakSinceLastLine=e.rss,this.opts.jobApi.sendLog({Message:r,LogLevel:t}).catch(n=>console.debug("[memory] failed to send log line:",n))}formatRss(t){return this.opts.memoryLimit<=0?rr(t):`${rr(t)} (${Math.round(t/this.opts.memoryLimit*100)}% of limit)`}async report(){if(!(!this.reportEnabled||this.reportInFlight)){this.reportInFlight=this.send();try{await this.reportInFlight}finally{this.reportInFlight=void 0}}}async send(){let t=this.peak;try{await this.opts.jobApi.reportPeakMemoryUsage({rss:t.rss,details:{HeapTotal:String(t.heapTotal),HeapUsed:String(t.heapUsed),External:String(t.external)}}),this.lastReportedRss=t.rss}catch(r){this.reportEnabled=!1,console.debug("[memory] peak report failed, disabling reports:",r)}}},A_=class{monitor;constructor(t){this.monitor=t}logTaskEvent(t,r,e){return(t===yn.TaskEvent.TASK_COMPLETED||t===yn.TaskEvent.TASK_FAILED||t===yn.TaskEvent.TASK_STOPPED)&&this.monitor.onTaskCompleted(r.displayName||r.taskId,t!==yn.TaskEvent.TASK_COMPLETED),Promise.resolve()}logWorkflowEvent(t,r,e){return Promise.resolve()}logEvent(t,r){return Promise.resolve()}logIterationVariables(t,r,e){return Promise.resolve()}shutdown(){return Promise.resolve()}debug(t,r){return Promise.resolve()}info(t,r){return Promise.resolve()}warn(t,r){return Promise.resolve()}error(t,r,e){return Promise.resolve()}};var aZ="workflow-runtime-input-arguments.json",cZ="workflow-runtime-internal-arguments.json",uZ="workflow-runtime-context.json";async function I_(o){try{let t=await sZ(o,"utf8");return JSON.parse(t)}catch(t){throw console.error(`Error reading file ${o}`,t),new Error(`Error reading file ${o}`)}}var QR=o=>{if(!o||typeof o!="object")return!1;let t=o;return typeof t.ID=="string"&&t.ID.length>0&&typeof t.FullName=="string"&&t.FullName.length>0&&typeof t.MimeType=="string"&&t.MimeType.length>0},lZ=o=>{if(QR(o))return o;if(o&&typeof o=="object"){for(let t of Object.values(o))if(QR(t))return t}},dZ=/^[a-zA-Z0-9][a-zA-Z0-9!#$&^_.+-]*\/[a-zA-Z0-9][a-zA-Z0-9!#$&^_.+-]*$/,fZ=o=>{for(let t of o){let r=t.charCodeAt(0);if(r<32||r===127)return!0}return!1},pZ=o=>{let t=o.indexOf(";"),r=(t===-1?o:o.slice(0,t)).trim();if(!dZ.test(r))return"application/octet-stream";let e=t===-1?"":o.slice(t);return fZ(e)?r:`${r}${e}`},hZ=o=>{let t="";for(let r of o){let e=r.charCodeAt(0);e<32||e===127||r==='"'||r==="\\"||r==="/"||(t+=r)}return t.trim()||"download"},eM=(o,t)=>{let r={status:o.status===Hr.WorkflowJobStatus.Successful?_n.Successful:_n.Faulted,outputArguments:o.data,id:t,info:o.errorMessage||void 0},e=lZ(o.data);return e&&(r.isFileResponse=!0,r.contentType=pZ(e.MimeType),r.contentDisposition=`attachment; filename="${hZ(e.FullName)}"`,r.attachmentId=e.ID),r},_Z=o=>({status:_n.Stopped,outputArguments:null,id:o,info:(0,Hr.t)(Hr.ErrorKeys.WORKFLOW_STOPPED_BY_USER)}),mZ=o=>({status:_n.Faulted,outputArguments:null,id:o,info:(0,Hr.t)(Hr.ErrorKeys.DEBUG_PEER_DISCONNECTED)});function tM(o){return o.isStudioDebugContext===!0&&typeof o.debugSessionId=="string"&&o.debugSessionId.length>0}function vZ(o,t){return{organizationId:o.organizationId,tenantId:o.tenantId,accessToken:o.accessToken,baseUrl:o.baseUrl,source:o.source||"ApiWorkflows",userId:o.userKey,subscriptionType:o.subscriptionPlanCode,processConfig:{processKey:o.processKey,folderKey:o.folderKey,jobKey:o.jobKey,robotKey:o.robotKey,isStudioDebugContext:o.isStudioDebugContext},...tM(o)&&{debugConfig:{isRunningInDesigner:!1,runInDebugMode:!0,enableVerboseDataLogging:!0}},telemetryConfig:{traceId:o.traceId,parentSpanId:o.spanId||""},tracingConfig:{traceId:o.platformTraceId,parentSpanId:o.platformParentSpanId||"",tracingToken:o.traceStoreAccessToken,enableUserLogs:!0,enableIoLogs:!0},resourceOverwrites:t.resourceOverwrites||{},automationEdgeFqdn:o.automationEdgeFqdn,licensingContext:t.licensingContext||void 0}}function yZ(o){return o.jobApiEndpoint?{transport:o.jobApiTransport,endpoint:o.jobApiEndpoint}:o.jobApiSocketPath?{transport:"http",endpoint:o.jobApiSocketPath}:{transport:o.jobApiTransport,endpoint:void 0}}function bZ(o){if(o.useOutputFile===!0){if(typeof o.outputArgumentsFilePath!="string"||o.outputArgumentsFilePath.length===0){console.error("useOutputFile is set but no outputArgumentsFilePath was granted; sending the output inline.");return}return{filePath:o.outputArgumentsFilePath,maxBytes:o.maxOutputFileSize}}}function gZ(o,t,r,e){if(o==="ipc"&&t)return new O_(t,r,e);if(o==="http"&&t)return new T_(t,r);console.error(`No valid transport configured (transport=${o}, endpoint=${t}). Telemetry will not be sent.`)}function wZ(o,t,r){if(t?.requested===!0)return t.reason==="peer-disconnect"?mZ(r):_Z(r);let e=(0,x_.getErrorMessage)(o);return(0,Hr.isWorkflowError)(o)&&o.detail&&(e+=`. ${o.detail}`),eM({status:Hr.WorkflowJobStatus.Faulted,data:null,errorMessage:e},r)}var EZ=async(o,t,r)=>{if(t&&o){try{await t.sendResult(o),console.log("Job result sent to host")}catch(e){console.error("Failed to send job result to host:",e)}try{await t.close()}catch(e){console.debug("Transport cleanup error:",e)}}if(r)try{await r.stop()}catch(e){console.error("Failed to stop debug SignalR connection:",e)}};async function TZ(){console.log(qx());let o=await I_(fw(process.cwd(),uZ)),t=o.id,r,e,n,i,s={id:t,status:_n.Faulted,outputArguments:null,info:"workflow runtime exited before producing a result"};try{let c=await I_(fw(process.cwd(),aZ)),u=await I_(fw(process.cwd(),cZ)),a=process.argv[2];console.log("Workflow file path:",a);let l=(0,x_.redactObjectPaths)(o,["accessToken","traceStoreAccessToken"]);console.log("workflowRuntimeContext:",JSON.stringify(l)),console.log("bindingsAndResourceOverrides:",JSON.stringify(u));let d=await I_(a),f=vZ(o,u),{transport:h,endpoint:_}=yZ(o);r=gZ(h,_,t,bZ(o));let m=[];r&&(o.supportsPeakMemoryReport===!0||o.trackActivityMemory===!0)&&(e=new P_({jobApi:r,reportEnabled:o.supportsPeakMemoryReport===!0,memoryLimit:o.memoryLimit??0,trackActivityMemory:o.trackActivityMemory===!0}),e.start(),o.trackActivityMemory===!0&&m.push(new A_(e)));let v;if(tM(o)){let g=await KR(o,m,t);if(n=g.debugConnection,i=g.stopState,v=g.commandStream$,g.earlyResult)return s=g.earlyResult,s;f.debugConfig.breakpoints=g.breakpoints}let b=await lR(d,f,c,{releasePackage:o.packageId?{id:o.packageId,version:o.packageVersion||"0.0.1"}:void 0,jobApi:r,licensingContext:u.licensingContext||void 0,additionalLoggers:m,commandStream$:v});console.log("Workflow execution completed."),s=eM(b,t)}catch(c){console.error("Error executing workflow:",c),s=wZ(c,i,t)}finally{await e?.finalize(),await EZ(s,r,n)}return s}import.meta.main&&TZ().then(()=>{process.exit(0)}).catch(o=>{console.error("Unhandled error:",o),process.exit(1)});export{mZ as buildPeerDisconnectExecResult,_Z as buildStoppedExecResult,vZ as buildWorkflowConfig,EZ as finalizeJobExecution,tM as isDebugHubSession,TZ as main,wZ as mapErrorToResult,bZ as resolveOutputFileSpill};
|
|
1435
|
+
`}async testEvaluatePlainJsExpression(t){return(await this.evaluateSanitizedExpressionsInternal(new Set([t]))).get(t)}};var gr=Ge(br()),Vg=Ge(Oe());var Bh=Ge(Oe()),Hh=Ge(br()),Vi=class{static sanitizeData(t,r){if(!t)return{sanitizedData:t,sanitizedError:this.sanitizeError(r)};let e;try{e=(0,Bh.removeObjectPaths)(t,["context","input","output","variables","properties"])}catch(i){console.error("Error sanitizing data:",i),e=t}let n=this.sanitizeError(r);return{sanitizedData:e,sanitizedError:n}}static sanitizeError(t){if(t)try{if((0,Hh.isWorkflowError)(t)){let r=t.getData(),e=(0,Bh.redactObjectPaths)(r,["cause.headers","cause.request"]);return new Hh.WorkflowError(t.title,t.status,t.type,t.instance,t.detail,e,t.originatingTaskName)}else{let r=new Error(t.message);r.stack=t.stack;for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r}}catch(r){return console.error("Error sanitizing error:",r),t}}};var $x=Ge(Lv()),Bx=Ge(Oe()),Hx=Ge(Oe()),zG="X-UiPath-Licensing-Context",YG="/lease_/api/usageEvent",KG="Is.Activities",JG=1,GG="Vertical",XG=!1;function ZG(o){return $x.default.utc(o).format("YYYY-MM-DDTHH:mm:ss.SSS")+"0000Z"}function qg(o){if(o)try{let t=o.split(";");for(let r of t){let e=r.indexOf("=");if(e===-1)continue;let n=r.substring(0,e).trim(),i=r.substring(e+1).trim();if(n==="transactionType"&&i)return i}return}catch(t){console.error("LicensingService: Failed to parse licensing context:",t);return}}var Vh=class{licensingContext;organizationId;tenantId;accessToken;baseUrl;source;constructor(t,r){this.licensingContext=r||"",this.organizationId=t.organizationId,this.tenantId=t.tenantId,this.accessToken=t.tracingConfig?.tracingToken||"",this.baseUrl=t.baseUrl,this.source=t.source}async reportHttpTaskConsumption(t){if(!XG||!this.licensingContext||qg(this.licensingContext)!==GG)return;if(!this.accessToken){console.error("LicensingService: No access token available for licensing consumption reporting");return}let r=this.buildLeaseRequest(t),e=(0,Bx.addPathComponentsToUrl)(this.baseUrl,[this.organizationId,YG,this.organizationId]);try{let n=await fetch(e,{method:"PUT",body:JSON.stringify(r),headers:{Authorization:`Bearer ${this.accessToken}`,"Content-Type":"application/json",[zG]:this.licensingContext},signal:AbortSignal.timeout(5e3)}),i=await n.text();if(n.ok)console.log("LicensingService: Consumption reported successfully.");else{let s=`Licensing API failed: ${n.status} ${n.statusText} - ${i}`;throw console.error(`LicensingService: ${s}`),new Error(s)}}catch(n){let s=n instanceof DOMException&&n.name==="TimeoutError"?"LicensingService: Request timed out after 5s":`LicensingService: Failed to report consumption: ${(0,Hx.getErrorMessage)(n)}`;throw console.error(s),new Error(s)}}buildLeaseRequest(t){let r=t.displayName||"N/A",e=[{k:"count",v:"1"},{k:"activityType",v:"HTTP"},{k:"activityDisplayName",v:r.substring(0,255)},{k:"source",v:this.source}];return{nonce:t.nonce,referenceId:t.referenceId,usage:1,consumedAt:ZG(new Date),organizationId:this.organizationId,context:{tenantId:this.tenantId,operationCode:KG},rawData:{formula:JG,Params:e}}}};var sR=Ge(br()),aR=Ge(Oe());async function Vx(o,t,r,e,n,i="v2",s=""){let c=i==="v3"?"api/Traces/v3/spans":"api/Traces/spans",u=s.replace(/^\/+|\/+$/g,""),a=u?`${u}/${c}`:c,l=new URL(`${o.replace(/\/$/,"")}/${a}`);return l.searchParams.set("traceId",r),l.searchParams.set("source",e),fetch(l.toString(),{method:"POST",headers:{"Content-Type":"application/json",...n},body:JSON.stringify(t)})}function QG(o){let t=globalThis.crypto;if(t?.getRandomValues===void 0)throw new Error("Web Crypto API is unavailable; @uipath/tracing requires globalThis.crypto (browser, Node >= 20, or Deno).");let r=new Uint8Array(o);return t.getRandomValues(r),Array.from(r,e=>e.toString(16).padStart(2,"0")).join("")}var zx={generate(){return QG(8)},fromUuid(o){return o.replace(/-/g,"").slice(16).toLowerCase()},toUuid(o){if(o.length!==16)throw new Error(`Invalid OTEL span ID length: ${o.length}`);let t=o.padStart(32,"0");return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16,20)}-${t.slice(20)}`},isValid(o){return o.length===16&&/^[0-9a-fA-F]{16}$/.test(o)}};var zh;(function(o){o[o.Unset=0]="Unset",o[o.Ok=1]="Ok",o[o.Error=2]="Error",o[o.Running=3]="Running",o[o.Restricted=4]="Restricted",o[o.Cancelled=5]="Cancelled"})(zh||(zh={}));var Wr;(function(o){o[o.Testing=0]="Testing",o[o.Agents=1]="Agents",o[o.ProcessOrchestration=2]="ProcessOrchestration",o[o.ApiWorkflows=3]="ApiWorkflows",o[o.Robots=4]="Robots",o[o.ConversationalAgentsService=5]="ConversationalAgentsService",o[o.IntegrationServiceTrigger=6]="IntegrationServiceTrigger",o[o.Playground=7]="Playground",o[o.Governance=8]="Governance",o[o.IXPUnstructuredAndComplexDocuments=9]="IXPUnstructuredAndComplexDocuments",o[o.CodedAgents=10]="CodedAgents",o[o.IXPCommunicationsMining=11]="IXPCommunicationsMining",o[o.EnterpriseContextService=12]="EnterpriseContextService",o[o.MCP=13]="MCP",o[o.A2A=14]="A2A",o[o.Serverless=15]="Serverless",o[o.DocumentUnderstanding=16]="DocumentUnderstanding"})(Wr||(Wr={}));var Dc;(function(o){o[o.Verbose=0]="Verbose",o[o.Trace=1]="Trace",o[o.Information=2]="Information",o[o.Warning=3]="Warning",o[o.Error=4]="Error",o[o.Critical=5]="Critical",o[o.Off=6]="Off"})(Dc||(Dc={}));var Yh;(function(o){o[o.Debug=0]="Debug",o[o.Runtime=1]="Runtime"})(Yh||(Yh={}));var ba;(function(o){o[o.Orchestrator=0]="Orchestrator",o[o.LLMOps=1]="LLMOps",o[o.IDP=2]="IDP"})(ba||(ba={}));var Lc;(function(o){o[o.None=0]="None",o[o.In=1]="In",o[o.Out=2]="Out"})(Lc||(Lc={}));var Yx;(function(o){o[o.Pending=0]="Pending",o[o.Approved=1]="Approved",o[o.Dismissed=2]="Dismissed"})(Yx||(Yx={}));var Kx;(function(o){o[o.Enabled=0]="Enabled",o[o.Disabled=1]="Disabled"})(Kx||(Kx={}));var Jx;(function(o){o[o.Episodic=0]="Episodic",o[o.Escalation=1]="Escalation"})(Jx||(Jx={}));var Gx;(function(o){o.Hybrid="Hybrid",o.Semantic="Semantic"})(Gx||(Gx={}));var Xx;(function(o){o[o.Allow=0]="Allow",o[o.PartialBlock=1]="PartialBlock",o[o.Block=2]="Block"})(Xx||(Xx={}));function Ug(o){return{id:o.id??zx.generate(),traceId:o.traceId,parentId:o.parentId,name:o.name,spanType:o.spanType,attributes:JSON.stringify(Wg(o.attributes)),status:zh[o.status],organizationId:o.organizationId,tenantId:o.tenantId,folderKey:o.folderKey,source:Wr[o.source],startTime:Fg(o.startTime),endTime:o.endTime!==void 0?Fg(o.endTime):void 0,updatedAt:Fg(o.updatedAt),verbosityLevel:Dc[o.verbosityLevel??Dc.Information],executionType:o.executionType!==void 0?Yh[o.executionType]:void 0,agentVersion:o.agentVersion,processKey:o.processKey,jobKey:o.jobKey,referenceId:o.agentId,attachments:o.attachments?.map(r=>({provider:ba[r.provider],id:r.id,fileName:r.fileName,mimeType:r.mimeType,direction:Lc[r.direction??Lc.None]})),context:eX(o.baggage)}}function eX(o){if(o===void 0)return;let t=o.toReferenceHierarchy();if(t.length!==0)return{referenceHierarchy:t.map(r=>({serviceType:r.serviceType,referenceId:r.referenceId,version:r.version}))}}function Fg(o){return typeof o=="string"?o:o.toISOString()}function Wg(o){if(Array.isArray(o))return o.map(Wg);if(o!==null&&typeof o=="object"&&!(o instanceof Date)){let t={};for(let[r,e]of Object.entries(o))e!=null&&(t[r]=Wg(e));return t}return o}var $g="1.0.0";var Qx="x-uipath-tracebaggage",ga={Type:"ref.type",Id:"ref.id",Version:"ref.v"},Zx=class o{static Empty=new o([]);_entries;constructor(t){this._entries=t}get entries(){return this._entries}get length(){return this._entries.length}add(t){let r=new Map,e=t instanceof Map?t.entries():Object.entries(t);for(let[i,s]of e){if(typeof i!="string"||i.trim()==="")throw new Error("Property keys must be non-empty strings.");if(typeof s!="string")throw new Error(`Property '${i}' must have a string value.`);r.set(i,s)}if(r.size===0)throw new Error("Properties must contain at least one key.");let n={properties:r};return new o([...this._entries,n])}addReference(t,r,e){if(typeof t!="string"||t.trim()==="")throw new Error("serviceType must be a non-empty string.");if(typeof r!="string"||r.trim()==="")throw new Error("referenceId must be a non-empty string.");let n={[ga.Type]:t,[ga.Id]:r};return e!=null&&e.trim()!==""&&(n[ga.Version]=e),this.add(n)}toReferenceHierarchy(){let t=[];for(let r of this._entries){let e=tX(r);e!==void 0&&t.push(e)}return t}toHeaderValue(){if(this._entries.length===0)return"";let t=[];for(let r of this._entries){let n=Array.from(r.properties.keys()).sort().map(i=>`${i}=${r.properties.get(i)}`).join(";");t.push(n)}return t.join(",")}static fromHeaderValue(t){if(t==null)return o.Empty;let r=t.trim();if(r==="")return o.Empty;let e=[];for(let n of r.split(",")){let i=n.trim();if(i==="")continue;let s=new Map;for(let c of i.split(";")){let u=c.trim();if(u==="")continue;let a=u.indexOf("=");if(a<=0||a>=u.length-1)continue;let l=u.slice(0,a).trim(),d=u.slice(a+1).trim();l===""||d===""||s.set(l,d)}s.size>0&&e.push({properties:s})}return e.length===0?o.Empty:new o(e)}};function tX(o){if(o==null)throw new Error("entry is required");let t=o.properties.get(ga.Type),r=o.properties.get(ga.Id);if(!t||!r||!nX(r))return;let e=o.properties.get(ga.Version);return{serviceType:t,referenceId:r,version:e}}var rX=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function nX(o){return rX.test(o)}var _n=class extends Error{statusCode;constructor(t,r){super(t),this.statusCode=r,this.name="LLMOpsClientError"}},Kh=class{config;constructor(t){this.config=t}resolveUrl(t){let r=this.config.organizationId;if(!r)return t;let e=r;return this.config.tenantId&&(e+=`/${this.config.tenantId}`),e+="/llmopstenant_",`${e}/${t}`}async executeCore(t,r,e,n){let s=`${this.config.baseUrl.replace(/\/$/,"")}/${r}`,{extraHeaders:c}=n??{},u;for(let a=0;a<3;a++){try{let l=await this.config.getToken(),d={method:t,headers:{Authorization:`Bearer ${l}`,"X-SDK-Version":$g,...e!==void 0?{"Content-Type":"application/json"}:{},...c},...e!==void 0?{body:JSON.stringify(e)}:{}},f=await fetch(s,d);if(f.ok)return f;if(f.status>=400&&f.status<500)throw new _n(`HTTP ${f.status}`,f.status);u=new _n(`HTTP ${f.status} (attempt ${a+1})`,f.status)}catch(l){if(l instanceof _n&&l.statusCode!==void 0&&l.statusCode<500)throw l;u=l}a<2&&await rR(1e3*Math.pow(2,a))}throw u instanceof Error?u:new _n("Request failed after 3 attempts")}async executeJson(t,r,e){return(await this.executeCore(t,r,e)).json()}async executeVoid(t,r,e){await this.executeCore(t,r,e)}async publishSpans(t,r,e){let n=e??r[0]?.source??Wr.Agents,i=r[0],s=sX(i?.organizationId,i?.tenantId),c=r.map(Ug),u,a;try{a=await Promise.resolve().then(()=>(tR(),eR))}catch{a=void 0}if(a!==void 0){let d=a.BaggageContextAccessor.get();d!==void 0&&d.length>0&&(u=d.toHeaderValue())}let l;for(let d=0;d<3;d++){try{let h={Authorization:`Bearer ${await this.config.getToken()}`,"X-SDK-Version":$g};u!==void 0&&(h[Qx]=u);let _=await Vx(this.config.baseUrl,c,t,oR(n),h,this.config.apiVersion??"v2",s);if(_.ok)return;if(_.status>=400&&_.status<500)throw new _n(`HTTP ${_.status}`,_.status);l=new _n(`HTTP ${_.status} (attempt ${d+1})`,_.status)}catch(f){if(f instanceof _n&&f.statusCode!==void 0&&f.statusCode<500)throw f;l=f}d<2&&await rR(1e3*Math.pow(2,d))}throw l instanceof Error?l:new _n("Failed to publish spans after 3 attempts")}async publishSpansBatch(t,r){let e=t.map(Ug),n=(this.config.apiVersion??"v2")==="v3"?"api/Traces/v3/spans/batch":"api/Traces/spans/batch",i=this.resolveUrl(`${n}?source=${encodeURIComponent(oR(r))}`);return this.executeJson("POST",i,e)}async getSpans(t,r=1e3,e=!1){let n=this.resolveUrl(`api/Traces/v2/spans?traceId=${encodeURIComponent(t)}&pageSize=${r}&isHistorical=${e}`),i=await this.executeCore("GET",n),s=await i.json(),c=i.headers.get("X-Continuation-Token")??i.headers.get("x-continuation-token")??void 0;return{spans:s,continuationToken:c}}async getOtelSpans(t,r=1e3,e=!1){if((this.config.apiVersion??"v2")!=="v3"){let n=this.resolveUrl(`api/Traces/v2/spans/otel?traceId=${encodeURIComponent(t)}&pageSize=${r}&isHistorical=${e}`),i=await this.executeCore("GET",n),s=await i.json(),c=i.headers.get("X-Continuation-Token")??i.headers.get("x-continuation-token")??void 0;return{spans:s?.spans??[],continuationToken:c}}return this.getOtelSpansV3(t,e)}async getOtelSpansV3(t,r){let e=[],n="";for(;;){let i=this.resolveUrl(`api/Traces/v3/spans?traceId=${encodeURIComponent(t)}&pageSize=500&isHistorical=${r}`),s=n?{"X-UiPath-Trace-Tokens":n}:void 0,c=await this.executeCore("GET",i,void 0,{extraHeaders:s}),u=await c.json(),a=u.Spans??u.spans??[];if(e.push(...a),n=c.headers.get("X-UiPath-Trace-Tokens")??"",!n)break}return{spans:e}}async getSpansByIds(t,r){let e=this.resolveUrl(`api/Traces/v2/spans/byIds?traceId=${encodeURIComponent(t)}`);return this.executeJson("POST",e,r)}async getOtelSpansByIds(t,r){if((this.config.apiVersion??"v2")!=="v3"){let e=this.resolveUrl(`api/Traces/v2/spans/otel/byIds?traceId=${encodeURIComponent(t)}`);return this.executeJson("POST",e,r)}return this.getOtelSpansByIdsV3(t,r)}async getOtelSpansByIdsV3(t,r){let e=this.resolveUrl(`api/Traces/v3/spans/byIds?traceId=${encodeURIComponent(t)}`),n=await this.executeJson("POST",e,r);return Array.isArray(n)?n:n.Spans??n.spans??[]}async getSpansByReferenceId(t,r={}){let e=new URLSearchParams;r.serviceType!==void 0&&e.set("serviceType",r.serviceType),r.version!==void 0&&e.set("version",r.version),r.pageNumber!==void 0&&e.set("pageNumber",String(r.pageNumber)),r.pageSize!==void 0&&e.set("pageSize",String(r.pageSize)),r.startTime!==void 0&&e.set("startTime",r.startTime instanceof Date?r.startTime.toISOString():r.startTime),r.endTime!==void 0&&e.set("endTime",r.endTime instanceof Date?r.endTime.toISOString():r.endTime),r.traceId!==void 0&&e.set("traceId",r.traceId);let n=e.toString(),i=this.resolveUrl(`api/Traces/v3/spans/reference/${encodeURIComponent(t)}${n?`?${n}`:""}`);return this.executeJson("GET",i)}createFeedback(t){return this.executeJson("POST",this.resolveUrl("api/Feedback"),t)}editFeedback(t,r){return this.executeJson("POST",this.resolveUrl(`api/Feedback/${t}`),r)}deleteFeedback(t){return this.executeVoid("DELETE",this.resolveUrl(`api/Feedback/${t}`))}getFeedback(t){return this.executeJson("GET",this.resolveUrl(`api/Feedback/${t}`))}listFeedback(t){let r=iX(t);return this.executeJson("GET",this.resolveUrl(`api/Feedback${r}`))}getFeedbackMemoryLinks(t){return this.executeJson("GET",this.resolveUrl(`api/Feedback/memoryLinks?traceId=${encodeURIComponent(t)}`))}searchFeedbackByTraceIds(t){return this.executeJson("POST",this.resolveUrl("api/Feedback/search"),t)}createFeedbackCategory(t){return this.executeJson("POST",this.resolveUrl("api/Feedback/category"),t)}listFeedbackCategories(t=0,r=100,e,n){let i=`?skip=${t}&take=${r}`;return e!==void 0&&(i+=`&isPositive=${e}`),n!==void 0&&(i+=`&isNegative=${n}`),this.executeJson("GET",this.resolveUrl(`api/Feedback/category${i}`))}deleteFeedbackCategory(t,r=!1){return this.executeVoid("DELETE",this.resolveUrl(`api/Feedback/category/${t}?forceDelete=${r}`))}createMemoryItem(t,r){return this.executeJson("POST",this.resolveUrl(`api/Memory/${t}/items`),r)}listMemoryItems(t,r=0,e=100,n=!1){let i=`?skip=${r}&take=${e}`;return n&&(i+="&expand=span"),this.executeJson("GET",this.resolveUrl(`api/Memory/${t}/items${i}`))}getMemoryItem(t,r,e=!1){let n=e?"?expand=span":"";return this.executeJson("GET",this.resolveUrl(`api/Memory/${t}/items/${r}${n}`))}updateMemoryItem(t,r,e){return this.executeJson("PATCH",this.resolveUrl(`api/Memory/${t}/items/${r}`),e)}deleteMemoryItem(t,r){return this.executeVoid("DELETE",this.resolveUrl(`api/Memory/${t}/items/${r}`))}bulkDeleteMemoryItems(t,r){return this.executeVoid("DELETE",this.resolveUrl(`api/Memory/${t}/items`),{memoryItemIds:r})}deleteMemorySpace(t){return this.executeVoid("DELETE",this.resolveUrl(`api/Memory/${t}`))}searchMemory(t,r){return this.executeJson("POST",this.resolveUrl(`api/Memory/${t}/search`),r)}};function iX(o){if(!o)return"";let t=[];return t.push(`skip=${o.skip??0}`),t.push(`take=${o.take??100}`),o.agentId&&t.push(`agentId=${encodeURIComponent(o.agentId)}`),o.agentVersion&&t.push(`agentVersion=${encodeURIComponent(o.agentVersion)}`),o.status!==void 0&&t.push(`status=${o.status}`),o.traceId&&t.push(`traceId=${encodeURIComponent(o.traceId)}`),o.spanId&&t.push(`spanId=${encodeURIComponent(o.spanId)}`),`?${t.join("&")}`}function rR(o){return new Promise(t=>setTimeout(t,o))}var nR="00000000-0000-0000-0000-000000000000";function sX(o,t){if(!o||o===nR)return"";let r=o;return t&&t!==nR&&(r+=`/${t}`),`${r}/llmopstenant_`}function oR(o){return Wr[o]??String(o)}var Hg="00000000-0000-0000-0000-000000000000";function iR(o){let{organizationId:t,tenantId:r,folderKey:e,processKey:n,jobKey:i}=o.jobContext;if(!e||e.toLowerCase()===Hg)throw new Error(`toSdkSpan: missing folderKey. TraceId: ${o.traceId}, JobKey: ${i}`);return{id:o.id,traceId:o.traceId,parentId:o.parentId||void 0,name:o.name,spanType:o.spanType,attributes:o.attributes??{},status:o.status,source:Wr.ApiWorkflows,startTime:o.startTime,endTime:o.endTime,updatedAt:o.updatedAt,organizationId:t,tenantId:r,folderKey:e,processKey:n,jobKey:i,attachments:o.attachments?.map(s=>({provider:ba.LLMOps,id:s.id,fileName:s.fileName,mimeType:s.mimeType}))}}var Jh=class{traceId;traceViewDataFormatter;injectedPublisher;lazyPublisher;workflowConfig;constructor(t,r,e){this.workflowConfig=t,this.traceViewDataFormatter=new sR.TraceViewDataFormatter(t,r),this.traceId=this.traceViewDataFormatter.traceId,this.injectedPublisher=e}getPublisher(){return this.injectedPublisher?this.injectedPublisher:(this.lazyPublisher||(this.lazyPublisher=new Kh({baseUrl:this.workflowConfig.baseUrl,getToken:()=>Promise.resolve(this.workflowConfig.tracingConfig?.tracingToken??""),apiVersion:"v3"})),this.lazyPublisher)}async sendSpans(t){if(!this.workflowConfig.tracingConfig?.tracingToken||t.length===0){console.log(`TraceViewLogger: ${this.workflowConfig.tracingConfig?.tracingToken?"No spans to flush":"No trace view token"}`);return}let r=this.workflowConfig.processConfig?.folderKey;if(!r||r.toLowerCase()===Hg){console.error(`TraceViewLogger: skipping v3 ingest \u2014 missing/empty folderKey. JobKey: ${this.workflowConfig.processConfig?.jobKey}`);return}console.log(`TraceViewLogger: Flushing ${t.length} spans to trace view...`);try{let e=t.map(iR);await this.getPublisher().publishSpans(this.traceId,e,Wr.ApiWorkflows),console.log(`TraceViewLogger: Updated ${e.length} spans to trace view. TraceId: ${this.traceId}, JobKey: ${this.workflowConfig.processConfig?.jobKey}`)}catch(e){let n=`Error: TraceViewLogger: Failed to send spans to trace view, TraceId: ${this.traceId}, JobKey: ${this.workflowConfig.processConfig?.jobKey}: ${(0,aR.getErrorMessage)(e)}`;throw console.error(n),new Error(n)}}formatWorkflowLog(t,r,e){return this.traceViewDataFormatter.formatWorkflowLog(t,r,e)}formatTaskLog(t,r,e){return this.traceViewDataFormatter.formatTaskLog(t,r,e)}formatUserLog(t,r,e){return this.traceViewDataFormatter.formatUserLog(t,r,e)}};var Bo={Information:"Information",Warning:"Warning",Error:"Error"};var Bn={TELEMETRY_EVENT:"telemetry_event",TELEMETRY_TRACE:"telemetry_trace",USER_LOG:"user_log"},Ho=class{static createEventDto(t,r,e,n,i,s){try{let c=r==="task"?t.formatTaskLog(e,n,s):t.formatWorkflowLog(e,n,s);return c?{name:c.name,eventTime:new Date().toISOString(),jobKey:i,properties:c.properties||{}}:(console.error(`Error: Failed to format ${r} log data:`,{event:e,data:JSON.stringify(n),error:s}),null)}catch(c){return console.error(`Failed to create ${r} event DTO:`,{error:c,event:e,data:JSON.stringify(n)}),null}}static createTraceDto(t,r,e,n,i){try{let s={};return n&&Object.keys(n).length>0?Object.entries(n).forEach(([c,u])=>{s[c]=typeof u=="object"?JSON.stringify(u):String(u)}):i&&(t=t+" "+i.message,i.message&&(s.message=i.message),i.name&&(s.name=i.name),i.stack&&(s.stack=i.stack),Object.entries(i).forEach(([c,u])=>{u!=null&&(s[c]=typeof u=="object"?JSON.stringify(u):String(u))})),{message:t,severityLevel:r,eventTime:new Date().toISOString(),jobKey:e,properties:s}}catch(s){return console.error("Failed to create trace DTO:",{error:s,message:t,severity:r,data:JSON.stringify(n)}),null}}static createJobLogDto(t){try{return{Message:String(t.message),LogLevel:t.logLevel}}catch(r){return console.error("Failed to create job log DTO:",{error:r,data:JSON.stringify(t)}),null}}};var Gh=class{logLevel;workflowId;workflowName;constructor(t,r,e){this.logLevel=t,this.workflowId=r,this.workflowName=e}async logWorkflowEvent(t,r,e){await this.logEventToConsole(t,r,e)}async logTaskEvent(t,r,e){await this.logEventToConsole(t,r,e)}logIterationVariables(){return Promise.resolve()}async logEvent(t,r){return Promise.resolve()}async logEventToConsole(t,r,e){let n={workflowName:this.workflowName,...r&&{data:r}};if(e)return this.error(`Event: ${t}`,n,e),Promise.resolve();await this.info(`Event: ${t}`,n)}async debug(t,r){this.shouldLog("debug")&&await this.log("debug",t,r)}async info(t,r){this.shouldLog("info")&&await this.log("info",t,r)}async warn(t,r){this.shouldLog("warn")&&await this.log("warn",t,r)}shutdown(){return Promise.resolve()}async error(t,r,e){await this.log("error",t,r,e)}shouldLog(t){let r=["debug","info","warn","error"];return r.indexOf(t)>=r.indexOf(this.logLevel)}log(t,r,e,n){try{let i={message:r,workflowId:this.workflowId,workflowName:this.workflowName,level:t,logTime:new Date().toISOString(),...n&&{error:{name:n.name,message:n.title||n.message,type:n.type,stack:n.detail||n.stack,status:n.status}},...e&&{data:e}};return console[t](JSON.stringify(i)),Promise.resolve()}catch(i){return console.error("Failed to log message:",r,i),Promise.resolve()}}};var Xh=class{loggers;rawDataLoggers;ORPHANED_USER_LOGS_TASK_ID="unknown";jobApi;telemetryDataFormatter;traceViewService;licensingService;licensingContext;OrchestratorJobId;totalSocketDurationMs=0;totalTraceViewDurationMs=0;spans=[];userLogDataWithTaskIds=new Map;workflowConfig;SPAN_BATCH_SIZE=5;SPAN_BATCH_INTERVAL_MS=3e3;MAX_SPAN_DATA_SIZE_BYTES=1024*1024;lastSpanFlushTime=Date.now();lastSpanFlushTaskCount=0;taskCount=0;constructor(t,r,e,n,i,s,c){this.loggers=[new Gh(t.debugConfig?.isRunningInDesigner?"debug":"info",r,r)],this.rawDataLoggers=c??[],this.jobApi=e,this.workflowConfig=t,this.traceViewService=new Jh(t,r),this.licensingService=new Vh(t,s),this.licensingContext=s,this.telemetryDataFormatter=new gr.TelemetryDataFormatter(t.organizationId,t.tenantId,t.telemetryConfig?.traceId,t.telemetryConfig?.parentSpanId,t.userId,t.subscriptionType,t.source,n,i,t.processConfig?.isStudioDebugContext,t.processConfig?.folderKey,t.processConfig?.jobKey),this.OrchestratorJobId=t.processConfig?.jobKey}async logWorkflowEvent(t,r,e){let{sanitizedData:n,sanitizedError:i}=Vi.sanitizeData(r,e),s=this.loggers.map(l=>l.logWorkflowEvent(t,n,i)),c=this.rawDataLoggers.map(l=>l.logWorkflowEvent(t,r,e));if(await Promise.all([...s,...c]),t===gr.WorkflowEvent.WORKFLOW_STARTED)return Promise.resolve();let u=this.traceViewService.formatWorkflowLog(t,r,e);this.spans.push(u),await this.flushSpansIfNeeded(),this.addUserLogsToTraceViewSpans(this.ORPHANED_USER_LOGS_TASK_ID,u.id),await this.sendTraceViewData(this.spans),this.userLogDataWithTaskIds.clear(),this.updateWorkflowExecutionTimes(n);let a=Ho.createEventDto(this.telemetryDataFormatter,"workflow",t,n,this.OrchestratorJobId,i);await this.sendTelemetryData(a,Bn.TELEMETRY_EVENT)}async logTaskEvent(t,r,e){let{sanitizedData:n,sanitizedError:i}=Vi.sanitizeData(r,e),s=this.loggers.map(v=>v.logTaskEvent(t,n,i)),c=this.rawDataLoggers.map(v=>v.logTaskEvent(t,r,e));if(await Promise.all([...s,...c]),this.taskCount++,t===gr.TaskEvent.TASK_STARTED||r.taskType===gr.TaskType.DO)return Promise.resolve();let u=Ho.createEventDto(this.telemetryDataFormatter,"task",t,n,this.OrchestratorJobId,i),a=t===gr.TaskEvent.TASK_COMPLETED&&r.taskType===gr.TaskType.HTTP&&r.HttpCallMode==="direct"&&!r.isUiPathInternalServiceCall&&!this.workflowConfig.processConfig?.isStudioDebugContext,l=(0,Vg.getNewGuid)(),d=(0,Vg.getNewGuid)();if(u?.properties&&this.licensingContext&&a){u.properties.LicensingContext=this.licensingContext;let v=qg(this.licensingContext);v&&(u.properties.LicensingTransactionType=v),l&&(u.properties.LicensingNonce=l),d&&(u.properties.LicensingReferenceId=d)}let f=this.sendTelemetryData(u,Bn.TELEMETRY_EVENT),h=a?{...r,licenseRefId:d}:r,_=this.traceViewService.formatTaskLog(t,h,e);this.spans.push(_),await this.flushSpansIfNeeded(),this.addUserLogsToTraceViewSpans(r.taskId,_.id);let m=a&&l&&d?this.reportLicensingConsumption({displayName:r.displayName,nonce:l,referenceId:d}):Promise.resolve();await Promise.all([f,m])}async logEvent(t,r){let e=[...this.loggers.map(s=>s.logEvent(t,r)),...this.rawDataLoggers.map(s=>s.logEvent(t,r))],n=Ho.createJobLogDto(r),i=this.sendTelemetryData(n,Bn.USER_LOG);if(this.workflowConfig.tracingConfig?.enableUserLogs){let s=r.taskId||this.ORPHANED_USER_LOGS_TASK_ID;this.userLogDataWithTaskIds.has(s)?this.userLogDataWithTaskIds.get(s)?.push(r):this.userLogDataWithTaskIds.set(s,[r])}await Promise.all([...e,i])}async logIterationVariables(t,r,e){let n=[...this.loggers.map(i=>i.logIterationVariables(t,r,e)),...this.rawDataLoggers.map(i=>i.logIterationVariables(t,r,e))];await Promise.all(n)}async debug(t,r){let{sanitizedData:e}=Vi.sanitizeData(r||{},void 0),n=[...this.loggers.map(i=>i.debug(t,e)),...this.rawDataLoggers.map(i=>i.debug(t,r))];await Promise.all(n)}async info(t,r){await this.logWithTelemetry(t,Bo.Information,r)}async warn(t,r){await this.logWithTelemetry(t,Bo.Warning,r)}async error(t,r,e){await this.logWithTelemetry(t,Bo.Error,r,e)}addUserLogsToTraceViewSpans(t,r){this.userLogDataWithTaskIds.has(t)&&(this.userLogDataWithTaskIds.get(t)?.forEach(n=>{let i=this.traceViewService.formatUserLog(gr.LogEvent.USER_LOG,n,r);this.spans.push(i)}),this.userLogDataWithTaskIds.delete(t))}async logWithTelemetry(t,r,e,n){let{sanitizedData:i,sanitizedError:s}=Vi.sanitizeData(e||{},n),c=(d,f)=>{let h=f?e:i,_=f?n:s;switch(r){case Bo.Information:return d.info(t,h);case Bo.Warning:return d.warn(t,h);case Bo.Error:return d.error(t,h,_);default:return d.info(t,h)}},u=[...this.loggers.map(d=>c(d,!1)),...this.rawDataLoggers.map(d=>c(d,!0))],a=Ho.createTraceDto(t,r,this.OrchestratorJobId,i,s),l=this.sendTelemetryData(a,Bn.TELEMETRY_TRACE);await Promise.all([...u,l])}async sendTelemetryData(t,r){if(!t){console.debug(`No DTO provided for ${r}, skipping telemetry`);return}if(!this.jobApi){console.warn(`Job API not available for ${r}`);return}let e=Date.now();try{r===Bn.TELEMETRY_EVENT?await this.jobApi.sendTelemetryEvent(t):r===Bn.TELEMETRY_TRACE?await this.jobApi.sendTelemetryTrace(t):r===Bn.USER_LOG&&await this.jobApi.sendLog(t);let n=Date.now()-e;this.totalSocketDurationMs+=n}catch(n){let i=Date.now()-e;this.totalSocketDurationMs+=i,console.error(`IPC communication failed for ${r}:`,{error:n,dto:JSON.stringify(t),duration:`${i}ms`})}}updateWorkflowExecutionTimes(t){t.executionEndTimeMs=Date.now(),t.executionTimeMs=t.executionEndTimeMs-(t.executionStartTimeMs||0),t.externalExecutionTimeMs=(t.externalExecutionTimeMs||0)+this.totalSocketDurationMs+this.totalTraceViewDurationMs,t.systemExecutionTimeMs=t.executionTimeMs-t.externalExecutionTimeMs;let r={};if(t.externalExecutionBreakdown)try{r=JSON.parse(t.externalExecutionBreakdown)}catch{r={}}this.totalSocketDurationMs>0&&(r.SocketTimeMs=this.totalSocketDurationMs),this.totalTraceViewDurationMs>0&&(r.TraceViewTimeMs=this.totalTraceViewDurationMs),t.externalExecutionBreakdown=JSON.stringify(r)}getSpansSize(){try{let t=JSON.stringify(this.spans);return new Blob([t]).size}catch{return 0}}async flushSpansIfNeeded(){let t=Date.now(),r=t-this.lastSpanFlushTime,e=this.getSpansSize();if((this.spans.length>=this.SPAN_BATCH_SIZE||r>=this.SPAN_BATCH_INTERVAL_MS||e>this.MAX_SPAN_DATA_SIZE_BYTES)&&this.spans.length>0){let i=e>this.MAX_SPAN_DATA_SIZE_BYTES?"size":this.spans.length>=this.SPAN_BATCH_SIZE?"count":"time";console.log(`[MEMORY OPTIMIZATION] Flushing ${this.spans.length} spans (${Math.round(e/1024)} KB) due to ${i}`),await this.sendTraceViewData([...this.spans]),this.spans.length=0,this.lastSpanFlushTime=t,this.lastSpanFlushTaskCount=this.taskCount}}async sendTraceViewData(t){let r=Date.now();try{await this.traceViewService.sendSpans(t);let e=Date.now()-r;this.totalTraceViewDurationMs+=e}catch(e){let n=Date.now()-r;this.totalTraceViewDurationMs+=n,console.error("TraceView service error:",e);let i=Ho.createTraceDto("TraceView service failed",Bo.Error,this.OrchestratorJobId,void 0,e);await this.sendTelemetryData(i,Bn.TELEMETRY_TRACE)}}async reportLicensingConsumption(t){try{await this.licensingService.reportHttpTaskConsumption(t)}catch(r){console.error("LicensingService: Error reporting consumption:",r)}}async shutdown(){await Promise.all([...this.loggers.map(t=>t.shutdown()),...this.rawDataLoggers.map(t=>t.shutdown())])}};import{AsyncLocalStorage as aX}from"node:async_hooks";var Zh=class{storage=new aX;current(){return this.storage.getStore()}runInSpan(t,r){return this.storage.run(t,r)}};var cX="APIWF_TRACE_CONTEXT_PROPAGATION",uX=new Set(["1","true"]);function lX(){let o;try{o=process.env[cX]}catch{return!1}return uX.has((o??"").trim().toLowerCase())}var cR;function uR(){if(lX())return cR??=new Zh,cR}var lR=async(o,t,r,e={})=>{if(!t)throw new Error("Workflow context is required");let{releasePackage:n,jobApi:i,licensingContext:s,additionalLoggers:c,commandStream$:u}=e;t.proxyConfig=void 0;let a=n?`${n.id}@${n.version}`:`${o.document.name}@${o.document.version}`,l=new Xh(t,a,i,o.document.tags?.projectId,o.document.tags?.solutionId,s,c),d=(t.debugConfig?.isRunningInDesigner??!1)||(t.debugConfig?.enableVerboseDataLogging??!1);return await Qh.ServerlessWorkflowExecutor.execute(o,t,r,{expressionHandlers:{[Qh.ExpressionLanguage.JavaScript]:$h.getInstance({diffEnabled:d})},logger:l,commandStream$:u,traceContextProvider:uR()},t.processConfig?.jobKey)};var mn={Successful:"Successful",Faulted:"Faulted",Stopped:"Stopped"};var Oa=Ge(Oe()),ka=Ge(br());var ct=Ge(br());Yg();var Vo=Ge(br()),dX="#Wrapper",fX="#Retry",pX=[dX,fX],hX=o=>{let t=pX.find(r=>o.endsWith(r));return t?o.slice(0,-t.length):o},e_=class{retries=new Map;onTaskEvent(t,r){let e=r?.taskId;if(!e||r?.taskType!==Vo.TaskType.TRY)return;let n=hX(e);switch(t){case Vo.TaskEvent.TASK_STARTED:this.retries.set(n,0);break;case Vo.TaskEvent.TASK_RETRIED:this.retries.set(n,r?.retry?.attempt??(this.retries.get(n)??0)+1);break;case Vo.TaskEvent.TASK_COMPLETED:case Vo.TaskEvent.TASK_FAILED:case Vo.TaskEvent.TASK_STOPPED:this.retries.delete(n);break;default:break}}snapshot(){let t={};for(let[r,e]of this.retries)t[r]={iterationIndex:e};return t}reset(){this.retries.clear()}};var Jg=class extends Error{isStop=!0;constructor(){super((0,ct.t)(ct.ErrorKeys.WORKFLOW_STOPPED_BY_USER)),this.name="WorkflowStoppedError"}};var _X=new Set(["taskId","taskType","workflowId","workflowRunId","timestamp","isPaused","breakpointId","executionTimeMs","logLevel","loopContext"]),Kg=o=>{if(!o)return;let t={name:o.name,message:o.message,stack:o.stack},r=o;return r.type!==void 0&&(t.type=r.type),r.status!==void 0&&(t.status=r.status),r.title!==void 0&&(t.title=r.title),r.detail!==void 0&&(t.detail=r.detail),r.instance!==void 0&&(t.instance=r.instance),r.data!==void 0&&(t.data=r.data),r.originatingTaskName!==void 0&&(t.originatingTaskName=r.originatingTaskName),t},t_=class o{static MAX_PAYLOAD_BYTES=5*1024*1024;static SMALL_FIELD_BYTES=4*1024;seq=0;loopContextData={};retryTracker=new e_;terminalEmitted=!1;connection;stopState;constructor(t,r){this.connection=t,this.stopState=r}currentLoopContext(){return structuredClone({...this.loopContextData,...this.retryTracker.snapshot()})}stampLoopContext(t){return{...t,loopContext:this.currentLoopContext()}}emit(t,r){let e={...r,seq:this.seq++};this.connection.send({eventName:t,payload:this.guardPayloadSize(t,e)})}guardPayloadSize(t,r){let e=new Map,n=2,i=0;for(let[d,f]of Object.entries(r)){let h;try{let m=o.jsonValueByteLength(f,o.MAX_PAYLOAD_BYTES);if(m===void 0){e.set(d,0);continue}h=m}catch{h=1/0}e.set(d,h);let _=(i>0?1:0)+o.jsonStringByteLength(d,o.MAX_PAYLOAD_BYTES)+1;!Number.isFinite(h)||n>o.MAX_PAYLOAD_BYTES-_-h?n=1/0:n+=_+h,i++}if(n<=o.MAX_PAYLOAD_BYTES)return r;let s={},c=[];for(let[d,f]of Object.entries(r))(e.get(d)??1/0)<=o.SMALL_FIELD_BYTES?s[d]=f:c.push(d);if(c.includes("data")){let d=o.pickEssentialLogData(r.data);d&&(s.data=d)}let u=Number.isFinite(n)?(n/(1024*1024)).toFixed(2):">5.00",a=(o.MAX_PAYLOAD_BYTES/(1024*1024)).toFixed(0),l={...s,dropped:!0,reason:"payload_size_exceeded_limit",droppedFields:c,message:`${t} payload dropped because it exceeded ${a}MB (original size: ${u}MB)`};return s.message!==void 0&&(l.originalMessage=s.message),l}static pickEssentialLogData(t){if(t===null||typeof t!="object")return;let r=t,e={};for(let n of _X)o.isSmallField(r[n])&&(e[n]=r[n]);return Object.keys(e).length>0?e:void 0}static isSmallField(t){if(t===void 0)return!1;try{let r=o.jsonValueByteLength(t,o.SMALL_FIELD_BYTES);return r!==void 0&&r<=o.SMALL_FIELD_BYTES}catch{return!1}}static jsonStringByteLength(t,r){let e=4;for(let n=0;n<t.length;n++){let i=t.charCodeAt(n);if(i===34||i===92)e+=4;else if(i<=31)e+=i===8||i===9||i===10||i===12||i===13?3:7;else if(i>=55296&&i<=56319){let s=t.charCodeAt(n+1);s>=56320&&s<=57343?(e+=4,n++):e+=7}else i>=56320&&i<=57343?e+=7:e+=i<128?1:i<2048?2:3;if(e>r)return r+1}return e}static jsonValueByteLength(t,r,e=new Set,n="",i=!0){if(i&&t!==null&&typeof t=="object"){let c=t.toJSON;if(typeof c=="function")return this.jsonValueByteLength(c.call(t,n),r,e,n,!1)}if(t===null)return 4;switch(typeof t){case"string":return this.jsonStringByteLength(t,r);case"boolean":return t?4:5;case"number":{let c=Number.isFinite(t)?String(t):"null";return c.length>r?r+1:c.length}case"bigint":throw new TypeError("BigInt is not JSON serializable");case"undefined":case"function":case"symbol":return}let s=t;if(s instanceof Number||s instanceof String||s instanceof Boolean)return this.jsonValueByteLength(s.valueOf(),r,e,n,!1);if(Object.prototype.toString.call(s)==="[object BigInt]")throw new TypeError("BigInt is not JSON serializable");if(e.has(s))throw new TypeError("Circular structure is not JSON serializable");e.add(s);try{if(Array.isArray(s)){let a=2;for(let l=0;l<s.length;l++){if(l>0&&a++,a>r)return r+1;let d=r-a,h=this.jsonValueByteLength(s[l],d,e,String(l))??4;if(h>d)return r+1;a+=h}return a}let c=2,u=0;for(let a in s){if(!Object.prototype.hasOwnProperty.call(s,a))continue;let l=s[a],d=this.jsonValueByteLength(l,r-c,e,a);if(d===void 0)continue;let f=(u>0?1:0)+this.jsonStringByteLength(a,Math.max(0,r-c))+1;if(f>r-c||d>r-c-f)return r+1;c+=f+d,u++}return c}finally{e.delete(s)}}logWorkflowEvent(t,r,e){return t===ct.WorkflowEvent.WORKFLOW_STARTED&&(this.loopContextData={},this.retryTracker.reset()),this.terminalEmitted&&t===ct.WorkflowEvent.WORKFLOW_FAILED||this.emit(kt.WorkflowEvent,{event:t,data:this.stampLoopContext(r),error:Kg(e)}),Promise.resolve()}logTaskEvent(t,r,e){return this.terminalEmitted&&(t===ct.TaskEvent.TASK_FAILED||t===ct.TaskEvent.TASK_STOPPED)?Promise.resolve():t===ct.TaskEvent.TASK_STARTED&&this.stopState?.requested?(this.terminalEmitted||(this.stopState.reason!=="peer-disconnect"?this.emitStopped(r.taskId):this.emitPeerDisconnectFailure()),Promise.reject(new Jg)):(this.retryTracker.onTaskEvent(t,r),this.emit(kt.TaskEvent,{event:t,data:this.stampLoopContext(r),error:Kg(e)}),(t===ct.TaskEvent.TASK_COMPLETED||t===ct.TaskEvent.TASK_FAILED)&&delete this.loopContextData[r.taskId],Promise.resolve())}emitStopped(t){this.terminalEmitted=!0,this.emit(kt.WorkflowEvent,{event:ct.WorkflowEvent.WORKFLOW_STOPPED,data:this.stampLoopContext({stoppedAtTaskId:t,reason:(0,ct.t)(ct.ErrorKeys.WORKFLOW_STOPPED_BY_USER)})})}emitPeerDisconnectFailure(){this.terminalEmitted||(this.terminalEmitted=!0,this.emit(kt.WorkflowEvent,{event:ct.WorkflowEvent.WORKFLOW_FAILED,data:this.stampLoopContext({}),error:{name:"PeerDisconnected",message:(0,ct.t)(ct.ErrorKeys.DEBUG_PEER_DISCONNECTED)}}))}logEvent(t,r){return this.terminalEmitted||this.emit(kt.UserLog,{event:t,data:this.stampLoopContext(r)}),Promise.resolve()}logIterationVariables(t,r,e){let n=this.loopContextData[t];return n?n.iterationIndex++:this.loopContextData[t]={iterationIndex:0},Promise.resolve()}debug(t,r){return this.sendLog("debug",t,r)}info(t,r){return this.sendLog("info",t,r)}warn(t,r){return this.sendLog("warn",t,r)}error(t,r,e){return this.sendLog("error",t,r,e)}sendLog(t,r,e,n){return this.terminalEmitted||this.emit(kt.AppInsights,{kind:"log",level:t,message:r,data:e,error:Kg(n)}),Promise.resolve()}shutdown(){return Promise.resolve()}};var qc=Ge(br()),pR=Ge(Ub());function mX(o){if(!o||typeof o!="object")return;let t=o;return typeof t.taskId!="string"||t.taskId.length===0||typeof t.isEnabled!="boolean"?void 0:{id:typeof t.id=="string"&&t.id.length>0?t.id:t.taskId,taskId:t.taskId,isEnabled:t.isEnabled}}function fR(o){if(!o||typeof o!="object"||Array.isArray(o))return{};let t={};for(let[r,e]of Object.entries(o)){if(!Array.isArray(e))continue;let n=[];for(let i of e){let s=mX(i);s&&n.push(s)}t[r]=n}return t}function hR(o,t){let r=new pR.Subject,e={requested:!1},n,i,s=new Promise((v,b)=>{n=v,i=b}),c=!1,u=new t_(o,e),a=null,l=()=>{a!==null&&(clearTimeout(a),a=null)},d=()=>{c||(c=!0,n({breakpoints:{},supportsChunkedEnvelopes:!1}))},f=()=>{e.requested||(e.requested=!0,e.reason="peer-disconnect",u.emitPeerDisconnectFailure(),d(),r.next({command:qc.WorkflowCommandEvent.Resume,payload:void 0}))},h=()=>{t!==void 0&&(l(),a=setTimeout(()=>{a=null,f()},t))},_=(v,b)=>{o.onCommand(v,g=>{l(),b(g)})};return _("Start",v=>{if(c){console.warn("Start command received more than once; ignoring duplicate");return}c=!0;let b=v??{};n({breakpoints:fR(b.Breakpoints),supportsChunkedEnvelopes:b.SupportsChunkedEnvelopes===!0})}),_("Resume",()=>{r.next({command:qc.WorkflowCommandEvent.Resume,payload:void 0})}),_("SetBreakpoints",v=>{r.next({command:qc.WorkflowCommandEvent.SetBreakpoints,payload:fR(v)})}),_("Stop",()=>{e.requested=!0,e.reason="user",d(),r.next({command:qc.WorkflowCommandEvent.Resume,payload:void 0})}),_("Hello",()=>{}),_("PeerShutdown",()=>{f()}),{commandStream$:r,stopState:e,logger:u,awaitStart:v=>v===void 0?s:new Promise((b,g)=>{let w=setTimeout(()=>{i(new Error(`Did not receive Start command within ${v}ms`))},v);s.then(T=>{clearTimeout(w),b(T)},T=>{clearTimeout(w),g(T)})}),onPeerDisconnected:h}}var WX=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,UX="/orchestrator_/signalr/robotdebug",uw=6e4,$X=6e4;function BX(o,t,r,e){try{let n=(0,Oa.addPathComponentsToUrl)(o,[t,r,UX]);return(0,Oa.addQueryParamsToUrl)(n,{sessionId:e})}catch(n){throw new Error(`Failed to build DebugHub URL from baseUrl=${o}: ${(0,Oa.getErrorMessage)(n)}`)}}var HX=(o,t,r)=>{let e=(0,ka.t)(ka.ErrorKeys.DEBUG_START_TIMEOUT,{timeoutMs:r});return o.send({eventName:kt.WorkflowEvent,payload:{event:ka.WorkflowEvent.WORKFLOW_FAILED,data:{},error:{name:"StartTimeout",message:e},seq:0}}),{status:mn.Faulted,outputArguments:null,id:t,info:e}};async function KR(o,t,r){let e=o.debugSessionId;if(typeof e!="string"||!WX.test(e))throw new Error("Debug job is missing a valid runtimeContext.debugSessionId (UUID); StudioWeb must pre-generate it before job start.");let n=BX(o.baseUrl,o.organizationId,o.tenantId,e),{SignalRDebugConnection:i}=await YR().then(()=>zR),s=new i(n,()=>o.accessToken),c=hR(s,$X);t.push(c.logger),s.onPeerDisconnected(c.onPeerDisconnected),await s.start(),s.send({eventName:kt.Ready,payload:{}});let u;try{u=await c.awaitStart(uw)}catch(a){return console.error(`Debug session aborted: Start not received within ${uw}ms`,a),{debugConnection:s,stopState:c.stopState,commandStream$:c.commandStream$,breakpoints:{},earlyResult:HX(s,r,uw)}}return u.supportsChunkedEnvelopes&&s.enableChunking(),{debugConnection:s,stopState:c.stopState,commandStream$:c.commandStream$,breakpoints:u.breakpoints}}import GR from"node:http";function VX(o){for(let t=0;t<o.length;t++){let r=o.charCodeAt(t);if(r<32||r>126||r===34||r===92)return!1}return!0}function JR(o){let t=[],r=[],e=`HEAVYBODY_${crypto.randomUUID()}_`,i=JSON.stringify(o,(_,m)=>{if(typeof m=="string"&&m.length>=1e6&&VX(m)){let v=`${e}${t.length}_`;return t.push(m),r.push(v),v}return m});if(t.length===0||i===void 0)return i;let s=[];for(let _=0;_<r.length;_++){let m=i.indexOf(r[_]);if(m===-1||i.indexOf(r[_],m+1)!==-1)return JSON.stringify(o);s.push({pos:m,token:r[_],value:t[_]})}s.sort((_,m)=>_.pos-m.pos);let c=new TextEncoder,u=[],a=0,l=0;for(let _ of s){let m=c.encode(i.slice(a,_.pos));u.push(m),l+=m.length+_.value.length,a=_.pos+_.token.length}let d=c.encode(i.slice(a));l+=d.length;let f=new Uint8Array(l),h=0;for(let _=0;_<s.length;_++){f.set(u[_],h),h+=u[_].length;let{written:m}=c.encodeInto(s[_].value,f.subarray(h));if(m!==s[_].value.length)throw new Error(`encodeResultBody: short write while splicing heavy string ${_}: wrote ${m} of ${s[_].value.length} bytes at offset ${h}`);h+=m}return f.set(d,h),f}var E_=class{socketPath;serverlessJobId;agent;constructor(t,r){this.socketPath=t,this.serverlessJobId=r,this.agent=new GR.Agent({keepAlive:!0})}post(t,r){let e=t.includes("{serverlessJobId}")?t.replace("{serverlessJobId}",this.serverlessJobId):t,n=JR(r);return new Promise((i,s)=>{let c=GR.request({socketPath:this.socketPath,path:e,method:"POST",agent:this.agent,headers:{"Content-Type":"application/json"}},u=>{u.resume(),u.on("end",()=>{let a=u.statusCode??0;if(a>=200&&a<300){i();return}s(new Error(`Socket communication failed: Socket Server returned error: HTTP ${a}: ${u.statusMessage}`))}),u.on("error",a=>{s(new Error(`Socket communication failed: ${a.message}`))})});c.on("error",u=>{s(new Error(`Socket communication failed: ${u.message}`))}),c.end(n)})}close(){this.agent.destroy()}};var T_=class{socketService;constructor(t,r){this.socketService=new E_(t,r)}async sendResult(t){return await this.socketService.post("/api/jobs/{serverlessJobId}/result",{id:t.id,status:t.status,outputArguments:t.outputArguments,info:t.info}),!0}async sendTelemetryEvent(t){await this.socketService.post("/api/jobs/{serverlessJobId}/telemetry/customevents",t)}async sendTelemetryTrace(t){await this.socketService.post("/api/jobs/{serverlessJobId}/telemetry/traces",t)}async sendLog(t){await this.socketService.post("/api/jobs/{serverlessJobId}/logs",t)}reportPeakMemoryUsage(t){return Promise.resolve()}async close(){this.socketService.close()}};var eu=Ge(dw());var XR=Ge(dw()),Pa="Never called: CoreIPC generates the real IJobInvocationApi methods",Zc=class{SetResult(t,r){throw new Error(Pa)}SendLog(t,r){throw new Error(Pa)}SendTelemetryEvent(t,r){throw new Error(Pa)}SendTelemetryTrace(t,r){throw new Error(Pa)}ReportPeakMemoryUsage(t,r){throw new Error(Pa)}GetUserAccessToken(t){throw new Error(Pa)}};XR.ipc.$service({endpoint:"IJobInvocationApi"})(Zc);import{open as zX,unlink as YX}from"node:fs/promises";var KX=1e6,JX=32*1024,GX=64*1024;function XX(o){for(let t=0;t<o.length;t++){let r=o.charCodeAt(t);if(r<32||r>126||r===34||r===92)return!1}return!0}function*S_(o,t){let r=0;for(;r<t.length;){let e=Math.min(r+JX,t.length),n=t.charCodeAt(e-1);e<t.length&&e-1>r&&n>=55296&&n<=56319&&(e-=1),yield o.encode(t.slice(r,e)),r=e}}function*ZX(o,t,r){let e=0;for(;e<t.length;){let n=Math.min(e+r.length,t.length),{read:i,written:s}=o.encodeInto(t.slice(e,n),r);yield r.subarray(0,s),e+=i}}async function*QX(o){let t=new TextEncoder,r=[],e=[],n=`__uipath_output_splice_${crypto.randomUUID()}__`,s=JSON.stringify(o,(l,d)=>{if(typeof d=="string"&&d.length>=KX&&XX(d)){let f=`${n}${r.length}__`;return r.push(d),e.push(f),f}return d});if(s===void 0){yield t.encode("null");return}if(r.length===0){yield*S_(t,s);return}let c=[];for(let l=0;l<e.length;l++){let d=s.indexOf(e[l]);if(d===-1||s.indexOf(e[l],d+1)!==-1){yield*S_(t,JSON.stringify(o));return}c.push({position:d,token:e[l],text:r[l]})}c.sort((l,d)=>l.position-d.position);let u=new Uint8Array(GX),a=0;for(let l of c)yield*S_(t,s.slice(a,l.position)),yield*ZX(t,l.text,u),a=l.position+l.token.length;yield*S_(t,s.slice(a))}var Qc=class extends Error{maxBytes;constructor(t){super(`The workflow output arguments exceed the maximum allowed size of ${t} bytes. Reduce the size of the returned data, or write large content to a file and return a file reference instead.`),this.maxBytes=t,this.name="OutputArgumentsTooLargeError"}};async function ZR(o,t,r){let e=r!==void 0&&r>0?r:1/0,n=await zX(o,"w"),i=0;try{for await(let s of QX(t)){if(i+=s.length,i>e)throw new Qc(e);await n.write(s)}await n.close()}catch(s){throw await n.close().catch(()=>{}),await YX(o).catch(()=>{}),s}}var O_=class{proxy;ipcEndpoint;_serverlessJobId;outputFile;constructor(t,r,e){this.ipcEndpoint=t,this._serverlessJobId=r,this.outputFile=e,this.proxy=eu.ipc.proxy.withAddress(eu.ipc.namedPipe(t)).withService(Zc)}async sendResult(t){let r=await this.spillOutputArguments(t.outputArguments);return r.rejected!==void 0?await this.proxy.SetResult(this._serverlessJobId,{id:t.id,status:mn.Faulted,outputArguments:null,info:r.rejected}):await this.proxy.SetResult(this._serverlessJobId,{id:t.id,status:t.status,outputArguments:r.filePath===void 0?t.outputArguments:void 0,outputArgumentsFilePath:r.filePath,info:t.info})}async spillOutputArguments(t){if(this.outputFile===void 0)return{};try{return await ZR(this.outputFile.filePath,t,this.outputFile.maxBytes),{filePath:this.outputFile.filePath}}catch(r){return r instanceof Qc?(console.error(r.message),{rejected:r.message}):(console.error("Failed to write the output arguments file; sending them inline:",r),{})}}async sendTelemetryEvent(t){await this.proxy.SendTelemetryEvent(this._serverlessJobId,t)}async sendTelemetryTrace(t){await this.proxy.SendTelemetryTrace(this._serverlessJobId,t)}async sendLog(t){await this.proxy.SendLog(this._serverlessJobId,t)}async reportPeakMemoryUsage(t){await this.proxy.ReportPeakMemoryUsage(this._serverlessJobId,t)}async close(){await eu.ipc.disposeChannel(eu.ipc.namedPipe(this.ipcEndpoint))}};var Hr=Ge(br());aw();var eZ=250,tZ=1e3,rZ=500,nZ=.85,oZ=.8,iZ=1e4,rr=o=>`${(o/1048576).toFixed(1)} MB`,k_=(o,t)=>`${(o/1048576).toFixed(1)}/${rr(t)}`,P_=class{timer;peak={rss:0,heapTotal:0,heapUsed:0,external:0};peakSinceLastLine=0;lastLineRss=0;lastLineAt=0;lastReportAt=0;lastReportedRss=0;reportInFlight;aboveCritical=!1;lastCriticalAt=0;reportEnabled;finalized=!1;opts;constructor(t){this.opts=t,this.reportEnabled=t.reportEnabled}start(){let t=process.memoryUsage();this.lastLineAt=Date.now(),this.lastLineRss=t.rss,this.track(t),this.timer=setInterval(()=>this.sample(),eZ),w_(this.timer)}onTaskCompleted(t,r){if(!this.opts.trackActivityMemory||this.finalized)return;let e=process.memoryUsage();this.track(e);let n=e.rss-this.lastLineRss,i=`${n<0?"-":"+"}${rr(Math.abs(n))}`;this.emitLine(Hr.LogLevel.INFO,`[memory] after '${t}'${r?" (failed)":""}: rss ${this.formatRss(e.rss)} (${i}, peak during ${rr(this.peakSinceLastLine)}), heap ${k_(e.heapUsed,e.heapTotal)}, external ${rr(e.external)}`,e)}async finalize(){this.finalized||(this.finalized=!0,this.timer!==void 0&&clearInterval(this.timer),this.track(process.memoryUsage()),await this.writeLine(Hr.LogLevel.INFO,`[memory] job peak: rss ${this.formatRss(this.peak.rss)}, heap ${k_(this.peak.heapUsed,this.peak.heapTotal)}, external ${rr(this.peak.external)}`),await this.reportInFlight,await this.report())}sample(){if(this.finalized)return;let t=Date.now(),r=process.memoryUsage();this.track(r),this.checkCritical(t,r),this.opts.trackActivityMemory&&t-this.lastLineAt>=rZ&&this.emitLine(Hr.LogLevel.INFO,`[memory] rss ${this.formatRss(r.rss)}, peak ${rr(this.peakSinceLastLine)}, heap ${k_(r.heapUsed,r.heapTotal)}, external ${rr(r.external)}`,r),this.reportEnabled&&t-this.lastReportAt>=tZ&&this.peak.rss>this.lastReportedRss&&(this.lastReportAt=t,this.report())}checkCritical(t,r){if(this.opts.memoryLimit<=0)return;let e=r.rss/this.opts.memoryLimit;if(this.aboveCritical&&e<oZ){this.aboveCritical=!1;return}e>=nZ&&(!this.aboveCritical||t-this.lastCriticalAt>=iZ)&&(this.aboveCritical=!0,this.lastCriticalAt=t,this.emitLine(Hr.LogLevel.WARN,`[memory] rss ${rr(r.rss)} is ${Math.round(e*100)}% of the ${rr(this.opts.memoryLimit)} limit (peak ${rr(this.peakSinceLastLine)}, heap ${k_(r.heapUsed,r.heapTotal)}, external ${rr(r.external)})`,r))}track(t){t.rss>this.peak.rss&&(this.peak={...t}),t.rss>this.peakSinceLastLine&&(this.peakSinceLastLine=t.rss)}emitLine(t,r,e){this.lastLineAt=Date.now(),this.lastLineRss=e.rss,this.peakSinceLastLine=e.rss,this.writeLine(t,r)}async writeLine(t,r){if(!this.opts.trackActivityMemory){t===Hr.LogLevel.WARN?console.warn(r):console.log(r);return}try{await this.opts.jobApi.sendLog({Message:r,LogLevel:t})}catch(e){console.debug("[memory] failed to send log line:",e)}}formatRss(t){return this.opts.memoryLimit<=0?rr(t):`${rr(t)} (${Math.round(t/this.opts.memoryLimit*100)}% of limit)`}async report(){if(!(!this.reportEnabled||this.reportInFlight)){this.reportInFlight=this.send();try{await this.reportInFlight}finally{this.reportInFlight=void 0}}}async send(){let t=this.peak;try{await this.opts.jobApi.reportPeakMemoryUsage({rss:t.rss,details:{HeapTotal:String(t.heapTotal),HeapUsed:String(t.heapUsed),External:String(t.external)}}),this.lastReportedRss=t.rss}catch(r){this.reportEnabled=!1,console.debug("[memory] peak report failed, disabling reports:",r)}}},A_=class{monitor;constructor(t){this.monitor=t}logTaskEvent(t,r,e){return(t===Hr.TaskEvent.TASK_COMPLETED||t===Hr.TaskEvent.TASK_FAILED||t===Hr.TaskEvent.TASK_STOPPED)&&this.monitor.onTaskCompleted(r.displayName||r.taskId,t!==Hr.TaskEvent.TASK_COMPLETED),Promise.resolve()}logWorkflowEvent(t,r,e){return Promise.resolve()}logEvent(t,r){return Promise.resolve()}logIterationVariables(t,r,e){return Promise.resolve()}shutdown(){return Promise.resolve()}debug(t,r){return Promise.resolve()}info(t,r){return Promise.resolve()}warn(t,r){return Promise.resolve()}error(t,r,e){return Promise.resolve()}};var aZ="workflow-runtime-input-arguments.json",cZ="workflow-runtime-internal-arguments.json",uZ="workflow-runtime-context.json";async function I_(o){try{let t=await sZ(o,"utf8");return JSON.parse(t)}catch(t){throw console.error(`Error reading file ${o}`,t),new Error(`Error reading file ${o}`)}}var QR=o=>{if(!o||typeof o!="object")return!1;let t=o;return typeof t.ID=="string"&&t.ID.length>0&&typeof t.FullName=="string"&&t.FullName.length>0&&typeof t.MimeType=="string"&&t.MimeType.length>0},lZ=o=>{if(QR(o))return o;if(o&&typeof o=="object"){for(let t of Object.values(o))if(QR(t))return t}},dZ=/^[a-zA-Z0-9][a-zA-Z0-9!#$&^_.+-]*\/[a-zA-Z0-9][a-zA-Z0-9!#$&^_.+-]*$/,fZ=o=>{for(let t of o){let r=t.charCodeAt(0);if(r<32||r===127)return!0}return!1},pZ=o=>{let t=o.indexOf(";"),r=(t===-1?o:o.slice(0,t)).trim();if(!dZ.test(r))return"application/octet-stream";let e=t===-1?"":o.slice(t);return fZ(e)?r:`${r}${e}`},hZ=o=>{let t="";for(let r of o){let e=r.charCodeAt(0);e<32||e===127||r==='"'||r==="\\"||r==="/"||(t+=r)}return t.trim()||"download"},eM=(o,t)=>{let r={status:o.status===Vr.WorkflowJobStatus.Successful?mn.Successful:mn.Faulted,outputArguments:o.data,id:t,info:o.errorMessage||void 0},e=lZ(o.data);return e&&(r.isFileResponse=!0,r.contentType=pZ(e.MimeType),r.contentDisposition=`attachment; filename="${hZ(e.FullName)}"`,r.attachmentId=e.ID),r},_Z=o=>({status:mn.Stopped,outputArguments:null,id:o,info:(0,Vr.t)(Vr.ErrorKeys.WORKFLOW_STOPPED_BY_USER)}),mZ=o=>({status:mn.Faulted,outputArguments:null,id:o,info:(0,Vr.t)(Vr.ErrorKeys.DEBUG_PEER_DISCONNECTED)});function tM(o){return o.isStudioDebugContext===!0&&typeof o.debugSessionId=="string"&&o.debugSessionId.length>0}function vZ(o,t){return{organizationId:o.organizationId,tenantId:o.tenantId,accessToken:o.accessToken,baseUrl:o.baseUrl,source:o.source||"ApiWorkflows",userId:o.userKey,subscriptionType:o.subscriptionPlanCode,processConfig:{processKey:o.processKey,folderKey:o.folderKey,jobKey:o.jobKey,robotKey:o.robotKey,isStudioDebugContext:o.isStudioDebugContext},...tM(o)&&{debugConfig:{isRunningInDesigner:!1,runInDebugMode:!0,enableVerboseDataLogging:!0}},telemetryConfig:{traceId:o.traceId,parentSpanId:o.spanId||""},tracingConfig:{traceId:o.platformTraceId,parentSpanId:o.platformParentSpanId||"",tracingToken:o.traceStoreAccessToken,enableUserLogs:!0,enableIoLogs:!0},resourceOverwrites:t.resourceOverwrites||{},automationEdgeFqdn:o.automationEdgeFqdn,licensingContext:t.licensingContext||void 0}}function yZ(o){return o.jobApiEndpoint?{transport:o.jobApiTransport,endpoint:o.jobApiEndpoint}:o.jobApiSocketPath?{transport:"http",endpoint:o.jobApiSocketPath}:{transport:o.jobApiTransport,endpoint:void 0}}function bZ(o){if(o.useOutputFile===!0){if(typeof o.outputArgumentsFilePath!="string"||o.outputArgumentsFilePath.length===0){console.error("useOutputFile is set but no outputArgumentsFilePath was granted; sending the output inline.");return}return{filePath:o.outputArgumentsFilePath,maxBytes:o.maxOutputFileSize}}}function gZ(o,t,r,e){if(o==="ipc"&&t)return new O_(t,r,e);if(o==="http"&&t)return new T_(t,r);console.error(`No valid transport configured (transport=${o}, endpoint=${t}). Telemetry will not be sent.`)}function wZ(o,t,r){if(t?.requested===!0)return t.reason==="peer-disconnect"?mZ(r):_Z(r);let e=(0,x_.getErrorMessage)(o);return(0,Vr.isWorkflowError)(o)&&o.detail&&(e+=`. ${o.detail}`),eM({status:Vr.WorkflowJobStatus.Faulted,data:null,errorMessage:e},r)}var EZ=async(o,t,r)=>{if(t&&o){try{await t.sendResult(o),console.log("Job result sent to host")}catch(e){console.error("Failed to send job result to host:",e)}try{await t.close()}catch(e){console.debug("Transport cleanup error:",e)}}if(r)try{await r.stop()}catch(e){console.error("Failed to stop debug SignalR connection:",e)}};async function TZ(){console.log(qx());let o=await I_(fw(process.cwd(),uZ)),t=o.id,r,e,n,i,s={id:t,status:mn.Faulted,outputArguments:null,info:"workflow runtime exited before producing a result"};try{let c=await I_(fw(process.cwd(),aZ)),u=await I_(fw(process.cwd(),cZ)),a=process.argv[2];console.log("Workflow file path:",a);let l=(0,x_.redactObjectPaths)(o,["accessToken","traceStoreAccessToken"]);console.log("workflowRuntimeContext:",JSON.stringify(l)),console.log("bindingsAndResourceOverrides:",JSON.stringify(u));let d=await I_(a),f=vZ(o,u),{transport:h,endpoint:_}=yZ(o);r=gZ(h,_,t,bZ(o));let m=[];r&&(o.supportsPeakMemoryReport===!0||o.trackActivityMemory===!0)&&(e=new P_({jobApi:r,reportEnabled:o.supportsPeakMemoryReport===!0,memoryLimit:o.memoryLimit??0,trackActivityMemory:o.trackActivityMemory===!0}),e.start(),o.trackActivityMemory===!0&&m.push(new A_(e)));let v;if(tM(o)){let g=await KR(o,m,t);if(n=g.debugConnection,i=g.stopState,v=g.commandStream$,g.earlyResult)return s=g.earlyResult,s;f.debugConfig.breakpoints=g.breakpoints}let b=await lR(d,f,c,{releasePackage:o.packageId?{id:o.packageId,version:o.packageVersion||"0.0.1"}:void 0,jobApi:r,licensingContext:u.licensingContext||void 0,additionalLoggers:m,commandStream$:v});console.log("Workflow execution completed."),s=eM(b,t)}catch(c){console.error("Error executing workflow:",c),s=wZ(c,i,t)}finally{await e?.finalize(),await EZ(s,r,n)}return s}import.meta.main&&TZ().then(()=>{process.exit(0)}).catch(o=>{console.error("Unhandled error:",o),process.exit(1)});export{mZ as buildPeerDisconnectExecResult,_Z as buildStoppedExecResult,vZ as buildWorkflowConfig,EZ as finalizeJobExecution,tM as isDebugHubSession,TZ as main,wZ as mapErrorToResult,bZ as resolveOutputFileSpill};
|
|
1436
1436
|
/*! Bundled license information:
|
|
1437
1437
|
|
|
1438
1438
|
moment/moment.js:
|