@mablhq/mabl-cli 2.46.12 → 2.49.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.
@@ -132,13 +132,13 @@ class MablApiClient extends basicApiClient_1.BasicApiClient {
132
132
  throw toApiError(`Failed to update environment`, error);
133
133
  }
134
134
  }
135
- async selectLinkServer(workspaceId, label) {
135
+ async selectLinkServers(workspaceId, labels) {
136
136
  try {
137
137
  const queryParams = query_string_1.default.stringify({
138
138
  workspace_id: workspaceId,
139
- label,
140
- });
141
- return await this.makeGetRequest(`${this.baseApiUrl}/link/servers/select?${queryParams}`);
139
+ labels,
140
+ }, { arrayFormat: 'comma' });
141
+ return (await this.makeGetRequest(`${this.baseApiUrl}/link/servers/select-multiple?${queryParams}`)).link_servers;
142
142
  }
143
143
  catch (error) {
144
144
  throw toApiError(`Failed to get selected link server`, error);
@@ -544,11 +544,11 @@ class MablApiClient extends basicApiClient_1.BasicApiClient {
544
544
  throw toApiError(`Failed to get emails for session ID ${sessionId} with error`, error);
545
545
  }
546
546
  }
547
- async getEmailsToPermanentAddress(address, lookbackTimeMs) {
547
+ async getEmailsToPermanentAddress(address, earliestReceivedTime) {
548
548
  try {
549
549
  const emailQueryString = query_string_1.default.stringify({
550
550
  email_address: address,
551
- earliest_received_time: Date.now() - lookbackTimeMs,
551
+ earliest_received_time: earliestReceivedTime,
552
552
  });
553
553
  return await this.makeGetRequest(`${this.baseApiUrl}/execution/inputs?${emailQueryString}`);
554
554
  }
@@ -598,7 +598,7 @@ class MablApiClient extends basicApiClient_1.BasicApiClient {
598
598
  throw toApiError('Failed to generate steps', error);
599
599
  }
600
600
  }
601
- async evaluateAiAssertion(workspaceId, testRunId, screenshot, userPrompt, metaPrompt, criteria, test) {
601
+ async evaluateAiAssertion(workspaceId, testRunId, screenshot, userPrompt, metaPrompt, criteria, test, variables) {
602
602
  try {
603
603
  const body = {
604
604
  test_run_id: testRunId,
@@ -607,6 +607,7 @@ class MablApiClient extends basicApiClient_1.BasicApiClient {
607
607
  screenshot: Buffer.from(screenshot).toString('base64'),
608
608
  test_invariant_id: test === null || test === void 0 ? void 0 : test.invariant_id,
609
609
  test_type: test === null || test === void 0 ? void 0 : test.test_type,
610
+ variables,
610
611
  };
611
612
  if (metaPrompt !== undefined) {
612
613
  body.override = {
@@ -32,6 +32,7 @@ exports.builder = (yargs) => {
32
32
  mablApi_1.ExportRequest.TargetContentEnum.Doms,
33
33
  mablApi_1.ExportRequest.TargetContentEnum.Hars,
34
34
  mablApi_1.ExportRequest.TargetContentEnum.Traces,
35
+ mablApi_1.ExportRequest.TargetContentEnum.XrayJson,
35
36
  ],
36
37
  coerce: (arg) => arg.includes(typesAllFlag)
37
38
  ? [
@@ -97,6 +97,19 @@ function getAssertionTypesForTarget(target) {
97
97
  newman_types_1.AssertionType.LessThan,
98
98
  newman_types_1.AssertionType.LessThanOrEqualTo,
99
99
  ].includes(assertType.value));
100
+ case newman_types_1.AssertionTarget.Header:
101
+ case newman_types_1.AssertionTarget.JSONBody:
102
+ return exports.ASSERT_TYPES.filter((assertType) => [
103
+ newman_types_1.AssertionType.Contains,
104
+ newman_types_1.AssertionType.DoesNotContain,
105
+ newman_types_1.AssertionType.EndsWith,
106
+ newman_types_1.AssertionType.Equals,
107
+ newman_types_1.AssertionType.MatchesRegExp,
108
+ newman_types_1.AssertionType.NotEquals,
109
+ newman_types_1.AssertionType.NotPresent,
110
+ newman_types_1.AssertionType.Present,
111
+ newman_types_1.AssertionType.StartsWith,
112
+ ].includes(assertType.value));
100
113
  default:
101
114
  return exports.ASSERT_TYPES;
102
115
  }
package/domUtil/index.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.domUtil=t():e.domUtil=t()}(global,(()=>(()=>{var e={354:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveVariable=t.isVariableDataType=t.isSimpleObject=t.isLegacyVariable=t.namespace=t.resolveVariableValue=t.LegacyVariableSource=t.VariableType=void 0,i(n(583),t);var o=n(859);Object.defineProperty(t,"VariableType",{enumerable:!0,get:function(){return o.VariableType}}),Object.defineProperty(t,"LegacyVariableSource",{enumerable:!0,get:function(){return o.LegacyVariableSource}}),Object.defineProperty(t,"resolveVariableValue",{enumerable:!0,get:function(){return o.resolveVariableValue}}),Object.defineProperty(t,"namespace",{enumerable:!0,get:function(){return o.namespace}}),Object.defineProperty(t,"isLegacyVariable",{enumerable:!0,get:function(){return o.isLegacyVariable}});var a=n(540);Object.defineProperty(t,"isSimpleObject",{enumerable:!0,get:function(){return a.isSimpleObject}}),Object.defineProperty(t,"isVariableDataType",{enumerable:!0,get:function(){return a.isVariableDataType}});var l=n(140);Object.defineProperty(t,"resolveVariable",{enumerable:!0,get:function(){return l.resolveVariable}}),i(n(26),t),i(n(232),t),i(n(667),t),i(n(303),t),i(n(916),t),i(n(257),t),i(n(501),t)},667:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAutoHealAuthorized=t.buildFindEmailDescriptorString=t.isNormalizedFindEmailDescriptor=t.isNormalizedFindDescriptor=t.mapHintsToFindDescriptor=t.mapWaitUntilToPropertyPreferences=t.getAncestorDescriptor=t.isAncestor=t.matchesAncestorXpath=t.computeRelativeXpath=t.isRelativeXpath=t.findIsWaitUntil=t.descriptorHasIntendedProperties=t.descriptorHasWaitTimeout=t.findIsRepeatedElements=t.descriptorHasOrdinalPreference=t.getWaitUntilTimeoutMs=t.compareStrings=t.getEffectiveSelectorValue=t.getEffectiveValue=t.getComparator=t.getComparatorForAttribute=t.getIsUserIntended=t.isFindCustomDescriptor=t.ConfidenceLevel=t.PropertyComparator=t.isFindElementType=t.isFindType=t.FindType=t.isFindElementDescriptor=t.isFindOptions=t.ElementExpectation=t.EmailSelectorComparator=void 0;const r=n(303),i=n(232),o=n(768);var a,l;function s(e){return[a.FIND_ANY,a.FIND_FIRST,a.FIND_LAST,a.FIND_ONE,a.FIND_ALL].some((t=>t===e))}function c(e){return e.selectorKey??e.attributeName??e.attributeCanonicalId}function u(e,t){return t?.[e]?.comparator??l.EQUALS}function d(e,t,n){const r="string"==typeof t[e]?t[e]:(t.other_attributes??[]).find((t=>t.id===e))?.value,i=n?.[e];return i?.intended&&void 0!==i?.value?i?.value:r}function f(e){return void 0!==e.configuration?.ordinalPreference?.position}function E(e){return void 0!==e.findOptions?.waitUntil?.timeoutSeconds}function p(e){return Object.values(e.configuration?.propertyPreferences||{}).some((e=>e?.intended))||(e.findOptions?.waitUntil?.properties?.[e.selector.uuid]||[]).length>0}function m(e,t,n){return t+n.substring(1)===e}function _(e,t){return!!(e.selector.relative_xpath&&e.selector.xpath&&t.selector.xpath&&m(e.selector.xpath,t.selector.xpath,e.selector.relative_xpath))}function g(e,t){return e.selector.relative_xpath&&!e.selector.findable_ancestor_uuid||e.selector.findable_ancestor_uuid===t.selector.uuid||_(e,t)}function b(e,t={}){const n={...t};for(const i of e)(0,r.isSimpleElementSelectorCommonKeys)(i)&&(n[i]={...t[i]||{},intended:!0});return n}function h(e,t){const n=t?.[e.selector.uuid]||[],r=e.configuration?.propertyPreferences;return{...e,configuration:{...e.configuration,propertyPreferences:b(n,r)}}}function A(e,t){if(t[e.selector.uuid]&&function(e,t){if(!t)return;if(e.selector={...e.selector,...t},e.overrides)for(const n of e.overrides)n.selector={...n.selector,...t}}(e,t[e.selector.uuid]),e.auxiliaryDescriptors)for(const n of e.auxiliaryDescriptors)A(n,t)}!function(e){e.EQUALS="equals",e.CONTAINS="contains"}(t.EmailSelectorComparator||(t.EmailSelectorComparator={})),function(e){e.MISSING="missing",e.PRESENT="present"}(t.ElementExpectation||(t.ElementExpectation={})),t.isFindOptions=function(e){return e&&(void 0===e.waitUntil||function(e){return e&&void 0!==e.timeoutSeconds}(e.waitUntil))},t.isFindElementDescriptor=function(e){return e&&s(e.findType)},function(e){e.FIND_ALL="find_all",e.FIND_ANY="find_any",e.FIND_COOKIE="find_cookie",e.FIND_EMAIL="find_email",e.FIND_FIRST="find_first",e.FIND_LAST="find_last",e.FIND_ONE="find_one",e.FIND_TAB="find_tab"}(a=t.FindType||(t.FindType={})),function(e){e.fromString=function(t){const n=t;if(!Object.values(e).includes(n))throw new Error(`No FindType match found for value: ${t}`);return n}}(a=t.FindType||(t.FindType={})),t.isFindType=function(e){return!!Object.values(a).find((t=>t===e))},t.isFindElementType=s,function(e){e.EQUALS="equals",e.CONTAINS="contains"}(l=t.PropertyComparator||(t.PropertyComparator={})),function(e){e.LOW="low",e.MEDIUM="medium",e.HIGH="high",e.UNKNOWN="unknown"}(t.ConfidenceLevel||(t.ConfidenceLevel={})),t.isFindCustomDescriptor=function(e){return e&&"object"==typeof e&&"string"==typeof e.findType&&[a.FIND_ALL,a.FIND_FIRST,a.FIND_LAST,a.FIND_ANY].includes(e.findType)},t.getIsUserIntended=function(e,t){return!!t?.[c(e)]?.intended},t.getComparatorForAttribute=function(e,t){return u(c(e),t)},t.getComparator=u,t.getEffectiveValue=function(e,t,n){return d(c(e),t,n)},t.getEffectiveSelectorValue=d,t.compareStrings=function(e,t,n){return!(!e||!t)&&(n&&n!==l.EQUALS?n===l.CONTAINS&&t.includes(e):e===t)},t.getWaitUntilTimeoutMs=function(e){return e.findOptions?.waitUntil?.timeoutSeconds?1e3*e.findOptions?.waitUntil?.timeoutSeconds:void 0},t.descriptorHasOrdinalPreference=f,t.findIsRepeatedElements=function(e){return f(e)||(e.auxiliaryDescriptors||[]).some(f)},t.descriptorHasWaitTimeout=E,t.descriptorHasIntendedProperties=p,t.findIsWaitUntil=function(e){return E(e)&&(p(e)||(e?.auxiliaryDescriptors||[]).some(p))},t.isRelativeXpath=m,t.computeRelativeXpath=function(e,t){if(e.startsWith(t)&&e.length>t.length)return"."+e.substring(t.length)},t.matchesAncestorXpath=_,t.isAncestor=g,t.getAncestorDescriptor=function(e){if(e.auxiliaryDescriptors&&e.auxiliaryDescriptors.length>0){const t=e.auxiliaryDescriptors.filter((t=>g(e,t)));if(t.length>0){const n=t[0],r=(e.auxiliaryDescriptors||[]).filter((e=>e!==n)),i={...n},o=e.selector;return"#document-fragment"===o.currentContextNode?.nodeName&&(i.selector.currentContextNode=o.currentContextNode),{...e.type?{type:e.type}:{},...e.findOptions?{findOptions:e.findOptions}:{},...i,auxiliaryDescriptors:r}}}},t.mapWaitUntilToPropertyPreferences=function(e){return e.findOptions?.waitUntil?.properties&&Object.keys(e.findOptions.waitUntil.properties).length?function(e,t){const n=h(e,t),r=(e.auxiliaryDescriptors||[]).map((e=>h(e,t)));return r.length&&(n.auxiliaryDescriptors=r),n}(e,e.findOptions.waitUntil.properties):e},t.mapHintsToFindDescriptor=function(e){return e.findOptions?.hints?.selectorSubstitutions&&A(e,e.findOptions.hints.selectorSubstitutions),e},t.isNormalizedFindDescriptor=function(e){return"object"==typeof e&&e?.selector&&(0,r.isStandardSelector)(e.selector)},t.isNormalizedFindEmailDescriptor=function(e){return"object"==typeof e&&e?.selector&&(0,r.isEmailSelector)(e.selector)},t.buildFindEmailDescriptorString=function(e){const{configuration:t,selector:n}=e,r=(0,o.buildEmailSelectorString)(n),a=t&&(0,i.buildStepArgumentString)({params:{...t},legacy:!1});return`{selector: ${r}`+(a?`, configuration: ${a}}`:"}")},t.isAutoHealAuthorized=function(e){return!1!==e.findOptions?.autoHealOptions?.isAutoHealAuthorized}},257:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertToNormalizedFindEmailDescriptor=t.isEmailFindDescriptor=t.isCustomFindDescriptor=t.isFindOneDescriptor=void 0,t.isFindOneDescriptor=function(e){return e&&!e.foundElementSelectors&&!!e.selector},t.isCustomFindDescriptor=function(e){return!!e?.primarySelectors},t.isEmailFindDescriptor=function(e){return e&&"email"===e.type&&e.emailSelector},t.convertToNormalizedFindEmailDescriptor=function(e){return e.emailConfiguration?{type:"email",selector:{selector_type:"email",...e.emailSelector},configuration:e.emailConfiguration}:{type:"email",selector:{selector_type:"email",...e.emailSelector}}}},26:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_ATTR_PROPS_OPTIONS=t.ALLOWED_ASSERTABLE_CSS_PROPS=t.ALLOWED_ASSERTABLE_ATTRS_PROPS=t.ASSERTABLE_ATTRIBUTE_TYPES=void 0,t.ASSERTABLE_ATTRIBUTE_TYPES=["string","number","boolean"],t.ALLOWED_ASSERTABLE_ATTRS_PROPS=["accessKey","accessKeyLabel","align","alt","aria-checked","aria-label","aria-labelledby","aria-disabled","autofocus","border","checked","class","className","clientHeight","clientLeft","clientTop","clientWidth","complete","computedName","computedRole","contentEditable","contextMenu","crossOrigin","currentSrc","dataset","defaultChecked","defaultValue","dir","disabled","draggable","formEncType","formMethod","formNoValidate","formTarget","height","hidden","href","hspace","id","indeterminate","inert","innerText","isContentEditable","isMap","itemId","itemScope","lang","length","localName","longDesc","lowSrc","maxLength","multiple","name","namespaceURI","naturalHeight","naturalWidth","noModule","offsetHeight","offsetLeft","offsetTop","offsetWidth","prefix","referrerPolicy","required","selectedIndex","size","sizes","slot","src","srcset","tabIndex","tagName","textContent","title","translate","type","validationMessage","validity","value","vspace","width","willValidate"],t.ALLOWED_ASSERTABLE_CSS_PROPS=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","azimuth","backface-visibility","background-attachment","background-blend-mode","background-clip","background-color","background-origin","background-position","background-repeat","background-size","background","bleed","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-bottom","border-collapse","border-color","border-image-outset","border-image-repeat","border-image-source","border-image-slice","border-image-width","border-left-color","border-left-style","border-left-width","border-left","border-radius","border-right-color","border-right-style","border-right-width","border-right","border-spacing","border-style","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-top","border-width","border","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-interpolation-filters","columns","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","content","counter-increment","counter-reset","cue-after","cue-before","cue","cursor","direction","display","elevation","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","font-family","font-feature-settings","font-kerning","font-language-override","font-size-adjust","font-size","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","font","gap","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column-end","grid-column-gap","grid-column-start","grid-column","grid-gap","grid-row-end","grid-row-gap","grid-row-start","grid-row","grid-template-areas","grid-template-columns","grid-template-rows","grid-template","grid","hanging-punctuation","height","hyphens","image-rendering","isolation","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style-position","list-style-type","list-style","margin-bottom","margin-left","margin-right","margin-top","margin","marker-offset","marks","max-height","max-width","min-height","min-width","mix-blend-mode","nav-up","nav-down","nav-left","nav-right","object-fit","object-position","opacity","order","orphans","outline-color","outline-offset","outline-style","outline-width","outline","overflow","overflow-wrap","overflow-x","overflow-y","padding-bottom","padding-left","padding-right","padding-top","padding","page-break-after","page-break-before","page-break-inside","page","pause-after","pause-before","pause","perspective","perspective-origin","pitch-range","pitch","place-content","place-items","place-self","play-during","position","quotes","resize","rest-after","rest-before","rest","richness","right","row-gap","size","speak-header","speak-numeral","speak-punctuation","speak","speech-rate","stress","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-justify","text-indent","text-orientation","text-overflow","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"],t.ALL_ATTR_PROPS_OPTIONS={},t.ALLOWED_ASSERTABLE_ATTRS_PROPS.forEach((e=>t.ALL_ATTR_PROPS_OPTIONS[e]=""))},564:(e,t)=>{"use strict";function n(e,t,n,r,i){const o=Math.max(n,i??0)||1,a=e-t,l=a/o;return{rawChange:a,normalizedChange:l,deviationUnit:o,similarity:Math.max(0,1-Math.abs(l)/(r||1))}}function r(e,t,n){return{minimum:Math.round(Math.max(e-t*n,0)),maximum:Math.round(e+t*n)}}function i(e,t,n,i){const o=r(t,n,i);return o.minimum<=e&&e<=o.maximum}function o(e){return!!e&&"string"===e.value_type&&(void 0===e.found_value||"string"==typeof e.found_value)}function a(e){return!!e&&"number"===e.value_type&&(void 0===e.found_value||"number"==typeof e.found_value)}function l(e,n){if("string"==typeof n){const r=n?.substring(0,t.MAX_APP_STATE_VALUE_LENGTH);return{attribute_id:e,value_type:"string",found_value:r,is_found_value_truncated:void 0!==r&&r.length<n.length}}return{attribute_id:e,value_type:"number",found_value:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.appStateAttributeMatch=t.getAppState=t.isAppStateNumber=t.isAppStateString=t.isValueInPositiveIntegerRange=t.getPositiveIntegerRange=t.getAppChangeNormalized=t.APP_STATE_MAX_SIMILARITY_DEVIATIONS=t.APP_STATE_RANGE_MAX_MATCH_DEVIATIONS=t.APP_STATE_RANGE_MIN_DEVIATION_UNIT_BY_PERCENTAGE=t.MAX_APP_STATE_VALUE_LENGTH=void 0,t.MAX_APP_STATE_VALUE_LENGTH=300,t.APP_STATE_RANGE_MIN_DEVIATION_UNIT_BY_PERCENTAGE=.1,t.APP_STATE_RANGE_MAX_MATCH_DEVIATIONS=3,t.APP_STATE_MAX_SIMILARITY_DEVIATIONS=5,t.getAppChangeNormalized=n,t.getPositiveIntegerRange=r,t.isValueInPositiveIntegerRange=i,t.isAppStateString=o,t.isAppStateNumber=a,t.getAppState=function(){return[l("pageTitle",document.title),l("urlPathname",document.location.pathname),l("urlSearch",document.location.search),l("urlHash",document.location.hash),l("innerTextLength",document.body?.innerText?.length??0),l("elementCount",document.getElementsByTagName("*").length),l("inputCount",document.getElementsByTagName("input").length),l("anchorCount",document.getElementsByTagName("a").length),l("headingCount",document.getElementsByTagName("h1").length+document.getElementsByTagName("h2").length+document.getElementsByTagName("h3").length)]},t.appStateAttributeMatch=function(e,r){if(void 0===r||void 0===r.expected_value&&void 0===r.recent_values)return;let l,s,c;if(o(e)){if(void 0===r.recent_values||0===r.recent_values.length)return;s=void 0!==e.found_value&&r.recent_values.includes(e.found_value),l=s?e.found_value:r.recent_values?.[0],c=s?1:0}else{if(!a(e))return;if(l=r.expected_value,void 0===l)return;if(void 0===e.found_value)s=!1,c=0;else{const o=n(e.found_value,l,l*t.APP_STATE_RANGE_MIN_DEVIATION_UNIT_BY_PERCENTAGE,t.APP_STATE_MAX_SIMILARITY_DEVIATIONS,r.standard_deviation);c=o.similarity,s=i(e.found_value,l,o.deviationUnit,t.APP_STATE_RANGE_MAX_MATCH_DEVIATIONS)}}return{targetValue:l,isMatch:s,similarity:c}}},583:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xpathElement=t.maybeGetRootNode=t.createXpathFromPathArray=t.sanitizeXPath=t.getAncestorElements=t.isSelect=t.isFileInput=t.isTextField=t.isInputField=t.getInputTypeFromElement=t.getPlaceholderFromElement=t.getAnchorHrefFromElement=t.getInputLabelFromElement=t.getLabelUsingForAttribute=t.getLabelForInput=t.normalizeText=t.truncateText=t.getSlotTextFromElement=t.getTextFromElement=t.formatText=t.compactWhitespace=t.createXPathFromElement=t.getIframesInfo=t.getCssPropertyMap=t.getAttributePropertyMap=t.getSelectedTextFromElement=t.getClassNameFromElement=t.getSelectedIndexFromElement=t.getElementValueFromElement=t.getNodeNameFromElement=t.getTagNameFromElement=t.getNameFromElement=t.getIdFromElement=t.createIgnoredDomElement=t.createBaseEventMessage=t.getSelectorElementAttributes=t.getAttributeFromElement=t.getPropertyFromElement=t.MAX_SELECTOR_OTHER_ATTRIBUTES=t.MAX_SELECTOR_ATTRIBUTE_VALUE_LENGTH=t.MAX_ATTRIBUTE_SIZE=t.MAX_SELECTOR_INNER_TEXT_LENGTH=t.MABL_INSERTED_ELEMENTS=t.MABL_SECONDARY_DRAGGABLE_DIV_ID=t.MABL_TERTIARY_IFRAME_ID=t.MABL_IGNORE_ELEMENT_CLASS=t.MABL_DRAGGABLE_DIV_ID=t.MABL_SECONDARY_IFRAME_ID=t.MABL_HIGHLIGHT_ID=t.MABL_OVERLAY_ID=void 0,t.getXPathTagExpression=t.isNotDefaultNamespace=t.getParentElements=t.removeParentElements=t.isElementInShadowRoot=t.isExpectedToBeInvisible=t.isElementClickable=t.isDisplayed=t.getInnerText=t.getElementByXpath=t.getAllElementsByXpath=t.getFirstElementBySelectors=t.getLastElementBySelectors=t.getAllElementBySelectors=t.destroyElement=t.getElementMatchingSelectionTarget=t.selectOption=t.adjustTarget=t.removeOverlayById=t.destroySelectionOverlay=t.highlightElements=t.highlightElement=t.positionSelectionHighlight=t.renderSelectionOverlay=void 0;const r=n(26),i=n(564);t.MABL_OVERLAY_ID="mabl-selection-overlay-22b76b1b-4c57-4644-98ab-6f2ff555d1cc",t.MABL_HIGHLIGHT_ID="mabl-selection-highlight-22b76b1b-4c57-4644-98ab-6f2ff555d1cc";const o="mabl-selection-overlay-22b76b1b-4c57-4644-98ab-6f2ff555d1cc";var a;t.MABL_SECONDARY_IFRAME_ID="mabl-secondary-iframe-22b76b1b-4c57-4644-98ab-6f2ff555d1cc",t.MABL_DRAGGABLE_DIV_ID="mabl-draggable-div-22b76b1b-4c57-4644-98ab-6f2ff555d1cc",t.MABL_IGNORE_ELEMENT_CLASS="mabl-element-ignore-actions",t.MABL_TERTIARY_IFRAME_ID="mabl-tertiary-iframe-22b76b1b-4c57-4644-98ab-6f2ff555d1cc",t.MABL_SECONDARY_DRAGGABLE_DIV_ID="mabl-secondary-draggable-div-22b76b1b-4c57-4644-98ab-6f2ff555d1cc",t.MABL_INSERTED_ELEMENTS=[t.MABL_OVERLAY_ID,t.MABL_HIGHLIGHT_ID,o,"mabl-iframe-22b76b1b-4c57-4644-98ab-6f2ff555d1cc","mabl-iframe-draggable-22b76b1b-4c57-4644-98ab-6f2ff555d1cc",t.MABL_SECONDARY_IFRAME_ID,t.MABL_DRAGGABLE_DIV_ID],function(e){e[e["accessibility-check"]=0]="accessibility-check",e[e["assert-cookie"]=1]="assert-cookie",e[e["assert-email"]=2]="assert-email",e[e["assert-variable"]=3]="assert-variable",e[e["await-tab"]=4]="await-tab",e[e["await-uploads"]=5]="await-uploads",e[e["clear-cookies"]=6]="clear-cookies",e[e.click=7]="click",e[e.click_hold=8]="click_hold",e[e.conditional_else=9]="conditional_else",e[e.conditional_end=10]="conditional_end",e[e["double-click"]=11]="double-click",e[e.download=12]="download",e[e["download-pdf"]=13]="download-pdf",e[e.echo=14]="echo",e[e["end-flow"]=15]="end-flow",e[e["evaluate-js-snippet"]=16]="evaluate-js-snippet",e[e.hover=17]="hover",e[e.input=18]="input",e[e.keypress=19]="keypress",e[e.location=20]="location",e[e["mouse-select"]=21]="mouse-select",e[e.navigation=22]="navigation",e[e["open-email"]=23]="open-email",e[e.release=24]="release",e[e["remove-cookie"]=25]="remove-cookie",e[e["send-http-request"]=26]="send-http-request",e[e["set-cookie"]=27]="set-cookie",e[e["set-files"]=28]="set-files",e[e["set-variable"]=29]="set-variable",e[e["start-flow"]=30]="start-flow",e[e["switch-context-to"]=31]="switch-context-to",e[e["synthetic-click"]=32]="synthetic-click",e[e.url=33]="url",e[e["visit-url"]=34]="visit-url",e[e.viewport=35]="viewport",e[e.wait=36]="wait"}(a||(a={}));const l=["button","checkbox","file","radio","reset","submit"],s="http://www.w3.org/1999/xhtml";function c(e,t){return g(e[t])}function u(e,t){return g(e.getAttribute(t))}t.MAX_SELECTOR_INNER_TEXT_LENGTH=300,t.MAX_ATTRIBUTE_SIZE=5e3,t.MAX_SELECTOR_ATTRIBUTE_VALUE_LENGTH=300,t.MAX_SELECTOR_OTHER_ATTRIBUTES=3,t.getPropertyFromElement=c,t.getAttributeFromElement=u;const d=[{name:"src",attribute:"src",handler:c},{name:"elementId",attribute:"id",handler:_},{name:"tagName",handler:b},{name:"text",handler:v},{name:"slotText",handler:I},{name:"label",handler:M},{name:"href",attribute:"href",handler:x},{name:"placeholder",attribute:"placeholder",handler:D},{name:"inputElementType",attribute:"type",handler:C},{name:"inputValue",attribute:"value",handler:A},{name:"className",attribute:"class",handler:y},{name:"visible",handler:function(e){return K(e).toString()}},{name:"clickable",handler:function(e){return q(e).toString()}},{name:"namespaceURI",handler:c},...[{name:"alt",attribute:"alt"},{name:"form",attribute:"form"},{name:"for",attribute:"for"},{name:"target",attribute:"target"},{name:"name",attribute:"name"},{name:"target",attribute:"target"},{name:"name",attribute:"name"},{name:"dataTracking",attribute:"data-tracking"},{name:"titleAttr",attribute:"title"},{name:"ariaLabel",attribute:"aria-label"},{name:"labelAttr",attribute:"label"},{name:"dataAutobotElementId",attribute:"data-autobot-element-id"},{name:"dataAutomationId",attribute:"data-automation-id"},{name:"automationid",attribute:"automationid"},{name:"dataTestId",attribute:"data-test-id"},{name:"dataTestid",attribute:"data-testid"},{name:"testId",attribute:"test-id"},{name:"ngModel",attribute:"ng-model"},{name:"ngShow",attribute:"ng-show"},{name:"ngClass",attribute:"ng-class"},{name:"ariaOwns",attribute:"aria-owns"},{name:"ariaLabelledby",attribute:"aria-labelledby"},{name:"ariaControls",attribute:"aria-controls"},{name:"tabindex",attribute:"tabindex"},{name:"role",attribute:"role"},{name:"maxlength",attribute:"maxlength"},{name:"autocomplete",attribute:"autocomplete"},{name:"height",attribute:"height"},{name:"width",attribute:"width"},{name:"style",attribute:"style"},{name:"dataTarget",attribute:"data-target"},{name:"dataValue",attribute:"data-value"},{name:"dataId",attribute:"data-id"},{name:"dataName",attribute:"data-name"},{name:"dataProp",attribute:"data-prop"},{name:"index",attribute:"index"},{name:"item",attribute:"item"}].map((e=>({...e,handler:u})))],f=d.map((e=>e.attribute)).filter((e=>void 0!==e)),E=[{propertyName:"slotText",extractor:I}];function p(e){const n=[...e?.attributes??[]].filter((e=>!f.includes(e.name))).filter((e=>void 0!==e.name&&null!==e.name&&void 0!==e.value&&null!==e.value)).map((e=>function(e,n){const r=n.substring(0,t.MAX_SELECTOR_ATTRIBUTE_VALUE_LENGTH);return{id:e,value:r,is_truncated:r.length<n.length}}(e.name,e.value)));if(n.length>0&&n.length<=t.MAX_SELECTOR_OTHER_ATTRIBUTES)return n}function m(e,t,n,r,o,a=!0,l=!0){const s={action:t,listener:n,xPath:r,context:o};if(d.forEach((t=>{s[t.name]=t.handler(e,t.attribute||t.name)})),a&&(s.appState=(0,i.getAppState)()),l){const t=p(e);t&&(s.otherAttributes=t)}return s}function _(e){return g(e.id)}function g(e){return"string"!=typeof e||e.length<t.MAX_ATTRIBUTE_SIZE?e??void 0:void 0}function b(e){return e?.tagName?.toLowerCase()}function h(e){return g(e?.nodeName?.toLowerCase())}function A(e){return g(e.value)}function y(e){return g("string"==typeof e.className?e.className:"")}function T(e){return w(e,"")}function R(e){return e?.replace(/[ \s\t\xA0\u1680\u180e\u2000-\u200d\u202f\u205f\u3000\n\x0B\f\r\x85\u2028\u2029\u2060]+/g," ")?.trim()}function S(e){return R(e).substring(0,t.MAX_SELECTOR_INNER_TEXT_LENGTH).replace(/"/g,'\\"')}function v(e){let t=e.innerText;return void 0===t&&J(e.namespaceURI)&&(t=e.textContent??""),S(t??"")}function I(e){const t=e.querySelectorAll("slot");if(1!==t.length)return;const n=t.item(0).assignedNodes().find((e=>e.nodeType===Node.TEXT_NODE));return n?S(n.data):void 0}function N(e,t){return e?.substring(0,t)??e}function O(e,n=!0){const r=R(e);return r&&n?N(r,t.MAX_SELECTOR_INNER_TEXT_LENGTH):r}function P(e){if(!e||!F(e))return;const t=e.closest("label");if(t)return t;const n=L(e);if(n)return n;const r=z("(./preceding-sibling::*//descendant-or-self::*[self::input|self::label])[last()]",e);if(r.length>0){const e=r[0];if("label"===b(e)&&!e.getAttribute("for"))return e}const i=z("(../preceding-sibling::*//descendant-or-self::*[self::input|self::label])[last()]",e);if(i.length>0){const e=i[0];if("label"===b(e)&&!e.getAttribute("for"))return e}}function L(e){if(e?.id&&-1===e?.id.indexOf("\n")){const t=`${e.id||""}`.replace(/'/g,"\\'"),n=document.querySelector(`label[for='${t}']`);if(n)return n}}function M(e){const t=P(e);if(t)return v(t)}function x(e){if("a"===b(e))return g(e.href)}function D(e){if(F(e))return g(e.placeholder)}function C(e){if(F(e))return e.type||"text"}function F(e){const t=b(e);return"input"===t||"textarea"===t}function w(e,t){const n=e?.parentElement;if(n){return w(n,`/${G(e,n)}${t}`)}if(Z(e)){return U(`//${G(e,e.getRootNode())}${t}`)}return U(`//html[1]${t}`)}function U(e){return(e=e.replace("*[local-name()='#document-fragment']/shadow[1]/body","body[1]")).replace(/#document-fragment\[0]\/shadow\[1]\/body\[0]/,"body[1]")}function V(e){if("function"==typeof e.getRootNode)return e.getRootNode()}function G(e,t){let n;const r=h(e);n=r?e instanceof HTMLElement&&!r?.includes(":")?r:`*[local-name()='${r}']`:"*";const i=function(e,t){let n=-1;const r=h(e);if(!r)return n;for(const i in t)if(t?.hasOwnProperty(i)){const o=t[i];if(h(o)===r&&(n+=1,o===e))return n}return n}(e,t.children)+1;return i?`${n}[${i}]`:`${n}`}function B(){const e=document.createElement("div");return e.id=t.MABL_HIGHLIGHT_ID,e.classList.add(o),e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="0",e.style.height="0",e.style.borderStyle="solid",e.style.borderWidth="2px",e.style.borderColor="black",e}function X(e,n,r){const i=e.getBoundingClientRect(),o=B();o.id=`${t.MABL_HIGHLIGHT_ID}-${n}`,o.style.left=j(i.x),o.style.top=j(i.y),o.style.width=j(i.width),o.style.height=j(i.height),r.appendChild(o)}function j(e){return`${Math.round(e)}px`}function k(e){const t=document.getElementById(e);if(t)try{document.body.removeChild(t)}catch{document.documentElement.removeChild(t)}}function H(e){e?.parentNode?.removeChild(e)}function $(e){return e.css_query?function(e){const t=document.querySelectorAll(e);return t.item(t.length-1)}(e.value||e.css_query):e.xpath?(t=e.value||e.xpath,z(t,n)?.pop()):void 0;var t,n}function Y(e){return e.css_query?document.querySelector(e.value||e.css_query):e.xpath?W(e.value||e.xpath):void 0}function z(e,t=document,n=!0){t=void 0!==t?t:document;const r=[];let i;try{i=document.evaluate(e,t,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null)}catch(e){if(n&&e instanceof DOMException)return console.log(e),[];throw e}for(let e=0,t=i.snapshotLength;e<t;++e)r.push(i.snapshotItem(e));return r}function W(e,t=document,n=!0){t=void 0!==t?t:document;try{return document.evaluate(e,t,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}catch(e){if(n&&e instanceof DOMException)return console.log(e),null;throw e}}function K(e){if("input"===b(e)&&"hidden"===e.type?.toLowerCase())return!1;if(!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))return!1;const t=window.getComputedStyle(e);return(!t||"0"!==t.opacity)&&(t&&"none"!==t.display&&"collapse"!==t.visibility&&"hidden"!==t.visibility)}function q(e){return Q(e)||function(e){const t=function(e){if(!e)return;const t=e.getBoundingClientRect();if(void 0!==t.left&&void 0!==t.top&&void 0!==t.height&&void 0!==t.width)return{x:Math.round(t.left+t.width/2),y:Math.round(t.top+t.height/2)};return}(e);if(!t||0===t.x&&0===t.y)return!1;return Q(document.elementFromPoint(t.x,t.y))}(e)}function Q(e){const t=e;return!!e&&(null!==t.onclick||null!==t.onpointerdown||null!==t.onpointerup||"pointer"===window.getComputedStyle(e)?.cursor)}function Z(e){return"#document-fragment"===V(e)?.nodeName}function J(e){return null!=e&&e.toLowerCase()!==s.toLowerCase()}t.getSelectorElementAttributes=p,t.createBaseEventMessage=m,t.createIgnoredDomElement=function(e){const n=document.createElement(e);return n.className=t.MABL_IGNORE_ELEMENT_CLASS,n},t.getIdFromElement=_,t.getNameFromElement=function(e){return g(e.name)},t.getTagNameFromElement=b,t.getNodeNameFromElement=h,t.getElementValueFromElement=A,t.getSelectedIndexFromElement=function(e){return e.selectedIndex},t.getClassNameFromElement=y,t.getSelectedTextFromElement=function(e){if("select"===b(e)&&e?.selectedOptions&&!(e?.selectedOptions?.length<1))return e.selectedOptions[0].innerText},t.getAttributePropertyMap=function(e){const t={};for(const n in e)try{const i=e[n],o=typeof i;if(r.ALLOWED_ASSERTABLE_ATTRS_PROPS.includes(n)&&r.ASSERTABLE_ATTRIBUTE_TYPES.includes(o)){if(null==i||"string"===o&&!i.length&&"value"!==n)continue;t[n]=O(i.toString(),!1)}}catch(e){console.error("Could not process an attribute/property for element",e)}return e.getAttributeNames().forEach((n=>{if(!t?.hasOwnProperty(n)){const r=e.getAttribute(n);t[n]=O(r||"",!1)}})),E.forEach((n=>{const r=n.extractor(e);r&&(t[n.propertyName]=r)})),t},t.getCssPropertyMap=function(e){const t={},n=window.getComputedStyle(e);return r.ALLOWED_ASSERTABLE_CSS_PROPS.forEach((e=>{""!==n.getPropertyValue(e)&&(t[e]=n.getPropertyValue(e))})),t},t.getIframesInfo=function(){const e=[];return[].forEach.call(document.getElementsByTagName("iframe"),(n=>{if(!t.MABL_INSERTED_ELEMENTS.includes(n.id)){const t=m(n,"record","switch-context-to",T(n),void 0,!1,!1);t.absoluteSrc=n.src,e.push(t)}})),e},t.createXPathFromElement=T,t.compactWhitespace=R,t.formatText=S,t.getTextFromElement=v,t.getSlotTextFromElement=I,t.truncateText=N,t.normalizeText=O,t.getLabelForInput=P,t.getLabelUsingForAttribute=L,t.getInputLabelFromElement=M,t.getAnchorHrefFromElement=x,t.getPlaceholderFromElement=D,t.getInputTypeFromElement=C,t.isInputField=F,t.isTextField=function(e){const t=b(e),n=e.type;return"input"===t&&!l.includes(n)||"textarea"===t},t.isFileInput=function(e){const t=b(e),n=(e.type||"").toLowerCase();return"input"===t&&"file"===n},t.isSelect=function(e){return"select"===b(e)},t.getAncestorElements=function(e,t=0,n=[]){const r=[],i=n.map((e=>e.toLowerCase()));let o=e?.parentElement;for(;o&&(t<=0||r.length<t);)i.includes(b(o))||r.push(o),o=o.parentElement;return r},t.sanitizeXPath=U,t.createXpathFromPathArray=function(e){return U(`//${e.map(((e,t,n)=>{const r=h(e);if(!r)return"";const i=n[t+1];return"#document"!==r&&i&&i?G(e,i):""})).reduce(((e,t)=>""===t?e:`${t}/${e}`))}`)},t.maybeGetRootNode=V,t.xpathElement=G,t.renderSelectionOverlay=function(e){const n=document.createElement("div");n.id=t.MABL_OVERLAY_ID,n.classList.add(o),n.setAttribute("style","\n position: fixed;\n display: none;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(24,197,207,0.25);\n z-index: 2147483646;\n cursor: pointer;\n display:block;");const r=document.createElement("div");r.classList.add(o),r.innerText=e,r.setAttribute("style","\n position: absolute;\n top: 50%;\n left: 50%;\n font-size: 50px;\n color: white;\n transform: translate(-50%,-50%);\n -ms-transform: translate(-50%,-50%);"),n.appendChild(r);const i=B();n.appendChild(i);try{document.body.appendChild(n)}catch{document.documentElement.appendChild(n)}},t.positionSelectionHighlight=function(e){const n=document.elementsFromPoint(e.clientX,e.clientY).find((e=>!e.classList.contains(o)));if(!n)return;const r=n.getBoundingClientRect(),i=document.getElementById(t.MABL_HIGHLIGHT_ID);i&&(i.style.left=j(r.x),i.style.top=j(r.y),i.style.width=j(r.width),i.style.height=j(r.height))},t.highlightElement=X,t.highlightElements=function(e){const n=`${t.MABL_HIGHLIGHT_ID}-parent`;let r=document.getElementById(n);r&&H(r),r=document.createElement("div"),r.id=n,e.length>0&&e.forEach(((e,t)=>{X(e,t,r)}));const i=document.getElementById(t.MABL_OVERLAY_ID),a=document.createElement("div");a.classList.add(o),a.innerText=`${e.length} elements found`,a.setAttribute("style","\n position: absolute;\n top: 60%;\n left: 50%;\n font-size: 40px;\n color: white;\n transform: translate(-50%,-50%);\n -ms-transform: translate(-50%,-50%);"),r.appendChild(a),i.appendChild(r)},t.destroySelectionOverlay=function(){k(t.MABL_OVERLAY_ID)},t.removeOverlayById=k,t.adjustTarget=function(e,t){let n=e,r=t?.slice();for(;n&&!(n instanceof HTMLElement);)n=n.parentElement,r?.pop();const i=function(e,t){const n=b(e);if("button"!==n&&"input"!==n){let e;t.forEach(((t,n)=>{const r=b(t)??"";e||"button"!==r&&"input"!==r||(e=n)})),e&&(t=t.slice(e))}return t}(e,r);return i!==r&&(n=i[0],r=i),function(e){const t=b(e);return"html"===t}(n)&&(n=void 0,r=void 0),{path:r,target:n}},t.selectOption=function(e,t,n){e.focus(),"any"===t?e.options.length>1&&0===e.selectedIndex?e.selectedIndex=1:e.selectedIndex=0:e.selectedIndex=[...e.options].findIndex((e=>e.innerText===n)),e.dispatchEvent(new Event("change")),e.blur();const r=new InputEvent("input");e.dispatchEvent(r)},t.getElementMatchingSelectionTarget=function(e){return"primarySelectors"in e.find?"find_last"===e.find.type?$(e.find.primarySelectors):Y(e.find.primarySelectors):e.xPath?W(e.xPath):void 0},t.destroyElement=H,t.getAllElementBySelectors=function(e){try{if(e.css_query)return document.querySelectorAll(e.value||e.css_query);if(e.xpath)return z(e.value||e.xpath)}catch(e){}return[]},t.getLastElementBySelectors=$,t.getFirstElementBySelectors=Y,t.getAllElementsByXpath=z,t.getElementByXpath=W,t.getInnerText=function e(t){const n=b(t)||"";return"select"!==n&&"option"!==n&&"optgroup"!==n?t.innerText||"":K(t)?[("option"===n?t.innerText||t.text:t.innerText)||"",Array.from(t.childNodes||[]).map(e).filter((e=>e)).join(" ")].filter((e=>e)).join(" "):""},t.isDisplayed=K,t.isElementClickable=q,t.isExpectedToBeInvisible=function(e){return"input"===b(e)&&"file"===e?.type?.toLowerCase()},t.isElementInShadowRoot=Z,t.removeParentElements=function(e){return e?e.filter((t=>!e.some((e=>t!==e&&t.contains(e))))):[]},t.getParentElements=function(e){const t=[];let n=e.parentElement;for(;n;)t.push(n),n=n.parentElement;return t},t.isNotDefaultNamespace=J,t.getXPathTagExpression=function(e,t=!0){const n=t?e.tag_name:void 0;return n?.includes(":")||J(e.namespace_uri)&&n?`*[local-name()='${n}']`:n??"*"}},232:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MablscriptUtils=t.replaceVariables=t.findVariables=t.b64DecodeUnicode=t.b64EncodeUnicode=t.serializeStepArgumentValue=t.buildStepArgumentString=t.isValidVariableName=t.isValidUserVariableName=t.getVariableNameFromLoneVariablePattern=t.isLoneVariablePattern=t.unescapeMablscriptString=t.escapeMablscriptString=void 0;const a=n(501);function l(e){return"string"==typeof e?e.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/"/g,'\\"').replace(/\r/g,"").replace(/\u2028/gu,"\\u2028").replace(/\u2029/gu,"\\u2029"):""}function s(e){return!!e&&RegExp(a.LONE_VARIABLE_REGEXP).test(e)}function c(e,t){return t?u(e):d(e)}function u(e){switch(typeof e){case"string":return`"${l(e)}"`;case"boolean":case"number":return`${e}`;case"object":{if(e instanceof Array)return`[${e.map(u).join(",")}]`;const t=[];return Object.keys(e).forEach((n=>{const r=u(e[n]);n&&"string"==typeof r&&r&&t.push(`"${n}":${r}`)})),t.sort(),`{${t.join(",")}}`}default:return}}function d(e){switch(typeof e){case"string":return`"${l(e)}"`;case"boolean":case"number":return`${e}`;case"object":{if(e instanceof Array)return`[${e.map(d).join(", ")}]`;const t=[];return Object.keys(e).forEach((n=>{const r=d(e[n]);n&&"string"==typeof r&&r&&t.push(`${n}: ${r}`)})),t.sort(),`{${t.join(", ")}}`}default:return}}t.escapeMablscriptString=l,t.unescapeMablscriptString=function(e){return e.replace(/\\"/g,'"').replace(/\\n/g,"\n").replace(/\\\\/g,"\\")},t.isLoneVariablePattern=s,t.getVariableNameFromLoneVariablePattern=function(e){if(s(e)){const t=RegExp(a.LONE_VARIABLE_REGEXP);return e.match(t)?.groups?.[a.VARIABLE_GROUP_NAME]}},t.isValidUserVariableName=function(e){return!!e&&((0,a.USER_VARIABLE_REGEXP_CREATE)().test(e)&&-1===a.EXCLUDED_USER_VARIABLE_NAMES.indexOf(e))},t.isValidVariableName=function(e){return!!e&&(0,a.ALL_VARIABLE_REGEXP_CREATE)().test(e)},t.buildStepArgumentString=function(e){const{legacy:t,...n}=e;return c(n.params,t)},t.serializeStepArgumentValue=c,t.b64EncodeUnicode=function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt("0x"+t,16))})))},t.b64DecodeUnicode=function(e){try{return decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}catch(t){return atob(e)}},t.findVariables=function(e){const t=e?.match(a.PATTERN_REGEXP);return t?.reduce(((e,t)=>{const n=t?.match((0,a.VARIABLE_IN_EXPRESSION_REGEXP_CREATE)());return n?.forEach((t=>e.push(t.substring(1)))),e}),[])||[]},t.replaceVariables=function(e,t){return null===e?null:e?.replace(a.PATTERN_REGEXP,(e=>e.replace((0,a.VARIABLE_IN_EXPRESSION_REGEXP_CREATE)(),t)))},t.MablscriptUtils=o(n(232))},916:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMobileElementSelector=t.isMobileFindDescriptor=t.isWebViewFindElementDescriptor=t.isMobileFindCustomDescriptor=t.isMobileFindSpecification=t.isMobileFindElementDescriptor=void 0;const r=n(667);function i(e){const t=e;return!(!t||!(0,r.isFindElementType)(t.findType)||!t.findTarget?.selector?.android&&!t.findTarget?.selector?.iOS)}function o(e){const t=e,n=Array.isArray(t?.foundElementSelectors)?t?.foundElementSelectors[0]:t?.foundElementSelectors,i=n?.android||n?.iOS;return!!t?.findTarget?.xpath&&[r.FindType.FIND_ANY,r.FindType.FIND_FIRST,r.FindType.FIND_LAST,r.FindType.FIND_ALL].includes(e?.findType)&&!!i}t.isMobileFindElementDescriptor=i,t.isMobileFindSpecification=function(e){return e?.selector?.iOS||e?.selector?.android},t.isMobileFindCustomDescriptor=o,t.isWebViewFindElementDescriptor=function(e){return e?.webView&&i(e)},t.isMobileFindDescriptor=function(e){return i(e)||o(e)},t.isMobileElementSelector=function(e){return e?.android||e?.iOS}},303:(e,t)=>{"use strict";function n(e){const t=e.selector;if(r(t)&&!1!==e.accepted)return{...e,selector:t,selector_variant_id:e.selector_variant_id??`${t.uuid}:${e.created_time}:${e.journey_run_id}:${e.step_run_id}`,accepted:!0}}function r(e){if(!e)return!1;if("object"!=typeof e)return!1;const t=e,n=void 0!==t.uuid,r=void 0!==t.xpath,i=void 0!==t.css_query,o=void 0!==t.tag_name;return n&&(r||i||o)}function i(e){return void 0!==e.tag_name&&("input"===e.tag_name.toLowerCase()?!e.inputElementType||-1===["radio","button","submit","reset"].indexOf(e.inputElementType.toLowerCase()):-1===["button","option","li","param"].indexOf(e.tag_name.toLowerCase()))}function o(e){return e&&void 0!==e.uuid&&void 0!==e.xpath}function a(e,t,n){return!n||!(e in n)||!n[e](t)}Object.defineProperty(t,"__esModule",{value:!0}),t.areSelectorsEqual=t.isCompositeSelector=t.isStandardSelectorAndContext=t.isStandardSelector=t.isCookieSelector=t.isEmailSelector=t.isTabSelector=t.isCssSelector=t.isXPathSelector=t.ignoreValueAttribute=t.SELECTOR_ATTRIBUTE_KEYS=t.SELECTOR_EQUIVALENCE_IGNORED_KEYS=t.PROTOTYPE_TO_SELECTOR_ATTRIBUTE_MAP=t.isSimpleElementSelectorCommonKeys=t.isSimpleElementSelector=t.validateAndSortSelectorOverrides=t.validateSelectorOverride=t.isValidatedSelectorOverride=void 0,t.isValidatedSelectorOverride=function(e){return!!e&&r(e.selector)&&!0===e.accepted&&void 0!==e.selector_variant_id},t.validateSelectorOverride=n,t.validateAndSortSelectorOverrides=function(e){return e.map(n).filter((e=>void 0!==e)).sort(((e,t)=>t.created_time-e.created_time))},t.isSimpleElementSelector=r,t.isSimpleElementSelectorCommonKeys=function(e){return"string"==typeof e&&!["css_query","repeat_xpaths","selector_type","tag_name","uuid","xpath","app_state","other_attributes"].includes(e)},t.PROTOTYPE_TO_SELECTOR_ATTRIBUTE_MAP={elementId:"id",name:"name",href:"href",inputElementType:"inputElementType",label:"label",placeholder:"placeholder",tagName:"tag_name",text:"text",slotText:"slot_text",url:"url",title:"title",uuid:"uuid",xPath:"xpath",cssQuery:"css_query",className:"class_name",src:"src",alt:"alt",form:"form",for:"for_attr",target:"target",inputValue:"value",dataTracking:"data_tracking",titleAttr:"title_attr",ariaLabel:"aria_label",labelAttr:"label_attr",dataAutobotElementId:"data_autobot_element_id",automationid:"automationid",dataAutomationId:"data_automation_id",dataTestId:"data_test_id",dataTestid:"data_testid",testId:"test_id",ngModel:"ng_model",ngShow:"ng_show",ariaOwns:"aria_owns",ariaLabelledby:"aria_labelledby",ngClass:"ng_class",ariaControls:"aria_controls",tabindex:"tabindex",role:"role",maxlength:"maxlength",autocomplete:"autocomplete",height:"height",width:"width",style:"style",boundingX:"bounding_x",boundingY:"bounding_y",boundingHeight:"bounding_height",boundingWidth:"bounding_width",visible:"visible",clickable:"clickable",namespaceURI:"namespace_uri",dataTarget:"data_target",dataValue:"data_value",dataId:"data_id",dataName:"data_name",dataProp:"data_prop",index:"index",item:"item"},t.SELECTOR_EQUIVALENCE_IGNORED_KEYS={app_state:()=>!0,aria_owns:()=>!0,bounding_x:()=>!0,bounding_y:()=>!0,bounding_height:()=>!0,bounding_width:()=>!0,class_name:()=>!0,findable_ancestor_uuid:()=>!0,other_attributes:()=>!0,relative_xpath:()=>!0,repeat_xpaths:()=>!0,selector_type:()=>!0,style:()=>!0,title_attr:function(e){if(void 0===e.tag_name)return!1;return["input","textarea"].includes(e.tag_name.toLowerCase())},uuid:()=>!0,value:i},t.SELECTOR_ATTRIBUTE_KEYS=Object.keys(t.PROTOTYPE_TO_SELECTOR_ATTRIBUTE_MAP).map((e=>t.PROTOTYPE_TO_SELECTOR_ATTRIBUTE_MAP[e])),t.ignoreValueAttribute=i,t.isXPathSelector=function(e){return e&&void 0!==e.xpath},t.isCssSelector=function(e){return e&&void 0!==e.css_query},t.isTabSelector=function(e){return e&&"tab"===e.selector_type&&void 0!==e.url},t.isEmailSelector=function(e){return e&&"email"===e.selector_type},t.isCookieSelector=function(e){return e&&void 0!==e.name},t.isStandardSelector=o,t.isStandardSelectorAndContext=function(e){return e&&void 0!==e.currentContextNode},t.isCompositeSelector=function(e){return e&&e.length>=1&&e.every(o)};const l=["uuid","app_state","other_attributes","repeat_xpaths"];t.areSelectorsEqual=function(e,t,n=!0,r){if(void 0===e)return void 0===t;if(void 0===t)return!1;const i=Object.keys(e).filter((e=>!l.includes(e))).filter((t=>a(t,e,r))),o=Object.keys(t).filter((e=>!l.includes(e))).filter((e=>a(e,t,r)));if(i.length!==o.length)return!1;for(const n of i)if(e[n]!==t[n])return!1;if(n&&(e.other_attributes||t.other_attributes)){const n=(e.other_attributes??[]).filter((t=>a(t.id,e,r))),i=(t.other_attributes??[]).filter((e=>a(e.id,t,r)));if(n.length!==i.length)return!1;for(const e of n){const t=i.find((t=>e.id===t.id));if(!t||e.value!==t.value)return!1}}return!0}},501:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.containsMablTemplatePattern=t.isString=t.isNestableElement=t.LONE_VARIABLE_REGEXP=t.FAKER_FORMAT_IN_EXPRESSION_REGEX_CREATE=t.FAKER_EXPRESSION_REGEXP_CREATE=t.FAKER_EXPRESSION_NAMED_GROUP=t.FAKER_EXPRESSION=t.FAKE_NAMESPACE=t.FAKER_GROUP_NAME=t.RANDOM_FORMAT_IN_EXPRESSION_REGEXP_CREATE=t.RANDOM_FORMAT_REGEXP_CREATE=t.RANDOM_FORMAT=t.LENGTH_GROUP=t.LENGTH_GROUP_NAME=t.ALPHABET_GROUP=t.RANDOM_STRING_CHOICES=t.ALPHABET_GROUP_NAME=t.CURRENT_DATE_REGEXP_CREATE=t.CURRENT_DATE_NAME_GROUP=t.CURRENT_DATE_GROUP_NAME=t.VARIABLE_IN_EXPRESSION_REGEXP_CREATE=t.SINGLE_VARIABLE_REGEX_CREATE=t.VARIABLE_GROUP=t.VARIABLE_GROUP_NAME=t.EXCLUDED_USER_VARIABLE_NAMES=t.ALL_VARIABLE_REGEXP_CREATE=t.COMPOUND_VARIABLE_PATTERN=t.USER_VARIABLE_REGEXP_CREATE=t.VARIABLE_REGEXP=t.INDEX_EXPRESSION_REGEXP=t.DOUBLE_QUOTED_IDENTIFIER_REGEXP=t.SINGLE_QUOTED_IDENTIFIER_REGEXP=t.ARRAY_INDEX_REGEXP=t.IDENTIFIER_REGEXP=t.USER_NAMESPACE_REGEXP=t.PATTERN_REGEXP=t.patternRanges=void 0,t.patternRanges={alpha:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",alphaLower:"abcdefghijklmnopqrstuvwxyz",alphaUpper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",digit:"0123456789",alnum:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"},t.PATTERN_REGEXP=/{{([^{}]*)}}/gi,t.USER_NAMESPACE_REGEXP=/^user\./g,t.IDENTIFIER_REGEXP="[a-zA-Z_][a-zA-Z0-9_]*",t.ARRAY_INDEX_REGEXP="[0-9]+",t.SINGLE_QUOTED_IDENTIFIER_REGEXP=`'${t.IDENTIFIER_REGEXP}'`,t.DOUBLE_QUOTED_IDENTIFIER_REGEXP=`"${t.IDENTIFIER_REGEXP}"`,t.INDEX_EXPRESSION_REGEXP=`\\[(?:${t.ARRAY_INDEX_REGEXP}|${t.SINGLE_QUOTED_IDENTIFIER_REGEXP}|${t.DOUBLE_QUOTED_IDENTIFIER_REGEXP})\\]`,t.VARIABLE_REGEXP=`${t.IDENTIFIER_REGEXP}(?:${t.INDEX_EXPRESSION_REGEXP})*`;t.USER_VARIABLE_REGEXP_CREATE=()=>RegExp("^"+t.IDENTIFIER_REGEXP+"$"),t.COMPOUND_VARIABLE_PATTERN=`(${t.VARIABLE_REGEXP})(\\.(${t.VARIABLE_REGEXP}))*`;t.ALL_VARIABLE_REGEXP_CREATE=()=>RegExp("^"+t.COMPOUND_VARIABLE_PATTERN+"$"),t.EXCLUDED_USER_VARIABLE_NAMES=["user","web","mail","api"],t.VARIABLE_GROUP_NAME="variable",t.VARIABLE_GROUP="(?<"+t.VARIABLE_GROUP_NAME+">"+t.COMPOUND_VARIABLE_PATTERN+")";t.SINGLE_VARIABLE_REGEX_CREATE=()=>RegExp("{{@"+t.VARIABLE_GROUP+"}}");t.VARIABLE_IN_EXPRESSION_REGEXP_CREATE=()=>RegExp("@"+t.VARIABLE_GROUP,"g"),t.CURRENT_DATE_GROUP_NAME="date",t.CURRENT_DATE_NAME_GROUP="(?<"+t.CURRENT_DATE_GROUP_NAME+">date)";t.CURRENT_DATE_REGEXP_CREATE=()=>RegExp("{{"+t.CURRENT_DATE_NAME_GROUP+"(:iso)?}}"),t.ALPHABET_GROUP_NAME="alphabet",t.RANDOM_STRING_CHOICES=Object.keys(t.patternRanges).join("|"),t.ALPHABET_GROUP="(?<"+t.ALPHABET_GROUP_NAME+">"+t.RANDOM_STRING_CHOICES+")",t.LENGTH_GROUP_NAME="length",t.LENGTH_GROUP="(?<"+t.LENGTH_GROUP_NAME+">[\\d]+)",t.RANDOM_FORMAT=t.ALPHABET_GROUP+":"+t.LENGTH_GROUP;t.RANDOM_FORMAT_REGEXP_CREATE=()=>RegExp("{{"+t.RANDOM_FORMAT+"}}");t.RANDOM_FORMAT_IN_EXPRESSION_REGEXP_CREATE=()=>RegExp(t.RANDOM_FORMAT,"g"),t.FAKER_GROUP_NAME="faker",t.FAKE_NAMESPACE="fake.",t.FAKER_EXPRESSION=`${t.FAKE_NAMESPACE}[a-zA-Z]+\\.[a-zA-Z]+(\\((\\d+)\\))?`,t.FAKER_EXPRESSION_NAMED_GROUP="(?<"+t.FAKER_GROUP_NAME+">{{"+t.FAKER_EXPRESSION+"}})";t.FAKER_EXPRESSION_REGEXP_CREATE=()=>RegExp(t.FAKER_EXPRESSION_NAMED_GROUP);t.FAKER_FORMAT_IN_EXPRESSION_REGEX_CREATE=()=>RegExp("("+t.FAKER_EXPRESSION+")","g"),t.LONE_VARIABLE_REGEXP="^{{@"+t.VARIABLE_GROUP+"}}$",t.isNestableElement=function(e){return e instanceof Object||e instanceof Array},t.isString=function(e){return e&&e instanceof String||"string"==typeof e},t.containsMablTemplatePattern=function(e){return!!e&&e.search(t.PATTERN_REGEXP)>=0}},768:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.humanizeEmailSelector=t.buildEmailSelectorString=t.EmailSelectors=void 0;const r=n(354),i=n(648),o=["to_received","from","subject","body_text"];class a extends i.IdentityPrototypeSelectorStore{buildSelector(e){const t={selector_type:"email",from:"joe@mabl.com",uuid:e.uuid};return e&&o.forEach((n=>{const r=e[n];r&&"selector_type"!==n&&(t[n]=r)})),t}matchingSelector(e,t){return o.reduce(((n,r)=>n&&e[r]===t[r]),!0)}}t.EmailSelectors=a,t.buildEmailSelectorString=function(e){const t=[];return Object.keys(e).forEach((n=>t.push(`${n}: "${(0,r.escapeMablscriptString)(e[n])}"`))),t.indexOf('selector_type: "email"')<0&&t.push('selector_type: "email"'),t.sort(),`{${t.join(", ")}}`},t.humanizeEmailSelector=function(e){const{from:t,to_received:n,subject:i,body_text:o}=e;let a="the email";if(t){a+=` sent from "${(0,r.formatText)(t)}",`}if(n){a+=` received at "${(0,r.formatText)(n)}",`}if(i){a+=` with the exact subject of "${(0,r.formatText)(i)}",`}if(o){a+=` with the body text of "${(0,r.formatText)(o)}"`}return a.endsWith(",")&&(a=a.substr(0,a.length-1)),a}},648:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IdentityPrototypeSelectorStore=void 0;const i=r(n(993));class o extends i.default{buildSelector(e){return e}}t.IdentityPrototypeSelectorStore=o},993:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9);t.default=class{selectors;constructor(){this.selectors={}}generateSelector(e,t){const n=this.buildSelector(e),i=(Array.isArray(n)?n:[n]).map((e=>{const n=this.selectorFor(e,t);return n&&n.uuid?n:(e.uuid=e.uuid||(0,r.v4)(),this.selectors[e.uuid]={holder:{selector:e},context:t},e)}));return i.length>1?i:i[0]}selectorFor(e,t){const n=Object.keys(this.selectors).find((n=>{const r=this.selectors[n];return t===r.context&&this.matchingSelector(e,r.holder.selector)}));if(n)return this.selectors[n].holder.selector}matchingSelector(e,t){return e===t}addSelector(e){(Array.isArray(e)?e:[e]).forEach((e=>{"object"==typeof e&&(delete e.selector_type,e.uuid&&(this.selectors[e.uuid]={holder:{selector:e}}))}))}getSelector(e,t){return(this.selectors[e]||{}).holder?.selector||t}keys(){return Object.keys(this.selectors)}}},140:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.extractVariableNameFromPath=t.resolveVariable=t.sanitizeUserVariableName=t.addUserNamespace=t.removeUserNamespace=t.USER_NAMESPACE=t.createDottedNamedMap=void 0;const i=r(n(619)),o=n(232),a=n(501);function l(e,t){const n=e.indexOf(t);return n<0?[e,void 0]:[e.substr(0,n),e.substr(n+1)]}function s(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}function c(e){return function(e,t){if(e.startsWith(t))return e.substring(t.length);return e}(e,t.USER_NAMESPACE)}function u(e){return function(e,t){if(e.startsWith(t))return e;return`${t}${e}`}(e,t.USER_NAMESPACE)}function d(e,t){return Object.keys(t).find((t=>e.startsWith(t)&&(e.length===t.length||"["===e[t.length]||"."===e[t.length])))}t.createDottedNamedMap=function e(t={}){return new Proxy(t,{get(e,t){if("string"==typeof t){const[n,r]=l(t,".");return r?s(e[n])?e[n][r]:void 0:e[n]}return Reflect.get(e,t)},set(t,n,r){if("string"==typeof n){const[i,o]=l(n,".");return o?(t?.hasOwnProperty(i)||(t[i]=e()),t[i][o]=r,!0):(t[i]=r,!0)}return Reflect.set(t,n,r),!0},deleteProperty(e,t){if("string"==typeof t){const[n,r]=l(t,".");return r?!s(e[n])||delete e[n][r]:(e?.hasOwnProperty(n)&&delete e[n],!0)}return Reflect.deleteProperty(e,t)},has(e,t){if("string"==typeof t){const[n,r]=l(t,".");return r?n in e&&s(e[n])&&r in e[n]:n in e}return Reflect.has(e,t)}})},t.USER_NAMESPACE="user.",t.removeUserNamespace=c,t.addUserNamespace=u,t.sanitizeUserVariableName=function(e){if(!e)return;const t=c(u(e));return(0,o.isValidUserVariableName)(t)?u(t):void 0},t.resolveVariable=function(e,n,r){let o=e,l=d(e,n);if(l||(o=t.USER_NAMESPACE+e,l=d(o,n)),l){let e=r(n[l]),t=o.slice(l.length);if(t.endsWith(".")||/^\.{2,}/.test(t))return;return t=t.replace(/^\.*/,""),t&&(e=(0,a.isNestableElement)(e)?(0,i.default)(e,t):void 0),e}},t.extractVariableNameFromPath=d},859:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isLegacyVariable=t.namespace=t.resolveVariableValue=t.LegacyVariableSource=t.VariableType=void 0;const i=r(n(619)),o=n(501),a=n(140);!function(e){e.COOKIE="cookie",e.DATABASE="database",e.ELEMENT_COUNT="elementCount",e.ELEMENT_PROPERTY="elementProperty",e.GENERATED="generated",e.JAVASCRIPT="javascript",e.INPUT="input",e.MABL_MAILBOX="mablMailbox",e.LOOP_INDEX="loopIndex"}(t.VariableType||(t.VariableType={})),function(e){e.API="API step",e.DATABASE_QUERY="Database query",e.DDT="DataTable",e.ELEMENT_COUNT="Element count",e.ELEMENT_PROP="Element property",e.ENV="Environment",e.FLOW_PARAMETER="Flow parameter",e.JAVASCRIPT="JavaScript",e.JOURNEY_VAR="Default value",e.MABL_MAIL="mabl Mailbox",e.PLAN="Plan",e.RUNTIME="Runtime",e.TEMPLATE="String template",e.TEST_RUN="Test run"}(t.LegacyVariableSource||(t.LegacyVariableSource={}));const l=e=>e?.value;function s(e,t){try{return e[t]||e[`${a.USER_NAMESPACE}${t}`]}catch{return}}t.resolveVariableValue=function(e,t,n=l){let r,c=s(t,e);const u=(0,a.removeUserNamespace)(e);if(!c&&(u.includes(".")||u.includes("["))){const e=[u.indexOf("["),u.indexOf(".")].filter((e=>e>=0)).reduce(((e,t)=>Math.min(e,t)));if(c=s(t,u.slice(0,e)),c){const t="."===u[e]?1:0;r=u.slice(e+t,u.length)}}let d=n(c);return d&&r&&(0,o.isNestableElement)(d)&&(d=(0,i.default)(d,r)),d},t.namespace=function(e={}){return(0,a.createDottedNamedMap)(e)},t.isLegacyVariable=function(e){return!!e&&"object"==typeof e&&void 0!==e.variableType&&void 0!==e.name}},540:(e,t)=>{"use strict";function n(e){return Object.prototype.constructor===e.constructor}Object.defineProperty(t,"__esModule",{value:!0}),t.isSimpleObject=t.isVariableDataType=void 0,t.isVariableDataType=function e(t){return null==t||"boolean"==typeof t||"number"==typeof t||"bigint"==typeof t||"string"==typeof t||"object"==typeof t&&(Array.isArray(t)?t.every(e):!!n(t)&&!!Object.entries(t).every((([t,n])=>t&&"string"==typeof t&&e(n))))},t.isSimpleObject=n},619:e=>{var t="__lodash_hash_undefined__",n=1/0,r="[object Function]",i="[object GeneratorFunction]",o="[object Symbol]",a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/,s=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,f="object"==typeof global&&global&&global.Object===Object&&global,E="object"==typeof self&&self&&self.Object===Object&&self,p=f||E||Function("return this")();var m,_=Array.prototype,g=Function.prototype,b=Object.prototype,h=p["__core-js_shared__"],A=(m=/[^.]+$/.exec(h&&h.keys&&h.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"",y=g.toString,T=b.hasOwnProperty,R=b.toString,S=RegExp("^"+y.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),v=p.Symbol,I=_.splice,N=V(p,"Map"),O=V(Object,"create"),P=v?v.prototype:void 0,L=P?P.toString:void 0;function M(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function x(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function D(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function C(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}function F(e,t){var n;t=function(e,t){if(j(e))return!1;var n=typeof e;if("number"==n||"symbol"==n||"boolean"==n||null==e||H(e))return!0;return l.test(e)||!a.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:j(n=t)?n:G(n);for(var r=0,i=t.length;null!=e&&r<i;)e=e[B(t[r++])];return r&&r==i?e:void 0}function w(e){if(!k(e)||(t=e,A&&A in t))return!1;var t,n=function(e){var t=k(e)?R.call(e):"";return t==r||t==i}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?S:d;return n.test(function(e){if(null!=e){try{return y.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function U(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function V(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return w(n)?n:void 0}M.prototype.clear=function(){this.__data__=O?O(null):{}},M.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},M.prototype.get=function(e){var n=this.__data__;if(O){var r=n[e];return r===t?void 0:r}return T.call(n,e)?n[e]:void 0},M.prototype.has=function(e){var t=this.__data__;return O?void 0!==t[e]:T.call(t,e)},M.prototype.set=function(e,n){return this.__data__[e]=O&&void 0===n?t:n,this},x.prototype.clear=function(){this.__data__=[]},x.prototype.delete=function(e){var t=this.__data__,n=C(t,e);return!(n<0)&&(n==t.length-1?t.pop():I.call(t,n,1),!0)},x.prototype.get=function(e){var t=this.__data__,n=C(t,e);return n<0?void 0:t[n][1]},x.prototype.has=function(e){return C(this.__data__,e)>-1},x.prototype.set=function(e,t){var n=this.__data__,r=C(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},D.prototype.clear=function(){this.__data__={hash:new M,map:new(N||x),string:new M}},D.prototype.delete=function(e){return U(this,e).delete(e)},D.prototype.get=function(e){return U(this,e).get(e)},D.prototype.has=function(e){return U(this,e).has(e)},D.prototype.set=function(e,t){return U(this,e).set(e,t),this};var G=X((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(H(e))return L?L.call(e):"";var t=e+"";return"0"==t&&1/e==-n?"-0":t}(t);var r=[];return s.test(e)&&r.push(""),e.replace(c,(function(e,t,n,i){r.push(n?i.replace(u,"$1"):t||e)})),r}));function B(e){if("string"==typeof e||H(e))return e;var t=e+"";return"0"==t&&1/e==-n?"-0":t}function X(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(X.Cache||D),n}X.Cache=D;var j=Array.isArray;function k(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function H(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&R.call(e)==o}e.exports=function(e,t,n){var r=null==e?void 0:F(e,t);return void 0===r?n:r}},9:(e,t,n)=>{"use strict";n.r(t),n.d(t,{NIL:()=>S,parse:()=>b,stringify:()=>f,v1:()=>g,v3:()=>A,v4:()=>T,v5:()=>R,validate:()=>c,version:()=>v});const r=require("crypto");var i=n.n(r);const o=new Uint8Array(256);let a=o.length;function l(){return a>o.length-16&&(i().randomFillSync(o),a=0),o.slice(a,a+=16)}const s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const c=function(e){return"string"==typeof e&&s.test(e)},u=[];for(let e=0;e<256;++e)u.push((e+256).toString(16).slice(1));function d(e,t=0){return(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase()}const f=function(e,t=0){const n=d(e,t);if(!c(n))throw TypeError("Stringified UUID is invalid");return n};let E,p,m=0,_=0;const g=function(e,t,n){let r=t&&n||0;const i=t||new Array(16);let o=(e=e||{}).node||E,a=void 0!==e.clockseq?e.clockseq:p;if(null==o||null==a){const t=e.random||(e.rng||l)();null==o&&(o=E=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==a&&(a=p=16383&(t[6]<<8|t[7]))}let s=void 0!==e.msecs?e.msecs:Date.now(),c=void 0!==e.nsecs?e.nsecs:_+1;const u=s-m+(c-_)/1e4;if(u<0&&void 0===e.clockseq&&(a=a+1&16383),(u<0||s>m)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");m=s,_=c,p=a,s+=122192928e5;const f=(1e4*(268435455&s)+c)%4294967296;i[r++]=f>>>24&255,i[r++]=f>>>16&255,i[r++]=f>>>8&255,i[r++]=255&f;const g=s/4294967296*1e4&268435455;i[r++]=g>>>8&255,i[r++]=255&g,i[r++]=g>>>24&15|16,i[r++]=g>>>16&255,i[r++]=a>>>8|128,i[r++]=255&a;for(let e=0;e<6;++e)i[r+e]=o[e];return t||d(i)};const b=function(e){if(!c(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function h(e,t,n){function r(e,r,i,o){var a;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=b(r)),16!==(null===(a=r)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+e.length);if(l.set(r),l.set(e,r.length),l=n(l),l[6]=15&l[6]|t,l[8]=63&l[8]|128,i){o=o||0;for(let e=0;e<16;++e)i[o+e]=l[e];return i}return d(l)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}const A=h("v3",48,(function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),i().createHash("md5").update(e).digest()})),y={randomUUID:i().randomUUID};const T=function(e,t,n){if(y.randomUUID&&!t&&!e)return y.randomUUID();const r=(e=e||{}).random||(e.rng||l)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return d(r)};const R=h("v5",80,(function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),i().createHash("sha1").update(e).digest()})),S="00000000-0000-0000-0000-000000000000";const v=function(e){if(!c(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},295:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(354),t)}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}return n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(295)})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.domUtil=t():e.domUtil=t()}(global,(()=>(()=>{var e={552:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveVariable=t.isVariableDataType=t.isSimpleObject=t.isLegacyVariable=t.namespace=t.resolveVariableValue=t.LegacyVariableSource=t.VariableType=void 0,i(n(521),t);var o=n(397);Object.defineProperty(t,"VariableType",{enumerable:!0,get:function(){return o.VariableType}}),Object.defineProperty(t,"LegacyVariableSource",{enumerable:!0,get:function(){return o.LegacyVariableSource}}),Object.defineProperty(t,"resolveVariableValue",{enumerable:!0,get:function(){return o.resolveVariableValue}}),Object.defineProperty(t,"namespace",{enumerable:!0,get:function(){return o.namespace}}),Object.defineProperty(t,"isLegacyVariable",{enumerable:!0,get:function(){return o.isLegacyVariable}});var a=n(930);Object.defineProperty(t,"isSimpleObject",{enumerable:!0,get:function(){return a.isSimpleObject}}),Object.defineProperty(t,"isVariableDataType",{enumerable:!0,get:function(){return a.isVariableDataType}});var l=n(699);Object.defineProperty(t,"resolveVariable",{enumerable:!0,get:function(){return l.resolveVariable}}),i(n(288),t),i(n(419),t),i(n(681),t),i(n(762),t),i(n(729),t),i(n(679),t),i(n(155),t)},681:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAutoHealAuthorized=t.buildFindEmailDescriptorString=t.isNormalizedFindEmailDescriptor=t.isNormalizedFindDescriptor=t.mapHintsToFindDescriptor=t.mapWaitUntilToPropertyPreferences=t.getAncestorDescriptor=t.isAncestor=t.matchesAncestorXpath=t.computeRelativeXpath=t.isRelativeXpath=t.findIsWaitUntil=t.descriptorHasIntendedProperties=t.descriptorHasWaitTimeout=t.findIsRepeatedElements=t.descriptorHasOrdinalPreference=t.getWaitUntilTimeoutMs=t.compareStrings=t.getEffectiveSelectorValue=t.getEffectiveValue=t.getComparator=t.getComparatorForAttribute=t.getIsUserIntended=t.isFindCustomDescriptor=t.ConfidenceLevel=t.PropertyComparator=t.isFindElementType=t.isFindType=t.FindType=t.isFindElementDescriptor=t.isFindOptions=t.ElementExpectation=t.EmailSelectorComparator=void 0;const r=n(762),i=n(419),o=n(96);var a,l;function s(e){return[a.FIND_ANY,a.FIND_FIRST,a.FIND_LAST,a.FIND_ONE,a.FIND_ALL].some((t=>t===e))}function c(e){return e.selectorKey??e.attributeName??e.attributeCanonicalId}function u(e,t){return t?.[e]?.comparator??l.EQUALS}function d(e,t,n){const r="string"==typeof t[e]?t[e]:(t.other_attributes??[]).find((t=>t.id===e))?.value,i=n?.[e];return i?.intended&&void 0!==i?.value?i?.value:r}function f(e){return void 0!==e.configuration?.ordinalPreference?.position}function E(e){return void 0!==e.findOptions?.waitUntil?.timeoutSeconds}function p(e){return Object.values(e.configuration?.propertyPreferences||{}).some((e=>e?.intended))||(e.findOptions?.waitUntil?.properties?.[e.selector.uuid]||[]).length>0}function m(e,t,n){return t+n.substring(1)===e}function _(e,t){return!!(e.selector.relative_xpath&&e.selector.xpath&&t.selector.xpath&&m(e.selector.xpath,t.selector.xpath,e.selector.relative_xpath))}function g(e,t){return e.selector.relative_xpath&&!e.selector.findable_ancestor_uuid||e.selector.findable_ancestor_uuid===t.selector.uuid||_(e,t)}function b(e,t={}){const n={...t};for(const i of e)(0,r.isSimpleElementSelectorCommonKeys)(i)&&(n[i]={...t[i]||{},intended:!0});return n}function h(e,t){const n=t?.[e.selector.uuid]||[],r=e.configuration?.propertyPreferences;return{...e,configuration:{...e.configuration,propertyPreferences:b(n,r)}}}function A(e,t){if(t[e.selector.uuid]&&function(e,t){if(!t)return;if(e.selector={...e.selector,...t},e.overrides)for(const n of e.overrides)n.selector={...n.selector,...t}}(e,t[e.selector.uuid]),e.auxiliaryDescriptors)for(const n of e.auxiliaryDescriptors)A(n,t)}!function(e){e.EQUALS="equals",e.CONTAINS="contains"}(t.EmailSelectorComparator||(t.EmailSelectorComparator={})),function(e){e.MISSING="missing",e.PRESENT="present"}(t.ElementExpectation||(t.ElementExpectation={})),t.isFindOptions=function(e){return e&&(void 0===e.waitUntil||function(e){return e&&void 0!==e.timeoutSeconds}(e.waitUntil))},t.isFindElementDescriptor=function(e){return e&&s(e.findType)},function(e){e.FIND_ALL="find_all",e.FIND_ANY="find_any",e.FIND_COOKIE="find_cookie",e.FIND_EMAIL="find_email",e.FIND_FIRST="find_first",e.FIND_LAST="find_last",e.FIND_ONE="find_one",e.FIND_TAB="find_tab"}(a=t.FindType||(t.FindType={})),function(e){e.fromString=function(t){const n=t;if(!Object.values(e).includes(n))throw new Error(`No FindType match found for value: ${t}`);return n}}(a=t.FindType||(t.FindType={})),t.isFindType=function(e){return!!Object.values(a).find((t=>t===e))},t.isFindElementType=s,function(e){e.EQUALS="equals",e.CONTAINS="contains"}(l=t.PropertyComparator||(t.PropertyComparator={})),function(e){e.LOW="low",e.MEDIUM="medium",e.HIGH="high",e.UNKNOWN="unknown"}(t.ConfidenceLevel||(t.ConfidenceLevel={})),t.isFindCustomDescriptor=function(e){return e&&"object"==typeof e&&"string"==typeof e.findType&&[a.FIND_ALL,a.FIND_FIRST,a.FIND_LAST,a.FIND_ANY].includes(e.findType)},t.getIsUserIntended=function(e,t){return!!t?.[c(e)]?.intended},t.getComparatorForAttribute=function(e,t){return u(c(e),t)},t.getComparator=u,t.getEffectiveValue=function(e,t,n){return d(c(e),t,n)},t.getEffectiveSelectorValue=d,t.compareStrings=function(e,t,n){return!(!e||!t)&&(n&&n!==l.EQUALS?n===l.CONTAINS&&t.includes(e):e===t)},t.getWaitUntilTimeoutMs=function(e){return e.findOptions?.waitUntil?.timeoutSeconds?1e3*e.findOptions?.waitUntil?.timeoutSeconds:void 0},t.descriptorHasOrdinalPreference=f,t.findIsRepeatedElements=function(e){return f(e)||(e.auxiliaryDescriptors||[]).some(f)},t.descriptorHasWaitTimeout=E,t.descriptorHasIntendedProperties=p,t.findIsWaitUntil=function(e){return E(e)&&(p(e)||(e?.auxiliaryDescriptors||[]).some(p))},t.isRelativeXpath=m,t.computeRelativeXpath=function(e,t){if(e.startsWith(t)&&e.length>t.length)return"."+e.substring(t.length)},t.matchesAncestorXpath=_,t.isAncestor=g,t.getAncestorDescriptor=function(e){if(e.auxiliaryDescriptors&&e.auxiliaryDescriptors.length>0){const t=e.auxiliaryDescriptors.filter((t=>g(e,t)));if(t.length>0){const n=t[0],r=(e.auxiliaryDescriptors||[]).filter((e=>e!==n)),i={...n},o=e.selector;return"#document-fragment"===o.currentContextNode?.nodeName&&(i.selector.currentContextNode=o.currentContextNode),{...e.type?{type:e.type}:{},...e.findOptions?{findOptions:e.findOptions}:{},...i,auxiliaryDescriptors:r}}}},t.mapWaitUntilToPropertyPreferences=function(e){return e.findOptions?.waitUntil?.properties&&Object.keys(e.findOptions.waitUntil.properties).length?function(e,t){const n=h(e,t),r=(e.auxiliaryDescriptors||[]).map((e=>h(e,t)));return r.length&&(n.auxiliaryDescriptors=r),n}(e,e.findOptions.waitUntil.properties):e},t.mapHintsToFindDescriptor=function(e){return e.findOptions?.hints?.selectorSubstitutions&&A(e,e.findOptions.hints.selectorSubstitutions),e},t.isNormalizedFindDescriptor=function(e){return"object"==typeof e&&e?.selector&&(0,r.isStandardSelector)(e.selector)},t.isNormalizedFindEmailDescriptor=function(e){return"object"==typeof e&&e?.selector&&(0,r.isEmailSelector)(e.selector)},t.buildFindEmailDescriptorString=function(e){const{configuration:t,selector:n}=e,r=(0,o.buildEmailSelectorString)(n),a=t&&(0,i.buildStepArgumentString)({params:{...t},legacy:!1});return`{selector: ${r}`+(a?`, configuration: ${a}}`:"}")},t.isAutoHealAuthorized=function(e){return!1!==e.findOptions?.autoHealOptions?.isAutoHealAuthorized}},679:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertToNormalizedFindEmailDescriptor=t.isEmailFindDescriptor=t.isCustomFindDescriptor=t.isFindOneDescriptor=t.isViewportFindDescriptor=void 0,t.isViewportFindDescriptor=function(e){return e&&"viewport"===e.type},t.isFindOneDescriptor=function(e){return e&&!e.foundElementSelectors&&!!e.selector},t.isCustomFindDescriptor=function(e){return!!e?.primarySelectors},t.isEmailFindDescriptor=function(e){return e&&"email"===e.type&&e.emailSelector},t.convertToNormalizedFindEmailDescriptor=function(e){return e.emailConfiguration?{type:"email",selector:{selector_type:"email",...e.emailSelector},configuration:e.emailConfiguration}:{type:"email",selector:{selector_type:"email",...e.emailSelector}}}},288:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_ATTR_PROPS_OPTIONS=t.ALLOWED_ASSERTABLE_CSS_PROPS=t.ALLOWED_ASSERTABLE_ATTRS_PROPS=t.ASSERTABLE_ATTRIBUTE_TYPES=void 0,t.ASSERTABLE_ATTRIBUTE_TYPES=["string","number","boolean"],t.ALLOWED_ASSERTABLE_ATTRS_PROPS=["accessKey","accessKeyLabel","align","alt","aria-checked","aria-label","aria-labelledby","aria-disabled","autofocus","border","checked","class","className","clientHeight","clientLeft","clientTop","clientWidth","complete","computedName","computedRole","contentEditable","contextMenu","crossOrigin","currentSrc","dataset","defaultChecked","defaultValue","dir","disabled","draggable","formEncType","formMethod","formNoValidate","formTarget","height","hidden","href","hspace","id","indeterminate","inert","innerText","isContentEditable","isMap","itemId","itemScope","lang","length","localName","longDesc","lowSrc","maxLength","multiple","name","namespaceURI","naturalHeight","naturalWidth","noModule","offsetHeight","offsetLeft","offsetTop","offsetWidth","prefix","referrerPolicy","required","selectedIndex","size","sizes","slot","src","srcset","tabIndex","tagName","textContent","title","translate","type","validationMessage","validity","value","vspace","width","willValidate"],t.ALLOWED_ASSERTABLE_CSS_PROPS=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","azimuth","backface-visibility","background-attachment","background-blend-mode","background-clip","background-color","background-origin","background-position","background-repeat","background-size","background","bleed","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-bottom","border-collapse","border-color","border-image-outset","border-image-repeat","border-image-source","border-image-slice","border-image-width","border-left-color","border-left-style","border-left-width","border-left","border-radius","border-right-color","border-right-style","border-right-width","border-right","border-spacing","border-style","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-top","border-width","border","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-interpolation-filters","columns","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","content","counter-increment","counter-reset","cue-after","cue-before","cue","cursor","direction","display","elevation","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","font-family","font-feature-settings","font-kerning","font-language-override","font-size-adjust","font-size","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","font","gap","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column-end","grid-column-gap","grid-column-start","grid-column","grid-gap","grid-row-end","grid-row-gap","grid-row-start","grid-row","grid-template-areas","grid-template-columns","grid-template-rows","grid-template","grid","hanging-punctuation","height","hyphens","image-rendering","isolation","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style-position","list-style-type","list-style","margin-bottom","margin-left","margin-right","margin-top","margin","marker-offset","marks","max-height","max-width","min-height","min-width","mix-blend-mode","nav-up","nav-down","nav-left","nav-right","object-fit","object-position","opacity","order","orphans","outline-color","outline-offset","outline-style","outline-width","outline","overflow","overflow-wrap","overflow-x","overflow-y","padding-bottom","padding-left","padding-right","padding-top","padding","page-break-after","page-break-before","page-break-inside","page","pause-after","pause-before","pause","perspective","perspective-origin","pitch-range","pitch","place-content","place-items","place-self","play-during","position","quotes","resize","rest-after","rest-before","rest","richness","right","row-gap","size","speak-header","speak-numeral","speak-punctuation","speak","speech-rate","stress","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-justify","text-indent","text-orientation","text-overflow","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"],t.ALL_ATTR_PROPS_OPTIONS={},t.ALLOWED_ASSERTABLE_ATTRS_PROPS.forEach((e=>t.ALL_ATTR_PROPS_OPTIONS[e]=""))},284:(e,t)=>{"use strict";function n(e,t,n,r,i){const o=Math.max(n,i??0)||1,a=e-t,l=a/o;return{rawChange:a,normalizedChange:l,deviationUnit:o,similarity:Math.max(0,1-Math.abs(l)/(r||1))}}function r(e,t,n){return{minimum:Math.round(Math.max(e-t*n,0)),maximum:Math.round(e+t*n)}}function i(e,t,n,i){const o=r(t,n,i);return o.minimum<=e&&e<=o.maximum}function o(e){return!!e&&"string"===e.value_type&&(void 0===e.found_value||"string"==typeof e.found_value)}function a(e){return!!e&&"number"===e.value_type&&(void 0===e.found_value||"number"==typeof e.found_value)}function l(e,n){if("string"==typeof n){const r=n?.substring(0,t.MAX_APP_STATE_VALUE_LENGTH);return{attribute_id:e,value_type:"string",found_value:r,is_found_value_truncated:void 0!==r&&r.length<n.length}}return{attribute_id:e,value_type:"number",found_value:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.appStateAttributeMatch=t.getAppState=t.isAppStateNumber=t.isAppStateString=t.isValueInPositiveIntegerRange=t.getPositiveIntegerRange=t.getAppChangeNormalized=t.APP_STATE_MAX_SIMILARITY_DEVIATIONS=t.APP_STATE_RANGE_MAX_MATCH_DEVIATIONS=t.APP_STATE_RANGE_MIN_DEVIATION_UNIT_BY_PERCENTAGE=t.MAX_APP_STATE_VALUE_LENGTH=void 0,t.MAX_APP_STATE_VALUE_LENGTH=300,t.APP_STATE_RANGE_MIN_DEVIATION_UNIT_BY_PERCENTAGE=.1,t.APP_STATE_RANGE_MAX_MATCH_DEVIATIONS=3,t.APP_STATE_MAX_SIMILARITY_DEVIATIONS=5,t.getAppChangeNormalized=n,t.getPositiveIntegerRange=r,t.isValueInPositiveIntegerRange=i,t.isAppStateString=o,t.isAppStateNumber=a,t.getAppState=function(){return[l("pageTitle",document.title),l("urlPathname",document.location.pathname),l("urlSearch",document.location.search),l("urlHash",document.location.hash),l("innerTextLength",document.body?.innerText?.length??0),l("elementCount",document.getElementsByTagName("*").length),l("inputCount",document.getElementsByTagName("input").length),l("anchorCount",document.getElementsByTagName("a").length),l("headingCount",document.getElementsByTagName("h1").length+document.getElementsByTagName("h2").length+document.getElementsByTagName("h3").length)]},t.appStateAttributeMatch=function(e,r){if(void 0===r||void 0===r.expected_value&&void 0===r.recent_values)return;let l,s,c;if(o(e)){if(void 0===r.recent_values||0===r.recent_values.length)return;s=void 0!==e.found_value&&r.recent_values.includes(e.found_value),l=s?e.found_value:r.recent_values?.[0],c=s?1:0}else{if(!a(e))return;if(l=r.expected_value,void 0===l)return;if(void 0===e.found_value)s=!1,c=0;else{const o=n(e.found_value,l,l*t.APP_STATE_RANGE_MIN_DEVIATION_UNIT_BY_PERCENTAGE,t.APP_STATE_MAX_SIMILARITY_DEVIATIONS,r.standard_deviation);c=o.similarity,s=i(e.found_value,l,o.deviationUnit,t.APP_STATE_RANGE_MAX_MATCH_DEVIATIONS)}}return{targetValue:l,isMatch:s,similarity:c}}},521:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xpathElement=t.maybeGetRootNode=t.createXpathFromPathArray=t.sanitizeXPath=t.getAncestorElements=t.isSelect=t.isFileInput=t.isTextField=t.isInputField=t.getInputTypeFromElement=t.getPlaceholderFromElement=t.getHrefFromElement=t.getInputLabelFromElement=t.getLabelUsingForAttribute=t.getLabelForInput=t.normalizeText=t.truncateText=t.getSlotTextFromElement=t.getTextFromElement=t.formatText=t.compactWhitespace=t.createXPathFromElement=t.getIframesInfo=t.getCssPropertyMap=t.getAttributePropertyMap=t.getSelectedTextFromElement=t.getClassNameFromElement=t.getSelectedIndexFromElement=t.getElementValueFromElement=t.getNodeNameFromElement=t.getTagNameFromElement=t.getNameFromElement=t.getIdFromElement=t.createIgnoredDomElement=t.createBaseEventMessage=t.getSelectorElementAttributes=t.getAttributeFromElement=t.getPropertyFromElement=t.MAX_SELECTOR_OTHER_ATTRIBUTES=t.MAX_SELECTOR_ATTRIBUTE_VALUE_LENGTH=t.MAX_ATTRIBUTE_SIZE=t.MAX_SELECTOR_INNER_TEXT_LENGTH=t.MABL_INSERTED_ELEMENTS=t.MABL_SECONDARY_DRAGGABLE_DIV_ID=t.MABL_TERTIARY_IFRAME_ID=t.MABL_IGNORE_ELEMENT_CLASS=t.MABL_DRAGGABLE_DIV_ID=t.MABL_SECONDARY_IFRAME_ID=t.MABL_HIGHLIGHT_ID=t.MABL_OVERLAY_ID=void 0,t.getXPathTagExpression=t.isNotDefaultNamespace=t.getParentElements=t.removeParentElements=t.hasShadowRoot=t.isElementInShadowRoot=t.isExpectedToBeInvisible=t.isElementClickable=t.isDisplayed=t.getInnerText=t.getElementByXpath=t.getAllElementsByXpath=t.getFirstElementBySelectors=t.getLastElementBySelectors=t.getAllElementBySelectors=t.destroyElement=t.getElementMatchingSelectionTarget=t.selectOption=t.adjustTarget=t.removeOverlayById=t.destroySelectionOverlay=t.highlightElements=t.highlightElement=t.positionSelectionHighlight=t.renderSelectionOverlay=void 0;const r=n(288),i=n(284);t.MABL_OVERLAY_ID="mabl-selection-overlay-22b76b1b-4c57-4644-98ab-6f2ff555d1cc",t.MABL_HIGHLIGHT_ID="mabl-selection-highlight-22b76b1b-4c57-4644-98ab-6f2ff555d1cc";const o="mabl-selection-overlay-22b76b1b-4c57-4644-98ab-6f2ff555d1cc";var a;t.MABL_SECONDARY_IFRAME_ID="mabl-secondary-iframe-22b76b1b-4c57-4644-98ab-6f2ff555d1cc",t.MABL_DRAGGABLE_DIV_ID="mabl-draggable-div-22b76b1b-4c57-4644-98ab-6f2ff555d1cc",t.MABL_IGNORE_ELEMENT_CLASS="mabl-element-ignore-actions",t.MABL_TERTIARY_IFRAME_ID="mabl-tertiary-iframe-22b76b1b-4c57-4644-98ab-6f2ff555d1cc",t.MABL_SECONDARY_DRAGGABLE_DIV_ID="mabl-secondary-draggable-div-22b76b1b-4c57-4644-98ab-6f2ff555d1cc",t.MABL_INSERTED_ELEMENTS=[t.MABL_OVERLAY_ID,t.MABL_HIGHLIGHT_ID,o,"mabl-iframe-22b76b1b-4c57-4644-98ab-6f2ff555d1cc","mabl-iframe-draggable-22b76b1b-4c57-4644-98ab-6f2ff555d1cc",t.MABL_SECONDARY_IFRAME_ID,t.MABL_DRAGGABLE_DIV_ID],function(e){e[e["accessibility-check"]=0]="accessibility-check",e[e["assert-cookie"]=1]="assert-cookie",e[e["assert-email"]=2]="assert-email",e[e["assert-variable"]=3]="assert-variable",e[e["await-tab"]=4]="await-tab",e[e["await-uploads"]=5]="await-uploads",e[e["clear-cookies"]=6]="clear-cookies",e[e.click=7]="click",e[e.click_hold=8]="click_hold",e[e.conditional_else=9]="conditional_else",e[e.conditional_end=10]="conditional_end",e[e["double-click"]=11]="double-click",e[e.download=12]="download",e[e["download-pdf"]=13]="download-pdf",e[e.echo=14]="echo",e[e["end-flow"]=15]="end-flow",e[e["evaluate-js-snippet"]=16]="evaluate-js-snippet",e[e.hover=17]="hover",e[e.input=18]="input",e[e.keypress=19]="keypress",e[e.location=20]="location",e[e["mouse-select"]=21]="mouse-select",e[e.navigation=22]="navigation",e[e["open-email"]=23]="open-email",e[e.release=24]="release",e[e["remove-cookie"]=25]="remove-cookie",e[e["send-http-request"]=26]="send-http-request",e[e["set-cookie"]=27]="set-cookie",e[e["set-files"]=28]="set-files",e[e["set-variable"]=29]="set-variable",e[e["start-flow"]=30]="start-flow",e[e["switch-context-to"]=31]="switch-context-to",e[e["synthetic-click"]=32]="synthetic-click",e[e.url=33]="url",e[e["visit-url"]=34]="visit-url",e[e.viewport=35]="viewport",e[e.wait=36]="wait"}(a||(a={}));const l=["button","checkbox","file","radio","reset","submit"],s="http://www.w3.org/1999/xhtml";function c(e,t){return g(e[t])}function u(e,t){return g(e.getAttribute(t))}t.MAX_SELECTOR_INNER_TEXT_LENGTH=300,t.MAX_ATTRIBUTE_SIZE=5e3,t.MAX_SELECTOR_ATTRIBUTE_VALUE_LENGTH=300,t.MAX_SELECTOR_OTHER_ATTRIBUTES=3,t.getPropertyFromElement=c,t.getAttributeFromElement=u;const d=[{name:"src",attribute:"src",handler:c},{name:"elementId",attribute:"id",handler:_},{name:"tagName",handler:b},{name:"text",handler:v},{name:"slotText",handler:I},{name:"label",handler:M},{name:"href",attribute:"href",handler:x},{name:"placeholder",attribute:"placeholder",handler:D},{name:"inputElementType",attribute:"type",handler:C},{name:"inputValue",attribute:"value",handler:A},{name:"className",attribute:"class",handler:y},{name:"visible",handler:function(e){return K(e).toString()}},{name:"clickable",handler:function(e){return q(e).toString()}},{name:"namespaceURI",handler:c},...[{name:"alt",attribute:"alt"},{name:"form",attribute:"form"},{name:"for",attribute:"for"},{name:"target",attribute:"target"},{name:"name",attribute:"name"},{name:"target",attribute:"target"},{name:"name",attribute:"name"},{name:"dataTracking",attribute:"data-tracking"},{name:"titleAttr",attribute:"title"},{name:"ariaLabel",attribute:"aria-label"},{name:"labelAttr",attribute:"label"},{name:"dataAutobotElementId",attribute:"data-autobot-element-id"},{name:"dataAutomationId",attribute:"data-automation-id"},{name:"automationid",attribute:"automationid"},{name:"objectid",attribute:"objectid"},{name:"iconid",attribute:"icon-id"},{name:"dataTestId",attribute:"data-test-id"},{name:"dataTestid",attribute:"data-testid"},{name:"testId",attribute:"test-id"},{name:"ngModel",attribute:"ng-model"},{name:"ngShow",attribute:"ng-show"},{name:"ngClass",attribute:"ng-class"},{name:"ariaOwns",attribute:"aria-owns"},{name:"ariaLabelledby",attribute:"aria-labelledby"},{name:"ariaControls",attribute:"aria-controls"},{name:"tabindex",attribute:"tabindex"},{name:"role",attribute:"role"},{name:"maxlength",attribute:"maxlength"},{name:"autocomplete",attribute:"autocomplete"},{name:"height",attribute:"height"},{name:"width",attribute:"width"},{name:"style",attribute:"style"},{name:"dataTarget",attribute:"data-target"},{name:"dataValue",attribute:"data-value"},{name:"dataId",attribute:"data-id"},{name:"dataName",attribute:"data-name"},{name:"dataProp",attribute:"data-prop"},{name:"index",attribute:"index"},{name:"item",attribute:"item"}].map((e=>({...e,handler:u})))],f=d.map((e=>e.attribute)).filter((e=>void 0!==e)),E=[{propertyName:"slotText",extractor:I}];function p(e){const n=[...e?.attributes??[]].filter((e=>!f.includes(e.name))).filter((e=>void 0!==e.name&&null!==e.name&&void 0!==e.value&&null!==e.value)).map((e=>function(e,n){const r=n.substring(0,t.MAX_SELECTOR_ATTRIBUTE_VALUE_LENGTH);return{id:e,value:r,is_truncated:r.length<n.length}}(e.name,e.value)));if(n.length>0&&n.length<=t.MAX_SELECTOR_OTHER_ATTRIBUTES)return n}function m(e,t,n,r,o,a=!0,l=!0){const s={action:t,listener:n,xPath:r,context:o};if(d.forEach((t=>{s[t.name]=t.handler(e,t.attribute||t.name)})),a&&(s.appState=(0,i.getAppState)()),l){const t=p(e);t&&(s.otherAttributes=t)}return s}function _(e){return g(e.id)}function g(e){return"string"!=typeof e||e.length<t.MAX_ATTRIBUTE_SIZE?e??void 0:void 0}function b(e){return e?.tagName?.toLowerCase()}function h(e){return g(e?.nodeName?.toLowerCase())}function A(e){return g(e.value)}function y(e){return g("string"==typeof e.className?e.className:"")}function T(e){return F(e,"")}function R(e){return e?.replace(/[ \s\t\xA0\u1680\u180e\u2000-\u200d\u202f\u205f\u3000\n\x0B\f\r\x85\u2028\u2029\u2060]+/g," ")?.trim()}function S(e){return R(e).substring(0,t.MAX_SELECTOR_INNER_TEXT_LENGTH).replace(/"/g,'\\"')}function v(e){let t=e.innerText;return void 0===t&&ee(e.namespaceURI)&&(t=e.textContent??""),S(t??"")}function I(e){const t=e.querySelectorAll("slot");if(1!==t.length)return;const n=t.item(0).assignedNodes().find((e=>e.nodeType===Node.TEXT_NODE));return n?S(n.data):void 0}function N(e,t){return e?.substring(0,t)??e}function O(e,n=!0){const r=R(e);return r&&n?N(r,t.MAX_SELECTOR_INNER_TEXT_LENGTH):r}function P(e){if(!e||!w(e))return;const t=e.closest("label");if(t)return t;const n=L(e);if(n)return n;const r=z("(./preceding-sibling::*//descendant-or-self::*[self::input|self::label])[last()]",e);if(r.length>0){const e=r[0];if("label"===b(e)&&!e.getAttribute("for"))return e}const i=z("(../preceding-sibling::*//descendant-or-self::*[self::input|self::label])[last()]",e);if(i.length>0){const e=i[0];if("label"===b(e)&&!e.getAttribute("for"))return e}}function L(e){if(e?.id&&-1===e?.id.indexOf("\n")){const t=`${e.id||""}`.replace(/'/g,"\\'"),n=document.querySelector(`label[for='${t}']`);if(n)return n}}function M(e){const t=P(e);if(t)return v(t)}function x(e){if("a"===b(e)||J(e))return g(e.href)}function D(e){if(w(e))return g(e.placeholder)}function C(e){if(w(e))return e.type||"text"}function w(e){const t=b(e);return"input"===t||"textarea"===t}function F(e,t){const n=e?.parentElement;if(n){return F(n,`/${G(e,n)}${t}`)}if(Z(e)){return U(`//${G(e,e.getRootNode())}${t}`)}return U(`//html[1]${t}`)}function U(e){return(e=e.replace("*[local-name()='#document-fragment']/shadow[1]/body","body[1]")).replace(/#document-fragment\[0]\/shadow\[1]\/body\[0]/,"body[1]")}function V(e){if("function"==typeof e.getRootNode)return e.getRootNode()}function G(e,t){let n;const r=h(e);n=r?e instanceof HTMLElement&&!r?.includes(":")?r:`*[local-name()='${r}']`:"*";const i=function(e,t){let n=-1;const r=h(e);if(!r)return n;for(const i in t)if(t?.hasOwnProperty(i)){const o=t[i];if(h(o)===r&&(n+=1,o===e))return n}return n}(e,t.children)+1;return i?`${n}[${i}]`:`${n}`}function B(){const e=document.createElement("div");return e.id=t.MABL_HIGHLIGHT_ID,e.classList.add(o),e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="0",e.style.height="0",e.style.borderStyle="solid",e.style.borderWidth="2px",e.style.borderColor="black",e}function X(e,n,r){const i=e.getBoundingClientRect(),o=B();o.id=`${t.MABL_HIGHLIGHT_ID}-${n}`,o.style.left=j(i.x),o.style.top=j(i.y),o.style.width=j(i.width),o.style.height=j(i.height),r.appendChild(o)}function j(e){return`${Math.round(e)}px`}function k(e){const t=document.getElementById(e);if(t)try{document.body.removeChild(t)}catch{document.documentElement.removeChild(t)}}function H(e){e?.parentNode?.removeChild(e)}function $(e){return e.css_query?function(e){const t=document.querySelectorAll(e);return t.item(t.length-1)}(e.value||e.css_query):e.xpath?(t=e.value||e.xpath,z(t,n)?.pop()):void 0;var t,n}function Y(e){return e.css_query?document.querySelector(e.value||e.css_query):e.xpath?W(e.value||e.xpath):void 0}function z(e,t=document,n=!0){t=void 0!==t?t:document;const r=[];let i;try{i=document.evaluate(e,t,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null)}catch(e){if(n&&e instanceof DOMException)return console.log(e),[];throw e}for(let e=0,t=i.snapshotLength;e<t;++e)r.push(i.snapshotItem(e));return r}function W(e,t=document,n=!0){t=void 0!==t?t:document;try{return document.evaluate(e,t,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}catch(e){if(n&&e instanceof DOMException)return console.log(e),null;throw e}}function K(e){if("input"===b(e)&&"hidden"===e.type?.toLowerCase())return!1;if(!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))return!1;const t=window.getComputedStyle(e);return(!t||"0"!==t.opacity)&&(t&&"none"!==t.display&&"collapse"!==t.visibility&&"hidden"!==t.visibility)}function q(e){return Q(e)||function(e){const t=function(e){if(!e)return;const t=e.getBoundingClientRect();if(void 0!==t.left&&void 0!==t.top&&void 0!==t.height&&void 0!==t.width)return{x:Math.round(t.left+t.width/2),y:Math.round(t.top+t.height/2)};return}(e);if(!t||0===t.x&&0===t.y)return!1;return Q(document.elementFromPoint(t.x,t.y))}(e)}function Q(e){const t=e;return!!e&&(null!==t.onclick||null!==t.onpointerdown||null!==t.onpointerup||"pointer"===window.getComputedStyle(e)?.cursor)}function Z(e){return"#document-fragment"===V(e)?.nodeName}function J(e){return!!e.shadowRoot}function ee(e){return null!=e&&e.toLowerCase()!==s.toLowerCase()}t.getSelectorElementAttributes=p,t.createBaseEventMessage=m,t.createIgnoredDomElement=function(e){const n=document.createElement(e);return n.className=t.MABL_IGNORE_ELEMENT_CLASS,n},t.getIdFromElement=_,t.getNameFromElement=function(e){return g(e.name)},t.getTagNameFromElement=b,t.getNodeNameFromElement=h,t.getElementValueFromElement=A,t.getSelectedIndexFromElement=function(e){return e.selectedIndex},t.getClassNameFromElement=y,t.getSelectedTextFromElement=function(e){if("select"===b(e)&&e?.selectedOptions&&!(e?.selectedOptions?.length<1))return e.selectedOptions[0].innerText},t.getAttributePropertyMap=function(e){const t={};for(const n in e)try{const i=e[n],o=typeof i;if(r.ALLOWED_ASSERTABLE_ATTRS_PROPS.includes(n)&&r.ASSERTABLE_ATTRIBUTE_TYPES.includes(o)){if(null==i||"string"===o&&!i.length&&"value"!==n)continue;t[n]=O(i.toString(),!1)}}catch(e){console.error("Could not process an attribute/property for element",e)}return e.getAttributeNames().forEach((n=>{if(!t?.hasOwnProperty(n)){const r=e.getAttribute(n);t[n]=O(r||"",!1)}})),E.forEach((n=>{const r=n.extractor(e);r&&(t[n.propertyName]=r)})),t},t.getCssPropertyMap=function(e){const t={},n=window.getComputedStyle(e);return r.ALLOWED_ASSERTABLE_CSS_PROPS.forEach((e=>{""!==n.getPropertyValue(e)&&(t[e]=n.getPropertyValue(e))})),t},t.getIframesInfo=function(){const e=[];return[].forEach.call(document.getElementsByTagName("iframe"),(n=>{if(!t.MABL_INSERTED_ELEMENTS.includes(n.id)){const t=m(n,"record","switch-context-to",T(n),void 0,!1,!1);t.absoluteSrc=n.src,e.push(t)}})),e},t.createXPathFromElement=T,t.compactWhitespace=R,t.formatText=S,t.getTextFromElement=v,t.getSlotTextFromElement=I,t.truncateText=N,t.normalizeText=O,t.getLabelForInput=P,t.getLabelUsingForAttribute=L,t.getInputLabelFromElement=M,t.getHrefFromElement=x,t.getPlaceholderFromElement=D,t.getInputTypeFromElement=C,t.isInputField=w,t.isTextField=function(e){const t=b(e),n=e.type;return"input"===t&&!l.includes(n)||"textarea"===t},t.isFileInput=function(e){const t=b(e),n=(e.type||"").toLowerCase();return"input"===t&&"file"===n},t.isSelect=function(e){return"select"===b(e)},t.getAncestorElements=function(e,t=0,n=[]){const r=[],i=n.map((e=>e.toLowerCase()));let o=e?.parentElement;for(;o&&(t<=0||r.length<t);)i.includes(b(o))||r.push(o),o=o.parentElement;return r},t.sanitizeXPath=U,t.createXpathFromPathArray=function(e){return U(`//${e.map(((e,t,n)=>{const r=h(e);if(!r)return"";const i=n[t+1];return"#document"!==r&&i&&i?G(e,i):""})).reduce(((e,t)=>""===t?e:`${t}/${e}`))}`)},t.maybeGetRootNode=V,t.xpathElement=G,t.renderSelectionOverlay=function(e){const n=document.createElement("div");n.id=t.MABL_OVERLAY_ID,n.classList.add(o),n.setAttribute("style","\n position: fixed;\n display: none;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(24,197,207,0.25);\n z-index: 2147483646;\n cursor: pointer;\n display:block;");const r=document.createElement("div");r.classList.add(o),r.innerText=e,r.setAttribute("style","\n position: absolute;\n top: 50%;\n left: 50%;\n font-size: 50px;\n color: white;\n transform: translate(-50%,-50%);\n -ms-transform: translate(-50%,-50%);"),n.appendChild(r);const i=B();n.appendChild(i);try{document.body.appendChild(n)}catch{document.documentElement.appendChild(n)}},t.positionSelectionHighlight=function(e){const n=document.elementsFromPoint(e.clientX,e.clientY).find((e=>!e.classList.contains(o)));if(!n)return;const r=n.getBoundingClientRect(),i=document.getElementById(t.MABL_HIGHLIGHT_ID);i&&(i.style.left=j(r.x),i.style.top=j(r.y),i.style.width=j(r.width),i.style.height=j(r.height))},t.highlightElement=X,t.highlightElements=function(e){const n=`${t.MABL_HIGHLIGHT_ID}-parent`;let r=document.getElementById(n);r&&H(r),r=document.createElement("div"),r.id=n,e.length>0&&e.forEach(((e,t)=>{X(e,t,r)}));const i=document.getElementById(t.MABL_OVERLAY_ID),a=document.createElement("div");a.classList.add(o),a.innerText=`${e.length} elements found`,a.setAttribute("style","\n position: absolute;\n top: 60%;\n left: 50%;\n font-size: 40px;\n color: white;\n transform: translate(-50%,-50%);\n -ms-transform: translate(-50%,-50%);"),r.appendChild(a),i.appendChild(r)},t.destroySelectionOverlay=function(){k(t.MABL_OVERLAY_ID)},t.removeOverlayById=k,t.adjustTarget=function(e,t){let n=e,r=t?.slice();for(;n&&!(n instanceof HTMLElement);)n=n.parentElement,r?.pop();const i=function(e,t){const n=b(e);if("button"!==n&&"input"!==n){let e;t.forEach(((t,n)=>{const r=b(t)??"";e||"button"!==r&&"input"!==r||(e=n)})),e&&(t=t.slice(e))}return t}(e,r);return i!==r&&(n=i[0],r=i),function(e){const t=b(e);return"html"===t}(n)&&(n=void 0,r=void 0),{path:r,target:n}},t.selectOption=function(e,t,n){e.focus(),"any"===t?e.options.length>1&&0===e.selectedIndex?e.selectedIndex=1:e.selectedIndex=0:e.selectedIndex=[...e.options].findIndex((e=>e.innerText===n)),e.dispatchEvent(new Event("change")),e.blur();const r=new InputEvent("input");e.dispatchEvent(r)},t.getElementMatchingSelectionTarget=function(e){return"primarySelectors"in e.find?"find_last"===e.find.type?$(e.find.primarySelectors):Y(e.find.primarySelectors):e.xPath?W(e.xPath):void 0},t.destroyElement=H,t.getAllElementBySelectors=function(e){try{if(e.css_query)return document.querySelectorAll(e.value||e.css_query);if(e.xpath)return z(e.value||e.xpath)}catch(e){}return[]},t.getLastElementBySelectors=$,t.getFirstElementBySelectors=Y,t.getAllElementsByXpath=z,t.getElementByXpath=W,t.getInnerText=function e(t){const n=b(t)||"";return"select"!==n&&"option"!==n&&"optgroup"!==n?t.innerText||"":K(t)?[("option"===n?t.innerText||t.text:t.innerText)||"",Array.from(t.childNodes||[]).map(e).filter((e=>e)).join(" ")].filter((e=>e)).join(" "):""},t.isDisplayed=K,t.isElementClickable=q,t.isExpectedToBeInvisible=function(e){return"input"===b(e)&&"file"===e?.type?.toLowerCase()},t.isElementInShadowRoot=Z,t.hasShadowRoot=J,t.removeParentElements=function(e){return e?e.filter((t=>!e.some((e=>t!==e&&t.contains(e))))):[]},t.getParentElements=function(e){const t=[];let n=e.parentElement;for(;n;)t.push(n),n=n.parentElement;return t},t.isNotDefaultNamespace=ee,t.getXPathTagExpression=function(e,t=!0){const n=t?e.tag_name:void 0;return n?.includes(":")||ee(e.namespace_uri)&&n?`*[local-name()='${n}']`:n??"*"}},419:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MablscriptUtils=t.replaceVariables=t.findVariables=t.b64DecodeUnicode=t.b64EncodeUnicode=t.serializeStepArgumentValue=t.buildStepArgumentString=t.isValidVariableName=t.isValidUserVariableName=t.getVariableNameFromLoneVariablePattern=t.isLoneVariablePattern=t.unescapeMablscriptString=t.escapeMablscriptString=void 0;const a=n(155);function l(e){return"string"==typeof e?e.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/"/g,'\\"').replace(/\r/g,"").replace(/\u2028/gu,"\\u2028").replace(/\u2029/gu,"\\u2029"):""}function s(e){return!!e&&RegExp(a.LONE_VARIABLE_REGEXP).test(e)}function c(e,t){return t?u(e):d(e)}function u(e){switch(typeof e){case"string":return`"${l(e)}"`;case"boolean":case"number":return`${e}`;case"object":{if(e instanceof Array)return`[${e.map(u).join(",")}]`;const t=[];return Object.keys(e).forEach((n=>{const r=u(e[n]);n&&"string"==typeof r&&r&&t.push(`"${n}":${r}`)})),t.sort(),`{${t.join(",")}}`}default:return}}function d(e){switch(typeof e){case"string":return`"${l(e)}"`;case"boolean":case"number":return`${e}`;case"object":{if(e instanceof Array)return`[${e.map(d).join(", ")}]`;const t=[];return Object.keys(e).forEach((n=>{const r=d(e[n]);n&&"string"==typeof r&&r&&t.push(`${n}: ${r}`)})),t.sort(),`{${t.join(", ")}}`}default:return}}t.escapeMablscriptString=l,t.unescapeMablscriptString=function(e){return e.replace(/\\"/g,'"').replace(/\\n/g,"\n").replace(/\\\\/g,"\\")},t.isLoneVariablePattern=s,t.getVariableNameFromLoneVariablePattern=function(e){if(s(e)){const t=RegExp(a.LONE_VARIABLE_REGEXP);return e.match(t)?.groups?.[a.VARIABLE_GROUP_NAME]}},t.isValidUserVariableName=function(e){return!!e&&((0,a.USER_VARIABLE_REGEXP_CREATE)().test(e)&&-1===a.EXCLUDED_USER_VARIABLE_NAMES.indexOf(e))},t.isValidVariableName=function(e){return!!e&&(0,a.ALL_VARIABLE_REGEXP_CREATE)().test(e)},t.buildStepArgumentString=function(e){const{legacy:t,...n}=e;return c(n.params,t)},t.serializeStepArgumentValue=c,t.b64EncodeUnicode=function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt("0x"+t,16))})))},t.b64DecodeUnicode=function(e){try{return decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}catch(t){return atob(e)}},t.findVariables=function(e){const t=e?.match(a.PATTERN_REGEXP);return t?.reduce(((e,t)=>{const n=t?.match((0,a.VARIABLE_IN_EXPRESSION_REGEXP_CREATE)());return n?.forEach((t=>e.push(t.substring(1)))),e}),[])||[]},t.replaceVariables=function(e,t){return null===e?null:e?.replace(a.PATTERN_REGEXP,(e=>e.replace((0,a.VARIABLE_IN_EXPRESSION_REGEXP_CREATE)(),t)))},t.MablscriptUtils=o(n(419))},729:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMobileElementSelector=t.isMobileFindDescriptor=t.isWebViewFindElementDescriptor=t.isMobileFindCustomDescriptor=t.isMobileFindSpecification=t.isMobileFindElementDescriptor=void 0;const r=n(681);function i(e){const t=e;return!(!t||!(0,r.isFindElementType)(t.findType)||!t.findTarget?.selector?.android&&!t.findTarget?.selector?.iOS)}function o(e){const t=e,n=Array.isArray(t?.foundElementSelectors)?t?.foundElementSelectors[0]:t?.foundElementSelectors,i=n?.android||n?.iOS;return!!t?.findTarget?.xpath&&[r.FindType.FIND_ANY,r.FindType.FIND_FIRST,r.FindType.FIND_LAST,r.FindType.FIND_ALL].includes(e?.findType)&&!!i}t.isMobileFindElementDescriptor=i,t.isMobileFindSpecification=function(e){return e?.selector?.iOS||e?.selector?.android},t.isMobileFindCustomDescriptor=o,t.isWebViewFindElementDescriptor=function(e){return e?.webView&&i(e)},t.isMobileFindDescriptor=function(e){return i(e)||o(e)},t.isMobileElementSelector=function(e){return e?.android||e?.iOS}},762:(e,t)=>{"use strict";function n(e){const t=e.selector;if(r(t)&&!1!==e.accepted)return{...e,selector:t,selector_variant_id:e.selector_variant_id??`${t.uuid}:${e.created_time}:${e.journey_run_id}:${e.step_run_id}`,accepted:!0}}function r(e){if(!e)return!1;if("object"!=typeof e)return!1;const t=e,n=void 0!==t.uuid,r=void 0!==t.xpath,i=void 0!==t.css_query,o=void 0!==t.tag_name;return n&&(r||i||o)}function i(e){return void 0!==e.tag_name&&("input"===e.tag_name.toLowerCase()?!e.inputElementType||-1===["radio","button","submit","reset"].indexOf(e.inputElementType.toLowerCase()):-1===["button","option","li","param"].indexOf(e.tag_name.toLowerCase()))}function o(e){return e&&void 0!==e.uuid&&void 0!==e.xpath}function a(e,t,n){return!n||!(e in n)||!n[e](t)}Object.defineProperty(t,"__esModule",{value:!0}),t.areSelectorsEqual=t.isCompositeSelector=t.isStandardSelectorAndContext=t.isStandardSelector=t.isCookieSelector=t.isEmailSelector=t.isTabSelector=t.isCssSelector=t.isXPathSelector=t.ignoreValueAttribute=t.SELECTOR_ATTRIBUTE_KEYS=t.SELECTOR_EQUIVALENCE_IGNORED_KEYS=t.PROTOTYPE_TO_SELECTOR_ATTRIBUTE_MAP=t.isSimpleElementSelectorCommonKeys=t.isSimpleElementSelector=t.validateAndSortSelectorOverrides=t.validateSelectorOverride=t.isValidatedSelectorOverride=void 0,t.isValidatedSelectorOverride=function(e){return!!e&&r(e.selector)&&!0===e.accepted&&void 0!==e.selector_variant_id},t.validateSelectorOverride=n,t.validateAndSortSelectorOverrides=function(e){return e.map(n).filter((e=>void 0!==e)).sort(((e,t)=>t.created_time-e.created_time))},t.isSimpleElementSelector=r,t.isSimpleElementSelectorCommonKeys=function(e){return"string"==typeof e&&!["css_query","repeat_xpaths","selector_type","tag_name","uuid","xpath","app_state","other_attributes"].includes(e)},t.PROTOTYPE_TO_SELECTOR_ATTRIBUTE_MAP={elementId:"id",name:"name",href:"href",inputElementType:"inputElementType",label:"label",placeholder:"placeholder",tagName:"tag_name",text:"text",slotText:"slot_text",url:"url",title:"title",uuid:"uuid",xPath:"xpath",cssQuery:"css_query",className:"class_name",src:"src",alt:"alt",form:"form",for:"for_attr",target:"target",inputValue:"value",dataTracking:"data_tracking",titleAttr:"title_attr",ariaLabel:"aria_label",labelAttr:"label_attr",dataAutobotElementId:"data_autobot_element_id",automationid:"automationid",dataAutomationId:"data_automation_id",dataTestId:"data_test_id",dataTestid:"data_testid",testId:"test_id",ngModel:"ng_model",ngShow:"ng_show",ariaOwns:"aria_owns",ariaLabelledby:"aria_labelledby",ngClass:"ng_class",ariaControls:"aria_controls",tabindex:"tabindex",role:"role",maxlength:"maxlength",autocomplete:"autocomplete",height:"height",width:"width",style:"style",boundingX:"bounding_x",boundingY:"bounding_y",boundingHeight:"bounding_height",boundingWidth:"bounding_width",visible:"visible",clickable:"clickable",namespaceURI:"namespace_uri",dataTarget:"data_target",dataValue:"data_value",dataId:"data_id",dataName:"data_name",dataProp:"data_prop",index:"index",item:"item",objectid:"objectid",iconid:"icon_id"},t.SELECTOR_EQUIVALENCE_IGNORED_KEYS={app_state:()=>!0,aria_owns:()=>!0,bounding_x:()=>!0,bounding_y:()=>!0,bounding_height:()=>!0,bounding_width:()=>!0,class_name:()=>!0,findable_ancestor_uuid:()=>!0,other_attributes:()=>!0,relative_xpath:()=>!0,repeat_xpaths:()=>!0,selector_type:()=>!0,style:()=>!0,title_attr:function(e){if(void 0===e.tag_name)return!1;return["input","textarea"].includes(e.tag_name.toLowerCase())},uuid:()=>!0,value:i},t.SELECTOR_ATTRIBUTE_KEYS=Object.keys(t.PROTOTYPE_TO_SELECTOR_ATTRIBUTE_MAP).map((e=>t.PROTOTYPE_TO_SELECTOR_ATTRIBUTE_MAP[e])),t.ignoreValueAttribute=i,t.isXPathSelector=function(e){return e&&void 0!==e.xpath},t.isCssSelector=function(e){return e&&void 0!==e.css_query},t.isTabSelector=function(e){return e&&"tab"===e.selector_type&&void 0!==e.url},t.isEmailSelector=function(e){return e&&"email"===e.selector_type},t.isCookieSelector=function(e){return e&&void 0!==e.name},t.isStandardSelector=o,t.isStandardSelectorAndContext=function(e){return e&&void 0!==e.currentContextNode},t.isCompositeSelector=function(e){return e&&e.length>=1&&e.every(o)};const l=["uuid","app_state","other_attributes","repeat_xpaths"];t.areSelectorsEqual=function(e,t,n=!0,r){if(void 0===e)return void 0===t;if(void 0===t)return!1;const i=Object.keys(e).filter((e=>!l.includes(e))).filter((t=>a(t,e,r))),o=Object.keys(t).filter((e=>!l.includes(e))).filter((e=>a(e,t,r)));if(i.length!==o.length)return!1;for(const n of i)if(e[n]!==t[n])return!1;if(n&&(e.other_attributes||t.other_attributes)){const n=(e.other_attributes??[]).filter((t=>a(t.id,e,r))),i=(t.other_attributes??[]).filter((e=>a(e.id,t,r)));if(n.length!==i.length)return!1;for(const e of n){const t=i.find((t=>e.id===t.id));if(!t||e.value!==t.value)return!1}}return!0}},155:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.containsMablTemplatePattern=t.isString=t.isNestableElement=t.LONE_VARIABLE_REGEXP=t.FAKER_FORMAT_IN_EXPRESSION_REGEX_CREATE=t.FAKER_EXPRESSION_REGEXP_CREATE=t.FAKER_EXPRESSION_NAMED_GROUP=t.FAKER_EXPRESSION=t.FAKE_NAMESPACE=t.FAKER_GROUP_NAME=t.RANDOM_FORMAT_IN_EXPRESSION_REGEXP_CREATE=t.RANDOM_FORMAT_REGEXP_CREATE=t.RANDOM_FORMAT=t.LENGTH_GROUP=t.LENGTH_GROUP_NAME=t.ALPHABET_GROUP=t.RANDOM_STRING_CHOICES=t.ALPHABET_GROUP_NAME=t.CURRENT_DATE_REGEXP_CREATE=t.CURRENT_DATE_NAME_GROUP=t.CURRENT_DATE_GROUP_NAME=t.VARIABLE_IN_EXPRESSION_REGEXP_CREATE=t.SINGLE_VARIABLE_REGEX_CREATE=t.VARIABLE_GROUP=t.VARIABLE_GROUP_NAME=t.EXCLUDED_USER_VARIABLE_NAMES=t.ALL_VARIABLE_REGEXP_CREATE=t.COMPOUND_VARIABLE_PATTERN=t.USER_VARIABLE_REGEXP_CREATE=t.VARIABLE_REGEXP=t.INDEX_EXPRESSION_REGEXP=t.DOUBLE_QUOTED_IDENTIFIER_REGEXP=t.SINGLE_QUOTED_IDENTIFIER_REGEXP=t.ARRAY_INDEX_REGEXP=t.IDENTIFIER_REGEXP=t.USER_NAMESPACE_REGEXP=t.PATTERN_REGEXP=t.patternRanges=void 0,t.patternRanges={alpha:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",alphaLower:"abcdefghijklmnopqrstuvwxyz",alphaUpper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",digit:"0123456789",alnum:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"},t.PATTERN_REGEXP=/{{([^{}]*)}}/gi,t.USER_NAMESPACE_REGEXP=/^user\./g,t.IDENTIFIER_REGEXP="[a-zA-Z_][a-zA-Z0-9_]*",t.ARRAY_INDEX_REGEXP="[0-9]+",t.SINGLE_QUOTED_IDENTIFIER_REGEXP=`'${t.IDENTIFIER_REGEXP}'`,t.DOUBLE_QUOTED_IDENTIFIER_REGEXP=`"${t.IDENTIFIER_REGEXP}"`,t.INDEX_EXPRESSION_REGEXP=`\\[(?:${t.ARRAY_INDEX_REGEXP}|${t.SINGLE_QUOTED_IDENTIFIER_REGEXP}|${t.DOUBLE_QUOTED_IDENTIFIER_REGEXP})\\]`,t.VARIABLE_REGEXP=`${t.IDENTIFIER_REGEXP}(?:${t.INDEX_EXPRESSION_REGEXP})*`;t.USER_VARIABLE_REGEXP_CREATE=()=>RegExp("^"+t.IDENTIFIER_REGEXP+"$"),t.COMPOUND_VARIABLE_PATTERN=`(${t.VARIABLE_REGEXP})(\\.(${t.VARIABLE_REGEXP}))*`;t.ALL_VARIABLE_REGEXP_CREATE=()=>RegExp("^"+t.COMPOUND_VARIABLE_PATTERN+"$"),t.EXCLUDED_USER_VARIABLE_NAMES=["user","web","mail","api"],t.VARIABLE_GROUP_NAME="variable",t.VARIABLE_GROUP="(?<"+t.VARIABLE_GROUP_NAME+">"+t.COMPOUND_VARIABLE_PATTERN+")";t.SINGLE_VARIABLE_REGEX_CREATE=()=>RegExp("{{@"+t.VARIABLE_GROUP+"}}");t.VARIABLE_IN_EXPRESSION_REGEXP_CREATE=()=>RegExp("@"+t.VARIABLE_GROUP,"g"),t.CURRENT_DATE_GROUP_NAME="date",t.CURRENT_DATE_NAME_GROUP="(?<"+t.CURRENT_DATE_GROUP_NAME+">date)";t.CURRENT_DATE_REGEXP_CREATE=()=>RegExp("{{"+t.CURRENT_DATE_NAME_GROUP+"(:iso)?}}"),t.ALPHABET_GROUP_NAME="alphabet",t.RANDOM_STRING_CHOICES=Object.keys(t.patternRanges).join("|"),t.ALPHABET_GROUP="(?<"+t.ALPHABET_GROUP_NAME+">"+t.RANDOM_STRING_CHOICES+")",t.LENGTH_GROUP_NAME="length",t.LENGTH_GROUP="(?<"+t.LENGTH_GROUP_NAME+">[\\d]+)",t.RANDOM_FORMAT=t.ALPHABET_GROUP+":"+t.LENGTH_GROUP;t.RANDOM_FORMAT_REGEXP_CREATE=()=>RegExp("{{"+t.RANDOM_FORMAT+"}}");t.RANDOM_FORMAT_IN_EXPRESSION_REGEXP_CREATE=()=>RegExp(t.RANDOM_FORMAT,"g"),t.FAKER_GROUP_NAME="faker",t.FAKE_NAMESPACE="fake.",t.FAKER_EXPRESSION=`${t.FAKE_NAMESPACE}[a-zA-Z]+\\.[a-zA-Z]+(\\((\\d+)\\))?`,t.FAKER_EXPRESSION_NAMED_GROUP="(?<"+t.FAKER_GROUP_NAME+">{{"+t.FAKER_EXPRESSION+"}})";t.FAKER_EXPRESSION_REGEXP_CREATE=()=>RegExp(t.FAKER_EXPRESSION_NAMED_GROUP);t.FAKER_FORMAT_IN_EXPRESSION_REGEX_CREATE=()=>RegExp("("+t.FAKER_EXPRESSION+")","g"),t.LONE_VARIABLE_REGEXP="^{{@"+t.VARIABLE_GROUP+"}}$",t.isNestableElement=function(e){return e instanceof Object||e instanceof Array},t.isString=function(e){return e&&e instanceof String||"string"==typeof e},t.containsMablTemplatePattern=function(e){return!!e&&e.search(t.PATTERN_REGEXP)>=0}},96:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.humanizeEmailSelector=t.buildEmailSelectorString=t.EmailSelectors=void 0;const r=n(552),i=n(941),o=["to_received","from","subject","body_text"];class a extends i.IdentityPrototypeSelectorStore{buildSelector(e){const t={selector_type:"email",from:"joe@mabl.com",uuid:e.uuid};return e&&o.forEach((n=>{const r=e[n];r&&"selector_type"!==n&&(t[n]=r)})),t}matchingSelector(e,t){return o.reduce(((n,r)=>n&&e[r]===t[r]),!0)}}t.EmailSelectors=a,t.buildEmailSelectorString=function(e){const t=[];return Object.keys(e).forEach((n=>t.push(`${n}: "${(0,r.escapeMablscriptString)(e[n])}"`))),t.indexOf('selector_type: "email"')<0&&t.push('selector_type: "email"'),t.sort(),`{${t.join(", ")}}`},t.humanizeEmailSelector=function(e){const{from:t,to_received:n,subject:i,body_text:o}=e;let a="the email";if(t){a+=` sent from "${(0,r.formatText)(t)}",`}if(n){a+=` received at "${(0,r.formatText)(n)}",`}if(i){a+=` with the exact subject of "${(0,r.formatText)(i)}",`}if(o){a+=` with the body text of "${(0,r.formatText)(o)}"`}return a.endsWith(",")&&(a=a.substr(0,a.length-1)),a}},941:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IdentityPrototypeSelectorStore=void 0;const i=r(n(646));class o extends i.default{buildSelector(e){return e}}t.IdentityPrototypeSelectorStore=o},646:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9);t.default=class{selectors;constructor(){this.selectors={}}generateSelector(e,t){const n=this.buildSelector(e),i=(Array.isArray(n)?n:[n]).map((e=>{const n=this.selectorFor(e,t);return n&&n.uuid?n:(e.uuid=e.uuid||(0,r.v4)(),this.selectors[e.uuid]={holder:{selector:e},context:t},e)}));return i.length>1?i:i[0]}selectorFor(e,t){const n=Object.keys(this.selectors).find((n=>{const r=this.selectors[n];return t===r.context&&this.matchingSelector(e,r.holder.selector)}));if(n)return this.selectors[n].holder.selector}matchingSelector(e,t){return e===t}addSelector(e){(Array.isArray(e)?e:[e]).forEach((e=>{"object"==typeof e&&(delete e.selector_type,e.uuid&&(this.selectors[e.uuid]={holder:{selector:e}}))}))}getSelector(e,t){return(this.selectors[e]||{}).holder?.selector||t}keys(){return Object.keys(this.selectors)}}},699:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.extractVariableNameFromPath=t.resolveVariable=t.sanitizeUserVariableName=t.addUserNamespace=t.removeUserNamespace=t.USER_NAMESPACE=t.createDottedNamedMap=void 0;const i=r(n(619)),o=n(419),a=n(155);function l(e,t){const n=e.indexOf(t);return n<0?[e,void 0]:[e.substr(0,n),e.substr(n+1)]}function s(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}function c(e){return function(e,t){if(e.startsWith(t))return e.substring(t.length);return e}(e,t.USER_NAMESPACE)}function u(e){return function(e,t){if(e.startsWith(t))return e;return`${t}${e}`}(e,t.USER_NAMESPACE)}function d(e,t){return Object.keys(t).find((t=>e.startsWith(t)&&(e.length===t.length||"["===e[t.length]||"."===e[t.length])))}t.createDottedNamedMap=function e(t={}){return new Proxy(t,{get(e,t){if("string"==typeof t){const[n,r]=l(t,".");return r?s(e[n])?e[n][r]:void 0:e[n]}return Reflect.get(e,t)},set(t,n,r){if("string"==typeof n){const[i,o]=l(n,".");return o?(t?.hasOwnProperty(i)||(t[i]=e()),t[i][o]=r,!0):(t[i]=r,!0)}return Reflect.set(t,n,r),!0},deleteProperty(e,t){if("string"==typeof t){const[n,r]=l(t,".");return r?!s(e[n])||delete e[n][r]:(e?.hasOwnProperty(n)&&delete e[n],!0)}return Reflect.deleteProperty(e,t)},has(e,t){if("string"==typeof t){const[n,r]=l(t,".");return r?n in e&&s(e[n])&&r in e[n]:n in e}return Reflect.has(e,t)}})},t.USER_NAMESPACE="user.",t.removeUserNamespace=c,t.addUserNamespace=u,t.sanitizeUserVariableName=function(e){if(!e)return;const t=c(u(e));return(0,o.isValidUserVariableName)(t)?u(t):void 0},t.resolveVariable=function(e,n,r){let o=e,l=d(e,n);if(l||(o=t.USER_NAMESPACE+e,l=d(o,n)),l){let e=r(n[l]),t=o.slice(l.length);if(t.endsWith(".")||/^\.{2,}/.test(t))return;return t=t.replace(/^\.*/,""),t&&(e=(0,a.isNestableElement)(e)?(0,i.default)(e,t):void 0),e}},t.extractVariableNameFromPath=d},397:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isLegacyVariable=t.namespace=t.resolveVariableValue=t.LegacyVariableSource=t.VariableType=void 0;const i=r(n(619)),o=n(155),a=n(699);!function(e){e.COOKIE="cookie",e.DATABASE="database",e.ELEMENT_COUNT="elementCount",e.ELEMENT_PROPERTY="elementProperty",e.GENERATED="generated",e.JAVASCRIPT="javascript",e.INPUT="input",e.MABL_MAILBOX="mablMailbox",e.LOOP_INDEX="loopIndex"}(t.VariableType||(t.VariableType={})),function(e){e.API="API step",e.DATABASE_QUERY="Database query",e.DDT="DataTable",e.ELEMENT_COUNT="Element count",e.ELEMENT_PROP="Element property",e.ENV="Environment",e.FLOW_PARAMETER="Flow parameter",e.JAVASCRIPT="JavaScript",e.JOURNEY_VAR="Default value",e.MABL_MAIL="mabl Mailbox",e.PLAN="Plan",e.RUNTIME="Runtime",e.TEMPLATE="String template",e.TEST_RUN="Test run"}(t.LegacyVariableSource||(t.LegacyVariableSource={}));const l=e=>e?.value;function s(e,t){try{return e[t]||e[`${a.USER_NAMESPACE}${t}`]}catch{return}}t.resolveVariableValue=function(e,t,n=l){let r,c=s(t,e);const u=(0,a.removeUserNamespace)(e);if(!c&&(u.includes(".")||u.includes("["))){const e=[u.indexOf("["),u.indexOf(".")].filter((e=>e>=0)).reduce(((e,t)=>Math.min(e,t)));if(c=s(t,u.slice(0,e)),c){const t="."===u[e]?1:0;r=u.slice(e+t,u.length)}}let d=n(c);return d&&r&&(0,o.isNestableElement)(d)&&(d=(0,i.default)(d,r)),d},t.namespace=function(e={}){return(0,a.createDottedNamedMap)(e)},t.isLegacyVariable=function(e){return!!e&&"object"==typeof e&&void 0!==e.variableType&&void 0!==e.name}},930:(e,t)=>{"use strict";function n(e){return Object.prototype.constructor===e.constructor}Object.defineProperty(t,"__esModule",{value:!0}),t.isSimpleObject=t.isVariableDataType=void 0,t.isVariableDataType=function e(t){return null==t||"boolean"==typeof t||"number"==typeof t||"bigint"==typeof t||"string"==typeof t||"object"==typeof t&&(Array.isArray(t)?t.every(e):!!n(t)&&!!Object.entries(t).every((([t,n])=>t&&"string"==typeof t&&e(n))))},t.isSimpleObject=n},619:e=>{var t="__lodash_hash_undefined__",n=1/0,r="[object Function]",i="[object GeneratorFunction]",o="[object Symbol]",a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/,s=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,f="object"==typeof global&&global&&global.Object===Object&&global,E="object"==typeof self&&self&&self.Object===Object&&self,p=f||E||Function("return this")();var m,_=Array.prototype,g=Function.prototype,b=Object.prototype,h=p["__core-js_shared__"],A=(m=/[^.]+$/.exec(h&&h.keys&&h.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"",y=g.toString,T=b.hasOwnProperty,R=b.toString,S=RegExp("^"+y.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),v=p.Symbol,I=_.splice,N=V(p,"Map"),O=V(Object,"create"),P=v?v.prototype:void 0,L=P?P.toString:void 0;function M(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function x(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function D(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function C(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}function w(e,t){var n;t=function(e,t){if(j(e))return!1;var n=typeof e;if("number"==n||"symbol"==n||"boolean"==n||null==e||H(e))return!0;return l.test(e)||!a.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:j(n=t)?n:G(n);for(var r=0,i=t.length;null!=e&&r<i;)e=e[B(t[r++])];return r&&r==i?e:void 0}function F(e){if(!k(e)||(t=e,A&&A in t))return!1;var t,n=function(e){var t=k(e)?R.call(e):"";return t==r||t==i}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?S:d;return n.test(function(e){if(null!=e){try{return y.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function U(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function V(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return F(n)?n:void 0}M.prototype.clear=function(){this.__data__=O?O(null):{}},M.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},M.prototype.get=function(e){var n=this.__data__;if(O){var r=n[e];return r===t?void 0:r}return T.call(n,e)?n[e]:void 0},M.prototype.has=function(e){var t=this.__data__;return O?void 0!==t[e]:T.call(t,e)},M.prototype.set=function(e,n){return this.__data__[e]=O&&void 0===n?t:n,this},x.prototype.clear=function(){this.__data__=[]},x.prototype.delete=function(e){var t=this.__data__,n=C(t,e);return!(n<0)&&(n==t.length-1?t.pop():I.call(t,n,1),!0)},x.prototype.get=function(e){var t=this.__data__,n=C(t,e);return n<0?void 0:t[n][1]},x.prototype.has=function(e){return C(this.__data__,e)>-1},x.prototype.set=function(e,t){var n=this.__data__,r=C(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},D.prototype.clear=function(){this.__data__={hash:new M,map:new(N||x),string:new M}},D.prototype.delete=function(e){return U(this,e).delete(e)},D.prototype.get=function(e){return U(this,e).get(e)},D.prototype.has=function(e){return U(this,e).has(e)},D.prototype.set=function(e,t){return U(this,e).set(e,t),this};var G=X((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(H(e))return L?L.call(e):"";var t=e+"";return"0"==t&&1/e==-n?"-0":t}(t);var r=[];return s.test(e)&&r.push(""),e.replace(c,(function(e,t,n,i){r.push(n?i.replace(u,"$1"):t||e)})),r}));function B(e){if("string"==typeof e||H(e))return e;var t=e+"";return"0"==t&&1/e==-n?"-0":t}function X(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(X.Cache||D),n}X.Cache=D;var j=Array.isArray;function k(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function H(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&R.call(e)==o}e.exports=function(e,t,n){var r=null==e?void 0:w(e,t);return void 0===r?n:r}},9:(e,t,n)=>{"use strict";n.r(t),n.d(t,{NIL:()=>S,parse:()=>b,stringify:()=>f,v1:()=>g,v3:()=>A,v4:()=>T,v5:()=>R,validate:()=>c,version:()=>v});const r=require("crypto");var i=n.n(r);const o=new Uint8Array(256);let a=o.length;function l(){return a>o.length-16&&(i().randomFillSync(o),a=0),o.slice(a,a+=16)}const s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const c=function(e){return"string"==typeof e&&s.test(e)},u=[];for(let e=0;e<256;++e)u.push((e+256).toString(16).slice(1));function d(e,t=0){return(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase()}const f=function(e,t=0){const n=d(e,t);if(!c(n))throw TypeError("Stringified UUID is invalid");return n};let E,p,m=0,_=0;const g=function(e,t,n){let r=t&&n||0;const i=t||new Array(16);let o=(e=e||{}).node||E,a=void 0!==e.clockseq?e.clockseq:p;if(null==o||null==a){const t=e.random||(e.rng||l)();null==o&&(o=E=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==a&&(a=p=16383&(t[6]<<8|t[7]))}let s=void 0!==e.msecs?e.msecs:Date.now(),c=void 0!==e.nsecs?e.nsecs:_+1;const u=s-m+(c-_)/1e4;if(u<0&&void 0===e.clockseq&&(a=a+1&16383),(u<0||s>m)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");m=s,_=c,p=a,s+=122192928e5;const f=(1e4*(268435455&s)+c)%4294967296;i[r++]=f>>>24&255,i[r++]=f>>>16&255,i[r++]=f>>>8&255,i[r++]=255&f;const g=s/4294967296*1e4&268435455;i[r++]=g>>>8&255,i[r++]=255&g,i[r++]=g>>>24&15|16,i[r++]=g>>>16&255,i[r++]=a>>>8|128,i[r++]=255&a;for(let e=0;e<6;++e)i[r+e]=o[e];return t||d(i)};const b=function(e){if(!c(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function h(e,t,n){function r(e,r,i,o){var a;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=b(r)),16!==(null===(a=r)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+e.length);if(l.set(r),l.set(e,r.length),l=n(l),l[6]=15&l[6]|t,l[8]=63&l[8]|128,i){o=o||0;for(let e=0;e<16;++e)i[o+e]=l[e];return i}return d(l)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}const A=h("v3",48,(function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),i().createHash("md5").update(e).digest()})),y={randomUUID:i().randomUUID};const T=function(e,t,n){if(y.randomUUID&&!t&&!e)return y.randomUUID();const r=(e=e||{}).random||(e.rng||l)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return d(r)};const R=h("v5",80,(function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),i().createHash("sha1").update(e).digest()})),S="00000000-0000-0000-0000-000000000000";const v=function(e){if(!c(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},295:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(552),t)}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}return n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(295)})()));